[hidden] { display: none !important; }

:root {
  --navy: #0b1530;
  --navy-2: #13204a;
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #5b6478;
  --line: #e3e8f0;
  --primary: #2f5bea;
  --primary-dark: #2449c7;
  --primary-soft: #eef2ff;
  --gold: #f5b942;
  --danger: #dc2626;
  --ok: #16a34a;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 12px 32px rgba(15,23,42,.07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

/* ---------- buttons ---------- */
.btn { border: 0; border-radius: 12px; padding: 13px 22px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(47,91,234,.28); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .55; cursor: wait; transform: none; }
.btn-ghost { background: #eef1f6; color: var(--text); }
.btn-ghost:hover { background: #e2e7ef; }
.btn-light { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-light:hover { background: rgba(255,255,255,.18); }
.btn-gold { background: var(--gold); color: #1a1405; box-shadow: 0 8px 22px rgba(245,185,66,.35); }
.btn-gold:hover { background: #f7c45e; transform: translateY(-1px); }
.btn-small { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- top bar ---------- */
.topbar { background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-in { max-width: 1140px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 24px; }
.brand { font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 8px; letter-spacing: -.3px; }
.brand-mark { background: linear-gradient(135deg, var(--primary), #6c8cff); color: #fff; border-radius: 9px; padding: 3px 8px; font-size: 14px; }
.topnav { display: flex; gap: 22px; margin-left: 12px; }
.topnav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.topnav a:hover { color: var(--text); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.lang-switch button { border: 0; background: none; padding: 6px 11px; cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.lang-switch button.active { background: var(--navy); color: #fff; }
body.in-wizard .topnav, body.in-wizard .top-cta { display: none; }

/* ---------- hero ---------- */
.hero { background: radial-gradient(1100px 500px at 85% -10%, #2b46a8 0%, transparent 60%), radial-gradient(800px 400px at -10% 110%, #1b2c66 0%, transparent 60%), var(--navy); color: #fff; overflow: hidden; }
.hero-in { max-width: 1140px; margin: 0 auto; padding: 64px 16px 72px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #c9d4ff; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.2); }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -1.2px; margin: 18px 0 16px; font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #ffd27a, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 17.5px; color: #c3cbe0; max-width: 540px; margin: 0 0 26px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.price-note { color: #9aa6c4; font-size: 14px; margin-top: 14px; }
.price-note strong { color: #fff; }
.trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #dbe2f5; font-size: 14px; font-weight: 500; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: '✓'; width: 20px; height: 20px; border-radius: 50%; background: rgba(74,222,128,.18); color: #4ade80; display: grid; place-items: center; font-size: 12px; font-weight: 800; }

.hero-art { position: relative; height: 470px; }
.hero-art img { position: absolute; width: 270px; aspect-ratio: 794 / 1123; border-radius: 10px; box-shadow: 0 30px 60px rgba(0,0,0,.45); background: #fff; }
.hero-art img:nth-child(1) { left: 2%; top: 60px; transform: rotate(-9deg); opacity: .9; }
.hero-art img:nth-child(2) { right: 2%; top: 50px; transform: rotate(8deg); opacity: .9; }
.hero-art img:nth-child(3) { left: 50%; top: 0; transform: translateX(-50%); z-index: 2; width: 300px; }

/* ---------- sections ---------- */
.section { max-width: 1140px; margin: 0 auto; padding: 76px 16px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.8px; margin: 0 0 10px; line-height: 1.15; }
.section-head p { color: var(--muted); margin: 0; font-size: 16.5px; }
.eyebrow { color: var(--primary); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how-card { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: relative; }
.how-num { width: 42px; height: 42px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-weight: 800; display: grid; place-items: center; font-size: 18px; margin-bottom: 14px; }
.how-card h3 { margin: 0 0 6px; font-size: 18px; }
.how-card p { margin: 0; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.g-item { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 12px; text-align: center; transition: transform .2s, box-shadow .2s; }
.g-item:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(15,23,42,.06), 0 22px 44px rgba(15,23,42,.12); }
.g-thumb { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.g-thumb img { width: 100%; display: block; aspect-ratio: 794 / 1123; object-fit: cover; background: #f1f5f9; }
.g-thumb .btn { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 8px); opacity: 0; transition: opacity .2s, transform .2s; }
.g-item:hover .g-thumb .btn, .g-item:focus-within .g-thumb .btn { opacity: 1; transform: translate(-50%, 0); }
.g-item h3 { font-size: 15.5px; margin: 12px 0 2px; }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: #fff; border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

.cta-band { max-width: 1140px; margin: 76px auto 0; padding: 0 16px; }
.cta-in { background: linear-gradient(120deg, var(--navy), #1f3a99); color: #fff; border-radius: 22px; padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-in h2 { margin: 0 0 6px; font-size: 28px; letter-spacing: -.5px; }
.cta-in p { margin: 0; color: #c3cbe0; }

.footer { max-width: 1140px; margin: 0 auto; padding: 40px 16px 34px; color: var(--muted); font-size: 13.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- wizard ---------- */
.shell { max-width: 900px; margin: 0 auto; padding: 26px 16px 20px; }
.stepper { list-style: none; padding: 0; margin: 0 0 18px; display: flex; gap: 6px; }
.stepper li { flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.stepper li::before { content: ''; height: 5px; border-radius: 99px; background: var(--line); }
.stepper li.done::before { background: var(--primary); }
.stepper li.current::before { background: linear-gradient(90deg, var(--primary) 55%, #c7d2fe 55%); }
.stepper li.current { color: var(--text); }
.stepper li button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.stepper li button:disabled { cursor: default; }
.stepper .n { width: 20px; height: 20px; border-radius: 50%; background: var(--line); color: var(--muted); display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; }
.stepper li.done .n { background: var(--primary); color: #fff; }
.stepper li.current .n { background: var(--navy); color: #fff; }

.card { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 30px; }
.step-label { color: var(--primary); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
h2.step-title { margin: 0 0 20px; font-size: 24px; letter-spacing: -.4px; }
.hint { color: var(--muted); font-size: 13px; margin: 5px 0 0; }

/* forms */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field label .opt, .opt { color: var(--muted); font-weight: 400; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=date],
.field input[type=month], .field select, .field textarea {
  width: 100%; border: 1px solid #cfd6e3; border-radius: 11px; padding: 11px 13px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(47,91,234,.14); }
.field input:disabled { background: #f1f5f9; color: var(--muted); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-top: 8px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--primary); }

.entry { border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 14px; background: #fcfdff; }
.entry-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.entry-num { font-weight: 800; color: var(--primary); font-size: 13px; background: var(--primary-soft); border-radius: 8px; padding: 2px 9px; }
.link-btn { border: 0; background: none; color: var(--danger); cursor: pointer; font-size: 13px; font-weight: 600; padding: 4px; }
.add-btn { border: 1.5px dashed #a5b8f5; background: var(--primary-soft); color: var(--primary-dark); border-radius: 12px; padding: 12px; width: 100%; cursor: pointer; font-weight: 700; }
.add-btn:hover { background: #e0e7ff; }
.lang-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; margin-bottom: 10px; }
.cert-row { display: grid; grid-template-columns: 1fr 110px auto; gap: 10px; align-items: end; margin-bottom: 10px; }
.subhead { font-size: 16px; margin: 26px 0 10px; }

.photo-box { display: flex; align-items: center; gap: 18px; }
.photo-prev { width: 96px; height: 96px; border-radius: 50%; background: #e2e8f0 center/cover no-repeat; flex: none; display: grid; place-items: center; color: #94a3b8; box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--line); }
.photo-prev svg { width: 46px; height: 46px; }
.photo-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* template picker */
.tpl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tpl { border: 2px solid var(--line); border-radius: 14px; padding: 8px; background: #fff; cursor: pointer; text-align: center; transition: border-color .15s, transform .15s, box-shadow .15s; position: relative; }
.tpl:hover { transform: translateY(-2px); }
.tpl.selected { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(47,91,234,.15); }
.tpl.selected::after { content: '✓'; position: absolute; top: -9px; right: -9px; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; box-shadow: 0 0 0 3px #fff; }
.tpl img { width: 100%; aspect-ratio: 794 / 1123; object-fit: cover; border-radius: 7px; background: #f1f5f9; display: block; border: 1px solid var(--line); }
.tpl span { display: block; font-weight: 700; margin-top: 8px; font-size: 13.5px; }
.seg-control { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 4px; background: #fff; flex-wrap: wrap; }
.seg-control button { border: 0; background: none; padding: 9px 16px; cursor: pointer; font-weight: 600; }
.seg-control button.active { background: var(--navy); color: #fff; }

/* preview */
.preview-wrap { display: grid; grid-template-columns: 1fr 250px; gap: 24px; align-items: start; }
.preview-img { position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #f8fafc; min-height: 420px; box-shadow: 0 10px 30px rgba(15,23,42,.08); }
.preview-img img { width: 100%; display: block; user-select: none; -webkit-user-drag: none; }
.preview-side { position: sticky; top: 84px; }
.preview-note { background: #fff7e6; color: #8a5a00; border: 1px solid #fde3a7; border-radius: 12px; padding: 11px 13px; font-size: 13px; margin-bottom: 14px; }
.mini-tpls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 8px 0 16px; }
.mini-tpls button { border: 2px solid var(--line); border-radius: 6px; padding: 0; background: none; cursor: pointer; overflow: hidden; }
.mini-tpls button.selected { border-color: var(--primary); }
.mini-tpls img { width: 100%; display: block; aspect-ratio: 794 / 1123; object-fit: cover; }
.loading { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(248,250,252,.88); gap: 10px; align-content: center; color: var(--muted); font-weight: 600; }
.spinner { width: 38px; height: 38px; border: 4px solid #cbd5e1; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 12.5px; margin-top: 8px; }

.success { text-align: center; padding: 30px 10px; }
.success .tick { width: 70px; height: 70px; border-radius: 50%; background: #dcfce7; color: var(--ok); display: grid; place-items: center; margin: 0 auto 14px; font-size: 36px; font-weight: 800; }
.success h3 { margin: 0 0 20px; font-size: 22px; }
.success .btn { margin: 4px; }

.nav-buttons { display: flex; justify-content: space-between; margin-top: 28px; gap: 12px; }
#nextBtn { margin-left: auto; }
.error { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; border-radius: 12px; padding: 11px 13px; margin-top: 16px; font-weight: 600; font-size: 14px; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(11,21,48,.6); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal-box { background: #fff; border-radius: 20px; padding: 26px; max-width: 410px; width: 100%; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.modal-box h3 { margin: 0 0 14px; font-size: 20px; }
.pay-amount { display: flex; justify-content: space-between; background: #f5f7fb; border-radius: 12px; padding: 13px 15px; font-size: 17px; }
.demo-note { background: #fff7e6; color: #8a5a00; border-radius: 12px; padding: 10px 13px; font-size: 13px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; padding: 44px 16px 52px; }
  .hero-art { height: 360px; max-width: 520px; width: 100%; margin: 0 auto; }
  .hero-art img { width: 200px; }
  .hero-art img:nth-child(3) { width: 228px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .topnav { display: none; }
}
@media (max-width: 720px) {
  .card { padding: 20px 16px; border-radius: 16px; }
  .grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .tpl-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .preview-wrap { grid-template-columns: 1fr; }
  .preview-side { position: static; }
  .lang-row { grid-template-columns: 1fr 1fr; }
  .lang-row .link-btn, .cert-row .link-btn { grid-column: 1 / -1; justify-self: end; }
  .cert-row { grid-template-columns: 1fr 90px; }
  .nav-buttons .btn { flex: 1; }
  .stepper li .lbl { display: none; }
  .stepper li button { justify-content: center; }
  .top-cta { display: none; }
  .section { padding-top: 56px; }
  .cta-in { padding: 30px 22px; }
  .hero-art { height: 300px; }
  .hero-art img { width: 160px; }
  .hero-art img:nth-child(3) { width: 186px; }
  .g-thumb .btn { display: none; }
}
@media (max-width: 420px) {
  .gallery { gap: 12px; }
  .g-item { padding: 8px; }
}
