/*
 * Text contrast (standard v2 СКР-06, arc 8G task A10) — owner decision №92 (docs/DECISIONS.md, 15.10).
 *
 * Source: the axe run of 14.10 (docs/reports/2026-10-14-arc-8g-contrast-decision.md, pairs 01–14). Every rule below
 * recolours only the text axe flagged; icons, borders, buttons and backgrounds keep their colours (option «a» of the
 * decision document). Each selector repeats the legacy rule that sets the colour, prefixed with :root (+0,1,0) so it
 * wins over that rule wherever the page stylesheets load (they come after this file, via @inertiaHead). State rules
 * that were stronger than the legacy rule (checked tab, .active, :hover) are either still stronger or excluded with
 * :not(), so the active and hover colours stay as they were. Where the legacy colour is set for the wide layout only
 * and the narrow one has its own darker colour, the rule is limited to min-width: 1024px; rules for classes that
 * exist on one layout only are not wrapped.
 *
 * Pair 01 (the huge decorative «PROFIT» behind a block) is left as it is: decoration, not text to read.
 */

/* 02, 03, 05 — yellow text on white -> brand navy #00204d (yellow stays on icons, borders and underlines). */
:root .main-block5__object-information-id p,
:root .main-block4__relevant button,
:root .m-main-block6 .m-main-block6__popup,
:root .seminar-header__button,
:root .seminar-block1 h1 {
  color: #00204d;
}

@media (min-width: 1024px) {
  :root .object__dropp .dropp-filter--btn {
    color: #00204d;
  }
}

:root .index-block1__filter-id input,
:root .index-block1__filter-price-col input {
  color: #00204d;
}

:root .search-form__input_price::placeholder {
  color: #00204d;
}

/* Not flagged by axe, recoloured for uniformity: the three select fields of the same search row («Все типы»,
   «Все города», «Количество») are the same yellow on white as the price and ID fields next to them. */
:root .index-block1__filter-content .nice-select .current {
  color: #00204d;
}

/* 04 — white text on the yellow review plate -> navy on the same yellow (8.63:1). */
:root .main-block7__reviews-city-block p {
  color: #00204d;
}

/* 06 — «ЦЕНА :» in the new-object cards, #9f9f9f on #f3f4f8 (wide layout; the narrow one is navy already). */
@media (min-width: 1024px) {
  :root .main-block5__object-item-price-text {
    color: #6f6f6f;
  }
}

/* 07 — inactive «Аренда» / «Продажа» tab of the search form, rgba(0,32,77,.4) on #f3f4f8. */
:root .index-block1__filter-tabs button:not(.active):not(:hover) {
  color: #5f708b;
}

/* 08 — card price on the grey card body, #8d94a3 on #e5e8ed. */
:root .catalog-change__object-item-price p {
  color: #616878;
}

/* 09 — grey-blue captions, #8d94a3 on white: breadcrumbs (links are recoloured in Breadcrumbs.vue), counters,
   object parameters, agent position, form subtitles, the «news by email» checkbox, popup descriptions. */
:root .links-block .container .not-link,
:root .links-block-bread .not-link,
:root .m-katalog-block1__count p,
:root .m-object__id p,
:root .object__left-descript-list p span,
:root .object__right .object__list li,
:root .contact-form__subtitle,
:root .seminar-block1 .seminar-block__next,
:root .news_checkbox,
:root .katalog_popUp .wrapForChecked.news_checkbox label,
:root .action-popUp__info .discript-popup {
  color: #6c7586;
}

/* The promo and UTM popups keep their own navy description: their legacy rules are as strong as or weaker than the
   shared grey rule above, which would otherwise win (review 15.10). */
:root .exclusive-popup__content .action-popUp__info .discript-popup {
  color: #00204d;
}

@media (min-width: 1024px) {
  :root .action-popUp .action-popUp__info .discript-popup {
    color: #00204d;
  }
}

/* «# ID» in compilation cards, #8d94a3 on white: the selection rule is stronger than the shared one above. */
:root .selection-item .catalog-change__object-item-info .main-block5__object-information-id p,
:root .selection-item .catalog-change__object-item-info .main-block5__object-information-id p span {
  color: #6c7586;
}

/* The same pair, wide layout only: on the narrow one these have their own darker colours (#333, #15254d, navy). */
@media (min-width: 1024px) {
  :root .links-block-favorite p,
  :root .catalog-change__found p,
  :root .object__agents-info .object__agents-prof {
    color: #6c7586;
  }
}

/* 10 — inactive tabs of the home page blocks, rgba(1,33,76,.5) on #f3f4f8. The checked tab rules (0,5,4) stay
   stronger; block 8 also has a hover/focus colour, excluded here. */
:root .main-block5__tabs ul li label {
  color: #607189;
}

:root .main-block8__tabs ul li label:not(:hover):not(:focus):not(:active) {
  color: #607189;
}

/* 11 — inactive tabs on the phone home page: navy at opacity .5 on white; no colour reaches 4.5:1 at that opacity,
   so the opacity rises to .61 (the tab icon gets slightly brighter as well). */
:root .m-main-block7__list .m-main-block7__list-title:not(.active) p {
  opacity: 0.61;
}

/* 12 — «Отображать объекты» label of the catalog sort, #7f8fa6 on white (wide layout; #333 on the narrow one). */
@media (min-width: 1024px) {
  :root .catalog-change__filter-new p {
    color: #657892;
  }
}

/* 13 — links in the catalog SEO text, bootstrap #337ab7 on #f3f4f8; hover/focus keep bootstrap's #23527c. Only links
   without a class: buttons and styled links inside SEO text (a.popup-btn, a.articles-link) keep their own colours. */
:root .seo-block-content a:not([class]):not(:hover):not(:focus) {
  color: #3072ab;
}

/* 14 — discount plates «-4%», #f24841 on white. */
:root .catalog-change__object-item-sale p,
:root .catalog-change__object-item-price-reduced p .persent {
  color: #e61810;
}
