@font-face {
    font-family: Literata;
    src: url("../fonts/literata-cyrillic.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: Literata;
    src: url("../fonts/literata-latin.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
    unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}
@font-face {
    font-family: Golos;
    src: url("../fonts/golos-cyrillic.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: Golos;
    src: url("../fonts/golos-latin.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
    unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}
:root {
    color-scheme: light;
    --paper: #fff;
    --milk: #faf7f4;
    --ink: #3a2317;
    --muted: #685347;
    --gold: #e5b83b;
    --dark: #24150e;
    --edge: #d9cdc4;
    --serif: Literata, Georgia, serif;
    --sans: Golos, Arial, sans-serif;
    --gutter: clamp(20px, 5vw, 76px);
}
*, *::before, *::after { box-sizing: border-box; }
html { color: var(--ink); background: var(--paper); font-family: var(--sans); }
body { margin: 0; font-size: 1rem; line-height: 1.65; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .13em; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #8d6200; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; }
.skip-link { position: absolute; z-index: 4; top: .6rem; left: .6rem; background: var(--paper); padding: .7rem; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.site-header { background: var(--paper); }
.header-layout { display: grid; grid-template-columns: max-content 1fr max-content; align-items: center; gap: clamp(16px, 3vw, 45px); min-height: 94px; }
.brand { display: block; width: clamp(196px, 17vw, 230px); max-width: 100%; }
.brand img { width: 100%; height: auto; }
.main-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem clamp(15px, 2vw, 27px); }
.main-nav a { display: inline-flex; min-height: 42px; align-items: center; font-size: .91rem; text-decoration: none; }
.main-nav a:hover { text-decoration: underline; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: .65rem; border: 1px solid transparent; border-radius: 2px; padding: .65rem 1.07rem; background: var(--gold); color: var(--dark); font-weight: 650; font-size: .94rem; line-height: 1.2; text-align: left; text-decoration: none; }
.button:hover { background: #f0ca63; }
.button:active { background: #d8a627; }
.button-outline { background: transparent; border-color: var(--ink); }
.button-outline:hover { background: var(--milk); }
.text-link { display: inline-flex; gap: .4rem; align-items: baseline; font-weight: 650; }
.hero { background: var(--milk); padding-block: clamp(43px, 5vw, 72px) clamp(48px, 5.5vw, 86px); }
.hero-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(21px, 3vw, 44px) clamp(28px, 5vw, 75px); align-items: center; }
.hero-copy { align-self: center; }
h1, h2 { font-family: var(--serif); font-weight: 500; font-optical-sizing: auto; letter-spacing: -.045em; line-height: 1.075; text-wrap: balance; }
h1 { font-size: clamp(1.65rem, 5.15vw, 4.65rem); }
.hero h1 { grid-column: 1 / -1; max-width: 15em; }
h2 { font-size: clamp(1.95rem, 3.4vw, 3.25rem); }
h3 { font-size: clamp(1.22rem, 2vw, 1.5rem); line-height: 1.24; letter-spacing: -.025em; }
.hero-lead { max-width: 40ch; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.35rem; margin-top: 1.6rem; }
.hero-visual { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 1fr auto; align-items: end; }
.city-print { grid-column: 2 / -1; grid-row: 1 / 3; min-width: 0; }
.city-print img { width: 100%; height: auto; aspect-ratio: 1.7; object-fit: cover; object-position: center 63%; background: #e3dace; }
.city-print figcaption { margin: .5rem 0 0; color: var(--muted); font-size: .86rem; text-align: right; }
.street-print { z-index: 1; grid-column: 1 / 5; grid-row: 2; margin-bottom: 3.2rem; padding: .37rem; background: var(--paper); }
.street-print img { width: 100%; height: auto; aspect-ratio: 1.33; object-fit: cover; background: #e3dace; }
.section { padding-block: clamp(52px, 6.4vw, 96px); }
.section-heading > p { margin-top: 1.05rem; max-width: 35ch; color: var(--muted); }
.section-heading > .text-link { margin-top: 1.2rem; }
.about-layout, .partner-layout, .apply-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(18px, 6vw, 94px); align-items: start; }
.about-main { max-width: 62ch; }
.about-main p + p { margin-top: .8rem; }
blockquote { margin-top: 1.25rem; color: var(--ink); font: 500 clamp(1.25rem, 2.1vw, 1.75rem)/1.45 var(--serif); }
.projects, .partner-section { background: var(--milk); }
.section-print { margin-top: clamp(20px, 3vw, 34px); }
.section-print img { width: 100%; height: auto; object-fit: cover; background: #e3dace; }
.section-print figcaption { margin-top: .4rem; font-size: .86rem; color: var(--muted); }
.about-print { max-width: 420px; }
.projects-print { max-width: 870px; margin-left: auto; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); margin-top: clamp(24px, 4vw, 42px); }
.project { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; gap: .85rem; padding: clamp(17px, 2.5vw, 34px); border-top: 5px solid var(--gold); background: var(--paper); }
.project p { color: var(--muted); }
.project .text-link { margin-top: auto; }
.council-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 1rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.council-list li { background: var(--milk); padding: 1rem; }
.council-list img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: .5rem; }
.council-list span { display: block; }
.equipment-list { display: flex; flex-wrap: wrap; gap: .45rem .6rem; padding-left: 0; margin: 1.05rem 0 0; list-style: none; }
.equipment-list li { border: 1px solid var(--edge); border-radius: 2px; padding: .17rem .63rem; }
.apply { color: var(--paper); background: var(--ink); }
.apply .section-heading > p { color: #f0e5dc; }
.lead-panel { padding: clamp(14px, 3vw, 34px); background: var(--paper); color: var(--ink); }
.lead-menu { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.lead-menu a { display: flex; align-items: center; min-height: 44px; padding: .35rem .62rem; border: 1px solid var(--edge); text-decoration: none; font-weight: 650; line-height: 1.25; }
.lead-menu a:hover { background: var(--milk); }
.lead-menu a[aria-selected="true"] { border-color: var(--ink); color: var(--paper); background: var(--ink); }
.lead-form + .lead-form { margin-top: 1.6rem; }
.lead-form h3 { margin-bottom: .85rem; }
.lead-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.field { display: grid; align-content: start; gap: .35rem; min-width: 0; }
.field label { font-weight: 650; }
.field-full { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; min-height: 44px; border: 1px solid #9a8376; border-radius: 2px; padding: .52rem .6rem; background: #fffcfa; color: var(--dark); }
.field textarea { min-height: 5rem; resize: vertical; }
.field [aria-invalid="true"] { border: 2px solid #9b2424; }
.field-error { color: #8c2222; font-size: .88rem; }
.field-hint { color: var(--muted); font-size: .86rem; }
.consent { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: .55rem; margin-block: 1rem; font-size: .9rem; }
.consent input { width: 18px; height: 18px; margin: .14em 0 0; accent-color: var(--ink); }
.lead-status { margin: 0 0 1rem; border-left: 4px solid var(--gold); padding: .55rem .7rem; background: var(--milk); }
.lead-status:empty { display: none; }
.contact-dialog { max-width: min(720px, calc(100vw - 24px)); width: 100%; max-height: calc(100dvh - 24px); border: 0; padding: 0; color: var(--ink); background: var(--paper); }
.contact-dialog::backdrop { background: rgb(36 21 14 / 72%); }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .65rem clamp(14px, 3vw, 34px) 0; }
.dialog-top h2 { font-size: clamp(1.55rem, 3vw, 2.5rem); }
.dialog-close { width: 44px; height: 44px; color: var(--ink); background: var(--milk); border: 1px solid var(--edge); font-size: 1.6rem; }
.site-footer { padding-block: clamp(40px, 5vw, 76px); background: var(--dark); color: #f7eae0; }
.footer-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 1.1rem clamp(18px, 6vw, 94px); }
.footer-layout h2 { margin-bottom: .75rem; }
.footer-layout a { display: inline-block; margin-top: .45rem; }
.site-footer .text-link { color: #f8d675; }
.photo-credit { grid-column: 1 / -1; font-size: .86rem; }
.support { padding-block: 3.5rem; max-width: 760px; }
.support h1 { margin-block: .9rem 1.25rem; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.support p + p { margin-top: .75rem; }
@media (max-width: 1050px) {
    .header-layout { grid-template-columns: minmax(0, 1fr) max-content; gap: .1rem 1rem; padding-block: .7rem .35rem; }
    .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
}
@media (max-width: 760px) {
    .hero-layout { grid-template-columns: 1fr; gap: 1.7rem; }
    .hero h1 { max-width: 25em; font-size: clamp(1.63rem, 7.2vw, 3.35rem); }
    .hero-lead { max-width: 44ch; }
    .hero-actions { margin-top: 1.15rem; }
    .city-print { grid-column: 2 / -1; }
    .city-print img { aspect-ratio: 1.55; }
    .street-print { margin-bottom: 1.85rem; }
    .about-layout, .partner-layout, .apply-layout, .footer-layout { grid-template-columns: 1fr; gap: 1.25rem; }
    .project-grid { grid-template-columns: 1fr; }
}
@media (max-width: 410px) {
    .brand { width: clamp(132px, 46vw, 180px); }
    .header-contact { padding-inline: .55rem; font-size: .83rem; }
    .main-nav { gap: 0 .7rem; }
    .main-nav a { font-size: .85rem; min-height: 36px; }
    .lead-grid { grid-template-columns: 1fr; }
}
