/* Design theme from сайт.pdf — overlays styles.css for public chrome + home */

:root {
  --cream: #f2e3d5;
  --cream-soft: #f5efe0;
  --burgundy: #5e1928;
  --burgundy-deep: #4a0e13;
  --burgundy-mid: #520815;
  --ink: #23090e;
  --pill-radius: 999px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-sans: "Montserrat", "Segoe UI", sans-serif;
  --font-script: "Marck Script", "Segoe Script", cursive;
}

body.page-design,
body.page-home {
  font-family: var(--font-sans);
}

/* Burgundy page canvas: cream gaps cannot flash between dark sections */
body.page-home {
  background: var(--burgundy-deep);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.page-design .container,
body.page-home .container {
  width: min(1200px, calc(100% - 4.5rem));
}

.brand-logo-mark {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.site-header--design .brand-logo-mark {
  filter: none;
}

.site-header--design {
  border-bottom: none !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.page-home .site-header--overlay.site-header--design,
.page-home .site-header--overlay.site-header--design.site-header--visible,
.page-home .site-header--overlay.site-header--design.site-header--light,
.page-home .site-header--overlay.site-header--design.site-header--on-cream {
  border-bottom: none !important;
  box-shadow: none !important;
}

.site-header--design .site-header-inner {
  min-height: 88px;
  gap: 1.25rem;
  padding: 0.35rem 0;
  flex-wrap: nowrap;
}

.site-header--design .header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
  flex-wrap: nowrap;
}

.site-header--design .main-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem 1.1rem;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.site-header--design .header-end {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.site-header--design .header-account {
  margin-left: 0.15rem;
  flex-shrink: 0;
}

/* Compact: nav (and optionally CTA) live inside kebab */
body.page-design.site-header--compact .site-header--design .main-nav,
.site-header--design.site-header--compact .main-nav {
  display: none !important;
}

body.page-design.site-header--compact-cta .site-header--design .header-cta,
.site-header--design.site-header--compact-cta .header-cta {
  display: none !important;
}

body.page-design .nav-burger {
  display: none !important;
}

.header-account-nav:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.header-account-sep {
  height: 1px;
  margin: 0.35rem 0.35rem 0.45rem;
  background: rgba(242, 227, 213, 0.18);
}

.header-account-item--nav {
  text-transform: lowercase;
}

/* Home overlay header: always visible, no solid bar */
.page-home .site-header--overlay.site-header--design {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  transform: none !important;
  opacity: 1 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.page-home .site-header--overlay.site-header--design.site-header--visible,
.page-home .site-header--overlay.site-header--design.site-header--light,
.page-home .site-header--overlay.site-header--design.site-header--on-cream {
  background: transparent !important;
  box-shadow: none !important;
}

.site-header--design .nav-link,
.site-header--design .nav-link:hover,
.site-header--design .nav-link.active,
.page-home .site-header--overlay.site-header--light .nav-link,
.page-home .site-header--overlay.site-header--light .nav-link:hover,
.page-home .site-header--overlay.site-header--light .nav-link.active {
  text-transform: lowercase;
  font-weight: 400;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border: none !important;
  background: transparent !important;
  color: var(--cream) !important;
  padding: 0.35rem 0.55rem;
  border-radius: 0;
  opacity: 1;
}

.site-header--design .nav-link:hover,
.site-header--design .nav-link.active {
  opacity: 0.75;
}

/* Over cream sections: burgundy chrome */
.page-home .site-header--design.site-header--on-cream .nav-link,
.page-home .site-header--design.site-header--on-cream .nav-link:hover,
.page-home .site-header--design.site-header--on-cream .nav-link.active {
  color: var(--burgundy) !important;
}

.page-home .site-header--design.site-header--on-cream .header-cta {
  background: var(--burgundy);
  color: #fff;
}

.page-home .site-header--design.site-header--on-cream .header-account-kebab {
  color: var(--burgundy);
  border-color: rgba(94, 25, 40, 0.35);
}

.page-home .site-header--design.site-header--on-cream .header-account-kebab-dots,
.page-home .site-header--design.site-header--on-cream .header-account-kebab-dots::before,
.page-home .site-header--design.site-header--on-cream .header-account-kebab-dots::after {
  background: var(--burgundy);
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border-radius: var(--pill-radius);
  background: var(--burgundy);
  color: #fff;
  text-decoration: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.btn-pill:hover {
  filter: brightness(1.08);
}

.btn-pill--lg {
  padding: 0.95rem 2.2rem;
  font-size: 0.95rem;
}

.btn-pill--cream {
  background: var(--cream);
  color: var(--burgundy-deep);
}

.header-cta {
  white-space: nowrap;
  background: rgba(94, 25, 40, 0.92);
  padding: 0.55rem 1.15rem;
  font-size: 0.82rem;
}

/* ── Header account (avatar + kebab) ── */
.header-account {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  position: relative;
}

.header-account-avatar-link {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(242, 227, 213, 0.45);
  flex-shrink: 0;
  text-decoration: none;
  background: rgba(242, 227, 213, 0.12);
}

.header-account-avatar-link .auth-header-avatar,
.header-account-avatar-link .site-media-crop--chip {
  width: 100%;
  height: 100%;
}

.header-account-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--cream);
  background: rgba(94, 25, 40, 0.55);
}

.page-home .site-header--design.site-header--on-cream .header-account-avatar-link {
  border-color: rgba(94, 25, 40, 0.35);
}

.page-home .site-header--design.site-header--on-cream .header-account-avatar-fallback {
  color: var(--burgundy);
  background: rgba(94, 25, 40, 0.1);
}

.header-account-menu {
  position: relative;
}

.header-account-kebab {
  list-style: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(242, 227, 213, 0.4);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--cream);
}

.header-account-kebab::-webkit-details-marker,
.header-account-kebab::marker {
  display: none;
  content: "";
}

.header-account-kebab-dots {
  position: relative;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.header-account-kebab-dots::before,
.header-account-kebab-dots::after {
  content: "";
  position: absolute;
  top: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.header-account-kebab-dots::before {
  left: -7px;
}

.header-account-kebab-dots::after {
  left: 7px;
}

.header-account-menu[open] .header-account-kebab {
  background: rgba(242, 227, 213, 0.12);
}

.header-account-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 188px;
  padding: 0.45rem;
  border-radius: 12px;
  background: var(--burgundy-deep);
  border: 1px solid rgba(242, 227, 213, 0.18);
  box-shadow: 0 12px 28px rgba(35, 9, 14, 0.35);
  z-index: 240;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.header-account-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.85rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
}

.header-account-item:hover {
  background: rgba(242, 227, 213, 0.1);
}

.header-account-logout {
  border-top: 1px solid rgba(242, 227, 213, 0.12);
  margin-top: 0.2rem;
  border-radius: 0 0 8px 8px;
}

/* Inner pages keep a subtle bar for readability */
body.page-design:not(.page-home) .site-header--design {
  background: rgba(74, 14, 19, 0.94) !important;
  backdrop-filter: blur(10px);
}

.site-header--design .nav-burger span {
  background: var(--cream);
}

/* ── Display titles ── */
.home-display-title {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
  margin: 0 0 1.5rem;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
}

.home-display-title--cream { color: var(--cream); }
.home-display-title--burgundy { color: var(--burgundy); }
.home-display-title--center { text-align: center; }

#about,
#format,
#value,
#creators,
#for-whom,
#events-teaser {
  scroll-margin-top: 96px;
}

/* ── Hero ── */
.page-home .home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  /* Kill legacy styles.css purple gradient + bg image — media is in HTML */
  background: #1a0a0c !important;
}

.home-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.home-hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  /* фон33 already has baked type + grade — don’t recolor */
  filter: none;
}

.page-home .home-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, 92%);
  margin: 0 auto;
  padding: 0 0 clamp(3.5rem, 7vw, 5.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.page-home .home-hero-cta,
.page-home .home-hero .btn-pill {
  margin-top: 0;
}

/* ── About: Искусство красивых встреч ── */
/*
  Scene + for-whom paper share the same width-based scale (100% of viewport).
  About scene is pinned to the section bottom so the note cut sits on the seam.
*/
.page-home {
  --home-body-indent: clamp(1.35rem, 4.8vw, 3.35rem);
  /* ~8px nudge at 1920 artboard; scales with scene width */
  --home-paper-nudge: 0.42%;
}

.page-home .home-about {
  --about-burgundy: #4a0e13;
  background: var(--about-burgundy) !important;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  aspect-ratio: auto;
  max-height: none;
  min-height: clamp(560px, 68vh, 780px);
  padding: clamp(4.5rem, 7vw, 6.5rem) 0 clamp(4rem, 6vw, 5.5rem);
  scroll-margin-top: 5.5rem;
  z-index: 2;
}

.page-home .home-about-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  line-height: 0;
  overflow: hidden;
}

.page-home .home-about-scene picture {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  width: 100%;
  aspect-ratio: 1920 / 933;
  display: block;
  line-height: 0;
}

.page-home .home-about-scene img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: top center;
}

.page-home .home-about-layout {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: clamp(1.35rem, 2.5vw, 2rem);
}

/* Section titles: match for-whom size + container left edge */
.page-home .home-about .home-display-title,
.page-home .home-for-whom .home-display-title,
.page-home .home-format .home-display-title,
.page-home .home-value .home-display-title {
  margin: 0 0 1.5rem;
  max-width: none;
  width: auto;
  font-size: clamp(1.75rem, 3.6vw, 2.85rem);
  letter-spacing: 0.1em;
  line-height: 1.22;
  text-align: left;
  text-transform: uppercase;
  background: transparent !important;
  text-shadow: none;
}

.page-home .home-about .home-display-title,
.page-home .home-for-whom .home-display-title {
  margin-bottom: 0;
}

/*
  Cream title can clip the paper/leaf of about-scene.
  Stroke matches section burgundy: invisible on solid bg, readable over paper.
*/
.page-home .home-about .home-display-title.home-display-title--cream {
  -webkit-text-stroke: 0.09em var(--about-burgundy);
  paint-order: stroke fill;
  text-shadow: none;
}

/*
  Body sits a step further from the left edge than the section title (mock).
*/
.page-home .home-about-copy {
  width: min(34rem, 48%);
  max-width: 48%;
  margin: 0;
  margin-left: var(--home-body-indent);
  margin-right: auto;
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  text-align: left;
}

.page-home .home-about-text {
  max-width: 32rem;
}

.page-home .home-about-text p {
  color: rgba(242, 227, 213, 0.92);
  font-weight: 300;
  line-height: 1.8;
  margin: 0 0 1.15rem;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  background: transparent !important;
  text-align: left;
}

.page-home .home-about-text p:last-child {
  margin-bottom: 0;
}

/* ── For whom tiles ── */
.page-home .home-for-whom {
  background: var(--cream-soft) !important;
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 clamp(4.5rem, 8vw, 6.5rem);
  position: relative;
  z-index: 1;
  overflow: visible;
}

/* Paper corner: same width-scale as about-scene (100% of section) */
.page-home .home-for-whom-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
  pointer-events: none;
  line-height: 0;
  margin-top: 0;
  transform: translateX(var(--home-paper-nudge));
}

.page-home .home-for-whom-bg picture,
.page-home .home-for-whom-bg img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: unset;
  object-position: top left;
}

.page-home .home-for-whom-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.page-home .home-for-whom-head {
  margin-bottom: 1.75rem;
  padding-bottom: 0.25rem;
}


.page-home .home-tiles {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-rows: unset !important;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 18px !important;
  margin: 0 !important;
  width: 100%;
  box-sizing: border-box;
}

.page-home .home-tile {
  position: relative;
  overflow: hidden;
  display: flex !important;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 0 !important;
  aspect-ratio: 4 / 3 !important;
  height: auto !important;
  padding: 1.35rem 1.45rem !important;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(0.95rem, 1.25vw, 1.12rem);
  line-height: 1.45;
  box-sizing: border-box;
}

.page-home .home-tile--image {
  padding: 0 !important;
  background: #23090e;
}

.page-home .home-tile--image picture {
  position: absolute;
  inset: 0;
  display: block;
}

.page-home .home-tile--image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.page-home .home-tile--image:hover img {
  transform: scale(1.04);
  filter: brightness(1.06);
}

/* Tile fills from mock 3.png */
.page-home .home-tile--accent {
  background: #330008 !important;
  color: #f5ede8 !important;
}

.page-home .home-tile--dark {
  background: #363337 !important;
  color: #f5ede8 !important;
}

.page-home .home-tile--mauve {
  background: #700f26 !important;
  color: #f5ede8 !important;
}

.page-home .home-tile--accent,
.page-home .home-tile--dark,
.page-home .home-tile--mauve {
  transition: filter 0.3s ease;
}

.page-home .home-tile--accent:hover,
.page-home .home-tile--dark:hover,
.page-home .home-tile--mauve:hover {
  filter: brightness(1.06);
}

/* ── Format ── */
/* Layered: solid CSS burgundy + full-bleed transparent scene from mock */
.home-format {
  background: #4a0e13;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: clamp(480px, 52vw, 700px);
  padding: clamp(3.25rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
  scroll-margin-top: 5.5rem;
}

.home-format-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  line-height: 0;
}

.home-format-scene picture,
.home-format-scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center right;
}

.home-format-inner {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
}

.home-format-copy {
  position: relative;
  z-index: 2;
  max-width: min(34rem, 44%);
  min-width: min(100%, 17rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.home-format-copy .home-display-title {
  margin-bottom: 1.1rem;
  white-space: nowrap;
}

.home-format-lead {
  color: rgba(242, 227, 213, 0.84);
  font-weight: 300;
  margin: 0 0 1.65rem;
  margin-left: var(--home-body-indent);
  max-width: 36ch;
  line-height: 1.7;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  text-align: left;
}

.home-format-formats {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  width: max-content;
  max-width: 100%;
  margin: 0 0 1.85rem;
}

.home-format-sub {
  font-family: var(--font-display);
  color: var(--cream);
  letter-spacing: 0.1em;
  font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  line-height: 1.25;
  margin: 0 0 0.95rem;
  text-transform: uppercase;
  text-align: center;
}

.home-format-pills {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 0.65rem 0.8rem;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.home-format-pills li {
  background: var(--cream);
  color: var(--burgundy-deep);
  border-radius: var(--pill-radius);
  padding: 0.55rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 400;
  white-space: nowrap;
}

.home-format-script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--cream);
  font-size: clamp(1.2rem, 1.85vw, 1.45rem);
  line-height: 1.3;
  margin: 0;
  margin-left: var(--home-body-indent);
  max-width: none;
  text-align: left;
  align-self: flex-start;
}

/* ── Value ── */
.home-value {
  background: var(--cream-soft);
  padding: clamp(4.5rem, 8vw, 6.5rem) 0;
}

.home-value-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.75rem, 3vw, 2.75rem);
  align-items: end;
}

.home-value-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.home-value-list li {
  color: var(--burgundy);
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.45;
  padding-left: 1.4rem;
  position: relative;
}

.home-value-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--burgundy);
}

.home-slider-nav {
  display: flex;
  gap: 0.65rem;
}

.home-slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--burgundy);
  background: transparent;
  color: var(--burgundy);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.home-slider-nav--cream .home-slider-btn {
  border-color: var(--cream);
  color: var(--cream);
}

.home-value-track-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: pan-x;
}

.home-value-track-wrap::-webkit-scrollbar {
  display: none;
}

.home-value-track-wrap.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.home-value-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  transition: none;
}

.home-value-card {
  flex: 0 0 min(220px, 42vw);
  aspect-ratio: 2 / 3;
  background: #ddd5c8;
  overflow: hidden;
  border-radius: 0;
}

.home-value-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  filter: none;
}

/* ── Events teaser ── */
.home-events-teaser {
  background: var(--cream);
  padding: clamp(4rem, 7vw, 5.5rem) 0;
}

.home-events-teaser-lead {
  text-align: center;
  max-width: 48ch;
  margin: -0.5rem auto 2rem;
  color: var(--burgundy);
  font-weight: 300;
  line-height: 1.7;
}

.home-events-teaser-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2rem;
  margin-bottom: 2rem;
}

.home-events-teaser-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(94, 25, 40, 0.18);
}

.home-events-teaser-date {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--burgundy);
  margin: 0 0 0.25rem;
}

.home-events-teaser-title {
  font-family: var(--font-display);
  color: var(--burgundy);
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.home-events-teaser-meta {
  margin: 0;
  color: rgba(94, 25, 40, 0.7);
  font-size: 0.85rem;
  font-weight: 300;
}

.home-events-teaser-thumb {
  width: 110px;
  height: 78px;
  object-fit: cover;
  border-radius: 4px;
  background: #ddd5c8;
}

.home-events-teaser-actions {
  text-align: center;
}

.home-events-empty {
  text-align: center;
  color: var(--burgundy);
  grid-column: 1 / -1;
}

/* ── Creators ── */
.home-creators {
  background: var(--burgundy-mid);
  padding: clamp(4.5rem, 8vw, 6rem) 0;
}

.home-creators-panel {
  position: relative;
  min-height: 180px;
  max-width: 52rem;
}

.home-creators-slide {
  display: none;
  color: rgba(242, 227, 213, 0.9);
  font-weight: 300;
  line-height: 1.85;
}

.home-creators-slide.is-active {
  display: block;
}

.home-creators-slide p {
  margin: 0 0 1rem;
}

.home-creators .home-slider-nav {
  margin-top: 1.75rem;
}

/* ── Reviews (restyle on cream) ── */
.page-home .home-reviews {
  background: var(--cream-soft);
  padding: clamp(4.5rem, 8vw, 6rem) 0;
}

.page-home .home-reviews-lead,
.page-home .home-reviews-compose-hint,
.page-home .home-reviews-note {
  color: var(--burgundy);
}

.page-home .home-review-card {
  background: #ead9c8;
}

.page-home .home-review-text,
.page-home .home-review-author,
.page-home .home-reviews-compose-title {
  color: var(--burgundy-deep);
}

/* ── Final CTA ── */
.page-home .home-final-cta {
  background: var(--burgundy-deep);
  padding: clamp(4.5rem, 8vw, 6.5rem) 0;
  margin-bottom: 0;
}

/* Kill cream flash between final CTA and footer (main padding / margin collapse) */
.page-home #main {
  padding-bottom: 0 !important;
  margin-bottom: 0;
  display: flow-root;
  background: var(--burgundy-deep);
}

body.page-home .site-footer--design {
  margin-top: 0;
  background: var(--burgundy-deep);
}

.page-home .home-final-cta-inner {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.page-home .home-final-cta-sub {
  color: rgba(242, 227, 213, 0.72);
  margin: 0 auto 1.85rem;
  font-weight: 300;
  line-height: 1.7;
  max-width: 40ch;
}

/* ── Footer ── */
.site-footer--design {
  background: var(--burgundy-deep);
  color: var(--cream);
  padding: clamp(3rem, 5vw, 4rem) 0 2.5rem;
  border-top: none;
}

.site-footer--design.container,
.site-footer--design .container {
  width: min(1200px, calc(100% - 4.5rem));
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
}

.site-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.site-footer-logo img {
  width: 36px;
  height: 36px;
}

.site-footer-logo-script {
  display: block;
  font-family: var(--font-script);
  font-size: 1.55rem;
  line-height: 1;
}

.site-footer-logo-sub {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.site-footer-heading {
  font-weight: 500;
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

.site-footer-links {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.site-footer-links a {
  color: rgba(242, 227, 213, 0.82);
  text-decoration: none;
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.9;
}

.site-footer-links a:hover {
  color: #fff;
}

.site-footer-meta p {
  margin: 0 0 0.4rem;
  font-weight: 300;
  font-size: 0.9rem;
  color: rgba(242, 227, 213, 0.82);
}

.site-footer--design .telegram-social {
  color: var(--burgundy-deep);
  background: var(--cream);
  border-color: var(--cream);
}

.site-footer--design .telegram-social:hover {
  color: var(--burgundy);
  background: #fff;
  border-color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.site-footer--design .footer-copy {
  margin-top: 1.25rem;
  opacity: 0.7;
  font-size: 0.82rem;
}

/* Inner pages with design chrome (not admin/host dark dashboards) */
body.page-design:not(.page-home):not(.admin-page) {
  background: var(--cream-soft);
}

body.page-design:not(.page-home) .site-header--design {
  position: sticky;
  top: 0;
}

body.page-design:not(.page-home):not(.admin-page) .hero h1,
body.page-design:not(.page-home):not(.admin-page) .hero .subtitle {
  font-family: var(--font-display);
  color: var(--burgundy);
}

body.page-design:not(.page-home):not(.admin-page) .hero .subtitle {
  font-family: var(--font-sans);
  font-weight: 300;
}

@media (max-width: 960px) {
  .home-value-inner,
  .site-footer-grid,
  .home-events-teaser-list {
    grid-template-columns: 1fr;
  }

  .page-home .home-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: none;
  }

  .page-home .home-hero-inner {
    width: min(920px, 92%);
    padding-bottom: clamp(2.75rem, 8vw, 4rem);
  }

  .page-home .home-about {
    aspect-ratio: auto;
    max-height: none;
    min-height: clamp(480px, 78vh, 640px);
    padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(3.25rem, 8vw, 4.5rem);
  }

  .home-format {
    min-height: clamp(520px, 85vw, 640px);
    padding: clamp(2.25rem, 6vw, 3.25rem) 0 clamp(3.25rem, 8vw, 4.5rem);
  }

  .home-format-scene img {
    object-position: 72% center;
  }

  .page-home .home-about-copy {
    width: min(34rem, 78%);
    max-width: 78%;
    margin-left: var(--home-body-indent);
  }

  .home-format-copy {
    max-width: min(34rem, 92%);
  }

  .home-format-formats {
    align-self: flex-start;
  }

  .home-format-pills {
    grid-template-columns: repeat(2, max-content);
  }

  .site-header--design .main-nav {
    justify-content: flex-start;
  }

  body.page-design .container,
  body.page-home .container,
  .site-footer--design .container {
    width: min(1200px, calc(100% - 2.5rem));
  }
}

@media (max-width: 640px) {
  .page-home {
    --home-body-indent: 0.85rem;
  }

  .page-home .home-for-whom-head {
    margin-bottom: 1.1rem;
  }

  .page-home .home-about .home-display-title,
  .page-home .home-for-whom .home-display-title,
  .page-home .home-format .home-display-title,
  .page-home .home-value .home-display-title {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    letter-spacing: 0.06em;
  }

  .home-format-copy .home-display-title {
    white-space: normal;
  }

  /* Keep 2 columns so tiles don't stretch full-bleed height */
  .page-home .home-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .page-home .home-tile {
    aspect-ratio: 5 / 3 !important;
    padding: 0.95rem 1rem !important;
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .page-home .home-about {
    aspect-ratio: auto;
    max-height: none;
    min-height: 0;
    padding: clamp(3rem, 8vw, 4rem) 0 clamp(3rem, 12vw, 4.5rem);
  }

  .home-format {
    min-height: 0;
    padding-bottom: clamp(3rem, 12vw, 4.5rem);
  }

  .page-home .home-about-copy {
    width: min(100%, 22rem);
    max-width: 92%;
    margin-left: var(--home-body-indent);
    margin-right: auto;
    position: relative;
    z-index: 2;
    text-align: left;
  }

  .home-format-scene img {
    object-position: 80% center;
    opacity: 0.92;
  }

  .home-format-pills {
    grid-template-columns: 1fr;
  }

  .home-format-pills li {
    white-space: normal;
    justify-self: stretch;
    text-align: center;
  }

  .home-format-formats {
    width: 100%;
    max-width: 18rem;
    align-self: flex-start;
  }

  .site-header--design .header-cta {
    display: none;
  }

  .brand-logo-mark {
    width: 44px;
    height: 44px;
  }

  .site-header--design .site-header-inner {
    min-height: 72px;
  }

  /* Other sections that over-stretch on narrow screens */
  .page-home .home-display-title {
    font-size: clamp(1.15rem, 6vw, 1.65rem);
  }

  .page-home .home-about .home-display-title,
  .page-home .home-for-whom .home-display-title,
  .page-home .home-format .home-display-title,
  .page-home .home-value .home-display-title {
    font-size: clamp(1.15rem, 6vw, 1.55rem);
    text-align: left;
    margin-inline: 0;
    max-width: none;
  }

  .home-value-card {
    flex: 0 0 min(160px, 58vw);
  }

  .page-home .home-final-cta-inner {
    max-width: 22rem;
    padding-inline: 0.5rem;
  }
}

@media (max-width: 760px) {
  body.page-design .site-header--design .header-actions {
    display: flex !important;
    position: static;
    flex-direction: row;
    padding: 0;
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
  }

  body.page-design .site-header--design .header-end {
    flex-direction: row;
    width: auto;
    align-items: center;
  }

  .header-account-panel {
    right: 0;
    left: auto;
    min-width: 210px;
  }

  body.page-design .site-header--design .header-account {
    margin-left: auto;
  }
}
