:root {
    --paper: #f4efe5;
    --paper-deep: #e9dfcf;
    --ink: #28291f;
    --muted: #6c6a5e;
    --olive: #5b6042;
    --olive-dark: #3d432e;
    --terracotta: #a95638;
    --sand: #d3b888;
    --cream: #fffaf1;
    --line: rgba(61, 67, 46, .18);
    --shadow: 0 24px 70px rgba(64, 50, 35, .12);
    --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 112px 0; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; transform: translateY(-150%); background: var(--ink); color: white; padding: 10px 14px; }
.skip-link:focus { transform: none; }

.site-header {
    position: sticky; z-index: 30; top: 0; background: rgba(244, 239, 229, .92);
    border-bottom: 1px solid var(--line); backdrop-filter: blur(14px);
}
.header-inner { min-height: 82px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: var(--cream); background: var(--olive); font: 700 22px/1 Georgia, serif; }
.brand b, .brand small { display: block; }
.brand b { font: 700 18px/1 Georgia, serif; letter-spacing: .16em; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.site-nav { justify-self: center; display: flex; gap: 30px; }
.site-nav a { position: relative; color: var(--muted); font-size: 14px; text-decoration: none; }
.site-nav a::after { content: ""; position: absolute; right: 0; bottom: -8px; left: 0; height: 1px; background: var(--terracotta); transform: scaleX(0); transition: transform .2s; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
.header-contacts { display: grid; text-align: right; }
.header-contacts a { font-size: 13px; text-decoration: none; }
.header-contacts a:first-child { font-weight: 700; }
.header-contacts a:last-child { color: var(--muted); }
.menu-toggle { display: none; }

.hero { position: relative; min-height: 690px; display: grid; align-items: center; overflow: hidden; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: center; padding-block: 86px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 22px; color: var(--terracotta); font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.04; }
h1 { max-width: 760px; margin-bottom: 28px; font-size: clamp(52px, 6vw, 86px); letter-spacing: -.045em; }
h2 { margin-bottom: 24px; font-size: clamp(38px, 4vw, 58px); letter-spacing: -.035em; }
.hero-lead { max-width: 650px; margin: 0; color: var(--muted); font-size: 20px; }
.hero-actions { display: flex; gap: 14px; margin-top: 38px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; padding: 0 24px; cursor: pointer; font-weight: 700; text-decoration: none; transition: transform .2s, background .2s, color .2s, opacity .2s; }
.button:hover { transform: translateY(-2px); }
.button:disabled { cursor: wait; opacity: .6; transform: none; }
.button-primary { color: white; background: var(--terracotta); }
.button-primary:hover { background: #91442d; }
.button-ghost { border-color: var(--line); color: var(--olive-dark); background: transparent; }
.hero-note { display: flex; max-width: 530px; gap: 12px; align-items: flex-start; margin-top: 34px; color: var(--muted); font-size: 13px; }
.hero-note span { color: var(--terracotta); }
.hero-note p { margin: 0; }
.hero-visual { position: relative; min-height: 500px; border-radius: 220px 220px 32px 32px; background: linear-gradient(165deg, #e5cfa7, #c99367 64%, #9b5c3b); box-shadow: var(--shadow); overflow: hidden; }
.sun-disc { position: absolute; top: 70px; right: 76px; width: 154px; height: 154px; border-radius: 50%; background: rgba(255, 242, 198, .82); box-shadow: 0 0 60px rgba(255, 230, 163, .4); }
.landscape { position: absolute; right: -10%; bottom: -12%; left: -10%; border-radius: 50% 50% 0 0; transform: rotate(-4deg); }
.landscape-back { height: 46%; background: #7d7d55; opacity: .76; }
.landscape-front { height: 30%; background: #4e5439; transform: rotate(4deg); }
.hero-card { position: absolute; right: 22px; bottom: 22px; left: 22px; padding: 24px; border: 1px solid rgba(255,255,255,.35); border-radius: 20px; color: white; background: rgba(54, 55, 38, .78); backdrop-filter: blur(14px); }
.hero-card span, .hero-card small { display: block; color: rgba(255,255,255,.72); }
.hero-card strong { display: block; margin: 4px 0; font: 500 38px/1.15 Georgia, serif; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(1px); opacity: .34; }
.hero-orb-one { top: -160px; left: -140px; width: 420px; height: 420px; background: var(--sand); }
.hero-orb-two { right: -180px; bottom: -200px; width: 500px; height: 500px; background: #c06b48; }

.numbers { border-block: 1px solid var(--line); background: rgba(255,250,241,.38); }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.numbers-grid div { display: grid; gap: 5px; padding: 32px 30px; border-right: 1px solid var(--line); }
.numbers-grid div:first-child { padding-left: 0; }
.numbers-grid div:last-child { border: 0; }
.numbers-grid strong { font: 500 34px/1 Georgia, serif; color: var(--olive-dark); }
.numbers-grid span { color: var(--muted); font-size: 13px; }

.catalog { background: var(--cream); }
.section-heading { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: end; }
.section-heading h2 { max-width: 700px; margin: 0; }
.section-heading > p { max-width: 500px; margin: 0 0 8px; color: var(--muted); }
.filter-panel { margin-top: 54px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 12px 40px rgba(66, 57, 44, .06); }
.status-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { min-height: 40px; max-width: 100%; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; color: var(--muted); background: transparent; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; cursor: pointer; }
.filter-chip.is-active { border-color: var(--olive); color: white; background: var(--olive); }
.filter-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.filter-fields select, .filter-fields input { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 15px; color: var(--ink); background: #fbf8f2; outline: none; }
.filter-fields select:focus, .filter-fields input:focus { border-color: var(--olive); box-shadow: 0 0 0 3px rgba(91, 96, 66, .12); }
.search-field { position: relative; }
.search-field span { position: absolute; z-index: 1; top: 10px; left: 15px; color: var(--muted); font-size: 22px; }
.search-field input { padding-left: 43px; }
.catalog-meta { display: flex; justify-content: space-between; gap: 20px; margin: 25px 0 18px; color: var(--muted); font-size: 13px; }
.catalog-meta p { margin: 0; }
.draft-note { text-align: right; }
.object-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.object-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.object-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.object-card[hidden] { display: none; }
.object-media, .dialog-media { position: relative; overflow: hidden; isolation: isolate; }
.object-media { width: 100%; height: 245px; min-height: 245px; max-height: 245px; border: 0; padding: 0; text-align: left; cursor: pointer; }
.dialog-media { height: 100%; min-height: 0; max-height: none; }
.object-media > img, .dialog-media > img, .dialog-media > video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: 100%; z-index: 0; }
.object-media > img { object-fit: cover; }
.dialog-media > img, .dialog-media > video { object-fit: contain; padding: 20px; box-sizing: border-box; }
.dialog-media { background-size: cover; background-position: center; }
.object-media > img, .dialog-media > img { filter: sepia(.28) saturate(1.24) contrast(1.05) brightness(1.02) hue-rotate(-4deg); }
.object-media.has-image .media-shape { display: none; }
.media-sand { background: linear-gradient(145deg, #ead7b3, #bd8d61); }
.media-olive { background: linear-gradient(145deg, #abb08a, #5e6443); }
.media-terracotta { background: linear-gradient(145deg, #db9a79, #9a4933); }
.media-clay { background: linear-gradient(145deg, #c5a083, #745346); }
.media-forest { background: linear-gradient(145deg, #98a17f, #374733); }
.media-shape { position: absolute; z-index: -1; border-radius: 50%; background: rgba(255,255,255,.22); }
.media-shape-one { width: 250px; height: 250px; top: -90px; right: -45px; }
.media-shape-two { width: 310px; height: 160px; bottom: -80px; left: -75px; border-radius: 50% 50% 12px 12px; background: rgba(42, 47, 32, .28); transform: rotate(8deg); }
.media-index { position: absolute; top: 18px; left: 18px; color: rgba(255,255,255,.78); font: 500 22px/1 Georgia, serif; }
.media-placeholder { position: absolute; right: 18px; bottom: 18px; border: 1px solid rgba(255,255,255,.42); border-radius: 999px; padding: 8px 12px; color: white; background: rgba(45, 43, 32, .18); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(8px); }
.object-body { padding: 23px; }
.object-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.object-tags span { border-radius: 999px; padding: 6px 9px; color: var(--olive-dark); background: #eeeade; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.object-body h3 { margin: 18px 0 8px; font-size: 26px; }
.object-body > p { margin: 0; color: var(--muted); font-size: 14px; }
.object-footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 27px; padding-top: 18px; border-top: 1px solid var(--line); }
.object-footer > span { color: var(--muted); font-size: 12px; }
.object-footer button { border: 0; padding: 0; color: var(--terracotta); background: transparent; cursor: pointer; font-weight: 700; }
.empty-state { padding: 60px 20px; text-align: center; color: var(--muted); }

.approach { color: white; background: var(--olive-dark); }
.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 120px; }
.approach-copy { position: sticky; top: 130px; align-self: start; }
.approach-copy p:last-child { max-width: 500px; color: rgba(255,255,255,.68); font-size: 18px; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 70px 1fr; gap: 20px; padding: 36px 0; border-top: 1px solid rgba(255,255,255,.16); }
.steps li:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.steps > li > span { color: #d9b47b; font: 500 25px/1 Georgia, serif; }
.steps h3 { margin: 0 0 10px; font-size: 27px; }
.steps p { margin: 0; color: rgba(255,255,255,.64); }

.request { background: #d7c39f; }
.request-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: start; }
.request-copy > p:not(.eyebrow) { color: #655c4e; font-size: 18px; }
.contact-list { display: grid; gap: 12px; margin-top: 42px; }
.contact-list a { display: grid; padding: 15px 0; border-bottom: 1px solid rgba(40,41,31,.2); text-decoration: none; }
.contact-list span { color: #746955; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.contact-list strong { font-size: 18px; }
.request-form { display: grid; gap: 17px; padding: 36px; border-radius: var(--radius); background: var(--cream); box-shadow: var(--shadow); }
.request-form label { display: grid; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.request-form input, .request-form select, .request-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px; color: var(--ink); background: white; font-size: 15px; font-weight: 400; letter-spacing: 0; outline: none; }
.request-form input:focus, .request-form select:focus, .request-form textarea:focus { border-color: var(--olive); box-shadow: 0 0 0 3px rgba(91,96,66,.11); }
.request-form textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.consent { grid-template-columns: auto 1fr !important; gap: 10px !important; align-items: start; color: var(--muted); font-weight: 400 !important; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--olive); }
.button-wide { width: 100%; }
.honeypot { position: absolute !important; left: -9999px; }
.form-status { min-height: 22px; margin: 0; font-size: 13px; }
.form-status.is-success { color: #31643a; }
.form-status.is-error { color: #9a3e2b; }
.captcha-dialog { width: min(470px, calc(100% - 30px)); border: 0; border-radius: 22px; padding: 0; color: var(--ink); background: var(--cream); box-shadow: 0 30px 100px rgba(0,0,0,.35); }
.captcha-dialog::backdrop { background: rgba(32,31,25,.72); backdrop-filter: blur(5px); }
.captcha-box { position: relative; display: grid; gap: 16px; padding: 34px; }
.captcha-box h2 { margin: 0; font-size: 38px; }
.captcha-box > p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.55; }
.captcha-box label { display: grid; gap: 7px; font-size: 12px; font-weight: 700; }
.captcha-box input { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px; color: var(--ink); background: white; font-size: 20px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; outline: none; }
.captcha-box input:focus { border-color: var(--olive); box-shadow: 0 0 0 3px rgba(91,96,66,.11); }
.captcha-image-button { overflow: hidden; width: 220px; max-width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 0; background: white; cursor: pointer; }
.captcha-image-button img { display: block; width: 220px; max-width: 100%; height: 72px; }
.captcha-close { position: absolute; top: 12px; right: 14px; border: 0; color: var(--muted); background: transparent; font-size: 30px; cursor: pointer; }
.captcha-status { min-height: 20px; margin: 0; color: #9a3e2b; font-size: 13px; }

.site-footer { padding: 60px 0 28px; color: rgba(255,255,255,.78); background: #25291d; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 50px; align-items: start; }
.brand-light { color: white; }
.brand-light .brand-mark { color: var(--ink); background: #d9b47b; }
.brand-light small { color: rgba(255,255,255,.54); }
.footer-grid > p { margin: 0; color: rgba(255,255,255,.58); }
.footer-contacts { display: grid; justify-items: end; }
.footer-contacts a { text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.44); font-size: 11px; }

.object-dialog { width: min(1180px, calc(100% - 32px)); height: min(700px, calc(100dvh - 32px)); max-height: calc(100dvh - 32px); border: 0; border-radius: 28px; padding: 0; color: var(--ink); background: var(--cream); box-shadow: 0 30px 100px rgba(0,0,0,.35); overflow: hidden; }
.object-dialog[open] { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(350px, .85fr); }
.object-dialog::backdrop { background: rgba(32, 31, 25, .72); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; z-index: 3; top: 12px; right: 12px; width: 60px; height: 60px; border: 0; border-radius: 12px; padding: 0; color: transparent; background: transparent; cursor: pointer; font-size: 0; line-height: 0; transition: background .2s ease; }
.dialog-close::before, .dialog-close::after { position: absolute; top: 50%; left: 50%; width: 27px; height: 5px; border-radius: 3px; background: white; content: ""; filter: drop-shadow(1px 0 #181914) drop-shadow(-1px 0 #181914) drop-shadow(0 1px #181914) drop-shadow(0 -1px #181914) drop-shadow(0 3px 4px rgba(0,0,0,.48)); transition: transform .2s ease; }
.dialog-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.dialog-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.dialog-close:hover { background: rgba(20,20,16,.22); }
.dialog-close:hover::before { transform: translate(-50%, -50%) rotate(45deg) scale(1.1); }
.dialog-close:hover::after { transform: translate(-50%, -50%) rotate(-45deg) scale(1.1); }
.dialog-close:focus-visible { outline: 2px solid white; outline-offset: 2px; background: rgba(20,20,16,.22); }

.dialog-content { align-self: center; min-width: 0; padding: 38px; }
.dialog-content h2 { margin: 18px 0 7px; font-size: 40px; }
.dialog-content > p { max-width: 700px; color: var(--muted); }
.dialog-type { color: var(--terracotta) !important; font-weight: 700; }
.dialog-features { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0; }
.dialog-features button, .dialog-features a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; color: var(--muted); background: transparent; font: inherit; font-size: 12px; text-decoration: none; cursor: pointer; }
.dialog-features button:hover, .dialog-features a:hover, .dialog-features .is-active { border-color: var(--olive); color: var(--olive-dark); background: rgba(91,96,66,.08); }
.dialog-features button:disabled, .dialog-features .is-disabled { opacity: .38; cursor: not-allowed; pointer-events: none; }
.carousel-arrow { position: absolute; z-index: 2; top: 50%; width: 64px; height: 88px; border: 0; border-radius: 12px; padding: 0; color: transparent; background: transparent; font-size: 0; line-height: 0; cursor: pointer; transform: translateY(-50%); transition: background .2s ease; }
.carousel-arrow::before { position: absolute; top: 50%; left: 50%; width: 23px; height: 23px; border-top: 5px solid white; border-right: 5px solid white; border-radius: 2px; content: ""; filter: drop-shadow(1px 0 #181914) drop-shadow(-1px 0 #181914) drop-shadow(0 1px #181914) drop-shadow(0 -1px #181914) drop-shadow(0 3px 4px rgba(0,0,0,.48)); transition: transform .2s ease, filter .2s ease; }
.carousel-prev::before { transform: translate(-42%, -50%) rotate(-135deg); }
.carousel-next::before { transform: translate(-58%, -50%) rotate(45deg); }
.carousel-arrow:hover { background: linear-gradient(90deg, rgba(20,20,16,.22), transparent); }
.carousel-next:hover { background: linear-gradient(-90deg, rgba(20,20,16,.22), transparent); }
.carousel-prev:hover::before { transform: translate(-42%, -50%) rotate(-135deg) scale(1.1); }
.carousel-next:hover::before { transform: translate(-58%, -50%) rotate(45deg) scale(1.1); }
.carousel-arrow:focus-visible { outline: 2px solid white; outline-offset: 2px; background: rgba(20,20,16,.22); }
.carousel-prev { left: 6px; }.carousel-next { right: 6px; }
.carousel-counter { position: absolute; z-index: 2; right: 18px; bottom: 16px; border-radius: 999px; padding: 7px 11px; color: white; background: rgba(34,34,28,.58); font-size: 12px; }

/* Company history */
.history-hero { padding: 110px 0 56px; background: linear-gradient(135deg, var(--paper), #e8e2d4); }
.history-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: end; }
.history-hero h1 { max-width: 850px; margin: 0; font-size: clamp(54px, 7vw, 105px); }
.history-intro { padding-bottom: 12px; }
.history-intro p { margin: 0 0 28px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.history-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 76px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: rgba(255,255,255,.58); }
.history-facts div { padding: 25px; border-right: 1px solid var(--line); }
.history-facts div:last-child { border-right: 0; }
.history-facts strong, .history-facts span { display: block; }
.history-facts strong { color: var(--olive-dark); font-family: Georgia, serif; font-size: 30px; }
.history-facts span { margin-top: 6px; color: var(--muted); font-size: 13px; }
.history-projects { background: var(--cream); }
.history-heading { margin-bottom: 42px; }
.history-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.history-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 12px 35px rgba(66,57,44,.05); }
.history-card-media { position: relative; height: 260px; overflow: hidden; background: #ddd6c7; }
.history-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.history-card:hover .history-card-media img { transform: scale(1.035); }
.history-card-media span { position: absolute; right: 16px; bottom: 16px; border-radius: 999px; padding: 8px 13px; color: white; background: rgba(54,55,38,.82); font-size: 13px; }
.history-card-body { padding: 22px; }
.history-card-body h2 { margin: 5px 0 9px; font-size: 27px; }
.history-card-body > p:not(.history-year) { min-height: 44px; margin: 0; color: var(--muted); line-height: 1.5; }
.history-year { margin: 0; color: var(--terracotta); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.history-card dl { display: flex; justify-content: space-between; gap: 20px; margin: 20px 0 0; padding-top: 15px; border-top: 1px solid var(--line); }
.history-card dt { color: var(--muted); }
.history-card dd { margin: 0; color: var(--olive-dark); font-weight: 700; }
.history-cta { background: var(--olive-dark); color: white; }
.history-cta-inner { display: flex; justify-content: space-between; gap: 40px; align-items: end; }
.history-cta h2 { max-width: 760px; margin: 0; }
.history-cta .eyebrow { color: #d8c8a8; }
.history-cta .button-primary { color: var(--olive-dark); background: white; }

@media (max-width: 980px) {
    .history-hero-grid { grid-template-columns: 1fr; gap: 35px; }
    .history-grid { grid-template-columns: repeat(2, 1fr); }
    .history-facts { grid-template-columns: 1fr 1fr; }
    .history-facts div:nth-child(2) { border-right: 0; }
    .history-facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .object-dialog { width: min(920px, calc(100% - 32px)); height: auto; max-height: calc(100dvh - 32px); overflow: auto; }
    .object-dialog[open] { display: block; }
    .dialog-media { height: clamp(320px, 55dvh, 430px); min-height: clamp(320px, 55dvh, 430px); max-height: 430px; }
    .header-inner { grid-template-columns: auto auto; justify-content: space-between; }
    .header-contacts { display: none; }
    .menu-toggle { display: grid; width: 44px; height: 44px; align-content: center; gap: 5px; border: 0; border-radius: 50%; padding: 11px; background: rgba(91,96,66,.1); cursor: pointer; }
    .menu-toggle > span:not(.sr-only) { display: block; height: 2px; background: var(--olive-dark); }
    .site-nav { position: absolute; top: 81px; right: 0; left: 0; display: none; padding: 20px 24px 28px; border-bottom: 1px solid var(--line); background: var(--paper); }
    .site-nav.is-open { display: grid; gap: 18px; }
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 42px; }
    .object-grid { grid-template-columns: repeat(2, 1fr); }
    .approach-grid, .request-grid { gap: 55px; }
}

@media (max-width: 720px) {
    .history-hero { padding: 70px 0 40px; }
    .history-hero h1 { font-size: clamp(44px, 13vw, 65px); }
    .history-facts { margin-top: 48px; }
    .history-facts div { padding: 19px 15px; }
    .history-facts strong { font-size: 24px; }
    .history-grid { grid-template-columns: 1fr; }
    .history-card-media { height: 235px; }
    .history-cta-inner { align-items: flex-start; flex-direction: column; }
    .shell { width: min(100% - 30px, 620px); }
    .section { padding: 76px 0; }
    .header-inner { min-height: 70px; }
    .brand-mark { width: 38px; height: 38px; }
    .brand b { font-size: 16px; }
    .brand small { display: none; }
    .site-nav { top: 69px; }
    .hero { min-height: auto; }
    .hero-grid { grid-template-columns: 1fr; padding: 64px 0 50px; }
    h1 { font-size: clamp(45px, 14vw, 66px); }
    .hero-lead { font-size: 17px; }
    .hero-copy { min-width: 0; }
    .hero-actions { align-items: flex-start; flex-direction: column; max-width: 100%; }
    .hero-actions .button {
        width: auto;
        max-width: 100%;
        min-height: 46px;
        padding: 0 18px;
        font-size: 14px;
        line-height: 1.25;
        text-align: center;
        white-space: normal;
    }
    .hero-visual { min-height: 390px; }
    .numbers-grid { grid-template-columns: 1fr 1fr; }
    .numbers-grid div { padding: 24px 18px; border-bottom: 1px solid var(--line); }
    .numbers-grid div:nth-child(2) { border-right: 0; }
    .section-heading, .approach-grid, .request-grid { grid-template-columns: 1fr; gap: 38px; }
    .section-heading { align-items: start; }
    .filter-panel { margin-top: 34px; padding: 15px; }
    .filter-fields, .form-row { grid-template-columns: 1fr; }
    .catalog-meta { align-items: flex-start; flex-direction: column; }
    .draft-note { text-align: left; }
    .object-grid { grid-template-columns: 1fr; }
    .object-media { min-height: 230px; }
    .approach-copy { position: static; }
    .steps li { grid-template-columns: 55px 1fr; }
    .request-form { padding: 24px 18px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-contacts { justify-items: start; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
    .dialog-content { padding: 25px 20px; }
    .dialog-content h2 { font-size: 36px; }
    .dialog-media { height: clamp(320px, 55dvh, 430px); min-height: clamp(320px, 55dvh, 430px); max-height: 430px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
