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

:root {
  --gold: #C9A84C;
  --gold-light: #E8C96A;
  --gold-dim: rgba(201,168,76,0.15);
  --bg: #060810;
  --bg2: #0c0e1a;
  --bg3: #111425;
  --text: #F0EAD6;
  --text-dim: rgba(240,234,214,0.55);
  --purple: #7B5EA7;
  --teal: #3ABFB0;
  --blue: #4A7FD4;
  --card-bg: rgba(255,255,255,0.04);
  --border: rgba(201,168,76,0.18);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─── NAVBAR ─── */
nav:not(.footer-pages) {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  background: linear-gradient(to bottom, rgba(6,8,16,0.97), rgba(6,8,16,0.88));
  backdrop-filter: blur(4px);
}
nav:not(.footer-pages) { gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.nav-logo img { height: 44px; width: auto; display: block; }
.nav-right { display: flex; align-items: center; gap: 24px; flex: 0 0 auto; margin-left: auto; }
.nav-help { font-size: 14px; color: var(--text-dim); text-decoration: none; padding-block: 8px; }
.nav-help:hover, .nav-help:focus-visible { color: var(--gold); text-decoration: underline; }
.lang-switcher {
  display: flex; border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
}
.lang-btn {
  display: inline-block; text-decoration: none; line-height: normal;
  padding: 5px 14px; background: none; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500;
  color: var(--text-dim); letter-spacing: 0.08em; transition: all 0.2s;
}
html[lang="ru"] .lang-btn[data-lang-link="ru"],
html[lang="en"] .lang-btn[data-lang-link="en"] { background: var(--gold); color: #060810; }
.nav-cta {
  padding: 9px 22px; background: var(--gold); color: #060810;
  border: none; border-radius: 24px; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; transition: all 0.2s;
  text-decoration: none; display: inline-block;
  white-space: nowrap; flex: 0 0 auto;
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }
/* Quiet second action next to the main button: text link, no fill. */
.nav-cta-link {
  padding: 12px 6px; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; white-space: nowrap;
  color: var(--gold); text-decoration: none; border-radius: 8px; transition: color 0.2s;
}
.nav-cta-link:hover { color: var(--gold-light); text-decoration: underline; text-underline-offset: 4px; }
.nav-cta-link:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }

/* ─── HEADER MENU ───
   Layout: logo | menu (takes the free space, may shrink) | language + Telegram
   button (never shrink) | burger (narrow screens only). Dropdowns are
   absolutely positioned, so they never push or overlap the other blocks. */
.nav-menu { flex: 1 1 auto; min-width: 0; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.nav-item { position: relative; list-style: none; }
.nav-lang { display: none; }
.nav-item > a, .nav-trigger {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 8px 14px; border: 0; border-radius: 20px; background: none; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 400; letter-spacing: 0.02em;
  color: var(--text-dim); text-decoration: none; transition: color 0.2s, background 0.2s;
}
.nav-trigger::after {
  content: ''; width: 6px; height: 6px; margin-top: -3px; flex: none;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform 0.2s;
}
.nav-trigger[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 3px; }
.nav-item > a:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"],
.nav-trigger[data-current="true"], .nav-item > a[aria-current="page"] { color: var(--gold); background: var(--gold-dim); }
.nav-item > a:focus-visible, .nav-trigger:focus-visible, .nav-sub a:focus-visible,
.nav-burger:focus-visible, .nav-cta:focus-visible, .lang-btn:focus-visible {
  outline: 2px solid var(--gold-light); outline-offset: 2px;
}
.nav-sub {
  list-style: none; margin: 0; padding: 8px; display: none;
  position: absolute; top: 100%; left: 0; min-width: 240px; z-index: 110;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.nav-group.open > .nav-sub { display: block; }
/* Without JS the dropdowns still open on hover and keyboard focus. */
html:not(.nav-js) .nav-group:hover > .nav-sub,
html:not(.nav-js) .nav-group:focus-within > .nav-sub { display: block; }
.nav-sub li { list-style: none; }
.nav-sub a {
  display: block; padding: 10px 14px; border-radius: 10px; white-space: nowrap;
  font-size: 14px; color: var(--text); text-decoration: none; transition: color 0.2s, background 0.2s;
}
.nav-sub a:hover, .nav-sub a[aria-current="page"] { color: var(--gold); background: var(--gold-dim); }
.nav-burger {
  display: none; flex: 0 0 auto; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--border); border-radius: 50%; background: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-burger span { display: block; width: 16px; height: 1.5px; background: var(--gold); transition: transform 0.2s, opacity 0.2s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Compact desktop / large tablet */
@media (max-width: 1100px) {
  .nav-cta-link { display: none; } /* the same link sits in the hero and the page end */
  nav:not(.footer-pages) { gap: 12px; }
  .nav-right { gap: 14px; }
  .nav-item > a, .nav-trigger { padding: 8px 10px; font-size: 13px; }
}

/* Tablet and phone: the menu becomes a drop-down panel under the header. */
@media (max-width: 900px) {
  nav:not(.footer-pages) { gap: 12px; }
  .nav-burger { display: inline-flex; }
  .nav-right { gap: 10px; }
  .nav-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100vh - 84px); max-height: calc(100dvh - 84px); overflow-y: auto; overscroll-behavior: contain;
    padding: 8px 24px 20px; background: var(--bg2); border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  }
  nav.nav-open .nav-menu { display: block; }
  /* No JS: no burger, the menu is always open as a plain list under the logo row. */
  html:not(.nav-js) .nav-burger { display: none; }
  html:not(.nav-js) .nav-menu { display: block; position: static; max-height: none; overflow: visible; padding: 0; flex: 1 0 100%; order: 5; box-shadow: none; }
  html:not(.nav-js) nav:not(.footer-pages) { flex-wrap: wrap; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item > a, .nav-trigger { width: 100%; justify-content: space-between; padding: 14px 4px; border-radius: 0; font-size: 16px; }
  .nav-item + .nav-item { border-top: 1px solid var(--border); }
  .nav-item > a:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"], .nav-trigger[data-current="true"], .nav-item > a[aria-current="page"] { background: none; }
  .nav-sub { position: static; min-width: 0; padding: 0 0 8px 12px; background: none; border: 0; box-shadow: none; }
  html:not(.nav-js) .nav-group:hover > .nav-sub { display: none; }
  html:not(.nav-js) .nav-sub { display: block; }
  .nav-sub a { padding: 10px 4px; white-space: normal; }
  .nav-lang { display: block; }
  .nav-lang a { color: var(--gold); }
  /* The language switcher moves into the panel; the Telegram button stays. */
  .nav-right .lang-switcher { display: none; }
}
@media (max-width: 600px) {
  nav:not(.footer-pages) { padding: 12px 16px; gap: 8px; }
  .nav-logo img { height: 32px; width: auto; }
  .nav-cta { padding: 8px 14px; font-size: 12px; }
  .nav-menu { padding: 8px 16px 20px; max-height: calc(100vh - 84px); max-height: calc(100dvh - 84px); }
}
@media (max-width: 380px) {
  .nav-cta { padding: 8px 11px; font-size: 11.5px; letter-spacing: 0; }
  .nav-burger { width: 36px; height: 36px; }
}

/* ─── HERO ─── */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; padding: 0; /* the nav is fixed: hero-content clears it */
  display: flex; align-items: flex-start;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 65% 50%, rgba(74,127,212,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 75% 40%, rgba(123,94,167,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 30% 70%, rgba(58,191,176,0.08) 0%, transparent 50%),
    linear-gradient(160deg, #060810 0%, #0a0d1c 50%, #060810 100%);
}
/* Star field */
.stars {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.star {
  position: absolute; border-radius: 50%;
  background: white; animation: twinkle var(--d, 3s) ease-in-out infinite var(--delay, 0s);
}
@keyframes twinkle {
  0%, 100% { opacity: var(--min-op, 0.2); }
  50% { opacity: var(--max-op, 0.8); }
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 112px 48px 64px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: start;
}
.hero-eyebrow {
  font-size: 11px; letter-spacing: 0.25em; color: var(--gold);
  text-transform: uppercase; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 28px; height: 1px; background: var(--gold);
}
h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 300; line-height: 1.05;
  letter-spacing: -0.01em; margin-bottom: 8px;
}
h1 em { font-style: italic; color: var(--gold); }
.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px); font-weight: 300;
  color: var(--text-dim); line-height: 1.65; margin: 18px 0 24px;
  max-width: 440px;
}
.hero-intention {
  display: grid; grid-template-columns: 46px 1fr; gap: 16px;
  max-width: 520px; margin: 0 0 28px;
  padding: 16px 0 16px 20px;
  border-left: 1px solid rgba(201,168,76,0.45);
}
.hero-intention-mark {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
}
.hero-intention-mark img {
  width: 46px; height: 46px; object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(201,168,76,0.28));
}
.hero-intention-kicker {
  margin: 0 0 6px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
}
.hero-intention-title {
  margin: 0 0 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 2.7vw, 32px); line-height: 1.08;
  color: var(--text); font-weight: 300;
}
.hero-intention-copy {
  margin: 0; color: var(--text-dim);
  font-size: 14px; line-height: 1.7;
}
.hero-intention-copy + .hero-intention-copy { margin-top: 8px; }

/* Waitlist form */
.waitlist-form { display: flex; gap: 0; max-width: 420px; }
.waitlist-form input {
  flex: 1; padding: 14px 20px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  border-right: none; border-radius: 28px 0 0 28px;
  color: var(--text); font-family: 'Inter', sans-serif; font-size: 16px;
  outline: none; transition: border-color 0.2s;
}
.waitlist-form input::placeholder { color: var(--text-dim); }
.waitlist-form input:focus { border-color: var(--gold); }
.waitlist-form button {
  padding: 14px 26px; background: var(--gold);
  border: none; border-radius: 0 28px 28px 0;
  color: #060810; font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 600; cursor: pointer;
  white-space: nowrap; transition: background 0.2s;
}
.waitlist-form button:hover { background: var(--gold-light); }
.waitlist-form button:disabled { opacity: 0.6; cursor: default; }
.waitlist-form input:disabled { opacity: 0.6; }
.waitlist-form input[aria-invalid="true"] { border-color: #C9474A; }
.waitlist-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.waitlist-error {
  display: none; margin-top: 12px; font-size: 13px; color: #C9474A;
}
.waitlist-note {
  font-size: 12px; color: var(--text-dim); margin-top: 12px;
  letter-spacing: 0.02em;
}
.waitlist-consent {
  display: flex; align-items: flex-start; gap: 8px; text-align: left;
  max-width: 420px; margin-top: 12px; font-size: 12px; line-height: 1.6;
  color: var(--text-dim); letter-spacing: 0.02em; cursor: pointer;
}
.waitlist-consent input[type="checkbox"] { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--gold); cursor: pointer; }
.cta-section .waitlist-consent { max-width: 460px; margin: 12px auto 0; }
.waitlist-consent a { color: var(--text-dim); text-decoration: underline; }
.waitlist-consent a:hover { color: var(--gold); }
.success-msg {
  display: none; padding: 14px 20px;
  background: rgba(58,191,176,0.12); border: 1px solid rgba(58,191,176,0.3);
  border-radius: 28px; color: var(--teal); font-size: 14px;
}

/* Hero visual — map mockup */
.hero-visual { position: relative; display: flex; justify-content: center; }
.map-container {
  position: relative; width: 420px; height: 500px;
  background:
    radial-gradient(ellipse 100% 100% at 50% 50%, rgba(10,20,50,0.9), rgba(6,8,16,0.95)),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="500"><defs><filter id="glow"><feGaussianBlur stdDeviation="3" result="blur"/><feMerge><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge></filter></defs></svg>');
  border-radius: 24px; border: 1px solid var(--border);
  overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,0.5), inset 0 0 60px rgba(74,127,212,0.05);
}
/* Fake coastline */
.coastline {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, transparent 30%, rgba(58,191,176,0.06) 50%, transparent 70%);
}
.coastline-svg {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.15;
}

/* Map dots */
.map-dot {
  position: absolute; transform: translate(-50%, -50%);
}
.map-dot-inner {
  width: 12px; height: 12px; border-radius: 50%;
  position: relative; cursor: default;
}
.map-dot-inner::before {
  content: ''; position: absolute; inset: -6px;
  border-radius: 50%; border: 1px solid currentColor;
  opacity: 0.4; animation: pulse-ring 2.5s ease-out infinite;
}
.map-dot-inner::after {
  content: ''; position: absolute; inset: -12px;
  border-radius: 50%; border: 1px solid currentColor;
  opacity: 0.15; animation: pulse-ring 2.5s ease-out infinite 0.5s;
}
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(2); opacity: 0; }
}
.dot-purple .map-dot-inner { background: var(--purple); color: var(--purple); box-shadow: 0 0 12px var(--purple); }
.dot-teal .map-dot-inner { background: var(--teal); color: var(--teal); box-shadow: 0 0 12px var(--teal); }
.dot-blue .map-dot-inner { background: var(--blue); color: var(--blue); box-shadow: 0 0 12px var(--blue); }
.dot-gold .map-dot-inner { background: var(--gold); color: var(--gold); box-shadow: 0 0 12px var(--gold); }

.dot-label {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-size: 12px; font-weight: 500; color: var(--text);
}
.dot-label small { display: block; font-size: 10px; color: var(--text-dim); font-weight: 300; }

.map-overlay-card {
  position: absolute; bottom: 20px; left: 16px; right: 16px;
  background: rgba(12,14,26,0.85); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: 16px;
  padding: 16px 20px; display: flex; align-items: center; gap: 16px;
}
.aura-score-ring {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 50%; border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 600;
  color: var(--gold); position: relative;
}
.score-label-sm { font-size: 9px; color: var(--gold); letter-spacing: 0.08em; display: block; }
.card-text-sm { font-size: 13px; color: var(--text); font-weight: 400; }
.card-text-sm span { display: block; font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.card-text-sm strong span { font-size: 13px; color: var(--text); font-weight: 500; margin-top: 0; }
.card-tags { display: flex; gap: 6px; margin-top: 8px; }
.tag-chip {
  padding: 3px 10px; border-radius: 12px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  font-size: 10px; color: var(--text-dim);
}

/* ─── DIVIDER ─── */
.divider {
  max-width: 1200px; margin: 0 auto; padding: 0 48px;
  display: flex; align-items: center; gap: 24px;
  font-size: 11px; letter-spacing: 0.2em; color: var(--text-dim); text-transform: uppercase;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ─── SECTIONS ─── */
section { padding: 100px 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }

.section-label {
  font-size: 11px; letter-spacing: 0.25em; color: var(--gold);
  text-transform: uppercase; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::before { content: ''; display: block; width: 20px; height: 1px; background: var(--gold); }

h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 300; line-height: 1.1;
}
h2 em { font-style: italic; color: var(--gold); }

/* ─── PROBLEM ─── */
.problem-section { background: var(--bg2); }
.problem-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
  margin-top: 60px;
}
.problem-text h2 { margin-bottom: 24px; }
.problem-text p { color: var(--text-dim); font-size: 17px; line-height: 1.75; margin-bottom: 16px; }
.problem-text p strong { color: var(--text); font-weight: 500; }

.problem-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stat-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px 24px; text-align: center;
}
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px; font-weight: 300; color: var(--gold); line-height: 1;
  font-variant-numeric: lining-nums;
  margin-bottom: 8px;
}
.stat-desc { font-size: 13px; color: var(--text-dim); line-height: 1.5; }

/* ─── FEATURES ─── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px;
}
.feature-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 36px 28px;
  transition: border-color 0.3s, transform 0.3s;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--gold-dim); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 20px;
}
.feature-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 400; margin-bottom: 12px;
}
.feature-card p { font-size: 14px; color: var(--text-dim); line-height: 1.7; }

/* ─── LOCATIONS ─── */
.locations-section { background: var(--bg2); }
.locations-scroll {
  display: flex; gap: 16px; margin-top: 48px;
  overflow-x: auto; padding-bottom: 12px;
  scrollbar-width: none;
}
.locations-scroll::-webkit-scrollbar { display: none; }
.location-chip {
  flex-shrink: 0; padding: 12px 24px;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 50px; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text-dim);
}
.location-chip:hover, .location-chip.active {
  background: var(--gold-dim); border-color: var(--gold); color: var(--text);
}
.location-chip .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.location-chip .count { font-size: 11px; color: var(--gold); }

.locations-showcase {
  margin-top: 40px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; height: 380px;
}
.loc-card {
  border-radius: 20px; overflow: hidden; position: relative;
  background: var(--bg3); border: 1px solid var(--border);
  display: flex; align-items: flex-end; padding: 24px;
}
.loc-card-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--c1, #0d1b2a) 0%, var(--c2, #1a2744) 100%);
}
.loc-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,8,16,0.8) 0%, transparent 60%);
}
.loc-card-content { position: relative; z-index: 1; }
.loc-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 400; margin-bottom: 4px;
}
.loc-card-sub { font-size: 12px; color: var(--text-dim); }
.loc-card-badge {
  position: absolute; top: 16px; right: 16px; z-index: 1;
  padding: 4px 12px; background: rgba(6,8,16,0.7); border: 1px solid var(--border);
  border-radius: 20px; font-size: 11px; color: var(--gold);
}
.loc-goa { --c1: #0a1628; --c2: #0d2040; }
.loc-bali { --c1: #0f1a10; --c2: #1a2e1c; }
.loc-ubud { --c1: #1a1208; --c2: #2e2010; }

/* Floating particles in loc cards */
.loc-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.loc-p {
  position: absolute; border-radius: 50%;
  animation: float-p var(--dur, 6s) ease-in-out infinite var(--delay, 0s);
}
@keyframes float-p {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-20px) scale(1.2); opacity: 1; }
}

/* ─── APP PREVIEW ─── */
.app-preview-section { overflow: hidden; }
.app-preview-grid {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr); gap: 64px; align-items: center;
  margin-top: 60px;
}
.app-preview-text h2 { margin-bottom: 24px; }
.app-preview-text p { color: var(--text-dim); font-size: 17px; line-height: 1.75; margin-bottom: 32px; }

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 15px; color: var(--text-dim);
}
.feature-list li::before {
  content: '✦'; color: var(--gold); flex-shrink: 0; font-size: 10px; margin-top: 5px;
}
.feature-list li strong { color: var(--text); font-weight: 500; }

.phone-mockup {
  position: relative; display: flex; justify-content: flex-end;
}
.phone-frame {
  width: min(560px, 100%); border-radius: 28px;
  border: 2px solid rgba(255,255,255,0.1);
  overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
}
.phone-frame img { width: 100%; display: block; }
.phone-glow {
  position: absolute; inset: -40px; border-radius: 60px;
  background: radial-gradient(ellipse at center, rgba(123,94,167,0.2), transparent 70%);
  filter: blur(20px); pointer-events: none;
}

/* ─── WAITLIST CTA ─── */
.cta-section {
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
  text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(201,168,76,0.06), transparent);
  pointer-events: none;
}
.cta-section h2 { margin-bottom: 16px; }
.cta-section p { color: var(--text-dim); font-size: 18px; max-width: 500px; margin: 0 auto 40px; }
.cta-form-wrap { display: flex; justify-content: center; }
.cta-form-wrap .waitlist-form { max-width: 460px; width: 100%; }
.waitlist-cta { display: flex; flex-direction: column; align-items: center; text-align: center; }
.waitlist-cta .waitlist-form, .waitlist-cta .success-msg { max-width: 460px; width: 100%; }
.store-badges { display: flex; justify-content: center; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero-left .store-badges { justify-content: flex-start; margin-top: 20px; }
.store-badge {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 22px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 12px;
  text-decoration: none; color: var(--text); transition: all 0.2s;
  font-size: 13px;
}
.store-badge:hover { border-color: var(--gold); background: var(--gold-dim); }
.store-badge .badge-icon {
  width: 26px; height: 26px; flex: 0 0 26px;
  display: inline-flex; align-items: center; justify-content: center;
}
.store-badge .badge-icon svg { width: 100%; height: 100%; display: block; }
.store-badge .badge-icon--apple svg { color: #F7F2DF; }
.store-badge .badge-text { display: flex; flex-direction: column; }
.store-badge .badge-sub { font-size: 9px; color: var(--text-dim); letter-spacing: 0.06em; text-transform: uppercase; }
.store-badge .badge-name { font-size: 15px; font-weight: 500; line-height: 1.2; }
.cta-section .coming-soon-note {
  font-size: 11px; color: var(--text-dim); margin: 28px auto 0;
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* ─── FOOTER ─── */
/* Three tiers (docs/ux/footer.md): product and contact, the catalog in four groups, the copyright strip. */
footer { --footer-dim: rgba(240,234,214,0.65); border-top: 1px solid var(--border); padding: 40px 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 48px; display: grid; gap: 32px; }
.footer-top-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; }
.footer-logo { display: block; border-radius: 4px; }
.footer-logo img { display: block; height: 34px; width: auto; opacity: 0.7; transition: opacity 0.2s; }
.footer-logo:hover img { opacity: 1; }
.footer-logo:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
.footer-pages ul { list-style: none; }
.footer-pages a {
  display: flex; align-items: center; text-decoration: none; transition: color 0.2s;
  text-underline-offset: 3px; border-radius: 4px;
}
.footer-pages a:hover { color: var(--gold); text-decoration: underline; }
.footer-pages a:focus-visible { color: var(--gold); text-decoration: underline; outline: 2px solid var(--gold-light); outline-offset: 2px; }
.footer-top ul { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer-top a { font-size: 14px; font-weight: 500; color: var(--text); padding-block: 8px; }
.footer-catalog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
}
.footer-catalog a { font-size: 13px; line-height: 1.5; color: var(--footer-dim); padding-block: 5px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px;
  padding-top: 20px; border-top: 1px solid var(--border);
}
.footer-copy { font-size: 12px; color: var(--footer-dim); }
.footer-account { font-size: 12px; color: var(--footer-dim); text-decoration: none; text-underline-offset: 3px; border-radius: 4px; }
.footer-account:hover, .footer-account:focus-visible { color: var(--gold); text-decoration: underline; }
.footer-account:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.footer-link {
  font: inherit; font-size: 12px; color: var(--footer-dim, rgba(240,234,214,0.65)); background: none; border: 0; padding: 0;
  cursor: pointer; text-underline-offset: 3px; border-radius: 4px; transition: color 0.2s;
}
.footer-link:hover { color: var(--gold); text-decoration: underline; }
.footer-link:focus-visible { color: var(--gold); text-decoration: underline; outline: 2px solid var(--gold-light); outline-offset: 2px; }
.doc-links .footer-link { font-size: 14px; }
@media (max-width: 900px) {
  .footer-inner { padding: 0 24px; }
  .footer-top-row { flex-direction: column; align-items: flex-start; }
  .footer-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-pages a { min-height: 44px; }
  .footer-link { min-height: 44px; }
}
@media (max-width: 600px) {
  footer { padding: 32px 0; }
  .footer-inner { padding: 0 16px; }
}
@media (max-width: 380px) { .footer-catalog { grid-template-columns: 1fr; } }

/* ─── SCROLL ANIMATIONS ─── */
html.js .fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .fade-up.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .fade-up, html.js .fade-up.visible { opacity: 1; transform: none; transition: none; }
  .star { animation: none; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav:not(.footer-pages) { padding: 16px 24px; }
  .hero-content { grid-template-columns: 1fr; padding: 100px 24px 60px; gap: 48px; }
  .hero-visual { display: none; }
  .problem-grid, .app-preview-grid { grid-template-columns: 1fr; gap: 48px; }
  .phone-mockup { justify-content: center; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .locations-showcase { grid-template-columns: 1fr 1fr; height: auto; }
  .locations-showcase .loc-card:first-child { grid-column: 1 / -1; height: 200px; }
  .locations-showcase .loc-card:not(:first-child) { height: 160px; }
  .container { padding: 0 24px; }
  section { padding: 72px 0; }
}
@media (max-width: 600px) {
  nav:not(.footer-pages) { padding: 12px 16px; } /* after the 900px rule, which would win otherwise */
  .hero-content { padding: 84px 16px 32px; gap: 32px; }
  h1 { font-size: 40px; }
  .audience-page h1 { font-size: 36px; }
  .hero-eyebrow { margin-bottom: 12px; }
  .hero-subtitle { margin: 12px 0 16px; }
  .container { padding: 0 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .problem-stats { grid-template-columns: 1fr 1fr; }
  .hero-intention {
    grid-template-columns: 38px 1fr; gap: 12px;
    padding-left: 14px; margin-bottom: 28px;
  }
  .hero-intention-mark,
  .hero-intention-mark img { width: 38px; height: 38px; }
  .waitlist-form { flex-direction: column; gap: 12px; }
  .waitlist-form input { border-right: 1px solid var(--border); border-radius: 28px; }
  .waitlist-form button { border-radius: 28px; }
}

/* ─── I18N ─── */
[data-lang] { display: none; }
.lang-en [data-lang="en"] { display: block; }
.lang-ru [data-lang="ru"] { display: block; }
.lang-en [data-lang="en"].inline-el { display: inline; }
.lang-ru [data-lang="ru"].inline-el { display: inline; }

/* For elements that are always block but switch text */
span[data-lang] { display: none; }
.lang-en span[data-lang="en"] { display: inline; }
.lang-ru span[data-lang="ru"] { display: inline; }

/* ─── AUDIENCE PAGES (/teachers, /goa) ─── */
.audience-page h1 { font-size: clamp(36px, 4.6vw, 62px); line-height: 1.08; }
.audience-page .hero-subtitle { max-width: 500px; }
.aud-status {
  display: inline-flex; align-items: flex-start; gap: 10px;
  padding: 10px 16px; margin-bottom: 28px; max-width: 500px;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--card-bg); color: var(--text-dim);
  font-size: 13px; line-height: 1.5;
}
.aud-status::before {
  content: ''; flex-shrink: 0; width: 8px; height: 8px; margin-top: 6px;
  border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 4px rgba(58,191,176,0.18);
}
.aud-cta {
  display: inline-block; padding: 16px 34px;
  background: var(--gold); color: #060810; border-radius: 30px;
  font-size: 16px; font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none; transition: background 0.2s, transform 0.2s;
}
.aud-cta:hover { background: var(--gold-light); transform: translateY(-1px); }
.cta-pair { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.aud-cta-link {
  display: inline-block; padding: 14px 6px; font-size: 15px; font-weight: 500;
  color: var(--gold); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
  transition: color 0.2s;
}
.aud-cta-link:hover { color: var(--gold-light); }
.aud-cta-link:focus-visible, .aud-cta:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 8px; }
.aud-final--home { margin-top: 32px; }
.aud-cta-note { margin-top: 12px; font-size: 12px; color: var(--text-dim); letter-spacing: 0.02em; }
.aud-final { margin-top: 48px; }

.aud-visual { position: relative; display: flex; justify-content: center; }
.aud-card {
  width: min(400px, 100%); padding: 24px;
  background: rgba(10,14,30,0.85); border: 1px solid var(--border); border-radius: 24px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), inset 0 0 60px rgba(74,127,212,0.05);
}
.aud-card-head {
  font-family: 'Cormorant Garamond', serif; font-size: 24px; margin-bottom: 16px;
}
.aud-class {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.07);
}
.aud-class-time { width: 48px; font-size: 14px; font-weight: 500; color: var(--gold); }
.aud-class-body { flex: 1; min-width: 0; }
.aud-class-title { font-size: 15px; font-weight: 400; }
.aud-class-meta { font-size: 12px; color: var(--text-dim); }
.aud-class-seats {
  padding: 4px 10px; border-radius: 12px; font-size: 12px; white-space: nowrap;
  background: rgba(58,191,176,0.12); border: 1px solid rgba(58,191,176,0.3); color: var(--teal);
}
.aud-card-foot {
  margin-top: 6px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 13px; color: var(--text-dim);
}

.aud-shot-fig { margin: 0; width: min(300px, 100%); text-align: center; }
.aud-shot {
  display: block; width: 100%; height: auto; border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), inset 0 0 60px rgba(74,127,212,0.05);
}
.aud-shot-cap { margin-top: 12px; font-size: 13px; color: var(--text-dim); }
.aud-steps-section { background: var(--bg2); }
.aud-steps {
  list-style: none; counter-reset: step;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px;
}
.aud-steps li { counter-increment: step; padding-top: 20px; border-top: 1px solid var(--border); }
.aud-steps li::before {
  content: counter(step); display: block; margin-bottom: 12px;
  font-family: 'Cormorant Garamond', serif; font-size: 44px; line-height: 1; color: var(--gold);
}
.aud-steps h3 { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 400; margin-bottom: 8px; }
.aud-steps p { font-size: 14px; color: var(--text-dim); line-height: 1.7; }
.aud-why {
  margin-top: 56px; padding: 24px 28px; max-width: 760px;
  border-left: 2px solid var(--gold); background: var(--card-bg);
  font-size: 16px; color: var(--text-dim); line-height: 1.7;
}
.aud-why strong { color: var(--text); font-weight: 500; }
.aud-why a { color: var(--gold); }
.aud-why a:hover { color: var(--gold-light); }
.aud-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ─── FAQ ─── */
.faq-list { max-width: 760px; margin-top: 40px; }
.faq-item { border-top: 1px solid var(--border); padding: 18px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer; list-style: none; position: relative; padding-right: 28px;
  font-family: 'Cormorant Garamond', serif; font-size: 22px; line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 4px; top: 0; color: var(--gold); font-size: 24px; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin-top: 12px; font-size: 15px; color: var(--text-dim); line-height: 1.7; }

.aud-class-seats--full {
  background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); color: var(--text-dim);
}

@media (max-width: 900px) {
  .aud-steps { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
  .aud-grid-4 { grid-template-columns: 1fr 1fr; }
  .audience-page .hero { min-height: 0; }
}
@media (max-width: 600px) {
  .aud-cta { display: block; text-align: center; }
  .aud-status { padding: 8px 12px; margin-bottom: 16px; font-size: 12.5px; line-height: 1.45; }
  .cta-pair { flex-direction: column; align-items: stretch; gap: 4px; }
  .aud-cta-link { text-align: center; }
  .aud-grid-4 { grid-template-columns: 1fr; }
  .aud-card { padding: 18px; }
}

/* ─── HOME: quiet links under the hero actions ─── */
.hero-more { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 12px 0 28px; font-size: 14px; }
.hero-more a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 4px; padding: 12px 0; }
.hero-more a:hover { color: var(--gold); }
.hero-more a:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; border-radius: 4px; }
.phone-card { width: 100%; border: none; border-radius: 0; }

/* Длинное слово в карточке статистики не должно растягивать сетку шире экрана. */
.problem-grid > *, .problem-stats > * { min-width: 0; }
.stat-desc { overflow-wrap: break-word; hyphens: auto; }

/* ─── YOGA STYLE PAGES (/yoga, /yoga/<style>) ─── */
.style-body { padding: 72px 0 24px; }
.style-prose { max-width: 760px; }
.style-prose h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(28px, 3.4vw, 40px); font-weight: 400; line-height: 1.15; margin: 44px 0 14px; }
.style-prose h2:first-child { margin-top: 0; }
.style-prose p { font-size: 16px; color: var(--text-dim); line-height: 1.8; margin-bottom: 14px; }
.style-related { font-size: 14px; }
.style-prose a, .style-more, .hero-eyebrow a { color: var(--gold); }
.style-prose a:hover, .style-more:hover, .hero-eyebrow a:hover { color: var(--gold-light); }
.style-card-name { font-family: 'Cormorant Garamond', serif; font-size: 28px; margin: 6px 0 8px; }
.style-card-text { font-size: 14px; color: var(--text-dim); line-height: 1.7; }
.style-grid .feature-card h3 a { color: inherit; }
.style-body + .features-section { padding-top: 24px; }
@media (max-width: 768px) { .style-body { padding-top: 48px; } }

/* Mermaid-схемы (SVG собраны заранее, см. docs/ai/README.md). */
.style-diagram { max-width: 760px; margin: 40px 0 8px; padding: 20px; border: 1px solid var(--gold-dim); border-radius: 14px; background: var(--bg2); }
.style-diagram h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(24px, 3vw, 32px); font-weight: 400; margin: 0 0 14px; }
.style-diagram img { display: block; width: 100%; height: auto; max-height: 360px; }
.style-diagram figcaption { margin-top: 14px; font-size: 14px; color: var(--text-dim); line-height: 1.7; }
.style-diagram figcaption ol, .style-diagram figcaption ul { padding-left: 20px; }
.style-diagram figcaption p { margin: 0 0 6px; }

.aud-cta-note a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.aud-cta-note a:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
#faq { scroll-margin-top: 88px; }

/* Closing line of a style page and fact card of a place page */
.style-prose p.style-closing { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.07); font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--text); line-height: 1.5; }
.place-fact { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.07); }
.place-fact-key { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.place-fact-value { font-size: 15px; color: var(--text); line-height: 1.5; }

/* Guides: "in short" list in the hero card and bullet lists in the text */
.gloss-list { max-width: 760px; margin: 0 0 8px; }
.gloss-item { padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.07); }
.gloss-item dt { font-family: 'Cormorant Garamond', serif; font-size: 26px; color: var(--text); line-height: 1.2; margin-bottom: 6px; }
.gloss-item dt a { color: inherit; }
.gloss-item dd { margin: 0; font-size: 16px; color: var(--text-dim); line-height: 1.7; }
.gloss-item dd a { color: var(--gold); }
.gloss-item dd a:hover { color: var(--gold-light); }
.guide-short { list-style: none; margin: 0; padding: 0; }
.guide-short li { padding: 10px 0 10px 22px; border-top: 1px solid rgba(255,255,255,0.07); font-size: 15px; line-height: 1.5; position: relative; }
.guide-short li::before { content: '\2726'; position: absolute; left: 0; color: var(--gold); font-size: 12px; top: 13px; }
.style-prose ul { margin: 0 0 14px 20px; color: var(--text-dim); line-height: 1.8; font-size: 16px; }
.asana-photo-slot[hidden] { display: none; }
.asana-look { padding-left: 20px; }
.asana-diagram img { width: auto; max-width: 100%; max-height: 460px; margin: 0 auto; }

/* Other-language bar (site.js): under the header, below the cookie banner's layer. */
.lang-banner {
  position: fixed; top: 92px; left: 16px; right: 16px; z-index: 90;
  max-width: 560px; margin: 0 auto; padding: 8px 8px 8px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg3); border: 1px solid var(--border); border-radius: 999px;
  font-size: 14px; line-height: 1.4; color: var(--text);
}
.lang-banner a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.lang-banner-close {
  flex: 0 0 auto; width: 32px; height: 32px; padding: 0; font: inherit; font-size: 20px; line-height: 1;
  color: var(--text-dim); background: transparent; border: 0; border-radius: 50%; cursor: pointer;
}
.lang-banner-close:hover { color: var(--gold-light); }
.lang-banner-close:focus-visible, .lang-banner a:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
@media (max-width: 600px) { .lang-banner { top: 76px; font-size: 13px; border-radius: 16px; } }

/* Cookie consent banner (analytics.js) */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
  max-width: 760px; margin: 0 auto; padding: 16px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  background: var(--bg3); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45); font-size: 14px; line-height: 1.5;
}
.cookie-banner p { flex: 1 1 320px; margin: 0; color: var(--text); }
.cookie-banner a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner-btn {
  min-width: 150px; padding: 10px 18px; font: inherit; font-weight: 500; cursor: pointer;
  color: var(--gold); background: transparent; border: 1px solid var(--gold); border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.cookie-banner-btn:hover { background: var(--gold-dim); color: var(--gold-light); }
.cookie-banner-btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
@media (max-width: 600px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 12px; gap: 8px 12px; font-size: 13px; line-height: 1.4; }
  .cookie-banner p { flex-basis: 100%; }
  .cookie-banner-actions { flex-wrap: nowrap; width: 100%; gap: 8px; }
  .cookie-banner-btn { min-width: 0; flex: 1; padding: 8px 10px; font-size: 13px; }
}

/* Кабинет (/account*): общий блок для страниц входа, обзора, оплаты и истории. */
.account-page { min-height: 100vh; display: flex; justify-content: center; padding: 32px 16px 64px; }
.account-column { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 20px; }
.account-brand { color: var(--gold); font-family: 'Cormorant Garamond', serif; font-size: 28px; letter-spacing: 0.2em; text-decoration: none; }
.account-lang { display: flex; gap: 8px; }
.account-lang-btn { background: none; border: 1px solid var(--border); border-radius: 999px; color: var(--text-dim); cursor: pointer; font: inherit; padding: 4px 14px; }
.account-lang-btn:hover { color: var(--gold-light); border-color: var(--gold); }
.account-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.account-card h1 { font-family: 'Cormorant Garamond', serif; font-size: 34px; font-weight: 400; line-height: 1.15; }
.account-card h2 { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 400; }
.account-note { color: var(--text-dim); font-size: 14px; }
.account-status { color: var(--text); }
.account-error { color: #E58B8B; font-size: 14px; }
.account-label { color: var(--text-dim); font-size: 14px; }
.account-input { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font: inherit; padding: 12px 14px; width: 100%; }
.account-input:focus { border-color: var(--gold); outline: none; }
.account-input[aria-invalid="true"] { border-color: #E58B8B; }
.account-btn { background: var(--gold); border: 1px solid var(--gold); border-radius: 999px; color: var(--bg); cursor: pointer; display: inline-block; font: inherit; font-weight: 500; padding: 13px 28px; text-align: center; text-decoration: none; }
.account-btn:hover { background: var(--gold-light); }
.account-btn:disabled { cursor: default; opacity: 0.5; }
.account-btn-quiet { background: none; color: var(--gold); }
.account-btn-quiet:hover { background: var(--gold-dim); }
.account-list { display: flex; flex-direction: column; gap: 14px; list-style: none; margin: 0; padding: 0; }
.account-page [hidden] { display: none !important; }

/* ─── TEACHER CARD (/t/<nick>, share/templates/teacher.html) ─── */
.teacher-card { padding: 120px 0 80px; }
.teacher-card-inner { max-width: 760px; }
.teacher-card-head { display: flex; align-items: center; gap: 24px; }
.teacher-card-avatar { flex: 0 0 auto; width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.teacher-card-initials {
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-dim); color: var(--gold); font-size: 40px; font-weight: 400;
}
.teacher-card-id { min-width: 0; }
.teacher-card-name { font-family: 'Cormorant Garamond', serif; font-size: clamp(30px, 6vw, 44px); font-weight: 400; line-height: 1.15; overflow-wrap: anywhere; }
.teacher-card-facts, .teacher-card-rating { color: var(--text-dim); margin-top: 6px; }
.teacher-card-rating-value { color: var(--gold); font-weight: 500; }
.teacher-card-badges, .teacher-card-styles { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 14px 0 0; padding: 0; }
.teacher-card-badge, .teacher-card-styles li {
  padding: 4px 12px; border-radius: 14px; font-size: 13px;
  background: var(--card-bg); border: 1px solid var(--border); color: var(--text);
}
.teacher-card-badge { color: var(--gold); }
.teacher-card-section { padding: 0; margin-top: 40px; }
.teacher-card-section h2 { font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); font-weight: 400; margin-bottom: 14px; }
.teacher-card-bio { overflow-wrap: anywhere; }
.teacher-card-classes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.teacher-card-class { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--card-bg); }
.teacher-card-class time { color: var(--gold); font-size: 14px; }
.teacher-card-class-title { overflow-wrap: anywhere; }
.teacher-card-class-meta { color: var(--text-dim); font-size: 13px; }
.teacher-card-actions, .teacher-card-stores, .teacher-card-class-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.teacher-card-actions { margin-top: 28px; }
.teacher-card-stores { margin-top: 12px; }
.teacher-card-hint, .teacher-card-empty { color: var(--text-dim); font-size: 14px; margin-top: 10px; }
.teacher-card-class-actions { margin-top: 10px; }
.teacher-btn { display: inline-block; padding: 12px 24px; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold); text-decoration: none; font-size: 15px; }
.teacher-btn:hover { color: var(--gold-light); }
.teacher-btn-main { background: var(--gold); color: #060810; }
.teacher-btn-main:hover { color: #060810; }
.teacher-btn-quiet { border-color: var(--border); color: var(--text); }
.teacher-btn-small { padding: 8px 18px; font-size: 14px; }
.teacher-card [hidden] { display: none !important; }
@media (max-width: 600px) {
  .teacher-card { padding-top: 100px; }
  .teacher-card-head { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ─── SKIP LINK ─── off-screen until focused by keyboard (D-2624) */
.skip-link {
  position: absolute; top: 0; left: -9999px; z-index: 1000;
  padding: 9px 22px; background: var(--gold); color: #060810;
  border-radius: 0 0 16px 0; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  text-decoration: none;
}
.skip-link:focus-visible { left: 0; outline: 2px solid var(--gold-light); outline-offset: 2px; }

/* Schedule mockups are samples: the badge is the first line of the card, so it cannot cover the text. */
.mock-badge {
  display: inline-block; margin-bottom: 8px;
  padding: 2px 8px; border-radius: 10px; font-size: 10px; line-height: 1.4; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(201,168,76,0.4);
}

.crumbs { font-size: 13px; color: var(--text-dim); margin-bottom: 16px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: '\203A'; margin-right: 8px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current] { overflow-wrap: anywhere; }
