/* Sadinov Academy — bosh sahifa.
   G'oya: matematika daftari. Katak qog'oz foni, logodagi to'q ko'k va to'q sariq,
   qo'lda yozilgandek formulalar (Caveat). Telefon uchun yozilgan, keng ekranda kengayadi. */
:root {
  --navy: #1b3a5c; --navy-2: #24507d; --ink: #1d2a3a; --muted: #5d6e82;
  --orange: #f28c28; --orange-2: #e07b17; --orange-soft: #fdebd7;
  --blue: #1e88e5; --blue-soft: #e3f0fc; --blue-ink: #0f5aa8;
  --paper: #fbfdff; --grid: #e2ebf5; --line: #dbe3ee; --red-ink: #c62828;
  --hand: "Caveat", "Segoe Print", cursive;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #fff; color: var(--ink); font: 17px/1.6 var(--font); }
a { color: var(--blue-ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0; }
h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 900; margin-bottom: 20px; }
h3 { font-size: 19px; font-weight: 800; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 18px; }
.block { padding: 56px 18px; }

/* katak qog'oz */
.paper {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ---------- tugmalar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 2px solid transparent;
  font: 800 16px var(--font); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s;
}
.btn-main { background: var(--orange); color: #fff; }
.btn-main:hover { background: var(--orange-2); }
.btn-line { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-line:hover { background: var(--blue-soft); }
.btn-light { background: #fff; color: var(--navy); min-height: 40px; padding: 0 16px; border-radius: 99px; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); min-height: 40px; padding: 0 16px; border-radius: 99px; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-tg { background: var(--blue); color: #fff; }
.btn-tg:hover { background: var(--blue-ink); }
.btn-wide { width: 100%; }

/* ---------- sarlavha */
.bar { background: var(--navy); position: sticky; top: 0; z-index: 20; }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand strong { display: block; font-size: 18px; font-weight: 900; line-height: 1.1; }
.brand small { display: block; font-size: 12px; color: #a9cff5; }
.bar-actions { display: flex; gap: 8px; }
@media (max-width: 640px) { .hide-sm { display: none; } }

/* ---------- asosiy blok */
.hero { border-bottom: 1px solid var(--line); }
.hero-in { display: grid; gap: 24px; padding-top: 48px; padding-bottom: 56px; position: relative; }
.hero h1 { font-size: clamp(32px, 6.4vw, 58px); font-weight: 900; letter-spacing: -.5px; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 34em; margin-top: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { position: relative; min-height: 150px; }
.hw { position: absolute; font-family: var(--hand); font-weight: 700; color: var(--blue-ink); font-size: 28px; white-space: nowrap; }
.hw-1 { top: 0; left: 2%; transform: rotate(-4deg); }
.hw-2 { top: 52px; left: 10%; transform: rotate(3deg); color: var(--navy-2); }
.hw-3 { top: 104px; left: 0; transform: rotate(-2deg); color: var(--navy-2); }
.hw-4 { top: 18px; right: 8%; font-size: 60px; color: var(--red-ink); transform: rotate(-10deg); line-height: 1; }
.hw-4::after { content: ""; position: absolute; inset: -8px -14px; border: 3px solid var(--red-ink); border-radius: 50%; transform: rotate(6deg); }
@media (min-width: 860px) {
  .hero-in { grid-template-columns: 1.35fr 1fr; align-items: center; padding-top: 80px; padding-bottom: 88px; }
  .hero-note { min-height: 280px; }
  .hw { font-size: 34px; }
  .hw-1 { top: 0; left: 0; } .hw-2 { top: 100px; left: 12%; } .hw-3 { top: 210px; left: 0; }
  .hw-4 { top: 120px; right: 0; font-size: 84px; }
}

/* ---------- yo'nalishlar */
.dirs { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dirs li { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 2px solid var(--line); border-radius: 16px; background: #fff; }
.dirs p { color: var(--muted); margin-top: 6px; font-size: 16px; }
.dir-mark {
  flex: none; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--orange-soft); color: var(--orange-2); font: 700 30px var(--hand);
}
@media (min-width: 860px) { .dirs { grid-template-columns: repeat(2, 1fr); } }

/* ---------- ustoz */
.teacher { background: var(--navy); color: #fff; }
.teacher-in { display: grid; gap: 28px; padding-top: 52px; padding-bottom: 52px; }
.teacher h2 { color: #fff; margin: 0; }
.teacher-card { display: flex; align-items: center; gap: 18px; }
.teacher-card img { background: #fff; border-radius: 18px; padding: 8px; }
.teacher-role { font-family: var(--hand); font-size: 26px; color: var(--orange); line-height: 1; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 16px 18px; }
.facts b { display: block; font-size: 24px; font-weight: 900; color: var(--orange); line-height: 1.2; }
.facts span { color: #d6e6f7; font-size: 16px; }
@media (min-width: 860px) { .teacher-in { grid-template-columns: 1fr 2fr; align-items: center; } .facts { grid-template-columns: repeat(2, 1fr); } }

/* ---------- nega biz */
.why { display: grid; gap: 14px; }
.why-item { padding: 22px; border-radius: 16px; background: var(--blue-soft); }
.why-item p { color: #2c4460; margin-top: 8px; font-size: 16px; }
.why-main { background: var(--navy); }
.why-main h3 { color: #fff; font-size: 23px; }
.why-main p { color: #d6e6f7; }
@media (min-width: 860px) { .why { grid-template-columns: 1.3fr 1fr 1fr; } }

/* ---------- kun masalasi (daftar varag'i) */
.sheet {
  position: relative; max-width: 760px; margin: 0 auto; padding: 30px 26px 26px 64px;
  border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 10px 0 -4px #eef3f9, 0 18px 0 -8px #e3ebf5;
}
.sheet::before { content: ""; position: absolute; top: 0; bottom: 0; left: 44px; width: 2px; background: #f3a6a6; }
.sheet-date { font-family: var(--hand); font-size: 26px; color: var(--red-ink); line-height: 1; }
.sheet-q { font-size: clamp(20px, 2.8vw, 25px); font-weight: 800; color: var(--navy); margin: 14px 0 20px; line-height: 1.4; }
.sheet-foot { margin-top: 22px; font-size: 14px; color: var(--muted); }
@media (max-width: 520px) { .sheet { padding-left: 48px; } .sheet::before { left: 32px; } }

/* ---------- ariza */
.form-block { display: grid; gap: 26px; }
.form-intro p { color: var(--muted); }
.form-alt { margin-top: 12px; font-weight: 700; }
.lead-form { display: grid; gap: 16px; padding: 24px; border-radius: 18px; border: 2px solid var(--line); background: #fff; }
.field { display: grid; gap: 6px; font-weight: 800; color: var(--navy); font-size: 15px; border: 0; margin: 0; padding: 0; }
.field legend { padding: 0; margin-bottom: 6px; }
.field input[type=text] {
  min-height: 50px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px;
  font: 600 17px var(--font); color: var(--ink); background: #fbfcfe; width: 100%;
}
.field input[type=text]:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px var(--blue-soft); background: #fff; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; font-weight: 700; color: var(--ink); cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--orange); margin: 0; }
.choice:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); }
.choices ul, .choices li { list-style: none; margin: 0; padding: 0; }
.err { color: var(--red-ink); font-weight: 700; font-size: 14px; }
.hp-wrap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent { padding: 28px; border-radius: 18px; background: #e2f4ea; border: 2px solid #b6e0c6; }
.sent h3 { color: #1d6b3e; }
.sent p { color: #1d6b3e; margin-top: 6px; }
@media (min-width: 860px) { .form-block { grid-template-columns: 1fr 1.2fr; align-items: start; } }

/* ---------- kontaktlar */
.contacts { background: var(--navy); color: #fff; padding: 52px 0 20px; }
.contacts h2 { color: #fff; }
.contacts-in { display: grid; gap: 24px; }
.addr { font-size: 20px; font-weight: 700; }
.map { display: inline-block; margin-top: 10px; color: #a9cff5; font-weight: 700; }
.contact-btns { display: grid; gap: 12px; }
.copy { margin-top: 36px; color: #8fa9c6; font-size: 14px; }
@media (min-width: 860px) { .contacts-in { grid-template-columns: 1fr auto; align-items: center; } }

/* tepadagi yopishqoq panel sakralgan bo'lim sarlavhasini yopmasin */
[id] { scroll-margin-top: 80px; }

/* "10/10" belgisi kengroq */
.dir-mark-wide { width: auto; min-width: 56px; padding: 0 12px; font-size: 26px; }

/* kun masalasi: javob formasi va kechagi natija */
.answer-form { display: grid; gap: 14px; }
.answer-row { display: grid; gap: 14px; }
@media (min-width: 640px) { .answer-row { grid-template-columns: 1fr 1fr; } }
.answer-form .btn { justify-self: start; }
.sheet .sheet-foot { margin-top: 4px; }
.sheet-sent { margin-top: 6px; }
.yesterday { max-width: 760px; margin: 22px auto 0; padding: 20px 24px; border-radius: 16px; background: var(--blue-soft); }
.y-title { font-family: var(--hand); font-size: 26px; color: var(--blue-ink); line-height: 1; }
.y-q { font-weight: 800; color: var(--navy); margin-top: 8px; }
.y-a { margin-top: 6px; color: #2c4460; font-size: 16px; }
.y-w { margin-top: 10px; font-weight: 800; color: var(--orange-2); }
