:root {
  --navy: #0d0f0f;
  --navy-2: #080909;
  --teal: #ef3c24;
  --teal-dark: #c9311d;
  --teal-pale: #f7e6dc;
  --blue-pale: #eeeae1;
  --ink: #0d0f0f;
  --muted: #626662;
  --line: #c7c3bb;
  --light: #eeeae1;
  --white: #fdfbf6;
  --amber: #a75f0c;
  --amber-pale: #fff5e8;
  --red: #a63c3c;
  --shadow: 0 22px 60px rgba(0, 0, 0, .22);
  --radius: 16px;
  --font: Manrope, Arial, ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--font); line-height: 1.55; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #f0ad4e; outline-offset: 3px; }
.skip-link { position: fixed; top: -80px; left: 16px; padding: 12px 16px; background: var(--navy); color: #fff; z-index: 1000; }
.skip-link:focus { top: 16px; }
.site-header { height: 92px; padding: 0 clamp(22px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.11); position: absolute; z-index: 20; width: 100%; background: transparent; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; line-height: 1; }
.brand img { width: 130px; height: 72px; object-fit: contain; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--teal); border-radius: 9px 2px 9px 2px; font-weight: 800; font-size: 14px; letter-spacing: -.04em; }
.brand strong, .brand em { display: block; font-style: normal; letter-spacing: -.03em; }
.brand strong { font-size: 16px; }
.brand em { color: var(--teal); font-weight: 750; font-size: 14px; margin-top: 3px; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.save-status { color: #a6aaa6; font-size: 12px; }
.site-return { color: #d3d5d0; font-size: 13px; text-decoration: none; }
.site-return:hover { color: #fff; }
.text-button, .back-button { border: 0; padding: 10px 0; color: var(--teal-dark); font-weight: 750; background: transparent; cursor: pointer; }

.landing { min-height: 880px; height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .86fr); gap: clamp(48px, 7vw, 110px); align-items: center; padding: 150px clamp(22px, 5vw, 76px) 70px; position: relative; overflow: hidden; background: radial-gradient(circle at 75% 50%,#1b2220 0,transparent 38%),linear-gradient(150deg,#080909 65%,#111514); }
.landing::before { content: ""; width: 560px; height: 560px; position: absolute; right: 7%; top: 24%; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.eyebrow { color: #c7cac4; text-transform: uppercase; font: 600 11px/1.2 'DM Mono', monospace; letter-spacing: .18em; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); display: inline-block; margin-right: 9px; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { margin: 22px 0 24px; color: #f1eee7; font-size: clamp(52px, 6.2vw, 94px); line-height: .94; letter-spacing: -.065em; max-width: 900px; font-weight: 500; }
.hero-copy h1 span { color: var(--teal); }
.hero-lead { color: #b7bbb6; font-size: clamp(17px, 1.8vw, 21px); max-width: 690px; }
.price-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 30px 0 24px; }
.price-line strong { color: #f1eee7; font-size: 20px; }
.price-line span { padding: 7px 11px; border-radius: 999px; border: 1px solid #555b57; color: #d3d5d0; font-size: 12px; font-weight: 650; }
.primary-button { min-height: 52px; border: 0; border-radius: 0; padding: 14px 20px; background: var(--teal); color: #fff; font-weight: 800; cursor: pointer; box-shadow: 0 10px 24px rgba(239,60,36,.2); transition: transform .16s ease, background .16s ease; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.primary-button:hover { background: var(--teal-dark); transform: translateY(-1px); }
.primary-button:disabled { background: #9bacaf; cursor: not-allowed; box-shadow: none; transform: none; }
.hero-button { min-width: 220px; }
.microcopy { color: #8b908c; font-size: 12px; margin-top: 13px; }
.hero-proof { position: relative; }
.proof-label { position: absolute; top: -20px; right: -10px; z-index: 2; color: var(--navy); background: #fff; box-shadow: 0 8px 30px rgba(23,50,77,.13); padding: 10px 14px; border-radius: 8px; font-size: 12px; font-weight: 800; transform: rotate(2deg); }
.cv-sample { background: #f1eee7; border: 1px solid #c6c2b9; border-top: 8px solid var(--teal); box-shadow: var(--shadow); padding: 34px; transform: rotate(-1deg); min-height: 490px; }
.sample-head { display: flex; align-items: center; gap: 18px; }
.sample-photo { width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(145deg, #cbdade, #f5f8f9); }
.cv-sample h2 { color: var(--navy); margin: 0; font-size: 23px; letter-spacing: .03em; }
.cv-sample h3 { color: var(--teal-dark); font-size: 10px; letter-spacing: .12em; margin: 24px 0 7px; }
.cv-sample p { font-size: 12px; line-height: 1.6; margin: 5px 0; }
.sample-contact { margin: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 10px; color: var(--muted); }
.sample-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; justify-content: center; }
.trust-row span { font-size: 12px; color: #a6aaa6; }
.trust-row b { color: var(--teal); }

.how-it-works { padding: 100px clamp(22px, 5vw, 76px); background: #eeeae1; color: #0d0f0f; }
.how-it-works > h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -.04em; margin: 10px 0 42px; }
.how-it-works .eyebrow { color: #555; }
.steps { max-width: 1180px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps article { border: 1px solid #aaa9a4; border-radius: 0; padding: 28px; background: transparent; }
.steps span { color: var(--teal); font-size: 12px; font-weight: 800; }
.steps h3 { font-size: 20px; margin: 28px 0 8px; }
.steps p { color: #626662; margin: 0; }

.builder { min-height: 100vh; grid-template-columns: 310px 1fr; background: var(--light); }
.builder:not([hidden]) { display: grid; }
.journey-panel { background: #080909; color: #fff; padding: 32px; display: flex; flex-direction: column; gap: 52px; position: sticky; height: 100vh; top: 0; }
.builder-brand { color: #fff; }
.progress-track { height: 7px; border-radius: 8px; background: rgba(255,255,255,.13); overflow: hidden; margin-top: 18px; }
.progress-track span { display: block; width: 3.85%; height: 100%; border-radius: inherit; background: #78bec1; transition: width .25s ease; }
#progressText { color: #b9c8d2; font-size: 13px; }
.phase-list { display: grid; gap: 3px; }
.phase-list span { color: #9bb0bd; border-left: 2px solid transparent; padding: 10px 13px; font-size: 14px; }
.phase-list span.active { color: #fff; border-left-color: #78bec1; background: rgba(255,255,255,.06); }
.privacy-note { margin-top: auto; padding: 16px; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.04); border-radius: 10px; }
.privacy-note strong { font-size: 13px; }
.privacy-note p { color: #aebfca; font-size: 11px; margin: 7px 0 0; }
.question-panel { min-width: 0; padding: 36px clamp(22px, 6vw, 82px) 80px; }
.question-card { max-width: 740px; margin: 40px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 5vw, 52px); box-shadow: 0 18px 48px rgba(23,50,77,.08); }
.back-button { display: inline-flex; margin-bottom: 24px; }
.step-kicker { color: var(--teal-dark); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.question-card h1 { color: var(--navy); font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.04em; margin: 10px 0 14px; }
.question-card .lead { color: var(--muted); font-size: 17px; margin-bottom: 28px; }
.field { display: grid; gap: 8px; margin: 19px 0; }
.field label, .field legend { color: var(--navy); font-weight: 760; font-size: 14px; }
.field small, .helper { color: var(--muted); font-size: 12px; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #b8c6ce; border-radius: 8px; padding: 14px 15px; color: var(--ink); background: #fff; min-height: 50px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(47,127,131,.12); outline: none; }
.choice-grid { display: grid; gap: 12px; margin: 24px 0; }
.choice { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; gap: 13px; align-items: flex-start; cursor: pointer; background: #fff; }
.choice:hover { border-color: #9db8ba; background: #fbfdfd; }
.choice:has(input:checked) { border-color: var(--teal); background: var(--teal-pale); box-shadow: 0 0 0 1px var(--teal); }
.choice input { width: 20px; height: 20px; accent-color: var(--teal); margin-top: 2px; flex: 0 0 auto; }
.choice strong { color: var(--navy); display: block; }
.choice span span { color: var(--muted); font-size: 13px; display: block; margin-top: 3px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.voice-control { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.voice-button { border: 1px solid var(--teal); background: var(--teal-pale); color: var(--teal-dark); border-radius: 999px; min-height: 46px; padding: 10px 16px; font-weight: 800; cursor: pointer; }
.voice-button.recording { color: #fff; background: var(--red); border-color: var(--red); }
.mic-icon { display: inline-grid; width: 21px; height: 21px; place-items: center; border: 2px solid currentColor; border-radius: 50%; margin-right: 6px; font-size: 0; }
.voice-status { color: var(--muted); font-size: 12px; }
.info-box, .warning-box, .confirmed-box { border-radius: 10px; padding: 15px 17px; margin: 18px 0; font-size: 13px; }
.info-box { background: var(--blue-pale); border: 1px solid #cedbe4; }
.warning-box { background: var(--amber-pale); color: #70420d; border: 1px solid #e8c99d; }
.confirmed-box { background: var(--teal-pale); border: 1px solid #c7dcdd; }
.step-actions { margin-top: 30px; display: flex; justify-content: flex-end; }
.step-actions .primary-button { min-width: 160px; }
.form-error { margin-top: 18px; padding: 12px 14px; color: #7c2525; background: #fff0f0; border: 1px solid #e3aaaa; border-radius: 8px; font-weight: 650; }
.mobile-progress { max-width: 740px; margin: 0 auto; display: none; justify-content: space-between; color: var(--muted); font-size: 12px; }
.tag-grid { display: flex; flex-wrap: wrap; gap: 9px; margin: 16px 0; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.tag input { accent-color: var(--teal); }
.cv-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.cv-option { border: 1px solid var(--line); border-radius: 12px; padding: 13px; cursor: pointer; }
.cv-option:has(input:checked) { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); background: var(--teal-pale); }
.cv-option input { accent-color: var(--teal); margin-top: 3px; }
.design-choice { display: flex; gap: 8px; align-items: flex-start; }
.design-choice strong, .design-choice small { display: block; }
.design-choice small { color: var(--muted); font-size: 11px; line-height: 1.35; margin-top: 3px; }
.cv-thumb { height: 178px; background: #fff; border: 1px solid #aeb8bd; margin-bottom: 12px; padding: 12px; overflow: hidden; color: #26333d; font-family: Arial, sans-serif; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.cv-thumb b { display: block; font-size: 10px; line-height: 1.1; }
.cv-thumb em { display: block; font-size: 6px; font-style: normal; margin-top: 3px; }
.thumb-ats-head { border-bottom: 3px solid #26333d; padding-bottom: 8px; margin-bottom: 12px; }
.thumb-lines { height: 36px; margin-top: 9px; background: repeating-linear-gradient(#bac4c8 0 2px,transparent 2px 7px); width: 82%; }
.thumb-lines.wide { width: 100%; }
.thumb-lines.short { width: 62%; }
.cv-thumb.design-modern { padding: 0; }
.thumb-modern-head { background: #172c3d; color: #fff; padding: 15px 12px; height: 54px; }
.cv-thumb.design-personal { border-top: 8px solid #ef3c24; }
.thumb-personal-head { border-bottom: 3px solid #ef3c24; padding-bottom: 10px; margin-bottom: 12px; }
.cv-preview-wrap { background: #e5eaed; padding: 22px; border-radius: 12px; overflow: auto; margin-top: 20px; }
.generated-cv { width: 210mm; min-height: 297mm; max-width: 100%; margin: 0 auto; background: #fff; color: #26333d; padding: 17mm; box-shadow: 0 8px 24px rgba(23,50,77,.12); font-family: Arial, sans-serif; transform-origin: top center; }
.generated-cv.one-page { min-height: 0; }
.generated-cv .cv-header { border-bottom: 3px solid var(--navy); padding-bottom: 12px; margin-bottom: 14px; }
.generated-cv .cv-header h1 { font-size: 26px; letter-spacing: .03em; margin: 0; }
.generated-cv .cv-header p { margin: 4px 0; font-size: 11px; }
.generated-cv h2 { color: var(--teal-dark); font-size: 11px; letter-spacing: .08em; margin: 15px 0 6px; text-transform: uppercase; }
.generated-cv p, .generated-cv li { font-size: 10px; line-height: 1.45; }
.generated-cv ul { padding-left: 18px; }
.generated-cv.design-modern .cv-header { background: var(--navy); color: #fff; padding: 16px; border: 0; }
.generated-cv.design-personal { border-top: 12px solid var(--teal); }
.generated-cv.design-personal .cv-header { border-color: var(--teal); }
.watermark { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%) rotate(-28deg); font-size: 48px; color: rgba(23,50,77,.08); font-weight: 900; pointer-events: none; white-space: nowrap; }
.preview-shell { position: relative; }
.payment-box { border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-top: 22px; }
.payment-box .price { color: var(--navy); font-size: 34px; font-weight: 850; }
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.download-grid button, .download-grid a { min-height: 54px; border: 1px solid var(--teal); background: #fff; color: var(--teal-dark); border-radius: 9px; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; padding: 10px; }
.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 55px clamp(22px, 5vw, 76px) 28px; border-top: 1px solid #292d2c; background: #070808; color: #a6aaa6; font-size: 13px; }
.site-footer strong, .site-footer span { display: block; }
.site-footer strong { color: #f1eee7; }
.footer-logo { width: 170px; height: 70px; object-fit: contain; object-position: left center; display: block; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: #b2b5b0; }
.site-footer a:hover { color: var(--teal); }
.site-footer p { grid-column: 1 / -1; margin: 0; font-size: 11px; }
.legal-page { max-width: 780px; margin: 0 auto; padding: 72px 24px 110px; }
.legal-page h1 { color: var(--navy); font-size: clamp(38px, 6vw, 58px); letter-spacing: -.045em; line-height: 1.05; margin: 12px 0 20px; }
.legal-page h2 { color: var(--navy); margin-top: 34px; font-size: 20px; }
.legal-page .lead { color: var(--muted); font-size: 18px; }
.legal-page a:not(.primary-button) { color: var(--teal-dark); }
.choice.danger { width: 100%; color: var(--red); text-align: left; }
.choice.danger strong { color: var(--red); }
.generated-cv hr, .confirmed-box hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }

@media (max-width: 900px) {
  .landing { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-proof { max-width: 580px; }
  .steps { grid-template-columns: 1fr; }
  .builder { grid-template-columns: 1fr; }
  .journey-panel { display: none; }
  .question-panel { padding-top: 18px; }
  .mobile-progress { display: flex; }
  .question-card { margin-top: 12px; }
}

@media (max-width: 620px) {
  .site-header { height: 75px; padding: 0 17px; }
  .brand img { width: 105px; height: 62px; }
  .site-return { display: none; }
  .save-status { display: none; }
  .landing { min-height: auto; padding: 42px 18px 64px; gap: 58px; }
  .hero-copy h1 { font-size: 43px; }
  .hero-lead { font-size: 17px; }
  .hero-button { width: 100%; }
  .cv-sample { padding: 22px; min-height: 420px; }
  .sample-grid { grid-template-columns: 1fr; gap: 0; }
  .how-it-works { padding: 66px 18px; }
  .question-panel { padding: 16px 12px 60px; }
  .question-card { padding: 23px 18px; border-radius: 13px; }
  .question-card h1 { font-size: 31px; }
  .field-row, .download-grid { grid-template-columns: 1fr; }
  .cv-options { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 14px; }
  .cv-option { min-width: 82%; scroll-snap-align: start; }
  .step-actions .primary-button { width: 100%; }
  .voice-control { align-items: flex-start; flex-direction: column; }
  .cv-preview-wrap { padding: 9px; }
  .generated-cv { padding: 10mm; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

@media print {
  body * { visibility: hidden !important; }
  #cvPreview, #cvPreview * { visibility: visible !important; }
  #cvPreview { position: absolute; left: 0; top: 0; width: 210mm; margin: 0; box-shadow: none; padding: 14mm; }
  .watermark { display: none !important; }
  @page { size: A4; margin: 0; }
}
