/* Salohiyat maktabi — salohiyatschool.uz */
:root {
  --brand: #2443d0;
  --brand-deep: #182f9e;
  --ink: #131c4a;
  --ink-soft: #4a5378;
  --line: #dfe3f2;
  --paper: #ffffff;
  --tint: #eef1fc;
  --step: #dfe5fb;
  --ok: #17845a;
  --late: #b86a00;
  --radius: 14px;
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 24px; }
@media (max-width: 480px) { .wrap { padding-inline: 18px; } }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__row { display: flex; align-items: center; gap: 28px; height: 68px; }
.header__logo img { width: 152px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-soft); }
.nav a:hover { color: var(--brand); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; }
.lang button {
  border: 0; background: none; cursor: pointer; font: 600 13px/1 var(--body);
  letter-spacing: .04em; color: var(--ink-soft); padding: 7px 11px; border-radius: 999px;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.burger { display: none; }

@media (max-width: 820px) {
  .header__row { gap: 12px; }
  .lang { margin-left: auto; }
  .burger {
    display: grid; place-content: center; gap: 6px;
    width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
  }
  .burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px 18px 16px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 12px;
  font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-deep); }
.btn--ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); background: #fff; }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand); }
.btn--light { background: #fff; color: var(--ink); }
.btn--outline { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); }
.btn--outline:hover { box-shadow: inset 0 0 0 1.5px #fff; }

/* ---------- Hero ---------- */
.hero { padding-block: 72px 0; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: end; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 18px;
}
h1 {
  font: 700 clamp(36px, 5.4vw, 62px)/1.08 var(--display);
  letter-spacing: -.02em;
}
.lead { margin-top: 22px; max-width: 34em; font-size: 19px; color: var(--ink-soft); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Logotipdagi zinapoya: 7 → 11 */
.stairs {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; gap: 6px;
  height: 340px;
}
.stairs li {
  height: calc(34% + var(--i) * 16.5%);
  background: var(--step);
  border-radius: 12px 12px 0 0;
  padding: 14px 10px;
  display: flex; flex-direction: column; justify-content: flex-start;
  color: var(--brand-deep);
  animation: rise .7s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(var(--i) * 80ms);
}
.stairs li:last-child { background: var(--brand); color: #fff; }
.stairs b { font: 700 clamp(24px, 3vw, 36px)/1 var(--display); }
.stairs span { font-size: 13px; font-weight: 500; opacity: .8; margin-top: 4px; }
@keyframes rise { from { transform: translateY(24px); opacity: .4; } }

.facts {
  margin: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink);
}
.facts div { padding: 22px 20px 30px 0; }
.facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts dt { font: 700 32px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.facts dd { margin: 6px 0 0; color: var(--ink-soft); font-size: 15px; }

@media (max-width: 860px) {
  .hero { padding-top: 44px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .stairs { height: 220px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 400px) {
  .stairs span { display: none; }
  .facts dt { font-size: 26px; }
}

/* ---------- Sections ---------- */
.section { padding-block: 96px; }
.section--tint { background: var(--tint); }
.section--ink { background: var(--ink); color: #fff; }
h2 { font: 700 clamp(28px, 3.6vw, 40px)/1.15 var(--display); letter-spacing: -.015em; }
.section__lead { margin-top: 14px; max-width: 36em; color: var(--ink-soft); }
@media (max-width: 600px) { .section { padding-block: 64px; } }

/* ---------- Maktab kuni ---------- */
.day { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.day__intro p { margin-top: 16px; color: var(--ink-soft); max-width: 30em; }
.subjects { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.subjects li {
  font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: 999px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line);
}
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--ink); }
.timeline li {
  display: grid; grid-template-columns: 140px 1fr; align-items: baseline; gap: 16px;
  padding: 16px 0 16px 24px; position: relative;
  border-bottom: 1px solid var(--line);
}
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 24px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--paper);
}
.timeline time { font: 600 16px/1 var(--body); font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.timeline span { font-weight: 600; }
.timeline span b { font: 700 20px/1 var(--display); }
.timeline span i { font-style: normal; }
.timeline__break { color: var(--ink-soft); }
.timeline__break::before { background: var(--paper) !important; box-shadow: inset 0 0 0 2px var(--ink-soft), 0 0 0 3px var(--paper) !important; }
.timeline__break span { font-weight: 500; font-style: italic; }
@media (max-width: 860px) { .day { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 420px) { .timeline li { grid-template-columns: 112px 1fr; } }

/* ---------- Ilova ---------- */
.app { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.app__text > p { margin-top: 16px; color: var(--ink-soft); max-width: 32em; }
.features {
  list-style: none; padding: 0; margin: 36px 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px;
}
.features li { border-top: 2px solid var(--brand); padding-top: 14px; }
.features h3 { font-size: 17px; font-weight: 700; }
.features p { margin-top: 6px; font-size: 15px; color: var(--ink-soft); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--ink); color: #fff; padding: 10px 20px 10px 16px; border-radius: 12px; min-height: 54px;
  transition: background .15s;
}
.store:hover { background: var(--brand-deep); }
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: flex; flex-direction: column; font-weight: 600; font-size: 17px; line-height: 1.1; }
.store small { font-size: 11px; font-weight: 500; opacity: .75; letter-spacing: .02em; }

.phone { margin: 0; justify-self: center; width: min(320px, 100%); }
.phone__screen {
  background: #fff; border-radius: 34px; padding: 26px 18px 22px;
  box-shadow: 0 0 0 10px var(--ink), 0 30px 60px -20px rgba(19, 28, 74, .45);
}
.phone__head { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--step); color: var(--brand-deep); font-weight: 700; font-size: 14px;
}
.phone__head b { display: block; font-size: 16px; }
.phone__head small { color: var(--ink-soft); font-size: 13px; }
.phone__label {
  margin: 20px 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
}
.phone__list { list-style: none; margin: 0; padding: 0; }
.phone__list li {
  display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 8px;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.phone__list li:last-child { border-bottom: 0; }
.phone__list span { font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.phone__list em { font-style: normal; font-weight: 500; }
.st { font-style: normal; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; }
.st--ok { color: var(--ok); background: #e3f4ec; }
.st--late { color: var(--late); background: #fdf0dc; }
.st--wait { color: var(--ink-soft); background: var(--tint); font-variant-numeric: tabular-nums; }
.phone__grades { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phone__grades div { background: var(--tint); border-radius: 12px; padding: 10px 12px; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; }
.phone__grades b { grid-row: span 2; font: 700 28px/1 var(--display); color: var(--brand); align-self: center; }
.phone__grades small { font-size: 12px; font-weight: 500; }
.phone__grades span { font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.phone figcaption { margin-top: 26px; text-align: center; font-size: 13px; color: var(--ink-soft); }

@media (max-width: 920px) {
  .app { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; gap: 22px; }
}

/* ---------- Filiallar ---------- */
.branches {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.branches li {
  position: relative; padding: 26px 22px 24px; border-radius: var(--radius);
  background: #fff; box-shadow: inset 0 0 0 1px var(--line);
}
.branches li::before {
  content: ""; display: block; width: 28px; height: 22px; margin-bottom: 26px;
  /* logotipdagi pog'ona */
  background: linear-gradient(var(--brand) 0 0) 0 100% / 10px 8px no-repeat,
              linear-gradient(var(--brand) 0 0) 9px 100% / 10px 15px no-repeat,
              linear-gradient(var(--brand) 0 0) 18px 100% / 10px 22px no-repeat;
}
.branches h3 { font: 700 20px/1.2 var(--display); }
.branches p { margin-top: 6px; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 900px) { .branches { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .branches { grid-template-columns: 1fr; } }

/* ---------- Aloqa ---------- */
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.contact p { margin-top: 12px; color: rgba(255,255,255,.75); max-width: 34em; }
.contact__links { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.footer { padding-block: 32px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer__row img { width: 122px; }
.footer__row a { margin-left: auto; }
@media (max-width: 600px) { .footer__row a { margin-left: 0; } }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stairs li { animation: none; }
}
