/* ООО «Аланар». Направление: кинематографичный морской стиль. Тёмные навигационные секции,
   тёплая «бумажная» светлая подложка, сигнальный оранжевый как единственный акцент. */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2199, U+2212, U+2215;
}
/* Метрики запасного шрифта подогнаны под Manrope, чтобы при подмене текст не прыгал */
@font-face { font-family: "Manrope Fallback"; src: local("Arial"); size-adjust: 103%; ascent-override: 103%; descent-override: 29%; line-gap-override: 0%; }

:root {
  --ink-950: #030c16;
  --ink-900: #061626;
  --ink-800: #0a2238;
  --ink-700: #10314f;
  --sea: #1a6fb0;
  --sea-300: #7fb3dc;
  --accent: #ff5f1f;
  --accent-600: #e24c0f;
  --paper: #f6f4ef;
  --paper-2: #efece4;
  --white: #fff;
  --text: #0f1b2a;
  --muted: #5d6b7a;
  --line: #e2ded4;
  --line-dark: rgba(255,255,255,.12);
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(6,22,38,.05), 0 10px 30px rgba(6,22,38,.07);
  --shadow-lg: 0 30px 60px -20px rgba(6,22,38,.28);
  --header-h: 76px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --font: "Manrope", "Manrope Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @view-transition { navigation: auto; }
}
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-decoration: none; }
a:hover { color: var(--accent-600); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 32px; } }
.ico { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.2em; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 700; color: var(--accent); margin-bottom: 1.1em; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 58ch; }

/* ---------- Тёмные секции ---------- */
.dark { position: relative; color: #fff; background-color: var(--ink-900); isolation: isolate; }
.dark .lead, .dark p { color: rgba(255,255,255,.72); }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark a:not(.btn) { color: #fff; }
/* лёгкое зерно: статичный SVG-фон, без оверлеев с blend-mode */
.dark::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Кнопки и ссылки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 44px; padding: .8em 1.4em; border-radius: 999px; font: inherit; font-weight: 700; font-size: 1rem; border: 0; cursor: pointer; white-space: nowrap; transition: transform .2s var(--ease), background-color .2s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 40px; padding: .5em 1.15em; font-size: .92rem; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -8px rgba(255,95,31,.65); }
.btn--accent:hover { background: var(--accent-600); color: #fff; }
.btn--primary { background: var(--ink-800); color: #fff; }
.btn--primary:hover { background: var(--sea); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; }
.link-arrow .ico { transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(5px); }

/* ---------- Шапка ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; transition: transform .35s var(--ease), background-color .3s, box-shadow .3s; }
.header.is-scrolled { background: rgba(6,22,38,.85); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 var(--line-dark); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { color: #fff; }
.brand__logo { width: 64px; filter: invert(1); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text b { font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; }
.brand__text small { font-size: .72rem; color: rgba(255,255,255,.6); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__link { position: relative; color: rgba(255,255,255,.85); font-weight: 600; padding: .55em .85em; font-size: .96rem; }
.nav__link::after { content: ""; position: absolute; left: .85em; right: .85em; bottom: .3em; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav__link:hover, .nav__link[aria-current="page"] { color: #fff; }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.lang { display: inline-flex; background: rgba(255,255,255,.1); border-radius: 999px; padding: 3px; margin: 0 10px; }
.lang a { padding: .3em .75em; border-radius: 999px; font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.7); }
.lang a:hover { color: #fff; }
.lang a.is-active { background: #fff; color: var(--ink-900); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 11px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--ink-900); flex-direction: column; align-items: stretch; padding: 8px 16px 24px; gap: 2px; border-top: 1px solid var(--line-dark); box-shadow: var(--shadow-lg); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s; }
  .nav-open .nav { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav-open .header { background: var(--ink-900); }
  .nav__link { padding: .85em .4em; font-size: 1.1rem; border-bottom: 1px solid var(--line-dark); }
  .nav__link::after { display: none; }
  .lang { align-self: flex-start; margin: 14px 0; }
  .brand__text small { display: none; }
}

/* ---------- Главный экран ---------- */
.hero { padding: calc(var(--header-h) + clamp(32px, 6vw, 72px)) 0 clamp(28px, 4vw, 48px); min-height: min(100svh, 940px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  background: radial-gradient(900px 600px at 82% 18%, #164a78 0%, transparent 60%), radial-gradient(700px 500px at 0% 100%, #0d2f50 0%, transparent 60%), var(--ink-900); }
.hero__glow { position: absolute; z-index: -1; right: -10%; top: 30%; width: 50vw; height: 50vw; max-width: 700px; max-height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(255,95,31,.18), transparent 65%); pointer-events: none; }
.hero__inner { display: grid; gap: clamp(36px, 6vw, 64px); align-items: center; flex: 1; }
@media (min-width: 1000px) { .hero__inner { grid-template-columns: 1.45fr 1fr; } }
.display { font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1.04; letter-spacing: -.035em; margin-bottom: .5em; max-width: 18ch; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); margin: 0; }

.collage { position: relative; isolation: isolate; width: min(100%, 460px); justify-self: center; padding: 0 0 40px 40px; }
.collage__ring { position: absolute; z-index: -1; width: 56%; right: -16%; top: -12%; color: var(--accent); }
.collage__main { margin: 0; position: relative; }
.collage__main img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: 0 40px 80px -24px rgba(0,0,0,.6); }
.collage__main figcaption { position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(3,12,22,.72); font-size: .82rem; font-weight: 600; color: #fff; }
.collage__side { position: absolute; left: 0; bottom: 0; width: 42%; margin: 0; }
.collage__side img { aspect-ratio: 1; object-fit: cover; border-radius: 18px; border: 5px solid var(--ink-900); box-shadow: 0 20px 40px -12px rgba(0,0,0,.6); }
@media (max-width: 999px) { .collage { width: min(100%, 420px); padding: 0 0 28px 28px; margin-top: 12px; } .collage__ring { right: -8%; top: -6%; width: 46%; } }
@media (prefers-reduced-motion: no-preference) {
  .collage__ring { animation: spin 60s linear infinite; }
  @supports (animation-timeline: scroll()) {
    .collage__side { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 80vh; }
  }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { to { transform: translateY(-36px); } }

.proof { list-style: none; margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; display: grid; gap: 1px; border-radius: var(--radius); overflow: hidden; background: var(--line-dark); border: 1px solid var(--line-dark); }
@media (min-width: 760px) { .proof { grid-template-columns: repeat(3, 1fr); } }
.proof > li > * { display: flex; gap: 14px; align-items: center; padding: 18px 20px; background: var(--ink-900); height: 100%; transition: background-color .2s; }
.proof a:hover { background: var(--ink-800); }
.proof .ico { width: 28px; height: 28px; color: var(--accent); }
.proof span { display: flex; flex-direction: column; font-size: .88rem; color: rgba(255,255,255,.65); line-height: 1.35; }
.proof b { color: #fff; font-size: 1rem; }

/* ---------- Шапка внутренних страниц ---------- */
.page-head { padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 clamp(40px, 5vw, 64px); overflow: hidden;
  background: radial-gradient(800px 420px at 90% 0%, #164a78 0%, transparent 60%), var(--ink-900); }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: -.03em; max-width: 22ch; }
.page-head .lead { margin-bottom: 0; }
.page-head .lead a { color: var(--sea-300); }

/* ---------- Секции ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding-top: clamp(40px, 5vw, 64px); }
.section--alt { background: var(--paper-2); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head h2 { margin: 0; max-width: 20ch; }
.section__sub { color: var(--muted); max-width: 62ch; margin: 14px 0 0; }

/* Направления */
.areas { display: grid; gap: 16px; }
@media (min-width: 720px) { .areas { grid-template-columns: repeat(2, 1fr); } }
.area { position: relative; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); min-height: 260px; border-radius: var(--radius-lg); background: var(--white); color: var(--text); border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.area::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.area:hover { color: var(--text); transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.area:hover::after { transform: scaleX(1); }
.area__num { position: absolute; top: 18px; right: 26px; font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--paper-2); transition: color .35s; }
.area:hover .area__num { color: #ffe3d6; }
.area__icon { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--ink-900); color: #fff; }
.area__icon .ico { width: 26px; height: 26px; }
.area h3 { position: relative; font-size: clamp(1.2rem, 1.8vw, 1.4rem); margin: 22px 0 10px; }
.area p { position: relative; color: var(--muted); margin: 0 0 18px; }
.area__arrow { margin-top: auto; color: var(--accent); width: 22px; height: 22px; transition: transform .3s var(--ease); }
.area:hover .area__arrow { transform: translateX(6px); }
.areas__more { margin: 24px 0 0; color: var(--muted); }

/* Сроки */
.section--reasons { overflow: hidden; background: radial-gradient(700px 500px at 100% 100%, #123e66 0%, transparent 60%), var(--ink-900); }
.split { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.stack { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stack img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-lg); }
.stack img:nth-child(2) { margin-top: 56px; }
.reasons { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.reasons li { display: flex; gap: 18px; padding: 22px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); }
.reasons__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent); color: #fff; flex: none; }
.reasons__icon .ico { width: 24px; height: 24px; }
.reasons h3 { margin: 4px 0 6px; }
.reasons p { margin: 0; font-size: .97rem; }

/* Порядок работы */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; position: relative; }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(4, 1fr); }
  .timeline::before { content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 2px; background: repeating-linear-gradient(90deg, #cfc9bb 0 8px, transparent 8px 14px); }
}
.timeline li { position: relative; }
@media (max-width: 899px) {
  .timeline li { padding-left: 76px; min-height: 56px; }
  .timeline li::before { content: ""; position: absolute; left: 27px; top: 60px; bottom: -28px; width: 2px; background: repeating-linear-gradient(180deg, #cfc9bb 0 8px, transparent 8px 14px); }
  .timeline li:last-child::before { display: none; }
  .timeline__dot { position: absolute !important; left: 0; top: 0; }
}
.timeline__dot { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink-900); font-weight: 800; font-variant-numeric: tabular-nums; margin-bottom: 20px; transition: background-color .3s, color .3s, border-color .3s; }
.timeline li:hover .timeline__dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.timeline h3 { font-size: 1.2rem; margin-bottom: 6px; }
.timeline p { color: var(--muted); margin: 0; font-size: .97rem; max-width: 32ch; }

/* ---------- О компании ---------- */
.about { display: grid; gap: 48px; }
@media (min-width: 960px) { .about { grid-template-columns: 1fr 1fr; gap: 80px; } }
.about h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.about__text p { color: #3a4857; font-size: 1.05rem; }
.directions { list-style: none; padding: 0; margin: 0; counter-reset: d; border-top: 1px solid var(--line); }
.directions li { counter-increment: d; display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 600; line-height: 1.4; }
.directions li::before { content: counter(d, decimal-leading-zero); color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 800; }

.certs { display: grid; gap: 20px; }
@media (min-width: 680px) { .certs { grid-template-columns: repeat(3, 1fr); } }
.cert { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); color: inherit; transition: transform .3s var(--ease), border-color .3s; }
a.cert:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.3); }
.cert img { aspect-ratio: 3/4; object-fit: cover; object-position: top; width: 100%; background: #fff; }
.cert__doc { aspect-ratio: 4/3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 12px, transparent 12px 24px); }
.cert__doc .ico { width: 48px; height: 48px; color: var(--accent); }
.cert__doc b { font-size: 1.25rem; letter-spacing: .02em; }
.cert__meta { padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line-dark); }
.cert__meta small { color: rgba(255,255,255,.55); }

.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; grid-auto-flow: dense; }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 16px; } }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink-800); }
.gallery__item:first-child { grid-row: span 2; grid-column: span 2; }
.gallery__item:last-child { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item span { position: absolute; inset: auto 0 0; padding: 32px 14px 12px; color: #fff; font-size: .86rem; font-weight: 600; background: linear-gradient(transparent, rgba(3,12,22,.85)); }

/* ---------- Услуги ---------- */
.search { display: flex; align-items: center; gap: 12px; max-width: 600px; margin-top: 32px; padding: 0 20px; background: rgba(255,255,255,.08); border: 1px solid var(--line-dark); border-radius: 999px; transition: background-color .2s, border-color .2s; }
.search:focus-within { background: #fff; border-color: #fff; }
.search .ico { color: rgba(255,255,255,.6); }
.search:focus-within .ico { color: var(--muted); }
.search input { flex: 1; border: 0; outline: 0; font: inherit; padding: 15px 0; background: transparent; min-width: 0; color: #fff; }
.search:focus-within input { color: var(--text); }
.search input::placeholder { color: rgba(255,255,255,.55); }
.search:focus-within input::placeholder { color: var(--muted); }
.services-layout { display: grid; gap: 40px; }
@media (min-width: 1000px) { .services-layout { grid-template-columns: 290px 1fr; gap: 56px; } }
.toc { display: none; }
@media (min-width: 1000px) {
  .toc { display: block; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
  .toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
  .toc li { counter-increment: toc; }
  .toc a { display: flex; gap: 12px; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: .93rem; font-weight: 600; line-height: 1.35; transition: background-color .2s, color .2s; }
  .toc a::before { content: counter(toc, decimal-leading-zero); color: var(--accent); font-variant-numeric: tabular-nums; }
  .toc a:hover, .toc a.is-active { background: var(--white); color: var(--text); }
}
.services { display: grid; gap: 20px; }
.svc-group { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); background: var(--white); }
.svc-group[hidden] { display: none; }
.svc-group--accent { border-color: var(--accent); box-shadow: 0 0 0 3px #ffe3d6; }
.svc-group__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.svc-group__head h2 { font-size: clamp(1.2rem, 2vw, 1.45rem); margin: 0; }
.svc-group__num { color: var(--accent); margin-right: .5em; font-variant-numeric: tabular-nums; }
.svc-group__intro { color: var(--muted); margin: -6px 0 12px; }
.cat__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--ink-900); color: #fff; flex: none; }
.cat__icon .ico { width: 23px; height: 23px; }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list li { padding: 12px 0 12px 24px; border-top: 1px solid var(--line); position: relative; line-height: 1.45; }
.svc-list li::before { content: ""; position: absolute; left: 4px; top: 1.2em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.svc-list li.is-sub { padding-left: 48px; color: var(--muted); border-top-style: dashed; }
.svc-list li.is-sub::before { left: 28px; background: transparent; border: 1.5px solid var(--accent); }
.svc-list li[hidden] { display: none; }
.svc-list mark { background: #ffe0d1; color: inherit; border-radius: 3px; padding: 0 2px; }
.empty { padding: 32px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-lg); }

/* ---------- Контакты и заявка ---------- */
.offices { display: grid; gap: 20px; }
@media (min-width: 800px) { .offices { grid-template-columns: 1fr 1fr; } }
.office { padding: clamp(26px, 3vw, 40px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--white); }
.office h2 { font-size: 1.7rem; }
.office__list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 14px; }
.office__list li { display: flex; gap: 14px; align-items: flex-start; }
.office__list .ico { color: var(--accent); margin-top: 3px; }
.office__list small { display: block; color: var(--muted); font-size: .82rem; }
.geo { margin-top: 24px; }
.request-layout { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .request-layout { grid-template-columns: 1fr 1.2fr; gap: 72px; } }
.request { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); display: grid; gap: 16px; }
.request__row { display: grid; gap: 16px; }
@media (min-width: 560px) { .request__row { grid-template-columns: 1fr 1fr; } }
.request label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.request input, .request select, .request textarea { font: inherit; font-weight: 400; padding: 12px 14px; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--text); width: 100%; min-width: 0; transition: border-color .2s, background-color .2s; }
.request input:focus, .request select:focus, .request textarea:focus { outline: 0; border-color: var(--sea); background: #fff; box-shadow: 0 0 0 3px rgba(26,111,176,.15); }
.request .is-invalid { border-color: var(--accent); background: #fff4ee; }
.request button { justify-self: start; }
.request__note { font-size: .82rem; color: var(--muted); margin: 0; }

/* ---------- Подвал ---------- */
.footer { background: var(--ink-950); color: rgba(255,255,255,.7); padding: 64px 0 28px; font-size: .95rem; overflow: hidden; }
.footer a { color: rgba(255,255,255,.88); }
.footer a:hover { color: #fff; }
.footer .muted { color: rgba(255,255,255,.45); margin-left: 6px; }
.footer__grid { display: grid; gap: 20px; align-items: center; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: auto 1fr; } }
.footer__brand { color: #fff; font-weight: 800; font-size: 1.15rem; }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
@media (min-width: 760px) { .footer__links { justify-content: flex-end; } }
.footer__word { margin: 36px 0 0; font-size: clamp(4.5rem, 17vw, 15rem); font-weight: 800; letter-spacing: -.06em; line-height: .8; text-transform: uppercase; color: rgba(255,255,255,.045); user-select: none; white-space: nowrap; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: .88rem; }
.to-top { display: inline-flex; align-items: center; gap: 6px; }
.to-top .ico { transform: rotate(-90deg); transition: transform .25s var(--ease); }
.to-top:hover .ico { transform: rotate(-90deg) translateX(4px); }

/* ---------- Лайтбокс ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(3,12,22,.94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; opacity: 0; transition: opacity .2s; cursor: zoom-out; }
.lightbox.is-open { opacity: 1; }
.lightbox img { max-height: calc(100vh - 110px); width: auto; border-radius: 10px; }
.lightbox p { color: #fff; margin: 14px 0 0; text-align: center; }
.lightbox button { position: absolute; top: 12px; right: 16px; width: 44px; height: 44px; background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }

/* ---------- Появление при прокрутке: только CSS. Без поддержки контент просто виден. ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
  .hero__copy { animation: rise .8s var(--ease) both; }
}
@keyframes reveal { from { opacity: 0; transform: translateY(28px); } }
@keyframes rise { from { transform: translateY(16px); } }
