/* Zerro – zerro-raz.com */

@font-face { font-family: 'Outfit'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/outfit-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/outfit-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/outfit-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/sora-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/sora-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/sora-latin-700-normal.woff2') format('woff2'); }

:root {
  --accent: #51a4e8;
  --bg: #0E1117;
  --card: #161B22;
  --line: #2A3341;
  --line-strong: #39424F;
  --text: #E6EDF3;
  --muted: #B7C0CC;
  --subtle: #8B95A3;
  --sans: 'Outfit', system-ui, sans-serif;
  --display: 'Sora', 'Outfit', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 18px; line-height: 1.6; }
a { color: var(--muted); }
a:hover { color: var(--text); }

.page { min-height: 100vh; display: flex; flex-direction: column; }

/* Navigation */
.nav { max-width: 1200px; margin: 0 auto; padding: 24px; width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--bg); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 20px; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.5px; }
.brand-name span { color: var(--accent); }
.tagline { color: var(--text); font-weight: 500; font-size: 16px; line-height: 1.5; padding: 10px 18px; }
.back { color: var(--muted); text-decoration: none; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }

/* Footer */
.footer { border-top: 1px solid #222A35; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 15px; color: var(--subtle); }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: var(--subtle); }
.footer-links a:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--bg); text-decoration: none; font-family: var(--sans); font-weight: 600; font-size: 17px; padding: 16px 26px; border-radius: 12px; border: 0; cursor: pointer; min-height: 52px; }
.btn:hover { color: var(--bg); filter: brightness(1.08); }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* Hero */
.hero { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 48px 24px 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.hero-text { flex: 1 1 480px; min-width: 0; }
.hero h1 { margin: 0 0 36px; font-family: var(--display); font-weight: 700; font-size: clamp(40px, 5.5vw, 68px); line-height: 1.05; letter-spacing: -2px; }
.hero-lead { margin: 0 0 36px; font-size: 20px; color: var(--muted); max-width: 520px; }
.hero-note { margin: 28px 0 0; font-size: 15px; color: var(--subtle); }

/* Widget */
.widget-wrap { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.widget { position: relative; overflow: hidden; width: 100%; max-width: 440px; background: #FBFBFC; border-radius: 32px; padding: 24px 26px 22px; color: #111; font-family: -apple-system, 'SF Pro Display', system-ui, sans-serif; box-shadow: 0 40px 90px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06); }
.widget-fill { position: absolute; top: 0; left: 0; bottom: 0; width: 0; transition: width 0.1s linear; }
.widget-content { position: relative; }
.widget-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.widget-title { font-weight: 700; font-size: 21px; letter-spacing: -0.3px; }
.widget-time { font-size: 19px; color: #6B6B70; font-variant-numeric: tabular-nums; }
.widget-count { margin: 10px 0 12px; height: 52px; text-align: center; font-weight: 700; font-size: 52px; line-height: 1; letter-spacing: -1.5px; white-space: nowrap; color: hsl(130, 70%, 36%); transition: color 0.3s linear; }
.widget-addr { display: flex; align-items: center; gap: 8px; font-size: 16px; color: #5E5E63; }
.widget-addr span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.widget-chip { display: inline-block; margin-top: 14px; background: rgba(60,60,80,0.10); color: #4F5BD5; font-size: 16px; font-weight: 500; padding: 7px 12px; border-radius: 10px; }
.widget-label { font-family: -apple-system, system-ui, sans-serif; font-size: 15px; color: var(--muted); }

/* Text pages */
.content { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 32px 24px 96px; color: var(--muted); }
.content h1 { margin: 0 0 12px; font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4.5vw, 52px); line-height: 1.1; letter-spacing: -1.5px; color: var(--text); }
.content h2 { margin: 0 0 10px; font-family: var(--display); font-weight: 600; font-size: 21px; color: var(--text); }
.content p { margin: 0 0 12px; }
.content p:last-child { margin-bottom: 0; }
.content ul { margin: 0 0 12px; padding-left: 22px; }
.content li { margin-bottom: 8px; }
.content strong { color: var(--text); font-weight: 600; }
.sections { display: flex; flex-direction: column; gap: 36px; margin-top: 40px; }
.intro { font-size: 19px; }

/* Form */
.form { display: flex; flex-direction: column; gap: 22px; margin-top: 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card-title { margin: 0; font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--text); }
.stepper { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.step-btn { width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font-size: 26px; cursor: pointer; }
.step-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.step-value { width: 72px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 34px; color: var(--text); }
.hint { margin: 0; font-size: 15px; color: var(--subtle); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 17px; color: var(--text); background: var(--card); border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; min-height: 50px; width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.error { margin: 0; color: #FCA5A5; font-size: 16px; }
.small { margin: 0; font-size: 14px; color: var(--subtle); }
.hp { position: absolute; left: -9999px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(5,7,10,0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-box { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 40px 32px 32px; text-align: center; box-shadow: 0 40px 100px rgba(0,0,0,0.6); }
.modal-icon { width: 64px; height: 64px; border-radius: 20px; background: var(--accent); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.modal-box h2 { margin: 0 0 12px; font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.2; letter-spacing: -0.8px; }
.modal-box p { margin: 0 0 32px; color: var(--muted); font-size: 17px; }
.modal-box .btn { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .widget-fill, .widget-count { transition: none; }
}
