/* ============================================================
   ПодпишиДок — Landing Page Stylesheet
   Dark premium design with gold accents
   FULLY REWRITTEN to match landing.html class names exactly
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES
   ============================================================ */
:root {
  --gold:          #B8932E;
  --gold-light:    #C9A84C;
  --gold-dim:      rgba(184, 147, 46, 0.10);
  --gold-border:   rgba(184, 147, 46, 0.28);
  --shell:         #FFFFFF;
  --surface:       #FAFAF7;
  --card:          #FFFFFF;
  --input:         #F5F4F0;
  --bright:        #1A1A2E;
  --muted:         #4A4A5C;
  --faint:         #C9C5D5;
  --red:           #DC2626;
  --green:         #16A34A;
  --header-h:      68px;
  --shadow-sm:     0 1px 2px rgba(26, 26, 46, 0.04), 0 1px 3px rgba(26, 26, 46, 0.06);
  --shadow-md:     0 4px 12px rgba(26, 26, 46, 0.08), 0 2px 6px rgba(26, 26, 46, 0.04);
  --shadow-lg:     0 12px 32px rgba(26, 26, 46, 0.10), 0 4px 12px rgba(26, 26, 46, 0.06);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--shell);
  color: var(--bright);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

img {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

/* ============================================================
   3. LAYOUT HELPERS
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.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;
}

/* ============================================================
   4. BUTTON SYSTEM
   ============================================================ */

/* Base button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.18s, box-shadow 0.18s;
  padding: 9px 18px;
  line-height: 1;
}

/* Gold variant */
.btn-gold {
  background: var(--gold);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 1px 2px rgba(184, 147, 46, 0.20);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(184, 147, 46, 0.30);
}

.btn-gold:active {
  transform: translateY(0);
}

/* Ghost variant */
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--faint);
}

.btn-ghost:hover {
  border-color: var(--gold-border);
  color: var(--bright);
  background: var(--gold-dim);
}

/* Outline variant (used in hero) */
.btn-outline {
  background: var(--card);
  color: var(--bright);
  border: 1.5px solid var(--faint);
}

.btn-outline:hover {
  border-color: var(--gold-border);
  background: var(--gold-dim);
}

/* Size modifiers */
.btn-lg {
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
}

.btn-sm {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 6px;
}

.btn-full {
  width: 100%;
}

/* Arrow inside button */
.btn-arrow {
  display: inline-block;
  transition: transform 0.15s;
}

.btn-gold:hover .btn-arrow {
  transform: translateX(3px);
}

/* Disabled state */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ============================================================
   5. HEADER  (.site-header)
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(26, 26, 46, 0.08);
  z-index: 100;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 28px;
}

/* ---- Logo ---- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  flex-shrink: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--bright);
  letter-spacing: -0.01em;
  transition: opacity 0.15s;
}

.logo:hover {
  opacity: 0.88;
}

.logo-icon {
  font-size: 20px;
  line-height: 1;
}

.logo-accent {
  color: var(--gold);
}

/* Footer logo modifier */
.logo--footer {
  font-size: 18px;
}

/* ---- Navigation ---- */
.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 44px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
  line-height: 1;
}

.nav-link:hover {
  color: var(--bright);
}

/* ---- Header right area ---- */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- Logged-in user area ---- */
.header-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--bright);
}

/* ---- Hamburger (mobile) ---- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--faint);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.15s;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s, background 0.15s;
}

.hamburger:hover {
  border-color: var(--gold-border);
}

.hamburger:hover span {
  background: var(--bright);
}

/* Hamburger open state */
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Mobile menu ---- */
.mobile-menu {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--faint);
  padding: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

/* На мобильных и планшетах меню есть в DOM, но раскрывается через .open */
@media (max-width: 980px) {
  .mobile-menu { display: block; }
}

.mobile-menu.open {
  max-height: 480px;
  padding: 16px 0 20px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  gap: 4px;
}

.mobile-nav-link {
  display: block;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.mobile-nav-link:hover {
  color: var(--bright);
  background: var(--card);
}

.mobile-divider {
  border: none;
  border-top: 1px solid var(--faint);
  margin: 8px 0;
}

/* ============================================================
   6. MAIN CONTENT PADDING (compensate fixed header)
   ============================================================ */
main {
  padding-top: var(--header-h);
}

/* ============================================================
   7. HERO SECTION  (.hero-section)
   ============================================================ */
.hero-section {
  position: relative;
  padding: 80px 0 100px;
  background: linear-gradient(180deg, var(--shell) 0%, var(--surface) 100%);
  overflow: hidden;
}

/* Ambient glow behind content */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.08) 0%, transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 60px;
}

/* Left: text content */
.hero-content {
  flex: 1;
  min-width: 0;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 168, 76, 0.10);
  border: 1px solid var(--gold-border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-icon {
  font-style: normal;
  font-weight: 700;
  font-size: 13px;
}

/* Main headline */
.hero-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--bright);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-heading-accent {
  color: var(--gold);
}

/* Subtitle */
.hero-subtitle {
  font-size: 17px;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 36px;
  line-height: 1.7;
}

/* CTA row */
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Stats row */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 0 20px;
}

.hero-stat:first-child {
  padding-left: 0;
}

.hero-stat strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--bright);
}

.hero-stat span {
  font-size: 12px;
  color: var(--muted);
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--faint);
  flex-shrink: 0;
}

/* ============================================================
   8. HERO MOCKUP  (.hero-mockup)
   ============================================================ */
.hero-mockup {
  flex: 0 0 440px;
  max-width: 440px;
  position: relative;
}

/* Browser window frame */
.mockup-window {
  background: var(--surface);
  border: 1px solid var(--faint);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(26, 26, 46, 0.14),
              0 0 0 1px rgba(255, 255, 255, 0.04);
  position: relative;
  z-index: 1;
}

/* Title bar with dots */
.mockup-titlebar {
  height: 40px;
  background: var(--card);
  border-bottom: 1px solid var(--faint);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
}

.mockup-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-red    { background: #FF5F57; }
.dot-yellow { background: #FFBD2E; }
.dot-green  { background: #28CA41; }

.mockup-url {
  flex: 1;
  height: 22px;
  background: var(--surface);
  border-radius: 4px;
  margin: 0 8px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.02em;
}

/* Body = toolbar + canvas */
.mockup-body {
  display: flex;
  height: 260px;
}

/* Left toolbar */
.mockup-toolbar {
  width: 44px;
  background: var(--surface);
  border-right: 1px solid var(--faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 4px;
  flex-shrink: 0;
}

.mockup-tool {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 14px;
  cursor: default;
  color: var(--faint);
  transition: background 0.15s;
}

.mockup-tool.active {
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}

/* Canvas area */
.mockup-canvas {
  flex: 1;
  background: #e8e3d5;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Document paper */
.mockup-doc {
  width: 140px;
  height: 200px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 4px 24px rgba(26, 26, 46, 0.08);
  position: relative;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mockup-doc-lines {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: auto;
}

.mockup-line {
  height: 6px;
  background: #E0DDD5;
  border-radius: 3px;
  width: 100%;
}

.mockup-line--wide   { width: 100%; }
.mockup-line--medium { width: 78%; }
.mockup-line--short  { width: 50%; }

/* Signature area inside document */
.mockup-signature-area {
  position: absolute;
  bottom: 14px;
  left: 10px;
  right: 10px;
  padding: 6px 8px;
  border: 1.5px dashed rgba(201, 168, 76, 0.4);
  border-radius: 4px;
  background: rgba(201, 168, 76, 0.04);
}

.mockup-signature-label {
  font-size: 7px;
  color: #aaa;
  margin-bottom: 2px;
  font-family: sans-serif;
}

.mockup-sig-svg {
  width: 100%;
  height: 30px;
  display: block;
}

/* Stamp circle */
.mockup-stamp {
  position: absolute;
  top: 12px;
  right: 8px;
}

.mockup-stamp-ring {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(26, 82, 118, 0.30);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5px;
  color: rgba(26, 82, 118, 0.45);
  font-weight: 700;
  text-align: center;
  padding: 4px;
  line-height: 1.3;
  font-family: sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Ambient glow under mockup */
.mockup-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 100px;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.18) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   9. TRUST BAR  (.trust-bar)
   ============================================================ */
.trust-bar {
  background: var(--surface);
  border-top: 1px solid var(--faint);
  border-bottom: 1px solid var(--faint);
  padding: 20px 0;
}

.trust-list {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  list-style: none;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

.trust-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.trust-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.trust-text strong {
  color: var(--bright);
  font-size: 14px;
  font-weight: 600;
}

.trust-text span {
  font-size: 12px;
  color: var(--muted);
}

/* ============================================================
   10. SHARED SECTION STYLES
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201, 168, 76, 0.10);
  border: 1px solid var(--gold-border);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  color: var(--bright);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   11. FEATURES SECTION  (.features-section)
   ============================================================ */
.features-section {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  list-style: none;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--faint);
  border-radius: 14px;
  padding: 28px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
  list-style: none;
}

.feature-card:hover {
  border-color: var(--gold-border);
  background: linear-gradient(135deg, var(--card) 0%, rgba(201, 168, 76, 0.06) 100%);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(26, 26, 46, 0.10);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
  line-height: 1;
}

/* Text-only icon variant (the "T") */
.feature-icon--text {
  font-size: 28px;
  font-weight: 700;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--gold);
}

.feature-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--bright);
  margin-bottom: 8px;
  line-height: 1.3;
}

.feature-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.features-cta {
  text-align: center;
  margin-top: 48px;
}

/* ============================================================
   12. HOW IT WORKS SECTION  (.how-section)
   ============================================================ */
.how-section {
  background: var(--surface);
  padding: 100px 0;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  max-width: 760px;
  margin: 0 auto;
  counter-reset: steps;
}

.step {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--faint);
  position: relative;
}

.step:last-child {
  border-bottom: none;
}

.step-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 52px;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--faint);
  line-height: 1;
  flex-shrink: 0;
  width: 80px;
  text-align: center;
  letter-spacing: -0.04em;
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--bright);
  margin-bottom: 6px;
  line-height: 1.3;
}

.step-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.step-icon {
  font-size: 32px;
  flex-shrink: 0;
  opacity: 0.7;
}

/* ============================================================
   13. COMPARISON SECTION  (.comparison-section)
   ============================================================ */
.comparison-section {
  padding: 100px 0;
}

.comparison-wrapper {
  max-width: 820px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid var(--faint);
  box-shadow: 0 8px 40px rgba(26, 26, 46, 0.08);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

/* Compact таблица для мобильного — без горизонтального скролла */
@media (max-width: 540px) {
  .comparison-wrapper { border-radius: 10px; }
  .comparison-table { min-width: 0; font-size: 13px; }
  .comp-col-feature, .comp-col-us, .comp-col-them { padding: 10px 8px; font-size: 12px; }
  .comp-feature, .comp-us, .comp-them { padding: 10px 8px; font-size: 13px; }
  .comp-check, .comp-cross, .comp-partial { font-size: 14px; margin-right: 4px; }
  .comp-badge-best { font-size: 9px; padding: 2px 6px; }
  .comp-logo { font-size: 12px; }
}

/* Header row */
.comparison-table thead {
  background: var(--card);
}

.comp-col-feature,
.comp-col-us,
.comp-col-them {
  padding: 16px 24px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.comp-col-us {
  color: var(--gold);
  font-weight: 700;
}

.comp-logo {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.comp-badge-best {
  display: inline-block;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 100px;
  padding: 2px 10px;
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Body rows */
.comparison-table tbody tr {
  border-top: 1px solid var(--faint);
  transition: background 0.15s;
}

.comparison-table tbody tr:hover {
  background: rgba(201, 168, 76, 0.03);
}

.comp-feature,
.comp-us,
.comp-them {
  padding: 14px 24px;
  font-size: 14px;
  vertical-align: middle;
}

.comp-feature {
  color: var(--muted);
  font-weight: 500;
}

.comp-us {
  color: var(--bright);
  font-weight: 500;
}

.comp-them {
  color: var(--muted);
}

/* Winning cell highlight */
.comp-win {
  color: var(--bright);
}

/* Check / cross / partial icons */
.comp-check {
  color: var(--green);
  font-weight: 700;
  margin-right: 6px;
  font-size: 15px;
}

.comp-cross {
  color: var(--red);
  font-weight: 700;
  margin-right: 6px;
  font-size: 15px;
}

.comp-partial {
  color: var(--gold);
  font-weight: 700;
  margin-right: 6px;
  font-size: 15px;
}

/* ============================================================
   14. SIGNUP SECTION  (.signup-section)
   ============================================================ */
.signup-section {
  padding: 100px 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.07) 0%, transparent 65%),
    var(--surface);
}

.signup-inner {
  display: flex;
  align-items: flex-start;
  gap: 72px;
  max-width: 960px;
  margin: 0 auto;
}

.signup-copy {
  flex: 1;
  min-width: 0;
}

.signup-copy .section-heading {
  text-align: left;
  margin-bottom: 14px;
}

.signup-copy .section-subtitle {
  text-align: left;
  margin: 0 0 28px;
  max-width: none;
}

.signup-copy .section-badge {
  /* inherited — already centered fix */
}

.signup-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.signup-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

.perk-icon {
  color: var(--gold);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

/* Right: form wrapper */
.signup-form-wrap {
  flex: 0 0 380px;
  min-width: 0;
}

/* Signup card */
.signup-card {
  background: var(--card);
  border: 1px solid var(--faint);
  border-radius: 16px;
  padding: 32px;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Form fields */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #B0A998;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  background: #13111A;
  border: 1.5px solid #3D3956;
  border-radius: 10px;
  color: #E8E3D8;
  font-size: 15px;
  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.form-input:focus {
  border-color: #C9A84C;
  background: #1A1722;
}

.form-input::placeholder {
  color: #5A536D;
}

.form-error {
  color: #F87171;
  font-size: 13px;
  min-height: 16px;
  line-height: 1.4;
}

.form-footer-link {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}

/* Inline link style */
.link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 0.15s;
}

.link:hover {
  color: var(--gold-light);
}

/* Signup success state */
.signup-success {
  text-align: center;
  padding: 40px 24px;
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.18);
  border-radius: 16px;
}

.success-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.success-text {
  font-size: 17px;
  font-weight: 600;
  color: var(--green);
  line-height: 1.5;
  margin-bottom: 20px;
}

.success-spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid rgba(74, 222, 128, 0.2);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   15. FOOTER  (.site-footer)
   ============================================================ */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--faint);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--faint);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--faint);
  line-height: 1.4;
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-link {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-link:hover {
  color: var(--bright);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: var(--faint);
}

.footer-url {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

.footer-url:hover {
  color: var(--gold);
}

.footer-note {
  font-size: 12px;
  color: var(--faint);
  opacity: 0.7;
}

/* ============================================================
   16. MODALS
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

/* Show state toggled by JS (.open class) */
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* [hidden] override — JS uses .open, but HTML starts hidden */
.modal-overlay[hidden] {
  display: flex; /* keep flex layout but rely on opacity/visibility */
}

.modal-box {
  background: #1F1B29;
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 440px;
  position: relative;
  animation: slideUp 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Close button */
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--faint);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.modal-close:hover {
  background: var(--card);
  color: var(--bright);
}

/* Modal header area */
.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-logo {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
}

.modal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--bright);
  margin-bottom: 6px;
  line-height: 1.2;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--muted);
}

/* Modal form */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Modal footer link */
.modal-footer-link {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 18px;
}

/* ============================================================
   17. TOAST NOTIFICATIONS
   ============================================================ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--card);
  border: 1px solid var(--gold-border);
  color: var(--bright);
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 2000;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(26, 26, 46, 0.12);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast--success {
  border-color: rgba(74, 222, 128, 0.30);
  color: var(--green);
}

.toast--error {
  border-color: rgba(239, 68, 68, 0.30);
  color: #F87171;
}

/* ============================================================
   18. ANIMATIONS & SCROLL EFFECTS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

.animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

.animate-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.animate-stagger > *:nth-child(2) { transition-delay: 0.12s; }
.animate-stagger > *:nth-child(3) { transition-delay: 0.19s; }
.animate-stagger > *:nth-child(4) { transition-delay: 0.26s; }
.animate-stagger > *:nth-child(5) { transition-delay: 0.33s; }
.animate-stagger > *:nth-child(6) { transition-delay: 0.40s; }

/* Gold shimmer text */
.text-shimmer {
  background: linear-gradient(
    90deg,
    var(--gold) 0%,
    var(--gold-light) 40%,
    #F5D98A 50%,
    var(--gold-light) 60%,
    var(--gold) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* ============================================================
   19. UTILITY CLASSES
   ============================================================ */
.text-gold    { color: var(--gold); }
.text-muted   { color: var(--muted); }
.text-bright  { color: var(--bright); }
.text-center  { text-align: center; }
.mt-auto      { margin-top: auto; }
.w-full       { width: 100%; }

/* ============================================================
   20. RESPONSIVE — TABLETS  (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .hero-section .container {
    flex-direction: column;
    gap: 48px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-subtitle {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-stat {
    align-items: center;
  }

  .hero-mockup {
    flex: none;
    max-width: 460px;
    width: 100%;
  }

  .signup-inner {
    flex-direction: column;
    gap: 40px;
  }

  .signup-copy .section-heading,
  .signup-copy .section-subtitle {
    text-align: center;
  }

  .signup-copy .section-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .signup-perks {
    align-items: center;
  }

  .signup-form-wrap {
    flex: none;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
  }
}

/* ============================================================
   21. RESPONSIVE — TABLET + MOBILE  (max-width: 980px)
   ============================================================ */
@media (max-width: 980px) {
  /* Скрываем меню и кнопки шапки на планшетах и телефонах */
  .header-nav { display: none; }
  .header-auth .btn-ghost,
  .header-right #btnMainCta,
  .header-right #btnAuth {
    display: none;
  }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
}

/* Полностью мобильный layout (≤768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  /* Header */
  .header-inner {
    padding: 0 16px;
    gap: 12px;
    flex-wrap: nowrap;
  }
  .logo { font-size: 18px; }
  .logo-icon { font-size: 18px; }
  /* Аватар на мобильном — компактнее */
  .header-user-info { gap: 6px; }
  .user-avatar { width: 30px; height: 30px; font-size: 12px; }
  .user-name { display: none; } /* На узких экранах прячем имя, оставляем только аватар + бургер */

  /* Hero */
  .hero-section {
    padding: 60px 0 72px;
  }

  .hero-heading {
    font-size: clamp(30px, 8vw, 44px);
  }

  .hero-subtitle {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
  }

  .hero-ctas .btn-lg {
    width: 100%;
    max-width: 340px;
    justify-content: center;
  }

  .hero-stats {
    gap: 0;
  }

  .hero-stat {
    padding: 0 12px;
  }

  /* Hide mockup on small mobile — too complex */
  .hero-mockup {
    display: none;
  }

  /* Trust bar */
  .trust-list {
    justify-content: center;
    gap: 12px;
  }

  .trust-item {
    font-size: 13px;
  }

  /* Features */
  .features-section {
    padding: 64px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section-header {
    margin-bottom: 36px;
  }

  /* How it works */
  .how-section {
    padding: 64px 0;
  }

  .step {
    gap: 16px;
    padding: 20px 0;
  }

  .step-number {
    font-size: 40px;
    width: 56px;
  }

  .step-icon {
    display: none;
  }

  /* Comparison */
  .comparison-section {
    padding: 64px 0;
  }

  .comparison-wrapper {
    border-radius: 10px;
  }

  /* Signup */
  .signup-section {
    padding: 64px 0;
  }

  .signup-card {
    padding: 24px 20px;
  }

  /* Footer */
  .site-footer {
    padding: 36px 0 24px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* Modal */
  .modal-box {
    padding: 24px 18px;
  }

  /* Toast */
  .toast {
    bottom: 16px;
    left: 16px;
    right: 16px;
    transform: translateX(0) translateY(80px);
    white-space: normal;
    text-align: center;
  }

  .toast.show {
    transform: translateX(0) translateY(0);
  }
}

/* ============================================================
   22. RESPONSIVE — VERY SMALL  (max-width: 400px)
   ============================================================ */
@media (max-width: 400px) {
  .hero-badge {
    font-size: 10px;
    padding: 5px 12px;
  }

  .hero-stat {
    padding: 0 8px;
  }

  .hero-stat strong {
    font-size: 14px;
  }

  .logo {
    font-size: 18px;
  }
}

/* ============================================================
   23. LARGE SCREENS  (min-width: 1400px)
   ============================================================ */
@media (min-width: 1400px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-section {
    padding: 90px 0 120px;
  }
}

/* ============================================================
   24. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .animate {
    opacity: 1;
    transform: none;
  }

  .text-shimmer {
    animation: none;
    -webkit-text-fill-color: var(--gold);
  }

  .success-spinner {
    animation: none;
    border-color: var(--green);
  }
}

/* ============================================================
   A11Y + MOBILE FIXES (P0 audit fixes)
   ============================================================ */

/* Skip-link для клавиатурной навигации */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  background: var(--gold);
  color: #1a1a2e;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 16px;
  outline: 3px solid var(--bright);
  outline-offset: 2px;
}

/* Глобальный focus-visible */
*:focus { outline: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--gold-dim);
  border-radius: 6px;
}

/* Убираем серую вспышку на iOS */
a, button { -webkit-tap-highlight-color: transparent; }

/* Mobile: 16px input чтобы iOS не зумил */
@media (max-width: 768px) {
  .form-input,
  .field-input,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="tel"],
  input[type="url"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* Touch-таргеты 44×44 — выровненные по центру */
.modal-close,
.hamburger,
.btn,
.footer-link {
  min-height: 44px;
}
.modal-close {
  min-width: 44px;
}
.footer-link {
  display: inline-flex;
  align-items: center;
}

/* Notch safe-area */
@supports (padding: env(safe-area-inset-top)) {
  .site-header { padding-top: env(safe-area-inset-top); }
  .site-footer { padding-bottom: env(safe-area-inset-bottom); }
}

/* Hero secondary link */
.hero-secondary-link {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0 8px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--gold-border);
  transition: color .15s ease, text-decoration-color .15s ease;
}
.hero-secondary-link:hover {
  color: var(--gold-light);
  text-decoration-color: var(--gold);
}

/* Модалка не уходит под мобильную клавиатуру */
@media (max-width: 768px) {
  .modal-overlay {
    align-items: flex-start;
    padding-top: 5vh;
  }
  .modal-box, .modal {
    max-height: calc(100dvh - 10vh);
    overflow-y: auto;
  }
}

/* sr-only — для скринридер-only текста */
.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;
}
