/* ==========================================================================
   Aubakirova School — global stylesheet
   Concept: concert poster / philharmonic playbill
   Palette: ivory #F4EFE6 · ink #16120F · vermilion #C8271F
   ========================================================================== */

:root {
  --paper: #F4EFE6;
  --ink: #16120F;
  --red: #C8271F;
  --red-dark: #A31D16;
  --muted: #B7AFA3;
  --ink-70: #4A423C;
  --line: #16120F;
  --maxw: 1200px;
  --docw: 800px;
  --pad: 24px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  object-fit: cover;
}

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: "Alumni Sans", "Arial Narrow", Impact, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 0.92;
  margin: 0;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.ink :focus-visible,
.red :focus-visible {
  outline-color: var(--paper);
}

/* ---------- Layout primitives ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.band { padding: 96px 0; }
.band--tight { padding: 56px 0; }

.paper { background: var(--paper); color: var(--ink); }

.ink {
  background: var(--ink);
  color: var(--paper);
}
.ink h1, .ink h2, .ink h3 { color: var(--paper); }

.red {
  background: var(--red);
  color: var(--paper);
}
.red h1, .red h2, .red h3 { color: var(--paper); }

.rule-top { border-top: 2px solid var(--ink); }

/* ---------- Ribbon + header ---------- */

.ribbon {
  height: 6px;
  background: var(--red);
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo {
  font-family: "Alumni Sans", "Arial Narrow", Impact, sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.logo:hover { color: var(--red); }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-align: center;
  padding: 16px 30px;
  border: 2px solid var(--red);
  background: var(--red);
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.btn--sm { padding: 11px 20px; font-size: 13px; }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--onink {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
}
.btn--onink:hover {
  background: var(--paper);
  color: var(--ink);
}

.btn--onred {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn--onred:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn--big {
  font-size: 17px;
  padding: 20px 40px;
}

/* ---------- Eyebrow / section heads ---------- */

.eyebrow {
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0 0 18px;
}
.paper .eyebrow { color: var(--red); }
.ink .eyebrow { color: var(--muted); }
.red .eyebrow { color: var(--paper); }

.h-sec {
  font-size: clamp(40px, 6vw, 88px);
  margin-bottom: 32px;
}

.sub {
  font-size: 18px;
  max-width: 62ch;
}
.ink .sub { color: var(--muted); }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 55fr 45fr;
  border-bottom: 2px solid var(--ink);
}

.hero__text {
  padding: 88px var(--pad) 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: calc(var(--maxw) * 0.55 + var(--pad));
  margin-left: auto;
  width: 100%;
}

.hero h1 {
  font-size: clamp(64px, 7.6vw, 118px);
  line-height: 0.86;
  margin: 0 0 28px;
}
.hero h1 .l {
  display: block;
  white-space: nowrap;
}
/* Longest line sets the ceiling so nothing wraps and the stack stays tight */
.hero h1 .l:last-child { font-size: 0.86em; }
.hero h1 .accent { color: var(--red); }

.hero__lede {
  font-size: 19px;
  line-height: 1.55;
  max-width: 46ch;
  margin-bottom: 36px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__media {
  position: relative;
  min-height: 560px;
  background: var(--ink);
}
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 44px 28px;
  border-left: 2px solid rgba(244, 239, 230, 0.22);
}
.stat:first-child { border-left: 0; }

.stat__num {
  font-family: "Alumni Sans", "Arial Narrow", Impact, sans-serif;
  font-weight: 700;
  font-size: clamp(64px, 9vw, 128px);
  line-height: 0.82;
  letter-spacing: -0.02em;
  color: var(--paper);
  display: block;
}

.stat__label {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---------- Split (text + photo) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.split--wide { gap: 64px; }

.split__media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  max-height: 620px;
}

/* ---------- Numbered items ---------- */

.numlist {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.numlist li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 2px solid var(--ink);
  align-items: start;
}
.numlist li:last-child { border-bottom: 2px solid var(--ink); }

.ink .numlist li { border-color: rgba(244, 239, 230, 0.25); }

.num {
  font-family: "Alumni Sans", "Arial Narrow", Impact, sans-serif;
  font-weight: 700;
  font-size: 58px;
  line-height: 0.8;
  color: var(--red);
  letter-spacing: -0.02em;
}
.red .num { color: var(--paper); }

.numlist h3 {
  font-size: 30px;
  margin-bottom: 8px;
}
.numlist p {
  font-size: 16.5px;
  line-height: 1.55;
}
.ink .numlist p { color: var(--muted); }

/* ---------- Program columns ---------- */

.cols3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 48px;
}

.col {
  padding: 36px 34px;
  border-left: 2px solid rgba(244, 239, 230, 0.25);
}
.col:first-child { border-left: 0; padding-left: 0; }
.col:last-child { padding-right: 0; }

.col .num { display: block; margin-bottom: 16px; font-size: 64px; }
.col h3 { font-size: 38px; margin-bottom: 14px; }
.col p { font-size: 16.5px; }
.ink .col p { color: var(--muted); }

/* ---------- Full-bleed photo strip ---------- */

.strip {
  width: 100%;
  height: clamp(280px, 42vw, 520px);
}
.strip img {
  width: 100%;
  height: 100%;
}

/* ---------- Price cards ---------- */

.prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.price {
  border: 2px solid var(--ink);
  padding: 32px 28px 34px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.price__num {
  font-family: "Alumni Sans", "Arial Narrow", Impact, sans-serif;
  font-weight: 700;
  font-size: 46px;
  line-height: 0.8;
  color: var(--red);
  margin-bottom: 18px;
}

.price h3 {
  font-size: 32px;
  margin-bottom: 16px;
  min-height: 2.2em; /* keeps prices on a shared baseline across cards */
}

.price__amount {
  font-family: "Alumni Sans", "Arial Narrow", Impact, sans-serif;
  font-weight: 700;
  font-size: clamp(42px, 4.4vw, 62px);
  line-height: 0.85;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.price__per {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-70);
  margin-bottom: 20px;
}

.price p {
  font-size: 16px;
  line-height: 1.55;
}

.note {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  border-top: 2px solid var(--ink);
  padding-top: 28px;
}
.note p {
  font-size: 17px;
  max-width: 58ch;
  margin: 0;
}

/* ---------- Courses (red band) ---------- */

.courses {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
  margin-top: 44px;
}

.course {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 2px solid rgba(244, 239, 230, 0.35);
}

.course .num { font-size: 44px; }

.course span.t {
  font-family: "Alumni Sans", "Arial Narrow", Impact, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.courses-foot {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.courses-foot p { font-size: 18px; margin: 0; }
.courses-foot img { width: 100%; height: clamp(240px, 30vw, 380px); }

/* ---------- Camp ---------- */

.camp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.camp img { width: 100%; height: clamp(240px, 28vw, 340px); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* Мини-форма заявки в тёмной секции контактов */
.lead-form {
  margin-top: 32px;
  max-width: 460px;
}

.lead-form .field label { color: var(--paper); }
.lead-form .field .req { color: var(--red); }
.lead-form .btn { width: 100%; }

.lead-form__done {
  display: none;
  border: 2px solid var(--paper);
  padding: 24px 22px;
  font-size: 17px;
  color: var(--paper);
}
.lead-form.is-done form { display: none; }
.lead-form.is-done .lead-form__done { display: block; }

.lead-form__alt { margin-top: 20px; }
.lead-form__alt .btn { width: 100%; max-width: 460px; }

.contact-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-lines li {
  padding: 18px 0;
  border-top: 2px solid rgba(244, 239, 230, 0.25);
  font-size: 17px;
}
.contact-lines li:last-child { border-bottom: 2px solid rgba(244, 239, 230, 0.25); }

.contact-lines .k {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 6px;
}

.contact-lines a { text-decoration: none; border-bottom: 1px solid rgba(244, 239, 230, 0.5); }
.contact-lines a:hover { color: var(--red); border-bottom-color: var(--red); }

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: var(--muted);
  padding: 56px 0 44px;
  font-size: 14px;
  line-height: 1.7;
  border-top: 6px solid var(--red);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}

.footer strong { color: var(--paper); font-weight: 700; }

.footer__name {
  font-family: "Alumni Sans", "Arial Narrow", Impact, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 30px;
  line-height: 1;
  color: var(--paper);
  margin-bottom: 18px;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__links li { margin-bottom: 10px; }
.footer__links a {
  text-decoration: none;
  border-bottom: 1px solid rgba(183, 175, 163, 0.5);
}
.footer__links a:hover { color: var(--paper); border-bottom-color: var(--paper); }

.footer__bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(183, 175, 163, 0.3);
  font-size: 13px;
}

/* ---------- Page head (inner pages) ---------- */

.pagehead {
  border-bottom: 2px solid var(--ink);
  padding: 72px 0 56px;
}
.pagehead h1 {
  font-size: clamp(48px, 8vw, 116px);
  margin: 0;
}
.pagehead .sub { margin-top: 22px; }

/* ---------- Payment page ---------- */

.pay {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}

.field { margin-bottom: 26px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 9px;
}

.field .req { color: var(--red); }

.field input,
.field select {
  width: 100%;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  color: var(--ink);
  background: #FFFFFF;
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 15px 16px;
  appearance: none;
  -webkit-appearance: none;
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, #16120F 50%),
                    linear-gradient(135deg, #16120F 50%, transparent 50%);
  background-position: calc(100% - 22px) calc(50% + 2px), calc(100% - 15px) calc(50% + 2px);
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
  padding-right: 46px;
}

.field input:focus,
.field select:focus {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.field .hint {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-70);
}

.field .err {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  display: none;
}
.field.is-invalid .err { display: block; }
.field.is-invalid input,
.field.is-invalid select { border-color: var(--red); }

.pay form .btn { width: 100%; }

.result {
  display: none;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 32px 30px;
  margin-top: 32px;
}
.result.is-visible { display: block; }
.result h2 {
  font-size: 34px;
  margin-bottom: 14px;
}
.result p { color: var(--muted); font-size: 16.5px; }

.req-box {
  border: 2px solid var(--ink);
  padding: 32px 30px;
}
.req-box h2 { font-size: 34px; margin-bottom: 22px; }

.req-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 16px;
}
.req-list li {
  padding: 12px 0;
  border-top: 1px solid rgba(22, 18, 15, 0.2);
}
.req-list li:first-child { border-top: 0; padding-top: 0; }
.req-list .k {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-70);
  margin-bottom: 4px;
}
.req-list .v { font-weight: 700; word-break: break-word; }

.pay-foot {
  margin-top: 48px;
  border-top: 2px solid var(--ink);
  padding-top: 24px;
  font-size: 16px;
}
.pay-foot a { font-weight: 700; }

/* ---------- Legal documents ---------- */

.doc {
  max-width: var(--docw);
  margin: 0 auto;
  padding: 64px var(--pad) 88px;
}

.doc h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  margin-bottom: 18px;
}

.doc .meta {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-70);
  padding-bottom: 26px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 40px;
}

.doc h2 {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
  font-size: 22px;
  margin: 44px 0 14px;
}

.doc h3 {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.4;
  font-size: 18px;
  margin: 28px 0 10px;
}

.doc p,
.doc li { font-size: 17px; line-height: 1.65; }

.doc ul,
.doc ol { padding-left: 22px; margin: 0 0 18px; }
.doc li { margin-bottom: 8px; }

.doc a { font-weight: 700; }

.doc .callout {
  border-left: 4px solid var(--red);
  padding: 4px 0 4px 20px;
  margin: 24px 0;
}

.doc .req-flat {
  border: 2px solid var(--ink);
  padding: 26px 24px;
  margin-top: 20px;
  font-size: 16.5px;
  line-height: 1.75;
}

.doc-nav {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
  font-size: 16px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .nav { gap: 18px; }
  .nav a { font-size: 13px; }
}

@media (max-width: 980px) {
  .nav__links { display: none; }
}

@media (max-width: 900px) {
  body { font-size: 16.5px; }
  .band { padding: 64px 0; }
  .band--tight { padding: 44px 0; }

  .hero { grid-template-columns: 1fr; }
  .hero__text {
    max-width: none;
    margin: 0;
    padding: 56px var(--pad) 48px;
  }
  .hero__media { min-height: 0; height: clamp(300px, 62vw, 460px); }
  .hero__media img { position: static; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 2px solid rgba(244, 239, 230, 0.22); padding: 32px 20px; }
  .stat:nth-child(1), .stat:nth-child(2) { border-top: 0; }
  .stat:nth-child(even) { border-left: 2px solid rgba(244, 239, 230, 0.22); }

  .split,
  .split--wide,
  .camp,
  .contact-grid,
  .courses-foot,
  .pay { grid-template-columns: 1fr; gap: 40px; }

  .split__media img { min-height: 300px; max-height: 420px; }

  .cols3 { grid-template-columns: 1fr; margin-top: 32px; }
  .col {
    border-left: 0;
    border-top: 2px solid rgba(244, 239, 230, 0.25);
    padding: 30px 0;
  }
  .col:first-child { border-top: 0; padding-top: 0; }
  .col:last-child { padding-bottom: 0; }

  .prices { grid-template-columns: 1fr; gap: 18px; }

  .courses { grid-template-columns: 1fr; }

  .doc { padding: 48px var(--pad) 64px; }
}

@media (max-width: 560px) {
  :root { --pad: 18px; }

  .header__inner { min-height: 62px; }
  .logo { font-size: 22px; }

  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }

  .hero__lede { font-size: 17.5px; }

  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0 !important; border-top: 2px solid rgba(244, 239, 230, 0.22); }
  .stat:nth-child(1) { border-top: 0; }
  .stat__num { font-size: 76px; }

  .numlist li { grid-template-columns: 62px 1fr; gap: 14px; }
  .num { font-size: 44px; }

  .course { grid-template-columns: 52px 1fr; gap: 12px; }
  .course .num { font-size: 34px; }
  .course span.t { font-size: 25px; }

  .note { flex-direction: column; align-items: stretch; }
  .note .btn { width: 100%; }

  .price { padding: 26px 22px 28px; }
  .req-box, .result { padding: 26px 22px; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }

  .btn--big { padding: 18px 26px; font-size: 16px; }
}
