/* Kvariva — site styles */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/sora-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/sora-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy: #0c3443;
  --navy-hover: #134a5e;
  --aqua: #7ed3d6;
  --aqua-soft: #ddf2f2;
  --teal-text: #0b5f67;
  --bg: #f4f7f8;
  --white: #ffffff;
  --text-soft: #4a6170;
  --muted: #5b6f7b;
  --line: #e1e8eb;
  --line-strong: #d5dee2;
  --input-bg: #f8fafb;
  --success: #1f6b4d;
  --danger: #b0352c;

  --display: "Sora", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --shadow: 0 24px 48px -18px rgba(12, 52, 67, .26);

  --container: 1240px;
  --gutter: clamp(20px, 3.5vw, 32px);
  --section: clamp(72px, 9vw, 112px);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body { margin: 0; background: var(--bg); color: var(--navy); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-text); }
:focus-visible { outline: 2px solid var(--teal-text); outline-offset: 3px; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 1.4rem + 1.3vw, 40px); line-height: 1.12; }
h3 { line-height: 1.3; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 820px; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow { font-size: clamp(14px, .85rem + .2vw, 16px); font-weight: 600; color: var(--teal-text); margin-bottom: 14px; }
.section-lead { color: var(--text-soft); font-size: 17px; max-width: 30em; }
.section-head-center { text-align: center; max-width: 640px; margin: 0 auto clamp(56px, 7vw, 80px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 28px; border-radius: 999px;
  font: 500 15px/1.2 var(--sans); text-decoration: none; text-align: center;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-hover); color: #fff; }
.btn-outline { background: var(--white); border-color: #c5d2d8; color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--text-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; }
.brand:hover { color: var(--navy); }
.logo-mark { flex: none; }
.brand-name { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244, 247, 248, .88); backdrop-filter: saturate(1.4) blur(10px); transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; }
.site-nav { display: flex; align-items: center; gap: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 16px; }
.nav-list { display: flex; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; transition: background-color .2s ease; }
.nav-list a:hover { background: var(--bg); color: var(--navy); }
.nav-actions { display: flex; align-items: center; gap: 4px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.lang-switch a { color: var(--muted); text-decoration: none; font-weight: 500; }
.lang-switch a:hover { color: var(--navy); }
.lang-switch > * + *::before { content: "·"; margin-right: 6px; color: var(--muted); }
.btn-header { min-height: 42px; padding: 10px 20px; font-size: 14px; background: var(--navy); color: #fff; }
.btn-header:hover { background: var(--navy-hover); color: #fff; }

.nav-toggle { display: none; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font: 500 14px var(--sans); color: var(--navy); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s ease; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 900px) {
  .header-inner { min-height: 68px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: calc(100% + 4px); left: var(--gutter); right: var(--gutter); display: none; flex-direction: column; align-items: stretch; gap: 0; border-radius: var(--r-md); padding: 10px; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; }
  .nav-list a { padding: 14px 16px; border-radius: var(--r-sm); font-size: 17px; }
  .nav-actions { justify-content: space-between; padding: 10px 6px 4px; border-top: 1px solid var(--line); margin-top: 6px; }
}

/* Hero */
.hero { padding-block: clamp(32px, 5vw, 56px) clamp(72px, 9vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 5vw, 64px); align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--aqua-soft); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 500; }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-text); }
.hero h1 { margin-top: 26px; font-size: clamp(36px, 1.3rem + 3vw, 56px); line-height: 1.06; letter-spacing: -0.035em; max-width: 12em; }
.hero-lead { margin-top: 22px; max-width: 27em; font-size: clamp(17px, 1rem + .2vw, 19px); color: var(--text-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; margin-top: 44px; font-size: 14px; color: var(--text-soft); }
.hero-meta strong { font-family: var(--display); font-size: 22px; font-weight: 400; color: var(--navy); margin-right: 4px; }

.hero-visual { position: relative; padding: 0 0 40px 40px; }
.doc-stage { position: relative; height: 520px; border-radius: 32px; background: var(--aqua-soft); overflow: hidden; display: grid; place-items: center; }
.doc-sheet { grid-area: 1 / 1; width: 300px; height: 390px; background: var(--white); border-radius: 14px; }
.doc-sheet-back { opacity: .6; transform: rotate(6deg) translate(28px, 6px); box-shadow: 0 16px 32px -20px rgba(12, 52, 67, .3); }
.doc-sheet-front { position: relative; padding: 32px 30px; display: flex; flex-direction: column; transform: rotate(-2deg); box-shadow: 0 24px 48px -20px rgba(12, 52, 67, .35); }
.doc-kicker { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-text); }
.doc-title { margin: 6px 0 20px; font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; }
.doc-sub { margin: 22px 0 8px; font-size: 12px; font-weight: 600; }
.doc-lines { display: grid; gap: 10px; }
.doc-lines span { display: block; height: 7px; border-radius: 4px; background: var(--line); }
.doc-lines span:nth-child(2) { width: 88%; }
.doc-lines span:nth-child(3) { width: 94%; }
.doc-lines span:nth-child(4) { width: 62%; }
.doc-agenda span { position: relative; margin-left: 14px; }
.doc-agenda span::before { content: ""; position: absolute; left: -14px; top: 0.5px; width: 6px; height: 6px; border-radius: 50%; background: var(--aqua); }
.doc-agenda span:nth-child(1) { width: 80%; }
.doc-agenda span:nth-child(2) { width: 66%; }
.doc-agenda span:nth-child(3) { width: 74%; }
.doc-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; }
.doc-signature { display: grid; gap: 6px; color: var(--navy); }
.doc-signature span { font-size: 11px; color: var(--text-soft); border-top: 1px solid var(--line-strong); padding-top: 4px; }
.doc-stamp { width: 56px; height: 56px; border-radius: 50%; border: 2px solid #0e7c86; color: #0e7c86; display: grid; place-items: center; transform: rotate(-12deg); }
.notice-card { position: absolute; left: 0; top: -16px; width: 260px; padding: 18px 20px; display: flex; gap: 12px; align-items: center; font-size: 14px; line-height: 1.4; }
.notice-card strong { display: block; font-weight: 600; }
.notice-card span span { color: var(--text-soft); }
.docs-card { position: absolute; right: 24px; bottom: 0; width: 280px; padding: 18px 20px; font-size: 14px; line-height: 1.4; }
.docs-card .ui-label { margin-bottom: 12px; }
.docs-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.docs-card li { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.docs-tick { color: var(--teal-text); display: grid; }
.docs-tick svg { width: 18px; height: 18px; }
.ui-card { background: var(--white); border-radius: var(--r-md); box-shadow: var(--shadow); }
.ui-card-title { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { padding: 0 0 40px 16px; }
  .doc-stage { height: 500px; }
  .notice-card { width: 240px; }
  .docs-card { right: 12px; width: 250px; }
}

/* Features */
.features { background: var(--white); border-radius: var(--r-xl) var(--r-xl) 0 0; padding-block: var(--section); }
.feature-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 72px); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(80px, 9vw, 112px); }
.feature-row.is-reversed .feature-visual { order: 2; }
.feature-visual { position: relative; }
.feature-photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); }
.feature-copy h3 { font-size: clamp(24px, 1.1rem + 1vw, 30px); letter-spacing: -0.02em; margin-bottom: 14px; }
.feature-copy > p { color: var(--text-soft); font-size: clamp(16px, .95rem + .25vw, 18px); margin-bottom: 24px; max-width: 30em; }
.dot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dot-list li { display: flex; gap: 12px; align-items: center; font-size: clamp(16px, .95rem + .2vw, 17px); }
.dot-list li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); }

.icon-tile { flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--aqua-soft); color: var(--navy); display: grid; place-items: center; }
.icon-tile svg { width: 18px; height: 18px; }
.file-card { position: absolute; right: 24px; bottom: -24px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; font-size: 14px; }
.file-card strong { display: block; font-weight: 600; }
.file-card span span { color: var(--text-soft); }

.feature-panel { background: var(--aqua-soft); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); }
.ballot-card { padding: 24px; }
.ui-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-text); margin-bottom: 4px; }
.ballot-card .ui-card-title { display: block; font-size: 16px; margin-bottom: 18px; }
.ballot-options { display: flex; gap: 10px; }
.ballot-options span { flex: 1; text-align: center; border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px; font-size: 14px; }
.ballot-options .is-selected { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 500; }
.minutes-card { margin: 16px 0 0 clamp(16px, 4vw, 48px); padding: 16px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.minutes-card strong { font-weight: 600; }
.minutes-card .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--aqua-soft); color: var(--teal-text); display: grid; place-items: center; }
.minutes-card .tick svg { width: 14px; height: 14px; }

@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.is-reversed .feature-visual { order: 0; }
  .file-card { right: 16px; }
}

/* Process */
.process { background: var(--white); padding-bottom: var(--section); }
.process-panel { background: var(--navy); color: #fff; border-radius: var(--r-xl); padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 56px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; margin-bottom: clamp(36px, 5vw, 56px); }
.process .section-head p { max-width: 22em; color: rgba(255, 255, 255, .72); font-size: clamp(17px, 1rem + .25vw, 20px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.steps li { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-md); padding: 28px; }
.step-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--aqua); color: var(--navy); font-family: var(--display); font-weight: 600; }
.steps h3 { margin: 22px 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.steps p { font-size: 16px; color: rgba(255, 255, 255, .7); }

/* Pricing */
.pricing { padding-block: var(--section); }
.pricing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 56px); align-items: center; }
.pricing .section-lead { margin-top: 20px; }

.price-from { margin-top: 36px; display: flex; align-items: baseline; gap: 12px; }
.price-from span { color: var(--text-soft); }
.price-from strong { font-family: var(--display); font-weight: 600; font-size: clamp(44px, 2.2rem + 1.2vw, 56px); line-height: 1; letter-spacing: -0.04em; }
.estimator { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 40px); }
.estimator h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 24px; }
.est-label { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; color: var(--text-soft); }
.est-label output { font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.estimator input[type="range"] { width: 100%; margin: 18px 0 22px; accent-color: var(--navy); }
.est-total { display: flex; justify-content: space-between; align-items: center; background: var(--bg); border-radius: var(--r-md); margin-top: 28px; padding: 20px 24px; }
.est-total span { color: var(--text-soft); }
.est-total strong { font-family: var(--display); font-weight: 600; font-size: 36px; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.est-note { margin: 10px 0 24px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--navy); }

/* FAQ */
.faq { padding-bottom: var(--section); }
.container-faq { max-width: 880px; }
.faq h2 { text-align: center; margin-bottom: 40px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 28px; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-sign { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--aqua-soft); }
.faq-sign::before, .faq-sign::after { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 1.75px; margin-top: -1px; background: var(--navy); transition: transform .25s ease; }
.faq-sign::after { transform: rotate(90deg); }
.faq-item[open] .faq-sign::after { transform: rotate(0deg); }
.faq-item p { padding: 0 48px 24px 0; color: var(--text-soft); }
@media (max-width: 600px) { .faq-item { padding: 0 20px; } .faq-item p { padding-right: 0; } }

/* Contact */
.contact { padding-bottom: var(--section); }
.contact-panel { background: var(--text-soft); border-radius: var(--r-xl); padding: clamp(24px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(32px, 4vw, 48px); align-items: start; }
.contact-intro h2 { color: #fff; }
.contact-intro .section-lead { margin: 14px 0 32px; color: #fff; }
.contact-photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 24px; }
@media (max-width: 900px) {
  .contact-panel { grid-template-columns: 1fr; }
  .contact-photo { display: none; }
}

.form-card { background: var(--white); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 36px); }
.form-card.is-sent .inquiry-form { display: none; }
.inquiry-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.field-wide { grid-column: 1 / -1; }
.form-note { margin: -4px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); text-align: center; }
@media (max-width: 560px) { .inquiry-form { grid-template-columns: minmax(0, 1fr); } }
.field > label:not(.check):not(.file-drop), .field legend { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field input[type="date"] {
  width: 100%; height: 50px; padding: 0 16px;
  font: 400 16px var(--sans); color: var(--navy);
  background: var(--input-bg); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field input::placeholder { color: #8698a3; }
.field input:focus { outline: none; background: var(--white); border-color: var(--navy); box-shadow: 0 0 0 4px rgba(126, 211, 214, .35); }
.field-inline { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.field-inline legend { float: left; margin: 0 8px 0 0; padding: 0; }
.pill-radio { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 16px; font-size: 14px; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.pill-radio:has(input:checked) { border-color: var(--navy); background: var(--aqua-soft); }
.pill-radio input { width: 16px; height: 16px; margin: 0; accent-color: var(--navy); }

.file-drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1.5px dashed #a9c6ce; border-radius: 16px; background: var(--input-bg); font-size: 15px; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.file-drop:hover, .file-drop.is-dragover { border-color: var(--navy); background: var(--white); }
.file-drop:focus-within { outline: 2px solid var(--teal-text); outline-offset: 2px; }
.file-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-text { min-width: 0; display: flex; flex-wrap: wrap; column-gap: .35em; }
.file-text > [data-file-name] { min-width: 0; overflow-wrap: anywhere; }
.file-text > .muted { white-space: nowrap; }
.field .link-btn { margin-top: 8px; }

.field.has-error input:not([type="checkbox"]):not([type="radio"]), .field.has-error .file-drop { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 13px; margin-top: 6px; }
.field-inline .field-error { flex-basis: 100%; margin-top: 0; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { padding: 16px 20px; margin-bottom: 24px; border-radius: var(--r-sm); border: 1px solid; }
.form-status[data-state="success"] { background: #e8f5ef; border-color: #bfdccc; color: var(--success); }
.form-status[data-state="error"] { background: #fbecea; border-color: #ecc8c3; color: var(--danger); }
.form-status strong { display: block; font-family: var(--display); font-weight: 600; font-size: 19px; margin-bottom: 4px; color: var(--navy); }
.form-status:focus { outline: none; }
.form-card.is-sent .form-status { margin-bottom: 0; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .7); font-size: 14px; }
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 64px; padding-block: 56px 36px; }
.footer-brand p { margin-top: 14px; }
.footer-details { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, auto)); gap: 16px 40px; }
.footer-details dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.footer-details dd { margin: 2px 0 0; color: #fff; }
.site-footer a { color: rgba(255, 255, 255, .85); }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 20px 32px; font-size: 13px; }

/* Legal pages */
.legal { padding-block: 48px var(--section); }
.legal .container { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px); }
.legal h1 { font-size: clamp(34px, 1.6rem + 2vw, 48px); line-height: 1.1; margin: 24px 0 8px; }
.legal h2 { font-size: 22px; letter-spacing: -0.02em; margin: 40px 0 10px; }
.legal p { color: var(--text-soft); margin-bottom: 12px; }
.back-link { font-size: 14px; text-decoration: none; color: var(--text-soft); }
@media (max-width: 860px) { .legal .container { border-radius: 0; border-inline: 0; } }

/* Admin */
.admin-header { background: var(--white); border-bottom: 1px solid var(--line); }
.admin-header .header-inner { min-height: 64px; }
.admin-header .brand-name { font-size: 18px; }
.admin-main { padding-block: 40px 80px; }
.admin-main h1 { font-size: 32px; margin-bottom: 24px; }
.admin-login { max-width: 360px; display: grid; gap: 12px; }
.admin-login input { height: 50px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font: inherit; }
.admin-error { color: var(--danger); }
.admin-note { background: #fbf5e8; border: 1px solid #ead9b5; border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: 24px; font-size: 14px; }
.admin-table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.admin-table th { font-weight: 600; background: var(--bg); }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr.is-new td { font-weight: 600; }
.admin-dl { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); margin: 0 0 24px; }
.admin-dl > div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.admin-dl > div:last-child { border-bottom: 0; }
.admin-dl dt { color: var(--muted); font-size: 14px; }
.admin-dl dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .admin-dl > div { grid-template-columns: 1fr; gap: 2px; } }
.admin-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.admin-actions form { margin: 0; }
.btn-secondary { border-color: var(--line-strong); color: var(--navy); background: var(--white); min-height: 44px; padding: 10px 20px; }
.btn-danger { border-color: var(--danger); color: var(--danger); background: transparent; min-height: 44px; padding: 10px 20px; }
.btn-sm { font-size: 14px; }
.admin-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; font-size: 14px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.admin-tabs a { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; color: var(--navy); text-decoration: none; background: var(--white); }
.admin-tabs a.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.admin-tabs span { opacity: .65; }
.admin-search { display: flex; gap: 8px; margin-bottom: 20px; }
.admin-search input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font: inherit; }
.admin-warn { color: var(--danger); }
.admin-section { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; margin-bottom: 24px; }
.admin-section h2 { font-size: 18px; margin-bottom: 14px; }
.admin-section summary { cursor: pointer; font-weight: 600; }
.admin-inline { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 8px 8px 0; }
.admin-inline select, .admin-inline input { height: 44px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font: inherit; background: var(--white); }
.admin-form { display: grid; gap: 12px; margin-top: 12px; max-width: 760px; }
.admin-form label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.admin-form input, .admin-form textarea { padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font: inherit; color: var(--navy); }
.admin-form .btn { justify-self: start; }
.admin-doc { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; font-size: 14px; }
.admin-doc p { margin-bottom: 6px; }
.admin-history { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.admin-history time { color: var(--muted); margin-right: 8px; }
.admin-history .is-note { background: var(--bg); border-radius: var(--r-sm); padding: 8px 10px; }
.admin-hint { font-size: 14px; color: var(--muted); margin-bottom: 16px; overflow-wrap: anywhere; }

/* Preview gate */
.preview { background: var(--navy); }
.pv-grid {
  position: fixed; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(126, 211, 214, .55) 1.5px, transparent 2px),
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(255, 255, 255, .06) calc(50% - .5px), rgba(255, 255, 255, .06) calc(50% + .5px), transparent calc(50% + .5px)),
    linear-gradient(transparent calc(50% - .5px), rgba(255, 255, 255, .06) calc(50% - .5px), rgba(255, 255, 255, .06) calc(50% + .5px), transparent calc(50% + .5px)),
    radial-gradient(50% 60% at 50% 50%, rgba(126, 211, 214, .13), transparent 100%);
  background-size: 264px 264px, 88px 88px, 88px 88px, 100% 100%;
  background-position: center;
  -webkit-mask-image: radial-gradient(100% 100% at 50% 50%, #000 35%, rgba(0, 0, 0, .25) 100%);
  mask-image: radial-gradient(100% 100% at 50% 50%, #000 35%, rgba(0, 0, 0, .25) 100%);
}
.pv-main { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-content: center; grid-template-columns: minmax(0, 400px); justify-items: center; gap: 28px; padding: 32px var(--gutter); animation: pv-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes pv-rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .pv-main { animation: none; } }
.pv-main .brand, .pv-main .brand:hover { color: #fff; }
.pv-card { width: 100%; padding: clamp(28px, 6vw, 36px); background: var(--white); color: var(--navy); border-radius: var(--r-lg); box-shadow: 0 40px 80px -32px rgba(0, 0, 0, .55); }
.pv-card h1 { margin-bottom: 18px; font-size: 24px; letter-spacing: -0.025em; }
.pv-input { position: relative; }
.pv-input input { width: 100%; height: 52px; padding: 0 84px 0 16px; font: 400 16px var(--sans); color: var(--navy); background: var(--input-bg); border: 1px solid var(--line-strong); border-radius: var(--r-sm); transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.pv-input input:focus { outline: none; background: var(--white); border-color: var(--navy); box-shadow: 0 0 0 4px rgba(126, 211, 214, .35); }
.pv-input input[aria-invalid="true"] { border-color: var(--danger); }
.pv-reveal { position: absolute; top: 6px; right: 6px; height: 40px; padding: 0 12px; background: none; border: 0; border-radius: 10px; font: 500 13px var(--sans); color: var(--teal-text); cursor: pointer; }
.pv-reveal:hover { background: var(--aqua-soft); }
.pv-error { margin-top: 8px; font-size: 14px; color: var(--danger); }
.pv-card .btn { margin-top: 14px; }
