
/* ── Footer attach fix ── */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
/* Make sure footer is always at bottom with no gap */
body > footer {
  margin-top: auto;
}
/* CRITICAL: prevent white gap between footer and sticky CTA on mobile */
@media (max-width: 768px) {
  body {
    /* Remove flex min-height on mobile — causes gap issues */
    min-height: unset !important;
    display: block !important;
  }
  body > footer {
    margin-top: 0 !important;
  }
}
/* ============================================
   PR.WEB — global.css
   Hover-ефекти, анімації, покращення UX
   ============================================ */

/* ── Базова плавність переходів для всіх інтерактивних елементів ── */
a, button, .btn, .srv, .case-card, .niche-card, .blog-card,
.who-card, .step-card, .why-card, .price-card, .team-card,
.trust-stat, .topic-card, .post-card, .stab, .market-card,
.social-btn, .form-field, .field, .fi, input, .ahrefs-cell,
.case-tag, .cc-tag, .ctag {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Кнопки: hover + active стани ── */
.btn, .btn-pink, .btn-dark, .btn-outline, .btn-white {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.btn:hover, .btn-pink:hover, .btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.btn-pink:hover {
  box-shadow: 0 8px 24px rgba(246, 54, 77, 0.3);
}
.btn:active, .btn-pink:active, .btn-dark:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.btn-outline:hover {
  transform: translateY(-2px);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ── Картки: легкий підйом + тінь при наведенні ── */
.srv:hover, .case-card:hover, .niche-card:hover, .blog-card:hover,
.who-card:hover, .step-card:hover, .why-card:hover, .topic-card:hover,
.post-card:hover, .market-card:hover, .team-card:hover {
  transform: translateY(-4px);
}
.srv:hover {
  box-shadow: 0 12px 32px rgba(246, 54, 77, 0.1);
}
.case-card:hover, .team-card:hover, .blog-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* ── Посилання навігації — підкреслення, що "виїжджає" знизу ── */
.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--pink);
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-links a:hover::after {
  width: 100%;
}

/* ── Service tabs: плавний колір + підкреслення ── */
.stab {
  transition: color 0.2s ease, border-color 0.2s ease;
}
.stab:hover {
  color: var(--black);
}

/* ── Форми: фокус з плавним підкресленням ── */
.field, .fi, input[type="text"], input[type="url"], input[type="tel"], input[type="email"] {
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.field:focus, .fi:focus {
  border-bottom-color: var(--pink) !important;
}

/* ── Кнопка форми: hover із легким зростанням ── */
button[type="submit"] {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(246, 54, 77, 0.3);
  filter: brightness(1.05);
}
button[type="submit"]:active:not(:disabled) {
  transform: translateY(0);
}

/* ── Faq акордеон: плавне відкриття вже є інлайн, додаємо hover на питання ── */
.faq-q {
  transition: color 0.2s ease;
  cursor: pointer;
}
.faq-q:hover {
  color: var(--pink);
}

/* ── Tag/badge елементи: легкий hover ── */
.art-tag:hover, .case-tag:hover, .cc-tag:hover {
  transform: translateY(-1px);
}

/* ── Логотип: легкий hover ── */
.logo {
  transition: opacity 0.2s ease;
}
.logo:hover {
  opacity: 0.8;
}

/* ── Зображення/банери: плавне масштабування при наведенні ── */
.banner-img, .article-image, .case-screenshot {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.banner-img:hover img, .article-image:hover img {
  transform: scale(1.03);
}

/* ── Fade-in анімація для секцій при скролі (через IntersectionObserver) ── */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Sticky CTA: плавна поява знизу ── */
.sticky-cta, .stky {
  animation: slideUpFade 0.3s ease;
}
@keyframes slideUpFade {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ── Pulse-анімація для головної CTA кнопки в hero (привертає увагу) ── */
@keyframes subtlePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(246, 54, 77, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(246, 54, 77, 0); }
}
.hero-btns .btn-pink {
  animation: subtlePulse 2.5s ease-in-out infinite;
}

/* ── Скролбар (легке покращення UX, не критично) ── */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--light, #EEECEE);
}
::-webkit-scrollbar-thumb {
  background: var(--gray, #A2A2A2);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--pink, #F6364D);
}

/* ── Селекшн тексту у фірмовому кольорі ── */
::selection {
  background: rgba(246, 54, 77, 0.2);
  color: var(--black, #202020);
}

/* ── Покращення мобільного UX: збільшені tap-зони ── */
@media (max-width: 768px) {
  .btn, button[type="submit"] {
    min-height: 48px;
  }
  a, .stab, .topic-card, .niche-card {
    -webkit-tap-highlight-color: rgba(246, 54, 77, 0.1);
  }
}

/* ── Loading стан для кнопок форм ── */
button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

/* ============================================
   BURGER MENU — глобальний компонент
   ============================================ */

/* Кнопка бургера */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.2s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.burger-btn:hover { background: rgba(0,0,0,0.05); }
.burger-line {
  width: 22px;
  height: 2px;
  background: var(--black, #202020);
  border-radius: 2px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}
/* Анімація X при відкритті */
.burger-btn.open .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.open .burger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger-btn.open .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Оверлей мобільного меню */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white, #F9F9F9);
  z-index: 200;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 72px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}
.mobile-menu-logo {
  font-family: 'Onest', sans-serif;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  color: var(--black, #202020);
}
.mobile-menu-logo span { color: var(--pink, #F6364D); }

.mobile-menu-close {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 24px;
  color: var(--black, #202020);
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu-close:hover { background: rgba(0,0,0,0.05); }

.mobile-menu-nav {
  flex: 1;
  padding: 8px 0;
}
.mobile-menu-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  font-family: 'Onest', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--black, #202020);
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: color 0.15s, background 0.15s;
}
.mobile-menu-nav a:hover,
.mobile-menu-nav a:active {
  color: var(--pink, #F6364D);
  background: rgba(246,54,77,0.03);
}
.mobile-menu-nav a::after {
  content: '→';
  color: var(--pink, #F6364D);
  font-size: 16px;
  opacity: 0.5;
}

.mobile-menu-footer {
  padding: 20px 24px 36px;
  border-top: 1px solid #eee;
  flex-shrink: 0;
}
.mobile-menu-cta {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.mobile-menu-cta a {
  flex: 1;
  text-align: center;
  padding: 14px 12px;
  border-radius: 40px;
  font-family: 'Onest', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.mobile-menu-contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-menu-contacts a {
  font-size: 14px;
  color: var(--gray, #A2A2A2);
  text-decoration: none;
  font-family: 'Onest', sans-serif;
}
.mobile-menu-contacts a:hover { color: var(--pink, #F6364D); }

/* Блокуємо скрол body коли меню відкрите */
body.menu-open { overflow: hidden; }

/* Показуємо бургер тільки на мобільному */
@media (max-width: 768px) {
  .burger-btn { display: flex; }
  .nav-desktop-btn { display: none !important; }
}
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
}

/* ============================================
   МОБІЛЬНІ ФІКСИ LAYOUT
   ============================================ */
@media (max-width: 768px) {
  /* Сервіси — 1 колонка */
  .services-grid {
    grid-template-columns: 1fr !important;
  }

  /* Nav — прибираємо overflow */
  nav {
    overflow: visible;
  }
  .nav-inner {
    padding: 0;
    overflow: hidden;
  }

  /* Логотип — не стискати */
  .logo { flex-shrink: 0; }

  /* Футер — 2 колонки замість 1 де можна */
  .footer-cols {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }

  /* Hero proof — 2х2 */
  .hero-proof {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 24px 0;
  }

  /* Cases і blog — 1 колонка */
  .cases-grid,
  .blog-grid {
    grid-template-columns: 1fr !important;
  }

  /* Niche grid — 2 колонки */
  .niche-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Team — 2 колонки */
  .team-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Trust — 2х2 */
  .trust-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Why — 1 колонка */
  .why-grid {
    grid-template-columns: 1fr !important;
  }

  /* Steps — 1 колонка */
  .steps-grid {
    grid-template-columns: 1fr !important;
  }

  /* Testimonial */
  .testimonial { padding: 28px 20px; }

  /* Sticky: завжди показувати 2 кнопки */
  .sticky-cta { display: block !important; }

  /* Sec heading */
  .sec-h { font-size: 26px !important; }
  .sec-sub { font-size: 15px !important; }

  /* CTA strip */
  .cta-strip { padding: 28px 20px; }
  .cta-strip-inner { flex-direction: column; gap: 16px; }
  .cta-strip-inner .btn-white { width: 100%; justify-content: center; }

  /* Main CTA */
  .main-cta { padding: 48px 20px; }
  .main-cta-inner { grid-template-columns: 1fr; gap: 32px; }

  /* Case block */
  .case-block { padding: 24px 16px; }
  .case-stats { grid-template-columns: 1fr 1fr; }

  /* Footer */
  footer { padding: 40px 20px 32px; }
  .footer-top { flex-direction: column; gap: 0; }
  .footer-logo { margin-bottom: 28px; font-size: 22px; }

  /* Logos strip */
  .logos-strip {
    gap: 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* ============================================
   ПОКРАЩЕНИЙ ФУТЕР — Мобільна акордеон-секція
   ============================================ */
.footer-col-title {
  cursor: default;
}
@media (max-width: 768px) {
  .footer-cols {
    gap: 0 !important;
    border-top: 1px solid #2a2a2a;
  }
  .footer-col {
    border-bottom: 1px solid #2a2a2a;
    padding: 16px 0;
  }
  .footer-col .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
  }
  .footer-col p,
  .footer-col a {
    font-size: 14px;
    margin-bottom: 6px;
  }
}

/* ── Запобігання горизонтальному скролу ── */
html { overflow-x: hidden; } /* html — єдине місце де це дійсно блокує viewport scroll */
body { overflow-x: hidden; max-width: 100%; }
/* Clamp all elements */
*, *::before, *::after { box-sizing: border-box; }
img, video, iframe { max-width: 100%; height: auto; }
/* Hero containing block must clip absolutes */
.hero, section, .sec, main { overflow-x: clip; }

/* ============================================
   MOBILE OVERFLOW & RESPONSIVE FIXES — global
   ============================================ */

/* Базовий захист від горизонтального скролу */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
*, *::before, *::after {
  box-sizing: border-box;
}

/* Таблиці — обгортка зі скролом */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
}
.growth-table, .gt, .process-table, .factors-table, .qt {
  min-width: 520px;
}

@media (max-width: 768px) {
  /* ROOT — найважливіше */
  html { overflow-x: hidden !important; }
  body { overflow-x: hidden !important; max-width: 100vw !important; padding-bottom: 76px !important; }

  /* ── НАВІГАЦІЯ ── */
  nav {
    padding: 0 16px !important;
    overflow: hidden;
  }
  .nav-inner {
    overflow: hidden;
  }

  /* ── ФОРМИ — головна проблема ── */
  .form-card, .main-cta-inner > div:last-child, .cta-form {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 24px 16px !important;
  }
  .main-cta-inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
    padding: 0 !important;
  }
  .main-cta {
    padding: 44px 16px !important;
  }
  /* Поля форм */
  .form-field, .fi, .field, input[type="text"],
  input[type="url"], input[type="tel"],
  input[type="email"], select, textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  /* Кнопка форми */
  button[type="submit"], .form-submit {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* ── ТАБЛИЦІ — горизонтальний скрол всередині ── */
  .growth-table, .gt, .process-table,
  .factors-table, .qt, table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    white-space: nowrap;
  }
  /* Але якщо вже в обгортці — нормально */
  .table-responsive table {
    display: table;
    white-space: normal;
  }

  /* ── КОМАНДА / ТРЕКЕРИ ── */
  .team-card, [class*="team-card"] {
    min-width: 0 !important;
    width: 100% !important;
  }
  .team-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* ── КЕЙС — блок людей ── */
  [style*="grid-template-columns:repeat(5,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* ── СЕРВІСНІ СТОРІНКИ ── */
  .price-grid, .steps-grid, .niches-grid {
    grid-template-columns: 1fr !important;
  }
  .service-hero, .service-hero-inner {
    padding: 90px 16px 40px !important;
  }
  .hero-inner {
    flex-direction: column !important;
    padding: 0 !important;
  }

  /* ── CTA STRIP ── */
  .cta-strip, [class*="cta-strip"] {
    padding: 28px 16px !important;
  }
  .cta-strip-inner {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .cta-strip-inner a, .cta-strip-inner .btn-white {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* ── HERO СЕКЦІЇ ── */
  .hero-banner {
    min-height: 300px !important;
  }
  .hb-content {
    padding: 24px 20px !important;
  }
  .hb-stats {
    gap: 12px !important;
    flex-wrap: wrap !important;
  }
  .hbs-num {
    font-size: 26px !important;
  }

  /* ── ЗАГАЛЬНА БЕЗПЕКА ── */
  img, svg, video, iframe {
    max-width: 100% !important;
    height: auto;
  }
  pre, code {
    overflow-x: auto;
    white-space: pre-wrap;
  }

  /* ── STICKY ── */
  .sticky-cta {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999 !important;
    background: var(--white, #F9F9F9) !important;
    padding: 10px 16px 14px !important;
    box-shadow: 0 -3px 16px rgba(0,0,0,.1) !important;
    border-top: 1px solid #eee !important;
    display: block !important;
  }
  body {
    padding-bottom: 76px !important;
    overflow-x: hidden !important;
  }
}

/* Team grid — адаптив */
@media(max-width:768px){
  .team-mobile-wrap{
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  .team-mobile-wrap > div{
    min-width: 0 !important;
    width: 100% !important;
    padding: 16px 8px !important;
  }
  .team-mobile-wrap img{
    width: 56px !important;
    height: 56px !important;
  }
  .team-mobile-wrap > div > div[style*="font-size:14px"]{
    font-size: 12px !important;
  }
}

/* SERVICE TABS OVERRIDE */
a.stab, .stab { display:inline-flex!important;align-items:center!important;gap:6px!important;padding:14px 18px!important;font-size:14px!important;font-weight:600!important;color:var(--gray,#A2A2A2)!important;text-decoration:none!important;border-bottom:3px solid transparent!important;white-space:nowrap!important;flex-shrink:0!important;position:static!important;background:none!important;border-radius:0!important;box-shadow:none!important; }
a.stab.active, .stab.active { color:var(--black,#202020)!important;border-bottom-color:var(--pink,#F6364D)!important;font-weight:700!important; }
a.stab:hover, .stab:hover { color:var(--black,#202020)!important;text-decoration:none!important;transform:none!important; }


/* ══════════════════════════════════════════════════
   LANGUAGE SWITCHER — pill style
   ══════════════════════════════════════════════════ */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: #f0f0f0;
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
  margin-left: 8px;
  flex-shrink: 0;
}
.lang-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 5px 10px !important;
  border-radius: 16px !important;
  font-family: 'Onest', sans-serif !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  text-decoration: none !important;
  transition: all 0.18s !important;
  white-space: nowrap !important;
  color: var(--gray, #A2A2A2) !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
}
.lang-pill.active {
  background: var(--black, #202020) !important;
  color: #fff !important;
}
.lang-pill:hover:not(.active) {
  background: rgba(0,0,0,0.08) !important;
  color: var(--black, #202020) !important;
}
/* Dark nav version */
.nav-dark .lang-switcher {
  background: rgba(255,255,255,0.1);
}
.nav-dark .lang-pill {
  color: rgba(255,255,255,0.5) !important;
}
.nav-dark .lang-pill.active {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
}
/* Hide lang-switch (old class) */
.lang-switch { display: none !important; }

@media (max-width: 768px) {
  .lang-switcher { display: none !important; }
}
