/* =========================================================
   AROL SUPPORT — Design System
   Dark theme · Electric Blue · Inter
   ========================================================= */

/* --- Tokens --- */
/* Тёмная тема (по умолчанию, «графит») — v3.4, 21.10.2026 */
:root {
  color-scheme: dark;
  --bg:           #12141A;
  --bg-2:         #171A21;
  --bg-card:      #1B1F28;
  --bg-card-h:    #222733;
  --accent:       #2F6FEB;
  --accent-light: #6C9BF5;
  --accent-glow:  rgba(79,129,245,0.14);
  --accent-glow2: rgba(79,129,245,0.07);
  --text-1:       #ECEEF2;
  --text-2:       #AAB1BE;
  --text-3:       #6E7684;
  --border:       rgba(255,255,255,0.08);
  --border-h:     rgba(255,255,255,0.14);
  --header-bg:    rgba(18,20,26,0.90);
  --nav-bg:       rgba(18,20,26,0.97);
  --grid-line:    rgba(255,255,255,0.035);
  --chip-bg:      rgba(255,255,255,0.05);
  --chip-bg-soft: rgba(255,255,255,0.02);
  --ghost-hover:  rgba(255,255,255,0.04);
  --shadow-pop:   0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(79,129,245,0.12);
  --shadow-modal: 0 20px 60px rgba(0,0,0,0.5);
  --card-shadow:  none;
  --radius:       12px;
  --radius-lg:    20px;
  --transition:   0.25s cubic-bezier(.4,0,.2,1);
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --max-w:        1200px;
  --pad:          clamp(20px, 5vw, 80px);
}

/* Светлая тема — выбирается кнопкой «солнце/луна» (data-theme) или системной настройкой */
:root[data-theme="light"] {
  color-scheme: light;
  --bg:           #F5F6F9;
  --bg-2:         #EDEFF4;
  --bg-card:      #FFFFFF;
  --bg-card-h:    #F7F8FB;
  --accent:       #2563EB;
  --accent-light: #1D4ED8;
  --accent-glow:  rgba(37,99,235,0.10);
  --accent-glow2: rgba(37,99,235,0.05);
  --text-1:       #171A21;
  --text-2:       #4F5868;
  --text-3:       #8A93A3;
  --border:       rgba(23,26,33,0.09);
  --border-h:     rgba(23,26,33,0.18);
  --header-bg:    rgba(245,246,249,0.90);
  --nav-bg:       rgba(245,246,249,0.97);
  --grid-line:    rgba(23,26,33,0.05);
  --chip-bg:      rgba(23,26,33,0.04);
  --chip-bg-soft: rgba(23,26,33,0.02);
  --ghost-hover:  rgba(23,26,33,0.04);
  --shadow-pop:   0 24px 64px rgba(23,26,33,0.18), 0 0 0 1px rgba(37,99,235,0.10);
  --shadow-modal: 0 20px 60px rgba(23,26,33,0.20);
  --card-shadow:  0 1px 2px rgba(23,26,33,0.04);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
  color-scheme: light;
    --bg:           #F5F6F9;
    --bg-2:         #EDEFF4;
    --bg-card:      #FFFFFF;
    --bg-card-h:    #F7F8FB;
    --accent:       #2563EB;
    --accent-light: #1D4ED8;
    --accent-glow:  rgba(37,99,235,0.10);
    --accent-glow2: rgba(37,99,235,0.05);
    --text-1:       #171A21;
    --text-2:       #4F5868;
    --text-3:       #8A93A3;
    --border:       rgba(23,26,33,0.09);
    --border-h:     rgba(23,26,33,0.18);
    --header-bg:    rgba(245,246,249,0.90);
    --nav-bg:       rgba(245,246,249,0.97);
    --grid-line:    rgba(23,26,33,0.05);
    --chip-bg:      rgba(23,26,33,0.04);
    --chip-bg-soft: rgba(23,26,33,0.02);
    --ghost-hover:  rgba(23,26,33,0.04);
    --shadow-pop:   0 24px 64px rgba(23,26,33,0.18), 0 0 0 1px rgba(37,99,235,0.10);
    --shadow-modal: 0 20px 60px rgba(23,26,33,0.20);
    --card-shadow:  0 1px 2px rgba(23,26,33,0.04);
  }
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }
input, textarea, select { font-family: inherit; }

/* --- Container --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* --- Utility --- */
.text--accent { color: var(--accent-light); }
.hide-mobile  { display: inline; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  transition: background var(--transition), border-color var(--transition), padding var(--transition);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
  padding: 14px 0;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Logo */
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; letter-spacing: -0.3px;
  flex-shrink: 0;
}
.logo__mark {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: #fff;
}
.logo__text { color: var(--text-1); }
.logo__accent { color: var(--accent-light); }

/* Nav */
.nav {
  display: flex; gap: 32px; margin-left: auto;
}
.nav__link {
  font-size: 14px; font-weight: 500;
  color: var(--text-2);
  transition: color var(--transition);
}
.nav__link:hover { color: var(--text-1); }

/* Burger */
.burger {
  display: none; flex-direction: column; gap: 5px;
  width: 28px; margin-left: auto;
}
.burger span {
  height: 2px; background: var(--text-1); border-radius: 2px;
  transition: var(--transition);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.1px;
  border-radius: var(--radius); padding: 12px 24px;
  transition: all var(--transition); position: relative; overflow: hidden;
  white-space: nowrap;
}
.btn--lg  { padding: 15px 32px; font-size: 16px; }
.btn--sm  { padding: 9px 18px; font-size: 13px; }
.btn--full { width: 100%; }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn--primary:hover {
  background: var(--accent-light);
  box-shadow: 0 8px 32px var(--accent-glow);
  transform: translateY(-1px);
}
.btn--primary:active { transform: translateY(0); }

.btn--outline {
  border: 1px solid var(--border-h);
  color: var(--text-1);
  background: transparent;
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--accent-glow2);
}

.btn--ghost {
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  color: var(--text-1);
  border-color: var(--border-h);
  background: var(--ghost-hover);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column;
  overflow: hidden; padding-top: 80px;
}
.hero__bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
/* Grid lines */
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 40%, transparent 100%);
}
/* Glow blob */
.hero__glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  filter: blur(60px);
}

.hero__inner {
  position: relative; z-index: 1;
  flex: 1; display: flex; flex-direction: column;
  justify-content: center;
  padding-top: clamp(60px, 10vw, 100px);
  padding-bottom: 120px;
  gap: clamp(20px, 3vw, 28px);
}

/* Badge */
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 100px; padding: 6px 14px;
  width: fit-content;
}
.badge__dot {
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

/* Title */
.hero__title {
  font-size: clamp(42px, 6.5vw, 88px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.04;
  max-width: 800px;
}
.hero__sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-2);
  line-height: 1.6;
  max-width: 500px;
}

/* Actions */
.hero__actions {
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* Stats */
.hero__stats {
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  width: fit-content;
}
.stat {
  display: flex; flex-direction: column; gap: 2px;
}
.stat__num {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--text-1);
}
.stat__plus {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  color: var(--accent-light);
}
.stat__label {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 400;
}
.stat__divider {
  width: 1px; height: 40px;
  background: var(--border);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-3);
  animation: float 3s ease-in-out infinite;
}
.scroll__line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
@keyframes float {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* =========================================================
   SECTION COMMONS
   ========================================================= */
.section {
  padding: clamp(80px, 10vw, 140px) 0;
}
.section__head {
  margin-bottom: clamp(48px, 6vw, 72px);
  max-width: 640px;
}
.section__label {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 16px;
}
.section__title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section__sub {
  font-size: 17px; color: var(--text-2); line-height: 1.65;
}

/* =========================================================
   SERVICES
   ========================================================= */
.services { background: var(--bg); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  background: var(--bg-card);
  padding: clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 16px;
  transition: background var(--transition);
  position: relative;
}
.service-card:hover { background: var(--bg-card-h); }

.service-card__icon {
  width: 44px; height: 44px;
  background: var(--accent-glow2);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-light);
  flex-shrink: 0;
}

.service-card__num {
  font-size: 12px; font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-3);
}

.service-card__title {
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.service-card__text {
  font-size: 14px; color: var(--text-2); line-height: 1.7;
  flex: 1;
}

.service-card__tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: auto;
}
.tag {
  font-size: 12px; font-weight: 500;
  color: var(--text-2);
  background: var(--chip-bg);
  border: 1px solid var(--border);
  border-radius: 100px; padding: 3px 10px;
}

/* CTA card */
.service-card--cta {
  background: linear-gradient(135deg, rgba(37,99,235,0.12) 0%, rgba(37,99,235,0.04) 100%);
  border: none;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}
.service-card--cta:hover {
  background: linear-gradient(135deg, rgba(37,99,235,0.18) 0%, rgba(37,99,235,0.08) 100%);
}
.service-card__cta-text {
  font-size: 13px; font-weight: 500; color: var(--accent-light);
  letter-spacing: 0.5px;
}
.service-card__cta-title {
  font-size: 22px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.3;
}

/* =========================================================
   CALCULATOR
   ========================================================= */
.calculator { background: var(--bg-2); }
.calc__wrap {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

.calc__form {
  display: flex; flex-direction: column; gap: 36px;
}
.calc__group {
  display: flex; flex-direction: column; gap: 14px;
}
.calc__label {
  font-size: 14px; font-weight: 600; color: var(--text-2);
  letter-spacing: 0.2px;
}
.calc__label--row {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
}

.calc__options {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.calc__options--vertical {
  flex-direction: column; gap: 10px;
}

.calc__opt {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-2);
  font-size: 14px; font-weight: 500;
  transition: all var(--transition);
  display: flex; flex-direction: column; gap: 4px; text-align: left;
}
.calc__options--vertical .calc__opt {
  padding: 14px 20px;
}
.calc__opt strong { color: var(--text-1); font-size: 15px; }
.calc__opt span   { font-size: 13px; color: var(--text-3); }
.calc__opt:hover  {
  border-color: rgba(37,99,235,0.4);
  color: var(--text-1);
  background: var(--bg-card-h);
}
.calc__opt.active {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--text-1);
  box-shadow: 0 0 0 1px var(--accent);
}

/* Toggle */
.toggle { position: relative; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle__track {
  display: block;
  width: 44px; height: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  position: relative;
  transition: background var(--transition), border-color var(--transition);
}
.toggle__track::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  background: var(--text-3);
  border-radius: 50%;
  top: 3px; left: 3px;
  transition: transform var(--transition), background var(--transition);
}
.toggle input:checked + .toggle__track {
  background: var(--accent-glow);
  border-color: var(--accent);
}
.toggle input:checked + .toggle__track::after {
  transform: translateX(20px);
  background: var(--accent-light);
}

/* Result panel */
.calc__result {
  position: sticky; top: 100px;
}
.calc__result-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
}
.calc__result-label {
  font-size: 13px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-3);
}
.calc__price {
  display: flex; align-items: baseline; gap: 6px;
}
.calc__price-from {
  font-size: 16px; color: var(--text-2);
}
.calc__price-num {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--text-1);
  transition: all 0.3s;
}
.calc__price-cur {
  font-size: 22px; font-weight: 700; color: var(--text-2);
}
.calc__result-note {
  font-size: 13px; color: var(--text-3); line-height: 1.5;
}
.calc__includes {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.calc__include-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-2);
}

/* =========================================================
   PROCESS
   ========================================================= */
.process { background: var(--bg); }
.process__steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.process__step {
  flex: 1;
  display: flex; flex-direction: column; gap: 16px;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: border-color var(--transition), background var(--transition);
}
.process__step:hover {
  border-color: rgba(37,99,235,0.3);
  background: var(--bg-card-h);
}
.process__connector {
  width: 32px; flex-shrink: 0;
  height: 2px; margin-top: 60px;
  background: linear-gradient(90deg, var(--border) 0%, rgba(37,99,235,0.3) 50%, var(--border) 100%);
  align-self: flex-start;
}
.process__step-num {
  font-size: 40px; font-weight: 800;
  letter-spacing: -2px;
  color: rgba(37,99,235,0.25);
  line-height: 1;
}
.process__step-title {
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.3px;
}
.process__step-body { display: flex; flex-direction: column; gap: 10px; }
.process__step-text { font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* =========================================================
   WHY US
   ========================================================= */
.why { background: var(--bg-2); }
.why__grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 24px;
}
.why__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color var(--transition), background var(--transition);
}
.why__card:hover {
  border-color: rgba(37,99,235,0.3);
  background: var(--bg-card-h);
}
.why__icon {
  width: 44px; height: 44px;
  background: var(--accent-glow2);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-light);
}
.why__title {
  font-size: 17px; font-weight: 700; letter-spacing: -0.3px;
}
.why__text { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* =========================================================
   CASES CAROUSEL
   ========================================================= */
.cases { background: var(--bg); overflow: hidden; }

.carousel__track-wrap {
  position: relative;
  margin-top: 48px;
}

.carousel__track {
  display: flex;
  gap: 20px;
  padding: 8px var(--pad) 32px;
  cursor: grab;
  user-select: none;
  transition: transform 0.45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.carousel__track:active { cursor: grabbing; }

.case-card {
  flex: 0 0 300px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.case-card:hover {
  border-color: rgba(37,99,235,0.35);
  background: var(--bg-card-h);
  transform: translateY(-4px);
}

.case-card__icon {
  font-size: 32px;
  line-height: 1;
}
.case-card__tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--accent-light);
  text-transform: uppercase;
}
.case-card__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.25;
}
.case-card__text {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
}

/* Case popup */
.case-popup {
  position: fixed;
  z-index: 300;
  width: 320px;
  background: #1a1a1a;
  border: 1px solid rgba(37,99,235,0.35);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-pop);
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.case-popup.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.case-popup__more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
}
.case-popup__more:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}
.case-popup__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-light);
}
.case-popup__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.25;
  color: var(--text-1);
}
.case-popup__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.case-popup__pill {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--chip-bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 10px;
}
.case-popup__divider {
  height: 1px;
  background: var(--border);
}
.case-popup__desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
}

/* Controls */
.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 var(--pad);
  margin-top: 8px;
}
.carousel__btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.carousel__btn:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--accent-glow2);
}
.carousel__dots {
  display: flex; gap: 6px; align-items: center;
}
.carousel__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border-h);
  transition: all var(--transition);
  cursor: pointer;
}
.carousel__dot.active {
  background: var(--accent);
  width: 20px;
  border-radius: 3px;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact { background: var(--bg); }
.contact__wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.contact__info {
  display: flex; flex-direction: column; gap: 20px;
  padding-top: 8px;
}
.contact__title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
}
.contact__sub {
  font-size: 16px; color: var(--text-2); line-height: 1.65;
}
.contact__details {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 8px;
}
.contact__item {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 500; color: var(--text-2);
  transition: color var(--transition);
}
.contact__item:hover { color: var(--text-1); }
.contact__item svg { color: var(--accent-light); flex-shrink: 0; }

.contact__messengers {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.messenger-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  font-size: 13px; font-weight: 500; color: var(--text-2);
  transition: all var(--transition);
}
.messenger-btn:hover {
  border-color: var(--border-h);
  color: var(--text-1);
  background: var(--bg-card-h);
}

/* Form */
.contact__form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 20px;
}
.form__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.form__group { display: flex; flex-direction: column; gap: 8px; }
.form__label {
  font-size: 13px; font-weight: 500; color: var(--text-2);
}
.form__input {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text-1);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
  appearance: none;
}
.form__input::placeholder { color: var(--text-3); }
.form__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow2);
}
.form__select { cursor: pointer; }
.form__select option {
  background: var(--bg-2); color: var(--text-1);
}
.form__textarea { resize: vertical; min-height: 100px; }
.form__privacy {
  font-size: 12px; color: var(--text-3); text-align: center;
}
.form__privacy a { color: var(--accent-light); }
.form__success {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 24px; text-align: center;
  font-size: 15px; color: var(--text-2);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer__inner {
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
}
.footer__left { display: flex; flex-direction: column; gap: 8px; }
.footer__tagline { font-size: 13px; color: var(--text-3); line-height: 1.5; }
.footer__nav {
  display: flex; gap: 24px; margin-left: auto; flex-wrap: wrap;
}
.footer__nav a {
  font-size: 14px; color: var(--text-3);
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--text-1); }
.footer__right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
}
.footer__copy   { font-size: 13px; color: var(--text-3); }
.footer__policy { font-size: 12px; color: var(--text-3); }
.footer__policy:hover { color: var(--accent-light); }

/* =========================================================
   CASE MODAL — fullscreen slide
   ========================================================= */
.case-modal {
  position: fixed; inset: 0; z-index: 500;
  pointer-events: none;
}
.case-modal.open { pointer-events: all; }

.case-modal__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.case-modal.open .case-modal__overlay { opacity: 1; }

.case-modal__panel {
  position: absolute;
  inset: 0;
  background: var(--bg);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.case-modal.open .case-modal__panel { transform: translateY(0); }

/* Close */
.case-modal__close {
  position: sticky; top: 0; z-index: 10;
  align-self: flex-end;
  margin: 24px 24px 0 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.case-modal__close:hover {
  border-color: var(--border-h);
  color: var(--text-1);
  transform: rotate(90deg);
}

/* Inner layout */
.case-modal__inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  padding: 48px clamp(24px,5vw,80px) 80px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Left panel */
.case-modal__left {
  display: flex; flex-direction: column; gap: 20px;
  position: sticky; top: 80px;
  align-self: start;
}
.case-modal__icon { font-size: 56px; line-height: 1; }
.case-modal__tag {
  font-size: 12px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent-light);
}
.case-modal__title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
}
.case-modal__pills {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.case-modal__pill {
  font-size: 13px; font-weight: 500;
  color: var(--text-2);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
}
.case-modal__desc {
  font-size: 15px; color: var(--text-2); line-height: 1.75;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}
.case-modal__cta { margin-top: 8px; }

/* Right panel */
.case-modal__right {
  display: flex; flex-direction: column; gap: 32px;
  padding-top: 8px;
}
.case-modal__block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.case-modal__block-label {
  padding: 16px 24px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
  background: var(--chip-bg-soft);
}
.case-modal__block-body {
  padding: 24px;
  font-size: 15px; color: var(--text-2); line-height: 1.75;
}
.case-modal__placeholder {
  font-size: 14px;
  color: var(--text-3);
  font-style: italic;
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
}

/* Cursor on cards */
.case-card { cursor: pointer; }

@media (max-width: 900px) {
  .case-modal__inner { grid-template-columns: 1fr; gap: 32px; }
  .case-modal__left  { position: static; }
}

/* =========================================================
   FOOTER — REQUISITES & COOKIES
   ========================================================= */
.footer__top {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.footer__requisites {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer__requisites p {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.6;
}
.footer__requisites strong {
  color: var(--text-2);
  font-weight: 600;
}
.footer__requisites .footer__tm {
  margin-top: 8px;
}

/* Cookies */
.cookies {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 200;
  display: flex; align-items: center; gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-h);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  max-width: 640px;
  width: calc(100% - 40px);
  box-shadow: var(--shadow-modal);
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}
.cookies.visible {
  transform: translateX(-50%) translateY(0);
}
.cookies__text {
  font-size: 13px; color: var(--text-2); line-height: 1.5; flex: 1;
}
.cookies__text a { color: var(--accent-light); }

@media (max-width: 600px) {
  .cookies { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cookies .btn { width: 100%; justify-content: center; }
}

/* =========================================================
   POLICY PAGE
   ========================================================= */
.policy {
  padding-top: 120px;
  padding-bottom: clamp(80px, 10vw, 140px);
}
.policy__header {
  max-width: 720px;
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.policy__title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
}
.policy__meta {
  font-size: 14px;
  color: var(--text-3);
}
.policy__body {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.policy__section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.policy__section:last-child {
  border-bottom: none;
}
.policy__section h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-1);
}
.policy__section p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
}
.policy__section ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.policy__section li {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
}
.policy__section a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.policy__section strong {
  color: var(--text-1);
  font-weight: 600;
}

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .calc__wrap { grid-template-columns: 1fr; }
  .calc__result { position: static; }
  .process__steps { gap: 16px; }
  .process__connector { display: none; }
  .contact__wrap { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 99;
  }
  .nav.open .nav__link {
    font-size: 24px; font-weight: 700;
    color: var(--text-1);
  }
  .header__cta { display: none; }
  .burger { display: flex; }
  .services__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr 1fr; }
  .process__steps { flex-direction: column; }
  .form__row { grid-template-columns: 1fr; }
  .hero__stats { gap: 20px; }
  .stat__divider { height: 28px; }
  .hero__title { letter-spacing: -1.5px; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer__nav { margin-left: 0; }
  .footer__right { align-items: flex-start; }
  .hide-mobile { display: none; }
}

@media (max-width: 480px) {
  .why__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .contact__messengers { flex-direction: column; }
  .messenger-btn { justify-content: center; }
}

/* =========================================================
   v3 (20.10.2026) — ЭТрН-позиционирование
   ========================================================= */

/* Цена в карточке услуги */
.service-card__price {
  margin: 14px 0 16px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.2px;
}
.service-card__price span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-3);
}

/* Примечание под услугами */
.services__note {
  margin-top: 28px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-3);
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Название пакета в результате подбора */
.calc__pkg-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-1);
  margin: 6px 0 10px;
  letter-spacing: -0.3px;
}

/* Карточка «Что написать» вместо формы */
.contact__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact__card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.3px;
  line-height: 1.3;
}
.contact__check {
  list-style: none;
  counter-reset: check;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
}
.contact__check li {
  counter-increment: check;
  position: relative;
  padding-left: 40px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}
.contact__check li::before {
  content: counter(check);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent-glow);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: var(--accent-light);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact__card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.contact__card-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-3);
}

/* Основная кнопка мессенджера */
.messenger-btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.messenger-btn--primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: #fff;
}

@media (max-width: 480px) {
  .contact__card-actions .btn { width: 100%; justify-content: center; }
}

/* v3.1 (20.10.2026) — статистика hero: число и «+» в одну строку */
.stat__value { display: flex; align-items: baseline; gap: 2px; }
@media (max-height: 820px) { .hero__scroll { display: none; } }
/* v3.1 (20.10.2026) — точки карусели кейсов на мобильном переносятся, кнопки не уезжают за край */
@media (max-width: 600px) {
  .carousel__dots { flex-wrap: wrap; justify-content: center; max-width: 200px; row-gap: 8px; }
}

/* =========================================================
   MOTION (v3.3, 21.10.2026)
   ========================================================= */
/* Прогресс прокрутки */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 1000;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0); transform-origin: 0 50%;
  pointer-events: none;
}

/* Появление блоков: мягче, с лёгким размытием */
.reveal {
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity .75s cubic-bezier(.2,.7,.2,1), transform .75s cubic-bezier(.2,.7,.2,1), filter .75s ease;
}
.reveal.visible { filter: blur(0); }

/* Hero: живое свечение и медленно плывущая сетка */
.hero__glow {
  transform: translateX(calc(-50% + var(--px, 0px))) translateY(var(--py, 0px));
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
  animation: glow-drift 14s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  0%   { scale: 1;    opacity: .85; }
  100% { scale: 1.2;  opacity: 1; }
}
.hero__grid { animation: grid-pan 60s linear infinite; }
@keyframes grid-pan { to { background-position: 60px 60px; } }

/* Карточки: акцентная линия сверху + подсветка за курсором */
.service-card, .why__card, .process__step, .case-card { position: relative; }
.service-card > *, .why__card > *, .process__step > *, .case-card > * { position: relative; z-index: 1; }
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; z-index: 2;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transition: width .5s cubic-bezier(.2,.7,.2,1);
}
.service-card:hover::before { width: 100%; }
.service-card::after, .why__card::after, .process__step::after, .case-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(37,99,235,.14), transparent 65%);
}
.service-card:hover::after, .why__card:hover::after, .process__step:hover::after, .case-card:hover::after { opacity: 1; }
.service-card__icon, .why__icon, .process__step-num {
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease;
}
.service-card:hover .service-card__icon, .why__card:hover .why__icon {
  transform: translateY(-3px) rotate(-5deg);
  box-shadow: 0 10px 28px rgba(37,99,235,.28);
}
.process__step.visible .process__step-num { animation: num-pop .55s .25s cubic-bezier(.2,.7,.2,1) both; }
@keyframes num-pop {
  0%   { transform: scale(.6); opacity: 0; }
  60%  { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); }
}
.why__card, .process__step { transition: border-color var(--transition), background var(--transition), transform var(--transition); }
.why__card:hover, .process__step:hover { transform: translateY(-3px); }

/* Кнопки: блик при наведении */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.24), transparent);
  transform: skewX(-20deg);
  transition: left .65s ease;
}
.btn--primary:hover::after { left: 130%; }

/* Навигация: подчёркивание выезжает */
.nav__link { position: relative; }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: var(--accent-light);
  transform: scaleX(0); transform-origin: right;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Подбор пакета: отклик кнопок и плавная смена результата */
.calc__opt.active { animation: opt-pop .35s cubic-bezier(.2,.7,.2,1); }
@keyframes opt-pop {
  0%   { transform: scale(.96); }
  60%  { transform: scale(1.025); }
  100% { transform: scale(1); }
}
.calc__include-item {
  animation: item-in .45s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes item-in {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}
.calc__result { view-transition-name: calc-result; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-old(calc-result) { animation: vt-out .18s ease both; }
::view-transition-new(calc-result) { animation: vt-in .32s cubic-bezier(.2,.7,.2,1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in  { from { opacity: 0; transform: translateY(10px); } }

/* Карусель кейсов */
.carousel__dot { transition: background var(--transition), width var(--transition), transform var(--transition); }
.carousel__dot:hover { transform: scale(1.25); }

/* Уважение к настройке «меньше движения» */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .hero__glow, .hero__grid, .badge__dot, .hero__scroll, .calc__opt.active, .calc__include-item, .process__step.visible .process__step-num { animation: none; }
  .btn--primary::after, .scroll-progress { display: none; }
  .service-card::after, .why__card::after, .process__step::after, .case-card::after { display: none; }
  ::view-transition-old(calc-result), ::view-transition-new(calc-result) { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   THEME TOGGLE — солнце/луна (v3.4, 21.10.2026)
   ========================================================= */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-2);
  background: transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
}
.theme-toggle:hover { color: var(--text-1); border-color: var(--border-h); background: var(--ghost-hover); }
.theme-toggle:active { transform: scale(.92); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle__sun, .theme-toggle__moon {
  transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .3s ease;
}
/* в тёмной теме показываем солнце (куда переключиться), в светлой — луну */
.theme-toggle__moon { position: absolute; opacity: 0; transform: rotate(-90deg) scale(.6); }
.theme-toggle { position: relative; }
:root[data-theme="light"] .theme-toggle__sun  { opacity: 0; transform: rotate(90deg) scale(.6); }
:root[data-theme="light"] .theme-toggle__moon { opacity: 1; transform: rotate(0) scale(1); }
@media (max-width: 768px) {
  .theme-toggle { margin-left: auto; width: 36px; height: 36px; }
  .burger { margin-left: 0; }
}
.service-card, .why__card, .process__step, .case-card { box-shadow: var(--card-shadow); }

/* Плавная смена темы: View Transitions (crossfade), fallback — transition цветов */
:root.theme-switch::view-transition-old(root) { animation: vt-theme-out .4s ease both; }
:root.theme-switch::view-transition-new(root) { animation: vt-theme-in .4s ease both; }
@keyframes vt-theme-out { to { opacity: 0; } }
@keyframes vt-theme-in  { from { opacity: 0; } }
:root.theme-switch-css, :root.theme-switch-css *, :root.theme-switch-css *::before, :root.theme-switch-css *::after {
  transition: background-color .4s ease, color .4s ease, border-color .4s ease, box-shadow .4s ease !important;
}
@media (prefers-reduced-motion: reduce) {
  :root.theme-switch::view-transition-old(root), :root.theme-switch::view-transition-new(root) { animation: none; }
  .theme-toggle__sun, .theme-toggle__moon { transition: none; }
}
