:root {
  --bg: #f5f0eb;
  --bg-soft: #f5f0eb;
  --paper: #faf7f4;
  --blush: #e0d3c8;
  --rose: #b8a090;
  --rose-deep: #8c7468;
  --gold: #c4a574;
  --ink: #2a2421;
  --ink-soft: #6a5d55;
  --line: rgba(42, 36, 33, 0.10);
  --shadow: 0 18px 48px rgba(80, 55, 45, 0.10);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --header-h: 84px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--sans);
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.65;
  font-weight: 300;
  overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 110px 0;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: lowercase;
  color: var(--rose-deep);
  margin-bottom: 14px;
  font-weight: 500;
}

.eyebrow--light {
  color: rgba(251, 247, 243, 0.75);
}

.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #46789b;
}

.section__head--question {
  position: relative;
}

.section__head--question .section__head-text {
  text-align: center;
}

.lace-question {
  position: absolute;
  right: 220px;
  top: 50%;
  transform: translateY(-50%);
  height: 180px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(42, 36, 33, 0.1));
}

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

.section__lead {
  margin-top: 16px;
  color: var(--rose-deep);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.section__head {
  text-align: center;
  margin-bottom: 56px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border-radius: 999px;
  border: 1px solid transparent;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
  font-weight: 400;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn--primary {
  background: #46789b;
  color: #fff;
}

.btn--primary:hover {
  background: #3a6585;
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: rgba(42, 36, 33, 0.25);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.35);
}

.btn--block {
  width: 100%;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 20px 0;
  background: transparent;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
  background: rgba(250, 247, 244, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 11px 0;
  box-shadow: 0 4px 20px rgba(40, 65, 85, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.header.scrolled .logo {
  opacity: 1;
  pointer-events: auto;
}

.logo__img {
  height: 36px;
  width: auto;
  display: block;
}

.logo__img--light {
  display: block;
}

.logo__img--dark {
  display: none;
}

.header.scrolled .logo__img--light {
  display: none;
}

.header.scrolled .logo__img--dark {
  display: block;
}

.logo--footer {
  align-items: center;
  opacity: 1;
  transform: none;
}

.logo--footer .logo__img {
  height: 32px;
  opacity: 0.85;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  position: relative;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 0, 0, 0.15);
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

.header.scrolled .nav__link {
  color: var(--ink);
  text-shadow: none;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1.5px;
  background: #46789b;
  transition: width 0.3s ease;
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--cta {
  background: #46789b;
  color: #fff;
  padding: 8px 18px;
  border: 1px solid #46789b;
  border-radius: 999px;
  font-weight: 400;
  text-shadow: none;
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  background: #3a6585;
  border-color: #3a6585;
  color: #fff;
}

.header.scrolled .nav__link--cta {
  background: #46789b;
  color: #fff;
  border-color: #46789b;
}

.header.scrolled .nav__link--cta:hover {
  background: #3a6585;
  border-color: #3a6585;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}

.burger span {
  width: 24px;
  height: 1.5px;
  background: var(--paper);
  transition: 0.3s ease;
}

.header.scrolled .burger span {
  background: var(--ink);
}

.burger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: clip;
  color: var(--paper);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: scaleX(1);
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(42, 36, 33, 0.0) 0%,
      rgba(42, 36, 33, 0.02) 30%,
      rgba(42, 36, 33, 0.06) 60%,
      rgba(42, 36, 33, 0.15) 100%
    );
}

/* ===== HERO CENTER + OVAL LACE ===== */
.hero__center {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 24px;
}

.hero-oval {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1000px, 94vw);
  aspect-ratio: 1412 / 866;
}

.hero-oval__lace {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 8px 36px rgba(0, 0, 0, 0.15));
}

.hero-oval__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 10% 20% 8%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-oval__logo {
  width: clamp(300px, 44vw, 540px);
  height: auto;
  display: block;
  margin-bottom: 10px;
}

.hero-oval__tag {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(0.95rem, 1.4vw, 1.18rem);
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  line-height: 1.5;
}

.hero-oval__sub {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(0.9rem, 1.3vw, 1.1rem);
  letter-spacing: 0.05em;
  color: var(--rose-deep);
  line-height: 1.5;
}

.hero-oval__btn {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  border: 1.5px solid var(--ink-soft);
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  background: transparent;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  text-decoration: none;
}

.hero-oval__btn:hover {
  background: var(--ink-soft);
  color: #fff;
}

/* ===== BENEFITS ===== */
.benefits__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.benefit {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.benefit__num {
  display: block;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--rose);
  margin-bottom: 18px;
}

.benefit h3 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.benefit p {
  color: var(--ink-soft);
}

/* ===== BENEFITS BOTTOM ===== */
.benefits__bottom {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: center;
  margin-top: 64px;
}

.benefits__bottom-img img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.benefits__bottom-text h3 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.check-list {
  list-style: none;
  margin-bottom: 24px;
}

.check-list li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.check-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--rose-deep);
}

.adults__note {
  color: var(--ink-soft);
  margin-bottom: 28px;
}

/* ===== TEACHER ===== */
.teacher__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.teacher__name-img {
  width: clamp(320px, 48vw, 580px);
  height: auto;
  display: block;
  margin-bottom: 8px;
}

.teacher__role {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--rose-deep);
  margin-bottom: 24px;
}

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

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

/* ===== TICKETS ===== */
.tickets {
}

.tickets__envelope-wrap {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}

.tickets__envelope-img {
  position: absolute;
  left: -620px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  width: 1150px;
  height: auto;
  z-index: 0;
  pointer-events: none;
  filter: drop-shadow(0 8px 32px rgba(40, 25, 15, 0.10));
}

.tickets__list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  width: 100%;
  margin-left: auto;
}

.tickets__list .ticket {
  margin-bottom: 0;
}

.ticket {
  --tk-bg: #ede7e2;
  --stub-bg: #f5f0ec;
  --corner: 13px;
  --perf: 13px;
  --stub-w: 120px;

  display: grid;
  grid-template-columns: 1fr 35% var(--stub-w);
  height: 250px;
  background:
    linear-gradient(var(--tk-tint, transparent), var(--tk-tint, transparent)),
    url('assets/linen-texture.png') repeat;
  background-size: 100%, 400px 400px;
  position: relative;
  filter: drop-shadow(0 6px 16px rgba(20, 15, 5, 0.5)) drop-shadow(0 0 8px rgba(20, 15, 5, 0.3)) drop-shadow(0 20px 40px rgba(20, 15, 5, 0.25));
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;

  -webkit-mask-image:
    radial-gradient(circle var(--corner) at 0 0,             transparent 98%, black),
    radial-gradient(circle var(--corner) at 100% 0,          transparent 98%, black),
    radial-gradient(circle var(--corner) at 0 100%,          transparent 98%, black),
    radial-gradient(circle var(--corner) at 100% 100%,       transparent 98%, black),
    radial-gradient(circle var(--perf) at calc(100% - var(--stub-w)) 0,    transparent 98%, black),
    radial-gradient(circle var(--perf) at calc(100% - var(--stub-w)) 100%, transparent 98%, black);
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(circle var(--corner) at 0 0,             transparent 98%, black),
    radial-gradient(circle var(--corner) at 100% 0,          transparent 98%, black),
    radial-gradient(circle var(--corner) at 0 100%,          transparent 98%, black),
    radial-gradient(circle var(--corner) at 100% 100%,       transparent 98%, black),
    radial-gradient(circle var(--perf) at calc(100% - var(--stub-w)) 0,    transparent 98%, black),
    radial-gradient(circle var(--perf) at calc(100% - var(--stub-w)) 100%, transparent 98%, black);
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  mask-composite: intersect;
}

.ticket:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 6px 10px rgba(50, 35, 25, 0.25)) drop-shadow(0 16px 32px rgba(50, 35, 25, 0.22)) drop-shadow(0 0 1px rgba(50, 35, 25, 0.3));
}

.ticket:nth-child(1) { --tk-tint: rgba(240, 228, 200, 0.4); }
.ticket:nth-child(2) { --tk-tint: rgba(185, 208, 230, 0.4); }
.ticket:nth-child(3) { --tk-tint: rgba(220, 195, 210, 0.4); }
.ticket:nth-child(4) { --tk-tint: rgba(200, 215, 190, 0.4); }

/* --- LEFT --- */
.ticket__left {
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ticket__title-big {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.1rem;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
}

.ticket__swash {
  width: 80px;
  height: 22px;
  position: relative;
  margin: 4px 0;
}

.ticket__swash::before {
  content: "";
  position: absolute;
  left: 0;
  top: 55%;
  width: 70%;
  height: 0;
  border-top: 0.5px solid rgba(106, 93, 85, 0.3);
  transform: rotate(-4deg);
  transform-origin: left;
}

.ticket__swash::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 35%;
  width: 50%;
  height: 0;
  border-top: 0.5px solid rgba(106, 93, 85, 0.22);
  transform: rotate(3deg);
  transform-origin: left;
}

.ticket__bottom-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ticket__price-line {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.ticket__small-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

/* --- CENTER: image --- */
.ticket__center {
  position: relative;
  overflow: hidden;
}

.ticket__center img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ticket:nth-child(3) .ticket__center img {
  object-position: center 85%;
}

.ticket__center-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.42) 0%, transparent 100%);
}

.ticket__center-venue {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.03em;
}

.ticket__center-script-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
}

.ticket__center-script-wrap small {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 2px;
}

.ticket__center-script {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 0.85;
}

/* --- RIGHT: stub --- */
.ticket__right {
  border-left: 1.5px dashed rgba(42, 36, 33, 0.22);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  position: relative;
  gap: 0;
}

.ticket__barcode-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ticket__barcode {
  width: 55px;
  height: 180px;
  background:
    repeating-linear-gradient(
      180deg,
      #2a2421 0 2px, transparent 2px 4px,
      #2a2421 4px 5px, transparent 5px 7px,
      #2a2421 7px 10px, transparent 10px 11px,
      #2a2421 11px 12px, transparent 12px 14px
    );
  opacity: 0.9;
}

.ticket__btn {
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  cursor: pointer;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 0;
  transition: color 0.3s ease;
}

.ticket:hover .ticket__btn {
  color: var(--rose-deep);
}

.ticket__serial {
  position: absolute;
  bottom: 6px;
  right: 50%;
  transform: translateX(50%);
  font-family: var(--sans);
  font-size: 0.45rem;
  letter-spacing: 0.18em;
  color: rgba(106, 93, 85, 0.45);
  white-space: nowrap;
}

/* ===== TRIAL ===== */
.trial {
  padding-top: 40px;
}

.trial__inner {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
}

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

.trial__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42, 36, 33, 0.45), rgba(42, 36, 33, 0.72));
}

.trial__content {
  position: relative;
  z-index: 2;
  padding: 64px 24px;
  max-width: 620px;
  color: var(--paper);
}

.trial__content p {
  margin: 16px auto 28px;
  color: rgba(251, 247, 243, 0.88);
}

.trial .btn--primary {
  background: var(--paper);
  color: var(--ink);
}

.trial .btn--primary:hover {
  background: var(--blush);
}

/* ===== GALLERY ===== */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 230px;
  gap: 14px;
}

.gallery__item {
  overflow: hidden;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.gallery__item:hover img {
  transform: scale(1.06);
}

.gallery__item--wide {
  grid-column: span 2;
  grid-row: span 2;
}

/* ===== CONTACT ===== */
.contact {
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact__info .section__title {
  margin-bottom: 16px;
}

.contact__info > p {
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.contact__list {
  list-style: none;
  margin-bottom: 18px;
}

.contact__list li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.contact__list span {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9rem;
}

.contact__hint {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--serif);
}

.form-doily-wrap {
  position: relative;
  padding: 20px;
}

.form-doily {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% + 40px);
  height: calc(100% + 80px);
  object-fit: fill;
  z-index: 0;
  pointer-events: none;
  filter: drop-shadow(0 4px 16px rgba(40, 25, 15, 0.10));
}

.form {
  position: relative;
  z-index: 1;
  background: transparent;
  padding: 60px 80px 50px;
  border: none;
  box-shadow: none;
}

.form__row {
  margin-bottom: 8px;
}

.form__row label {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--rose-deep);
  margin-bottom: 6px;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(42, 36, 33, 0.15);
  background: rgba(255, 255, 255, 0.5);
  color: #46789b;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form textarea {
  border-radius: 16px;
  resize: none;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--ink-soft);
  box-shadow: 0 0 0 3px rgba(42, 36, 33, 0.06);
}

.form input.invalid {
  border-color: #b45a4a;
}

.form .btn--primary {
  margin-top: 8px;
  border-radius: 999px;
  padding: 14px 32px;
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  font-weight: 400;
}

/* --- CUSTOM SELECT --- */
.custom-select {
  position: relative;
}

.custom-select__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid rgba(42, 36, 33, 0.15);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: border-color 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}

.custom-select__trigger:hover {
  border-color: var(--ink-soft);
}

.custom-select.open .custom-select__trigger {
  border-color: var(--ink-soft);
  box-shadow: 0 0 0 3px rgba(42, 36, 33, 0.06);
}

.custom-select__arrow {
  color: var(--ink-soft);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.custom-select.open .custom-select__arrow {
  transform: rotate(180deg);
}

.custom-select__options {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #f5f2ef;
  border: 1px solid rgba(42, 36, 33, 0.12);
  border-radius: 16px;
  padding: 8px 0;
  list-style: none;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(40, 25, 15, 0.1);
}

.custom-select.open .custom-select__options {
  display: block;
}

.custom-select__option {
  padding: 10px 20px;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.custom-select__option:hover {
  background: rgba(70, 120, 155, 0.08);
  color: var(--ink);
}

.custom-select__option.selected {
  color: #46789b;
  font-weight: 500;
}

.custom-select__value {
  color: #46789b;
}

.form__telegram {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--rose-deep);
  margin-bottom: 12px;
}

.form__tg-handle {
  color: #46789b;
  font-weight: 500;
  font-style: normal;
  font-size: 1.1rem;
}

.form__error {
  display: none;
  margin-top: 2px;
  color: #b45a4a;
  font-size: 0.78rem;
}

.form__error:not(:empty) {
  display: block;
}

.form__note {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--ink-soft);
  text-align: center;
  font-family: var(--serif);
}

.form__success {
  margin-top: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  text-align: center;
  font-size: 0.95rem;
  border-radius: 12px;
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(42, 36, 33, 0.4);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  overflow-y: auto;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  position: relative;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow: visible;
  animation: modalAppear 0.35s ease-out;
}

.modal .form-doily-wrap {
  padding: 50px 20px;
}

.modal .form-doily {
  top: 0;
  height: 100%;
  width: calc(100% + 40px);
}

@keyframes modalAppear {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__close {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--ink-soft);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(40, 25, 15, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.modal__close:hover {
  background: rgba(70, 120, 155, 0.7);
  color: #fff;
}

/* ===== SUCCESS TOAST ===== */
.toast-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(42, 36, 33, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.toast-overlay.open {
  display: flex;
}

.toast {
  background: #46789b;
  color: #fff;
  padding: 36px 40px;
  border-radius: 999px;
  text-align: center;
  max-width: 380px;
  width: 88%;
  animation: modalAppear 0.35s ease-out;
  cursor: default;
}

.toast__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.toast__text {
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.toast__link {
  color: #fff;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== FAB ENVELOPE ===== */
.fab-envelope {
  position: fixed;
  top: 50%;
  right: -40px;
  z-index: 150;
  width: 140px;
  height: 100px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  transform: translateY(-50%) rotate(-90deg);
  filter: drop-shadow(0 2px 6px rgba(40, 25, 15, 0.25)) drop-shadow(0 6px 16px rgba(40, 25, 15, 0.15));
  transition: right 0.3s ease, filter 0.3s ease, opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

.fab-envelope.visible {
  opacity: 1;
  pointer-events: auto;
}

.fab-envelope:hover {
  right: -30px;
  filter: drop-shadow(0 4px 10px rgba(40, 25, 15, 0.35)) drop-shadow(0 10px 24px rgba(40, 25, 15, 0.2));
}

.fab-envelope img {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  object-fit: contain;
  transition: opacity 0.4s ease;
}

.fab-envelope__closed {
  opacity: 1;
  height: 100%;
}

.fab-envelope__open {
  opacity: 0;
  height: 150%;
}

.fab-envelope:hover .fab-envelope__closed {
  opacity: 0;
}

.fab-envelope:hover .fab-envelope__open {
  opacity: 1;
}

/* ===== FOOTER ===== */
.footer {
  background: #46789b;
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0;
  text-align: center;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer__copy {
  margin-top: 8px;
  font-size: 0.8rem;
  opacity: 0.65;
}

/* ===== REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .section { padding: 84px 0; }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 78vw);
    height: 100vh;
    background: var(--paper);
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    box-shadow: -18px 0 40px rgba(80, 55, 45, 0.12);
    transition: right 0.35s ease;
    z-index: 105;
  }

  .nav.open { right: 0; }
  .burger { display: flex; }

  .hero-oval {
    width: 96vw;
  }

  .hero-oval__content {
    padding: 14% 14%;
  }

  .benefits__row,
  .benefits__bottom,
  .teacher__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .benefits__bottom-img { order: -1; }
  .teacher__visual { order: -1; }

  .tickets__envelope-img {
    display: none;
  }

  .tickets__envelope-wrap {
    padding-top: 0;
  }

  .tickets__list {
    padding: 0;
  }

  .ticket {
    --stub-w: 0px;
    grid-template-columns: 1fr;
    grid-template-rows: auto 180px auto;
    height: auto;
  }

  .ticket__left { padding: 20px 20px 14px; }
  .ticket__title-big { font-size: 1.5rem; }

  .ticket__right {
    border-left: none;
    border-top: 1.5px dashed rgba(42, 36, 33, 0.22);
    padding: 10px 20px;
    gap: 10px;
  }

  .ticket__barcode {
    width: 80px;
    height: 32px;
    background:
      repeating-linear-gradient(
        90deg,
        var(--ink) 0 1.5px, transparent 1.5px 3.5px,
        var(--ink) 3.5px 4.5px, transparent 4.5px 6px
      );
  }

  .ticket__btn {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .ticket__serial {
    display: none;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .gallery__item--wide {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 560px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .benefits__row { gap: 22px; }

  .hero__bg {
    object-position: 60% 40%;
  }

  .hero-oval {
    width: 86vw;
    aspect-ratio: 866 / 1412;
    margin: 0 auto;
  }

  .hero-oval__content {
    padding: 20% 14%;
  }

  .hero-oval__logo {
    width: clamp(160px, 52vw, 260px);
    margin-bottom: 8px;
  }

  .hero-oval__tag {
    font-size: clamp(0.85rem, 3.2vw, 1.05rem);
    max-width: 54%;
  }

  .hero-oval__sub {
    font-size: clamp(0.8rem, 3vw, 1rem);
    max-width: 54%;
  }

  .hero-oval__btn {
    font-size: 0.78rem;
    padding: 8px 20px;
    margin-top: 8px;
  }

  .section__title {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .lace-question {
    display: none;
  }

  .benefits__text-block {
    padding-right: 0;
  }

  .teacher__name-img {
    max-width: 200px;
  }

  .ticket__title-big {
    font-size: 1.2rem;
  }

  .form {
    padding: 28px 30px;
  }

  .form-doily-wrap {
    padding: 10px;
  }

  .form-doily {
    top: -20px;
    height: calc(100% + 40px);
    width: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%);
  }

  .contact__info {
    padding: 20px;
  }

  .modal {
    max-width: 100%;
    margin: 0 8px;
  }

  .modal .form-doily-wrap {
    padding: 30px 8px;
  }

  .modal .form-doily {
    width: calc(100% + 16px);
  }

  .modal .form {
    padding: 40px 52px 24px;
  }

  .modal .form__row label {
    padding-left: 10px;
  }

  .modal .form__telegram {
    text-align: center;
  }

  .modal__close {
    top: 4px;
    right: 4px;
  }

  .fab-envelope {
    width: 100px;
    height: 72px;
    right: -28px;
  }

  .fab-envelope:hover {
    right: -20px;
  }

  .footer__inner {
    padding: 24px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__bg { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__brand-img {
    clip-path: none;
    animation: none;
  }
}
