/* =========================================================
   ГЛОБАЛЬНІ ЗМІННІ ТА БАЗОВІ НАЛАШТУВАННЯ ТЕМИ
   ========================================================= */
:root{
  --bg:#3D3D3D;                 /* Базовий фон сторінки */
  --panel:#121318;              /* Темні панелі/картки */
  --panel2:#0f1015;             /* Альтернативний темний фон */
  --text:#e9e9ee;               /* Основний колір тексту */
  --muted:#a7a7b6;              /* Вторинний (сіруватий) текст */
  --line:rgba(255,255,255,.08); /* Стандартний бордер/розділювач */
  --shadow: 0 18px 60px rgba(0,0,0,.55); /* Тінь для панелей */
  --radius: 18px;               /* Базовий радіус скруглення */

  --accent:#7c2cff;             /* Головний фіолетовий акцент */
  --accent2:#b07bff;            /* Світліший акцент */
}

/* Підключення шрифтів: Inter для тексту, Ek Mukta для кнопки "Связаться" */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ek+Mukta:wght@600&display=swap');

/* Глобальний reset/база */
*{box-sizing:border-box}
html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
  overflow-x:hidden;
  width:100%;
  max-width:100%;
}
html,body{height:100%}
body{
  margin:0;
  background:#0b0c10;  /* Фон сайту */
  color:var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", Helvetica, sans-serif;
  line-height:1.35;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
  width:100%;
  max-width:100%;
  position:relative;
}

a{
  color:inherit; 
  text-decoration:none;
  -webkit-tap-highlight-color: transparent;
}
img{max-width:100%; display:block; height:auto}

button, input, textarea{
  -webkit-tap-highlight-color: transparent;
  max-width:100%;
}

/* Обмежуючий контейнер по центру */
.container{width:min(1280px, calc(100% - 32px)); margin:0 auto; max-width:100%}

/* =========================================================
   АНІМАЦІЇ ПРИ СКРОЛІНГУ
   ========================================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Початковий стан елементів */
.scroll-animate {
  opacity: 0;
  will-change: transform, opacity;
}

/* Анімовані стані */
.scroll-animate.animate.fade-up {
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.scroll-animate.animate.fade-left {
  animation: fadeInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.scroll-animate.animate.fade-right {
  animation: fadeInRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.scroll-animate.animate.scale-in {
  animation: scaleIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Затримки для послідовної анімації */
.scroll-animate.delay-100 { animation-delay: 0.1s; }
.scroll-animate.delay-200 { animation-delay: 0.2s; }
.scroll-animate.delay-300 { animation-delay: 0.3s; }
.scroll-animate.delay-400 { animation-delay: 0.4s; }

/* Reduce motion для користувачів з accessibility налаштуваннями */
@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;
  }
  .scroll-animate {
    opacity: 1;
  }
}

/* =========================================================
   ФОН СТОРІНКИ 
   ========================================================= */
.bg{position:fixed; inset:0; z-index:-1; background:#0b0c10}
.bg__grid,
.bg__noise,
.bg__glow{display:none}
/* =========================================================
   ХЕДЕР 
   ========================================================= */
.header{
  position:sticky; top:0;
  backdrop-filter: blur(10px);
  background: rgba(11,12,16,.62);
  border-bottom:none;
  z-index:50;
}
.header__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:12px 0;
}
.brand{display:flex; align-items:center; gap:10px; font-weight:400; letter-spacing:.6px; font-size:24px; color:rgba(233,233,238,.75)}
.brand__mark{
  width:34px; height:34px; border-radius:12px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(124,44,255,.9), rgba(176,123,255,.4));
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 30px rgba(124,44,255,.18);
}
.brand__name{opacity:1}

.nav{display:flex; align-items:center; gap:32px}
.nav__link{color:rgba(233,233,238,.75); font-size:18px; font-weight:400}
.nav__link:hover{color:#fff}

/* Правий блок хедера: селектор мови + кнопка "Связаться" */
.header__actions{display:flex; align-items:center; gap:16px}

/* =========================================================
  ВИПАДНИЙ СПИСОК МОВ (RU / UA / EN)
  ========================================================= */
.lang{position:relative}
.lang__btn{
  display:flex; align-items:center; gap:8px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(18,19,24,.55);
  color:rgba(233,233,238,.9);
  cursor:pointer;
}
.lang__menu{
  position:absolute; right:0; top:44px;
  min-width:120px;
  padding:6px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(18,19,24,.88);
  box-shadow: var(--shadow);
  display:none;
}
.lang__menu.open{display:block}
.lang__item{
  width:100%;
  padding:10px 10px;
  border:0;
  background:transparent;
  color:rgba(233,233,238,.9);
  border-radius:10px;
  cursor:pointer;
  text-align:left;
}
.lang__item:hover{background: rgba(124,44,255,.14)}

/* =========================================================
  ГЛОБАЛЬНІ СТИЛІ КНОПОК
  ========================================================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:0 20px;
  height:33px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(18,19,24,.55);
  color:#fff;
  font-size:16px;
  font-weight:400;
  font-family: 'Inter', sans-serif;
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
  white-space:nowrap;
  /* Touch-friendly minimum size */
  min-height:44px;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover{transform: translateY(-1px); border-color: rgba(255,255,255,.16)}
.btn:active{transform: translateY(0)}
.btn--primary{
  width:132px;
  font-family: 'Ek Mukta', sans-serif;
  font-weight:600;
  border-color: rgba(125,30,215,.75);
  background: linear-gradient(135deg, #4A018F 0%, #7D1ED7 100%);
  box-shadow: 0 14px 40px rgba(74,1,143,.32);
}
.btn--ghost{
  width:180px;
  background: rgba(0,0,0,.5);
  border-color: rgba(255,255,255,.12);
  color: rgba(233,233,238,.92);
}
.btn--ghost:hover{background: rgba(0,0,0,.7); border-color: rgba(255,255,255,.18)}
.w100{width:211px; height:32px; font-size:14px; font-weight:500; padding:0; margin-top:auto; align-self:center; min-height:44px}

/* =========================================================
   БУРГЕР-МЕНЮ ДЛЯ МОБІЛЬНОЇ НАВІГАЦІЇ
   ========================================================= */
.burger{
  display:none;
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(18,19,24,.55);
  cursor:pointer;
}
/* Три смужки усередині бургер-кнопки */
.burger span{
  display:block;
  width:18px; height:2px;
  background:rgba(233,233,238,.9);
  margin:4px auto;
  border-radius:2px;
}

/* =========================================================
  HERO-БЛОК 
  ========================================================= */
.hero{padding:0 0 72px}
.hero__panel{
  position:relative;
  width:min(1280px, calc(100% - 40px));
  margin:0 auto;
  padding:64px 68px 56px;
  border-radius:38px;
  border:1px solid rgba(255,255,255,.06);
  background:#0f1015;
  box-shadow: 0 30px 84px rgba(0,0,0,.55);
  overflow:hidden;
}
.hero__panel::before{content:none}
.hero__panel::after{
  content:"";
  position:absolute;
  inset:0;
  background:url("assets/hero-art.png") 85% center/auto 110% no-repeat;
  opacity:.92;
  z-index:0;
  pointer-events:none;
}
/* Внутрішній контент hero: текст ліворуч + картка праворуч */
.hero__content{
  position:relative;
  z-index:1;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:48px;
}
.hero__left{max-width:620px}
.kicker{margin:0 0 20px; letter-spacing:.18em; text-transform:uppercase; color:rgba(233,233,238,.7); font-weight:400; font-size:12px; padding:7px 16px; background: rgba(0,0,0,.65); border-radius:8px; display:inline-block}
.h1{margin:0 0 26px; font-size:80px; line-height:1.08; letter-spacing:-.025em; font-weight:600}
.h1 span:not(.grad){font-size:40px; display:block; font-weight:400}
.grad{
  background: linear-gradient(90deg, #6B3FA0 0%, #8B7BA8 35%, #B8A4C9 70%, #D4C5E0 100%);
  -webkit-background-clip:text; background-clip:text;
  color:transparent;
  font-size:80px;
  font-weight:600;
}
.lead{margin:0 0 32px; color:rgba(233,233,238,.8); max-width:56ch; font-size:20px; line-height:1.65; font-weight:400}

.hero__actions{display:flex; gap:16px; margin-bottom:48px}

.hero__metrics{
  display:flex;
  gap:20px;
  margin:0;
}
.metric{
  flex:1;
  padding:20px 20px 22px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.metric__label{display:block; font-size:14px; letter-spacing:.2em; text-transform:uppercase; color:rgba(233,233,238,.52); font-weight:400; margin-bottom:12px}
.metric__value{display:block; font-weight:600; font-size:22px; letter-spacing:-.015em; color:#fff}
.metric__unit{display:inline-block; margin-left:2px; font-size:22px; font-weight:600; color:#fff; letter-spacing:0; transform:translateY(0)}
.metric__desc{display:block; margin-top:10px; font-size:12px; color:rgba(233,233,238,.58); line-height:1.5; font-weight:400}

.hero__right{flex:1; display:flex; justify-content:flex-end}
.hero__card{
  width:340px;
  padding:26px 28px 28px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.09);
  background: rgba(26,26,26,.9);
  box-shadow: 0 28px 75px rgba(0,0,0,.6);
  backdrop-filter: blur(20px);
}
.hero__card-top{display:flex; align-items:center; justify-content:space-between; margin-bottom:18px}
.hero__card-eyebrow{font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:rgba(233,233,238,.5); font-weight:400; background:rgba(0,0,0,.4); padding:6px 12px; border-radius:6px}
.hero__card-menu{display:inline-flex; align-items:center; gap:4px; padding:4px; background:transparent; border:0; cursor:pointer}
.hero__card-menu span{display:block; width:5px; height:5px; border-radius:50%; background:rgba(233,233,238,.5)}
.hero__card-title{margin:0 0 12px; font-size:14px; font-weight:600; color:#fff; letter-spacing:-.015em; line-height:1.15}
.hero__card-desc{margin:0 0 20px; font-size:12px; line-height:1.6; color:rgba(233,233,238,.7); font-weight:400}
.hero__tags{display:flex; flex-wrap:wrap; gap:8px}
.hero__tag{font-size:11px; padding:7px 14px; border-radius:999px; border:1px solid rgba(124,44,255,.38); background:rgba(124,44,255,.18); color:rgba(210,180,255,1); font-weight:400; letter-spacing:.02em}


/* =========================================================
  ДОПОМІЖНІ КАРТКИ (універсальний стиль .card + 3D-арт блок)
  ========================================================= */
.card{
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(47, 50, 60, 0.716);
  box-shadow: 0 14px 50px rgba(0,0,0,.35);
}
.heroart{padding:12px; height:100%}
.heroart__top{display:flex; gap:7px; padding:8px 8px 12px}
.heroart__dot{width:10px; height:10px; border-radius:999px; background: rgba(233,233,238,.22)}
.heroart__body{
  position:relative;
  border-radius: 16px;
  min-height: 360px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.06);
  background: radial-gradient(circle at 20% 20%, rgba(124,44,255,.22), transparent 55%),
              radial-gradient(circle at 80% 60%, rgba(176,123,255,.14), transparent 60%),
              rgba(8,9,12,.55);
}
.heroart__placeholder{position:absolute; inset:0; display:grid; place-items:center}
.ring{
  position:absolute;
  width:240px; height:240px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 0 40px rgba(124,44,255,.12);
}
.ring--2{width:340px; height:340px; opacity:.7}
.ring--3{width:460px; height:460px; opacity:.45}
/* =========================================================
  УНІВЕРСАЛЬНІ СЕКЦІЇ (заголовок + контент), наприклад "Услуги"
  ========================================================= */
.section{padding:34px 0; max-width:100%; overflow-x:hidden}

/* Точне позиціонування секції "Услуги" відповідно до макету (y=849) */
#services.section{padding-top:24px}

.section__head{display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:24px; padding-left:24px; max-width:100%}
.h2{margin:0; font-size:40px; letter-spacing:-.01em; font-weight:500}

/* =========================================================
  СЕКЦІЯ "УСЛУГИ" — СІТКА КАРТОК З ПІДПУНКТАМИ ТА КНОПКОЮ
  ========================================================= */
.grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(auto, 1fr);
  align-items: stretch;
  gap:9px;
  max-width:100%;
  width:100%;
}
.svc{
  padding:13px;
  background: #242424;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.06);
  display:flex;
  flex-direction:column;
  min-height: 100%;
  max-width:100%;
  overflow:hidden;
}
.svc__head{display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:16px}
.h3{margin:0; font-size:16px; line-height:1.25; font-weight:600; color:#fff}
.badge{
  font-size:11px;
  padding:6px 10px;
  border-radius:12px;
  border:1.5px solid #7E1FD7;
  background:#2C1E38;
  color:#8530d5;
  white-space:nowrap;
  font-weight:600;
  display:inline-flex;
  align-items:center;
  gap:4px;
  position:relative;
}
.badge::after{
  content:'';
  display:inline-block;
  width:12px;
  height:15px;
  background-image: url('assets/fire-icon.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.badge--soft{border-color:rgba(255,255,255,.12); background:rgba(255,255,255,.06); color:rgba(233,233,238,.82)}
.svc__list{
  margin:0 0 auto;
  padding:0;
  list-style:none;
  color:#A1A1A1;
  font-size:13px;
  line-height:1.2;
  flex-grow:1;
}
.svc__list li{
  padding:16px 0 16px 52px;
  border-top:0;
  position:relative;
}
.svc__list li:first-child{
  padding-top:0;
  border-top:0;
}
.svc__list li strong{
  font-weight:400;
  color:#fff;
  display:block;
  margin-bottom:6px;
  margin-top:-2px;
}
.svc__list li:before{
  content:'';
  position:absolute;
  left:0;
  top:18px;
  width:20px;
  height:20px;
  border-radius:6px;
  border:1px solid rgba(255,255,255,.2);
  background:rgba(255,255,255,.06);
}
.svc__list li:after{
  content:'✓';
  position:absolute;
  left:5.5px;
  top:24px;
  color:rgba(255,255,255,.4);
  font-size:12px;
  font-weight:600;
  line-height:1;
}
/* =========================================================
   БЛОК "О КОМПАНИИ"
   ========================================================= */
.about{
  width:100%;
  max-width:100vw;
  position:relative;
  left:50%;
  right:50%;
  margin-left:-50vw;
  margin-right:-50vw;
  border-radius:0;
  border:none;
  background: #181818;
  box-shadow: 0 14px 50px rgba(0,0,0);
  overflow:hidden;
}
.about__inner{
  display:flex;
  gap:12px;
  align-items:stretch;
}
.about__bar{
  width:8px;
  border-radius:4px;
  background: #5F01B6;
  flex-shrink:0;
  margin:32px 0 32px -69px;
}
.about__content{
  flex:1;
  padding:46px 32px 46px 44px;
}
.about__content p{
  margin:0 0 36px;
  font-size:20px;
  font-weight:300;
  line-height:1.6;
  color:#fff;
  text-align:justify;
}
.about__content p:last-child{margin:0}

/* =========================================================
  РОЗДІЛ "КОНТАКТИ" — ФОРМА ТА ВІЗУАЛЬНИЙ БЛОК
  ========================================================= */
.contacts{
  background: #0b0c10;
  color: rgba(255,255,255,.92);
  padding: clamp(28px, 4vw, 56px) 0 clamp(120px, 10vw, 180px);
}

.contacts__container{
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  max-width:100%;
  overflow:hidden;
}

.contacts__header{
  margin-bottom: 18px;
  padding-left: 24px;
}

.contacts__title{
  font-size: 40px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 8px;
}

.contacts__subtitle{
  margin: 0;
  color: rgba(255,255,255,.62);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
}

.contacts__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
  max-width:100%;
  width:100%;
}

/* CARD */
.card{
  position: relative;
  border-radius: 20px;
  background: linear-gradient(180deg, #242424 0%, #171717 100%);
  border: 1px solid #353535;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  overflow: hidden;
  max-width:100%;
  width:100%;
}

/* subtle inner glow + vignette */
.card::before{
  display: none;
}

.card--form{ 
  padding: 22px 22px 32px;
  min-height: 437px;
  max-height: none;
  display: flex;
  flex-direction: column;
}
.form{ 
  position: relative; 
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.field{ margin-bottom: 12px; }

.label{
  display: block;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: rgba(255,255,255,.75);
  margin: 0 0 6px;
}

.input, .textarea{
  width: 100%;
  max-width:100%;
  border-radius: 14px;
  padding: 12px 14px;
  color: #B0B0B0;
  background: #0F0F0F;
  border: 1px solid rgba(255,255,255,.08);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition: border-color .2s ease, box-shadow .2s ease;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  box-sizing:border-box;
}

.textarea{
  resize: none;
  min-height: 100px;
}

.input::placeholder, .textarea::placeholder{
  color: rgba(255,255,255,.35);
}

.input:focus, .textarea:focus{
  border-color: rgba(155,120,255,.45);
  box-shadow: 0 0 0 6px rgba(155,120,255,.12), inset 0 1px 0 rgba(255,255,255,.06);
}

.form__bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
}

.form__note{
  margin: 0;
  color: rgba(255,255,255,.45);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.35;
  max-width: 520px;
}

/* BUTTON в формі контактів */
.contacts .btn{
  border: 0;
  cursor: pointer;
  padding: 12px 18px;
  min-width: 140px;
  border-radius: 12px;
  color: white;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .01em;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #49008C, #7F1FD8);
  box-shadow: 0 16px 30px rgba(73,0,140,.35);
  transition: transform .15s ease, filter .15s ease;
  white-space: nowrap;
}

.contacts .btn:hover{ transform: translateY(-1px); filter: brightness(1.05); }
.contacts .btn:active{ transform: translateY(0px) scale(.99); }

/* RIGHT VISUAL */
.card--visual{
  min-height: 404px;
  max-height: 404px;
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  overflow: visible;
  border-radius: 0;
}

.card--visual::before{
  display: none;
}

.visual__img{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  object-fit: contain;
  z-index: 0;
}

.visual__brand{
  position: relative;
  z-index: 1;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.visual__brand-title{
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(90deg, #5b2bd3, #9b78ff, rgba(255,255,255,.92));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.visual__brand-subtitle{
  font-size: 14px;
  color: rgba(255,255,255,.70);
  font-weight: 400;
}

.form__info{
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.form__info-item{
  padding: 8px 0;
}

.info-label{
  font-size: 13px;
  color: rgba(255,255,255,.55);
  margin-bottom: 6px;
}

.info-value{
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

/* RESPONSIVE */
@media (max-width: 920px){
  .contacts__grid{
    grid-template-columns: 1fr;
  }
  .card--visual{
    min-height: 340px;
  }
}

@media (max-width: 520px){
  .card--form{ padding: 16px; }
  .form__bottom{
    flex-direction: column;
    align-items: stretch;
  }
  .contacts .btn{ width: 100%; }
}

/* =========================================================
   ФУТЕР 
   ========================================================= */
.footer{
  padding: 32px 0 40px; 
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer__inner{
  display: flex; 
  align-items: flex-start; 
  justify-content: space-between;
  gap: 48px;
  padding-left: 24px;
}

.footer__left{
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.footer__brand{
  font-size: 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: rgba(255,255,255,.85);
}

.footer__info{
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: rgba(255,255,255,.75);
}

.footer__links{
  display: flex; 
  flex-direction: column; 
  gap: 8px;
  font-size: 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

.footer__links a{
  color: rgba(255,255,255,.75);
  transition: color .2s ease;
}

.footer__links a:hover{
  color: #fff;
}
/* =========================================================
  АДАПТИВНІ МЕДІА-ЗАПИТИ 
  ========================================================= */
@media (max-width: 1220px){
  .hero__panel{padding:50px 48px 44px}
  .hero__panel::after{width:60%; background-position:center right}
  .hero__content{gap:36px}
  .hero__card{width:300px}
  
  /* Contacts container */
  .contacts__container{max-width:1200px}
}

/* iPad and tablets (768px - 1024px) */
@media (min-width: 721px) and (max-width: 1024px){
  .hero__panel::after{
    width:100%; 
    opacity:.88;
    background-size: auto 125%;
    background-position: 95% center;
  }
}

@media (max-width: 1020px){
  .grid{grid-template-columns: repeat(2, 1fr)}
  .hero__panel{padding:48px 40px}
  .hero__panel::after{
    width:100%; 
    opacity:.85;
    background-size: auto 120%;
    background-position: 90% center;
  }
  .hero__content{flex-direction:column; align-items:flex-start}
  .hero__right{width:100%}
  .hero__card{width:100%; max-width:360px; margin-top:24px}
  .hero__metrics{flex-direction:column}
  .metric{width:100%}
  .contact{grid-template-columns: 1fr}
  
  /* About section - reduce padding */
  .about__bar{margin-left:-40px}
  .about__content{padding-left:24px; font-size:18px}
  
  /* Contacts - stack on tablets */
  .contacts__container{max-width:900px}
  .contacts__grid{
    grid-template-columns: 1fr;
    gap:20px;
  }
  .card--form{height:auto; min-height:auto}
  .card--visual{height:300px}
}

@media (max-width: 720px){
  /* Prevent horizontal overflow */
  html, body{overflow-x:hidden; max-width:100vw}
  .container{width:calc(100% - 24px); max-width:100%}
  
  /* Header mobile optimization */
  .header{height:64px; padding:0 12px; max-width:100%}
  .logo{font-size:18px}
  .header__actions{gap:12px}
  .btn--primary{width:auto; padding:0 16px; font-size:14px}
  .btn--ghost{display:none} /* Hide on mobile */
  .lang__btn{padding:8px 10px}
  
  .nav{
    position: fixed;
    top: 64px; left: 12px; right: 12px;
    display:none;
    flex-direction:column;
    padding:12px;
    gap:10px;
    border-radius: 18px;
    border:1px solid var(--line);
    background: rgba(18,19,24,.92);
    box-shadow: var(--shadow);
    z-index:60;
    max-width:calc(100vw - 24px);
  }
  .nav.open{display:flex}
  .burger{display:inline-block}
  .form__row{grid-template-columns: 1fr}
  .hero{padding:48px 0}
  .hero__panel{width:calc(100% - 24px); padding:36px 20px 32px; border-radius:28px; max-width:100%}
  .hero__panel::after{width:100%; opacity:.35; filter:blur(0.5px)}
  .hero__actions{flex-direction:column; align-items:stretch; gap:12px}
  .hero__actions .btn{width:100%; max-width:100%}
  .h1{font-size:clamp(32px, 8vw, 40px)}
  .lead{font-size:clamp(14px, 4vw, 16px)}
  .hero__metrics{gap:12px}
  .metric{padding:16px 18px}
  .metric__value{font-size:26px}
  .hero__card{margin-top:28px; width:100%; padding:22px 22px 24px; max-width:100%}
  
  /* Services grid - 1 column on mobile */
  .grid{grid-template-columns: 1fr; gap:16px; width:100%}
  .svc{padding:20px; max-width:100%}
  .h3{font-size:20px}
  
  /* About section */
  .about{
    padding:32px 0; 
    width:100%; 
    margin-left:0; 
    margin-right:0; 
    left:0; 
    right:0;
    max-width:100vw;
  }
  .about__inner{padding:0 12px; max-width:100%}
  .about__bar{display:none} /* Hide purple bar on mobile */
  .about__content{padding-left:12px; padding-right:12px; font-size:16px; max-width:100%}
  .about__content p{margin-bottom:16px; word-wrap:break-word}
  
  /* Contacts section */
  .contacts{padding:32px 0 48px; max-width:100vw; overflow:hidden}
  .contacts__container{max-width:100%; padding:0 12px; width:calc(100% - 24px)}
  .contacts__title{font-size:clamp(28px, 7vw, 32px); padding-left:0}
  .contacts__subtitle{font-size:14px; padding-left:0}
  .contacts__grid{
    grid-template-columns: 1fr;
    gap:16px;
    max-width:100%;
  }
  
  /* Contact form adjustments */
  .card--form{
    height:auto;
    min-height:auto;
    padding:24px 20px 32px;
    max-width:100%;
    width:100%;
  }
  .field{margin-bottom:14px; max-width:100%}
  .label{font-size:14px; margin-bottom:6px}
  .input, .textarea{
    font-size:16px;
    padding:12px 14px;
    max-width:100%;
    width:100%;
  }
  .textarea{min-height:100px}
  .form__note{font-size:12px; line-height:1.4}
  .form__bottom{
    flex-wrap: wrap;
    gap: 10px;
  }
  .form__bottom .btn{
    width:100%;
    max-width:100%;
    padding:14px 24px;
    font-size:15px;
  }
  
  /* Visual card - hide or reduce on mobile */
  .card--visual{
    height:240px;
    overflow:hidden;
    max-width:100%;
    width:100%;
  }
  .visual__img{
    width:100%;
    height:100%;
    object-fit:cover;
    max-width:100%;
  }footer__inner{
    flex-direction:column;
    gap:24px;
    padding-left:16px;
    align-items:flex-start;
  }
  .footer__left{gap:16px}
  .footer__brand{font-size:18px}
  .footer__info{font-size:16px}
  .footer__links{
    flex-direction:column;
    gap:12px;
    margin-left:0;
    font-size:20px;
  }
  
  /* Section headers */
  .section__head{padding-left:0}
  .h2{font-size:32px}
}

/* Extra small phones */
@media (max-width: 480px){
  html, body{max-width:100vw; overflow-x:hidden}
  .container{width:calc(100% - 20px); max-width:100%}
  .h1{font-size:clamp(28px, 7vw, 32px)}
  .h2{font-size:clamp(24px, 6vw, 28px)}
  .h3{font-size:18px}
  .lead{font-size:15px}
  
  .header{padding:0 10px; max-width:100%}
  .logo{font-size:16px}
  .btn--primary{padding:0 12px; font-size:13px; max-width:fit-content}
  
  .hero__panel{padding:24px 16px; width:calc(100% - 20px); max-width:100%}
  .metric__value{font-size:22px}
  
  .svc{padding:16px; max-width:100%}
  .svc__list{font-size:14px}
  
  .about{width:100%; margin-left:0; margin-right:0; left:0; right:0}
  .about__inner{padding:0 10px}
  .about__content{padding:24px 12px; max-width:100%}
  
  .contacts{padding:24px 0 40px; max-width:100vw}
  .contacts__container{width:calc(100% - 20px); padding:0 10px; max-width:100%}
  .contacts__title{font-size:clamp(24px, 6vw, 28px)}
  .card--form{padding:20px 14px 28px; max-width:100%}
  .card--visual{height:180px; max-width:100%}
  
  .footer{max-width:100vw; overflow:hidden}
  .footer__inner{padding-left:10px; max-width:100%}
  .footer__brand{font-size:16px}
  .footer__info{font-size:15px}
  .footer__links{font-size:18px}
}

/* iPhone SE (375px), iPhone 12 mini (360px) */
@media (max-width: 390px){
  html, body{max-width:100vw; overflow-x:hidden}
  .container{width:calc(100% - 16px); padding:0 8px; max-width:100%}
  .header{padding:0 8px}
  .hero__panel{padding:20px 12px; width:calc(100% - 16px)}
  .contacts__container{width:calc(100% - 16px); padding:0 8px}
  .card--form{padding:18px 12px 26px}
  .about__content{padding:20px 10px}
  .footer__inner{padding-left:8px}
}

/* iPhone XR, 11 (414px), iPhone 14 Pro Max (430px) */
@media (min-width: 391px) and (max-width: 430px){
  html, body{max-width:100vw; overflow-x:hidden}
  .container{max-width:100%}
  .hero__panel{max-width:100%}
  .contacts__container{max-width:100%}
  .about{max-width:100vw}
}

/* Landscape orientation optimization */
@media (max-height: 600px) and (orientation: landscape) {
  html, body{overflow-x:hidden; max-width:100vw}
  .hero__panel{padding:20px 16px}
  .hero__metrics{flex-direction:row; flex-wrap:wrap}
  .metric{width:auto; flex:1; min-width:150px}
  .about__content{padding:24px 16px}
}