/* ============================================================================
   ООО «Поставка» — визуальный язык «Гладь»
   Белое стекло, вода, приглушённая синева. Liquid Glass, мягкие переходы.
   ========================================================================== */

/* ---------- 1. Токены ---------- */
:root {
  --ink:        #0d2436;
  --ink-2:      #274a63;
  --ink-3:      #456881;
  --ink-4:      #6d8ea4;

  --bg:         #f4fafd;
  --bg-2:       #eaf4fa;
  --surface:    #ffffff;

  --line:       rgba(13, 36, 54, .16);
  --line-2:     rgba(13, 36, 54, .09);

  --deep:       #0b4b78;   /* глубокая вода */
  --azure:      #1583c4;   /* основной акцент */
  --lagoon:     #45b8dd;   /* бирюзовый перелив */
  --shallow:    #a8ddef;   /* мелководье */
  --foam:       #e2f2fa;   /* пена */

  /* Liquid Glass */
  --glass-bg:   linear-gradient(152deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.88) 55%, rgba(240,249,253,.90) 100%);
  --glass-brd:  rgba(13,36,54,.10);
  --glass-blur: blur(18px) saturate(150%);
  --glass-sh:
     inset 0 1px 0 rgba(255,255,255,.95),
     0 18px 40px -24px rgba(11,75,120,.30),
     0 2px 6px -3px rgba(11,75,120,.12);
  --glass-sh-hi:
     inset 0 1px 0 rgba(255,255,255,1),
     0 26px 56px -26px rgba(11,75,120,.38),
     0 4px 12px -5px rgba(11,75,120,.16);

  --r-sm: 14px; --r-md: 22px; --r-lg: 30px; --r-xl: 40px; --r-2xl: 52px;

  --pad: clamp(20px, 4vw, 56px);
  --maxw: 1340px;
  --maxw-wide: 1500px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter",
          "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  --ease:     cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-io:  cubic-bezier(.65,0,.35,1);
}

/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; color: var(--ink); background: var(--bg);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  letter-spacing: -.012em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Живая водная подложка всей страницы */
.water-bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; background: var(--bg); }
.water-bg span {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(70px); opacity: .30; will-change: transform;
}
.water-bg span:nth-child(1) { width: 62vw; height: 62vw; left: -14vw; top: -20vw;
  background: radial-gradient(circle, rgba(69,184,221,.42), rgba(69,184,221,0) 68%); animation: tide 34s var(--ease-io) infinite alternate; }
.water-bg span:nth-child(2) { width: 54vw; height: 54vw; right: -12vw; top: 8vh;
  background: radial-gradient(circle, rgba(21,131,196,.30), rgba(21,131,196,0) 66%); animation: tide 44s var(--ease-io) infinite alternate-reverse; }
.water-bg span:nth-child(3) { width: 70vw; height: 70vw; left: 12vw; bottom: -34vw;
  background: radial-gradient(circle, rgba(168,221,239,.46), rgba(168,221,239,0) 70%); animation: tide 52s var(--ease-io) infinite alternate; }
@keyframes tide {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(6vw, 5vh, 0) scale(1.16); }
}
@media (prefers-reduced-motion: reduce) { .water-bg span { animation: none; } }

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4 { margin: 0; font-weight: 600; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--shallow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.wrap--wide { max-width: var(--maxw-wide); }
.section { padding-block: clamp(38px, 4vw, 62px); position: relative; }
.section--tight { padding-block: clamp(30px, 3.2vw, 48px); }

/* Отступы соседних секций не складываются: между блоками один интервал, а не сумма двух.
   Исключение — секции с собственным фоном (.band): там padding задаёт саму подложку. */
main > section + section:not(.band) { padding-top: 0; }
main > section.band + section:not(.band) { padding-top: 0; }
main > section:not(.band):has(+ section.band) { padding-bottom: 0; }

/* ---------- 3. Типографика ---------- */
.h-display { font-size: clamp(36px, 5.4vw, 68px); font-weight: 600; letter-spacing: -.045em; line-height: .98; }
.h1 { font-size: clamp(32px, 5vw, 60px); letter-spacing: -.042em; }
.h2 { font-size: clamp(27px, 3.6vw, 44px); letter-spacing: -.036em; }
.h3 { font-size: clamp(20px, 2.2vw, 27px); letter-spacing: -.028em; }
.h4 { font-size: 18.5px; letter-spacing: -.022em; font-weight: 600; }
.lead { font-size: clamp(16.5px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); font-weight: 400; }
.muted { color: var(--ink-3); }
.small { font-size: 14.5px; line-height: 1.55; }
.tiny  { font-size: 12.5px; line-height: 1.5; color: var(--ink-4); }
.accent-text { background: linear-gradient(96deg, var(--azure), var(--lagoon) 55%, var(--deep));
  -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--azure); font-weight: 500;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .55; }

/* ---------- 4. Стекло ---------- */
.glass {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--glass-sh);
  border-radius: var(--r-lg);
  overflow: hidden; isolation: isolate;
  transition: box-shadow .6s var(--ease-out), transform .6s var(--ease-out), background .6s var(--ease);
}
/* тонкая световая кромка по курсору — без «тумана» поверх текста */
.glass::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  padding: 1px;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
              rgba(21,131,196,.85), rgba(21,131,196,0) 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s var(--ease-out);
}
.glass:hover::after { opacity: 1; }
.glass--flat { box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 30px -18px rgba(11,75,120,.35); }

/* ---------- 5. Кнопки ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: 16px; font-weight: 500; letter-spacing: -.015em; cursor: pointer; overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background .4s var(--ease), color .3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.978); }

.btn--primary {
  background: linear-gradient(140deg, var(--azure), var(--deep));
  color: #fff; box-shadow: 0 14px 34px -14px rgba(11,75,120,.75), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn--primary:hover { box-shadow: 0 20px 44px -14px rgba(11,75,120,.85), inset 0 1px 0 rgba(255,255,255,.34); transform: translateY(-2px); }

.btn--glass {
  background: rgba(255,255,255,.96); color: var(--ink);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border-color: rgba(13,36,54,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 10px 26px -18px rgba(11,75,120,.4);
}
.btn--glass:hover { background: rgba(255,255,255,.78); transform: translateY(-2px); }

.btn--ghost { border-color: var(--line); color: var(--ink-2); }
.btn--ghost:hover { border-color: var(--azure); color: var(--azure); }
.btn--sm { min-height: 42px; padding-inline: 18px; font-size: 14.5px; }
.btn--wide { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 500; color: var(--azure);
  transition: gap .4s var(--ease-out), color .3s;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .4s var(--ease-out); }
.link-arrow:hover { gap: 13px; color: var(--deep); }

/* ---------- 6. Навигация ---------- */
.nav-shell { position: sticky; top: 0; z-index: 90; padding-top: 14px; }
/* В меню шесть разделов плюс телефон и кнопка — шапке нужен запас по ширине. */
.nav-shell > .wrap { max-width: var(--maxw-wide); }
.nav {
  display: flex; align-items: center; gap: 14px; height: 66px; padding: 0 10px 0 18px;
  flex-wrap: nowrap; white-space: nowrap;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(13,36,54,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 10px 30px -20px rgba(11,75,120,.45);
  transition: box-shadow .5s var(--ease), height .5s var(--ease), background .5s var(--ease);
}
.nav-shell.is-stuck .nav { height: 58px; box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 20px 50px -24px rgba(11,75,120,.6); }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav > .brand { view-transition-name: brand; }
.brand__mark { width: 36px; height: 36px; flex-shrink: 0; }
/* Логотип-локап: цельная композиция, высоту задаём, ширина тянется сама. */
.brand__logo { height: 46px; width: auto; display: block; }
@media (max-width: 900px) { .brand__logo { height: 38px; } }
.brand__name { font-size: 17px; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; display: block; }
.brand__sub { font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-4); }

.nav__menu { display: flex; align-items: center; gap: 0; margin-left: auto; flex-shrink: 0; }
.nav__link {
  position: relative; padding: 10px 13px; white-space: nowrap; border-radius: 999px; font-size: 15.5px; color: var(--ink-2);
  transition: color .3s, background .3s;
}
.nav__link::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: rgba(255,255,255,.7); box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  opacity: 0; transform: scale(.9); transition: opacity .35s var(--ease-out), transform .45s var(--ease-out);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--deep); }
.nav__link:hover::before, .nav__link[aria-current="page"]::before { opacity: 1; transform: none; }
.nav__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav__phone { font-size: 15.5px; font-weight: 500; padding: 8px 12px; border-radius: 999px; color: var(--ink); white-space: nowrap; }
.nav__phone:hover { color: var(--azure); }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.8); background: rgba(255,255,255,.6); cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9); transition: background .3s, transform .4s var(--ease-out);
}
.icon-btn:hover { background: rgba(255,255,255,.9); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 19px; height: 19px; }
.burger { display: none; }

/* выпадающее меню */
.nav__item { position: relative; }
.nav__item > .nav__link { display: inline-flex; align-items: center; gap: 6px; }
.nav__item > .nav__link svg { width: 12px; height: 12px; opacity: .5; transition: transform .4s var(--ease-out); }
.nav__item:hover > .nav__link svg, .nav__item:focus-within > .nav__link svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; translate: -50% 0; min-width: 360px; padding: 12px;
  border-radius: var(--r-md);
  background: #ffffff;
  border: 1px solid rgba(13,36,54,.12);
  box-shadow: 0 22px 50px -22px rgba(11,75,120,.45), 0 3px 10px -4px rgba(11,75,120,.16);
  display: grid; gap: 3px;
  opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.97); transform-origin: top center;
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), visibility .35s;
}
.nav__item:hover .dropdown, .nav__item:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 15px; transition: background .3s; }
.dropdown a:hover { background: rgba(226,242,250,.8); }
.dropdown__n { font-family: var(--mono); font-size: 11px; color: var(--azure); letter-spacing: .1em; padding-top: 4px; }
.dropdown strong { display: block; font-size: 15.5px; font-weight: 500; letter-spacing: -.02em; }
.dropdown span.d { display: block; font-size: 12.8px; color: var(--ink-3); margin-top: 3px; line-height: 1.45; }

/* мобильное меню */
.mobile-menu {
  position: fixed; inset: 0; z-index: 100; display: none; padding: 20px var(--pad) 32px;
  background: linear-gradient(170deg, #ffffff, #eaf4fa);
  overflow-y: auto;
}
.mobile-menu[data-open="true"] { display: block; animation: menuIn .45s var(--ease-out); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.mobile-menu__list { display: grid; gap: 2px; }
.mobile-menu__list a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 16px 6px; font-size: 22px; font-weight: 500; letter-spacing: -.03em;
  border-bottom: 1px solid var(--line-2);
}
.mobile-menu__list a span { font-family: var(--mono); font-size: 11px; color: var(--ink-4); }
.mobile-menu__foot { margin-top: 30px; display: grid; gap: 10px; }

/* ---------- 7. Hero ---------- */
.hero { position: relative; padding-top: clamp(28px, 4vw, 52px); }
.hero__stage {
  position: relative; border-radius: var(--r-2xl); overflow: hidden; isolation: isolate;
  min-height: clamp(560px, 76vh, 780px); display: flex; align-items: flex-end;
  box-shadow: 0 50px 120px -60px rgba(11,75,120,.7);
  view-transition-name: hero;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); will-change: transform; }
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(244,250,253,.40) 0%, rgba(244,250,253,.10) 40%, rgba(11,75,120,.34) 100%),
    linear-gradient(100deg, rgba(255,255,255,.55), rgba(255,255,255,0) 62%);
}
.hero__panel {
  margin: clamp(18px, 2.4vw, 32px); padding: clamp(26px, 3.4vw, 46px);
  border-radius: var(--r-xl); width: min(100%, 780px);
}
.hero h1 { margin-top: 18px; max-width: 17ch; }
.hero__lead { margin-top: 20px; max-width: 60ch; font-size: clamp(16.5px, 1.55vw, 19.5px); color: var(--ink-2); }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { margin-top: clamp(26px, 3vw, 38px); padding-top: 24px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 26px; }
.hero__fact dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--azure); }
.hero__fact dd { margin: 8px 0 0; font-size: 15px; line-height: 1.4; color: var(--ink-2); }

/* бегущая строка */
.ticker { margin-top: 22px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker__row { display: flex; width: max-content; animation: ticker 56s linear infinite; }
.ticker__row:hover { animation-play-state: paused; }
.ticker__item { display: flex; align-items: center; gap: 14px; padding: 0 24px; font-size: 13.5px; color: var(--ink-3); white-space: nowrap; }
.ticker__item::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lagoon); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__row { animation: none; } }

/* ---------- 8. Заголовки секций ---------- */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(20px, 2.2vw, 32px); }
.head__text { max-width: 66ch; }
.head h2 { margin-top: 14px; max-width: 24ch; }
.head p { margin-top: 14px; }

/* ---------- 9. Направления: bento с фото ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.dir {
  position: relative; display: flex; align-items: flex-end; justify-content: flex-end;
  overflow: hidden; isolation: isolate;
  border-radius: var(--r-lg); min-height: 240px; padding: clamp(12px, 1.2vw, 16px);
  box-shadow: 0 30px 70px -40px rgba(11,75,120,.7);
  transition: transform .7s var(--ease-out), box-shadow .7s var(--ease-out);
}
.dir:nth-child(1) { grid-column: span 4; min-height: 268px; justify-content: flex-start; }
/* У вентиляции содержательная часть кадра справа — текст держим слева. */
.dir:nth-child(1)::after { left: auto; right: 18px; }
.dir:nth-child(2) { grid-column: span 2; min-height: 268px; }
.dir:nth-child(3) { grid-column: span 2; min-height: 268px; }
.dir:nth-child(4) { grid-column: span 4; min-height: 268px; }
.dir:nth-child(5) { grid-column: span 3; min-height: 268px; }
.dir:nth-child(6) { grid-column: span 3; min-height: 268px; }
.dir:nth-child(7) { grid-column: span 3; min-height: 268px; }
.dir:nth-child(8) { grid-column: span 3; min-height: 268px; }
.dir:nth-child(5) .dir__plate, .dir:nth-child(6) .dir__plate,
.dir:nth-child(7) .dir__plate, .dir:nth-child(8) .dir__plate { width: min(100%, 470px); }
/* Плашка ужимается по тексту, а не растягивается на всю карточку */
.dir:nth-child(1) .dir__plate, .dir:nth-child(4) .dir__plate { width: min(100%, 470px); }
.dir:nth-child(2) .dir__plate, .dir:nth-child(3) .dir__plate { width: min(100%, 340px); }
.dir__img { position: absolute; inset: 0; z-index: -2; }
.dir__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter 1.2s var(--ease-out); }
.dir::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    rgba(9,42,68,.10) 0%, rgba(9,42,68,.34) 45%, rgba(7,34,56,.80) 100%);
  transition: opacity .8s var(--ease-out);
}
.dir::after {
  content: ""; position: absolute; top: 18px; left: 18px; width: 34px; height: 34px; z-index: 2;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M12.5 6l5.8 6-5.8 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 15px;
  opacity: 0; transform: translateX(-4px);
  transition: opacity .4s var(--ease-out), transform .5s var(--ease-out);
}
.dir:hover::after { opacity: 1; transform: none; }
.dir:hover { transform: translateY(-6px); box-shadow: 0 44px 90px -44px rgba(11,75,120,.85); }
.dir:hover .dir__img img { transform: scale(1.06); }
.dir__plate {
  width: 100%; padding: clamp(13px, 1.3vw, 17px); border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(8,38,62,.34), rgba(8,38,62,.20));
  -webkit-backdrop-filter: blur(12px) saturate(125%); backdrop-filter: blur(12px) saturate(125%);
  border: 1px solid rgba(255,255,255,.20);
  box-shadow: none;
  color: #fff;
  transition: background .6s var(--ease), border-color .6s var(--ease);
}
.dir:hover .dir__plate { background: linear-gradient(160deg, rgba(8,38,62,.44), rgba(8,38,62,.28)); border-color: rgba(255,255,255,.30); }
.dir__num { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: rgba(255,255,255,.75); }
.dir__plate h3 { margin-top: 7px; font-size: clamp(17px, 1.7vw, 21px); color: #fff; text-shadow: 0 1px 14px rgba(6,28,46,.45); }
.dir__plate p { margin-top: 7px; font-size: 13.8px; line-height: 1.45; color: rgba(255,255,255,.86); max-width: 46ch; text-shadow: 0 1px 12px rgba(6,28,46,.45); }
.dir__tags { margin-top: 13px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12.5px; padding: 6px 13px; border-radius: 999px;
  background: rgba(255,255,255,.14); color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.24);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dir__go { margin-top: 14px; color: #fff; }
.dir:hover .dir__go { color: #fff; }

/* ---------- 10. Услуги: лента ---------- */
.rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 20px); }
.svc { padding: clamp(20px, 2.2vw, 28px); border-radius: var(--r-md);
  display: flex; flex-direction: column; }
.svc__ico { width: 36px; height: 36px; color: var(--azure); }
.svc__ico svg { width: 100%; height: 100%; }
.svc h4 { margin-top: 20px; }
.svc p { margin-top: 10px; font-size: 15px; color: var(--ink-2); }

/* ---------- 11. Процесс ---------- */
.flow { display: grid; gap: 0; }
.flow__item { display: grid; grid-template-columns: 92px 1fr 1.15fr; gap: clamp(16px, 3vw, 48px);
  padding: clamp(24px, 2.8vw, 38px) clamp(10px,1.6vw,24px); border-radius: var(--r-md);
  border-bottom: 1px solid var(--line-2); transition: background .5s var(--ease); }
.flow__item:hover { background: rgba(255,255,255,.62); }
.flow__n { font-family: var(--mono); font-size: 13px; color: var(--azure); letter-spacing: .1em; padding-top: 6px; }
.flow__item h3 { font-size: clamp(19px, 2vw, 25px); }
.flow__item p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- 12. Опыт / команда ---------- */
.duo { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(24px, 3.4vw, 52px); align-items: stretch; }
/* Фотография тянется на всю высоту текстовой колонки — нижние края совпадают. */
.duo > .figure { height: 100%; }
.duo > .figure img { width: 100%; height: 100%; object-fit: cover; }
.figure { border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 40px 90px -50px rgba(11,75,120,.75); }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.marks { margin-top: 22px; display: grid; gap: 12px; }
.mark { display: flex; gap: 14px; align-items: flex-start; }
.mark__dot { flex-shrink: 0; width: 9px; height: 9px; margin-top: 9px; border-radius: 50%;
  background: linear-gradient(140deg, var(--lagoon), var(--azure)); box-shadow: 0 0 0 5px rgba(69,184,221,.16); }
.mark p { font-size: 16px; color: var(--ink-2); }
.mark strong { font-weight: 600; }

/* ---------- 13. Партнёры ---------- */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 20px); }
.partner { padding: clamp(22px, 2.4vw, 30px); border-radius: var(--r-md); display: flex; flex-direction: column; gap: 20px; }
.partner__logo { height: 60px; display: flex; align-items: center; }
.partner__logo img { height: 42px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.partner__logo--text { font-size: 23px; font-weight: 600; letter-spacing: -.035em; color: var(--deep); display: flex; align-items: center; gap: 12px; }
.partner__logo--text::before { content: ""; width: 8px; height: 26px; border-radius: 4px; background: linear-gradient(180deg, var(--lagoon), var(--azure)); }
.partner h3 { font-size: 18px; letter-spacing: -.025em; }
.partner__role { margin-top: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--azure); }
.partner p { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); }

/* ---------- 14. Отрасли ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 13px 22px; border-radius: 999px; font-size: 15.5px; color: var(--ink-2);
  background: rgba(255,255,255,.94); border: 1px solid rgba(13,36,54,.12);
  box-shadow: 0 8px 20px -18px rgba(11,75,120,.5);
  transition: transform .5s var(--ease-out), color .3s, background .4s; }
.chip:hover { transform: translateY(-3px); color: var(--deep); background: rgba(255,255,255,.9); }

/* ---------- 15. FAQ ---------- */
.faq { border-radius: var(--r-lg); padding: clamp(8px, 1.4vw, 18px) clamp(16px, 2.4vw, 34px); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0;
  cursor: pointer; list-style: none; font-size: clamp(17px, 1.8vw, 20px); font-weight: 500; letter-spacing: -.026em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line);
  background:
    linear-gradient(var(--azure), var(--azure)) center/12px 1.5px no-repeat,
    linear-gradient(var(--azure), var(--azure)) center/1.5px 12px no-repeat, rgba(255,255,255,.7);
  transition: transform .5s var(--ease-out), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details > div { padding-bottom: 26px; max-width: 82ch; color: var(--ink-2); font-size: 16px; }

/* ---------- 16. CTA / форма ---------- */
.cta { position: relative; border-radius: var(--r-2xl); overflow: hidden; isolation: isolate;
  padding: clamp(28px, 4vw, 64px); box-shadow: 0 50px 120px -60px rgba(11,75,120,.75); }
.cta__media { position: absolute; inset: 0; z-index: -2; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(247,252,254,.95) 0%, rgba(244,250,253,.80) 48%, rgba(11,75,120,.30) 100%); }
.cta__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(26px, 3.4vw, 52px); align-items: start; }
.cta p { margin-top: 18px; color: var(--ink-2); max-width: 46ch; }
.cta__contacts { margin-top: 32px; display: grid; gap: 15px; }
.cta__contacts a, .cta__contacts span.row { display: flex; align-items: center; gap: 13px; font-size: 16.5px; color: var(--ink); }
.cta__contacts svg { width: 19px; height: 19px; color: var(--azure); flex-shrink: 0; }

.form { display: grid; gap: 11px; padding: clamp(18px, 2.1vw, 26px); border-radius: var(--r-lg); }
.field { display: grid; gap: 5px; }
.field label { font-size: 12.5px; color: var(--ink-3); letter-spacing: .01em; }
.input, .textarea, select.input {
  width: 100%; padding: 11px 15px; border-radius: var(--r-sm); border: 1px solid rgba(13,36,54,.18);
  background: #ffffff; color: var(--ink); font-size: 15.5px;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:focus, .textarea:focus { outline: none; border-color: var(--azure); background: #fff;
  box-shadow: 0 0 0 4px rgba(21,131,196,.14); }
.textarea { min-height: 76px; resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }

/* Поле-ловушка для ботов. Уводим за край экрана, а не прячем display:none:
   примитивный парсер видит только inline-стили и заполняет поле как обычное. */
.field--extra { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 2px; }
.consent input[type="checkbox"] {
  appearance: none; flex-shrink: 0; width: 21px; height: 21px; margin: 1px 0 0; border-radius: 7px;
  border: 1.5px solid rgba(13,36,54,.18); background: rgba(255,255,255,.9); cursor: pointer;
  transition: background .25s, border-color .25s;
}
.consent input[type="checkbox"]:checked {
  background: var(--azure) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5'/%3E%3C/svg%3E") center/13px no-repeat;
  border-color: var(--azure);
}
.consent label { font-size: 12.2px; line-height: 1.42; color: var(--ink-3); }
.consent a { color: var(--azure); text-decoration: underline; text-underline-offset: 2px; }
.form__note { font-size: 12.5px; color: var(--ink-4); }
/* Блок вместо формы, пока приём заявок выключен. Занимает её место,
   чтобы колонка не схлопывалась и вёрстка страницы не менялась. */
.form--off { align-content: center; gap: 14px; text-align: left; }
.form-off__title { font-size: clamp(18px, 1.5vw, 21px); font-weight: 650; letter-spacing: -.02em; }
.form-off__text { margin: 0; color: var(--ink-3); font-size: 15px; line-height: 1.55; }
.form-off__ways { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }

.form-status { display: none; padding: 13px 16px; border-radius: var(--r-sm); font-size: 14.5px; }
.form-status[data-state="ok"]  { display: block; background: rgba(69,184,221,.16); color: var(--deep); }
.form-status[data-state="err"] { display: block; background: rgba(214,110,90,.14); color: #9c4433; }

/* ---------- 17. Футер ---------- */
.footer { margin-top: clamp(40px, 5vw, 72px); padding-block: clamp(44px, 5vw, 68px) 28px; position: relative; }
.footer::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(226,242,250,.9)); }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.25fr; gap: clamp(26px, 3vw, 52px); }
.footer__brand p { margin-top: 20px; max-width: 36ch; font-size: 14.5px; color: var(--ink-3); }
.footer h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-4); font-weight: 500; margin-bottom: 18px; }
.footer__list { display: grid; gap: 11px; font-size: 14.5px; color: var(--ink-2); }
.footer__list a:hover { color: var(--azure); }
.footer__req { display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-3); }
.footer__req a:hover { color: var(--azure); }
.footer__bottom { margin-top: clamp(36px, 4vw, 60px); padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--ink-4); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__legal a:hover { color: var(--azure); }

/* ---------- 18. Cookie ---------- */
.cookie {
  position: fixed; left: 50%; bottom: 22px; z-index: 95; width: min(800px, calc(100vw - 32px));
  transform: translateX(-50%) translateY(150%); opacity: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 20px 24px; border-radius: var(--r-md);
  transition: transform .9s var(--ease-out), opacity .6s;
}
.cookie[data-show="true"] { transform: translateX(-50%) translateY(0); opacity: 1; }
.cookie p { flex: 1 1 350px; font-size: 13.5px; color: var(--ink-3); }
.cookie a { color: var(--azure); text-decoration: underline; text-underline-offset: 2px; }
.cookie__actions { display: flex; gap: 10px; margin-left: auto; }

/* ---------- 19. Внутренние страницы ---------- */
.page-head { padding-block: clamp(24px, 3vw, 40px) clamp(14px, 1.6vw, 22px); }
.page-head + .section, .page-head + .section--tight { padding-top: clamp(10px, 1.2vw, 20px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 9px; font-size: 13px; color: var(--ink-4); margin-bottom: 24px; }
.crumbs a:hover { color: var(--azure); }
.page-head h1 { max-width: 22ch; }
.page-head .lead { margin-top: 22px; max-width: 66ch; }

.hero-strip { position: relative; border-radius: var(--r-2xl); overflow: hidden; min-height: clamp(280px, 34vw, 420px);
  display: flex; align-items: flex-end; box-shadow: 0 40px 100px -55px rgba(11,75,120,.7); }
.hero-strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-strip::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(244,250,253,.35), rgba(11,75,120,.45)); }
.hero-strip__plate { margin: clamp(16px,2vw,26px); padding: clamp(20px,2.4vw,32px); border-radius: var(--r-lg); }

.grid { display: grid; gap: clamp(14px, 1.6vw, 22px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.item { padding: clamp(22px, 2.4vw, 30px); border-radius: var(--r-md);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s; }
.item:hover, .svc:hover, .partner:hover { transform: translateY(-3px); border-color: rgba(21,131,196,.45); box-shadow: var(--glass-sh-hi); }
.item__n { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--azure); }
.item h3 { margin-top: 12px; font-size: 18.5px; letter-spacing: -.025em; }
.item ul { margin-top: 14px; display: grid; gap: 8px; }
.item li { position: relative; padding-left: 17px; font-size: 14.8px; color: var(--ink-2); }
.item li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--shallow); }

.brands { display: flex; flex-wrap: wrap; gap: 9px; }
.brands span { padding: 9px 17px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.7); font-size: 14.5px; color: var(--ink-2); }

.panel { padding: clamp(24px, 3vw, 44px); border-radius: var(--r-lg); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 22px); }
.stat { padding: 26px; border-radius: var(--r-md); }
.stat dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--azure); }
.stat dd { margin: 14px 0 0; font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }

/* Правовые документы */
.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(28px, 5vw, 76px); align-items: start; }
.toc { position: sticky; top: 110px; display: grid; gap: 10px; font-size: 14px; padding: 22px; border-radius: var(--r-md); }
.toc a { color: var(--ink-4); transition: color .3s; }
.toc a:hover, .toc a.is-active { color: var(--deep); }
.prose { max-width: 76ch; }
.prose h2 { margin-top: 38px; font-size: clamp(21px, 2.3vw, 28px); scroll-margin-top: 110px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 30px; font-size: 18.5px; }
.prose p { margin-top: 14px; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; }
.prose ul, .prose ol { margin-top: 14px; display: grid; gap: 8px; color: var(--ink-2); font-size: 16.5px; line-height: 1.58; padding-left: 0; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 3px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--lagoon); }
.prose ol { counter-reset: li; }
.prose ol li { position: relative; padding-left: 30px; counter-increment: li; }
.prose ol li::before { content: counter(li) "."; position: absolute; left: 0; top: 0; font-family: var(--mono); font-size: 13px; color: var(--azure); }
.prose a { color: var(--azure); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin-top: 22px; font-size: 15px; }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: 12px 14px 12px 0; text-align: left; vertical-align: top; }
.prose th { font-weight: 500; color: var(--ink-3); font-size: 13px; }

/* ---------- 20. Появление и переходы ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); filter: blur(6px); }
[data-reveal].is-in { opacity: 1; transform: none; filter: none;
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out); }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(24px); filter: blur(5px); }
[data-reveal-stagger].is-in > * { opacity: 1; transform: none; filter: none;
  transition: opacity .9s var(--ease-out), transform 1s var(--ease-out), filter .9s var(--ease-out); }
[data-reveal-stagger].is-in > *:nth-child(2) { transition-delay: .09s; }
[data-reveal-stagger].is-in > *:nth-child(3) { transition-delay: .18s; }
[data-reveal-stagger].is-in > *:nth-child(4) { transition-delay: .27s; }
[data-reveal-stagger].is-in > *:nth-child(5) { transition-delay: .36s; }
[data-reveal-stagger].is-in > *:nth-child(6) { transition-delay: .45s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* Переходы между страницами */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: pageOut .3s var(--ease) both; }
::view-transition-new(root) { animation: pageIn .55s var(--ease-out) both; }
@keyframes pageOut { to { opacity: 0; transform: translateY(-10px) scale(.995); filter: blur(4px); } }
@keyframes pageIn { from { opacity: 0; transform: translateY(18px) scale(.995); filter: blur(6px); } }
::view-transition-old(hero), ::view-transition-new(hero) { animation-duration: .6s; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- 21. Адаптив ---------- */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .dir:nth-child(n) { grid-column: span 1; min-height: 330px; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero__facts { grid-template-columns: repeat(2, 1fr); gap: 20px 28px; }
}
/* Пунктов в меню стало больше — телефон уступает место раньше. */
@media (max-width: 1180px) { .nav__phone { display: none; } }
@media (max-width: 900px) {
  .nav__menu, .nav__phone { display: none; }
  .burger { display: inline-grid; }
  .cta__grid, .duo, .legal-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .grid--3, .rail { grid-template-columns: repeat(2, 1fr); }
  .flow__item { grid-template-columns: 60px 1fr; }
  .flow__item p { grid-column: 2; }
  .stat-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { padding-right: 8px; gap: 10px; }
  .nav__actions > .btn--primary { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .bento, .partners, .grid--2, .grid--3, .grid--4, .rail { grid-template-columns: 1fr; }
  .head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .form__row { grid-template-columns: 1fr; }
  .hero__stage { min-height: 0; border-radius: var(--r-xl); }
  .hero__facts { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; white-space: normal; padding-block: 13px; line-height: 1.3; }
  .cookie { bottom: 12px; padding: 18px; }
  .cookie__actions { width: 100%; }
  .cookie__actions .btn { flex: 1; }
  .footer__top { grid-template-columns: 1fr; }
}

@media print {
  .nav-shell, .cookie, .cta, .footer, .mobile-menu, .water-bg { display: none !important; }
  body { background: #fff; }
}


/* ---------- 22. Широкие экраны: растёт кегль и воздух, а не длина строки ---------- */
@media (min-width: 1600px) {
  :root { --maxw: 1400px; --maxw-wide: 1560px; --pad: 64px; }
  body { font-size: 17.5px; }
}
@media (min-width: 1920px) {
  :root { --maxw: 1460px; --maxw-wide: 1640px; --pad: 72px; }
  body { font-size: 18px; }
}
@media (min-width: 2400px) {
  :root { --maxw: 1560px; --maxw-wide: 1760px; --pad: 88px; }
  body { font-size: 19px; }
}

/* ---------- 23. Первый экран — во всю ширину окна ---------- */
.hero { padding-top: 0; margin-top: -80px; }
.hero > .wrap { max-width: none; padding-inline: 0; }
.hero__stage {
  border-radius: 0 0 var(--r-2xl) var(--r-2xl);
  min-height: min(100svh, 900px);
  align-items: center;
  box-shadow: 0 40px 90px -60px rgba(11,75,120,.55);
}
.hero__inner { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.hero__panel { margin: 0; width: min(100%, 720px); }
.hero .ticker { margin-top: 0; padding-block: 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.55); }
@media (max-width: 900px) {
  .hero { margin-top: -74px; }
  .hero__stage { min-height: 0; padding-block: 104px 40px; }
  .hero__panel { width: 100%; }
}

/* ---------- 24. Ленты-разделители: секции читаются как отдельные экраны ---------- */
.band { position: relative; padding-block: clamp(34px, 3.6vw, 54px); }
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.72) 12%, rgba(255,255,255,.72) 88%, rgba(255,255,255,0));
  border-block: 1px solid rgba(13,36,54,.06);
}

/* ---------- 25. Пояс фактов внизу первого экрана ---------- */
.hero__stage {
  display: grid; grid-template-rows: 1fr auto; align-items: center;
  padding-top: 80px;   /* высота плавающей шапки — панель центрируется под ней */
}
.hero__inner { align-self: center; }
.hero__belt { align-self: end; }
@media (max-width: 900px) { .hero__stage { padding-top: 96px; } }
.hero__belt {
  width: 100%;
  background: rgba(255,255,255,.80);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  border-top: 1px solid rgba(13,36,54,.08);
}
.hero__belt-inner { width: 100%; max-width: var(--maxw); margin-inline: auto; padding: 20px var(--pad); }
.hero__belt .hero__facts { margin: 0; padding: 0; border: 0; grid-template-columns: repeat(4, 1fr); gap: 18px 30px; }
.hero__belt .hero__fact dd { font-size: 14.5px; }
@media (max-width: 900px) {
  .hero__belt { position: static; }
  .hero__belt .hero__facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hero__belt .hero__facts { grid-template-columns: 1fr; }
}


/* ---------- 26. Выключка по формату для длинных текстов ---------- */
/* Ровный правый край — как в документе. Только там, где колонка достаточно
   широкая: в узких карточках выключка даёт «реки» и её не применяем. */
.prose p,
.prose li,
.duo > div > p,
.faq details > div {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 7 4 3;
}
/* Короткие строки и мобильные — без выключки: там она только вредит */
@media (max-width: 900px) {
  .prose p, .prose li, .duo > div > p, .faq details > div { text-align: left; }
}

/* Служебные и короткие строки — всегда по левому краю, без растяжки пробелов */
.form__note, .tiny, .small, .consent label, .mark p,
.cta p, .panel p, .lead, .footer__req, .partner p, .item p, .svc p {
  text-align: left;
}

/* ---------- 27. Собственный выпадающий список ---------- */
/* Нативный <select> остаётся в форме (значение и работа без JS),
   но визуально его заменяет этот компонент — системное меню ОС не всплывает. */
.select { position: relative; }
.select > select { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.select__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px 14px 17px; border-radius: var(--r-sm);
  border: 1px solid rgba(13,36,54,.18); background: #fff; color: var(--ink);
  font-size: 16px; text-align: left; cursor: pointer;
  transition: border-color .25s, box-shadow .25s;
}
.select__btn:hover { border-color: rgba(13,36,54,.3); }
.select__btn svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--ink-4); transition: transform .35s var(--ease-out); }
.select[data-open="true"] .select__btn { border-color: var(--azure); box-shadow: 0 0 0 4px rgba(21,131,196,.14); }
.select[data-open="true"] .select__btn svg { transform: rotate(180deg); }

.select__menu {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 40;
  padding: 8px; border-radius: 20px; background: #fff;
  border: 1px solid rgba(13,36,54,.12);
  box-shadow: 0 26px 56px -24px rgba(11,75,120,.5), 0 4px 12px -6px rgba(11,75,120,.18);
  /* Восемь направлений должны быть видны целиком: список без прокрутки
     читается за один взгляд, а прокрутка внутри формы теряет варианты. */
  display: grid; gap: 2px; max-height: min(70vh, 560px); overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.985); transform-origin: top center;
  transition: opacity .28s var(--ease-out), transform .35s var(--ease-out), visibility .28s;
}
.select[data-open="true"] .select__menu { opacity: 1; visibility: visible; transform: none; }
.select__option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 14px; border-radius: 12px; font-size: 15px; line-height: 1.35; color: var(--ink-2);
  cursor: pointer; transition: background .2s, color .2s;
}
.select__option:hover, .select__option[data-active="true"] { background: var(--foam); color: var(--ink); }
.select__option[aria-selected="true"] { color: var(--deep); font-weight: 500; }
.select__option svg { width: 15px; height: 15px; color: var(--azure); opacity: 0; flex-shrink: 0; }
.select__option[aria-selected="true"] svg { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .select__menu { transition: opacity .01s; transform: none; }
}

/* ---------- 28. Компактные карточки контактов ---------- */
.contact-card { padding: clamp(18px, 1.9vw, 24px); }
.contact-card__head { display: flex; align-items: center; gap: 12px; }
.contact-card__ico { width: 26px; height: 26px; flex-shrink: 0; color: var(--azure); }
.contact-card__ico svg { width: 100%; height: 100%; }
.contact-card__head h3 { margin: 0; font-size: 17px; letter-spacing: -.022em; }
.contact-card p { margin-top: 10px; }

/* ---------- 29. Фотографии оживают под курсором ─────────────
   Приглушённый кадр — фон, цветной — проявляется при наведении:
   картинка становится резче, насыщеннее и чуть ближе.            */
.dir__img { overflow: hidden; }
.figure, .hero-strip { position: relative; overflow: hidden; }

.img-color {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity .55s var(--ease-out), transform 1.1s var(--ease-out), filter .55s var(--ease-out);
  filter: saturate(.9) contrast(.98);
  pointer-events: none;
}
.dir__img > img:first-child,
.figure > img:first-child,
.hero-strip > img:first-child {
  transition: opacity .55s var(--ease-out), transform 1.1s var(--ease-out), filter .6s var(--ease-out);
  filter: saturate(.92);
}

.dir:hover .img-color,
.figure:hover .img-color,
.hero-strip:hover .img-color {
  opacity: 1; transform: scale(1); filter: saturate(1.06) contrast(1.04);
}
.dir:hover .dir__img > img:first-child,
.figure:hover > img:first-child,
.hero-strip:hover > img:first-child { opacity: 0; }

/* Фигуры и полосы тоже слегка приближаются — движение подхватывает взгляд */
.figure > img, .hero-strip > img { transition: transform 1.1s var(--ease-out); }
.figure:hover > img, .hero-strip:hover > img { transform: scale(1.02); }

@media (prefers-reduced-motion: reduce) {
  .img-color, .dir__img > img:first-child { transition-duration: .01s; }
  .figure:hover > img, .hero-strip:hover > img { transform: none; }
}

/* ---------- 30. Прикрепление файлов к заявке ---------- */
.dropzone {
  display: flex; align-items: center; gap: 11px; cursor: pointer;
  padding: 10px 14px; border-radius: var(--r-sm);
  border: 1.5px dashed rgba(13,36,54,.22); background: rgba(255,255,255,.6);
  transition: border-color .25s, background .25s, transform .3s var(--ease-out);
}
.dropzone:hover { border-color: var(--azure); background: rgba(255,255,255,.85); }
.dropzone[data-over="true"] { border-color: var(--azure); background: var(--foam); transform: scale(1.01); }
.dropzone svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--azure); }
.dropzone__text { font-size: 13.2px; color: var(--ink-2); line-height: 1.35; }
.dropzone__text strong { font-weight: 600; }
.dropzone__text .tiny { display: block; margin-top: 1px; font-size: 11.5px; }

.filelist { margin-top: 10px; display: grid; gap: 7px; list-style: none; padding: 0; }
.filelist li {
  display: flex; align-items: center; gap: 9px; padding: 6px 10px;
  background: rgba(255,255,255,.8); border: 1px solid var(--line-2); border-radius: 10px; font-size: 13.5px;
}
.filelist .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filelist .size { color: var(--ink-4); font-size: 12.5px; white-space: nowrap; }
.filelist button {
  background: none; border: 0; cursor: pointer; color: var(--ink-4); padding: 2px; line-height: 0;
  transition: color .2s;
}
.filelist button:hover { color: var(--danger, #b91c1c); }


/* Bento на две карточки — обзор собственного производства */
.bento--2 .dir { grid-column: span 3; min-height: 340px; }
.bento--2 .dir .dir__plate { width: min(100%, 470px); }
@media (max-width: 900px) { .bento--2 .dir { grid-column: span 6; } }

/* ── Объекты: галерея и сетка карточек ─────────────────────────────── */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
         gap: clamp(12px, 1.4vw, 18px); }
.shot { display: block; overflow: hidden; border-radius: var(--r-lg);
        box-shadow: 0 24px 54px -34px rgba(11,75,120,.62); }
.shot img { display: block; width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover;
            transition: transform 1s var(--ease-out), filter 1s var(--ease-out);
            filter: saturate(.82); }
.shot:hover img { transform: scale(1.04); filter: saturate(1); }

/* Карточки объектов: две в ряд, крупнее направлений */
.bento--objects .dir { grid-column: span 3; min-height: 360px; }
.bento--objects .dir .dir__plate { width: min(100%, 520px); }
@media (max-width: 900px) { .bento--objects .dir { grid-column: span 6; } }

/* ── Просмотр фото объекта ─────────────────────────────────────────── */
.lb {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(7, 26, 42, .92);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.lb[data-open="true"] { display: block; opacity: 1; }
.lb__stage { position: absolute; inset: 0; display: grid; place-items: center;
             padding: clamp(48px, 7vw, 90px) clamp(16px, 6vw, 96px); }
.lb__img {
  max-width: 100%; max-height: 100%; border-radius: var(--r-md);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8);
  animation: lbIn .34s var(--ease-out) both;
}
@keyframes lbIn { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.lb__nav, .lb__close {
  position: absolute; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
  background: rgba(255, 255, 255, .10); color: #fff;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.lb__nav { top: 50%; width: 52px; height: 52px; margin-top: -26px; }
.lb__nav:hover, .lb__close:hover { background: rgba(255, 255, 255, .2); }
.lb__nav--prev { left: clamp(10px, 2.4vw, 28px); }
.lb__nav--next { right: clamp(10px, 2.4vw, 28px); }
.lb__nav:active { transform: scale(.94); }
.lb__close { top: clamp(12px, 2vw, 22px); right: clamp(12px, 2vw, 22px); width: 44px; height: 44px; }
.lb__bar {
  position: absolute; left: 0; right: 0; bottom: clamp(14px, 2.4vw, 26px);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 0 20px; text-align: center; pointer-events: none;
}
.lb__caption { color: rgba(255, 255, 255, .9); font-size: 14.5px; max-width: 70ch; }
.lb__count { font-family: var(--mono); font-size: 12px; letter-spacing: .12em;
             color: rgba(255, 255, 255, .55); }
.lb__dots { display: flex; gap: 7px; pointer-events: auto; }
.lb__dot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
           background: rgba(255, 255, 255, .3); transition: background .25s var(--ease), transform .25s var(--ease); }
.lb__dot[aria-current="true"] { background: #fff; transform: scale(1.25); }
body.lb-open { overflow: hidden; }
@media (max-width: 700px) {
  .lb__nav { width: 44px; height: 44px; margin-top: -22px; }
  .lb__caption { font-size: 13px; }
}
/* Обложка объекта кликабельна: открывает просмотрщик с первого кадра */
.hero-strip__zoom { position: absolute; inset: 0; z-index: 2; cursor: zoom-in; }
.hero-strip__plate { position: relative; z-index: 3; }
/* Список направлений раскрывается вверх, если внизу не хватает места */
.select[data-drop="up"] .select__menu { top: auto; bottom: calc(100% + 8px);
                                        transform-origin: bottom center; }
.select[data-drop="up"][data-open="false"] .select__menu { transform: translateY(8px) scale(.985); }

/* ── Список приложенных к заявке файлов ────────────────────────────── */
.dropzone[data-over="true"] { border-color: var(--azure); background: var(--foam); }
.filelist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.filelist__item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line-2);
}
.filelist__name { flex: 1; min-width: 0; font-size: 14.5px; color: var(--ink-2);
                  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filelist__size { font-family: var(--mono); font-size: 12px; color: var(--ink-4); white-space: nowrap; }
.filelist__del { display: grid; place-items: center; width: 26px; height: 26px; padding: 0;
                 border: 0; border-radius: 8px; background: none; cursor: pointer;
                 color: var(--ink-4); transition: background .2s, color .2s; }
.filelist__del:hover { background: var(--foam); color: var(--deep); }
.filelist__del svg { width: 14px; height: 14px; }
