@font-face {
  font-family: Russo One;
  src: url('./russo-one.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Russo Fallback;
  src: local('Arial Black');
  size-adjust: 92%;
}

@font-face {
  font-family: Roboto;
  src: url('./roboto.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #eff1e9;
  --white: #fcfdf8;
  --ink: #171c16;
  --muted: #586052;
  --rule: #c9cec2;
  --green: #26b718;
  --lime: #9ce955;
  --light-green: #d9f2c7;
  --dark: #1a201b;
  --dark-rule: #505a4d;
  --error: #9a201b;
  --display: 'Russo One', 'Russo Fallback', Arial, sans-serif;
  font-family: Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.5;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: inherit; line-height: 1.04; }
h1, h2 { font-family: var(--display); font-weight: 400; text-wrap: balance; overflow-wrap: anywhere; }
h1 { --heading-size: clamp(2.6rem, 6vw, 5.55rem); font-size: var(--heading-size); letter-spacing: -.035em; }
h2 { font-size: clamp(1.65rem, 3.2vw, 3.05rem); letter-spacing: -.02em; }
h3 { font-size: 1.25rem; font-weight: 600; }
a { color: inherit; text-underline-offset: .22em; }
button, input, select, textarea, summary { font: inherit; }
button, summary { cursor: pointer; }
input, select, textarea { min-width: 0; width: 100%; }
input[type=checkbox], input[type=radio] { width: auto; }
fieldset { min-inline-size: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #007738; outline-offset: 3px; }
.calc-form :focus-visible { outline-color: var(--lime); }
.wrap { width: min(100% - 80px, 1380px); margin-inline: auto; }
.lead { max-width: 49ch; font-size: clamp(1.05rem, 1.65vw, 1.26rem); line-height: 1.48; color: var(--muted); }
.accent { color: #187d0d; }
.tag { font-size: .85rem; color: var(--muted); font-weight: 600; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip:focus { position: absolute; top: .7rem; left: 1rem; z-index: 5; background: var(--white); padding: .6rem; }

.masthead { border-bottom: 1px solid var(--rule); }
.header-row { display: flex; align-items: center; gap: clamp(.8rem, 2.35vw, 2.4rem); min-height: 77px; }
.brand { display: inline-block; flex: 0 0 auto; }
.brand img { width: clamp(106px, 12vw, 171px); height: auto; }
.main-nav { display: flex; align-items: center; gap: clamp(.75rem, 1.8vw, 1.85rem); margin-left: auto; }
.main-nav a, .city-trigger, .header-calc, .mobile-nav a { font-weight: 600; text-decoration: none; }
.main-nav a:hover, .mobile-nav a:hover { text-decoration: underline; }
.city-trigger { display: inline-flex; align-items: center; gap: .55rem; padding: .55rem .75rem; border: 1px solid var(--rule); min-height: 44px; white-space: nowrap; }
.city-trigger:hover { border-color: var(--ink); }
.pixel-dot { background: var(--green); width: .55rem; height: .55rem; flex: 0 0 auto; }
.header-calc { white-space: nowrap; border-bottom: 1px solid currentColor; }
.mobile-nav { display: none; }
.crumbs { margin-block: 1.1rem 1.5rem; }
.crumb-list { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: .84rem; }
.crumb-list li:not(:last-child)::after { content: '/'; margin-left: .42rem; opacity: .65; }

.button { min-height: 50px; display: inline-flex; justify-content: space-between; align-items: center; gap: .95rem; border: 1px solid transparent; padding: .66rem 1rem; background: var(--lime); color: #12210f; text-decoration: none; font-weight: 600; line-height: 1.18; width: fit-content; }
.button span, .text-link { white-space: nowrap; }
.button:hover { background: #bcf984; }
.button:disabled { opacity: .65; cursor: wait; }
.button.soft { background: var(--white); border-color: var(--rule); }
.button.soft:hover { border-color: var(--ink); background: var(--light-green); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.45rem; align-items: center; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; }
.city-hero, .calculator-page { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4.5rem); align-items: start; }
.city-copy { min-width: 0; container-type: inline-size; }
.hero-photo { position: relative; min-height: clamp(385px, 42vw, 620px); background: #29312b; isolation: isolate; clip-path: polygon(0 12%, 8% 12%, 8% 5%, 17% 5%, 17% 0, 100% 0, 100% 89%, 93% 89%, 93% 95%, 85% 95%, 85% 100%, 0 100%); }
.hero-photo > img:first-child { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 52% 54%; }
.hero-mark { position: absolute; right: 8%; bottom: 9%; filter: drop-shadow(0 3px 3px #1324156e); }
.city-hero { margin-bottom: 2.5rem; gap: clamp(1.2rem, 3vw, 3.1rem); }
.city-page .hero-photo { min-height: clamp(455px, 47vw, 685px); }
.hero-places { display: flex; flex-wrap: wrap; gap: .65rem 1rem; align-items: center; margin-bottom: .8rem; }
.hero-places > a { font-size: .89rem; color: var(--muted); }
.status { display: inline-flex; gap: .5rem; align-items: center; background: var(--light-green); font-weight: 600; font-size: .84rem; padding: .26rem .55rem; }
.status.waiting { background: #e2e5dc; }
.status.waiting .pixel-dot { background: #647063; }
.city-copy > .lead { margin-block: .85rem 1.25rem; }
.city-copy h1 {
  --heading-size: clamp(2.3rem, 5.2vw, 5rem);
  font-size: var(--heading-size);
  /* Keep a city-name component together with its nonbreaking preposition. */
  font-size: min(var(--heading-size), 10.5cqi);
}
.city-copy:has([data-result]:not([hidden])) { align-self: start; }

.calculator { border: 1px solid #242b22; background: var(--dark); scroll-margin-top: 1rem; }
.calc-form { color: var(--white); padding: clamp(.95rem, 2vw, 1.5rem); }
.calc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .35rem .8rem; font-size: .9rem; font-weight: 600; padding-bottom: .9rem; border-bottom: 1px solid var(--dark-rule); margin-bottom: .85rem; }
.calc-head > span:first-child { display: flex; align-items: center; gap: .5rem; }
.calc-steps { font-size: .81rem; color: #c8d1c2; }
.calc-steps b { color: var(--lime); padding-inline: .13rem; }
.calc-form label, .request-form label, .catalog-search label { display: block; font-weight: 600; font-size: .91rem; }
.calc-form select, .request-form select, .catalog-search input, .catalog-search select, .request-form input:not([type=checkbox]), .request-form textarea, .city-dialog input { background: var(--white); border: 1px solid var(--rule); min-height: 46px; color: var(--ink); padding: .55rem .65rem; border-radius: 0; }
.calc-form select { background: #282f28; border-color: #697266; color: var(--white); }
.calc-city select, .business-options select, .messenger-more select, .messenger-more input, .request-form textarea, .catalog-search input, .catalog-search select { margin-top: .35rem; display: block; }
.object-select { padding: 0; margin: .75rem 0 .9rem; border: 0; }
.object-select legend { font-weight: 600; font-size: .91rem; margin-bottom: .35rem; }
.segments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .34rem; }
.segments label { position: relative; }
.segments input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.segments span { min-height: 44px; display: grid; place-items: center; width: 100%; border: 1px solid #687165; padding: .4rem .25rem; text-align: center; }
.segments input:checked + span { color: #162515; background: var(--lime); border-color: var(--lime); }
.segments input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 3px; }
.business-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-bottom: .75rem; }
.calc-action { display: flex; align-items: end; gap: .65rem; }
.calc-action .area { flex: 1; }
.calc-action .button { flex: 0 0 auto; }
.measure { display: flex; align-items: center; border: 1px solid #687165; height: 50px; padding-right: .55rem; margin-top: .3rem; background: #272d27; color: #d7e3d2; }
.measure input { min-height: 46px; border: 0; padding: .4rem .55rem; background: transparent; color: var(--white); font-variant-numeric: tabular-nums; font-size: 1.22rem; }
.measure input::placeholder { color: #a6b0a1; }
.measure span { white-space: nowrap; }
.calculator noscript { display: block; color: var(--white); padding-inline: 1rem; }
.calculator noscript p { padding-bottom: 1rem; }
.calc-result, .request-form, .receipt { background: var(--white); color: var(--ink); padding: clamp(.95rem, 2vw, 1.6rem); border-top: 1px solid var(--rule); }
.calc-result h2, .request-form h2, .receipt h2 { font-size: clamp(1.35rem, 2vw, 2.15rem); margin-bottom: .55rem; }
.calc-result p + p, .request-form > p, .receipt p + p { margin-top: .55rem; }
.calc-result ul { margin-block: .7rem; padding-left: 1.2rem; }
.calc-result .button { margin-top: .75rem; }
.calc-result .result-line { font-variant-numeric: tabular-nums; font-weight: 600; }
.request-form > label { margin-top: .88rem; }
.request-form textarea { resize: vertical; }
.request-form button[type=submit] { margin-top: .85rem; }
.username-field { display: flex; align-items: center; margin-top: .3rem; border: 1px solid var(--rule); background: var(--white); }
.username-field > span { padding: .5rem .62rem; color: #286620; font-weight: 600; border-right: 1px solid var(--rule); }
.request-form .username-field input { border: 0; min-height: 45px; }
.optional, .field-tip { color: var(--muted); font-weight: 400; font-size: .85rem; }
.messenger-more { margin-top: .75rem; }
.messenger-more summary { min-height: 44px; line-height: 44px; width: fit-content; font-weight: 600; }
.messenger-more > label { margin-bottom: .55rem; }
.request-form .consent { display: flex; gap: .62rem; align-items: start; font-weight: 400; }
.consent input { margin: .24rem 0 0; width: 1.08rem; height: 1.08rem; accent-color: #267a18; flex: 0 0 auto; }
.form-message { font-weight: 600; color: var(--error); }
.receipt-code { font-family: var(--display); font-variant-numeric: tabular-nums; word-break: break-word; font-size: 1.3rem; }
.receipt .button { margin-top: .75rem; }

.spread { display: grid; grid-template-columns: minmax(180px, .72fr) minmax(0, 2fr); gap: clamp(1.3rem, 4vw, 4.5rem); border-top: 1px solid var(--rule); padding-block: clamp(1.6rem, 4vw, 3.9rem); }
.spread-title p { margin-top: .85rem; color: var(--muted); max-width: 40ch; }
.spread-title .button { margin-top: 1rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .72rem; }
.object-card { position: relative; overflow: hidden; min-height: 167px; padding: 1rem 2.15rem 1rem 1rem; border: 1px solid var(--rule); background: var(--white); text-decoration: none; }
.object-card h3 { margin-bottom: .45rem; }
.object-card p { color: var(--muted); }
.card-arrow { position: absolute; top: .64rem; right: .7rem; font-size: 1.18rem; font-weight: 600; }
.object-card:hover, .article-card:hover, .feature-article:hover { border-color: var(--ink); background: var(--light-green); }
.object-shape { width: 44px; height: 42px; display: block; background: var(--green); margin-bottom: .75rem; clip-path: polygon(0 35%, 34% 35%, 34% 12%, 67% 12%, 67% 35%, 100% 35%, 100% 100%, 0 100%); }
.object-house .object-shape { clip-path: polygon(0 47%, 17% 47%, 17% 28%, 34% 28%, 34% 10%, 66% 10%, 66% 28%, 83% 28%, 83% 47%, 100% 47%, 100% 100%, 61% 100%, 61% 73%, 39% 73%, 39% 100%, 0 100%); }
.object-business .object-shape { clip-path: polygon(0 33%, 23% 33%, 23% 0, 67% 0, 67% 33%, 100% 33%, 100% 100%, 0 100%); }
.local-fact { margin-top: 1rem; padding-top: .7rem; border-top: 1px solid #7f9b72; }
.local-fact a { display: inline-block; margin-top: .35rem; }
.evidence { background: var(--white); border: 1px solid var(--rule); }
.evidence p { margin-top: .5rem; }
.faq { padding-block: 1.5rem 2.6rem; border-top: 1px solid var(--rule); }
.faq h2 { margin-bottom: 1rem; }
.faq details { border-bottom: 1px solid var(--rule); max-width: 75ch; }
.faq summary { padding: .72rem 0; font-weight: 600; min-height: 44px; }
.faq details p { padding-bottom: .85rem; max-width: 64ch; color: var(--muted); }

.catalog, .region-page, .interior-head { padding-block: clamp(.9rem, 2vw, 1.75rem) 1.15rem; }
.region-page { container-type: inline-size; }
.region-page h1 { font-size: min(var(--heading-size), 12.2cqi); }
.catalog .lead, .region-page .lead, .interior-head .lead { margin-top: 1rem; }
.catalog-search { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: .8rem; margin-top: 1.2rem; width: min(100%, 60ch); }
.search-note { padding-block: .4rem; font-size: .87rem; color: var(--muted); min-height: 2rem; }
.region-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.region-group, .region-directory { border: 1px solid var(--rule); background: var(--white); padding: .9rem 1rem; scroll-margin-top: 1rem; }
.region-group:target { border-color: #267a18; box-shadow: inset 4px 0 #267a18; }
.region-group h2, .region-directory h2 { font: 600 1.12rem/1.25 Roboto, sans-serif; }
.city-links { padding: 0; margin: .5rem 0 0; list-style: none; }
.city-links a, .city-hit { display: flex; justify-content: space-between; gap: .5rem; min-height: 44px; padding: .52rem 0; align-items: center; text-decoration: none; border-bottom: 1px solid #d9ded3; }
.city-links li:last-child a { border-bottom: 0; }
.city-links a:hover, .city-hit:hover { text-decoration: underline; }
.region-directory { margin-top: 1.35rem; max-width: 650px; }
.catalog-results { max-width: 650px; margin-bottom: 1.5rem; }
.city-hit small { display: block; color: var(--muted); }
.city-dialog { width: min(590px, 100% - 30px); padding: 1rem 1.25rem; border: 1px solid var(--ink); color: var(--ink); background: var(--white); }
.city-dialog::backdrop { background: #161d19ae; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.dialog-header h2 { font-size: 1.5rem; }
.plain { min-width: 44px; min-height: 44px; background: transparent; border: 1px solid var(--rule); color: var(--ink); font-size: 1.3rem; }
.search-list { max-height: min(48dvh, 360px); margin-bottom: .8rem; overflow-y: auto; }

.calculator-page { align-items: start; margin-block: clamp(1.6rem, 4vw, 4.2rem); }
.calculator-page .lead { margin-block: .8rem 1.55rem; }
.calc-mascot { margin-top: 1rem; width: 125px; height: auto; }
.schedule { background: var(--dark); padding: clamp(1.1rem, 4vw, 2.4rem); color: var(--white); }
.schedule h2 { margin-bottom: .8rem; }
.schedule > a:not(.button) { min-height: 49px; border-bottom: 1px solid var(--dark-rule); padding-block: .55rem; display: flex; justify-content: space-between; align-items: center; text-decoration: none; }
.schedule > a:not(.button):hover { color: var(--lime); }
.schedule .button { margin-top: 1rem; }

.blog-content { margin-block: 1rem 2.75rem; }
.rubric-nav { display: flex; flex-wrap: wrap; margin-bottom: 1.05rem; gap: .45rem; }
.rubric-nav a { border: 1px solid var(--rule); padding: .52rem .67rem; min-height: 44px; text-decoration: none; font-weight: 600; }
.rubric-nav a:hover { border-color: var(--ink); }
.feature-article { border: 1px solid #a7bb9c; text-decoration: none; background: var(--light-green); }
.feature-article h2 { margin-block: .6rem .85rem; max-width: 18ch; }
.feature-article p { max-width: 63ch; }
.feature-article > div > span { font-size: .88rem; font-weight: 600; }
.editorial { padding-bottom: 2.6rem; }
.editorial h1 { margin-block: .55rem .85rem; }
.byline { display: block; color: var(--muted); font-size: .88rem; margin-top: .9rem; }
.editorial-table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: 1.55rem; background: var(--white); font-variant-numeric: tabular-nums; font-size: .9rem; line-height: 1.44; }
.editorial-table caption { text-align: left; color: var(--ink); font-family: var(--display); font-size: clamp(1.25rem, 2.7vw, 1.7rem); margin-bottom: .65rem; }
.editorial-table th, .editorial-table td { border: 1px solid var(--rule); padding: .5rem .6rem; vertical-align: top; text-align: left; overflow-wrap: anywhere; }
.editorial-table th { background: var(--light-green); }
.article-body section, .sources { margin-top: 1.55rem; }
.article-body section h2, .sources h2 { font-size: clamp(1.25rem, 2.5vw, 2rem); margin-bottom: .55rem; }
.article-body section p { line-height: 1.65; }
.sources ul { margin-top: .7rem; padding-left: 1.3rem; }
.sources li + li { margin-top: .34rem; }

.footer { margin-top: 1.8rem; border-top: 1px solid var(--rule); background: #dfe5d8; }
.footer-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 1.5rem; padding-block: 1.6rem 2rem; }
.footer-grid nav { display: grid; align-content: start; gap: .55rem; }
.footer p { color: var(--muted); margin-top: .65rem; }

@media (max-width: 1180px) {
  .header-calc { display: none; }
  .city-trigger { margin-left: 0; }
  .object-card { padding-left: .8rem; }
}

@media (max-width: 920px) {
  .wrap { width: calc(100% - 42px); }
  .main-nav { display: none; }
  .header-row { gap: .8rem; min-height: 65px; }
  .city-trigger { margin-left: auto; max-width: 205px; min-width: 0; white-space: normal; line-height: 1.15; }
  .mobile-nav { display: block; position: relative; z-index: 3; }
  .mobile-nav summary { padding: .5rem .25rem; min-height: 44px; font-weight: 600; }
  .mobile-nav nav { position: absolute; right: 0; top: 100%; background: var(--white); border: 1px solid var(--rule); min-width: 205px; padding: .55rem; }
  .mobile-nav nav a { display: block; min-height: 44px; padding: .56rem; }
  .city-hero { grid-template-columns: minmax(0, 1.12fr) minmax(0, .9fr); }
  .spread { grid-template-columns: 1fr; gap: 1.05rem; }
  .city-page .hero-photo { min-height: 520px; }
  .calc-action { flex-wrap: wrap; }
  .calc-action .area { min-width: 119px; }
  .calc-action .button { flex: 1 1 auto; }
}

@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .city-hero, .calculator-page { grid-template-columns: 1fr; gap: 1rem; }
  .hero-photo, .city-page .hero-photo { min-height: clamp(225px, 69vw, 400px); }
  .hero-mark { width: 100px; height: auto; }
  .city-copy h1 { --heading-size: clamp(2.2rem, 9vw, 4.15rem); }
  .service-grid, .region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-mascot { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid section { grid-column: span 2; }
}

@media (max-width: 400px) {
  .region-grid { grid-template-columns: 1fr; }
}

@media (max-width: 385px) {
  .city-trigger { padding-inline: .38rem; font-size: .82rem; }
  .header-row { gap: .42rem; }
  .footer-grid, .catalog-search { grid-template-columns: 1fr; }
  .footer-grid section { grid-column: auto; }
  .calc-form { padding: .75rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-mark { animation: pixel-enter .5s steps(5, end) both; }
  .button, .object-card, .article-card { transition: background-color .14s, border-color .14s; }
  @keyframes pixel-enter { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }
}
