:root {
  --bg: #0a0b0e;
  --bg-elevated: #12141a;
  --card: #161920;
  --border: rgba(255, 255, 255, 0.09);
  --text: #f3f1ec;
  --muted: #9c9890;
  --accent: #c4a055;
  --accent-hover: #d4b56a;
  --accent-soft: rgba(196, 160, 85, 0.14);
  --success: #6ecf8a;
  --warning: #e8b84a;
  --danger: #e87878;
  --radius: 14px;
  --layout-max: 1320px;
  --site-dock-h: 11.5rem;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

body.page-home,
body.page-examples {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(196, 160, 85, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(90, 110, 140, 0.08), transparent 50%),
    var(--bg);
}

.sr-only {
  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 {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #111;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.layout-wide {
  width: min(100% - 2rem, var(--layout-max));
  margin-inline: auto;
}

/* Навигация */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 11, 14, 0.88);
  backdrop-filter: blur(12px);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}

.site-nav-links {
  display: flex;
  gap: 1.5rem;
}

.site-nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav-links a:hover,
.site-nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-cta {
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  white-space: nowrap;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(196, 160, 85, 0.08), transparent 45%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 720px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 1.75rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.hero-cta {
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.text-link,
.hero-secondary {
  color: var(--accent-hover);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.text-link:hover,
.hero-secondary:hover {
  text-decoration: underline;
}

/* Upload block */
.upload-block {
  margin-bottom: 1.5rem;
}

.upload-panel {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.upload-panel h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.upload-lead {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

.gender-pills {
  margin-bottom: 1rem;
}

.photo-guide-compact {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.analyze-btn-wide {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
}

/* Trust strip */
.trust-strip {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

.trust-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.trust-list li {
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.trust-list strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.trust-list span {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Example teaser */
.example-teaser {
  margin: 2rem auto;
}

.example-teaser-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.example-teaser-card:hover {
  border-color: rgba(196, 160, 85, 0.35);
  background: var(--accent-soft);
}

.example-teaser-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.example-teaser-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.example-teaser-arrow {
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
}

/* Premium pricing */
.pricing-section {
  margin: 2.5rem auto 3rem;
}

.pricing-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.pricing-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.pricing-sub {
  color: var(--muted);
  font-size: 0.92rem;
}

.premium-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.price-card-premium {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  text-align: center;
}

.price-card-featured {
  border-color: rgba(196, 160, 85, 0.45);
  background: linear-gradient(165deg, rgba(196, 160, 85, 0.1), var(--card) 45%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.price-badge {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--accent);
  color: #111;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.price-card-premium h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 0.25rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
}

.price-note {
  font-size: 0.82rem;
  color: var(--muted);
  min-height: 2.5rem;
  flex-grow: 1;
}

.price-card-premium .pay-btn {
  width: 100%;
  margin-top: 0.25rem;
}

.pay-error-line {
  text-align: center;
  margin-top: 1rem;
  color: var(--danger);
}

.pay-success-banner {
  margin: 0.75rem auto 0;
  padding: 0.65rem 1rem;
  max-width: 36rem;
  border-radius: 999px;
  background: rgba(110, 207, 138, 0.12);
  border: 1px solid rgba(110, 207, 138, 0.35);
  color: var(--success);
  font-size: 0.92rem;
  text-align: center;
}

.results-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

/* Examples page */
.examples-main {
  padding: 2rem 0 3rem;
}

.examples-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.examples-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.examples-lead {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.examples-format-refs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 280px));
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.format-ref-mini {
  margin: 0;
}

.format-ref-mini img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  opacity: 0.85;
}

.format-ref-caption {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.footer-inner {
  padding-top: 0.5rem;
}

.header {
  text-align: center;
  padding: 2rem 1rem 1rem;
}

.header h1 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.subtitle {
  color: var(--muted);
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

.mission-line {
  max-width: 520px;
  margin: 0.75rem auto 0;
  font-size: 0.85rem;
  color: var(--accent-hover);
  line-height: 1.5;
}

.container {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--accent-hover);
}

.hint {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.drop-zone {
  position: relative;
  margin-top: 0.5rem;
  padding: 2rem 1.5rem;
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  background: rgba(124, 108, 240, 0.06);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--accent-hover);
  background: rgba(124, 108, 240, 0.12);
}

.drop-zone-title {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.drop-zone-hint {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0;
}

.file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

label.drop-zone {
  display: block;
  cursor: pointer;
}

@media (pointer: coarse) {
  .hidden-on-touch {
    display: none !important;
  }
}

.primary-btn {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.85rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.primary-btn:hover:not(:disabled) {
  background: var(--accent-hover);
}

.primary-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.preview-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--border);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item .remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.loading {
  text-align: center;
  padding: 2rem;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hidden {
  display: none !important;
}

.disclaimer {
  background: #1e2230;
  border-color: #3d3558;
  font-size: 0.85rem;
  color: var(--muted);
}

.disclaimer strong {
  color: var(--warning);
}

.score-ring {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.score-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 3px solid var(--accent);
}

.score-circle.high { border-color: var(--success); color: var(--success); }
.score-circle.mid { border-color: var(--warning); color: var(--warning); }
.score-circle.low { border-color: var(--danger); color: var(--danger); }

.trait-list {
  list-style: none;
}

.trait-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.trait-list li:last-child {
  border-bottom: none;
}

.trait-label {
  color: var(--muted);
  font-size: 0.8rem;
}

.trait-value {
  display: block;
  margin-top: 0.15rem;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  margin: 0.15rem 0.25rem 0.15rem 0;
  background: var(--border);
}

.tag.warn { background: #3d3520; color: var(--warning); }
.tag.info { background: #1e2a3d; color: #93c5fd; }
.tag.good { background: #1a3d2a; color: var(--success); }

.recommendations {
  margin-top: 0.5rem;
}

.recommendations li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.face-result {
  margin-bottom: 1.5rem;
}

.face-result-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.face-thumb {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.meter {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin-top: 0.35rem;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.meter-fill.good { background: var(--success); }
.meter-fill.mid { background: var(--warning); }
.meter-fill.low { background: var(--danger); }

fieldset {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.85rem 0.75rem;
  margin-bottom: 1rem;
}

legend {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0 0.35rem;
}

.gender-select,
.mode-select {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.gender-select legend,
.mode-select legend {
  margin-right: 0.25rem;
}

.gender-option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.gender-badge {
  font-size: 1.1rem;
  opacity: 0.8;
}

.container {
  max-width: 960px;
}

.face-overlay {
  width: 140px;
  height: 140px;
}

.scores-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}

.scores-grid--5 .mini-score {
  flex: 1 1 5.5rem;
  min-width: 4.75rem;
}

.gender-norms-note {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
}

.mini-score {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  text-align: center;
  min-width: 72px;
}

.mini-score-val {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
}

.mini-score-val.high { color: var(--success); }
.mini-score-val.mid { color: var(--warning); }
.mini-score-val.low { color: var(--danger); }

.mini-score-label {
  font-size: 0.7rem;
  color: var(--muted);
}

.norms-table-wrap {
  margin: 1rem 0;
  overflow-x: auto;
}

.norms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.norms-table th,
.norms-table td {
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.norms-table th {
  color: var(--muted);
  font-weight: 500;
}

.dev-plus { color: #fbbf24; }
.dev-minus { color: #93c5fd; }

.zone-badge {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  white-space: nowrap;
}

.zone-ok { background: #1a3d2a; color: var(--success); }
.zone-notice { background: #3d3520; color: var(--warning); }
.zone-strong { background: #3d2020; color: var(--danger); }
.zone-extreme { background: #4a1530; color: #f9a8d4; }

.norm-bar-cell { width: 100px; }

.norm-bar {
  position: relative;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
}

.norm-bar-center {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--success);
  transform: translateX(-50%);
}

.norm-bar-marker {
  position: absolute;
  top: -2px;
  width: 6px;
  height: 12px;
  background: var(--accent);
  border-radius: 2px;
  transform: translateX(-50%);
}

.combined-result {
  border-color: var(--accent);
  background: #1a1d30;
}

.hair-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.rec-em { color: var(--success); }
.rec-so { color: var(--warning); }
.rec-dt { color: var(--muted); }

.zone-na { background: #2a2f3d; color: var(--muted); }
.row-na td { font-style: italic; }

.photo-guide {
  background: rgba(124, 108, 240, 0.08);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.photo-guide ol { margin: 0.5rem 0 0 1.2rem; }
.photo-guide li { margin-bottom: 0.35rem; }

.photo-warning {
  border-color: var(--warning);
  background: #2a2518;
}

.warn-box {
  background: #1e2230;
  border-left: 3px solid var(--warning);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.warn-box ul { margin: 0; padding-left: 1.2rem; }

.final-summary {
  border-color: var(--success);
  background: linear-gradient(135deg, #1a1d27 0%, #1a2520 100%);
}

.final-summary h2 { color: var(--success); margin-bottom: 0.75rem; }
.final-summary p { margin-bottom: 0.65rem; line-height: 1.65; }

.indicators-help {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.indicators-help summary { cursor: pointer; color: var(--accent-hover); }

.hair-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.hair-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
}

.hair-card-name { font-weight: 600; font-size: 0.85rem; margin: 0.5rem 0 0.25rem; }
.hair-card-desc { font-size: 0.75rem; color: var(--muted); margin: 0; }

.hair-icon {
  width: 64px;
  height: 72px;
  margin: 0 auto;
  background: #2a2f3d;
  border-radius: 50% 50% 40% 40%;
  position: relative;
  overflow: hidden;
}

.hi-top, .hi-sides, .hi-bob, .hi-long, .hi-bang, .hi-side {
  position: absolute;
  background: #5c4a3a;
  border-radius: 4px;
}

.crop-m .hi-top { top: 8px; left: 18px; width: 28px; height: 14px; }
.crop-m .hi-sides { bottom: 0; left: 8px; right: 8px; height: 20px; background: #3d3228; border-radius: 0; }

.textured-m .hi-top.tall { top: 4px; left: 14px; width: 36px; height: 22px; border-radius: 8px 8px 2px 2px; }

.volume-m .hi-top.spike { top: 2px; left: 16px; width: 32px; height: 26px; border-radius: 50% 50% 0 0; }

.lob-f .hi-bob { bottom: 8px; left: 10px; right: 10px; height: 36px; border-radius: 0 0 12px 12px; }
.lob-f .hi-bob.wide { height: 40px; }

.layers-f .hi-long { bottom: 0; left: 8px; right: 8px; height: 52px; border-radius: 0 0 16px 16px; }
.layers-f .hi-long.short { height: 38px; }

.bang-f .hi-bang, .curtain-m .hi-bang, .curtain-f .hi-bang {
  top: 10px; left: 12px; right: 12px; height: 12px; border-radius: 0 0 8px 8px;
}
.bang-f .hi-bang.full { height: 18px; }

.root-f .hi-top.puff { top: 4px; left: 10px; right: 10px; height: 20px; border-radius: 50%; }

.card-inner { margin-bottom: 1rem; }

.mm-note, .confidence-note {
  font-size: 0.8rem;
  color: var(--warning);
  margin-top: 0.35rem;
}

.golden-block {
  margin-top: 1rem;
  font-size: 0.85rem;
}

.golden-block summary { cursor: pointer; color: var(--accent-hover); }

.golden-inner {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  align-items: flex-start;
}

.golden-svg { width: 80px; height: auto; flex-shrink: 0; }

.hair-tryon-block { margin-top: 1rem; }

.hair-tryon-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.hair-tryon-src, .hair-tryon-img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.hair-tryon-result {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: 8px;
}

.hair-prompt-preview {
  font-size: 0.8rem;
  color: var(--muted);
  word-break: break-word;
}

.hair-tryon-btn { margin-top: 0.5rem; }

@media (max-width: 500px) {
  .hair-tryon-row { grid-template-columns: 1fr; }
  .golden-inner { flex-direction: column; }
}

.landmark-verify { margin-bottom: 1rem; }

.landmark-verify h2 { font-size: 1.15rem; margin-bottom: 0.5rem; }

.landmark-verify-row {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 240px);
  gap: 1rem;
  align-items: start;
  margin: 0.75rem 0;
}

.landmark-verify-img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0a0a0f;
}

.landmark-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}

.landmark-checklist li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.lm-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.token-help {
  margin: 0.75rem 0;
  font-size: 0.85rem;
}

.token-help summary {
  cursor: pointer;
  color: var(--accent-hover);
}

.token-steps {
  margin: 0.5rem 0 0 1.1rem;
  padding: 0;
}

.token-steps li { margin-bottom: 0.35rem; }

.token-steps code {
  font-size: 0.8rem;
  word-break: break-all;
}

@media (max-width: 600px) {
  .landmark-verify-row { grid-template-columns: 1fr; }
}

.upload-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.secondary-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}

.secondary-btn:hover {
  border-color: var(--accent);
  background: rgba(124, 108, 240, 0.08);
}

.camera-btn { width: 100%; }


.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.hidden { display: none; }

.modal-inner {
  width: 100%;
  max-width: 420px;
  margin: 0;
}

.camera-video {
  width: 100%;
  border-radius: 8px;
  background: #000;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.modal-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.modal-actions .primary-btn,
.modal-actions .secondary-btn { flex: 1; }

.vitality-block { border-left: 3px solid var(--accent); }

.vitality-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}

.vitality-metric {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
}

.vitality-val {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-hover);
  margin-bottom: 0.25rem;
}

.vitality-lbl {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
}

.vitality-signs {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vitality-sign {
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.vitality-sign strong { display: block; margin-bottom: 0.15rem; }

.vitality-tip {
  display: block;
  margin-top: 0.25rem;
  color: var(--success);
  font-size: 0.8rem;
  font-style: normal;
}

.event-check { border-left: 3px solid var(--success); }

.event-lead {
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.event-honest h3,
.event-tips h3 {
  font-size: 0.9rem;
  margin: 0.75rem 0 0.35rem;
  color: var(--text);
}

.event-honest ul,
.event-tips ul {
  margin-left: 1.1rem;
  font-size: 0.88rem;
}

body.has-site-dock main.container {
  padding-bottom: calc(var(--site-dock-h) + 3.5rem + env(safe-area-inset-bottom, 0px));
}

body.has-site-dock .upload-section:has(.preview-item) {
  padding-bottom: 0.5rem;
}

body.has-site-dock .upload-section .primary-btn {
  margin-bottom: 0.75rem;
}

.site-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 9.5rem;
  overflow: hidden;
  background: var(--bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.32);
}


#popularPeopleBlock {
  max-width: 900px;
  margin: 0 auto;
  padding: 0.4rem 0.75rem 0;
}

.popular-people--dock {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}

.popular-people--dock .people-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.popular-people--dock .people-header {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.popular-people--dock .people-header h2 {
  font-size: 0.82rem;
  margin: 0;
  font-weight: 600;
}

.popular-people--dock .people-header .hint {
  font-size: 0.68rem;
  margin: 0;
  line-height: 1.35;
}

.popular-people--dock .people-carousel-wrap {
  margin-top: 0;
}

.popular-people--dock .people-card {
  flex: 0 0 5.25rem;
}

.popular-people--dock .people-face-wrap {
  aspect-ratio: 1;
  border-radius: 8px;
}

.popular-people--dock .people-body {
  padding: 0.2rem 0 0;
}

.popular-people--dock .people-body h4 {
  font-size: 0.62rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popular-people--dock .people-known,
.popular-people--dock .people-feature,
.popular-people--dock .people-dots {
  display: none;
}

.popular-people--dock .people-nav {
  width: 28px;
  height: 28px;
  font-size: 1rem;
}

.dock-legal {
  text-align: center;
  font-size: 0.65rem;
  color: var(--muted);
  padding: 0.3rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
  margin: 0.25rem 0 0;
  border-top: 1px solid var(--border);
}

.results .card,
.results article.card {
  margin-bottom: 1.75rem;
}

.results .card + .card {
  margin-top: 0.25rem;
}

.face-result .grid-2,
.face-result .hair-section,
.face-result .norms-table {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.face-result .scores-grid {
  padding-bottom: 0.25rem;
}

.deviation-list {
  list-style: none;
  margin-left: 0;
}

.deviation-item {
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.deviation-item.neutral {
  color: var(--muted);
  font-size: 0.88rem;
}

.deviation-feature {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.2rem;
  color: var(--accent-hover);
}

.deviation-note {
  display: block;
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.45;
}

.zone-extreme { background: #2a2540; color: #c4b5fd; }
.zone-strong { background: #2a2835; color: #fcd34d; }

.norm-hint {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: normal;
  margin-top: 0.15rem;
}

.beard-section {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.beard-section h4 {
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
}

.people-header h2 { font-size: 1.15rem; }

.people-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.75rem;
}

.people-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  padding: 0.25rem 0;
}

.people-carousel::-webkit-scrollbar { display: none; }

.people-card {
  flex: 0 0 min(72vw, 280px);
  scroll-snap-align: start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.people-face-wrap {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0a0a0f;
}

.people-face {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.people-body { padding: 0.75rem; }

.people-body h4 { font-size: 0.95rem; margin-bottom: 0.2rem; }

.people-known {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.people-feature {
  font-size: 0.82rem;
  color: var(--accent-hover);
  line-height: 1.45;
}

.people-nav {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.people-nav:hover { border-color: var(--accent); }

.people-dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.people-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
}

.people-dot.active { background: var(--accent); }

@media (max-width: 600px) {
  .vitality-metrics { grid-template-columns: 1fr; }
  .people-nav { display: none; }
}

.celebrity-section { margin-top: 2rem; }

.celebrity-section h2 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.celeb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.celeb-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  overflow: hidden;
}

.celeb-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
  border-radius: 6px;
  background: var(--border);
}

.celeb-known {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.celeb-body { min-width: 0; }

.celeb-body h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.celeb-role {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
}

.celeb-tag {
  font-size: 0.8rem;
  color: var(--accent-hover);
  margin-bottom: 0.35rem;
}

.celeb-scores {
  display: flex;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.celeb-summary {
  font-size: 0.8rem;
  line-height: 1.5;
  margin-top: 0.35rem;
}

.celeb-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

/* Структурированный отчёт Этапа 1 */
.structured-report {
  display: grid;
  gap: 1rem;
}

.structured-report .card {
  margin-bottom: 0;
}

.report-header {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(124, 108, 240, 0.28), transparent 48%),
    var(--card);
}

.report-header h1 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.report-header p:not(.report-kicker) {
  max-width: 650px;
  color: var(--muted);
}

.report-kicker {
  margin-bottom: 0.25rem;
  color: var(--accent-hover);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.confidence-pill,
.stage-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.08);
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 600;
}

.report-section {
  margin: 0.5rem 0;
}

.report-section-heading {
  margin-bottom: 0.75rem;
}

.report-section-heading h2 {
  font-size: 1.25rem;
}

.report-grid,
.report-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.report-columns {
  margin-top: 1rem;
}

.report-card p + p {
  margin-top: 0.6rem;
}

.report-list {
  margin: 0.35rem 0 0 1.1rem;
}

.report-list li {
  margin-bottom: 0.35rem;
}

.report-empty,
.report-note,
.report-disclaimer {
  color: var(--muted);
}

.report-note {
  margin-top: 1rem;
  font-size: 0.85rem;
}

.report-disclaimer {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  text-align: center;
}

.haircut-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.haircut-card {
  position: relative;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(124, 108, 240, 0.09), transparent 45%), var(--card);
}

.haircut-card:first-child {
  border-color: rgba(124, 108, 240, 0.75);
}

.haircut-rank {
  color: var(--accent-hover);
  font-size: 0.75rem;
  font-weight: 700;
}

.haircut-card h3 {
  margin: 0.25rem 0 0.55rem;
  color: var(--text);
  font-size: 1.05rem;
}

.haircut-why {
  min-height: 4.4rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.haircut-specs,
.makeup-specs {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.haircut-specs div,
.makeup-specs div {
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.haircut-specs dt,
.makeup-specs dt {
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.haircut-specs dd,
.makeup-specs dd {
  margin: 0;
  font-size: 0.85rem;
}

.report-avoid {
  border-color: rgba(251, 191, 36, 0.25);
}

.payments-preview {
  margin-top: 2rem;
}

.payments-preview .stage-badge {
  margin: 0 0 0.75rem;
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
  color: var(--warning);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.price-card {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg);
  text-align: center;
}

.price-card span {
  color: var(--accent-hover);
  font-size: 1.15rem;
  font-weight: 700;
}

.privacy-footer {
  padding: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

.debug-results {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 2px dashed var(--warning);
}

.debug-results > h2 {
  margin-bottom: 1rem;
  color: var(--warning);
}

.error-card {
  border-color: rgba(248, 113, 113, 0.45);
}

@media (max-width: 768px) {
  .site-nav-inner {
    flex-wrap: wrap;
    min-height: auto;
    padding: 0.65rem 0;
  }

  .site-nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 1.25rem;
    padding-bottom: 0.25rem;
  }

  .nav-cta {
    margin-left: auto;
  }

  .trust-list {
    grid-template-columns: 1fr;
  }

  .premium-pricing {
    grid-template-columns: 1fr;
  }

  .price-card-featured {
    order: -1;
  }

  .example-teaser-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .haircut-grid {
    grid-template-columns: 1fr;
  }

  .haircut-why {
    min-height: 0;
  }
}

@media (max-width: 600px) {
  .report-grid,
  .report-columns,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.footer-inn {
  margin-top: 0.35rem;
  font-size: 0.7rem;
  color: var(--muted);
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.site-footer-nav a {
  color: var(--accent-hover);
  text-decoration: none;
}

.site-footer-nav a:hover,
.site-footer-nav a:focus-visible {
  text-decoration: underline;
}

.legal-page .legal-back {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.legal-page .legal-back a {
  color: var(--accent-hover);
  text-decoration: none;
}

.legal-page .legal-back a:hover {
  text-decoration: underline;
}

.legal-content {
  padding-bottom: 2rem;
}

.legal-content .card h2 {
  margin-bottom: 0.75rem;
}

.legal-inn-block {
  text-align: center;
}

.legal-inn-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.legal-inn-value {
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 0.75rem;
  word-break: break-all;
}

.legal-list {
  margin: 0.75rem 0 0 1.25rem;
  color: var(--text);
}

.legal-list li {
  margin-bottom: 0.35rem;
}

.legal-list-ordered {
  list-style: decimal;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.legal-nav a {
  color: var(--accent-hover);
  text-decoration: none;
  font-size: 0.9rem;
}

.legal-nav a:hover {
  text-decoration: underline;
}

.legal-disclaimer strong {
  color: var(--warning);
}

@media (max-width: 600px) {
  .legal-inn-value {
    font-size: 1.5rem;
  }
}

.staff-badge {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: var(--success);
  font-size: 0.82rem;
}

.balance-line {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.pay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.code-inline {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  background: var(--accent-soft);
  font-size: 0.82rem;
  word-break: break-all;
}

/* Лендинг: плюсы и демо результата */
.why-lead {
  margin-bottom: 1rem;
  color: var(--muted);
}

.why-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.why-list li {
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  font-size: 0.92rem;
}

.compare-table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.compare-table th,
.compare-table td {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th {
  background: rgba(124, 108, 240, 0.1);
  color: var(--accent-hover);
}

.compare-table tbody th[scope="row"] {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.format-ref-banner {
  margin: -0.25rem 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: var(--warning);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

.demo-format-note {
  margin-bottom: 1rem;
}

.format-ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.format-ref-item {
  margin: 0;
}

.format-ref-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px dashed rgba(251, 191, 36, 0.5);
  opacity: 0.92;
}

.format-ref-item figcaption {
  margin-top: 0.35rem;
  text-align: center;
}

.demo-own-todo {
  margin-bottom: 1.25rem;
}

.demo-report-layout {
  margin-top: 0.5rem;
}

.demo-report-intro {
  margin-bottom: 1rem;
}

.demo-report-host.demo-report-static .structured-report {
  margin-top: 0;
}

.demo-report-host.demo-report-static .report-header h1 {
  font-size: 1.35rem;
}

.demo-cta-wrap {
  margin-top: 1.5rem;
  text-align: center;
}

.upload-section-highlight {
  animation: upload-highlight 1.8s ease;
}

@keyframes upload-highlight {
  0%, 100% { box-shadow: none; }
  25%, 75% { box-shadow: 0 0 0 2px rgba(196, 160, 85, 0.45); }
}

@media print {
  body.print-report .site-nav,
  body.print-report .hero,
  body.print-report .upload-block,
  body.print-report .trust-strip,
  body.print-report .example-teaser,
  body.print-report .pricing-section,
  body.print-report .privacy-footer,
  body.print-report .no-print,
  body.print-report .results-toolbar {
    display: none !important;
  }

  body.print-report #resultsSection {
    display: block !important;
  }

  body.print-report {
    background: #fff;
    color: #111;
  }

  body.print-report .card {
    break-inside: avoid;
    border-color: #ccc;
  }
}
