/* base */
/*
  1 design px = var(--u).
  Mobile (<768): дизайн 390 px, масштаб по ширине телефона.
  Tablet (768–1279): мобильная раскладка в центрированной колонке.
  Desktop (>=1280): дизайн 1920 px, пропорциональный масштаб, не крупнее 1:1.
  Размеры секций пишутся как calc(N * var(--u)).
*/
@font-face { font-family: 'TT Firs Neue'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('../fonts/6a72ec754e55ed74cd682b38_TTFirsNeue-Regular.woff2') format('woff2'); }
@font-face { font-family: 'TT Firs Neue'; font-weight: 500; font-style: normal; font-display: swap;
  src: url('../fonts/6a72ec754e55ed74cd682b39_TTFirsNeue-Medium.woff2') format('woff2'); }

:root {
  --u: clamp(0.82px, calc(100vw / 390), 1.1px);
  --pad: calc(12 * var(--u));
  --col: 100%;
  --bg: #031425;
  --bg-solutions: #071a2f;
  --navy: #08294b;
  --steel: #234467;
  --blue: #4f7298;
  --muted: #768a9e;
  --line: #c8dcf2;
  --white: #fff;
  --font: 'TT Firs Neue', 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-body: max(calc(16 * var(--u)), 14px);
}
@media (min-width: 768px) {
  :root { --u: 1.15px; --col: 720px; }
}
@media (min-width: 1280px) {
  :root { --u: calc(min(100vw, 1920px) / 1920); --pad: calc(160 * var(--u)); --col: 100%; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--white);
  font: 400 var(--t-body)/1.25 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol { margin: 0; padding: 0; font-weight: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--line); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.main { display: flex; flex-direction: column; overflow-x: clip; }
section { position: relative; scroll-margin-top: calc(24 * var(--u)); }

.container {
  position: relative; width: 100%;
  max-width: calc(var(--col) + 2 * var(--pad));
  margin-inline: auto; padding-inline: var(--pad);
}
@media (min-width: 1280px) {
  .container { max-width: calc(1920 * var(--u)); }
}

/* Типографика (десктоп / мобайл) */
.t-h1 { font-weight: 500; font-size: calc(36 * var(--u)); line-height: 1.1; text-transform: uppercase; }
.t-h2 { font-weight: 400; font-size: calc(20 * var(--u)); line-height: 1.2; text-transform: uppercase; }
.t-h3 { font-weight: 400; font-size: calc(20 * var(--u)); line-height: 1.2; text-transform: uppercase; }
.t-body { font-size: var(--t-body); line-height: 1.3; }
.t-muted { color: var(--muted); }
.t-btn { font-weight: 500; font-size: max(calc(16 * var(--u)), 14px); line-height: 1.25; text-transform: uppercase; }
.t-label { font-weight: 400; font-size: max(calc(20 * var(--u)), 14px); text-transform: uppercase; letter-spacing: .01em; }
@media (min-width: 1280px) {
  .t-h1 { font-size: calc(64 * var(--u)); line-height: 1.17; }
  .t-h2 { font-size: calc(38 * var(--u)); }
  .t-h3 { font-size: calc(22 * var(--u)); }
}
.stack > * + * { margin-top: calc(16 * var(--u)); }

/* Заголовок секции: "/ ТЕКСТ" */
.sec-title { display: flex; gap: calc(16 * var(--u)); align-items: flex-start; }
.sec-title::before { content: '/'; flex: none; }
@media (min-width: 1280px) { .sec-title { gap: calc(32 * var(--u)); } }

/* Ярлык секции: уголки + подпись */
.tag { display: inline-flex; align-items: center; gap: calc(16 * var(--u)); }
.tag::before {
  content: ''; flex: none; width: calc(20 * var(--u)); height: calc(20 * var(--u));
  background: url('../img/section-marker.svg') center / 100% 100% no-repeat;
}

/* Кнопки: фон и уголки из исходных SVG макета, скосы не растягиваются (9-slice) */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: calc(8 * var(--u));
  min-height: calc(56 * var(--u)); padding: calc(18 * var(--u)) calc(24 * var(--u));
  font-weight: 500; font-size: max(calc(16 * var(--u)), 14px); line-height: 1.25; text-transform: uppercase;
  white-space: nowrap; color: var(--white); cursor: pointer; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btn::before, .btn::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  transition: transform .35s var(--ease-out), filter .35s var(--ease);
}
.btn::before {
  inset: 0;
  border-style: solid; border-width: calc(12 * var(--u)) calc(19 * var(--u)) calc(16 * var(--u)) calc(13 * var(--u));
  border-image: url('../img/btn-bg-primary.svg') 12 19 16 13 fill / calc(12 * var(--u)) calc(19 * var(--u)) calc(16 * var(--u)) calc(13 * var(--u)) stretch;
}
.btn::after {
  inset: calc(-1 * var(--u));
  border-style: solid; border-width: calc(22 * var(--u)) calc(50 * var(--u)) calc(24 * var(--u)) calc(46 * var(--u));
  border-image: url('../img/btn-border-primary.svg') 22 50 24 46 / calc(22 * var(--u)) calc(50 * var(--u)) calc(24 * var(--u)) calc(46 * var(--u)) stretch;
}
.btn--ghost::before { display: none; }
.btn--ghost::after {
  border-width: calc(22 * var(--u)) calc(32 * var(--u)) calc(24 * var(--u)) calc(26 * var(--u));
  border-image: url('../img/btn-border-secondary.svg') 22 32 24 26 / calc(22 * var(--u)) calc(32 * var(--u)) calc(24 * var(--u)) calc(26 * var(--u)) stretch;
}
.btn--dark::before { border-image-source: url('../img/btn-bg-dark.svg'); }
.btn--block { display: flex; width: 100%; }
@media (hover: hover) {
  .btn:hover::before { transform: scale(1.04); filter: brightness(1.12); }
  .btn:hover::after { transform: scale(1.07); }
}
.btn:active::before { transform: scale(.98); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Иконка в уголках 48×48 */
.ico {
  position: relative; flex: none; width: calc(48 * var(--u)); height: calc(48 * var(--u));
  display: grid; place-items: center;
  background: url('../img/bracket-48.svg') center / 100% 100% no-repeat;
}
.ico img { width: calc(24 * var(--u)); height: calc(24 * var(--u)); }
.ico--sm { width: calc(16 * var(--u)); height: calc(16 * var(--u)); background-image: url('../img/bracket-16.svg'); }

/* Панель со скошенными углами: стекло + обводка 2px */
.panel { position: relative; isolation: isolate; }
.panel::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(3, 20, 37, .4);
  -webkit-backdrop-filter: blur(6.5px); backdrop-filter: blur(6.5px);
  clip-path: polygon(calc(51 * var(--u)) 0, 100% 0, 100% calc(100% - 63 * var(--u)), calc(100% - 51 * var(--u)) 100%, 0 100%, 0 calc(63 * var(--u)));
}
.panel::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-style: solid; border-width: calc(64 * var(--u)) calc(52 * var(--u));
  border-image: url('../img/panel-frame.svg') 64 52 / calc(64 * var(--u)) calc(52 * var(--u)) stretch;
}

/* Строка характеристики: <div class="spec"><dt>НАЗВА</dt><dd>значення</dd></div> (линия-заполнитель рисует dt::after) */
.spec { display: flex; align-items: flex-end; gap: calc(4 * var(--u)); }
.spec dt { flex: 1 1 auto; display: flex; align-items: flex-end; gap: calc(4 * var(--u)); font-weight: 500; text-transform: uppercase; }
.spec dt::after { content: ''; flex: 1 1 calc(24 * var(--u)); min-width: calc(24 * var(--u)); height: 1px; margin-bottom: .3em; background: var(--muted); }
.spec dd { margin: 0; white-space: nowrap; }

/* Вкладки */
.tabs__list {
  display: flex; gap: calc(16 * var(--u)); overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.tabs__list.is-end { -webkit-mask-image: none; mask-image: none; }
.tabs__list::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: none; display: flex; align-items: center;
  min-height: calc(48 * var(--u)); padding: 0 calc(21 * var(--u));
  font-weight: 500; font-size: max(calc(16 * var(--u)), 14px); text-transform: uppercase; max-width: 80%;
  scroll-snap-align: start; transition: background-color .35s var(--ease), color .35s var(--ease);
}
.tab::before, .tab::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: calc(12 * var(--u));
  background: center / 100% 100% no-repeat; transition: transform .35s var(--ease-out);
}
.tab::before { left: 0; background-image: url('../img/tab-bracket-left.svg'); }
.tab::after { right: 0; background-image: url('../img/tab-bracket-right.svg'); }
.tab[aria-selected='true'] { background: var(--navy); }
@media (hover: hover) {
  .tab:hover::before { transform: translateX(calc(-3 * var(--u))); }
  .tab:hover::after { transform: translateX(calc(3 * var(--u))); }
}
.tabs__panels { position: relative; margin-top: calc(18 * var(--u)); transition: height .5s ease-out; }
.tabs__panel[hidden] { display: none; }
.tabs__panel.is-entering { animation: tab-in .5s ease-out both; }
@keyframes tab-in { from { opacity: 0; transform: translateY(calc(12 * var(--u))); } }

/* Появление при прокрутке (язык движения текущего сайта: 70px вверх, 0.3–0.7s, шаг 0.1s) */
.js [data-reveal] { opacity: 0; transform: translateY(calc(70 * var(--u))); transition: opacity .6s var(--ease), transform .7s var(--ease-out); }
.js [data-reveal='left'] { transform: translateX(calc(-170 * var(--u))); }
.js [data-reveal='right'] { transform: translateX(calc(170 * var(--u))); }
.js [data-reveal='zoom'] { transform: scale(1.12); transition-duration: 1s, 1.2s; }
.js [data-reveal='fade'] { transform: none; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal-group] > * { opacity: 0; transform: translateY(calc(50 * var(--u))); transition: opacity .6s var(--ease), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * .1s); }
.js [data-reveal-group].is-in > * { opacity: 1; transform: none; }
.reveal-all [data-reveal], .reveal-all [data-reveal-group] > * { opacity: 1 !important; transform: none !important; }

/* Тексты, которые в макете различаются для телефона и компьютера */
@media (max-width: 1279px) { .only-d { display: none !important; } }
@media (min-width: 1280px) { .only-m { display: none !important; } }

/* Смена фото (кроссфейд) */
.slides { position: relative; }
/* Новый кадр проявляется поверх старого, старый остаётся непрозрачным до конца перехода: без провала яркости.
   Кадры не масштабируются, чтобы фигурный контур не прыгал. Без JS виден первый кадр. */
.slides > * { position: relative; }
.slides > :not(:first-child) { position: absolute; inset: 0; }
html:not(.js) .slides > :not(:first-child) { display: none; }
.js .slides > * { transition: opacity 1.2s var(--ease); }
.js .slides > :not(.is-active):not(.was-active) { opacity: 0; }
.js .slides > .is-active { z-index: 1; }
.js .slides > .was-active { transition: none; }

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

/* На мобайле «Програмне забезпечення» идёт перед этапами и преимуществами */
@media (max-width: 1279px) {
  .main > #po { order: 1; }
  .main > #etapy { order: 2; }
  .main > #perevagy { order: 3; }
  .main > #contact { order: 4; }
}

/* header */
.header { position: absolute; z-index: 20; top: calc(16 * var(--u)); left: 0; right: 0; }
.header__row { display: flex; align-items: center; justify-content: space-between; }
.header__logo { display: block; flex: none; width: calc(118 * var(--u)); }
.header__logo img { width: 100%; height: auto; }
.header__nav { display: none; }
.header__burger { width: calc(40 * var(--u)); height: calc(40 * var(--u)); }
.header__burger img { width: 100%; height: 100%; }

@media (min-width: 1280px) {
  .header { top: calc(30 * var(--u)); }
  .header__burger { display: none; }
  .header__nav { display: flex; align-items: center; gap: calc(40 * var(--u)); }
  .header__link, .lang__btn {
    position: relative; font-weight: 500; font-size: max(calc(16 * var(--u)), 14px); line-height: 1.25;
    text-transform: uppercase; white-space: nowrap;
  }
  .header__link::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: calc(-6 * var(--u)); height: 1px;
    background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out);
  }
  .header__link:hover::after { transform: scaleX(1); transform-origin: left; }
}

.lang { position: relative; }
.lang__btn { display: flex; align-items: center; gap: calc(4 * var(--u)); }
.lang__btn img { width: calc(20 * var(--u)); height: calc(20 * var(--u)); transition: transform .3s var(--ease-out); }
.lang__btn[aria-expanded='true'] img { transform: rotate(180deg); }
.lang__list {
  position: absolute; right: 0; top: calc(100% + 10 * var(--u)); min-width: 100%;
  padding: calc(8 * var(--u)) calc(14 * var(--u)); background: var(--navy);
  font-weight: 500; text-transform: uppercase; animation: tab-in .3s var(--ease-out);
}
.lang__list a { display: block; padding: calc(4 * var(--u)) 0; }

/* Мобильное меню на весь экран */
.menu {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  overflow-y: auto; overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0); transition: clip-path .55s var(--ease-out);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu[hidden] { display: none; }
.menu__top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding-top: calc(16 * var(--u)); }
.menu__actions { display: flex; align-items: center; gap: calc(24 * var(--u)); }
.menu__lang { display: flex; align-items: center; gap: calc(4 * var(--u)); font-weight: 500; font-size: calc(16 * var(--u)); text-transform: uppercase; }
.menu__lang img { width: calc(20 * var(--u)); height: calc(20 * var(--u)); }
.menu__close { width: calc(40 * var(--u)); height: calc(40 * var(--u)); }
.menu__close img { width: 100%; height: 100%; }
.menu__nav { display: flex; flex-direction: column; gap: calc(40 * var(--u)); padding-top: calc(32 * var(--u)); padding-bottom: calc(40 * var(--u)); }
.menu__nav a {
  font-size: calc(32 * var(--u)); line-height: 1.2; text-transform: uppercase;
  opacity: 0; transform: translateX(calc(-40 * var(--u)));
  transition: opacity .45s var(--ease), transform .55s var(--ease-out);
}
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: .06s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: .12s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: .18s; }
.menu.is-open .menu__nav a:nth-child(5) { transition-delay: .24s; }
@media (min-width: 1280px) { .menu { display: none !important; } }
body.is-locked { overflow: hidden; }

/* hero */
.hero { overflow: hidden; }
.hero__stage { position: relative; height: calc(600 * var(--u)); max-width: calc(390 * var(--u)); margin-inline: auto; }
.hero__bg { position: absolute; left: calc(5.36 * var(--u)); top: 0; width: calc(515 * var(--u)); height: calc(588.5 * var(--u)); }
.hero__bg img { width: 100%; height: 100%; }
.hero__title { position: absolute; z-index: 1; left: calc(12 * var(--u)); top: calc(105 * var(--u)); width: calc(367.5 * var(--u)); }
.hero__title img { width: 100%; height: auto; }
.hero__cutout { position: absolute; z-index: 2; left: calc(-48 * var(--u)); top: calc(112.32 * var(--u)); width: calc(374.97 * var(--u)); height: calc(321.16 * var(--u)); overflow: hidden; pointer-events: none; }
.hero__cutout img { position: absolute; left: 1.79%; top: 2.15%; width: 151.14%; height: 97.85%; max-width: none; }

.hero__features { position: absolute; inset: 0; z-index: 3; }
.hero__feature { position: absolute; display: flex; flex-direction: column; gap: calc(18 * var(--u)); font-size: var(--t-body); line-height: 1.3; }
.hero__feature--soft { left: calc(229 * var(--u)); top: calc(205 * var(--u)); width: calc(149 * var(--u)); }
.hero__feature--made { left: calc(49 * var(--u)); top: calc(308 * var(--u)); width: calc(139 * var(--u)); }
.hero__feature--task { left: calc(176 * var(--u)); top: calc(465 * var(--u)); width: calc(147 * var(--u)); }
.ico--hero { background: none; }
.ico--hero::before { content: ''; position: absolute; inset: 0; background: url('../img/bracket-48.svg') center / 100% 100% no-repeat; }
.ico--hero img { width: 100%; height: 100%; }
.hero__feature-text { display: block; overflow: hidden; }

.hero__content { display: flex; flex-direction: column; gap: calc(17 * var(--u)); padding-top: calc(5 * var(--u)); padding-bottom: calc(48 * var(--u)); }
.hero__sub { order: 2; color: var(--steel); font-size: calc(20 * var(--u)); line-height: 1.2; text-transform: uppercase; }
.hero__text { order: 3; }
.hero__actions { order: 1; display: flex; flex-direction: column; gap: calc(16 * var(--u)); }
.hero__actions .btn { width: 100%; }
.hero__cta-d { display: none; }

@media (min-width: 1280px) {
  .hero { height: calc(1068 * var(--u)); }
  .hero__stage { position: absolute; inset: 0; height: auto; max-width: none; }
  .hero__bg { left: calc(630 * var(--u)); width: calc(1358.44 * var(--u)); height: calc(1068.44 * var(--u)); }
  .hero__title { left: calc(167 * var(--u)); top: calc(179 * var(--u)); width: calc(1375 * var(--u)); }
  .hero__cutout { left: calc(648.57 * var(--u)); top: calc(213 * var(--u)); width: calc(930 * var(--u)); height: calc(575 * var(--u)); }
  .hero__cutout img { left: 1.24%; top: 0; width: 111.2%; height: 100%; }
  .hero__feature--made { left: calc(1060 * var(--u)); top: calc(358 * var(--u)); width: calc(139 * var(--u)); }
  .hero__feature--task { left: calc(887 * var(--u)); top: calc(708 * var(--u)); width: calc(147 * var(--u)); }
  .hero__feature--soft { left: calc(1500 * var(--u)); top: calc(475 * var(--u)); width: calc(250 * var(--u)); }
  .hero__content { position: relative; z-index: 4; gap: 0; padding-top: calc(423 * var(--u)); padding-bottom: 0; }
  .hero__sub { order: 0; width: calc(623 * var(--u)); font-size: calc(38 * var(--u)); }
  .hero__text { order: 0; width: calc(512 * var(--u)); margin-top: calc(75 * var(--u)); }
  .hero__actions { order: 0; flex-direction: row; gap: calc(32 * var(--u)); margin-top: calc(32 * var(--u)); }
  .hero__actions .btn { width: auto; }
  .hero__cta-d { display: inline; }
  .hero__cta-m { display: none; }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .hero__content { max-width: calc(390 * var(--u) + 2 * var(--pad)); }
}

/* Вступительная анимация (снимается классом is-intro после загрузки) */
[data-intro] { transition: transform 1.1s var(--ease-out), opacity .9s var(--ease); }
/* Подписи героя как в прототипе (Mobile Motion State): через 0,4 с, Smart Animate 0,8 с ease-out, все три вместе:
   рамка 56→48, значок 16→24 и проявляется, текст поднимается на 48 px и проявляется */
.hero__feature .ico::before, .hero__feature .ico img, .hero__feature-text { transition: transform .8s ease-out .4s, opacity .8s ease-out .4s; }
[data-intro='header'] { transition-delay: .25s; }
[data-intro='bg'] { transition-duration: 1.4s, 1.1s; }
[data-intro='title'] { transition-delay: .15s; }
[data-intro='content'] { transition-delay: .4s; }
[data-intro='cta'] { transition-delay: .55s; }
@media (prefers-reduced-motion: no-preference) {
  .js body.is-intro [data-intro='header'] { transform: translateY(calc(-100% - 30 * var(--u))); opacity: 0; }
  .js body.is-intro [data-intro='bg'] { transform: translate(calc(200 * var(--u)), calc(-400 * var(--u))); opacity: 0; }
  .js body.is-intro [data-intro='title'] { transform: translateX(calc(-300 * var(--u))); opacity: 0; }
  .js body.is-intro [data-intro='content'] { transform: translateY(calc(100 * var(--u))); opacity: 0; }
  .js body.is-intro [data-intro='cta'] { transform: translateY(calc(70 * var(--u))) scale(.9); opacity: 0; }
  .js body.is-intro .hero__feature .ico::before { transform: scale(1.1667); }
  .js body.is-intro .hero__feature .ico img { transform: scale(.6667); opacity: 0; }
  .js body.is-intro .hero__feature-text { transform: translateY(calc(48 * var(--u))); opacity: 0; }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .hero__stage { --u: min(calc(100vw / 400), 1.7px); max-width: calc(390 * var(--u)); }
}

/* solutions */
/* Рішення / Що ми робимо. Мобайл по умолчанию (макет 390), десктоп от 1280 (макет 1920). */
.s-solutions {
  margin-top: calc(131 * var(--u));
  padding-bottom: calc(39 * var(--u));
  background: var(--bg-solutions) url('../img/solutions-bg-mobile.webp') left top / calc(390 * var(--u)) auto no-repeat;
}
/* Тёмная подложка под ярлыком: скос справа (SVG), левее него сплошная заливка */
.s-solutions::before {
  content: ''; position: absolute; left: 0; top: 0; pointer-events: none;
  width: calc(282 * var(--u)); height: calc(80 * var(--u));
  background:
    url('../img/heading-backplate.svg') right top / calc(282 * var(--u)) 100% no-repeat,
    linear-gradient(var(--bg), var(--bg)) left top / calc(100% - 280 * var(--u)) 100% no-repeat;
}
.s-solutions > .container { position: relative; }

.s-solutions__head {
  display: flex; flex-direction: column; align-items: flex-start; gap: calc(51 * var(--u));
  padding: calc(27 * var(--u)) 0 0 calc(20 * var(--u));
}
.s-solutions__title { line-height: calc(46 * var(--u)); white-space: nowrap; }

.s-solutions__grid { display: grid; gap: calc(72 * var(--u)); margin-top: calc(24 * var(--u)); }
.s-solutions__card { display: flex; flex-direction: column; min-width: 0; }

.s-solutions__media { position: relative; height: calc(356 * var(--u)); }
.s-solutions__photo {
  position: absolute; inset: 0; overflow: hidden;
  /* Скосы фото: слева сверху 41.5, справа снизу 58 (в процентах, чтобы совпадать с растянутой рамкой) */
  clip-path: polygon(11.04% 0, 100% 0, 100% 83.71%, 84.57% 100%, 0 100%, 0 11.66%);
}
.s-solutions__photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.s-solutions__frame {
  position: absolute; pointer-events: none;
  left: calc(var(--fx, 0) * var(--u)); top: calc(var(--fy, 0) * var(--u));
  width: calc(100% + var(--fw, 1) * var(--u)); height: calc(100% + var(--fh, 1) * var(--u));
  max-width: none;
}
.s-solutions__card--1 { --nb: 26; }
.s-solutions__card--2 { --fx: -1; --fy: -1; --nb: 23; }
.s-solutions__card--3 { --fx: -1; --fy: -.707; --fw: 1.707; --fh: 1.707; }
.s-solutions__card--4 { --fx: -.707; --fy: -1; --fw: 1.707; --fh: 1.707; }

.s-solutions__name {
  position: absolute; left: calc(20 * var(--u)); bottom: calc(var(--nb, 20) * var(--u));
  width: calc(332 * var(--u)); max-width: calc(100% - 34 * var(--u));
  font-size: calc(22 * var(--u)); line-height: calc(28 * var(--u)); text-transform: uppercase;
}
.s-solutions__text { margin-top: calc(14 * var(--u)); }
.s-solutions__more { align-self: center; margin-top: calc(32 * var(--u)); }

@media (hover: hover) {
  .s-solutions__card:hover .s-solutions__photo img { transform: scale(1.05); }
}
.s-solutions__card:focus-within .s-solutions__photo img { transform: scale(1.05); }

/* Планшет: та же мобильная карточка, две колонки */
@media (min-width: 768px) and (max-width: 1279px) {
  .s-solutions::before { width: calc(50% - 360px + 270 * var(--u)); }
  .s-solutions__grid { grid-template-columns: 1fr 1fr; column-gap: calc(24 * var(--u)); row-gap: calc(56 * var(--u)); }
  .s-solutions__media { height: auto; aspect-ratio: 376 / 356; }
  .s-solutions__name { width: auto; right: calc(20 * var(--u)); max-width: none; font-size: calc(20 * var(--u)); line-height: calc(26 * var(--u)); }
}

@media (min-width: 1280px) {
  .s-solutions {
    margin-top: calc(160 * var(--u));
    padding-bottom: calc(329 * var(--u));
    background-image: url('../img/solutions-bg.webp');
    background-position: center top;
    background-size: calc(1920 * var(--u)) auto;
  }
  /* Подложка уже в фоне; на экранах шире 1920 тянем её тёмную часть до левого края */
  .s-solutions::before { width: calc(50% - 960 * var(--u) + 2px); height: calc(104 * var(--u)); background: var(--bg); }

  .s-solutions__head { flex-direction: row; justify-content: space-between; gap: calc(32 * var(--u)); padding: 0; }
  .s-solutions__tag { margin-top: calc(40 * var(--u)); }
  .s-solutions__title { margin-top: calc(56 * var(--u)); line-height: calc(83 * var(--u)); }

  .s-solutions__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: calc(32 * var(--u)); margin-top: calc(80 * var(--u)); }
  .s-solutions__card:nth-child(even) { margin-top: calc(80 * var(--u)); }
  .s-solutions__media { height: auto; aspect-ratio: 376 / 356; }
  .s-solutions__more { align-self: flex-start; margin-top: calc(24 * var(--u)); }
}

/* products */
.btn--steel::before { border-image-source: url('../img/btn-bg-primary-c.svg'); }

.s-product { position: relative; z-index: 1; display: flex; flex-direction: column; padding-top: calc(72 * var(--u)); overflow: hidden; }
.s-product--std { background: var(--steel); }
.s-product--stg { background: var(--bg); }
.s-product__bg { position: absolute; inset: 0; pointer-events: none; }
.s-product__field { display: none; }
.s-product__grunge { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.s-product__pixels { position: absolute; inset: 0; overflow: hidden; }
.s-product__pixels img { width: 100%; height: 100%; object-fit: cover; object-position: top right; }
.s-product--std .s-product__pixels { opacity: .9; }

.s-product__inner { order: 1; position: relative; }
.s-product__media { order: 2; position: relative; margin-top: calc(48 * var(--u)); }
.s-product__media img { width: 100%; height: auto; }
.slides--d { display: none; }

.s-product__name { display: flex; align-items: center; gap: calc(14 * var(--u)); }
.s-product__lettering { flex: none; width: calc(145 * var(--u)); height: auto; }
.s-product__kind { font-size: calc(20 * var(--u)); line-height: 1.2; text-transform: uppercase; }
.s-product__intro { display: flex; flex-direction: column; gap: calc(24 * var(--u)); margin-top: calc(28 * var(--u)); }
.s-product__lead { color: var(--muted); font-size: calc(16 * var(--u)); line-height: 1.3; text-transform: uppercase; }
.br-d { display: none; }
.s-product .tabs { margin-top: calc(32 * var(--u)); }
.s-product__actions { display: flex; flex-direction: column; gap: calc(16 * var(--u)); margin-top: calc(32 * var(--u)); }
.s-product__actions .btn { width: 100%; }

/* Панель вкладки */
.tabs__panel.panel { min-height: calc(193 * var(--u)); padding: calc(56 * var(--u)) calc(20 * var(--u)) calc(44 * var(--u)); }
.specs { display: flex; flex-direction: column; gap: calc(9 * var(--u)); }
.specs__col { display: flex; flex-direction: column; gap: calc(9 * var(--u)); margin: 0; }
.specs .spec { display: flex; align-items: flex-end; gap: calc(4 * var(--u)); min-height: calc(21 * var(--u)); font-size: var(--t-body); }
.specs .spec dt { flex: 1 1 auto; display: flex; align-items: flex-end; gap: calc(4 * var(--u)); font-weight: 500; text-transform: uppercase; line-height: 1.25; }
.specs .spec dt::after { content: ''; flex: 1 1 calc(24 * var(--u)); min-width: calc(24 * var(--u)); height: 1px; margin-bottom: .3em; background: var(--muted); }
.specs .spec dd { position: relative; margin: 0; white-space: nowrap; }
.spec__note { position: absolute; right: 0; top: 100%; margin-top: calc(4 * var(--u)); color: var(--muted); font-size: max(.8em, 14px); }
.specs .spec:has(.spec__note) { margin-bottom: calc(4 * var(--u) + 1.35em); }
.specs__note { margin-top: calc(24 * var(--u)); font-size: var(--t-body); }
.points { display: grid; gap: calc(16 * var(--u)) calc(40 * var(--u)); }
.points li { display: flex; align-items: flex-start; gap: calc(8 * var(--u)); font-size: var(--t-body); line-height: 1.3; }
.points .ico--sm { margin-top: calc(2 * var(--u)); }
.feats { display: grid; gap: calc(24 * var(--u)) calc(40 * var(--u)); }
.feats li { display: flex; align-items: center; gap: calc(18 * var(--u)); }
.feats b { display: block; font-weight: 400; font-size: calc(20 * var(--u)); line-height: 1.2; text-transform: uppercase; }
.feats small { display: block; margin-top: calc(6 * var(--u)); color: var(--muted); font-size: var(--t-body); }
.panel-text { max-width: calc(576 * var(--u)); font-size: var(--t-body); line-height: 1.35; }
/* Вартість: фото со скосом, название сверху, цена крупно снизу — цены двух карточек на одной линии */
.prices { display: grid; gap: calc(24 * var(--u)) calc(40 * var(--u)); }
.price { display: flex; align-items: stretch; gap: calc(20 * var(--u)); }
.price__img { flex: none; width: calc(112 * var(--u)); height: calc(112 * var(--u)); object-fit: cover; clip-path: polygon(calc(16 * var(--u)) 0, 100% 0, 100% 100%, 0 100%, 0 calc(16 * var(--u))); }
.price__body { display: flex; flex-direction: column; justify-content: space-between; gap: calc(12 * var(--u)); min-width: 0; }
.price__name { font-size: calc(20 * var(--u)); line-height: 1.2; text-transform: uppercase; }
.price__name span { display: block; margin-top: calc(4 * var(--u)); color: var(--muted); font-size: var(--t-body); text-transform: none; }
.price__cost { line-height: 1.1; white-space: nowrap; }
.price__label { display: block; margin-bottom: calc(6 * var(--u)); color: var(--muted); font-size: max(calc(14 * var(--u)), 14px); text-transform: uppercase; letter-spacing: .04em; }
.price__cost b { font-weight: 500; font-size: calc(28 * var(--u)); }
.price__cost small { font-size: calc(18 * var(--u)); }
@media (min-width: 560px) {
  .points, .feats, .prices { grid-template-columns: 1fr 1fr; }
  .price + .price { padding-left: calc(40 * var(--u)); border-left: 1px solid rgba(200, 220, 242, .18); }
}

@media (min-width: 1280px) {
  .s-product { display: block; overflow: visible; padding-top: 0; background: none; }
  .s-product--std { height: calc(1095 * var(--u)); margin-top: calc(-50 * var(--u)); }
  .s-product--stg { height: calc(1044.5 * var(--u)); margin-top: calc(-84 * var(--u)); }
  .s-product__bg { inset: auto; left: 0; top: 0; width: 100%; height: 100%; }
  .s-product__field { display: block; position: absolute; max-width: none; }
  .s-product--std .s-product__field { left: calc(-4 * var(--u)); top: calc(-144 * var(--u)); width: calc(1928 * var(--u)); height: calc(1239 * var(--u)); }
  .s-product--stg .s-product__field { left: 0; top: 0; width: calc(1923 * var(--u)); height: calc(1044.5 * var(--u)); }
  .s-product__grunge { left: 0; top: 0; width: calc(1923 * var(--u)); height: calc(1044.5 * var(--u)); opacity: 1; clip-path: polygon(0 0, 47.9% 0, 52.3% 8%, 85.3% 8%, 89.7% 0, 100% 0, 100% 90.7%, 50% 90.7%, 45% 100%, 12.8% 100%, 0 77.2%); }
  .s-product--std .s-product__pixels { inset: auto; left: calc(24 * var(--u)); top: calc(40 * var(--u)); width: calc(1816 * var(--u)); height: calc(957 * var(--u)); overflow: visible; opacity: 1; }
  .s-product--std .s-product__pixels img { position: absolute; left: 50%; top: 50%; width: calc(957 * var(--u)); height: calc(1816 * var(--u)); max-width: none; object-fit: fill; transform: translate(-50%, -50%) rotate(-90deg); }
  .s-product--stg .s-product__pixels { inset: auto; left: calc(67 * var(--u)); top: calc(16 * var(--u)); width: calc(1760 * var(--u)); height: calc(993.4 * var(--u)); overflow: visible; }
  .s-product--stg .s-product__pixels img { object-fit: fill; }

  .s-product__media { position: absolute; margin: 0; z-index: 1; }
  .slides--d { display: block; }
  .slides--m { display: none; }
  .s-product--std .s-product__media { left: calc(-4 * var(--u)); top: calc(-144 * var(--u)); width: calc(786.53 * var(--u)); }
  .s-product--stg .s-product__media { left: calc(1068.31 * var(--u)); top: 0; width: calc(854.69 * var(--u)); margin: 0; }

  .s-product__inner { position: relative; z-index: 2; }
  .s-product__content { width: calc(985 * var(--u)); }
  .s-product--std .s-product__content { margin-left: calc(679 * var(--u)); padding-top: calc(197 * var(--u)); }
  .s-product--stg .s-product__content { padding-top: calc(135 * var(--u)); }

  .s-product__name { gap: calc(28 * var(--u)); }
  .s-product--std .s-product__lettering { width: calc(309 * var(--u)); }
  .s-product--stg .s-product__lettering { width: calc(318.87 * var(--u)); }
  .s-product__kind { width: calc(648 * var(--u)); font-size: calc(38 * var(--u)); }
  .s-product__intro { width: calc(649 * var(--u)); margin-top: calc(25 * var(--u)); }
  .s-product__lead { font-size: calc(22 * var(--u)); }
  .br-d { display: inline; }
  .s-product .tabs { width: calc(921 * var(--u)); margin-top: calc(35 * var(--u)); }
  .s-product__actions { flex-direction: row; gap: calc(16 * var(--u)); margin-top: calc(53 * var(--u)); }
  .s-product__actions .btn { width: auto; }
  .s-product__actions .s-product__ghost { width: calc(277 * var(--u)); }

  .tabs__panel.panel { padding: calc(56 * var(--u)) calc(52 * var(--u)) calc(40 * var(--u)); }
  .specs__note { margin-left: calc(50% + 12 * var(--u)); }
  .specs { flex-direction: row; gap: calc(24 * var(--u)); }
  .specs__col { flex: 1 1 0; }
  .feats b { font-size: calc(22 * var(--u)); }
  .price__img { width: calc(144 * var(--u)); height: calc(144 * var(--u)); }
  .price__name { font-size: calc(24 * var(--u)); }
  .price__cost b { font-size: calc(36 * var(--u)); }
  .price__cost small { font-size: calc(20 * var(--u)); }
}

@media (min-width: 1280px) and (max-width: 1439px) {
  /* На этих ширинах текст крупнее масштаба (не мельче 14 px) и блок STG-1 выше макета: поднимаем, чтобы кнопки не вылезали за скос поля */
  .s-product--stg .s-product__content { padding-top: calc(80 * var(--u)); }
  .s-product--stg .tabs { margin-top: calc(24 * var(--u)); }
  .s-product--stg .s-product__actions { margin-top: calc(30 * var(--u)); }
}
@media (max-width: 1279px) {
  /* Мобильный кадр: STD-1 через 160 px фона, контур «Angular Section Accent» 390×1383 со скосами сверху и выступом снизу,
     фото заходит под кнопки на 128 px (STG-1 на 95 px), STG-1 начинается на 17 px выше низа STD-1 (выступ входит в вырез) */
  .s-product__inner { z-index: 1; }
  .s-product__media { z-index: 0; }
  .s-product--std { margin-top: calc(160 * var(--u)); padding-top: calc(113 * var(--u)); background: none; }
  .s-product--std .s-product__bg { background: var(--steel); clip-path: polygon(0 0, 6.56% calc(25.6 * var(--u)), 48.72% calc(25.6 * var(--u)), 52.18% calc(39.1 * var(--u)), 65.92% calc(39.1 * var(--u)), 75.92% 0, 100% 0, 100% calc(100% - 17 * var(--u)), 89.51% calc(100% - 17 * var(--u)), 85.15% 100%, 52.18% 100%, 47.82% calc(100% - 17 * var(--u)), 0 calc(100% - 17 * var(--u))); }
  .s-product--std .s-product__media { margin-top: calc(-128 * var(--u)); }
  .s-product--stg { margin-top: calc(-17 * var(--u)); padding-top: calc(67 * var(--u)); background: none; }
  .s-product--stg .s-product__media { margin-top: calc(-95 * var(--u)); }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .s-product--std .s-product__bg { clip-path: polygon(0 0, 6.56% calc(25.6 * var(--u)), 48.72% calc(25.6 * var(--u)), 52.18% calc(39.1 * var(--u)), 65.92% calc(39.1 * var(--u)), 75.92% 0, 100% 0, 100% calc(100% - 27px), 0 calc(100% - 27px)); }
  .s-product--stg { margin-top: -27px; }
  .s-product__media { width: min(100%, 620px); margin-inline: auto; }
}

/* battery */
/*
  Акумуляторні системи.
  Фон: композиция макета (фото + синее поле) двумя слоями из одного файла: поле стоит, фото проявляется.
  Скосы краёв повторяют стыки макета:
  - десктоп: секция заходит под низ STG-1 на 235.5 px макета (STG-1 выше по z-index) и видна только
    в его пустых уголках под тёмным полем;
  - телефон (< 430): заходит на низ фото STG-1 на 48 px и ступенькой ложится поверх него (z-index 2);
    шире 430 фото STG-1 и эта колонка разной ширины, поэтому без захода, ступенька остаётся краем секции;
  - снизу на неё ложится «Постачання комплектуючих» со своим вырезом.
  Перекрытие задаётся --bat-overlap; если высота блока STG-1 изменится, править только его.
*/
.s-battery {
  --bat-h: 1131.5;
  --bat-overlap: 48;
  z-index: 2;
  width: 100%; max-width: calc(390 * var(--u)); margin-inline: auto;
  height: calc(var(--bat-h) * var(--u));
  margin-top: calc(-1 * var(--bat-overlap) * var(--u));
  pointer-events: none;
}
@media (min-width: 430px) { .s-battery { --bat-overlap: 0; } }
.s-battery .svc__bg {
  position: absolute; inset: 0; overflow: hidden;
  clip-path: polygon(0 0, 12.051% calc(47 * var(--u)), 44.615% calc(47 * var(--u)), 49.744% calc(27 * var(--u)), 100% calc(27 * var(--u)), 100% 100%, 0 100%);
}
.s-battery .svc__field, .s-battery .svc__photo { position: absolute; inset: 0; }
.s-battery .svc__field img, .s-battery .svc__photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.s-battery .svc__field { clip-path: polygon(0 0, 100% 0, 100% calc(702.9 * var(--u)), 0 calc(588 * var(--u))); }
.s-battery .svc__photo { overflow: hidden; clip-path: polygon(0 calc(585 * var(--u)), 100% calc(699.9 * var(--u)), 100% 100%, 0 100%); }
.s-battery .svc__photo img { transform-origin: 50% 100%; }

.s-battery .svc__inner { padding-top: calc(112 * var(--u)); }
.s-battery .svc__content { pointer-events: auto; }
.s-battery .svc__title { font-size: calc(24 * var(--u)); line-height: 1.29; }
.s-battery .svc__text { margin-top: calc(16 * var(--u)); }
.s-battery .svc__btn { display: flex; width: max-content; margin-top: calc(16 * var(--u)); }
.s-battery .svc__feats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(48 * var(--u)) calc(16 * var(--u)); margin-top: calc(56 * var(--u));
}
.s-battery .svc__feat { display: flex; flex-direction: column; align-items: flex-start; gap: calc(18 * var(--u)); font-size: var(--t-body); line-height: 1.3; }
.s-battery .svc__feat .ico { transition: background-size .5s var(--ease-out); background-size: 100% 100%; }
@media (hover: hover) {
  .s-battery .svc__feat:hover .ico { background-size: 112% 112%; }
}

@media (min-width: 1280px) {
  .s-battery {
    --bat-h: 1203;
    --bat-overlap: 235.5;
    z-index: auto;
    max-width: none;
    scroll-margin-top: calc(-110 * var(--u));
  }
  .s-battery .svc__bg {
    clip-path: polygon(0 0, 0.161% 0, 12.839% calc(235.5 * var(--u)), 45.026% calc(235.5 * var(--u)), 50.078% calc(138.5 * var(--u)), 100% calc(138.5 * var(--u)), 100% 100%, 0 100%);
  }
  .s-battery .svc__field { clip-path: polygon(57.615% 0, 100% 0, 100% 100%, 39.682% 100%); }
  .s-battery .svc__photo { clip-path: polygon(0 0, 57.771% 0, 39.839% 100%, 0 100%); }
  .s-battery .svc__photo img { transform-origin: 0 50%; }

  .s-battery .svc__inner { padding-top: calc(355 * var(--u)); }
  .s-battery .svc__content { width: calc(512 * var(--u)); margin-left: auto; }
  .s-battery .svc__title { font-size: calc(38 * var(--u)); }
  .s-battery .svc__feats { grid-template-columns: repeat(2, calc(240 * var(--u))); gap: calc(32 * var(--u)); }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .s-battery { --u: min(calc(100vw / 400), 1.7px); }
}

/* supply */
/*
  Постачання комплектуючих.
  Секция заходит на низ «Акумуляторних систем» (мобайл 37.5, десктоп 189 px макета) и вырезом сверху
  открывает их фото/синий «язык»; снизу вырез с тёмной трапецией под фон этапов (#031425 = фон страницы).
  Фон: та же схема, что у аккумуляторов (поле стоит, фото проявляется).
*/
.s-supply {
  --sup-h: 1166;
  --sup-overlap: 37.5;
  z-index: 2; /* поверх «Акумуляторних систем», у которых на мобайле тоже z-index 2 */
  width: 100%; max-width: calc(390 * var(--u)); margin-inline: auto;
  height: calc(var(--sup-h) * var(--u));
  margin-top: calc(-1 * var(--sup-overlap) * var(--u));
  pointer-events: none;
}
.s-supply .svc__bg {
  position: absolute; inset: 0; overflow: hidden;
  clip-path: polygon(0 0, 22.051% 0, 25.128% calc(12 * var(--u)), 62.821% calc(12 * var(--u)), 69.487% calc(37 * var(--u)), 78.462% calc(37 * var(--u)), 80.256% calc(30 * var(--u)), 88.462% calc(30 * var(--u)), 94.615% calc(6 * var(--u)), 100% calc(6 * var(--u)), 100% calc(1150 * var(--u)), 63.590% calc(1150 * var(--u)), 61.795% calc(1135 * var(--u)), 33.077% calc(1135 * var(--u)), 27.179% 100%, 0 100%);
}
.s-supply .svc__field, .s-supply .svc__photo { position: absolute; inset: 0; }
.s-supply .svc__field img, .s-supply .svc__photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.s-supply .svc__field { clip-path: polygon(0 0, 100% 0, 100% calc(622.2 * var(--u)), 0 calc(737 * var(--u))); }
.s-supply .svc__photo { overflow: hidden; clip-path: polygon(0 calc(734 * var(--u)), 100% calc(619.2 * var(--u)), 100% 100%, 0 100%); }
.s-supply .svc__photo img { transform-origin: 50% 100%; }

.s-supply .svc__inner { padding-top: calc(80 * var(--u)); }
.s-supply .svc__content { pointer-events: auto; }
.s-supply .svc__title { font-size: calc(24 * var(--u)); line-height: 1.29; }
.s-supply .svc__text { margin-top: calc(16 * var(--u)); }
.s-supply .svc__btn { display: flex; width: max-content; margin-top: calc(16 * var(--u)); }
.s-supply .svc__feats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(48 * var(--u)) calc(16 * var(--u)); margin-top: calc(56 * var(--u));
}
.s-supply .svc__feat { display: flex; flex-direction: column; align-items: flex-start; gap: calc(18 * var(--u)); font-size: var(--t-body); line-height: 1.3; }
.s-supply .svc__feat .ico { transition: background-size .5s var(--ease-out); background-size: 100% 100%; }
@media (hover: hover) {
  .s-supply .svc__feat:hover .ico { background-size: 112% 112%; }
}

@media (min-width: 1280px) {
  .s-supply {
    --sup-h: 1038;
    --sup-overlap: 189;
    z-index: auto;
    max-width: none;
  }
  .s-supply .svc__bg {
    clip-path: polygon(0 0, 22.396% 0, 25.312% calc(56 * var(--u)), 63.177% calc(56 * var(--u)), 69.531% calc(186 * var(--u)), 78.385% calc(186 * var(--u)), 80.625% calc(143 * var(--u)), 88.906% calc(143 * var(--u)), 94.844% calc(29 * var(--u)), 100% calc(29 * var(--u)), 100% calc(955 * var(--u)), 63.958% calc(955 * var(--u)), 61.510% calc(883 * var(--u)), 32.448% calc(883 * var(--u)), 27.500% 100%, 0 100%);
  }
  .s-supply .svc__field { clip-path: polygon(0 0, 54.542% 0, 40.245% 100%, 0 100%); }
  .s-supply .svc__photo { clip-path: polygon(54.385% 0, 100% 0, 100% 100%, 40.089% 100%); }
  .s-supply .svc__photo img { transform-origin: 100% 50%; }

  /* 243 по макету; на 1280–1750 текст упирается в 14 px и блок растёт, поэтому поднимаем его,
     чтобы сетка не заходила на нижний вырез */
  .s-supply .svc__inner { padding-top: calc(243 * var(--u) - max(0px, 14px - 16 * var(--u)) * 12); }
  .s-supply .svc__content { width: calc(512 * var(--u)); }
  .s-supply .svc__title { font-size: calc(38 * var(--u)); }
  .s-supply .svc__feats { grid-template-columns: repeat(2, calc(240 * var(--u))); gap: calc(32 * var(--u)); }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .s-supply { --u: min(calc(100vw / 400), 1.7px); }
}

/* stages */
/* Етапи / Наша модель роботи (#etapy). Мобайл по умолчанию, десктоп от 1280 px. */
.s-stages { padding-top: calc(160 * var(--u)); }

/* Шапка: ярлык, заголовок, подводка */
.s-stages__head { display: flex; flex-direction: column; align-items: flex-start; }
.s-stages__title { margin-top: calc(16 * var(--u)); font-size: calc(38 * var(--u)); line-height: calc(46 * var(--u)); }
.s-stages__lead { margin-top: calc(8 * var(--u)); }

/* Шаги: крупная цифра со срезом, заголовок и текст правее косой черты */
.s-stages__list { display: flex; flex-direction: column; gap: calc(32 * var(--u)); margin-top: calc(38 * var(--u)); }
.stage {
  --nx: 0; --cx: 85;
  position: relative; min-height: calc(128 * var(--u));
  padding: calc(96 * var(--u)) 0 0 calc(var(--cx) * var(--u));
}
.stage--1 { --cx: 75; }
.stage--4 { --cx: 90; }
.stage__num {
  position: absolute; top: 0; left: calc(var(--nx) * var(--u));
  width: auto; max-width: none; height: calc(128 * var(--u));
}
/* Текст поверх тёмного среза цифры */
.stage__body { position: relative; }
.stage__title { line-height: calc(28 * var(--u)); }
.stage__text { margin-top: calc(8 * var(--u)); }
.stage__text + .stage__text { margin-top: calc(16 * var(--u)); }
.stage__text--accent { color: var(--white); }

/* Итог + кнопка */
.s-stages__cta { margin-top: calc(38 * var(--u)); }
.s-stages__btn { display: flex; width: 100%; margin-top: calc(24 * var(--u)); }
.s-stages__btn-d { display: none; }

/* Появление: шаг поднимается (data-reveal), цифра чуть выезжает слева */
.js .stage[data-reveal] { transition-delay: var(--d, 0s); }
.js .stage[data-reveal] .stage__num {
  opacity: 0; transform: translateX(calc(-36 * var(--u)));
  transition: opacity .6s var(--ease), transform .9s var(--ease-out);
  transition-delay: calc(var(--d, 0s) + .15s);
}
.js .stage[data-reveal].is-in .stage__num,
.js.reveal-all .stage[data-reveal] .stage__num { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .stage[data-reveal] .stage__num { opacity: 1; transform: none; }
}

@media (min-width: 1280px) {
  .s-stages { padding-top: calc(120 * var(--u)); }

  /* Заголовок слева, подводка справа под линией заголовка (y = 141 макета) */
  .s-stages__head {
    display: grid; grid-template-columns: minmax(0, 1fr) calc(376 * var(--u));
    column-gap: calc(32 * var(--u)); align-items: start;
  }
  .s-stages__head .tag { grid-area: 1 / 1; justify-self: start; }
  .s-stages__title { grid-area: 2 / 1; margin-top: calc(24 * var(--u)); font-size: calc(64 * var(--u)); line-height: calc(83 * var(--u)); }
  .s-stages__lead { grid-area: 2 / 2; margin: calc(115 * var(--u)) 0 calc(-50 * var(--u)); }

  /* Лесенка: 3 колонки макета (509 / 515 / 512), второй ряд начинается под третьим шагом */
  .s-stages__list {
    display: grid; align-items: start; gap: 0 calc(32 * var(--u));
    grid-template-columns: calc(509 * var(--u)) calc(515 * var(--u)) minmax(0, 1fr);
    margin-top: calc(48 * var(--u));
  }
  .stage--1 { grid-area: 1 / 1; }
  .stage--2 { grid-area: 1 / 2; margin-top: calc(104 * var(--u)); --d: .12s; }
  .stage--3 { grid-area: 1 / 3; margin-top: calc(208 * var(--u)); --d: .24s; }
  .stage--4 { grid-area: 2 / 2; margin: calc(24 * var(--u)) 0 0 calc(3 * var(--u)); --d: .12s; }
  .stage--5 { grid-area: 2 / 1; margin-top: calc(210 * var(--u)); --nx: -10; }

  /* Итог справа внизу: на 132 px макета выше низа пятого шага */
  .s-stages__cta { width: calc(509 * var(--u)); margin: calc(-130 * var(--u)) 0 0 calc(1088 * var(--u)); }
  .s-stages__btn { display: inline-flex; width: auto; }
  .s-stages__btn-d { display: inline; }
  .s-stages__btn-m { display: none; }
}

/* benefits */
/* Переваги / Чому SEA ТРЕК (#perevagy). Мобайл по умолчанию, десктоп от 1280 px. */
.s-benefits { padding-top: calc(160 * var(--u)); }

/* Фото катера только на десктопе (в мобильном макете его нет) */
.s-benefits__photo { display: none; }

.s-benefits__head { display: flex; flex-direction: column; align-items: flex-start; }
.s-benefits__title { margin-top: calc(16 * var(--u)); font-size: calc(38 * var(--u)); line-height: calc(46 * var(--u)); }

/* Сетка 2 колонки: иконка в уголках, заголовок, описание */
.s-benefits__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start;
  gap: calc(32 * var(--u)) calc(16 * var(--u));
  margin-top: calc(32 * var(--u));
}
.benefit { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.benefit__title {
  margin-top: calc(18 * var(--u));
  font-size: var(--t-body); line-height: 1.3; text-transform: uppercase;
}
.benefit__text { margin-top: calc(8 * var(--u)); }
/* Уголки иконки на отдельном слое, чтобы мягко расходились при наведении */
.benefit .ico { background: none; }
.benefit .ico::before {
  content: ''; position: absolute; inset: 0;
  background: url('../img/bracket-48.svg') center / 100% 100% no-repeat;
  transition: transform .45s var(--ease-out);
}
@media (hover: hover) {
  .benefit:hover .ico::before { transform: scale(1.1); }
}

@media (min-width: 1280px) {
  .s-benefits { padding-top: calc(120 * var(--u)); }

  /* Фото от левого края экрана до скоса; правее — контент с x = 1112 макета */
  .s-benefits__photo {
    display: block; position: absolute; left: 0; top: calc(120 * var(--u));
    width: calc(1080 * var(--u) + max(0px, (100% - 1920 * var(--u)) / 2));
    height: calc(892 * var(--u)); overflow: hidden; pointer-events: none;
  }
  .s-benefits__photo img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }

  .s-benefits__inner { min-height: calc(892 * var(--u)); padding-top: calc(23 * var(--u)); }
  .s-benefits__content { position: relative; width: calc(648 * var(--u)); margin-left: calc(952 * var(--u)); }
  .s-benefits__title { margin-top: calc(32 * var(--u)); font-size: calc(64 * var(--u)); line-height: calc(83 * var(--u)); }

  .s-benefits__grid { gap: calc(88 * var(--u)) calc(32 * var(--u)); margin-top: calc(48 * var(--u)); }
  .benefit__title { font-size: calc(22 * var(--u)); line-height: calc(28 * var(--u)); }
}

/* software */
/* Програмне забезпечення (#po). Мобайл — по умолчанию, десктоп — от 1280 px. */
.s-software { padding-top: calc(160 * var(--u)); }
.s-software__inner { display: flex; flex-direction: column; }

/* Заголовок: на мобайле 20 px, косая черта крупнее */
.s-software__head { display: flex; flex-direction: column; align-items: flex-start; }
.s-software__title {
  margin-top: calc(32 * var(--u));
  font-size: calc(20 * var(--u)); line-height: 1.3; text-transform: uppercase;
}
@media (max-width: 767px) { .s-software__title { max-width: calc(350 * var(--u)); } }
.s-software__title::before { font-weight: 500; font-size: calc(36 * var(--u)); line-height: calc(46 * var(--u)); }

.s-software__text { margin-top: calc(20 * var(--u)); }

/* Фото + преимущества */
.s-software__media { margin-top: calc(60 * var(--u)); }
.s-software__photo { overflow: hidden; margin-inline: calc(-1 * var(--pad)); aspect-ratio: 390 / 288; }
.s-software__photo img { width: 100%; height: 100%; object-fit: cover; }

.s-software__benefits {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: calc(16 * var(--u)); row-gap: calc(48 * var(--u));
  margin-top: calc(24 * var(--u));
}
.s-software__benefit { display: flex; flex-direction: column; align-items: flex-start; gap: calc(18 * var(--u)); font-size: var(--t-body); line-height: 1.3; }

/* Что обеспечивает платформа */
.s-software__caps { margin-top: calc(48 * var(--u)); }
.s-software__caps-title { font-size: calc(20 * var(--u)); line-height: 1.4; text-transform: uppercase; }
.s-software__list { display: flex; flex-direction: column; gap: calc(24 * var(--u)); margin-top: calc(24 * var(--u)); }
.s-software__list li { display: flex; align-items: flex-start; gap: calc(24 * var(--u)); }
.s-software__mark {
  flex: none; width: calc(32 * var(--u)); height: calc(32 * var(--u));
  background: url('../img/software-bullet.svg') center / 100% 100% no-repeat;
}
.s-software__btn { display: flex; width: 100%; margin-top: calc(32 * var(--u)); }
.s-software__cta-d { display: none; }

@media (min-width: 1280px) {
  .s-software__inner {
    display: grid; align-items: start;
    grid-template-columns: calc(596 * var(--u)) minmax(0, 1fr);
    column-gap: calc(29 * var(--u));
  }
  /* Ряд 1: заголовок слева, текст справа. Текст может зайти в вырез фото (70 px макета) */
  .s-software__head { grid-area: 1 / 1 / 2 / 3; max-width: calc(1050 * var(--u)); padding-left: calc(2 * var(--u)); margin-bottom: calc(60 * var(--u)); }
  .s-software__title { font-weight: 500; font-size: calc(64 * var(--u)); line-height: 1.3; }
  .s-software__title::before { font-size: inherit; line-height: inherit; }
  .s-software__text {
    grid-area: 1 / 2 / 2 / 3; justify-self: end; position: relative; z-index: 1;
    width: calc(512 * var(--u)); margin-top: calc(117 * var(--u)); margin-bottom: calc(-60 * var(--u));
  }

  /* Ряд 2: список слева (всегда на 367 px от верха), фото справа до края экрана */
  .s-software__caps { grid-area: 1 / 1 / 3 / 2; margin-top: calc(367 * var(--u)); }
  .s-software__caps-title { font-size: calc(22 * var(--u)); line-height: calc(28 * var(--u)); }
  .s-software__list li { align-items: center; }
  .s-software__btn { display: inline-flex; width: auto; }
  .s-software__cta-d { display: inline; }
  .s-software__cta-m { display: none; }

  .s-software__media { grid-area: 2 / 2 / 3 / 3; display: grid; margin: 0 calc(-1 * var(--pad)) 0 0; }
  .s-software__photo { grid-area: 1 / 1; margin: 0; aspect-ratio: 1135 / 843; }
  .s-software__benefits {
    grid-area: 1 / 1; align-self: end; position: relative; z-index: 1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: calc(35 * var(--u));
    margin: 0 calc(160 * var(--u)) calc(49 * var(--u)) calc(40 * var(--u));
  }
  .s-software__benefit:nth-child(5) { grid-column: 2; }
}

/* contacts */
/* Контакти + форма заявки. Мобайл по умолчанию, десктоп в @media (min-width: 1280px). */
.s-contacts { padding-top: calc(160 * var(--u)); }
.s-contacts__grid { display: grid; gap: calc(32 * var(--u)); }

/* Заголовок: ярлык + «/ КОНТАКТИ» */
.s-contacts__head { display: flex; flex-direction: column; align-items: flex-start; gap: calc(20 * var(--u)); }
.s-contacts__title { align-items: center; font-size: calc(22 * var(--u)); line-height: 1.2; text-transform: uppercase; }
.s-contacts__title::before { font-weight: 500; font-size: calc(36 * var(--u)); line-height: calc(46 / 36); }

/* Список контактов */
.s-contacts__list { display: grid; gap: calc(24 * var(--u)); margin-top: calc(16 * var(--u)); }
.s-contacts__item { display: flex; flex-direction: column; align-items: flex-start; gap: calc(8 * var(--u)); min-width: 0; }
.s-contacts__label { color: var(--muted); font-size: var(--t-body); line-height: 1.3; text-transform: uppercase; }
.s-contacts__value { font-size: var(--t-body); line-height: 1.3; text-transform: uppercase; overflow-wrap: anywhere; }
.s-contacts__link { position: relative; }
.s-contacts__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: calc(-4 * var(--u)); height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out);
}
@media (hover: hover) {
  .s-contacts__link:hover::after { transform: scaleX(1); transform-origin: left; }
}

/* Соцсети: иконка 32 в поле 48, при наведении проявляются уголки */
.s-contacts__socials { display: flex; gap: calc(14 * var(--u)); }
.s-contacts__social {
  position: relative; display: grid; place-items: center;
  width: calc(48 * var(--u)); height: calc(48 * var(--u)); -webkit-tap-highlight-color: transparent;
}
.s-contacts__social::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: url('../img/bracket-48.svg') center / 100% 100% no-repeat;
  opacity: 0; transform: scale(.85); transition: opacity .35s var(--ease), transform .45s var(--ease-out);
}
.s-contacts__social img { width: calc(32 * var(--u)); height: calc(32 * var(--u)); transition: transform .45s var(--ease-out); }
@media (hover: hover) {
  .s-contacts__social:hover::before { opacity: 1; transform: scale(1); }
  .s-contacts__social:hover img { transform: scale(.9); }
}
.s-contacts__social:focus-visible::before { opacity: 1; transform: scale(1); }

/* Панель формы: свои скосы (слева сверху 72×75, справа снизу 41×43 на мобайле) */
.s-contacts__panel { padding: calc(64 * var(--u)) calc(26 * var(--u)) calc(53 * var(--u)) calc(32 * var(--u)); }
.s-contacts__panel::before {
  clip-path: polygon(calc(73 * var(--u)) 0, 100% 0, 100% calc(100% - 43 * var(--u)), calc(100% - 41 * var(--u)) 100%, 0 100%, 0 calc(76 * var(--u)));
}
.s-contacts__panel::after {
  border-width: calc(77 * var(--u)) calc(42 * var(--u)) calc(44 * var(--u)) calc(74 * var(--u));
  border-image: url('../img/contacts-form-frame-m.svg') 77 42 44 74 / calc(77 * var(--u)) calc(42 * var(--u)) calc(44 * var(--u)) calc(74 * var(--u)) stretch;
}
.s-contacts__form-title { font-size: calc(24 * var(--u)); line-height: 1.3; text-transform: uppercase; }
.s-contacts__form-sub { margin-top: calc(8 * var(--u)); font-size: var(--t-body); line-height: 1.3; }

/* Форма */
.lead-form { display: flex; flex-direction: column; gap: calc(16 * var(--u)); margin-top: calc(16 * var(--u)); }

/* Поле: тёмная подложка с тонкой обводкой и скосами, уголки-акценты слева сверху и справа снизу */
.field { position: relative; isolation: isolate; display: block; width: 100%; min-height: calc(56 * var(--u)); }
.field::before, .field::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.field::before {
  border: 1px solid rgba(200, 220, 242, .09); background: rgba(8, 41, 75, .14);
  clip-path: polygon(calc(9 * var(--u)) 0, 100% 0, 100% calc(100% - 17 * var(--u)), calc(100% - 13 * var(--u)) 100%, 0 100%, 0 calc(12 * var(--u)));
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.field::after {
  background-color: var(--steel);
  -webkit-mask: url('../img/contacts-field-tl.svg') left top / calc(26 * var(--u)) calc(36 * var(--u)) no-repeat,
                url('../img/contacts-field-br.svg') right bottom / calc(32 * var(--u)) calc(38 * var(--u)) no-repeat;
  mask: url('../img/contacts-field-tl.svg') left top / calc(26 * var(--u)) calc(36 * var(--u)) no-repeat,
        url('../img/contacts-field-br.svg') right bottom / calc(32 * var(--u)) calc(38 * var(--u)) no-repeat;
  transition: background-color .3s var(--ease);
}
@media (hover: hover) {
  .field:hover::after { background-color: var(--blue); }
}
.field:focus-within::after { background-color: var(--line); }
.field:focus-within::before { border-color: rgba(200, 220, 242, .28); }
.field:has([aria-invalid='true'])::after { background-color: #ff9b9b; }
.field:has([aria-invalid='true'])::before { border-color: rgba(255, 155, 155, .6); background-color: rgba(255, 155, 155, .06); }

.field__input {
  display: block; width: 100%; height: calc(56 * var(--u)); margin: 0; padding: 0 calc(24 * var(--u));
  border: 0; border-radius: 0; background: transparent; color: var(--white);
  font: inherit; font-size: max(calc(16 * var(--u)), 16px); line-height: 1.3;
  -webkit-appearance: none; appearance: none; outline: none;
}
.field__input::placeholder { color: var(--muted); opacity: 1; }
.field__input[aria-invalid='true'] { box-shadow: inset 2px 0 0 #ff9b9b; } /* запасной вариант без :has() */
.field:has([aria-invalid='true']) .field__input { box-shadow: none; }
.field__input:-webkit-autofill {
  -webkit-text-fill-color: var(--white); caret-color: var(--white);
  -webkit-box-shadow: 0 0 0 100px #061b31 inset; transition: background-color 9999s;
}

/* Выпадающие списки (поведение в js/main.js) */
.select { position: relative; z-index: 2; display: flex; flex-direction: column; gap: calc(8 * var(--u)); }
.select + .select { z-index: 1; }
.select__label { align-self: flex-start; font-size: var(--t-body); line-height: 1.3; cursor: pointer; }
.select__btn {
  display: flex; align-items: center; justify-content: space-between; gap: calc(8 * var(--u));
  padding: calc(8 * var(--u)) calc(12 * var(--u)) calc(8 * var(--u)) calc(24 * var(--u));
  text-align: left; font-size: max(calc(16 * var(--u)), 16px); line-height: 1.3;
  -webkit-tap-highlight-color: transparent;
}
.select__btn:focus-visible { outline: none; }
.select__value { color: var(--muted); transition: color .3s var(--ease); }
.select__value.is-filled { color: var(--white); }
.select__caret { flex: none; width: calc(32 * var(--u)); height: calc(32 * var(--u)); transition: transform .4s var(--ease-out); }
.select.is-open .select__caret { transform: rotate(180deg); }
.select.is-open .select__btn::after { background-color: var(--line); }

.select__list {
  position: absolute; left: 0; right: 0; top: 100%; margin-top: calc(4 * var(--u));
  overflow: hidden; transition: height .4s var(--ease-out);
  background: rgba(3, 20, 37, .95);
  -webkit-backdrop-filter: blur(6.5px); backdrop-filter: blur(6.5px);
  outline: 1px solid var(--steel); outline-offset: -1px;
  box-shadow: 0 calc(16 * var(--u)) calc(40 * var(--u)) rgba(0, 0, 0, .4);
}
.select__list[hidden] { display: none; }
.select__list [role='option'] {
  position: relative; padding: calc(12 * var(--u)) calc(24 * var(--u));
  font-size: max(calc(16 * var(--u)), 16px); line-height: 1.3; color: rgba(255, 255, 255, .86);
  cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease);
}
.select__list [role='option']:first-child { margin-top: calc(4 * var(--u)); }
.select__list [role='option']:last-child { margin-bottom: calc(4 * var(--u)); }
.select__list [role='option']::before {
  content: ''; position: absolute; left: calc(10 * var(--u)); top: 50%; width: calc(6 * var(--u)); height: calc(6 * var(--u));
  margin-top: calc(-3 * var(--u)); background: var(--line); transform: scale(0); transition: transform .3s var(--ease-out);
}
.select__list [role='option']:hover,
.select__list [role='option']:focus { background: var(--navy); color: var(--white); outline: none; }
.select__list [role='option'][aria-selected='true'] { color: var(--white); }
.select__list [role='option'][aria-selected='true']::before { transform: scale(1); }

/* Turnstile: невидим, пока Cloudflare не попросит нажать; пустой блок не должен давать лишний отступ */
.lead-form__cap:not(.is-shown) { margin-top: calc(-16 * var(--u)); }
.lead-form__error { color: #ff9b9b; font-size: max(calc(16 * var(--u)), 14px); line-height: 1.4; }
.lead-form__error a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

@media (min-width: 1280px) {
  .s-contacts__grid {
    grid-template-columns: calc(920 * var(--u)) calc(648 * var(--u));
    justify-content: space-between; align-items: start; gap: 0;
  }
  .s-contacts__title { font-weight: 500; font-size: calc(64 * var(--u)); line-height: calc(83 / 64); }
  .s-contacts__title::before { font-size: inherit; line-height: inherit; }
  .s-contacts__list {
    grid-template-columns: calc(376 * var(--u)) minmax(0, 1fr);
    column-gap: calc(32 * var(--u)); row-gap: calc(80 * var(--u)); margin-top: calc(67 * var(--u));
  }
  .s-contacts__item { gap: calc(14 * var(--u)); }
  .s-contacts__item--wide { grid-column: 1 / -1; }
  .s-contacts__label { font-size: max(calc(20 * var(--u)), 14px); }
  .s-contacts__value { font-size: calc(32 * var(--u)); line-height: calc(41 / 32); }
  .s-contacts__mail { text-transform: none; }

  .s-contacts__panel { min-height: calc(646 * var(--u)); padding: calc(49 * var(--u)) calc(124 * var(--u)) calc(64 * var(--u)); }
  .s-contacts__panel::before {
    clip-path: polygon(calc(71 * var(--u)) 0, 100% 0, 100% calc(100% - 99 * var(--u)), calc(100% - 101 * var(--u)) 100%, 0 100%, 0 calc(71 * var(--u)));
  }
  .s-contacts__panel::after {
    border-width: calc(72 * var(--u)) calc(102 * var(--u)) calc(100 * var(--u)) calc(72 * var(--u));
    border-image: url('../img/contacts-form-frame.svg') 72 102 100 72 / calc(72 * var(--u)) calc(102 * var(--u)) calc(100 * var(--u)) calc(72 * var(--u)) stretch;
  }
  .s-contacts__form-title { font-size: calc(38 * var(--u)); line-height: calc(49 / 38); }
  .field__input, .select__btn, .select__list [role='option'] { font-size: var(--t-body); }
}

/* footer */
/* Футер. Мобайл по умолчанию, десктоп в @media (min-width: 1280px). */
.footer { margin-top: calc(160 * var(--u)); padding-block: calc(34 * var(--u)); }
.footer__cols { display: grid; gap: calc(64 * var(--u)); }

.footer__brand { display: flex; align-items: center; gap: calc(24 * var(--u)); }
.footer__logo { display: block; flex: none; width: calc(118 * var(--u)); }
.footer__logo img { width: 100%; height: auto; }
.footer__tagline { max-width: 15em; color: var(--muted); font-size: var(--t-body); line-height: 1.3; }

.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: calc(24 * var(--u)); }
/* Заголовок колонки в уголках 152×32 */
.footer__title {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-width: calc(152 * var(--u)); min-height: calc(32 * var(--u)); padding: calc(4 * var(--u)) calc(24 * var(--u));
  font-weight: 500; font-size: var(--t-body); line-height: 1.25; text-transform: uppercase; white-space: nowrap;
}
.footer__title::before, .footer__title::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: calc(9 * var(--u));
  background: url('../img/footer-title-bracket.svg') center / 100% 100% no-repeat;
}
.footer__title::before { left: 0; }
.footer__title::after { right: 0; transform: scaleX(-1); }

.footer__list { display: flex; flex-direction: column; align-items: flex-start; gap: calc(16 * var(--u)); }
.footer__link { position: relative; display: inline-block; font-size: var(--t-body); line-height: 1.3; overflow-wrap: anywhere; }
.footer__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: calc(-2 * var(--u)); height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out);
}
@media (hover: hover) {
  .footer__link:hover::after { transform: scaleX(1); transform-origin: left; }
}

.footer__copy {
  margin-top: calc(28 * var(--u)); padding-top: calc(28 * var(--u)); border-top: 1px solid var(--blue);
  color: var(--muted); font-size: var(--t-body); line-height: 1.3; text-align: center;
}

@media (min-width: 1280px) {
  .footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: calc(32 * var(--u)); }
  .footer__brand { flex-direction: column; align-items: flex-start; }
  .footer__logo { width: calc(160 * var(--u)); }
}

/* overlays */
/* Панель только со скосом слева сверху (карточка «Готові до реалізації») */
.panel--tl::before { clip-path: polygon(calc(43 * var(--u)) 0, 100% 0, 100% 100%, 0 100%, 0 calc(54 * var(--u))); }
.panel--tl::after { border-width: calc(56 * var(--u)) calc(4 * var(--u)) calc(4 * var(--u)) calc(45 * var(--u)); border-image: url('../img/panel-frame-tl.svg') 56 4 4 45 / calc(56 * var(--u)) calc(4 * var(--u)) calc(4 * var(--u)) calc(45 * var(--u)) stretch; }

.float-cta {
  position: fixed; z-index: 40; left: calc(12 * var(--u)); right: calc(12 * var(--u)); bottom: calc(22 * var(--u));
  transition: transform .6s var(--ease-out), opacity .4s var(--ease);
}
.float-cta.is-hidden { transform: translateY(calc(100% + 40 * var(--u))); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .js body:not(.cta-ready) .float-cta { transform: translateY(calc(100% + 40 * var(--u))); opacity: 0; pointer-events: none; } }
.float-cta__card { display: flex; align-items: center; justify-content: space-between; gap: calc(8 * var(--u)); min-height: calc(96 * var(--u)); padding: calc(20 * var(--u)) calc(16 * var(--u)) calc(20 * var(--u)) calc(24 * var(--u)); }
.float-cta__card::before { background: rgba(3, 20, 37, .82); }
.float-cta__title { font-size: calc(18 * var(--u)); line-height: 1.2; text-transform: uppercase; max-width: calc(262 * var(--u)); }
.float-cta__text { display: none; }
.float-cta__btn { flex: none; width: calc(56 * var(--u)); padding: 0; }
.float-cta__btn::after { border-width: calc(22 * var(--u)) calc(14 * var(--u)) calc(24 * var(--u)); border-image: url('../img/btn-border-square.svg') 22 14 24 / calc(22 * var(--u)) calc(14 * var(--u)) calc(24 * var(--u)) stretch; }
.float-cta__btn-label { display: none; }
.float-cta__arrow { width: calc(32 * var(--u)); height: calc(32 * var(--u)); transition: transform .35s var(--ease-out); }
.float-cta__btn:hover .float-cta__arrow { transform: translateX(calc(4 * var(--u))); }
@media (min-width: 768px) and (max-width: 1279px) {
  .float-cta { left: auto; width: calc(366 * var(--u)); }
}
@media (min-width: 1280px) {
  .float-cta { left: auto; right: calc(50 * var(--u)); bottom: calc(33 * var(--u)); width: calc(521 * var(--u)); }
  .float-cta__card { display: block; min-height: calc(236 * var(--u)); padding: calc(36 * var(--u)) calc(40 * var(--u)); }
  .float-cta__card::before { background: rgba(3, 20, 37, .7); }
  .float-cta__title { max-width: none; font-size: calc(22 * var(--u)); }
  .float-cta__text { display: block; margin-top: calc(8 * var(--u)); }
  .float-cta__btn { width: auto; margin-top: calc(30 * var(--u)); padding: calc(18 * var(--u)) calc(24 * var(--u)); }
  .float-cta__btn::after { border-width: calc(22 * var(--u)) calc(50 * var(--u)) calc(24 * var(--u)) calc(46 * var(--u)); border-image: url('../img/btn-border-primary.svg') 22 50 24 46 / calc(22 * var(--u)) calc(50 * var(--u)) calc(24 * var(--u)) calc(46 * var(--u)) stretch; }
  .float-cta__btn-label { display: inline; }
  .float-cta__arrow { display: none; }
}

/* Экран «Дякуємо за звернення» */
.thanks { position: fixed; inset: 0; z-index: 110; display: flex; flex-direction: column; background: var(--bg); overflow-y: auto; opacity: 0; transition: opacity .5s var(--ease); }
.thanks.is-open { opacity: 1; }
.thanks[hidden] { display: none; }
.thanks__top { padding-top: calc(16 * var(--u)); }
.thanks__body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(24 * var(--u)); padding-block: calc(40 * var(--u)); text-align: center; }
.thanks__title { font-weight: 500; font-size: calc(32 * var(--u)); line-height: 1.15; text-transform: uppercase; }
.thanks__text { max-width: calc(860 * var(--u)); }
.thanks.is-open .thanks__body > * { animation: tab-in .7s var(--ease-out) both; }
.thanks.is-open .thanks__body > :nth-child(2) { animation-delay: .1s; }
.thanks.is-open .thanks__body > :nth-child(3) { animation-delay: .2s; }
@media (min-width: 1280px) {
  .thanks__top { padding-top: calc(30 * var(--u)); }
  .thanks__title { font-size: calc(64 * var(--u)); }
}
body.is-locked .float-cta { opacity: 0; pointer-events: none; }
