@import url('https://fonts.googleapis.com/css2?family=Forum&family=Cormorant+Garamond:wght@400;500;600;700&display=swap');

:root {
  --bg-light: #ffffff;
  --text-dark: #000000;
  --text-muted: #666666;
  --accent: #000000;
  --font-main: 'Forum', 'Cormorant Garamond', serif;
  --font-accent: 'Cormorant Garamond', 'Forum', serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html, body {
  overflow-x: hidden;
  overscroll-behavior-x: none;
  overscroll-behavior-y: auto;
  touch-action: auto;
}

html {
  scroll-behavior: smooth;
  min-height: -webkit-fill-available;
  background: #ecebf7;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100svh;
  min-height: -webkit-fill-available;
}

button,
input,
select,
textarea {
  font-family: var(--font-main);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 30px 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-dark);
  text-decoration: none;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 0;
}

.nav {
  display: flex;
  gap: 50px;
}

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1.5px;
  transition: opacity 0.3s ease;
  position: relative;
}

.nav-link:hover {
  opacity: 0.7;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--text-dark);
  transition: all 0.3s ease;
}
/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
}

.hero-title {
  font-size: 80px;
  font-weight: 300;
  letter-spacing: 4px;
  text-align: center;
}

/* Sections */
.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 0;
}

.section h2 {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 3px;
  margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 48px;
  }

  .section h2 {
    font-size: 36px;
  }

  .container {
    padding: 0 20px;
  }
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 34%,
      rgba(255, 210, 229, 0.18) 50%,
      rgba(176, 204, 255, 0.2) 64%,
      rgba(134, 160, 224, 0.12) 100%
    );
}

.sparkles {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.36;
  background-image: radial-gradient(rgba(255, 255, 255, 0.88) 0.7px, transparent 0.7px);
  background-size: 4px 4px;
}

body.home-minimal .sparkles {
  display: none;
}

.glass {
  border: 1px solid var(--line);
  background:
    linear-gradient(148deg, var(--card-strong), var(--card)),
    radial-gradient(120% 90% at 0% 100%, rgba(153, 217, 255, 0.2), rgba(153, 217, 255, 0)),
    radial-gradient(120% 90% at 100% 0%, rgba(255, 182, 211, 0.24), rgba(255, 182, 211, 0));
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.45);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(26px) saturate(132%);
  -webkit-backdrop-filter: blur(26px) saturate(132%);
  z-index: -1;
}

.topbar.glass {
  overflow: visible;
}

.topbar.glass::before {
  border-radius: 26px;
}

.topbar.glass::after {
  display: none;
}

.glass::after {
  content: "";
  position: absolute;
  top: -80%;
  left: -42%;
  width: 62%;
  height: 250%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0));
  transform: rotate(22deg);
  animation: sheen 9s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

.topbar {
  width: min(460px, calc(100% - 22px));
  margin: 12px auto 10px;
  border-radius: 26px;
  padding: 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  position: sticky;
  top: calc(10px + var(--safe-top));
  z-index: 40;
}

.logo {
  display: inline-grid;
  place-items: center;
  color: #6c608d;
  text-decoration: none;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--font-main);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.menu-toggle {
  justify-self: end;
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: transparent;
  width: 74px;
  height: 58px;
  padding: 0;
  font: inherit;
  font-size: 0;
  transition: transform 0.35s var(--menu-ease), box-shadow 0.35s ease, background 0.35s ease;
  position: relative;
  margin-top: 0;
  z-index: 80; /* выше .menu (60) — повторный клик закрывает меню */
}

.menu-toggle::before {
  content: "";
  position: absolute;
  left: 19px;
  right: 19px;
  top: 16px;
  height: 2px;
  border-radius: 999px;
  background: rgba(54, 47, 78, 0.94);
  box-shadow: 0 11px 0 rgba(54, 47, 78, 0.94), 0 22px 0 rgba(54, 47, 78, 0.94);
}

/* ===== MOBILE MENU (rewritten v2) ===== */
.menu {
  position: fixed;
  top: calc(var(--safe-top) + 74px);
  left: 10px;
  right: 10px;
  bottom: auto;
  width: auto;
  height: auto;
  max-height: calc(100svh - var(--safe-top) - var(--safe-bottom) - 88px);
  padding: 12px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 10px;
  background: linear-gradient(170deg, rgba(244, 247, 255, 0.92), rgba(226, 233, 248, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 28px;
  box-shadow:
    0 20px 40px rgba(63, 58, 96, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transform: translate3d(0, -18px, 0) scale(0.97);
  opacity: 0;
  transition:
    transform 0.48s cubic-bezier(0.34, 1.46, 0.64, 1),
    opacity 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0.48s;
  z-index: 90;
  visibility: hidden;
  pointer-events: none;
}

.menu::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.menu.open {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    transform 0.48s cubic-bezier(0.34, 1.46, 0.64, 1),
    opacity 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0s;
}

.menu::before,
.menu::after {
  display: none;
}

.menu a {
  position: relative;
  display: block;
  text-align: center;
  text-decoration: none;
  color: #353152;
  font-family: var(--font-main);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(240, 245, 255, 0.65));
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 18px rgba(77, 72, 110, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.menu a::before,
.menu a::after {
  content: "";
  position: absolute;
  pointer-events: none;
  display: block;
}

.menu a::before {
  display: none;
}

.menu a::after {
  display: none;
}

.menu.open a {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: var(--item-delay, 0s);
}

.menu a:hover,
.menu a:active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(242, 247, 255, 0.8));
  box-shadow: 0 10px 22px rgba(77, 72, 110, 0.16);
}

.menu a.active {
  font-weight: 600;
  background: linear-gradient(180deg, rgba(255, 243, 232, 0.94), rgba(255, 226, 214, 0.78));
  border-color: rgba(255, 220, 200, 0.8);
}


.phone-layout {
  width: min(460px, calc(100% - 22px));
  margin: 0 auto 22px;
  display: grid;
  gap: 12px;
}

.phone-hero {
  display: grid;
  gap: 12px;
}

.phone-mockup {
  border-radius: 44px;
  padding: 12px;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.3s ease;
}

.notch {
  width: 34%;
  height: 17px;
  margin: 0 auto;
  border-radius: 0 0 14px 14px;
  background: rgba(20, 20, 30, 0.82);
  position: relative;
  z-index: 2;
}

.screen {
  margin-top: -9px;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  background: #ddd;
  min-height: 460px;
}

.screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.screen-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 22px 18px 20px;
  background: linear-gradient(to top, rgba(245, 240, 255, 0.84), rgba(245, 240, 255, 0));
  text-align: center;
}

.screen-overlay p {
  margin: 0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

.screen-overlay h1 {
  margin: 8px 0 12px;
  font-family: var(--font-main);
  font-size: clamp(1.55rem, 7vw, 2rem);
  line-height: 1.15;
  font-weight: 600;
}

.glass-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.35);
  font-size: 0.86rem;
  transition: transform 0.25s ease;
}

.glass-button:hover {
  transform: translateY(-2px);
}

.intro-card,
.feature-card,
.content-card,
.gallery-strip,
.section-header {
  border-radius: 26px;
  padding: 16px;
}

.intro-card h2,
.feature-card h2,
.section-header h2,
.content-card h2 {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 1.8rem;
  line-height: 1.14;
  letter-spacing: 0.01em;
}

.intro-card p,
.feature-card p,
.content-card p,
.content-card li {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.62;
}

.mini-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mini-tile {
  text-decoration: none;
  color: var(--text);
  text-align: center;
  font-size: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  padding: 10px 6px;
  background: rgba(255, 255, 255, 0.45);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.feature-card ul,
.content-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.feature-card .glass-button {
  margin-top: 12px;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gallery-strip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.page-main {
  width: min(460px, calc(100% - 22px));
  margin: 0 auto 22px;
  display: grid;
  gap: 12px;
}

.section-header p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.58;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.poster-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.page-main.page-editorial {
  gap: 16px;
  padding-bottom: 28px;
}

.page-hero,
.story-card,
.format-card,
.statement-card,
.contact-card,
.poster-stage {
  position: relative;
  isolation: isolate;
}

.page-hero {
  border-radius: 34px;
  padding: 26px 20px 22px;
  overflow: hidden;
}

.page-hero::before,
.page-hero::after,
.story-card::before,
.format-card::before,
.statement-card::before,
.contact-card::before,
.poster-stage::before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.page-hero::before {
  inset: -12% auto auto -8%;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0));
  filter: blur(8px);
}

.page-hero::after {
  right: -16%;
  bottom: -24%;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(206, 236, 255, 0.34), rgba(206, 236, 255, 0));
}

.tone-violet {
  background:
    linear-gradient(148deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.28)),
    radial-gradient(96% 86% at 18% 14%, rgba(204, 215, 255, 0.66), rgba(204, 215, 255, 0)),
    radial-gradient(92% 84% at 100% 100%, rgba(255, 202, 235, 0.48), rgba(255, 202, 235, 0));
}

.tone-rose {
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.34)),
    radial-gradient(94% 88% at 14% 18%, rgba(255, 216, 233, 0.58), rgba(255, 216, 233, 0)),
    radial-gradient(90% 86% at 100% 100%, rgba(195, 226, 255, 0.46), rgba(195, 226, 255, 0));
}

.tone-sky {
  background:
    linear-gradient(148deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.32)),
    radial-gradient(94% 86% at 16% 16%, rgba(196, 229, 255, 0.62), rgba(196, 229, 255, 0)),
    radial-gradient(100% 92% at 100% 100%, rgba(236, 213, 255, 0.34), rgba(236, 213, 255, 0));
}

.tone-pearl {
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.4)),
    radial-gradient(120% 100% at 0% 100%, rgba(210, 236, 255, 0.34), rgba(210, 236, 255, 0)),
    radial-gradient(120% 100% at 100% 0%, rgba(255, 218, 236, 0.34), rgba(255, 218, 236, 0));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: rgba(73, 64, 109, 0.72);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(79, 70, 111, 0.16), rgba(79, 70, 111, 0.72));
}

.page-title {
  font-family: var(--font-main);
  font-size: clamp(2.3rem, 7vw, 3.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: #2c2446;
}

.page-dek {
  margin-top: 14px;
  max-width: 60ch;
  color: #4d4468;
  line-height: 1.68;
  font-size: 1rem;
}

.hero-pills,
.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-pills span,
.meta-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.42);
  color: #3d3558;
  box-shadow:
    0 10px 24px rgba(101, 94, 138, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  line-height: 1.3;
}

.story-grid,
.format-grid,
.contact-stack {
  display: grid;
  gap: 12px;
}

.story-card,
.format-card,
.statement-card,
.contact-card,
.poster-stage {
  border-radius: 28px;
  padding: 18px 16px;
}

.story-card::before,
.format-card::before,
.statement-card::before,
.contact-card::before,
.poster-stage::before {
  inset: auto -10% -28% auto;
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
}

.story-card h2,
.format-card h3,
.statement-card h3,
.contact-card h3,
.poster-stage h2 {
  font-family: var(--font-main);
  font-weight: 600;
  line-height: 1;
  color: #2c2446;
}

.story-card h2,
.poster-stage h2 {
  font-size: 2rem;
}

.format-card h3,
.statement-card h3,
.contact-card h3 {
  font-size: 1.62rem;
}

.story-card p,
.format-card p,
.statement-card p,
.contact-card p,
.story-card li,
.format-card li,
.statement-card li,
.contact-card li {
  margin-top: 12px;
  color: #4f476b;
  line-height: 1.7;
}

.story-card ul,
.format-card ul,
.statement-card ul,
.contact-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.callout-line {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(82, 73, 118, 0.12);
  color: #3a3254;
  font-weight: 600;
}

.poster-stage {
  overflow: hidden;
}

.poster-stage .poster-grid {
  position: relative;
  z-index: 1;
  gap: 12px;
}

.poster-stage .poster-grid img {
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(95, 86, 129, 0.16);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.46);
  color: #2f2847;
  text-decoration: none;
  font-weight: 600;
  box-shadow:
    0 12px 28px rgba(89, 82, 126, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.contact-note {
  margin-top: 10px;
  color: rgba(74, 65, 105, 0.78);
  font-size: 0.9rem;
}

.statement-card--compact p:first-of-type,
.story-card--compact p:first-of-type {
  margin-top: 10px;
}

.list-tight {
  display: grid;
  gap: 12px;
}

@media (min-width: 860px) {
  .page-main.page-editorial {
    gap: 18px;
  }

  .page-hero {
    padding: 34px 34px 30px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .story-grid--two,
  .format-grid--three,
  .contact-stack--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .format-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .story-card,
  .format-card,
  .statement-card,
  .contact-card,
  .poster-stage {
    padding: 24px 22px;
  }

  .poster-stage .poster-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.site-footer {
  width: min(460px, calc(100% - 22px));
  margin: 0 auto 20px;
  color: #6f6889;
  text-align: center;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(214, 236, 255, 0.08), rgba(214, 236, 255, 0)),
    linear-gradient(180deg, rgba(28, 22, 48, 0.05), rgba(28, 22, 48, 0.12));
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(0px) saturate(100%);
  -webkit-backdrop-filter: blur(0px) saturate(100%);
  transition: opacity 0.74s ease, backdrop-filter 0.74s ease;
  will-change: opacity, backdrop-filter;
  z-index: 39;
}

body.menu-open .menu-backdrop {
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(7px) saturate(115%);
  -webkit-backdrop-filter: blur(7px) saturate(115%);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.95s cubic-bezier(0.2, 0.75, 0.2, 1), transform 0.95s cubic-bezier(0.2, 0.75, 0.2, 1);
}

[data-reveal].show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes sheen {
  0%,
  100% {
    transform: translateX(0) rotate(22deg);
    opacity: 0.35;
  }
  50% {
    transform: translateX(460%) rotate(22deg);
    opacity: 1;
  }
}

@media (min-width: 860px) {
  .topbar {
    width: min(1120px, calc(100% - 30px));
    grid-template-columns: auto 1fr;
    padding: 10px 12px;
  }

  .topbar.glass::before {
    display: none;
  }

  .menu-toggle {
    display: none;
  }

  .menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    padding-top: 0;
    position: static;
    top: auto;
    right: auto;
    height: auto;
    width: auto;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-left: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    overflow: visible;
    z-index: auto;
  }

  .menu a {
    border-radius: 999px;
    padding: 8px 12px;
    padding-left: 26px;
    font-size: 0.82rem;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }

  .menu a::before {
    left: 11px;
    width: 6px;
    height: 6px;
  }

  .menu-backdrop {
    display: none;
  }

  .home-topbar {
    width: calc(100% - 32px);
    max-width: none;
  }

  .phone-layout,
  .page-main,
  .site-footer {
    width: min(1120px, calc(100% - 30px));
  }

  .phone-hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }

  .intro-card,
  .feature-card {
    height: 100%;
  }

  .gallery-strip {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .home-minimal [data-words] .word {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

body.home-minimal {
  min-height: 100svh;
  min-height: -webkit-fill-available;
  overflow-x: hidden;
  overflow-y: auto;
  background: #cdd0e0 url("doci/home-bg-459f-b8f6-f5e8c1cdb4a6.jpeg") center center / cover no-repeat;
}

.home-bg-full {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}

.home-bg-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.home-topbar {
  width: min(980px, calc(100% - 32px));
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 16px 4px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-desktop-links {
  display: none;
}

.home-topbar::after {
  display: none;
}

.home-topbar .logo,
.home-topbar .menu-toggle {
  border: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.24));
  box-shadow: 0 12px 32px rgba(92, 84, 127, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.home-topbar .logo {
  width: 76px;
  height: 76px;
  border-radius: 26px;
  color: #4f466f;
  border: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
  isolation: isolate;
}

.home-topbar .logo::before,
.home-topbar .logo::after {
  display: none;
}

.logo-mark {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 45%;
  display: block;
}

.home-topbar .menu-toggle {
  width: 74px;
  height: 58px;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  margin-left: auto;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: none;
  position: relative;
  z-index: 80;
}

.home-topbar .menu-toggle::before {
  left: 19px;
  right: 19px;
  top: 16px;
  height: 2px;
  background: rgba(54, 47, 78, 0.94);
  box-shadow: 0 11px 0 rgba(54, 47, 78, 0.94), 0 22px 0 rgba(54, 47, 78, 0.94);
}

.home-topbar .menu a {
  padding: 14px 16px;
  color: #3e3858;
  opacity: 0.95;
}

.home-topbar .menu a.active {
  opacity: 1;
  font-weight: 600;
}

.home-main {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
  min-height: calc(100svh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-content {
  display: grid;
  gap: 10px;
  max-width: min(620px, calc(100% - 20px));
  padding: 0;
  text-align: center;
  transform: translateY(14vh);
}

.home-kicker {
  display: none;
}

.home-content h1 {
  font-family: var(--font-main);
  font-size: clamp(2rem, 5.2vw, 3.1rem);
  line-height: 0.92;
  font-weight: 500;
  letter-spacing: 0;
  text-wrap: balance;
  color: #26203f;
  text-shadow: 0 10px 26px rgba(255, 255, 255, 0.32);
}

.home-lead {
  margin: 0;
  font-family: var(--font-main);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 400;
  line-height: 1.05;
  color: #2f294a;
  max-width: 18ch;
  margin-inline: auto;
  text-wrap: balance;
  text-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.home-actions {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.home-actions a {
  text-decoration: none;
  color: #2f294a;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 18px 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.24)),
    radial-gradient(120% 90% at 0% 100%, rgba(205, 229, 255, 0.22), rgba(205, 229, 255, 0));
  box-shadow:
    0 18px 36px rgba(90, 81, 128, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px) saturate(136%);
  -webkit-backdrop-filter: blur(10px) saturate(136%);
  transition: transform 0.35s var(--menu-ease), box-shadow 0.35s ease, background 0.35s ease;
}

.home-actions a::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 10px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(47, 41, 74, 0), rgba(47, 41, 74, 0.3), rgba(47, 41, 74, 0));
  transform: scaleX(0);
  transform-origin: center;
  animation: lineIn 0.45s ease forwards;
  animation-delay: calc(var(--base-delay, 0s) + 0.22s);
}

.home-actions a::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  z-index: -1;
  background-image: url("doci/home-bg-459f-b8f6-f5e8c1cdb4a6.jpeg");
  background-size: 190% auto;
  background-position: center 66%;
  opacity: 0.42;
  filter: saturate(1.18) blur(0.2px);
}

.home-actions a:hover {
  transform: translateY(-2px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.44)),
    radial-gradient(120% 90% at 0% 100%, rgba(205, 229, 255, 0.28), rgba(205, 229, 255, 0));
  box-shadow:
    0 20px 36px rgba(90, 81, 128, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.home-footer {
  width: min(900px, calc(100% - 28px));
  margin-top: 0;
  color: rgba(95, 88, 122, 0.88);
  display: none;
}

.home-minimal [data-words] .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
  filter: blur(4px);
  animation: wordRise 0.85s cubic-bezier(0.16, 0.84, 0.24, 1) forwards;
  animation-delay: calc(var(--w-index) * 0.05s + var(--base-delay, 0s));
}

@media (max-width: 860px) {
  body.home-minimal {
    min-height: 100svh;
    min-height: -webkit-fill-available;
    overflow-y: auto;
  }

  .home-topbar {
    width: min(460px, calc(100% - 24px));
    padding-top: 8px;
  }

  .home-topbar .logo {
    width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 14px;
  }

  .home-main {
    width: min(460px, calc(100% - 24px));
    min-height: calc(100svh - 96px);
    justify-content: center;
    text-align: center;
  }

  .home-content {
    transform: translateY(16vh);
    max-width: 100%;
  }

  .home-lead {
    max-width: none;
  }

  .home-actions {
    justify-content: center;
  }

  .home-footer {
    width: min(460px, calc(100% - 24px));
    margin-bottom: 10px;
  }
}

@supports (-webkit-touch-callout: none) {
  body.render-page,
  body.home-minimal {
    min-height: -webkit-fill-available;
  }

  .menu {
    max-height: calc(100vh - var(--safe-top) - var(--safe-bottom) - 88px);
  }
}

@media (min-width: 860px) {
  body.home-minimal .home-bg-full {
    display: block;
    background: none;
  }

  body.home-minimal .home-bg-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .home-topbar {
    width: min(1180px, calc(100% - 44px));
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 14px;
  }

  .home-topbar .menu {
    display: none;
  }

  .home-topbar .menu-toggle {
    display: none;
  }

  .home-desktop-links {
    display: flex;
    margin-left: auto;
    gap: 10px;
    flex-wrap: wrap;
  }

  .home-desktop-links a {
    text-decoration: none;
    color: #302a4a;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.74);
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.36)),
      radial-gradient(120% 90% at 100% 0%, rgba(255, 207, 234, 0.2), rgba(255, 207, 234, 0));
    box-shadow:
      0 10px 24px rgba(80, 74, 122, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .home-desktop-links a:hover {
    transform: translateY(-1px);
    box-shadow:
      0 14px 28px rgba(80, 74, 122, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.92);
  }

  .home-main {
    justify-content: flex-start;
  }

  .home-content {
    text-align: left;
    transform: translateY(10vh);
    max-width: 540px;
  }

  .home-lead {
    margin-inline: 0;
  }

  .home-actions {
    justify-content: flex-start;
  }
}

@keyframes wordRise {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes lineIn {
  to {
    transform: scaleX(1);
  }
}

.menu a:nth-child(1) {
  --item-delay: 0.1s;
}

.menu a:nth-child(2) {
  --item-delay: 0.14s;
}

.menu a:nth-child(3) {
  --item-delay: 0.18s;
}

.menu a:nth-child(4) {
  --item-delay: 0.22s;
}

.menu a:nth-child(5) {
  --item-delay: 0.26s;
}

.menu a:nth-child(6) {
  --item-delay: 0.3s;
}

.menu a:nth-child(7) {
  --item-delay: 0.34s;
}

.menu a:nth-child(8) {
  --item-delay: 0.38s;
}

.menu a:nth-child(9) {
  --item-delay: 0.42s;
}

.menu a:nth-child(10) {
  --item-delay: 0.46s;
}

/* ═══════════════════════════════════════════════════
   VISUAL SPECTACLE — Floating Orbs, Animations, Wow
   ═══════════════════════════════════════════════════ */

/* --- Floating orbs canvas --- */
.page-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
  opacity: 0;
  animation-fill-mode: both;
}

.orb.orb-visible {
  opacity: 1;
  transition: opacity 1.8s ease;
}

.orb-1 {
  width: min(50vw, 380px);
  height: min(50vw, 380px);
  top: -10%;
  left: -14%;
  background: var(--orb-1, rgba(200, 200, 255, 0.5));
  animation: orbFloat1 14s ease-in-out infinite, orbMorph1 18s ease-in-out infinite;
}

.orb-2 {
  width: min(42vw, 320px);
  height: min(42vw, 320px);
  top: 12%;
  right: -16%;
  background: var(--orb-2, rgba(255, 200, 220, 0.45));
  animation: orbFloat2 16s ease-in-out infinite, orbMorph2 20s ease-in-out infinite;
}

.orb-3 {
  width: min(36vw, 260px);
  height: min(36vw, 260px);
  bottom: 18%;
  left: -10%;
  background: var(--orb-3, rgba(200, 230, 255, 0.4));
  animation: orbFloat3 12s ease-in-out infinite, orbMorph1 22s ease-in-out infinite reverse;
}

.orb-4 {
  width: min(30vw, 220px);
  height: min(30vw, 220px);
  bottom: -6%;
  right: 8%;
  background: var(--orb-4, rgba(230, 210, 255, 0.35));
  animation: orbFloat4 18s ease-in-out infinite, orbMorph2 15s ease-in-out infinite;
}

.orb-5 {
  width: min(24vw, 190px);
  height: min(24vw, 190px);
  top: 48%;
  left: 45%;
  background: var(--orb-5, rgba(255, 220, 200, 0.3));
  animation: orbFloat5 20s ease-in-out infinite, orbMorph1 16s ease-in-out infinite;
}

.orb-6 {
  width: min(18vw, 140px);
  height: min(18vw, 140px);
  top: 30%;
  right: 25%;
  background: var(--orb-6, rgba(255, 190, 240, 0.22));
  animation: orbFloat6 22s ease-in-out infinite, orbMorph2 19s ease-in-out infinite;
}

/* Floating path keyframes */
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(9vw, 7vh) scale(1.1); }
  50% { transform: translate(4vw, 14vh) scale(0.93); }
  75% { transform: translate(-6vw, 5vh) scale(1.06); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-7vw, 10vh) scale(1.08); }
  50% { transform: translate(-12vw, 3vh) scale(0.9); }
  75% { transform: translate(-4vw, -7vh) scale(1.12); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(12vw, -8vh) scale(1.14); }
  66% { transform: translate(6vw, 10vh) scale(0.88); }
}

@keyframes orbFloat4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  20% { transform: translate(-9vw, -12vh) scale(1.06); }
  40% { transform: translate(-5vw, -18vh) scale(0.96); }
  60% { transform: translate(7vw, -10vh) scale(1.1); }
  80% { transform: translate(4vw, -4vh) scale(0.94); }
}

@keyframes orbFloat5 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-14vw, -10vh) scale(1.12); }
  50% { transform: translate(10vw, 8vh) scale(0.86); }
  75% { transform: translate(-5vw, 12vh) scale(1.08); }
}

@keyframes orbFloat6 {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  33% { transform: translate(8vw, 14vh) scale(1.18) rotate(120deg); }
  66% { transform: translate(-10vw, -6vh) scale(0.82) rotate(240deg); }
}

/* Morphing blobs */
@keyframes orbMorph1 {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50% { border-radius: 50% 50% 40% 60% / 40% 50% 60% 50%; }
  75% { border-radius: 40% 60% 50% 50% / 60% 40% 50% 60%; }
}

@keyframes orbMorph2 {
  0%, 100% { border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%; }
  33% { border-radius: 60% 40% 30% 70% / 40% 60% 50% 50%; }
  66% { border-radius: 50% 50% 50% 50% / 60% 40% 40% 60%; }
}

/* Mouse parallax smoothing */
.page-canvas .orb {
  transition: translate 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --- Per-page orb palette --- */
body[data-page="about"] {
  --orb-1: rgba(192, 178, 255, 0.58);
  --orb-2: rgba(255, 192, 218, 0.52);
  --orb-3: rgba(178, 216, 255, 0.46);
  --orb-4: rgba(240, 198, 255, 0.42);
  --orb-5: rgba(255, 228, 208, 0.36);
  --orb-6: rgba(220, 200, 255, 0.28);
}

body[data-page="afisha"] {
  --orb-1: rgba(178, 218, 255, 0.58);
  --orb-2: rgba(255, 208, 178, 0.48);
  --orb-3: rgba(198, 255, 228, 0.42);
  --orb-4: rgba(255, 183, 218, 0.46);
  --orb-5: rgba(218, 198, 255, 0.36);
  --orb-6: rgba(255, 240, 198, 0.26);
}

body[data-page="circle"] {
  --orb-1: rgba(255, 188, 208, 0.62);
  --orb-2: rgba(255, 218, 198, 0.52);
  --orb-3: rgba(228, 178, 255, 0.46);
  --orb-4: rgba(255, 198, 178, 0.42);
  --orb-5: rgba(198, 213, 255, 0.36);
  --orb-6: rgba(255, 210, 240, 0.28);
}

body[data-page="couture"] {
  --orb-1: rgba(214, 190, 255, 0.62);
  --orb-2: rgba(255, 205, 228, 0.52);
  --orb-3: rgba(238, 192, 255, 0.46);
  --orb-4: rgba(255, 214, 236, 0.42);
  --orb-5: rgba(220, 204, 255, 0.36);
  --orb-6: rgba(246, 220, 255, 0.28);
}

body[data-page="retreats"] {
  --orb-1: rgba(209, 188, 255, 0.58);
  --orb-2: rgba(255, 213, 236, 0.48);
  --orb-3: rgba(238, 198, 255, 0.42);
  --orb-4: rgba(255, 214, 232, 0.46);
  --orb-5: rgba(218, 196, 255, 0.36);
  --orb-6: rgba(244, 220, 255, 0.26);
}

body[data-page="certificates"] {
  --orb-1: rgba(255, 218, 188, 0.58);
  --orb-2: rgba(255, 232, 200, 0.52);
  --orb-3: rgba(255, 188, 218, 0.46);
  --orb-4: rgba(218, 198, 255, 0.42);
  --orb-5: rgba(255, 228, 178, 0.36);
  --orb-6: rgba(255, 200, 200, 0.26);
}

body[data-page="private-events"] {
  --orb-1: rgba(208, 193, 255, 0.62);
  --orb-2: rgba(255, 198, 208, 0.52);
  --orb-3: rgba(193, 223, 255, 0.46);
  --orb-4: rgba(255, 218, 193, 0.42);
  --orb-5: rgba(218, 255, 218, 0.36);
  --orb-6: rgba(240, 200, 255, 0.28);
}

body[data-page="etiquette"] {
  --orb-1: rgba(218, 228, 255, 0.52);
  --orb-2: rgba(255, 223, 228, 0.42);
  --orb-3: rgba(208, 238, 228, 0.38);
  --orb-4: rgba(238, 218, 255, 0.36);
  --orb-5: rgba(198, 213, 255, 0.32);
  --orb-6: rgba(228, 240, 255, 0.24);
}

body[data-page="contacts"] {
  --orb-1: rgba(183, 223, 255, 0.62);
  --orb-2: rgba(255, 198, 228, 0.52);
  --orb-3: rgba(208, 198, 255, 0.46);
  --orb-4: rgba(178, 238, 218, 0.42);
  --orb-5: rgba(255, 228, 198, 0.36);
  --orb-6: rgba(198, 218, 255, 0.28);
}

/* --- Animated gradient titles --- */
.page-editorial .page-title {
  background: linear-gradient(
    135deg,
    #2c2446 0%,
    #6d5aaf 18%,
    #b76eaf 36%,
    #e8829a 50%,
    #b76eaf 64%,
    #6d5aaf 82%,
    #2c2446 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleGradient 8s ease infinite;
}

body[data-page="circle"] .page-editorial .page-title {
  background-image: linear-gradient(
    135deg, #3a2247 0%, #c44e7d 20%, #f0829a 40%, #ffb0c0 50%, #f0829a 60%, #c44e7d 80%, #3a2247 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
}

body[data-page="couture"] .page-editorial .page-title {
  background-image: linear-gradient(
    135deg, #2a1f52 0%, #7c5cc5 20%, #b490e4 40%, #d4b8ff 50%, #b490e4 60%, #7c5cc5 80%, #2a1f52 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
}

body[data-page="retreats"] .page-editorial .page-title {
  background-image: linear-gradient(
    135deg, #1e3a52 0%, #4a8cc5 20%, #72b8e8 40%, #a0d8ff 50%, #72b8e8 60%, #4a8cc5 80%, #1e3a52 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
}

body[data-page="certificates"] .page-editorial .page-title {
  background-image: linear-gradient(
    135deg, #4a2c1e 0%, #c58a4e 20%, #e8b870 40%, #ffd8a0 50%, #e8b870 60%, #c58a4e 80%, #4a2c1e 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
}

body[data-page="contacts"] .page-editorial .page-title {
  background-image: linear-gradient(
    135deg, #1e3252 0%, #4a7ec5 20%, #72a8e8 40%, #a0d0ff 50%, #72a8e8 60%, #4a7ec5 80%, #1e3252 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
}

@keyframes titleGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- Enhanced card interactions --- */
.story-card,
.format-card,
.statement-card,
.contact-card,
.poster-stage {
  transition:
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.6s ease,
    border-color 0.4s ease;
  cursor: default;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.story-card:hover,
.format-card:hover,
.statement-card:hover,
.contact-card:hover,
.poster-stage:hover {
  transform: translateY(-8px) scale(1.012);
  box-shadow:
    0 36px 72px rgba(99, 89, 140, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

/* Shimmer sweep on card hover */
.story-card::after,
.format-card::after,
.statement-card::after,
.contact-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.28),
    transparent
  );
  transform: skewX(-18deg);
  transition: left 0.8s ease;
  pointer-events: none;
  z-index: 2;
}

.story-card:hover::after,
.format-card:hover::after,
.statement-card:hover::after,
.contact-card:hover::after {
  left: 140%;
}

/* --- Hero section enhancements --- */
.page-hero {
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow:
    var(--shadow),
    0 0 100px rgba(180, 160, 255, 0.06),
    inset 0 0 50px rgba(255, 255, 255, 0.04);
}

/* Animated hero decorative blob */
.page-hero::before {
  animation: heroBlob 14s ease-in-out infinite;
}

@keyframes heroBlob {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  25% {
    transform: translate(4%, 6%) scale(1.12);
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  50% {
    transform: translate(-3%, 10%) scale(0.94);
    border-radius: 50% 50% 40% 60% / 40% 50% 60% 50%;
  }
  75% {
    transform: translate(5%, -4%) scale(1.06);
    border-radius: 40% 60% 50% 50% / 60% 40% 50% 60%;
  }
}

/* Hero secondary decorative orb */
.page-hero::after {
  animation: heroBlob2 16s ease-in-out infinite;
}

@keyframes heroBlob2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    border-radius: 50% 50% 40% 60% / 50% 40% 60% 50%;
  }
  33% {
    transform: translate(-6%, -8%) scale(1.16);
    border-radius: 60% 40% 50% 50% / 40% 60% 40% 60%;
  }
  66% {
    transform: translate(4%, 5%) scale(0.88);
    border-radius: 40% 60% 60% 40% / 60% 40% 50% 50%;
  }
}

/* --- Hero pills animation --- */
.hero-pills span,
.meta-pills span {
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.45s ease,
    background 0.35s ease;
}

.hero-pills span:hover,
.meta-pills span:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow:
    0 16px 36px rgba(101, 94, 138, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.66);
}

/* --- Animated eyebrow line --- */
.eyebrow::before {
  animation: eyebrowPulse 3.5s ease-in-out infinite;
}

@keyframes eyebrowPulse {
  0%, 100% { width: 28px; opacity: 0.55; }
  50% { width: 52px; opacity: 1; }
}

/* --- Animated accent separator between sections --- */
.page-editorial .story-grid,
.page-editorial .format-grid,
.page-editorial .contact-stack,
.page-editorial .statement-card,
.page-editorial .poster-stage {
  position: relative;
}

.page-editorial .page-hero + .story-grid::before,
.page-editorial .page-hero + .poster-stage::before,
.page-editorial .page-hero + .contact-stack::before,
.page-editorial .page-hero + .statement-card::before {
  content: "";
  display: block;
  width: 50%;
  height: 2px;
  margin: 4px auto 14px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(180, 160, 255, 0.5),
    rgba(255, 180, 210, 0.5),
    rgba(160, 200, 255, 0.5),
    transparent
  );
  background-size: 200% 100%;
  animation: separatorSlide 5s ease infinite;
}

@keyframes separatorSlide {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* --- Enhanced glass-button & contact-link --- */
.glass-button,
.contact-link {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.45s ease,
    background 0.35s ease;
}

.glass-button::after,
.contact-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: -110%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  transition: left 0.65s ease;
  pointer-events: none;
}

.glass-button:hover::after,
.contact-link:hover::after {
  left: 140%;
}

.glass-button:hover,
.contact-link:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow:
    0 20px 40px rgba(101, 94, 138, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

/* --- Poster grid image hover --- */
.poster-grid img {
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s ease;
}

.poster-grid img:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 24px 48px rgba(95, 86, 129, 0.24);
}

/* --- Story card heading reveal underline --- */
.story-card h2,
.format-card h3,
.statement-card h3,
.contact-card h3 {
  position: relative;
  display: inline-block;
}

.story-card h2::after,
.format-card h3::after,
.statement-card h3::after,
.contact-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(180, 110, 175, 0.6), rgba(100, 160, 255, 0.4));
  transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.story-card:hover h2::after,
.format-card:hover h3::after,
.statement-card:hover h3::after,
.contact-card:hover h3::after {
  width: 100%;
}

/* --- Pulsing glow ring on hero --- */
.page-hero {
  position: relative;
}

.page-hero .hero-glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  z-index: -2;
  opacity: 0;
  animation: heroGlow 4s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { opacity: 0; box-shadow: 0 0 40px rgba(180, 110, 200, 0.15), 0 0 80px rgba(130, 170, 255, 0.08); }
  50% { opacity: 1; box-shadow: 0 0 60px rgba(180, 110, 200, 0.22), 0 0 120px rgba(130, 170, 255, 0.12); }
}

/* --- Floating micro-particles (CSS only) --- */
.page-particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
  opacity: 0;
  animation: particleRise linear infinite;
}

.particle:nth-child(1) { left: 8%; animation-duration: 14s; animation-delay: 0s; width: 2px; height: 2px; }
.particle:nth-child(2) { left: 18%; animation-duration: 18s; animation-delay: 2s; }
.particle:nth-child(3) { left: 32%; animation-duration: 12s; animation-delay: 4s; width: 4px; height: 4px; }
.particle:nth-child(4) { left: 44%; animation-duration: 16s; animation-delay: 1s; }
.particle:nth-child(5) { left: 56%; animation-duration: 20s; animation-delay: 3s; width: 2px; height: 2px; }
.particle:nth-child(6) { left: 67%; animation-duration: 15s; animation-delay: 5s; }
.particle:nth-child(7) { left: 78%; animation-duration: 13s; animation-delay: 2.5s; width: 4px; height: 4px; }
.particle:nth-child(8) { left: 88%; animation-duration: 17s; animation-delay: 0.5s; }
.particle:nth-child(9) { left: 25%; animation-duration: 19s; animation-delay: 6s; width: 2px; height: 2px; }
.particle:nth-child(10) { left: 72%; animation-duration: 14s; animation-delay: 4.5s; }
.particle:nth-child(11) { left: 50%; animation-duration: 16s; animation-delay: 7s; width: 5px; height: 5px; background: rgba(200, 180, 255, 0.5); }
.particle:nth-child(12) { left: 38%; animation-duration: 21s; animation-delay: 1.5s; background: rgba(255, 200, 220, 0.5); }

@keyframes particleRise {
  0% {
    transform: translateY(110vh) translateX(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
    transform: translateY(92vh) translateX(10px) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translateY(50vh) translateX(-15px) scale(1.1);
  }
  90% {
    opacity: 0.3;
    transform: translateY(8vh) translateX(8px) scale(0.8);
  }
  100% {
    transform: translateY(-5vh) translateX(0) scale(0);
    opacity: 0;
  }
}

/* --- Section entrance from below with scale --- */
@keyframes sectionEntrance {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.97);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.page-editorial [data-reveal].show {
  animation: sectionEntrance 0.9s cubic-bezier(0.16, 0.84, 0.24, 1) both;
}

.page-editorial > :nth-child(2) [data-reveal].show,
.page-editorial > :nth-child(2)[data-reveal].show {
  animation-delay: 0.06s;
}

.page-editorial > :nth-child(3) [data-reveal].show,
.page-editorial > :nth-child(3)[data-reveal].show {
  animation-delay: 0.13s;
}

.page-editorial > :nth-child(4) [data-reveal].show,
.page-editorial > :nth-child(4)[data-reveal].show {
  animation-delay: 0.2s;
}

.page-editorial > :nth-child(5) [data-reveal].show,
.page-editorial > :nth-child(5)[data-reveal].show {
  animation-delay: 0.27s;
}

.page-editorial > :nth-child(6) [data-reveal].show,
.page-editorial > :nth-child(6)[data-reveal].show {
  animation-delay: 0.34s;
}

/* --- Breathing gradient on page body per-page --- */
body[data-page="about"] {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(192, 178, 255, 0.32) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 192, 218, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 90%, rgba(178, 216, 255, 0.24) 0%, transparent 60%),
    linear-gradient(176deg, #d4e6ff 0%, #efd7e7 50%, #f6ece6 100%);
  animation: bgBreathe 12s ease-in-out infinite;
}

body[data-page="circle"] {
  background:
    radial-gradient(ellipse at 25% 15%, rgba(255, 188, 208, 0.36) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 25%, rgba(255, 218, 198, 0.30) 0%, transparent 50%),
    radial-gradient(ellipse at 45% 85%, rgba(228, 178, 255, 0.22) 0%, transparent 60%),
    linear-gradient(176deg, #ffe4ec 0%, #f0d7ef 50%, #f6ece6 100%);
  animation: bgBreathe 12s ease-in-out infinite;
}

body[data-page="couture"] {
  background:
    radial-gradient(ellipse at 18% 12%, rgba(208, 188, 255, 0.36) 0%, transparent 55%),
    radial-gradient(ellipse at 82% 18%, rgba(178, 208, 255, 0.30) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 88%, rgba(255, 193, 228, 0.24) 0%, transparent 60%),
    linear-gradient(176deg, #e0d6ff 0%, #d7e0f0 50%, #f6ece6 100%);
  animation: bgBreathe 12s ease-in-out infinite;
}

body[data-page="retreats"] {
  background:
    radial-gradient(ellipse at 22% 8%, rgba(178, 228, 255, 0.36) 0%, transparent 55%),
    radial-gradient(ellipse at 78% 22%, rgba(198, 255, 218, 0.28) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 86%, rgba(255, 208, 228, 0.22) 0%, transparent 60%),
    linear-gradient(176deg, #d4f0ff 0%, #dff0e0 50%, #f6ece6 100%);
  animation: bgBreathe 12s ease-in-out infinite;
}

body[data-page="certificates"] {
  background:
    radial-gradient(ellipse at 20% 12%, rgba(255, 218, 188, 0.34) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 232, 200, 0.30) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 88%, rgba(255, 188, 218, 0.24) 0%, transparent 60%),
    linear-gradient(176deg, #fff0e0 0%, #f0e0d7 50%, #f6ece6 100%);
  animation: bgBreathe 12s ease-in-out infinite;
}

body[data-page="private-events"] {
  background:
    radial-gradient(ellipse at 18% 14%, rgba(208, 193, 255, 0.36) 0%, transparent 55%),
    radial-gradient(ellipse at 82% 16%, rgba(255, 198, 208, 0.30) 0%, transparent 55%),
    radial-gradient(ellipse at 48% 86%, rgba(193, 223, 255, 0.24) 0%, transparent 60%),
    linear-gradient(176deg, #e0d8ff 0%, #f0d8e0 50%, #f6ece6 100%);
  animation: bgBreathe 12s ease-in-out infinite;
}

body[data-page="etiquette"] {
  background:
    radial-gradient(ellipse at 22% 10%, rgba(218, 228, 255, 0.30) 0%, transparent 55%),
    radial-gradient(ellipse at 78% 22%, rgba(255, 223, 228, 0.24) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 88%, rgba(208, 238, 228, 0.20) 0%, transparent 60%),
    linear-gradient(176deg, #e8eeff 0%, #f0e8ec 50%, #f6f2ee 100%);
  animation: bgBreathe 12s ease-in-out infinite;
}

body[data-page="contacts"] {
  background:
    radial-gradient(ellipse at 20% 12%, rgba(183, 223, 255, 0.36) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 18%, rgba(255, 198, 228, 0.30) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 86%, rgba(208, 198, 255, 0.24) 0%, transparent 60%),
    linear-gradient(176deg, #d8eeff 0%, #f0d8e6 50%, #f6ece6 100%);
  animation: bgBreathe 12s ease-in-out infinite;
}

body[data-page="afisha"] {
  background:
    radial-gradient(ellipse at 16% 10%, rgba(178, 218, 255, 0.34) 0%, transparent 55%),
    radial-gradient(ellipse at 84% 16%, rgba(255, 208, 178, 0.26) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 88%, rgba(198, 255, 228, 0.22) 0%, transparent 60%),
    linear-gradient(176deg, #d8f0ff 0%, #f0e8d8 50%, #f6ece6 100%);
  animation: bgBreathe 12s ease-in-out infinite;
}

@keyframes bgBreathe {
  0%, 100% { background-size: 100% 100%; }
  50% { background-size: 110% 110%; }
}

/* --- Callout line glow --- */
.callout-line {
  position: relative;
}

.callout-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180, 110, 200, 0.3), rgba(100, 170, 255, 0.3), transparent);
  animation: separatorSlide 6s ease infinite;
  background-size: 200% 100%;
}

/* --- UL marker glow --- */
.story-card li::marker,
.statement-card li::marker {
  color: rgba(180, 110, 200, 0.6);
}

/* --- Footer subtle entrance --- */
.site-footer {
  opacity: 0;
  transform: translateY(10px);
  animation: footerIn 1s ease 0.6s forwards;
}

@keyframes footerIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Reduced motion override for all new animations --- */
@media (prefers-reduced-motion: reduce) {
  .orb,
  .particle,
  .page-hero::before,
  .page-hero::after,
  .page-hero .hero-glow,
  .eyebrow::before,
  .page-editorial .page-title,
  .site-footer {
    animation: none !important;
  }

  .page-editorial [data-reveal].show {
    animation: none !important;
    opacity: 1;
    transform: none;
    filter: none;
  }

  body[data-page] {
    animation: none !important;
  }
}

/* --- Flow Design (Non-blocky) --- */
.page-flow {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px;
}

.flow-hero {
  text-align: center;
  margin-bottom: 80px;
}

.flow-hero .page-title {
  font-family: var(--font-main);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  margin: 16px 0;
  color: #2c2446;
}

.flow-hero .eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8b7fa8;
}

.flow-hero .page-dek {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4f476b;
  margin: 20px 0;
}

.flow-hero .hero-pills {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 24px 0;
}

.flow-hero .hero-pills span {
  padding: 8px 20px;
  border-radius: 20px;
  background: rgba(180, 160, 255, 0.15);
  color: #5a4d7a;
  font-size: 0.9rem;
}

.flow-photo {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 20px;
  overflow: hidden;
  margin: 40px 0;
}

.flow-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.flow-photo:hover img {
  transform: scale(1.05);
}

.flow-content {
  margin-bottom: 60px;
}

.flow-content h2 {
  font-family: var(--font-main);
  font-size: 2.2rem;
  font-weight: 600;
  color: #2c2446;
  margin-bottom: 20px;
}

.flow-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4f476b;
  margin-bottom: 16px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.flow-item h3 {
  font-family: var(--font-main);
  font-size: 1.8rem;
  font-weight: 600;
  color: #2c2446;
  margin-bottom: 12px;
}

.flow-item p {
  font-size: 1rem;
  line-height: 1.7;
  color: #4f476b;
  margin-bottom: 20px;
}

/* ===== ETIQUETTE REIMAGINED ===== */

.etq-page {
  width: min(980px, calc(100% - 28px));
  margin: 24px auto 70px;
  display: flex;
  flex-direction: column;
  gap: 34px;
  position: relative;
}

.etq-page::before,
.etq-page::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}

.etq-page::before {
  width: 220px;
  height: 220px;
  right: -60px;
  top: 120px;
  background: radial-gradient(circle, rgba(148, 169, 228, 0.2), transparent 70%);
}

.etq-page::after {
  width: 190px;
  height: 190px;
  left: -40px;
  bottom: 140px;
  background: radial-gradient(circle, rgba(216, 168, 212, 0.18), transparent 70%);
}

.etq-hero,
.etq-code,
.etq-ritual,
.etq-manifesto,
.etq-cta {
  position: relative;
  border-radius: 0;
  padding: clamp(6px, 1.8vw, 14px) 2px;
  background: none;
  border: 0;
  box-shadow: none;
  overflow: hidden;
}

.etq-hero {
  text-align: center;
  padding-top: 14px;
}

.etq-hero::before,
.etq-ritual::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(152, 167, 220, 0.18), transparent 70%);
  pointer-events: none;
}

.etq-hero::before {
  top: -36px;
  right: 4px;
}

.etq-hero::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(720px, 94%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(93, 111, 171, 0.42), transparent);
}

.etq-ritual::before {
  bottom: -50px;
  left: -8px;
}

.etq-title {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 6.2vw, 4rem);
  line-height: 1.08;
  color: #2f2448;
  font-weight: 600;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .etq-title {
    background: linear-gradient(135deg, #2f2448 0%, #5168a3 48%, #2f2448 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.etq-subline {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  line-height: 1.65;
  color: #4f4568;
}

.etq-hero-sigil {
  width: min(520px, 92%);
  margin: 12px auto 0;
  height: 24px;
  display: grid;
  place-items: center;
  position: relative;
}

.etq-hero-sigil::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgba(92, 111, 172, 0.45), transparent);
}

.etq-hero-sigil span {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  color: rgba(74, 99, 160, 0.92);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95), rgba(214, 223, 248, 0.72));
  border: 1px solid rgba(92, 111, 172, 0.4);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.22);
  animation: etqSigilPulse 3.8s ease-in-out infinite;
}

@keyframes etqSigilPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.etq-hero-pills {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.etq-hero-pills span {
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.62), rgba(96, 118, 177, 0.12));
  border: 1px solid rgba(96, 118, 177, 0.24);
  font-size: 0.82rem;
  font-weight: 600;
  color: #445b92;
  box-shadow: 0 8px 14px rgba(91, 90, 130, 0.08);
}

.etq-hero-note {
  max-width: 700px;
  margin: 14px auto 0;
  color: rgba(65, 76, 118, 0.86);
  font-size: 0.92rem;
  line-height: 1.56;
}

.etq-code-head,
.etq-ritual-head {
  text-align: center;
  margin-bottom: 18px;
}

.etq-code-head h2,
.etq-ritual-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  color: #2f2448;
  line-height: 1.14;
}

.etq-code-head p,
.etq-ritual-head p {
  margin: 0;
  color: #4f4568;
  line-height: 1.58;
  font-size: 0.98rem;
}

.etq-code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.etq-card {
  border-radius: 18px;
  padding: 14px 14px 14px 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 26px rgba(90, 84, 130, 0.1);
  position: relative;
}

.etq-card::after {
  content: '';
  position: absolute;
  left: 14px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(95, 115, 171, 0.15), rgba(95, 115, 171, 0.48), rgba(95, 115, 171, 0.15));
}

.etq-card-num {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(96, 118, 177, 0.12);
  color: #445b92;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 8px;
  margin-left: 12px;
}

.etq-card-glyph {
  position: absolute;
  right: 14px;
  top: 13px;
  color: rgba(83, 106, 168, 0.52);
  font-size: 0.9rem;
}

.etq-card h3 {
  margin: 0 0 6px 12px;
  color: #2f2448;
  font-size: 1.06rem;
  font-weight: 600;
}

.etq-card p {
  margin: 0 0 0 12px;
  color: #4f4568;
  font-size: 0.92rem;
  line-height: 1.58;
}

.etq-manifesto {
  text-align: center;
  padding-top: 0;
  padding-bottom: 0;
}

.etq-manifesto p {
  margin: 0;
  padding: 14px 18px;
  font-size: 1.02rem;
  line-height: 1.62;
  color: #38456e;
  font-style: italic;
  border-top: 1px solid rgba(95, 115, 171, 0.24);
  border-bottom: 1px solid rgba(95, 115, 171, 0.24);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.12));
}

.etq-ritual-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 6px 0 4px;
}

.etq-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 10px 8px 8px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 24px rgba(93, 85, 133, 0.09);
  position: relative;
}

.etq-step::before {
  content: '';
  position: absolute;
  top: 28px;
  left: -14px;
  width: 14px;
  height: 1px;
  background: rgba(95, 115, 171, 0.34);
}

.etq-step:first-child::before {
  display: none;
}

.etq-step-mark {
  width: auto;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #425a93;
  background: rgba(95, 115, 171, 0.12);
  border: 1px solid rgba(82, 112, 177, 0.38);
  padding: 0 10px;
}

.etq-step-copy {
  border-radius: 0;
  padding: 1px 3px 4px;
  background: none;
  border: 0;
}

.etq-step-copy h3 {
  margin: 0 0 5px;
  color: #2f2448;
  font-size: 1rem;
}

.etq-step-copy p {
  margin: 0;
  color: #4f4568;
  font-size: 0.91rem;
  line-height: 1.56;
}

.etq-cta-frame {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 16px;
}

.etq-cta-frame p {
  margin: 0;
  color: #2f2448;
  font-size: clamp(1.06rem, 2.8vw, 1.34rem);
  line-height: 1.5;
  font-weight: 500;
}

@media (max-width: 780px) {
  .etq-page {
    width: min(620px, calc(100% - 20px));
    margin-top: 18px;
    gap: 24px;
  }

  .etq-code-grid {
    grid-template-columns: 1fr;
  }

  .etq-ritual-track {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .etq-step::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .etq-hero,
  .etq-code,
  .etq-ritual,
  .etq-cta {
    padding: 4px 0;
  }

  .etq-hero-pills {
    gap: 8px;
  }

  .etq-hero-pills span {
    font-size: 0.76rem;
    padding: 7px 11px;
  }

  .etq-step {
    gap: 8px;
    padding: 10px 8px;
  }

  .etq-step-mark {
    width: fit-content;
    height: 28px;
    font-size: 0.62rem;
  }

  .etq-step-copy {
    padding: 1px 0;
  }

  .etq-manifesto p {
    padding: 12px 8px;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .page-flow {
    padding: 60px 16px;
  }

  .flow-hero {
    margin-bottom: 60px;
  }

  .flow-content {
    margin-bottom: 50px;
  }

  .flow-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

/* --- Hero Photo --- */
.page-hero .hero-photo {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  margin-top: 20px;
}

.page-hero .hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.page-hero:hover .hero-photo img {
  transform: scale(1.08);
}

/* --- Hero with Photo --- */
.hero-with-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  min-height: auto;
}

.hero-with-photo .hero-content {
  flex: 1;
}

.hero-with-photo .hero-photo {
  flex-shrink: 0;
  width: 60vw;
  height: 60vw;
  max-width: 280px;
  max-height: 280px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.hero-with-photo .hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 769px) {
  .hero-with-photo {
    flex-direction: row;
    gap: 40px;
    min-height: 50vw;
  }

  .hero-with-photo .hero-photo {
    width: 45vw;
    height: 45vw;
    max-width: 600px;
    max-height: 600px;
  }
}

/* --- Cards with Photo --- */
.card-with-photo {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-with-photo .card-content {
  flex: 1;
}

.card-with-photo .card-photo {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
}

.card-with-photo .card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.card-with-photo:hover .card-photo img {
  transform: scale(1.08);
}

@media (min-width: 769px) {
  .story-card.card-with-photo {
    flex-direction: column;
    gap: 20px;
  }

  .story-card.card-with-photo .card-photo {
    width: 100%;
    aspect-ratio: 1/1;
  }

  .format-card.card-with-photo {
    flex-direction: column;
    gap: 16px;
  }

  .format-card.card-with-photo .card-photo {
    width: 100%;
    aspect-ratio: 1/1;
  }
}

/* Circle page styles */
.circle-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 600px;
  margin: 40px auto;
  padding: 0 20px;
}

.info-card {
  position: relative;
  text-decoration: none;
  color: #2f294a;
  padding: 28px 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 8px 32px 0 rgba(31, 38, 135, 0.37),
    inset 0 1px 2px rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  transition: all 0.3s ease;
  z-index: 1;
  overflow: visible;
}

.info-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.1) 100%);
  z-index: -1;
  filter: url(#liquidGlass) blur(4px);
  pointer-events: none;
}

.info-card::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  z-index: -1;
  background-image: url("doci/home-bg-459f-b8f6-f5e8c1cdb4a6.jpeg");
  background-size: 190% auto;
  background-position: center 66%;
  opacity: 0.42;
  filter: saturate(1.18) blur(0.2px);
}

.info-card h3 {
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #2f294a;
}

.info-card p {
  margin: 6px 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #4d4468;
}

.circle-cta {
  position: relative;
  display: block;
  text-align: center;
  text-decoration: none;
  color: #2f294a;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 18px 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 8px 32px 0 rgba(31, 38, 135, 0.37),
    inset 0 1px 2px rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  transition: all 0.3s ease;
  margin-top: 20px;
  z-index: 1;
  overflow: visible;
}

.circle-cta::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.1) 100%);
  z-index: -1;
  filter: url(#liquidGlass) blur(4px);
  pointer-events: none;
}

.circle-cta:hover,
.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.45);
  background: rgba(255, 255, 255, 0.2);
}
/* =====================================================================
   RENDER-STYLE PAGES (.render-page) — about, circle
   ===================================================================== */
body.render-page {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(220, 200, 255, 0.55), transparent 55%),
    radial-gradient(120% 80% at 100% 0%, rgba(180, 220, 255, 0.5), transparent 55%),
    radial-gradient(120% 90% at 50% 100%, rgba(255, 220, 235, 0.55), transparent 60%),
    linear-gradient(180deg, #ecebf7 0%, #e0e8f7 35%, #f6e5ed 100%);
  min-height: 100vh;
  min-height: 100svh;
  background-attachment: scroll;
}

/* радужные prism-полосы поверх фона */
body.render-page::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.45;
  background:
    linear-gradient(115deg,
      transparent 30%,
      rgba(255, 200, 220, 0.55) 41%,
      rgba(180, 230, 255, 0.55) 49%,
      rgba(190, 255, 210, 0.45) 56%,
      transparent 65%),
    linear-gradient(295deg,
      transparent 35%,
      rgba(255, 215, 180, 0.45) 45%,
      rgba(220, 200, 255, 0.5) 53%,
      transparent 62%);
  filter: blur(0.6px);
}
body.render-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.35;
  background:
    radial-gradient(55% 38% at 82% 18%, rgba(255, 255, 255, 0.6), transparent 70%),
    radial-gradient(50% 35% at 14% 78%, rgba(255, 255, 255, 0.45), transparent 70%);
}

body.render-page .topbar {
  position: relative;
  z-index: 50; /* выше .render-main, чтобы меню было видно */
}
body.render-page .page-main,
body.render-page .site-footer {
  position: relative;
  z-index: 2;
}

/* убираем тяжёлые декорации, оставляем минимализм */
body.render-page .page-canvas,
body.render-page .aurora {
  display: none !important;
}
body.render-page .sparkles {
  opacity: 0.4;
}

/* основной контейнер */
.render-main {
  width: min(560px, calc(100% - 24px));
  margin: 12px auto 60px;
  padding: 0 4px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 2;
}

/* центральная карточка-стекло */
.render-card {
  position: relative;
  border-radius: 32px;
  padding: 26px 22px 24px;
  background:
    radial-gradient(130% 100% at 18% 4%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.55) 45%, rgba(255, 255, 255, 0.28) 100%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 28px 60px rgba(80, 70, 130, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -16px 32px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  overflow: hidden;
}

.render-card .render-eyebrow {
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #4a3f6e;
  text-align: center;
  margin: 0 0 14px;
}

.render-card p {
  font-family: var(--font-main);
  font-size: 0.92rem;
  line-height: 1.55;
  color: #5a4f7a;
  margin: 0 0 10px;
  text-align: center;
}

.render-media-placeholder {
  position: relative;
  width: 100%;
  border-radius: 24px;
  margin: 0 0 16px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.36)),
    radial-gradient(120% 90% at 100% 0%, rgba(255, 220, 235, 0.24), rgba(255, 220, 235, 0));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    0 16px 30px rgba(80, 70, 130, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  overflow: hidden;
}

.render-media-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, rgba(104, 90, 154, 0.12) 25%, transparent 25%, transparent 50%, rgba(104, 90, 154, 0.12) 50%, rgba(104, 90, 154, 0.12) 75%, transparent 75%, transparent);
  background-size: 22px 22px;
  opacity: 0.35;
}

.render-media-placeholder span {
  position: relative;
  z-index: 1;
  font-family: var(--font-main);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(62, 53, 89, 0.82);
}

.render-media-placeholder-wide {
  aspect-ratio: 16 / 9;
}

.render-media-placeholder-square {
  aspect-ratio: 1 / 1;
}

/* Новые классы для img элементов - блоки для фотографий */
.render-media-image {
  width: 100%;
  display: block;
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.36)),
    radial-gradient(120% 90% at 100% 0%, rgba(255, 220, 235, 0.24), rgba(255, 220, 235, 0));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    0 16px 30px rgba(80, 70, 130, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  object-fit: cover;
  margin: 0 0 16px;
}

.render-media-image-wide {
  aspect-ratio: 16 / 9;
}

.render-media-image-square {
  aspect-ratio: 1 / 1;
}

.render-format .render-media-image {
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  border: 0;
  width: 100%;
  flex-shrink: 0;
}

.render-list-item .render-media-image {
  width: 46px;
  height: 46px;
  min-width: 46px;
  margin: 0;
  border-radius: 14px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
}

/* Заглушка фото */
.render-format .render-media-placeholder {
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  border: 0;
  width: 100%;
  flex-shrink: 0;
}

/* заглушка вместо иконки в render-list-item */
.render-list-item .render-media-placeholder {
  width: 46px;
  height: 46px;
  min-width: 46px;
  margin: 0;
  border-radius: 14px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
}

.render-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0 14px;
}

.render-divider {
  height: 1px;
  margin: 18px auto 14px;
  width: 70%;
  background: linear-gradient(90deg, transparent, rgba(120, 100, 170, 0.25), transparent);
}

.render-formats-title {
  font-family: var(--font-main);
  font-size: 1.25rem;
  text-align: center;
  margin: 6px 0 14px;
  color: #4a3f6e;
  font-weight: 600;
}

.render-formats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.render-format {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.32));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 10px 22px rgba(80, 70, 130, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  overflow: hidden;
  text-decoration: none;
}
.render-format > span:not(.render-icon) {
  padding: 10px 6px 12px;
}
.render-format span {
  font-family: var(--font-main);
  font-size: 0.74rem;
  font-weight: 600;
  text-align: center;
  color: #3e3559;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.render-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 25%, #ffffff, rgba(220, 215, 245, 0.6) 70%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -6px 12px rgba(180, 170, 220, 0.18),
    0 6px 14px rgba(80, 70, 130, 0.14);
}
.render-icon svg {
  width: 32px;
  height: 32px;
  stroke: #6a5e96;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Список (для circle) */
.render-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.render-list-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  align-items: stretch;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    0 12px 26px rgba(80, 70, 130, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.render-list-item-text {
  padding: 12px 12px 12px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.render-list-item .render-media-placeholder,
.render-list-item .render-media-image {
  width: 160px;
  height: 160px;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  border: 0;
  aspect-ratio: 1 / 1;
}
.render-list-item .render-icon {
  width: 46px;
  height: 46px;
}
.render-list-item .render-icon svg {
  width: 26px;
  height: 26px;
}
.render-list-item h3 {
  margin: 0 0 3px;
  font-family: var(--font-main);
  font-size: 1.08rem;
  font-weight: 700;
  color: #2c2446;
  letter-spacing: 0.01em;
}
.render-list-item p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.38;
  text-align: left;
  color: #5a4f7a;
}

.render-cta {
  display: block;
  margin: 22px auto 4px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-align: center;
  color: #2c2446;
  background:
    radial-gradient(120% 90% at 18% 12%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.5) 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.45));
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 14px 32px rgba(80, 70, 130, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  width: fit-content;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.render-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 36px rgba(80, 70, 130, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.render-cta-wrap {
  display: flex;
  justify-content: center;
}

.cta-frame,
.etq-cta-frame,
.events-cta-line,
.cert-cta {
  text-align: center;
}

.glass-button,
.contact-link,
.render-cta,
.home-hero-cta {
  margin-left: auto;
  margin-right: auto;
}

/* Афиша — события */
.afisha-event {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
  transform: translateY(0);
  transition: transform 0.38s ease, box-shadow 0.38s ease, border-color 0.38s ease;
  animation: afishaCardIn 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.afisha-event:nth-of-type(2) { animation-delay: 0.08s; }
.afisha-event:nth-of-type(3) { animation-delay: 0.16s; }

.afisha-event:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 18px 36px rgba(80, 70, 130, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.afisha-event .render-media-placeholder {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0;
  border-radius: 12px;
  border: 0;
  box-shadow: none;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.afisha-event .render-media-placeholder::after {
  content: "";
  position: absolute;
  inset: -35% -80%;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.42) 50%, transparent 65%);
  transform: translateX(-70%) rotate(2deg);
  animation: afishaShimmer 4.6s ease-in-out infinite;
}

.afisha-event-text h3 {
  margin: 0 0 4px;
  font-family: var(--font-accent);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #2c2446;
}
.afisha-date {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #7a6fa0;
  text-transform: uppercase;
}
.afisha-event-text p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #5a4f7a;
}

body[data-page="afisha"] .render-eyebrow {
  font-family: var(--font-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: afishaTitleGlow 3.2s ease-in-out infinite;
}

body[data-page="afisha"] .afisha-main {
  width: min(640px, calc(100% - 22px));
}

body[data-page="afisha"] .afisha-only {
  padding-top: 20px !important;
}

.afisha-wall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.afisha-tile {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.25);
  box-shadow:
    0 14px 30px rgba(80, 70, 130, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  animation: afishaCardIn 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.afisha-tile .render-media-placeholder {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  height: 100%;
}

.afisha-tile-note {
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: flex-end;
}

.afisha-note-logo {
  align-self: flex-start;
  width: 44px;
  height: 44px;
  border-radius: 0;
  border: 0;
  object-fit: contain;
  display: block;
}

.afisha-tile-note p {
  margin: 0;
  font-family: var(--font-main);
  font-size: 0.88rem;
  line-height: 1.34;
  color: #4e456f;
  text-align: left;
}

.afisha-tile {
  aspect-ratio: 1 / 1;
}

.afisha-tile:nth-child(2n) { animation-delay: 0.06s; }
.afisha-tile:nth-child(3n) { animation-delay: 0.12s; }

.afisha-tile:hover {
  transform: translateY(-3px);
  transition: transform 0.35s ease;
}

@media (max-width: 520px) {
  .afisha-wall {
    gap: 10px;
  }
  .afisha-tile {
    border-radius: 18px;
  }
}

@keyframes afishaCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes afishaShimmer {
  0%, 12% {
    transform: translateX(-75%) rotate(2deg);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  36% {
    transform: translateX(85%) rotate(2deg);
    opacity: 0;
  }
  100% {
    transform: translateX(85%) rotate(2deg);
    opacity: 0;
  }
}

@keyframes afishaTitleGlow {
  0%, 100% { text-shadow: 0 0 0 rgba(170, 147, 219, 0); }
  50% { text-shadow: 0 2px 18px rgba(170, 147, 219, 0.28); }
}

/* Hero-фото в карточке (опционально) */
.render-photo {
  border-radius: 24px;
  overflow: hidden;
  margin: 6px 0 10px;
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.render-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 380px) {
  .render-format span { font-size: 0.7rem; }
  .render-card { padding: 22px 18px; border-radius: 28px; }
}

/* === RENDER PAGES: один стиль, без блочного формата === */
body.render-page .render-main {
  gap: 0;
  padding: 0;
  width: min(560px, calc(100% - 22px));
  margin: 14px auto 60px;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
}

body.render-page .render-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 0 !important;
  padding: 28px 10px 12px !important;
  margin: 0 !important;
}

/* тонкий разделитель между секциями вместо отдельных карточек */
body.render-page .render-card + .render-card {
  border-top: 1px solid rgba(120, 100, 170, 0.16) !important;
  margin-top: 6px !important;
  padding-top: 22px !important;
}

body.render-page .render-card:last-child {
  padding-bottom: 26px !important;
}

/* === RENDER PAGES: убираем все внутренние «коробки» === */
body.render-page .render-list-item,
body.render-page .render-format {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.render-page .render-list {
  gap: 10px;
  margin-top: 14px;
}
body.render-page .render-list-item {
  padding: 0 !important;
  border-radius: 18px !important;
  border-top: 0 !important;
}

body.render-page .render-format {
  padding: 0 !important;
  border-radius: 20px !important;
}

/* убираем линии-разделители между секциями — пусть будет один поток */
body.render-page .render-card + .render-card {
  border-top: 0 !important;
  margin-top: 0 !important;
  padding-top: 8px !important;
}

/* центральная иконка чуть мягче */
body.render-page .render-icon {
  background:
    radial-gradient(circle at 30% 25%, #ffffff, rgba(225, 220, 245, 0.45) 75%);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -4px 10px rgba(180, 170, 220, 0.14),
    0 4px 10px rgba(80, 70, 130, 0.1);
}

/* === Текстовый лого-плейсхолдер === */
.logo .logo-text {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #4a3f6e;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.home-topbar .logo .logo-text {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #3e3858;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}
/* делаем плашку «ЛОГО» аккуратной (вместо круглого аватара) */
.topbar .logo {
  width: 56px;
  height: 56px;
  min-width: 0;
  padding: 0;
  border-radius: 14px;
}
.home-topbar .logo {
  width: 60px !important;
  height: 60px !important;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* =====================================================
   ДЕСКТОПНАЯ ВЕРСИЯ — улучшенная композиция (>= 860px)
   Не трогаем мобайл (<= 859px)
   ===================================================== */
@media (min-width: 860px) {
  /* Главная: контент по центру, более просторно */
  body.home-minimal {
    overflow: auto !important;
    background-attachment: fixed !important;
    background-size: cover !important;
  }
  body.home-minimal .home-topbar {
    width: min(1100px, calc(100% - 48px));
    margin: 0 auto;
    padding: 18px 0 0;
  }
  body.home-minimal .home-desktop-links {
    display: flex !important;
    margin-left: auto;
    gap: 22px;
    align-items: center;
  }
  body.home-minimal .home-desktop-links a {
    text-decoration: none;
    font-family: var(--font-main);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #3e3858;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.18));
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.25s ease, background 0.25s ease;
  }
  body.home-minimal .home-desktop-links a:hover {
    transform: translateY(-2px);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.3));
  }
  /* Контент-карточка шире и просторнее */
  body.render-page .render-main {
    width: min(820px, calc(100% - 48px));
    margin: 28px auto 80px;
    padding: 8px;
  }
  body.render-page .render-card {
    padding: 36px 56px 14px !important;
  }
  body.render-page .render-card:last-child {
    padding-bottom: 40px !important;
  }
  body.render-page .render-eyebrow {
    font-size: 1.9rem;
  }
  body.render-page .render-card p {
    font-size: 1rem;
    line-height: 1.65;
    max-width: 56ch;
    margin-left: auto;
    margin-right: auto;
  }
  body.render-page .render-formats {
    gap: 18px;
    max-width: 640px;
    margin: 0 auto;
  }
  body.render-page .render-format {
    padding: 18px 12px !important;
  }
  body.render-page .render-format span:not(.render-icon) {
    font-size: 0.85rem;
  }
  body.render-page .render-icon {
    width: 64px;
    height: 64px;
  }
  body.render-page .render-icon svg {
    width: 36px;
    height: 36px;
  }
  body.render-page .render-list {
    max-width: 640px;
    margin: 18px auto 0;
  }
  body.render-page .render-list-item {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 18px;
    padding: 0 !important;
    align-items: stretch;
  }
  body.render-page .render-list-item .render-media-placeholder,
  body.render-page .render-list-item .render-media-image {
    width: 160px;
    height: 160px;
    min-width: 160px;
  }
  body.render-page .render-list-item .render-list-item-text {
    padding: 18px 18px 18px 0;
  }
  body.render-page .render-list-item h3 {
    font-size: 1.05rem;
  }
  body.render-page .render-list-item p {
    font-size: 0.92rem;
    text-align: left;
    margin: 0;
  }
}

/* =====================================================
   v41 РЕДИЗАЙН: минималистичное меню + лого-плашка +
   афиша-расписание + информативные карточки + анимации
   ===================================================== */

/* ------- ЛОГО: мягкая овальная подложка под png ------- */
.logo {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(255, 251, 245, 0.92), rgba(245, 236, 228, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 10px 24px rgba(80, 70, 130, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s cubic-bezier(0.34, 1.46, 0.64, 1), box-shadow 0.4s ease;
}
.logo:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 14px 30px rgba(80, 70, 130, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.logo img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(60, 50, 90, 0.18));
}
.home-topbar .logo,
.topbar .logo {
  width: 78px !important;
  height: 78px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 35% 30%,
    rgba(255, 252, 248, 0.55) 0%,
    rgba(250, 240, 230, 0.32) 55%,
    rgba(232, 220, 230, 0.18) 100%) !important;
  border: 1px solid rgba(255, 250, 240, 0.45) !important;
  box-shadow:
    0 6px 18px rgba(120, 95, 80, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(14px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(140%) !important;
  padding: 6px !important;
  overflow: hidden !important;
}
.home-topbar .logo img,
.topbar .logo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 50% !important;
}
@media (min-width: 860px) {
  .home-topbar .logo,
  .topbar .logo {
    width: 88px !important;
    height: 88px !important;
    border-radius: 50% !important;
  }
}

/* ------- ТОПБАР: чище, легче, без широкой плашки на главной ------- */
.topbar {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.topbar.glass::before {
  display: none;
}
.home-topbar {
  padding: 14px 4px 0;
}

/* ------- БУРГЕР: БЕЗ фона, 2x размер ------- */
.menu-toggle,
.home-topbar .menu-toggle {
  width: 112px !important;
  height: 112px !important;
  margin-top: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0;
  position: relative;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34, 1.46, 0.64, 1);
}
.menu-toggle:hover,
.home-topbar .menu-toggle:hover {
  transform: translateY(-2px);
  background: transparent !important;
  box-shadow: none !important;
}
.menu-toggle::before,
.home-topbar .menu-toggle::before {
  content: "";
  position: absolute;
  left: 30px;
  right: 30px;
  top: 42px;
  height: 2.6px;
  border-radius: 999px;
  background: rgba(50, 36, 28, 0.96);
  box-shadow:
    0 13px 0 rgba(50, 36, 28, 0.96),
    0 26px 0 rgba(50, 36, 28, 0.96);
  transition: transform 0.4s ease, top 0.4s ease, box-shadow 0.4s ease, opacity 0.3s ease;
}
.menu-toggle[aria-expanded="true"]::before,
.home-topbar .menu-toggle[aria-expanded="true"]::before {
  top: 55px;
  transform: rotate(45deg);
  box-shadow: 0 0 0 rgba(54, 47, 78, 0), 0 0 0 rgba(54, 47, 78, 0);
}
.menu-toggle[aria-expanded="true"]::after,
.home-topbar .menu-toggle[aria-expanded="true"]::after {
  content: "";
  position: absolute;
  left: 30px;
  right: 30px;
  top: 55px;
  height: 2.6px;
  border-radius: 999px;
  background: rgba(50, 36, 28, 0.96);
  transform: rotate(-45deg);
}

/* ------- МИНИ-МЕНЮ: компактная панель сверху-справа ------- */
.menu {
  position: fixed;
  top: calc(var(--safe-top) + 84px);
  left: auto;
  right: 14px;
  bottom: auto;
  width: min(280px, calc(100% - 28px));
  max-height: calc(100svh - var(--safe-top) - var(--safe-bottom) - 110px);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: linear-gradient(165deg, rgba(255, 252, 247, 0.96), rgba(247, 240, 234, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  box-shadow:
    0 24px 50px rgba(63, 58, 96, 0.22),
    0 6px 14px rgba(63, 58, 96, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow-y: auto;
  scrollbar-width: none;
  transform: translate3d(8px, -10px, 0) scale(0.94);
  transform-origin: top right;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.42s cubic-bezier(0.34, 1.46, 0.64, 1),
    opacity 0.32s ease,
    visibility 0s linear 0.42s;
  z-index: 90;
}
.menu.open {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    transform 0.42s cubic-bezier(0.34, 1.46, 0.64, 1),
    opacity 0.32s ease,
    visibility 0s linear 0s;
}
.menu a {
  display: block;
  text-align: left;
  text-decoration: none;
  color: #3a3358;
  font-family: var(--font-main);
  font-size: 0.96rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 11px 14px;
  border-radius: 14px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  position: relative;
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  transition:
    opacity 0.32s ease,
    transform 0.32s ease,
    background 0.22s ease,
    color 0.22s ease;
}
.menu a::before,
.menu a::after { display: none; }
.menu.open a {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: var(--item-delay, 0s);
}
.menu a:hover,
.menu a:active {
  background: rgba(232, 222, 240, 0.6);
  color: #2c2446;
  box-shadow: none;
}
.menu a.active {
  background: linear-gradient(135deg, rgba(255, 235, 220, 0.7), rgba(248, 222, 230, 0.55));
  color: #2c2446;
  font-weight: 600;
}
.menu-backdrop {
  background: rgba(40, 35, 60, 0.18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
body.menu-open .menu-backdrop {
  opacity: 1;
}

@media (min-width: 860px) {
  .topbar {
    width: min(1100px, calc(100% - 48px));
    margin: 14px auto 0;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    border-radius: 22px;
  }

  .topbar .menu-toggle {
    display: inline-flex !important;
  }

  .topbar .menu {
    top: calc(var(--safe-top) + 96px);
    right: 32px;
    left: auto;
    width: 260px;
    height: auto;
    max-height: calc(100svh - 140px);
  }

  .topbar .menu a {
    opacity: 1;
    transform: none;
  }

  body.home-minimal .home-topbar .menu {
    display: flex !important;
  }

  .menu {
    top: calc(var(--safe-top) + 96px);
    right: 32px;
    width: 260px;
  }
}

/* На десктопе главной по-прежнему ссылки в одну строку, но меню остаётся доступным */
@media (min-width: 860px) {
  body.home-minimal .home-topbar .menu-toggle,
  body.render-page .topbar .menu-toggle,
  body[data-page="etiquette"] .topbar .menu-toggle {
    display: inline-flex !important;
  }
  body.render-page .topbar .menu,
  body[data-page="etiquette"] .topbar .menu {
    position: fixed !important;
    top: calc(var(--safe-top) + 96px) !important;
    right: 32px !important;
    left: auto !important;
    width: 260px !important;
    height: auto !important;
    max-height: calc(100svh - 140px) !important;
    background: linear-gradient(165deg, rgba(255, 252, 247, 0.96), rgba(247, 240, 234, 0.92)) !important;
    border: 1px solid rgba(255, 255, 255, 0.78) !important;
    box-shadow:
      0 24px 50px rgba(63, 58, 96, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    border-radius: 22px !important;
    padding: 10px !important;
    margin: 0 !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  body.render-page .topbar .menu a,
  body[data-page="etiquette"] .topbar .menu a {
    text-align: left !important;
    padding: 11px 14px !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ------- АФИША: расписание по месяцам, заглушка ------- */
.afisha-schedule {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 26px;
}
@media (min-width: 720px) {
  .afisha-schedule {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}
.afisha-month {
  position: relative;
  padding: 24px 22px 22px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 252, 247, 0.94), rgba(244, 235, 244, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 16px 32px rgba(80, 70, 130, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  animation: afisha-rise 0.7s cubic-bezier(0.22, 0.8, 0.36, 1) forwards;
  animation-delay: var(--month-delay, 0s);
}
.afisha-month::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 0%, rgba(255, 220, 200, 0.35), transparent 60%);
  pointer-events: none;
}
.afisha-month-title {
  font-family: var(--font-main);
  font-size: 1.7rem;
  font-weight: 600;
  color: #2c2446;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}
.afisha-month-year {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8b7fa8;
  margin-bottom: 16px;
}
.afisha-month-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.afisha-month-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px dashed rgba(140, 120, 170, 0.28);
}
.afisha-month-list li:first-child {
  border-top: 0;
}
.afisha-month-list .ds-date {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 1.05rem;
  color: #6b5a90;
  letter-spacing: 0.04em;
}
.afisha-month-list .ds-name {
  font-family: var(--font-main);
  font-size: 1rem;
  color: #3a3358;
  line-height: 1.5;
}
.afisha-month-list .ds-name small {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.82rem;
  color: #8b7fa8;
  margin-top: 2px;
  letter-spacing: 0.06em;
}
.afisha-empty {
  padding: 18px 0 4px;
  color: #8b7fa8;
  font-style: italic;
  font-size: 0.95rem;
}
.afisha-note {
  margin: 14px auto 0;
  max-width: 720px;
  text-align: center;
  font-family: var(--font-accent);
  font-size: 0.95rem;
  color: #6b5a90;
  letter-spacing: 0.02em;
  line-height: 1.7;
}

.afisha-note-admin {
  margin-top: 8px;
  font-size: 0.86rem;
}

.afisha-note-admin a {
  color: #445b92;
  font-weight: 700;
  text-decoration-thickness: 1px;
}

/* ------- АФИША: простая админка ------- */
.afisha-admin-main {
  width: min(980px, calc(100% - 22px));
}

.afisha-admin-card {
  padding-bottom: 28px;
}

.afisha-admin-title {
  margin: 2px 0 8px;
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: #2f2448;
}

.afisha-admin-note {
  margin: 0 auto 14px;
  max-width: 760px;
  text-align: center;
  color: #5d5380;
  line-height: 1.6;
}

.afisha-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 10px 0 8px;
}

.afisha-admin-btn {
  border: 1px solid rgba(97, 116, 178, 0.38);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(233, 227, 248, 0.8));
  color: #3f3860;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 10px 14px;
  cursor: pointer;
}

.afisha-admin-btn-save {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 18px 11px;
  border: 1px solid rgba(57, 124, 91, 0.55);
  background: linear-gradient(160deg, rgba(224, 255, 237, 0.98), rgba(184, 236, 206, 0.95));
  color: #1e5a3c;
  box-shadow:
    0 0 0 2px rgba(224, 255, 237, 0.95),
    0 14px 28px rgba(57, 124, 91, 0.22);
  animation: afisha-save-pulse 2.3s ease-in-out infinite;
}

.afisha-admin-btn-save .afisha-admin-btn-hint {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(30, 90, 60, 0.78);
  font-weight: 700;
}

.afisha-admin-btn-save:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 2px rgba(224, 255, 237, 0.98),
    0 18px 34px rgba(57, 124, 91, 0.28);
}

.afisha-admin-btn.secondary {
  border-color: rgba(130, 120, 150, 0.34);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.75), rgba(245, 240, 250, 0.68));
}

@keyframes afisha-save-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 2px rgba(224, 255, 237, 0.95),
      0 14px 28px rgba(57, 124, 91, 0.22);
  }
  50% {
    box-shadow:
      0 0 0 4px rgba(224, 255, 237, 0.95),
      0 20px 34px rgba(57, 124, 91, 0.3);
  }
}

.afisha-admin-status {
  margin: 8px 0 14px;
  text-align: center;
  color: #645985;
  font-size: 0.9rem;
}

.afisha-admin-status.ok {
  color: #356247;
}

.afisha-admin-status.warn {
  color: #7b5046;
}

.afisha-admin-editor {
  display: grid;
  gap: 12px;
}

.afisha-admin-month {
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.8), rgba(236, 226, 246, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(90, 84, 130, 0.1);
}

.afisha-admin-month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.afisha-admin-month-title {
  margin: 0;
  font-size: 1rem;
  color: #2f2448;
}

.afisha-admin-remove {
  border: 1px solid rgba(148, 112, 120, 0.35);
  background: rgba(255, 244, 246, 0.8);
  color: #6c4450;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.78rem;
  cursor: pointer;
}

.afisha-admin-month-grid {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 10px;
  margin-bottom: 10px;
}

.afisha-admin-field {
  display: grid;
  gap: 4px;
}

.afisha-admin-field label {
  font-size: 0.76rem;
  color: #695b8b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.afisha-admin-field small {
  color: #7d709c;
  font-size: 0.72rem;
  line-height: 1.35;
}

.afisha-admin-field input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(130, 119, 162, 0.35);
  background: rgba(255, 255, 255, 0.86);
  color: #3a3358;
  padding: 9px 10px;
  font-size: 0.9rem;
}

.afisha-admin-events {
  display: grid;
  gap: 8px;
}

.afisha-admin-event {
  border-radius: 12px;
  padding: 10px;
  border: 1px dashed rgba(131, 120, 164, 0.35);
  background: rgba(255, 255, 255, 0.58);
}

.afisha-admin-event-grid {
  display: grid;
  grid-template-columns: 90px 1fr 1fr auto;
  gap: 8px;
  align-items: start;
}

.afisha-admin-event-actions {
  margin-top: 8px;
}

.afisha-admin-add {
  border: 1px solid rgba(97, 116, 178, 0.36);
  background: rgba(238, 233, 250, 0.82);
  color: #3f3860;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 0.8rem;
  cursor: pointer;
}

.afisha-admin-live {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(132, 121, 164, 0.22);
}

.afisha-admin-live h2 {
  margin: 0 0 6px;
  text-align: center;
  color: #2f2448;
  font-size: 1.25rem;
}

.afisha-admin-live p {
  margin: 0 0 10px;
  text-align: center;
  color: #6a5e8d;
  font-size: 0.86rem;
}

@media (max-width: 760px) {
  .afisha-admin-month-grid {
    grid-template-columns: 1fr;
  }

  .afisha-admin-event-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes afisha-rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ------- КУТЮР / РЕТРИТЫ: визуальные плейсхолдеры и медальоны ------- */
.flow-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 22px;
  overflow: hidden;
  margin: 18px 0 28px;
  background: linear-gradient(160deg, rgba(255, 248, 240, 0.85), rgba(232, 220, 235, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 40px rgba(80, 70, 130, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  isolation: isolate;
}
.flow-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 220, 200, 0.6), transparent 55%),
    radial-gradient(circle at 82% 80%, rgba(200, 195, 240, 0.55), transparent 55%);
  z-index: -1;
}
.flow-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: flow-shimmer 6s ease-in-out infinite;
  pointer-events: none;
}
.flow-visual-label {
  font-family: var(--font-accent);
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6b5a90;
  background: rgba(255, 255, 255, 0.7);
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
}
@keyframes flow-shimmer {
  0% { transform: translateX(-100%); }
  60% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}
.flow-pillrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 6px;
}
.flow-pillrow span {
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(255, 248, 240, 0.92), rgba(244, 235, 244, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-family: var(--font-accent);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: #5a4d7a;
}
.flow-quote {
  margin: 22px 0;
  padding: 22px 24px;
  border-left: 3px solid rgba(180, 140, 200, 0.6);
  background: linear-gradient(160deg, rgba(255, 250, 245, 0.7), rgba(248, 240, 248, 0.55));
  border-radius: 0 18px 18px 0;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #3a3358;
}
.flow-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.flow-mini-card {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 252, 247, 0.92), rgba(244, 235, 244, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 22px rgba(80, 70, 130, 0.08);
}
.flow-mini-card h4 {
  font-family: var(--font-main);
  font-size: 1.1rem;
  color: #2c2446;
  margin-bottom: 6px;
  font-weight: 600;
}
.flow-mini-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #4f476b;
  margin: 0;
}

/* ------- АНИМАЦИИ: появление текста и картинок при скролле ------- */
[data-fade] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.85s cubic-bezier(0.22, 0.8, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 0.8, 0.36, 1);
  transition-delay: var(--fade-delay, 0s);
}
[data-fade].in {
  opacity: 1;
  transform: translateY(0);
}
[data-zoom] {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.9s cubic-bezier(0.22, 0.8, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 0.8, 0.36, 1);
  transition-delay: var(--fade-delay, 0s);
}
[data-zoom].in {
  opacity: 1;
  transform: scale(1);
}
[data-typewriter] {
  display: inline-block;
  position: relative;
  white-space: pre-wrap;
}
[data-typewriter] .tw-char {
  opacity: 0;
  display: inline-block;
  animation: tw-fade 0.45s cubic-bezier(0.22, 0.8, 0.36, 1) forwards;
  animation-delay: calc(var(--c-index, 0) * 35ms + var(--tw-base, 0ms));
}
@keyframes tw-fade {
  to { opacity: 1; }
}
[data-typewriter].with-caret::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 4px;
  vertical-align: -0.12em;
  background: currentColor;
  opacity: 0.7;
  animation: tw-blink 0.9s steps(2) infinite;
}
@keyframes tw-blink {
  50% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  [data-fade], [data-zoom] { opacity: 1; transform: none; transition: none; }
  [data-typewriter] .tw-char { opacity: 1; animation: none; }
  [data-typewriter].with-caret::after { display: none; }
}


/* ============================================================
   V48 · Топбар: лого в матовом круге, бургер без фона, мини-меню
   ============================================================ */

/* TOPBAR — оставляем sticky, чуть подсаживаем gap */
.topbar {
  width: min(440px, calc(100% - 18px)) !important;
  padding: 10px 12px !important;
  gap: 12px !important;
  border-radius: 26px !important;
}

/* LOGO — прозрачный матовый круг (frosted glass) */
.logo {
  width: 72px !important;
  height: 72px !important;
  border-radius: 50% !important;
  padding: 6px !important;
  background: radial-gradient(circle at 35% 30%,
    rgba(255, 252, 248, 0.65) 0%,
    rgba(250, 240, 230, 0.42) 55%,
    rgba(232, 220, 230, 0.28) 100%) !important;
  box-shadow:
    0 6px 18px rgba(120, 95, 80, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 4px rgba(180, 150, 130, 0.1) !important;
  border: 1px solid rgba(255, 250, 240, 0.45) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  margin-top: 0 !important;
}
.logo img,
.logo .logo-mark {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(80, 60, 40, 0.2));
}

/* BURGER — БЕЗ фона, единый вид для всех страниц */
.menu-toggle,
.home-topbar .menu-toggle {
  width: 96px !important;
  height: 96px !important;
  border-radius: 50% !important;
  margin-top: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.menu-toggle:hover,
.home-topbar .menu-toggle:hover {
  background: transparent !important;
  transform: translateY(-1px);
}
/* 3 палочки → крестик. Центр круга = 44px */
.menu-toggle::before,
.home-topbar .menu-toggle::before {
  content: "" !important;
  position: absolute !important;
  left: 24px !important;
  right: 24px !important;
  top: 32px !important;
  height: 2.6px !important;
  border-radius: 999px !important;
  background: rgba(50, 36, 28, 0.94) !important;
  box-shadow:
    0 12px 0 rgba(50, 36, 28, 0.94),
    0 24px 0 rgba(50, 36, 28, 0.94) !important;
  transition: top 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease, opacity 0.25s ease !important;
}
.menu-toggle[aria-expanded="true"]::before,
.home-topbar .menu-toggle[aria-expanded="true"]::before {
  top: 48px !important;
  transform: rotate(45deg) !important;
  box-shadow: 0 0 0 transparent, 0 0 0 transparent !important;
}
.menu-toggle::after,
.home-topbar .menu-toggle::after {
  content: "" !important;
  position: absolute !important;
  left: 24px !important;
  right: 24px !important;
  top: 48px !important;
  height: 2.6px !important;
  border-radius: 999px !important;
  background: rgba(50, 36, 28, 0.94) !important;
  opacity: 0 !important;
  transform: rotate(0deg) !important;
  transition: transform 0.35s ease, opacity 0.25s ease !important;
}
.menu-toggle[aria-expanded="true"]::after,
.home-topbar .menu-toggle[aria-expanded="true"]::after {
  opacity: 1 !important;
  transform: rotate(-45deg) !important;
}

/* MENU — компактная панель в правом верхнем углу */
.menu {
  position: fixed !important;
  top: calc(var(--safe-top) + 88px) !important;
  left: auto !important;
  right: 14px !important;
  width: 240px !important;
  padding: 10px !important;
  gap: 6px !important;
  border-radius: 22px !important;
}
.menu a {
  font-size: 0.88rem !important;
  padding: 10px 14px !important;
  border-radius: 14px !important;
  text-align: left !important;
}

@media (min-width: 720px) {
  .topbar { width: min(560px, calc(100% - 24px)) !important; }
  .logo { width: 84px !important; height: 84px !important; }
  .menu-toggle,
  .home-topbar .menu-toggle { width: 108px !important; height: 108px !important; }
  .menu-toggle::before,
  .home-topbar .menu-toggle::before {
    left: 28px !important; right: 28px !important; top: 36px !important;
    box-shadow: 0 13px 0 rgba(50, 36, 28, 0.94), 0 26px 0 rgba(50, 36, 28, 0.94) !important;
  }
  .menu-toggle[aria-expanded="true"]::before,
  .home-topbar .menu-toggle[aria-expanded="true"]::before { top: 54px !important; }
  .menu-toggle::after,
  .home-topbar .menu-toggle::after { left: 28px !important; right: 28px !important; top: 54px !important; }
  .menu { width: 260px !important; right: 18px !important; top: calc(var(--safe-top) + 100px) !important; }
}

/* v52: заголовки крупнее на всех страницах, кроме главной */
body[data-page]:not([data-page="home"]) .page-title {
  font-size: clamp(2.5rem, 6.6vw, 4rem) !important;
  line-height: 0.95 !important;
}

body.render-page .render-card .render-eyebrow {
  font-size: clamp(1.85rem, 5.4vw, 2.5rem) !important;
  line-height: 1.05 !important;
}

/* ============================================================
   v53 · Couture + Retreats redesign (fluid / non-blocky)
   ============================================================ */

.couture-new,
.retreats-new,
.contacts-new {
  position: relative;
  isolation: isolate;
  padding-top: 72px;
  padding-bottom: 84px;
}

.couture-new::before,
.retreats-new::before,
.contacts-new::before {
  content: "";
  position: absolute;
  inset: 30px 0 auto;
  height: 380px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(46% 42% at 24% 24%, rgba(255, 212, 232, 0.36), rgba(255, 212, 232, 0)),
    radial-gradient(52% 48% at 78% 30%, rgba(220, 194, 255, 0.3), rgba(220, 194, 255, 0)),
    radial-gradient(40% 44% at 56% 76%, rgba(209, 190, 255, 0.24), rgba(209, 190, 255, 0));
  filter: blur(4px);
}

.couture-hero,
.retreats-hero,
.contacts-hero {
  margin-bottom: 58px;
}

.couture-hero .page-title,
.retreats-hero .page-title,
.contacts-hero .page-title {
  font-size: clamp(2rem, 5.6vw, 3.55rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
}

.couture-hero .page-title,
.retreats-hero .page-title,
.contacts-hero .page-title {
  margin: 0 0 8px;
  font-size: clamp(2.45rem, 7vw, 4.2rem);
}

.brand-title {
  font-family: var(--font-main) !important;
  font-size: clamp(2.9rem, 11vw, 5.6rem) !important;
  line-height: 0.92 !important;
  letter-spacing: -0.02em !important;
  font-weight: 600 !important;
  margin: 0 0 6px !important;
}

.hero-subline {
  margin: 0 0 14px;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(81, 62, 119, 0.78);
  font-weight: 400;
  font-style: italic;
  font-family: var(--font-accent, var(--font-main));
}

.couture-hero .eyebrow,
.retreats-hero .eyebrow {
  display: none;
}

.couture-hero .page-dek,
.retreats-hero .page-dek {
  font-size: 0.97rem;
  line-height: 1.75;
  font-weight: 400;
  max-width: 58ch;
  margin-left: auto;
  margin-right: auto;
}

.story-placeholder {
  position: relative;
  border-radius: 22px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.34)),
    radial-gradient(130% 100% at 10% 0%, rgba(234, 201, 255, 0.28), rgba(234, 201, 255, 0));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 28px rgba(99, 73, 136, 0.14);
}

.story-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, rgba(112, 90, 164, 0.12) 25%, transparent 25%, transparent 50%, rgba(112, 90, 164, 0.12) 50%, rgba(112, 90, 164, 0.12) 75%, transparent 75%, transparent);
  background-size: 20px 20px;
  opacity: 0.45;
}

.story-placeholder span {
  position: relative;
  z-index: 1;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(68, 50, 107, 0.76);
  font-weight: 600;
}

.story-placeholder-wide { aspect-ratio: 16 / 9; }
.story-placeholder-square { aspect-ratio: 1 / 1; }
.story-placeholder-tall { aspect-ratio: 3 / 4; }

.story-image {
  width: 100%;
  display: block;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 28px rgba(99, 73, 136, 0.14);
  object-fit: cover;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.34)),
    radial-gradient(130% 100% at 10% 0%, rgba(234, 201, 255, 0.28), rgba(234, 201, 255, 0));
}

.couture-media-ribbon {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.retreats-media-ribbon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.retreats-hero .hero-pills span {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.82);
  color: #4a3b69;
}

.couture-orbit {
  position: relative;
  width: min(280px, 70%);
  aspect-ratio: 1 / 1;
  margin: 26px auto 0;
}

.couture-orbit::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(102, 82, 142, 0.34);
  animation: orbitSpin 18s linear infinite;
}

.orbit-price {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-main);
  font-size: clamp(1.2rem, 5vw, 1.6rem);
  font-weight: 700;
  color: #3f2a58;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.92), rgba(255, 244, 250, 0.64) 58%, rgba(239, 221, 250, 0.46));
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow:
    0 18px 36px rgba(104, 74, 142, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.orbit-chips {
  list-style: none;
  padding: 0;
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(520px, 100%);
}

.orbit-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #4a3a69;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(102, 82, 142, 0.16);
}

.couture-rhythm h2,
.retreats-route h2 {
  text-align: center;
  font-family: var(--font-main);
  font-size: clamp(1.7rem, 4.8vw, 2.5rem);
  color: #2f2448;
  margin: 0 0 24px;
}

.couture-timeline {
  margin: 0 auto;
  padding: 0;
  list-style: none;
  width: min(760px, 100%);
  display: grid;
  gap: 14px;
}

.couture-timeline li {
  position: relative;
  padding: 14px 18px 14px 62px;
  border-radius: 999px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.82);
  color: #41345f;
}

.couture-timeline li::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #8d68b4;
  box-shadow: 0 0 0 6px rgba(141, 104, 180, 0.18);
}

.step-time {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(79, 58, 114, 0.72);
  margin-bottom: 3px;
  font-weight: 700;
}

.couture-timeline p {
  margin: 0;
  line-height: 1.55;
  font-size: 0.92rem;
}

.couture-wave,
.retreats-spectrum {
  margin-top: 44px;
  text-align: center;
}

.couture-price-stage {
  margin-top: 44px;
  text-align: center;
}

.couture-price-stage h2 {
  margin: 0 0 14px;
  font-family: var(--font-main);
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  color: #352651;
}

.couture-tree,
.retreats-tree {
  position: relative;
  width: min(720px, 100%);
  margin: 22px auto 0;
  padding: 8px 0;
  display: grid;
  gap: 22px;
}

.tree-trunk {
  position: absolute;
  left: 50%;
  top: 12px;
  bottom: 12px;
  width: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(125, 96, 175, 0.05), rgba(125, 96, 175, 0.55) 18%, rgba(125, 96, 175, 0.55) 82%, rgba(125, 96, 175, 0.05));
}

.tree-branch {
  position: relative;
  width: min(260px, 44%);
  padding: 14px 16px;
  border-radius: 20px;
  text-align: left;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.36));
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 28px rgba(101, 74, 142, 0.14);
}

.tree-branch h4 {
  margin: 0 0 4px;
  font-family: var(--font-main);
  font-size: 1.05rem;
  color: #3b2c58;
}

.tree-branch p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #544872;
}

/* Чёткая горизонтальная линия от ствола к ветке + узел */
.tree-branch::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 8%;
  min-width: 28px;
  height: 2px;
  background: rgba(125, 96, 175, 0.55);
  transform: translateY(-50%);
}

.tree-branch::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #c9b1ee 60%, #8d68b4);
  box-shadow: 0 0 0 5px rgba(141, 104, 180, 0.18);
  transform: translate(-50%, -50%);
}

/* ветки слева / справа поочерёдно */
.tree-branch-a { justify-self: start; margin-left: 4%; }
.tree-branch-b { justify-self: end; margin-right: 4%; }
.tree-branch-c { justify-self: start; margin-left: 4%; }

.tree-branch-a::before,
.tree-branch-c::before {
  right: -8%;
}
.tree-branch-a::after,
.tree-branch-c::after {
  right: -8%;
  left: auto;
  transform: translate(50%, -50%);
}

.tree-branch-b::before {
  left: -8%;
}
.tree-branch-b::after {
  left: -8%;
  transform: translate(-50%, -50%);
}

/* Убираем старые white-tag группы на этих двух страницах */
.couture-new .wave-tags,
.retreats-new .spectrum-tags,
.retreats-new .hero-pills {
  display: none !important;
}

.wave-copy h3,
.spectrum-copy h3,
.spectrum-copy h2 {
  margin: 0 0 12px;
  font-family: var(--font-main);
  font-size: clamp(1.55rem, 4.4vw, 2.2rem);
  color: #33244f;
}

.wave-copy p,
.spectrum-copy p {
  margin: 0 auto 10px;
  max-width: 62ch;
  color: #504468;
}

.wave-tags,
.spectrum-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.wave-tags span,
.spectrum-tags span {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #4a3b68;
  font-weight: 600;
}

.couture-cta-line,
.retreats-cta-line {
  margin-top: 48px;
  text-align: center;
}

.couture-cta-line p,
.retreats-cta-line p {
  margin: 0 auto 16px;
  max-width: 62ch;
  color: #4f4568;
}

.retreats-route { display: none; }

.retreats-mosaic {
  margin-top: 40px;
  text-align: center;
}

.retreats-mosaic > h2 {
  margin: 0 0 20px;
  font-family: var(--font-main);
  font-size: clamp(1.7rem, 4.8vw, 2.4rem);
  color: #33244f;
}

.mosaic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: min(820px, 100%);
  margin: 0 auto;
}

.mosaic-item {
  text-align: left;
  padding: 14px 16px 18px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.38));
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 32px rgba(101, 74, 142, 0.14);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mosaic-item .story-placeholder,
.mosaic-item .story-image {
  margin: 0;
  border-radius: 18px;
}

.mosaic-item h3 {
  margin: 0;
  font-family: var(--font-main);
  font-size: 1.18rem;
  color: #352651;
}

.mosaic-item p {
  margin: 0;
  color: #4f4568;
  line-height: 1.55;
  font-size: 0.95rem;
}

@media (min-width: 760px) {
  .mosaic-grid {
    grid-template-columns: 1.15fr 1fr;
    grid-auto-rows: 1fr;
    gap: 18px;
  }

  .mosaic-tall {
    grid-row: span 2;
  }
}

.route-curve {
  height: 84px;
  margin: 0 auto 12px;
  width: min(700px, 92%);
  border-bottom: 2px dashed rgba(104, 76, 143, 0.4);
  border-radius: 0 0 70% 70%;
}

.route-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.route-points article {
  position: relative;
  padding: 16px 18px 16px 54px;
  border-radius: 24px 48px 40px 42px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 28px rgba(95, 70, 135, 0.15);
}

.route-points article::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #d7c3ff 60%, #9d79c9);
  box-shadow: 0 0 0 7px rgba(157, 121, 201, 0.18);
}

.route-points h3 {
  margin: 0 0 6px;
  font-family: var(--font-main);
  font-size: 1.22rem;
  color: #352451;
}

.route-points p {
  margin: 0;
  color: #4f4568;
  line-height: 1.55;
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes blobMorph {
  0% { border-radius: 44% 56% 52% 48% / 42% 48% 52% 58%; }
  50% { border-radius: 56% 44% 46% 54% / 50% 58% 42% 50%; }
  100% { border-radius: 44% 56% 52% 48% / 42% 48% 52% 58%; }
}

@media (min-width: 860px) {
  .couture-timeline {
    gap: 16px;
  }

  .route-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .route-points article:nth-child(2) {
    transform: translateY(20px);
  }

  .route-points article:nth-child(3) {
    transform: translateY(10px);
  }

  .couture-media-ribbon {
    grid-template-columns: 2.2fr 1fr;
    gap: 14px;
  }

  .retreats-media-ribbon {
    gap: 12px;
  }
}

/* === Круги-иконки (как «формат встречи» на женском круге) === */
.couture-tree,
.retreats-tree,
.vector-row { display: none !important; }

.circle-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  width: min(820px, 100%);
  margin: 28px auto 0;
  text-align: center;
}

.circle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
}

.circle-icon {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #fff, rgba(255, 244, 250, 0.78) 60%, rgba(232, 218, 250, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 18px 32px rgba(104, 74, 142, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.circle-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: #6a4f9c;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.circle-card h4 {
  margin: 4px 0 0;
  font-family: var(--font-main);
  font-size: 1.12rem;
  color: #33244f;
}

.circle-card p {
  margin: 0;
  max-width: 28ch;
  color: #4f4368;
  line-height: 1.55;
  font-size: 0.94rem;
}

@media (min-width: 720px) {
  .circle-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

/* === Вертикальная «дорога»: центральная линия, точки, блоки слева/справа === */
.vline-timeline {
  list-style: none;
  position: relative;
  width: min(720px, 100%);
  margin: 28px auto 0;
  padding: 12px 0;
}

.vline-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: rgba(60, 42, 96, 0.6);
  transform: translateX(-50%);
}

.vline-item {
  position: relative;
  display: flex;
  width: 100%;
  margin: 28px 0;
  min-height: 48px;
}

.vline-item:first-child { margin-top: 0; }
.vline-item:last-child  { margin-bottom: 0; }

.vline-dot {
  position: absolute;
  left: 50%;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #4a6cb3;
  box-shadow: 0 0 0 3px rgba(74, 108, 179, 0.2);
  transform: translateX(-50%);
  z-index: 1;
}

.vline-card {
  width: calc(50% - 26px);
  padding: 4px 0;
  text-align: left;
}

.vline-left  { justify-content: flex-start; }
.vline-right { justify-content: flex-end; }

.vline-left  .vline-card { padding-right: 14px; text-align: right; }
.vline-right .vline-card { padding-left: 14px;  text-align: left; }

.vline-num {
  display: block;
  font-family: var(--font-main);
  font-size: 1rem;
  color: #2f2448;
  margin-bottom: 4px;
}

.vline-card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #5a4d77;
}

/* Большой квадратный кадр после графика работы */
.couture-shot {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

.couture-shot-frame {
  width: min(520px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 24px 48px rgba(101, 74, 142, 0.18);
}

.couture-shot-frame .story-placeholder,
.couture-shot-frame .story-image {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  aspect-ratio: auto;
}

/* Круги-параметры под ценой: компактнее, без описаний */
.couture-price-stage .circle-cards {
  margin-top: 26px;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.couture-price-stage .circle-card .circle-icon {
  width: 64px;
  height: 64px;
}

.couture-price-stage .circle-card .circle-icon svg {
  width: 30px;
  height: 30px;
}

.couture-price-stage .circle-card h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #3f2a58;
  line-height: 1.25;
}

/* === Новая «дорога» ретрита (чистая, без багов) === */
.retreats-route {
  display: block;
  margin-top: 48px;
  text-align: center;
}

.retreats-route h2 {
  margin: 0 0 22px;
  font-family: var(--font-main);
  font-size: clamp(1.7rem, 4.8vw, 2.4rem);
  color: #33244f;
}

.route-line {
  position: relative;
  width: min(720px, 92%);
  height: 26px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.route-line::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 50%;
  height: 2px;
  border-top: 2px dashed rgba(104, 76, 143, 0.45);
  transform: translateY(-50%);
}

.route-node {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #d7c3ff 60%, #9d79c9);
  box-shadow: 0 0 0 6px rgba(157, 121, 201, 0.18);
}

.route-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: min(820px, 100%);
  margin: 0 auto;
}

.route-card {
  text-align: left;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 30px rgba(101, 74, 142, 0.14);
}

.route-day {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a6db4;
  font-weight: 700;
  margin-bottom: 6px;
}

.route-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-main);
  font-size: 1.18rem;
  color: #33244f;
}

.route-card p {
  margin: 0;
  color: #4f4368;
  line-height: 1.55;
  font-size: 0.95rem;
}

@media (min-width: 760px) {
  .route-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}


/* === Контакты v63: портрет, каналы, мета === */
.contacts-portrait {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
  width: min(820px, 100%);
  margin: 0 auto 48px;
  text-align: center;
}

.portrait-frame {
  width: min(280px, 70%);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 24px 48px rgba(101, 74, 142, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  background: radial-gradient(circle at 35% 30%, #fff, rgba(232, 218, 250, 0.7));
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portrait-image {
  border-radius: 50%;
}

.portrait-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(196, 214, 255, 0.3)),
    repeating-linear-gradient(45deg, rgba(103, 118, 176, 0.14) 0 10px, rgba(255, 255, 255, 0.14) 10px 20px);
}

.portrait-placeholder span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(103, 118, 176, 0.24);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: #4b4f7d;
  font-weight: 700;
}

.portrait-quote {
  text-align: center;
}

.portrait-name {
  margin: 0;
  font-family: var(--font-main);
  font-size: 1.4rem;
  color: #2f2448;
  font-weight: 600;
}

.portrait-role {
  margin: 2px 0 12px;
  font-family: var(--font-accent, var(--font-main));
  font-style: italic;
  color: rgba(81, 62, 119, 0.78);
  font-size: 1rem;
}

.portrait-text {
  margin: 0 auto;
  max-width: 38ch;
  color: #4f4368;
  line-height: 1.55;
  font-size: 0.96rem;
}

@media (min-width: 760px) {
  .contacts-portrait {
    grid-template-columns: 280px 1fr;
    text-align: left;
    gap: 36px;
  }
  .portrait-frame { margin: 0; width: 280px; }
  .portrait-quote { text-align: left; }
  .portrait-text  { margin: 0; }
}

.contacts-channels {
  margin-top: 12px;
  text-align: center;
}

.contacts-channels h2 {
  margin: 0 0 22px;
  font-family: var(--font-main);
  font-size: clamp(1.7rem, 4.8vw, 2.4rem);
  color: #33244f;
}

.channel-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: min(820px, 100%);
  margin: 0 auto;
}

.channel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 14px 20px;
  border-radius: 24px;
  text-decoration: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 30px rgba(101, 74, 142, 0.14);
  color: #33244f;
  transition: transform .25s ease, box-shadow .25s ease;
}

.channel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 38px rgba(101, 74, 142, 0.18);
}

.channel-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff, rgba(255, 244, 250, 0.78) 60%, rgba(232, 218, 250, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 26px rgba(104, 74, 142, 0.18);
}

.channel-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #6a4f9c;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.channel-label {
  font-family: var(--font-main);
  font-size: 1.02rem;
  color: #2f2448;
  margin-top: 4px;
}

.channel-value {
  font-size: 0.86rem;
  color: #5a4d77;
}

@media (min-width: 720px) {
  .channel-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.contacts-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: min(720px, 100%);
  margin: 40px auto 0;
}

.meta-card {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.78);
  text-align: center;
}

.meta-eyebrow {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a6db4;
  font-weight: 700;
  margin-bottom: 4px;
}

.meta-card p {
  margin: 0;
  color: #3f2a58;
  font-family: var(--font-main);
  font-size: 1rem;
}

@media (min-width: 600px) {
  .contacts-meta { grid-template-columns: 1fr 1fr; }
}

.contacts-cta-line {
  margin-top: 48px;
  text-align: center;
}

.contacts-cta-line p {
  margin: 0 auto 16px;
  max-width: 56ch;
  color: #4f4568;
}

/* === Certificates + Private Events (v66 local redesign) === */
.certificates-new,
.events-new {
  position: relative;
  isolation: isolate;
  padding-top: 72px;
  padding-bottom: 84px;
}

.certificates-new::before,
.events-new::before {
  content: "";
  position: absolute;
  inset: 30px 0 auto;
  height: 420px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(44% 40% at 22% 26%, rgba(255, 223, 238, 0.34), rgba(255, 223, 238, 0)),
    radial-gradient(48% 44% at 78% 30%, rgba(214, 200, 255, 0.32), rgba(214, 200, 255, 0)),
    radial-gradient(38% 42% at 54% 72%, rgba(205, 193, 255, 0.24), rgba(205, 193, 255, 0));
  filter: blur(5px);
}

.certificates-hero,
.events-hero {
  margin-bottom: 52px;
}

/* certificates */
.cert-ribbon {
  width: min(860px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.cert-ticket {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.42));
  box-shadow: 0 18px 36px rgba(103, 75, 143, 0.16);
}

.cert-ticket-main {
  padding: 22px 22px 20px;
  text-align: left;
}

.cert-badge {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8768ae;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.92);
}

.cert-ticket-main h2 {
  margin: 12px 0 8px;
  font-family: var(--font-main);
  font-size: clamp(1.55rem, 4.2vw, 2.2rem);
  color: #342450;
}

.cert-ticket-main p {
  margin: 0;
  max-width: 46ch;
  color: #51456a;
  line-height: 1.58;
}

.cert-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cert-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #49396a;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.cert-ticket-mini {
  padding: 14px 18px;
  text-align: center;
}

.cert-ticket-mini p {
  margin: 0;
  color: #5a4c76;
  font-style: italic;
}

.cert-path {
  margin-top: 44px;
  text-align: center;
}

.cert-path h2,
.cert-orbit h2,
.events-wave h2,
.events-route h2,
.events-geo h2 {
  margin: 0 0 20px;
  font-family: var(--font-main);
  font-size: clamp(1.7rem, 4.8vw, 2.4rem);
  color: #33244f;
}

.cert-line {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.cert-line li {
  position: relative;
  padding: 14px 16px 14px 48px;
  border-radius: 22px;
  text-align: left;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.36));
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 28px rgba(101, 74, 142, 0.14);
}

.cert-point {
  position: absolute;
  left: 16px;
  top: 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #d7c3ff 60%, #9d79c9);
  box-shadow: 0 0 0 6px rgba(157, 121, 201, 0.18);
}

.cert-step h3 {
  margin: 0 0 5px;
  font-family: var(--font-main);
  font-size: 1.12rem;
  color: #352451;
}

.cert-step p {
  margin: 0;
  color: #4f4568;
  line-height: 1.55;
}

.cert-orbit {
  margin-top: 44px;
  text-align: center;
}

.cert-orbit-stage {
  position: relative;
  width: min(440px, 96%);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.cert-orbit-stage::before {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  border: 1.6px dashed rgba(113, 85, 160, 0.34);
  animation: orbitSpin 22s linear infinite;
}

.cert-core {
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-main);
  color: #3c2a59;
  line-height: 1.25;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.92), rgba(246, 235, 255, 0.66));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 36px rgba(100, 73, 141, 0.18);
}

.cert-pill {
  position: absolute;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #4a3a69;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 24px rgba(102, 82, 142, 0.12);
}

.cert-pill-a { top: 8%; left: 50%; transform: translateX(-50%); }
.cert-pill-b { top: 54%; right: -3%; transform: translateY(-50%); }
.cert-pill-c { bottom: 12%; left: 4%; }

.cert-cta-line,
.events-cta-line {
  margin-top: 46px;
  text-align: center;
}

.cert-cta-line p,
.events-cta-line p {
  margin: 0 auto 16px;
  max-width: 58ch;
  color: #4f4568;
}

/* private events */
.events-wave {
  margin-top: 4px;
  text-align: center;
}

.events-wave-grid {
  width: min(860px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.events-wave-grid article {
  position: relative;
  text-align: left;
  padding: 16px 16px 16px 46px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.38));
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 15px 30px rgba(101, 74, 142, 0.14);
}

.events-wave-grid .wave-mark {
  position: absolute;
  left: 16px;
  top: 22px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #bcd3ff 60%, #6f92d8);
  box-shadow: 0 0 0 6px rgba(111, 146, 216, 0.18);
}

.events-wave-grid h3 {
  margin: 0 0 4px;
  font-family: var(--font-main);
  font-size: 1.15rem;
  color: #352451;
}

.events-wave-grid p {
  margin: 0;
  color: #51466a;
  line-height: 1.55;
}

.events-route {
  margin-top: 42px;
  text-align: center;
}

.events-route-line {
  width: min(820px, 96%);
  margin: 0 auto 16px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 28px;
}

.events-route-line::before {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
  border-top: 2px dashed rgba(114, 143, 202, 0.48);
}

.events-route-line span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #bcd3ff 60%, #6f92d8);
  box-shadow: 0 0 0 6px rgba(111, 146, 216, 0.18);
  position: relative;
}

.events-route-cards {
  width: min(900px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.events-route-cards article {
  text-align: left;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 30px rgba(101, 74, 142, 0.14);
}

.events-route-cards h3 {
  margin: 0 0 5px;
  font-family: var(--font-main);
  color: #33244f;
}

.events-route-cards p {
  margin: 0;
  color: #4f4568;
  line-height: 1.55;
}

.events-geo {
  margin-top: 44px;
  text-align: center;
}

.events-geo-core {
  width: min(740px, 100%);
  margin: 0 auto;
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42));
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 34px rgba(100, 74, 140, 0.15);
}

.events-geo-core p {
  margin: 0;
  color: #4f4568;
}

.events-geo-tags {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.events-geo-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #3f577f;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

@media (min-width: 780px) {
  .cert-ribbon {
    grid-template-columns: 1.8fr 1fr;
    align-items: stretch;
  }

  .cert-ticket-mini {
    display: grid;
    place-items: center;
  }

  .cert-line {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .events-wave-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .events-route-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cert-orbit-stage {
    width: min(360px, 100%);
  }

  .cert-pill-b {
    right: 0;
  }

  .cert-pill-c {
    left: 0;
  }
}

/* ===== NEW CERTIFICATE TAPE DESIGN ===== */

.cert-tape-flow {
  padding: clamp(40px, 8vw, 80px) 0;
  position: relative;
  overflow: hidden;
}

.cert-ribbon-container {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 6vw, 48px);
  padding: 0 clamp(16px, 5vw, 40px);
}

.ribbon-tape {
  padding: clamp(32px, 7vw, 56px);
  background: linear-gradient(135deg, rgba(51, 36, 79, 0.12) 0%, rgba(79, 69, 104, 0.08) 100%);
  border: 1px solid rgba(79, 69, 104, 0.25);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.ribbon-tape::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(74, 108, 179, 0.6), transparent);
}

.ribbon-tape::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(74, 108, 179, 0.4) 0px, rgba(74, 108, 179, 0.4) 8px, transparent 8px, transparent 16px);
}

.ribbon-main {
  display: grid;
  gap: 24px;
}

.ribbon-content h2 {
  font-size: clamp(28px, 6vw, 48px);
  line-height: 1.2;
  margin: 0;
  color: #2f2448;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.ribbon-content p {
  font-size: clamp(15px, 2.5vw, 18px);
  line-height: 1.6;
  color: #4f4568;
  margin: 8px 0 0 0;
}

.ribbon-label {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #4a6cb3;
  font-weight: 700;
  margin-bottom: 8px;
}

.ribbon-specs {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: #3f577f;
}

.spec-item {
  font-weight: 500;
}

.spec-divider {
  width: 1px;
  height: 20px;
  background: rgba(74, 108, 179, 0.3);
}

.ribbon-secondary {
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(74, 108, 179, 0.4);
  border-radius: 12px;
  text-align: center;
  color: #4f4568;
  font-size: 0.95rem;
  margin: 0;
  max-width: 420px;
}

.ribbon-accent {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, rgba(74, 108, 179, 0.08) 0%, rgba(74, 108, 179, 0.03) 100%);
  border: 1px solid rgba(74, 108, 179, 0.15);
  border-radius: 50%;
  position: absolute;
  top: -60px;
  right: 10%;
  filter: blur(0.5px);
}

.cert-flow-path {
  padding: clamp(40px, 8vw, 80px) clamp(16px, 5vw, 40px);
  position: relative;
}

.path-intro {
  margin-bottom: clamp(32px, 8vw, 60px);
}

.path-intro h2 {
  font-size: clamp(32px, 7vw, 52px);
  line-height: 1.15;
  margin: 0 0 12px 0;
  color: #2f2448;
  font-weight: 600;
}

.path-intro p {
  font-size: 1rem;
  color: #4f4568;
  margin: 0;
}

.path-steps-container {
  --route-width: 120px;
  position: relative;
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
  padding: 8px 0 4px;
}

.path-step {
  --star-center: 30px;
  --star-size: 56px;
  --star-y: 45%;
  position: relative;
  display: grid;
  grid-template-columns: var(--route-width) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(12px, 3vw, 22px);
  min-height: 168px;
  padding: 2px 0;
  background: none;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  margin-left: 0;
}

.path-steps-container::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 34px;
  width: var(--route-width);
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 1000' preserveAspectRatio='none'%3E%3Cpath d='M38 24 C38 120 102 140 102 248 C102 356 36 382 36 498 C36 620 104 646 104 760 C104 864 52 896 52 982' fill='none' stroke='rgba(95,115,171,0.42)' stroke-width='3' stroke-linecap='round' stroke-dasharray='9 11'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.step-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: var(--star-center);
  top: var(--star-y);
  transform: translate(-50%, -50%);
  width: var(--star-size);
  height: var(--star-size);
  margin-top: 0;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.2) 62%),
    linear-gradient(145deg, rgba(252, 241, 233, 0.92), rgba(219, 228, 247, 0.84));
  border: 1.5px solid rgba(82, 112, 177, 0.78);
  border-radius: 50%;
  font-weight: 700;
  color: #435d99;
  font-size: 1.35rem;
  flex-shrink: 0;
  z-index: 2;
  box-shadow:
    0 10px 24px rgba(94, 107, 153, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.step-marker::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid rgba(82, 112, 177, 0.18);
}

.path-step-2 {
  --star-center: 70px;
  --star-y: 49%;
}

.path-step-3 {
  --star-center: 44px;
  --star-y: 51%;
}

.step-inner {
  position: relative;
  grid-column: 2;
  margin-left: 0;
  padding: 10px 2px 10px 6px;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  backdrop-filter: none;
}

.step-order {
  display: inline-flex;
  margin-bottom: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(74, 92, 143, 0.78);
}

.step-inner h3 {
  font-size: 1.26rem;
  font-weight: 600;
  color: #2f2448;
  margin: 0 0 8px 0;
}

.step-inner p {
  font-size: 0.95rem;
  color: #4f4568;
  line-height: 1.6;
  margin: 0;
}

@media (min-width: 640px) {
  .path-steps-container {
    --route-width: 128px;
    gap: 30px;
  }

  .path-step {
    --star-size: 58px;
    min-height: 176px;
    max-width: 620px;
  }

  .path-step-2 {
    --star-center: 74px;
    --star-y: 49%;
  }

  .path-step-3 {
    --star-center: 48px;
    --star-y: 51%;
  }

  .step-marker {
    font-size: 1.5rem;
  }

  .step-inner {
    max-width: 520px;
    padding: 12px 4px 12px 8px;
  }
}

/* ===== NEW EVENTS STAGGER DESIGN ===== */

.events-gallery-stagger {
  padding: clamp(40px, 8vw, 80px) clamp(16px, 5vw, 40px);
}

.events-gallery-stagger h2 {
  font-size: clamp(32px, 7vw, 52px);
  line-height: 1.15;
  margin: 0 0 clamp(32px, 8vw, 60px) 0;
  color: #2f2448;
  font-weight: 600;
}

.stagger-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 5vw, 40px);
}

.stagger-card {
  padding: clamp(28px, 5vw, 42px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(79, 69, 104, 0.06) 100%);
  border: 1px solid rgba(79, 69, 104, 0.12);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stagger-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(74, 108, 179, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.stagger-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 108, 179, 0.25);
}

.stagger-card:hover::before {
  opacity: 1;
}

.card-1 {
  transform: translateX(0) skewY(-1deg);
  max-width: 480px;
}

.card-2 {
  transform: translateX(clamp(20px, 8vw, 60px)) skewY(0.8deg);
  max-width: 480px;
}

.card-3 {
  transform: translateX(clamp(-20px, -8vw, -60px)) skewY(-0.6deg);
  max-width: 480px;
}

.stagger-card h3 {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 600;
  color: #2f2448;
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.stagger-card p {
  font-size: 0.95rem;
  color: #4f4568;
  line-height: 1.7;
  margin: 0 0 16px 0;
}

.card-geo {
  display: inline-block;
  font-size: 0.8rem;
  color: #4a6cb3;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  padding: 6px 12px;
  background: rgba(74, 108, 179, 0.08);
  border-radius: 20px;
}

.events-process-flow {
  padding: clamp(40px, 8vw, 80px) clamp(16px, 5vw, 40px);
  background: linear-gradient(to bottom, rgba(51, 36, 79, 0.03) 0%, rgba(79, 69, 104, 0.04) 100%);
}

.timeline-head {
  margin-bottom: clamp(36px, 8vw, 64px);
}

.timeline-head h2 {
  font-size: clamp(32px, 7vw, 52px);
  line-height: 1.15;
  margin: 0 0 8px 0;
  color: #2f2448;
  font-weight: 600;
}

.timeline-head p {
  font-size: 1rem;
  color: #4f4568;
  margin: 0;
}

.timeline-stages {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 4vw, 28px);
  position: relative;
}

.timeline-stages::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(74, 108, 179, 0.4) 0%, rgba(74, 108, 179, 0.1) 100%);
  z-index: 0;
}

.stage-block {
  padding: clamp(22px, 4vw, 32px);
  padding-left: clamp(36px, 6vw, 52px);
  background: #ffffff;
  border: 1px solid rgba(79, 69, 104, 0.08);
  border-radius: 12px;
  position: relative;
  z-index: 1;
}

.stage-block::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 28px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, rgba(74, 108, 179, 0.2) 0%, rgba(74, 108, 179, 0.1) 100%);
  border: 2.5px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(74, 108, 179, 0.35), inset 0 0 0 2px rgba(74, 108, 179, 0.15);
  z-index: 2;
}

.stage-block h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #2f2448;
  margin: 0 0 8px 0;
}

.stage-block p {
  font-size: 0.95rem;
  color: #4f4568;
  line-height: 1.6;
  margin: 0;
}

.events-signature {
  padding: clamp(40px, 8vw, 80px) clamp(16px, 5vw, 40px);
}

.signature-core {
  text-align: center;
}

.signature-core h2 {
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.2;
  margin: 0 0 clamp(28px, 6vw, 48px) 0;
  color: #2f2448;
  font-weight: 600;
}

.geo-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(12px, 2vw, 16px);
}

.geo-tags .tag {
  padding: clamp(10px, 2vw, 14px) clamp(16px, 3vw, 24px);
  background: linear-gradient(135deg, rgba(74, 108, 179, 0.12) 0%, rgba(74, 108, 179, 0.06) 100%);
  border: 1px solid rgba(74, 108, 179, 0.25);
  border-radius: 999px;
  color: #3f577f;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.geo-tags .tag:hover {
  background: linear-gradient(135deg, rgba(74, 108, 179, 0.18) 0%, rgba(74, 108, 179, 0.12) 100%);
  border-color: rgba(74, 108, 179, 0.4);
  transform: scale(1.05);
}

/* ===== CTA & FOOTER ===== */

.cert-cta {
  padding: clamp(48px, 10vw, 80px) clamp(16px, 5vw, 40px);
  text-align: center;
}

.cta-frame {
  display: grid;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.cta-frame p {
  font-size: clamp(18px, 4vw, 24px);
  line-height: 1.5;
  color: #2f2448;
  font-weight: 500;
  margin: 0;
}

.events-cta-line {
  padding: clamp(48px, 10vw, 80px) clamp(16px, 5vw, 40px);
  text-align: center;
}

.events-cta-line p {
  font-size: clamp(18px, 4vw, 24px);
  line-height: 1.5;
  color: #2f2448;
  font-weight: 500;
  margin: 0 0 20px 0;
}

.render-cta {
  display: inline-block;
  padding: clamp(14px, 2.5vw, 18px) clamp(28px, 5vw, 42px);
  background: linear-gradient(135deg, rgba(74, 108, 179, 0.18) 0%, rgba(74, 108, 179, 0.1) 100%);
  border: 1.5px solid #4a6cb3;
  color: #2f2448;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.render-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74, 108, 179, 0.25) 0%, rgba(74, 108, 179, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.render-cta:hover {
  border-color: #4a6cb3;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 108, 179, 0.15);
}

/* Responsive adjustments for new designs */
@media (min-width: 780px) {
  .stagger-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }

  .card-1 {
    transform: translateX(-40px) skewY(-2deg);
  }

  .card-2 {
    transform: translateX(0) skewY(0);
    margin-top: -24px;
  }

  .card-3 {
    transform: translateX(40px) skewY(1.5deg);
    margin-top: -16px;
  }

  .timeline-stages::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .stage-block {
    padding-left: clamp(24px, 3vw, 32px);
  }

  .stage-block::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .stage-1,
  .stage-3 {
    margin-right: calc(50% + 16px);
  }

  .stage-2,
  .stage-4 {
    margin-left: calc(50% + 16px);
  }
}

@media (max-width: 640px) {
  .ribbon-tape {
    padding: 24px;
  }

  /* path-step and step-marker keep dedicated route styles above */

  .stagger-card {
    transform: none !important;
  }

  .timeline-stages::before {
    left: 12px;
  }

  .stage-block {
    padding-left: 36px;
  }

  .stage-block::before {
    left: -2px;
    transform: none;
  }

  .stage-1,
  .stage-2,
  .stage-3,
  .stage-4 {
    margin: 0 !important;
  }
}

/* ===== CERTIFICATE SHOWCASE ===== */

@keyframes certAppear {
  0% {
    opacity: 0;
    transform: scale(0.92) rotateY(-10deg);
  }
  50% {
    transform: scale(1.02) rotateY(5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotateY(0);
  }
}

@keyframes certFloat {
  0%, 100% {
    transform: translateY(0px) rotateX(0deg);
  }
  50% {
    transform: translateY(-8px) rotateX(2deg);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.cert-showcase {
  padding: clamp(40px, 10vw, 100px) clamp(16px, 5vw, 40px);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}

.cert-container {
  width: 100%;
  max-width: 700px;
  perspective: 1000px;
}

.cert-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(79, 69, 104, 0.08) 100%);
  border: 1px solid rgba(74, 108, 179, 0.2);
  border-radius: 20px;
  padding: clamp(40px, 8vw, 60px);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  animation: certAppear 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
            certFloat 3.5s ease-in-out 1s infinite;
  box-shadow: 0 20px 50px rgba(51, 36, 79, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.cert-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(74, 108, 179, 0.1), transparent);
  animation: shimmer 3s infinite;
  background-size: 1000px 100%;
  pointer-events: none;
}

.cert-decoration {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(74, 108, 179, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cert-decoration-top {
  top: -100px;
  right: -50px;
  animation: float 6s ease-in-out infinite;
}

.cert-decoration-bottom {
  bottom: -120px;
  left: -60px;
  animation: float 6s ease-in-out infinite 1s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(20px);
  }
}

.cert-inner {
  position: relative;
  z-index: 2;
}

.cert-badge-label {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #4a6cb3;
  font-weight: 800;
  margin-bottom: 16px;
  opacity: 0.85;
}

.cert-content {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: clamp(20px, 5vw, 32px);
  align-items: center;
  margin-bottom: clamp(28px, 6vw, 40px);
}

.cert-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(74, 108, 179, 0.1) 0%, rgba(74, 108, 179, 0.04) 100%);
  border: 1.5px solid rgba(74, 108, 179, 0.25);
  border-radius: 16px;
  flex-shrink: 0;
}

.cert-icon {
  width: 50px;
  height: 50px;
  color: #4a6cb3;
  opacity: 0.7;
}

.cert-text h2 {
  font-size: clamp(24px, 5vw, 36px);
  line-height: 1.15;
  font-weight: 600;
  color: #2f2448;
  margin: 0 0 12px 0;
}

.cert-text p {
  font-size: 0.95rem;
  color: #4f4568;
  line-height: 1.6;
  margin: 0;
}

.cert-specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: clamp(24px, 5vw, 32px);
  background: linear-gradient(135deg, rgba(74, 108, 179, 0.06) 0%, rgba(79, 69, 104, 0.04) 100%);
  border-radius: 14px;
  border: 1px solid rgba(74, 108, 179, 0.12);
}

.spec-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
}

.spec-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #4a6cb3;
  font-weight: 700;
  opacity: 0.8;
}

.spec-value {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 600;
  color: #2f2448;
}

.cert-description {
  margin-top: clamp(32px, 6vw, 48px);
  text-align: center;
}

.cert-description p {
  font-size: 1rem;
  line-height: 1.7;
  color: #4f4568;
  margin: 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== CERTIFICATE CONTACT SECTION ===== */

.cert-contact {
  padding: clamp(48px, 10vw, 80px) clamp(16px, 5vw, 40px);
  text-align: center;
}

.contact-frame {
  display: grid;
  gap: clamp(20px, 4vw, 28px);
  max-width: 600px;
  margin: 0 auto;
}

.contact-frame p {
  font-size: clamp(18px, 4vw, 26px);
  line-height: 1.4;
  color: #2f2448;
  font-weight: 500;
  margin: 0;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: clamp(16px, 3vw, 20px) clamp(32px, 6vw, 48px);
  background: linear-gradient(135deg, rgba(74, 108, 179, 0.12) 0%, rgba(74, 108, 179, 0.08) 100%);
  border: 1.5px solid rgba(74, 108, 179, 0.3);
  color: #2f2448;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.contact-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74, 108, 179, 0.2) 0%, rgba(74, 108, 179, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.contact-link:hover {
  border-color: rgba(74, 108, 179, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(74, 108, 179, 0.2);
}

.contact-link:hover::before {
  opacity: 1;
}

.contact-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.contact-link:hover svg {
  transform: translateX(2px);
}

/* ===== SIMPLIFIED EVENTS STYLES ===== */

.events-formats {
  padding: clamp(40px, 8vw, 80px) clamp(16px, 5vw, 40px);
}

.events-formats h2 {
  font-size: clamp(32px, 7vw, 52px);
  line-height: 1.15;
  margin: 0 0 clamp(32px, 8vw, 60px) 0;
  color: #2f2448;
  font-weight: 600;
  text-align: center;
}

.formats-atelier {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 34px);
  border-radius: 28px;
  background:
    radial-gradient(130% 95% at 12% 8%, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.44) 52%, rgba(255, 255, 255, 0.2) 100%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow:
    0 22px 46px rgba(80, 70, 130, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.formats-atelier-lead {
  margin: 0;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.62;
  color: #4f4568;
}

.formats-divider {
  width: min(260px, 70%);
  height: 1px;
  margin: 16px auto 18px;
  background: linear-gradient(90deg, transparent, rgba(110, 120, 172, 0.42), transparent);
}

.formats-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.format-badge {
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 12px 8px 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow:
    0 8px 18px rgba(80, 70, 130, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.format-badge-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 25%, #ffffff, rgba(220, 215, 245, 0.58) 70%);
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -6px 12px rgba(180, 170, 220, 0.18),
    0 6px 14px rgba(80, 70, 130, 0.12);
}

.format-badge-icon svg {
  width: 31px;
  height: 31px;
  stroke: #6a5e96;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.format-badge-icon .fill-dot {
  fill: rgba(106, 94, 150, 0.34);
  stroke-width: 0;
}

.format-badge > span:last-child {
  font-size: 0.75rem;
  line-height: 1.34;
  font-weight: 600;
  color: #3e3559;
}

.formats-notes {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.formats-note {
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.74);
}

.formats-note h3 {
  margin: 0 0 4px;
  font-size: 1.03rem;
  color: #2f2448;
  font-weight: 600;
}

.formats-note p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.56;
  color: #4f4568;
}

.events-process {
  padding: clamp(40px, 8vw, 80px) clamp(16px, 5vw, 40px);
  background: linear-gradient(to bottom, rgba(51, 36, 79, 0.025) 0%, rgba(79, 69, 104, 0.05) 100%);
}

.events-process h2 {
  font-size: clamp(32px, 7vw, 52px);
  line-height: 1.15;
  margin: 0 0 clamp(32px, 8vw, 60px) 0;
  color: #2f2448;
  font-weight: 600;
  text-align: center;
}

.process-canvas {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.process-canvas::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: linear-gradient(180deg, rgba(110, 120, 172, 0.12), rgba(110, 120, 172, 0.45) 22%, rgba(110, 120, 172, 0.12));
}

.process-node {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}

.process-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 1;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #536aa8;
  background:
    radial-gradient(circle at 32% 26%, #ffffff, rgba(220, 215, 245, 0.58) 72%);
  border: 1px solid rgba(82, 112, 177, 0.5);
  box-shadow:
    0 7px 14px rgba(80, 70, 130, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.process-copy {
  margin-top: 2px;
  padding: 11px 14px 12px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 10px 20px rgba(80, 70, 130, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.process-copy h3 {
  font-size: 1.02rem;
  font-weight: 600;
  color: #2f2448;
  margin: 0 0 5px;
}

.process-copy p {
  font-size: 0.91rem;
  color: #4f4568;
  line-height: 1.56;
  margin: 0;
}

.process-afterword {
  max-width: 760px;
  margin: 18px auto 0;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.58;
  color: #4f4568;
}

.events-contact {
  padding: clamp(48px, 10vw, 80px) clamp(16px, 5vw, 40px);
  text-align: center;
}

.events-contact .contact-frame {
  display: grid;
  gap: clamp(20px, 4vw, 28px);
  max-width: 600px;
  margin: 0 auto;
}

.events-contact .contact-frame p {
  font-size: clamp(18px, 4vw, 26px);
  line-height: 1.4;
  color: #2f2448;
  font-weight: 500;
  margin: 0;
}

/* Responsive adjustments for certificate */
@media (max-width: 780px) {
  .cert-content {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cert-visual {
    width: 80px;
    height: 80px;
  }

  .cert-icon {
    width: 40px;
    height: 40px;
  }

  .cert-specs {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .spec-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .contact-link {
    display: flex;
    width: fit-content;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .cert-showcase {
    min-height: auto;
    padding: 32px 16px;
  }

  .cert-card {
    padding: 28px 20px;
    animation: certAppear 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }

  .cert-specs {
    grid-template-columns: 1fr;
  }

  .contact-frame p {
    font-size: 16px;
  }

  .contact-link {
    font-size: 0.9rem;
    padding: 14px 24px;
  }

  .formats-atelier {
    border-radius: 24px;
    padding: 16px 14px 18px;
  }

  .formats-badges {
    gap: 8px;
  }

  .format-badge {
    padding: 10px 6px;
  }

  .format-badge-icon {
    width: 48px;
    height: 48px;
  }

  .format-badge-icon svg {
    width: 27px;
    height: 27px;
  }

  .process-node {
    grid-template-columns: 38px 1fr;
    gap: 10px;
  }

  .process-canvas::before {
    left: 19px;
  }

  .process-dot {
    width: 38px;
    height: 38px;
    font-size: 0.7rem;
  }

  .process-copy {
    padding: 10px 11px;
  }
}


/* ===== HOME PAGE (без фото, красивый градиент) ===== */
body.home-page {
  min-height: 100vh;
}

@media (max-width: 859px) {
  body.home-page .home-bg-full {
    display: block;
  }

  body.home-page .topbar.glass,
  body.home-page .topbar.glass::before {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.home-page .home-hero-section {
    width: min(460px, calc(100% - 24px));
    min-height: calc(100svh - 96px);
    padding: 0;
  }

  body.home-page .home-hero-content {
    max-width: 100%;
    transform: translateY(16vh);
    gap: 10px;
  }

  body.home-page .home-kicker {
    display: none;
  }

  body.home-page .home-hero-title {
    font-size: clamp(2rem, 5.2vw, 3.1rem);
    text-shadow: 0 10px 26px rgba(255, 255, 255, 0.32);
  }

  body.home-page .home-hero-lead {
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    line-height: 1.05;
    max-width: none;
    text-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
  }
}

.home-hero-section {
  width: min(560px, calc(100% - 24px));
  margin: 0 auto;
  min-height: calc(100svh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0 60px;
}

.home-hero-content {
  display: grid;
  gap: 16px;
  text-align: center;
}

.home-hero-title {
  font-family: var(--font-main);
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0;
  color: #26203f;
  text-wrap: balance;
}

.home-hero-lead {
  font-family: var(--font-main);
  font-size: clamp(1.2rem, 2.8vw, 1.6rem);
  font-weight: 400;
  color: #4a4168;
  line-height: 1.18;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 6px 14px rgba(255, 255, 255, 0.26);
  display: block;
  width: 100%;
  max-width: 20ch;
  margin-top: 4px;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.home-hero-cta {
  display: inline-block;
  text-decoration: none;
  color: #2f294a;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 18px 44px;
  border-radius: 999px;
  border: 1px solid rgba(180, 160, 220, 0.4);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(240, 230, 255, 0.44));
  box-shadow:
    0 16px 36px rgba(90, 81, 128, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 22px 42px rgba(90, 81, 128, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

@media (min-width: 860px) {
  body.home-page {
    background:
      linear-gradient(180deg, rgba(236, 235, 247, 0.42), rgba(224, 232, 247, 0.24)),
      url("doci/home-desktop-bg.png") center center / cover no-repeat;
  }

  body.home-page .home-bg-full {
    display: none;
  }

  .home-hero-section {
    width: min(700px, calc(100% - 60px));
    min-height: calc(100svh - 120px);
    padding: 40px 0 60px;
  }

  .home-hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
  }

  body.home-page .home-hero-cta {
    font-size: clamp(1.12rem, 1.6vw, 1.34rem);
    padding: 24px 68px;
    letter-spacing: 0.1em;
    border-width: 1.5px;
  }

  body.home-page .home-main,
  body.home-page .home-hero-section {
    min-height: calc(100svh - 132px);
  }

  body.home-page .home-content,
  body.home-page .home-hero-content {
    transform: translateY(16vh) !important;
  }

  body.home-page .home-hero-lead {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(1.16rem, 2.2vw, 1.56rem);
  }
}

/* ===== Final Header + Hero Alignment Fixes ===== */
.hero-subline {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 14px;
  text-align: center !important;
}

.flow-hero .page-dek {
  max-width: 60ch;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

@media (min-width: 860px) {
  .topbar.glass {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.06)) !important;
    border: 1px solid rgba(255, 255, 255, 0.34) !important;
    box-shadow:
      0 10px 24px rgba(80, 70, 130, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(10px) saturate(115%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(115%) !important;
  }

  .topbar.glass::before {
    display: block !important;
    border-radius: inherit;
  }
}

/* ===== Visual Content Admin ===== */
.cms-admin-main {
  width: min(1220px, calc(100% - 26px));
}

.cms-admin-card {
  padding: 24px;
}

.cms-admin-title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #2f2448;
}

.cms-admin-note {
  margin-top: 10px;
  color: #4f4568;
  line-height: 1.6;
}

.cms-admin-toolbar {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cms-admin-field-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3e3858;
  font-weight: 600;
}

.cms-admin-field-inline select {
  border-radius: 12px;
  border: 1px solid rgba(95, 115, 171, 0.35);
  background: rgba(255, 255, 255, 0.75);
  color: #2f2448;
  padding: 8px 10px;
}

.cms-admin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3e3858;
}

.cms-admin-toggle input {
  width: 18px;
  height: 18px;
}

.cms-admin-status {
  margin-top: 12px;
  color: #4f4568;
}

.cms-admin-preview-wrap {
  margin-top: 14px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 28px rgba(82, 73, 120, 0.12);
  background: rgba(255, 255, 255, 0.45);
}

#cmsPreviewFrame {
  width: 100%;
  height: min(78vh, 860px);
  border: 0;
  display: block;
  background: #f0edf8;
}

.cms-admin-links {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}
