/* ============================================================
   Ollympus — premium light landing
   ============================================================ */

:root {
  --bg:        #f7f5ef;
  --bg-tint:   #efece2;
  --surface:   #ffffff;
  --ink:       #14140f;
  --ink-soft:  #4a4a42;
  --ink-mute:  #7b7b70;
  --line:      #e2ddd0;
  --gold:      #b8893b;
  --gold-deep: #96692a;
  --accent:    #1f3a2e;   /* deep laurel green */
  --accent-2:  #2f5a45;
  --dark:      #14140f;
  --radius:    18px;
  --radius-lg: 28px;
  --shadow:    0 20px 60px -30px rgba(20,20,15,.35);
  --shadow-sm: 0 8px 30px -18px rgba(20,20,15,.4);
  --maxw:      1200px;
  --ease:      cubic-bezier(.22,.61,.36,1);
  --serif:     "Unbounded", "Inter", system-ui, sans-serif;
  --sans:      "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */
h1,h2,h3 { font-family: var(--serif); font-weight: 700; line-height: 1.08; letter-spacing: -.01em; margin: 0; }

.section__kicker {
  display: inline-block; font-family: var(--sans); font-weight: 600;
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 14px;
}
.section__kicker--light { color: #e7c98d; }
.section__title { font-size: clamp(1.9rem, 4.4vw, 3.4rem); }
.section__sub { color: var(--ink-soft); font-size: 1.1rem; max-width: 620px; margin: 18px auto 0; }

.accent { color: var(--gold-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid transparent; border-radius: 100px; font-weight: 600;
  padding: 14px 26px; font-size: 1rem; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn--sm  { padding: 10px 18px; font-size: .92rem; }
.btn--lg  { padding: 17px 34px; font-size: 1.05rem; }
.btn--primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -18px rgba(20,20,15,.6); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px -24px rgba(0,0,0,.5); }
.header__inner { display: flex; align-items: center; gap: 24px; height: 74px; }

.logo { display: inline-flex; align-items: center; gap: 11px; font-family: var(--serif); font-weight: 700; font-size: 1.28rem; letter-spacing: -.02em; }
.logo__mark {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #f4e5c6; font-size: 1.25rem; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.logo--light { color: #fff; }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-size: .96rem; color: var(--ink-soft); position: relative; padding: 4px 0; transition: color .2s; }
.nav a::after { content:""; position:absolute; left:0; bottom:-2px; width:0; height:2px; background: var(--gold); transition: width .3s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.header__actions { display: flex; gap: 10px; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; margin-left: auto; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 12px clamp(20px,5vw,48px) 24px; border-top: 1px solid var(--line); background: var(--bg); }
.mobile-nav a { padding: 12px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 14px; border-bottom: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(70px, 12vw, 150px) 0 clamp(50px, 8vw, 96px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__formula {
  position: absolute; left: var(--x); top: var(--y);
  font-family: var(--serif); font-size: clamp(1rem, 2.4vw, 1.9rem); font-weight: 400;
  color: rgba(20,20,15,.06); white-space: nowrap; user-select: none;
  animation: float 9s ease-in-out infinite; animation-delay: var(--d);
}
@keyframes float { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-18px) } }

.hero__inner { position: relative; text-align: center; }
.eyebrow {
  display: inline-block; font-weight: 600; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-deep); padding: 8px 18px; border: 1px solid var(--line); border-radius: 100px;
  background: var(--surface); margin-bottom: 26px;
}
.hero__title { font-size: clamp(2.4rem, 6.5vw, 5.2rem); max-width: 15ch; margin-inline: auto; }
.hero__lead { color: var(--ink-soft); font-size: clamp(1.05rem, 2.2vw, 1.35rem); max-width: 640px; margin: 26px auto 0; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }

.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 720px; margin: 64px auto 0; }
.hero__stats div { text-align: center; }
.hero__stats dt { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; color: var(--ink); }
.hero__stats dd { margin: 4px 0 0; color: var(--ink-mute); font-size: .92rem; }

/* ---------- Section base ---------- */
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section--tint { background: var(--bg-tint); }
.section--dark { background: linear-gradient(160deg, #17170f, #23231a); color: #f2efe6; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 72px); }

/* ---------- Divider with formulas ---------- */
.divider { display: flex; align-items: center; gap: 22px; max-width: var(--maxw); margin-inline: auto; padding: 8px clamp(20px,5vw,48px); }
.divider__line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.divider__formula { font-family: var(--serif); font-size: clamp(.85rem, 1.6vw, 1.1rem); color: var(--ink-mute); white-space: nowrap; letter-spacing: .02em; }

/* ---------- About ---------- */
.about__head { max-width: 720px; margin-bottom: 40px; }
.about__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about__lead { font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.4; color: var(--ink); }
.about__text { color: var(--ink-soft); font-size: 1.12rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(26px, 3.4vw, 40px); display: flex; flex-direction: column; min-height: 260px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  overflow: hidden;
}
.card::before { content:""; position:absolute; inset:0; background: radial-gradient(120% 100% at 100% 0, rgba(184,137,59,.10), transparent 55%); opacity: 0; transition: opacity .4s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.card:hover::before { opacity: 1; }
.card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.card__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--bg-tint); color: var(--accent); }
.card__icon svg { width: 26px; height: 26px; }
.card__tag { font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--gold-deep); background: color-mix(in srgb, var(--gold) 14%, transparent); padding: 6px 12px; border-radius: 100px; }
.card__title { font-size: clamp(1.15rem, 2vw, 1.45rem); margin-bottom: 12px; }
.card__desc { color: var(--ink-soft); flex: 1; }
.card__link { margin-top: 22px; font-weight: 600; color: var(--gold-deep); transition: gap .2s, color .2s; }
.card__link:hover { color: var(--ink); }

/* ---------- Pills (subjects) ---------- */
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.pill {
  background: var(--surface); border: 1px solid var(--line); border-radius: 100px;
  padding: 14px 26px; font-weight: 500; font-size: 1.05rem;
  transition: transform .25s var(--ease), border-color .25s, color .25s, background .25s;
}
.pill:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--gold-deep); }

/* ---------- Olympiads ---------- */
.olymp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.olymp {
  display: flex; align-items: center; gap: 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; font-weight: 500;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.olymp:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.olymp__star { color: var(--gold); font-size: 1rem; }

/* ---------- Advantages ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.adv { position: relative; padding: clamp(28px,3vw,40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.adv__num { font-family: var(--serif); font-size: 3.2rem; font-weight: 700; color: color-mix(in srgb, var(--gold) 24%, transparent); line-height: 1; display: block; margin-bottom: 16px; }
.adv h3 { font-size: 1.35rem; margin-bottom: 10px; }
.adv p { color: var(--ink-soft); margin: 0; }

/* ---------- Results ---------- */
.results__row { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.result { text-align: center; padding: 30px 16px; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); background: rgba(255,255,255,.03); }
.result__num { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; color: #e7c98d; }
.result span:last-child { color: #c9c6ba; font-size: .98rem; }

/* ---------- Reviews slider ---------- */
.slider { position: relative; max-width: 1100px; margin: 0 auto; padding: 8px clamp(20px,5vw,48px) 0; }
.slider__viewport { overflow: hidden; }
.slider__track { list-style: none; display: flex; gap: 24px; margin: 0; padding: 8px 0 20px; transition: transform .6s var(--ease); }
.slide { flex: 0 0 auto; width: 260px; }
.review { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.review__img { width: 100%; height: auto; aspect-ratio: 591 / 1280; object-fit: cover; background: var(--bg-tint); }
.review__cap { padding: 16px 18px; display: flex; flex-direction: column; gap: 3px; }
.review__cap strong { font-size: 1.02rem; }
.review__cap span { color: var(--ink-mute); font-size: .88rem; }

.slider__nav {
  position: absolute; top: 42%; width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 1.5rem; line-height: 1;
  display: grid; place-items: center; z-index: 3; box-shadow: var(--shadow-sm); transition: transform .2s, background .2s, color .2s;
}
.slider__nav:hover { background: var(--ink); color: #fff; transform: scale(1.06); }
.slider__nav--prev { left: -6px; }
.slider__nav--next { right: -6px; }
.slider__dots { display: flex; gap: 9px; justify-content: center; margin-top: 22px; }
.slider__dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--line); transition: transform .2s, background .2s; }
.slider__dots button[aria-current="true"] { background: var(--gold); transform: scale(1.35); }

/* ---------- Pricing ---------- */
.price {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  background: linear-gradient(150deg, var(--surface), #fbf8f1); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(30px,5vw,56px); box-shadow: var(--shadow-sm);
}
.price__label { color: var(--ink-mute); font-size: 1rem; margin: 0 0 8px; }
.price__value { font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; margin: 0; }
.price__value span { color: var(--gold-deep); }
.price__note { color: var(--ink-soft); margin: 14px 0 0; max-width: 460px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq__list { display: flex; flex-direction: column; gap: 14px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.faq__item[open] { border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); box-shadow: var(--shadow-sm); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 22px 26px; font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.02rem, 1.8vw, 1.2rem); display: flex; align-items: center; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; margin-left: auto; font-size: 1.5rem; color: var(--gold-deep); transition: transform .3s; font-family: var(--sans); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding: 0 26px 24px; color: var(--ink-soft); }
.faq__answer p { margin: 0; }

/* ---------- Contacts / form ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contacts__intro { text-align: left; }
.contacts__intro .section__head { text-align: left; margin: 0; }
.contacts__intro .section__sub { margin-left: 0; }
.contacts__links { display: flex; flex-direction: column; gap: 14px; margin-top: 34px; }
.contacts__link { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; transition: transform .25s var(--ease), border-color .25s; }
.contacts__link:hover { transform: translateX(4px); border-color: var(--gold); }
.contacts__ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--accent); color: #f4e5c6; font-weight: 700; }
.contacts__link span:last-child { display: flex; flex-direction: column; }
.contacts__link em { color: var(--ink-mute); font-style: normal; font-size: .9rem; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { margin-bottom: 16px; }
.field__label { font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
.field__input {
  font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; width: 100%;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field__input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent); background: var(--surface); }
textarea.field__input { resize: vertical; min-height: 84px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__footer { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.form__consent { font-size: .82rem; color: var(--ink-mute); margin: 0; max-width: 320px; }
.form__status { margin: 16px 0 0; font-weight: 600; min-height: 1.2em; }
.form__status.is-ok { color: var(--accent-2); }
.form__status.is-err { color: #b23b3b; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #d9d6cc; padding: clamp(48px,7vw,80px) 0 30px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__brand p { color: #a7a49a; margin: 18px 0 0; max-width: 320px; }
.footer__nav, .footer__social { display: flex; flex-direction: column; gap: 12px; }
.footer__nav a, .footer__social a { color: #c9c6ba; transition: color .2s; width: fit-content; }
.footer__nav a:hover, .footer__social a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; color: #8f8c82; font-size: .9rem; }
.footer__bottom a { color: #8f8c82; }
.footer__bottom a:hover { color: #fff; }

/* ---------- To top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 1.3rem; z-index: 90;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- 404 ---------- */
.page-404 { min-height: 100vh; display: grid; }
.notfound { position: relative; display: grid; place-items: center; padding: 40px 20px; overflow: hidden; }
.notfound__bg { position: absolute; inset: 0; pointer-events: none; }
.notfound__inner { position: relative; text-align: center; max-width: 620px; }
.notfound__inner .logo { justify-content: center; margin-bottom: 30px; }
.notfound__code { font-family: var(--serif); font-size: clamp(5rem, 20vw, 11rem); font-weight: 800; line-height: 1; margin: 0; background: linear-gradient(140deg, var(--accent), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound__title { font-size: clamp(1.5rem, 4vw, 2.4rem); margin: 10px 0 16px; }
.notfound__text { color: var(--ink-soft); font-size: 1.1rem; margin: 0 auto 34px; max-width: 480px; }
.notfound__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Reveal animation (progressive enhancement) ----------
   Only hidden when JS is available; without JS everything stays visible. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav, .header__actions { display: none; }
  .burger { display: flex; }
  .about__grid { grid-template-columns: 1fr; }
  .cards, .adv-grid { grid-template-columns: 1fr; }
  .olymp-grid { grid-template-columns: repeat(2,1fr); }
  .results__row { grid-template-columns: repeat(2,1fr); }
  .hero__stats { grid-template-columns: repeat(2,1fr); gap: 30px 20px; }
  .contacts { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .form__row { grid-template-columns: 1fr; }
  .olymp-grid { grid-template-columns: 1fr; }
  .results__row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .divider__formula { font-size: .78rem; }
  .slide { width: 220px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .slider__track { transition: none; }
}
