/*
Theme Name: Транс Строй — восстановленная версия
Theme URI: https://sktransstroy.ru/
Author: SK Transstroy
Description: Custom WordPress theme reconstructed from the company's 2023–2024 site archive.
Version: 1.0.3
Requires at least: 6.1
Requires PHP: 8.0
Text Domain: sktransstroy
*/

:root {
  --ink: #11131a;
  --graphite: #323441;
  --graphite-2: #3b3e50;
  --paper: #ffffff;
  --mist: #f4f5f7;
  --line: #e3e5ea;
  --muted: #777b8c;
  --blue: #2f4fd0;
  --sand: #cbc0b8;
  --header-h: 86px;
  --shell: min(1180px, calc(100vw - 48px));
  --serif: "Noto Serif", Georgia, serif;
  --sans: "Noto Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.dialog-open, body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
address { font-style: normal; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.18; }
h1 { font-size: clamp(2.8rem, 5vw, 5.3rem); letter-spacing: -0.045em; }
h2 { font-size: clamp(2.15rem, 3.7vw, 3.8rem); letter-spacing: -0.035em; }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.45rem); }
::selection { color: white; background: var(--blue); }
:focus-visible { outline: 3px solid #6d87ff; outline-offset: 3px; }

.screen-reader-text { 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: 9999; left: 16px; top: -100px; padding: 10px 16px; background: white; color: black; }
.skip-link:focus { top: 16px; }
.section-shell { width: var(--shell); margin-inline: auto; }
.section { padding: clamp(80px, 9vw, 150px) 0; }
.section-label, .eyebrow { margin: 0 0 18px; color: var(--muted); font-family: var(--sans); font-size: 0.71rem; font-weight: 700; letter-spacing: 0.17em; line-height: 1.4; text-transform: uppercase; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: clamp(48px, 6vw, 84px); }
.section-heading h2 { margin-bottom: 0; }
.text-link { display: inline-flex; align-items: center; gap: 16px; padding: 9px 0; border-bottom: 1px solid currentColor; font-size: 0.88rem; font-weight: 600; }
.text-link span { transition: transform .25s ease; }
.text-link:hover span { transform: translateX(6px); }
.text-link-light { color: white; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 13px 24px; border: 1px solid var(--blue); border-radius: 0; color: white; background: var(--blue); cursor: pointer; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.button:hover { color: var(--ink); background: var(--sand); border-color: var(--sand); transform: translateY(-2px); }
.button-light { color: var(--ink); background: white; border-color: white; }
.button-light:hover { color: white; background: var(--blue); border-color: var(--blue); }

/* Header */
.site-header { position: sticky; z-index: 1000; top: 0; height: var(--header-h); color: white; background: var(--graphite); box-shadow: 0 1px 0 rgb(255 255 255 / .09); }
.admin-bar .site-header { top: 32px; }
.header-inner { width: min(1440px, 100%); height: 100%; margin: 0 auto; display: grid; grid-template-columns: 116px minmax(0, 1fr) auto; align-items: center; padding: 0 28px; }
.brand { width: 82px; height: var(--header-h); display: grid; place-items: center; background: var(--blue); }
.brand img { width: 57px; max-height: 68px; object-fit: contain; }
.site-nav { height: 100%; }
.site-nav > ul { height: 100%; display: flex; align-items: stretch; justify-content: center; gap: clamp(14px, 2vw, 34px); margin: 0; padding: 0; list-style: none; }
.site-nav > ul > li { position: relative; display: flex; align-items: center; }
.site-nav > ul > li > a { display: flex; height: 100%; align-items: center; font-size: .77rem; font-weight: 600; white-space: nowrap; }
.site-nav a { transition: color .2s ease; }
.site-nav a:hover { color: #bdc7ff; }
.has-submenu > button { margin-left: 3px; padding: 6px; border: 0; background: transparent; color: white; cursor: pointer; }
.submenu { position: absolute; z-index: 20; left: -22px; top: 100%; width: 340px; visibility: hidden; opacity: 0; transform: translateY(-8px); margin: 0; padding: 16px 22px 20px; background: var(--graphite-2); list-style: none; box-shadow: 0 18px 40px rgb(0 0 0 / .25); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.submenu li + li { border-top: 1px solid rgb(255 255 255 / .1); }
.submenu a { display: block; padding: 11px 0; font-size: .76rem; line-height: 1.35; }
.has-submenu:hover .submenu, .has-submenu:focus-within .submenu, .submenu-open .submenu { visibility: visible; opacity: 1; transform: translateY(0); }
.header-contact { display: flex; align-items: center; gap: 20px; font-size: .73rem; font-weight: 600; white-space: nowrap; }
.text-button { padding: 0 0 4px; border: 0; border-bottom: 1px solid currentColor; background: transparent; cursor: pointer; }
.menu-toggle { display: none; width: 46px; height: 46px; place-content: center; gap: 5px; padding: 10px; border: 0; color: white; background: transparent; cursor: pointer; }
.menu-toggle > span:not(.screen-reader-text) { display: block; width: 23px; height: 1px; background: currentColor; }

/* Home hero */
.hero { position: relative; isolation: isolate; color: white; background: var(--graphite); overflow: hidden; }
.hero::before { content: ""; position: absolute; z-index: -2; inset: 0; background-image: var(--hero-image); background-position: center; background-size: cover; transform: scale(1.015); animation: hero-settle 1.2s ease-out both; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgb(25 27 38 / .86) 0%, rgb(33 35 48 / .64) 52%, rgb(25 27 38 / .28) 100%); }
.hero-home { min-height: calc(100svh - var(--header-h)); max-height: 830px; }
.hero-inner { width: var(--shell); min-height: inherit; margin-inline: auto; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 72px 0 88px; }
.hero-kicker { color: #d3d5de; opacity: 0; animation: hero-in .7s .12s ease-out forwards; }
.hero h1 { max-width: 830px; margin-bottom: 30px; opacity: 0; animation: hero-in .8s .23s ease-out forwards; }
.hero-subtitle { max-width: 580px; margin-bottom: 38px; color: #e1e2e7; font-size: clamp(1rem, 1.4vw, 1.18rem); opacity: 0; animation: hero-in .8s .36s ease-out forwards; }
.hero-actions { display: flex; align-items: center; gap: 32px; opacity: 0; animation: hero-in .8s .48s ease-out forwards; }
.hero-scroll { position: absolute; right: 34px; bottom: 28px; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / .45); border-radius: 50%; color: white; }
@keyframes hero-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-settle { from { transform: scale(1.07); } to { transform: scale(1.015); } }

/* About */
.about-band { color: white; background: var(--graphite); }
.about-intro { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; padding: clamp(80px, 9vw, 140px) 0 72px; border-bottom: 1px solid rgb(255 255 255 / .15); }
.about-intro .section-label { color: #aeb1c1; }
.about-copy { max-width: 820px; margin: 0; font-family: var(--serif); font-size: clamp(1.3rem, 2.15vw, 2rem); line-height: 1.48; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 64px 0 clamp(80px, 8vw, 120px); }
.stats > div { min-height: 150px; padding: 0 34px; border-left: 1px solid rgb(255 255 255 / .15); }
.stats > div:first-child { padding-left: 0; border-left: 0; }
.stats strong { display: block; margin-bottom: 18px; font-family: var(--serif); font-size: clamp(3rem, 5vw, 5.3rem); font-weight: 400; line-height: 1; }
.stats span { max-width: 175px; display: block; color: #bec1cc; font-size: .8rem; line-height: 1.45; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.service-row { min-height: 180px; display: grid; grid-template-columns: 38px minmax(0, 1fr) 24px; gap: 18px; padding: 30px 24px 28px 0; border-bottom: 1px solid var(--line); transition: color .2s ease, background .2s ease, padding .2s ease; }
.service-row:nth-child(3n + 2), .service-row:nth-child(3n + 3) { padding-left: 24px; border-left: 1px solid var(--line); }
.service-row:hover { color: var(--blue); background: #f8f9ff; padding-left: 24px; }
.service-number { color: var(--muted); font-size: .66rem; letter-spacing: .12em; }
.service-row strong { display: block; margin-bottom: 12px; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; line-height: 1.25; }
.service-row small { display: block; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.service-arrow { justify-self: end; font-size: 1.25rem; transition: transform .2s ease; }
.service-row:hover .service-arrow { transform: translate(4px, -4px); }

/* Projects */
.projects-section { background: var(--mist); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.project-card { min-width: 0; scroll-margin-top: calc(var(--header-h) + 24px); }
.project-card > a, .project-card > img { display: block; }
.project-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.78); transition: transform .45s ease, filter .3s ease; }
.project-card > a { overflow: hidden; }
.project-card > a > div { position: relative; z-index: 2; padding: 22px 0 0; background: var(--mist); }
.project-card p { margin-bottom: 8px; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }
.project-card h3 { margin-bottom: 0; font-size: 1.18rem; }
.project-card a:hover img { transform: scale(1.035); filter: saturate(1); }

/* Permits and table */
.permit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.permit { min-height: 270px; display: grid; grid-template-columns: 160px 1fr; gap: 34px; align-items: center; padding: 30px; border: 1px solid var(--line); transition: border-color .2s ease, transform .2s ease; }
.permit:hover { border-color: var(--blue); transform: translateY(-4px); }
.permit img { width: 160px; height: 210px; object-fit: cover; object-position: top; border: 1px solid var(--line); }
.permit h3 { margin-bottom: 16px; }
.permit p { color: var(--muted); font-size: .82rem; }
.permit span { color: var(--blue); font-size: .75rem; font-weight: 700; }
.references-section { padding-top: 20px; }
.reference-disclosure { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.reference-disclosure summary { display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; cursor: pointer; font-weight: 600; list-style: none; }
.reference-disclosure summary::-webkit-details-marker { display: none; }
.reference-disclosure[open] summary span { transform: rotate(180deg); }
.table-scroll { max-height: 680px; overflow: auto; padding-bottom: 20px; }
table { width: 100%; border-collapse: collapse; font-size: .72rem; line-height: 1.5; }
th, td { min-width: 90px; padding: 13px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { position: sticky; top: 0; z-index: 1; color: white; background: var(--graphite); font-weight: 600; }
.closing-cta { padding: clamp(90px, 11vw, 170px) 0; color: white; background: var(--blue); }
.closing-cta h2 { max-width: 780px; margin-bottom: 22px; }
.closing-cta p:not(.section-label) { max-width: 600px; margin-bottom: 34px; color: #d9dfff; }
.closing-cta .section-label { color: #c8d1ff; }

/* Internal pages */
.page-hero { min-height: 410px; display: flex; align-items: end; padding: 90px 0 70px; color: white; background: var(--graphite); }
.page-hero .section-shell { position: relative; z-index: 1; }
.page-hero h1 { max-width: 1000px; margin-bottom: 0; font-size: clamp(2.8rem, 5vw, 5.1rem); }
.page-hero p:not(.eyebrow) { max-width: 720px; margin: 28px 0 0; color: #d8dae2; }
.page-hero-image { position: relative; isolation: isolate; min-height: 610px; overflow: hidden; }
.page-hero-image::before { content: ""; position: absolute; z-index: -2; inset: 0; background: var(--hero-image) center / cover no-repeat; }
.page-hero-image::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgb(27 29 39 / .88), rgb(27 29 39 / .42)); }
.page-lead { max-width: 920px; margin-bottom: clamp(50px, 7vw, 90px); font-family: var(--serif); font-size: clamp(1.35rem, 2.3vw, 2.15rem); line-height: 1.5; }
.services-media-list { border-top: 1px solid var(--line); }
.service-media { min-height: 160px; display: grid; grid-template-columns: 220px minmax(0, 1fr) 30px; align-items: center; gap: 38px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.service-media img { width: 220px; height: 124px; object-fit: cover; filter: grayscale(.15); }
.service-media strong { display: block; margin-bottom: 10px; font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.8rem); font-weight: 500; }
.service-media small { display: block; max-width: 680px; color: var(--muted); }
.service-media b { color: var(--blue); font-size: 1.4rem; transition: transform .2s ease; }
.service-media:hover b { transform: translate(4px, -4px); }
.service-content { display: grid; grid-template-columns: minmax(0, 1fr); }
.service-content > .page-lead { margin-bottom: 76px; }
.service-groups { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.service-group { padding: 34px 28px 46px 0; border-bottom: 1px solid var(--line); }
.service-group + .service-group { padding-left: 28px; border-left: 1px solid var(--line); }
.service-group h2 { margin-bottom: 28px; font-size: clamp(1.35rem, 2vw, 1.8rem); }
.service-group ul { margin: 0; padding: 0; list-style: none; }
.service-group li { position: relative; padding: 10px 0 10px 20px; border-top: 1px solid var(--line); color: #555968; font-size: .82rem; }
.service-group li::before { content: ""; position: absolute; left: 0; top: 19px; width: 5px; height: 5px; background: var(--blue); }
.project-proof { margin-top: 76px; padding: clamp(38px, 5vw, 70px); color: white; background: var(--graphite); }
.project-proof .eyebrow { color: #b8bbca; }
.project-proof dl { margin: 0; }
.project-proof dl > div { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 16px 0; border-top: 1px solid rgb(255 255 255 / .14); }
.project-proof dt { color: #adb0be; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.project-proof dd { margin: 0; }
.more-services { padding-top: 20px; background: var(--mist); }

/* Archive */
.project-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 50px; }
.project-filters button { padding: 9px 14px; border: 1px solid var(--line); background: white; cursor: pointer; font-size: .7rem; }
.project-filters button.is-active, .project-filters button:hover { color: white; background: var(--graphite); border-color: var(--graphite); }
.archive-grid { gap: 60px 26px; }
.project-card-detail { align-self: start; }
.project-card-detail[hidden] { display: none; }
.project-card-detail > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.project-card-copy { padding-top: 20px; }
.project-card-copy h2 { margin-bottom: 20px; font-size: 1.25rem; }
.project-card-copy details { border-top: 1px solid var(--line); }
.project-card-copy summary { display: flex; justify-content: space-between; padding: 13px 0; cursor: pointer; list-style: none; font-size: .73rem; font-weight: 600; }
.project-card-copy summary::-webkit-details-marker { display: none; }
.project-card-copy details > div { color: var(--muted); font-size: .75rem; }

/* News */
.news-section { background: var(--paper); }
.news-list { border-top: 1px solid var(--ink); }
.news-item { display: grid; grid-template-columns: 150px minmax(0, 1fr) 40px; gap: 34px; align-items: start; padding: 38px 0 42px; border-bottom: 1px solid var(--line); }
.news-item time { padding-top: 7px; color: var(--muted); font-size: .72rem; letter-spacing: .08em; }
.news-item h2, .news-item h3 { margin-bottom: 12px; font-size: clamp(1.55rem, 2.5vw, 2.4rem); }
.news-item h2 a, .news-item h3 a { transition: color .2s ease; }
.news-item h2 a:hover, .news-item h3 a:hover { color: var(--blue); }
.news-item p { max-width: 760px; margin-bottom: 0; color: var(--muted); }
.news-arrow { justify-self: end; padding-top: 4px; color: var(--blue); font-size: 1.5rem; transition: transform .2s ease; }
.news-item:hover .news-arrow { transform: translateX(6px); }
.news-archive .navigation { margin-top: 50px; }
.nav-links { display: flex; gap: 12px; }
.nav-links .page-numbers { padding: 9px 13px; border: 1px solid var(--line); font-size: .75rem; }
.nav-links .current { color: white; background: var(--graphite); border-color: var(--graphite); }
.news-hero h1 { max-width: 1120px; }
.news-article .section-shell { max-width: 920px; }
.news-article-body { font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.8; }
.news-article-body .news-lead { font-family: var(--serif); font-size: clamp(1.55rem, 2.5vw, 2.25rem); line-height: 1.5; }
.news-article-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.news-back { margin-top: 60px; }

/* About, contacts, legal */
.narrow-content { max-width: 930px; font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.9rem); line-height: 1.55; }
.about-numbers { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 90px; padding: 55px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-numbers > div { padding: 0 28px; border-left: 1px solid var(--line); }
.about-numbers > div:first-child { padding-left: 0; border-left: 0; }
.about-numbers strong { display: block; font-family: var(--serif); font-size: clamp(2.7rem, 4vw, 4.5rem); font-weight: 400; }
.about-numbers span { color: var(--muted); font-size: .77rem; }
.about-page > .section-shell:last-child { margin-top: 110px; }
.turnover-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.turnover-grid > div { padding: 32px; border-left: 1px solid var(--line); }
.turnover-grid > div:first-child { padding-left: 0; border-left: 0; }
.turnover-grid span { display: block; margin-bottom: 8px; color: var(--muted); font-size: .73rem; }
.turnover-grid strong { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(70px, 10vw, 150px); }
.contact-layout .section-label:not(:first-child) { margin-top: 36px; }
.contact-large { display: block; font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 2rem); line-height: 1.35; }
.contact-form-page { padding: clamp(34px, 5vw, 60px); background: var(--mist); }
.contact-form-page h2 { font-size: 2.3rem; }
.legal-copy { max-width: 900px; }
.legal-copy h2 { margin-top: 50px; font-size: 1.8rem; }
.legal-copy a { color: var(--blue); text-decoration: underline; }
.error-page { min-height: 70vh; display: grid; align-items: center; padding: 100px 0; }

/* Forms */
.contact-dialog { width: min(610px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: clamp(32px, 5vw, 60px); border: 0; color: var(--ink); background: white; overflow: auto; }
.contact-dialog::backdrop { background: rgb(15 17 25 / .78); backdrop-filter: blur(4px); }
.contact-dialog h2 { margin-bottom: 12px; font-size: clamp(2rem, 4vw, 3.4rem); }
.contact-dialog > p:not(.eyebrow) { margin-bottom: 30px; color: var(--muted); }
.dialog-close { position: absolute; right: 16px; top: 12px; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; font-size: 2rem; font-weight: 300; }
.contact-form { display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 7px; font-size: .72rem; font-weight: 600; }
.contact-form label span { color: var(--blue); }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid #b8bbc5; border-radius: 0; background: transparent; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 0; border-color: var(--blue); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form small { color: var(--muted); font-size: .66rem; }
.contact-form small a { text-decoration: underline; }
.honeypot { position: absolute !important; left: -9999px !important; }
.form-toast { position: fixed; z-index: 2000; right: 24px; bottom: 24px; max-width: 390px; padding: 16px 20px; color: white; background: var(--graphite); box-shadow: 0 14px 42px rgb(0 0 0 / .28); opacity: 0; transform: translateY(16px); transition: opacity .25s ease, transform .25s ease; }
.form-toast.is-visible { opacity: 1; transform: translateY(0); }

/* Footer */
.site-footer { color: white; background: var(--graphite); }
.footer-inner { width: var(--shell); margin-inline: auto; display: grid; grid-template-columns: 150px .8fr 1.45fr 1fr; gap: 56px; padding: 88px 0 70px; }
.footer-brand { width: 105px; height: 120px; display: grid; place-items: center; background: var(--blue); }
.footer-brand img { width: 68px; }
.footer-title { margin-bottom: 20px; color: #aeb1bf; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.site-footer nav { display: grid; gap: 10px; }
.site-footer nav a, .footer-contacts > a, .footer-contacts address { color: #e2e3e8; font-size: .76rem; line-height: 1.55; }
.site-footer a:hover { color: #bfc9ff; }
.footer-contacts { display: grid; align-content: start; gap: 10px; }
.footer-contacts .button { margin-top: 18px; justify-self: start; }
.footer-bottom { width: var(--shell); margin-inline: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 20px 0 26px; border-top: 1px solid rgb(255 255 255 / .12); color: #9ea1b0; font-size: .66rem; }
.footer-developer { justify-self: end; color: #858897; font-size: .6rem; }

/* Reveals */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  :root { --shell: min(940px, calc(100vw - 40px)); }
  .header-inner { grid-template-columns: 94px minmax(0, 1fr) auto; padding-inline: 20px; }
  .site-nav > ul { gap: 17px; }
  .site-nav > ul > li > a { font-size: .68rem; }
  .header-contact .text-button { display: none; }
  .footer-inner { grid-template-columns: 130px 1fr 1.3fr; }
  .footer-contacts { grid-column: 2 / 4; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .admin-bar .site-header { top: 46px; }
  .header-inner { grid-template-columns: 1fr auto; }
  .brand { width: 70px; height: 72px; }
  .brand img { width: 49px; max-height: 58px; }
  .menu-toggle { display: grid; justify-self: end; }
  .header-contact { display: none; }
  .site-nav { position: fixed; inset: var(--header-h) 0 0; height: auto; visibility: hidden; opacity: 0; transform: translateX(24px); padding: 30px 24px 60px; background: var(--graphite); overflow: auto; transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: translateX(0); }
  .admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
  .site-nav > ul { height: auto; display: block; }
  .site-nav > ul > li { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid rgb(255 255 255 / .12); }
  .site-nav > ul > li > a { min-height: 55px; font-family: var(--serif); font-size: 1.15rem; }
  .submenu { position: static; grid-column: 1 / 3; width: auto; display: none; visibility: visible; opacity: 1; transform: none; padding: 0 0 20px 16px; background: transparent; box-shadow: none; }
  .submenu-open .submenu { display: block; }
  .submenu li { border: 0 !important; }
  .submenu a { padding: 7px 0; }
  .hero-home { min-height: calc(100svh - var(--header-h)); max-height: none; }
  .about-intro { grid-template-columns: 1fr; gap: 28px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 42px 0; }
  .stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-row:nth-child(3n + 2), .service-row:nth-child(3n + 3) { padding-left: 0; border-left: 0; }
  .service-row:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid-featured .project-card:last-child { grid-column: 1 / 3; max-width: calc(50% - 13px); }
  .permit { grid-template-columns: 110px 1fr; gap: 22px; padding: 22px; }
  .permit img { width: 110px; height: 155px; }
  .service-groups { grid-template-columns: 1fr 1fr; }
  .service-group:nth-child(3) { padding-left: 0; border-left: 0; }
  .about-numbers, .turnover-grid { grid-template-columns: repeat(2, 1fr); }
  .about-numbers > div:nth-child(3), .turnover-grid > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 110px 1fr 1.2fr; gap: 36px; }
}

@media (max-width: 680px) {
  :root { --shell: calc(100vw - 32px); }
  h1 { font-size: clamp(2.45rem, 13vw, 4rem); }
  h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .section { padding: 78px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 45px; }
  .hero::after { background: linear-gradient(90deg, rgb(26 28 39 / .9), rgb(26 28 39 / .5)); }
  .hero-inner { padding: 54px 0 70px; }
  .hero h1 br { display: none; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-scroll { display: none; }
  .about-intro { padding-top: 72px; }
  .about-copy { font-size: 1.28rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div { min-height: 120px; padding: 0 14px; }
  .stats > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stats strong { font-size: 3.25rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-row, .service-row:nth-child(even), .service-row:nth-child(3n + 2), .service-row:nth-child(3n + 3) { min-height: 145px; padding: 24px 0; border-left: 0; }
  .service-row:hover { padding-left: 12px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-grid-featured .project-card:last-child { grid-column: auto; max-width: none; }
  .permit-grid { grid-template-columns: 1fr; }
  .permit { min-height: 0; }
  .page-hero { min-height: 330px; padding: 70px 0 50px; }
  .page-hero-image { min-height: 500px; }
  .service-media { grid-template-columns: 100px minmax(0, 1fr) 20px; gap: 18px; }
  .service-media img { width: 100px; height: 88px; }
  .service-media small { display: none; }
  .service-groups { grid-template-columns: 1fr; }
  .service-group, .service-group + .service-group { padding: 30px 0 38px; border-left: 0; }
  .project-proof { margin-inline: -16px; }
  .project-proof dl > div { grid-template-columns: 1fr; gap: 5px; }
  .about-numbers, .turnover-grid { grid-template-columns: 1fr 1fr; }
  .about-numbers > div, .turnover-grid > div { padding: 22px 12px !important; border-left: 0; border-bottom: 1px solid var(--line); }
  .turnover-grid strong { font-size: 1.1rem; }
  .news-item { grid-template-columns: 1fr 28px; gap: 15px; padding: 28px 0 32px; }
  .news-item time { grid-column: 1 / 3; padding-top: 0; }
  .news-item p { font-size: .85rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; padding-top: 65px; }
  .footer-brand { grid-column: 1 / 3; }
  .footer-contacts { grid-column: 1 / 3; }
  .footer-bottom { display: flex; align-items: flex-start; flex-direction: column; }
  .footer-developer { margin-top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
}
