:root {
	--deep: #0A2A43;
	--bakance: #1F6FB2;
	--turq: #22B8C4;
	--clear: #9FE6DF;
	--lime: #EEF3F1;
	--mango: #FFB627;
	--coral: #F0544F;
	--ink: #0A2A43;
	--ink-soft: #3E5A70;
	--line: rgba(10, 42, 67, .12);
	--surface: #FFFFFF;
	--bg: #EEF3F1;
	--ok: #12946B;
	--radius-lg: 22px;
	--radius-md: 14px;
	--radius-sm: 10px;
	--display: 'Syne', 'Avenir Next', system-ui, sans-serif;
	--body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--safe-b: env(safe-area-inset-bottom, 0px);
	color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--body);
	font-size: 16px;
	line-height: 1.5;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	min-height: 100dvh;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--bakance); }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 8vw, 2.9rem); font-weight: 800; }
h2 { font-size: 1.45rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }

:focus-visible { outline: 3px solid var(--turq); outline-offset: 2px; border-radius: 6px; }

.btn {
	appearance: none; border: 0; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 52px; padding: 0 1.4rem; border-radius: 999px;
	font-weight: 700; font-size: 1rem; text-decoration: none;
	background: var(--deep); color: #fff;
	transition: transform .12s ease, background .2s ease, opacity .2s;
	-webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-turq { background: var(--turq); color: var(--deep); }
.btn-ghost { background: transparent; color: var(--deep); box-shadow: inset 0 0 0 2px var(--line); }
.btn-light { background: #fff; color: var(--deep); }
.btn-wa { background: #1FAF5A; color: #fff; }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 1rem; font-size: .9rem; }
.btn-danger { background: var(--coral); color: #fff; }
.linkish { background: none; border: 0; padding: .4rem 0; color: var(--bakance); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field .hint { font-size: .82rem; color: var(--ink-soft); }
.input {
	width: 100%; min-height: 52px; padding: .8rem 1rem; border-radius: var(--radius-md);
	border: 2px solid var(--line); background: #fff; font-size: 1.05rem;
	transition: border-color .2s;
}
.input:focus { border-color: var(--turq); outline: none; }
textarea.input { min-height: 96px; resize: vertical; }
.input.big { font-family: var(--body); font-size: 1.9rem; font-weight: 800; text-align: center; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.num-font { font-family: var(--body); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.error-text { color: var(--coral); font-weight: 600; font-size: .9rem; min-height: 1.2em; }

.toast-wrap { position: fixed; left: 0; right: 0; bottom: calc(18px + var(--safe-b)); display: grid; justify-items: center; pointer-events: none; z-index: 90; }
.toast {
	background: var(--deep); color: #fff; padding: .85rem 1.2rem; border-radius: 16px; max-width: min(92vw, 420px);
	box-shadow: 0 12px 40px rgba(10, 42, 67, .35); font-weight: 600; pointer-events: auto;
	animation: toastIn .35s cubic-bezier(.2, .9, .3, 1.2);
}
.toast.err { background: #8E1F2A; }
@keyframes toastIn { from { transform: translateY(20px); opacity: 0; } }

.sheet-backdrop { position: fixed; inset: 0; background: rgba(10, 42, 67, .45); z-index: 60; animation: fade .2s; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: #fff;
	border-radius: 26px 26px 0 0; max-height: 92dvh; overflow: auto; padding: 1.4rem 1.25rem calc(1.4rem + var(--safe-b));
	animation: sheetUp .32s cubic-bezier(.2, .9, .25, 1);
	max-width: 640px; margin: 0 auto;
}
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: -.5rem auto 1rem; }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

.chip {
	border: 0; cursor: pointer; white-space: nowrap; padding: .5rem .95rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
	background: #fff; color: var(--deep); box-shadow: inset 0 0 0 1.5px var(--line);
}
.chip[aria-pressed="true"] { background: var(--deep); color: #fff; box-shadow: none; }

.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
.spinner.dark { border-color: var(--line); border-top-color: var(--deep); }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
