/* 
   Шрифт і токени
    */

/*  =====================================================================
   Лендінг батальйону БпС ППО «РАРОГ»
   Дизайн: аппрувнутий макет (Figma → autohtml), адаптовано з фіксованого
   полотна 1920 px у плавну сітку. Токени: #000 / #e74615 / Onest.
   =====================================================================  */

/*  ---------- Хедер (завжди на виду) ----------
   Макет 1920: смуга rgba(3,10,11,.25) + blur 30 · лого 40×43 + текст 151×42 (зазор 16) ·
   меню 8 пунктів Onest 14/600 (зазор 37, центр ≈ 50% − 15) · кнопка 232×52, радіус 26, 14/500, стрілка 21 px.
   Розмітка: .header > .container > .header__body > [.logo · .menu · .header__right]; мобільне меню — .mmenu (поза хедером).
   Висоти: --hh (зверху сторінки) і --hhs (після скролу); від них же рахується scroll-padding-top.  */
:root {
  --bg: #000;
  --accent: #e74615;
  --btn: #d63e0f;
  --gray: #c5c5c5;
  --green: #28a728;
  --obv: linear-gradient(
    -80.87deg,
    #fff 0%,
    rgba(255, 255, 255, 0.2) 27.1%,
    rgba(255, 255, 255, 0.2) 68.65%,
    #fff 100%
  );
  --obv-red: linear-gradient(
    -80.87deg,
    #e74615 0%,
    rgba(255, 255, 255, 0.2) 27.1%,
    rgba(255, 255, 255, 0.2) 68.65%,
    #e74615 100%
  );
  --pad: clamp(20px, 3.2vw, 62px);
  --h2: clamp(34px, 3.75vw, 72px);
  --lead: clamp(16px, 1.15vw, 22px);
  --pill: clamp(54px, 4.95vw, 95px);
  --gap-sec: clamp(80px, 10.4vw, 200px);
  --hh: 72px;
  --hhs: 60px;
}
@media (min-width: 1181px) {
  :root {
    --hh: clamp(84px, 6.67vw, 128px);
    --hhs: clamp(68px, 4.6vw, 88px);
  }
}
@media (max-width: 1000px) {
  :root {
    --h2: clamp(34px, 4.4vw, 46px);
  }
}
@media (max-width: 760px) {
  :root {
    --pad: clamp(10px, 2.56vw, 20px);
    --h2: clamp(30px, 9.23vw, 40px);
    --lead: 14px;
    --pill: 51px;
    --gap-sec: 80px;
  }
}
:root {
  --u: calc(100vw / 1920);
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/onest-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

/* 
   Базові стилі
    */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: #fff;
  /* UAFSans — першим (якщо шрифт встановлено/підключено); Onest — запасний, поки файлів UAFSans у проєкті немає */
  font-family:
    'UAFSans',
    'Onest',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.4;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

.faq__a ol {
  list-style: decimal;
  padding-left: 20px;
}

.faq__a ul {
  list-style-type: disc;
  padding-left: 20px;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--accent);
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

* {
  scrollbar-color: var(--accent) transparent;
  scrollbar-width: thin;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

section {
  position: relative;
}

.container {
  width: 100%;
  max-width: calc(1798px + var(--pad) * 2);
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
}

.ico {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

html {
  scroll-padding-top: calc(var(--hhs) + 12px);
}

.header--scrolled {
  background: rgba(3, 10, 11, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

@supports (
  (-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))
) {
  html:not(.lite) .header--scrolled {
    background: rgba(3, 10, 11, 0);
  }
}

.c-item {
  scroll-snap-align: start;
}

.c-prev .ico {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 
   Спільні компоненти: рамка, кнопки, типографіка, reveal, каруселі
    */

/*  ---------- Градієнтна рамка з макета (border-image не вміє заокруглення, тому маска) ----------  */

.gb,
.btn--ghost {
  position: relative;
}

.gb::before,
.btn--ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: var(--bw, 1px);
  background: var(--bg-g, var(--obv));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  pointer-events: none;
  z-index: 2;
}

/*  ---------- Кнопки (pill, як у макеті) ----------  */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.1vw, 20px);
  min-height: var(--pill);
  padding: 0 clamp(26px, 2.14vw, 41px);
  background: var(--btn);
  color: #fff;
  font-weight: 600;
  font-size: clamp(16px, 0.94vw, 18px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-align: center;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  border-width: 1px;
  box-shadow:
    0 0 15px rgba(255, 75, 30, 0.6),
    0 0 30px rgba(255, 75, 30, 0.3);
  transform: scale(1.03);
}

.btn .ico {
  font-size: clamp(20px, 1.55vw, 28px);
  stroke-width: 1.5;
}

.btn--ghost {
  background: rgba(0, 0, 0, 0.04);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--sm {
  min-height: 44px;
  padding: 0 24px;
  font-size: 15px;
}

.btn--sm .ico {
  font-size: 18px;
}

.btn__wrap {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 1.4vw, 27px);
}

.btn__position {
  display: flex;
  justify-content: center;
  margin-top: clamp(36px, 3vw, 58px);
}

/*  ---------- Типографіка секцій ----------  */

.h2 {
  font-size: var(--h2);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.h2 em {
  font-style: normal;
  color: var(--accent);
}

.lead {
  font-size: var(--lead);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #fff;
}

.h2--c,
.lead--c {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.h2--c {
  max-width: 1182px;
}

.lead--c {
  max-width: 947px;
  margin-top: clamp(14px, 1.25vw, 24px);
}

/*  ---------- Reveal ----------  */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease var(--d, 0s),
    transform 0.7s ease var(--d, 0s);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/*  ---------- Карусель (спільні стилі) ----------  */

.ctrack {
  display: flex;
  gap: clamp(14px, 1.7vw, 33px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 6px 3px 4px;
  scroll-padding-inline: 3px;
  align-items: flex-start;
}

.ctrack::-webkit-scrollbar {
  display: none;
}

.cbtns_container {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .cbtns_container {
    display: none;
  }
}

.cbtns,
.cnav {
  display: flex;
  gap: clamp(8px, 0.8vw, 15px);
}

.cbtn {
  width: clamp(46px, 3.7vw, 71px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: clamp(20px, 1.6vw, 28px);
  background: rgba(0, 0, 0, 0.04);
  --bg-g: var(--obv-red);
  transition:
    background 0.25s,
    opacity 0.25s;
}

.cbtn:hover {
  background: rgba(231, 70, 21, 0.2);
}

.cbtn:disabled {
  opacity: 0.4;
  pointer-events: none;
}

.cnav {
  justify-content: flex-end;
  margin-top: clamp(16px, 1.1vw, 21px);
}

@supports (
  (-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))
) {
  html:not(.lite) .btn--ghost {
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
}

.cprog {
  display: none;
  height: 5px;
  margin-top: 28px;
  border-radius: 22px;
  background: #3b3b3b;
  position: relative;
  overflow: hidden;
}

.cprog > span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 25%;
  border-radius: 22px;
  background: var(--accent);
  will-change: transform;
}

@media (max-width: 760px) {
  .h2 {
    line-height: 1.083;
  }
  .lead {
    line-height: 1.3;
  }
  .btn {
    padding: 0 24px;
    font-size: 13px;
  }
  .btn__wrap {
    order: 4;
    position: relative;
    z-index: 2;
    flex-direction: column;
    gap: 14px;
  }
  .btn__wrap .btn {
    width: 100%;
  }
  .ctrack {
    gap: 14px;
    padding: 0;
    scroll-padding-inline: 0;
  }
  .cprog {
    display: block;
  }
  .cprog[hidden] {
    display: none;
  }
}

@media (min-width: 521px) and (max-width: 760px) {
  .btn__wrap {
    flex-direction: row;
  }
  .btn__wrap .btn {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* 
   Хедер і мобільне меню
    */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(3, 10, 11, 0.55);
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.3s,
    border-color 0.3s;
}

@supports (
  (-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))
) {
  html:not(.lite) .header {
    background: rgba(3, 10, 11, 0);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
  }
}

.nav-open .header,
html:not(.lite).nav-open .header {
  background: #000;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.header__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: var(--hh);
  transition: height 0.3s;
}

.header--scrolled .header__body {
  height: var(--hhs);
}

/*  лого: емблема + назва бригади (assets/logo.svg, assets/group0.svg)  */

.logo {
  display: flex;
  align-items: center;
  gap: clamp(9px, 0.83vw, 16px);
  flex: 0 0 auto;
  min-width: 0;
  position: relative;
  z-index: 902;
}

/*  розміри задані явно (пропорції 40×43 і 151×42), щоб не залежати від width/height усередині самих svg  */

.logo img {
  display: block;
  flex: none;
  max-width: none;
  object-fit: contain;
}

/*  меню (лише ПК)  */

.menu {
  display: none;
}

.menu a {
  position: relative;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 15px;
  letter-spacing: -0.03em;
  white-space: nowrap;
  transition: color 0.2s;
}

.menu a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  transform: scaleX(0);
  transition: transform 0.3s;
}

.menu a:hover {
  color: var(--accent);
}

.menu a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/*  кнопка «Подати заявку»  */

.header__right {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 902;
}

.header .header__cta {
  padding: 0 14px;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  line-height: 15px;
  white-space: nowrap;
}

.header .header__cta .ico {
  display: none;
  width: 21px;
  height: 15px;
  font-size: inherit;
  stroke-width: 2;
}

.burger {
  display: grid;
  width: 44px;
  height: 44px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  position: relative;
  z-index: 902;
}

.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition:
    transform 0.3s,
    background 0.3s;
  position: relative;
}

.burger span::before,
.burger span::after {
  content: '';
  position: absolute;
  left: 0;
}

.burger span::before {
  top: -6px;
}

.burger span::after {
  top: 6px;
}

.nav-open .burger span {
  background: transparent;
}

.nav-open .burger span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .burger span::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (min-width: 521px) {
  .header .header__cta {
    padding: 0 22px;
    font-size: 14px;
  }
  .header .header__cta .ico {
    display: block;
  }
  .header__right {
    gap: 14px;
  }
}

@media (max-width: 359px) {
  .header__right {
    gap: 8px;
  }
}

@media (min-width: 1181px) {
  .header__body {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: clamp(12px, 1.5vw, 28px);
  }
  .menu {
    display: flex;
    align-items: center;
    gap: clamp(14px, calc(3.11vw - 22.7px), 37px);
  }
  .logo {
    justify-self: start;
  }
  .header__right {
    justify-self: end;
  }
  .header .header__cta {
    min-height: clamp(44px, 2.71vw, 52px);
    padding: 0 clamp(24px, 2.71vw, 52px);
  }
  .burger {
    display: none;
  }
}

@media (min-width: 1500px) {
  .menu {
    transform: translateX(-15px);
  }
}

/*  ---------- Мобільне меню (на весь екран) ----------  */

.mmenu {
  position: fixed;
  inset: 0;
  z-index: 890;
  display: flex;
  flex-direction: column;
  padding: calc(var(--hh) + 12px) var(--pad)
    max(24px, env(safe-area-inset-bottom));
  background:
    radial-gradient(
      ellipse 90% 45% at 50% 105%,
      rgba(231, 70, 21, 0.22),
      transparent 70%
    ),
    #000;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 0.25s,
    transform 0.25s,
    visibility 0.25s;
}

.nav-open .mmenu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mmenu a:not(.btn) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 12px 2px;
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 600;
  letter-spacing: -0.03em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.2s;
}

.mmenu a:not(.btn)::after {
  content: '';
  width: 9px;
  height: 9px;
  flex: none;
  border: solid var(--accent);
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}

.mmenu a:not(.btn):hover,
.mmenu a:not(.btn):active {
  color: var(--accent);
}

.mmenu a:nth-last-child(2) {
  margin-bottom: 28px;
}

.mmenu .btn {
  margin-top: auto;
  width: 100%;
  min-height: 56px;
  font-size: 16px;
  font-weight: 600;
}

.mmenu .btn .ico {
  width: 21px;
  height: 15px;
  font-size: inherit;
  stroke-width: 2;
}

@media (min-width: 1181px) {
  .mmenu {
    display: none;
  }
}

@media (max-height: 480px) and (orientation: landscape) {
  .mmenu {
    padding-top: calc(var(--hh) + 4px);
  }
  .mmenu a:not(.btn) {
    min-height: 44px;
    padding: 8px 2px;
    font-size: 20px;
  }
}

@media (max-width: 760px) {
  /*  ---- Хедер: лише логотип і «бургер» з двох ліній ----  */
  .burger {
    width: 48px;
    border: 0;
    border-radius: 0;
    place-items: center end;
  }
  .burger span {
    width: 38px;
    height: 1px;
    background: transparent;
  }
  .burger span::before,
  .burger span::after {
    width: 38px;
    height: 1px;
    left: auto;
    right: 0;
  }
  .burger span::before {
    top: -3px;
  }
  .burger span::after {
    top: 3px;
  }
  .nav-open .burger span::before {
    width: 30px;
    transform: translateY(3px) rotate(45deg);
  }
  .nav-open .burger span::after {
    width: 30px;
    transform: translateY(-3px) rotate(-45deg);
  }
}

@media (max-width: 520px) {
  .header .header__cta {
    display: none;
  }
}

.header.site-header {
  background: transparent;
  border-bottom: 0;
  isolation: auto;
}

.header.site-header.header--scrolled {
  background: transparent;
  border-bottom-color: transparent;
}

.site-header__backdrop {
  position: absolute;
  inset: 0 0 -50px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.site-header__blur,
.site-header__tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.site-header__blur--low {
  -webkit-backdrop-filter: blur(calc(3px * var(--hdr-p, 0)));
  backdrop-filter: blur(calc(3px * var(--hdr-p, 0)));
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 72%,
    transparent 100%
  );
  mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
}

.site-header__blur--mid {
  -webkit-backdrop-filter: blur(calc(7px * var(--hdr-p, 0)));
  backdrop-filter: blur(calc(7px * var(--hdr-p, 0)));
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 52%,
    transparent 86%
  );
  mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 86%);
}

.site-header__blur--top {
  -webkit-backdrop-filter: blur(calc(10px * var(--hdr-p, 0)));
  backdrop-filter: blur(calc(10px * var(--hdr-p, 0)));
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 36%,
    transparent 70%
  );
  mask-image: linear-gradient(to bottom, #000 0%, #000 36%, transparent 70%);
}

.site-header__tint {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.16) 55%,
    transparent
  );
  opacity: var(--hdr-p, 0);
}

html:not(.lite) .site-header__blur {
  display: block;
}

html.lite .site-header__blur {
  display: none;
}

.site-header__inner {
  position: relative;
  z-index: 1;
  animation: header-in 0.45s ease-out both;
}

.logo__full {
  display: block;
  width: clamp(158px, 10.78vw, 207px);
  height: auto;
  max-width: none;
  object-fit: contain;
  transition: filter 0.2s ease;
}

.logo:hover .logo__full {
  filter: brightness(1.14);
}

.menu a::after {
  height: 1px;
  background: currentColor;
  transform-origin: left;
}

.menu a:hover,
.menu a:focus-visible {
  color: var(--accent);
}

.header .header__cta {
  position: relative;
  overflow: visible;
  min-height: clamp(44px, 2.71vw, 52px);
  padding-inline: clamp(24px, 2.71vw, 52px);
  border-radius: 999px;
  background: var(--btn);
  color: #fff;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.header .header__cta:hover,
.header .header__cta:focus-visible {
  background: var(--accent);
  box-shadow:
    0 0 0 1px rgba(255, 150, 110, 0.35),
    0 0 22px 3px rgba(231, 70, 21, 0.6),
    0 0 48px 8px rgba(231, 70, 21, 0.28);
  transform: translateY(-1px);
}

.nav-open .header.site-header {
  background: #000;
}

@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  .site-header__tint {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.78),
      rgba(0, 0, 0, 0.38) 70%,
      transparent
    );
  }
}

@media (max-width: 760px) {
  .logo__full {
    width: clamp(158px, 52vw, 207px);
  }
  .site-header__backdrop {
    bottom: -28px;
  }
}

@supports (
  (-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))
) {
  html.mid .header {
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }
}

@media (max-width: 1180px) {
  html:not(.lite) .site-header__tint {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.66),
      rgba(0, 0, 0, 0.42) 60%,
      transparent
    );
  }
}

html.lite .site-header__tint {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.82),
    rgba(0, 0, 0, 0.5) 70%,
    transparent
  );
}
@keyframes header-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 
   1. Hero
    */

/*  ---------- 1. Hero ----------  */

.hero {
  padding: 0;
  min-height: clamp(700px, 49.4vw, 948px);
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #000;
}

.hero__bg {
  position: absolute;
  inset: 0;
  isolation: isolate;
  background:
    radial-gradient(
      ellipse 55% 70% at 72% 55%,
      rgba(231, 70, 21, 0.22),
      transparent 70%
    ),
    #000;
}

.hero__img,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__img {
  object-position: center top;
}

.hero__bg.has-video::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

/*  читабельність тексту поверх фото + плавний перехід у чорний, як rectangle-51 у макеті  */

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.18) 55%,
      transparent 80%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.5) 0,
      transparent 22%,
      transparent 76%,
      #000 100%
    );
}

.hero__wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: clamp(104px, 7vw, 130px);
  padding-bottom: clamp(48px, 4.4vw, 84px);
}

.hero__content {
  padding-left: calc(min(9.5vw, 182px) - var(--pad));
}

.title {
  font-size: clamp(34px, 3.75vw, 72px);
  font-weight: 700;
  line-height: 1.01;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  max-width: 14em;
  margin-bottom: clamp(14px, 1.4vw, 26px);
}

.title em {
  font-style: normal;
  color: var(--accent);
}

.subtitle {
  font-size: clamp(16px, 0.94vw, 18px);
  line-height: 1.35;
  letter-spacing: -0.03em;
  font-weight: 500;
  max-width: 730px;
}

.hero__offers {
  margin: clamp(22px, 2.5vw, 48px) 0 clamp(26px, 2.9vw, 56px);
  max-width: 760px;
}

.hero__offers-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hero__adv {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero__adv li {
  position: relative;
  padding-left: 22px;
  font-size: clamp(13.5px, 0.8vw, 15px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero__adv li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 0.42em;
  width: 7px;
  height: 8px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.social {
  position: absolute;
  left: clamp(20px, 3vw, 58px);
  top: clamp(190px, 14.7vw, 282px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.social__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social__item {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 17px;
  background: rgba(0, 0, 0, 0.04);
  transition:
    color 0.2s,
    background 0.2s;
}

.social__item:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

@supports (
  (-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))
) {
  html:not(.lite) .social__item {
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

@media (max-width: 1100px) {
  .hero__content {
    padding-left: 0;
  }
  .social {
    display: none;
  }
}

/*  Десктоп/планшет: блок «Що ми пропонуємо» не показуємо (на мобільному ≤760 він окремим екраном — без змін)  */
@media (min-width: 761px) {
  .hero__offers {
    display: none;
  }
  .hero__content .btn__wrap {
    margin-top: clamp(22px, 2.5vw, 48px);
  }
}

@media (max-width: 760px) {
  /*  ---- Hero: заголовок → текст → сцена → кнопки → «Що ми пропонуємо» ----  */
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: calc(var(--hh) + 31px) var(--pad) 16px;
  }
  .hero__wrap,
  .hero__content {
    display: contents;
  }
  .hero::after {
    display: none;
  }
  .title {
    order: 1;
    position: relative;
    z-index: 2;
    font-size: clamp(30px, 9.23vw, 44px);
    line-height: 1.083;
    max-width: 10.2em;
    margin-bottom: 20px;
  }
  .subtitle {
    order: 2;
    position: relative;
    z-index: 2;
    font-size: 14px;
    line-height: 1.3;
    max-width: none;
  }

  /*  сцена: фон-дим + шахед + дрон; у макеті — 390×412, усі позиції в % від неї  */
  .hero__bg {
    order: 3;
    inset: auto;
    z-index: 0;
    margin: 0 calc(var(--pad) * -1);
    aspect-ratio: 390 / 412;
    background: none;
  }
  .hero__bg::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 46%;
    height: 49%;
    z-index: 3;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), #000);
    pointer-events: none;
  }

  /*  фон у макеті — картинка, повернута на 90°  */
  .hero__img {
    inset: auto;
    left: 115.9%;
    top: -132.8%;
    width: 240.3%;
    max-width: none;
    height: 124.8%;
    transform-origin: 0 0;
    transform: rotate(90deg);
    object-position: center;
  }
  .hero__offers {
    order: 5;
    position: relative;
    z-index: 2;
    max-width: none;
    margin: 49px 0 0;
    padding: 20px 14px 20px 10px;
    border-radius: 29px;
    background: rgba(0, 0, 0, 0.89);
  }
  .hero__offers::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--obv);
    -webkit-mask:
      linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
      linear-gradient(#000 0 0) content-box exclude,
      linear-gradient(#000 0 0);
    pointer-events: none;
  }
  .hero__offers-label {
    padding-left: 13px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--accent);
  }
  .hero__adv {
    gap: 5px;
  }
  .hero__adv li {
    padding-left: 13px;
    font-size: 12.5px;
    line-height: 1.3;
  }
  .hero__adv li::before {
    left: 0;
    top: 0.42em;
    width: 6px;
    height: 6px;
  }
}

@media (min-width: 521px) and (max-width: 760px) {
  .hero__bg {
    aspect-ratio: 16 / 9;
    margin-top: 8px;
  }
  .hero__bg::after {
    top: 0;
    height: 100%;
    background: linear-gradient(
      180deg,
      #000 0,
      transparent 22%,
      transparent 72%,
      #000 100%
    );
  }
  .hero__img {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
  }
}

/*  Hero retains Figma copy/layout and background, replacing only drone layers with AI artwork/motion.  */

.hero__bg {
  overflow: visible;
}

.hero__bg > .hero__img {
  z-index: 0;
}

.hero__layer {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.hero__layer img,
.hero__layer picture {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.hero__layer--main {
  left: 0;
  top: 0;
  width: 100%;
}

.hero__layer--second {
  left: 67.8%;
  top: 44.3%;
  width: 30.75%;
}

.drone__entry,
.drone__parallax,
.drone__maneuver,
.drone__float {
  will-change: transform;
}

.drone__entry {
  opacity: 0;
  transform: translate3d(38px, 0, 0);
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-ready .drone__entry {
  opacity: 1;
  transform: none;
}

.drone__entry--p1 {
  transition-delay: 180ms;
}

.drone__float {
  position: relative;
  z-index: 1;
}

.drone__image--shahed {
  width: 100%;
  height: auto;
}

.drone__image--p1 {
  width: 100%;
  height: auto;
}

.hero__layer--main .drone__maneuver,
.hero__layer--main .drone__float {
  transform-origin: 73% 37%;
}

.target {
  position: absolute;
  left: 58.33%;
  top: 15.93%;
  width: 21.15%;
  height: 31.43%;
  opacity: 0;
  transform: scale(1.06);
  pointer-events: none;
}

.target__corner {
  position: absolute;
  width: max(18px, calc(33 * var(--u)));
  height: max(18px, calc(33 * var(--u)));
  border: max(2px, calc(4 * var(--u))) solid #ff2d1a;
}

.target__corner--tl {
  left: 0;
  top: 0;
  border-right: 0;
  border-bottom: 0;
}

.target__corner--tr {
  right: 0;
  top: 0;
  border-left: 0;
  border-bottom: 0;
}

.target__corner--bl {
  left: 0;
  bottom: 0;
  border-right: 0;
  border-top: 0;
}

.target__corner--br {
  right: 0;
  bottom: 0;
  border-left: 0;
  border-top: 0;
}

.drone__glow {
  position: absolute;
  z-index: 0;
  left: -25%;
  top: -25%;
  width: 150%;
  height: 150%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(231, 70, 21, 0.8),
    rgba(231, 70, 21, 0.28) 35%,
    transparent 68%
  );
  opacity: 0.12;
  pointer-events: none;
}

html.is-floating:not(.motion-off) .drone__float--shahed {
  animation: float-shahed 7s ease-in-out infinite;
}

html.is-floating:not(.motion-off) .drone__float--p1 {
  animation: float-p1 9s ease-in-out infinite;
}

html.is-floating:not(.motion-off) .drone__maneuver--shahed {
  animation: maneuver-shahed 12s ease-in-out infinite;
}

html.is-floating:not(.motion-off) .drone__maneuver--p1 {
  animation: maneuver-p1 12s ease-in-out 350ms infinite;
}

html.is-floating:not(.motion-off) .drone__glow {
  animation: glow-p1 12s ease-in-out 350ms infinite;
}

html.is-floating:not(.motion-off) .target {
  animation: target-lock 24s ease-in-out infinite;
}

.hero.is-paused .drone__float,
.hero.is-paused .drone__maneuver,
.hero.is-paused .drone__glow,
.hero.is-paused .target {
  animation-play-state: paused !important;
}

.ai-social {
  left: max(20px, calc(58 * var(--u)));
  top: clamp(190px, 14.7vw, 282px);
  z-index: 4;
}

.hero .btn {
  position: relative;
  min-height: clamp(60px, 4.95vw, 95px);
  padding-inline: clamp(26px, 2.14vw, 41px);
  border-radius: 999px;
  font-size: clamp(15px, 0.94vw, 18px);
  font-weight: 600;
  gap: clamp(10px, 1vw, 18px);
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.hero .btn:not(.btn--ghost) {
  background: var(--accent);
}

.hero .btn:not(.btn--ghost):hover,
.hero .btn:not(.btn--ghost):focus-visible {
  background: #e95325;
  box-shadow:
    0 0 0 1px rgba(255, 150, 110, 0.35),
    0 0 22px 3px rgba(231, 70, 21, 0.6),
    0 0 60px 12px rgba(231, 70, 21, 0.38);
  transform: scale(1.025);
}

.hero .btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.08);
  color: #fff;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.hero .btn--ghost::before {
  display: none;
}

.hero .btn--ghost:hover,
.hero .btn--ghost:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(231, 70, 21, 0.3);
}

.hero .btn img {
  width: clamp(28px, 2.07vw, 40px);
  height: auto;
  max-width: none;
}

@media (max-width: 760px) {
  .hero__bg {
    position: relative;
    overflow: visible;
  }
  .hero__img {
    object-fit: cover;
  }
  .hero__layer {
    z-index: 2;
  }
  .hero__layer--main {
    left: 2.56%;
    top: 1.46%;
    width: 72.56%;
    transform: none;
    transform-origin: center;
  }
  .hero__layer--second {
    left: 31.28%;
    top: 85.5%;
    width: 53.2%;
    transform: rotate(-71.148deg);
    transform-origin: 0 0;
  }
  .hero__layer--main .drone__maneuver,
  .hero__layer--main .drone__float {
    transform-origin: center;
  }
  .hero__layer--main .drone__image--shahed {
    width: 100%;
  }
  .target {
    display: none;
  }
  .hero .btn {
    min-height: 51px;
    font-size: 13px;
    padding-inline: 22px;
  }
  .hero .btn img {
    width: 28px;
  }
  .drone__image--p1 {
    transform: rotate(80deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .drone__entry {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .drone__float,
  .drone__maneuver,
  .drone__glow,
  .target {
    animation: none !important;
  }
  .drone__parallax {
    transform: none !important;
  }
}

html.motion-off .drone__float,
html.motion-off .drone__maneuver,
html.motion-off .drone__glow,
html.motion-off .target {
  animation: none !important;
}

html:not(.js) .drone__entry {
  opacity: 1;
  transform: none;
  transition: none;
}

/*  Social rail: draw circles with CSS and use the inline SVG symbols as the visible icons.  */

/*  --social-n — кількість значків (ставить config.js): з кнопкою телефону їх 8, без — 7 (було 376 px / 326 px)  */
.ai-social {
  display: block;
  width: 38px;
  height: calc(var(--social-n, 7) * 48px + 40px);
  overflow: visible;
}

.ai-social::after {
  content: '';
  position: absolute;
  left: 18px;
  top: calc(var(--social-n, 7) * 48px - 10px);
  width: 1px;
  height: 50px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
}

.ai-social .social__list {
  position: absolute;
  inset: 0;
  display: block;
}

.ai-social .social__item {
  position: absolute;
  left: 0;
  top: calc(var(--social-i, 0) * 48px);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

.ai-social .social__item .ico {
  display: block;
  width: 17px;
  height: 17px;
  color: currentColor;
  flex: 0 0 auto;
}

.ai-social .social__item:hover,
.ai-social .social__item:focus-visible {
  color: #fff;
  border-color: var(--accent);
  background: rgba(231, 70, 21, 0.16);
  box-shadow:
    0 0 0 1px rgba(231, 70, 21, 0.85),
    0 0 16px 2px rgba(231, 70, 21, 0.45);
}

.ai-social .social__item:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .ai-social {
    display: none;
  }
}

@media (max-width: 1100px) {
  .ai-social {
    display: none;
  }
}
@keyframes float-shahed {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0);
  }
  30% {
    transform: translate3d(1px, -4px, 0) rotate(-0.25deg);
  }
  70% {
    transform: translate3d(-1px, 3px, 0) rotate(0.25deg);
  }
}
@keyframes float-p1 {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0);
  }
  35% {
    transform: translate3d(-1px, 3px, 0) rotate(0.3deg);
  }
  75% {
    transform: translate3d(1px, -3px, 0) rotate(-0.3deg);
  }
}
@keyframes maneuver-shahed {
  0%,
  25%,
  66.67%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0);
  }
  41.67% {
    transform: translate3d(-14px, -4px, 0) rotate(-1.3deg);
  }
}
@keyframes maneuver-p1 {
  0%,
  25%,
  66.67%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0);
  }
  41.67% {
    transform: translate3d(-17px, -11px, 0) rotate(-1.8deg);
  }
}
@keyframes glow-p1 {
  0%,
  25%,
  100% {
    opacity: 0.12;
  }
  37.5% {
    opacity: 0.22;
  }
  50% {
    opacity: 0.12;
  }
}
@keyframes target-lock {
  0%,
  37.5%,
  46.25%,
  100% {
    opacity: 0;
    transform: scale(1.06);
  }
  40%,
  44.17% {
    opacity: 1;
    transform: scale(1);
  }
}

/* 
   2. Про наш батальйон
    */

/*  ---------- 2. Про наш батальйон ----------  */

.about {
  padding-top: clamp(80px, 7.6vw, 145px);
  /* було overflow:hidden — воно різало верх емблеми (top < 0). Тепер обрізаємо як і раніше з боків і знизу,
     а зверху дозволяємо виступ; flow-root зберігає той самий BFC, що давав overflow:hidden (відступи не «схлопуються») */
  display: flow-root;
  overflow: hidden; /* запасний варіант для старих браузерів (без overflow-x: clip) */
  overflow-x: clip;
  overflow-y: visible;
  clip-path: inset(-120px 0 0 0);
}

.about::before,
.about::after {
  content: '';
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(231, 70, 21, 0.5),
    rgba(231, 70, 21, 0)
  );
}

.about::before {
  left: -9vw;
  top: 14vw;
  width: 22vw;
  height: 17vw;
}

.about::after {
  right: -9vw;
  top: 13vw;
  width: 20vw;
  height: 22vw;
}

.about__head {
  display: grid;
  grid-template-columns: minmax(0, 26%) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 3.5vw, 66px);
  margin-bottom: clamp(28px, 2.4vw, 46px);
  position: relative;
  z-index: 1;
}

.about__head .lead {
  max-width: 975px;
}

.about,
.adv {
  /* відступ від краю екрана до контенту контейнера (= .container padding + вільне місце на дуже широких екранах) */
  --bleed: max(var(--pad), calc((100vw - 1798px) / 2));
}

/* картки йдуть до самих країв екрана, а перша картка лишається на лінії контейнера */
.about .ctrack {
  position: relative;
  z-index: 1;
  margin-inline: calc(var(--bleed) * -1);
  padding-inline: calc(var(--bleed) + 3px);
  scroll-padding-inline: calc(var(--bleed) + 3px);
}

.acard {
  position: relative;
  flex: 0 0 clamp(280px, 26.7vw, 512px);
  margin-top: clamp(0px, 2.2vw, 42px);
  padding: clamp(96px, 7.45vw, 143px) clamp(22px, 3.1vw, 60px)
    clamp(24px, 3vw, 58px);
  border-radius: clamp(28px, 3.4vw, 65px);
  background: rgba(0, 0, 0, 0.89);
  overflow: hidden;
}

.acard::before {
  content: attr(data-n);
  position: absolute;
  left: 0.3em;
  top: -0.1em;
  font-size: clamp(100px, 9.2vw, 177px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
  z-index: 0;
}

.acard::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--obv);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  pointer-events: none;
  z-index: 2;
}

.acard--feat {
  min-height: clamp(340px, 21.4vw, 410px);
  margin-top: 0;
  background: #0a0503;
}

.acard__title,
.acard__body {
  position: relative;
  z-index: 1;
}

.acard__title {
  font-size: clamp(18px, 1.04vw, 20px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  padding-top: 2em;
}

.acard__body {
  font-size: clamp(14px, 0.83vw, 16px);
  line-height: 1.4;
  letter-spacing: -0.02em;
}

@media (max-width: 1000px) {
  .about__head {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 760px) {
  /*  ---- Про наш батальйон: карусель із прогрес-смугою ----  */
  .about__head {
    display: block;
    margin-bottom: 56px;
  }
  .about__head .lead {
    margin-top: 22px;
  }
  .about .cprog {
    margin-top: 56px;
  }
  .acard {
    flex: 0 0 100%;
  }
  .acard::before {
    font-size: min(32.8vw, 170px);
  }
  .acard--feat {
    min-height: 181px;
  }
  .acard--feat:not(.open) .acard__body {
    display: none;
  }
  .acard__more {
    font-size: 26px;
  }
  .acard__more .ico {
    stroke-width: 2;
  }
  .acard--feat.open .acard__more .ico {
    transform: rotate(180deg);
  }
}

/*  Battallion section: retain Onest typography and the approved Figma card system; add artwork and hover expansion.  */

.about {
  isolation: isolate;
  z-index: 5; /* вище за hero::after (чорний градієнт, z-index:1), щоб він не накладався на верх емблеми */
}

.about__emblem {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.about__glow {
  position: absolute;
  z-index: 0;
  width: clamp(280px, 42vw, 800px);
  height: clamp(260px, 32vw, 610px);
  border-radius: 50%;
  filter: blur(65px);
  pointer-events: none;
  opacity: 0.25;
  background: radial-gradient(
    ellipse,
    rgba(231, 70, 21, 0.52),
    transparent 68%
  );
}

.about__glow--left {
  left: -28%;
  top: 22%;
}

.about__glow--right {
  right: -30%;
  top: 16%;
  opacity: 0.18;
}

.about > .container {
  position: relative;
  z-index: 1;
}

@property --acg {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}

.acard {
  min-height: clamp(230px, 15.8vw, 304px);
  padding-top: clamp(100px, 7.45vw, 143px);
  background-image: radial-gradient(
    ellipse 78% 62% at 2% -10%,
    rgba(231, 70, 21, calc(var(--acg) * 0.62)) 0%,
    rgba(231, 70, 21, calc(var(--acg) * 0.22)) 55%,
    rgba(231, 70, 21, 0) 100%
  );
  transition:
    min-height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    --acg 0.35s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.acard__body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transform: translateY(8px);
  transition:
    max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease,
    transform 0.25s ease,
    margin-top 0.25s ease;
}

.acard:hover .acard__body,
.acard:focus-within .acard__body,
.acard.open .acard__body {
  max-height: 760px;
  opacity: 1;
  margin-top: clamp(10px, 0.9vw, 16px);
  transform: none;
}

.acard:hover,
.acard:focus-within,
.acard.open {
  --acg: 1;
  background-color: #0c0807;
}

.acard__body p + p {
  margin-top: 10px;
}

.acard__more {
  display: none;
}

@media (max-width: 760px) {
  .about__glow {
    filter: blur(38px);
    opacity: 0.14;
  }
  .acard {
    min-height: 181px;
    padding: 96px 33px 56px;
    margin-top: 0;
    border-radius: 47px;
  }
  .acard__body {
    display: block;
  }
  .acard:not(.open) .acard__body {
    display: none;
  }
  .acard__more {
    position: absolute;
    left: 50%;
    bottom: 8px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-left: -22px;
    color: #fff;
  }
  .acard__more .ico {
    font-size: 24px;
    transition: transform 0.3s ease;
  }
  .acard.open .acard__more .ico {
    transform: rotate(180deg);
  }
  .acard.open {
    min-height: 280px;
  }
  .about .ctrack {
    padding-inline: var(--bleed);
    scroll-padding-inline: var(--bleed);
  }
}

@media (min-width: 761px) {
  .acard__more {
    display: none !important;
  }
  .acard:hover {
    min-height: clamp(340px, 21.4vw, 410px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .acard,
  .acard__body {
    transition: none !important;
  }
}

.about__emblem {
  left: clamp(24px, 5.05vw, 97px);
  top: clamp(-47px, -2.45vw, -20px);
  width: clamp(220px, 19.5vw, 375px);
  height: auto;
  transform: none;
  opacity: 1;
}

@media (min-width: 761px) {
  .about .ctrack {
    align-items: center;
    min-height: clamp(460px, 24vw, 480px);
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .about .acard,
  .about .acard--feat {
    margin-top: 0;
    min-height: clamp(230px, 15.8vw, 304px);
    align-self: center;
  }
  .about .acard--feat {
    min-height: clamp(230px, 15.8vw, 304px);
  }
}

@media (hover: hover) and (pointer: fine) and (min-width: 761px) {
  .about .acard:hover,
  .about .acard:focus-within,
  .about .acard:focus {
    min-height: clamp(410px, 23vw, 460px);
  }
}

@media (max-width: 760px) {
  .about__emblem {
    left: 20px;
    top: -22px;
    width: 210px;
    opacity: 1;
  }
  .about .ctrack {
    align-items: flex-start;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  .about .acard,
  .about .acard--feat {
    min-height: 181px;
    margin-top: 0;
  }
  .about .acard.open {
    min-height: 280px;
  }
}

/* 
   3. Про Бригаду (презентація)
    */

/*  ---------- 3. Про Бригаду ----------  */

.pres {
  padding-top: clamp(48px, 4.1vw, 79px);
}

.pres__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.02fr);
  gap: clamp(24px, 4.6vw, 88px);
  align-items: center;
}

.pres__text .h2 {
  margin-bottom: clamp(14px, 1.8vw, 34px);
}

.pres__text .lead {
  max-width: 527px;
}

/* Банер бригади — звірено з Figma-експортом 1163×398: позиції в % від полотна,
   розміри через cqi (1cqi = 1% ширини картки), тож композиція масштабується разом із карткою.
   Рамка й заокруглення «запечені» в brigade_banner.webp (rectangle-71), тому .gb тут не потрібен. */
.pcard {
  position: relative;
  display: block;
  container-type: inline-size;
  aspect-ratio: 1163 / 398;
  border-radius: 12px;
  color: #fff;
  transition: transform 0.3s;
}

.pcard:hover {
  transform: translateY(-3px);
}

.pcard__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 1.204cqi; /* 14 / 1163 */
}

.pcard__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* rectangle-72: чорний градієнт праворуч (x 319 → 1163) */
.pcard__fade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 27.43%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000 100%);
  pointer-events: none;
}

/* лого: left 728 / top 52 (62.6% / 13.07%) */
.pcard__logo {
  position: absolute;
  left: 62.6%;
  top: 13.07%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 1.9cqi;
  pointer-events: none;
}

.pcard__emblem {
  flex: 0 0 auto;
  width: clamp(30px, 4.97cqi, 58px);
  height: auto;
  color: #fff;
}

.pcard__logo-text {
  font-size: clamp(11px, 1.8cqi, 21px);
  font-weight: 600;
  line-height: 1.0625;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

/* підпис під лого: від лівого краю емблеми, 3 рядки (~306 px на полотні 1163) */
.pcard__logo-sub {
  flex: 0 0 100%;
  max-width: min(21em, 35cqi);
  margin-top: clamp(8px, calc(14.57cqi - 92px), 77px);
  font-size: clamp(11.5px, 1.25cqi, 14.5px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* кнопка: left 728 / top 275, 250×72, шрифт 13,68 / 600 / -0.03em */
.pcard__btn {
  position: absolute;
  left: 62.6%;
  top: 69.1%;
  min-width: 21.5cqi;
  min-height: clamp(44px, 6.19cqi, 72px);
  background: var(--accent); /* --rarog-chervonij з макета */
  padding: 0 clamp(18px, 2.4cqi, 28px);
  gap: clamp(10px, 1.03cqi, 12px);
  font-size: clamp(13px, 1.1765cqi, 15px);
  line-height: 1;
  white-space: nowrap;
  pointer-events: none; /* клік приймає вся картка (<a>), ховер кнопки лишається від спільного .btn:hover */
}

.pcard__btn .ico {
  width: clamp(15px, 1.5cqi, 18px);
  height: auto;
  aspect-ratio: 22 / 16;
  font-size: inherit;
  stroke-width: 1.6;
}

/* ховер кнопки — як у спільного .btn:hover; для клавіатури — ті самі стилі на фокус картки */
.pcard:hover .pcard__btn,
.pcard:focus-visible .pcard__btn {
  background: var(--accent);
  box-shadow:
    0 0 15px rgba(255, 75, 30, 0.6),
    0 0 30px rgba(255, 75, 30, 0.3);
  transform: scale(1.03);
}

@media (max-width: 1000px) {
  .pres__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  /*  ---- Про Бригаду ---- (власна адаптація: макета мобільного банера немає) */
  .pres {
    padding-top: 100px;
  }
  .pres__grid {
    gap: 40px;
  }
  .pres__text .h2 {
    margin-bottom: 20px;
  }
  .pcard {
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
    padding-bottom: 22px;
    border-radius: 14px;
    background: #000;
  }
  /* рамка з макета (маска), як у .gb — банер на мобільному кадрований, «запечена» рамка не підходить */
  .pcard::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--obv);
    -webkit-mask:
      linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
      linear-gradient(#000 0 0) content-box exclude,
      linear-gradient(#000 0 0);
    pointer-events: none;
    z-index: 2;
  }
  .pcard__logo {
    order: 1;
    position: static;
    justify-content: center;
    gap: 12px 14px;
    padding: 21px 20px 0;
  }
  .pcard__emblem {
    width: 34px;
  }
  .pcard__logo-text {
    font-size: 15px;
    line-height: 1.1;
  }
  .pcard__logo-sub {
    max-width: none;
    margin-top: 0;
    font-size: 13px;
    line-height: 1.3;
    text-align: center;
  }
  .pcard__media {
    order: 2;
    position: relative;
    inset: auto;
    margin: 17px 1px 0;
    border-radius: 14px;
    aspect-ratio: 368 / 206;
  }
  /* -2px: ховаємо «запечену» рамку по краях кадру; зсув до сержанта й дрона */
  .pcard__img {
    inset: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    object-position: 22% 50%;
  }
  .pcard__fade {
    display: none;
  }
  .pcard__btn {
    order: 3;
    position: static;
    min-width: 0;
    min-height: var(--pill);
    margin: 43px 6px 0;
    padding: 0 24px;
    gap: 14px;
    font-size: 13px;
  }
  .pcard__btn .ico {
    width: 21px;
  }
}

/* 
   4. Вакансії
    */

/*  ---------- 4. Вакансії ----------  */

.war {
  padding-top: var(--gap-sec);
}
/* Опис під заголовком: блок по центру, текст у ньому — по лівому краю */
.war .lead--c {
  width: fit-content;
  max-width: min(947px, 100%);
  text-align: left;
}

.war__wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(36px, 4vw, 76px);
}

.panel {
  position: relative;
  container-type: inline-size;
  overflow: hidden;
}

.panel__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.panel__in {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.panel__icon {
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

@supports (
  (-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))
) {
  html:not(.lite) .panel__icon {
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

.pi {
  position: relative;
  display: block;
  aspect-ratio: 1;
}

.pi img {
  width: 100%;
  height: 100%;
}

.panel__title {
  font-weight: 500;
  text-align: center;
  margin: clamp(16px, 2.6cqi, 23px) 0 clamp(22px, 4.5cqi, 39px);
}

.panel__list {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.vac {
  --fs: clamp(15px, 3cqi, 26px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: 'n n' 't t' 'm b';
  grid-template-rows: auto auto 1fr;
  gap: clamp(8px, 1.4cqi, 12px) 16px;
}

.vac__name {
  grid-area: n;
  text-transform: uppercase;
}

.vac__text {
  grid-area: t;
}

.vac__meta {
  grid-area: m;
  align-self: end;
  display: flex;
  flex-direction: column;
  letter-spacing: -0.04em;
}

.vac__btn {
  grid-area: b;
  align-self: end;
  display: inline-flex;
  align-items: center;
  padding: 0 clamp(18px, 3.4cqi, 30px);
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.vac__btn .ico {
  stroke-width: 1.4;
}

.vac:hover,
.vac:focus-visible {
  background: var(--btn);
}

.vac:hover .vac__name,
.vac:hover .vac__price,
.vac:focus-visible .vac__name,
.vac:focus-visible .vac__price {
  color: #fff;
}

.vac:hover .vac__tag,
.vac:focus-visible .vac__tag {
  color: rgba(255, 255, 255, 0.85);
}

.vac:hover .vac__btn,
.vac:focus-visible .vac__btn {
  background: #000;
}

/*  ---------- Нові компоненти (на ПК приховані; вмикаються в адаптиві) ----------  */

.vtabs {
  display: none;
  gap: 12px;
}

.vtab {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 51px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  text-align: left;
  font-size: clamp(12.5px, 3.6vw, 14px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.04em;
  transition: background 0.25s;
}

.vtab .ico {
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke: none;
  color: var(--accent);
  transition: color 0.25s;
}

.vtab.is-on {
  background: var(--btn);
}

.vtab.is-on .ico {
  color: #fff;
}

.vtab.is-on::before {
  opacity: 0;
}

@media (max-width: 1000px) {
  /*  вакансії: вкладки «Бойові / Небойові» замість двох довгих панелей (без JS видно обидві)  */
  .js .vtabs {
    display: flex;
    margin-top: clamp(36px, 6vw, 56px);
  }
  .js .panel:not(.is-on) {
    display: none;
  }
  .js .panel {
    background: none;
    border-radius: 0;
    overflow: visible;
  }
  .js .panel__bg,
  .js .panel__icon,
  .js .panel__title {
    display: none;
  }
  .js .war__wrap {
    margin-top: 28px;
  }
  .js .panel__in {
    padding: 0;
  }
  .panel__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .vac {
    --fs: clamp(13px, 1.9vw, 16px);
  }
  .vac {
    --fs: clamp(15px, 2.4cqi, 22px);
  }
  .war__wrap {
    grid-template-columns: 1fr;
  }
  .panel__in {
    padding-left: clamp(14px, 3.2cqi, 28px);
    padding-right: clamp(14px, 3.2cqi, 28px);
  }
}

@media (max-width: 760px) {
  /*  ---- Вакансії ----  */
  .war .lead--c {
    margin-top: 24px;
  }
  .js .vtabs {
    margin-top: 56px;
  }
  .vac {
    --fs: 12.5px;
  }
  .vac__text {
    max-width: none;
  }
  .vac__meta {
    gap: 3px;
  }
  .war .btn__position {
    margin-top: 32px;
  }
  .war .btn__position .btn {
    width: 100%;
  }
}

.war__wrap {
  gap: clamp(18px, 3.23vw, 62px);
}

.panel {
  border-radius: clamp(28px, 2.55vw, 49px);
  background: #000;
}

.panel__bg {
  opacity: 0.15;
  object-fit: cover;
}

.panel__in {
  padding: clamp(28px, 1.98vw, 38px) clamp(20px, 1.72vw, 33px)
    clamp(30px, 2.08vw, 40px);
}

.panel__icon {
  width: clamp(96px, 7.2vw, 138px);
  background: #161616;
  border: 0;
}

.panel__icon::before {
  display: none;
}

.pi {
  width: clamp(54px, 4.12vw, 79px);
  height: clamp(54px, 4.12vw, 79px);
}

.pi img {
  object-fit: contain;
}

.panel__title {
  margin-top: clamp(18px, 1.2vw, 23px);
  margin-bottom: clamp(28px, 2.14vw, 41px);
  font-size: clamp(32px, 2.84vw, 54.4px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.panel__list {
  gap: clamp(16px, 1.2vw, 23px);
}

.vac {
  --vc-bg: #000;
  --vc-border: rgba(255, 255, 255, 0.92);
  --vc-title: var(--accent);
  --vc-text: #fff;
  --vc-pay: var(--green);
  --vc-tag: rgba(255, 255, 255, 0.45);
  --vc-btn-bg: transparent;
  --vc-btn-border: rgba(255, 255, 255, 0.92);
  --vc-btn-text: #fff;
  min-height: clamp(210px, 16vw, 307px);
  padding: clamp(20px, 1.35vw, 26px);
  border: 1px solid var(--vc-border);
  border-radius: clamp(16px, 1.25vw, 24px);
  background: var(--vc-bg);
  color: var(--vc-text);
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.vac.gb::before {
  display: none;
}

.vac__name {
  color: var(--vc-title);
  font-size: clamp(18px, 1.46vw, 28px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.04em;
  transition: color 0.22s ease;
}

.vac__text {
  max-width: 34em;
  margin-top: clamp(12px, 1.25vw, 24px);
  margin-bottom: clamp(16px, 2.1vw, 40px);
  color: var(--vc-text);
  font-size: clamp(15px, 1.35vw, 26px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  transition: color 0.22s ease;
}

.vac__meta {
  font-size: clamp(14px, 1.35vw, 26px);
  line-height: 1.05;
  gap: clamp(5px, 0.42vw, 8px);
}

.vac__price {
  color: var(--vc-pay);
  font-weight: 600;
  transition: color 0.22s ease;
}

.vac__tag {
  color: var(--vc-tag);
  font-size: 0.86em;
  overflow-wrap: anywhere;
  transition: color 0.22s ease;
}

.vac__btn {
  min-height: clamp(46px, 4vw, 77px);
  padding-inline: clamp(18px, 1.98vw, 38px);
  gap: clamp(8px, 0.9vw, 17px);
  border: 1px solid var(--vc-btn-border);
  border-radius: 999px;
  background: var(--vc-btn-bg);
  color: var(--vc-btn-text);
  font-size: clamp(13px, 0.94vw, 18px);
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    transform 0.12s ease;
}

.vac__btn.gb::before {
  display: none;
}

.vac__btn .ico {
  font-size: 1.35em;
  transition: transform 0.22s ease;
}

@media (hover: hover) and (pointer: fine) {
  .vac:hover,
  .vac:focus-visible {
    --vc-bg: var(--accent);
    --vc-border: var(--accent);
    --vc-title: #fff;
    --vc-text: #fff;
    --vc-pay: #140800;
    --vc-tag: rgba(255, 255, 255, 0.72);
    --vc-btn-bg: #000;
    --vc-btn-border: #000;
    --vc-btn-text: #fff;
    box-shadow: 0 14px 38px rgba(231, 70, 21, 0.12);
    transform: translateY(-2px);
  }
  .vac:hover .vac__btn .ico,
  .vac:focus-visible .vac__btn .ico {
    transform: translateX(3px);
  }
}

.vac:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 1000px) {
  .panel__in {
    padding: 0;
  }
  .panel__icon,
  .panel__title,
  .panel__bg {
    display: none;
  }
  .vac {
    min-height: 0;
    gap: 8px;
    padding: 18px 16px 16px;
    grid-template-columns: 1fr;
    grid-template-areas: 'n' 't' 'm' 'b';
    grid-template-rows: auto;
  }
  .vac__name {
    font-size: clamp(15px, 2.1vw, 19px);
    line-height: 1.12;
  }
  .vac__text {
    margin: 0;
    font-size: clamp(13px, 1.9vw, 16px);
    line-height: 1.25;
  }
  .vac__meta {
    margin-top: 8px;
    font-size: clamp(13px, 1.9vw, 16px);
  }
  .vac__btn {
    width: 100%;
    min-height: 51px;
    margin-top: 8px;
    justify-content: center;
    font-size: 13px;
  }
}

@media (max-width: 760px) {
  .war__wrap {
    margin-top: 28px;
  }
  .panel__list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .vac {
    padding: 21px 12px 12px;
    border-radius: 24px;
    gap: 6px;
  }
  .vac__name {
    font-size: 15px;
    line-height: 1.15;
  }
  .vac__text {
    font-size: 12.5px;
    line-height: 1.25;
  }
  .vac__meta {
    margin-top: 12px;
    font-size: 12.5px;
  }
  .vac__btn {
    width: calc(100% + 10px);
    margin: 12px -5px 0;
  }
}

/* 
   5. Друзі бригади
    */

/*  ---------- 5. Друзі бригади ----------  */

.friends {
  padding-top: var(--gap-sec);
  overflow: hidden;
}

.friends__marquee {
  margin-top: clamp(36px, 4vw, 76px);
  overflow: hidden;
  font-size: clamp(5px, 0.5208vw, 10px);
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 7%,
    #000 93%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 7%,
    #000 93%,
    transparent
  );
}

.friends__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: scroll-left 40s linear infinite;
  will-change: transform;
}

.friends__marquee:hover .friends__track,
.friends__marquee.is-paused .friends__track {
  animation-play-state: paused;
}

.friend {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 18.1em;
  margin-right: 5em;
}

.friend img {
  width: calc(var(--w, 33) * 1em);
  height: auto;
  max-width: none;
}

.friend__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray);
  padding: 0 24px;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .friends__track {
    animation: none;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 16px;
  }
  .friends__marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .friend[aria-hidden='true'] {
    display: none;
  }
}

.friend img {
  max-height: 18.1em;
  object-fit: contain;
}

@keyframes scroll-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* 
   6. Інструкція (таймлайн, радар)
    */

/*  ---------- 6. Інструкція (дорожня карта) ----------  */

.steps {
  padding-top: var(--gap-sec);
  overflow: hidden;
}

.steps .container {
  z-index: 1;
}

.tl {
  --node: clamp(48px, 3.8vw, 73px);
  --cgap: clamp(36px, 8.8vw, 169px);
  position: relative;
  max-width: 1482px;
  margin: clamp(40px, 4.6vw, 88px) auto 0;
}

.tl__track {
  position: absolute;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  top: 0;
  height: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.67) 12%,
    #fff 50%,
    rgba(255, 255, 255, 0.67) 88%,
    rgba(255, 255, 255, 0)
  );
  overflow: hidden;
  z-index: 0;
}

.tl__progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  background: var(--accent);
  display: block;
}

.tl__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--node) minmax(0, 1fr);
  column-gap: var(--cgap);
  align-items: center;
}

.tl__box {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  min-height: clamp(150px, 9.9vw, 190px);
  padding: clamp(18px, 1.9vw, 36px) clamp(20px, 2vw, 38px);
  border-radius: clamp(18px, 1.37vw, 26px);
  background: rgba(0, 0, 0, 0.88);
  --bw: 1.4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(6px, 0.6vw, 12px);
}

.tl__item:nth-child(even) .tl__box {
  grid-column: 3;
}

.tl__box::after {
  content: '';
  position: absolute;
  top: 50%;
  height: 1px;
  width: var(--cgap);
  right: calc(var(--cgap) * -1);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1),
    #fff 50%,
    rgba(255, 255, 255, 0.1)
  );
}

.tl__item:nth-child(even) .tl__box::after {
  right: auto;
  left: calc(var(--cgap) * -1);
}

.tl__node {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 2;
  width: var(--node);
  height: var(--node);
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  transition: box-shadow 0.3s;
}

.tl__node img {
  width: 42%;
  height: 42%;
  object-fit: contain;
}

.tl__item.is-active .tl__node {
  box-shadow: 0 0 0 8px rgba(231, 70, 21, 0.22);
}

.tl__step {
  font-size: clamp(14px, 0.99vw, 19px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
}

.tl__title {
  font-size: clamp(19px, 1.46vw, 28px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.tl__text {
  font-size: clamp(14px, 0.99vw, 19px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 760px) {
  /*  ---- Інструкція ----  */
  .tl {
    --node: 46px;
  }
  .tl__track {
    left: 23px;
    margin-left: -1px;
  }
  .tl__item {
    grid-template-columns: var(--node) minmax(0, 1fr);
    column-gap: 16px;
    padding: 10px 0;
    align-items: start;
  }
  .tl__node {
    grid-column: 1;
    margin-top: 20px;
  }
  .tl__box,
  .tl__item:nth-child(even) .tl__box {
    grid-column: 2;
    min-height: 0;
  }
  .tl__box::after,
  .tl__item:nth-child(even) .tl__box::after {
    display: none;
  }
}

.steps {
  position: relative;
  isolation: isolate;
}

.steps__ai-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.instr__emblem {
  position: absolute;
  left: 50%;
  top: max(36px, calc(59 * var(--u)));
  width: min(80vw, calc(1541 * var(--u)));
  height: auto;
  max-width: none;
  transform: translateX(-50%);
  opacity: 0.075;
}

.instr__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    closest-side,
    rgba(231, 70, 21, 0.42),
    rgba(231, 70, 21, 0.12) 48%,
    transparent 100%
  );
}

.instr__glow--left {
  left: max(-900px, calc(-900 * var(--u)));
  top: max(-100px, calc(-100 * var(--u)));
  width: max(760px, calc(1700 * var(--u)));
  height: max(760px, calc(1700 * var(--u)));
  opacity: 0.68;
}

.instr__glow--right {
  right: max(-500px, calc(-500 * var(--u)));
  top: max(580px, calc(1000 * var(--u)));
  width: max(520px, calc(1000 * var(--u)));
  height: max(570px, calc(1100 * var(--u)));
  opacity: 0.55;
}

.radar {
  position: absolute;
  left: min(-300px, calc(-705 * var(--u)));
  top: max(165px, calc(254 * var(--u)));
  width: max(560px, calc(1036 * var(--u)));
  height: max(560px, calc(1036 * var(--u)));
  border-radius: 50%;
  overflow: hidden;
  opacity: 0.48;
}

.radar__base {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}

.radar__sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 290deg,
    rgba(231, 70, 21, 0.1) 320deg,
    rgba(231, 70, 21, 0.42) 360deg
  );
  animation: radar-sweep 12s linear infinite;
  will-change: transform;
}

.radar__dot {
  position: absolute;
  left: var(--rx);
  top: var(--ry);
  width: max(5px, calc(9 * var(--u)));
  height: max(5px, calc(9 * var(--u)));
  margin: -4px;
  border-radius: 50%;
  background: #ff5a3a;
  box-shadow: 0 0 10px 2px rgba(255, 90, 58, 0.6);
  opacity: 0.3;
  animation: radar-dot 12s linear infinite;
  animation-delay: var(--rd, 0s);
}

.instr__tech {
  position: absolute;
  left: min(71vw, calc(1357 * var(--u)));
  top: max(670px, calc(1272 * var(--u)));
  width: clamp(280px, calc(563 * var(--u)), 563px);
  opacity: 0.82;
  transform: translate3d(28px, 18px, 0);
  transition:
    opacity 0.8s ease,
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.instr__tech img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.steps.is-visible .instr__tech {
  opacity: 0.82;
  transform: none;
}

.steps:not(.is-visible) .radar__sweep,
.steps:not(.is-visible) .radar__dot,
html.page-hidden .radar__sweep,
html.page-hidden .radar__dot {
  animation-play-state: paused;
}

html.motion-off .radar__sweep,
html.motion-off .radar__dot {
  animation: none !important;
}

html.motion-off .radar__sweep {
  transform: rotate(300deg);
}

html.motion-off .instr__tech {
  opacity: 0.82;
  transform: none;
  transition: none;
}

@media (max-width: 760px) {
  .steps__ai-decor {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .radar__sweep,
  .radar__dot {
    animation: none !important;
  }
  .instr__tech {
    opacity: 0.82;
    transform: none;
    transition: none;
  }
}

@media (min-width: 761px) {
  .tl__box {
    min-height: clamp(180px, 9.9vw, 190px);
    padding: clamp(24px, 1.875vw, 36px) clamp(28px, 2.6vw, 50px)
      clamp(22px, 1.56vw, 30px) clamp(24px, 1.51vw, 29px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: clamp(16px, 1.35vw, 26px);
    background: rgba(0, 0, 0, 0.88);
    --bw: 0;
    transition:
      border-color 0.22s ease,
      background-color 0.22s ease,
      opacity 0.55s ease,
      transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .tl__box::before {
    display: none;
  }
  .tl__box:hover {
    border-color: var(--accent);
    background: rgba(40, 8, 2, 0.88);
  }
  .tl__node {
    background: #262626;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition:
      background-color 0.2s ease,
      border-color 0.2s ease,
      box-shadow 0.3s ease;
  }
  .tl__node img {
    width: clamp(28px, 1.875vw, 36px);
    height: auto;
  }
  .tl__item.is-active .tl__node {
    background: var(--accent);
    border-color: var(--accent);
  }
  html.tl-reveal .tl__item:not(.is-in) .tl__box {
    opacity: 0;
    transform: translate3d(-20px, 0, 0);
  }
  html.tl-reveal .tl__item:nth-child(even):not(.is-in) .tl__box {
    transform: translate3d(20px, 0, 0);
  }
  html.tl-reveal .tl__item.is-in .tl__box {
    opacity: 1;
    transform: none;
  }
  html.motion-off .tl__box {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
@keyframes radar-sweep {
  to {
    transform: rotate(360deg);
  }
}
@keyframes radar-dot {
  0%,
  100% {
    opacity: 0.3;
  }
  2% {
    opacity: 1;
  }
  18% {
    opacity: 0.3;
  }
}

/* 
   7. Переваги
    */

/*  ---------- 7. Переваги ----------  */

.adv {
  padding-top: var(--gap-sec);
}

.adv__wrap {
  display: flex;
  gap: clamp(14px, 1.77vw, 34px);
  align-items: flex-start;
  margin-top: clamp(36px, 4.2vw, 80px);
}

.adv__left {
  position: relative;
  flex: 0 0 clamp(250px, 20.4vw, 391px);
  aspect-ratio: 391/500;
  container-type: inline-size;
  border-radius: clamp(20px, 1.46vw, 28px);
  background: var(--accent);
  overflow: hidden;
  --bw: 1px;
}

.adv__pat {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.adv__arrow {
  position: absolute;
  left: 65.2%;
  top: 6.2%;
  width: 25.8%;
  height: auto;
  pointer-events: none;
}

.adv__lin {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 5.4cqi 7.4cqi;
}

.adv__count {
  display: flex;
  flex-direction: column;
}

.adv__five {
  font-size: clamp(120px, 69.7cqi, 272px);
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.adv__cap {
  font-size: clamp(22px, 12.8cqi, 50px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-top: -0.05em;
}

.adv__right {
  flex: 1;
  min-width: 0;
}

/* лише правий край: картки йдуть до краю екрана, лівий край (біля банера) без змін */
.adv {
  overflow-x: clip;
}

.adv .ctrack {
  margin-right: calc(var(--bleed) * -1);
  padding-right: calc(var(--bleed) + 3px);
}

/* Затемнення країв каруселі: чорний → прозорий (як у стрічці друзів).
   Класи .fade-l / .fade-r ставить carousel.js:
   · fade-r — праворуч є ще картки;
   · fade-l — лише під час руху, щоб картка, яка зупинилась, не тьмяніла. */
@property --fade-l {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}

@property --fade-r {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}

.adv .ctrack {
  --fade-wl: clamp(48px, 8vw, 160px);
  --fade-wr: clamp(48px, 8vw, 160px);
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 var(--fade-l),
    #000 calc(100% - var(--fade-r)),
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 var(--fade-l),
    #000 calc(100% - var(--fade-r)),
    transparent 100%
  );
  transition:
    --fade-l 0.35s ease,
    --fade-r 0.35s ease;
}

.adv .ctrack.fade-l {
  --fade-l: var(--fade-wl);
}

.adv .ctrack.fade-r {
  --fade-r: var(--fade-wr);
}

html.motion-off .adv .ctrack,
html.lite .adv .ctrack {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .adv .ctrack {
    transition: none;
  }
}

.adv__card {
  position: relative;
  flex: 0 0 clamp(240px, 20.4vw, 391px);
  aspect-ratio: 391/408;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: clamp(20px, 1.46vw, 28px);
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.adv__card:hover {
  background: var(--accent);
  border-color: var(--accent);
  border-width: 4px;
  border-radius: clamp(22px, 1.46vw, 30px);
  transform: scale(1.03);
}

/*  Картка за макетом Figma 391×408: усі розміри в cqi (1cqi = 3,91 px макета), тож пропорції однакові на будь-якій ширині.
    номер 44,9/45 · іконка Figma-розміру по центру (вертикальний центр ≈ 164 px) · заголовок 28/31 · текст 16/17 · інтервал −0,04em  */

.adv__card {
  /* ширина іконки в px макета (висота — за пропорцією з width/height в <img>) */
  --iw: 176;
}

.adv__card:nth-child(2) {
  --iw: 140.82;
}

.adv__card:nth-child(3) {
  --iw: 131.53;
}

.adv__card:nth-child(4) {
  --iw: 213.76;
}

.adv__card:nth-child(5) {
  --iw: 269;
}

.adv__num {
  position: absolute;
  left: 4.8cqi;
  top: 3.9cqi;
  z-index: 2;
  color: var(--accent);
  font-size: clamp(28px, 11.49cqi, 45px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.adv__img {
  position: absolute;
  left: 50%;
  top: 42cqi;
  translate: -50% -50%;
  width: calc(var(--iw) / 3.91 * 1cqi);
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

.adv__ct,
.adv__ctext {
  position: relative;
  z-index: 2;
  margin-left: 5.75cqi;
  margin-right: 5.75cqi;
}

.adv__ct {
  font-size: clamp(18px, 7.16cqi, 28px);
  font-weight: 700;
  line-height: 1.107;
  letter-spacing: -0.04em;
  margin-top: 0;
  margin-bottom: 2.7cqi;
}

.adv__ctext {
  max-width: 80.3cqi; /* блок тексту в макеті 314 px з 391 */
  font-size: clamp(13px, 4.09cqi, 16px);
  line-height: 1.3;
  /* Однакова трирядкова зона опису вирівнює заголовки всіх п’яти карток. */
  min-height: 3.9em;
  letter-spacing: -0.04em;
  margin-bottom: 4.7cqi;
  display: flex;
}

@media (max-width: 1000px) {
  .adv__left {
    flex: none;
    width: 100%;
    aspect-ratio: auto;
    min-height: clamp(190px, 53vw, 260px);
  }
  .adv__left .adv__lin {
    min-height: inherit;
    padding: 0 24px 20px;
  }
  .adv__arrow {
    width: clamp(90px, 20vw, 140px);
  }
  .adv__count {
    flex-direction: row;
    align-items: flex-end;
    gap: 14px;
  }
  .adv__five {
    font-size: clamp(130px, 38vw, 200px);
  }
  .adv__cap {
    font-size: clamp(24px, 7.4vw, 38px);
    margin: 0 0 0.12em;
  }
  .adv__wrap {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 760px) {
  .adv .cnav {
    display: none;
  }
  .adv .ctrack {
    padding-right: var(--bleed);
    /* картка займає всю ширину: праворуч гасимо лише «виглядаючу» сусідню */
    --fade-wl: 22px;
    --fade-wr: var(--bleed);
  }

  /*  ---- Переваги ----  */
  .adv__wrap {
    gap: 35px;
    margin-top: 28px;
  }
  .adv__card {
    flex: 0 0 100%;
  }
  .adv .cprog {
    margin-top: 28px;
  }
}

.adv__card {
  border-width: 1px;
  transform: translateZ(0);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.adv__card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(231, 70, 21, 0.04),
    rgba(231, 70, 21, 0.18)
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.adv__num,
.adv__img,
.adv__ct,
.adv__ctext {
  transition:
    filter 0.3s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .adv__card:hover {
    background: var(--accent);
    border-color: var(--accent);
    border-width: 1px;
    transform: translateY(-3px) scale(1.025);
    box-shadow: 0 18px 42px rgba(231, 70, 21, 0.16);
  }
  .adv__card:hover::before {
    opacity: 1;
  }
  .adv__card:hover .adv__img {
    transform: translateY(-4px) scale(1.025);
  }
  .adv__card:hover .adv__num {
    filter: brightness(1.25);
  }
}

@media (prefers-reduced-motion: reduce) {
  .adv__card,
  .adv__card::before,
  .adv__img,
  .adv__num {
    transition: none !important;
  }
  .adv__card:hover {
    transform: none;
  }
  .adv__card:hover .adv__img {
    transform: none;
  }
}

html.motion-off .adv__card,
html.motion-off .adv__card::before,
html.motion-off .adv__img,
html.motion-off .adv__num {
  transition: none !important;
}

html.motion-off .adv__card:hover,
html.motion-off .adv__card:hover .adv__img {
  transform: none !important;
}

/* 
   8. FAQ
    */

/*  ---------- 8. FAQ ----------  */

.faq {
  padding-top: var(--gap-sec);
}

.faq__wrap {
  display: grid;
  grid-template-columns: minmax(0, 850fr) minmax(0, 890fr);
  gap: clamp(28px, 3vw, 58px);
}

.sidebar {
  position: sticky;
  top: 110px;
  align-self: start;
}

.sidebar .lead {
  margin-top: clamp(18px, 1.8vw, 34px);
  max-width: 850px;
}

.sidebar__btns {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 1.4vw, 27px);
  margin-top: clamp(24px, 2.4vw, 46px);
}

.faq__list {
  width: 100%;
}

.faq__item:last-child {
  border-bottom: 0;
}

.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  text-align: left;
  font-weight: 700;
  font-size: clamp(17px, 1.25vw, 24px);
  line-height: 1.3;
  letter-spacing: -0.03em;
  padding: 0;
  transition: color 0.2s;
}

.faq__q:hover {
  color: var(--accent);
}

.faq__icon {
  position: relative;
  flex: 0 0 auto;
  width: clamp(36px, 2.5vw, 48px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #fff;
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46%;
  height: 2px;
  margin: -1px 0 0 -23%;
  border-radius: 2px;
  background: #fff;
}

.faq__icon::after {
  transform: rotate(90deg);
}

/*  відкритий пункт — чорна заокруглена картка з градієнтною рамкою, як у макеті  */

.faq__item.open {
  position: relative;
}

.faq__item.open::before {
  padding: 1px;
  background: var(--obv);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
}

.faq__item.open:last-child {
  margin-bottom: 0;
}

/*  Плавне розкриття без вимірювання висоти в JS; закрита відповідь недоступна для Tab  */

.faq__a p {
  color: #d6d6d6;
  line-height: 1.55;
  font-size: clamp(15px, 0.9vw, 17px);
  letter-spacing: -0.01em;
}

.faq__a b {
  color: #fff;
  font-weight: 600;
}

.faq__a a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
}

@media (max-width: 1000px) {
  .faq__wrap {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .sidebar__btns .btn {
    width: 100%;
  }
}

@media (min-width: 1001px) {
  .faq .sidebar {
    position: sticky;
    top: clamp(88px, 5.73vw, 110px);
  }
}

.faq {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(88px, 10.36vw, 199px);
  background: #000;
}

.faq__wrap {
  align-items: start;
}

.faq__list {
  margin-top: 2px;
}

.faq__item {
  position: relative;
  border-bottom: 0;
  padding: clamp(16px, 0.94vw, 18px) clamp(12px, 0.78vw, 15px)
    clamp(17px, 0.99vw, 19px);
  margin: 0;
  background: transparent;
  transition: background-color 0.22s ease;
}

.faq__item + .faq__item {
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  margin-top: clamp(9px, 0.73vw, 14px);
  padding-top: clamp(22px, 1.67vw, 32px);
}

.faq__item.open + .faq__item {
  border-top-color: transparent;
}

.faq__item.open {
  background: #000;
  border-radius: clamp(16px, 1.4vw, 27px);
  border-bottom-color: transparent;
  margin: 6px 0;
  padding: clamp(16px, 0.94vw, 18px) clamp(14px, 0.78vw, 15px)
    clamp(17px, 0.99vw, 19px);
}

.faq__item.open::before {
  content: '';
  position: absolute;
  inset: -4px -10px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: inherit;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.faq__q {
  position: relative;
  z-index: 1;
}

.faq__q:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
  border-radius: 5px;
}

.faq__icon {
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.faq__icon::before,
.faq__icon::after {
  transition:
    transform 0.18s ease,
    background-color 0.18s ease;
}

.faq__item.open .faq__icon {
  background: var(--accent);
  border-color: var(--accent);
}

.faq__item.open .faq__icon::before {
  transform: scaleY(0);
}

.faq__item.open .faq__icon::after {
  transform: rotate(0);
  background: #000;
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition:
    grid-template-rows 0.35s ease,
    visibility 0s 0.35s;
}

.faq__a > div {
  overflow: hidden;
  min-height: 0;
}

.faq__item.open .faq__a {
  grid-template-rows: 1fr;
  visibility: visible;
  transition:
    grid-template-rows 0.35s ease,
    visibility 0s;
}

.faq__a p {
  max-width: 46em;
  padding: clamp(12px, 1vw, 18px) 0 4px;
}

@media (hover: hover) and (pointer: fine) {
  .faq__q:hover .faq__icon,
  .faq__q:focus-visible .faq__icon {
    border-color: #fff;
  }
}

@media (max-width: 1000px) {
  .faq {
    padding-bottom: clamp(70px, 9vw, 110px);
  }
  .faq__item.open::before {
    inset: -3px -5px 0 0;
  }
}

@media (max-width: 760px) {
  .faq {
    padding-bottom: 80px;
  }
  .faq__item {
    padding-inline: 8px;
  }
  .faq__item.open {
    padding-inline: 12px;
  }
  .faq__item.open::before {
    inset: -3px -3px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq__item,
  .faq__item::before,
  .faq__icon,
  .faq__icon::before,
  .faq__icon::after,
  .faq__a {
    transition: none !important;
  }
}

html.motion-off .faq__item,
html.motion-off .faq__item::before,
html.motion-off .faq__icon,
html.motion-off .faq__icon::before,
html.motion-off .faq__icon::after,
html.motion-off .faq__a {
  transition: none !important;
}

/* 
   Футер
    */

/*  ---------- Футер ----------  */

.footer {
  background: #000;
  padding: clamp(70px, 8.5vw, 164px) 0 0;
  position: relative;
}

.footer__top {
  display: grid;
  gap: clamp(28px, 3vw, 58px);
  align-items: start;
}

.flogo {
  align-items: center;
  gap: 12px;
}

.flogo img:last-child {
  width: 151px;
  height: auto;
}

.footer__text {
  letter-spacing: -0.04em;
  color: #fff;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
}

.footer__nav a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.footer__nav a:hover {
  color: var(--accent);
}

.footer__contacts {
  display: flex;
  flex-direction: column;
}

.footer__contacts a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.03em;
  transition: color 0.2s;
}

.footer__contacts a:hover {
  color: var(--accent);
}

.footer__contacts .ico {
  font-size: 15px;
}

.footer__bottom {
  position: relative;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 22px 0 24px;
  font-size: 14px;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.54);
}

.footer__bottom::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.67) 12%,
    #fff 49.5%,
    rgba(255, 255, 255, 0.67) 86.5%,
    rgba(255, 255, 255, 0)
  );
}

.footer__bottom a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.54);
}

.footer__bottom a:hover {
  color: #fff;
}

@media (max-width: 1000px) {
  .footer__side {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .footer__nav {
    grid-row: auto;
    grid-column: auto;
  }
}

.footer {
  padding-top: 0;
  padding-bottom: clamp(22px, 1.4vw, 27px);
}

.footer__top {
  grid-template-columns: minmax(0, 316px) minmax(0, 1fr) auto;
  column-gap: clamp(28px, 2.1vw, 40px);
  padding-bottom: clamp(34px, 2.55vw, 49px);
}

.footer__brand {
  padding-top: clamp(24px, 1.62vw, 31px);
}

.flogo {
  display: inline-flex;
  width: min(100%, 207px);
  margin-bottom: 12px;
}

.flogo img:first-child {
  width: 100%;
  height: auto;
  max-width: none;
}

.footer__text {
  max-width: 316px;
  font-size: 13px;
  line-height: 1.25;
}

.footer__nav {
  justify-self: center;
  align-content: flex-start;
  justify-content: center;
  padding-top: clamp(46px, 3.96vw, 76px);
  gap: 12px clamp(16px, 1.93vw, 37px);
}

.footer__contacts {
  gap: 8px;
}

.footer__contacts a {
  font-size: 15px;
}

.footer__socials {
  grid-template-columns: repeat(4, 35px);
  gap: 9px 11px;
}

.footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-top: 0;
  padding-top: clamp(18px, 1.25vw, 24px);
}

.footer__bottom > :last-child {
  justify-self: end;
}

@media (max-width: 1000px) {
  .footer__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .footer__brand {
    grid-column: 1;
    grid-row: 1;
  }
  .footer__side {
    grid-column: 2;
    grid-row: 1;
  }
  .footer__nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    padding-top: 0;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .footer__top {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }
  .footer__brand,
  .footer__side,
  .footer__nav {
    grid-column: auto;
    grid-row: auto;
  }
  .footer__brand {
    padding-top: 0;
  }
  .footer__nav {
    padding-top: 0;
  }
  .footer__bottom {
    grid-template-columns: 1fr;
  }
  .footer__bottom > :last-child {
    justify-self: start;
  }
}

.footer__socials::before {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.footer__socials::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  background: #000;
  pointer-events: none;
}

.footer__nav a {
  position: relative;
  display: inline-block;
  padding-block: 4px;
  transition: color 0.18s ease;
}

.footer__nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
}

.footer__nav a:hover,
.footer__nav a:focus-visible {
  color: var(--accent);
}

.footer__nav a:hover::after,
.footer__nav a:focus-visible::after {
  transform: scaleX(1);
  opacity: 1;
}

.footer__nav a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 3px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.footer__bottom::before {
  display: none;
}

.footer__bottom a {
  transition: color 0.18s ease;
}

.footer__bottom a:hover,
.footer__bottom a:focus-visible {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .footer__nav a,
  .footer__nav a::after {
    transition: none !important;
  }
}

.footer__socials .social__item .ico {
  display: block;
  color: currentColor;
  flex: 0 0 auto;
}

.footer__socials .social__item:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/*  Footer social icons: seven links (Telegram is not configured), all visible and equally spaced.  */

.footer__socials {
  position: relative;
  display: block;
  width: 176px;
  height: 80px;
  flex: 0 0 80px;
  background: none;
}

.footer__socials::before,
.footer__socials::after {
  display: none !important;
  background: none !important;
}

.footer__socials .social__item {
  position: absolute;
  left: calc(var(--social-col, 0) * 46.3px);
  top: calc(var(--social-row, 0) * 44.5px);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

.footer__socials .social__item .ico {
  width: 16px;
  height: 16px;
}

.footer__socials .social__item:hover,
.footer__socials .social__item:focus-visible {
  color: #fff;
  border-color: var(--accent);
  background: rgba(231, 70, 21, 0.16);
  box-shadow: 0 0 14px 2px rgba(231, 70, 21, 0.35);
}

/*  The footer's contacts, seven-icon grid and application CTA share the same alignment axis.  */

.footer__side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-self: end;
  width: 176px;
  gap: 14px;
}

.footer__contacts {
  width: 100%;
  align-items: flex-end;
  text-align: right;
}

.footer__side > .btn {
  box-sizing: border-box;
  width: 176px;
  min-height: 46px;
  align-self: stretch;
  justify-content: center;
  padding-inline: 12px;
  gap: 10px;
}

@media (max-width: 760px) {
  .footer__nav {
    justify-self: stretch;
    justify-content: center;
    text-align: center;
  }
  .footer__side {
    justify-self: stretch;
    align-items: center;
    width: 100%;
    gap: 20px;
  }
  .footer__contacts {
    align-items: center;
    text-align: center;
  }
  .footer__contacts a {
    justify-content: center;
  }
  .footer__socials {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: auto;
    flex: none;
  }
  .footer__socials .social__item {
    position: static;
    flex: 0 1 40px;
    min-width: 30px;
    max-width: 40px;
    width: auto;
    height: auto;
    aspect-ratio: 1;
  }
  .footer__side > .btn {
    width: 100%;
    min-height: var(--pill);
  }
  .footer__bottom {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
  }
  .footer__bottom > :last-child {
    margin-left: auto;
  }
}

/* 
   Тач-пристрої: без «залипаючого» ховеру
    */

@media (hover: none), (pointer: coarse) {
  .btn:hover {
    background: var(--btn);
    border-color: transparent;
    box-shadow: none;
    transform: none;
  }
  .btn--ghost:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #fff;
  }
  .header .header__cta:hover {
    background: var(--btn);
    box-shadow: none;
    transform: none;
  }
  .hero .btn:not(.btn--ghost):hover {
    background: var(--accent);
    box-shadow: none;
    transform: none;
  }
  .hero .btn--ghost:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: none;
    transform: none;
  }
  .logo:hover .logo__full {
    filter: none;
  }
  .menu a:hover,
  .footer__nav a:hover,
  .footer__bottom a:hover {
    color: inherit;
  }
  .menu a:hover::after,
  .footer__nav a:hover::after {
    transform: scaleX(0);
    opacity: 0;
  }
  .social__item:hover {
    color: transparent;
    background: transparent;
  }
  .acard:hover {
    background-color: transparent;
  }
  .pcard:hover {
    transform: none;
  }
  .pcard:hover .pcard__btn {
    background: var(--btn);
    box-shadow: none;
    transform: none;
  }
  .vac:hover {
    background: var(--vc-bg);
  }
  .vac:hover .vac__name {
    color: var(--vc-title);
  }
  .vac:hover .vac__price {
    color: var(--vc-pay);
  }
  .vac:hover .vac__tag {
    color: var(--vc-tag);
  }
  .vac:hover .vac__btn {
    background: var(--vc-btn-bg);
    border-color: var(--vc-btn-border);
    color: var(--vc-btn-text);
  }
  .faq__q:hover {
    color: inherit;
  }
  .faq__q:hover .faq__icon {
    border-color: rgba(255, 255, 255, 0.75);
  }
  .footer__contacts a:hover {
    color: inherit;
  }
  .footer__socials .social__item:hover {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }
  .adv__card:hover {
    background: #000;
    border-color: rgba(255, 255, 255, 0.1);
    border-width: 1px;
    transform: none;
    box-shadow: none;
  }
  .adv__card:hover::before {
    opacity: 0;
  }
  .adv__card:hover .adv__img {
    transform: none;
  }
  .adv__card:hover .adv__num {
    filter: none;
  }
}
