:root {
  --bg: #0b1020;
  --card: #101735;
  --muted: #94a3b8;
  --text: #e6eaf2;
  --brand: #48a7ff;
  --brand-2: #7c3aed;
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.35);
  --max: 1300px;
}

/* Base */
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #0b1020, #0b1020 55%, #0a0f25);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    "Noto Sans", sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--brand), #6ee7ff);
  color: #001018;
  border: 0;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: saturate(1.1);
}
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

/* Header (как у тебя) */
header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(11, 16, 32, 0.6);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  z-index: 30;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  transition: gap 0.35s ease, min-width 0.35s ease;
  flex-shrink: 0;
  min-width: 260px;
}
.logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: url("../img/logo-mini.png") center/contain no-repeat;
}
.brand-words {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  margin-left: 10px;
}
.brand-word {
  position: relative;
  display: inline-block;
  overflow: hidden;
  max-width: 180px;
  transition: max-width 0.35s ease;
}
.brand-word::after {
  content: attr(data-letter);
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.word-text {
  display: inline-block;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.brand-collapsed {
  gap: 0;
}
.brand-collapsed .brand-words {
  gap: 0;
  margin-left: 10px;
}
.brand-collapsed .brand-word {
  max-width: 0.95em;
}
.brand-collapsed .brand-word .word-text {
  opacity: 0;
  transform: translateY(-4px);
}
.brand-collapsed .brand-word::after {
  opacity: 1;
  letter-spacing: -0.04em;
}
.brand.brand-collapsed:hover .brand-word {
  max-width: 180px;
}
.brand.brand-collapsed:hover .brand-words {
  gap: 6px;
}
.brand.brand-collapsed:hover .brand-word .word-text {
  opacity: 1;
  transform: translateY(0);
}
.brand.brand-collapsed:hover .brand-word::after {
  opacity: 0;
}

@media (max-width: 960px) {
  .brand {
    min-width: auto;
    flex-shrink: 1;
  }
}
.nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
}
.nav a.btn {
  color: var(--bg);
}
.nav a:hover {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
}

/* Десктопный дропдаун */
.dropdown-parent {
  position: relative;
}
.dropdown-parent .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: rgba(11, 16, 32, 0.95);
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  list-style: none;
  padding: 8px 0;
  margin: 0;
  z-index: 50;
}
.dropdown-parent:hover .dropdown {
  display: block;
}
.dropdown-parent .dropdown a {
  display: block;
  padding: 10px 14px;
  color: var(--muted);
  border-radius: 0;
}
.dropdown-parent .dropdown a:hover {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text);
}

/* Видимость */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}
@media (min-width: 769px) {
  .only-mobile {
    display: none !important;
  }
}

/* Бургер */
.burger {
  font-size: 26px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}

/* ===== Mobile Menu Overlay ===== */
.mm {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none; /* по умолчанию не кликабельно */
}
.mm[aria-hidden="false"] {
  pointer-events: auto;
}

/* Затемнение */
.mm__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* Панель */
.mm__panel {
  position: absolute;
  inset: 0;
  background: rgba(11, 16, 32, 0.98);
  transform: translateX(100%); /* спрятано */
  transition: transform 0.3s ease;
  padding: 84px 24px 40px; /* отступ под хедер */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: 100dvh; /* iOS-safe */
  overflow-y: auto;
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.4);
}

/* Активное состояние */
.mm[aria-hidden="false"] .mm__scrim {
  opacity: 1;
}
.mm[aria-hidden="false"] .mm__panel {
  transform: translateX(0);
}

/* Контент меню */
.mm__content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mm__content li {
  margin: 18px 0;
}
.mm__content a {
  display: block;
  padding: 10px 4px;
  font-size: 18px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 10px;
}
.mm__content a:hover {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
}

/* Подменю внутри мобильного меню */
.mm__content .dropdown {
  display: none; /* скрыто по умолчанию */
  position: static !important; /* важно: не absolute */
  background: rgba(255, 255, 255, 0.02);
  margin: 6px 0 0 12px;
  padding: 6px 0;
  border-left: 2px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
}

.mm__content .dropdown li {
  margin: 0;
}

.mm__content .dropdown a {
  padding: 8px 12px;
  font-size: 16px;
  color: var(--muted);
}

.mm__content .dropdown a:hover {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text);
}

/* Кнопка закрытия */
.mm__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: rgba(148, 163, 184, 0.12);
  color: var(--text);
  font-size: 18px;
  line-height: 40px;
}
.mm__close:hover {
  background: rgba(148, 163, 184, 0.2);
}

/* Блокировка скролла страницы при открытом меню */
html.mm-lock,
body.mm-lock {
  overflow: hidden !important;
}

/* Мобильные брейкпоинты */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
}
.hero .inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
  padding: 72px 0;
}
/* Начальное состояние */
.glow {
  position: absolute;
  inset: -20% -30% auto -30%;
  height: 500px;
  background: radial-gradient(
      600px 260px at 40% 20%,
      rgba(72, 167, 255, 0.25),
      transparent 60%
    ),
    radial-gradient(
      700px 280px at 80% -10%,
      rgba(124, 58, 237, 0.2),
      transparent 60%
    );
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 1s ease, transform 1s ease;
}

/* Класс для включения анимации */
.glow.visible {
  opacity: 1;
  transform: scale(1);
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Text */
h1 {
  font-size: 48px;
  line-height: 1.05;
  margin: 16px 0 14px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
h2 {
  font-size: 32px;
  margin: 0;
}
.lead {
  font-size: 18px;
  color: #cbd5e1;
  max-width: 64ch;
}
.muted {
  color: var(--muted);
}
.badge,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 99px;
  font-size: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
}

/* Grid + Cards */
.grid {
  display: grid;
  gap: 18px;
}
.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}
.cards-4 {
  grid-template-columns: repeat(4, 1fr);
}
.card {
  background: linear-gradient(
    180deg,
    rgba(20, 25, 54, 0.9),
    rgba(13, 18, 40, 0.95)
  );
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.card h3 {
  margin: 8px 0 6px;
  font-size: 18px;
}
.card p {
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
}

/* Sections */
section {
  padding: 56px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}
section .head {
  margin-bottom: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 768px) {
  section .head {
    flex-direction: column;
    align-items: flex-start; /* чтобы текст прижался влево */
  }
}

/* Services */
.service {
  display: flex;
  gap: 14px;
}
.ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(
    135deg,
    rgba(72, 167, 255, 0.18),
    rgba(124, 58, 237, 0.18)
  );
  border: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 20px;
}

/* Pricing */
.pricing {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}
.price-card {
  position: relative;
}
.price {
  font-size: 32px;
  font-weight: 900;
  margin: 6px 0;
}
.ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #cbd5e1;
}
.ul li {
  margin: 6px 0;
}

/* Turnkey / Steps */
.strip {
  background: linear-gradient(
    135deg,
    rgba(72, 167, 255, 0.08),
    rgba(124, 58, 237, 0.08)
  );
  border: 1px dashed rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  padding: 18px;
}
.steps {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
}
.step {
  background: linear-gradient(
    180deg,
    rgba(20, 25, 54, 0.85),
    rgba(13, 18, 40, 0.95)
  );
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  padding: 16px;
}

/* Slider */
.slider {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: var(--shadow);
  background: linear-gradient(
    135deg,
    rgba(72, 167, 255, 0.06),
    rgba(124, 58, 237, 0.06)
  );
  margin: 50px 0;
  cursor: pointer;
}
.slides {
  display: flex;
  transition: transform 0.6s ease;
}
.slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
  padding: 64px 24px;
}
.slide .media {
  border-radius: 16px;
  height: 320px;
  display: grid;
  place-items: center;
}
.hero-illustration {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  gap: 8px;
  padding: 0 20px;
}
.dots .progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  overflow: hidden;
}
.dots .progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(135deg, var(--brand), #6ee7ff);
  border-radius: 999px;
  transition: width 5s linear;
}
.dots button.dot {
  display: none !important;
}
@media (max-width: 768px) {
  .slide {
    grid-template-columns: 1fr; /* делаем один столбец */
    padding: 32px 16px;
  }

  .slide .media {
    display: none; /* скрываем картинки/медиа */
  }
}

/* Form / CTA */
.cta {
  background: linear-gradient(
    135deg,
    rgba(72, 167, 255, 0.08),
    rgba(124, 58, 237, 0.08)
  );
  border: 1px dashed rgba(148, 163, 184, 0.25);
}
form {
  display: grid;
  gap: 12px;
  grid-template-columns: 1.6fr 1.2fr 1.2fr;
}
input,
select,
textarea {
  width: 100%;
  background: #0b1228;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 14px;
  color: var(--text);
}
textarea {
  grid-column: 1/-1;
  min-height: 120px;
  resize: vertical;
}

form button.btn {
  width: fit-content;
  padding: 12px 20px;
  border-radius: 12px;
  background: #4f46e5;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  border: none;
  justify-self: start; /* чтобы прижать кнопку к началу колонки */
}

/* Footer */
footer {
  padding: 40px 0;
  color: #9aa4b2;
}
.foot {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 18px;
}
footer ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
footer li {
  margin: 0 0 6px;
}
footer a {
  color: #cbd5e1;
}

/* Utilities */
.hide-mobile {
  display: block;
}
.only-mobile {
  display: none;
}

/* Responsive */
@media (max-width: 960px) {
  .hero .inner,
  .slide {
    grid-template-columns: 1fr;
    padding: 48px 16px;
  }
  h1 {
    font-size: 40px;
  }
  .cards-3,
  .cards-4 {
    grid-template-columns: 1fr 1fr;
  }
  .pricing {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .foot {
    grid-template-columns: 1fr;
  }
  form {
    grid-template-columns: 1fr;
  }
  .hide-mobile {
    display: none;
  }
  .only-mobile {
    display: block;
  }
}
@media (max-width: 560px) {
  .cards-3,
  .cards-4,
  .steps {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 34px;
  }
}
/* Blog carousel */
.carousel {
  position: relative;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  gap: 18px;
  transition: transform 0.5s ease;
}
.blog-card {
  min-width: calc(33.333% - 12px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.blog-card .thumb {
  border-radius: var(--radius);
  overflow: hidden;
  height: 180px;
  margin-bottom: 12px;
}
.blog-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card h3 {
  font-size: 18px;
  margin: 6px 0;
}
.blog-card p {
  font-size: 14px;
  color: #cbd5e1;
  margin: 0 0 10px;
}
.blog-card .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(11, 16, 32, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--text);
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 12px;
}
.carousel-btn:hover {
  background: rgba(72, 167, 255, 0.2);
}
.carousel-btn.prev {
  left: 10px;
}
.carousel-btn.next {
  right: 10px;
}

@media (max-width: 960px) {
  .blog-card {
    min-width: calc(50% - 9px);
  }
}
@media (max-width: 560px) {
  .blog-card {
    min-width: 100%;
  }
}
/* Блок источников */
.sources {
  margin-top: 32px;
}

.sources-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #9ea5b5;
}

.sources-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.source-tag {
  display: inline-block;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #aab2c5;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.source-tag:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}


.blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(2, 6, 23, 0.4);
}

.blog-card .thumb {
  border-radius: var(--radius);
  overflow: hidden;
  height: 180px;
  margin-bottom: 12px;
}

.blog-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card h3 {
  margin: 6px 0;
  font-size: 18px;
}

.blog-card p {
  font-size: 14px;
  color: #cbd5e1;
  margin: 0 0 10px;
}

.blog-card .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.blog-card .read-more {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  background: linear-gradient(135deg, var(--brand), #6ee7ff);
  color: #001018;
  border-radius: var(--radius);
  font-weight: 700;
  text-align: center;
  margin-top: auto;
}
