/* paréa — theme: Olive (stone green) */
@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;500;600;700;800&family=Bricolage+Grotesque:wght@600;700;800&display=swap");

:root {
  --ink: #1a2216;
  --ink-soft: #66705c;
  --cream: #eef1e4;
  --cream-deep: #e0e5d0;
  --peach: #7d9b4e;
  --peach-soft: #c5d4a8;
  --sand: #a0893c;
  --white: #ffffff;
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-pill: 999px;
  --container: 1160px;
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Nunito Sans", sans-serif;
  --header-h: 84px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-fast: 0.25s;
  --motion-med: 0.55s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-transform: lowercase;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

/* вЂ”вЂ” Header вЂ”вЂ” */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  padding-top: 18px;
}

.site-header--solid {
  position: sticky;
  top: 0;
  inset: auto;
  padding: 14px 0;
  background: rgba(238, 241, 228, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 34, 22, 0.06);
}

.site-header__inner {
  min-height: 56px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  color: var(--ink);
}

.nav-pill {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: var(--radius-pill);
  background: rgba(26, 34, 22, 0.88);
  backdrop-filter: blur(10px);
}

.nav-pill__link {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background var(--motion-fast) ease, color var(--motion-fast) ease;
}

.nav-pill__link:hover,
.nav-pill__link.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.nav-pill__link.is-active {
  background: rgba(255, 255, 255, 0.18);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  justify-self: end;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  margin: auto;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "- ";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* вЂ”вЂ” Buttons вЂ”вЂ” */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 0;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform var(--motion-fast) var(--ease-out), background var(--motion-fast) ease, border-color var(--motion-fast) ease;
}

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

.btn--cream:hover {
  transform: translateY(-1px);
}

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

.btn--ink:hover {
  transform: translateY(-2px);
}

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

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.65);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--wide {
  width: 100%;
  padding: 16px 24px;
  font-size: 0.98rem;
  margin-top: 8px;
}

.btn__arrow {
  font-size: 1.05rem;
  line-height: 1;
}

/* вЂ”вЂ” Hero вЂ”вЂ” */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-content: center;
  padding: 120px 0 100px;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  transition: transform 1.6s var(--ease-out);
}

.hero.is-inview .hero__media img {
  transform: scale(1);
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(238, 241, 228, 0.78) 0%, rgba(238, 241, 228, 0.62) 36%, rgba(238, 241, 228, 0.28) 58%, rgba(26, 34, 22, 0.42) 78%, rgba(26, 34, 22, 0.62) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
}

.hero__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  letter-spacing: -0.05em;
  text-transform: lowercase;
  color: var(--ink);
  margin-bottom: 14px;
  text-shadow: 0 8px 40px rgba(238, 241, 228, 0.35);
}

.hero__lead {
  color: rgba(26, 34, 22, 0.82);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 36ch;
  margin: 0 auto 24px;
  font-weight: 500;
}

.hero__slogan {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 48px;
  z-index: 2;
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  color: var(--white);
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.hero__slogan em {
  font-style: normal;
  color: #c8db8e;
}

/* вЂ”вЂ” Intro вЂ”вЂ” */
.section {
  padding: 56px 0;
}

.intro {
  padding-top: 28px;
}

.intro__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.intro-card {
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  min-height: 280px;
}

.intro-card--light {
  background: var(--white);
  box-shadow: 0 16px 40px rgba(26, 34, 22, 0.04);
}

.intro-card--dark {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.88);
}

.intro-card__title {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin-bottom: 22px;
  max-width: 16ch;
}

.intro-card__text {
  font-size: 1rem;
  line-height: 1.55;
  max-width: 34ch;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
}

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

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

.tag--outline {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

/* вЂ”вЂ” Formats вЂ”вЂ” */
.formats {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 64px 0 72px;
  margin-top: 12px;
}

.formats__head {
  margin-bottom: 28px;
  max-width: 420px;
}

.section__title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.section__title--light {
  color: var(--white);
}

.formats__lead {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.format-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  display: grid;
  align-items: stretch;
  isolation: isolate;
}

.format-card::after {
  content: "- ";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  z-index: 0;
  background:
    linear-gradient(180deg, transparent, rgba(26, 34, 22, 0.55)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120'%3E%3Cpath fill='%23111111' d='M0 80 L40 55 L70 70 L110 40 L150 65 L190 35 L230 60 L270 30 L310 55 L350 25 L400 50 L400 120 L0 120Z'/%3E%3C/svg%3E") bottom / 100% auto no-repeat;
  opacity: 0.9;
}

.format-card--a {
  background: linear-gradient(180deg, #c5d4a8 0%, #6a8a42 55%, #1a2216 100%);
}

.format-card--b {
  background: linear-gradient(180deg, #d8dfb8 0%, #8fa84e 50%, #1e2818 100%);
}

.format-card--c {
  background: linear-gradient(180deg, #b8c878 0%, #5f7a38 55%, #141a12 100%);
}

.format-card__body {
  position: relative;
  z-index: 1;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.format-card h3 {
  font-size: 1.45rem;
  color: var(--white);
}

.format-card__list {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
}

.format-card__list li::before {
  content: "- ";
  opacity: 0.7;
}

.format-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* вЂ”вЂ” Quiz вЂ”вЂ” */
.quiz-wrap {
  padding: 28px 0 48px;
  margin-top: -1px;
  background: var(--ink);
}

.quiz-wrap .container {
  width: fit-content;
  max-width: calc(100% - 40px);
}

.quiz {
  background: var(--cream-deep);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
}

.quiz__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  max-width: 18ch;
  margin-bottom: 28px;
}

.quiz__fields {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 14px;
  margin-bottom: 18px;
  width: max-content;
  max-width: 100%;
}

.quiz__field {
  display: grid;
  gap: 8px;
}

.quiz__field span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.quiz__field select {
  appearance: none;
  border: 0;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231a2216' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center;
  border-radius: var(--radius-pill);
  padding: 14px 40px 14px 18px;
  font-weight: 500;
  outline: none;
  box-shadow: 0 8px 20px rgba(26, 34, 22, 0.04);
  width: max-content;
  min-width: 100%;
}

/* вЂ”вЂ” Teachers вЂ”вЂ” */
.teachers {
  padding-top: 24px;
}

.teachers__inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}

.teachers__text {
  margin-top: 12px;
  color: var(--ink-soft);
  max-width: 42ch;
}

/* вЂ”вЂ” Footer вЂ”вЂ” */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 56px 0 28px;
  margin-top: 24px;
}

.logo--footer {
  color: var(--white);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about {
  margin-top: 12px;
  max-width: 36ch;
  font-size: 0.95rem;
}

.footer-contacts {
  display: grid;
  gap: 8px;
  text-align: right;
  font-weight: 600;
}

.footer-contacts a:hover {
  color: var(--peach);
}

.footer-policies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-policy__title {
  color: var(--peach);
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 8px;
  text-transform: lowercase;
}

.footer-policy__text {
  font-size: 0.88rem;
  line-height: 1.45;
}

.footer-copy {
  padding-top: 20px;
  font-size: 0.85rem;
  opacity: 0.65;
}

/* вЂ”вЂ” Modal вЂ”вЂ” */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(26, 34, 22, 0.55);
}

.modal.is-open {
  display: grid;
}

.modal__card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.modal__card h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.modal__card p {
  color: var(--ink-soft);
  margin-bottom: 20px;
}

/* вЂ”вЂ” Motion вЂ”вЂ” */
.page-enter .hero__brand,
.page-enter .hero__lead,
.page-enter .hero__content .btn,
.page-enter .hero__slogan {
  animation: rise-in 0.9s var(--ease-out) both;
}

.page-enter .hero__lead { animation-delay: 0.08s; }
.page-enter .hero__content .btn { animation-delay: 0.14s; }
.page-enter .hero__slogan { animation-delay: 0.2s; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal,
.reveal-stagger {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--motion-med) var(--ease-out), transform var(--motion-med) var(--ease-out);
}

.reveal.is-inview,
.reveal-stagger.is-inview {
  opacity: 1;
  transform: none;
}

.reveal-stagger.is-inview > * {
  animation: rise-in 0.7s var(--ease-out) both;
}

.reveal-stagger.is-inview > *:nth-child(2) { animation-delay: 0.08s; }
.reveal-stagger.is-inview > *:nth-child(3) { animation-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page-enter .hero__brand,
  .page-enter .hero__lead,
  .page-enter .hero__content .btn,
  .page-enter .hero__slogan,
  .page-enter .page-hero__title,
  .page-enter .page-hero__text,
  .page-enter .page-hero__eyebrow,
  .reveal-stagger.is-inview > * { animation: none; }
  .reveal, .reveal-stagger, .hero__media img {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* вЂ”вЂ” Inner page hero вЂ”вЂ” */
.page-hero {
  padding: 36px 0 8px;
}

.page-hero__card {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  align-items: end;
}

.page-hero__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__card::after {
  content: "- ";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 34, 22, 0.15) 0%, rgba(26, 34, 22, 0.55) 100%);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  padding: 40px 36px;
  color: var(--white);
  max-width: 640px;
}

.page-hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--peach-soft);
  margin-bottom: 10px;
  text-transform: lowercase;
}

.page-hero__title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: var(--white);
  text-transform: lowercase;
}

.page-hero__text {
  margin-top: 12px;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
}

/* вЂ”вЂ” Shared inner layouts вЂ”вЂ” */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.split--rev .split__media {
  order: 2;
}

.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
}

.split__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.split__text {
  margin-top: 14px;
  color: var(--ink-soft);
  max-width: 42ch;
  font-size: 1.02rem;
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sand);
  margin-bottom: 10px;
  text-transform: lowercase;
}

.prose {
  display: grid;
  gap: 14px;
  color: var(--ink-soft);
  max-width: 62ch;
  font-size: 1.02rem;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.value-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 20px;
}

.value-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.value-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.band {
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}

.band--ink {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.88);
}

.band--peach {
  background: linear-gradient(135deg, var(--peach-soft), var(--peach));
  color: var(--ink);
}

.band__title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-bottom: 12px;
  max-width: 20ch;
}

.band__text {
  max-width: 48ch;
  margin-bottom: 20px;
  opacity: 0.9;
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature-list li {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(26, 34, 22, 0.08);
}

.feature-list strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: lowercase;
}

.feature-list span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.exam-grid,
.price-grid,
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.exam-card,
.price-card,
.teacher-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
}

.exam-card--dark,
.price-card--dark {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.9);
}

.exam-card h3,
.price-card h3,
.teacher-card h3 {
  font-size: 1.25rem;
}

.exam-card p,
.price-card p,
.teacher-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.exam-card--dark p,
.price-card--dark p {
  color: rgba(255, 255, 255, 0.72);
}

.price-card__cost {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: auto;
}

.price-card__note {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.price-card--dark .price-card__note {
  color: rgba(255, 255, 255, 0.55);
}

.price-card .btn {
  margin-top: 8px;
  align-self: flex-start;
}

.teacher-card__photo {
  width: 72px;
  height: 72px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: var(--cream-deep);
}

.teacher-card__role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sand);
  text-transform: lowercase;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.contact-info,
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}

.contact-info__list {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.contact-info__list span {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 4px;
  text-transform: lowercase;
}

.contact-info__list a,
.contact-info__list strong {
  font-weight: 700;
  font-size: 1.05rem;
}


/* Office / map */
.office {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
}
.office__info {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: grid;
  align-content: start;
  gap: 12px;
}
.office__address {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 18ch;
  text-transform: lowercase;
}
.office__meta {
  color: var(--ink-soft);
  font-size: 0.98rem;
  font-weight: 600;
}
.office__map {
  min-height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-deep, #efe4d8);
}
.office__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}
.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form label span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  appearance: none;
  border: 0;
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font: inherit;
  outline: none;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.page-enter .page-hero__title,
.page-enter .page-hero__text,
.page-enter .page-hero__eyebrow {
  animation: rise-in 0.85s var(--ease-out) both;
}

.page-enter .page-hero__text { animation-delay: 0.08s; }

/* вЂ”вЂ” Responsive вЂ”вЂ” */
@media (max-width: 980px) {
  .intro__grid,
  .format-grid,
  .quiz__fields,
  .split,
  .values,
  .exam-grid,
  .price-grid,
  .teacher-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .split--rev .split__media {
    order: 0;
  }

  .format-card {
    min-height: 360px;
  }

  .footer-policies {
    grid-template-columns: 1fr 1fr;
  }

  .nav-pill {
    gap: 0;
  }

  .nav-pill__link {
    padding: 10px 10px;
    font-size: 0.78rem;
  }
}

@media (max-width: 760px) {
  .site-header__inner {
    grid-template-columns: 1fr auto auto;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-pill {
    position: fixed;
    inset: 78px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-self: stretch;
    border-radius: var(--radius-md);
    padding: 10px;
    z-index: 40;
  }

  .nav-pill.is-open {
    display: flex;
  }

  .nav-pill__link {
    padding: 14px 12px;
  }

  .hero {
    padding: 110px 0 140px;
    align-content: start;
  }

  .hero__slogan {
    bottom: 28px;
    font-size: clamp(1.55rem, 8vw, 2.1rem);
  }

  .formats {
    border-radius: 28px 28px 0 0;
  }

  .quiz {
    padding: 28px 20px;
    width: 100%;
  }

  .quiz__fields {
    width: 100%;
  }

  .teachers__inner {
    flex-direction: column;
    align-items: start;
  }

  .footer-policies,
  .footer-contacts {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .page-hero__card {
    min-height: 280px;
    border-radius: var(--radius-lg);
  }

  .page-hero__content,
  .band,
  .contact-info,
  .contact-form {
    padding: 28px 20px;
  }
}


/* —— Cookie bar —— */
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  display: none;
  justify-content: center;
  pointer-events: none;
}

.cookie-bar.is-visible {
  display: flex;
}

.cookie-bar__inner {
  pointer-events: auto;
  width: min(100%, 920px);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 14px 14px 18px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 18px 50px rgba(23, 23, 23, 0.28);
  animation: cookie-rise 0.45s var(--ease-out) both;
}

.cookie-bar__icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
}

.cookie-bar__icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.cookie-bar__icon svg circle:first-child {
  fill: var(--peach);
}

.cookie-bar__icon svg circle:not(:first-child) {
  fill: var(--ink);
}

.cookie-bar__text {
  flex: 1 1 auto;
  min-width: 0;
}

.cookie-bar__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.15;
  margin-bottom: 2px;
  text-transform: lowercase;
}

.cookie-bar__desc {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.72);
}

.cookie-bar__btn {
  flex: 0 0 auto;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  color: var(--ink);
  background: var(--peach);
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  transition: background var(--motion-fast) ease, transform var(--motion-fast) ease;
}

.cookie-bar__btn:hover {
  background: var(--peach-soft);
  transform: translateY(-1px);
}

@keyframes cookie-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 720px) {
  .cookie-bar {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .cookie-bar__inner {
    border-radius: var(--cookie-radius-mobile, 24px);
    flex-wrap: wrap;
    padding: 16px;
    gap: 12px;
  }

  .cookie-bar__btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-bar__inner { animation: none; }
}

/* Legal pages + clickable footer policies */
a.policy-block,
a.footer-policy {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
a.policy-block:hover,
a.footer-policy:hover {
  transform: translateY(-2px);
}
.legal-page {
  padding: 72px 0 96px;
}
.legal-page__inner {
  width: min(100% - 40px, 760px);
  margin-inline: auto;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 0.92rem;
  opacity: 0.75;
}
.legal-back:hover { opacity: 1; }
.legal-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 12px;
  max-width: 18ch;
}
.legal-updated {
  color: var(--ink-soft, #666);
  font-size: 0.92rem;
  margin-bottom: 36px;
  line-height: 1.5;
}
.legal-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 28px;
}
.legal-body h2 {
  font-size: 1.15rem;
  margin: 32px 0 12px;
  text-transform: none;
  letter-spacing: 0;
}
.legal-body p {
  margin: 0 0 14px;
  line-height: 1.65;
  color: var(--ink-soft, #444);
}
.legal-body ul {
  margin: 0 0 16px;
  padding-left: 1.2em;
  list-style: disc;
}
.legal-body li {
  margin-bottom: 8px;
  line-height: 1.55;
  color: var(--ink-soft, #444);
}
.legal-body strong { color: inherit; }


/* size / text length guards */
.split__media:has(#about-image),
.split__media:has(#formats-extra-image) {
  max-width: 560px;
  width: 100%;
  aspect-ratio: 5 / 4;
}

.quiz-wrap .quiz__field span,
.quiz-wrap .quiz__field select {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

#footer-address {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}