:root {
  --white: #ffffff; --fog: #eef2f0; --spruce: #23423a; --spruce-2: #2f5549; --cedar: #9a5b3c; --cedar-l: #f0dfd4;
  --moss: #b8c49a; --moss-l: #e3e9d3; --ink: #1e2b27; --muted: #5c6b66; --line: #dce3df;
  --font: "Outfit", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font: 17px/1.65 var(--font); font-weight: 400; color: var(--ink); background: var(--white); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--cedar); outline-offset: 2px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
h1, h2, h3 { font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 4vw, 48px); color: var(--spruce); }
h3 { font-size: 22px; font-weight: 500; }
.muted { color: var(--muted); margin-top: 12px; max-width: 54ch; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--cedar); color: #fff; font: 500 16px var(--font); border: 0; cursor: pointer; transition: background 0.2s; }
.btn:hover { background: #82492e; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--light { background: rgba(255, 255, 255, 0.9); color: var(--spruce); }
.btn--light:hover { background: #fff; }
.btn:disabled { background: var(--spruce-2); }

.header { position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: 30px; height: 74px; }
.logo { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 500; line-height: 1.05; color: var(--spruce); }
.logo svg { width: 30px; height: 34px; }
.logo small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 16px; }
.nav a { padding: 6px 0; border-bottom: 1.5px solid transparent; }
.nav a:hover { border-color: var(--cedar); }
.burger { display: none; }

/* Hero */
.hero { position: relative; padding: 72px 0; min-height: 660px; display: flex; align-items: center; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20, 40, 34, 0.82) 0%, rgba(20, 40, 34, 0.5) 50%, rgba(20, 40, 34, 0.2) 100%); }
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 400px; gap: 56px; align-items: center; }
.hero__text { color: #fff; }
.hero h1 { font-size: clamp(40px, 5.2vw, 66px); font-weight: 300; max-width: 15ch; }
.hero__text p { font-size: 19px; margin: 20px 0 32px; max-width: 46ch; color: #e1ebe6; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }

.today { background: var(--white); border-radius: 24px; padding: 24px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55); }
.today__title { font-weight: 500; font-size: 18px; color: var(--spruce); margin-bottom: 8px; }
.today ul { list-style: none; }
.today li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.today time { font-weight: 500; color: var(--cedar); }
.today b { display: block; font-weight: 500; }
.today li span { font-size: 14px; color: var(--muted); }
.book { min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--spruce); background: transparent; color: var(--spruce); font: 500 14.5px var(--font); cursor: pointer; transition: background 0.15s, color 0.15s; }
.book:hover { background: var(--fog); }
.book[aria-pressed="true"] { background: var(--spruce); color: #fff; }

.offer { background: var(--moss-l); }
.offer__in { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 40px 0; flex-wrap: wrap; }
.offer h2 { font-size: clamp(26px, 3vw, 34px); }
.offer p { color: var(--muted); margin-top: 6px; max-width: 64ch; }

.section { padding: clamp(72px, 9vw, 112px) 0; }
.section--fog { background: var(--fog); }
.section--spruce { background: var(--spruce); color: #fff; }
.section--spruce h2 { color: #fff; }
.section--spruce .muted { color: #c4d4cd; }
.head { margin-bottom: 40px; }
.head--row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

.classes { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 24px 56px; }
.classes__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; aspect-ratio: 3 / 2; }
.classes__img--b { grid-column: 1; }
.types { list-style: none; grid-column: 2; grid-row: 1 / span 2; align-self: start; }
.types li { display: grid; grid-template-columns: 1fr auto; column-gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.types li:last-child { border-bottom: 1px solid var(--line); }
.types b { font-size: 22px; font-weight: 500; color: var(--spruce); }
.types span { grid-column: 1; color: var(--muted); margin-top: 4px; }
.types em { grid-column: 2; grid-row: 1; font-style: normal; font-size: 13.5px; background: var(--moss-l); color: var(--spruce); padding: 3px 12px; border-radius: 999px; align-self: center; white-space: nowrap; }

.days { display: flex; gap: 4px; background: var(--white); padding: 5px; border-radius: 999px; }
.days button { min-width: 52px; min-height: 42px; padding: 0 10px; border-radius: 999px; border: 0; background: transparent; font: 500 15px var(--font); color: var(--muted); cursor: pointer; }
.days button[aria-selected="true"] { background: var(--spruce); color: #fff; }
.sched { list-style: none; background: var(--white); border-radius: 24px; padding: 8px 28px; }
.sched li { display: grid; grid-template-columns: 70px 1.2fr 1fr 1fr auto; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.sched li:last-child { border-bottom: 0; }
.sched time { font-weight: 500; color: var(--cedar); font-size: 18px; }
.sched b { font-weight: 500; font-size: 18px; }
.sched span, .sched em { color: var(--muted); font-style: normal; }

.teacher { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 72px; align-items: center; }
.teacher img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 24px 24px; }
.teacher p { color: var(--muted); margin-top: 16px; max-width: 54ch; font-size: 18px; }
.teacher .sign { color: var(--spruce); font-weight: 500; font-size: 16px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 24px; padding: 30px; }
.plan h3 { font-size: 20px; }
.plan__price { font-size: 52px; font-weight: 300; line-height: 1.1; margin: 10px 0; }
.plan p:last-child { color: #c4d4cd; }
.plan--hl { background: var(--white); color: var(--ink); border-color: var(--white); }
.plan--hl .plan__price { color: var(--cedar); }
.plan--hl p:last-child { color: var(--muted); }

.ask { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.addr { margin-top: 24px; line-height: 1.9; }
.addr a { color: var(--cedar); font-weight: 500; }
.form { background: var(--fog); border-radius: 24px; padding: 32px; display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 15px; font-weight: 500; }
.form input, .form textarea { height: 52px; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 14px; font: 16px var(--font); background: var(--white); color: var(--ink); }
.form textarea { height: auto; padding: 12px 14px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--spruce); }
.form .btn { justify-self: start; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.footer { border-top: 1px solid var(--line); padding: 28px 0 96px; color: var(--muted); font-size: 14.5px; }
.footer__in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__in p:last-child { max-width: 60ch; }
.footer b { color: var(--spruce); font-weight: 500; }

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .today { max-width: 460px; }
  .classes { grid-template-columns: 1fr; }
  .types { grid-column: 1; grid-row: auto; }
  .classes__img--b { display: none; }
  .teacher, .ask { grid-template-columns: 1fr; gap: 40px; }
  .teacher img { max-width: 360px; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .sched li { grid-template-columns: 60px 1fr auto; row-gap: 0; }
  .sched li b { grid-column: 2; }
  .sched li span { grid-column: 2; grid-row: 2; font-size: 14.5px; }
  .sched li em { display: none; }
  .sched li .book { grid-column: 3; grid-row: 1 / span 2; }
  .sched li time { grid-row: 1 / span 2; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--white); padding: 4px 20px 16px; border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transition: opacity 0.2s; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  body.nav-open .nav { opacity: 1; visibility: visible; }
  .header .btn--sm { margin-left: auto; }
  .burger { display: grid; gap: 5px; width: 44px; height: 44px; place-content: center; background: none; border: 0; cursor: pointer; }
  .burger span { width: 22px; height: 2px; background: var(--spruce); }
}
@media (max-width: 600px) {
  .header .btn--sm { display: none; }
  .burger { margin-left: auto; }
  .hero { padding: 48px 0; }
  .today { padding: 18px; }
  .days { width: 100%; overflow-x: auto; border-radius: 16px; }
  .days button { min-width: 46px; flex: 1; }
  .sched { padding: 4px 16px; }
  .row { grid-template-columns: 1fr; }
  .form { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
