@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Manrope:wght@400;500;600&display=swap");

:root {
  --night: #070b14;
  --night-2: #0d1422;
  --cream: #f3ede2;
  --cream-dim: #c9c0b2;
  --copper: #b87333;
  --copper-hot: #d4a05a;
  --line: rgba(243, 237, 226, 0.12);
  --glow: rgba(184, 115, 51, 0.35);
  --err: #e08a7a;
  --ok: #7db88a;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font: 400 1.05rem/1.65 Manrope, "Segoe UI", sans-serif;
  /* Light side fields like Cafe Astrology / Astro-Seek — content column stands out */
  background: #d9d6cf;
}

a {
  color: var(--copper-hot);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--cream); }

.shell {
  position: relative;
  z-index: 1;
  /* Wider column — gray side fields roughly half of before */
  width: min(1200px, calc(100% - 1.75rem));
  margin: 0 auto;
  padding: 0.5rem 1.4rem 1.5rem;
  overflow: clip;
  /* Deep black cosmos — matches illustration blacks; width/gutters unchanged */
  background: #05060a;
  border-left: 1px solid rgba(212, 160, 90, 0.14);
  border-right: 1px solid rgba(212, 160, 90, 0.14);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 18px 70px rgba(0, 0, 0, 0.35);
}

/*
  One continuous cosmos plate (atmosphere only — no baked UI).
  Mandala / essay scenes stay as separate HTML images on top.
*/
.atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #05060a;
  background-image:
    radial-gradient(ellipse 90% 28% at 50% 0%, rgba(8, 12, 22, 0.55), transparent 70%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(5, 6, 10, 0.5), transparent 72%),
    /* Soft mid veils hide any plate stretch artifacts — no repeat-y tile seam */
    radial-gradient(ellipse 95% 22% at 50% 38%, rgba(5, 6, 10, 0.28), transparent 72%),
    radial-gradient(ellipse 90% 20% at 50% 62%, rgba(12, 16, 28, 0.22), transparent 70%),
    url("/assets/bg_cosmos_seamless.jpg?v=cosmos1");
  background-repeat: no-repeat;
  background-position: center top, center bottom, center 38%, center 62%, center top;
  background-size: 100% auto, 100% auto, 100% 40%, 100% 36%, 100% 100%;
}

.atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
  background-image:
    radial-gradient(1px 1px at 6% 8%, rgba(255, 245, 220, 0.95), transparent),
    radial-gradient(1.5px 1.5px at 14% 22%, rgba(255, 230, 180, 0.75), transparent),
    radial-gradient(1px 1px at 28% 12%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 42% 30%, rgba(255, 220, 160, 0.8), transparent),
    radial-gradient(1px 1px at 55% 6%, rgba(255, 245, 220, 0.85), transparent),
    radial-gradient(2px 2px at 68% 18%, rgba(255, 210, 140, 0.7), transparent),
    radial-gradient(1px 1px at 82% 10%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1.5px 1.5px at 92% 26%, rgba(255, 230, 180, 0.75), transparent),
    radial-gradient(1px 1px at 10% 48%, rgba(255, 245, 220, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 24% 58%, rgba(255, 220, 160, 0.7), transparent),
    radial-gradient(1px 1px at 38% 44%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(2px 2px at 52% 62%, rgba(255, 210, 140, 0.65), transparent),
    radial-gradient(1px 1px at 66% 50%, rgba(255, 245, 220, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 78% 66%, rgba(255, 230, 180, 0.7), transparent),
    radial-gradient(1px 1px at 90% 54%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 8% 78%, rgba(255, 245, 220, 0.75), transparent),
    radial-gradient(1.5px 1.5px at 20% 88%, rgba(255, 220, 160, 0.7), transparent),
    radial-gradient(1px 1px at 36% 82%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(2px 2px at 50% 92%, rgba(255, 210, 140, 0.65), transparent),
    radial-gradient(1px 1px at 64% 76%, rgba(255, 245, 220, 0.75), transparent),
    radial-gradient(1.5px 1.5px at 80% 86%, rgba(255, 230, 180, 0.7), transparent),
    radial-gradient(1px 1px at 94% 94%, rgba(255, 255, 255, 0.55), transparent);
  background-size: 100% 900px;
  background-repeat: repeat-y;
  animation: star-twinkle 7s ease-in-out infinite alternate;
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 18% at 62% 22%, rgba(255, 200, 120, 0.28), transparent 70%),
    radial-gradient(ellipse 55% 16% at 28% 48%, rgba(255, 180, 100, 0.24), transparent 70%),
    radial-gradient(ellipse 58% 17% at 70% 68%, rgba(210, 160, 255, 0.18), transparent 70%),
    radial-gradient(ellipse 50% 15% at 35% 88%, rgba(255, 190, 110, 0.22), transparent 70%);
  animation: glow-drift 16s ease-in-out infinite alternate;
}

@keyframes star-twinkle {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

@keyframes glow-drift {
  from { opacity: 0.55; transform: translateY(0); }
  to { opacity: 1; transform: translateY(-18px); }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere::before,
  .atmosphere::after {
    animation: none;
  }
}

.shell > *:not(.atmosphere) {
  position: relative;
  z-index: 1;
}

/* —— full-bleed header, taller; center band = site width —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  min-height: 6.7rem;
  padding: 1.35rem clamp(0.9rem, 2.5vw, 1.75rem);
  border-bottom: 1px solid rgba(212, 160, 90, 0.22);
  background:
    linear-gradient(180deg, rgba(10, 14, 26, 0.97), rgba(12, 18, 32, 0.92));
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.28);
}

.header-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem 1rem;
  width: 100%;
  min-height: 3.8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  justify-self: start;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(212, 160, 90, 0.45);
}

.brand span {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: linear-gradient(180deg, #fff4d0 0%, #f0c778 42%, #c9923f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(240, 199, 120, 0.55));
}

.brand-compact img {
  width: 34px;
  height: 34px;
}

.brand-compact span { font-size: 1.15rem; }

/* Nav + lang over the content column — compact group */
.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.15rem;
  min-width: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.7rem 2.4rem;
  white-space: nowrap;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.36rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  width: 14.5rem;
  flex: 0 0 14.5rem;
}

.search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-size: 0.86rem;
  outline: none;
}

.search input::placeholder { color: var(--cream-dim); }

.search-drop {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  left: auto;
  z-index: 60;
  width: min(22rem, 78vw);
  max-height: min(22rem, 60vh);
  overflow: auto;
  margin: 0;
  padding: 0.35rem;
  border: 1px solid rgba(212, 160, 90, 0.35);
  border-radius: 0.75rem;
  background: rgba(10, 14, 26, 0.98);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
}

.search-empty {
  margin: 0;
  padding: 0.7rem 0.8rem;
  color: var(--cream-dim);
  font-size: 0.88rem;
}

.search-hit {
  display: grid;
  gap: 0.15rem;
  width: 100%;
  text-align: left;
  font: inherit;
  color: var(--cream);
  background: transparent;
  border: 0;
  border-radius: 0.45rem;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  box-shadow: none;
}

.search-hit:hover,
.search-hit.is-active {
  background: rgba(212, 160, 90, 0.12);
  filter: none;
}

.search-hit-cat {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--copper-hot);
}

.search-hit-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cream);
}

.search-hit-snip {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--cream-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nav-link {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--cream);
  border-bottom-color: rgba(212, 160, 90, 0.45);
}

.lang-dropdown {
  position: relative;
  flex: 0 0 auto;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cream);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(212, 160, 90, 0.35);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}

.lang-toggle:hover {
  border-color: var(--copper-hot);
}

.lang-caret {
  font-size: 0.7rem;
  opacity: 0.75;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 50;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  min-width: 7.8rem;
  border: 1px solid rgba(212, 160, 90, 0.35);
  border-radius: 0.7rem;
  background: rgba(10, 14, 26, 0.97);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.lang-menu li { margin: 0; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cream-dim);
  background: transparent;
  border: 0;
  border-radius: 0.45rem;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  text-align: left;
}

.lang-option:hover {
  color: var(--cream);
  background: rgba(212, 160, 90, 0.12);
}

.lang-option.is-active {
  color: var(--night);
  background: linear-gradient(180deg, var(--copper-hot), var(--copper));
}

/* CSS flags — no emoji double-text on Windows */
.flag {
  display: inline-block;
  width: 1.2rem;
  height: 0.85rem;
  border-radius: 2px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
  background-size: cover;
  background-position: center;
}

.flag-ru {
  background: linear-gradient(
    to bottom,
    #ffffff 0 33.33%,
    #0039a6 33.33% 66.66%,
    #d52b1e 66.66% 100%
  );
}

.flag-gb {
  background-color: #012169;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 36'%3E%3Crect width='60' height='36' fill='%23012169'/%3E%3Cpath d='M0 0 L60 36 M60 0 L0 36' stroke='%23fff' stroke-width='7.2'/%3E%3Cpath d='M0 0 L60 36 M60 0 L0 36' stroke='%23C8102E' stroke-width='2.4'/%3E%3Cpath d='M30 0 V36 M0 18 H60' stroke='%23fff' stroke-width='12'/%3E%3Cpath d='M30 0 V36 M0 18 H60' stroke='%23C8102E' stroke-width='7.2'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.flag-es {
  background: linear-gradient(
    to bottom,
    #aa151b 0 25%,
    #f1bf00 25% 75%,
    #aa151b 75% 100%
  );
}

.auth-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  justify-self: end;
}

.btn-login,
.btn-register {
  font: inherit;
  font-size: 0.88rem;
  border: 1px solid rgba(212, 160, 90, 0.45);
  background: transparent;
  color: var(--cream);
  padding: 0.48rem 0.9rem;
  cursor: pointer;
  border-radius: 999px;
  white-space: nowrap;
}

.btn-login:hover,
.btn-register:hover {
  border-color: var(--copper-hot);
  color: var(--copper-hot);
}

.btn-register {
  background: linear-gradient(180deg, rgba(212, 160, 90, 0.28), rgba(184, 115, 51, 0.18));
  color: #f7ecd8;
}

.account-dropdown {
  position: relative;
}

.account-toggle {
  display: inline-flex;
  align-items: center;
  max-width: 14rem;
  gap: 0.35rem;
}

.account-toggle #account-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 50;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  min-width: 8.5rem;
  border: 1px solid rgba(212, 160, 90, 0.35);
  border-radius: 0.7rem;
  background: rgba(10, 14, 26, 0.97);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.account-menu li { margin: 0; }

.account-menu-item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--cream-dim);
  background: transparent;
  border: 0;
  border-radius: 0.45rem;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}

.account-menu-item:hover {
  color: var(--cream);
  background: rgba(212, 160, 90, 0.12);
}

/* —— hero —— */
.hero {
  text-align: center;
  padding: 0.75rem 0 0.25rem;
  max-width: 100%;
  margin: 0 auto;
}

.hero-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0 0 0.55rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.6rem, 5.5vw, 3.8rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

.hero-brand::before {
  content: none;
  display: none;
}

.hero-star {
  position: relative;
  z-index: 1;
  width: 0.92em;
  height: 0.92em;
  object-fit: contain;
  background: transparent;
  /* Original metallic star with transparent bg (PNG) */
  mix-blend-mode: normal;
  filter: drop-shadow(0 0 10px rgba(240, 199, 120, 0.55));
}

.hero-brand span {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #fff8e0 0%, #ffe2a0 28%, #f0c778 55%, #d4a05a 82%, #b87333 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0 10px rgba(255, 230, 160, 0.55))
    drop-shadow(0 0 22px rgba(212, 160, 90, 0.55))
    drop-shadow(0 0 44px rgba(184, 115, 51, 0.4));
}

.hero h1 {
  margin: 0 0 0.55rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.25;
  background: linear-gradient(180deg, #f6e2b0 0%, #e0b15a 55%, #c4893a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(184, 115, 51, 0.35));
}

.hero .lead {
  margin: 0 auto;
  max-width: min(46rem, 100%);
  color: #d2c6b4;
  font-size: 1.02rem;
}

.hero-bridge {
  margin: 0.55rem auto 0;
  /* ~1.5cm inset each side from column edges */
  max-width: calc(100% - 3cm);
  color: #d5c9b8;
  font-size: 1.02rem;
  line-height: 1.55;
  text-align: left;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

.cta {
  display: inline-block;
  font: inherit;
  font-weight: 500;
  color: var(--night);
  background: linear-gradient(180deg, var(--copper-hot), var(--copper));
  border: 0;
  padding: 0.85rem 1.45rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 28px var(--glow);
  white-space: nowrap;
}

.cta:hover {
  color: var(--night);
  filter: brightness(1.06);
}

/* —— knowledge orbs (circle around mandala) —— */
.knowledge {
  position: relative;
  padding: 0;
  margin-top: -0.15rem;
}

.knowledge-title {
  margin: 0.35rem 0 1rem;
  padding-left: 0.15rem;
  text-align: left;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #f5d58e;
  text-shadow:
    0 2px 14px rgba(0, 0, 0, 0.9),
    0 0 22px rgba(0, 0, 0, 0.65);
}

.orb-sky {
  /* Ellipse kept; equal gaps from JS. Radii +~0.5–0.7cm → wider gaps / farther from center */
  --rx: min(378px, 39vw);
  --ry: min(218px, 23vw);
  position: relative;
  width: min(980px, 100%);
  margin: 0 auto;
  height: calc(var(--ry) * 2 + 220px);
}

.orb-mandala {
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(560px, calc(var(--rx) * 2.05));
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.orb-mandala img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  -webkit-mask-image: radial-gradient(ellipse 68% 58% at 50% 48%, #000 38%, transparent 72%);
  mask-image: radial-gradient(ellipse 68% 58% at 50% 48%, #000 38%, transparent 72%);
  filter: drop-shadow(0 0 28px rgba(212, 160, 90, 0.35));
}

.orb-ring {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Nudge icons ~0.5cm up; mandala stays put */
  transform: translateY(-0.5cm);
}

.orb {
  /* --ang set by home.js for equal chord gaps on the ellipse */
  --ang: calc(var(--i) * 30deg - 90deg);
  position: absolute;
  left: calc(50% + var(--rx) * cos(var(--ang)));
  top: calc(50% + var(--ry) * sin(var(--ang)));
  width: 104px;
  margin: 0;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transform: translate(-50%, -52px);
  transition: transform 0.28s ease, opacity 0.2s ease, filter 0.2s ease;
  z-index: 1;
}

.orb.is-dim { opacity: 0.28; filter: grayscale(0.4); }

.orb.is-hit,
.orb:hover {
  z-index: 3;
  transform: translate(-50%, -52px) scale(1.12);
}

.orb-face {
  width: 104px;
  height: 104px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(212, 160, 90, 0.55);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(184, 115, 51, 0.32);
  background: #0a0a0a;
}

.orb-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* Fill the orb hole — source art often has dark padding around subject */
  transform: scale(1.72);
}

.orb span {
  display: block;
  margin-top: 0.35rem;
  max-width: 104px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.7rem;
  line-height: 1.15;
  color: var(--cream-dim);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

.orb:hover span { color: var(--cream); }

@media (max-width: 640px) {
  .orb-sky {
    --rx: 0;
    --ry: 0;
    height: auto;
    padding: 0.5rem 0 1.2rem;
  }
  .orb-mandala {
    display: none;
  }
  .orb-ring {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem 1rem;
    inset: auto;
  }
  .orb {
    position: relative;
    left: auto;
    top: auto;
    margin: 0;
    transform: none;
    width: 96px;
  }
  .orb.is-hit,
  .orb:hover {
    transform: scale(1.1);
  }
  .orb-face { width: 96px; height: 96px; }
  .orb span { max-width: 96px; }
}

/* —— zigzag: larger scenes sitting in living cosmos —— */
.essay {
  display: grid;
  gap: 0;
  padding: 0;
  position: relative;
}

.band {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr);
  gap: clamp(0.75rem, 2vw, 1.5rem);
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0.2rem 0;
  position: relative;
}

.band.shift {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
}

.band.shift .band-visual-wrap {
  order: -1;
}

.band-copy {
  position: relative;
  z-index: 2;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 0 18px rgba(0, 0, 0, 0.85),
    0 0 36px rgba(0, 0, 0, 0.55);
}

.band h2 {
  margin: 0 0 0.55rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  font-weight: 600;
  line-height: 1.2;
  color: #f5d58e;
  background: none;
  -webkit-text-fill-color: unset;
  text-shadow:
    0 2px 14px rgba(0, 0, 0, 0.9),
    0 0 22px rgba(0, 0, 0, 0.65);
  filter: none;
}

.band p {
  margin: 0 0 0.65rem;
  color: #ddd3c4;
  font-size: 0.98rem;
  line-height: 1.55;
}

.band p:last-child { margin-bottom: 0; }
.band strong { color: #f3ede2; font-weight: 600; }

.band-visual-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.band-visual-wrap::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(255, 220, 150, 0.32), rgba(184, 115, 51, 0.12) 42%, transparent 72%);
  animation: scene-halo 8s ease-in-out infinite alternate;
}

/* No extra halo ring on person scene — PNG already glows (avoids double circle) */
.glow-key::before {
  content: none;
  display: none;
  animation: none;
}

.band-visual-wrap.is-galaxy::after {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(255, 220, 150, 0.34), rgba(184, 115, 51, 0.14) 42%, transparent 70%);
  animation: galaxy-glow 7s ease-in-out infinite;
}

.band-visual {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 32%, rgba(0, 0, 0, 0.75) 48%, rgba(0, 0, 0, 0.3) 62%, transparent 76%);
  mask-image: radial-gradient(circle at 50% 50%, #000 32%, rgba(0, 0, 0, 0.75) 48%, rgba(0, 0, 0, 0.3) 62%, transparent 76%);
  mix-blend-mode: lighten;
}

/* Person + tuning fork: soft feather + soft ring veil (no solid rect fill) */
.glow-key {
  position: relative;
}

.glow-key .band-visual {
  /* Cut away the JPG’s own star-square; keep only person + glow */
  mix-blend-mode: screen;
  transform: scale(1.2);
  -webkit-mask-image: radial-gradient(
    ellipse 42% 40% at 52% 45%,
    #000 0%,
    #000 22%,
    rgba(0, 0, 0, 0.55) 40%,
    rgba(0, 0, 0, 0.18) 52%,
    transparent 66%
  );
  mask-image: radial-gradient(
    ellipse 42% 40% at 52% 45%,
    #000 0%,
    #000 22%,
    rgba(0, 0, 0, 0.55) 40%,
    rgba(0, 0, 0, 0.18) 52%,
    transparent 66%
  );
}

.glow-key::after {
  content: none;
  display: none;
}

/* Pull galaxy / “Зачем…” block up into the gap under the person band */
#philosophy {
  padding-bottom: 0;
  align-items: start;
}

#philosophy .glow-key {
  /* ~1–1.5cm larger diameter than the shrunk 260px */
  max-width: 315px;
  margin-top: 0;
  margin-bottom: 0;
}

#philosophy + .band {
  /* Neutral — previous -2cm still overlapped; down another ~2cm */
  margin-top: 0;
  padding-top: 0;
  align-items: start;
}

#philosophy + .band .band-visual-wrap {
  max-width: 340px;
  margin-top: 0;
}

@media (max-width: 720px) {
  #philosophy + .band {
    margin-top: 0.5rem;
  }

  #philosophy .glow-key {
    max-width: 280px;
    margin-bottom: 0;
  }
}

.band-visual.is-galaxy {
  transform: scale(1.08);
  animation: galaxy-spin 64s linear infinite;
}

@keyframes galaxy-spin {
  from { transform: scale(1.08) rotate(0deg); }
  to { transform: scale(1.08) rotate(360deg); }
}

@keyframes galaxy-glow {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes scene-halo {
  from { opacity: 0.55; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .band-visual.is-galaxy,
  .band-visual-wrap.is-galaxy::after,
  .band-visual-wrap::before {
    animation: none;
  }
}

@media (max-width: 720px) {
  /* Full-bleed column on phone — drop desktop side rails */
  .shell {
    width: 100%;
    margin: 0;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }

  .hero .lead,
  .hero-bridge {
    max-width: 100%;
  }

  .hero-bridge {
    margin-top: 0.7rem;
  }

  .knowledge {
    margin-top: 1.15rem;
  }

  .knowledge-title {
    margin: 0 0 0.75rem;
  }

  .band,
  .band.shift {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .band.shift .band-visual-wrap {
    order: 0;
  }

  .band-visual-wrap {
    max-width: min(320px, 88vw);
  }

  .band-copy {
    max-width: 100%;
  }

  .profile {
    max-width: 100%;
  }

  .trial-teaser p,
  .trial-offer {
    max-width: 100%;
  }
}

/* —— profile form —— */
.profile {
  margin: 0 auto;
  padding: 0.85rem 0 1.5rem;
  max-width: 720px;
  text-align: center;
}

.profile h2 {
  margin: 0 0 0.5rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.85rem;
  font-weight: 600;
  color: #f5d58e;
  text-shadow:
    0 2px 14px rgba(0, 0, 0, 0.9),
    0 0 22px rgba(0, 0, 0, 0.65);
}

.profile .hint {
  margin: 0 0 1.4rem;
  color: var(--cream-dim);
  font-size: 0.95rem;
}

.birth-form {
  display: grid;
  gap: 0.95rem;
  text-align: left;
  padding: 1.35rem 1.25rem 1.45rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.birth-form .row {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .birth-form .row {
    grid-template-columns: 1fr 1fr;
  }
}

.birth-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--cream-dim);
}

.birth-form input[type="text"],
.birth-form input[type="date"],
.birth-form input[type="time"],
.birth-form input[type="email"],
.birth-form input[type="password"] {
  width: 100%;
  font: inherit;
  color: var(--cream);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  padding: 0.7rem 0.75rem;
}

.birth-form input:focus {
  outline: 1px solid rgba(212, 160, 90, 0.55);
  border-color: rgba(212, 160, 90, 0.55);
}

.birth-form input:disabled {
  opacity: 0.45;
}

.check {
  display: flex !important;
  align-items: flex-start;
  gap: 0.6rem;
  grid-template-columns: none !important;
  cursor: pointer;
}

.check input {
  width: auto;
  margin-top: 0.2rem;
  accent-color: var(--copper);
}

.birth-form .cta {
  justify-self: start;
  margin-top: 0.25rem;
}

.form-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--cream-dim);
}

.error { color: var(--err); margin: 0; }
.ok { color: var(--ok); margin: 0; }

.login-panel {
  margin-top: 1rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 0.8rem;
  text-align: left;
}

.login-panel h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
}

.login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.ghost {
  font: inherit;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream-dim);
  padding: 0.55rem 0.9rem;
  cursor: pointer;
}

.ghost:hover { color: var(--cream); border-color: var(--cream-dim); }

/* —— guest natal preview on homepage —— */
.preview-result {
  margin-top: 2rem;
  text-align: left;
  padding: 1.4rem 1.25rem 1.5rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.preview-result h2 {
  margin: 0 0 0.45rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 600;
  text-align: center;
}

.preview-result .hint {
  text-align: center;
  margin-bottom: 1.1rem;
}

.preview-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font: 0.98rem/1.65 Manrope, "Segoe UI", sans-serif;
  color: var(--cream-dim);
  max-height: min(70vh, 880px);
  overflow: auto;
  padding-right: 0.35rem;
}

.trial-teaser {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.trial-teaser h3 {
  margin: 0 0 0.5rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--cream);
}

.trial-teaser p {
  margin: 0 auto 1rem;
  max-width: 36rem;
  color: var(--cream-dim);
  font-size: 0.95rem;
}

.trial-offer {
  margin: 0 auto 1rem;
  padding-left: 1.2rem;
  max-width: 36rem;
  text-align: left;
  display: grid;
  gap: 0.45rem;
  color: var(--cream-dim);
  font-size: 0.95rem;
}

.trial-price {
  margin: 0 auto 1.15rem !important;
  color: var(--copper-hot) !important;
}

.trial-teaser .cta {
  display: inline-flex;
}

/* —— full-bleed footer, taller than header; content on site column —— */
.site-footer {
  width: 100%;
  margin: 0;
  min-height: 7.6rem;
  padding: 1.7rem clamp(0.9rem, 2.5vw, 1.75rem);
  border-top: 1px solid rgba(212, 160, 90, 0.28);
  background:
    linear-gradient(180deg, rgba(16, 22, 38, 0.9), rgba(8, 12, 22, 0.97)),
    radial-gradient(ellipse 70% 120% at 50% 0%, rgba(212, 160, 90, 0.12), transparent 65%);
}

.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem 1.5rem;
  width: min(1200px, calc(100% - 1.75rem));
  margin: 0 auto;
  min-height: 4rem;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 1.6rem 2.6rem;
  justify-self: center;
  font-size: 0.95rem;
  white-space: nowrap;
}

.footer-nav a {
  color: var(--cream-dim);
  text-decoration: none;
}

.footer-nav a:hover { color: var(--copper-hot); }

.footer-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  justify-self: end;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 160, 90, 0.35);
  color: var(--cream-dim);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
}

.social-link:hover {
  color: var(--copper-hot);
  border-color: var(--copper-hot);
}

.footer-copy {
  margin: 0;
  color: rgba(201, 192, 178, 0.7);
  font-size: 0.82rem;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .header-main {
    grid-template-columns: auto 1fr auto;
  }
  .header-center {
    overflow-x: auto;
  }
}

.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(212, 160, 90, 0.35);
  border-radius: 0.55rem;
  background: rgba(0, 0, 0, 0.28);
  color: var(--cream);
  cursor: pointer;
}

.nav-burger-lines {
  display: block;
  width: 1.05rem;
  height: 0.1rem;
  background: currentColor;
  box-shadow: 0 -0.28rem 0 currentColor, 0 0.28rem 0 currentColor;
}

.nav-burger:hover {
  border-color: var(--copper-hot);
  color: var(--copper-hot);
}

.nav-burger[aria-expanded="true"] {
  border-color: var(--copper-hot);
  color: var(--copper-hot);
}

.header-search {
  display: none;
}

.search-lens {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(212, 160, 90, 0.4);
  border-radius: 999px;
  background: transparent;
  color: rgba(243, 237, 226, 0.88);
  cursor: pointer;
  flex: 0 0 auto;
}

.search-lens:hover {
  border-color: var(--copper-hot);
  color: var(--copper-hot);
}

@media (max-width: 720px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 4.4rem;
    padding: 0.55rem 0.65rem;
  }

  .header-main {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.3rem;
  }

  .nav-burger {
    display: inline-flex;
    flex: 0 0 auto;
    width: 2.15rem;
    height: 2.15rem;
  }

  /* Compact bar: logo + burger + lang/account. Full nav opens as panel. */
  .header-center {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    z-index: 45;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    padding: 0.95rem 0.95rem 1.1rem;
    border-bottom: 1px solid rgba(212, 160, 90, 0.28);
    background: rgba(8, 12, 22, 0.98);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    overflow: visible;
  }

  .site-header.is-nav-open .header-center {
    display: flex;
  }

  .header-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    white-space: normal;
  }

  .header-nav .nav-link {
    display: block;
    padding: 0.7rem 0.35rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(243, 237, 226, 0.08);
  }

  .header-nav .nav-link:hover {
    border-bottom-color: rgba(212, 160, 90, 0.45);
  }

  /* Search lives as a lens in the header bar, not inside the burger panel */
  .header-center > .search {
    display: none;
  }

  .header-search {
    display: inline-flex;
    align-items: center;
    position: relative;
    flex: 0 0 auto;
  }

  .header-search .search {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2.15rem;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
    transition: width 0.22s ease, opacity 0.18s ease;
  }

  .header-search.is-open .search-lens {
    opacity: 0;
    pointer-events: none;
  }

  .header-search.is-open {
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
    z-index: 80;
  }

  .header-search.is-open .search {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 100%;
    opacity: 1;
    pointer-events: auto;
    overflow: visible; /* allow suggestion dropdown below the field */
    z-index: 5;
  }

  .header-search .search-drop {
    left: 0;
    right: 0;
    width: 100%;
    max-height: min(18rem, 50vh);
    z-index: 70;
  }

  .site-header.is-search-open,
  .site-header.is-search-open .auth-actions,
  .site-header.is-search-open .header-main {
    overflow: visible;
  }

  /* Collapse chrome so expanded search does not sit on top of burger/lang/account */
  .site-header.is-search-open .nav-burger,
  .site-header.is-search-open .btn-login,
  .site-header.is-search-open .btn-register,
  .site-header.is-search-open .lang-dropdown,
  .site-header.is-search-open .account-dropdown {
    display: none;
  }

  .site-header .brand span {
    display: none; /* header: full name lives in the hero */
  }

  .site-footer .brand span {
    display: inline; /* keep name next to logo in footer */
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .auth-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    min-width: 0;
    margin-left: 0;
    justify-self: start;
    flex: 1 1 auto;
    flex-wrap: nowrap;
  }

  .lang-toggle {
    padding: 0.32rem 0.4rem;
    font-size: 0.74rem;
    gap: 0.28rem;
    flex: 0 0 auto;
  }

  .lang-toggle .lang-code,
  .lang-toggle .lang-caret {
    display: none;
  }

  .account-dropdown {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none; /* use free space up to the search lens */
  }

  .header-search {
    margin-left: 0;
  }

  .account-toggle {
    display: inline-flex;
    width: 100%;
    max-width: none;
    padding: 0.32rem 0.55rem;
    font-size: 0.74rem;
    justify-content: space-between;
    gap: 0.3rem;
  }

  .account-toggle #account-email,
  .account-toggle #whoami {
    flex: 1 1 auto;
    min-width: 0;
  }

  .btn-login {
    font-size: 0.74rem;
    padding: 0.32rem 0.5rem;
    flex: 0 0 auto;
  }

  .btn-register {
    display: inline-block;
    font-size: 0.74rem;
    padding: 0.32rem 0.55rem;
    flex: 0 0 auto;
    max-width: none;
    overflow: visible;
    white-space: nowrap;
  }

  .site-footer {
    min-height: auto;
    padding: 1.35rem 0.85rem 1.5rem;
  }

  .footer-inner {
    width: 100%;
    overflow: visible;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1rem;
  }

  .footer-end {
    align-items: center;
    justify-self: center;
  }

  .footer-nav {
    flex-wrap: wrap;
    white-space: normal;
    gap: 0.55rem 1.15rem;
    max-width: 100%;
  }

  .footer-copy {
    white-space: normal;
    text-align: center;
  }

  .hero {
    padding-top: 0.85rem;
  }
}
