/* AI-KOLTOMA SITE — общие стили
   Палитра: #0A0A0C / #B537F2 / #2962FF. Шрифты: Unbounded + Inter. */

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

:root {
  --bg: #0A0A0C;
  --surface: #15151a;
  --surface-2: #1f1f27;
  --primary: #B537F2;
  --primary-light: #D946FF;
  --secondary: #2962FF;
  --text: #F5F5F7;
  --text-muted: #9A9AA2;
  --border: rgba(181, 55, 242, 0.22);
  --border-strong: rgba(181, 55, 242, 0.42);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-neon: 0 0 30px rgba(181, 55, 242, 0.32);
  --shadow-neon-sm: 0 0 16px rgba(181, 55, 242, 0.22);
  --transition: 0.25s ease;
  --font-display: 'Unbounded', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Мобильные платформенные правки: поля не «прыгают» при фокусе (iOS),
   управляющие элементы не выделяются при долгом нажатии. */
input,
textarea,
select {
  font-size: 16px;
}

button,
a,
[role='button'],
.radio-card {
  touch-action: manipulation;
}

button,
.btn,
.nav-toggle,
.radio-card {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
  position: relative;
}

.section-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
  margin: 0 auto 44px;
  max-width: 640px;
}

.accent-text {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: var(--shadow-neon-sm);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}

.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.btn:active {
  transform: scale(0.97);
  transition-duration: 100ms;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* ===== Шапка ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 10, 12, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: env(safe-area-inset-top, 0px);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 17px;
}

.nav-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: 8px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-cta {
  margin-left: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: blur(35px);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  animation: beams-pulse 7s ease-in-out infinite;
}

@keyframes beams-pulse {
  0%, 100% { background-color: rgba(10, 10, 12, 0.02); }
  50% { background-color: rgba(10, 10, 12, 0.08); }
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 50% at 50% -15%, rgba(181, 55, 242, 0.22), transparent),
    radial-gradient(ellipse 55% 40% at 50% 115%, rgba(41, 98, 255, 0.18), transparent);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.35) 0%, rgba(10, 10, 12, 0.82) 72%, var(--bg) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(181, 55, 242, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(181, 55, 242, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 38%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 38%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-logo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 28px;
  box-shadow: 0 0 40px rgba(181, 55, 242, 0.32);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  border-radius: 50px;
  background: rgba(181, 55, 242, 0.1);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary-light);
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-brand {
  font-size: clamp(38px, 7.6vw, 72px);
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--text);
  display: block;
}

.hero-tagline {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-tagline-line {
  font-size: clamp(20px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: 0.05em;
  display: block;
}

.hero-tagline-top {
  background: linear-gradient(135deg, #E7B4FF, #B537F2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline-bottom {
  background: linear-gradient(135deg, #B537F2, #2962FF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 34px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

/* ===== Карточки форматов ===== */
.formats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.format-card {
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.format-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.format-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--primary-light);
  margin-bottom: 14px;
}

.format-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.format-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 22px;
  flex: 1;
}

/* ===== Как это работает ===== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.step-card {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.step-index {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(181, 55, 242, 0.16), rgba(41, 98, 255, 0.16));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--primary-light);
}

.step-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.step-text {
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== Примеры ===== */
.examples-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.example-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition);
}

.example-title {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.example-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===== Бейджи ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.badge-example {
  background: rgba(255, 176, 32, 0.12);
  color: #f5b23e;
  border-color: rgba(255, 176, 32, 0.32);
}

.badge-format {
  background: rgba(181, 55, 242, 0.12);
  color: var(--primary-light);
  border-color: var(--border);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

.status-draft { background: rgba(154, 154, 162, 0.14); color: var(--text-muted); }
.status-interview { background: rgba(154, 154, 162, 0.14); color: var(--text-muted); }
.status-brief_ready { background: rgba(41, 98, 255, 0.14); color: #6f9bff; }
.status-confirmed { background: rgba(181, 55, 242, 0.14); color: var(--primary-light); }
.status-running { background: rgba(255, 176, 32, 0.12); color: #f5b23e; }
.status-queued { background: rgba(255, 176, 32, 0.12); color: #f5b23e; }
.status-done { background: rgba(46, 196, 122, 0.14); color: #4fd691; }
.status-failed { background: rgba(235, 77, 75, 0.14); color: #f27876; }

/* ===== CTA / контакты ===== */
.cta-card {
  padding: 52px 28px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at top, rgba(181, 55, 242, 0.12), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}

.cta-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-text {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 26px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

/* ===== Подвал ===== */
.footer {
  padding: 40px 0 calc(56px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 640px;
}

/* ===== Формы ===== */
.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.field-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.field input[type='text'],
.field input[type='number'],
.field input[type='password'],
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  transition: border-color var(--transition);
}

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

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
}

.radio-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.radio-card {
  position: relative;
  display: block;
  padding: 20px 18px 20px 52px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all var(--transition);
}

.radio-card input {
  position: absolute;
  left: 18px;
  top: 22px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.radio-card.selected {
  border-color: var(--primary);
  box-shadow: var(--shadow-neon-sm);
}

.radio-card-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.radio-card-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== Бриф (пошаговая форма) ===== */
.brief-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 0 80px;
}

.brief-head {
  text-align: center;
  margin-bottom: 34px;
}

.steps-nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 30px;
}

.steps-nav span {
  height: 6px;
  border-radius: 3px;
  background: var(--surface-2);
  flex: 0 0 44px;
  transition: background var(--transition);
}

.steps-nav span.active {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.step-panel {
  display: none;
  animation: fadeIn 0.25s ease;
}

.step-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 26px;
}

.step-actions .spacer {
  flex: 1;
}

.review-box {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
}

.review-box dt {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.review-box dd {
  font-size: 15px;
  margin-bottom: 14px;
}

.review-box dd:last-child {
  margin-bottom: 0;
}

.form-alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(235, 77, 75, 0.12);
  border: 1px solid rgba(235, 77, 75, 0.32);
  color: #f27876;
  font-size: 14px;
  margin-bottom: 20px;
}

/* ===== Страница проекта ===== */
.project-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 0 80px;
}

.panel {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 22px;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.meta-row strong {
  color: var(--text);
  font-weight: 600;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== Отчёт ===== */
.report-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.report-head {
  border-bottom: 1px solid var(--border);
  padding-bottom: 26px;
  margin-bottom: 30px;
}

.report-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}

.report-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 20px;
}

.report-summary {
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 30px;
}

.report-section {
  margin-bottom: 30px;
}

.report-section h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}

.report-section p {
  margin-bottom: 14px;
  color: #dcdce0;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
}

.report-table th,
.report-table td {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
  text-align: left;
}

.report-table th {
  background: var(--surface-2);
  font-weight: 600;
}

.report-caption {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.report-figure {
  margin: 18px 0;
  padding: 30px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  background: var(--surface);
}

.report-sources {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.report-sources h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}

.report-sources ol {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: #dcdce0;
}

.report-disclaimer {
  margin-top: 30px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 176, 32, 0.08);
  border: 1px solid rgba(255, 176, 32, 0.24);
  color: #f5c96b;
  font-size: 13px;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

/* ===== Админка ===== */
.admin-wrap {
  padding: 48px 0 80px;
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: top;
}

.admin-table th {
  background: var(--surface-2);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-title {
  font-weight: 600;
  max-width: 420px;
}

.admin-cost-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-cost-form input {
  width: 96px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
}

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ===== 404 ===== */
.empty-state {
  max-width: 560px;
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
}

.empty-state h1 {
  font-family: var(--font-display);
  font-size: 26px;
  margin-bottom: 12px;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ===== Адаптивность ===== */
@media (min-width: 640px) {
  .section { padding: 88px 0; }
  .section-title { font-size: 36px; }
  .hero-actions { flex-direction: row; }
  .cta-actions { flex-direction: row; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .examples-grid { grid-template-columns: repeat(2, 1fr); }
  .radio-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .section { padding: 104px 0; }
  .section-title { font-size: 42px; }
  .formats-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

/* Hover-эффекты только там, где есть точный указатель (мышь/трекпад).
   На сенсорном экране первый тап иначе «залипает» в состоянии :hover. */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon);
  }
  .btn-outline:hover {
    border-color: var(--primary);
    background: rgba(181, 55, 242, 0.08);
    transform: translateY(-2px);
  }
  .btn-ghost:hover {
    border-color: var(--primary);
    background: rgba(181, 55, 242, 0.08);
  }
  .nav-links a:hover {
    color: var(--text);
  }
  .format-card:hover {
    transform: translateY(-4px);
    border-color: var(--border);
    box-shadow: var(--shadow-neon);
  }
  .format-card:hover::before {
    transform: scaleX(1);
  }
  .example-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-neon-sm);
  }
  .radio-card:hover {
    border-color: var(--border);
  }
}

/* Мобильное меню и компактная вёрстка. */
@media (max-width: 640px) {
  .nav-inner {
    gap: 12px;
    height: 60px;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-cta .btn {
    padding: 8px 14px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    background: rgba(10, 10, 12, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 20px calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }
  .nav-links a:last-child {
    border-bottom: none;
  }
  .hero {
    padding: 56px 0 48px;
  }
  .hero-logo {
    width: 96px;
    height: 96px;
    margin-bottom: 22px;
  }
  .hero-subtitle {
    font-size: 15px;
  }
  .btn {
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .nav-logo span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
