/* Auto Škola Theme — mobile-first */
:root {
	--c-primary: #1d4ed8;
	--c-navy: #0f2a6b;
	--c-navy-2: #0b1f52;
	--c-accent: #f5b301;
	--c-ink: #0f172a;
	--c-ink-2: #475569;
	--c-line: #e2e8f0;
	--c-bg: #f6f8fb;
	--c-ok: #15803d;
	--radius: 16px;
	--header-h: 64px;
	--font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--c-ink); background: var(--c-bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--c-primary); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; }

.ast-container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.ast-narrow { max-width: 780px; }
.ast-skip { position: absolute; left: -999px; top: 8px; z-index: 1000; padding: 8px 14px; background: #fff; border-radius: 8px; }
.ast-skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.ast-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px;
	border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent;
	transition: transform .1s, background .15s, border-color .15s;
}
.ast-btn:active { transform: scale(.98); }
.ast-btn-accent { background: var(--c-accent); color: #1a1300; }
.ast-btn-accent:hover { background: #e5a700; color: #1a1300; }
.ast-btn-line { border-color: rgba(255, 255, 255, .45); color: #fff; }
.ast-btn-line:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.ast-btn:focus-visible, .ast-langs a:focus-visible, .ast-nav a:focus-visible, .ast-qa summary:focus-visible { outline: 3px solid rgba(245, 179, 1, .7); outline-offset: 2px; }

/* ---------- Header ---------- */
.ast-header {
	position: sticky; top: 0; z-index: 50; height: var(--header-h);
	background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(10px); -webkit-backdrop-filter: saturate(1.6) blur(10px);
	border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.ast-header.is-scrolled { border-color: var(--c-line); box-shadow: 0 2px 12px rgba(15, 23, 42, .06); }
.ast-header-in { display: flex; align-items: center; gap: 16px; height: 100%; }
.ast-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--c-ink); text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.ast-logo-mark { width: 34px; height: 34px; flex: none; }
.ast-nav { display: none; margin-left: auto; gap: 4px; }
.ast-nav a { padding: 8px 12px; border-radius: 10px; color: var(--c-ink-2); font-weight: 600; font-size: 15px; text-decoration: none; }
.ast-nav a:hover { background: #f1f5f9; color: var(--c-ink); }
.ast-langs { display: inline-flex; margin-left: auto; padding: 3px; border-radius: 999px; background: #eef2f7; }

.ast-langs a { display: grid; place-items: center; min-width: 44px; height: 36px; padding: 0 10px; border-radius: 999px; color: var(--c-ink-2); font-weight: 800; font-size: 13px; text-decoration: none; letter-spacing: .03em; }
.ast-langs a.is-on { background: #fff; color: var(--c-primary); box-shadow: 0 1px 3px rgba(15, 23, 42, .14); }
@media (min-width: 860px) { .ast-nav { display: flex; } .ast-nav + .ast-langs { margin-left: 8px; } }

/* ---------- Hero ---------- */
.ast-hero {
	position: relative; overflow: hidden; color: #fff;
	background: radial-gradient(1000px 500px at 85% -10%, rgba(59, 130, 246, .55), transparent 60%), linear-gradient(160deg, var(--c-navy) 0%, var(--c-navy-2) 100%);
}
.ast-hero::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
	background: repeating-linear-gradient(90deg, var(--c-accent) 0 36px, transparent 36px 60px); opacity: .9;
}
.ast-hero-in { display: grid; gap: 36px; padding-top: 40px; padding-bottom: 52px; }
.ast-kicker { display: inline-block; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #dbe6ff; font-size: 13px; font-weight: 700; }
.ast-hero h1 { margin: 0; font-size: clamp(32px, 8.5vw, 56px); font-weight: 800; line-height: 1.08; }
.ast-hero-sub { margin: 16px 0 0; max-width: 560px; color: #cdd9f5; font-size: 17px; line-height: 1.6; }
.ast-hero-cta { display: grid; gap: 10px; margin-top: 26px; }
.ast-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 30px 0 0; padding: 0; list-style: none; }
.ast-stats li { padding: 10px 4px; border-radius: 12px; background: rgba(255, 255, 255, .07); text-align: center; }
.ast-stats strong { display: block; font-size: 20px; font-weight: 800; line-height: 1.2; }
.ast-stats span { display: block; color: #b9c8ec; font-size: 12px; }

.ast-hero-demo { display: none; }
.ast-phone {
	width: 320px; margin: 0 auto; padding: 16px; border-radius: 30px; background: #f6f8fb; color: var(--c-ink);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 10px rgba(255, 255, 255, .06); transform: rotate(2deg);
}
.ast-phone-top { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ast-phone-top span { width: 28px; height: 28px; border-radius: 99px; border: 1.5px solid var(--c-line); background: #fff; }
.ast-phone-top b { flex: 1; color: var(--c-ink-2); }
.ast-phone-top i { font-style: normal; font-weight: 700; color: var(--c-primary); background: #eff4ff; padding: 3px 9px; border-radius: 99px; }
.ast-phone-bar { height: 4px; margin: 12px -16px 14px; background: var(--c-line); }
.ast-phone-bar span { display: block; width: 30%; height: 100%; background: var(--c-primary); }
.ast-phone-q { margin: 0 0 12px; font-weight: 700; font-size: 15px; line-height: 1.4; }
.ast-phone-a { display: flex; gap: 10px; align-items: center; margin-top: 8px; padding: 10px 12px; border: 2px solid var(--c-line); border-radius: 12px; background: #fff; font-size: 14px; }
.ast-phone-a b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #f1f5f9; color: var(--c-ink-2); font-size: 12px; }
.ast-phone-a.is-ok { border-color: var(--c-ok); background: #ecfdf3; }
.ast-phone-a.is-ok b { background: var(--c-ok); color: #fff; }
.ast-phone-fb { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #ecfdf3; color: #14532d; font-weight: 700; font-size: 14px; }

@media (min-width: 560px) {
	.ast-hero-cta { display: flex; flex-wrap: wrap; }
}
@media (min-width: 960px) {
	.ast-hero-in { grid-template-columns: 1.15fr .85fr; align-items: center; padding-top: 72px; padding-bottom: 88px; }
	.ast-hero-demo { display: block; }
	.ast-stats { max-width: 520px; }
}

/* ---------- Sections ---------- */
.ast-section { padding: 48px 0; }
.ast-head { margin-bottom: 24px; }
.ast-head h2, .ast-sub-h { margin: 0; font-size: clamp(26px, 6vw, 36px); font-weight: 800; }
.ast-head p { margin: 8px 0 0; color: var(--c-ink-2); font-size: 16px; max-width: 640px; }
.ast-tests { padding-top: 40px; }
@media (min-width: 768px) { .ast-section { padding: 72px 0; } }

.ast-how { background: #fff; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.ast-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.ast-steps li { position: relative; padding: 20px; border-radius: var(--radius); background: var(--c-bg); border: 1px solid var(--c-line); }
.ast-step-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #eff4ff; color: var(--c-primary); }
.ast-step-ico svg, .ast-feat-ico svg { width: 24px; height: 24px; }
.ast-step-n { position: absolute; top: 16px; right: 18px; font-size: 40px; font-weight: 800; color: #e5eaf3; line-height: 1; }
.ast-steps h3, .ast-feat h3 { margin: 14px 0 6px; font-size: 18px; font-weight: 800; }
.ast-steps p, .ast-feat p { margin: 0; color: var(--c-ink-2); font-size: 15px; }
.ast-sub-h { margin-top: 56px !important; margin-bottom: 20px !important; font-size: clamp(22px, 5vw, 28px) !important; }
.ast-feats { display: grid; gap: 12px; }
.ast-feat { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--c-line); }
.ast-feat h3 { margin-top: 0; font-size: 17px; }
.ast-feat-ico { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: #fff7e0; color: #b45309; }
@media (min-width: 720px) {
	.ast-steps { grid-template-columns: repeat(3, 1fr); gap: 18px; }
	.ast-feats { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* ---------- FAQ ---------- */
.ast-qa { margin-bottom: 10px; border: 1px solid var(--c-line); border-radius: 14px; background: #fff; }
.ast-qa summary {
	position: relative; display: block; padding: 16px 48px 16px 18px; cursor: pointer; list-style: none;
	font-weight: 700; font-size: 16px; line-height: 1.4; border-radius: 14px;
}
.ast-qa summary::-webkit-details-marker { display: none; }
.ast-qa summary::after {
	content: ''; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
	border-right: 2.5px solid var(--c-ink-2); border-bottom: 2.5px solid var(--c-ink-2); transform: rotate(45deg); transition: transform .2s;
}
.ast-qa[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.ast-qa p { margin: 0; padding: 0 18px 18px; color: var(--c-ink-2); font-size: 15.5px; }

/* ---------- CTA band ---------- */
.ast-cta2 { padding: 0 0 56px; }
.ast-cta2-in {
	display: grid; gap: 18px; padding: 28px 22px; border-radius: 22px; color: #fff;
	background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-primary) 100%);
}
.ast-cta2 h2 { margin: 0; font-size: clamp(22px, 5vw, 30px); font-weight: 800; }
.ast-cta2 p { margin: 6px 0 0; color: #cdd9f5; }
@media (min-width: 720px) {
	.ast-cta2-in { grid-template-columns: 1fr auto; align-items: center; padding: 36px 40px; max-width: calc(1140px - 32px); }
}

/* ---------- Footer ---------- */
.ast-footer { background: var(--c-navy-2); color: #b9c8ec; font-size: 14px; padding-bottom: env(safe-area-inset-bottom, 0); }
.ast-footer-in { display: grid; gap: 20px; padding-top: 40px; padding-bottom: 24px; }
.ast-brand-inv { color: #fff; }
.ast-footer-brand p { margin: 12px 0 0; max-width: 420px; }
.ast-langs-inv { margin-left: 0; justify-self: start; background: rgba(255, 255, 255, .08); }
.ast-langs-inv a { color: #b9c8ec; }
.ast-langs-inv a.is-on { background: #fff; color: var(--c-navy); }
.ast-footer-bottom { padding-top: 18px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #8ea2cf; }
.ast-footer-bottom p { margin: 0 0 4px; }
@media (min-width: 720px) {
	.ast-footer-in { grid-template-columns: 1fr auto; align-items: start; }
	.ast-footer-bottom { display: flex; justify-content: space-between; gap: 20px; }
}

/* ---------- Generic pages ---------- */
.ast-prose h1 { font-size: clamp(28px, 6vw, 40px); }
.ast-404 { text-align: center; }
.ast-404-code { margin: 0; font-size: 80px; font-weight: 800; color: #dbe3f0; line-height: 1; }

/* ---------- Internal links to question lists ---------- */
.ast-qa-sec { padding-top: 0; }
.ast-qa-links { display: grid; gap: 10px; }
.ast-qa-links a {
	display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 14px;
	background: #fff; border: 1px solid var(--c-line); color: var(--c-ink); text-decoration: none;
	transition: border-color .15s, transform .15s;
}
.ast-qa-links a:hover { border-color: #a5b4fc; transform: translateY(-1px); }
.ast-qa-links strong { font-size: 16px; }
.ast-qa-links span { color: var(--c-primary); font-size: 14px; font-weight: 600; }
@media (min-width: 720px) { .ast-qa-links { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ast-qa-sec .ast-qa-links { grid-template-columns: repeat(4, 1fr); } }

.ast-footer-links { display: flex; flex-direction: column; gap: 8px; }
.ast-footer-h { margin: 0; color: #fff; font-weight: 700; }
.ast-footer-links a:not(.is-on) { color: #b9c8ec; text-decoration: none; }
.ast-footer-links a:hover { color: #fff; }
.ast-footer-links .ast-langs { margin-top: 8px; }

/* ---------- Question-list pages ---------- */
.ast-list-hero { color: #fff; background: linear-gradient(160deg, var(--c-navy) 0%, var(--c-navy-2) 100%); padding: 28px 0 40px; }
.ast-crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: #b9c8ec; }
.ast-crumbs a { color: #dbe6ff; }
.ast-list-hero h1 { margin: 14px 0 0; font-size: clamp(26px, 6.5vw, 40px); font-weight: 800; }
.ast-list-intro { margin: 14px 0 0; color: #cdd9f5; font-size: 16.5px; }
.ast-list-hero .ast-hero-cta { margin-top: 22px; }
.ast-list { padding-top: 28px; }
.ast-list-count { margin: 0 0 16px; color: var(--c-ink-2); font-weight: 600; }
.ast-qlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ast-qitem { padding: 18px 16px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); scroll-margin-top: calc(var(--header-h) + 12px); }
.ast-qitem-q { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.4; letter-spacing: 0; }
.ast-qitem-n { color: var(--c-primary); }
.ast-qitem-img { display: block; max-width: min(100%, 420px); max-height: 280px; width: auto; margin: 14px auto 2px; border-radius: 10px; }
.ast-qitem-answers { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.ast-qitem-answers li, .ast-qitem-a { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 9px 12px; border-radius: 10px; background: var(--c-bg); font-size: 15.5px; line-height: 1.45; color: var(--c-ink-2); }
.ast-qitem-answers b { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: #e8eef6; font-size: 12.5px; color: var(--c-ink-2); }
.ast-qitem-answers span, .ast-qitem-a span { flex: 1; }
.ast-qitem-answers svg, .ast-qitem-a svg { width: 20px; height: 20px; flex: none; color: var(--c-ok); margin-top: 1px; }
.ast-qitem-answers li.is-right, .ast-qitem-a.is-right { background: #ecfdf3; color: #14532d; font-weight: 600; box-shadow: inset 0 0 0 1.5px #86efac; }
.ast-qitem-answers li.is-right b { background: var(--c-ok); color: #fff; }
.ast-qitem-a { margin-top: 12px; }
.ast-qitem-alt { margin: 10px 0 0; padding-left: 10px; border-left: 3px solid var(--c-accent); color: var(--c-ink-2); font-size: 14px; font-style: italic; }
.ast-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ast-other { padding-top: 0; }
.ast-other h2 { margin: 0 0 14px; font-size: 22px; font-weight: 800; }
.ast-footer-links .ast-langs { align-self: flex-start; }
