.intro {
  position: relative;
  min-height: 100svh;
  overflow: visible;
}

/* ============================================================
   NextWeb Hotels — тема поверх bamboo.
   Тільки токени, шрифти, логотип і шапка. Механіку/скрол не чіпає.
   Підключається ПІСЛЯ index.css і page-home.css.
   ============================================================ */

/* ---------- шрифти ---------- */
@font-face {
  font-family: "Bw Gradual";
  src: url(/fonts/bw-gradual-bold.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Bw Gradual";
  src: url(/fonts/bw-gradual-extrabold.woff2) format("woff2");
  font-weight: 800 900;
  font-display: swap;
}
@font-face {
  font-family: "Aeonik";
  src: url(/fonts/aeonik-regular.woff2) format("woff2");
  font-weight: 100 450;
  font-display: swap;
}
@font-face {
  /* medium перекриває і 600 — тема просить semibold, окремого файлу немає */
  font-family: "Aeonik";
  src: url(/fonts/aeonik-medium.woff2) format("woff2");
  font-weight: 451 700;
  font-display: swap;
}
/* дисплейний шрифт для H1 — має кирилицю, на відміну від Bw Gradual */
@font-face {
  font-family: "Unbounded";
  src: url(/fonts/unbounded-700-cyrillic.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  src: url(/fonts/unbounded-700-latin.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Unbounded";
  src: url(/fonts/unbounded-900-cyrillic.woff2) format("woff2");
  font-weight: 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  src: url(/fonts/unbounded-900-latin.woff2) format("woff2");
  font-weight: 900;
  font-display: swap;
  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;
}

@font-face {
  font-family: "NW Mono";
  src: url(/fonts/JetBrainsMono-Medium.woff2) format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* ---------- токени: глибокий контраст, нейтральна палітра ---------- */
:root {
  --base-1: #f2f1ed;  /* акцент = світло, а не колір: контент лишається головним */
  --base-2: #f4f3f1;  /* основний текст */
  --base-3: #f4f3f1d9;
  --base-4: #f4f3f1a6;
  --base-5: #f4f3f166;
  --base-6: #f4f3f133;
  --base-7: #f4f3f114;
  --base-8: #8b8b93;  /* приглушений */
  --base-9: #8b8b9333;
  --base-10: #08080a; /* головне полотно */
  --base-11: #101014; /* картки */
  --base-12: #0c0c0f; /* футер */
  --base-13: #101014; /* тема малює цим «білі» картки — робимо їх поверхнею */
  --base-14: #22222a; /* лінії */

  /* Кнопка: золотисто-бронзовий tone */
  --base-button: #C8A96A;

  --background-main: var(--base-10);
  --background-card: var(--base-11);
  --background-footer: var(--base-12);
}

/* Bw Gradual / Aeonik НЕ мають кирилиці — тому лишаємо тему на Mulish + Inter,
   а Bw Gradual вмикаємо лише там, де текст латинський (логотипи). */
h1,
h2,
h3,
.mulish-50,
.mulish-32 {
  letter-spacing: -0.02em;
}

html,
body {
  background: var(--background-main);
  color: var(--base-2);
}

section {
  background: var(--background-main);
}

/* ---------- кнопки ---------- */
/* базовий текст кнопки в темі = --base-white, який тепер поверхня, тож задаємо явно */
.btn {
  --color: var(--base-2);
  --icon: var(--base-2);
}
.btn-orange {
  --color: #0B0B0E;
  --icon: #0B0B0E;
  background: var(--base-button) !important;
}
.btn-orange:hover {
  background: #a88845 !important;
}
.btn-orange .btn-text span {
  color: #0B0B0E !important;
}
.btn-orange:hover .btn-text span {
  color: #0B0B0E !important;
}
.btn-orange:disabled {
  background: var(--base-6);
}

/* контурна (вторинна) дія */
.btn-outline {
  --color: var(--base-2);
  --icon: var(--base-2);
  background: transparent;
  border: 1px solid var(--base-6);
  transition: all 0.3s ease-in-out;
}
.btn-outline:hover {
  border-color: var(--base-4);
  background: var(--base-7);
}

/* ---------- шапка: плашка замість суцільної смуги ---------- */
.header {
  background: transparent;
}
.header .container {
  background: #0c0c11b8;
  backdrop-filter: blur(16px);
  border: 1px solid var(--base-7);
  border-radius: 999px;
  transition: background 0.45s ease-in-out, border-color 0.45s ease-in-out;
}
.header .container:hover {
  border-color: var(--base-6);
}
.header-menu a {
  transition: color 0.3s ease-in-out;
}
.header-menu a:hover {
  color: var(--base-2);
}
.header-menu-tell a,
.header-menu-email a {
  color: var(--base-4);
}
.header-menu-tell a:hover,
.header-menu-email a:hover {
  color: var(--base-2);
}
.header .social-icons .icon .mask {
  background: var(--base-4);
  transition: background 0.3s ease-in-out;
}
.header .social-icons .icon:hover .mask {
  background: var(--base-2);
}
.header-burger span {
  background: var(--base-2);
}

/* Взрівнювання та стилізація логотипа у шапці */
.header-logo {
  display: flex;
  align-items: center;
  align-self: center;
  height: 100%;
}

.main-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  width: auto;
  height: auto;
  overflow: visible;
  transition: transform 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}

.main-logo:hover {
  transform: translateY(-1px) scale(1.03);
  opacity: 0.95;
}

.nw-logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
  color: var(--base-2);
}

.nw-logo__top {
  font-family: "Unbounded", var(--mulish), sans-serif;
  font-weight: 800;
  font-size: clamp(16px, 1.2vw, 21px);
  letter-spacing: 0.12em;
  color: var(--base-2);
  transition: color 0.3s ease;
}

.nw-logo__sub {
  margin-top: 3px;
  font-family: "NW Mono", monospace;
  font-weight: 600;
  font-size: clamp(10px, 0.68vw, 12px); /* Збільшений HOTELS */
  letter-spacing: 0.38em;
  color: var(--base-4); /* Акцентний колір бренду */
  transition: color 0.3s ease;
}

.main-logo:hover .nw-logo__top {
  color: var(--base-4);
}

.main-logo:hover .nw-logo__sub {
  color: var(--base-2);
}

/* Просторний верхній відступ для 2-го екрана (.projects) */
section.projects#cases, .projects {
  margin-top: -6px !important;
  padding-top: clamp(40px, 6vh, 80px) !important;
  position: relative !important;
  z-index: 10 !important;
  background: #08080a !important;
  border: none !important;
  outline: none !important;
  box-shadow: 0 -25px 50px rgba(0,0,0,0.95);
}

.projects .project-info {
  justify-content: flex-start !important;
  padding-top: 10px;
}

.projects .project-info-bottom {
  margin-top: -6px !important;
}

/* ---------- великий напис у першому екрані ---------- */
.nw-hero-word {
  width: 100%;
  font-family: "Bw Gradual", var(--mulish), sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.88;
  color: var(--base-2);
}
.nw-hero-word span {
  display: block;
  font-size: clamp(2.6rem, 12.4vw, 13rem);
  letter-spacing: -0.02em;
}
.nw-hero-word .sub {
  font-family: "NW Mono", monospace;
  font-weight: 500;
  font-size: clamp(0.7rem, 2.05vw, 2.1rem);
  letter-spacing: 0.52em;
  color: var(--base-4);
  margin-top: clamp(6px, 1vw, 18px);
}

/* ---------- попап і поля форми (у темі колір зашитий літералом) ---------- */
.popup-callback .popup-content,
.popup-success .popup-content,
.popup-plan .popup-content,
.popup-content {
  background: var(--base-11);
  border: 1px solid var(--base-7);
  border-radius: 20px;
  color: var(--base-2);
}
.back-close {
  background: #08080ad9;
}
input:not([type="submit"]),
textarea,
select {
  color: var(--base-2);
  background: var(--base-10);
  border-color: var(--base-6);
  transition: border-color 0.3s ease-in-out;
}
input::placeholder,
textarea::placeholder {
  color: var(--base-5);
}
input:not([type="submit"]):focus,
textarea:focus {
  border-color: var(--base-4);
  outline: none;
}

/* ============================================================
   Перший екран: відео на всю площу + три кроки появи по скролу
   ============================================================ */
.intro {
  position: relative;
  min-height: 100svh;
  overflow: visible;
}

.intro .container {
  height: 100svh;
  min-height: 100svh;
  aspect-ratio: auto;
  padding-block: clamp(100px, 10vh, 150px) clamp(40px, 6vh, 90px);
}

.intro .container-kivi {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  z-index: 0;
  pointer-events: none;
}
.intro .container-kivi video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* скрим під текст: щільніший там, де лежить заголовок і кнопки */
/* скрим під текст: щільніший там, де лежить заголовок і кнопки, із 100% розмиттям та переходом знизу */
/* скрим під текст: щільніший там, де лежить заголовок і кнопки */
/* Скрим під текст з 11-ступеневим згладженим кривим градієнтом (усуває ступеневість) */
.nw-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 75% at 50% 42%, rgba(8, 8, 10, 0.65) 0%, rgba(8, 8, 10, 0.25) 55%, transparent 78%),
    linear-gradient(
      180deg,
      rgba(8, 8, 10, 0.50) 0%,
      rgba(8, 8, 10, 0.20) 25%,
      rgba(8, 8, 10, 0.10) 45%,
      rgba(8, 8, 10, 0.25) 65%,
      rgba(8, 8, 10, 0.50) 80%,
      rgba(8, 8, 10, 0.80) 92%,
      #08080a 100%
    );
  pointer-events: none;
  z-index: 1;
}

/* Шовково-плавне затемнення з 11 кубічними стопами та дизеринг-шумом для виключення бандингу */
.nw-hero__fade-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 8, 10, 0) 0%,
    rgba(8, 8, 10, 0.03) 15%,
    rgba(8, 8, 10, 0.08) 28%,
    rgba(8, 8, 10, 0.16) 40%,
    rgba(8, 8, 10, 0.27) 50%,
    rgba(8, 8, 10, 0.40) 60%,
    rgba(8, 8, 10, 0.55) 70%,
    rgba(8, 8, 10, 0.70) 80%,
    rgba(8, 8, 10, 0.85) 90%,
    rgba(8, 8, 10, 0.95) 96%,
    #08080a 100%
  );
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

/* Дижеринг-шум проти піксельної ступеневості мониторів (Color Banding Prevention) */
.nw-hero__fade-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Безшовне накладання 2-го екрану (усуває 1px лінію та бліки) */
.projects {
  position: relative;
  z-index: 10;
  margin-top: -4px !important;
  background: #08080a !important;
  box-shadow: 0 -20px 40px #08080a;
}

/* М'який розмитий розграничитель між 1-м та 2-м екранами (усуває лінію та бліки) */


/* Оформлення шрифтів та кнопок в оригінальній лівій колонці */
.intro .container-content {
  grid-column: 2/-2; /* Збільшуємо ширину контейнера для можливості центрування контенту */
  display: grid;
  grid-template-areas: "content-stack";
  align-items: flex-end;
  justify-items: stretch;
}

.intro .container-content > * {
  grid-area: content-stack;
}

.intro .container-content .hero-title-wrap {
  grid-area: content-stack;
  width: 100%;
  text-align: left;
  justify-self: flex-start;
  will-change: transform, opacity;
}

.intro .container-content .hero-title {
  font-family: "Unbounded", var(--mulish), sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--base-2);
  font-size: clamp(28px, 3.2vw, 56px); /* Збільшений заголовок */
  text-shadow: 0 2px 30px rgba(8, 8, 10, 0.4);
  margin: 0;
  max-width: 16ch;
  will-change: transform, opacity;
}
.intro .container-content .hero-title .accent-title {
  color: var(--base-4);
}

.intro .container-content .hero-reveal {
  display: flex;
  flex-direction: column;
  align-items: center; /* Центруємо підзаголовок та кнопки */
  text-align: center;
  justify-self: center; /* Розміщуємо блок строго по центру екрана */
  width: 100%;
  max-width: 680px;
  margin-bottom: clamp(60px, 14vh, 180px); /* Піднімаємо блок на 1/3 висоти екрана від низу */
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.intro .container-content .hero-sub {
  font-family: "Aeonik", var(--inter-r), sans-serif;
  font-weight: 400;
  font-size: clamp(17px, 1.25vw, 22px); /* Збільшений та більш читабельний підзаголовок */
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--base-2);
  margin-top: 0;
  margin-bottom: clamp(24px, 2.5vw, 36px);
  text-shadow: 0 4px 30px rgba(8, 8, 10, 0.5);
  text-wrap: balance;
  will-change: transform, opacity;
}

.intro .container-content .hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: clamp(12px, 1vw, 18px);
  opacity: 1;
  pointer-events: all;
  will-change: transform, opacity;
}


@media (max-width: 640px) {
  .intro .container-content .hero-cta {
    /* Center the buttons row, auto width — do NOT stretch to full screen */
    justify-content: center !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .intro .container-content .hero-cta .btn {
    /* Pill shape, centered, auto width based on content */
    width: auto !important;
    min-width: 140px !important;
    max-width: 220px !important;
    border-radius: 100px !important;
    justify-content: center !important;
    padding: 12px 22px !important;
  }
}

/* ============================================================ */
/* SCREEN 1: MOBILE HERO RESPONSIVE OPTIMIZATION                */
/* ============================================================ */
@media (max-width: 768px) {
  .intro .container-content {
    padding-inline: 16px !important;
  }

  .hero-contact-badge {
    font-size: 13px !important;
    padding: 8px 18px !important;
    margin-bottom: 12px !important;
  }

  .intro .container-content .hero-title {
    font-size: clamp(24px, 6.5vw, 36px) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.015em !important;
  }

  .intro .container-content .hero-reveal {
    margin-bottom: clamp(32px, 8vh, 80px) !important;
    padding-inline: 8px !important;
  }

  .intro .container-content .hero-sub {
    font-size: clamp(15px, 4vw, 18px) !important;
    line-height: 1.5 !important;
    margin-bottom: 24px !important;
  }
}

/* ============================================================ */
/* SCREEN 2: MOBILE PROJECTS / CASES RESPONSIVE OPTIMIZATION    */
/* ============================================================ */
@media (max-width: 768px) {
  .projects .container-text {
    flex-direction: column !important;
    gap: 16px !important;
    align-items: center !important;
    margin-bottom: 32px !important;
  }
  .projects .container-text > div {
    text-align: center !important;
  }
  .projects .nw-all-cases-btn {
    position: static !important;
    transform: none !important;
    width: fit-content !important;
    margin-top: 8px !important;
  }
  .projects .project {
    padding-inline: 12px !important;
  }
  .projects .project-info-bottom .navs {
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 24px !important;
  }
}

/* ============================================================ */
/* SCREEN 4: MOBILE TESTIMONIALS & PARTNERS RESPONSIVE          */
/* ============================================================ */
@media (max-width: 768px) {
  .testimonials-partners {
    padding-top: 48px !important;
    padding-bottom: 40px !important;
  }

  .nw-section4-header-group {
    padding-inline: 16px !important;
  }

  .testimonials-partners .section-title {
    font-size: clamp(26px, 6.5vw, 36px) !important;
    line-height: 1.2 !important;
  }

  .testimonials-partners .section-subtitle {
    font-size: clamp(14px, 3.8vw, 17px) !important;
    line-height: 1.5 !important;
  }
}

/* ============================================================ */
/* SCREEN 5: AUDIT FORM & SLIM FOOTER MOBILE RESPONSIVE         */
/* ============================================================ */
@media (max-width: 900px) {
  .nw-cta-section > div > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  .nw-cta-section {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
}

@media (max-width: 768px) {
  .footer, .nw-slim-footer {
    width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
    height: auto !important;
    min-height: 52px !important;
    padding: 12px 16px !important;
    border-radius: 24px !important;
  }
  .footer .container, .nw-slim-footer-inner {
    flex-direction: column !important;
    gap: 8px !important;
    text-align: center !important;
  }
}





/* Декоративна стрілочка прокрутки з анімацією */
.intro .container-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  grid-area: 1/-2/1/-1;
  align-self: center; /* Розміщення по центру висоти екрана */
  justify-self: flex-end; /* Вирівнювання стрілки в правий кут */
  margin-bottom: 0;
  animation: bounceArrow 1.6s infinite ease-in-out;
}

@keyframes bounceArrow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}


/* ---------- дрібне: світлі растрові підкладки теми на темному ---------- */
.home-note-trans-bg-inner img,
.home-expert-trans-bg-inner img,
.home-team-trans-bg-inner img {
  filter: brightness(0.32) saturate(0.7);
}

/* ============================================================
   Модальні вікна та відео-прев'ю (3D-тур)
   ============================================================ */

/* Бейдж 3D-туру на відео-слайді */
.nw-video-slide {
  position: relative;
  cursor: pointer;
}
.nw-video-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nw-3d-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(8, 8, 10, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid var(--base-6);
  border-radius: 30px;
  padding: 8px 16px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--base-2);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
  transition: transform 0.3s ease, background 0.3s ease;
}
.nw-video-slide:hover .nw-3d-badge {
  transform: scale(1.05);
  background: var(--base-4);
  color: #08080a;
}
.nw-3d-badge .play-icon {
  font-size: 11px;
}

/* Модальні вікна (Pop-up) — Строгі гострі рамки як на оригіналі */
.nw-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.nw-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.nw-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 10, 0.88);
  backdrop-filter: blur(12px);
}
.nw-modal__container {
  position: relative;
  z-index: 2;
  background: #111115;
  border: 1px solid var(--base-6);
  border-radius: 0px !important; /* Гострі кути */
  padding: 32px;
  width: 90%;
  max-width: 980px;
  color: var(--base-2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s ease;
}
.nw-modal.is-open .nw-modal__container {
  transform: translateY(0) scale(1);
}
.nw-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 0px !important; /* Гострі кути */
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.nw-modal__close:hover {
  background: var(--base-4);
  border-color: var(--base-4);
  color: #000;
}
.nw-modal__header {
  margin-bottom: 24px;
}
.nw-modal__header h3,
.nw-modal__header h4 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(20px, 2vw, 28px);
  margin: 0 0 6px 0;
}
.nw-modal__tag {
  font-size: 13px;
  color: var(--base-4);
  font-family: "Inter", sans-serif;
}

/* Кастомний відеоплеєр — Гострі рамки */
.nw-modal__video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 0px !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: visible;
  background: #000;
}
.nw-modal__video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nw-modal__controls {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.88) 100%);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.nw-control-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}
.nw-progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 0px !important;
  overflow: visible;
  cursor: pointer;
}
.nw-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--base-4);
  transition: width 0.1s linear;
}

/* Сетка каталога в модалке (5 кейсів) — Гострі рамки */
.nw-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 6px;
}
.nw-catalog-card {
  background: #16161c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0px !important; /* Гострі кути */
  padding: 14px;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.nw-catalog-card:hover {
  transform: translateY(-4px);
  border-color: var(--base-4);
}
.nw-catalog-card .thumb {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 0px !important; /* Гострі кути */
  overflow: visible;
  margin-bottom: 12px;
}
.nw-catalog-card .thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nw-catalog-card .thumb .badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(8, 8, 10, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 0px !important; /* Гострі кути */
}
.nw-catalog-card h5 {
  font-family: "Unbounded", sans-serif;
  font-size: 15px;
  margin: 0 0 6px 0;
  color: #fff;
}
.nw-catalog-card p {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: #a0a0ab;
  margin: 0;
}

/* Стилізація інтерактивної карти об'єктів у модалці */
.nw-map-item {
  background: #18181f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.nw-map-item:hover,
.nw-map-item.is-active {
  background: #20202b;
  border-color: var(--base-4);
}

/* Custom Leaflet Dark Popup */
.leaflet-popup-content-wrapper {
  background: #111115 !important;
  color: #fff !important;
  border: 1px solid var(--base-4) !important;
  border-radius: 0px !important;
  padding: 4px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8) !important;
}
.leaflet-popup-tip {
  background: #111115 !important;
  border: 1px solid var(--base-4) !important;
}
.nw-map-popup-card {
  width: 220px;
  color: #fff;
  font-family: "Inter", sans-serif;
}
.nw-map-popup-card h5 {
  font-family: "Unbounded", sans-serif;
  font-size: 13px;
  margin: 6px 0 2px 0;
  color: #fff;
}
.nw-map-popup-card p {
  font-size: 11px;
  color: #a0a0ab;
  margin: 0 0 10px 0;
}
.nw-map-popup-btn {
  width: 100%;
  padding: 8px 12px;
  background: var(--base-4);
  border: none;
  color: #08080a;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.2s ease;
}
.nw-map-popup-btn:hover {
  opacity: 0.9;
}

/* (Old conflicting Section 3 rules removed) */

.testimonial-text {
  color: #d0d0dc !important;
  font-family: "Inter", sans-serif !important;
  font-size: clamp(15px, 1.2vw, 18px) !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* CONTROLS */
.testimonials-controls {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 32px !important;
}

.testimonials-arrows {
  display: flex !important;
  gap: 12px !important;
}

.testimonials-btn {
  background: #1e1e26 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  font-size: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease !important;
}

.testimonials-btn:hover {
  background: #ff5c2b !important;
  border-color: #ff5c2b !important;
  color: #ffffff !important;
}

/* PARTNERS INFINITE MARQUEE */
.partners-container {
  width: 100% !important;
  overflow: visible !important;
  margin-top: 40px !important;
}

.partners-header {
  text-align: center !important;
  margin-bottom: 24px !important;
}

.partners-title {
  color: #666677 !important;
  font-family: "Mulish", sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
}

.marquee-wrapper {
  width: 100% !important;
  overflow: visible !important;
  position: relative !important;
  /* removed */
  -webkit-/* removed */
}

.marquee-track {
  display: flex !important;
  gap: clamp(32px, 5vw, 64px) !important;
  width: max-content !important;
  animation: marqueeScroll 25s linear infinite !important;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused !important;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-logo {
  padding: 16px 28px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  font-family: "Unbounded", sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  color: #a0a0b0 !important;
  white-space: nowrap !important;
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease !important;
}

.partner-logo:hover {
/* SECTION 4 & 5: TESTIMONIALS & PARTNERS */
section.testimonials-partners,
#testimonials-partners,
.testimonials-partners {
  display: block !important;
  position: relative !important;
  z-index: 10 !important;
  background: #f5f5f7 !important;
  color: #0c0c10 !important;
  padding-block: clamp(90px, 10vw, 150px) !important;
  width: 100% !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

/* SECTION 3: BENEFITS & STATS BENTO CARDS (LUXURY DARK THEME & HIGH CONTRAST) */
/* ==========================================================================
   SECTION 3: BENEFITS & STATS BENTO CARDS (FINAL PERFECT SIDE-BY-SIDE)
   ========================================================================== */






@media (max-width: 991px) {
}




/* Active card side-by-side split: 56% text column (with 24px right padding), 40% photo */




/* Stat numbers: Container Query fluid scaling with guaranteed 24px safety margin before photo */




/* Hide small corner icons and closed-info badges - keep only big corner svg icon */



/* ==========================================================================
   SECTION 4 DEEP BLACK CARD BACKGROUND RESTORATION
   ========================================================================== */
.testimonials-partners .tp-card-inner,
.testimonials-partners .tp-card-center-main .tp-card-inner {
  background: #0c0c10 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.5) !important;
}

.testimonials-partners .tp-quote-text {
  color: #ffffff !important;
}

.testimonials-partners .tp-user-name {
  color: #ffffff !important;
}

.testimonials-partners .tp-user-role {
  color: #b0b0d0 !important;
}


/* ==========================================================================
   HEADER NAVIGATION BAR: ONLY LOGO, SCREEN LINKS, AND CTA BUTTON
   ========================================================================== */
.header .header-wrapper .container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
}

.header-menu {
  display: flex !important;
  align-items: center !important;
  margin: 0 auto !important;
}

.header-menu ul {
  display: flex !important;
  gap: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.header-menu ul li a {
  color: #ffffff !important;
  text-decoration: none !important;
  font-family: 'Mulish', sans-serif !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  letter-spacing: 0.02em !important;
  transition: opacity 0.3s ease, color 0.3s ease !important;
}

.header-menu ul li a:hover {
  opacity: 0.75 !important;
  color: #ffffff !important;
}

.header-menu-tell,
.header-menu-email,
.header-menu-soc {
  display: none !important;
}




/* ENFORCE EXACT POPOVER POSITIONING OVER BRAND NAME */
  position: relative !important;
  display: inline-block !important;
  cursor: pointer !important;
  overflow: visible !important;
}

  z-index: 99999999 !important;
}

  position: absolute !important;
  bottom: 36px !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(8px) !important;
  width: 290px !important;
  background: #0c0c10 !important;
  color: #ffffff !important;
  padding: 16px 20px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease !important;
  z-index: 99999999 !important;
  box-sizing: border-box !important;
  text-align: left !important;
  display: block !important;
}

  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) !important;
}


/* Повне усунення будь-яких 1px ліній, рамок та бліків між 1-м і 2-м екранами */
.intro, .intro .container-kivi, .intro .container-kivi video, .pin-spacer {
  border: none !important;
  outline: none !important;
  background: #08080a;
}

/* ============================================================ */
/* NEXTWEB: btn-orange = gold button, text always BLACK         */
/* ============================================================ */
.btn-orange,
.btn-orange .btn-text,
.btn-orange .btn-text span {
  color: #0B0B0E !important;
}
.btn-orange {
  background: #C8A96A !important;
}
.btn-orange:hover {
  background: #a88845 !important;
}
.btn-orange:hover .btn-text,
.btn-orange:hover .btn-text span {
  color: #0B0B0E !important;
}


/* ============================================================ */
/* NEXTWEB: Section 3 benefit cards                             */
/* ============================================================ */

/* Card info column stays within bounds */
.benefits .swiper-item-info {
  min-width: 0 !important;
  overflow: hidden !important;
}

/* Corner icon — DELETED entirely (SVG element) */
.benefits .card-corner-icon,
.card-corner-icon {
  display: none !important;
}

/* Corner bracket pseudo-element — DELETED from swiper-item-info::before and mobile slide::before */
.benefits .swiper-item-info::before,
.benefits .swiper-item-info:before,
.benefits .swiper-slide::before,
.benefits .swiper-slide:before {
  display: none !important;
  content: none !important;
}


/* COLLAPSED card stat number — BIG (no photo visible, number fills space) */
.benefits .swiper-slide .swiper-item .count {
  font-size: clamp(48px, 6vw, 96px) !important;
  line-height: 1.0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: clip !important;
  transition: font-size 0.4s ease-in-out !important;
}

/* ACTIVE (open) card stat number — smaller to fit text column beside photo */
.benefits .swiper-slide.active .swiper-item .count {
  font-size: clamp(28px, 2.8vw, 48px) !important;
}

/* Image wrapper */
.benefits .swiper-item-thumb {
  flex-shrink: 0 !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

/* Card row */
.benefits .swiper-item {
  align-items: flex-end !important;
  overflow: hidden !important;
}

/* Active card info column constraints */
@media (min-width: 1025px) {
  .benefits .swiper-slide.active .swiper-item-info {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 52% !important;
  }
  .benefits .swiper-slide.active .swiper-item-thumb {
    flex: 0 0 auto !important;
    min-width: 0 !important;
  }
}

/* ============================================================ */
/* HERO CONTACT BADGE ("Зв'язатися з нами →")                   */
/* ============================================================ */
.hero-contact-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 24px !important;
  border-radius: 100px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  font-family: 'Mulish', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  margin-bottom: 16px !important;
  cursor: pointer !important;
  width: fit-content !important;
  pointer-events: auto !important;
}

.hero-contact-badge:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
}

.hero-contact-badge svg {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.hero-contact-badge:hover svg {
  transform: translateX(5px) !important;
}


/* ==============================================================
   COMPREHENSIVE MOBILE RESPONSIVE OPTIMIZATION — ALL 5 SCREENS
   Target: max-width 1024px (tablet + phone), max-width 768px (phone only)
   CRITICAL: Does NOT affect desktop (min-width: 1025px+)
   ============================================================== */

/* ---------------------------------------------------------------
   SCREEN 1: HERO / INTRO — Mobile
   --------------------------------------------------------------- */
@media (max-width: 1024px) {
  /* Hero video — disable preload on mobile via JS flag, use poster */
  #hero-video {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  /* Intro container fits viewport exactly */
  .intro {
    min-height: 100svh;
    overflow: hidden;
  }

  /* Container-kivi fills whole screen */
  .intro .container-kivi {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }

  /* Container-content at bottom of screen */
  .intro .container-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 0 16px 40px !important;
    gap: 0 !important;
  }

  /* Hero title wrap */
  .hero-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }

  /* Badge */
  .hero-contact-badge {
    font-size: 13px !important;
    padding: 8px 16px !important;
    margin-bottom: 10px !important;
  }

  /* Title */
  .intro .container-content .hero-title {
    font-size: clamp(26px, 6vw, 40px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.02em !important;
    max-width: 100% !important;
  }

  /* Second stage reveal — centered */
  .intro .container-content .hero-reveal {
    padding-inline: 0 !important;
    margin-bottom: clamp(30px, 6vh, 60px) !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  /* Sub */
  .intro .container-content .hero-sub {
    font-size: clamp(15px, 3.8vw, 18px) !important;
    line-height: 1.55 !important;
  }

  /* CTA buttons */
  .intro .container-content .hero-cta {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  /* Scroll arrow hidden on mobile */
  .intro .container-arrow {
    display: none !important;
  }
}

/* ---------------------------------------------------------------
   SCREEN 2: CASES / PROJECTS — Mobile
   --------------------------------------------------------------- */
@media (max-width: 1024px) {
  /* Container spacing */
  #cases .container {
    padding-inline: 12px !important;
  }

  /* Section header row on mobile */
  #cases .container-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding-inline: 0 !important;
    margin-bottom: 28px !important;
  }

  /* Project card padding */
  .projects .project .container {
    padding-inline: 0 !important;
    gap: 16px !important;
  }

  /* Case video fit */
  .projects .project .swiper-slide video {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  /* Info section spacing */
  .projects .project-info {
    padding-inline: 0 !important;
  }

  /* 3D badge positioning */
  .nw-3d-badge {
    top: 10px !important;
    left: 10px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
  }
}

/* ---------------------------------------------------------------
   SCREEN 3: BENEFITS — Mobile
   --------------------------------------------------------------- */
@media (max-width: 1024px) {
  /* Benefits section */
  .benefits {
    padding-bottom: 60px !important;
    overflow: hidden !important;
  }

  /* Top container */
  .benefits .container.top {
    padding-bottom: 0 !important;
  }

  /* Benefits title */
  .benefits .container-text {
    font-size: clamp(20px, 5.5vw, 32px) !important;
    line-height: 1.2 !important;
    padding-inline: 8px !important;
    margin-top: 40px !important;
    text-align: center !important;
  }

  /* Mobile card number sizing */
  .benefits .swiper-slide .count {
    font-size: clamp(40px, 10vw, 64px) !important;
    line-height: 1.0 !important;
  }

  /* Swiper cards — hide overflow but allow left-right swipe */
  .benefits .swiper {
    padding-inline: 12px !important;
    overflow: visible !important;
  }

  /* Each card */
  .benefits .swiper-slide {
    min-height: 200px !important;
    padding: 40px 14px 14px !important;
  }

  /* Image inside card */
  .benefits .swiper-item .image-wrapper {
    aspect-ratio: 16/9 !important;
    width: 100% !important;
  }
}

/* ---------------------------------------------------------------
   SCREEN 4: TESTIMONIALS & PARTNERS — Mobile
   --------------------------------------------------------------- */
@media (max-width: 1024px) {
  #testimonials-partners {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }

  /* Header group */
  .nw-section4-header-group {
    padding-inline: 12px !important;
  }

  /* Section number badge */
  .nw-section4-header-group .nw-section-num {
    font-size: 12px !important;
  }

  /* Section title */
  #testimonials-partners h2 {
    font-size: clamp(24px, 6vw, 36px) !important;
    line-height: 1.2 !important;
  }

  /* Section subtitle */
  #testimonials-partners .nw-section-subtitle {
    font-size: clamp(14px, 3.8vw, 17px) !important;
    line-height: 1.5 !important;
  }

  /* Testimonial cards */
  .nw-testimonials-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding-inline: 12px !important;
  }

  /* Partners logo grid */
  .nw-partners-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px 16px !important;
    padding-inline: 16px !important;
  }
}

/* ---------------------------------------------------------------
   SCREEN 5: LEAD CAPTURE FORM — Mobile
   --------------------------------------------------------------- */
@media (max-width: 1024px) {
  #lead-capture {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }

  .nw-cta-section {
    padding-inline: 12px !important;
  }

  /* Form layout — single column on mobile */
  .nw-cta-section > div,
  .nw-cta-section .nw-cta-inner {
    flex-direction: column !important;
    gap: 40px !important;
  }

  /* Form title */
  .nw-cta-section h2 {
    font-size: clamp(26px, 6.5vw, 36px) !important;
    line-height: 1.2 !important;
  }

  /* Form inputs */
  .nw-cta-section input,
  .nw-cta-section textarea {
    font-size: 16px !important; /* Prevents iOS zoom on input focus */
  }

  /* Form submit button */
  .nw-cta-section button[type="submit"],
  .nw-cta-section .btn-submit {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ---------------------------------------------------------------
   FOOTER — Mobile
   --------------------------------------------------------------- */
@media (max-width: 1024px) {
  .site-footer,
  footer.site-footer {
    padding-bottom: 16px !important;
  }

  .nw-slim-footer {
    width: calc(100% - 24px) !important;
    max-width: 500px !important;
    margin: 0 auto 16px !important;
    padding: 10px 16px !important;
    border-radius: 24px !important;
    height: auto !important;
  }

  .nw-slim-footer-inner {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 4px 12px !important;
    font-size: 12px !important;
  }
}

/* ---------------------------------------------------------------
   NAVIGATION — Mobile fade nav overlay
   --------------------------------------------------------------- */
@media (max-width: 1024px) {
  #nw-fade-nav-overlay {
    z-index: 9999 !important;
  }
}

/* ---------------------------------------------------------------
   HEADER — Mobile
   --------------------------------------------------------------- */
@media (max-width: 1024px) {
  /* Header height consistent */
  header,
  .nw-header {
    height: 56px !important;
  }

  /* Logo size on mobile */
  .site-header__logo,
  .nw-header-logo {
    font-size: 14px !important;
  }

  /* CTA button in header */
  header .btn-orange,
  .nw-header .btn-orange {
    padding: 8px 14px !important;
    font-size: 13px !important;
  }
}

/* ---------------------------------------------------------------
   GLOBAL MOBILE PERFORMANCE OPTIMIZATIONS
   --------------------------------------------------------------- */
@media (max-width: 1024px) {
  /* Reduce parallax intensity on mobile — smoother experience */
  [data-parallax],
  [data-speed] {
    will-change: auto !important;
  }

  /* Reduce animation scale on mobile for performance */
  .pin-spacer {
    background: transparent !important;
  }

  /* Ensure no horizontal overflow on any screen */
  body {
    overflow-x: hidden !important;
  }

  /* All sections avoid horizontal overflow */
  section {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
}

/* ---------------------------------------------------------------
   PHONE-ONLY (max 430px) — Extra small screen tweaks
   --------------------------------------------------------------- */
@media (max-width: 430px) {
  .intro .container-content .hero-title {
    font-size: clamp(22px, 7vw, 30px) !important;
  }

  .intro .container-content .hero-cta {
    flex-direction: column !important;
    width: 100% !important;
  }

  .intro .container-content .hero-cta .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .benefits .swiper-slide {
    width: clamp(220px, 78vw, 280px) !important;
  }
}


/* ==============================================================
   ПОВНА МОБІЛЬНА АДАПТАЦІЯ — ВСІ ЕКРАНИ + ПЕРЕХОДИ
   Версія 2.0: Кожен екран як на десктопі, але адаптований
   ============================================================== */


/* ---------------------------------------------------------------
   SCREEN 2: PROJECTS / CASES — MOBILE VERTICAL LAYOUT
   На десктопі: slider ЗЛІВА, info СПРАВА (flex-row)
   На мобільному: slider ЗВЕРХУ на всю ширину, info ЗНИЗУ
   --------------------------------------------------------------- */
@media (max-width: 1024px) {

  /* Section header: номер + кнопка — стовпець, вирівняно */
  .projects #cases > .container > *:first-child,
  .projects .container-text {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
    padding-inline: 16px !important;
  }

  /* Section title on mobile */
  .projects .container-text h2,
  .projects h2.mulish-64 {
    font-size: clamp(28px, 7vw, 40px) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.025em !important;
  }

  /* "Дивитись всі" button — full width on mobile */
  #open-catalog-btn {
    width: 100% !important;
    justify-content: space-between !important;
  }

  /* CRITICAL: Each project card — vertical layout on mobile */
  .projects .project {
    flex-direction: column !important;
    height: auto !important;
    min-height: auto !important;
    padding: 0 !important;
    gap: 0 !important;
    overflow: hidden !important;
  }

  /* Project slider — full viewport width, 16:9 aspect */
  .projects .project-slider {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    height: 56vw !important;
    min-height: 220px !important;
    max-height: 380px !important;
  }

  /* Swiper inside project slider */
  .projects .project-slider .swiper {
    width: 100% !important;
    height: 100% !important;
  }

  .projects .project-slider .swiper-slide {
    height: 100% !important;
  }

  /* Project info — full width, padding, below slider */
  .projects .project-info {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 24px 16px 32px !important;
    box-sizing: border-box !important;
  }

  /* Project number + title */
  .projects .project .num {
    font-size: 11px !important;
    letter-spacing: 0.1em !important;
  }

  .projects .project h3 {
    font-size: clamp(22px, 5.5vw, 30px) !important;
    line-height: 1.15 !important;
    margin: 4px 0 8px !important;
  }

  .projects .project p {
    font-size: clamp(13px, 3.5vw, 16px) !important;
  }

  /* Location row */
  .projects .project .location {
    margin-top: 8px !important;
    gap: 6px !important;
  }

  /* Action buttons — row, wrap */
  .projects .project .navs {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 16px !important;
  }

  .projects .project .navs .btn {
    flex: 1 1 auto !important;
    min-width: 120px !important;
    justify-content: center !important;
    font-size: 13px !important;
    padding: 10px 16px !important;
  }

  /* Scale-down stack effect: project cards still pin and shrink — good on mobile */
  /* Pin spacer shrinks appropriately since height is auto */
}

/* ---------------------------------------------------------------
   SCREEN 3: BENEFITS — MOBILE SWIPE CARDS
   На десктопі: активна картка розкривається, hover-ефект
   На мобільному: Swiper горизонтальний скрол, peek-ефект
   --------------------------------------------------------------- */
@media (max-width: 1024px) {

  /* Section background and layout */
  .benefits {
    padding-top: 0 !important;
    overflow: hidden !important;
  }

  /* Top container — decorative images hidden on mobile */
  .benefits .container.top {
    display: none !important;
  }

  /* Section header — centered, full width */
  .benefits > .container-text,
  .benefits .container-text {
    padding: 60px 16px 32px !important;
    text-align: center !important;
  }

  .benefits h2.mulish-80 {
    font-size: clamp(26px, 7vw, 40px) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.025em !important;
    text-align: center !important;
  }

  /* Demo video button — hidden on mobile (decorative only) */
  .benefits .container-video {
    display: none !important;
  }

  /* Bottom swiper container — show edge of next slide */
  .benefits .container.bottom {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  /* Swiper: show peek of next card */
  .benefits .swiper {
    overflow: visible !important;
    padding-left: 16px !important;
    padding-right: 0 !important;
  }

  /* Swiper-wrapper clip */
  .benefits .container.bottom {
    overflow: hidden !important;
    padding-bottom: 32px !important;
  }

  /* Each slide card */
  .benefits .swiper-slide {
    width: calc(100vw - 56px) !important;
    max-width: 360px !important;
    height: auto !important;
    min-height: 260px !important;
    padding: 28px 20px 24px !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
  }

  /* Active slide — expanded visible */
  .benefits .swiper-slide.active {
    border-color: rgba(255,255,255,0.2) !important;
  }

  /* Card item — column layout on mobile */
  .benefits .swiper-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
    height: 100% !important;
  }

  /* Card info */
  .benefits .swiper-item-info {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }

  /* Title text */
  .benefits .swiper-item .title {
    font-size: clamp(13px, 3.5vw, 16px) !important;
    color: rgba(255,255,255,0.55) !important;
    margin-bottom: 6px !important;
  }

  /* Stat number — big and bold */
  .benefits .swiper-slide .count {
    font-size: clamp(48px, 12vw, 72px) !important;
    line-height: 1.0 !important;
    font-weight: 900 !important;
  }

  /* Description text */
  .benefits .swiper-item .description {
    font-size: clamp(13px, 3.5vw, 15px) !important;
    line-height: 1.55 !important;
    color: rgba(255,255,255,0.5) !important;
    margin-top: 10px !important;
  }

  /* Thumb image — below info, full width card bottom */
  .benefits .swiper-item-thumb {
    display: none !important;
  }

  /* Swiper pagination dots on mobile */
  .benefits .swiper-pagination {
    display: flex !important;
    justify-content: center !important;
    gap: 6px !important;
    margin-top: 20px !important;
    padding-inline: 16px !important;
  }
}

/* ---------------------------------------------------------------
   SCREEN 4: TESTIMONIALS & PARTNERS — MOBILE SINGLE COLUMN
   На десктопі: 3-колонковий стаггерований паралакс-грід
   На мобільному: 1 колонка, картки зверху вниз, легкий fade-in
   --------------------------------------------------------------- */
@media (max-width: 1024px) {

  /* Section padding */
  .testimonials-partners {
    padding-top: 60px !important;
    padding-bottom: 48px !important;
    overflow: hidden !important;
  }

  /* Container spacing */
  .testimonials-partners .container {
    gap: 32px !important;
    padding-inline: 16px !important;
  }

  /* Header group */
  .nw-section4-header-group {
    padding-inline: 0 !important;
    gap: 10px !important;
  }

  /* Section number */
  .nw-section4-header-group .container-index,
  .testimonials-partners [style*="letter-spacing: 0.12em"] {
    font-size: 12px !important;
    letter-spacing: 0.1em !important;
  }

  /* Section title */
  .testimonials-partners h2.section-title,
  .testimonials-partners h2 {
    font-size: clamp(26px, 6.5vw, 36px) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
  }

  /* Subtitle */
  .testimonials-partners .section-subtitle,
  .testimonials-partners p {
    font-size: clamp(14px, 3.8vw, 17px) !important;
    line-height: 1.55 !important;
  }

  /* CRITICAL: Testimonials mobile layout — ONLY main Review card + switcher ABOVE card */
  .tp-asymmetric-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
    align-items: center !important;
  }

  /* HIDE side photo card and side result card on mobile as requested */
  .tp-card-left,
  .nw-parallax-left,
  .tp-card-right,
  .nw-parallax-right {
    display: none !important;
  }

  /* Disable LERP parallax transforms on mobile */
  .nw-parallax-center {
    transform: translate3d(0, 0, 0) !important;
    opacity: 1 !important;
    will-change: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Main Review Card container on mobile */
  .tp-card-center-main {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 16px !important;
    align-items: center !important;
  }

  /* Review Switcher (01, 02, 03, 04 buttons) — ABOVE Review Card horizontally */
  .tp-vertical-tabs {
    order: -1 !important; /* Move above review card! */
    flex-direction: row !important;
    width: 100% !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-bottom: 8px !important;
  }

  .tp-tab-btn {
    width: 46px !important;
    height: 46px !important;
    font-size: 14px !important;
    border-radius: 4px !important;
  }

  /* Review card inner */
  .tp-card-inner {
    width: 100% !important;
    min-height: auto !important;
    padding: 28px 20px !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
  }

  /* Author header inside review card */
  .tp-card-header {
    gap: 16px !important;
    padding-bottom: 16px !important;
  }

  .tp-avatar-box,
  .tp-avatar-img {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    flex: 0 0 56px !important;
  }

  .tp-user-name {
    font-size: 20px !important;
    margin-bottom: 4px !important;
  }

  .tp-user-role {
    font-size: 13px !important;
  }

  .tp-quote-text {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

  /* Marquee / partners row */
  .tp-marquee-track {
    /* Marquee stays as-is — it's meant to scroll infinitely */
  }

  /* Partners section heading */
  .testimonials-partners [style*="font-size: clamp(28px"] {
    font-size: clamp(20px, 5.5vw, 28px) !important;
  }
}

/* ---------------------------------------------------------------
   SCREEN 5: LEAD CAPTURE FORM — MOBILE SINGLE COLUMN
   На десктопі: grid 1fr 1fr (heading ліворуч, форма праворуч)
   На мобільному: heading зверху, форма знизу
   --------------------------------------------------------------- */
@media (max-width: 1024px) {

  /* Section itself */
  .nw-cta-section {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }

  /* TASK 3 FIX: Hide ambient vertical decorative line cutting through form labels */
  #lead-capture [aria-hidden="true"] div[style*="width:1px"],
  .nw-cta-section [aria-hidden="true"] div[style*="width:1px"] {
    display: none !important;
  }

  /* Outer container */
  .nw-cta-section > div {
    padding-inline: 16px !important;
    box-sizing: border-box !important;
  }

  /* CRITICAL: Switch from 1fr 1fr grid → single column */
  .nw-cta-grid,
  .nw-cta-section > div > div[style*="grid-template-columns"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 36px !important;
    width: 100% !important;
  }

  /* Left — heading + contacts */
  .nw-cta-left {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Left heading */
  .nw-cta-left h2 {
    font-size: clamp(28px, 7vw, 40px) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.025em !important;
    margin-bottom: 16px !important;
  }

  /* Left paragraph */
  .nw-cta-left p {
    font-size: clamp(14px, 3.8vw, 17px) !important;
    max-width: 100% !important;
  }

  /* Contact pills — row, wrap on mobile */
  .nw-cta-left > div[style*="flex-wrap"] {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .nw-cta-left a[href^="tel"],
  .nw-cta-left a[href^="https://t.me"] {
    width: 100% !important;
    justify-content: center !important;
    padding: 14px 20px !important;
    font-size: 15px !important;
  }

  /* Right — form */
  .nw-cta-right {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Form inputs — no iOS zoom (font-size >= 16px) */
  .nw-cta-right input,
  .nw-cta-right textarea,
  .nw-cta-section input,
  .nw-cta-section textarea {
    font-size: 16px !important;
    padding: 14px 0 !important;
  }

  /* Submit button — full width */
  .nw-cta-right .btn,
  .nw-cta-section .btn[type="submit"] {
    width: 100% !important;
    justify-content: center !important;
    padding: 16px 24px !important;
    font-size: 16px !important;
    margin-top: 8px !important;
  }
}

/* ---------------------------------------------------------------
   GLOBAL: SECTION TRANSITION — SCREEN-TO-SCREEN FEEL
   На десктопі: staggered parallax reveal (GSAP ScrollTrigger)
   На мобільному: intersection observer fade-up замість паралакс
   --------------------------------------------------------------- */
@media (max-width: 1024px) {

  /* Section index numbers (002, 003, 004, 005) */
  .container-index,
  [style*="letter-spacing:0.12em"],
  [style*="letter-spacing: 0.12em"] {
    font-size: 11px !important;
    letter-spacing: 0.12em !important;
    color: rgba(255,255,255,0.35) !important;
    margin-bottom: 12px !important;
  }

  /* Every section h2 — adaptive sizing */
  section h2 {
    font-size: clamp(24px, 6vw, 38px) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
  }

  /* Every section p subtitle */
  section > div > p,
  section .section-subtitle {
    font-size: clamp(14px, 3.8vw, 17px) !important;
    line-height: 1.55 !important;
  }

  /* Pin spacer — ensure no extra background color */
  .pin-spacer {
    background: transparent !important;
  }

  /* Prevent any section from overflowing viewport width */
  section,
  .projects,
  .benefits,
  .testimonials-partners,
  .nw-cta-section {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  /* Smooth scrolling for fade nav transitions */
  html {
    scroll-behavior: auto !important; /* Handled by GSAP/JS */
  }

  /* Parallax data-speed elements — disable on mobile for performance */
  [data-speed]:not(video) {
    transform: none !important;
    will-change: auto !important;
  }

  [data-parallax] {
    transform: none !important;
    will-change: auto !important;
  }
}

/* ---------------------------------------------------------------
   MOBILE ANIMATION: SIMPLE FADE-UP ENTRANCE PER SECTION
   Replaces heavy GSAP scrub parallax on mobile with light CSS
   --------------------------------------------------------------- */
@media (max-width: 1024px) {
  /* These classes are added via IntersectionObserver in mobile-animations.js */
  .nw-mob-fade-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nw-mob-fade-up.nw-mob-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Staggered delays for children */
  .nw-mob-fade-up:nth-child(2) { transition-delay: 0.1s; }
  .nw-mob-fade-up:nth-child(3) { transition-delay: 0.2s; }
  .nw-mob-fade-up:nth-child(4) { transition-delay: 0.3s; }
}

/* ---------------------------------------------------------------
   FOOTER — MOBILE
   --------------------------------------------------------------- */
@media (max-width: 1024px) {
  .site-footer {
    padding-bottom: 12px !important;
  }

  .nw-slim-footer {
    width: calc(100% - 24px) !important;
    max-width: 480px !important;
    margin: 0 auto 12px !important;
    padding: 10px 16px !important;
    border-radius: 22px !important;
    height: auto !important;
  }

  .nw-slim-footer-inner {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 4px 10px !important;
    font-size: 11px !important;
  }
}

/* ---------------------------------------------------------------
   MOBILE-ONLY DRAWER ELEMENTS — STRICTLY HIDE ON DESKTOP (> 1024px)
   --------------------------------------------------------------- */
.nw-menu-close-btn,
.nw-drawer-footer,
.header-burger {
  display: none !important;
}

/* ---------------------------------------------------------------
   HEADER & HERO — MOBILE (TASKS 1 & 2: NO TOP BLACK BAR, LOGO SCROLLS, FIXED BURGER, DRAWER WITH CLOSE BTN & FOOTER)
   --------------------------------------------------------------- */
@media (max-width: 1024px) {
  /* Header bar container: transparent, position absolute so Logo scrolls away with page */
  .header {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 60px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 100 !important;
  }

  .header-wrapper,
  .header .container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding-block: 10px !important;
    padding-inline: 16px !important;
    height: 60px !important;
    position: relative !important;
  }

  /* Logo: centered horizontally, scrolls away naturally with header */
  .header-logo {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    z-index: 10 !important;
  }

  .header-logo .main-logo {
    width: auto !important;
    align-items: center !important;
  }

  /* Hide header-wrapper logo, burger and header-cta on mobile (replaced by nw-mobile-top-bar) */
  .header-wrapper .header-logo,
  .header-wrapper .header-burger,
  .header-cta {
    display: none !important;
  }

  /* Burger button: FIXED on top LEFT corner of screen */
  .header-burger {
    position: fixed !important;
    left: 16px !important;
    right: auto !important;
    top: 14px !important;
    z-index: 99999 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    width: 38px !important;
    height: 38px !important;
    background: rgba(18, 18, 26, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    padding: 6px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
    transition: opacity 0.25s ease, visibility 0.25s ease !important;
  }

  /* FIX 1: hide burger when drawer is open — only X remains visible */
  .header.opened .header-burger {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* FIX: when drawer open, disable pointer-events on the whole header-cta container
     so it doesn't block clicks on the X button underneath */
  .header.opened .header-cta {
    pointer-events: none !important;
  }

  .header-burger span {
    background: #ffffff !important;
    width: 16px !important;
    height: 2px !important;
    display: block !important;
    transition: transform 0.3s ease, opacity 0.3s ease !important;
  }

  /* Opened Mobile Drawer Menu */
  .header-menu {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: rgba(8, 8, 12, 0.98) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 70px 24px 36px !important;
    z-index: 99990 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
  }

  .header.opened .header-menu {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* FIX 2: Close (X) button — inside drawer, positioned relative to drawer overlay */
  .nw-menu-close-btn {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    /* z-index lower than header-cta so it stays INSIDE drawer, not overlapping burger */
    z-index: 99991 !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
  }

  .nw-menu-close-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: scale(1.08) !important;
  }

  .header-menu ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
    margin: auto 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .header-menu ul a {
    font-family: 'Mulish', sans-serif !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    letter-spacing: -0.01em !important;
    transition: color 0.2s ease !important;
  }

  .header-menu ul a:hover {
    color: #C8A96A !important;
  }

  /* Bottom Drawer Footer (CTA button + contacts) */
  .nw-drawer-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
    padding-top: 20px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  }

  /* FIX 4: Drawer CTA button — white/transparent outline, no color change on hover, text-anim only */
  .nw-drawer-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 320px !important;
    padding: 14px 24px !important;
    border-radius: 100px !important;
    font-family: 'Mulish', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    background: transparent !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border: 1.5px solid rgba(255, 255, 255, 0.55) !important;
    box-shadow: none !important;
    transition: border-color 0.25s ease !important;
  }

  .nw-drawer-btn:hover,
  .nw-drawer-btn:active {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
    color: #ffffff !important;
  }

  .nw-drawer-contacts {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    font-family: 'Mulish', sans-serif !important;
    font-size: 13.5px !important;
    /* FIX 3: extra bottom padding so Telegram doesn't touch the bottom edge */
    padding-bottom: 8px !important;
  }

  .nw-drawer-phone,
  .nw-drawer-tg {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
  }

  /* MOBILE HERO: video stays fixed behind content, content scrolls over it */

  /* Override the global 'section { display:flex }' so block layout works */
  section.intro {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    /* 300svh = 3 screens of scroll space for 3 animation stages */
    height: 300svh !important;
    min-height: 300svh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  /* Video layer: truly fixed to viewport — never moves */
  .intro .container-kivi {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100svh !important;
    z-index: 1 !important;
    pointer-events: none !important;
  }

  .intro .container-kivi video {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
  }

  /* Content wrapper: fixed so it always stays in view during hero scroll */
  .intro .container.md-space {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100svh !important;
    min-height: 100svh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding-top: 70px !important;
    padding-bottom: 24px !important;
    padding-inline: 18px !important;
    box-sizing: border-box !important;
    z-index: 2 !important;
    pointer-events: none !important;
    grid-template-columns: unset !important;
  }

  /* Re-enable pointer events on actual content */
  .intro .container.md-space > * {
    pointer-events: auto !important;
  }

  /* Hide the arrow element on mobile */
  .intro .container-arrow {
    display: none !important;
  }

  /* Projects section slides over the fixed video naturally */
  .projects {
    position: relative !important;
    z-index: 3 !important;
  }

  /* FIX 2: Hero CTA buttons — pill shape, centered, 1-row side-by-side on all screens */
  .intro .container-content .hero-cta {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .intro .container-content .hero-cta .btn {
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    border-radius: 100px !important;
    justify-content: center !important;
    padding: 12px 8px !important;
    font-size: clamp(10px, 3.2vw, 13px) !important;
    white-space: nowrap !important;
  }
}

/* ---------------------------------------------------------------
   MOBILE HERO CTA: hide icon decorations, text-only buttons
   --------------------------------------------------------------- */
@media (max-width: 1024px) {
  /* Remove corner arrow icons from CTA buttons in hero — text only */
  .intro .container-content .hero-cta .btn-icon {
    display: none !important;
  }
  /* Reset right padding that was added to make room for the icon */
  .intro .container-content .hero-cta .btn:has(.def),
  .intro .container-content .hero-cta .btn:has(.line) {
    padding-right: 22px !important;
  }
}

/* ---------------------------------------------------------------
   EXTRA-SMALL PHONES: max-width 390px
   --------------------------------------------------------------- */
@media (max-width: 390px) {
  /* Hero title */
  .intro .container-content .hero-title {
    font-size: clamp(20px, 7.5vw, 26px) !important;
  }

  /* Project slider height */
  .projects .project-slider {
    height: 52vw !important;
    min-height: 200px !important;
  }

  /* Benefits card */
  .benefits .swiper-slide {
    width: calc(100vw - 40px) !important;
  }

  /* Benefits stat number */
  .benefits .swiper-slide .count {
    font-size: clamp(42px, 11vw, 58px) !important;
  }

  /* CTA heading */
  .nw-cta-left h2 {
    font-size: clamp(24px, 8vw, 32px) !important;
  }
}

@media (max-width: 430px) {
  .intro .container-content .hero-title {
    font-size: clamp(22px, 7vw, 30px) !important;
  }

  /* Pill buttons side-by-side — STRICT 1 ROW ON ALL PHONES */
  .intro .container-content .hero-cta {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .intro .container-content .hero-cta .btn {
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    border-radius: 100px !important;
    justify-content: center !important;
    padding: 12px 8px !important;
    font-size: clamp(10px, 3.2vw, 13px) !important;
    white-space: nowrap !important;
  }

  .benefits .swiper-slide {
    width: clamp(220px, 78vw, 280px) !important;
  }
}


/* ---------------------------------------------------------------
   FIX: .btn-border.map — replace orange mask-icon with clean location pin
   --------------------------------------------------------------- */

/* Override the orange/weird arrow mask icon inside "На карті" buttons */
.btn-border.map .btn-icon.mask.def {
  /* Replace the arrow icon mask with a location pin SVG */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E") 50% / 70% no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E") 50% / 70% no-repeat !important;
  /* Keep it positioned like a normal inline icon, not absolute corner */
  position: static !important;
  top: unset !important;
  right: unset !important;
  width: 16px !important;
  height: 16px !important;
  aspect-ratio: 1 !important;
  opacity: 0.75 !important;
  background: var(--base-100) !important;
}

/* ---------------------------------------------------------------
   PREMIUM PRELOADER OVERLAY
   --------------------------------------------------------------- */
#nw-preloader {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: #08080c !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s ease !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#nw-preloader.is-loaded {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.nw-preloader__content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 28px !important;
  text-align: center !important;
}

.nw-preloader__logo {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 2px !important;
}

.nw-preloader__logo-top {
  font-family: 'Unbounded', sans-serif !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: 0.22em !important;
  line-height: 1 !important;
}

.nw-preloader__logo-sub {
  font-family: 'Mulish', sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #C8A96A !important;
  letter-spacing: 0.35em !important;
  line-height: 1 !important;
  margin-right: -0.35em !important;
}

.nw-preloader__counter-wrap {
  font-family: 'Unbounded', sans-serif !important;
  font-size: clamp(40px, 9vw, 64px) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.02em !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: baseline !important;
  justify-content: center !important;
}

.nw-preloader__percent {
  font-size: 0.55em !important;
  color: #C8A96A !important;
  margin-left: 2px !important;
}

.nw-preloader__bar-bg {
  width: 160px !important;
  height: 3px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  position: relative !important;
}

.nw-preloader__bar-fill {
  width: 0% !important;
  height: 100% !important;
  background: linear-gradient(90deg, #C8A96A 0%, #E5C887 100%) !important;
  border-radius: 4px !important;
  box-shadow: 0 0 12px rgba(200, 169, 106, 0.5) !important;
}

/* ---------------------------------------------------------------
   MOBILE TOP BAR (PERFECT HORIZONTAL FLEX ALIGNMENT)
   --------------------------------------------------------------- */
.nw-mobile-top-bar {
  display: none !important;
}

@media (max-width: 1024px) {
  .nw-mobile-top-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 56px !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    z-index: 99999 !important;
    background: transparent !important;
    pointer-events: none !important;
  }

  .nw-mobile-top-bar > * {
    pointer-events: auto !important;
  }

  .nw-mobile-top-bar .header-burger {
    position: static !important;
    margin: 0 !important;
    width: 38px !important;
    height: 38px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    background: rgba(18, 18, 26, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    padding: 6px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
    flex-shrink: 0 !important;
    transition: opacity 0.25s ease, visibility 0.25s ease !important;
  }

  .nw-mobile-top-bar .header-logo {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .nw-mobile-top-bar .nw-mobile-cta-btn {
    position: static !important;
    margin: 0 !important;
    height: 38px !important;
    padding: 0 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(18, 18, 26, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-radius: 100px !important;
    font-family: 'Unbounded', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: 0.05em !important;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s ease, opacity 0.25s ease, background 0.2s ease !important;
  }

  .nw-mobile-top-bar .nw-mobile-cta-btn:active {
    transform: scale(0.95) !important;
    background: rgba(255, 255, 255, 0.2) !important;
  }

  .header.opened .nw-mobile-top-bar .header-burger,
  .header.opened .nw-mobile-top-bar .nw-mobile-cta-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* ---------------------------------------------------------------
   FLOATING "BACK TO TOP" (ВГОРУ) BUTTON
   --------------------------------------------------------------- */
.nw-back-to-top {
  position: fixed !important;
  bottom: 24px !important;
  right: 20px !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: rgba(18, 18, 26, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 99995 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(16px) !important;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease !important;
}

.nw-back-to-top.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.nw-back-to-top:hover {
  background: rgba(200, 169, 106, 0.35) !important;
  border-color: #C8A96A !important;
}

/* ---------------------------------------------------------------
   BRAND LOGOS IN SECTION 4 (EQUALIZED VISUAL SCALE TO MATCH MOONROCK)
   --------------------------------------------------------------- */
.tp-marquee-tunnel-strip {
  height: 110px !important;
  display: flex !important;
  align-items: center !important;
}

@media (max-width: 768px) {
  .tp-marquee-tunnel-strip > div[style*="linear-gradient"] {
    width: 36px !important;
  }
}

.tp-marquee-track {
  display: flex !important;
  align-items: center !important;
  gap: 60px !important;
  flex-shrink: 0 !important;
}

.tp-brand-item {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  height: 70px !important;
  padding: 0 10px !important;
}

.tp-brand-logo-img {
  width: auto !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  filter: brightness(0) opacity(0.88) !important;
  transition: filter 0.3s ease, transform 0.3s ease !important;
}

/* Target Moonrock — reference optical size */
.tp-brand-logo-img[src*="moonrock"] {
  height: 48px !important;
  max-height: 50px !important;
  max-width: 210px !important;
}

/* Target Ribas — scaled up to match Moonrock optical weight */
.tp-brand-logo-img[src*="ribas"] {
  height: 62px !important;
  max-height: 66px !important;
  max-width: 220px !important;
  transform: scale(1.25) !important;
}

/* Target Redling — scaled up to match Moonrock optical weight */
.tp-brand-logo-img[src*="redling"] {
  height: 54px !important;
  max-height: 58px !important;
  max-width: 210px !important;
  transform: scale(1.15) !important;
}

@media (max-width: 640px) {
  .tp-marquee-track {
    gap: 40px !important;
  }
  .tp-brand-logo-img[src*="moonrock"] {
    height: 38px !important;
    max-height: 42px !important;
    max-width: 170px !important;
  }
  .tp-brand-logo-img[src*="ribas"] {
    height: 48px !important;
    max-height: 52px !important;
    max-width: 180px !important;
    transform: scale(1.22) !important;
  }
  .tp-brand-logo-img[src*="redling"] {
    height: 44px !important;
    max-height: 48px !important;
    max-width: 170px !important;
    transform: scale(1.12) !important;
  }
}

.tp-brand-item:hover .tp-brand-logo-img {
  filter: brightness(0) opacity(1) !important;
}

/* ---------------------------------------------------------------
   DESKTOP: LANGUAGE SWITCHER (replaces CTA in header)
   --------------------------------------------------------------- */
.nw-lang-switcher-wrap {
  display: flex !important;
  align-items: center !important;
}

.nw-lang-switcher {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 100px !important;
  padding: 4px 6px !important;
  backdrop-filter: blur(12px) !important;
}

.nw-lang-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 5px 12px !important;
  border-radius: 100px !important;
  border: none !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.5) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  cursor: pointer !important;
  transition: all 0.22s ease !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  outline: none !important;
}

.nw-lang-btn:hover {
  color: rgba(255, 255, 255, 0.85) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.nw-lang-btn.is-active {
  color: #0d0d0d !important;
  background: #f2f1ed !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25) !important;
}

/* ---------------------------------------------------------------
   HERO: "Отримати розрахунок" pill badge (replaces "Зв'язатися з нами")
   --------------------------------------------------------------- */
.nw-hero-cta-pill {
  background: rgba(242, 241, 237, 0.12) !important;
  border: 1px solid rgba(242, 241, 237, 0.28) !important;
  backdrop-filter: blur(12px) !important;
  color: rgba(242, 241, 237, 0.9) !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease !important;
}

.nw-hero-cta-pill:hover {
  background: rgba(242, 241, 237, 0.22) !important;
  border-color: rgba(242, 241, 237, 0.5) !important;
  color: #ffffff !important;
}

.nw-hero-cta-pill svg {
  transition: transform 0.22s ease !important;
}

.nw-hero-cta-pill:hover svg {
  transform: translateX(3px) !important;
}

/* ---------------------------------------------------------------
   FOOTER: "Зв'язатися з нами" button in footer
   --------------------------------------------------------------- */
.nw-site-footer {
  background: transparent !important;
  padding-block: 18px !important;
  width: 100% !important;
  z-index: 20 !important;
  position: relative !important;
}

.nw-footer-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 24px !important;
  flex-wrap: wrap !important;
}

.nw-footer-copy {
  color: rgba(255, 255, 255, 0.4) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.nw-footer-cta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 7px 18px !important;
  border-radius: 100px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.65) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all 0.22s ease !important;
  backdrop-filter: blur(8px) !important;
}

.nw-footer-cta:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: rgba(255, 255, 255, 0.95) !important;
}

/* ---------------------------------------------------------------
   MOBILE DRAWER: Language switcher inside burger menu
   --------------------------------------------------------------- */
.nw-drawer-lang {
  display: none !important;
}

@media (width <= 1024px) {
  .nw-drawer-lang {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 16px 24px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    margin-top: auto !important;
  }

  .nw-drawer-lang .nw-lang-btn {
    padding: 8px 18px !important;
    font-size: 13px !important;
    flex: 1 !important;
    max-width: 80px !important;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    border-radius: 100px !important;
  }

  .nw-drawer-lang .nw-lang-btn.is-active {
    color: #0d0d0d !important;
    background: #f2f1ed !important;
    border-color: transparent !important;
  }

  /* Hide desktop lang switcher on mobile */
  .nw-lang-switcher-wrap .nw-lang-switcher {
    display: none !important;
  }
}

@media (width > 1024px) {
  /* Hide mobile drawer lang on desktop */
  .nw-drawer-lang {
    display: none !important;
  }
}

/* Hide slider pagination dots in projects section as cards now feature single looping 3D video */
.projects .swiper-pagination {
  display: none !important;
}

/* ==========================================================================
   FLOATING VIDEO WIDGET (DTPARTNERS CLONED MECHANIC)
   ========================================================================== */
.widget_video {
  z-index: 9999;
  position: fixed;
  right: 24px;
  left: auto;
  bottom: 24px;
  border: none !important;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  width: 130px;
  height: 230px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, width 0.35s ease, height 0.35s ease, border-color 0.3s ease;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.widget_video._active {
  width: 280px;
  height: 495px;
  border: none !important;
  right: 24px;
  left: auto;
  bottom: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

.widget_video._hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(30px) scale(0.9) !important;
  pointer-events: none !important;
}

.widget_video video {
  cursor: pointer;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
}

.widget_video_close {
  cursor: pointer;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  z-index: 250;
  opacity: 0.85;
  transition: transform 0.3s ease, opacity 0.2s ease, background-color 0.2s ease;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  border-radius: 50%;
}

.widget_video_close::after,
.widget_video_close::before {
  position: absolute;
  left: 12px;
  top: 4px;
  content: " ";
  height: 18px;
  width: 2px;
  background: #ffffff;
  transition: transform 0.3s ease-in-out, opacity 0.2s ease-in-out;
}

.widget_video_close::before {
  transform: rotate(45deg);
}

.widget_video_close::after {
  transform: rotate(-45deg);
}

.widget_video._active .widget_video_close::after {
  transform: rotate(-90deg);
}

.widget_video._active .widget_video_close::before {
  transform: rotate(90deg);
  opacity: 0;
}

.widget_video:hover .widget_video_close {
  opacity: 1;
}

.widget_video_close:hover {
  transform: scale(1.15);
  background: rgba(0, 0, 0, 0.8);
}

.widget_video_btn {
  cursor: pointer;
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  color: #ffffff;
  background: #f25c05;
  border-radius: 100px;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease, background-color 0.2s ease;
  opacity: 0;
  visibility: hidden;
  white-space: nowrap;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(242, 92, 5, 0.4);
}

.widget_video_btn:hover {
  background: #d64f02;
  transform: translateX(-50%) scale(1.04);
}

.widget_video._active .widget_video_btn {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease 0.1s, visibility 0.3s ease;
}

@media (max-width: 768px) {
  .widget_video {
    right: 16px;
    left: auto;
    bottom: 16px;
    width: 110px;
    height: 195px;
  }
  .widget_video._active {
    width: min(280px, calc(100vw - 32px));
    height: min(495px, calc(100vh - 100px));
    right: 16px;
    left: auto;
    bottom: 16px;
  }
}





/* ============================================================
   PROJECT CARD VIDEO CONTAINMENT & PERFECT CENTERING
   ============================================================ */
.projects .project .swiper-slide,
.nw-video-slide {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 16 / 9 !important;
  background: #08080a !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.nw-video-slide video {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 auto !important;
}
