:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f0f4ff;
  --text: #182230;
  --muted: #5d6b82;
  --line: #dbe3ef;
  --primary: #2251ff;
  --primary-dark: #1637b8;
  --dark: #0f172a;
  --gold: #efb100;
  --gold-dark: #c28d00;
  --success: #10b981;
  --radius: 18px;
  --shadow: 0 20px 45px rgba(19, 36, 69, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.small-container { width: min(820px, calc(100% - 32px)); }
.center { text-align: center; }
.mt-24 { margin-top: 24px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(219, 227, 239, 0.8);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
}
.logo {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--dark);
}
.logo span { color: var(--primary); }
.nav {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.nav a { color: var(--muted); font-weight: 600; }
.nav a:hover { color: var(--primary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: .25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-small { min-height: 42px; padding: 0 18px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 20px rgba(34,81,255,.2); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); border-color: rgba(34,81,255,.25); }
.btn-outline:hover { background: rgba(34,81,255,.08); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #050b17; }
.btn-gold { background: var(--gold); color: #231700; box-shadow: 0 10px 20px rgba(239,177,0,.25); }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { background: rgba(255,255,255,.08); }

.hero {
  padding: 64px 0 54px;
  background:
    radial-gradient(circle at top right, rgba(34,81,255,.14), transparent 30%),
    linear-gradient(180deg, #fff 0%, #f4f7fe 100%);
}
.hero-premium {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #223772 100%);
  color: #fff;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 34px;
  align-items: center;
}
.premium-grid { align-items: stretch; }
.badge, .mini-badge, .badge-gold {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
}
.badge { background: rgba(34,81,255,.1); color: var(--primary); }
.badge-gold { background: rgba(239,177,0,.18); color: #ffe28a; }
.mini-badge { background: rgba(239,177,0,.14); color: #a06e00; }
.hero h1, .section-heading h1, .section-heading h2 {
  margin: 14px 0 16px;
  line-height: 1.1;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.7rem); }
.hero-text, .lead { font-size: 1.08rem; color: var(--muted); max-width: 650px; }
.hero-premium .hero-text, .hero-premium p, .hero-premium h1, .hero-premium h2 { color: #fff; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.hero-points { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 20px; color: var(--muted); font-weight: 700; }

.hero-card, .premium-card, .compare-card, .feature-card, .template-card, .gallery-card, .access-box, .editor-panel, .preview-panel, .faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.premium-card {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  padding: 28px;
}
.premium-card h2 { margin-top: 0; }
.list-light li { color: #fff; }
.price-box {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  width: fit-content;
}
.price-label { display: block; font-size: .85rem; opacity: .9; }
.price { font-size: 2.4rem; font-weight: 800; line-height: 1; margin: 10px 0; }

.section { padding: 62px 0; }
.section-soft { background: linear-gradient(180deg, #eef4ff 0%, #f7f9ff 100%); }
.section-heading { margin-bottom: 28px; }
.section-heading.center { text-align: center; }
.eyebrow { font-size: .9rem; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: .08em; }
.section-heading p { color: var(--muted); max-width: 760px; }
.section-heading.center p { margin-inline: auto; }

.steps-grid, .templates-grid, .comparison-grid {
  display: grid;
  gap: 22px;
}
.steps-grid { grid-template-columns: repeat(4, 1fr); }
.templates-grid { grid-template-columns: repeat(3, 1fr); }
.comparison-grid { grid-template-columns: repeat(2, 1fr); align-items: stretch; }
.feature-card, .template-card, .compare-card { padding: 26px; }
.feature-card h3, .template-card h3, .compare-card h2 { margin: 12px 0 10px; }
.feature-card p, .template-card p, .compare-card p { color: var(--muted); }
.icon-circle {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(34,81,255,.1); color: var(--primary); font-weight: 800;
}
.template-card:hover { transform: translateY(-4px); }
.template-preview {
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f7faff, #eef4ff);
  border: 1px solid rgba(34,81,255,.08);
}
.mini-sheet {
  background: white;
  border-radius: 12px;
  min-height: 190px;
  padding: 18px;
  border: 1px solid #e2e8f0;
}
.mini-sheet.classic { background: #fffefa; }
.mini-sheet.executive { background: #f8fbff; border-top: 4px solid #0f172a; }
.line { height: 10px; border-radius: 999px; background: #d9e4f7; margin-bottom: 10px; }
.line.lg { height: 16px; width: 72%; }
.line.sm { width: 45%; }
.line.half { width: 56%; }

.templates-gallery { display: grid; gap: 26px; }
.gallery-card {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 28px;
  padding: 22px;
}
.gallery-preview { padding: 18px; }
.gallery-content { display: flex; flex-direction: column; justify-content: center; }
.gallery-content h2 { margin-top: 0; }
.list-check { list-style: none; padding: 0; margin: 18px 0 22px; }
.list-check li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.list-check li::before { content: '✔'; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 800; }

.template { padding: 18px; border-radius: 24px; }
.template-modern { background: linear-gradient(180deg, #ffffff, #eff4ff); }
.template-classic { background: linear-gradient(180deg, #fffef8, #f9f7ef); }
.template-executive { background: linear-gradient(180deg, #ffffff, #eef5fc); }
.resume-sheet {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #dbe3ef;
  padding: 28px;
  color: #1c2430;
}
.resume-sheet.compact { min-height: 300px; }
.resume-sheet.classic { border-top: 6px solid #bca15b; }
.resume-sheet.executive { border-top: 8px solid #0f172a; }
.resume-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid #e6edf7;
}
.resume-top h2 { margin: 0; font-size: 1.7rem; }
.resume-top p { margin: 6px 0 0; color: #52627b; }
.resume-contact { display: flex; flex-direction: column; gap: 4px; color: #52627b; font-size: .93rem; text-align: right; }
.resume-section { margin-bottom: 16px; }
.resume-section h3 {
  margin: 0 0 8px;
  font-size: .98rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #1f4be1;
}
.template-classic .resume-section h3 { color: #8a6c17; }
.template-executive .resume-section h3 { color: #0f172a; }
.resume-section p { margin: 0; color: #2b3647; }
.resume-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.split-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px 30px;
}
.split-banner h2 { margin: 8px 0 12px; }
.split-banner p { color: var(--muted); margin: 0; }
.split-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.site-footer {
  background: var(--dark);
  color: #dbe5f5;
  padding: 44px 0;
  margin-top: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .9fr;
  gap: 28px;
}
.site-footer h3, .site-footer h4 { color: #fff; margin-top: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #dbe5f5; }

.editor-page { padding-top: 34px; }
.editor-layout {
  display: grid;
  grid-template-columns: minmax(320px, 530px) 1fr;
  gap: 24px;
  align-items: start;
}
.editor-panel, .preview-panel { padding: 26px; position: sticky; top: 96px; }
.editor-panel { position: relative; top: 0; }
.toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.toolbar label, .field label {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: #2b3647;
}
input, select, textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #cfd8e5;
  border-radius: 14px;
  background: #fff;
  padding: 14px 15px;
  font: inherit;
  color: var(--text);
}
textarea { min-height: 112px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(34,81,255,.5);
  box-shadow: 0 0 0 4px rgba(34,81,255,.08);
}
.suggestion-box {
  background: #eff4ff;
  border: 1px solid rgba(34,81,255,.14);
  color: #2447a7;
  padding: 14px 16px;
  border-radius: 16px;
  margin-bottom: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field.full { grid-column: 1 / -1; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.preview-top {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px;
}
.preview-top h2 { margin: 0; }
.preview-badge {
  background: rgba(34,81,255,.1);
  color: var(--primary);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  text-transform: capitalize;
}

.faq-list { display: grid; gap: 14px; }
.faq-list details { padding: 18px 20px; }
.faq-list summary { font-weight: 800; cursor: pointer; }
.faq-list p { color: var(--muted); margin: 12px 0 0; }

.access-box, .info-note { padding: 26px; }
.info-note {
  margin-top: 20px;
  background: #fff9e9;
  border: 1px solid #f1dfaa;
  border-radius: 18px;
}
.center-actions { justify-content: center; }

@media print {
  body { background: #fff; }
  .site-header, .site-footer, .editor-panel, .preview-top { display: none !important; }
  .editor-layout { display: block; }
  .preview-panel {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0;
  }
  .template, .resume-sheet { padding: 0; border: 0; box-shadow: none; background: #fff; }
}

@media (max-width: 1024px) {
  .hero-grid, .gallery-card, .editor-layout, .footer-grid, .steps-grid, .templates-grid, .comparison-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-grid > :first-child, .gallery-card > :last-child { order: 1; }
  .hero-grid > :last-child, .gallery-card > :first-child { order: 2; }
  .editor-layout { grid-template-columns: 1fr; }
  .preview-panel { position: relative; top: 0; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .templates-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .hero, .section { padding: 46px 0; }
  .hero-grid, .steps-grid, .templates-grid, .comparison-grid, .footer-grid, .gallery-card, .toolbar, .form-grid, .resume-columns {
    grid-template-columns: 1fr;
  }
  .split-banner, .hero-actions, .split-actions, .editor-actions { flex-direction: column; align-items: stretch; }
  .nav-wrap { min-height: 74px; }
  .resume-top { flex-direction: column; }
  .resume-contact { text-align: left; }
  .preview-panel, .editor-panel, .feature-card, .template-card, .compare-card, .gallery-card { padding: 18px; }
}
