@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg0: #0a0808;
  --bg1: #110f0e;
  --bg2: #181512;

  --rust: #e85d04;
  --rust-light: #f48c06;
  --rust-dark: #9c6644;
  --ember: #dc2f02;
  --gold: #ffaa00;
  --steel: #6c757d;
  --steel-light: #adb5bd;

  --text: #f8f9fa;
  --text-muted: #b5bcc3;
  --text-dim: #7a828a;

  --panel: rgba(255,255,255,0.035);
  --panel-strong: rgba(255,255,255,0.05);
  --panel-hover: rgba(255,255,255,0.06);
  --panel-soft: rgba(255,255,255,0.025);

  --border: rgba(255,255,255,0.08);
  --border-soft: rgba(255,255,255,0.06);
  --border-accent: rgba(232,93,4,0.22);

  --shadow-sm: 0 2px 10px rgba(0,0,0,0.28);
  --shadow-md: 0 10px 28px rgba(0,0,0,0.34);
  --shadow-lg: 0 20px 56px rgba(0,0,0,0.42);
  --shadow-rust: 0 8px 24px rgba(232,93,4,0.12);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;

  --container: 1400px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(232,93,4,0.07) 0%, transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(220,47,2,0.045) 0%, transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(255,170,0,0.025) 0%, transparent 28%),
    linear-gradient(180deg, var(--bg0) 0%, #0d0b0a 38%, #0a0808 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ===== ДЕКОР: ОБЛЕГЧЕННАЯ ВЕРСИЯ ===== */

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.018;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 4px 4px, 4px 4px;
  mix-blend-mode: soft-light;
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    ellipse at center,
    transparent 0%,
    transparent 44%,
    rgba(7,6,6,0.18) 76%,
    rgba(7,6,6,0.42) 100%
  );
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 22% 28%, rgba(232,93,4,0.06) 0%, transparent 26%),
    radial-gradient(circle at 78% 66%, rgba(220,47,2,0.04) 0%, transparent 26%);
  opacity: 0.9;
  animation: none;
}

/* убираем тяжёлый runtime blur, оставляем атмосферу */
.bg-gear-corner {
  position: fixed;
  top: -8vmin;
  right: -10vmin;
  width: 78vmin;
  height: 78vmin;
  pointer-events: none;
  z-index: 0;
  opacity: 0.1;
  filter: none;
}

.bg-gear-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  filter: none;
  transform: translateZ(0);
  will-change: auto;
}

/* ===== ОБЩЕЕ ===== */

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

section {
  position: relative;
  z-index: 3;
}

.logo,
nav a,
.btn-primary,
.btn-secondary,
.btn-pricing,
.tab,
.faq-question,
.mobile-nav a,
.lang-btn {
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.fade-in {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ===== HEADER ===== */

header,
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2.2rem;
  background: rgba(10,8,8,0.88);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition:
    padding 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease;
}

header.scrolled,
#header.scrolled {
  padding: 0.9rem 2.2rem;
  background: rgba(10,8,8,0.94);
  border-bottom-color: rgba(255,255,255,0.07);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.logo-img img,
.logo img {
  max-height: 46px;
  width: auto;
}

.desktop-nav,
nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

nav a {
  position: relative;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rust), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
  opacity: 0.9;
}

nav a:hover {
  color: var(--text);
}

nav a:hover::after {
  transform: scaleX(1);
}

/* ===== КНОПКИ ===== */

.btn-primary,
.btn-pricing {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 50px;
  padding: 0.9rem 1.45rem;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--rust) 0%, var(--ember) 100%);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(232,93,4,0.22);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.btn-primary:hover,
.btn-pricing:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(232,93,4,0.28);
  filter: brightness(1.03);
}

.btn-primary:active,
.btn-pricing:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.9rem 1.35rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.lang-btn {
  text-decoration: none;
  color: var(--text-dim);
  font-weight: 700;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.lang-btn:hover,
.lang-btn.active {
  color: var(--rust-light);
}

.lang-sep {
  opacity: 0.5;
}

/* ===== BURGER / MOBILE NAV ===== */

.burger-btn {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.04);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  position: relative;
  flex-shrink: 0;
}

.burger-btn span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  transform: translateX(-50%);
  transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}

.burger-btn span:first-child { top: 17px; }
.burger-btn span:last-child { top: 25px; }

.burger-btn.active span:first-child {
  top: 21px;
  transform: translateX(-50%) rotate(45deg);
}

.burger-btn.active span:last-child {
  top: 21px;
  transform: translateX(-50%) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background:
    linear-gradient(180deg, rgba(8,8,12,0.97), rgba(10,8,8,0.985));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-inner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 100px 24px 32px;
}

.mobile-nav a,
.mobile-lang-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 18px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.mobile-lang-switch {
  gap: 8px;
}

body.menu-open {
  overflow: hidden;
}

/* ===== HERO ===== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7.5rem 2.2rem 4rem;
}

.hero-grid {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1rem;
  margin-bottom: 1.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(232,93,4,0.22);
  color: var(--rust-light);
  font-size: 0.82rem;
  font-weight: 600;
}

.badge .dot,
.badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rust);
  box-shadow: 0 0 10px rgba(232,93,4,0.25);
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.35rem;
}

h1 .highlight {
  background: linear-gradient(135deg, var(--rust-light) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}

.hero-tags span {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.038);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-subtitle {
  max-width: 580px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.hs-line {
  display: block;
}

.hs-line + .hs-line {
  margin-top: 0.95rem;
}

.hs-strong {
  color: rgba(248,249,250,0.88);
}

.hs-muted {
  color: var(--text-dim);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.hero-stats {
  display: flex;
  gap: 2.2rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.demo-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-lg);
}

.demo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(232,93,4,0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.demo-video {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ===== ОБЩИЕ СЕКЦИИ ===== */

.features,
.pricing,
.faq,
.optimizer,
.configurator,
.reviews,
.review-compose {
  max-width: var(--container);
  margin: 0 auto;
  padding: 5.5rem 2.2rem;
}

.modes,
footer {
  padding: 5.5rem 2.2rem;
}

.modes {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.012) 0%,
    rgba(255,255,255,0.02) 100%
  );
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.modes-container,
.footer-content,
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-header p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===== КАРТОЧКИ ===== */

.features-grid,
.optimizer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.feature-card,
.optimizer-card,
.mode-feature-card,
.mode-item,
.preset-card,
.review-card {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.038),
    rgba(255,255,255,0.022)
  );
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.feature-card:hover,
.optimizer-card:hover,
.mode-item:hover,
.preset-card:hover,
.review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232,93,4,0.18);
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.05),
    rgba(255,255,255,0.028)
  );
  box-shadow: var(--shadow-md);
}

.feature-card,
.optimizer-card {
  padding: 2rem;
  overflow: hidden;
}

.feature-card::before,
.optimizer-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--rust), var(--gold));
  opacity: 0.65;
}

.feature-icon,
.optimizer-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(232,93,4,0.18) 0%,
    rgba(220,47,2,0.08) 100%
  );
  border: 1px solid rgba(232,93,4,0.18);
  color: var(--rust-light);
  font-size: 1.35rem;
}

.feature-card h3,
.optimizer-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card p,
.optimizer-card p,
.mode-content p,
.mode-text p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.feature-tags,
.optimizer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.tag,
.optimizer-tags span {
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-dim);
  font-size: 0.74rem;
  line-height: 1;
}

/* ===== MODES / TABS ===== */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 2.2rem;
  padding-bottom: 0.5rem;
}

.tab {
  min-height: 46px;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.035);
  color: var(--text-muted);
  font-weight: 700;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.tab:hover {
  transform: translateY(-1px);
}

.tab.active {
  color: var(--text);
  background: rgba(232,93,4,0.11);
  border-color: rgba(232,93,4,0.22);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.mode-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2rem;
  align-items: start;
}

.mode-features {
  display: grid;
  gap: 1rem;
}

.mode-feature-card,
.mode-item {
  padding: 1.3rem 1.35rem;
}

.mode-feature-card {
  display: flex;
  gap: 1rem;
}

.mode-icon,
.mode-number {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(232,93,4,0.1);
  border: 1px solid rgba(232,93,4,0.15);
  color: var(--rust-light);
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
}

.mode-text h4,
.mode-content h4 {
  font-size: 1.04rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.mode-demo-stage {
  position: sticky;
  top: 98px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.02));
  box-shadow: var(--shadow-md);
}

.mode-demo-stage.bright .mode-demo-content {
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.03) 0%,
    rgba(77,171,247,0.035) 100%
  );
}

.mode-demo-content {
  min-height: 380px;
  aspect-ratio: 16 / 10;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.025) 0%,
    rgba(232,93,4,0.04) 100%
  );
}

.mode-demo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mode-demo-badge {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.mode-demo-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rust);
}

/* ===== OPTIMIZER ===== */

.optimizer::before {
  display: none;
}

.optimizer-action {
  margin-top: 3rem;
  text-align: center;
}

.optimizer-stats {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 1.6rem;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
}

.optimizer-stat {
  text-align: center;
}

.optimizer-stat .stat-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--rust-light);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 0.45rem;
}

.optimizer-stat .stat-label {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* ===== PRICING ===== */

.pricing {
  max-width: 960px;
}

.pricing-solo {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2.5rem;
  align-items: center;
  padding: 2.4rem;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(232,93,4,0.06) 0%, rgba(10,8,8,0) 52%, rgba(255,170,0,0.03) 100%);
  border: 1px solid rgba(232,93,4,0.16);
  box-shadow:
    0 0 0 1px rgba(232,93,4,0.05),
    0 16px 40px rgba(0,0,0,0.34);
}

.pricing-solo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,93,4,0.5), transparent);
}

.pricing-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.pricing-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,93,4,0.22) 0%, transparent 70%);
  filter: blur(18px);
  opacity: 0.75;
}

.pricing-icon {
  position: relative;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(232,93,4,0.18);
  background: rgba(255,255,255,0.04);
  box-shadow: var(--shadow-md);
}

.pricing-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pricing-badge {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(232,93,4,0.12);
  border: 1px solid rgba(232,93,4,0.18);
  color: var(--rust-light);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pricing-content {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.pricing-header h3 {
  font-size: 1.75rem;
  margin-bottom: 0.45rem;
}

.pricing-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.pricing-amount .currency,
.pricing-amount .value {
  font-family: 'JetBrains Mono', monospace;
}

.pricing-amount .currency {
  font-size: 2rem;
  color: var(--rust);
  font-weight: 700;
}

.pricing-amount .value {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #fff 0%, var(--rust-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-amount .period {
  margin-left: 0.7rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 600;
}

.pricing-features-compact {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  padding: 0;
  margin: 0;
}

.pricing-features-compact li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.pricing-features-compact .feature-icon {
  width: 28px;
  height: 28px;
  margin: 0;
  font-size: 0.85rem;
  border-radius: 8px;
}

.pricing-action {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 0.8rem;
}

.pricing-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: var(--text-dim);
  font-size: 0.84rem;
  text-align: center;
}

.pricing-guarantee span {
  color: #33d17a;
  font-weight: 700;
}

.pricing-decor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  opacity: 0.28;
}

.decor-line {
  width: 2px;
  height: 56px;
  background: linear-gradient(to bottom, var(--rust), transparent);
}

.decor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rust);
}

/* ===== FAQ ===== */

.faq {
  max-width: 820px;
}

.faq-item {
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 700;
  transition: color 0.18s ease;
}

.faq-question:hover {
  color: var(--rust-light);
}

.faq-icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.faq-icon::before {
  width: 2px;
  height: 12px;
  top: 6px;
  left: 11px;
}

.faq-icon::after {
  width: 12px;
  height: 2px;
  top: 11px;
  left: 6px;
}

.faq-item.active .faq-icon::before {
  transform: scaleY(0);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding-right: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  transition: max-height 0.28s ease, padding-top 0.28s ease;
}

.faq-item.active .faq-answer {
  max-height: 900px;
  padding-top: 0.95rem;
}

/* ===== FOOTER ===== */

footer {
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.02));
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
}

.footer-brand {
  max-width: 420px;
}

.footer-brand p {
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.75;
}

.footer-links {
  display: flex;
  gap: 3.2rem;
}

.footer-col h4 {
  margin-bottom: 1.1rem;
  font-size: 0.85rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col a {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.18s ease;
}

.footer-col a:hover {
  color: var(--rust-light);
}

.footer-bottom {
  margin-top: 2.3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-dim);
  font-size: 0.84rem;
}

/* =========================================
   REVIEWS
   ========================================= */

.reviews {
  position: relative;
  padding: 6rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.reviews-carousel {
  position: relative;
  margin-top: 2.5rem;
  padding: 2rem;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.02)),
    radial-gradient(circle at top left, rgba(232,93,4,0.07), transparent 35%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.35),
    0 0 0 1px rgba(232,93,4,0.04);
  overflow: hidden;
}

.reviews-carousel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,93,4,0.45), transparent);
  pointer-events: none;
}

.reviews-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.45s var(--ease-out-expo);
  will-change: transform;
}

.review-card {
  position: relative;
  min-width: calc((100% - 3rem) / 3);
  padding: 1.4rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232,93,4,0.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.03));
  box-shadow:
    0 18px 40px rgba(0,0,0,0.28),
    0 0 24px rgba(232,93,4,0.08);
}

.review-card.featured {
  border-color: rgba(232,93,4,0.22);
  background:
    linear-gradient(180deg, rgba(232,93,4,0.08), rgba(255,255,255,0.028));
  box-shadow:
    0 20px 44px rgba(0,0,0,0.32),
    0 0 30px rgba(232,93,4,0.10);
}

.review-card.featured::after {
  content: "Топ";
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rust-light);
  background: rgba(232,93,4,0.12);
  border: 1px solid rgba(232,93,4,0.18);
}

.review-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 1rem;
}

.review-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--rust) 0%, var(--ember) 100%);
  box-shadow: 0 8px 20px rgba(232,93,4,0.22);
}

.review-meta {
  min-width: 0;
}

.review-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.review-stats {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.review-rating {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(255,170,0,0.12);
}

.review-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  min-height: 126px;
  margin-bottom: 1.2rem;
}

.review-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--text-dim);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
}

.reviews-controls {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  gap: 1rem;
  margin-top: 1.6rem;
}

.review-btn {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.review-btn:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(232,93,4,0.16);
}

.reviews-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.review-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  transition: transform 0.18s ease, background 0.18s ease, width 0.18s ease;
}

.review-dot.active {
  width: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rust), var(--gold));
}

/* =========================================
   REVIEW COMPOSE
   ========================================= */

.review-compose {
  margin-top: 2.2rem;
  padding: 2rem;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.022)),
    radial-gradient(circle at top right, rgba(255,170,0,0.05), transparent 34%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.28);
}

.compose-header {
  margin-bottom: 1.5rem;
}

.compose-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.compose-header p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.compose-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.compose-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.compose-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.compose-field label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.compose-field input,
.compose-field textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(0,0,0,0.22);
  color: var(--text);
  padding: 0.95rem 1rem;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.compose-field textarea {
  min-height: 120px;
  resize: vertical;
}

.compose-field input::placeholder,
.compose-field textarea::placeholder {
  color: rgba(255,255,255,0.28);
}

.compose-field input:focus,
.compose-field textarea:focus {
  outline: none;
  border-color: rgba(232,93,4,0.28);
  background: rgba(0,0,0,0.3);
  box-shadow: 0 0 0 4px rgba(232,93,4,0.08);
}

.field-hint,
.submit-note,
.char-count {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.field-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.char-count.warning {
  color: var(--gold);
}

.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem;
  width: fit-content;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
}

.star-rating button {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.18);
  font-size: 1.9rem;
  line-height: 1;
  transition: transform 0.15s ease, color 0.15s ease;
}

.star-rating button:hover {
  transform: translateY(-1px) scale(1.05);
}

.star-rating button.active {
  color: var(--gold);
  text-shadow: 0 0 12px rgba(255,170,0,0.14);
}

.tag-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.tag-option {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  font-weight: 600;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.tag-option:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

.tag-option.active {
  color: #fff;
  border-color: rgba(232,93,4,0.2);
  background: linear-gradient(135deg, rgba(232,93,4,0.14), rgba(220,47,2,0.1));
  box-shadow: 0 8px 22px rgba(232,93,4,0.10);
}

.checkbox-field {
  margin-top: -0.2rem;
}

.checkbox-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  width: fit-content;
}

.checkbox-wrap input {
  display: none;
}

.checkbox-custom {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.25);
  position: relative;
  transition: all 0.18s ease;
}

.checkbox-custom::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-size: 0.82rem;
  font-weight: 800;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.16s ease;
}

.checkbox-wrap input:checked + .checkbox-custom {
  background: linear-gradient(135deg, var(--rust) 0%, var(--ember) 100%);
  border-color: rgba(232,93,4,0.3);
}

.checkbox-wrap input:checked + .checkbox-custom::after {
  opacity: 1;
  transform: scale(1);
}

.checkbox-text {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.compose-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
}

.btn-submit-review {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rust) 0%, var(--ember) 100%);
  color: white;
  font-weight: 800;
  font-size: 0.98rem;
  box-shadow: 0 10px 26px rgba(232,93,4,0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-submit-review:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 14px 30px rgba(232,93,4,0.28);
}

.compose-success {
  text-align: center;
  padding: 2rem 1rem 1rem;
}

.success-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(51,209,122,0.2), rgba(51,209,122,0.06));
  border: 1px solid rgba(51,209,122,0.18);
  color: #7dffb2;
  font-size: 2rem;
  font-weight: 900;
}

.compose-success h4 {
  font-size: 1.45rem;
  margin-bottom: 0.55rem;
}

.compose-success p {
  max-width: 520px;
  margin: 0 auto 1.25rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.btn-reset {
  min-height: 48px;
  padding: 0 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.045);
  color: #fff;
  font-weight: 700;
}

.btn-reset:hover {
  background: rgba(255,255,255,0.07);
}

/* =========================================
   CONFIGURATOR
   ========================================= */

.configurator {
  position: relative;
}

.presets-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.preset-mini {
  position: relative;
  padding: 1.35rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.022));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 34px rgba(0,0,0,0.24);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
  overflow: hidden;
}

.preset-mini::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.08), transparent);
}

.preset-mini:hover {
  transform: translateY(-4px);
  border-color: rgba(232,93,4,0.14);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.30),
    0 0 24px rgba(232,93,4,0.06);
}

.preset-mini.featured {
  background:
    linear-gradient(180deg, rgba(232,93,4,0.09), rgba(255,255,255,0.026));
  border-color: rgba(232,93,4,0.2);
  box-shadow:
    0 20px 44px rgba(0,0,0,0.32),
    0 0 28px rgba(232,93,4,0.09);
}

.preset-mini.featured::before {
  background: linear-gradient(90deg, var(--rust), var(--gold));
}

.preset-mini.featured::after {
  content: "Рекомендуем";
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 0.36rem 0.68rem;
  border-radius: 999px;
  background: rgba(232,93,4,0.12);
  border: 1px solid rgba(232,93,4,0.18);
  color: var(--rust-light);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.preset-icon {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
}

.preset-mini h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.preset-mini p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  min-height: 48px;
  margin-bottom: 0.9rem;
}

.preset-meta {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--text-dim);
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.preset-btn {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.045);
  color: #fff;
  font-weight: 700;
  transition: all 0.18s ease;
}

.preset-btn:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(232,93,4,0.16);
}

.preset-btn.active {
  background: linear-gradient(135deg, var(--rust) 0%, var(--ember) 100%);
  border-color: rgba(232,93,4,0.24);
  box-shadow: 0 10px 22px rgba(232,93,4,0.18);
}

/* tools */

.config-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 1.6rem;
}

.tool-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.022));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 14px 36px rgba(0,0,0,0.24);
  overflow: hidden;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,93,4,0.3), transparent);
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.95rem;
}

.tool-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.05);
}

.tool-header h3 {
  font-size: 1.12rem;
  font-weight: 800;
}

.tool-desc {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

/* craft examples */

.craft-examples {
  margin-top: 1.15rem;
  display: grid;
  gap: 0.8rem;
}

.craft-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 50px;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.06);
}

.craft-row kbd {
  min-width: 44px;
  height: 32px;
  padding: 0 0.6rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--rust-light);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: inset 0 -2px 0 rgba(255,255,255,0.03);
}

.craft-row span {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* keyboard preview */

.keyboard-preview {
  margin-top: 1.15rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.06);
}

.kb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.kb-row + .kb-row {
  margin-top: 0.55rem;
}

.kb-key {
  min-width: 44px;
  height: 36px;
  padding: 0 0.75rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
}

.kb-key.wide {
  min-width: 74px;
}

.kb-key.free {
  color: var(--text-dim);
}

.kb-key.busy {
  background: rgba(232,93,4,0.08);
  border-color: rgba(232,93,4,0.16);
  color: rgba(255,255,255,0.92);
}

.kb-key.active {
  background: linear-gradient(135deg, rgba(232,93,4,0.18), rgba(220,47,2,0.12));
  border-color: rgba(232,93,4,0.24);
  color: white;
  box-shadow: 0 8px 18px rgba(232,93,4,0.10);
}

.kb-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.9rem;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.kb-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.kb-legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.kb-legend .dot.free {
  background: rgba(255,255,255,0.24);
}

.kb-legend .dot.busy {
  background: var(--rust);
}

/* backup */

.backup-notice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.2rem;
  align-items: center;
  margin-top: 1.4rem;
  padding: 1.3rem 1.35rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.024));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 14px 36px rgba(0,0,0,0.22);
}

.backup-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(51,209,122,0.08);
  border: 1px solid rgba(51,209,122,0.14);
  color: #7dffb2;
}

.backup-text h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.backup-text p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.backup-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.backup-tag {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--text-dim);
  font-size: 0.76rem;
  font-weight: 700;
}

/* stats */

.configurator .optimizer-action {
  margin-top: 1.7rem;
}

.configurator .optimizer-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: none;
  padding: 0;
  background: transparent;
  border: 0;
}

.configurator .optimizer-stat {
  padding: 1.2rem 1rem;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.022));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 30px rgba(0,0,0,0.20);
}

.configurator .optimizer-stat .stat-value {
  color: var(--rust-light);
  font-size: 1.8rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 0.35rem;
}

.configurator .optimizer-stat .stat-label {
  color: var(--text-muted);
  font-size: 0.84rem;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1024px) {
  .review-card {
    min-width: calc((100% - 1.5rem) / 2);
  }

  .presets-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .config-tools {
    grid-template-columns: 1fr;
  }

  .backup-notice {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .backup-tags {
    justify-content: flex-start;
  }

  .configurator .optimizer-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .reviews,
  .configurator {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .reviews-carousel,
  .review-compose {
    padding: 1.2rem;
    border-radius: 22px;
  }

  .review-card {
    min-width: 100%;
    padding: 1.15rem;
  }

  .review-text {
    min-height: auto;
  }

  .review-header {
    grid-template-columns: auto 1fr;
  }

  .review-rating {
    grid-column: 1 / -1;
    margin-top: -0.1rem;
  }

  .compose-row {
    grid-template-columns: 1fr;
  }

  .compose-actions {
    align-items: stretch;
  }

  .btn-submit-review {
    width: 100%;
  }

  .presets-row,
  .configurator .optimizer-stats {
    grid-template-columns: 1fr;
  }

  .preset-mini,
  .tool-card {
    border-radius: 20px;
  }

  .backup-notice {
    padding: 1.1rem;
    border-radius: 18px;
  }
}
/* =========================================
   LIGHT MODAL CSS
   сохраняет дизайн, режет тяжёлые эффекты
   ========================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;

  background: rgba(10, 8, 8, 0.88);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.22s ease,
    visibility 0.22s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 2.5rem;
  overflow: hidden;

  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 24px;

  box-shadow:
    0 24px 60px rgba(0,0,0,0.55),
    0 0 24px rgba(232,93,4,0.08);

  transform: translateY(14px) scale(0.985);
  opacity: 0.98;

  transition:
    transform 0.24s ease,
    opacity 0.24s ease,
    box-shadow 0.24s ease;
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;

  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);

  background: var(--panel);
  color: var(--text-muted);

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.modal-close:hover {
  background: var(--panel-hover);
  border-color: var(--rust);
  color: var(--text);
  transform: rotate(90deg);
}

/* верхняя визуальная часть */

.modal-visual {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* тяжелый glow убираем полностью */
.modal-glow {
  display: none;
}

.modal-icon {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--border-accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}

.modal-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-pulse {
  display: none;
}

/* контент */

.modal-content h3 {
  margin-bottom: 0.5rem;
  text-align: center;
  font-size: 1.75rem;
  font-weight: 800;
}

.modal-subtitle {
  margin-bottom: 1.75rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
}

.modal-price {
  color: var(--rust-light);
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  width: 100%;
  padding: 1rem 1rem 1rem 2.75rem;

  background: rgba(0,0,0,0.28);
  border: 1px solid var(--border);
  border-radius: 12px;

  color: var(--text);
  font-size: 1rem;

  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.input-wrap input:focus {
  outline: none;
  border-color: var(--rust);
  background: rgba(0,0,0,0.42);
  box-shadow: 0 0 0 3px rgba(232,93,4,0.08);
}

.input-wrap input::placeholder {
  color: var(--text-dim);
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 1rem;
  pointer-events: none;
}

.input-hint {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* checkbox */

.checkbox-field {
  margin-top: -0.25rem;
}

.checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.checkbox-wrap input {
  display: none;
}

.checkbox-custom {
  position: relative;
  flex-shrink: 0;
  margin-top: 0.1rem;

  width: 20px;
  height: 20px;
  border-radius: 6px;

  border: 2px solid var(--border);
  background: rgba(0,0,0,0.18);

  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.checkbox-custom::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  color: white;
  font-size: 0.8rem;
  font-weight: 700;

  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

.checkbox-wrap input:checked + .checkbox-custom {
  background: linear-gradient(135deg, var(--rust) 0%, var(--ember) 100%);
  border-color: var(--rust);
}

.checkbox-wrap input:checked + .checkbox-custom::after {
  opacity: 1;
  transform: scale(1);
}

.checkbox-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.checkbox-text a {
  color: var(--rust-light);
  text-decoration: none;
}

.checkbox-text a:hover {
  text-decoration: underline;
}

/* кнопка оплаты */

.btn-modal-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;

  width: 100%;
  margin-top: 0.5rem;
  padding: 1.125rem;

  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--rust) 0%, var(--ember) 100%);

  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;

  box-shadow: 0 10px 24px rgba(232,93,4,0.24);

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease,
    opacity 0.18s ease;
}

.btn-modal-buy:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(232,93,4,0.28);
  filter: brightness(1.02);
}

.btn-modal-buy:disabled {
  opacity: 0.7;
  cursor: wait;
}

.btn-loader {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* trust */

.modal-trust {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.trust-item-modal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.trust-item-modal span:first-child {
  font-size: 1rem;
}

/* price breakdown */

.modal-price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1rem 0.25rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.price-row strong {
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
}

.price-row-discount strong {
  color: #6dffb0;
}

.price-row-total {
  padding-top: 0.75rem;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
}

.price-row-total strong {
  color: var(--rust-light);
  font-size: 1.1rem;
}

.modal-price-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-price-old {
  color: var(--text-dim);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  opacity: 0.8;
}

.modal-price.has-discount,
.modal-price-current {
  color: var(--rust-light);
}

/* responsive */

@media (max-width: 640px) {
  .modal-overlay {
    padding: 0.85rem;
    align-items: flex-end;
  }

  .modal-container {
    max-width: 100%;
    padding: 1.35rem;
    border-radius: 22px;
    transform: translateY(18px) scale(0.995);
  }

  .modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
  }

  .modal-content h3 {
    font-size: 1.45rem;
  }

  .modal-subtitle {
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
  }

  .modal-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
  }

  .modal-trust {
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
  }

  .trust-item-modal {
    justify-content: center;
  }

  .btn-modal-buy {
    font-size: 1rem;
    padding: 1rem;
  }
}
.preset-list {
  margin: 0.95rem 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.preset-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.preset-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rust);
  box-shadow: 0 0 10px rgba(232,93,4,0.18);
}

.preset-mini p {
  min-height: auto;
  margin-bottom: 0;
}

.preset-meta {
  margin-bottom: 0;
}
/* =========================================
   MOBILE BASE FIX
   ставить в самый конец CSS
   ========================================= */

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  body {
    overflow-x: hidden;
  }

  section,
  .features,
  .pricing,
  .faq,
  .optimizer,
  .configurator,
  .reviews,
  .review-compose,
  .modes,
  footer {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-header h2 {
    font-size: clamp(1.7rem, 7vw, 2.25rem);
    line-height: 1.08;
  }

  .section-header p {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  /* header */
  header,
  #header,
  header.scrolled,
  #header.scrolled {
    padding: 0.8rem 1rem;
  }

  .logo-img img,
  .logo img {
    max-height: 38px;
  }

  /* hero */
  .hero {
    min-height: auto;
    padding: 6.2rem 1rem 2.2rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 2.7rem);
    line-height: 1.02;
    margin-bottom: 1rem;
  }

  .badge {
    margin-bottom: 1rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.74rem;
  }

  .hero-tags {
    gap: 0.45rem;
    margin-bottom: 1rem;
  }

  .hero-tags span {
    padding: 0.4rem 0.65rem;
    font-size: 0.72rem;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 1.3rem;
  }

  .hs-line + .hs-line {
    margin-top: 0.7rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.3rem;
  }

  .btn-primary,
  .btn-secondary,
  .btn-pricing {
    width: 100%;
    min-height: 48px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .stat {
    min-width: 0;
  }

  .stat-value {
    font-size: 1rem;
  }

  .stat-label {
    font-size: 0.66rem;
    line-height: 1.25;
  }

  .demo-card {
    border-radius: 16px;
  }

  /* generic cards */
  .feature-card,
  .optimizer-card,
  .mode-feature-card,
  .preset-mini,
  .tool-card,
  .review-card,
  .configurator .optimizer-stat,
  .backup-notice {
    border-radius: 16px;
  }

  /* modes */
  .tabs {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
  }

  .tab {
    width: 100%;
    min-height: 42px;
    padding: 0.75rem 0.9rem;
    font-size: 0.88rem;
  }

  .mode-split {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .mode-demo-stage {
    position: relative;
    top: 0;
    order: -1;
    border-radius: 16px;
  }

  .mode-demo-content {
    min-height: 220px;
    aspect-ratio: 16 / 10;
  }

  .mode-feature-card {
    padding: 0.95rem;
    gap: 0.8rem;
  }

  .mode-icon,
  .mode-number {
    width: 36px;
    height: 36px;
    font-size: 0.76rem;
    border-radius: 10px;
  }

  .mode-text h4,
  .mode-content h4 {
    font-size: 0.92rem;
    margin-bottom: 0.25rem;
  }

  .mode-text p,
  .mode-content p {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .mode-demo-badge {
    padding: 0.8rem 0.95rem;
    font-size: 0.76rem;
  }

  /* configurator */
  .presets-row {
    grid-template-columns: 1fr !important;
    gap: 0.8rem;
    margin-top: 1.4rem;
  }

  .preset-mini {
    padding: 1rem;
  }

  .preset-mini h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }

  .preset-mini p {
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 0;
    min-height: auto;
  }

  .preset-list {
    margin: 0.75rem 0 0.75rem;
    gap: 0.4rem;
  }

  .preset-list li {
    padding-left: 0.8rem;
    font-size: 0.78rem;
    line-height: 1.38;
  }

  .preset-list li::before {
    width: 5px;
    height: 5px;
    top: 0.48rem;
    box-shadow: none;
  }

  .preset-meta {
    min-height: 24px;
    padding: 0.24rem 0.55rem;
    font-size: 0.64rem;
    margin-bottom: 0;
  }

  .config-tools {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-top: 1rem;
  }

  .tool-card {
    padding: 1rem;
  }

  .tool-header {
    gap: 0.7rem;
    margin-bottom: 0.7rem;
  }

  .tool-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .tool-header h3 {
    font-size: 0.96rem;
  }

  .tool-desc {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .craft-row {
    min-height: 44px;
    padding: 0.7rem 0.8rem;
    gap: 0.65rem;
  }

  .craft-row span {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .keyboard-preview {
    padding: 0.8rem;
    border-radius: 14px;
  }

  .kb-key {
    min-width: 38px;
    height: 32px;
    padding: 0 0.55rem;
    border-radius: 10px;
    font-size: 0.72rem;
  }

  .kb-key.wide {
    min-width: 62px;
  }

  .kb-legend {
    gap: 0.7rem;
    font-size: 0.74rem;
  }

  .backup-notice {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding: 1rem;
    align-items: start;
  }

  .backup-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .backup-text h4 {
    font-size: 0.95rem;
  }

  .backup-text p {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .backup-tags {
    justify-content: flex-start;
    gap: 0.45rem;
  }

  .backup-tag {
    font-size: 0.66rem;
    padding: 0.28rem 0.55rem;
  }

  .configurator .optimizer-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
  }

  .configurator .optimizer-stat {
    padding: 0.9rem 0.7rem;
  }

  .configurator .optimizer-stat .stat-value {
    font-size: 1.15rem;
  }

  .configurator .optimizer-stat .stat-label {
    font-size: 0.72rem;
    line-height: 1.3;
  }

  /* reviews */
  .reviews {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .reviews-carousel,
  .review-compose {
    padding: 1rem;
    border-radius: 18px;
  }

  .review-card {
    min-width: 100%;
    padding: 1rem;
    border-radius: 16px;
  }

  .review-header {
    grid-template-columns: auto 1fr;
    gap: 0.7rem;
    margin-bottom: 0.75rem;
  }

  .review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 0.9rem;
  }

  .review-name {
    font-size: 0.92rem;
  }

  .review-stats {
    font-size: 0.74rem;
  }

  .review-rating {
    grid-column: 1 / -1;
    font-size: 0.78rem;
    margin-top: -0.1rem;
  }

  .review-text {
    min-height: auto;
    font-size: 0.84rem;
    line-height: 1.55;
    margin-bottom: 0.85rem;
  }

  .review-tag {
    font-size: 0.68rem;
    min-height: 26px;
    padding: 0.3rem 0.6rem;
  }

  .reviews-controls {
    grid-template-columns: 44px 1fr 44px;
    gap: 0.7rem;
    margin-top: 1rem;
  }

  .review-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .compose-header h3 {
    font-size: 1.2rem;
  }

  .compose-header p {
    font-size: 0.86rem;
  }

  .compose-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .compose-field label {
    font-size: 0.74rem;
  }

  .compose-field input,
  .compose-field textarea {
    border-radius: 14px;
    padding: 0.85rem 0.9rem;
    font-size: 0.9rem;
  }

  .compose-field textarea {
    min-height: 110px;
  }

  .tag-selector {
    gap: 0.5rem;
  }

  .tag-option {
    width: 100%;
    justify-content: center;
    min-height: 40px;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    font-size: 0.82rem;
  }

  .star-rating {
    width: 100%;
    justify-content: center;
    padding: 0.5rem;
  }

  .star-rating button {
    font-size: 1.65rem;
  }

  .compose-actions {
    align-items: stretch;
    gap: 0.75rem;
  }

  .btn-submit-review {
    width: 100%;
    min-height: 48px;
    font-size: 0.9rem;
  }

  .submit-note {
    text-align: center;
    width: 100%;
  }

  /* faq */
  .faq {
    max-width: none;
  }

  .faq-item {
    padding: 1rem 0;
  }

  .faq-question {
    font-size: 0.96rem;
    line-height: 1.35;
  }

  .faq-answer {
    padding-right: 0;
    font-size: 0.86rem;
    line-height: 1.6;
  }

  /* footer */
  .footer-content,
  .footer-bottom {
    flex-direction: column;
    gap: 1.4rem;
  }

  .footer-links {
    gap: 1.4rem;
    flex-direction: column;
  }

  /* modal */
  .modal-overlay {
    padding: 0.75rem;
    align-items: flex-end;
  }

  .modal-container {
    max-width: 100%;
    padding: 1.1rem;
    border-radius: 18px;
  }

  .modal-content h3 {
    font-size: 1.3rem;
  }

  .modal-subtitle {
    font-size: 0.86rem;
    margin-bottom: 1rem;
  }

  .modal-icon {
    width: 62px;
    height: 62px;
    border-radius: 16px;
  }

  .modal-form {
    gap: 1rem;
  }

  .modal-field label {
    font-size: 0.74rem;
  }

  .input-wrap input {
    padding: 0.9rem 0.9rem 0.9rem 2.5rem;
    font-size: 0.92rem;
  }

  .input-icon {
    left: 0.85rem;
    font-size: 0.9rem;
  }

  .btn-modal-buy {
    min-height: 48px;
    padding: 1rem;
    font-size: 0.95rem;
  }

  .modal-trust {
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
    padding-top: 1rem;
  }

  .trust-item-modal {
    width: calc(50% - 0.35rem);
    justify-content: center;
    font-size: 0.72rem;
  }

  .modal-price-breakdown {
    padding: 0.85rem 0.85rem 0.2rem;
  }

  .price-row {
    font-size: 0.84rem;
  }

  .price-row strong {
    font-size: 0.9rem;
  }
}

@media (max-width: 420px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .configurator .optimizer-stats {
    grid-template-columns: 1fr;
  }

  .trust-item-modal {
    width: 100%;
  }

  .review-btn {
    width: 40px;
    height: 40px;
  }

  .reviews-controls {
    grid-template-columns: 40px 1fr 40px;
  }
}
/* =========================================
   FIX BURGER + FEATURES/OPTIMIZER MOBILE
   ставить в самый низ CSS
   ========================================= */

/* ---------- burger / nav ---------- */

@media (max-width: 1024px) {
  .desktop-nav,
  nav.desktop-nav {
    display: none !important;
  }

  .burger-btn,
  #burgerBtn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  header,
  #header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.75rem;
  }

  .logo {
    min-width: 0;
  }

  .logo-img img,
  .logo img {
    max-height: 40px;
    width: auto;
  }
}

@media (max-width: 768px) {
  .burger-btn,
  #burgerBtn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
  }

  .burger-btn span {
    width: 18px;
    height: 2px;
  }

  .burger-btn span:first-child { top: 15px; }
  .burger-btn span:last-child { top: 23px; }

  .burger-btn.active span:first-child,
  #burgerBtn.active span:first-child {
    top: 19px;
  }

  .burger-btn.active span:last-child,
  #burgerBtn.active span:last-child {
    top: 19px;
  }

  .mobile-nav {
    z-index: 1190;
  }

  .mobile-nav-inner {
    justify-content: flex-start;
    gap: 10px;
    padding: 84px 16px 20px;
  }

  .mobile-nav a,
  .mobile-lang-switch {
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
  }
}

/* ---------- features / optimizer cards ---------- */

.features-grid,
.optimizer-grid {
  align-items: stretch;
}

.feature-card,
.optimizer-card {
  height: 100%;
}

@media (max-width: 1024px) {
  .features-grid,
  .optimizer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1rem;
  }

  .feature-card,
  .optimizer-card {
    padding: 1.25rem;
    border-radius: 18px;
  }

  .feature-icon,
  .optimizer-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 1rem;
    border-radius: 12px;
    font-size: 1.2rem;
  }

  .feature-card h3,
  .optimizer-card h3 {
    font-size: 1.02rem;
    line-height: 1.25;
    margin-bottom: 0.55rem;
  }

  .feature-card p,
  .optimizer-card p {
    font-size: 0.86rem;
    line-height: 1.55;
  }

  .feature-tags,
  .optimizer-tags {
    margin-top: 0.9rem;
    gap: 0.45rem;
  }

  .tag,
  .optimizer-tags span {
    font-size: 0.68rem;
    padding: 0.26rem 0.58rem;
  }
}

@media (max-width: 768px) {
  .features,
  .optimizer {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .features-grid,
  .optimizer-grid {
    grid-template-columns: 1fr !important;
    gap: 0.8rem;
  }

  .feature-card,
  .optimizer-card {
    padding: 1rem;
    border-radius: 16px;
    min-height: auto;
  }

  .feature-card::before,
  .optimizer-card::before {
    height: 1px;
    opacity: 0.5;
  }

  .feature-icon,
  .optimizer-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.8rem;
    border-radius: 11px;
    font-size: 1.05rem;
  }

  .feature-card h3,
  .optimizer-card h3 {
    font-size: 0.95rem;
    line-height: 1.22;
    margin-bottom: 0.45rem;
  }

  .feature-card p,
  .optimizer-card p {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .feature-tags,
  .optimizer-tags {
    margin-top: 0.75rem;
    gap: 0.38rem;
  }

  .tag,
  .optimizer-tags span {
    font-size: 0.64rem;
    padding: 0.22rem 0.5rem;
  }
}

@media (max-width: 420px) {
  .feature-card,
  .optimizer-card {
    padding: 0.9rem;
  }

  .feature-card h3,
  .optimizer-card h3 {
    font-size: 0.9rem;
  }

  .feature-card p,
  .optimizer-card p {
    font-size: 0.77rem;
    line-height: 1.4;
  }
}
/* header исчезает, когда открыта модалка */
body.modal-open header,
body.modal-open #header {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px);
}
/* overlay держит модалку по центру/снизу */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(10, 8, 8, 0.88);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* скролл только внутри окна */
.modal-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: min(86vh, 760px);
  overflow-y: auto;
  overflow-x: hidden;

  padding: 2.5rem;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.55),
    0 0 24px rgba(232,93,4,0.08);

  transform: translateY(14px) scale(0.985);
  opacity: 0.98;
  transition: transform 0.24s ease, opacity 0.24s ease, box-shadow 0.24s ease;

  scrollbar-width: none;         /* Firefox */
  -ms-overflow-style: none;      /* IE/Edge legacy */
}

.modal-container::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* =========================================
   PRICING MOBILE FIX
   ========================================= */

@media (max-width: 768px) {
  .pricing {
    max-width: none;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .pricing .section-header {
    margin-bottom: 1.6rem;
  }

  .pricing .section-header h2 {
    font-size: clamp(1.75rem, 7vw, 2.2rem);
  }

  .pricing .section-header p {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .pricing-solo {
    grid-template-columns: 1fr !important;
    gap: 1.2rem;
    padding: 1.15rem;
    border-radius: 18px;
    text-align: center;
  }

  .pricing-solo::before {
    left: 12px;
    right: 12px;
  }

  .pricing-visual {
    order: 0;
    gap: 0.7rem;
  }

  .pricing-glow {
    width: 120px;
    height: 120px;
    filter: blur(14px);
    opacity: 0.6;
  }

  .pricing-icon {
    width: 74px;
    height: 74px;
    border-radius: 16px;
  }

  .pricing-badge {
    padding: 0.38rem 0.72rem;
    font-size: 0.66rem;
    letter-spacing: 0.05em;
  }

  .pricing-content {
    gap: 0.9rem;
  }

  .pricing-header h3 {
    font-size: 1.28rem;
    margin-bottom: 0.35rem;
  }

  .pricing-header p {
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .pricing-amount {
    justify-content: center;
    align-items: flex-end;
    gap: 0.15rem 0.35rem;
    margin-top: 0.15rem;
  }

  .pricing-amount .currency {
    font-size: 1.35rem;
    line-height: 1;
  }

  .pricing-amount .value {
    font-size: 2.7rem;
    line-height: 0.95;
  }

  .pricing-amount .period {
    width: 100%;
    margin-left: 0;
    margin-top: 0.35rem;
    font-size: 0.76rem;
    text-align: center;
  }

  .pricing-action {
    gap: 0.7rem;
    margin-top: 0.15rem;
  }

  .btn-pricing {
    width: 100%;
    min-height: 48px;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    font-size: 0.94rem;
  }

  .pricing-guarantee {
    font-size: 0.76rem;
    line-height: 1.45;
    text-wrap: balance;
  }

  .pricing-decor {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .pricing-solo {
    padding: 1rem;
    gap: 1rem;
    border-radius: 16px;
  }

  .pricing-icon {
    width: 68px;
    height: 68px;
  }

  .pricing-header h3 {
    font-size: 1.16rem;
  }

  .pricing-header p {
    font-size: 0.82rem;
  }

  .pricing-amount .currency {
    font-size: 1.2rem;
  }

  .pricing-amount .value {
    font-size: 2.35rem;
  }

  .pricing-amount .period {
    font-size: 0.72rem;
  }

  .btn-pricing {
    min-height: 46px;
    font-size: 0.9rem;
  }

  .pricing-guarantee {
    font-size: 0.72rem;
  }
}
.optimizer-action {
  margin-top: 2.2rem;
}

.optimizer-stats-buy {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.optimizer-stats-buy .optimizer-stat {
  min-width: 0;
  padding: 1rem 0.8rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

.optimizer-stats-buy .stat-value {
  font-size: 1.45rem;
  line-height: 1.1;
  word-break: break-word;
}

.optimizer-stats-buy .stat-label {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--text-muted);
  word-break: break-word;
}

.optimizer-buy-wrap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding-top: 0.2rem;
}

.optimizer-buy-btn {
  min-width: 260px;
}
@media (max-width: 768px) {
  .optimizer-stats-buy {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 0.8rem;
    border-radius: 18px;
  }

  .optimizer-stats-buy .optimizer-stat {
    padding: 0.85rem 0.6rem;
    border-radius: 14px;
  }

  .optimizer-stats-buy .stat-value {
    font-size: 1.05rem;
  }

  .optimizer-stats-buy .stat-label {
    font-size: 0.7rem;
    line-height: 1.25;
  }

  .optimizer-buy-wrap {
    grid-column: 1 / -1;
    padding-top: 0.1rem;
  }

  .optimizer-buy-btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 420px) {
  .optimizer-stats-buy {
    grid-template-columns: 1fr;
  }
}
/* текущий optimizer-stats на мобиле */
@media (max-width: 768px) {
  .optimizer-stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
    padding: 0.8rem;
  }

  .optimizer-stat {
    min-width: 0;
    padding: 0.85rem 0.6rem;
  }

  .optimizer-stat .stat-value {
    font-size: 1rem;
    line-height: 1.05;
    word-break: break-word;
  }

  .optimizer-stat .stat-label {
    font-size: 0.68rem;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .optimizer-stats {
    grid-template-columns: 1fr;
  }

  .optimizer-stat .stat-value {
    font-size: 0.95rem;
  }

  .optimizer-stat .stat-label {
    font-size: 0.64rem;
    line-height: 1.15;
  }
}
#payment-form {
  width: 100%;
  min-height: 320px;
  margin-top: 8px;
}

#widgetStep {
  width: 100%;
  max-height: 65vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.18) transparent;
}

#widgetStep::-webkit-scrollbar {
  width: 8px;
}

#widgetStep::-webkit-scrollbar-track {
  background: transparent;
}

#widgetStep::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
}

#widgetStep::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.28);
}
.payment-success-card {
  width: 100%;
  text-align: center;
  padding: 8px 0 4px;
}

.payment-success-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(90, 255, 163, 0.22), rgba(90, 255, 163, 0.06));
  border: 1px solid rgba(90, 255, 163, 0.28);
  box-shadow: 0 0 30px rgba(90, 255, 163, 0.12);
}

.payment-success-check {
  font-size: 38px;
  font-weight: 700;
  color: #6dffb0;
}

.payment-success-title {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.2;
  color: #fff;
}

.payment-success-text {
  margin: 0 0 18px;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
  font-size: 15px;
}

.payment-success-email,
.payment-success-keybox {
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 14px;
}

.payment-success-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.48);
  margin-bottom: 8px;
}

.payment-success-email strong {
  color: #fff;
  font-size: 15px;
  word-break: break-word;
}

.payment-success-keybox code {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  word-break: break-word;
}

.payment-success-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.payment-success-actions .btn-modal-buy,
.payment-success-actions .btn-modal-close {
  flex: 1;
}

.payment-success-note {
  margin: 16px 0 0;
  color: rgba(255,255,255,0.52);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .payment-success-title {
    font-size: 24px;
  }

  .payment-success-keybox code {
    font-size: 16px;
  }

  .payment-success-actions {
    flex-direction: column;
  }
}
.payment-processing-card {
  width: 100%;
  text-align: center;
  padding: 20px 0 10px;
}

.payment-processing-spinner {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.12);
  border-top-color: rgba(255,255,255,0.9);
  animation: paymentSpin 0.9s linear infinite;
}

.payment-processing-title {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.2;
  color: #fff;
}

.payment-processing-text {
  margin: 0 0 12px;
  color: rgba(255,255,255,0.78);
  font-size: 15px;
  line-height: 1.6;
}

.payment-processing-note {
  margin: 0;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  line-height: 1.5;
}

@keyframes paymentSpin {
  to {
    transform: rotate(360deg);
  }
}
.payment-processing-card {
  width: 100%;
  text-align: center;
  padding: 20px 0 10px;
}

.payment-processing-spinner {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.12);
  border-top-color: rgba(255,255,255,0.9);
  animation: paymentSpin 0.9s linear infinite;
}

.payment-processing-title {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.2;
  color: #fff;
}

.payment-processing-text {
  margin: 0 0 12px;
  color: rgba(255,255,255,0.78);
  font-size: 15px;
  line-height: 1.6;
}

.payment-processing-note {
  margin: 0;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  line-height: 1.5;
}
.footer-legal-info {
  margin-top: 1rem;
  max-width: 260px;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-dim);
}

.footer-legal-info p {
  margin: 0 0 0.25rem;
}