:root {
      --bg-main: #050018;
      --bg-alt: #0b0225;
      --bg-dark: #040012;
      --primary: #ff2f8a;
      --primary-soft: #ff4ea1;
      --accent: #00c2ff;
      --accent-soft: #5640ff;
      --text-main: #ffffff;
      --text-muted: #9fa3c5;
      --card-bg: #11052f;
      --border-radius-lg: 18px;
      --border-radius-xl: 24px;
      --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.6);
      --transition-fast: 0.25s ease;
    }
    
    #preloader {
  position: fixed;
  inset: 0;
  background: #050018; /* фон сайта */
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: opacity .6s ease, visibility .6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

html, body {
  overflow-x: hidden;
}

body { -webkit-user-select:none; user-select:none; padding-top: 82px; }
input, textarea { -webkit-user-select:text; user-select:text; }

/* Сам индикатор */
.loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: #ff2f8a;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: radial-gradient(circle at top, #190a3b 0, #050018 50%, #02000c 100%);
      color: var(--text-main);
      line-height: 1.5;
    }

    img {
      max-width: 100%;
      display: block;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    .container {
      width: 100%;
      max-width: 1180px;
      margin: 0 auto;
      padding: 0 20px;
    }

    section {
      padding: 100px 0;
    }

    h1,
    h2,
    h3,
    h4 {
      margin: 0 0 16px;
      font-weight: 800;
    }

    .tagline {
      font-size: 16px;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      color: var(--accent);
      margin-bottom: 8px;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 14px 32px;
      border-radius: 999px;
      border: none;
      cursor: pointer;
      font-weight: 600;
      font-size: 14px;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      background: linear-gradient(135deg, var(--primary), var(--primary-soft));
      color: #fff;
      box-shadow: 0 10px 25px rgba(255, 47, 138, 0.45);
      transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
      white-space: nowrap;
    }

    .btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 16px 40px rgba(255, 47, 138, 0.7);
      opacity: 0.96;
    }

    .btn-outline {
      background: transparent;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.3);
      box-shadow: none;
      padding-inline: 26px;
    }

    .btn-outline:hover {
      background: rgba(255, 255, 255, 0.06);
      box-shadow: none;
      transform: translateY(-1px);
    }

    .pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border-radius: 999px;
      padding: 4px 10px;
      font-size: 11px;
      background: rgba(255, 255, 255, 0.08);
      color: var(--text-muted);
    }

    .pill-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--primary);
    }

    /* HEADER */

    .header {
      position: fixed;
      top: 0; left: 0; right: 0;
      top: 0;
      z-index: 1000;
      backdrop-filter: blur(20px);
      background: linear-gradient(to bottom, rgba(5, 0, 24, 0.95), rgba(5, 0, 24, 0.7), transparent);
    }

    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap:12px;
      padding: 20px 10px 10px 10px;
      gap:12px;
      flex-wrap:wrap;            /* ✅ разрешаем перенос */
    }
    

    .floating-image {
      animation: float 6s ease-in-out infinite;
      transition: transform .2s ease-out;
      will-change: transform;
    }

    /* Общий контейнер логотипа */
   .logo-box {
      display: flex;
      align-items: center;
      height: 40px;
    }

   .logo-bg {
      width: 190px;
      height: 50px;
      background: url("img/logo-flex.png") no-repeat left center / contain;
      display: block;
      filter: drop-shadow(0 0 10px rgba(255,47,138,0.6));
      transition: 0.25s;
    }

    .logo-bg:hover {
      filter: drop-shadow(0 0 16px rgba(255,47,138,0.9));
      transform: translateY(-1px);
     }

    .nav {
      display: flex;
      align-items: center;
      gap: 26px;
      font-size: 13px;
    }

    .nav a {
      position: relative;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      font-weight: 500;
      color: var(--text-muted);
      font-size: 11px;
    }

    .nav a::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -6px;
      width: 0;
      height: 2px;
      border-radius: 999px;
      background: linear-gradient(90deg, var(--primary), var(--accent));
      transition: width var(--transition-fast);
    }

    .nav a:hover {
      color: #fff;
    }

    .nav a:hover::after {
      width: 100%;
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 14px;
    }
    
    .header-inner,
    .header-actions,
    .logo-box {
     min-width: 0;
     }

    .socials {
      display: flex;
      gap: 10px;
    }

    .socials a {
      width: 28px;
      height: 28px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.08);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      color: #fff;
      transition: background var(--transition-fast), transform var(--transition-fast);
    }

    .socials a:hover {
      background: rgba(255, 255, 255, 0.16);
      transform: translateY(-1px);
    }

    .soc {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(6px);
    transition: 0.3s ease;
}

.soc svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Неоновые glow-эффекты */
.neon {
    box-shadow: 0 0 10px rgba(255,255,255,0.15);
}

/* Telegram — фирменный голубой */
.tg {
    color: #2AABEE;
}
.tg:hover {
    background: rgba(42,171,238,0.2);
    box-shadow: 0 0 14px rgba(42,171,238,0.7), 0 0 28px rgba(42,171,238,0.4);
}

/* Instagram — градиентный */
.ig {
    color: #E4405F;
}
.ig:hover {
    background: radial-gradient(circle, #ff0080 0%, #e4405f 40%, #ffdd55 90%);
    box-shadow:
        0 0 14px rgba(255,0,128,0.6),
        0 0 26px rgba(255,0,128,0.4),
        0 0 40px rgba(255,221,85,0.3);
}

/* Hover-анимация */
.soc:hover {
    transform: translateY(-3px);
}

    .burger {
      display: none;
      width: 24px;
      height: 18px;
      flex-direction: column;
      justify-content: space-between;
      cursor: pointer;
    }

.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  transition: 0.3s ease;
}


/* Мобильное меню */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 75%;
  height: 100vh;
  background: rgba(5,0,24,0.96);
  backdrop-filter: blur(20px);
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  transition: 0.35s ease;
  z-index: 99999 !important;
  border-left: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav a {
  pointer-events: auto !important;
}

/* При открытии */
.mobile-nav.open {
  right: 0;
}

.mobile-nav nav a {
  color: #fff;
  font-size: 18px;
  padding: 10px 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-nav nav a:hover {
  color: #db1e4d;
  border-bottom: 1px solid rgb(71, 10, 44);
}

/* Затемнение фона */
.mobile-nav-overlay {
  display: none;
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999 !important;
}

.mobile-nav-overlay.show {
  display: block;
}

.mobile-nav.open + .mobile-nav-overlay {
  pointer-events: auto;
}

    /* HERO */

    .hero {
      padding-top: 30px;
      padding-bottom: 60px;
      background: url('img/header-flex.jpg') no-repeat;
      background-size: cover;
    }

    .hero-inner {
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
      gap: 40px;
      align-items: center;
    }

    .hero-title {
      font-size: clamp(26px, 3.1vw, 34px);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .hero-title span {
      color: var(--primary);
    }

    .hero-subtitle {
      max-width: 460px;
      font-size: 18px;
      color: var(--text-muted);
      margin-bottom: 24px;
    }

    .hero-actions {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 32px;
      flex-wrap: wrap;
    }

    .hero-label {
      font-size: 14px;
      color: var(--text-muted);
    }

    .hero-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
      margin-top: 32px;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
      margin-top: 32px;
    }

    .hero-feature {
      border-radius: var(--border-radius-lg);
      background: rgba(8, 1, 38, 0.95);
      border: 1px solid rgba(255, 255, 255, 0.06);
      padding: 16px 14px 14px;
      position: relative;
      box-shadow: var(--shadow-soft);
      overflow: hidden;
      animation: heroBreath 6s ease-in-out infinite;
  will-change: transform, background;
    }

    /* Эффект дыхания блока */
@keyframes heroBreath {
  0%   { transform: scale(1); background: rgba(8,1,38,0.95); }
  50%  { transform: scale(1.03); background: rgba(12,3,48,0.97); }
  100% { transform: scale(1); background: rgba(8,1,38,0.95); }
}

    .hero-feature::after {
      content: attr(data-num);
      position: absolute;
      right: 10px;
      bottom: 8px;
      font-size: 26px;
      font-weight: 700;
      color: rgb(201 32 88 / 29%);
    }

  .hero-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s ease;
  box-shadow: 0 0 0 rgba(255,47,138,0);
  margin-bottom: 10px;
}

.hero-feature-icon img {
  width: 35px;
  height: 35px;
  transition: 0.25s ease;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.25));
}

.hero-feature:hover .hero-feature-icon {
  box-shadow: 0 0 18px rgba(255,47,138,0.5);
  transform: translateY(-3px);
}

.hero-feature:hover .hero-feature-icon img {
  filter: drop-shadow(0 0 12px rgba(255,47,138,0.65));
}

    .hero-feature-title {
      font-size: 12px;
      font-weight: 700;
      margin-bottom: 6px;
    }

    .hero-feature-text {
      font-size: 11px;
      color: var(--text-muted);
    }

    .hero-visual {
      position: relative;
      min-height: 320px;
    }

    .hero-laptop {
      position: relative;
      border-radius: 30px;
      overflow: hidden;
      background: url(img/about-flex.png) no-repeat center;
      background-size: contain;
      height: 400px;
      animation: floatImage 7s ease-in-out infinite;
      transform-origin: center;
      will-change: transform;
      filter: drop-shadow(0 0 16px rgba(255,47,138,0.25));
      transition: filter .35s ease;
    }

    .hero-laptop:hover {
  filter: drop-shadow(0 0 8px rgba(255,47,138,0.55))
          drop-shadow(0 0 14px rgba(86,64,255,0.45));
}

/* Само парение (движение вверх-вниз + микро-наклоны) */
@keyframes floatImage {
  0% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  25% {
    transform: translateY(-8px) rotate(0.8deg) scale(1.01);
  }
  50% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  75% {
    transform: translateY(8px) rotate(-0.8deg) scale(1.01);
  }
  100% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
}

    .hero-laptop::before {
      content: "";
      position: absolute;
      inset: 3px;
      border-radius: 26px;
      pointer-events: none;
    }

    .hero-laptop-screen {
      height: 210px;
      border-radius: 20px;
      background: url("img/hero-main.jpg") center/cover no-repeat;
      margin-bottom: 12px;
    }

    .hero-laptop-footer {
      display: flex;
      justify-content: space-between;
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--text-muted);
    }

    .floating-card {
      position: absolute;
      right: -18px;
      bottom: -16px;
      width: 140px;
      border-radius: 20px;
      padding: 14px;
      background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.25) 0, rgba(255, 255, 255, 0) 45%),
        rgba(7, 0, 46, 0.98);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.95);
      font-size: 11px;
    }

    .floating-card-title {
      font-weight: 700;
      margin-bottom: 6px;
    }

    .floating-card-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      border-radius: 999px;
      padding: 3px 8px;
      font-size: 9px;
      background: rgba(0, 194, 255, 0.13);
      color: #b7efff;
      margin-top: 8px;
    }

    /* ABOUT */

    .about {
      background: linear-gradient(to bottom, #000000d1, rgb(14 13 36 / 98%));
    }

    .about-inner {
      display: grid;
      grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
      gap: 36px;
      align-items: center;
    }

    .about-image-card {
      position: relative;
      border-radius: var(--border-radius-xl);
      padding: 20px 20px 3px;
      overflow: hidden;
    }

    .about-image-main {
      border-radius: 22px;
      overflow: hidden;
      background: url("img/about-img.png") center no-repeat;
      background-size: contain;
      height: 400px;
      position: relative;
      animation: floatImage 7s ease-in-out infinite;
  transform-origin: center;
  will-change: transform;
  filter: drop-shadow(0 0 16px rgba(255,47,138,0.25));
  transition: filter .35s ease;
    }

    /* Усиление свечения при hover */
.about-image-main:hover {
  filter: drop-shadow(0 0 8px rgba(255,47,138,0.55))
          drop-shadow(0 0 14px rgba(86,64,255,0.45));
}

/* Само парение (движение вверх-вниз + микро-наклоны) */
@keyframes floatImage {
  0% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  25% {
    transform: translateY(-8px) rotate(0.8deg) scale(1.01);
  }
  50% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  75% {
    transform: translateY(8px) rotate(-0.8deg) scale(1.01);
  }
  100% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
}

    .about-image-main::after {
      content: "";
      position: absolute;
      inset: 0;
      mix-blend-mode: screen;
    }

    .about-tag {
      font-weight: 500;
      font-size: 18px;
      margin-bottom: 10px;
    }

    .about-tag span {
      color: var(--primary);
    }

    .about-title {
      font-size: 32px;
      margin-bottom: 12px;
    }

    .about-text {
      font-size: 16px;
      color: var(--text-muted);
      margin-bottom: 16px;
    }

    .about-note {
      font-size: 16px;
      color: var(--text-muted);
      margin-bottom: 24px;
    }

    /* SERVICES */

    /* ============================
   SERVICES — НЕОН, 3D, HOVER, FLOAT, SCROLL-ANIM
   ============================ */

/* Контейнер блока */
.services {
  background: radial-gradient(circle at 10% 0, rgba(0, 194, 255, 0.18) 0, transparent 48%),
              radial-gradient(circle at 90% 0, rgba(255, 47, 138, 0.16) 0, transparent 50%),
              var(--bg-alt);
}

.section-heading {
  text-align: center;
  margin-bottom: 36px;
}

.section-heading h2 {
  font-size: 34px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.section-heading h2 span {
  color: var(--primary);
}

.section-heading p {
  max-width: 520px;
  margin: 10px auto 0;
  color: var(--text-muted);
  font-size: 16px;
}

/* Сетка */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* ============================
   SERVICE CARD — BASE
   ============================ */

.service-card {
  border-radius: var(--border-radius-xl);
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0) 55%),
              var(--card-bg);
  padding: 20px 18px 18px;
  position: relative;
  box-shadow: var(--shadow-soft);
  overflow: hidden;

  /* Анимация появления */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s ease, transform .65s ease;
}

/* Активированная анимация */
.service-card.service-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   FLOAT — ЛЁГКОЕ ПАРЕНИЕ
   ============================ */
.service-card {
  animation: serviceFloat 6.6s ease-in-out infinite;
}

@keyframes serviceFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

.service-card:hover {
  animation: none;
}

/* ============================
   HOVER — 3D + GLOW
   ============================ */

.service-card {
  transition:
    transform .35s ease,
    box-shadow .35s ease,
    background .35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  background: rgba(17, 5, 47, 0.82);
  box-shadow:
    0 12px 28px rgba(255,47,138,0.25),
    0 0 20px rgba(86,64,255,0.35),
    0 0 10px rgba(255,255,255,0.05);
}

/* Внутренний неоновый контур */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: inset 0 0 22px rgba(255,47,138,0);
  pointer-events: none;
  transition: .45s ease;
}

.service-card:hover::before {
  box-shadow: inset 0 0 22px rgba(255,47,138,0.30);
}

/* ============================
   LABEL
   ============================ */

.service-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.35);
  margin-bottom: 10px;
  transition: background .3s ease, box-shadow .3s ease;
}

.service-card:hover .service-label {
  background: rgba(255,47,138,0.20);
  box-shadow: 0 0 12px rgba(255,47,138,0.45);
}

.service-label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

/* ============================
   TITLE
   ============================ */

.service-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  transition: color .25s ease;
}

.service-card:hover .service-title {
  color: var(--primary);
}

/* ============================
   LIST + HOVER
   ============================ */

.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.service-list li {
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
  transition: color .25s ease, transform .25s ease;
}

.service-list li::before {
  content: "•";
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--accent);
}

/* Подсветка при наведении */
.service-list li:hover {
  color: #fff;
  transform: translateX(4px);
}

.service-list li:hover::before {
  color: var(--primary);
}

/* ============================
   BUTTON
   ============================ */

.service-footer .btn {
  padding-inline: 20px;
  font-size: 14px;
  box-shadow: none;
  transition: transform .25s ease, box-shadow .25s ease;
}

.service-card:hover .btn {
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(255,47,138,0.55);
}
    

    /* STATS */

    .stats {
      background: var(--bg-alt);
      padding-top: 40px;
      padding-bottom: 40px;
    }

    .stats-row {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 20px;
    }

    .stat-card {
      text-align: center;
      font-size: 16px;
      color: var(--text-muted);
    }

    .stat-number {
      font-size: 34px;
      font-weight: 800;
      margin-bottom: 6px;
      color: #fff;
    }

    .stat-number::after {
  content: "+";
  margin-left: 2px;
  font-weight: 800;
  font-size: 34px;
  opacity: 0.8;
}

.stat-number.no-plus::after {
  content: "";
}

.stat-number.procent::after {
  content: "%";
  margin-left: 2px;
  font-weight: 800;
  font-size: 34px;
  opacity: 0.8;
}

.stat-bounce {
  animation: statBounce 0.45s ease-out;
}

@keyframes statBounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.25); text-shadow: 0 0 12px rgba(255,47,138,0.6); }
  60%  { transform: scale(0.9);  }
  100% { transform: scale(1); }
}

    /* CASES */

    .cases {
      background: linear-gradient(to bottom, var(--bg-alt), #050018);
    }

    .cases-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 18px;
      margin-bottom: 24px;
    }

    .case-card {
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition: transform .35s ease, box-shadow .35s ease, background .35s ease;
}

/* Glow + поднятие */
.case-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 12px 28px rgba(255, 47, 138, 0.22),
    0 0 22px rgba(86, 64, 255, 0.35),
    0 0 12px rgba(255,255,255,0.06);
  background: rgba(17,5,47,0.82);
}

/* Обводка-свечение внутри */
.case-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: inset 0 0 18px rgba(255,47,138,0);
  transition: .35s ease;
  pointer-events: none;
}

.case-card:hover::before {
  box-shadow: inset 0 0 22px rgba(255,47,138,0.25);
}

.case-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.case-title,
.case-subtitle {
  transition: color .3s ease;
}

.case-card:hover .case-title {
  color: #ff2f8a;
}

.case-card:hover .case-subtitle {
  color: #b7b9e6;
}

.case-link {
  position: relative;
  transition: color .25s ease;
  font-size: 16px;
}

.case-link:hover {
  color: #ff2f8a;
}

.case-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0%;
  transition: width .25s ease;
}

.case-link:hover::after {
  width: 100%;
}

.case-image {
  height: 350px;
  background-size: cover;
  transition: transform .6s ease, filter .4s ease;
  position: relative;
}

/* Плавное увеличение */
.case-card:hover .case-image {
  transform: scale(1.08);
  filter: brightness(1.15);
}

/* Лёгкий градиент сверху (под текст) */
.case-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5,0,22,0) 40%, rgba(5,0,22,0.7));
  opacity: 0;
  transition: .35s ease;
}

.case-card:hover .case-image::after {
  opacity: 1;
}

    .case-body {
      padding: 14px 16px 12px;
      font-size: 12px;
    }

    .case-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 11px;
      margin-top: 6px;
    }

    .cases-btn-wrap {
      text-align: center;
      margin-top: 10px;
    }

    /* Начальное состояние */
.case-card {
  opacity: 0;
  transform: translateY(20px);
}

/* Когда появляется */
.case-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s ease, transform .6s ease;
}

    /* CTA ROBOT */

    .cta-block {
      padding: 0 0 70px;
      background: #050018;
    }

    .cta-inner {
      border-radius: 26px;
      background: radial-gradient(circle at 0 0, rgba(0, 194, 255, 0.28) 0, rgba(0, 194, 255, 0.02) 55%),
        radial-gradient(circle at 100% 0, rgba(255, 47, 138, 0.32) 0, rgba(255, 47, 138, 0.02) 55%),
        var(--bg-alt);
      padding: 26px 28px;
      display: grid;
      grid-template-columns: minmax(0, 1.9fr) minmax(0, 1.0fr);
      gap: 26px;
      align-items: center;
      box-shadow: var(--shadow-soft);
    }

    .cta-label {
      font-size: 14px;
      text-transform: uppercase;
      color: var(--accent);
      letter-spacing: 0.16em;
      margin-bottom: 6px;
    }

    .cta-title {
      font-size: 24px;
      margin-bottom: 8px;
    }

    .cta-text {
      font-size: 16px;
      color: var(--text-muted);
      margin-bottom: 16px;
    }

    .cta-robot {
      justify-self: center;
      max-width: 200px;
      animation: floatImage 7s ease-in-out infinite;
  transform-origin: center;
  will-change: transform;
  filter: drop-shadow(0 0 16px rgba(255,47,138,0.25));
  transition: filter .35s ease;
    }

    .cta-robot:hover {
  filter: drop-shadow(0 0 8px rgba(255,47,138,0.55))
          drop-shadow(0 0 14px rgba(86,64,255,0.45));
}

/* Само парение (движение вверх-вниз + микро-наклоны) */
@keyframes floatImage {
  0% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  25% {
    transform: translateY(-8px) rotate(0.8deg) scale(1.01);
  }
  50% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  75% {
    transform: translateY(8px) rotate(-0.8deg) scale(1.01);
  }
  100% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
}

    /* TOOLS */

    .tools {
      background: radial-gradient(circle at 10% 0, rgba(0, 194, 255, 0.26) 0, transparent 50%),
        var(--bg-dark);
      padding-top: 50px;
      padding-bottom: 40px;
    }

    .tools-title {
      text-align: center;
      font-size: 24px;
      margin-bottom: 26px;
    }

    .tools-row {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 14px;
    }

    .tool-pill {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 14px rgba(255,47,138,0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: #fff;
  text-align: center;
  transition: 0.25s ease;
}

.tool-pill:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 24px rgba(255,47,138,0.45);
  background: rgba(255,255,255,0.10);
}

.tool-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.25));
  transition: 0.25s ease;
}

.tool-pill:hover .tool-img {
  filter: drop-shadow(0 0 12px rgba(255,47,138,0.6));
}

    /* FAQ */

    .faq {
      background: url("img/faq-bg.jpg") center/cover no-repeat fixed, #03000b;
      background-blend-mode: multiply;
    }

    .faq-heading {
      margin-bottom: 26px;
    }

    .faq-heading h2 {
      font-size: 30px;
    }

    .faq-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .faq-item {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(4, 0, 23, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: 0.3s ease;
}

.faq-item:hover {
  box-shadow:
    0 0 12px rgba(255,47,138,0.35),
    0 0 18px rgba(86,64,255,0.25);
  transform: translateY(-2px);
}

.faq-item.open {
  border-color: rgba(255,47,138,0.7);
  box-shadow:
    0 0 14px rgba(255,47,138,0.7),
    0 0 26px rgba(86,64,255,0.6),
    inset 0 0 14px rgba(255,47,138,0.25);
  animation: faqPop 0.35s ease;
}

/* Пружинка открытия */
@keyframes faqPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

    .faq-question {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 16px;
      cursor: pointer;
      font-size: 16px;
    }

    .faq-question span {
      flex: 1;
      padding-right: 20px;
    }

    .faq-toggle {
  width: 20px;
  text-align: center;
  font-size: 16px;
  color: var(--primary);
  transition: transform 0.35s ease, color 0.35s ease;
  font-weight: 700;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);    /* + превращается в × */
  color: var(--accent);
}

/* Анимация появления текста */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  font-size: 14px;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(-6px);
  transition:
    max-height 0.4s ease,
    padding-bottom 0.3s ease,
    opacity 0.4s ease,
    transform 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 250px;
  padding-bottom: 20px;
  padding-top: 10px;
  opacity: 1;
  transform: translateY(0);
}

.faq-question:hover {
  background: linear-gradient(
    90deg,
    rgba(255,47,138,0.10),
    rgba(86,64,255,0.08),
    rgba(255,47,138,0.10)
  );
}

    /* FINAL CTA & FOOTER */

    .final-cta {
      background: #050018;
      padding-top: 46px;
      padding-bottom: 40px;
      text-align: center;
    }

    .final-cta h2 {
      font-size: 20px;
      margin-bottom: 10px;
    }

    .final-cta p {
      margin-top: 0;
      margin-bottom: 20px;
      color: var(--text-muted);
      font-size: 14px;
    }

    .footer {
      padding: 16px 0 24px;
      background: #03000c;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      font-size: 11px;
      color: var(--text-muted);
    }

    .footer-inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 14px;
      flex-wrap: wrap;
    }

    .footer-credits {
      opacity: 0.8;
    }

    /* RESPONSIVE */

    @media (max-width: 992px) {
      .nav {
        display: none;
      }

      .burger {
        display: flex;
      }

      .hero-inner,
      .about-inner,
      .cta-inner {
        grid-template-columns: minmax(0, 1fr);
      }

      .hero-visual {
        order: -1;
      }

      section {
        padding: 60px 0;
      }

      .cases-grid {
        grid-template-columns: minmax(0, 1fr);
      }

      .services-grid,
      .stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 720px) {
      .hero-grid {
        grid-template-columns: minmax(0, 1fr);
      }

      .btn-outline {
        display: none;
      }

      .services-grid,
      .stats-row {
        grid-template-columns: minmax(0, 1fr);
      }

      .cta-inner {
        padding: 20px 18px;
      }

      .hero {
        padding-top: 10px;
      }

      .hero-laptop {
        height: 300px;
      }
      
      .about-title {
        font-size: 22px;
      }

      .about-tag {
        font-size: 14px;
      }

      .about-text, .about-note {
        font-size: 14px;
      }

      .about-image-card {
        display: none;
      }
      
      .section-heading h2 {
        font-size: 22px;
      }

      .section-heading p {
        font-size: 14px;
      }

      .cta-robot {
        display: none;
      }

      .cta-text, .cta-label {
        font-size: 14px;
      }

      .cta-title {
        font-size: 20px;
      }

      .about-main-image img {
        display: none;
      }
    }

    @media (max-width: 480px) {
      .header-actions .btn {
        display: none;
      }

      .hero-title {
        font-size: 22px;
      }
    }

    /* Заголовок страницы */
.contacts-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 50px 0 50px;
  background: radial-gradient(circle at 30% 40%, rgb(36 21 90 / 45%), transparent 70%), 
  radial-gradient(circle at 75% 25%, rgb(33 18 57 / 40%), transparent 65%), 
  radial-gradient(circle at 50% 80%, rgb(0 0 0), transparent 70%), 
  radial-gradient(circle at 10% 90%, rgb(97 0 51 / 38%), transparent 75%);
}

.contacts-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.contacts-title-line {
  width: 120px;
  height: 4px;
  margin: 12px auto 0;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: 10px;
}

/* Основной текст */
.contacts-info {
  padding: 40px 0 20px;
  text-align: center;
}

.contact-agency-title {
  font-size: 28px;
  margin-bottom: 14px;
}

.contact-agency-title span {
  color: var(--primary);
}

.contact-description {
  max-width: 760px;
  margin: 10px auto;
  color: var(--text-muted);
  font-size: 15px;
}

/* Карточки */
.contact-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  justify-items: center;
}

.contact-card {
  width: 260px;
  background: rgba(255,255,255,0.07);
  padding: 18px 22px;
  border-radius: 16px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: 0.3s;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.contact-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.12);
}

.contact-card img {
  width: 42px;
}

.contact-card-title {
  font-size: 18px;
  font-weight: 700;
}

.contact-card-text {
  font-size: 14px;
  color: var(--text-muted);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 12px rgba(255,47,138,0.15);
  transition: 0.25s ease;
}

.contact-icon img {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.45));
  transition: 0.25s ease;
}

/* hover эффект */
.contact-card:hover .contact-icon {
  box-shadow: 0 0 12px rgba(255,47,138,0.6),
              0 0 18px rgba(86,64,255,0.5);
  transform: scale(1.05);
}

.contact-card:hover .contact-icon img {
  filter: drop-shadow(0 0 8px #ff2f8a)
          drop-shadow(0 0 14px #5640ff);
}

/* Форма обратной связи */
.feedback {
  padding: 60px 0;
  display: flex;
  justify-content: center;
}

.feedback-box {
  max-width: 650px;
  background: rgba(255,255,255,0.04);
  padding: 40px 36px;
  border-radius: 26px;
  text-align: center;
}

.feedback-title {
  font-size: 26px;
  margin-bottom: 10px;
}

.feedback-subtitle {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding: 14px 4px;
  color: #fff;
  margin-bottom: 22px;
  outline: none;
  font-size: 14px;
}

.feedback-form textarea {
  resize: none;
  height: 90px;
}

.feedback-btn {
  width: 100%;
  margin-top: 8px;
}

.feedback-policy {
  margin-top: 22px;
  font-size: 15px;
  display: flex;
  justify-content: flex-start;/* не центрируем! */
  gap: 10px;
  color: var(--text-muted);
  text-align: left;            /* отключает влияние text-align родителя */
  width: 100%;                 /* чтобы занимал всю строку */
}

.feedback-policy input[type="checkbox"] {
  width: 18px;
  height: 18px;
  padding: 5px 5px;
  appearance: none;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  transition: 0.25s ease;
  background: rgba(255,255,255,0.05);
  box-shadow: inset 0 0 6px rgba(255,47,138,0.2);
}

/* Hover — лёгкое свечение */
.feedback-policy input[type="checkbox"]:hover {
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(255,47,138,0.4);
}

/* Активированное состояние */
.feedback-policy input[type="checkbox"]:checked {
  border-color: transparent;
  background: linear-gradient(135deg, #ff2f8a, #5640ff);
  box-shadow: 0 0 16px rgba(255,47,138,0.8), 0 0 22px rgba(86,64,255,0.6);
}

/* НЕОНОВАЯ ГАЛОЧКА */
.feedback-policy input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;

  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);

  filter: drop-shadow(0 0 4px #fff) 
          drop-shadow(0 0 6px #ff2f8a) 
          drop-shadow(0 0 8px #5640ff);

  animation: neonCheck 0.35s ease forwards;
}

/* АНИМАЦИЯ ПОЯВЛЕНИЯ ГАЛОЧКИ */
@keyframes neonCheck {
  0% {
    opacity: 0;
    transform: scale(0.4) rotate(45deg);
    filter: brightness(0.6) blur(1px);
  }
  60% {
    opacity: 1;
    transform: scale(1.15) rotate(45deg);
  }
  100% {
    transform: scale(1) rotate(45deg);
  }
}

/* ABOUT HERO — фон + космические частицы */
.about-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 50px 0 50px;
  background: radial-gradient(circle at 30% 40%, rgb(36 21 90 / 45%), transparent 70%), 
  radial-gradient(circle at 75% 25%, rgb(33 18 57 / 40%), transparent 65%), 
  radial-gradient(circle at 50% 80%, rgb(0 0 0), transparent 70%), 
  radial-gradient(circle at 10% 90%, rgb(97 0 51 / 38%), transparent 75%);
}

/* Заголовок */
.about-page-title {
  font-size: 42px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
  position: relative;
  z-index: 2;
}

/* Полоска */
.title-line {
  width: 140px;
  height: 4px;
  margin: 14px auto 0;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: 8px;
  position: relative;
  z-index: 2;
}

/* Контейнер для мерцающих звезд */
.stars-static {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

/* Одна звезда */
.static-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #ffffff;
  border-radius: 50%;
  opacity: 0.3;
  animation: starBlink 3s infinite ease-in-out;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

/* Анимация мерцания */
@keyframes starBlink {
  0% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.6); }
  100% { opacity: 0.2; transform: scale(1); }
}

.stars-rain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.falling-star {
  position: absolute;
  width: 2px;
  height: 16px;
  background: linear-gradient(180deg, #fff, #ff2f8a, transparent);
  filter: drop-shadow(0 0 8px #ff2f8a);
  border-radius: 4px;
  opacity: 0.85;
  animation: fallDiag linear forwards;
}

/* Диагональное падение */
@keyframes fallDiag {
  0% {
    transform: translate(0, -40px) rotate(var(--angle));
    opacity: 1;
  }
  100% {
    transform: translate(300px, 120vh) rotate(var(--angle));
    opacity: 0;
  }
}

/* Фиолетовые неоновые звезды */
.falling-star.neon {
  background: linear-gradient(180deg, #a0f0ff, #5640ff, transparent);
  filter: drop-shadow(0 0 10px #5640ff);
}

.static-star,
.stars-rain {
  pointer-events: none !important;
}

.background-light,
.cursor-light,
.stars-static {
  pointer-events: none;
}

/* ABOUT MAIN */
.about-main {
  background: url('img/about-bg.jpg') no-repeat;
  background-size: 100% 100%;
}

.about-main-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.section-title {
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.section-title span {
  color: var(--primary);
}

.about-main-text p {
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 16px;
}

.about-main-image {
  display: flex;
  justify-content: center;
}

.about-main-image img {
  border-radius: 20px;
  height: 400px;
  width: 400px;
animation: floatImage 7s ease-in-out infinite;
      transform-origin: center;
      will-change: transform;
      filter: drop-shadow(0 0 16px rgba(255,47,138,0.25));
      transition: filter .35s ease;
    }

    .about-main-image img:hover {
  filter: drop-shadow(0 0 8px rgba(167, 11, 79, 0.55))
          drop-shadow(0 0 14px rgba(82, 74, 156, 0.45));
}

/* Само парение (движение вверх-вниз + микро-наклоны) */
@keyframes floatImage {
  0% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  25% {
    transform: translateY(-8px) rotate(0.8deg) scale(1.01);
  }
  50% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  75% {
    transform: translateY(8px) rotate(-0.8deg) scale(1.01);
  }
  100% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
}

/* WHO */
.about-who {
  padding: 60px 0;
  text-align: center;
  background: radial-gradient(circle at top, rgb(0 0 0), #00000075);
}

.about-big-text {
  font-size: 16px;
  max-width: 700px;
  margin: 12px auto;
  color: var(--text-muted);
}


/* === PHILOSOPHY — НЕОН + ПОКAЧИВАНИЕ + ПОЯВЛЕНИЕ === */

.about-philosophy {
  background: linear-gradient(to bottom, #000000a3, rgba(255, 47, 138, 0.05));
  padding: 60px 0;
}

.philosophy-title {
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  text-align: center;
}

.philosophy-title span {
  color: var(--primary);
}

/* Контейнер списка */
.philosophy-list {
  margin-top: 26px;
  display: flex;
  gap: 22px;
}

/* Элемент */
.philosophy-item {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(20px);

  /* Плавное появление */
  animation: phFade 1s ease forwards;
}

/* Небольшие задержки чтобы появлялись по очереди */
.philosophy-item:nth-child(1) { animation-delay: 0.1s; }
.philosophy-item:nth-child(2) { animation-delay: 0.25s; }
.philosophy-item:nth-child(3) { animation-delay: 0.4s; }

/* Появление */
@keyframes phFade {
  0% { opacity: 0; transform: translateY(22px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===== ИКОНКИ ===== */

.ph-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;

  display: flex;
  justify-content: center;
  align-items: center;

  background: rgba(255,255,255,0.06);
  border-radius: 14px;

  box-shadow:
    0 0 10px rgba(255,47,138,0.35),
    inset 0 0 12px rgba(255,47,138,0.15);

  transition: 0.4s ease;
  will-change: transform, filter;

  /* Плавающая анимация */
  animation: phFloat 6s ease-in-out infinite;
}

/* Разные фазы движения */
.philosophy-item:nth-child(1) .ph-icon { animation-delay: 0s; }
.philosophy-item:nth-child(2) .ph-icon { animation-delay: 1s; }
.philosophy-item:nth-child(3) .ph-icon { animation-delay: 2s; }

/* Парение */
@keyframes phFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

.ph-icon img {
  width: 38px;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.35));
  transition: 0.35s ease;
}

/* ==== Hover эффект ==== */
.philosophy-item:hover .ph-icon {
  transform: scale(1.15) translateY(-4px);
  box-shadow:
    0 0 14px rgba(255,47,138,0.6),
    0 0 22px rgba(86,64,255,0.6),
    inset 0 0 16px rgba(255,47,138,0.3);
}

.philosophy-item:hover .ph-icon img {
  filter:
    drop-shadow(0 0 8px #ff2f8a)
    drop-shadow(0 0 14px #5640ff)
    drop-shadow(0 0 18px rgba(255,255,255,0.8));
}

/* Текст */
.philosophy-item p {
  color: var(--text-muted);
  transition: 0.3s ease;
}

.philosophy-item:hover p {
  color: #fff;
}


/* CHOOSE */
.about-choose {
  padding: 60px 0;
  text-align: center;
}

.choose-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* ====== WHY CHOOSE — ЭФФЕКТЫ, НЕОН, ПОКАЧИВАНИЕ ====== */

.choose-card {
  background: rgba(255,255,255,0.05);
  padding: 24px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  text-align: left;
  position: relative;

  /* GPU-ускорение */
  will-change: transform;

  /* Плавное появление */
  opacity: 0;
  animation: chooseFade 0.9s ease forwards,
             chooseFloat 6s ease-in-out infinite;
}

/* Появление */
@keyframes chooseFade {
  0% { opacity: 0; transform: translateY(22px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Постоянное плавное покачивание */
@keyframes chooseFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

/* Несинхронные задержки движения */
.choose-card:nth-child(1) { animation-delay: 0.1s, 0s; }
.choose-card:nth-child(2) { animation-delay: 0.25s, 0.5s; }
.choose-card:nth-child(3) { animation-delay: 0.4s, 1s; }
.choose-card:nth-child(4) { animation-delay: 0.55s, 1.5s; }

/* Hover — теперь НЕ трогаем translateY, только scale */
.choose-card:hover {
  background: rgba(255,255,255,0.10);
  box-shadow:
    0 0 14px rgba(255,47,138,0.45),
    0 0 22px rgba(86,64,255,0.4),
    0 14px 40px rgba(0,0,0,0.75);
  transform: scale(1.03); /* Раньше была смена translate — убрал */
}

/* Дополнительное неоновое сияние */
.choose-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    130deg,
    rgba(255,47,138,0.45),
    rgba(86,64,255,0.45),
    rgba(255,47,138,0.45)
  );
  filter: blur(16px);
  transition: opacity 0.35s ease;
}

.choose-card:hover::after {
  opacity: 0.9;
}

/* Иконки крупнее */
.choose-icon img {
  width: 48px;
  margin-bottom: 12px;
  transition: 0.35s ease;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.45));
}

/* Glow и масштаб */
.choose-card:hover .choose-icon img {
  transform: scale(1.2);
  filter:
    drop-shadow(0 0 10px #ff2f8a)
    drop-shadow(0 0 16px #5640ff)
    drop-shadow(0 0 22px rgba(255,255,255,0.8));
}

/* Заголовок */
.choose-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  transition: 0.35s ease;
}

.choose-card:hover h3 {
  color: #fff;
  text-shadow:
    0 0 6px rgba(255,47,138,0.8),
    0 0 12px rgba(86,64,255,0.8);
}


/* GOAL SECTION */
.about-goal {
  background: rgba(255,255,255,0.03);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Неоновая аура */
.about-goal::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255,47,138,0.20), transparent 70%);
  filter: blur(40px);
  z-index: 0;
}

.goal-header {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

/* Красивая иконка */
.goal-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 0 10px rgba(255,47,138,0.4),
    0 0 20px rgba(86,64,255,0.25);
  backdrop-filter: blur(6px);
  transition: 0.35s ease;
  animation: floatGoal 4s ease-in-out infinite;
}

.goal-icon {
  width: 24px;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.45));
}

.goal-title {
  font-size: 24px;
  letter-spacing: 0.08em;
  font-weight: 800;
  position: relative;
  z-index: 2;
}

/* Текст */
.goal-text {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 8px auto;
  position: relative;
  z-index: 2;
}

/* Лёгкое красивое парение иконки */
@keyframes floatGoal {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* Hover glow */
.goal-icon-wrap:hover {
  box-shadow:
    0 0 12px rgba(255,47,138,0.7),
    0 0 26px rgba(86,64,255,0.5);
  transform: translateY(-3px);
}


/* CTA */
.final-cta {
  padding: 60px 0;
  text-align: center;
}

.cta-socials {
  margin-top: 20px;
  display: flex;
  gap: 16px;
  justify-content: center;
}

.cta-socials img {
  width: 34px;
}


/* ADAPTIVE */
@media (max-width: 992px) {
  .about-main-inner {
    grid-template-columns: 1fr;
  }
  .choose-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .choose-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 22px;
  }

  .contacts-title {
    font-size: 28px;
  }
}

/* ================== УСЛУГИ ================== */

/* HERO */
.services-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 50px 0 50px;
  background: radial-gradient(circle at 30% 40%, rgb(36 21 90 / 45%), transparent 70%), 
  radial-gradient(circle at 75% 25%, rgb(33 18 57 / 40%), transparent 65%), 
  radial-gradient(circle at 50% 80%, rgb(0 0 0), transparent 70%), 
  radial-gradient(circle at 10% 90%, rgb(97 0 51 / 38%), transparent 75%);
}

.services-hero-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.services-hero-line {
  width: 140px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: linear-gradient(to right, var(--primary), var(--accent));
}

/* БОЛЬШОЙ ИНТРО-БЛОК */
.services-intro {
  background: radial-gradient(circle at top, #190a3b 0, #050018 50%, #02000c 100%);
  padding: 50px 0 60px;
}

.services-intro-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
}

.services-intro-imgwrap {
  border-radius: 26px;
  padding: 18px;
}

.services-intro-imgwrap img {
  border-radius: 18px;
  display: block;
  width: 100%;
  height: auto;
  animation: floatImage 7s ease-in-out infinite;
      transform-origin: center;
      will-change: transform;
      filter: drop-shadow(0 0 16px rgba(255,47,138,0.25));
      transition: filter .35s ease;
    }

    .services-intro-imgwrap img:hover {
  filter: drop-shadow(0 0 8px rgba(167, 11, 79, 0.55))
          drop-shadow(0 0 14px rgba(82, 74, 156, 0.45));
}

/* Само парение (движение вверх-вниз + микро-наклоны) */
@keyframes floatImage {
  0% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  25% {
    transform: translateY(-8px) rotate(0.8deg) scale(1.01);
  }
  50% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  75% {
    transform: translateY(8px) rotate(-0.8deg) scale(1.01);
  }
  100% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
}

.services-intro-heading {
  font-size: 32px;
  margin-bottom: 14px;
}

.services-intro-heading span {
  color: var(--primary);
}

.services-intro-text p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.services-intro-benefit {
  margin-top: 18px;
  margin-bottom: 10px;
  font-size: 18px;
  color: var(--primary);
}

/* ОБЩИЕ БЛОКИ */
.services-block {
  background: var(--bg-alt);
  padding: 100px 0;
}

.services-block-alt {
  background: #050018;
}

.services-block-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: center;
}

.services-block-title {
  font-size: 32px;
  margin-bottom: 12px;
}

.services-block-title span {
  color: var(--primary);
}

.services-block-text > p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.services-block-subtitle {
  font-size: 18px;
  margin: 14px 0 8px;
  font-weight: 700;
}

/* список направлений */
.services-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  font-size: 16px;
  color: var(--text-muted);
}

.services-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
}

.services-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--primary) 0, var(--accent-soft) 100%);
  box-shadow: 0 0 8px rgba(255,47,138,0.6);
}

.services-list li span {
  font-weight: 700;
  color: #fff;
}

/* Картинки справа/слева */
/* Контейнер */
.services-block-image {
  display: flex;
  justify-content: center;
  perspective: 900px; /* эффект глубины */
}

/* Карточка-обёртка */
.services-ill-card {
  width: 100%;
  max-width: 340px;
  border-radius: 24px;
  padding: 16px;
  background: rgba(4,0,25,0.96);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  overflow: hidden;

  animation: illFloat 7s ease-in-out infinite;
  transform-style: preserve-3d;
  transition: transform .4s ease, box-shadow .4s ease;
}

/* Effект при наведении */
.services-ill-card:hover {
  transform: translateY(-6px) scale(1.03) rotateX(2deg) rotateY(-2deg);
  box-shadow: 
      0 0 18px rgba(255,47,138,0.35),
      0 0 28px rgba(86,64,255,0.35),
      0 10px 32px rgba(0,0,0,0.55);
}

/* Картинка */
.services-ill-card img {
  width: 100%;
  height: auto;
  border-radius: 18px;

  animation: imgPulse 5.5s ease-in-out infinite;
  transition: filter .4s ease, transform .4s ease;
}

/* Hover на картинку */
.services-ill-card:hover img {
  filter: brightness(1.15) saturate(1.1);
  transform: scale(1.04);
}


/* ======================== */
/*     АНИМАЦИИ            */
/* ======================== */

/* Парение всего блока */
@keyframes illFloat {
  0%   { transform: translateY(0px); }
  25%  { transform: translateY(-6px); }
  50%  { transform: translateY(0px); }
  75%  { transform: translateY(6px); }
  100% { transform: translateY(0px); }
}

/* Лёгкая пульсация изображения */
@keyframes imgPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.015); }
  100% { transform: scale(1); }
}

/* --- ОКОШКО: ЭФФЕКТ ДЫХАНИЯ --- */
.services-note {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 999px;

  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 12px;
  color: var(--text-muted);

  animation: noteBreath 6s infinite ease-in-out;
}


/* --- KEYFRAMES --- */

/* Пульсация иконки */
@keyframes pulseIcon {
  0% {
    transform: scale(1);
    box-shadow: 
      0 0 8px rgba(255,47,138,0.4),
      0 0 14px rgba(82,64,255,0.25);
  }
  50% {
    transform: scale(1.14);
    box-shadow: 
      0 0 16px rgba(255,47,138,0.8),
      0 0 28px rgba(82,64,255,0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 
      0 0 8px rgba(255,47,138,0.4),
      0 0 14px rgba(82,64,255,0.25);
  }
}

/* Дыхание контейнера */
@keyframes noteBreath {
  0% {
    background: rgba(255,255,255,0.04);
    box-shadow: 0 0 0 rgba(255,47,138,0);
  }
  50% {
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 14px rgba(255,47,138,0.25);
  }
  100% {
    background: rgba(255,255,255,0.04);
    box-shadow: 0 0 0 rgba(255,47,138,0);
  }
}

/* --- ИКОНКА: НЕОНОВАЯ ПУЛЬСАЦИЯ --- */
.services-note-icon {
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;

  border-radius: 50%;
  background: radial-gradient(circle, #ff2f8a 0%, #5e2fff 100%);
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 700;
  font-size: 14px;

  animation: pulseIcon 2.2s infinite ease-in-out;
}

.services-note-icon img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

/* Финальный блок */
.services-final-cta {
  background: #050018;
  padding: 60px 0 50px;
  text-align: center;
}

.services-final-cta h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.services-final-cta p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.services-final-socials {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.services-final-socials img {
  width: 26px;
}

/* АДАПТИВ */
@media (max-width: 992px) {
  .services-intro-inner,
  .services-block-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-intro-imgwrap {
    max-width: 360px;
    margin: 0 auto;
  }

  .services-block-image {
    order: -1;
  }
}

@media (max-width: 600px) {
  .services-hero-title {
    font-size: 28px;
  }

  .services-intro,
  .services-block {
    padding: 40px 0;
  }

  .services-ill-card {
    padding: 12px;
  }

  .services-intro-heading {
    font-size: 22px;
  }

  .services-intro-benefit {
    font-size: 14px;
  }

  .services-intro-text p {
    font-size: 14px;
  }

  .about-page-title {
    font-size: 28px;
  }

  .philosophy-list {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  }

  .philosophy-title {
    font-size: 22px;

  }

  .services-block-title {
    font-size: 22px;
  }

  .services-block-text > p {
    font-size: 14px;
  }

  .services-block-subtitle {
    font-size: 16px;
  }

  .services-list {
    font-size: 14px;
  }
}
  
/* HERO */
.portfolio-hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  text-align: center;
  padding: 50px 0 50px;
  background: radial-gradient(circle at 30% 40%, rgb(36 21 90 / 45%), transparent 70%), 
  radial-gradient(circle at 75% 25%, rgb(33 18 57 / 40%), transparent 65%), 
  radial-gradient(circle at 50% 80%, rgb(0 0 0), transparent 70%), 
  radial-gradient(circle at 10% 90%, rgb(97 0 51 / 38%), transparent 75%);
}

.portfolio-title {
  font-size: 42px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.portfolio-hero .line {
  width: 140px;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  margin: 16px auto 20px;
  border-radius: 10px;
}

.portfolio-hero::before,
.portfolio-hero::after {
  pointer-events: none !important;
}

.portfolio-subtitle {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 15px;
}

/* GRID */
.portfolio-grid-section {
  padding: 60px 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* карточки — такие же как на главной */
.case-image {
  height: 240px;
  background-size: cover;
  background-position: center;
  transition: .6s ease;
}

.case-card {
  background: var(--card-bg);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: .35s ease;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 12px 24px rgba(255,47,138,0.25),
    0 0 22px rgba(86,64,255,0.3);
}

.case-card:hover .case-image {
  transform: scale(1.08);
  filter: brightness(1.18);
}


/* адаптив */
@media (max-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-title {
    font-size: 28px;
  }

}

/* ===========================
   CASE HERO
=========================== */

.case-hero {
  text-align: center;
    position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 50px 0 50px;
  background: radial-gradient(circle at 30% 40%, rgb(36 21 90 / 45%), transparent 70%), 
  radial-gradient(circle at 75% 25%, rgb(33 18 57 / 40%), transparent 65%), 
  radial-gradient(circle at 50% 80%, rgb(0 0 0), transparent 70%), 
  radial-gradient(circle at 10% 90%, rgb(97 0 51 / 38%), transparent 75%);
}

.case-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  font-size: 12px;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.portfolio-title-page {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}


/* ===========================
   GALLERY
=========================== */

.case-gallery {
  padding: 40px 0;
}

/* GRID */
/* GRID */
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}

/* Превью */
.gallery-grid img,
.gallery-item video{
  width:100%;
  height:220px;
  object-fit:cover;
  border-radius:16px;
  cursor:pointer;
  border:1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow-soft);
  transition:transform .35s ease, box-shadow .35s ease, filter .35s ease;
  display:block;
}

.gallery-grid img:hover,
.gallery-item:hover video{
  transform:scale(1.03);
  box-shadow:0 0 20px rgba(255,47,138,0.25),0 0 30px rgba(86,64,255,0.2);
  filter:brightness(1.1);
}

/* Обёртка видео превью */
.gallery-item{ position:relative; }
.gallery-item.video::after{
  content:"▶";
  position:absolute;
  left:50%; top:50%;
  transform:translate(-50%,-50%);
  width:56px; height:56px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,0.35);
  border:1px solid rgba(255,255,255,0.18);
  box-shadow:0 0 18px rgba(255,47,138,0.35),0 0 26px rgba(86,64,255,0.25);
  color:#fff;
  font-size:18px;
  pointer-events:none;
  backdrop-filter:blur(8px);
}

/* Lightbox */
.lightbox{
  position:fixed;
  inset:0;
  background:rgba(5,0,20,0.85);
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease;
  z-index:9999;
}

.lightbox.active{
  opacity:1;
  pointer-events:auto;
}

.lightbox-stage{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  touch-action: none;
  padding:24px;
}

/* чуть приятнее отрисовка при движении */
#lbViewport img,
#lbViewport video {
  max-width: none;
  max-height: none;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox img,
.lightbox video {
  max-width: none;     /* важно: убираем лимиты */
  max-height: none;
  width: auto;
  height: auto;

  border-radius: 20px;
  box-shadow:
    0 0 40px rgba(255,47,138,0.45),
    0 0 80px rgba(86,64,255,0.35);

  cursor: grab;
  transform-origin: center;
  transition: none;    /* убираем блюр от анимации transform */
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;  /* чтобы pinch/drag работали нормально */
}
.lightbox img:active,
.lightbox video:active { cursor: grabbing; }

/* контейнер, который мы двигаем/масштабируем */
.lightbox-viewport{
  will-change: transform;
  transform: translate3d(0,0,0);
}

/* медиа внутри */
.lightbox-viewport img,
.lightbox-viewport video{
  width:100%;
  height:auto;
  max-height:92vh;
  border-radius:20px;
  display:block;
  box-shadow:0 0 40px rgba(255,47,138,0.45),0 0 80px rgba(86,64,255,0.35);
}

.lightbox-viewport img{
  image-rendering: auto;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* чтобы видео нормально помещалось */
.lightbox-viewport video{
  background:#000;
}

/* UI */
.lightbox-ui{
  position:absolute;
  bottom:24px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:10px;
  align-items:center;
  z-index:5;
}

.lightbox-ui button{
  width:44px;
  height:44px;
  border-radius:50%;
  border:none;
  background:rgba(255,255,255,0.08);
  color:#fff;
  font-size:18px;
  cursor:pointer;
  backdrop-filter:blur(8px);
  transition:.25s ease;
}

.lightbox-ui button:hover{
  background:linear-gradient(135deg,var(--primary),var(--accent));
  box-shadow:0 0 18px rgba(255,47,138,0.6);
}

.zoom-indicator{
  padding:8px 14px;
  border-radius:999px;
  font-size:13px;
  background:rgba(0,0,0,0.45);
  color:#fff;
  box-shadow:0 0 10px rgba(86,64,255,0.35);
}

/* Адаптив */
@media (max-width:900px){ .gallery-grid{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:520px){ .gallery-grid{ grid-template-columns:1fr;} }

/* ===========================
   ABOUT PROJECT
=========================== */
.case-about {
  padding: 80px 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,47,138,0.08), transparent 60%),
    radial-gradient(circle at 80% 0%, rgba(86,64,255,0.08), transparent 55%);
}

.case-about p {
  max-width: 820px;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 15px;
}

/* GRID */
.case-info-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* CARD */
.case-info-box {
  position: relative;
  background: rgba(255,255,255,0.05);
  padding: 26px 22px;
  border-radius: 18px;
  text-align: center;

  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 14px 30px rgba(0,0,0,0.5),
    inset 0 0 0 rgba(255,47,138,0);

  transition: transform .35s ease, box-shadow .35s ease, background .35s ease;
  animation: infoBreath 8s ease-in-out infinite;
}

/* иконка */
.case-info-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 10px;
  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 14px rgba(255,47,138,0.45);

  animation: iconPulse 6s ease-in-out infinite;
}

/* hover */
.case-info-box:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.08);
  box-shadow:
    0 18px 36px rgba(255,47,138,0.25),
    0 0 26px rgba(86,64,255,0.35);
}

/* текст */
.case-info-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.case-info-value {
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .case-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .case-info-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= ANIMATIONS ================= */

@keyframes infoBreath {
  0%, 100% {
    box-shadow: 0 14px 30px rgba(0,0,0,0.5);
  }
  50% {
    box-shadow:
      0 14px 30px rgba(0,0,0,0.5),
      0 0 18px rgba(255,47,138,0.2);
  }
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 12px rgba(255,47,138,0.4);
  }
  50% {
    transform: scale(1.12);
    box-shadow:
      0 0 22px rgba(255,47,138,0.75),
      0 0 36px rgba(86,64,255,0.45);
  }
}


/* ===========================
   SOLUTION — ENHANCED
=========================== */

.case-solution {
  padding: 60px 0;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255,47,138,0.06)
  );
}

/* список */
.solution-list {
  margin-top: 22px;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* пункт */
.solution-list li {
  position: relative;
  padding: 14px 18px 14px 44px;
  border-radius: 16px;

  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);

  color: var(--text-muted);
  font-size: 15px;

  opacity: 0;
  transform: translateY(20px);
  transition:
    background .35s ease,
    transform .35s ease,
    box-shadow .35s ease,
    opacity .6s ease;
}

/* появление по скроллу */
.solution-list li.visible {
  opacity: 1;
  transform: translateY(0);
}

/* неоновая точка */
.solution-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);

  width: 10px;
  height: 10px;
  border-radius: 50%;

  background: radial-gradient(
    circle,
    var(--primary),
    var(--accent)
  );

  box-shadow:
    0 0 10px rgba(255,47,138,0.7),
    0 0 18px rgba(86,64,255,0.6);

  animation: pulseDot 4.5s ease-in-out infinite;
}

/* hover */
.solution-list li:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  transform: translateY(-3px);

  box-shadow:
    0 0 18px rgba(255,47,138,0.25),
    0 0 30px rgba(86,64,255,0.2);
}

/* пульсация точки */
@keyframes pulseDot {
  0% {
    transform: translateY(-50%) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-50%) scale(1.4);
    opacity: 1;
  }
  100% {
    transform: translateY(-50%) scale(1);
    opacity: 0.7;
  }
}


/* ===========================
   RESULTS — FLEXWAY EFFECT
=========================== */

.case-results {
  padding: 60px 0;
  position: relative;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 24px;
}

/* Карточка */
.result-box {
  position: relative;
  background: rgba(255,255,255,0.06);
  padding: 28px 26px;
  border-radius: 20px;
  text-align: center;
  overflow: hidden;

  opacity: 0;
  transform: translateY(30px) scale(0.96);

  transition:
    transform .6s ease,
    opacity .6s ease,
    box-shadow .35s ease,
    background .35s ease;
}

/* Появление */
.result-box.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Неоновое дыхание */
.result-box::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(
    circle,
    rgba(255,47,138,0.35) 0%,
    rgba(86,64,255,0.25) 40%,
    transparent 70%
  );
  opacity: 0.25;
  filter: blur(40px);
  animation: resultBreath 8s ease-in-out infinite;
  z-index: 0;
}

@keyframes resultBreath {
  0%   { opacity: 0.18; transform: scale(0.9); }
  50%  { opacity: 0.45; transform: scale(1); }
  100% { opacity: 0.18; transform: scale(0.9); }
}

/* Hover */
.result-box:hover {
  transform: translateY(-8px) scale(1.03);
  background: rgba(255,255,255,0.1);
  box-shadow:
    0 0 28px rgba(255,47,138,0.45),
    0 0 48px rgba(86,64,255,0.35);
}

/* Цифра */
.result-number {
  position: relative;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
  text-shadow:
    0 0 12px rgba(255,47,138,0.6),
    0 0 22px rgba(86,64,255,0.45);

  animation: numberPulse 4.5s ease-in-out infinite;
  z-index: 1;
}

@keyframes numberPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Текст */
.result-text {
  font-size: 14px;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

/* Адаптив */
@media (max-width: 900px) {
  .result-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .result-grid {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   CTA
=========================== */

.case-cta {
  text-align: center;
  padding: 70px 0;
  background: linear-gradient(to bottom, transparent, rgba(255,47,138,0.15));
}

.case-cta h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.case-cta p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ----------- FILTER ----------- */

.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  background: rgba(255,255,255,0.06);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: 0.3s ease;
}

/* Hover эффект */
.filter-btn:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-2px);
}

/* Активный фильтр */
.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  box-shadow: 
    0 0 12px rgba(255,47,138,0.55),
    0 0 18px rgba(86,64,255,0.4);
  transform: translateY(-2px);
}

/* ----------- CARD ANIMATION ----------- */

.case-card.hidden {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}

.case-card.show {
  opacity: 1;
  transform: scale(1);
  transition: opacity .35s ease, transform .35s ease;
}

/* ========================== */
/* 1) ВСПЫШКА ПРИ ПОЯВЛЕНИИ   */
/* ========================== */

.case-card.flash {
  animation: neonFlash 0.55s ease-out;
}

@keyframes neonFlash {
  0% {
    box-shadow:
      0 0 0 rgba(255,47,138,0),
      0 0 0 rgba(86,64,255,0);
    transform: scale(0.95);
  }
  40% {
    box-shadow:
      0 0 24px rgba(255,47,138,0.65),
      0 0 32px rgba(86,64,255,0.55);
    transform: scale(1.05);
  }
  100% {
    box-shadow:
      var(--shadow-soft);
    transform: scale(1);
  }
}

/* ===== MODAL BASE ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 20%,
    rgba(255,47,138,.16) 0%,
    rgba(5,0,24,.88) 55%,
    rgba(0,0,0,.92) 100%);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: .35s ease;
  z-index: 9998;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999; /* выше всего */
  pointer-events: none;
}

.modal-inner {
  position: relative;
  z-index: 10000;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: .35s ease;
  z-index: 99999;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-inner {
  width: min(520px, calc(100% - 32px));
  padding: 26px 22px;
  border-radius: 22px;
  background: rgba(8, 1, 38, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 22px 60px rgba(0,0,0,0.75),
    0 0 26px rgba(255,47,138,0.28),
    0 0 38px rgba(86,64,255,0.22);
  position: relative;
  overflow: hidden;
}

@keyframes modalPop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-inner::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,47,138,.25), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(0,194,255,.18), transparent 55%);
  pointer-events:none;
}

/* CLOSE BUTTON */
.modal-close {
  position: absolute;
  right: 16px;
  top: 14px;
  font-size: 24px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
  transition: .25s;
}

.modal-close:hover {
  opacity: 1;
  color: var(--primary);
}

/* TEXTS */
.modal-title {
  font-size: 22px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

/* FIELDS */
.modal-field {
  margin-bottom: 16px;
}

.modal-field label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.modal-field input{
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 14px;
  padding: 12px 12px;
  outline: none;
  transition: .25s ease;
}

.modal-field input:focus{
  border-color: rgba(255,47,138,0.55);
  box-shadow: 0 0 0 3px rgba(255,47,138,0.18);
}

/* SUCCESS MESSAGE */
.modal-success {
  margin-top: 14px;
  text-align: center;
  color: var(--accent);
  font-size: 14px;
  display: none;
}
.modal-success.show { display: block; }

/* BUTTON STYLE (inherits your .btn but allow full width) */
.modal-btn {
  width: 100%;
  margin-top: 8px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 0 18px rgba(255,47,138,0.18);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  white-space: nowrap;
}

.lang-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 12px rgba(255,47,138,0.45);
}

.lang-btn:hover{
  color:#fff;
  box-shadow:0 0 14px rgba(255,47,138,.25);
}

/* Toast must be fixed on screen */
.fw-toast{
  position:fixed!important;
  right:18px;
  bottom:18px;
  z-index:99999;
  width:min(360px,calc(100vw - 36px));
  opacity:0;
  transform:translateY(14px) scale(.98);
  pointer-events:none;
  transition:.35s ease;
}
.fw-toast.show{opacity:1;transform:translateY(0) scale(1);pointer-events:auto}

.fw-toast-inner{
  display:flex;
  gap:12px;
  align-items:center;
  padding:14px;
  border-radius:18px;
  background:rgba(10,2,40,.88);
  border:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(14px);
  box-shadow:0 18px 50px rgba(0,0,0,.55);
}

/* неоновая подсветка */
.fw-toast-inner::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 20% 30%, rgba(255,47,138,0.35), transparent 55%),
              radial-gradient(circle at 80% 70%, rgba(0,194,255,0.25), transparent 55%);
  filter: blur(20px);
  opacity: 0.9;
  pointer-events: none;
}

.fw-toast.success .fw-toast-inner {
  box-shadow:
    0 18px 50px rgba(0,0,0,0.55),
    0 0 22px rgba(255,47,138,0.22),
    0 0 34px rgba(0,194,255,0.14);
}

.fw-toast.error .fw-toast-inner {
  box-shadow:
    0 18px 50px rgba(0,0,0,0.55),
    0 0 22px rgba(255,47,138,0.28);
}

.fw-toast-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.06);
  box-shadow: inset 0 0 10px rgba(255,47,138,0.18);
}

.fw-toast.success .fw-toast-icon {
  background: linear-gradient(135deg, rgba(255,47,138,0.95), rgba(0,194,255,0.75));
  box-shadow:
    0 0 18px rgba(255,47,138,0.55),
    0 0 28px rgba(0,194,255,0.35);
}

.fw-toast.error .fw-toast-icon {
  background: linear-gradient(135deg, rgba(255,47,138,0.95), rgba(86,64,255,0.75));
  box-shadow:
    0 0 18px rgba(255,47,138,0.55),
    0 0 28px rgba(86,64,255,0.35);
}

.fw-toast-text {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.fw-toast-title {
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}

.fw-toast-desc {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.35;
}

/* лёгкая “вспышка” при появлении */
.fw-toast.show .fw-toast-inner {
  animation: fwToastPop 0.55s ease;
}

@keyframes fwToastPop {
  0% { transform: translateY(10px) scale(0.96); filter: brightness(0.9); }
  55% { transform: translateY(-2px) scale(1.01); filter: brightness(1.1); }
  100% { transform: translateY(0) scale(1); filter: brightness(1); }
}

@media (max-width: 520px) {
  .header-inner {
    flex-wrap: nowrap;       /* чтобы не ломало строки и не создавало лишнюю ширину */
    gap: 8px;
    padding: 16px 10px 10px;
  }

  .logo-bg {
    width: 140px;            /* было 190px — из-за этого часто и появляется overflow */
    height: 42px;
  }

  /* переключатель языка не должен растягиваться */
  .lang-switch {
    flex: 0 0 auto;
  }

  .header-actions {
    flex: 0 0 auto;
    gap: 8px;
  }
}

/* если совсем маленькие экраны — можно ещё сильнее ужать */
@media (max-width: 380px) {
  .logo-bg { width: 125px; }
  .lang-btn { padding: 0 10px; }
}

@media (max-width: 480px){
  .socials{ display:none; }          /* или скрыть одну иконку */
  .btn.btn-outline{ display:none; }  /* как у тебя уже было */
  
  .lang-switch{
    order: 2;
  }
  .burger{
    order: 3;
  }
  .header-actions{
    gap:8px;
  }
}