:root {
  --ink: #10191c;
  --ink-soft: #1b282c;
  --paper: #f3f2ee;
  --paper-strong: #fbfaf7;
  --line: #d5dcda;
  --line-dark: rgba(232, 240, 238, .18);
  --steel: #315f69;
  --steel-bright: #82b8c2;
  --muted: #667278;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 22px 56px rgba(15, 25, 27, .12);
  --container: 1240px;
  --font: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.64;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open, body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--steel); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .72; }

.skip-link { position: fixed; z-index: 999; top: 12px; left: 12px; padding: 10px 14px; color: var(--paper); background: var(--ink); border-radius: 8px; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #b45b45; outline-offset: 4px; }

.container { width: min(var(--container), calc(100% - 96px)); margin: 0 auto; }
.section { padding: 116px 0; }
.section-tight { padding: 84px 0; }
.section-dark { color: var(--paper); background: var(--ink); }
.section-mist { background: #e7ecea; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); letter-spacing: -.045em; font-weight: 600; line-height: 1.09; }
h1 { max-width: 900px; margin-bottom: 26px; font-size: clamp(42px, 5.25vw, 74px); }
h2 { max-width: 825px; margin-bottom: 18px; font-size: clamp(32px, 3.65vw, 52px); }
h3 { margin-bottom: 12px; font-size: clamp(22px, 2.25vw, 30px); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--paper); }
.lead { max-width: 720px; margin-bottom: 0; font-size: clamp(18px, 1.55vw, 21px); line-height: 1.55; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow, .section-label { display: flex; align-items: center; gap: 11px; margin: 0 0 18px; color: var(--steel); font-size: 12px; font-weight: 600; letter-spacing: .085em; text-transform: uppercase; }
.eyebrow::before, .section-label::before { width: 28px; height: 1px; content: ''; background: currentColor; }
.section-dark .eyebrow, .section-dark .section-label { color: var(--steel-bright); }

/* Header */
.site-header { position: sticky; z-index: 100; top: 0; color: var(--paper); background: rgba(16, 25, 28, .97); border-bottom: 1px solid transparent; backdrop-filter: blur(14px); }
.site-header.is-scrolled { border-color: rgba(238, 243, 241, .16); }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; min-height: 82px; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand:hover { color: inherit; }
.brand img { flex: 0 0 auto; width: 40px; height: 40px; }
.brand-text { display: grid; gap: 2px; line-height: 1.12; }
.brand-text strong { color: var(--paper); font-size: 13px; font-weight: 600; letter-spacing: .01em; text-transform: uppercase; }
.brand-text span { color: #aebdbc; font-size: 10px; font-weight: 500; }
.desktop-nav { display: flex; justify-content: center; gap: clamp(19px, 2.7vw, 42px); }
.desktop-nav a { position: relative; color: #c8d1cf; font-size: 14px; font-weight: 600; text-decoration: none; }
.desktop-nav a::after { position: absolute; right: 0; bottom: -9px; left: 0; height: 1px; content: ''; background: var(--steel-bright); transform: scaleX(0); transition: transform .2s ease; }
.desktop-nav a:hover, .desktop-nav a[aria-current='page'] { color: var(--paper); }
.desktop-nav a:hover::after, .desktop-nav a[aria-current='page']::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 10px; color: var(--paper); background: transparent; border: 1px solid rgba(243,242,238,.36); border-radius: 8px; }
.menu-toggle span { display: block; height: 1px; margin: 5px 0; background: currentColor; }
.mobile-menu { display: none; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 22px; color: var(--ink); background: transparent; border: 1px solid currentColor; border-radius: 9px; font-size: 14px; font-weight: 600; line-height: 1.1; text-align: center; text-decoration: none; transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--steel); border-color: var(--steel); }
.button-primary:hover { color: var(--white); background: #244d56; border-color: #244d56; }
.button-secondary { color: var(--paper); border-color: rgba(243,242,238,.55); }
.button-secondary:hover { color: var(--paper); border-color: var(--paper); background: rgba(243,242,238,.08); }
.button-compact { min-height: 46px; padding: 12px 17px; font-size: 13px; }
.button-full { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--steel); font-size: 14px; font-weight: 600; text-decoration: none; }
.text-link::after { content: '→'; transition: transform .18s ease; }
.text-link:hover::after { transform: translateX(4px); }
.section-dark .text-link { color: var(--steel-bright); }

/* Hero */
.hero { position: relative; overflow: hidden; color: var(--paper); background: var(--ink); }
.hero::before { position: absolute; inset: 0; content: ''; opacity: .65; background-image: linear-gradient(rgba(197,218,217,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(197,218,217,.08) 1px, transparent 1px); background-size: 74px 74px; mask-image: linear-gradient(90deg, #000 0 54%, transparent 92%); }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.618fr) minmax(335px, 1fr); gap: clamp(42px, 6vw, 96px); align-items: center; min-height: 700px; padding: 94px 0 86px; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { max-width: 760px; }
.hero .lead { color: #ced8d5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 35px; }
.hero-note { max-width: 600px; margin: 18px 0 0; color: #aebbb9; font-size: 13px; line-height: 1.52; }
.hero-visual { position: relative; justify-self: end; width: min(100%, 420px); }
.hero-photo { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: #172428; border-radius: var(--radius); box-shadow: 0 26px 64px rgba(0,0,0,.32); }
.hero-photo::before { position: absolute; z-index: 1; inset: 18px; pointer-events: none; border: 1px solid rgba(245,242,237,.42); border-radius: 10px; content: ''; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-photo::after { position: absolute; right: 0; bottom: 0; width: 52px; height: 52px; content: ''; background: #bf603f; }
.photo-caption { margin: 14px 0 0; color: #b7c4c1; font-size: 12px; line-height: 1.45; }
.photo-caption strong { display: block; margin-bottom: 2px; color: var(--paper); font-weight: 600; }
.hero-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.hero-stat { min-height: 120px; padding: 20px 22px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.hero-stat strong { display: block; margin-bottom: 7px; color: var(--paper); font-size: clamp(26px, 2.65vw, 38px); font-weight: 600; letter-spacing: -.055em; line-height: 1; }
.hero-stat span { display: block; color: #b1c1be; font-size: 12px; line-height: 1.45; }

/* Page header */
.page-hero { color: var(--paper); background: var(--ink); padding: 86px 0 76px; }
.page-hero h1 { max-width: 940px; }
.page-hero .lead { color: #cad4d1; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; color: #adb9b7; font-size: 13px; list-style: none; }
.breadcrumbs li + li::before { margin-right: 8px; content: '/'; color: #70817f; }
.breadcrumbs a { color: #c3d3d0; }

/* Layout headings */
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, .72fr); gap: 64px; align-items: end; margin-bottom: 48px; }
.section-head .lead { margin-left: auto; color: var(--muted); }
.section-dark .section-head .lead { color: #c0ccca; }

/* Scenario and task cards */
.scenario-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.scenario-card { min-height: 290px; padding: 29px; background: var(--paper-strong); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.scenario-card .num { display: block; margin-bottom: 54px; color: var(--steel); font-size: 12px; font-weight: 600; letter-spacing: .1em; }
.scenario-card h3 { font-size: 23px; }
.scenario-card p { margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.task-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.task-card { display: grid; grid-template-columns: auto 1fr; gap: 24px; padding: 34px; color: var(--paper); background: var(--ink); border-radius: var(--radius); }
.task-index { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; color: var(--steel-bright); border: 1px solid rgba(130,184,194,.65); border-radius: 50%; font-size: 12px; font-weight: 600; }
.task-card h3 { margin-bottom: 11px; color: var(--paper); font-size: clamp(23px, 2vw, 29px); }
.task-card p { margin-bottom: 21px; color: #c6d0ce; }
.task-card ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.task-card li { position: relative; padding-left: 16px; color: #aebfbc; font-size: 14px; }
.task-card li::before { position: absolute; top: .69em; left: 0; width: 5px; height: 5px; content: ''; background: var(--steel-bright); }

/* Feature strip */
.value-strip { display: grid; grid-template-columns: minmax(0, 1.618fr) minmax(280px, 1fr); gap: 42px; align-items: center; padding: 48px 50px; color: var(--paper); background: var(--steel); border-radius: var(--radius); }
.value-strip h2 { max-width: 700px; margin: 0; color: var(--paper); font-size: clamp(28px, 3.2vw, 44px); }
.value-strip p { margin: 0; color: #d5e3e0; }

/* Project cards */
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.project-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .83fr); min-height: 480px; overflow: hidden; color: var(--paper); background: var(--ink); border-radius: var(--radius); text-decoration: none; transition: transform .22s ease, background .22s ease; }
.project-card:hover { color: var(--paper); background: #152226; transform: translateY(-3px); }
/* Карточки с документальными вертикальными фото сохраняют исходную пропорцию 3:4. */
.project-card--portrait { grid-template-columns: minmax(0, 1fr) 360px; min-height: 480px; }
.project-card--wide { grid-column: span 2; grid-template-columns: minmax(0, 1fr) 405px; min-height: 540px; }
/* Горизонтальные фото раскрываются в полную ширину, чтобы не терять архитектуру в кропе. */
.project-card--landscape { grid-column: span 2; min-height: 400px; }
.project-card--school { grid-template-columns: minmax(0, 1fr) 580px; }
.project-card--schelkovo { grid-template-columns: minmax(0, 1fr) 710px; }
.project-copy { display: flex; flex-direction: column; padding: 36px; }
.project-type { margin: 0 0 17px; color: var(--steel-bright); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.project-card h3 { max-width: 490px; margin-bottom: 14px; color: var(--paper); font-size: clamp(28px, 2.75vw, 41px); }
.project-card p { max-width: 530px; color: #c6d1cf; }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 22px; }
.project-meta span { padding: 7px 9px; color: #e5edeb; border: 1px solid rgba(229,237,235,.28); border-radius: 5px; font-size: 11px; font-weight: 600; }
.project-media { position: relative; min-height: 100%; background: #1a282c; }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-card--portrait .project-media { aspect-ratio: 3 / 4; }
.project-card--wide .project-media--worker { aspect-ratio: 3 / 4; }
.project-card--school .project-media { width: 580px; min-height: auto; aspect-ratio: 1280 / 881; }
.project-card--schelkovo .project-media { width: 710px; min-height: auto; aspect-ratio: 16 / 9; }
.project-media--worker img { object-position: center; }
.project-media--kutuz img { object-position: center; }
.project-media--school img { object-position: center; }
.project-media--schelkovo img { object-position: center; }
.project-media::after { position: absolute; right: 0; bottom: 0; width: 48px; height: 48px; content: ''; background: #b95c41; }
.project-slide { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 100%; padding: 30px; overflow: hidden; color: var(--paper); background: linear-gradient(145deg, #335d65, #152227 67%); }
.project-slide::before { position: absolute; top: -14%; right: -22%; width: 74%; aspect-ratio: 1; border: 1px solid rgba(197,226,230,.3); border-radius: 50%; content: ''; box-shadow: 0 0 0 56px rgba(197,226,230,.035), 0 0 0 112px rgba(197,226,230,.025); }
.project-slide span, .project-slide p, .project-slide strong { position: relative; z-index: 1; }
.project-slide span { color: #bde2e7; font-size: 11px; font-weight: 600; letter-spacing: .095em; text-transform: uppercase; }
.project-slide strong { max-width: 360px; font-size: clamp(35px, 4.5vw, 61px); font-weight: 600; letter-spacing: -.07em; line-height: .9; }
.project-slide p { margin: 0; color: #d6e4e2; font-size: 14px; }

/* Detailed case pages */
.case-intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); gap: 58px; align-items: start; }
.case-intro .lead { max-width: none; }
.case-facts { margin: 0; padding: 0; overflow: hidden; list-style: none; background: var(--paper-strong); border: 1px solid var(--line); border-radius: var(--radius); }
.case-facts li { display: grid; grid-template-columns: 118px 1fr; gap: 20px; padding: 17px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.case-facts li:last-child { border-bottom: 0; }
.case-facts span { color: var(--muted); }
.case-facts strong { font-weight: 600; }
.case-gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; align-items: start; }
.case-gallery figure { margin: 0; overflow: hidden; background: #dfe5e2; border-radius: var(--radius-sm); }
.case-gallery figure img { width: 100%; height: auto; }
.case-gallery .span-7 { grid-column: span 7; }
.case-gallery .span-5 { grid-column: span 5; }
.case-gallery .span-6 { grid-column: span 6; }
.case-gallery figcaption { padding: 10px 12px 13px; color: var(--muted); background: var(--paper-strong); font-size: 12px; }
.case-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .7fr); gap: 70px; }
.case-body h2 { font-size: clamp(30px, 3vw, 43px); }
.case-body p, .case-body li { font-size: 17px; }
.case-body ul { display: grid; gap: 11px; padding-left: 22px; }
.case-aside { align-self: start; padding: 30px; color: var(--paper); background: var(--ink); border-radius: var(--radius); }
.case-aside h3 { color: var(--paper); font-size: 22px; }
.case-aside p, .case-aside li { color: #c9d4d1; font-size: 14px; }
.case-aside ul { margin: 0; padding-left: 18px; }

/* Other projects */
.other-projects { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.other-project { min-height: 250px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.other-project .num { display: block; margin-bottom: 42px; color: var(--steel); font-size: 12px; font-weight: 600; letter-spacing: .1em; }
.other-project h3 { font-size: 23px; }
.other-project p { margin-bottom: 0; color: var(--muted); font-size: 14px; }

/* About */
.profile-layout { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(380px, .96fr); gap: 58px; align-items: center; }
.profile-photo { overflow: hidden; background: #dce4e1; border-radius: var(--radius); }
.profile-photo img { width: 100%; height: auto; }
.profile-text p { max-width: 650px; font-size: 18px; }
.profile-text p + p { margin-top: 18px; }
.registry-card { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 30px; color: var(--paper); background: var(--ink); border-radius: var(--radius); }
.registry-card h3 { margin-bottom: 8px; color: var(--paper); font-size: 24px; }
.registry-card p { max-width: 660px; margin-bottom: 14px; color: #c8d4d1; font-size: 14px; }
.registry-card a { color: var(--steel-bright); font-size: 14px; font-weight: 600; }
.registry-qr { width: 108px; height: 108px; padding: 7px; background: var(--paper); border-radius: 7px; }
.awards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.awards-grid figure { margin: 0; overflow: hidden; background: #dce4e1; border-radius: var(--radius-sm); }
.awards-grid img { width: 100%; height: 100%; object-fit: cover; }
.awards-grid figcaption { padding: 11px 13px; color: var(--muted); background: var(--paper-strong); font-size: 12px; }

/* Contacts */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .86fr); gap: 20px; }
.contact-panel { padding: 42px; background: var(--paper-strong); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-panel--dark { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.contact-panel--dark h2 { color: var(--paper); }
.contact-panel h2 { max-width: 600px; }
.contact-panel .lead { max-width: 650px; color: var(--muted); }
.contact-panel--dark .lead { color: #c2cfcc; }
.contact-link-list { margin-top: 30px; border-top: 1px solid var(--line); }
.contact-link-list a { display: flex; align-items: center; justify-content: space-between; padding: 19px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-link-list a::after { content: '↗'; color: var(--steel); }
.contact-panel--dark .button { margin-top: 34px; }
.contact-note { margin: 28px 0 0; color: #b5c5c1; font-size: 13px; }

/* Services */
.service-list { display: grid; gap: 16px; }
.service-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(250px, .7fr); gap: 30px; padding: 38px 0; border-top: 1px solid var(--line); }
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row .num { color: var(--steel); font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.service-row h2 { margin-bottom: 12px; font-size: clamp(29px, 3vw, 44px); }
.service-row p { margin-bottom: 0; color: var(--muted); }
.service-row ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.service-row li { position: relative; padding-left: 17px; color: #3f4c50; font-size: 14px; }
.service-row li::before { position: absolute; top: .66em; left: 0; width: 6px; height: 6px; content: ''; background: var(--steel); }
.legal-note { padding: 28px 31px; color: #d5e3e0; background: var(--steel); border-radius: var(--radius-sm); font-size: 16px; }
.legal-note strong { color: var(--white); }

/* Quote and CTA */
.cta-panel { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .72fr); gap: 48px; align-items: end; padding: 54px; color: var(--paper); background: var(--ink); border-radius: var(--radius); }
.cta-panel h2 { margin: 0; color: var(--paper); font-size: clamp(31px, 3.5vw, 50px); }
.cta-panel p { margin: 0 0 20px; color: #bfd0cc; }
.cta-panel .button { justify-self: start; }

/* Footer */
.site-footer { padding: 74px 0 25px; color: #c1cfcc; background: #0c1315; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) .55fr .55fr; gap: 48px; }
.footer-brand p { max-width: 360px; margin: 22px 0 0; color: #a9bbb8; font-size: 14px; }
.footer-column { display: grid; align-content: start; gap: 11px; }
.footer-title { margin: 0 0 6px; color: #86afb6; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.footer-column a, .footer-form-link { width: fit-content; padding: 0; color: #d3dfdc; background: none; border: 0; font-size: 14px; text-align: left; text-decoration: none; }
.footer-column a:hover, .footer-form-link:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 54px; padding-top: 20px; color: #82908e; border-top: 1px solid rgba(218,231,228,.15); font-size: 12px; }
.footer-bottom a { color: #a7b8b5; }

/* Modal / form */
.modal { position: fixed; z-index: 1000; inset: 0; display: none; }
.modal[aria-hidden='false'] { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 12, 14, .72); backdrop-filter: blur(5px); }
.modal-panel { position: relative; width: min(680px, calc(100% - 32px)); max-height: min(820px, calc(100vh - 32px)); margin: 16px auto; padding: 38px; overflow: auto; background: var(--paper-strong); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.36); }
.modal-panel h2 { max-width: 580px; font-size: clamp(32px, 4vw, 47px); }
.modal-lead { max-width: 580px; color: var(--muted); }
.modal-close { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; padding: 0; color: var(--ink); background: transparent; border: 0; font-size: 30px; line-height: 1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; margin-top: 16px; }
.field span { color: #4b595e; font-size: 13px; font-weight: 600; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 14px; color: var(--ink); background: var(--white); border: 1px solid #c9d3d0; border-radius: 7px; font-size: 15px; }
.field textarea { min-height: 132px; resize: vertical; }
.form-honeypot { position: absolute; left: -99999px; }
.checkbox-field { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; color: #566368; font-size: 12px; line-height: 1.45; }
.checkbox-field input { margin-top: 3px; }
.form-error { min-height: 20px; margin: 0 0 10px; color: #aa3e2d; font-size: 13px; }
.form-note { margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }

/* Privacy / generic */
.policy { max-width: 860px; }
.policy h2 { margin-top: 54px; font-size: 30px; }
.policy p, .policy li { color: #4f5d61; }
.policy ul { padding-left: 22px; }
.empty-state { min-height: 54vh; display: grid; place-items: center; text-align: center; }

/* Ненавязчивое появление без риска скрыть контент при задержке скрипта. */
[data-reveal] { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .container { width: min(var(--container), calc(100% - 56px)); }
  .header-inner { grid-template-columns: auto 1fr auto; gap: 20px; }
  .desktop-nav { gap: 19px; }
  .hero-inner { grid-template-columns: minmax(0, 1.35fr) minmax(290px, .75fr); gap: 48px; }
  .hero-visual { width: 100%; }
  .scenario-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card, .project-card--wide, .project-card--portrait { grid-template-columns: minmax(0, 1.08fr) minmax(230px, .92fr); }
  .project-card--landscape { grid-template-columns: 1fr; }
  .project-card--landscape .project-media { width: 100%; min-height: auto; }
  .case-body, .profile-layout { grid-template-columns: 1fr; }
  .case-aside { max-width: 700px; }
}

@media (max-width: 820px) {
  .container { width: min(var(--container), calc(100% - 36px)); }
  .section { padding: 78px 0; }
  .section-tight { padding: 60px 0; }
  .desktop-nav, .header-actions { display: none; }
  .menu-toggle { display: block; justify-self: end; }
  .mobile-menu[aria-hidden='false'] { display: block; padding: 8px 18px 20px; color: var(--paper); background: var(--ink); border-top: 1px solid rgba(238,243,241,.15); }
  .mobile-menu nav { display: grid; }
  .mobile-menu nav a { padding: 15px 2px; color: #d8e0de; border-bottom: 1px solid rgba(238,243,241,.14); font-size: 16px; font-weight: 600; text-decoration: none; }
  .mobile-menu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; padding: 67px 0 42px; }
  .hero-visual { justify-self: start; width: min(420px, 100%); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .section-head, .contact-layout, .value-strip, .cta-panel { grid-template-columns: 1fr; gap: 28px; }
  .section-head .lead { margin-left: 0; }
  .task-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card, .project-card--wide, .project-card--portrait, .project-card--landscape { grid-column: auto; grid-template-columns: 1fr; min-height: auto; }
  .project-card--landscape .project-media { width: 100%; }
  .project-copy { min-height: 348px; padding: 30px; }
  .project-media { min-height: 410px; }
  .project-media img { object-fit: cover; }
  .project-card--wide .project-media--worker { min-height: 560px; }
  .project-slide { min-height: 350px; }
  .service-row { grid-template-columns: 62px 1fr; gap: 12px 20px; }
  .service-row ul { grid-column: 2; }
  .other-projects { grid-template-columns: 1fr 1fr; }
  .registry-card { grid-template-columns: 1fr; }
  .registry-qr { order: -1; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .header-inner { min-height: 72px; }
  .brand img { width: 37px; height: 37px; }
  .brand-text strong { font-size: 11px; }
  .brand-text span { max-width: 180px; font-size: 9px; }
  h1 { font-size: clamp(36px, 11vw, 48px); letter-spacing: -.055em; }
  h2 { font-size: clamp(30px, 8.5vw, 39px); }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .hero-stat { min-height: 106px; padding: 17px 15px; }
  .hero-stat strong { font-size: 28px; }
  .scenario-grid { grid-template-columns: 1fr; }
  .scenario-card { min-height: 0; }
  .scenario-card .num { margin-bottom: 32px; }
  .task-card { grid-template-columns: 1fr; gap: 20px; padding: 27px; }
  .task-index { width: 38px; height: 38px; }
  .value-strip, .cta-panel { padding: 32px 26px; }
  .project-copy { min-height: 0; padding: 27px; }
  .project-card h3 { font-size: 32px; }
  .project-media { min-height: 370px; }
  .project-card--wide .project-media--worker { min-height: 520px; }
  .case-intro { grid-template-columns: 1fr; gap: 30px; }
  .case-facts li { grid-template-columns: 1fr; gap: 4px; }
  .case-gallery { grid-template-columns: 1fr; }
  .case-gallery .span-7, .case-gallery .span-5, .case-gallery .span-6 { grid-column: auto; }
  .other-projects { grid-template-columns: 1fr; }
  .contact-panel { padding: 28px 24px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .modal-panel { padding: 34px 22px 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; gap: 10px; margin-top: 38px; }
}


/* v8 refinements: calmer hero, safer main image and full-bleed project media */
.hero-inner { grid-template-columns: minmax(0, 1.06fr) minmax(420px, .94fr); min-height: 640px; padding: 72px 0 58px; }
.hero h1 { max-width: 835px; font-size: clamp(46px, 5vw, 72px); }
.hero .lead { max-width: 720px; }
.hero-visual { width: min(100%, 540px); }
.hero-photo--wide { aspect-ratio: 4 / 3; }
.hero-photo--wide img { object-position: center; }
.photo-caption { max-width: 520px; }
.hero-stats { margin-top: 0; }
.hero-stat { min-height: 112px; }
.hero-stat strong { font-size: clamp(28px, 2.4vw, 36px); }
.project-card--kutuzovsky-wide { grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr); }
.project-card--kutuzovsky-wide .project-media { min-height: 100%; aspect-ratio: auto; }
.project-card--kutuzovsky-wide .project-media img { object-position: center; }
.project-card--school .project-media, .project-card--schelkovo .project-media { width: auto; min-height: 100%; aspect-ratio: auto; }
.project-card--school .project-media img, .project-card--schelkovo .project-media img { height: 100%; object-fit: cover; }
.contact-panel--dark .button, .cta-panel .button { color: var(--white); background: var(--steel); border-color: var(--steel); }
.contact-panel--dark .button:hover, .cta-panel .button:hover { color: var(--white); background: #244d56; border-color: #244d56; }
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; min-height: auto; padding: 58px 0 50px; }
  .hero-visual { justify-self: stretch; width: 100%; }
  .hero-photo--wide { aspect-ratio: 16 / 10; }
  .project-card--kutuzovsky-wide, .project-card--school, .project-card--schelkovo { grid-template-columns: 1fr; }
  .project-card--school .project-media, .project-card--schelkovo .project-media, .project-card--kutuzovsky-wide .project-media { min-height: 300px; }
}


/* v9: финальная правка композиции, типографики и медиа-блоков */
h1, h2, h3 { font-weight: 500; letter-spacing: -.052em; }
.hero { min-height: auto; }
.hero::before { opacity: .52; mask-image: linear-gradient(90deg, #000 0 62%, transparent 100%); }
.hero-inner {
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, .88fr);
  min-height: 610px;
  padding: 66px 0 54px;
  align-items: center;
}
.hero h1 { max-width: 870px; font-size: clamp(48px, 5.1vw, 76px); line-height: 1.04; }
.hero .lead { max-width: 720px; font-size: clamp(18px, 1.45vw, 20px); }
.hero-actions { margin-top: 32px; }
.hero-visual { width: min(100%, 460px); }
.hero-photo--wide { aspect-ratio: 3 / 4; }
.hero-photo--wide img { object-position: center; }
.photo-caption { max-width: 460px; }
.hero-stats { border-color: rgba(232,240,238,.2); }
.hero-stat { min-height: 110px; padding: 20px 24px; }
.hero-stat strong { font-weight: 600; letter-spacing: -.055em; }
.hero-stat span { max-width: 220px; }
.project-card h3 { font-weight: 500; letter-spacing: -.055em; }
.project-card--kutuzovsky-wide { grid-template-columns: minmax(0, .86fr) minmax(540px, 1.14fr); }
.project-card--kutuzovsky-wide .project-media img { object-position: center; }
.project-card--portrait .project-media img { object-fit: cover; object-position: center; }
.project-slide strong { font-weight: 500; }
.cta-panel h2 { font-weight: 500; }
.contact-panel--dark .button,
.cta-panel .button,
.button-primary {
  color: var(--white);
  background: var(--steel);
  border-color: var(--steel);
}
.contact-panel--dark .button:hover,
.cta-panel .button:hover,
.button-primary:hover {
  color: var(--white);
  background: #244d56;
  border-color: #244d56;
}
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; min-height: auto; padding: 58px 0 50px; }
  .hero-visual { justify-self: start; width: min(100%, 620px); }
  .hero-photo--wide { aspect-ratio: 16 / 10; }
  .hero-photo--wide img { object-position: center; }
  .project-card--kutuzovsky-wide, .project-card--school, .project-card--schelkovo { grid-template-columns: 1fr; }
  .project-card--kutuzovsky-wide .project-media,
  .project-card--school .project-media,
  .project-card--schelkovo .project-media { min-height: 330px; width: 100%; }
}
@media (max-width: 560px) {
  .hero-inner { padding: 48px 0 42px; }
  .hero h1 { font-size: clamp(36px, 10.4vw, 47px); line-height: 1.06; }
  .hero-photo--wide { aspect-ratio: 4 / 5; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat span { max-width: none; }
}

/* v9.1: заголовки на тёмных hero-блоках */
.hero h1,
.page-hero h1 { color: var(--paper); }
.hero .eyebrow,
.page-hero .eyebrow { color: var(--steel-bright); }
