/* ===== CSS Variables — Design Tokens ===== */
/* Источник правды: design-tokens.md */
:root {
  /* Colors */
  --background: #ffffff;
  --foreground: #020617;
  --muted-text: #6b7280;
  --secondary-muted-text: #9a9fa9;
  --border: #cbd5f5;
  --muted-background: #f6f5f0;
  --input-background: #eef0f2;
  
  --primary: #16a34a;
  --primary-foreground: #ffffff;
  
  --secondary-background: #f1f5f9;
  --secondary-foreground: #0f172a;
  
  --accent-gradient-from: #16a34a;
  --accent-gradient-to: #a3e635;
  
  /* Radii */
  --radius-button: 10px;
  --radius-card: 14px;
  --radius-pricing: 28px;
  --radius-chip: 999px;
  
  /* Shadows */
  --shadow-card-default: 0 10px 30px rgba(15, 23, 42, 0.04);
  --shadow-hero-card: 0 16px 40px rgba(15, 23, 42, 0.08);
  --shadow-pricing-card: 0 18px 45px rgba(15, 23, 42, 0.12);
  
  /* Badge & Card tokens */
  --badge-bg: #ecfdf3;
  --badge-border: rgba(22,163,74,0.18);
  --speed-badge-bg: #fffbeb;
  --speed-badge-border: #fef3c7;
  --speed-badge-text: #92400e;
  --card-bg: #ffffff;
  --card-border: var(--border);

  /* Motion */
  --transition-default: 180ms ease-out;
  --transition-soft: 220ms cubic-bezier(0.16, 1, 0.3, 1);
  --hover-translate: -2px;
  --hover-shadow-multiplier: 1.08;
  
  /* Section Typography */
  --section-title-size: 48px;
  --section-title-weight: 650;
  --section-title-line-height: 1.1;
  --section-title-letter-spacing: -0.025em;
  
  --section-subtitle-size: 24px;
  --section-subtitle-weight: 400;
  --section-subtitle-line-height: 1.65;
  
  --step-description-size: 17px;
  --step-description-weight: 400;
  --step-description-line-height: 1.65;
  
  --step-note-size: 15px;
  --step-note-weight: 400;
  --step-note-line-height: 1.45;
  
  --step-note-smaller-size: 9px;
  --step-note-smaller-weight: 400;
  --step-note-smaller-line-height: 1.45;
  
  --process-note-size: 14px;
  --process-note-weight: 400;
  --process-note-line-height: 1.65;
}

/* ===== Dark Theme ===== */
[data-theme="dark"] {
  --background: #0a0f1a;
  --foreground: #e2e8f0;
  --muted-text: #94a3b8;
  --secondary-muted-text: #64748b;
  --border: #1e293b;
  --muted-background: #111827;
  --input-background: #1e293b;
  --secondary-background: #151d2e;
  --secondary-foreground: #f1f5f9;
  --primary: #22c55e;
  --shadow-card-default: 0 10px 30px rgba(0,0,0,0.3);
  --shadow-hero-card: 0 16px 40px rgba(0,0,0,0.4);
  --shadow-pricing-card: 0 18px 45px rgba(0,0,0,0.5);
  --badge-bg: rgba(22,163,74,0.15);
  --badge-border: rgba(34,197,94,0.3);
  --speed-badge-bg: rgba(217,119,6,0.15);
  --speed-badge-border: rgba(217,119,6,0.3);
  --speed-badge-text: #fbbf24;
  --card-bg: #111827;
  --card-border: #1e293b;
}

[data-theme="dark"] .bento-item {
  border: 1px solid rgba(255,255,255,0.22);
}

[data-theme="dark"] .bento-item:hover {
  border-color: rgba(255,255,255,0.4);
}


[data-theme="dark"] .pricing-toggle-btn.active {
  background: #e2e8f0;
  color: #0f172a;
}

[data-theme="dark"] .card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

[data-theme="dark"] .pricing-card:hover {
  box-shadow: 0 24px 55px rgba(0,0,0,0.4);
}

[data-theme="dark"] .check-result {
  background: #1e293b;
  color: #e2e8f0;
  border-color: #334155;
}

[data-theme="dark"] .logo-mark {
  background: #020617;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  opacity: 0;
  animation: fadeInPage 0.8s ease-in-out forwards;
}

@keyframes fadeInPage {
  0% {
    opacity: 0;
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

/* ===== Components ===== */
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
}

.speed-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--speed-badge-bg);
  border: 1px solid var(--speed-badge-border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--speed-badge-text);
  font-weight: 500;
}

/* ===== Utility Classes ===== */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 120px 0 115px;
  width: 100%;
}

.flex {
  display: flex;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-4 {
  gap: 16px;
}

.gap-6 {
  gap: 24px;
}

.gap-12 {
  gap: 48px;
}

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

.text-left {
  text-align: left;
}

.bg-muted {
  background-color: var(--muted-background);
}

/* ===== Typography ===== */
h1, h2, h3, h4, p {
  margin: 0;
}

/* Typography — Design Tokens */
h1 {
  font-size: 60px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  color: var(--foreground);
}

h2 {
  font-size: var(--section-title-size);
  font-weight: var(--section-title-weight);
  line-height: var(--section-title-line-height);
  letter-spacing: var(--section-title-letter-spacing);
  margin-bottom: 16px;
  color: var(--foreground);
}

h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--foreground);
}

p {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--muted-text);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 34px;
  border-radius: var(--radius-button);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  transition: var(--transition-default);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  transform: translateY(var(--hover-translate));
  box-shadow: 0 16px 40px rgba(22, 163, 74, 0.4);
}

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

.btn-disabled {
  background-color: #b1b5b9;
  color: white;
  cursor: default;
  pointer-events: none;
  box-shadow: none !important;
  transform: none !important;
}

.btn-outline {
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  padding: 0 28px;
  height: 50px;
  font-size: 18px;
  font-weight: 500;
  border-radius: var(--radius-button);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(22, 163, 74, 0.05);
  color: var(--primary);
  transform: translateY(-1px);
}

/* ===== Sections ===== */
section {
  padding: 100px 0;
}

/* ===== Cards ===== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-card-default);
  border-top: 3px solid var(--primary);
  transition: var(--transition-default);
}

.card:hover {
  transform: scale(1.01);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

/* ===== Navigation ===== */
header {
  padding: 24px 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 10;
  background: transparent;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--foreground);
  text-decoration: none;
}

.logo-mark {
  width: 37px;
  height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--foreground);
  border-radius: 6px;
  color: white;
  flex-shrink: 0;
}

.logo-mark iconify-icon {
  font-size: 23px;
}

.logo-text {
  margin-left: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav .btn-outline {
  margin-left: 8px;
}

.nav-link {
  text-decoration: none;
  color: var(--foreground);
  font-size: 19px;
  font-weight: 600;
  padding: 12px 20px;
  transition: var(--transition-default);
  border-radius: var(--radius-button);
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(22, 163, 74, 0.05);
}

/* HERO — Figma v1 */
.hero {
  width: 100%;
  min-height: 580px;
  display: flex;
  align-items: center;
  padding-top: 160px;
  padding-bottom: 64px;
  position: relative;
  background:
    radial-gradient(
      circle at top left,
      rgba(163, 230, 53, 0.11),
      transparent 55%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(22, 163, 74, 0.09),
      transparent 60%
    ),
    var(--background);
  overflow: hidden;
}

.hero .container {
  width: 100%;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.hero-content {
  max-width: 860px;
  width: 100%;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-chip);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--foreground);
}

.hero-content h1 {
  font-size: 53px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  margin-top: 0;
  color: var(--foreground);
  text-align: center;
  max-width: none;
}

.hero-description {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.65;
  margin-bottom: 0;
  margin-top: 0;
  color: var(--secondary-muted-text);
  text-align: center;
}

.hero-button {
  display: inline-block;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 14px 24px;
  border-radius: var(--radius-button);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  box-shadow: var(--shadow-card-default);
  text-align: left;
  transition: var(--transition-default);
}

.hero-button:hover {
  transform: translateY(var(--hover-translate));
  box-shadow: 0 12px 32px rgba(22, 163, 74, 0.35);
  background: #15803d;
}

.hero-button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-card-default);
}

.hero-note {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted-text);
  opacity: 0.68;
  margin-top: 16px;
  margin-bottom: 0;
  text-align: left;
}

.hero-card {
  background: var(--background);
  border-radius: var(--radius-card);
  padding: 32px 22px;
  width: 460px;
  max-width: 460px;
  box-shadow: var(--shadow-card-default);
  border: 1px solid var(--border);
}

.hero-card-title {
  font-size: 21px;
  font-weight: 650;
  line-height: 1.3;
  margin-bottom: 12px;
  margin-top: 0;
  color: var(--foreground);
}

.hero-card-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.hero-line {
  display: block;
  height: 7px;
  background: var(--input-background);
  border-radius: var(--radius-chip);
  opacity: 0.7;
}

.hero-card-lines .hero-line:nth-child(1) {
  width: 100%;
}

.hero-card-lines .hero-line:nth-child(2) {
  width: 80%;
}

.hero-card-lines .hero-line:nth-child(3) {
  width: 60%;
}

.hero-card-tags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hero-tag {
  padding: 10px 14px;
  border-radius: var(--radius-button);
  background: var(--input-background);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted-text);
  text-align: left;
  pointer-events: none;
  user-select: none;
}

/* ===== Pain Block ===== */
#pain-block {
  position: relative;
}

#pain-block h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  border-radius: var(--radius-chip);
  margin-top: 10px;
  background: linear-gradient(90deg, var(--accent-gradient-from), var(--accent-gradient-to));
}

.pain-content {
  max-width: 760px;
}

.pain-content h2 {
  margin-bottom: 24px;
}

.pain-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.pain-list p {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--secondary-muted-text);
  margin: 0;
}

.pain-list p:last-child {
  position: relative;
  padding-left: 20px;
}

.pain-list p:last-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.pain-accent {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--foreground);
  border-left: 3px solid rgba(22, 163, 74, 0.3);
  padding-left: 20px;
  margin-top: 8px;
}

/* ===== Pain Deep Block ===== */
#pain-deep-block {
  position: relative;
  background: var(--background);
}

#pain-deep-block h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  border-radius: var(--radius-chip);
  margin-top: 10px;
  background: linear-gradient(90deg, var(--accent-gradient-from), var(--accent-gradient-to));
}

.pain-deep-content {
  max-width: 760px;
}

.pain-deep-content h2 {
  margin-bottom: 24px;
}

.pain-deep-note-wrapper {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.pain-deep-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-chip);
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.15);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--foreground);
  margin-bottom: 12px;
}

.pain-deep-note {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--foreground);
  margin: 0;
}

/* ===== Main Benefit ===== */
#main-benefit {
  position: relative;
  background:
    radial-gradient(
      circle at bottom left,
      rgba(163, 230, 53, 0.07),
      transparent 50%
    ),
    var(--muted-background);
}

#main-benefit h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  border-radius: var(--radius-chip);
  margin-top: 12px;
  margin-bottom: 32px;
  background: linear-gradient(90deg, var(--accent-gradient-from), var(--accent-gradient-to));
}

.benefit-content {
  max-width: 760px;
}

.benefit-content h2 {
  margin-bottom: 0;
}

.benefit-description {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--secondary-muted-text);
  margin-bottom: 40px;
  margin-top: 0;
}

.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--foreground);
}

.benefit-list p {
  margin: 0;
  color: var(--secondary-muted-text);
}

/* ===== How It Works ===== */
#how-it-works {
  position: relative;
  background:
    radial-gradient(
      circle at top right,
      rgba(22, 163, 74, 0.06),
      transparent 50%
    ),
    var(--background);
}

#how-it-works h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  border-radius: var(--radius-chip);
  margin-top: 10px;
  background: linear-gradient(90deg, var(--accent-gradient-from), var(--accent-gradient-to));
  margin-left: -8px;
  margin-right: auto;
}

.how-header {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: left;
}

.how-header p {
  margin-top: 20px;
  font-size: var(--section-subtitle-size);
  font-weight: var(--section-subtitle-weight);
  line-height: var(--section-subtitle-line-height);
  color: var(--secondary-muted-text);
}

.how-it-works__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: flex-start;
}

.how-it-works__steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.how-it-works__preview {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.how-it-works__note {
  font-size: var(--section-subtitle-size);
  font-weight: var(--section-subtitle-weight);
  line-height: var(--section-subtitle-line-height);
  color: var(--secondary-muted-text);
  margin-top: 24px;
  margin-bottom: 0;
}

/* ===== StepItem Component ===== */
.step-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--card-bg);
  border-radius: var(--radius-card);
  border: 1px solid var(--card-border);
  padding: 20px 24px;
  box-shadow: var(--shadow-card-default);
  position: relative;
  overflow: hidden;
  transition: var(--transition-default);
}

.step-item:hover {
  transform: translateY(var(--hover-translate));
  box-shadow: var(--shadow-hero-card);
}

.step-item::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  border-radius: var(--radius-chip);
  background: radial-gradient(
    circle at center,
    rgba(22, 163, 74, 0.12),
    transparent 65%
  );
  opacity: 0.32;
}

/* Отключить ::before из seo-pages.css (дублирует .step-number) */
#how-it-works .step-item::before {
  display: none;
}

#how-it-works .step-item {
  padding-left: 0;
  margin-bottom: 0;
  counter-increment: none;
}

.step-number {
  width: 28px;
  height: 28px;
  background-color: rgba(22, 163, 74, 0.18);
  color: var(--primary);
  border-radius: var(--radius-chip);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.3);
}

.step-content {
  flex: 1;
}

.step-content h3 {
  margin-bottom: 6px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--foreground);
}

.step-content p {
  font-size: var(--step-description-size);
  font-weight: var(--step-description-weight);
  line-height: var(--step-description-line-height);
  color: var(--secondary-muted-text);
  margin: 0;
}

.step-content p + p {
  margin-top: 8px;
}

.step-note {
  font-size: var(--step-note-size);
  font-weight: var(--step-note-weight);
  line-height: var(--step-note-line-height);
  color: var(--secondary-muted-text);
  margin-top: 8px;
}

.step-note-smaller {
  font-size: var(--step-note-smaller-size);
  font-weight: var(--step-note-smaller-weight);
  line-height: var(--step-note-smaller-line-height);
  color: var(--secondary-muted-text);
}

.step-note.process-note {
  font-size: var(--process-note-size);
  font-weight: var(--process-note-weight);
  line-height: var(--process-note-line-height);
  color: var(--secondary-muted-text);
}

/* ===== Prototypes ===== */
.prototype-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.ui-field {
  border-radius: var(--radius-button);
  background: var(--input-background);
  padding: 8px 10px;
  font-size: 12px;
  color: var(--muted-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.35);
  margin-top: 10px;
}

.ui-field:first-of-type {
  margin-top: 0;
}

.ui-field-label {
  opacity: 0.9;
}

.ui-field-hint {
  font-size: 11px;
  color: var(--muted-text);
}

.ui-cursor {
  width: 1px;
  height: 16px;
  background: var(--primary);
  margin-left: 4px;
  animation: blink 1s infinite;
}

.ui-selected {
  background: rgba(30, 144, 255, 0.12);
  border-radius: 3px;
  padding: 2px 4px;
}

.ui-hint {
  font-size: 11px;
  color: var(--secondary-muted-text);
  margin-top: 6px;
}

.ui-tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.ui-tag {
  padding: 4px 8px;
  border-radius: var(--radius-chip);
  background: var(--muted-background);
  font-size: 11px;
  color: var(--muted-text);
}

.ui-tag-active {
  background: rgba(198, 228, 138, 0.34);
  color: var(--foreground);
  box-shadow: 0 0 0 1px rgba(198, 228, 138, 0.6);
}

.ui-editor {
  height: auto;
  border-radius: var(--radius-button);
  background: var(--input-background);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--foreground);
  margin-bottom: 10px;
}

.ui-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.ui-action {
  flex: 1;
  height: 32px;
  border-radius: var(--radius-button);
  background: var(--muted-background);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--muted-text);
}

/* ===== PreviewCard Component ===== */
.preview-card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  border: 1px solid var(--card-border);
  padding: 20px 24px;
  box-shadow: var(--shadow-card-default);
}

.preview-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.preview-card__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--secondary-muted-text);
}

.preview-card__status {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted-text);
  padding: 4px 8px;
  border-radius: var(--radius-chip);
  background: var(--muted-background);
}

.preview-card__body {
  display: flex;
  flex-direction: column;
}

/* ===== New Sections (Draft Preview, AI Bypass) ===== */

/* Draft Preview Section */
.draft-window {
  max-width: 960px;
  margin: 48px auto 0;
  background: #f1f5f9;
  border-radius: 8px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
  border: 1px solid #cbd5e1;
  overflow: hidden;
}

.word-toolbar {
  background: #fff;
  padding: 8px 16px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
}

.word-tool-group {
  display: flex;
  gap: 8px;
  border-right: 1px solid #e2e8f0;
  padding-right: 16px;
}

.word-tool-group:last-child { border-right: none; }

.word-tool {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #64748b;
  font-size: 16px;
}

.word-tool.active { background: #e2e8f0; color: #0f172a; }

.word-ruler {
  background: #f8fafc;
  height: 24px;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
  background-image: linear-gradient(90deg, #e2e8f0 1px, transparent 1px);
  background-size: 20px 100%;
}

.draft-content-area {
  padding: 40px;
  display: flex;
  justify-content: center;
  background: #cbd5e1;
}

.word-page {
  background: #fff;
  width: 100%;
  max-width: 800px;
  min-height: 1000px;
  padding: 80px 60px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-family: 'Times New Roman', serif;
}

.draft-h3 {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  margin-bottom: 24px;
  text-align: center;
  text-transform: uppercase;
}

.draft-p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.5;
  text-align: justify;
  text-indent: 1.25cm;
  color: #000;
}

.draft-sources {
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid #000;
}

/* AI Bypass Section */
.ai-bypass-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.bypass-features {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.bypass-item {
  display: flex;
  gap: 24px;
  align-items: center;
}

.bypass-icon {
  width: 64px;
  height: 64px;
  background: var(--background);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--primary);
  box-shadow: var(--shadow-card-default);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.bypass-item h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--foreground);
}

.bypass-item p {
  color: var(--muted-text);
  font-size: 16px;
  line-height: 1.6;
}

.ai-bypass-visual {
  display: flex;
  justify-content: center;
}

.check-result {
  background: var(--foreground);
  color: var(--background);
  padding: 48px;
  border-radius: 32px;
  text-align: center;
  width: 100%;
  max-width: 360px;
  box-shadow: var(--shadow-pricing-card);
  border: 1px solid rgba(255,255,255,0.1);
}

.check-circle {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 32px;
}

.check-circle svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.check-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
}

.check-label {
  font-size: 16px;
  opacity: 0.7;
  margin-bottom: 12px;
}

.check-status {
  font-weight: 700;
  color: #4ade80;
  font-size: 18px;
}

/* ===== Privacy Block ===== */
#privacy-block {
  position: relative;
  background: var(--muted-background);
}

.privacy-content {
  max-width: 640px;
}

.privacy-content h2 {
  margin-bottom: 24px;
}

.privacy-content p {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--secondary-muted-text);
  margin: 0;
}

.privacy-content p + p {
  margin-top: 20px;
}

/* ===== Pricing ===== */
#pricing {
  position: relative;
  background:
    radial-gradient(
      circle at center top,
      rgba(22, 163, 74, 0.05),
      transparent 45%
    ),
    var(--background);
}

#pricing h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  border-radius: var(--radius-chip);
  margin-top: 10px;
  background: linear-gradient(90deg, var(--accent-gradient-from), var(--accent-gradient-to));
  margin-left: auto;
  margin-right: auto;
}

.pricing-header {
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-toggle {
  display: flex;
  background: var(--input-background);
  padding: 4px;
  border-radius: var(--radius-button);
  margin: 0 auto 56px;
  width: fit-content;
  gap: 4px;
}

.pricing-toggle-btn {
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-default);
  color: var(--muted-text);
  white-space: nowrap;
}

.pricing-toggle-btn.active {
  background: #333333;
  color: white;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1040px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pricing);
  padding: 56px 48px;
  width: 100%;
  box-shadow: var(--shadow-pricing-card);
  position: relative;
  transition: var(--transition-default);
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-top: 3px solid var(--primary);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.15);
}

.pricing-badge {
  position: absolute;
  top: 20px;
  left: 28px;
  padding: 4px 10px;
  border-radius: var(--radius-chip);
  background: rgba(198, 228, 138, 0.32);
  color: var(--muted-text);
  font-size: 11px;
  font-weight: 500;
}

.pricing-subtitle {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--muted-text);
  margin-bottom: 32px;
  margin-top: 8px;
}

.price {
  font-size: 56px;
  font-weight: 750;
  line-height: 1.1;
  margin: 32px 0 12px 0;
  color: var(--foreground);
  letter-spacing: -0.02em;
}

#price-value, #price-total-hint {
  transition: opacity 150ms ease-out;
}

.period {
  font-size: 18px;
  font-weight: 400;
  color: var(--muted-text);
  margin-left: 8px;
}

.pricing-description {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--secondary-muted-text);
  margin-bottom: 32px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--foreground);
}

.check-icon {
  color: var(--primary);
  font-size: 20px;
  flex-shrink: 0;
}

.pricing-button {
  width: 100%;
  margin-top: auto;
}

.pricing-cancel-note {
  position: absolute;
  bottom: 20px;
  right: 28px;
  font-size: var(--step-note-smaller-size);
  font-weight: var(--step-note-smaller-weight);
  line-height: var(--step-note-smaller-line-height);
  color: var(--secondary-muted-text);
  margin: 0;
}

/* ===== Final CTA ===== */
#final-cta {
  position: relative;
  background:
    radial-gradient(
      circle at top,
      rgba(22, 163, 74, 0.08),
      transparent 60%
    ),
    var(--muted-background);
  text-align: center;
  padding: 140px 0;
}

.final-cta-note {
  position: absolute;
  top: 20px;
  left: 115px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--secondary-muted-text);
  margin: 0;
}

.final-cta-title {
  max-width: 720px;
  margin: 0 auto 48px;
  font-size: 40px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.final-cta-button-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===== Footer ===== */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--background);
}

footer .container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--foreground);
  text-decoration: none;
  justify-self: start;
}

.footer-copyright {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted-text);
  text-align: center;
  justify-self: center;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-self: end;
}

.footer-links a {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted-text);
  text-decoration: none;
  transition: var(--transition-default);
}

.footer-links a:hover {
  color: var(--foreground);
}

/* ===== Theme Toggle ===== */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-chip);
  cursor: pointer;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--muted-text);
  transition: var(--transition-default);
  margin-left: 12px;
  vertical-align: middle;
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

[data-theme="dark"] .theme-icon-light { display: inline-flex; }
[data-theme="dark"] .theme-icon-dark { display: none; }
.theme-icon-light { display: none; }
.theme-icon-dark { display: inline-flex; }

/* Переключатель на тёмном footer */
.site-footer .theme-toggle {
  border-color: #334155;
  color: #94a3b8;
}

.site-footer .theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ===== Responsive 404 ===== */
@media (max-width: 1024px) {
  .error-grid {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  
  .error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .error-actions {
    justify-content: center;
  }
  
  .error-card-wrapper {
    max-width: 480px;
    margin: 0 auto;
  }
  
  .error-card-bg {
    right: 50%;
    transform: translateX(50%);
  }
}

@media (max-width: 768px) {
  .error-title {
    font-size: 40px;
  }
  
  .error-description {
    font-size: 18px;
  }
  
  .error-card {
    padding: 24px;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

/* ===== Hero Bento ===== */
.hero-bento {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 100%;
}

.bento-item {
  position: relative;
  background: #0c1222;
  border-radius: 16px;
  padding: 20px;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 220ms ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 150px;
}

.bento-item::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
  transition: opacity 220ms ease;
  pointer-events: none;
  top: -30px;
  right: -30px;
}

.bento-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.bento-item:hover::before {
  opacity: 0.55;
}

.hero-bento .bento-item {
  grid-column: span 1;
}

.bento-item-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 4px;
  color: #fff;
  position: relative;
  z-index: 1;
}

.bento-item-pages {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 1;
}

.bento-item-cta {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-top: auto;
  padding-top: 16px;
  position: relative;
  z-index: 1;
  transition: color 220ms ease;
}

.bento-item:hover .bento-item-cta {
  color: #fff;
}

/* Bento item colors */
.bento-item[data-type="referat"]::before { background: #16a34a; }
.bento-item[data-type="kursach"]::before { background: #2563eb; }
.bento-item[data-type="essay"]::before { background: #9333ea; }
.bento-item[data-type="doklad"]::before { background: #ea580c; }
.bento-item[data-type="article"]::before { background: #0891b2; }
.bento-item[data-type="composition"]::before { background: #e11d48; }
.bento-item[data-type="task"]::before { background: #d97706; }

/* ===== Inline CTA ===== */
.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.06), rgba(163, 230, 53, 0.04));
  border: 1px solid rgba(22, 163, 74, 0.15);
  margin-top: 48px;
}

.inline-cta-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--foreground);
}

.inline-cta .btn {
  flex-shrink: 0;
  width: auto;
  min-height: auto;
  padding: 10px 20px;
  font-size: 15px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-bento {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .control-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-side-card-shell {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
  
  /* Header */
  .nav-link {
    display: none;
  }
  
  .nav {
    gap: 8px;
  }
  
  .nav .btn-outline {
    margin-left: 0;
    min-height: 44px;
    padding: 12px 20px;
    font-size: 16px;
  }
  
  .logo {
    font-size: 18px;
  }
  
  /* Typography */
  h1 {
    font-size: 40px;
    line-height: 1.1;
  }
  
  h2 {
    font-size: 32px;
    line-height: 1.15;
  }
  
  .hero-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
  }
  
  .hero-description {
    font-size: 18px;
    margin-bottom: 0;
  }

  /* Sections */
  section {
    padding: 60px 0;
  }
  
  /* Hero */
  .hero {
    padding-top: 100px;
    padding-bottom: 48px;
    min-height: auto;
  }
  
  .hero-badge {
    margin-top: 24px;
    margin-bottom: 16px;
  }
  
  .hero-grid {
    gap: 32px;
  }
  
  .hero-bento {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .hero-bento .bento-item {
    min-height: 120px;
    padding: 18px;
  }

  .hero-bento .bento-item:last-child {
    grid-column: 1 / -1;
  }

  .bento-item-title {
    font-size: 17px;
  }

  .bento-item-cta {
    font-size: 13px;
    padding-top: 12px;
  }

  .inline-cta {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 20px;
  }

  .inline-cta .btn {
    width: 100%;
  }

  /* How It Works */
  .how-it-works__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  /* Buttons */
  .btn {
    width: 100%;
    min-height: 44px;
    padding: 12px 24px;
    font-size: 16px;
  }
  
  .hero-button {
    width: 100%;
    text-align: center;
  }
  
  /* Footer */
  footer .container {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  
  .footer-logo {
    justify-self: center;
  }
  
  .footer-copyright {
    justify-self: center;
  }
  
  .footer-links {
    justify-self: center;
    flex-direction: column;
    gap: 16px;
  }
  
  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .pricing-card {
    padding: 32px 24px;
    width: 100%;
    max-width: 100%;
  }
  
  .pricing-cancel-note {
    position: static;
    margin-top: 16px;
    text-align: center;
  }

  /* Responsive New Blocks */
  .ai-bypass-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .draft-content-area {
    padding: 20px;
  }

  .word-page {
    padding: 40px 20px;
  }

  .word-toolbar {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  /* Typography */
  h1 {
    font-size: 32px;
  }
  
  .hero-content h1 {
    font-size: 28px;
    line-height: 1.1;
  }
  
  h2 {
    font-size: 28px;
  }
  
  .hero-description {
    font-size: 17px;
  }
  
  /* Hero */
  .hero {
    padding-top: 80px;
    padding-bottom: 40px;
  }
  
  .hero-badge {
    margin-top: 20px;
  }
  
  .hero-grid {
    gap: 24px;
  }
  
  /* Buttons */
  .btn {
    padding: 12px 20px;
    min-height: 44px;
    font-size: 15px;
  }
  
  /* Sections */
  section {
    padding: 48px 0;
  }
  
  .final-cta-title {
    font-size: 24px;
  }

  .hero-bento {
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 100%;
    gap: 10px;
  }

  .hero-bento .bento-item {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    min-height: 100px;
  }

}
