:root {
  --color-bg: #eef2f7;
  --color-surface: #ffffff;
  --color-surface-2: #e2e8f0;
  --color-ink: #0f172a;
  --color-ink-muted: #475569;
  --color-accent: #3730a3;
  --color-accent-hover: #312e81;
  --color-highlight: #9d174d;
  --color-highlight-soft: #fce7f3;
  --color-trust: #0369a1;
  --color-border: #cbd5e1;
  --color-shadow: rgba(15, 23, 42, 0.09);
  --color-shadow-strong: rgba(15, 23, 42, 0.18);
  --font-display: "Segoe UI", system-ui, sans-serif;
  --font-body: "Segoe UI", system-ui, sans-serif;
  --fs-xs: clamp(0.68rem, 0.65rem + 0.2vw, 0.78rem);
  --fs-sm: clamp(0.78rem, 0.74rem + 0.25vw, 0.88rem);
  --fs-base: clamp(0.94rem, 0.9rem + 0.3vw, 1.05rem);
  --fs-md: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
  --fs-lg: clamp(1.35rem, 1.2rem + 0.8vw, 1.75rem);
  --fs-xl: clamp(1.75rem, 1.45rem + 1.4vw, 2.35rem);
  --lh-tight: 1.2;
  --lh-body: 1.55;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px var(--color-shadow);
  --shadow-md: 0 8px 24px var(--color-shadow);
  --shadow-lg: 0 16px 40px var(--color-shadow-strong);
  --space-xs: 0.35rem;
  --space-sm: 0.65rem;
  --space-md: 1rem;
  --space-lg: 1.65rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --header-h: clamp(3.25rem, 3rem + 1vw, 3.85rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--color-ink);
  background: var(--color-bg);
  accent-color: var(--color-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-trust);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--color-accent);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  left: var(--space-md);
  top: var(--space-md);
  z-index: 10000;
  width: auto;
  height: auto;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: linear-gradient(180deg, var(--color-surface) 0%, rgba(248, 250, 252, 0.97) 100%);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm) var(--space-md);
  min-height: var(--header-h);
}

.brand {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-ink);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-toggle:hover {
  background: var(--color-surface-2);
  border-color: var(--color-accent);
  color: var(--color-accent-hover);
}

.nav-toggle-icon {
  display: grid;
  gap: 5px;
  width: 1.1rem;
}

.nav-toggle-icon span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.site-nav {
  flex: 1 1 100%;
  width: 100%;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  align-items: center;
}

.site-nav a {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-ink-muted);
  text-decoration: none;
  padding: 0.35em 0.5em;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
  background: var(--color-highlight-soft);
  color: var(--color-highlight);
}

main {
  overflow-x: hidden;
}

.section {
  padding: var(--space-2xl) var(--space-md);
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-kicker {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin: 0 0 var(--space-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-md);
  color: var(--color-ink);
}

.section-lead {
  max-width: 62ch;
  color: var(--color-ink-muted);
  margin: 0 0 var(--space-lg);
}

.hero {
  background: radial-gradient(110% 70% at 15% 0%, rgba(224, 231, 255, 0.7) 0%, transparent 52%),
    radial-gradient(90% 60% at 90% 10%, var(--color-highlight-soft) 0%, transparent 50%),
    linear-gradient(145deg, var(--color-surface) 0%, var(--color-bg) 50%, #dbeafe 100%);
  border-bottom: 1px solid var(--color-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: var(--space-xl);
  align-items: start;
}

.hero-visual {
  position: relative;
  padding: var(--space-lg);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.hero-visual img {
  border-radius: var(--radius-md);
  margin-inline: auto;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  align-items: center;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-ink);
}

.stars {
  letter-spacing: 0.05em;
  color: var(--color-trust);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: linear-gradient(90deg, var(--color-accent), #1e3a5f);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-sm);
}

.hero-intro {
  color: var(--color-ink-muted);
  margin: 0 0 var(--space-md);
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.price-current {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--color-accent);
}

.price-old {
  font-size: var(--fs-md);
  color: var(--color-ink-muted);
  text-decoration: line-through;
}

.order-card {
  background: var(--color-surface);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.order-card h2 {
  font-size: var(--fs-md);
  margin: 0 0 var(--space-md);
}

.form-grid {
  display: grid;
  gap: var(--space-md);
}

.field label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-ink-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(55, 48, 163, 0.22);
}

.field-error {
  font-size: var(--fs-xs);
  color: #9a2b2b;
  margin-top: var(--space-xs);
  min-height: 1.2em;
}

.check {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  font-size: var(--fs-sm);
}

.check input {
  margin-top: 0.25em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.75em 1.35em;
  font: inherit;
  font-weight: 700;
  font-size: var(--fs-sm);
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-accent);
  color: #f8fafc;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-secondary:hover {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

.btn-ghost {
  background: var(--color-surface-2);
  color: var(--color-ink);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  background: var(--color-ink);
  color: #f1f5f9;
  border-color: var(--color-ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.features {
  background: var(--color-surface);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.feature-card {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: linear-gradient(155deg, #ffffff 0%, #f1f5f9 100%);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card h3 {
  font-size: var(--fs-md);
  margin: 0 0 var(--space-sm);
  color: var(--color-trust);
}

.benefits {
  background: linear-gradient(180deg, #f8fafc 0%, #e0e7ff 100%);
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.benefit-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-surface);
  border-left: 4px solid var(--color-highlight);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
}

.benefit-item strong {
  display: block;
  font-size: var(--fs-md);
  margin-bottom: var(--space-xs);
  color: var(--color-ink);
}

.detail {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.detail-panel {
  padding: var(--space-xl);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-border);
}

.usage {
  background: #0b1220;
  color: #e2e8f0;
}

.usage .section-kicker {
  color: #a5b4fc;
}

.usage .section-title,
.usage .section-lead {
  color: #f8fafc;
}

.usage .section-lead {
  opacity: 0.88;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: var(--space-lg);
  padding-top: var(--space-xl);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.step-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(165, 180, 252, 0.5);
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--fs-sm);
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-sm);
}

.composition {
  background: var(--color-surface);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-lg) 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  background: var(--color-surface);
}

.data-table th,
.data-table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.data-table th {
  background: var(--color-surface-2);
  font-weight: 700;
}

.data-table tbody tr:hover {
  background: var(--color-bg);
}

.reviews {
  background: linear-gradient(125deg, #fdf2f8 0%, #ffffff 45%, #eff6ff 100%);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.review-card {
  padding: var(--space-lg);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease;
}

.review-card:hover {
  transform: translateY(-3px);
}

.review-meta {
  font-size: var(--fs-xs);
  color: var(--color-ink-muted);
  margin-bottom: var(--space-sm);
}

.faq {
  background: var(--color-bg);
}

.faq-list details {
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: box-shadow 0.2s ease;
}

.faq-list details:hover {
  box-shadow: var(--shadow-sm);
}

.faq-list summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: right;
  font-weight: 800;
  color: var(--color-accent);
}

.faq-list details[open] summary::after {
  content: "−";
}

.cta-band {
  background: linear-gradient(100deg, #1e1b4b 0%, #0c4a6e 55%, #164e63 100%);
  color: #f8fafc;
}

.cta-band .section-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.cta-band h2 {
  margin: 0;
  font-size: var(--fs-lg);
}

.cta-band p {
  margin: var(--space-sm) 0 0;
  max-width: 48ch;
  opacity: 0.92;
}

.cta-band .btn-primary {
  background: #fff;
  color: #312e81;
  border-color: #fff;
}

.cta-band .btn-primary:hover {
  background: #e0e7ff;
  color: #1e1b4b;
  border-color: #e0e7ff;
}

.disclaimer {
  background: var(--color-surface-2);
  font-size: var(--fs-sm);
  color: var(--color-ink-muted);
  border-top: 1px solid var(--color-border);
}

.disclaimer p {
  margin: 0;
  max-width: 85ch;
}

.site-footer {
  background: #020617;
  color: #cbd5e1;
  padding: var(--space-xl) var(--space-md);
  font-size: var(--fs-sm);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.footer-block h3 {
  font-size: var(--fs-sm);
  margin: 0 0 var(--space-sm);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-block li {
  margin-bottom: var(--space-xs);
}

.footer-block a {
  color: #bae6fd;
  text-decoration: none;
}

.footer-block a:hover {
  color: #f8fafc;
}

.footer-meta {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 1120px;
  margin-inline: auto;
  font-size: var(--fs-xs);
  color: rgba(216, 210, 200, 0.85);
}

.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  padding: var(--space-md);
  background: rgba(15, 23, 42, 0.94);
  color: #e2e8f0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.cookie-bar.is-visible {
  transform: translateY(0);
}

.cookie-bar-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.cookie-bar p {
  margin: 0;
  flex: 1 1 240px;
  font-size: var(--fs-sm);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  justify-content: flex-end;
}

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 960;
  background: rgba(15, 23, 42, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cookie-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 970;
  width: min(92vw, 460px);
  max-height: 90vh;
  overflow: auto;
  padding: var(--space-lg);
  background: var(--color-surface);
  color: var(--color-ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.cookie-modal h2 {
  margin: 0 0 var(--space-md);
  font-size: var(--fs-md);
}

.cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-sm);
}

.cookie-toggle-row:last-of-type {
  border-bottom: none;
}

.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  justify-content: flex-end;
}

.legal-page main {
  padding: var(--space-xl) var(--space-md) var(--space-2xl);
}

.legal-inner {
  max-width: 780px;
  margin: 0 auto;
  background: var(--color-surface);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.legal-page h1 {
  font-size: var(--fs-lg);
  margin-top: 0;
}

.legal-page h2 {
  font-size: var(--fs-md);
  margin-top: var(--space-xl);
}

.simple-page main {
  padding: var(--space-2xl) var(--space-md);
}

.simple-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--color-surface);
  padding: var(--space-2xl) var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.thank-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-lg);
}

.mail-block {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  text-align: left;
}

.mail-block h2 {
  font-size: var(--fs-md);
  margin-top: 0;
}

@media (min-width: 1001px) {
  .site-nav {
    flex: 0 1 auto;
    width: auto;
    margin-left: auto;
    max-height: none;
    overflow: visible;
  }

  .site-nav ul {
    justify-content: flex-end;
  }
}

@media (max-width: 1000px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    flex: 1 1 100%;
    width: 100%;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    margin: 0;
    padding: 0;
  }

  .site-nav.is-open {
    max-height: 70vh;
    overflow: auto;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-md) 0 var(--space-md);
    gap: var(--space-xs);
  }

  .site-nav a {
    display: block;
    padding: var(--space-sm);
    font-size: var(--fs-sm);
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions .btn {
    width: 100%;
  }

  .cookie-modal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-modal-actions .btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .cta-band .section-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-inner {
    padding: var(--space-lg);
  }
}

body.cookie-modal-open {
  overflow: hidden;
}
