/* SmartEd Translations — site styles
   Brand colors come from the final logo (E4): deep purple, periwinkle, lavender, sky. */

:root {
  color-scheme: dark;
  --bg: #12001c;
  --bg-2: #1b0028;
  --bg-3: #23103a;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-2: rgba(255, 255, 255, 0.07);
  --line: rgba(189, 149, 255, 0.16);
  --line-2: rgba(189, 149, 255, 0.34);
  --text: #f6f1ff;
  --text-2: #d3c8ea;
  --text-3: #ab9dc7;
  --periwinkle: #847eff;
  --lavender: #bd95ff;
  --sky: #75c7ff;
  --navy: #101a3b;
  --ok: #7be0b0;
  --warn: #ffd27a;
  --danger: #ff8fa3;
  --grad: linear-gradient(120deg, #847eff 0%, #bd95ff 52%, #75c7ff 100%);
  --grad-soft: linear-gradient(135deg, rgba(132, 126, 255, 0.18), rgba(117, 199, 255, 0.10));
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--sky); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #a6dbff; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--text-2); }
strong { color: var(--text); font-weight: 600; }
ul { margin: 0; padding: 0; }

.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: 12px; top: -48px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--narrow { width: min(920px, 100% - 2 * var(--gutter)); }
.section { padding: clamp(56px, 7vw, 96px) 0; position: relative; }
.section--tint { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 22%, var(--bg-2) 78%, var(--bg) 100%); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--lavender); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad); }
.center .eyebrow { justify-content: center; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 14px; --pad-x: 24px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x); border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--grad); color: #14001f; box-shadow: 0 10px 30px -10px rgba(132, 126, 255, .7); }
.btn-primary:hover { color: #14001f; transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(132, 126, 255, .85); }
.btn-ghost { background: rgba(255, 255, 255, .03); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, .08); border-color: var(--lavender); }
.btn-sm { --pad-y: 10px; --pad-x: 18px; font-size: .92rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 0, 28, .72);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, background-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(18, 0, 28, .9); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  color: var(--text-2); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: 8px 12px; border-radius: 10px;
}
.nav a:not(.btn):hover, .nav a:not(.btn)[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav .btn { margin-left: 10px; }
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--line-2); color: var(--text);
  border-radius: 12px; width: 46px; height: 46px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px var(--gutter) 22px; background: #14001f; border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 12px 14px; font-size: 1.02rem; }
  .nav .btn { margin: 8px 0 0; }
  .brand img { height: 34px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 112px); }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(10px); pointer-events: none; z-index: 0;
}
.hero::before { width: 680px; height: 680px; left: -240px; top: -260px; background: radial-gradient(circle, rgba(132, 126, 255, .32), transparent 65%); }
.hero::after { width: 620px; height: 620px; right: -220px; bottom: -280px; background: radial-gradient(circle, rgba(117, 199, 255, .22), transparent 65%); }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 600px; }
.hero-tagline { font-weight: 600; color: var(--text); font-size: 1.08rem; margin: 6px 0 30px; }
.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 480px; width: 100%; justify-self: center; }
.orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--line-2); }
.orbit--inner { inset: 18%; border-style: solid; border-color: var(--line); }
.hero-mark {
  position: absolute; inset: 30%; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(132, 126, 255, .25), rgba(27, 0, 40, .9) 70%);
  box-shadow: 0 0 80px -10px rgba(132, 126, 255, .55), inset 0 0 0 1px var(--line-2);
}
.hero-mark img { width: 72%; height: auto; }
.lang-chip {
  position: absolute;
  padding: 8px 14px; border-radius: 999px; font-size: .86rem; font-weight: 600; white-space: nowrap;
  background: rgba(35, 16, 58, .92); border: 1px solid var(--line-2); color: var(--text);
  box-shadow: var(--shadow); animation: bob 6s ease-in-out infinite;
}
.lang-chip:nth-child(2n) { animation-delay: -2s; }
.lang-chip:nth-child(3n) { animation-delay: -4s; }
.lang-chip span { color: var(--lavender); font-weight: 500; margin-left: 6px; }
.c1 { left: 50%; top: 1%; translate: -50% 0; }
.c2 { right: 0; top: 17%; }
.c3 { right: -2%; top: 46%; }
.c4 { right: 4%; top: 76%; }
.c5 { left: 50%; bottom: 1%; translate: -50% 0; }
.c6 { left: 4%; top: 76%; }
.c7 { left: -2%; top: 46%; }
.c8 { left: 0; top: 17%; }
@media (max-width: 480px) { .c3, .c7 { display: none; } .c2, .c8 { top: 14%; } }
@keyframes bob { 0%, 100% { margin-top: 0; } 50% { margin-top: -8px; } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 360px; order: -1; }
  .lang-chip { font-size: .78rem; padding: 6px 10px; }
}
@media (max-width: 420px) { .hero-visual { max-width: 300px; } }

/* ---------- Generic cards ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 30px); transition: border-color .2s ease, transform .2s ease, background-color .2s ease;
}
.card:hover { border-color: var(--line-2); background: var(--panel-2); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; }
.icon-badge {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--grad-soft); border: 1px solid var(--line-2); color: var(--lavender);
}
.icon-badge svg { width: 24px; height: 24px; }
.card--cta { background: var(--grad-soft); border-color: var(--line-2); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }

/* ---------- Quote band ---------- */
.band {
  position: relative; border-radius: calc(var(--radius) + 6px); padding: 1px; background: var(--grad);
  box-shadow: 0 30px 80px -40px rgba(132, 126, 255, .8);
}
.band-inner {
  border-radius: calc(var(--radius) + 5px); background: linear-gradient(135deg, #1f0a33, #160124 60%, #0f1736);
  padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 4vw, 48px); align-items: center;
}
.band h2 { margin-bottom: 14px; }
.privacy-note {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); margin: 0;
}
.privacy-note svg { width: 26px; height: 26px; flex: none; color: var(--sky); margin-top: 2px; }
.privacy-note p { margin: 0; font-size: .95rem; }
.band-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
@media (max-width: 860px) { .band-inner { grid-template-columns: 1fr; } }

/* ---------- About / why ---------- */
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-copy p { font-size: 1.04rem; }
.why-list { display: grid; gap: 14px; list-style: none; }
.why-item { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px; border-radius: var(--radius-sm); background: var(--panel); border: 1px solid var(--line); }
.why-item .icon-badge { width: 44px; height: 44px; margin: 0; border-radius: 12px; }
.why-item h3 { font-size: 1.02rem; margin: 0 0 4px; }
.why-item p { margin: 0; font-size: .95rem; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Technology ---------- */
.tech-step { counter-increment: step; }
.tech-steps { counter-reset: step; }
.tech-step .step-num {
  font-size: .8rem; font-weight: 700; letter-spacing: .18em; color: var(--sky); margin-bottom: 14px; display: block;
}
.tech-step .step-num::before { content: "0" counter(step); }
.flow {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; color: var(--text-3); font-size: .9rem;
}
.flow span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text-2); }
.flow svg { width: 16px; height: 16px; color: var(--lavender); }

/* ---------- Scale band ---------- */
.scale { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.doc-stack { position: relative; height: 260px; max-width: 440px; width: 100%; justify-self: center; }
.doc {
  position: absolute; width: 58%; height: 78%; border-radius: 14px; background: rgba(35, 16, 58, .95); border: 1px solid var(--line-2);
  box-shadow: var(--shadow); padding: 18px;
}
.doc i { display: block; height: 8px; border-radius: 4px; background: rgba(189, 149, 255, .25); margin-bottom: 10px; }
.doc i:nth-child(1) { width: 60%; background: var(--grad); opacity: .85; }
.doc i:nth-child(3) { width: 85%; } .doc i:nth-child(4) { width: 70%; } .doc i:nth-child(5) { width: 90%; }
.doc:nth-child(1) { left: 0; top: 14%; transform: rotate(-7deg); opacity: .7; }
.doc:nth-child(2) { left: 21%; top: 6%; transform: rotate(2deg); opacity: .85; }
.doc:nth-child(3) { left: 42%; top: 18%; transform: rotate(8deg); }
.stat-row { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 8px; }
.stat strong { display: block; font-size: 1.6rem; line-height: 1.2; }
.stat span { color: var(--text-3); font-size: .9rem; }
@media (max-width: 860px) { .scale { grid-template-columns: 1fr; } .doc-stack { height: 220px; } }

/* ---------- Vision / mission ---------- */
.vm-card h3 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; }
.vm-card h3 .icon-badge { margin: 0; }
.vm-card p { font-size: 1.02rem; }

/* ---------- Checklists ---------- */
.checklist { list-style: none; display: grid; gap: 12px; margin: 0 0 28px; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--text-2); }
.checklist svg { width: 22px; height: 22px; color: var(--ok); margin-top: 3px; }

/* ---------- Contact ---------- */
.contact-card { text-align: center; max-width: 860px; margin-inline: auto; }
.contact-line {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px;
  margin: 26px 0 30px; font-weight: 500;
}
.contact-line a, .contact-line span { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; }
.contact-line a:hover { color: var(--sky); }
.contact-line svg { width: 18px; height: 18px; color: var(--lavender); }
.contact-line .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; background: var(--bg); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-inner img { height: 34px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-nav a { color: var(--text-2); text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: var(--text); }
.footer-mail { color: var(--text-3); font-size: .92rem; text-decoration: none; }
.footer-mail:hover { color: var(--text); }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 40px); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; width: 640px; height: 640px; right: -220px; top: -320px; border-radius: 50%; background: radial-gradient(circle, rgba(132, 126, 255, .28), transparent 65%); pointer-events: none; }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); max-width: 860px; }

/* ---------- Translators ---------- */
.tr-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .tr-grid { grid-template-columns: 1fr; } }
.lang-cloud { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.lang-cloud li { padding: 8px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: .92rem; color: var(--text-2); }

/* ---------- Forms ---------- */
.form-shell { background: var(--panel); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(20px, 4vw, 40px); }
.form-section + .form-section { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); }
.form-section > h2, .form-section > h3 { font-size: 1.15rem; margin-bottom: 4px; display: flex; align-items: center; gap: 12px; }
.step-pill { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #14001f; font-size: .9rem; font-weight: 700; flex: none; }
.form-help { color: var(--text-3); font-size: .9rem; margin: 0 0 18px; }
.form-section > h2 + .fields, .form-section > h3 + .fields { margin-top: 18px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 680px) { .fields { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label, .field > .label, fieldset > legend { font-weight: 500; font-size: .95rem; color: var(--text); }
.req { color: var(--lavender); margin-left: 2px; }
.opt { color: var(--text-3); font-weight: 400; font-size: .85rem; margin-left: 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="search"], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--font); color: var(--text);
  background: rgba(10, 0, 18, .55); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder { color: #8f80ab; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--lavender) 50%), linear-gradient(135deg, var(--lavender) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
select option { background: #1b0028; color: var(--text); }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(117, 199, 255, .25); }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.8); }
.field.has-error input, .field.has-error select, .field.has-error textarea, fieldset.has-error .check-grid { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .85rem; min-height: 0; }
.field-error:empty { display: none; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
fieldset > legend { padding: 0; margin-bottom: 10px; }

.check-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 10px; max-height: 236px; overflow: auto;
  padding: 12px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(10, 0, 18, .45);
}
.check-grid.compact { max-height: none; }
.check, .radio { display: flex; align-items: flex-start; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; color: var(--text-2); font-size: .95rem; line-height: 1.35; }
.check:hover, .radio:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.check input, .radio input { accent-color: var(--periwinkle); width: 18px; height: 18px; margin: 1px 0 0; flex: none; }
.check-filter { margin-bottom: 8px; }
.inline-options { display: flex; flex-wrap: wrap; gap: 8px 18px; }

.file-drop {
  position: relative; border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 24px; text-align: center;
  background: rgba(10, 0, 18, .45); transition: border-color .15s ease, background-color .15s ease;
}
.file-drop:hover, .file-drop.is-dragover { border-color: var(--sky); background: rgba(117, 199, 255, .06); }
.file-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-drop svg { width: 32px; height: 32px; color: var(--lavender); margin: 0 auto 8px; }
.file-drop strong { display: block; }
.file-drop small { color: var(--text-3); }
.file-list { list-style: none; display: grid; gap: 6px; margin-top: 10px; }
.file-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-size: .9rem; color: var(--text-2); }
.file-list li span:last-child { color: var(--text-3); flex: none; }

details.more { border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .02); }
details.more > summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; font-size: 1.3rem; color: var(--lavender); line-height: 1; margin-left: auto; }
details.more[open] > summary::after { content: "–"; }
details.more > .fields { padding: 4px 18px 20px; }

.consent { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: .95rem; cursor: pointer; }
.consent input { accent-color: var(--periwinkle); width: 20px; height: 20px; margin-top: 2px; flex: none; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 26px; }
.form-actions .small-print { color: var(--text-3); font-size: .85rem; margin: 0; }

.notice { display: flex; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text-2); margin: 0 0 20px; }
.notice svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.notice p { margin: 0; }
.notice--info svg { color: var(--sky); }
.notice--warn { border-color: rgba(255, 210, 122, .35); } .notice--warn svg { color: var(--warn); }
.notice--error { border-color: rgba(255, 143, 163, .45); } .notice--error svg { color: var(--danger); }
.notice--ok { border-color: rgba(123, 224, 176, .45); } .notice--ok svg { color: var(--ok); }

.estimate {
  margin-top: 18px; border-radius: 14px; padding: 18px 20px; border: 1px solid var(--line-2); background: var(--grad-soft);
  display: grid; gap: 6px;
}
.estimate .big { font-size: 1.5rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.estimate ul { list-style: none; display: grid; gap: 4px; margin-top: 6px; font-size: .9rem; color: var(--text-3); }
.estimate .muted { color: var(--text-3); font-size: .9rem; margin: 0; }

.success-panel { text-align: center; padding: clamp(28px, 5vw, 48px) 10px; }
.success-panel .icon-badge { margin: 0 auto 18px; width: 64px; height: 64px; border-radius: 20px; color: var(--ok); }
.success-panel .icon-badge svg { width: 32px; height: 32px; }
.ref { display: inline-block; font-weight: 700; letter-spacing: .06em; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(20, 0, 31, .35); border-top-color: #14001f; animation: spin .8s linear infinite; }
.btn-ghost .spinner { border-color: rgba(255, 255, 255, .25); border-top-color: var(--text); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Modal ---------- */
dialog.modal {
  width: min(880px, 100vw - 24px); max-height: min(92vh, 1100px); padding: 0; border: 1px solid var(--line-2); border-radius: 22px;
  background: linear-gradient(180deg, #1d0a30, #14001f); color: var(--text); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .8);
}
dialog.modal::backdrop { background: rgba(6, 0, 12, .72); backdrop-filter: blur(4px); }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; background: rgba(29, 10, 48, .96); border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 1.25rem; margin: 0; }
.modal-close { background: transparent; border: 1px solid var(--line-2); color: var(--text); width: 40px; height: 40px; border-radius: 12px; cursor: pointer; display: grid; place-items: center; flex: none; }
.modal-close:hover { background: rgba(255, 255, 255, .08); }
.modal-close svg { width: 20px; height: 20px; }
.modal-body { padding: clamp(18px, 3.5vw, 32px); overflow: auto; }
body.modal-open { overflow: hidden; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .big { font-size: clamp(4rem, 12vw, 7rem); font-weight: 700; line-height: 1; }
