/* Hallmark · shape: Index-first · genre: editorial · theme: Точный сервис (locked design.md) · redesign: full homepage composition · hero: Counter · posture: committed · signature: real company logos and scores beside local search · v2.0.0 */
/* Hallmark · pre-emit critique: restore visual mass through real logos, existing article artwork and a data-backed weight chart, rather than another national list. */
/* Hallmark · imagery: existing user-approved article and about collages; no new illustration or stock material. Shared tokens and interaction states come from the locked theme. */
:root {
    --ds-home-leader-rule: color-mix(in srgb, var(--ds-accent-ink) 32%, var(--ds-accent));
    --ds-home-factor-rating: var(--ds-accent);
    --ds-home-factor-reviews: var(--ds-ink);
    --ds-home-factor-iks: var(--ds-paper-3);
    --ds-home-factor-age: var(--ds-rule);
}
.ds-home-entry .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-xl);
    min-height: 0;
    padding-block: var(--space-xl) var(--space-2xl);
}
.ds-home-entry h1 { max-width: 14ch; font-size: clamp(40px, 4.5vw, 64px); text-wrap: balance; }
.ds-home-entry .hero-lead { max-width: 44ch; margin-top: var(--space-lg); }
.ds-home-entry .ds-hero-search { margin-top: var(--space-lg); }
.ds-home-cities { padding-top: var(--space-lg); margin-top: var(--space-lg); border-top: 1px solid var(--ds-rule); }
.ds-home-cities h2 { font-size: 16px; line-height: 1.4; letter-spacing: 0; text-wrap: balance; }
.ds-home-city-links { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2xs) var(--space-lg); margin-top: var(--space-xs); }
.ds-home-city-links > a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--ds-rule); }
.ds-home-city-links > a:hover { color: var(--ds-focus); text-decoration-color: currentColor; }
.ds-home-city-links :is(a, button):focus-visible { outline: 3px solid var(--ds-focus); outline-offset: 4px; }
.ds-home-city-links .ds-all-cities { margin-left: 0; transition: transform 160ms var(--ds-ease); }
.ds-home-city-links .ds-all-cities:hover { transform: translateY(-2px); }
.ds-home-city-links :is(a, button):active { transform: translateY(1px); }
.ds-home-city-links button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.ds-home-city-fallback { margin-top: var(--space-md); }
.ds-home-city-fallback summary { min-height: 44px; }
.ds-home-national { padding: var(--ds-gap); border-radius: var(--ds-radius); background: var(--ds-accent); color: var(--ds-accent-ink); }
.ds-home-leaders-head { display: flex; align-items: end; justify-content: space-between; gap: var(--space-md); padding-bottom: var(--space-lg); }
.ds-home-leaders-head h2 { max-width: 15ch; font-size: 28px; line-height: 1.15; text-wrap: balance; }
.ds-home-leaders-head > span { max-width: 6ch; flex-shrink: 0; font-size: 12px; text-align: right; }
.ds-home-leaders { margin: 0; padding: 0; list-style: none; }
.ds-home-national .ds-home-leader {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: var(--space-md);
    padding-block: var(--space-lg);
    border-top: 1px solid var(--ds-home-leader-rule);
    color: inherit;
    transition: transform 160ms var(--ds-ease);
}
.ds-home-leader-logo { display: block; width: 56px; height: 56px; padding: var(--space-xs); object-fit: contain; background: var(--ds-paper); border-radius: var(--space-xs); }
.ds-home-national .ds-home-leader.ds-home-leader-no-logo { grid-template-columns: minmax(0, 1fr) auto; }
.ds-home-national .ds-home-leader-name strong { font-size: 19px; font-weight: 500; line-height: 1.3; }
.ds-home-national .ds-home-leader-name small { margin-top: var(--space-xs); color: inherit; font-size: 12px; }
.ds-home-national .ds-home-leader > b { font-size: 36px; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; }
.ds-home-leaders li:first-child .ds-home-leader { padding-block: var(--space-lg) var(--ds-gap); }
.ds-home-leaders li:first-child .ds-home-leader > b { font-size: 56px; }
.ds-home-leaders-note { padding-top: var(--space-lg); border-top: 1px solid var(--ds-home-leader-rule); font-size: 12px; }
.ds-home-national > .text-link { margin-top: var(--space-xs); color: inherit; }
.ds-home-national a:hover { color: inherit; }
.ds-home-national .ds-home-leader:hover { transform: translateX(4px); }
.ds-home-national a:focus-visible { outline-color: var(--ds-accent-ink); }
.ds-home-national a:active { transform: translateY(1px); }
.ds-home-editorial { padding-block: var(--space-2xl); border-top: 1px solid var(--ds-rule); }
.ds-home-editorial .section-head { align-items: end; }
.ds-home-editorial .section-head h2 { max-width: 17ch; }
.ds-home-stories { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: repeat(2, auto); gap: var(--ds-gap); }
.ds-home-story { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: var(--space-lg); align-items: center; padding-bottom: var(--space-lg); border-bottom: 1px solid var(--ds-rule); }
.ds-home-story-featured { grid-row: 1 / 3; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; border: 0; background: var(--ds-paper-2); }
.ds-home-story-picture { margin: 0; }
.ds-home-story-picture > a { display: block; }
.ds-home-story-picture img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.ds-home-story-featured .ds-home-story-picture img { aspect-ratio: 16 / 9; }
.ds-home-story-picture figcaption { padding-inline: var(--space-md); }
.ds-home-story-featured .ds-home-story-copy { display: flex; flex: 1; flex-direction: column; align-items: start; padding: var(--space-lg); }
.ds-home-story h3 { margin-top: var(--space-sm); font-size: clamp(21px, 1.9vw, 27px); line-height: 1.2; text-wrap: balance; }
.ds-home-story-featured h3 { max-width: 22ch; font-size: clamp(28px, 2.8vw, 40px); }
.ds-home-story-excerpt { margin-top: var(--space-md); color: var(--ds-muted); font-size: 14px; }
.ds-home-story-copy > .text-link { margin-top: var(--space-md); }
.ds-home-story-featured .text-link { margin-top: auto; padding-top: var(--space-lg); }
.ds-home-method { padding-block: var(--space-2xl); background: var(--ds-paper-2); }
.ds-home-method .section-head { margin-bottom: var(--ds-gap); }
.ds-home-weight-bar { display: flex; gap: var(--space-2xs); height: 24px; }
.ds-home-weight-bar > span { flex: var(--home-weight) 1 0; background: var(--home-factor); }
.ds-home-weight-rating { --home-factor: var(--ds-home-factor-rating); }
.ds-home-weight-reviews { --home-factor: var(--ds-home-factor-reviews); }
.ds-home-weight-iks { --home-factor: var(--ds-home-factor-iks); }
.ds-home-weight-age { --home-factor: var(--ds-home-factor-age); }
.ds-home-factors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ds-gap); margin-top: var(--space-lg); }
.ds-home-factor-value { display: flex; align-items: baseline; gap: var(--space-xs); font-size: 56px; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.ds-home-factor-value > span { color: var(--ds-muted); font-size: 12px; letter-spacing: 0; }
.ds-home-factor h3 { margin-top: var(--space-lg); font-size: 20px; line-height: 1.25; letter-spacing: -.025em; text-wrap: balance; }
.ds-home-factor > p:last-child { margin-top: var(--space-sm); font-size: 14px; color: var(--ds-muted); }
.ds-home-method-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-lg); margin-top: var(--ds-gap); padding-top: var(--space-lg); border-top: 1px solid var(--ds-rule); }
.ds-home-method-foot .ds-calculation-note { max-width: 65ch; margin: 0; }
.ds-home-method-foot .text-link { flex-shrink: 0; }
.ds-home-about { padding-block: var(--space-2xl); background: var(--ds-paper); }
.ds-home-about .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.ds-home-about .about-grid:not(.has-visual) { grid-template-columns: minmax(0, 1fr); }
.ds-home-about-picture { margin: 0; background: var(--ds-paper); }
.ds-home-about-picture img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.ds-home-about h2 { max-width: 17ch; color: var(--ds-ink); }
.ds-home-about .about-copy > p { margin-top: var(--space-lg); }
.ds-home-about .about-copy > .text-link { margin-top: var(--space-md); }
.ds-home-contribute { padding-block: 0 var(--space-2xl); }
.ds-home-contribute .cta-panel { padding-block: var(--space-xl); border-top: 1px solid var(--ds-rule); border-bottom: 1px solid var(--ds-rule); }
.ds-home-contribute h2 { max-width: 24ch; font-size: 32px; }
@media (max-width: 1100px) {
    .ds-home-entry .hero-grid { column-gap: var(--ds-gap); }
    .ds-home-national { padding: var(--space-lg); }
    .ds-home-national .ds-home-leader { grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: var(--space-sm); }
    .ds-home-leader-logo { width: 44px; height: 44px; padding: var(--space-2xs); }
    .ds-home-national .ds-home-leader > b { font-size: 30px; }
    .ds-home-leaders li:first-child .ds-home-leader > b { font-size: 44px; }
    .ds-home-leaders-head h2 { font-size: 25px; }
    .ds-home-story { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
    .ds-home-story-featured { display: flex; }
    .ds-home-story:not(.ds-home-story-featured) .ds-home-story-picture img { aspect-ratio: 16 / 9; max-height: 180px; }
    .ds-home-factors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .ds-home-entry .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
    .ds-home-entry .hero-copy { max-width: 650px; }
    .ds-home-entry h1 { font-size: clamp(40px, 7.5vw, 60px); }
    .ds-home-national { max-width: none; }
    .ds-home-city-links .ds-all-cities { margin-left: 0; }
    .ds-home-leaders-head h2 { max-width: none; }
    .ds-home-leaders li:first-child .ds-home-leader > b { font-size: 48px; }
    .ds-home-national .ds-home-leader-name strong { font-size: 20px; }
}
@media (max-width: 760px) {
    .ds-home-entry .hero-grid { padding-block: var(--space-xl); }
    .ds-home-entry h1 { font-size: clamp(40px, 7.5vw, 58px); }
    .ds-home-national { padding: var(--space-lg); }
    .ds-home-leaders-head { padding-bottom: var(--space-md); }
    .ds-home-leaders-head h2 { max-width: 15ch; font-size: 25px; }
    .ds-home-national .ds-home-leader-name strong { font-size: 17px; }
    .ds-home-leaders li:first-child .ds-home-leader { padding-block: var(--space-lg); }
    .ds-home-leaders li:first-child .ds-home-leader > b { font-size: 36px; }
    .ds-home-national .ds-home-leader { column-gap: var(--space-sm); }
    .ds-home-national .ds-home-leader > b { font-size: 30px; }
    .ds-home-editorial, .ds-home-method, .ds-home-about { padding-block: var(--space-xl); }
    .ds-home-stories { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
    .ds-home-story-featured { grid-row: auto; }
    .ds-home-story:not(.ds-home-story-featured) { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
    .ds-home-story:not(.ds-home-story-featured) .ds-home-story-picture img { aspect-ratio: 1 / 1; max-height: none; }
    .ds-home-story h3 { font-size: 21px; }
    .ds-home-story-featured h3 { font-size: 30px; }
    .ds-home-story .ds-caption { font-size: 12px; }
    .ds-home-factors { gap: var(--space-xl) var(--space-lg); }
    .ds-home-factor-value { font-size: 48px; }
    .ds-home-factor h3 { font-size: 19px; margin-top: var(--space-md); }
    .ds-home-method-foot { display: block; }
    .ds-home-method-foot .text-link { margin-top: var(--space-md); }
    .ds-home-about .about-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
    .ds-home-about-picture img { aspect-ratio: 4 / 3; }
    .ds-home-about .about-copy h2 { font-size: 36px; }
    .ds-home-contribute { padding-bottom: var(--space-xl); }
    .ds-home-contribute .cta-panel { padding-block: var(--space-xl); }
    .ds-home-contribute h2 { font-size: 28px; }
}
@media (max-width: 360px) {
    .ds-home-entry h1 { font-size: 36px; }
    .ds-home-city-links { column-gap: var(--space-md); }
    .ds-home-national { padding-inline: var(--space-md); }
    .ds-home-national .ds-home-leader { grid-template-columns: 36px minmax(0, 1fr) auto; column-gap: var(--space-xs); }
    .ds-home-leader-logo { width: 36px; height: 36px; }
    .ds-home-leaders li:first-child .ds-home-leader > b { font-size: 32px; }
    .ds-home-national .ds-home-leader > b { font-size: 26px; }
    .ds-home-story:not(.ds-home-story-featured) { grid-template-columns: minmax(0, 1fr); }
    .ds-home-story:not(.ds-home-story-featured) .ds-home-story-picture img { aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) {
    .ds-home-city-links .ds-all-cities, .ds-home-national .ds-home-leader { transition: none; }
}
