/* =========================================================
   TEACHEROWSKI — Landing page
   ========================================================= */
:root {
  --brand: #B8521F;
  --brand-2: #E8622A;
  --brand-3: #F4A26B;
  --brand-soft: #FBE3D2;
  --ink: #1A120D;
  --ink-2: #2A1E17;
  --cream: #FBF6F0;
  --paper: #FFFFFF;
  --muted: #6E5F55;
  --line: rgba(26, 18, 13, .1);
  --radius: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --shadow: 0 30px 60px -20px rgba(120, 50, 15, .35);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--brand-2); color: #fff; }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--brand);
  display: grid; place-items: center;
  color: #fff;
  transition: clip-path 1.1s var(--ease-in-out);
  clip-path: inset(0 0 0 0);
}
.preloader.is-done { clip-path: inset(0 0 100% 0); }
.preloader__inner { display: grid; justify-items: center; gap: 22px; }
.preloader__logo {
  width: 120px; border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  animation: preLogo 1.6s var(--ease) both;
}
@keyframes preLogo { from { transform: scale(.6) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.preloader__word { display: flex; font-family: var(--display); font-weight: 700; font-size: clamp(22px, 4vw, 40px); letter-spacing: .08em; overflow: hidden; }
.preloader__word span { display: inline-block; transform: translateY(110%); animation: preChar .8s var(--ease) forwards; }
.preloader__word span:nth-child(n) { animation-delay: calc(var(--i, 0) * 40ms + 300ms); }
@keyframes preChar { to { transform: none; } }
.preloader__bar { width: 220px; height: 2px; background: rgba(255,255,255,.25); border-radius: 2px; overflow: hidden; }
.preloader__bar i { display: block; height: 100%; width: 0; background: #fff; transition: width .2s linear; }
.preloader__count { font-family: var(--display); font-size: 13px; opacity: .8; letter-spacing: .1em; }

/* ---------- Cursor ---------- */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 999; border-radius: 50%; }
.cursor {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1.5px solid var(--brand-2);
  display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s, opacity .3s;
  mix-blend-mode: normal;
}
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--brand-2); transition: opacity .3s, transform .3s; }
.cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(232, 98, 42, .12); }
.cursor.is-label { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--brand-2); border-color: var(--brand-2); }
.cursor__label { font-family: var(--display); font-size: 11px; font-weight: 600; color: #fff; opacity: 0; transition: opacity .2s; letter-spacing: .04em; }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label + .cursor-dot, .cursor.is-hover + .cursor-dot { opacity: 0; }
.cursor.is-hidden, .cursor.is-hidden + .cursor-dot { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none; } }
@media (hover: hover) and (pointer: fine) { body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor label { cursor: none; } }

/* ---------- Progress ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 120; background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: transform .5s var(--ease), padding .4s var(--ease), background .4s, box-shadow .4s;
}
.header.is-scrolled {
  padding: 10px 0;
  background: rgba(251, 246, 240, .78);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-hidden { transform: translateY(-110%); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 64px; height: 43px; object-fit: cover; border-radius: 12px; box-shadow: 0 8px 20px -6px rgba(184, 82, 31, .55); transition: transform .5s var(--ease); }
.brand:hover .brand__logo { transform: rotate(-8deg) scale(1.06); }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.nav { display: flex; gap: 6px; padding: 6px; border-radius: 99px; background: rgba(255,255,255,.55); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.nav__link { position: relative; padding: 8px 16px; border-radius: 99px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); transition: color .3s; z-index: 1; }
.nav__link::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--ink); transform: scale(.6); opacity: 0; transition: transform .4s var(--ease), opacity .3s; z-index: -1; }
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__link:hover::before, .nav__link.is-active::before { transform: none; opacity: 1; }
.nav__link.is-active::before { background: var(--brand); }
.header__actions { display: flex; align-items: center; gap: 14px; }
.header__phone { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; }
.header__phone svg { color: var(--brand); }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); position: relative; }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; background: #fff; border-radius: 2px; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 26px; }
body.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.mmenu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--brand);
  color: #fff;
  padding: 120px 28px 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0 at calc(100% - 46px) 42px);
  transition: clip-path .8s var(--ease-in-out);
}
body.menu-open .mmenu { clip-path: circle(150% at calc(100% - 46px) 42px); }
.mmenu__nav { display: grid; gap: 6px; }
.mmenu__nav a { font-family: var(--display); font-size: clamp(30px, 9vw, 48px); font-weight: 600; display: flex; align-items: baseline; gap: 14px; opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .6s var(--ease); }
.mmenu__nav em { font-style: normal; font-size: 13px; opacity: .6; }
body.menu-open .mmenu__nav a { opacity: 1; transform: none; }
body.menu-open .mmenu__nav a:nth-child(1) { transition-delay: .25s; }
body.menu-open .mmenu__nav a:nth-child(2) { transition-delay: .3s; }
body.menu-open .mmenu__nav a:nth-child(3) { transition-delay: .35s; }
body.menu-open .mmenu__nav a:nth-child(4) { transition-delay: .4s; }
body.menu-open .mmenu__nav a:nth-child(5) { transition-delay: .45s; }
body.menu-open .mmenu__nav a:nth-child(6) { transition-delay: .5s; }
.mmenu__foot { display: grid; gap: 6px; font-weight: 700; font-size: 18px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 99px;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 15px; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), color .4s;
}
.btn::before {
  content: ""; position: absolute; left: var(--x, 50%); top: var(--y, 50%);
  width: 0; height: 0; border-radius: 50%;
  background: var(--ink); transform: translate(-50%, -50%);
  transition: width .6s var(--ease), height .6s var(--ease);
  z-index: -1;
}
.btn:hover::before { width: 260%; height: 600%; }
.btn > * { position: relative; pointer-events: none; }
.btn svg { transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { --bg: linear-gradient(135deg, var(--brand-2), var(--brand)); background: var(--bg); box-shadow: 0 14px 30px -10px rgba(232, 98, 42, .65); }
.btn--primary:hover { box-shadow: 0 20px 40px -12px rgba(26, 18, 13, .5); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { color: #fff; }
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--lg { padding: 18px 30px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 140px 0 100px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  opacity: .6;
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.blob--1 { width: 520px; height: 520px; background: var(--brand-2); top: -120px; right: -100px; animation: float1 18s ease-in-out infinite; }
.blob--2 { width: 380px; height: 380px; background: var(--brand-3); bottom: -80px; left: -120px; animation: float2 22s ease-in-out infinite; opacity: .45; }
.blob--3 { width: 260px; height: 260px; background: #FFD3B0; top: 40%; left: 40%; animation: float1 26s ease-in-out infinite reverse; opacity: .6; }
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(-60px, 60px) scale(1.1); } 66% { transform: translate(40px, -30px) scale(.92); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(80px, -60px) scale(1.15); } }

.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 99px;
  background: rgba(255,255,255,.7); border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  font-size: 13.5px; font-weight: 700; color: var(--ink-2);
}
.pill__dot { width: 9px; height: 9px; border-radius: 50%; background: #22B573; box-shadow: 0 0 0 0 rgba(34,181,115,.6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(34,181,115,0); } 100% { box-shadow: 0 0 0 0 rgba(34,181,115,0); } }

.hero__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(42px, 7.2vw, 104px);
  line-height: .98; letter-spacing: -.035em;
  margin: 26px 0 26px;
}
.line { display: block; overflow: hidden; padding-bottom: .08em; }
.line__in { display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: 0 100%; transition: transform 1.2s var(--ease); }
.is-ready .line__in { transform: none; }
.is-ready .line:nth-child(2) .line__in { transition-delay: .1s; }
.is-ready .line:nth-child(3) .line__in { transition-delay: .2s; }
.hero__accent {
  font-style: normal; position: relative; display: inline-block;
  background: linear-gradient(100deg, var(--brand) 0%, var(--brand-2) 45%, var(--brand-3) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer { 0%,100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.hero__scribble { position: absolute; left: 0; bottom: -.12em; width: 100%; height: .3em; overflow: visible; }
.hero__scribble path { fill: none; stroke: var(--brand-2); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; transition: stroke-dashoffset 1.4s var(--ease) 1s; }
.is-ready .hero__scribble path { stroke-dashoffset: 0; }

.hero__text { font-size: clamp(16px, 1.35vw, 19px); color: var(--muted); max-width: 560px; }
.hero__text strong { color: var(--ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__meta { display: flex; align-items: center; gap: 16px; margin-top: 40px; font-size: 14px; color: var(--muted); line-height: 1.35; }
.hero__meta strong { color: var(--ink); }
.avatars { display: flex; }
.avatars span { width: 42px; height: 42px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--display); font-size: 14px; border: 3px solid var(--cream); margin-left: -12px; }
.avatars span:first-child { margin-left: 0; }

.hero__visual { position: relative; perspective: 1200px; display: grid; place-items: center; min-height: 520px; }
.tilt { position: relative; width: min(420px, 90%); aspect-ratio: 1; transform-style: preserve-3d; transition: transform .25s ease-out; }
.logo-card {
  position: absolute; inset: 20.4% 6%;
  border-radius: 36px; overflow: hidden;
  background: var(--brand-2);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.2) inset;
  transform: translateZ(40px);
  animation: cardIn 1.4s var(--ease) both .2s;
}
.logo-card img { width: 100%; height: 100%; object-fit: cover; }
.logo-card__shine { position: absolute; inset: 0; background: radial-gradient(circle at var(--sx, 30%) var(--sy, 20%), rgba(255,255,255,.45), transparent 45%); mix-blend-mode: soft-light; pointer-events: none; }
@keyframes cardIn { from { opacity: 0; transform: translateZ(40px) scale(.8) rotate(-6deg); } to { opacity: 1; transform: translateZ(40px); } }
.orbit { position: absolute; inset: 0; transform-style: preserve-3d; }
.chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 99px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 18px 40px -16px rgba(80, 30, 10, .35);
  font-weight: 700; font-size: 14px; white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.chip b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-family: var(--display); font-size: 12px; }
.chip--1 { top: 4%; left: -6%; animation-delay: -1s; }
.chip--2 { top: 16%; right: -10%; animation-delay: -2.5s; }
.chip--3 { bottom: 18%; left: -14%; animation-delay: -3.5s; }
.chip--4 { bottom: 2%; right: -2%; animation-delay: -4.5s; }
.chip--5 { top: 50%; right: -18%; animation-delay: -.5s; }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.badge-round { position: absolute; left: -2%; top: 52%; width: 120px; height: 120px; display: grid; place-items: center; }
.badge-round svg { position: absolute; inset: 0; animation: spin 16s linear infinite; }
.badge-round text { font-family: var(--display); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; fill: var(--ink); }
.badge-round span { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--brand-3); display: grid; place-items: center; font-size: 18px; }
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.scroll-hint__mouse { width: 24px; height: 38px; border: 2px solid currentColor; border-radius: 14px; display: flex; justify-content: center; padding-top: 6px; }
.scroll-hint__mouse i { width: 3px; height: 8px; border-radius: 2px; background: var(--brand-2); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: #fff; padding: 26px 0; overflow: hidden; transform: rotate(-2deg) scale(1.04); margin: 10px 0 40px; position: relative; z-index: 2; box-shadow: 0 20px 50px -20px rgba(0,0,0,.4); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.marquee span { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.6vw, 46px); letter-spacing: -.02em; white-space: nowrap; }
.marquee span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1.2px rgba(255,255,255,.85); }
.marquee i { font-style: normal; color: var(--brand-2); font-size: 26px; }

/* ---------- Stats ---------- */
.stats { padding: 40px 0 20px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 36px 24px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: var(--line); }
.stat__num { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 4.6vw, 64px); letter-spacing: -.04em; line-height: 1; background: linear-gradient(180deg, var(--ink) 30%, var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { margin-top: 10px; font-weight: 600; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section--dark { background: var(--ink); color: #fff; border-radius: 48px; margin: 0 12px; }
.section--tint { background: linear-gradient(180deg, transparent, var(--brand-soft) 30%, var(--brand-soft) 70%, transparent); }
.section__head { max-width: 760px; margin-bottom: 60px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section--dark .eyebrow, .eyebrow--light { color: var(--brand-3); }
.section__title { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4.6vw, 64px); line-height: 1.05; letter-spacing: -.035em; margin: 18px 0 18px; }
.section__title em, .contact__title em { font-style: normal; color: var(--brand-2); }
.section__lead { font-size: 18px; color: var(--muted); max-width: 560px; }

/* split text reveal */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.split.is-in .w > span { transform: none; }

/* generic reveal */
.reveal-up { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal-up.is-in { opacity: 1; transform: none; }

/* spotlight hover */
.spot { position: relative; isolation: isolate; }
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(232, 98, 42, .16), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.spot:hover::after { opacity: 1; }

/* ---------- Subjects ---------- */
.subjects { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.subject {
  grid-column: span 2;
  position: relative; overflow: hidden;
  background: var(--paper); border-radius: var(--radius);
  padding: 32px; min-height: 340px;
  border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .4s, opacity 1s var(--ease);
  transform-style: preserve-3d;
}
.subject:nth-child(1) { grid-column: span 4; }
.subject:nth-child(2) { grid-column: span 2; }
.subject:nth-child(4), .subject:nth-child(5) { grid-column: span 3; }
.subject:hover { box-shadow: 0 40px 70px -30px rgba(120, 50, 15, .4); border-color: rgba(232, 98, 42, .35); }
.subject--wide { background: linear-gradient(140deg, var(--brand-2), var(--brand) 70%); color: #fff; border: 0; }
.subject__icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); transition: transform .6s var(--ease), background .4s, color .4s; }
.subject__icon svg { width: 34px; height: 34px; }
.subject--wide .subject__icon { background: rgba(255,255,255,.18); color: #fff; }
.subject:hover .subject__icon { transform: rotate(-10deg) scale(1.08); }
.subject:not(.subject--wide):hover .subject__icon { background: var(--brand-2); color: #fff; }
.subject__tag { display: inline-block; padding: 5px 12px; border-radius: 99px; background: rgba(255,255,255,.2); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.subject h3 { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.02em; margin-bottom: 10px; line-height: 1.15; }
.subject--wide h3 { font-size: clamp(34px, 4vw, 56px); }
.subject p { color: var(--muted); font-size: 15.5px; max-width: 460px; }
.subject--wide p { color: rgba(255,255,255,.88); font-size: 17px; }
.subject__list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.subject__list li { padding: 7px 14px; border-radius: 99px; font-size: 13px; font-weight: 700; background: var(--cream); border: 1px solid var(--line); }
.subject--wide .subject__list li { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); }
.subject__big { position: absolute; right: -10px; bottom: -40px; font-family: var(--display); font-weight: 800; font-size: 200px; line-height: 1; letter-spacing: -.06em; color: var(--ink); opacity: .04; pointer-events: none; transition: transform .8s var(--ease), opacity .5s; }
.subject--wide .subject__big { color: #fff; opacity: .12; font-size: 300px; }
.subject:hover .subject__big { transform: translate(-20px, -14px) rotate(-6deg); opacity: .08; }
.subject--wide:hover .subject__big { opacity: .2; }

/* ---------- Teachers ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { padding: 10px 18px; border-radius: 99px; font-weight: 700; font-size: 14px; color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.15); transition: all .35s var(--ease); }
.filter:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.filter.is-active { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.teachers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.teacher {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--ink-2); border: 1px solid rgba(255,255,255,.08);
  transition: transform .6s var(--ease), opacity .5s var(--ease), border-color .4s;
}
.teacher.is-hidden { display: none; }
.teacher.is-entering { animation: tIn .7s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes tIn { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }
.teacher:hover { border-color: rgba(232, 98, 42, .5); transform: translateY(-6px); }
.teacher__photo { position: relative; aspect-ratio: 4 / 4.2; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, var(--brand-3), var(--brand-2) 45%, var(--brand) 100%); }
.teacher__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.teacher:hover .teacher__photo img { transform: scale(1.07); }
.teacher__initials { font-family: var(--display); font-weight: 700; font-size: 84px; color: rgba(255,255,255,.95); letter-spacing: -.04em; transition: transform .9s var(--ease); text-shadow: 0 10px 30px rgba(0,0,0,.15); }
.teacher:hover .teacher__initials { transform: scale(1.1) rotate(-4deg); }
.teacher__photo::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.25) 1px, transparent 1px); background-size: 14px 14px; opacity: .5; }
.teacher__badge { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 6px 12px; border-radius: 99px; font-size: 12px; font-weight: 800; background: rgba(26,18,13,.55); color: #fff; backdrop-filter: blur(8px); }
.teacher__overlay {
  position: absolute; inset: 0; z-index: 2; padding: 22px;
  display: flex; align-items: flex-end;
  background: linear-gradient(180deg, transparent 30%, rgba(26,18,13,.92));
  opacity: 0; transform: translateY(20px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  font-size: 14.5px; color: rgba(255,255,255,.92);
}
.teacher:hover .teacher__overlay { opacity: 1; transform: none; }
.teacher__info { padding: 20px 22px 24px; }
.teacher__subject { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-3); margin-bottom: 6px; }
.teacher__name { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.teacher__role { color: rgba(255,255,255,.6); font-size: 14px; margin-top: 2px; }
.teacher__exp { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,.8); }
.teacher__exp::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--cream); padding: 40px 34px 44px; transition: background .5s; }
.feature:hover { background: var(--paper); }
.feature__n { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--brand-2); display: inline-flex; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid currentColor; align-items: center; justify-content: center; margin-bottom: 26px; transition: background .4s, color .4s, transform .6s var(--ease); }
.feature:hover .feature__n { background: var(--brand-2); color: #fff; transform: rotate(360deg); }
.feature h3 { font-family: var(--display); font-weight: 600; font-size: 21px; margin-bottom: 10px; letter-spacing: -.01em; }
.feature p { color: var(--muted); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.process__left { position: sticky; top: 120px; }
.process__left .btn { margin-top: 30px; }
.process__steps { position: relative; display: grid; gap: 22px; padding-left: 4px; }
.steps__line { position: absolute; left: 31px; top: 30px; bottom: 30px; width: 2px; background: rgba(184, 82, 31, .18); border-radius: 2px; }
.steps__line i { display: block; width: 100%; height: 100%; background: linear-gradient(var(--brand-2), var(--brand)); transform-origin: top; transform: scaleY(0); }
.step { position: relative; display: flex; gap: 24px; padding: 26px 28px 26px 0; }
.step__dot { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; background: var(--paper); color: var(--brand); border: 2px solid rgba(184, 82, 31, .25); position: relative; z-index: 1; transition: background .5s, color .5s, border-color .5s, transform .6s var(--ease); }
.step.is-active .step__dot { background: var(--brand-2); color: #fff; border-color: var(--brand-2); transform: scale(1.08); box-shadow: 0 10px 30px -8px rgba(232, 98, 42, .7); }
.step h3 { font-family: var(--display); font-weight: 600; font-size: 22px; margin: 6px 0 6px; }
.step p { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: border-color .4s, box-shadow .4s; }
.faq__item[open] { border-color: rgba(232, 98, 42, .4); box-shadow: 0 20px 40px -24px rgba(120, 50, 15, .35); }
.faq__item summary { list-style: none; cursor: pointer; padding: 24px 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-weight: 700; font-size: 17px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); position: relative; transition: transform .5s var(--ease), background .4s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--brand); transform: translate(-50%, -50%); border-radius: 2px; transition: transform .4s var(--ease), background .4s; }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--brand-2); transform: rotate(180deg); }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: #fff; }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq__a { padding: 0 26px; color: var(--muted); display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease), padding .5s var(--ease); }
.faq__a > p { overflow: hidden; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; padding-bottom: 24px; }
.faq__a a { color: var(--brand); font-weight: 700; }

/* ---------- Contact ---------- */
.contact { position: relative; background: var(--ink); color: #fff; padding: clamp(90px, 11vw, 150px) 0 60px; overflow: hidden; border-radius: 48px 48px 0 0; margin-top: 40px; }
.contact__bg { position: absolute; inset: 0; pointer-events: none; }
.blob--4 { width: 520px; height: 520px; background: var(--brand-2); top: -200px; left: -150px; opacity: .35; animation: float2 20s ease-in-out infinite; }
.blob--5 { width: 420px; height: 420px; background: var(--brand); bottom: 10%; right: -150px; opacity: .4; animation: float1 24s ease-in-out infinite; }
.contact__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact__title { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 5vw, 70px); line-height: 1.02; letter-spacing: -.04em; margin: 18px 0 20px; }
.contact__info > p { color: rgba(255,255,255,.7); font-size: 18px; max-width: 480px; }
.contact__links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; }
.clink { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: background .4s, border-color .4s, transform .4s var(--ease); }
.clink:hover { background: rgba(232, 98, 42, .14); border-color: rgba(232, 98, 42, .5); }
.clink__ic { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--brand-2); display: grid; place-items: center; transition: transform .5s var(--ease); }
.clink:hover .clink__ic { transform: rotate(-12deg) scale(1.08); }
.clink__ic svg { width: 22px; height: 22px; color: #fff; }
.clink span:last-child { font-weight: 700; font-size: 15px; line-height: 1.3; word-break: break-word; }
.clink small { display: block; font-weight: 600; font-size: 12px; color: rgba(255,255,255,.55); letter-spacing: .04em; margin-bottom: 2px; }

.form { background: var(--cream); color: var(--ink); border-radius: 32px; padding: 40px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.form h3 { font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: -.02em; }
.form__sub { color: var(--muted); margin: 4px 0 26px; }
.field { position: relative; display: block; margin-bottom: 16px; }
.field input { width: 100%; padding: 26px 20px 10px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--paper); font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); outline: none; transition: border-color .3s, box-shadow .3s; }
.field input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(232, 98, 42, .15); }
.field span { position: absolute; left: 20px; top: 18px; color: var(--muted); font-weight: 600; pointer-events: none; transition: transform .3s var(--ease), font-size .3s, top .3s, color .3s; }
.field input:focus + span, .field input:not(:placeholder-shown) + span { top: 8px; font-size: 12px; color: var(--brand); }
.field.is-error input { border-color: #D93B3B; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.form__label { font-weight: 700; font-size: 14px; margin: 6px 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 10px 16px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 700; font-size: 14px; cursor: pointer; transition: all .3s var(--ease); }
.chips span:hover { border-color: var(--brand-3); }
.chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips input:focus-visible + span { box-shadow: 0 0 0 3px rgba(232, 98, 42, .4); }
.form__note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 14px; }

.map { position: relative; margin-top: 70px; border-radius: 32px; overflow: hidden; height: 420px; border: 1px solid rgba(255,255,255,.1); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }
.map__btn { position: absolute; left: 20px; bottom: 20px; padding: 12px 20px; border-radius: 99px; background: var(--brand-2); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 10px 30px -8px rgba(0,0,0,.5); transition: transform .4s var(--ease); }
.map__btn:hover { transform: translateY(-3px); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 40px 0 30px; overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding: 40px 0; border-top: 1px solid rgba(255,255,255,.1); }
.footer__brand img { width: 70px; border-radius: 18px; margin-bottom: 14px; }
.footer__brand p { font-family: var(--display); color: #fff; font-size: 18px; }
.footer__cols { display: flex; gap: 80px; flex-wrap: wrap; }
.footer__cols h4 { color: #fff; font-family: var(--display); font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.footer__cols a { display: block; padding: 4px 0; transition: color .3s, transform .3s var(--ease); }
.footer__cols a:hover { color: var(--brand-3); transform: translateX(4px); }
.footer__giant { font-family: var(--display); font-weight: 800; font-size: 13.4vw; line-height: .85; letter-spacing: -.05em; text-align: center; white-space: nowrap; background: linear-gradient(180deg, var(--brand-2), rgba(184, 82, 31, .05)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; margin: 10px 0 20px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; font-size: 14px; flex-wrap: wrap; }
.totop:hover { color: var(--brand-3); }

/* FAB */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, #2AABEE, #229ED9); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -8px rgba(34, 158, 217, .7); transform: scale(0); transition: transform .6s var(--ease); }
.fab.is-visible { transform: scale(1); }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #2AABEE; animation: ring 2.2s infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.fab svg { width: 28px; height: 28px; transform: translateX(-1px); }
.fab:hover { transform: scale(1.1) rotate(-8deg); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 200; transform: translate(-50%, 200%); visibility: hidden; padding: 16px 24px; border-radius: 18px; background: var(--ink); color: #fff; font-weight: 600; box-shadow: 0 20px 40px -10px rgba(0,0,0,.45); transition: transform .6s var(--ease); max-width: calc(100% - 40px); text-align: center; }
.toast.is-show { transform: translate(-50%, 0); visibility: visible; }
.toast { transition: transform .6s var(--ease), visibility .6s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__phone { display: none; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { min-height: 440px; order: -1; margin-top: -20px; }
  .tilt { width: min(360px, 80%); }
  .process, .faq-wrap, .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .process__left { position: static; }
}
@media (max-width: 860px) {
  .subjects { grid-template-columns: 1fr 1fr; }
  .subject, .subject:nth-child(n) { grid-column: span 1; }
  .subject:nth-child(1) { grid-column: span 2; }
  .features { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .header .btn--sm { display: none; }
  .hero { padding-top: 110px; }
  .hero__visual { min-height: 340px; }
  .chip { font-size: 12px; padding: 7px 12px 7px 7px; }
  .chip b { width: 28px; height: 28px; font-size: 11px; }
  .chip--5 { right: -6%; }
  .chip--3 { left: -4%; }
  .chip--1 { left: 0; }
  .chip--2 { right: -2%; }
  .badge-round { width: 90px; height: 90px; left: -4%; }
  .hero__cta .btn { width: 100%; }
  .subjects, .features { grid-template-columns: 1fr; }
  .subject:nth-child(1) { grid-column: span 1; }
  .subject { min-height: 0; padding: 26px; }
  .subject--wide .subject__big { font-size: 180px; }
  .section--dark { margin: 0; border-radius: 32px; }
  .contact { border-radius: 32px 32px 0 0; }
  .contact__links { grid-template-columns: 1fr; }
  .form { padding: 28px 22px; }
  .map { height: 320px; }
  .scroll-hint { display: none; }
}

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

/* yon tomonga toshishni oldini olish (sticky buzilmaydi) */
main { overflow-x: clip; }

@media (max-width: 600px) {
  .hero__visual { perspective: none; }
  .badge-round { display: none; }
  .chip--1 { top: 8%; left: 0; }
  .chip--2 { top: 12%; right: 0; left: auto; }
  .chip--3 { bottom: 12%; left: 0; }
  .chip--4 { bottom: 6%; right: 2%; }
  .chip--5 { top: 46%; right: -4%; }
}
body.menu-open .brand__name { color: #fff; }
body.menu-open .header { background: transparent; box-shadow: none; backdrop-filter: none; }
