:root {
  --bg: #0b0e14;
  --panel: #0f1420;
  --muted: #9aa4b2;
  --text: #eef2f8;
  --brand: #22c55e;
  --accent: #7dd3fc;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 14, 20, 0.6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.logo {
  font-weight: 800;
  letter-spacing: 0.5px;
}
.menu a {
  margin: 0 12px;
  color: var(--muted);
}
.menu a:hover {
  color: #fff;
}
.lang-switch {
  display: flex;
  gap: 8px;
}
.lang-switch button {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.lang-switch button.active {
  color: #06110a;
  background: var(--brand);
  border-color: transparent;
  font-weight: 700;
}
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn--primary {
  background: var(--brand);
  color: #06110a;
  border-color: transparent;
  font-weight: 700;
}
.btn--ghost:hover {
  border-color: var(--text);
}

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 64px;
}
.hero__bg {
  position: absolute;
  inset: -10% -10% 0 -10%;
  background: radial-gradient(
      60% 30% at 20% 10%,
      rgba(125, 211, 252, 0.12),
      transparent 60%
    ),
    radial-gradient(
      60% 40% at 80% 10%,
      rgba(34, 197, 94, 0.12),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%);
  transform: translate3d(0, 0, 0);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero__text h1 {
  font-size: 48px;
  line-height: 1.05;
  margin: 0;
}
.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 56ch;
}
.cta-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.hero__stats {
  display: flex;
  gap: 32px;
  margin-top: 22px;
}
.hero__stats span {
  font-size: 28px;
  font-weight: 800;
}
.hero__stats small {
  display: block;
  color: var(--muted);
}

/* === Телефон: чистая тень и появление справа === */
.hero__mockup {
  position: relative;
  will-change: transform, opacity;
}
.hero__mockup img {
  display: block;
  max-width: 380px;
  width: 100%; /* масштабируется, но не больше 340px */
  height: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;

  /* тень по контуру PNG, без «рамки» */
  filter: drop-shadow(0 28px 64px rgba(0, 0, 0, 0.55));
}
@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(120px) rotate(6deg) scale(0.95);
  }
  80% {
    opacity: 1;
    transform: translateX(-12px) rotate(-1deg) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(0) scale(1);
  }
}
.hero__mockup.is-inview {
  animation: slideInRight 1.8s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

.hero__mockup.is-inview {
  animation: slideInRight 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  opacity: 0.6;
}

/* Sections */
.section {
  padding: 84px 0;
}
.section--alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}
.section__title {
  font-size: 34px;
  margin: 0 0 28px;
}
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  background: var(--panel);
  padding: 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.steps li {
  background: var(--panel);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery img {
  width: 100%;
  border-radius: 51px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.section--cta {
  background: radial-gradient(
    50% 50% at 50% 30%,
    rgba(34, 197, 94, 0.12),
    transparent 60%
  );
}
.cta__box {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
}

/* CONTACT FORM */
.contact-form {
  display: grid;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}
.contact-form .form-row {
  display: flex;
  flex-direction: column;
}
.contact-form label {
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--panel);
  color: var(--text);
  font-size: 15px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
}
.contact-form button {
  width: fit-content;
  padding: 12px 24px;
  font-weight: 600;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__links a {
  color: var(--muted);
  margin-left: 16px;
}
.footer__links a:hover {
  color: #fff;
}

/* Safe animations: visible by default, hide only if JS active */
.reveal-up {
  opacity: 1;
  transform: none;
}
.reveal-fade {
  opacity: 1;
}
.js .reveal-up {
  opacity: 0;
  transform: translateY(24px);
}
.js .reveal-fade {
  opacity: 0;
}

/* Responsive */
@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .hero__text h1 {
    font-size: 36px;
  }
}

/* ===== MOBILE HEADER — CSS-only burger (чистая версия) ===== */
.nav__checkbox {
  display: none;
}

.nav__toggle {
  position: relative;
  width: 44px;
  height: 36px;
  margin-right: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  z-index: 80;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav__bar {
  width: 22px;
  height: 2px;
  background: #fff;
  opacity: 0.9;
  transition: 0.25s;
}

/* десктоп */
@media (min-width: 821px) {
  .menu {
    position: static;
    display: flex;
    gap: 12px;
    background: transparent;
    border: none;
    padding: 0;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav__toggle {
    display: none;
  }
}

/* мобилка */
@media (max-width: 820px) {
  .nav {
    position: sticky;
    top: 0;
    z-index: 70;
  }
  .nav__inner {
    position: relative;
    gap: 10px;
  }
  .nav__toggle {
    display: flex;
  }
  .lang-switch {
    margin-left: auto;
    display: flex;
    gap: 6px;
  }

  .menu {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(15, 20, 32, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 4%;
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s;
    z-index: 60;
  }
  .menu a {
    padding: 10px 8px;
    border-radius: 8px;
  }
  .menu a:active {
    background: rgba(255, 255, 255, 0.06);
  }

  /* анимация крестика */
  .nav__checkbox:checked ~ .nav__toggle .nav__bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .nav__checkbox:checked ~ .nav__toggle .nav__bar:nth-child(2) {
    opacity: 0;
  }
  .nav__checkbox:checked ~ .nav__toggle .nav__bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* меню открыто */
  .nav__checkbox:checked ~ .menu {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* Градиент на "Bot" в логотипе */
.nav .logo__bot {
  display: inline-block; /* иногда требуется для clip */
  background: linear-gradient(90deg, var(--brand), #4ade80);
  -webkit-background-clip: text; /* Chrome/Safari */
  background-clip: text; /* Firefox */
  -webkit-text-fill-color: transparent; /* Chrome/Safari */
  color: transparent; /* Firefox */
  font-weight: 800;
}

/* Фолбэк, если background-clip:text не поддерживается */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .nav .logo__bot {
    color: var(--brand);
  }
}

/* ===== AvtoBot: 3D Features Cards ===== */
/* ===== AvtoBot: 3D Features Cards (адаптация под cards-3d__*) ===== */

#features .cards-3d {
  padding: 30px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 20px;
}

@media (max-width: 1100px) {
  #features .cards-3d {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}
@media (max-width: 640px) {
  #features .cards-3d {
    grid-template-columns: 1fr;
  }
}

#features .cards-3d__parent {
  height: 400px;
  width: 300px;
  padding: 20px;
  perspective: 1000px; /* перспектива для 3D */
  position: relative;
}

#features .cards-3d__card {
  position: relative;
  height: 100%;
  width: 100%;
  padding-top: 100px;
  border-radius: 10px;
  background-image: url("https://images.pexels.com/photos/1629236/pexels-photo-1629236.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1");
  background-position: center center;
  background-size: cover;

  transform-style: preserve-3d;
  transition: all 0.5s ease-in-out;
}

#features .cards-3d__card:hover {
  background-position: 80% 20%;
  transform: rotate3d(0.5, 1, 0, 30deg);
}

#features .cards-3d__content {
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.811);
  border-radius: 0 0 10px 10px;
  box-shadow: rgba(0, 115, 255, 0.925) 0px 20px 50px -25px;
  transition: all 0.5s ease-in-out;
  padding: 50px 25px 25px;
  transform-style: preserve-3d;
}

/* фиксируем расположение кнопки */
#features .cards-3d__content {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

#features .cards-3d__title {
  margin: 0;
}
#features .cards-3d__text {
  margin-top: 10px;
}

#features .cards-3d__btn {
  display: inline-block;
  margin-top: auto; /* прижимает вниз */
  padding-top: 12px;
  transform: translateZ(20px);
  will-change: transform;
}

#features .cards-3d__btn:hover {
  transform: translateZ(50px);
}

/* ===== элементы внутри ===== */

#features .cards-3d__title {
  color: white;
  font-size: 25px;
  font-weight: 900;
  transition: all 0.5s ease-in-out;
  transform: translate3d(0, 0, 20px);
}
#features .cards-3d__title:hover {
  transform: translate3d(0, 0, 50px);
}

#features .cards-3d__text {
  padding-top: 15px;
  font-size: 12px;
  color: rgb(185, 185, 185);
  transition: all 0.5s ease-in-out;
  transform: translate3d(0, 0, 20px);
}
#features .cards-3d__text:hover {
  transform: translate3d(0, 0, 50px);
}

#features .cards-3d__btn {
  cursor: pointer;
  background: none;
  border: none;
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
  color: rgb(0, 136, 255);
  padding-top: 15px;
  transition: all 0.5s ease-in-out;
  transform: translate3d(0, 0, 20px);
}
#features .cards-3d__btn:hover {
  transform: translate3d(0, 0, 50px);
}

/* ===== бейдж даты ===== */
#features .cards-3d__date {
  position: absolute;
  top: 75px;
  left: 25px;
  height: 60px;
  width: 60px;
  background-color: #000;
  border-radius: 10px;
  padding: 10px;
  box-shadow: rgb(0, 102, 255) 0px 20px 60px 0px,
    rgb(0, 200, 255) 0px 18px 36px -18px;
  transform: translate3d(0, 0, 50px);
}

#features .cards-3d__date span {
  display: block;
  text-align: center;
}

#features .cards-3d__month {
  color: white;
  font-size: 11px;
  font-weight: 700;
}
#features .cards-3d__day {
  font-size: 20px;
  font-weight: 900;
  color: rgb(0, 136, 255);
}

/* ===== оттенки для карточек ===== */
#features .cards-3d__parent--c2 {
  filter: hue-rotate(150deg);
}
#features .cards-3d__parent--c3 {
  filter: hue-rotate(300deg);
}
#features .cards-3d__parent--c4 {
  filter: hue-rotate(90deg);
}

/* === GALLERY / CARDS — единая версия без дублей === */
.gallery {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 0;
}

/* стекло + glow */
.card {
  width: 340px;
  height: 540px;
  border-radius: 30px;
  overflow: hidden;
  position: relative;

  /* стеклянная подложка (светлая, НЕ синяя) */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.08)
  );
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 35px rgba(120, 190, 255, 0.35);

  transform: rotate(-2deg) scale(0.95);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.card:hover {
  transform: rotate(0) scale(1);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.35),
    0 0 55px rgba(120, 190, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.45);
}

/* мягкая «подсветка» вокруг карточки */
.card::before {
  content: "";
  position: absolute;
  inset: -15%;
  border-radius: 40px;
  background: radial-gradient(
    60% 50% at 50% 20%,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(255, 255, 255, 0.15) 35%,
    rgba(0, 0, 0, 0) 70%
  );
  filter: blur(22px);
  opacity: 0.85;
  pointer-events: none;
}

/* блик сверху */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0) 40%
  );
  mix-blend-mode: screen;
  pointer-events: none;
}

/* медиа внутри карточки */
.svg-card,
.card img {
  width: 100%;
  height: 100%;
  display: block;
}

/* ЧТО ВАЖНО: глушим синие заливки из SVG, если нет фото */
.svg-card rect {
  fill: transparent !important;
}
.svg-card path[fill]:not([fill="none"]) {
  fill: transparent !important;
}
/* если у вас есть рамка в SVG, задайте ей stroke в самом SVG или отдельным классом */

/* чуть увеличим читаемость картинок */
.card img {
  filter: contrast(1.07) brightness(1.05);
}

/* === #screens: компактные карточки === */
#screens {
  /* удобно править один раз */
  --card-w: 280px;
  --card-h: 440px;
  --card-r: 22px;
  --card-glow-blur: 16px;
}

#screens .gallery {
  gap: 1.25rem;
}

#screens .card {
  width: var(--card-w);
  height: var(--card-h);
  border-radius: var(--card-r);
}

#screens .card::before {
  inset: -12%; /* меньше аура */
  border-radius: calc(var(--card-r) + 8px);
  filter: blur(var(--card-glow-blur));
}

#screens .card::after {
  border-radius: inherit; /* блик под радиус */
}

/* медиа внутри карточки + убираем «лишний» большой радиус у .gallery img */
#screens .svg-card,
#screens .card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit; /* берём радиус карточки */
}

/* адаптив: ещё компактнее на меньших экранах */
@media (max-width: 980px) {
  #screens {
    --card-w: 240px;
    --card-h: 380px;
    --card-r: 20px;
  }
}
@media (max-width: 560px) {
  #screens {
    --card-w: 220px;
    --card-h: 340px;
    --card-r: 18px;
  }
}

/* === #screens: более прозрачные карточки === */
#screens {
  /* прозрачности можно крутить тут */
  --glass-top: 0.12; /* было .22 */
  --glass-bottom: 0.04; /* было .08 */
  --border-alpha: 0.18; /* было .25 */
  --blur: 10px; /* было 14px */
  --sat: 120%; /* было 140% */

  /* если подключён зелёный тинт — делаем его слабее */
  --brand-rgb: 34, 197, 94; /* #22c55e (на всякий случай) */
  --tint: 0.1; /* было .18 */
  --glow: 0.25; /* было .35 */
  --glow-hover: 0.42; /* было .58 */
}

/* стекло значительно прозрачнее */
#screens .card {
  background: radial-gradient(
      120% 100% at 50% -10%,
      rgba(var(--brand-rgb), var(--tint)) 0%,
      rgba(0, 0, 0, 0) 70%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, var(--glass-top)),
      rgba(255, 255, 255, var(--glass-bottom))
    );
  border-color: rgba(255, 255, 255, var(--border-alpha));
  backdrop-filter: blur(var(--blur)) saturate(var(--sat));
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--sat));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24),
    0 0 32px rgba(var(--brand-rgb), var(--glow));
}

/* уменьшенное свечение при ховере */
#screens .card:hover {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3),
    0 0 48px rgba(var(--brand-rgb), var(--glow-hover));
}

/* аура вокруг — тоже слабее и прозрачнее */
#screens .card::before {
  inset: -12%;
  background: radial-gradient(
    60% 50% at 50% 20%,
    rgba(var(--brand-rgb), 0.42) 0%,
    rgba(var(--brand-rgb), 0.12) 35%,
    rgba(0, 0, 0, 0) 70%
  );
  filter: blur(14px);
  opacity: 0.7;
}

/* блик — более лёгкий */
#screens .card::after {
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(var(--brand-rgb), 0.1) 20%,
    rgba(255, 255, 255, 0) 40%
  );
}

/* внутри SVG не даём появляться «плашкам» */
#screens .svg-card rect {
  fill: transparent !important;
}
#screens .svg-card path[fill]:not([fill="none"]) {
  fill: transparent !important;
}

/* === #screens: текст внутри карточек === */
#screens .card {
  position: relative;
}

/* Контент-слой поверх стекла (без фона, максимально прозрачно) */
#screens .card__content {
  position: absolute;
  inset: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: calc(var(--card-r) - 8px);
  pointer-events: none; /* чтобы hover работал на всю карту */
}

/* Текст читаемее, но без плотной подложки */
#screens .card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
#screens .card__text {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* бейдж */
#screens .card__badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  color: #06110a;
  background: rgba(var(--brand-rgb, 34, 197, 94), 0.22);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  pointer-events: auto;
}

/* CTA-кнопка (чуть «воздушная») */
#screens .card__cta {
  margin-top: auto;
  width: fit-content;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  transition: 0.2s ease;
  pointer-events: auto;
}
#screens .card__cta:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
}

/* Адаптив */
@media (max-width: 560px) {
  #screens .card__title {
    font-size: 16px;
  }
  #screens .card__text {
    font-size: 13px;
  }
}

/* Если всё же нужен лёгкий «подложка-туман» под текстом — раскомментируйте: */
/*
#screens .card__content{
  background: linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.06));
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(3px);
}
*/
/* Общий стиль кнопок */
.btn-social {
  position: fixed;
  right: 20px;
  font-size: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  z-index: 9999;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover эффект */
.btn-social:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

/* WhatsApp */
.btn-whatsapp {
  bottom: 100px;
  background: #25d366;
  animation: pulse-whatsapp 1.5s ease-out infinite;
}

/* Telegram */
.btn-telegram {
  bottom: 180px;
  background: #0088cc;
  animation: pulse-telegram 1.5s ease-out infinite;
}

/* Пульс WhatsApp */
@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  80% {
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Пульс Telegram */
@keyframes pulse-telegram {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.6);
  }
  80% {
    box-shadow: 0 0 0 20px rgba(0, 136, 204, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 136, 204, 0);
  }
}

/* Контейнер CTA-кнопок (если нужно выровнять/распределить) */
.cta__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Базовая кнопка вашего стиля */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease;
}

/* Левый значок в кнопке */
.btn__icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: currentColor;
}

/* Вариант WhatsApp (заливка зелёная) */
.btn--wa {
  background: #25d366;
  color: #0b1a12;
  border-color: transparent;
}
.btn--wa:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
}

/* Вариант Telegram (прозрачная с обводкой) */
.btn--tg {
  background: rgba(255, 255, 255, 0.04);
  color: #dbe4ea;
  border-color: rgba(255, 255, 255, 0.12);
}
.btn--tg:hover {
  color: #fff;
  border-color: #0088cc;
  box-shadow: 0 8px 24px rgba(0, 136, 204, 0.25);
}

/* Небольшая адаптация под мобильные */
@media (max-width: 560px) {
  .btn {
    padding: 11px 16px;
    gap: 8px;
  }
  .btn__icon {
    width: 18px;
    height: 18px;
  }
}

/* Центровка кнопок */
.cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 1rem;
}

/* Кнопки с иконками */
.btn--icon-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Иконки */
.btn__icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: fill 0.25s ease, filter 0.25s ease;
}

/* Подсветка при hover */
.btn--primary:hover .wa-icon {
  filter: drop-shadow(0 0 6px #25d366);
}

.btn--ghost:hover .tg-icon {
  filter: drop-shadow(0 0 6px #0088cc);
}

/* Подсветка иконок при hover — заметнее и без обрезания */
.btn__icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
  overflow: visible; /* важно: чтобы glow не обрезался */
  transition: filter 0.25s ease, transform 0.25s ease;
}

/* WhatsApp glow */
.btn--primary:hover .wa-icon,
.btn--primary:focus-visible .wa-icon {
  filter: drop-shadow(0 0 2px rgba(34, 197, 94, 0.95))
    drop-shadow(0 0 8px rgba(34, 197, 94, 0.6))
    drop-shadow(0 0 14px rgba(34, 197, 94, 0.45));
  transform: translateZ(0); /* прогрев рендера */
}

/* Telegram glow */
.btn--ghost:hover .tg-icon,
.btn--ghost:focus-visible .tg-icon {
  filter: drop-shadow(0 0 2px rgba(0, 136, 204, 0.95))
    drop-shadow(0 0 8px rgba(0, 136, 204, 0.6))
    drop-shadow(0 0 14px rgba(0, 136, 204, 0.45));
  transform: translateZ(0);
}

/* Кнопки по центру */
.cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 1rem;
}

/* Кнопки с иконками */
.btn--icon-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: visible;
}
.btn__icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

/* Обёртка иконки с пульсацией */
.btn__icon-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px; /* область для свечения */
  overflow: visible;
}

/* Цвета свечения через переменную */
.wa-glow {
  --glow: #25d366;
} /* WhatsApp green */
.tg-glow {
  --glow: #0088cc;
} /* Telegram blue */

/* Само свечение: мягкий круг, который расширяется и растворяется */
.btn__icon-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--glow);
  opacity: 0.45;
  filter: blur(6px);
  transform: scale(0.65);
  animation: icon-pulse 1.6s ease-out infinite;
  pointer-events: none;
}

/* Чуть сильнее пульсация при hover на кнопке */
.btn:hover .btn__icon-wrap::after,
.btn:focus-visible .btn__icon-wrap::after {
  animation-duration: 1.1s;
  opacity: 0.65;
  filter: blur(7px);
}

/* Кейфрейм пульсации */
@keyframes icon-pulse {
  0% {
    transform: scale(0.55);
    opacity: 0;
  }
  15% {
    transform: scale(0.65);
    opacity: 0.55;
  }
  70% {
    transform: scale(1.25);
    opacity: 0.1;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

/* Базовый стиль для иконок */
.btn__icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  position: relative;
  z-index: 1;
}

/* Общий контейнер пульсации */
.btn__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 120%;
  height: 120%;
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
}

/* WhatsApp — зелёный пульс */
.wa-icon::after {
  background: rgba(37, 211, 102, 0.6);
  animation: pulse-wa 2s infinite;
}

@keyframes pulse-wa {
  0% {
    transform: scale(0.6);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.8);
    opacity: 0;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* Telegram — синий пульс */
.tg-icon::after {
  background: rgba(0, 136, 204, 0.6);
  animation: pulse-tg 2s infinite;
}

@keyframes pulse-tg {
  0% {
    transform: scale(0.6);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.8);
    opacity: 0;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* === CTA Buttons: full-button pulse === */
.section--cta .btn {
  position: relative;
  overflow: visible; /* чтобы волны не обрезались */
  will-change: transform, box-shadow;
}

/* Базовые параметры волн */
.section--cta .btn::before,
.section--cta .btn::after {
  content: "";
  position: absolute;
  inset: -6px; /* чуть больше самой кнопки */
  border-radius: 12px; /* под ваш радиус кнопок */
  pointer-events: none;
  opacity: 0;
  transform: scale(0.9);
}

/* WhatsApp — зелёные волны */
.section--cta .btn--primary::before,
.section--cta .btn--primary::after {
  border: 2px solid rgba(34, 197, 94, 0.55);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.35);
  animation: btn-ring 1.6s ease-out infinite;
}
.section--cta .btn--primary::after {
  animation-delay: 0.35s; /* вторая волна с задержкой */
}

/* Telegram — синие волны */
.section--cta .btn--ghost::before,
.section--cta .btn--ghost::after {
  border: 2px solid rgba(0, 136, 204, 0.55);
  box-shadow: 0 0 18px rgba(0, 136, 204, 0.35);
  animation: btn-ring 1.6s ease-out infinite;
}
.section--cta .btn--ghost::after {
  animation-delay: 0.35s;
}

/* Усиливаем glow и ускоряем при hover/focus */
.section--cta .btn:hover::before,
.section--cta .btn:hover::after,
.section--cta .btn:focus-visible::before,
.section--cta .btn:focus-visible::after {
  box-shadow: 0 0 22px currentColor;
  animation-duration: 1.2s;
}

/* Кейфрейм расширяющейся «волны» */
@keyframes btn-ring {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  15% {
    transform: scale(1);
    opacity: 0.55;
  }
  70% {
    transform: scale(1.25);
    opacity: 0.12;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Общий стиль */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn__icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* WhatsApp кнопка */
.btn--wa {
  background: #25d366;
  color: #fff; /* текст и иконка белые */
  border: none;
}
.btn--wa:hover {
  background: #1ebe5b;
  transform: translateY(-1px);
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.5);
}

/* Telegram кнопка */
.btn--tg {
  background: #0088cc;
  color: #fff; /* текст и иконка белые */
  border: none;
}
.btn--tg:hover {
  background: #007ab8;
  transform: translateY(-1px);
  box-shadow: 0 0 15px rgba(0, 136, 204, 0.5);
}

/* зелёный анимированный градиент для слова "Bot" */
.logo__bot {
  display: inline-block;
  background: linear-gradient(90deg, #22c55e, #4ade80, #22c55e);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 800;
  animation: bot-shine 3s linear infinite;
}
@keyframes bot-shine {
  to {
    background-position: 200% center;
  }
}
/* ===== FIX: выравнивание кнопок ===== */
/* По умолчанию (Hero) — слева */
.hero .cta-row {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  flex-wrap: wrap;
  justify-content: flex-start !important;
}
/* Только в нижнем CTA — по центру */
.section--cta .cta-row {
  display: flex;
  gap: 16px;
  margin-top: 1rem;
  justify-content: center !important;
}

/* ===== FIX: глушим старые пульсы у иконок (если были) ===== */
.btn__icon::after,
.btn__icon-wrap::after {
  content: none !important;
  animation: none !important;
}

/* ===== Брендовые кнопки в CTA (цвета и ховер) ===== */
.btn--wa {
  background: #25d366;
  color: #fff;
  border: none;
}
.btn--wa:hover {
  background: #1ebe5b;
  transform: translateY(-1px);
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.5);
}

.btn--tg {
  background: #0088cc;
  color: #fff;
  border: none;
}
.btn--tg:hover {
  background: #007ab8;
  transform: translateY(-1px);
  box-shadow: 0 0 15px rgba(0, 136, 204, 0.5);
}

/* Иконки внутри кнопок — наследуют цвет текста (WA будет белым) */
.btn__icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ===== Пульсация всей кнопки — только в CTA ===== */
.section--cta .btn {
  position: relative;
  overflow: visible;
  will-change: transform, box-shadow;
}
.section--cta .btn::before,
.section--cta .btn::after {
  content: "";
  position: absolute;
  inset: -6px; /* волна чуть больше кнопки */
  border-radius: 12px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.9);
}

/* Волны для WhatsApp */
.section--cta .btn--wa::before,
.section--cta .btn--wa::after {
  border: 2px solid rgba(34, 197, 94, 0.55);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.35);
  animation: btn-ring 1.6s ease-out infinite;
}
.section--cta .btn--wa::after {
  animation-delay: 0.35s;
}

/* Волны для Telegram */
.section--cta .btn--tg::before,
.section--cta .btn--tg::after {
  border: 2px solid rgba(0, 136, 204, 0.55);
  box-shadow: 0 0 18px rgba(0, 136, 204, 0.35);
  animation: btn-ring 1.6s ease-out infinite;
}
.section--cta .btn--tg::after {
  animation-delay: 0.35s;
}

/* Усиливаем эффект при hover/focus */
.section--cta .btn:hover::before,
.section--cta .btn:hover::after,
.section--cta .btn:focus-visible::before,
.section--cta .btn:focus-visible::after {
  animation-duration: 1.2s;
  box-shadow: 0 0 22px currentColor;
}

/* Кейфрейм расширяющейся волны */
@keyframes btn-ring {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  15% {
    transform: scale(1);
    opacity: 0.55;
  }
  70% {
    transform: scale(1.25);
    opacity: 0.12;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* ===== Эффект для слова Bot (общий) ===== */
.logo__bot {
  display: inline-block;
  background: linear-gradient(90deg, #22c55e, #4ade80, #22c55e);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 800;
  animation: bot-shine 3s linear infinite;
}
@keyframes bot-shine {
  to {
    background-position: 200% center;
  }
}

/* ===== Modal (lightbox) ===== */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  z-index: 1000;
}
.modal.is-open {
  display: flex;
  animation: modal-fade 0.18s ease-out;
}
@keyframes modal-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.modal__dialog {
  width: min(760px, 92%);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
  transform: scale(0.96);
  opacity: 0;
  animation: modal-pop 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) 0.06s forwards;
  position: relative;
}
@keyframes modal-pop {
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.modal__content {
  padding: 22px 22px 24px;
}
.modal__title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
}
.modal__content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}
.modal__close:hover {
  background: rgba(255, 255, 255, 0.08);
}

/************ FOOTER: social icons (clean & fixed) ************/

/* ряд ссылок в футере */
.footer__links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* текстовые ссылки — серые, на ховере белые */
.footer__links a:not(.footer__icon) {
  color: var(--muted);
}
.footer__links a:not(.footer__icon):hover {
  color: #fff;
}

/* контейнер соц-иконок */
.footer__social {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* базовый вид круглых кнопок */
.footer__icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.footer__icon i {
  font-size: 16px;
  line-height: 1;
  color: #fff !important; /* всегда белые значки */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* бренды */
.footer__ig {
  background: linear-gradient(
    45deg,
    #f58529,
    #feda77,
    #dd2a7b,
    #8134af,
    #515bd4
  );
}
.footer__fb {
  background: #1877f2;
}
.footer__wa {
  background: #25d366;
}
.footer__tg {
  background: #0088cc;
}

/* hover glow */
.footer__icon:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.05) contrast(1.05);
}
.footer__ig:hover {
  box-shadow: 0 0 16px rgba(221, 42, 123, 0.35);
}
.footer__fb:hover {
  box-shadow: 0 0 16px rgba(24, 119, 242, 0.35);
}
.footer__wa:hover {
  box-shadow: 0 0 16px rgba(37, 211, 102, 0.35);
}
.footer__tg:hover {
  box-shadow: 0 0 16px rgba(0, 136, 204, 0.35);
}

/* клавиатурный фокус */
.footer__icon:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85),
    0 0 0 6px rgba(255, 255, 255, 0.2);
}

/* FAQ layout + стили вопросов */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
}

/* убираем дефолтный треугольник и делаем ховер */
.faq summary {
  list-style: none; /* FF/стандарты */
  cursor: pointer;
  font-weight: 700;
  outline: none;
}
.faq summary::-webkit-details-marker {
  display: none;
} /* Chrome/Safari */
.faq summary:hover {
  color: #fff;
}

/* раскрытое состояние */
.faq[open] {
  border-color: rgba(255, 255, 255, 0.18);
}
.faq p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}