/* ═══════════════════════════════════════════════
   ДИЗАЙН-ТОКЕНИ
   ═══════════════════════════════════════════════ */
:root {
  --bg:          #0D0D0D;
  --bg-2:        #121212;
  --card:        #1E1E1E;
  --card-2:      #171717;
  --line:        #272727;
  --accent:      #00FD82;
  --accent-dim:  #0b3722;
  --text:        #FFFFFF;
  --muted:       #A0A0A0;
  --muted-2:     #6b6b6b;

  --container: 1300px;
  --gutter: 24px;

  --font-main:  'Open Sans', sans-serif;
  --font-head:  'Montserrat', sans-serif;
  --font-acc:   'Rubik', sans-serif;

  --r-sm: 10px;
  --r-md: 20px;
  --r-pill: 99px;

  --ease: cubic-bezier(.22,.68,.32,1);
}

/* ═══════════════════════════════════════════════
   БАЗА
   ═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.15; font-weight: 400; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
svg { width: 100%; height: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }

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

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.accent { color: var(--accent); }
.section--light { background: var(--bg-2); }

/* ── Заголовки секцій ── */
.section__eyebrow {
  font-family: var(--font-acc);
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(30px, 4vw, 52px);
  text-transform: uppercase;
  font-weight: 300;
  letter-spacing: -.01em;
}
.section__title b { font-weight: 800; }
.section__title--lg {
  font-size: clamp(26px, 2.9vw, 40px);
  text-transform: none;
  font-weight: 400;
}
.section__title--lg b { font-weight: 700; }

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: 56px;
}
.section__head--row { align-items: center; }
.section__lead {
  max-width: 380px;
  color: var(--muted);
  font-size: 14px;
}

/* ── Кнопки ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 34px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-acc);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: none;
  transition: .3s var(--ease);
  white-space: nowrap;
}
.btn--solid {
  background: var(--accent);
  color: #062814;
  box-shadow: 0 0 0 rgba(0,253,130,0);
}
.btn--solid:hover {
  box-shadow: 0 10px 34px rgba(0,253,130,.32);
  transform: translateY(-2px);
}
.btn--outline {
  border-color: var(--accent);
  color: var(--text);
}
.btn--outline:hover {
  background: var(--accent);
  color: #062814;
  transform: translateY(-2px);
}
.btn--sm { padding: 11px 22px; font-size: 11px; }
.btn--block { width: 100%; }
.btn__arrow { width: 24px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }
.btn--with-dot { padding-right: 8px; }
.btn__dot {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--card); display: grid; place-items: center; flex: none;
}
.btn__dot svg { width: 14px; height: 14px; fill: none; stroke: var(--text); stroke-width: 1.6; }
.btn--with-dot:hover .btn__dot svg { stroke: var(--accent); }

/* ── Reveal on scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}


/* ═══════════════════════════════════════════════
   1. ПРЕЛОАДЕР
   ═══════════════════════════════════════════════ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #000;
  display: grid;
  place-items: center;
  transition: opacity .7s var(--ease), visibility .7s;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.preloader__logo {
  position: relative;
  width: 130px; height: 130px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
  box-shadow: 0 0 40px rgba(0,253,130,.35), inset 0 0 30px rgba(0,253,130,.12);
  animation: pulse 2.4s var(--ease) infinite;
}
.preloader__logo svg { width: 62px; height: 62px; }
@keyframes pulse {
  0%,100% { box-shadow: 0 0 30px rgba(0,253,130,.25), inset 0 0 24px rgba(0,253,130,.1); }
  50%     { box-shadow: 0 0 60px rgba(0,253,130,.5),  inset 0 0 40px rgba(0,253,130,.2); }
}


/* ═══════════════════════════════════════════════
   2. ХЕДЕР
   ═══════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,13,13,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: .35s var(--ease);
}
.header.is-scrolled {
  background: rgba(13,13,13,.94);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 76px;
}

.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo__mark { width: 38px; height: 38px; color: var(--accent); flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text b { font-family: var(--font-head); font-size: 19px; font-weight: 600; }
.logo__text i {
  font-family: var(--font-acc); font-style: normal;
  font-size: 12px; color: var(--accent); letter-spacing: .06em;
}

.nav { margin-right: auto; }
.nav__list { display: flex; gap: 34px; }
.nav__link {
  position: relative;
  font-size: 14px;
  color: #d6d6d6;
  transition: color .25s;
}
.nav__link::after {
  content: '';
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1.5px; background: var(--accent);
  transition: width .3s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }
.nav__mobile-extra { display: none; }

.header__right { display: flex; align-items: center; gap: 20px; flex: none; }
.header__phone {
  font-family: var(--font-acc);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.header__phone b { color: var(--accent); font-weight: 500; }
.header__phone:hover { color: var(--accent); }

/* мова */
.lang { position: relative; flex: none; }
.lang__current {
  display: flex; align-items: center; gap: 7px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  font-family: var(--font-acc); font-size: 13px; font-weight: 500;
  transition: border-color .25s, color .25s;
}
.lang__current:hover,
.lang.is-open .lang__current { border-color: var(--accent); color: var(--accent); }
.lang__globe { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; flex: none; }
.lang__chev { width: 9px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .25s; }
.lang.is-open .lang__chev { transform: rotate(180deg); }

.lang__dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  transform: translateY(-6px);
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 6px 0; min-width: 170px;
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
  opacity: 0; visibility: hidden; transition: .25s var(--ease);
  z-index: 30;
}
.lang.is-open .lang__dropdown { opacity: 1; visibility: visible; transform: none; }
.lang__dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; font-size: 13.5px;
  transition: background .2s, color .2s;
}
.lang__dropdown a b {
  font-family: var(--font-acc); font-size: 11px; font-weight: 600;
  color: var(--muted); min-width: 22px;
  transition: color .2s;
}
.lang__dropdown a:hover { background: #262626; }
.lang__dropdown a:hover b { color: var(--text); }
.lang__dropdown a.is-active { color: var(--accent); }
.lang__dropdown a.is-active b { color: var(--accent); }

/* бургер */
.burger {
  display: none;
  width: 34px; height: 24px;
  background: none; border: none; padding: 0;
  position: relative; flex: none;
}
.burger span {
  position: absolute; left: 0; height: 2px; width: 100%;
  background: var(--text); border-radius: 2px;
  transition: .35s var(--ease);
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 11px; }
.burger span:nth-child(3) { top: 22px; }
.burger.is-active span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { top: 11px; transform: rotate(-45deg); }


/* ═══════════════════════════════════════════════
   3. HERO
   ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 70px;
  overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #10241b 0%, var(--bg) 55%);
}
.hero__glow {
  position: absolute; top: -25%; left: 50%;
  width: 900px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0,253,130,.12) 0%, transparent 62%);
  pointer-events: none;
}
.hero__arc {
  position: absolute;
  top: 12%; left: 50%;
  width: 1500px; height: 1500px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: var(--accent);
  border-left-color: rgba(0,253,130,.35);
  border-right-color: rgba(0,253,130,.35);
  pointer-events: none;

  /* дихання: свічення плавно розгорається і згасає */
  animation: arc-breathe 5s var(--ease) infinite;

  /* паралакс: зсув задає app.js через --arc-x / --arc-y */
  transform: translateX(calc(-50% + var(--arc-x, 0px))) translateY(var(--arc-y, 0px));
  transition: transform .6s var(--ease);
}
@keyframes arc-breathe {
  0%, 100% { opacity: .38; filter: drop-shadow(0 0 4px rgba(0,253,130,.2)); }
  50%      { opacity: 1;   filter: drop-shadow(0 0 16px rgba(0,253,130,.65)); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__arc { animation: none; opacity: .85; transition: none; }
}
.hero__waves {
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 60%;
  pointer-events: none;
}
.hero__inner { position: relative; text-align: center; }

.hero__eyebrow {
  font-family: var(--font-acc);
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(38px, 6.2vw, 86px);
  font-weight: 300;
  letter-spacing: -.02em;
  margin-bottom: 28px;
}
.hero__title b { font-weight: 700; }
.typed {
  color: var(--accent);
  font-weight: 700;
  /* ширину під найдовше слово задає app.js — щоб рядок не стрибав */
  display: inline-block;
  white-space: nowrap;
  text-align: left;
}
.typed__caret {
  display: inline-block;
  width: 3px; height: .85em;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: -.08em;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100% { opacity: 1 } 50% { opacity: 0 } }

.hero__text {
  max-width: 660px;
  margin: 0 auto 40px;
  color: #b9b9b9;
  font-size: 15px;
}
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero__rating {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin-top: 56px;
}
.hero__rating-brand {
  font-family: var(--font-head);
  font-size: 26px; font-weight: 700;
  color: #4a4a4a; letter-spacing: -.02em;
}
.hero__rating-num { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero__stars { color: var(--text); font-size: 13px; letter-spacing: .18em; }


/* ═══════════════════════════════════════════════
   4. ТІКЕР
   ═══════════════════════════════════════════════ */
.ticker {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
}
.ticker__track { display: flex; width: max-content; animation: ticker-scroll 34s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; align-items: center; }
.ticker__group span {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 22px;
}
.ticker__group span:nth-child(4n+1) {
  color: transparent;
  -webkit-text-stroke: 1px #3a3a3a;
}
.ticker__group i { color: var(--accent); font-size: 22px; font-style: normal; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ═══════════════════════════════════════════════
   5. ПРО НАС
   ═══════════════════════════════════════════════ */
.about { padding: 110px 0; }
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.stats { border-top: 1px solid var(--line); }
.stats__item {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.stats__num {
  font-family: var(--font-head);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 300;
  min-width: 190px;
  letter-spacing: -.02em;
}
.stats__label { font-size: 14px; color: #cfcfcf; }

.about__content { max-width: 520px; }
.about__text { color: var(--muted); font-size: 14px; margin: 20px 0; }
.about__content .btn { margin-top: 12px; }

/* ── Сертифікат ─────────────────────────────────
   Зверстаний, а не фото: шрифти векторні, тож чіткий
   на ретіні. Розміри в cqi — масштабується разом
   із рамкою, пропорції як у оригіналу. */
.cert { margin: 12px 0 26px; }
.cert__frame {
  position: relative;
  padding: 12px;
  border-radius: var(--r-md);
  background: linear-gradient(160deg, #1a1a1a, #111);
  box-shadow: 0 24px 60px -28px rgba(0,0,0,.9), 0 0 0 1px var(--line);
}
/* тонка градієнтна окантовка з акцентом */
.cert__frame::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0,253,130,.55), rgba(255,255,255,.06) 35%, rgba(255,255,255,.04) 65%, rgba(0,253,130,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.cert__paper {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 924 / 701;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #1c1c1a;
  background: #7e8c63;
  border-radius: 8px;
  user-select: none;
}
/* внутрішня лінія, як на друкованих дипломах */
.cert__paper::after {
  content: '';
  position: absolute;
  inset: 2.6cqi;
  border: 1px solid rgba(28,28,26,.18);
  border-radius: 4px;
  pointer-events: none;
}
.cert__pill {
  display: inline-flex;
  align-items: center;
  gap: 2.2cqi;
  padding: 1.5cqi 5cqi 1.5cqi 1.8cqi;
  border: .3cqi solid #1c1c1a;
  border-radius: 99px;
  font-family: var(--font-head);
  font-size: 2.35cqi;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.cert__pill em { font-style: normal; text-transform: none; letter-spacing: .02em; }
.cert__pill svg {
  width: 4.4cqi; height: 4.4cqi;
  fill: #fff; stroke: #1c1c1a; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.cert__name {
  margin-top: 9cqi;
  font-family: 'Gelasio', Georgia, serif;
  font-size: 5.4cqi;
  line-height: 1.1;
}
.cert__done {
  margin-top: 2.6cqi;
  font-family: 'Gelasio', Georgia, serif;
  font-size: 1.9cqi;
  opacity: .8;
}
.cert__course {
  margin-top: 4cqi;
  font-family: var(--font-head);
  font-size: 5.6cqi;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.01em;
}
.cert__org {
  margin-top: 8cqi;
  font-family: var(--font-head);
  font-size: 2.5cqi;
  font-weight: 700;
  letter-spacing: .1em;
}
.cert__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 0 4px;
}
.cert__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.cert__badge svg {
  width: 14px; height: 14px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.cert__meta { font-size: 12px; color: var(--muted-2); }


/* ═══════════════════════════════════════════════
   6. ПОСЛУГИ
   ═══════════════════════════════════════════════ */
.services { padding: 110px 0 90px; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service {
  position: relative;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px 30px 30px;
  transition: .35s var(--ease);
  overflow: hidden;
}
.service::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, rgba(0,253,130,.12), transparent 70%);
  opacity: 0; transition: opacity .35s;
}
.service:hover {
  border-color: rgba(0,253,130,.45);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.service:hover::before { opacity: 1; }
.service--featured { background: linear-gradient(160deg, #103726, #121212 65%); border-color: rgba(0,253,130,.3); }

.service > * { position: relative; }
.service__icon { display: block; width: 40px; height: 40px; margin-bottom: 26px; color: var(--text); }
.service__icon svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.service__title { font-size: 21px; font-weight: 600; margin-bottom: 12px; }
.service__text { color: var(--muted); font-size: 13.5px; min-height: 66px; }
.service__price {
  font-family: var(--font-head);
  color: var(--accent);
  font-size: 19px; font-weight: 700;
  margin: 22px 0 26px;
}
.service__go {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: none;
  display: grid; place-items: center;
  transition: .3s var(--ease);
}
.service__go svg { width: 15px; height: 15px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; }
.service__go:hover { background: var(--accent); border-color: var(--accent); transform: rotate(45deg); }
.service__go:hover svg { stroke: #062814; }

.services__pill { display: flex; justify-content: center; margin-top: 64px; }
.services__pill span {
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 15px 46px;
  font-size: 15px;
  color: #dcdcdc;
  background: var(--bg);
}


/* ═══════════════════════════════════════════════
   7. ПОРТФОЛІО
   ═══════════════════════════════════════════════ */
.portfolio { padding: 110px 0; overflow: hidden; }
.slider { overflow: hidden; cursor: grab; }
.slider.is-dragging { cursor: grabbing; }
.slider__track {
  display: flex;
  gap: 22px;
  transition: transform .6s var(--ease);
  will-change: transform;
}
.work {
  flex: 0 0 calc((100% - 44px) / 3);
  min-width: 0;
  display: block;
}
.work__img {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  background-color: var(--card);
  background-image: var(--img);
  background-size: cover;
  background-position: top center;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: .35s var(--ease);
}
.work__img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.45));
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.work:hover .work__img {
  border-color: rgba(0,253,130,.45);
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(0,0,0,.5);
}
.work:hover .work__img::after { opacity: 1; }

.work__tag {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  background: rgba(13,13,13,.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 7px 16px;
  font-size: 12px;
}
.work__open {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(10px);
  transition: .35s var(--ease);
}
.work__open svg { width: 15px; height: 15px; fill: none; stroke: #062814; stroke-width: 1.8; stroke-linecap: round; }
.work:hover .work__open { opacity: 1; transform: none; }
.work__meta h3 { transition: color .25s; }
.work:hover .work__meta h3 { color: var(--accent); }
.work__meta { padding: 20px 4px 0; }
.work__meta h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.work__meta p { color: var(--muted); font-size: 13.5px; }

.slider__controls {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 46px;
}
.slider__progress {
  flex: 1;
  height: 2px;
  background: #232323;
  border-radius: 2px;
  overflow: hidden;
}
.slider__progress span {
  display: block; height: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: width .5s var(--ease), margin-left .5s var(--ease);
}
.slider__arrows { display: flex; gap: 12px; }
.slider__arrow {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card-2);
  display: grid; place-items: center;
  transition: .3s var(--ease);
}
.slider__arrow svg { width: 15px; height: 15px; fill: none; stroke: var(--text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.slider__arrow:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); }
.slider__arrow:hover:not(:disabled) svg { stroke: #062814; }
.slider__arrow:disabled { opacity: .35; cursor: default; }


/* ═══════════════════════════════════════════════
   8. ФОРМА ЗАЯВКИ
   ═══════════════════════════════════════════════ */
.order { padding: 110px 0; }
.order__inner {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 60px;
  align-items: center;
}
.order__title {
  font-size: clamp(38px, 5.4vw, 74px);
  text-transform: uppercase;
  font-weight: 300;
  letter-spacing: -.02em;
}
.order__title .accent { font-weight: 800; }
.order__sub { color: var(--muted); margin-top: 26px; max-width: 420px; }

.order__card {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 40px 38px;
}
.order__card-title { font-size: 26px; text-align: center; font-weight: 300; }
.order__card-title b { font-weight: 700; }
.order__card-sub { text-align: center; color: var(--muted); font-size: 13px; margin: 14px 0 28px; }

/* ── Поля ── */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: block; }
.field__label { display: block; font-size: 13px; margin-bottom: 8px; color: #e2e2e2; }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: #5a5a5a; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,253,130,.1);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 10px;
}
.field select option { background: var(--bg-2); }
.field input.is-error,
.field select.is-error { border-color: #ff5b5b; }

/* телефон з кодом країни */
.field__phone { position: relative; display: flex; }
.phone-code {
  display: flex; align-items: center; gap: 7px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-right: none;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  padding: 0 12px;
  font-size: 14px;
  flex: none;
}
.phone-code em { font-style: normal; font-size: 16px; }
.phone-code svg { width: 9px; height: 6px; fill: none; stroke: #888; stroke-width: 1.6; transition: transform .25s; }
.field__phone.is-open .phone-code svg { transform: rotate(180deg); }
.field__phone input { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.phone-list {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 20;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 6px 0; min-width: 230px;
  max-height: 220px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: .25s var(--ease);
}
.field__phone.is-open .phone-list { opacity: 1; visibility: visible; transform: none; }
.phone-list li { padding: 9px 16px; font-size: 13.5px; cursor: pointer; }
.phone-list li:hover { background: #262626; color: var(--accent); }

.form__status { font-size: 13px; text-align: center; min-height: 18px; }
.form__status.is-ok { color: var(--accent); }
.form__status.is-err { color: #ff5b5b; }


/* ═══════════════════════════════════════════════
   9. ЕТАПИ
   ═══════════════════════════════════════════════ */
.steps { padding: 110px 0; }
.steps__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.step {
  position: relative;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 30px 26px 60px;
  transition: .35s var(--ease);
}
.step:hover { border-color: rgba(0,253,130,.45); transform: translateY(-6px); }
.step__icon { display: block; width: 38px; height: 38px; margin-bottom: 46px; }
.step__icon svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.step__title { font-size: 17px; font-weight: 600; margin-bottom: 12px; }
.step__text { color: var(--muted); font-size: 13px; }
.step__num {
  position: absolute; right: 24px; bottom: 20px;
  font-family: var(--font-head);
  font-size: 30px; font-weight: 700;
  color: #232323;
  transition: color .35s;
}
.step:hover .step__num { color: var(--accent); }


/* ═══════════════════════════════════════════════
   10. ТЕХНОЛОГІЇ
   ═══════════════════════════════════════════════ */
.tech { padding: 110px 0; }
.tech__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.tech__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.tech__tile {
  aspect-ratio: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid; place-items: center;
  color: #8b8b8b;
  transition: .3s var(--ease);
}
.tech__tile svg {
  width: 42%; height: 42%;
  fill: currentColor;
  transition: transform .3s var(--ease);
}
.tech__tile:hover {
  color: var(--accent);
  border-color: rgba(0,253,130,.45);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,.4);
}
.tech__tile:hover svg { transform: scale(1.12); }

.tech__text { color: var(--muted); font-size: 14px; margin: 22px 0 40px; }
.tech__counter { display: flex; align-items: center; gap: 22px; }
.tech__counter-num { font-family: var(--font-head); font-size: 58px; font-weight: 300; }
.tech__counter-label { font-size: 13px; color: var(--muted); }


/* ═══════════════════════════════════════════════
   11. FAQ
   ═══════════════════════════════════════════════ */
.faq { padding: 100px 0; }
.faq__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.faq__col { display: flex; flex-direction: column; gap: 20px; }

.acc {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color .3s;
}
.acc[open] { border-color: rgba(0,253,130,.35); }
.acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 24px;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary i {
  position: relative;
  width: 16px; height: 16px; flex: none;
}
.acc summary i::before,
.acc summary i::after {
  content: ''; position: absolute; background: var(--text);
  transition: .3s var(--ease);
}
.acc summary i::before { top: 7px; left: 0; width: 16px; height: 2px; }
.acc summary i::after  { left: 7px; top: 0; width: 2px; height: 16px; }
.acc[open] summary i::before { background: var(--accent); }
.acc[open] summary i::after { transform: rotate(90deg); opacity: 0; }
.acc p {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 13.5px;
  animation: slideDown .35s var(--ease);
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}


/* ═══════════════════════════════════════════════
   12. ФУТЕР
   ═══════════════════════════════════════════════ */
.footer { border-top: 1px solid var(--line); padding: 70px 0 0; }
.footer__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.3fr;
  gap: 40px;
}
.footer__col h4 { font-size: 19px; font-weight: 600; margin-bottom: 22px; }
.footer__col a { display: block; font-size: 13.5px; color: var(--muted); padding: 5px 0; transition: color .25s; }
.footer__col a:hover { color: var(--accent); }

.footer__contacts { text-align: right; }
.footer__label { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.footer__phone { font-family: var(--font-head); font-size: 21px; font-weight: 600; }
.footer__hours { font-size: 12px; color: var(--muted); margin: 4px 0 24px; }
.footer__mail { font-family: var(--font-head); font-size: 19px; font-weight: 500; }
.footer__socials { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }
.footer__socials a {
  width: 42px; height: 42px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--accent);
  transition: .3s var(--ease);
}
.footer__socials svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.footer__socials a:hover { background: var(--accent); color: #062814; transform: translateY(-3px); }

.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding-top: 26px; padding-bottom: 26px;
  font-size: 12.5px; color: var(--muted);
}
.footer__top:hover { color: var(--accent); }


/* ═══════════════════════════════════════════════
   МОДАЛКА
   ═══════════════════════════════════════════════ */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: .35s var(--ease);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.78); backdrop-filter: blur(4px); }
.modal__box {
  position: relative;
  width: 100%; max-width: 440px;
  max-height: 90vh; overflow-y: auto;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 40px 36px;
  transform: translateY(18px) scale(.97);
  transition: .35s var(--ease);
}
.modal.is-open .modal__box { transform: none; }
.modal__close {
  position: absolute; top: 16px; right: 18px;
  background: none; border: none; font-size: 18px; color: var(--muted);
  transition: color .25s;
}
.modal__close:hover { color: var(--accent); }
.modal__title { font-size: 25px; font-weight: 600; text-align: center; }
.modal__sub { text-align: center; color: var(--muted); font-size: 13px; margin: 12px 0 26px; }


/* ═══════════════════════════════════════════════
   БАГАТОСТОРІНКОВІСТЬ
   ═══════════════════════════════════════════════ */

/* активний пункт меню */
.nav__link.is-current { color: var(--accent); }
.nav__link.is-current::after { width: 100%; }

/* шапка внутрішньої сторінки */
.page-hero {
  position: relative;
  padding: 170px 0 70px;
  background: radial-gradient(90% 120% at 50% -20%, #10241b 0%, var(--bg) 60%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; top: -60%; left: 50%;
  width: 900px; height: 600px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0,253,130,.1) 0%, transparent 62%);
  pointer-events: none;
}
.page-hero > .container { position: relative; }
.page-hero__title {
  font-family: var(--font-head);
  font-size: clamp(32px, 4.6vw, 62px);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.page-hero__title b { font-weight: 800; }
.page-hero__text { max-width: 620px; color: var(--muted); font-size: 15px; }

/* кнопка «дивитись усе» під превʼю-блоком */
.section__more { display: flex; justify-content: center; margin-top: 48px; }

/* портфоліо сіткою (на окремій сторінці) */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 30px;
}
.portfolio__grid .work { flex: none; }

/* контакти */
.contacts { padding: 90px 0 40px; }
.contacts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card {
  display: block;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 34px 30px;
  transition: .35s var(--ease);
}
.contact-card:hover {
  border-color: rgba(0,253,130,.45);
  transform: translateY(-6px);
  box-shadow: 0 20px 46px rgba(0,0,0,.45);
}
.contact-card__icon { display: block; width: 34px; height: 34px; color: var(--accent); margin-bottom: 24px; }
.contact-card__icon svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.contact-card__label {
  display: block; font-family: var(--font-acc); font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.contact-card__value { display: block; font-family: var(--font-head); font-size: 19px; font-weight: 600; }
.contact-card__note { display: block; font-size: 13px; color: var(--muted); margin-top: 10px; }

/* юридичні сторінки */
.legal { padding: 70px 0 100px; }
.legal__body { max-width: 760px; }
.legal__body h2 {
  font-size: 21px; font-weight: 600;
  margin: 40px 0 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.legal__body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal__body p { color: var(--muted); font-size: 14.5px; margin-bottom: 12px; }
.legal__body a { color: var(--accent); }
.legal__body a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════
   HERO З ФОТОГРАФІЄЮ
   Текст ліворуч, знімок праворуч. Фото лежить
   окремим шаром, поверх нього — вуаль-градієнт,
   щоб текст читався на будь-якому кадрі.
   ═══════════════════════════════════════════════ */
.hero--photo {
  background: #0a0a0a;
  min-height: min(92vh, 860px);
  padding: 150px 0 90px;
}

/* ⚙️ ЩОБ ЗАМІНИТИ ЗНІМОК — покласти новий у assets/hero.jpg */
.hero--photo .hero__photo {
  position: absolute; inset: 0;
  background-image: url(/assets/hero.jpg);
  background-size: cover;
  background-position: 72% center;   /* тримаємо людину в кадрі при звуженні */
  background-repeat: no-repeat;
}

/* вуаль: ліворуч щільна — під текст, праворуч прозора — щоб було видно знімок */
.hero--photo .hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, #0a0a0a 0%, rgba(10,10,10,.94) 30%, rgba(10,10,10,.55) 55%, rgba(10,10,10,.15) 78%, rgba(10,10,10,.35) 100%),
    linear-gradient(180deg, rgba(10,10,10,.75) 0%, transparent 22%, transparent 70%, rgba(10,10,10,.6) 100%);
}

.hero--photo .hero__inner { text-align: left; }
.hero--photo .hero__col { max-width: 620px; }
.hero--photo .hero__title { font-size: clamp(34px, 4.6vw, 68px); }
.hero--photo .hero__text { margin: 0 0 40px; max-width: 520px; }
.hero--photo .hero__actions { justify-content: flex-start; }
.hero--photo .hero__rating { justify-content: flex-start; }


/* ═══════════════════════════════════════════════
   МОДАЛКА: швидкий контакт і вибір каналу
   ═══════════════════════════════════════════════ */

/* ── швидкі кнопки месенджерів ── */
.quick__label {
  font-family: var(--font-acc);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); text-align: center; margin-bottom: 14px;
}
.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick__btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 12px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 13.5px; transition: .25s var(--ease);
}
.quick__btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.quick__btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.quick__btn--tg:hover { border-color: #2AABEE; color: #2AABEE; }
.quick__btn--wa:hover { border-color: #25D366; color: #25D366; }

/* ── розділювач «або» ── */
.modal__or {
  display: flex; align-items: center; gap: 14px;
  margin: 24px 0 20px;
  font-size: 12px; color: var(--muted-2);
  font-family: var(--font-acc); text-transform: lowercase;
}
.modal__or::before, .modal__or::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}

/* ── чіпи вибору каналу ── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-acc); font-size: 13px;
  padding: 9px 16px; border-radius: var(--r-pill);
  background: var(--bg-2); border: 1px solid var(--line); color: #d6d6d6;
  transition: .22s var(--ease);
}
.chip:hover { border-color: rgba(0,253,130,.5); color: #fff; }
.chip.is-active {
  background: var(--accent); border-color: var(--accent);
  color: #062814; font-weight: 500;
}

/* ── пастка для ботів ── */
.hp {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── екран після відправки ── */
.done { text-align: center; padding: 18px 0 6px; }
.done__icon {
  display: grid; place-items: center;
  width: 62px; height: 62px; margin: 0 auto 20px;
  border-radius: 50%; border: 2px solid var(--accent); color: var(--accent);
  box-shadow: 0 0 32px rgba(0,253,130,.25);
}
.done__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.done__title { font-size: 23px; font-weight: 600; margin-bottom: 10px; }
.done__text { color: var(--muted); font-size: 14px; margin-bottom: 24px; }


/* ═══════════════════════════════════════════════
   LIQUID GLASS
   Скло: майже прозорий фон + розмиття, а рамку
   малює ::before градієнтом і вирізає маскою,
   щоб залишився тільки контур.
   ═══════════════════════════════════════════════ */
.liquid-glass {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.45) 0%,
    rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0)    40%,
    rgba(255,255,255,0)    60%,
    rgba(255,255,255,0.15) 80%,
    rgba(255,255,255,0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* скляна кнопка */
.btn--glass { color: var(--text); }
.btn--glass:hover { background: rgba(255,255,255,.05); transform: translateY(-2px); }

/* ═══════════════════════════════════════════════
   HERO: ВІДЕО У ФОНІ
   ═══════════════════════════════════════════════ */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* кадр зміщено вниз: цікаве — у нижній частині відео */
  transform: translateY(17%);
  opacity: 0;                 /* прозорістю керує app.js, без CSS-переходів */
  pointer-events: none;
}

/* рейтинг і соцкнопки на склі */
.hero--photo .hero__rating {
  display: inline-flex;
  border-radius: var(--r-pill);
  padding: 12px 22px;
  margin-top: 44px;
}
.hero__social { display: flex; gap: 12px; margin-top: 26px; }
.hero__social-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: rgba(255,255,255,.8);
  transition: color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.hero__social-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hero__social-btn:hover { color: #fff; background: rgba(255,255,255,.05); transform: translateY(-3px); }

/* заголовок гарнітурою зі специфікації.
   Instrument Serif не має кирилиці — для uk/ru лишаємо Montserrat */
html[lang='en'] .hero--photo .hero__title,
html[lang='cs'] .hero--photo .hero__title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  letter-spacing: 0;
}
html[lang='en'] .hero--photo .hero__title b,
html[lang='cs'] .hero--photo .hero__title b { font-weight: 400; font-style: italic; }
