:root {
  --navy: #1d2e6b;
  --navy-deep: #142352;
  --cream: #fbf7ee;
  --cream-deep: #f3ecdf;
  --gold: #e8a33a;
  --gold-deep: #c4892e;
  --terra: #c23b2a;
  --ink: #1d2e6b;
  --muted: #4a5878;
  --white: #ffffff;
  --header: 4.5rem;
  --shadow: 0 24px 60px rgba(20, 35, 82, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

section,
article {
  scroll-margin-top: 5.2rem;
}

body {
  margin: 0;
  font-family: "Golos Text", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-size: 1.125rem;
  line-height: 1.55;
}

/* UIKit красит заголовки, ссылки и em в свои цвета. Возвращаем студию. */
h1, h2, h3, h4, h5, h6,
* + h1, * + h2, * + h3, * + h4, * + h5, * + h6 {
  margin: 0;
  font-family: inherit;
  color: inherit;
  text-transform: none;
}

em { color: inherit; }

a,
a:hover {
  color: inherit;
  text-decoration: none;
}

address, dl, fieldset, figure, ol, p, pre, ul,
* + address, * + dl, * + fieldset, * + figure, * + ol, * + p, * + pre, * + ul {
  margin-top: 0;
}

p { margin: 0 0 1em; }

img { max-width: 100%; display: block; }

a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header);
  padding: 0.75rem 6vw;
  background: rgba(251, 247, 238, 0.94);
  border-bottom: 1px solid rgba(29, 46, 107, 0.08);
  backdrop-filter: blur(12px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--gold) 0 32%, transparent 34%),
    var(--navy);
  box-shadow: inset 0 0 0 2px rgba(232, 163, 58, 0.45);
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.logo-text small {
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--gold-deep);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 1.02rem;
}

.site-nav a:hover { color: var(--gold-deep); }

.nav-cta {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white) !important;
}

.nav-cta:hover { background: var(--navy-deep); color: var(--white) !important; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 0.6rem;
  background: transparent;
  padding: 0.45rem;
  color: var(--navy);
  cursor: pointer;
}

.nav-toggle svg {
  width: 1.7rem;
  height: 1.7rem;
  display: block;
}

.hero {
  min-height: calc(100vh - var(--header));
  display: flex;
  align-items: flex-end;
  padding: 8vh 6vw 10vh;
  background:
    linear-gradient(90deg, rgba(20, 28, 40, 0.18), rgba(20, 28, 40, 0.05) 55%, rgba(20, 28, 40, 0.12)),
    url("assets/hero.jpg") center / cover no-repeat;
}

.hero-card {
  width: min(38rem, 100%);
  padding: 2rem 2.1rem 1.8rem;
  background: var(--navy);
  color: var(--white);
  border: 0;
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 700;
}

.eyebrow-gold { color: var(--gold-deep); }

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.1rem); }

h2 { font-size: clamp(2rem, 3.4vw, 3.15rem); }

h3 { font-size: clamp(1.7rem, 2.4vw, 2.35rem); }

.hero-lead {
  margin: 1.15rem 0 0;
  padding-top: 1.05rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn-gold:hover { background: #f0b14e; }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.about {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 34rem;
}

.about-copy {
  padding: clamp(3rem, 7vw, 6rem) 8vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-copy p {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.2rem;
}

.about-art {
  position: relative;
  min-height: 34rem;
  background: var(--navy);
  overflow: hidden;
}

.about-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.rule {
  display: flex;
  align-items: center;
  width: 7.5rem;
  margin: 1.15rem 0 1.25rem;
}

.rule::before,
.rule::after {
  content: "";
  height: 2px;
  flex: 1;
  background: var(--gold);
}

.rule span {
  width: 0.45rem;
  height: 0.45rem;
  margin: 0 0.45rem;
  background: var(--gold);
  transform: rotate(45deg);
}

.rule-center { margin-inline: auto; }

.program {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  background: var(--cream);
  border-top: 1px solid rgba(29, 46, 107, 0.06);
}

.program-visual,
.module-visual {
  position: relative;
  min-height: 36rem;
  overflow: hidden;
}

.program-visual img,
.module-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-copy,
.module-title-cream {
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 4rem);
}

.steps {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.steps li {
  display: grid;
  grid-template-columns: 2.15rem minmax(0, 1fr);
  align-items: center;
  column-gap: 0.9rem;
  font-size: 1.15rem;
  line-height: 1.35;
}

.steps span,
.module-nav span {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding-top: 1px;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 800;
  line-height: 1;
}

.steps span {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  font-size: 1.05rem;
}

.modules { padding: clamp(3.5rem, 7vw, 6rem) 6vw 4rem; }

.section-head { text-align: center; max-width: 46rem; margin: 0 auto 2.5rem; }

.section-head h2 { text-wrap: balance; }

.module-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.module-nav a {
  text-decoration: none;
  background: var(--white);
  border-radius: 1.4rem;
  padding: 1.4rem 1.3rem 1.3rem;
  box-shadow: 0 10px 30px rgba(29, 46, 107, 0.06);
  display: grid;
  gap: 0.35rem;
}

.module-nav a:hover { transform: translateY(-2px); }

.module-nav span {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  font-size: 1.1rem;
}

.module-nav strong { font-size: 1.25rem; }

.module-nav em {
  font-style: normal;
  color: var(--muted);
}

.module {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  min-height: 28rem;
  margin-top: 1.25rem;
  overflow: hidden;
  border-radius: 1.2rem;
}

.module-navy .module-title,
.module-flip .module-title {
  background: var(--navy);
  color: var(--white);
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.steps-on-cream {
  background: var(--cream-deep);
  height: 100%;
  padding: clamp(1.5rem, 3vw, 2.8rem);
  align-content: center;
}

.module-title.module-title-photo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
  min-height: 32rem;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.module-title-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

#module-1 .module-title-photo img {
  object-position: 34% 78%;
  transform: scale(1.45);
  transform-origin: 34% 72%;
}

#module-2 .module-title-photo img {
  object-position: 28% 74%;
  transform: scale(1.5);
  transform-origin: 28% 68%;
}

.module-title-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 5.5rem 1.6rem 1.5rem;
  background: none;
  text-shadow: 0 1px 8px rgba(20, 24, 40, 0.45);
}

.module-flip .module-title { order: 2; }

.module-photo {
  grid-template-columns: 1.15fr 0.85fr;
  background: var(--cream-deep);
}

.module-title-cream { background: transparent; }

.module-visual { min-height: 32rem; }

.format {
  background: var(--navy);
  color: var(--white);
  padding: clamp(3.5rem, 7vw, 6rem) 8vw;
}

.gold-title { color: var(--gold); font-size: clamp(1.8rem, 3vw, 2.4rem); }

.format-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.stat {
  margin: 0.2rem 0 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.stat-label {
  margin: 0.25rem 0 1.4rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
}

.format-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 0.5rem;
  padding-top: 1.2rem;
  border-top: 2px solid var(--gold);
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
}

.format-notes p { margin: 0; }

.teacher {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.25rem;
  align-items: center;
  padding: 0 6vw;
  background: var(--cream);
}

.teacher-copy {
  min-width: 0;
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 3vw, 2.8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.teacher-copy h2 em {
  font-style: normal;
  color: var(--gold-deep);
}

.teacher-years { white-space: nowrap; }

.teacher-name {
  margin: 1.2rem 0 0.8rem;
  color: var(--gold-deep);
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 800;
  line-height: 1.1;
}

.teacher-copy p { color: var(--muted); max-width: 38rem; }

.teacher-place {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 2px solid var(--gold);
  color: var(--ink) !important;
  font-weight: 700;
}

.teacher-photo {
  position: relative;
  order: -1;
  width: min(50rem, 100%);
  aspect-ratio: 1;
  height: auto;
  min-height: 0;
  margin: 1.5rem auto;
  overflow: hidden;
  border: 12px solid var(--navy);
  border-radius: 50%;
  box-sizing: border-box;
  background: #d9cbb8;
  justify-self: center;
  align-self: center;
}

.teacher-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.finale {
  padding: clamp(3rem, 7vw, 5.5rem) 6vw 1.25rem;
  background:
    linear-gradient(90deg, rgba(18, 24, 32, 0.25), rgba(18, 24, 32, 0.08)),
    url("assets/finale.jpg") center / cover no-repeat;
}

.finale-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  align-items: stretch;
}

.finale-card {
  background: var(--navy);
  color: var(--white);
  border: 0;
  border-radius: 1.5rem;
  padding: clamp(1.8rem, 3vw, 2.8rem);
}

.finale-card p { color: rgba(255, 255, 255, 0.9); }

.enroll {
  background: var(--cream);
  padding: 1.6rem 1.5rem 1.5rem;
  display: grid;
  gap: 0.75rem;
  align-content: start;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.enroll h3 { margin-bottom: 0.15rem; }

.enroll-note,
.form-thanks {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.enroll label {
  display: grid;
  gap: 0.3rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.enroll .uk-form-label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}

.enroll .uk-input,
.enroll .uk-textarea {
  height: auto;
  min-height: 2.8rem;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(29, 46, 107, 0.18);
  border-radius: 0.7rem;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.enroll .uk-textarea { min-height: 6.5rem; }

.enroll .uk-input:focus,
.enroll .uk-textarea:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
  background: var(--white);
  color: var(--ink);
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.captcha-row img {
  width: 190px;
  height: 64px;
  border-radius: 0.7rem;
  border: 1px solid rgba(29, 46, 107, 0.18);
  background: var(--white);
}

.captcha-refresh {
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.captcha-refresh:hover { color: var(--gold-deep); }

.form-thanks {
  padding: 0.9rem 0.2rem 0.2rem;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.05rem;
}

.place {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  align-items: stretch;
  padding: 1.5rem 6vw clamp(3rem, 7vw, 5.5rem);
  background: var(--cream);
}

.place-map {
  position: relative;
  display: block;
  min-height: 32rem;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #e7e4dc;
}

.place-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.place-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.8rem, 3vw, 2.8rem);
  background: var(--navy);
  color: var(--white);
  border-radius: 1.5rem;
}

.place-title {
  color: var(--gold);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  width: fit-content;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.35rem;
  margin: 0 0 1rem;
}

.place-date {
  margin: 0 0 2rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 500;
}

.place-address {
  margin: 0 0 1.4rem;
  color: #fff;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.3;
  max-width: 36rem;
}

.place-phone {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 600;
}

.place-phone a {
  color: var(--gold);
  text-decoration: none;
}

.place-phone a:hover { color: #f2c16a; }

.enroll-note a:hover { color: var(--gold-deep); }

.enroll-note a {
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 6vw 1.5rem;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
}

.site-footer a { color: var(--gold); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.6rem 6vw 1.1rem;
    background: var(--cream);
    border-bottom: 1px solid rgba(29, 46, 107, 0.08);
  }

  .site-nav.is-open { display: flex; }

  .site-nav a { padding: 0.55rem 0; }

  .site-nav .nav-cta {
    align-self: flex-start;
    width: auto;
    padding: 0.7rem 1.5rem;
    white-space: nowrap;
  }

  .about,
  .program,
  .module,
  .module-photo,
  .place,
  .finale-layout,
  .format-grid,
  .format-notes,
  .module-nav {
    grid-template-columns: 1fr;
  }

  .module-flip .module-title { order: 0; }

  .program-copy { order: 1; }
  .program-visual { order: 2; }

  .about-art,
  .place-map,
  .program-visual,
  .module-visual {
    min-height: 22rem;
    max-height: 32rem;
  }

  .site-header {
    background: #fbf7ee;
    z-index: 40;
  }

  .teacher {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    justify-items: stretch;
    padding: 1.35rem 1.25rem 2rem;
    scroll-margin-top: calc(var(--header) + 0.5rem);
  }

  .teacher-copy {
    min-width: 0;
    width: 100%;
    padding: 0.35rem 0.15rem 0;
  }

  .teacher-copy h2 {
    font-size: 1.65rem;
    line-height: 1.15;
  }

  .teacher-name {
    margin: 0.75rem 0 0.5rem;
    font-size: 1.45rem;
  }

  .teacher-copy p {
    max-width: none;
    font-size: 1.05rem;
    line-height: 1.4;
    overflow-wrap: break-word;
  }

  .teacher-place {
    margin-top: 1rem;
    padding-top: 0.75rem;
    font-size: 1.05rem;
  }

  .teacher-photo {
    position: relative;
    top: auto;
    order: -1;
    width: min(16.5rem, 70vw);
    aspect-ratio: 1;
    height: auto;
    min-height: 0;
    margin: 0.25rem auto 0.85rem;
    border-width: 8px;
    align-self: center;
    justify-self: center;
  }

  .teacher-photo img {
    top: 0;
    height: 100%;
    object-position: center 22%;
  }

  .program-visual img,
  .module-visual img {
    max-height: 32rem;
  }

  .hero { align-items: center; padding-top: 12vh; }
}

@media (max-width: 640px) {
  .hero-actions,
  .hero-actions .btn { width: 100%; }

  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .module-nav a { transition: none; }
}
