:root {
  /* палитра снята с флаера */
  --bg: #ece8e3;
  --paper: #f6f3ef;
  --ink: #1c1b19;
  --ink-2: #5c5953;
  --line: #d8d2c9;
  --olive: #6b743f;
  --olive-deep: #545c2f;
  --olive-soft: #e6e8d6;

  /* Noto Serif Display: узкий контрастный антиквенный шрифт, близкий к заголовку флаера */
  --serif: "Noto Serif Display", "Times New Roman", serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --radius: 28px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: hidden; overflow-x: clip; max-width: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; overflow-x: clip;
  max-width: 100%;
}
img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; }

/* Название мероприятия — всегда курсивом */
.brand { font-family: var(--serif); font-style: italic; font-weight: 400; font-stretch: 75%; font-variation-settings: "wdth" 75; letter-spacing: 0.005em; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; text-decoration: none;
  font-weight: 500; line-height: 1; white-space: nowrap;
  transition: transform 500ms var(--ease), background-color 300ms var(--ease), box-shadow 500ms var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--sm { padding: 12px 20px; font-size: 0.9375rem; }
.btn--lg { padding: 20px 34px; font-size: 1.0625rem; }
.btn--primary { background: var(--olive); color: #fff; }
.btn--primary:hover { background: var(--olive-deep); box-shadow: 0 14px 34px -14px rgba(84, 92, 47, 0.75); }
.btn--outline { background: transparent; color: var(--olive-deep); box-shadow: inset 0 0 0 2px var(--olive); }
.btn--outline:hover { background: var(--olive-soft); }

.link {
  background: none; border: 0; padding: 0; color: var(--olive-deep);
  font: inherit; text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 1px; cursor: pointer;
}
.link:hover { text-decoration-thickness: 2px; }

/* значок локации */
.pin { flex: none; color: var(--olive); }

/* ---------- Навигация ---------- */
.nav {
  position: fixed; z-index: 30; top: 16px; left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 10px 10px 26px;
  background: rgba(246, 243, 239, 0.84);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(28, 27, 25, 0.07), 0 18px 40px -26px rgba(28, 27, 25, 0.35);
}
.nav__logo { white-space: nowrap; font-size: 1.6rem; color: var(--ink); text-decoration: none; line-height: 1; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; transition: color 300ms var(--ease); }
.nav__links a:hover { color: var(--olive-deep); }

/* ---------- 1. Hero (по мотивам флаера) ---------- */
.hero {
  --hh: max(700px, 100svh);
  position: relative; overflow: hidden; contain: paint;
  min-height: var(--hh);
  display: grid;
  grid-template-columns: min(46vw, 920px) minmax(0, 1fr);
  background:
    linear-gradient(to bottom, rgba(236, 232, 227, 0) 72%, var(--bg) 100%),
    radial-gradient(90% 80% at 32% 38%, #f5f2ee 0%, #ece8e3 62%, #e6e1db 82%, var(--bg) 100%);
}
.hero__figure {
  grid-column: 1; align-self: stretch;
  mix-blend-mode: multiply; /* белый фон картинки растворяется в фоне сайта */
  /* мягкое затухание справа и снизу, чтобы фото не обрывалось линией */
  -webkit-mask-image: linear-gradient(to right, #000 86%, transparent), linear-gradient(to bottom, #000 74%, transparent 96%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, #000 86%, transparent), linear-gradient(to bottom, #000 74%, transparent 96%);
          mask-composite: intersect;
  animation: figure 1400ms var(--ease) 100ms both;
}
/* кадр подрезается только сверху и снизу, лицо и ленты по бокам всегда видны */
.hero__figure img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 22%; }

.hero__text {
  grid-column: 2; align-self: center; position: relative; z-index: 3; /* выше подписи и ленты, чтобы список городов не прятался */
  padding: 118px var(--gutter) clamp(120px, 12vw, 190px) clamp(8px, 2vw, 32px);
  display: flex; flex-direction: column; align-items: flex-start;
}
/* Заголовок как на флаере: узкий, контрастный, тонкий; «секреты» сплошным графитово-серым */
.hero__title {
  font-size: clamp(4.4rem, 10.2vw, 10.6rem);
  font-stretch: 62.5%; font-variation-settings: "wdth" 62.5; font-weight: 400;
  line-height: 0.9; letter-spacing: 0; text-transform: uppercase;
  margin-left: -0.03em;
}
.hero__title { max-width: 100%; }
.hero__title .line { display: block; max-width: 100%; overflow: hidden; padding: 0.04em 0.14em 0.1em 0; }
.hero__title .line > span { display: block; animation: rise 1100ms var(--ease) both; }
.hero__title .line:nth-child(1) > span { color: #131312; }
.hero__title .line:nth-child(2) > span { animation-delay: 140ms; color: #4a4947; }
.hero__rule { width: 44px; height: 1px; background: var(--olive); margin: 28px 0 22px; }
.hero__slogan {
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em;
  font-size: clamp(0.82rem, 1.1vw, 0.98rem); line-height: 1.6; max-width: 26em; text-wrap: balance;
}
.hero__what { margin-top: 12px; color: var(--ink-2); max-width: 30em; }

.hero__facts { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin: 34px 0 14px; }
.date { display: flex; align-items: center; gap: 14px; }
.date__num {
  font-family: var(--serif); font-stretch: 75%; font-variation-settings: "wdth" 75; font-weight: 400; font-variant-numeric: lining-nums;
  font-size: clamp(4rem, 6.6vw, 6.2rem); line-height: 0.85; color: var(--olive);
}
.date__txt { font-size: 0.82rem; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink); }
.time {
  font-family: var(--serif); font-stretch: 75%; font-variation-settings: "wdth" 75; font-weight: 400; font-variant-numeric: lining-nums;
  font-size: clamp(1.9rem, 2.9vw, 2.7rem); line-height: 1;
  padding-left: 28px; border-left: 1px solid var(--olive);
}
.place { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 36px; }
.place .pin { margin-top: 4px; }
.place__txt { display: block; }
.place__addr { display: block; color: var(--ink-2); font-size: 0.9375rem; margin-top: 4px; }

/* выбор города */
.city { position: relative; display: inline-block; }
.city__btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: 0; padding: 0 0 3px; color: var(--ink);
  font-family: var(--serif); font-stretch: 87.5%; font-variation-settings: "wdth" 87.5; font-weight: 400;
  font-size: clamp(1.3rem, 1.8vw, 1.65rem); line-height: 1.15;
  border-bottom: 1px solid rgba(107, 116, 63, 0.5);
  transition: border-color 300ms var(--ease);
}
.city__btn:hover { border-bottom-color: var(--olive); }
.city__caret { color: var(--olive); transition: transform 400ms var(--ease); }
.city__btn[aria-expanded="true"] .city__caret { transform: rotate(180deg); }
.city__list {
  position: absolute; z-index: 20; top: calc(100% + 10px); left: -12px; min-width: 250px;
  margin: 0; padding: 8px; list-style: none;
  background: var(--paper); border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(28, 27, 25, 0.07), 0 24px 50px -24px rgba(28, 27, 25, 0.45);
  animation: city-in 350ms var(--ease);
}
@keyframes city-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.city__list li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 14px; border-radius: 12px; cursor: pointer;
  font-family: var(--serif); font-stretch: 87.5%; font-variation-settings: "wdth" 87.5; font-size: 1.15rem;
}
.city__list li:focus { outline: none; background: var(--olive-soft); }
.city__list li[aria-selected="true"]::after {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--olive); flex: none;
}
.city__list li[aria-disabled="true"] { color: #a39d92; cursor: default; }
.city__list li[aria-disabled="true"]:focus { background: var(--bg); }
.city__list em {
  font-family: var(--sans); font-style: normal; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line);
}

.hero__tag {
  position: absolute; z-index: 1; right: var(--gutter); bottom: clamp(190px, 21vw, 330px);
  font-size: 0.74rem; line-height: 1.8; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2);
}
.hero__tag::before { content: ""; display: block; width: 44px; height: 1px; background: var(--olive); margin-bottom: 12px; }

@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes figure { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* ---------- Лента внизу первого экрана: продолжает ленты девушки, без шва ---------- */
.hero__ribbon {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 0; pointer-events: none;
  width: 100%; height: clamp(190px, 21vw, 320px); object-fit: cover; object-position: center 52%;
  mix-blend-mode: multiply; opacity: 0.85; filter: brightness(1.05) contrast(1.06);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 42%, #000 62%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 42%, #000 62%, transparent 100%);
}

/* ---------- Общие секции ---------- */
.section { padding: clamp(64px, 8vw, 112px) var(--gutter); max-width: 1440px; margin: 0 auto; }
.section__title {
  font-family: var(--serif); font-stretch: 75%; font-variation-settings: "wdth" 75; font-weight: 300; letter-spacing: -0.005em;
  font-size: clamp(2.5rem, 5.4vw, 4.8rem); line-height: 1.04;
  text-align: center; margin-bottom: clamp(44px, 6vw, 84px); text-wrap: balance;
}
.section__title::after { /* тонкая линия-акцент под заголовком */
  content: ""; display: block; width: 44px; height: 1px; background: var(--olive); margin: clamp(18px, 2vw, 26px) auto 0;
}

/* ---------- 2. О событии ---------- */
.about__grid > li { min-width: 0; }
.about__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 32px); }
.about__card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about__card:nth-child(even) { margin-top: clamp(24px, 4vw, 64px); }
.about__card p {
  margin-top: 20px; font-family: var(--serif); font-stretch: 87.5%; font-variation-settings: "wdth" 87.5; font-weight: 400;
  font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.25; max-width: 13em;
}

/* ---------- 3. Для участниц (мягкая шалфейная плашка) ---------- */
.for { padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto clamp(64px, 8vw, 112px); }
.for__plate {
  position: relative; overflow: hidden; isolation: isolate; contain: paint;
  border-radius: 44px;
  background: linear-gradient(135deg, #e1e5d0 0%, #d4dabb 100%);
  padding: clamp(24px, 4.5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: center;
}
.for__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 24%; border-radius: 30px; }
.for__title {
  font-family: var(--serif); font-stretch: 75%; font-variation-settings: "wdth" 75; font-weight: 300; letter-spacing: -0.005em;
  font-size: clamp(2.4rem, 4.8vw, 4.2rem); line-height: 1.04;
}
.for__lead { margin-top: 14px; font-size: 1.1875rem; color: var(--ink-2); max-width: 22em; text-wrap: balance; }
.for__list { margin: 30px 0 34px; }
.for__list li {
  padding: 18px 0 18px 40px; position: relative;
  font-family: var(--serif); font-stretch: 87.5%; font-variation-settings: "wdth" 87.5; font-weight: 400; font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.25;
  border-top: 1px solid rgba(84, 92, 47, 0.3);
}
.for__list li:last-child { border-bottom: 1px solid rgba(84, 92, 47, 0.3); }
.for__list li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 22px; height: 1px;
  margin-top: -1px; background: var(--olive);
}
.for__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; }
.for__cta p { color: var(--ink-2); }
.for__ribbons {
  position: absolute; right: -6%; bottom: -14%; z-index: -1;
  width: min(54%, 620px); height: auto;
  mix-blend-mode: multiply; opacity: 0.42; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent);
          mask-image: radial-gradient(closest-side, #000 55%, transparent);
}

/* ---------- 4. Направления: см. блок «иконки + одно меняющееся фото» ниже ---------- */

/* ---------- 5. Дух мероприятия ---------- */
.spirit {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center;
}
.spirit__title { font-family: var(--serif); font-stretch: 87.5%; font-variation-settings: "wdth" 87.5; font-weight: 300; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.2; }
.spirit__title .brand { color: var(--olive); font-weight: 400; }
.collage {
  display: grid; gap: 14px; height: clamp(380px, 46vw, 620px);
  grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr));
}
.collage img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 24px; }
.collage .c1 { grid-column: 1; grid-row: 1 / 3; }
.collage .c2 { grid-column: 2; grid-row: 1; }
.collage .c3 { grid-column: 3; grid-row: 1 / 3; }
.collage .c4 { grid-column: 2; grid-row: 2; }

/* ---------- 6. Гостям ---------- */
.guests__card {
  background: var(--paper); border-radius: 36px;
  padding: clamp(28px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px clamp(32px, 6vw, 96px);
  box-shadow: 0 0 0 1px rgba(28, 27, 25, 0.06);
}
.guests__place { display: flex; align-items: flex-start; gap: 16px; }
.guests__place .pin { margin-top: 6px; }
.guests__venue span { white-space: nowrap; }
.guests__venue { font-family: var(--serif); font-stretch: 87.5%; font-variation-settings: "wdth" 87.5; font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.12; }
.guests__addr { margin: 12px 0 18px; color: var(--ink-2); font-size: 1.125rem; }
.timeline { position: relative; display: grid; gap: 26px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 1px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 96px 1fr; align-items: start; position: relative; padding-left: 34px; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 13px; height: 13px;
  border-radius: 50%; background: var(--olive); box-shadow: 0 0 0 4px var(--paper);
}
.timeline time { font-family: var(--serif); font-stretch: 87.5%; font-variation-settings: "wdth" 87.5; font-weight: 400; font-variant-numeric: lining-nums; font-size: 1.9rem; line-height: 2rem; color: var(--olive); }
.timeline strong { display: block; font-weight: 600; font-size: 1.125rem; line-height: 2rem; }
.timeline span { color: var(--ink-2); }
.timeline strong .brand { font-size: 1.15em; font-weight: 400; }
.guests__note {
  grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--line);
  color: var(--ink-2); font-style: italic; max-width: 46em;
}

/* ---------- 7. Партнёры ---------- */
.partners { text-align: center; }
.partners .section__title { margin-bottom: 24px; }
.partners .section__title::after { display: none; }
.partners__lead { font-family: var(--serif); font-stretch: 87.5%; font-variation-settings: "wdth" 87.5; font-weight: 300; font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.2; max-width: 18em; margin: 0 auto; text-wrap: balance; }
/* логотип партнёра в графитовом тоне; если партнёров станет больше, строка переносится и центрируется */
.partners__logos {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0;
  margin: clamp(40px, 6vw, 72px) auto; max-width: 1180px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.plogo {
  display: flex; align-items: center; justify-content: center;
  flex: 0 1 320px; min-height: 130px; padding: 22px 28px; color: #3a3935; opacity: 0.88;
  transition: opacity 300ms var(--ease);
}
.plogo:hover { opacity: 1; }
.plogo img { width: min(100%, 220px); height: auto; filter: grayscale(1); }
.plogo--stack img { width: auto; height: clamp(84px, 8vw, 104px); }
.plogo + .plogo { border-left: 1px solid var(--line); }
.msgr { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.msgr__ico {
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
  color: var(--olive-deep); box-shadow: inset 0 0 0 1px var(--olive);
  transition: background-color 300ms var(--ease), color 300ms var(--ease), transform 500ms var(--ease);
}
.msgr:hover .msgr__ico { background: var(--olive); color: #fff; }
.msgr:active .msgr__ico { transform: scale(0.95); }
.msgr__name { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- 8. Контакты ---------- */
.contacts { text-align: center; padding-top: 0; }
.contacts__lead { max-width: 30em; margin: 0 auto clamp(32px, 4vw, 52px); color: var(--ink-2); text-wrap: balance; }
.contacts__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); max-width: 980px; margin: 0 auto; }
.ccard {
  display: flex; flex-direction: column; align-items: center;
  background: var(--paper); border-radius: 32px; padding: clamp(28px, 4vw, 48px) 24px;
  box-shadow: 0 0 0 1px rgba(28, 27, 25, 0.06);
}
.ccard__title { font-family: var(--serif); font-stretch: 75%; font-variation-settings: "wdth" 75; font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.05; }
.ccard__text { margin-top: 8px; color: var(--ink-2); font-size: 0.95rem; max-width: 22em; text-wrap: balance; }
.ccard__phone {
  margin: 20px 0 24px; color: var(--ink); text-decoration: none;
  font-family: var(--serif); font-stretch: 87.5%; font-variation-settings: "wdth" 87.5; font-variant-numeric: lining-nums;
  font-size: clamp(1.35rem, 2vw, 1.7rem); letter-spacing: 0.02em;
}
.ccard__phone:hover { color: var(--olive-deep); }
.ccard__msgrs { display: flex; justify-content: center; gap: 28px; margin-top: auto; }

/* ---------- Окно выбора «участница / партнёр» ---------- */
.modal--choice { width: min(640px, calc(100% - 24px)); }
.choice { position: relative; padding: clamp(32px, 5vw, 52px); }
.choice__title { font-family: var(--serif); font-stretch: 75%; font-variation-settings: "wdth" 75; font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.06; padding-right: 48px; }
.choice__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.choice__opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left;
  padding: 26px 22px; border: 0; border-radius: 22px; background: var(--bg);
  box-shadow: inset 0 0 0 1px transparent;
  transition: background-color 300ms var(--ease), box-shadow 300ms var(--ease), transform 400ms var(--ease);
}
.choice__opt:hover { background: var(--olive-soft); box-shadow: inset 0 0 0 1px var(--olive); }
.choice__opt:active { transform: scale(0.98); }
.choice__name { font-family: var(--serif); font-stretch: 87.5%; font-variation-settings: "wdth" 87.5; font-size: 1.55rem; line-height: 1.1; }
.choice__hint { color: var(--ink-2); font-size: 0.92rem; line-height: 1.4; }
.choice__back {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  background: none; border: 0; padding: 0; color: var(--ink-2); font-size: 0.9rem;
}
.choice__back:hover { color: var(--olive-deep); }
.choice__text { margin: 12px 0 26px; color: var(--ink-2); }
.choice__msgrs { display: flex; gap: 32px; }
.choice__phone { display: inline-block; margin-top: 26px; color: var(--ink-2); text-decoration: none; font-variant-numeric: lining-nums; }
.choice__phone:hover { color: var(--olive-deep); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Футер ---------- */
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  padding: 32px var(--gutter) 40px; border-top: 1px solid var(--line);
  color: var(--ink-2); font-size: 0.9375rem;
}
.footer .brand { font-size: 1.25em; color: var(--ink); }
.footer__docs { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer .link { color: var(--ink-2); }

/* ---------- Модальные окна ---------- */
.modal {
  border: 0; padding: 0; background: var(--paper); color: var(--ink);
  border-radius: 32px; width: min(720px, calc(100% - 24px)); max-height: calc(100svh - 24px);
  box-shadow: 0 40px 100px -30px rgba(28, 27, 25, 0.55);
}
.modal--small { width: min(520px, calc(100% - 24px)); }
.modal::backdrop { background: rgba(28, 27, 25, 0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in 500ms var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal__close {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--bg); font-size: 1.75rem; line-height: 1;
  transition: background-color 300ms var(--ease);
}
.modal__close:hover { background: var(--olive-soft); }

.reg { position: relative; padding: clamp(28px, 5vw, 48px); }
.reg__title { font-family: var(--serif); font-stretch: 75%; font-variation-settings: "wdth" 75; font-weight: 400; font-size: clamp(1.9rem, 3.8vw, 2.6rem); line-height: 1.08; padding-right: 48px; }
.reg__intro { margin: 10px 0 26px; color: var(--ink-2); }
.reg__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 30px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 0.9375rem; color: var(--ink-2); }
.field b, .consent b { color: var(--olive); }
.field input, .other {
  width: 100%; font: inherit; color: var(--ink);
  padding: 15px 18px; border: 0; border-radius: 16px; background: var(--bg);
  box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow 300ms var(--ease), background-color 300ms var(--ease);
}
.field input:focus, .other:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--olive); }
.field input.is-bad { box-shadow: inset 0 0 0 2px #c0392b; }

.chips { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
.chips legend { font-weight: 600; padding: 0; margin-bottom: 14px; line-height: 1.35; }
.chips legend small { display: block; font-weight: 400; color: var(--ink-2); font-size: 0.875rem; margin-top: 2px; }
.chips__list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: block; padding: 11px 18px; border-radius: 999px; background: var(--bg);
  font-size: 0.9375rem; line-height: 1.2;
  transition: background-color 300ms var(--ease), color 300ms var(--ease), transform 300ms var(--ease);
}
.chip:hover span { background: var(--olive-soft); }
.chip input:checked + span { background: var(--olive); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--olive); outline-offset: 2px; }
.other { margin-top: 12px; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; color: var(--ink-2); margin-bottom: 20px; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--olive); }
.reg__error { color: #b3261e; margin-bottom: 14px; font-size: 0.9375rem; }
.reg__submit { width: 100%; }
.reg__submit .t-short { display: none; }
@media (max-width: 440px) {
  .reg__submit .t-full { display: none; }
  .reg__submit .t-short { display: inline; }
}

.success { position: relative; padding: clamp(32px, 6vw, 52px); }
.success h2 { font-family: var(--serif); font-stretch: 75%; font-variation-settings: "wdth" 75; font-weight: 400; font-size: 2.2rem; line-height: 1.05; padding-right: 48px; }
.success p { margin: 14px 0 26px; color: var(--ink-2); }
.doc p { margin-bottom: 0; }


/* ---------- Иконки направлений: тонкие рисованные SVG без рамок; цвет задаётся здесь (currentColor) ---------- */
.ico { display: block; flex: none; color: var(--olive); }
.ico svg { display: block; width: 100%; height: 100%; }
/* ---------- Направления: иконки + одно меняющееся фото (index-icons-photo.html) ---------- */
.dirx { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.dirx__photos { position: relative; overflow: hidden; border-radius: 28px; aspect-ratio: 4 / 5; background: var(--line); }
.dirx__photos img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04); transition: opacity 900ms var(--ease), transform 1600ms var(--ease);
}
.dirx__photos img.is-active { opacity: 1; transform: scale(1); }
.dirx__photos::after { content: ""; position: absolute; inset: 55% 0 0 0; background: linear-gradient(to top, rgba(28, 27, 25, 0.55), rgba(28, 27, 25, 0)); }
.dirx__cap {
  position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 22px; color: #fff;
  font-family: var(--serif); font-stretch: 87.5%; font-variation-settings: "wdth" 87.5; font-weight: 400;
  font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.15;
}
.dirx__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; }
.dirx__btn {
  width: 100%; display: flex; align-items: center; gap: 18px; padding: 14px 16px; text-align: left;
  border: 1px solid transparent; border-radius: 22px; background: transparent; color: var(--ink); cursor: pointer;
  transition: background 400ms var(--ease), border-color 400ms var(--ease);
}
.dirx__btn .ico { width: clamp(52px, 5vw, 68px); height: clamp(52px, 5vw, 68px); }
.dirx__btn:hover, .dirx__btn[aria-current="true"] { background: var(--paper); border-color: var(--line); }
.dirx__btn:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
.dirx__name {
  font-family: var(--sans); font-weight: 500; font-size: 0.8rem; line-height: 1.4; letter-spacing: 0.12em; text-transform: uppercase;
}
.dirx__btn[aria-current="true"] .dirx__name { color: var(--olive-deep); }

/* ---------- Юридические страницы (politika.html, soglasie.html) ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: clamp(120px, 14vw, 170px) var(--gutter) clamp(56px, 8vw, 100px); }
.legal h1 { font-family: var(--serif); font-stretch: 75%; font-variation-settings: "wdth" 75; font-weight: 400; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.08; margin-bottom: clamp(28px, 4vw, 48px); text-wrap: balance; }
.legal h2 { font-family: var(--serif); font-stretch: 87.5%; font-variation-settings: "wdth" 87.5; font-weight: 400; font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.2; margin: clamp(32px, 4vw, 48px) 0 14px; }
.legal p, .legal li { font-size: 1rem; line-height: 1.65; color: var(--ink); overflow-wrap: anywhere; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 14px; padding-left: 1.3em; list-style: disc; }
.legal li { margin-bottom: 6px; padding-left: 4px; }
.legal li::marker { color: var(--olive); }
.legal a { color: var(--olive-deep); text-underline-offset: 3px; }
.legal-page .footer { margin-top: 0; }

/* ---------- Планшет ---------- */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__card:nth-child(even) { margin-top: 0; }
  .about__card:nth-child(n+3) { margin-top: 12px; }
  .spirit { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Телефон ---------- */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav { padding: 8px 8px 8px 20px; top: 12px; width: calc(100% - 24px); }
  .nav__logo { font-size: 1.4rem; }
  .hide-sm { display: none; }
  .nav .btn { padding: 11px 16px; font-size: 0.875rem; }

  /* первый экран: фото, под ним заголовок и текст */
  .hero { --hh: auto; grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__figure {
    grid-column: 1; height: min(112vw, 540px); margin-top: 56px;
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 95%);
    -webkit-mask-composite: source-over;
            mask-image: linear-gradient(to bottom, #000 72%, transparent 95%);
            mask-composite: add;
  }
  .hero__figure img { object-position: 22% 14%; }
  .hero__text { grid-column: 1; padding: 0 var(--gutter) 28px; align-self: start; margin-top: -30px; min-width: 0; max-width: 100vw; }
  .hero__title { font-size: clamp(3.9rem, 21vw, 6.4rem); }
  .hero__rule { margin: 22px 0 18px; }
  .hero__facts { margin: 26px 0 12px; gap: 14px 20px; }
  .place { margin-bottom: 28px; }
  .hero__text .btn { width: 100%; }
  .hero__tag { position: static; padding: 0 var(--gutter) 150px; }
  .hero__ribbon { height: 150px; object-position: 30% 52%; }

  .for__plate { grid-template-columns: minmax(0, 1fr); border-radius: 30px; gap: 26px; }
  .for__photo img { aspect-ratio: 5 / 4; border-radius: 22px; }
  .for__cta .btn { width: 100%; }
  .for__ribbons { width: 80%; right: -10%; bottom: -4%; }

  .guests__card { grid-template-columns: minmax(0, 1fr); }
  .timeline li { grid-template-columns: 1fr; gap: 2px; padding-left: 34px; }
  .timeline time { font-size: 1.7rem; line-height: 1.7rem; }
  .timeline strong { line-height: 1.5rem; }
  .timeline li::before { top: 8px; }
  .reg__grid { grid-template-columns: minmax(0, 1fr); }
  .dirx { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .dirx__photos { aspect-ratio: 5 / 4; max-height: 480px; width: 100%; border-radius: 22px; }
  .dirx__list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .dirx__btn { flex-direction: column; justify-content: center; gap: 0; padding: 10px 0; min-height: 56px; border-radius: 16px; }
  .dirx__btn .ico { width: 36px; height: 36px; }
  .dirx__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (max-width: 560px) {
  .section { padding-top: 56px; padding-bottom: 56px; }
  .about__grid { gap: 14px; }
  .about__card p { margin-top: 12px; font-size: 1.05rem; }
  .collage { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); height: 560px; }
  .collage .c1 { grid-column: 1; grid-row: 1 / 3; }
  .collage .c2 { grid-column: 2; grid-row: 1 / 2; }
  .collage .c3 { grid-column: 2; grid-row: 2 / 4; }
  .collage .c4 { grid-column: 1; grid-row: 3; }
  .plogo { min-height: 104px; flex-basis: 100%; }
  .plogo + .plogo { border-left: 0; border-top: 1px solid var(--line); }
  .plogo--stack img { height: 88px; }
  .footer { padding-bottom: 84px; }
  .contacts__grid { grid-template-columns: minmax(0, 1fr); }
  .choice__options { grid-template-columns: minmax(0, 1fr); }
  .city__list { left: -38px; }
  .time { padding-left: 18px; }
  .guests__card { border-radius: 26px; }
  .modal { border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__title .line > span, .hero__figure, .modal[open] { animation: none; }
  .dirx__photos img { transition: none; transform: none; }
}
