:root {
  --ink: #f7f1e6;
  --muted: rgba(247, 241, 230, .66);
  --dark: #08111f;
  --panel: rgba(216, 232, 255, .075);
  --panel-strong: rgba(216, 232, 255, .12);
  --line: rgba(216, 232, 255, .16);
  --teal: #16a394;
  --copper: #c66b3d;
  --wine: #9f3150;
  --gold: #e2b968;
  --paper: #f2eadc;
  --shadow: 0 34px 100px rgba(0, 7, 18, .48);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 110px; }
#crm-review,
#viewnode-review,
#lead { scroll-margin-top: 40px; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--dark);
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.site-shell {
  min-height: 100vh;
  overflow: clip;
  background:
    radial-gradient(circle at 16% 12%, rgba(22,163,148,.22), transparent 30%),
    radial-gradient(circle at 82% 7%, rgba(159,49,80,.18), transparent 28%),
    radial-gradient(circle at 72% 62%, rgba(52,104,174,.18), transparent 34%),
    linear-gradient(135deg, #07111f 0%, #0b2034 42%, #121827 68%, #0a151d 100%);
  position: relative;
}
.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0%, rgba(119,188,210,.08) 38%, transparent 62%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 1px, transparent 1px 9px);
  mix-blend-mode: screen;
  opacity: .72;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1240px, calc(100% - 32px));
  min-height: 66px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 12px 18px;
  background: rgba(7, 17, 31, .76);
  border: 1px solid var(--line);
  border-radius: 10px;
  backdrop-filter: blur(20px);
}

.brand, .button, .chat-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.brand { font-weight: 800; }
.nav { justify-self: center; display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: 15px; white-space: nowrap; }
.nav a:hover, .nav-trigger:hover, .nav-item:focus-within .nav-trigger, .nav-item:hover .nav-trigger { color: #fff; }
.nav-item { position: relative; }
.nav-item::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -18px;
  right: -18px;
  height: 16px;
}
.nav-trigger {
  min-height: 34px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 190px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7,17,31,.96);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .18s ease, transform .18s ease;
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--muted);
  white-space: nowrap;
}
.nav-dropdown svg,
.contact-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.nav-dropdown svg {
  color: var(--gold);
}
.contact-icon { object-fit: contain; }
.nav-dropdown svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-dropdown a:hover { background: rgba(247,241,230,.08); color: #fff; }
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.contact-menu {
  justify-self: end;
  color: var(--ink);
  font-size: 16px;
}
.contact-menu .nav-dropdown {
  left: auto;
  right: 0;
  transform: translateY(8px);
}
.contact-menu:hover .nav-dropdown,
.contact-menu:focus-within .nav-dropdown {
  transform: translateY(0);
}

.showroom {
  position: relative;
  min-height: 92svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .78fr);
  align-items: center;
  gap: 34px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 104px 0 38px;
}

.hero-orbit {
  position: absolute;
  inset: 80px -120px 0;
  pointer-events: none;
  opacity: .68;
}

.hero-orbit span {
  position: absolute;
  border: 1px solid rgba(216,232,255,.12);
  border-radius: 50%;
  animation: orbit 18s linear infinite;
}
.hero-orbit span:nth-child(1) { width: 680px; height: 680px; right: -40px; top: 10px; }
.hero-orbit span:nth-child(2) { width: 460px; height: 460px; right: 90px; top: 120px; animation-duration: 24s; }
.hero-orbit span:nth-child(3) { width: 280px; height: 280px; right: 200px; top: 210px; animation-duration: 12s; }
@keyframes orbit { to { transform: rotate(360deg); } }

.hero-content, .hero-stage, .product-copy, .product-art, .section-head, .lead-copy, .lead-form {
  position: relative;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.02;
}

h1 { max-width: 680px; font-size: clamp(38px, 4.5vw, 64px); }
h2 { font-size: clamp(32px, 3.7vw, 54px); }
h3 { font-size: clamp(24px, 2.6vw, 36px); }
.section-title { font-size: clamp(32px, 3.7vw, 54px); line-height: 1.02; }

.hero-copy {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 18px);
}

.hero-actions, .product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.product-actions { margin-bottom: 22px; }
.button {
  min-height: 54px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.button svg, .topbar svg, .chat-form svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.button:hover { transform: translateY(-2px); }
.primary { background: var(--teal); color: #fff; box-shadow: 0 18px 46px rgba(22,163,148,.28); }
.ghost { border-color: rgba(247,241,230,.24); background: rgba(247,241,230,.06); color: var(--ink); }

.hero-stage {
  min-height: 440px;
  perspective: 1200px;
}

.stage-card {
  position: absolute;
  width: min(420px, 100%);
  min-height: 225px;
  padding: 16px;
  border: 1px solid rgba(216, 232, 255, 0.18);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(15, 32, 56, 0.85), rgba(7, 17, 31, 0.92));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(28px);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.stage-card:hover {
  border-color: rgba(22, 163, 148, 0.5);
  box-shadow: 0 30px 70px rgba(22, 163, 148, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.stage-crm { 
  top: 0; 
  right: 0px; 
  transform: rotateY(-8deg) rotateZ(2deg); 
  z-index: 1;
}
.stage-crm:hover {
  transform: rotateY(-3deg) rotateZ(0deg) translateY(-6px);
  z-index: 3;
}
.stage-node { 
  left: 0px; 
  bottom: 0; 
  transform: rotateY(8deg) rotateZ(-2deg); 
  z-index: 2;
}
.stage-node:hover {
  transform: rotateY(3deg) rotateZ(0deg) translateY(-6px);
  z-index: 3;
}

.window-bar { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  margin-bottom: 10px; 
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(216, 232, 255, 0.08);
}
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(247,241,230,.22); }
.window-dots i:nth-child(1) { background: #ff5f56; opacity: 0.85; }
.window-dots i:nth-child(2) { background: #ffbd2e; opacity: 0.85; }
.window-dots i:nth-child(3) { background: #27c93f; opacity: 0.85; }

.stage-card-title {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.2px;
}

.stage-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stage-badge.teal {
  background: rgba(22, 163, 148, 0.18);
  color: #34d399;
  border: 1px solid rgba(22, 163, 148, 0.4);
}
.stage-badge.gold {
  background: rgba(226, 185, 104, 0.18);
  color: #e2b968;
  border: 1px solid rgba(226, 185, 104, 0.4);
}

.stage-body {
  width: 100%;
  overflow: hidden;
}

.stage-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.animated-flow-line {
  stroke-dasharray: 6 6;
  animation: flowDash 2.5s linear infinite;
}
@keyframes flowDash {
  to { stroke-dashoffset: -24; }
}

.animated-chart-line {
  stroke-dasharray: 350;
  stroke-dashoffset: 350;
  animation: chartDraw 3s ease-out forwards infinite alternate;
}
@keyframes chartDraw {
  0% { stroke-dashoffset: 350; }
  100% { stroke-dashoffset: 0; }
}

.product-showcase, .section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.product-showcase {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: 34px;
  min-height: 620px;
  padding: 70px 0;
}
.node-showcase { grid-template-columns: minmax(360px, 1.05fr) minmax(0, .95fr); }
.product-copy p, .lead-copy p {
  max-width: 640px;
  color: var(--muted);
  font-size: 16px;
}
.sell-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.sell-points span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(216,232,255,.075);
  color: rgba(247,241,230,.84);
  font-weight: 800;
}

.product-art {
  min-height: 390px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(216,232,255,.11), rgba(216,232,255,.035)),
    radial-gradient(circle at 20% 20%, rgba(22,163,148,.22), transparent 36%),
    radial-gradient(circle at 82% 18%, rgba(52,104,174,.18), transparent 34%);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.product-art img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: contain;
  filter: drop-shadow(0 24px 54px rgba(0,0,0,.3));
}
.floating-note {
  position: absolute;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7,17,31,.72);
  color: var(--ink);
  font-weight: 800;
  backdrop-filter: blur(14px);
}
.floating-note.one { top: 54px; right: 52px; }
.floating-note.two { left: 54px; bottom: 100px; }
.floating-note.three { right: 84px; bottom: 48px; }
.signal-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .5;
  pointer-events: none;
}
.signal-lines path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-dasharray: 12 16;
  animation: dash 4s linear infinite;
}

.section { padding: 70px 0; }
.section-head { max-width: 820px; margin-bottom: 34px; }
.price-group + .price-group { margin-top: 64px; }
.price-group h3, .lead-title { margin: 0 0 14px; font-size: 26px; line-height: 1.15; }
.crm-price-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 14px;
}
.crm-price-heading h3 { margin: 0; }
.crm-price-heading p {
  margin: 0;
  color: #ff4b4b;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.promo-text-pulse {
  display: inline-block;
  animation: pulse-promo-text 2s ease-in-out infinite;
}

.promo-counter-pulse {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 14px;
  border-radius: 999px;
  background: rgba(255, 75, 75, 0.14);
  border: 1px solid rgba(255, 75, 75, 0.45);
  color: #ff4b4b;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  animation: pulse-promo-counter 1.6s ease-in-out infinite;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.crm-price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(216,232,255,.075);
}
.price-card span { color: var(--gold); font-weight: 800; }
.price-card strong {
  display: flex;
  align-items: center;
  margin: 14px 0 10px;
  font-size: 25px;
  line-height: 1.1;
  min-height: 58px;
}
.price-card strong.price-promo {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.price-card .price-old-cross {
  position: relative;
  display: inline-block;
  color: rgba(247,241,230,.9);
}
.price-card .price-old-cross::before,
.price-card .price-old-cross::after {
  content: "";
  position: absolute;
  left: -6%;
  top: 50%;
  width: 112%;
  height: 3px;
  border-radius: 999px;
  background: #ff2f2f;
  transform-origin: center;
}
.price-card .price-old-cross::before { transform: rotate(14deg); }
.price-card .price-old-cross::after { transform: rotate(-14deg); }
.price-card .price-new {
  color: #ff4b4b;
  font-size: 1.18em;
  font-weight: 900;
  text-shadow: 0 0 16px rgba(255,75,75,.24);
  display: inline-block;
  animation: pulse-price-red 1.8s ease-in-out infinite;
}

@keyframes pulse-promo-text {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 75, 75, 0.3);
  }
  50% {
    transform: scale(1.02);
    opacity: 0.88;
    text-shadow: 0 0 22px rgba(255, 75, 75, 0.8), 0 0 36px rgba(255, 75, 75, 0.45);
  }
}

@keyframes pulse-promo-counter {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(255, 75, 75, 0.3);
    border-color: rgba(255, 75, 75, 0.45);
    color: #ff4b4b;
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 20px rgba(255, 75, 75, 0.8);
    border-color: rgba(255, 120, 120, 0.95);
    color: #ff7575;
  }
}

@keyframes pulse-price-red {
  0%, 100% {
    transform: scale(1);
    color: #ff4b4b;
    text-shadow: 0 0 12px rgba(255, 75, 75, 0.3);
  }
  50% {
    transform: scale(1.06);
    color: #ff2222;
    text-shadow: 0 0 24px rgba(255, 34, 34, 0.85), 0 0 40px rgba(255, 75, 75, 0.5);
  }
}
.price-card p { margin: 0; color: var(--muted); }
.product-rating {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding-top: 0;
  color: var(--muted);
}
.product-rating-stars {
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 1px;
}
.product-rating small {
  color: rgba(247,241,230,.76);
  font-weight: 700;
}
.price-card.accent { background: linear-gradient(145deg, rgba(22,163,148,.28), rgba(52,104,174,.16)); }
.price-card--demo {
  border-color: rgba(34,215,239,.42);
  background: linear-gradient(145deg, rgba(34,215,239,.13), rgba(176,108,255,.11));
}
.price-card--popular {
  border-color: rgba(176,108,255,.82);
  background:
    linear-gradient(180deg, rgba(176,108,255,.18), rgba(176,108,255,0) 32%),
    rgba(216,232,255,.075);
  box-shadow: 0 0 0 1px rgba(176,108,255,.18), 0 18px 42px rgba(84,46,170,.28);
}
.price-card--popular::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(90deg, rgba(176,108,255,0), #b06cff 18%, #7c4dff 78%, rgba(176,108,255,0));
}
.price-card--popular::after {
  content: "Популярный";
  position: absolute;
  top: -17px;
  right: 18px;
  min-height: 34px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px 999px 8px 999px;
  background: linear-gradient(135deg, #6d63ff, #b06cff);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(124,77,255,.34);
}
.price-feature-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #c8d2ff;
  font-size: 15px;
  line-height: 1.35;
}
.price-feature-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 9px;
}
.price-feature-list svg {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  fill: none;
  stroke: #22d7ef;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.price-feature-list .is-muted {
  color: rgba(200,210,255,.44);
}
.price-feature-list .is-muted svg {
  stroke: rgba(34,215,239,.55);
}
.price-feature-list--pro svg {
  stroke: #b06cff;
}
.price-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  padding: 0 16px;
  border-color: rgba(216,232,255,.18);
  background: rgba(216,232,255,.08);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}
.price-card p,
.price-feature-list {
  margin-bottom: 18px;
}
.price-button:hover {
  border-color: rgba(34,215,239,.55);
  background: rgba(34,215,239,.14);
}
.price-button:disabled {
  cursor: not-allowed;
  opacity: .58;
}
.price-button:disabled:hover {
  border-color: rgba(216,232,255,.18);
  background: rgba(216,232,255,.08);
}
.price-button--demo {
  background: linear-gradient(135deg, rgba(34,215,239,.20), rgba(176,108,255,.16));
}

.crm-review-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(216,232,255,.10), rgba(216,232,255,.035)),
    radial-gradient(circle at 16% 16%, rgba(22,163,148,.18), transparent 34%),
    radial-gradient(circle at 84% 18%, rgba(122,167,255,.14), transparent 34%);
  box-shadow: var(--shadow);
}
.crm-review-preview {
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(216,232,255,.14);
  border-radius: 14px;
  background: #09111f;
}
.crm-review-preview img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}
.crm-review-content {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 8px 4px 2px;
}
.crm-review-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.crm-review-content h3 {
  margin: 0;
  font-size: clamp(26px, 2.7vw, 38px);
  line-height: 1.06;
}
.crm-review-content > p:not(.crm-review-kicker) {
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 16px;
}
.crm-review-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}
.crm-review-step {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(216,232,255,.15);
  border-radius: 8px;
  background: rgba(216,232,255,.06);
  color: rgba(247,241,230,.72);
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  text-align: left;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}
.crm-review-step:hover {
  transform: translateY(-2px);
  border-color: rgba(34,215,200,.46);
  color: var(--ink);
}
.crm-review-step.is-active {
  border-color: rgba(34,215,200,.66);
  background: linear-gradient(135deg, rgba(34,215,200,.18), rgba(122,167,255,.10));
  color: var(--ink);
}

.lead-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: center;
  gap: 34px;
}
.prompt-chip {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(216,232,255,.08);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  transition: transform .2s ease, border-color .2s ease;
}
.prompt-chip:hover { transform: translateY(-2px); border-color: rgba(22,163,148,.55); }

.chat-dock {
  position: fixed;
  z-index: 60;
  right: 24px;
  bottom: 24px;
  width: min(410px, calc(100vw - 32px));
  pointer-events: none;
}
.chat-launcher {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(226,185,104,.5);
  border-radius: 18px;
  background: linear-gradient(145deg, var(--gold), var(--teal));
  color: #151410;
  box-shadow: 0 18px 52px rgba(0,0,0,.38);
  cursor: pointer;
  pointer-events: auto;
  transition: opacity .22s ease, transform .22s ease;
}
.chat-launcher svg,
.chat-close svg {
  width: 24px;
  height: 24px;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chat-dock.is-open .chat-launcher {
  opacity: 0;
  transform: translateY(12px) scale(.9);
  pointer-events: none;
}
.chat-widget {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(7,17,31,.88);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  pointer-events: auto;
  transform-origin: 100% 100%;
  transition: opacity .24s ease, transform .24s ease, visibility .24s ease;
}
.chat-dock:not(.is-open) .chat-widget {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(.96);
  pointer-events: none;
}
.chat-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.chat-mark { width: 34px; height: 34px; border-radius: 8px; background: conic-gradient(from 120deg, var(--gold), var(--teal), var(--wine), var(--gold)); }
.chat-head small { display: block; color: var(--muted); }
.chat-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247,241,230,.08);
  color: var(--ink);
  cursor: pointer;
}
.chat-auth {
  display: grid;
  gap: 10px;
  padding: 16px;
}
.chat-auth label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.chat-auth input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247,241,230,.1);
  color: var(--ink);
  padding: 0 13px;
  outline: none;
}
.chat-auth button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: #171512;
  cursor: pointer;
  font-weight: 900;
}
.chat-widget:not(.needs-auth) .chat-auth { display: none; }
.chat-widget.needs-auth .chat-quick,
.chat-widget.needs-auth .chat-log,
.chat-widget.needs-auth .chat-form {
  display: none;
}
.chat-quick {
  display: flex;
  gap: 8px;
  padding: 12px 14px 0;
  overflow-x: auto;
}
.chat-quick .prompt-chip {
  min-height: 36px;
  white-space: nowrap;
  font-size: 13px;
}
.chat-log { height: 300px; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.message { max-width: 88%; padding: 12px 14px; border-radius: 8px; color: rgba(247,241,230,.9); background: rgba(247,241,230,.08); }
.message.user { align-self: end; background: var(--teal); color: #fff; }
.message strong { color: var(--gold); }
.typing-message {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  padding: 0;
  background: transparent;
  color: var(--gold);
}
.typing-dots {
  display: inline-flex;
  gap: 4px;
  padding: 4px 2px;
}
.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: typingPulse 1s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .14s; }
.typing-dots span:nth-child(3) { animation-delay: .28s; }
@keyframes typingPulse {
  0%, 80%, 100% { transform: translateY(0); opacity: .35; }
  40% { transform: translateY(-4px); opacity: 1; }
}
.chat-form { display: grid; grid-template-columns: 1fr 48px; gap: 8px; padding: 14px; border-top: 1px solid var(--line); }
.chat-form input, .lead-form input, .lead-form select, .lead-form textarea {
  width: 100%;
  border: 1px solid rgba(16,16,14,.12);
  border-radius: 8px;
  background: rgba(247,241,230,.94);
  color: #171512;
  outline: none;
}
.chat-form input { min-height: 48px; padding: 0 14px; background: rgba(247,241,230,.1); color: var(--ink); border-color: var(--line); }
.chat-form button { border: 0; border-radius: 8px; background: var(--gold); color: #171512; cursor: pointer; }

.lead-panel {
  margin-bottom: 80px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(216,232,255,.08), rgba(22,163,148,.055));
}
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-form label { display: grid; gap: 8px; color: var(--muted); font-weight: 700; }
.lead-form input, .lead-form select, .lead-form textarea { padding: 13px 14px; }
.lead-form input::placeholder,
.lead-form textarea::placeholder { color: #777168; opacity: 1; }
.lead-form select:invalid { color: #777168; }
.lead-form select option,
.lead-form select optgroup { color: #171512; }
.lead-form textarea { resize: vertical; }
.wide { grid-column: 1 / -1; }
.form-status { min-height: 24px; margin: 0; color: var(--gold); font-weight: 700; }

.reviews-section {
  padding-top: 0;
}
.review-carousel {
  overflow: hidden;
  padding: 16px 4px 24px;
}
.review-carousel-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: reviewLoop var(--review-duration, 36s) linear infinite;
}
.review-carousel:hover .review-carousel-track,
.review-carousel:focus-within .review-carousel-track {
  animation-play-state: paused;
}
.review-carousel-track.is-static {
  width: 100%;
  animation: none;
}
.review-carousel-group {
  display: flex;
  gap: 16px;
}
.review-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: min(360px, 82vw);
  min-height: 195px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(216,232,255,.075);
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.review-card:hover {
  border-color: rgba(34,215,200,.5);
  background: rgba(216,232,255,.12);
  transform: translateY(-2px);
}
.review-card .review-card-author {
  display: block;
  color: var(--teal, #16a394);
  font-weight: 800;
  font-size: 14.5px;
}
.review-card span {
  color: var(--gold);
  font-weight: 800;
  font-size: 13.5px;
}
.review-card p {
  margin: 2px 0 0;
  color: rgba(247,241,230,.9);
  font-size: 13.5px;
  line-height: 1.45;
  height: calc(1.45em * 3);
  max-height: calc(1.45em * 3);
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-break: break-word;
}
.review-card footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  margin-top: auto;
}

/* Глобальное всплывающее окно-подсказка (поверх всего сайта) */
.review-tooltip-popover {
  position: fixed;
  z-index: 99999;
  padding: 18px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 14px;
  background: rgba(9, 19, 37, 0.97);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(34, 215, 200, 0.22);
  backdrop-filter: blur(14px);
  color: #fff;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.review-tooltip-popover.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.review-tooltip-popover .review-card-author {
  display: block;
  color: var(--teal, #16a394);
  font-weight: 800;
  font-size: 15px;
}
.review-tooltip-popover .review-card-stars {
  color: var(--gold);
  font-weight: 800;
  font-size: 14px;
  display: block;
}
.review-tooltip-popover p {
  margin: 0;
  color: rgba(247,241,230,.96);
  line-height: 1.55;
  font-size: 14px;
  white-space: normal;
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.review-tooltip-popover footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid rgba(216,232,255,.12);
  padding-top: 8px;
  margin-top: 4px;
}
.review-card--empty {
  width: 100%;
}
@keyframes reviewLoop {
  to { transform: translateX(calc(-50% - 8px)); }
}

@media (prefers-reduced-motion: reduce) {
  .review-carousel {
    overflow-x: auto;
  }
  .review-carousel-track {
    animation: none;
  }
}

@media (max-width: 980px) {
  .topbar { grid-template-columns: auto auto; justify-content: space-between; }
  .nav { display: none; }
  .showroom, .product-showcase, .node-showcase, .crm-review-shell, .lead-layout {
    grid-template-columns: 1fr;
  }
  .hero-stage { min-height: 520px; }
  .stage-card { position: relative; }
  .stage-crm, .stage-node { inset: auto; transform: none; margin-inline: auto; }
  .stage-node { margin-top: 16px; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .crm-review-content { min-height: auto; }
}

@media (max-width: 620px) {
  .topbar { top: 8px; width: calc(100% - 16px); }
  .brand span { display: none; }
  .showroom { padding-top: 116px; }
  h1 { font-size: clamp(46px, 15vw, 72px); }
  .hero-stage { min-height: auto; }
  .stage-card { min-height: 260px; }
  .price-grid { grid-template-columns: 1fr; }
  .crm-price-grid { grid-template-columns: 1fr; }
  .price-group + .price-group { margin-top: 48px; }
  .product-showcase, .section { padding: 62px 0; }
  .product-art { min-height: 360px; padding: 18px; }
  .product-art img { min-height: 310px; }
  .crm-review-shell { padding: 14px; }
  .crm-review-preview,
  .crm-review-preview img { min-height: 270px; }
  .crm-review-steps { grid-template-columns: 1fr; }
  .lead-layout { gap: 22px; }
  .lead-panel { padding: 22px; }
  .lead-form { grid-template-columns: 1fr; }
  .chat-dock {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }
  .chat-log { height: min(52vh, 320px); }
  .chat-widget { border-radius: 12px; }
}

/* ==========================================================================
   Юридическое модальное окно Документов и Чекбоксы
   ========================================================================== */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.legal-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 9, 20, 0.82);
  backdrop-filter: blur(8px);
}

.legal-modal-card {
  position: relative;
  width: 100%;
  max-width: 780px;
  max-height: 85vh;
  background: #0d1527;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 2;
}

.legal-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transition: color 0.15s ease;
}

.legal-modal-close:hover {
  color: #38bdf8;
}

.legal-modal-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 18px 0 18px;
  gap: 12px;
}

.legal-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 14px;
  color: #94a3b8;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.legal-tab-btn.active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
}

.legal-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.6;
}

.legal-tab-content {
  display: none;
}

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

.legal-tab-content h2 {
  margin: 0 0 4px 0;
  font-size: 1.4rem;
  color: #f8fafc;
}

.legal-meta {
  color: #38bdf8;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.legal-tab-content h3 {
  margin: 18px 0 8px 0;
  font-size: 1.05rem;
  color: #f1f5f9;
}

.legal-tab-content p {
  margin: 0 0 10px 0;
}

.legal-tab-content ul {
  margin: 0 0 12px 20px;
  padding: 0;
}

/* Стили чекбоксов */
.lead-form label.lead-consent-label,
.lead-consent-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  font-size: 0.85rem;
  color: #94a3b8;
  cursor: pointer;
  margin-top: 4px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.lead-form label.lead-consent-label input[type="checkbox"],
.lead-consent-label input[type="checkbox"],
.chat-consent-label input[type="checkbox"] {
  accent-color: #38bdf8;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 0 !important;
  cursor: pointer;
}

.lead-form label.lead-consent-label span,
.lead-consent-label span {
  display: inline-block;
  margin: 0;
}

.lead-consent-label a,
.chat-consent-label a {
  color: #38bdf8;
  text-decoration: underline;
}

.chat-legal-note {
  font-size: 0.78rem;
  color: #94a3b8;
  background: rgba(56, 189, 248, 0.08);
  border-left: 3px solid #38bdf8;
  padding: 6px 10px;
  border-radius: 4px;
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.chat-auth label.chat-consent-label,
.chat-consent-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  font-size: 0.78rem;
  color: #94a3b8;
  cursor: pointer;
  margin-top: 4px;
  margin-bottom: 8px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.chat-auth label.chat-consent-label input[type="checkbox"],
.chat-consent-label input[type="checkbox"] {
  accent-color: #38bdf8;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 0 !important;
  cursor: pointer;
}

.chat-auth label.chat-consent-label span,
.chat-consent-label span {
  display: inline-block;
  margin: 0;
}

/* ==========================================================================
   Стили модального окна Контактов
   ========================================================================== */
.contacts-modal-card {
  max-width: 580px;
  padding: 0;
}

.contacts-modal-head {
  padding: 24px 28px 16px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contacts-modal-head h2 {
  margin: 0 0 6px 0;
  font-size: 1.5rem;
  color: #f8fafc;
}

.contacts-modal-head p {
  margin: 0;
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.45;
}

.contacts-modal-body {
  padding: 20px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-card-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.contact-card-item:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-2px);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-icon.mail-icon {
  color: #38bdf8;
}

.contact-card-icon.vk-icon {
  color: #0077ff;
}

.contact-card-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.contact-card-info strong {
  font-size: 0.95rem;
  color: #f1f5f9;
  font-weight: 600;
}

.contact-card-info span {
  font-size: 0.83rem;
  color: #38bdf8;
  word-break: break-all;
}

/* ==========================================================================
   Стили Подвала (Footer)
   ========================================================================== */
.site-footer {
  margin-top: 80px;
  padding: 56px 0 32px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.4) 0%, rgba(5, 11, 22, 0.85) 100%),
    radial-gradient(circle at 50% 0%, rgba(22, 163, 148, 0.12), transparent 60%);
  backdrop-filter: blur(16px);
}

.footer-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr 1.1fr;
  gap: 36px 28px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(216, 232, 255, 0.08);
}

.footer-brand {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 14px;
}

.footer-description {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-contacts-brief {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-contact-link img,
.footer-contact-link svg {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.footer-contact-link:hover {
  color: var(--gold);
  transform: translateX(3px);
}

.footer-email-link {
  color: var(--gold);
  font-weight: 700;
}

.footer-email-link:hover {
  color: #fff;
}

.footer-col-title {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--gold);
  transform: translateX(3px);
}

.footer-payment-text {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.footer-payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(216, 232, 255, 0.08);
  border: 1px solid rgba(216, 232, 255, 0.14);
  color: rgba(247, 241, 230, 0.88);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  color: var(--muted);
  font-size: 13.5px;
}

.footer-bottom p {
  margin: 0;
}

.footer-subtext {
  color: rgba(247, 241, 230, 0.5);
  font-size: 13px;
}

@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
}

@media (max-width: 576px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   SEO-Агент ⚡ Стили для модального окна и компонентов
   ========================================================================== */
.seo-nav-btn {
  background: linear-gradient(135deg, rgba(22, 163, 148, 0.2), rgba(226, 185, 104, 0.2));
  border: 1px solid rgba(226, 185, 104, 0.4);
  color: var(--gold);
  font-weight: 800;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.seo-nav-btn:hover {
  background: linear-gradient(135deg, rgba(22, 163, 148, 0.4), rgba(226, 185, 104, 0.4));
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(226, 185, 104, 0.25);
}

.seo-modal-card {
  max-width: 820px;
  width: 95%;
}

.seo-modal-header {
  margin-bottom: 20px;
}
.seo-header-title {
  display: flex;
  align-items: center;
  gap: 14px;
}
.seo-badge-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(226, 185, 104, 0.15);
  border: 1px solid rgba(226, 185, 104, 0.35);
  border-radius: 12px;
}
.seo-header-title h2 {
  margin: 0;
  font-size: 22px;
  color: var(--ink);
}
.seo-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.seo-audit-summary {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px;
  background: rgba(15, 32, 56, 0.6);
  border: 1px solid rgba(216, 232, 255, 0.12);
  border-radius: 14px;
  margin-bottom: 24px;
}
.seo-score-box {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: conic-gradient(var(--teal) 0deg, var(--gold) 280deg, rgba(216, 232, 255, 0.1) 0deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(7, 17, 31, 0.9);
  box-shadow: 0 0 20px rgba(22, 163, 148, 0.3);
  flex-shrink: 0;
}
.seo-score-num {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.seo-score-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 2px;
}
.seo-score-info h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--ink);
}
.seo-score-info p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}
.seo-btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

.seo-checks-list {
  display: grid;
  gap: 10px;
}
.seo-check-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(7, 17, 31, 0.5);
  border: 1px solid rgba(216, 232, 255, 0.08);
}
.seo-check-item.success { border-color: rgba(52, 211, 153, 0.3); }
.seo-check-item.warning { border-color: rgba(226, 185, 104, 0.3); }
.seo-check-item.error { border-color: rgba(248, 113, 113, 0.3); }

.seo-check-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}
.success .seo-check-badge { background: rgba(52, 211, 153, 0.2); color: #34d399; }
.warning .seo-check-badge { background: rgba(226, 185, 104, 0.2); color: #e2b968; }
.error .seo-check-badge { background: rgba(248, 113, 113, 0.2); color: #f87171; }

.seo-check-item strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 2px; }
.seo-check-item p { margin: 0; font-size: 13px; color: var(--muted); }

.seo-form-group {
  display: flex;
  gap: 10px;
  margin: 16px 0 24px;
}
.seo-form-group input {
  flex: 1;
  background: rgba(7, 17, 31, 0.8);
  border: 1px solid rgba(216, 232, 255, 0.18);
  border-radius: 8px;
  padding: 0 16px;
  color: #fff;
  font-size: 14px;
}

.seo-loading {
  padding: 24px;
  text-align: center;
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  background: rgba(226, 185, 104, 0.05);
  border-radius: 10px;
  border: 1px stroke rgba(226, 185, 104, 0.2);
}

.seo-results-box {
  min-height: 180px;
}
.seo-placeholder {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 40px 0;
}

.seo-kw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.seo-kw-card {
  background: rgba(7, 17, 31, 0.6);
  border: 1px solid rgba(216, 232, 255, 0.1);
  border-radius: 10px;
  padding: 14px;
}
.seo-kw-card h4 { margin: 0 0 10px; font-size: 14px; color: var(--ink); }
.seo-kw-card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.seo-kw-card li { margin-bottom: 6px; }

.seo-strat-box {
  background: rgba(22, 163, 148, 0.08);
  border: 1px solid rgba(22, 163, 148, 0.25);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--ink);
}
.seo-strat-box p { margin: 4px 0; }

.seo-snippet-card {
  background: #0d1726;
  border: 1px solid rgba(216, 232, 255, 0.15);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}
.seo-serp-url { font-size: 12px; color: #34d399; font-family: monospace; }
.seo-serp-title { margin: 6px 0; font-size: 17px; color: #38bdf8; font-weight: 700; cursor: pointer; }
.seo-serp-desc { margin: 0; font-size: 13px; color: rgba(247, 241, 230, 0.75); line-height: 1.45; }

.seo-meta-code-block {
  margin-bottom: 14px;
}
.seo-meta-code-block strong { display: block; font-size: 13px; color: var(--gold); margin-bottom: 6px; }
.seo-meta-code-block code {
  display: block;
  background: rgba(5, 12, 22, 0.85);
  border: 1px solid rgba(216, 232, 255, 0.1);
  padding: 10px 14px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 12px;
  color: #34d399;
}

.seo-file-block {
  margin-bottom: 20px;
}
.seo-file-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.seo-file-head strong { font-size: 15px; color: var(--ink); }
.seo-link-btn { font-size: 12px; color: var(--teal); font-weight: 700; text-decoration: none; }
.seo-link-btn:hover { text-decoration: underline; }

.seo-code-preview {
  background: rgba(5, 12, 22, 0.85);
  border: 1px solid rgba(216, 232, 255, 0.12);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: monospace;
  font-size: 12px;
  color: #38bdf8;
  max-height: 240px;
  overflow-y: auto;
  white-space: pre-wrap;
  margin: 0;
}

/* Disabled button state when consent checkbox is unchecked */
button:disabled,
button.is-disabled,
input[type="submit"]:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  filter: grayscale(0.5);
}


