/* ============================================
   ASTRO PERSONA by Екатерина
   Design system: luxury editorial / astrology
   ============================================ */

:root {
  --bg-deep: #0b0810;
  --bg-plum: #160e1c;
  --bg-plum-2: #1d1228;
  --bg-plum-3: #241533;
  --bg-graphite: #12101a;
  --bg-graphite-2: #191622;

  --gold: #c9a96e;
  --gold-soft: #d8c19a;
  --gold-deep: #a8885a;
  --gold-glow: rgba(201, 169, 110, 0.16);
  --gold-glow-strong: rgba(201, 169, 110, 0.32);

  --text: #ece6f1;
  --text-soft: #bdb2ca;
  --text-muted: #8f849e;

  --border: rgba(201, 169, 110, 0.16);
  --border-soft: rgba(236, 230, 241, 0.08);
  --card-bg: rgba(30, 20, 42, 0.42);

  --font-display: "Playfair Display", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;

  --container: 1160px;
  --header-h: 126px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 0.7, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold-soft);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

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

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Continuous gradient environment ---------- */

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1100px 700px at 12% 8%, rgba(52, 32, 72, 0.55), transparent 60%),
    radial-gradient(900px 650px at 88% 22%, rgba(38, 24, 56, 0.5), transparent 62%),
    radial-gradient(1200px 900px at 50% 48%, rgba(28, 18, 42, 0.65), transparent 65%),
    radial-gradient(1000px 800px at 18% 72%, rgba(24, 20, 36, 0.6), transparent 60%),
    radial-gradient(1100px 750px at 82% 90%, rgba(44, 26, 60, 0.5), transparent 62%),
    linear-gradient(
      180deg,
      #100a18 0%,
      #170f22 14%,
      #120e1a 32%,
      #1a1226 50%,
      #130f1e 68%,
      #1c1228 84%,
      #0d0912 100%
    );
}

.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 70% 15%, rgba(201, 169, 110, 0.05), transparent 70%),
    radial-gradient(700px 500px at 25% 60%, rgba(201, 169, 110, 0.035), transparent 70%),
    radial-gradient(500px 400px at 60% 88%, rgba(201, 169, 110, 0.04), transparent 70%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(236, 230, 241, 0.5), transparent),
    radial-gradient(1px 1px at 78% 12%, rgba(201, 169, 110, 0.45), transparent),
    radial-gradient(1.2px 1.2px at 42% 34%, rgba(236, 230, 241, 0.35), transparent),
    radial-gradient(1px 1px at 88% 52%, rgba(201, 169, 110, 0.35), transparent),
    radial-gradient(1px 1px at 22% 68%, rgba(236, 230, 241, 0.3), transparent),
    radial-gradient(1.2px 1.2px at 62% 82%, rgba(201, 169, 110, 0.4), transparent),
    radial-gradient(1px 1px at 35% 92%, rgba(236, 230, 241, 0.28), transparent);
}

.section {
  position: relative;
  padding: 110px 0;
}

.section--tight {
  padding: 90px 0;
}

/* Soft overlapping gradient layers — never hard edges */
.section__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(2px);
}

.section > .container {
  position: relative;
  z-index: 1;
}

/* ---------- Typography ---------- */

.h1,
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
}

.h1 {
  font-size: clamp(1.95rem, 4.2vw, 3.15rem);
  line-height: 1.18;
  max-width: 15ch;
}

.h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.25;
  max-width: 22ch;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.35;
  color: var(--text);
}

.lead {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  color: var(--text-soft);
  max-width: 56ch;
}

.text-block p + p {
  margin-top: 1em;
}

.text-block p {
  color: var(--text-soft);
  max-width: 62ch;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

.section-label::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-head {
  margin-bottom: 56px;
}

.section-head .h2 {
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  padding: 16px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
  text-align: center;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold) 48%, var(--gold-deep) 100%);
  color: #17101f;
  box-shadow: 0 8px 32px rgba(201, 169, 110, 0.22);
}

.btn--primary:hover {
  color: #17101f;
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(201, 169, 110, 0.32);
}

.btn--ghost {
  background: rgba(236, 230, 241, 0.03);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  border-color: rgba(201, 169, 110, 0.45);
  color: var(--gold-soft);
  background: rgba(201, 169, 110, 0.06);
  transform: translateY(-2px);
}

.btn--small {
  padding: 12px 22px;
  font-size: 0.84rem;
}

.btn--block {
  width: 100%;
}

/* ---------- Header ---------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}

.header.is-scrolled {
  background: rgba(13, 9, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border-soft);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header__logo img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(201, 169, 110, 0.25));
}

.header__brand {
  font-family: var(--font-display);
  font-size: 1.96rem;
  line-height: 1.1;
  letter-spacing: 0.12em;
  color: var(--text);
  white-space: nowrap;
}

.header__brand span {
  display: block;
  font-family: var(--font-body);
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__link {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__link:hover {
  color: var(--text);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.header__cta {
  flex-shrink: 0;
}

.burger {
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(236, 230, 241, 0.03);
  cursor: pointer;
  position: relative;
  z-index: 120;
}

.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.25s var(--ease), top 0.3s var(--ease);
}

.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }

.burger[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(10, 7, 15, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
  padding: 14px 20px;
}

.mobile-menu a:hover {
  color: var(--gold-soft);
}

.mobile-menu .btn {
  margin-top: 24px;
}

body.menu-open {
  overflow: hidden;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 90px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.hero__eyebrow svg {
  width: 16px;
  height: 16px;
  opacity: 0.85;
}

.hero .h1 {
  margin-bottom: 26px;
}

.hero__sub {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--text);
  font-weight: 500;
  line-height: 1.6;
  max-width: 34ch;
  margin-bottom: 16px;
}

.hero__extra {
  color: var(--text-muted);
  max-width: 40ch;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__visual {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero__disclaimer {
  position: relative;
  z-index: 2;
  max-width: 42ch;
  margin: 20px auto 0;
  color: var(--text-soft);
  font-size: clamp(0.76rem, 1vw, 0.85rem);
  line-height: 1.55;
  letter-spacing: 0.01em;
  text-align: center;
}

.hero__disclaimer span {
  display: block;
}

.hero__disclaimer span + span {
  color: var(--gold);
  font-weight: 600;
}

.hero__photo-wrap {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 3 / 4;
  border-radius: 220px 220px 28px 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(201, 169, 110, 0.08),
    inset 0 0 60px rgba(201, 169, 110, 0.05);
}

.hero__photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(13, 8, 18, 0.55) 100%);
  pointer-events: none;
}

.hero__orbit {
  position: absolute;
  inset: -12%;
  pointer-events: none;
  z-index: 0;
  animation: orbit-spin 90s linear infinite;
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

.hero__constellation {
  position: absolute;
  top: 8%;
  right: -4%;
  width: 180px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.hero__moon {
  position: absolute;
  left: 6%;
  bottom: 14%;
  width: 54px;
  opacity: 0.55;
  pointer-events: none;
}

/* ---------- Cards (themes & services) ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 34px 28px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease), background 0.35s var(--ease);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 200px at 50% 0%, rgba(201, 169, 110, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 169, 110, 0.3);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

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

.card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  color: var(--gold);
  opacity: 0.9;
}

.card__title {
  margin-bottom: 12px;
}

.card__text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Service cards */

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

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 42px 38px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 38px;
  right: 38px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.5), transparent);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 169, 110, 0.32);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.35);
}

.service-card .h3 {
  margin-bottom: 16px;
}

.service-card__text {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 28px;
}

.service-card .btn {
  align-self: flex-start;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

.about__photo-wrap {
  position: relative;
  border-radius: 200px 200px 24px 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 3 / 4;
  max-width: 380px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.about__photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about__photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(13, 8, 18, 0.5) 100%);
}

.principles {
  list-style: none;
  margin-top: 36px;
  display: grid;
  gap: 14px;
}

.principles li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.93rem;
  color: var(--text-soft);
}

.principles li::before {
  content: "✦";
  color: var(--gold);
  font-size: 0.7rem;
  line-height: 1.9;
  flex-shrink: 0;
}

/* ---------- Certificates ---------- */

.certs-note {
  display: none; /* internal placeholder — hidden from visitors until real docs */
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cert-card {
  background: var(--card-bg);
  border: 1px dashed rgba(201, 169, 110, 0.25);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(6px);
}

.cert-card__frame {
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  background:
    radial-gradient(80% 60% at 50% 30%, rgba(201, 169, 110, 0.07), transparent 70%),
    rgba(18, 12, 26, 0.6);
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
}

.cert-card__frame svg {
  width: 40px;
  height: 40px;
  color: var(--gold);
  opacity: 0.7;
}

.cert-card__frame p {
  font-size: 0.82rem;
  line-height: 1.6;
  max-width: 22ch;
}

.cert-card__meta {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: grid;
  gap: 4px;
}

.cert-card__meta strong {
  color: var(--text-soft);
  font-weight: 600;
}

/* ---------- Relations editorial ---------- */

.editorial {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.editorial .h2 {
  max-width: none;
  margin-inline: auto;
  margin-bottom: 32px;
}

.editorial p {
  color: var(--text-soft);
  max-width: 62ch;
  margin-inline: auto;
}

.editorial p + p {
  margin-top: 1.2em;
}

.editorial__synastry {
  display: block;
  width: min(430px, 88%);
  height: auto;
  margin: 46px auto 0;
}

/* ---------- Astro illustrations ---------- */

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 4vw, 72px);
}

.section-head--split .h2 {
  max-width: 17ch;
}

.illust {
  display: block;
  max-width: 100%;
  height: auto;
}

.illust--natal {
  width: clamp(230px, 26vw, 320px);
  filter: drop-shadow(0 22px 55px rgba(0, 0, 0, 0.4));
}

.hero__starmap {
  position: absolute;
  top: 3%;
  right: -7%;
  width: min(740px, 78vw);
  height: auto;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.faq__starmap {
  position: absolute;
  top: 6%;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: min(780px, 90%);
  height: auto;
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}

.cta-planet {
  display: block;
  width: clamp(200px, 24vw, 270px);
  height: auto;
  margin-top: 30px;
  opacity: 0.95;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.step {
  position: relative;
  padding-top: 8px;
}

.step::before {
  display: none;
}

.step::after {
  display: none;
}

.step .h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 780px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-soft);
}

.faq-item:first-child {
  border-top: 1px solid var(--border-soft);
}

.faq-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 4px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.25s var(--ease);
}

.faq-item__btn:hover {
  color: var(--gold-soft);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease), border-color 0.3s var(--ease),
    background 0.3s var(--ease);
  position: relative;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.faq-item__icon::before {
  width: 12px;
  height: 1.5px;
}

.faq-item__icon::after {
  width: 1.5px;
  height: 12px;
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(180deg);
  border-color: rgba(201, 169, 110, 0.45);
  background: rgba(201, 169, 110, 0.08);
}

.faq-item.is-open .faq-item__icon::after {
  opacity: 0;
}

.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.faq-item.is-open .faq-item__panel {
  grid-template-rows: 1fr;
}

.faq-item__panel-inner {
  overflow: hidden;
}

.faq-item__panel p {
  padding: 0 48px 26px 4px;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

/* ---------- Final CTA + Form ---------- */

.cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-block__text {
  max-width: 620px;
}

.cta-block__text .h2 {
  margin-bottom: 20px;
}

.cta-block__text p {
  color: var(--text-soft);
  max-width: 42ch;
  margin-inline: auto;
  margin-bottom: 32px;
}

.cta-block__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.form {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 40px 36px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
}

.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.form__label .req {
  color: var(--gold);
  margin-left: 4px;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: rgba(13, 9, 18, 0.5);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}

.form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%23c9a96e' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.form__select option {
  background: #1a1228;
  color: var(--text);
}

.form__textarea {
  min-height: 110px;
  resize: vertical;
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: rgba(201, 169, 110, 0.5);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.12);
}

.form__input.is-invalid,
.form__select.is-invalid,
.form__textarea.is-invalid {
  border-color: rgba(214, 120, 120, 0.65);
}

.form__error {
  display: none;
  font-size: 0.8rem;
  color: #e0a0a0;
  margin-top: 6px;
}

.form__error.is-visible {
  display: block;
}

.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 8px 0 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.form__consent input {
  margin-top: 4px;
  width: 17px;
  height: 17px;
  accent-color: var(--gold);
  flex-shrink: 0;
  cursor: pointer;
}

.form__consent a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form__note {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.cta-block__action .form__note {
  margin-top: 0;
  max-width: 40ch;
}

/* ---------- Lead modal ---------- */

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 8, 16, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(0.33, 1, 0.68, 1);
}

.modal__dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: min(86vh, 780px);
  overflow-y: auto;
  background: linear-gradient(160deg, var(--bg-plum-2) 0%, var(--bg-plum) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 34px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(32px) scale(0.96);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.08s,
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.08s;
}

.modal.is-open .modal__backdrop {
  opacity: 1;
}

.modal.is-open .modal__dialog {
  opacity: 1;
  transform: none;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(236, 230, 241, 0.04);
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  color: var(--text-soft);
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.modal__close:hover {
  color: var(--gold-soft);
  border-color: var(--border);
}

.modal__close svg {
  width: 18px;
  height: 18px;
}

.modal__title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 26px;
}

.form--modal {
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Form: success / error states */

.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

#lead-form-error:not(:empty) {
  display: block;
  margin: -8px 0 16px;
}

.form__success {
  display: none;
  text-align: center;
  padding: 8px 0 4px;
}

.form__success-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.7rem);
  color: var(--gold-soft);
  margin-bottom: 12px;
}

.form__success-text {
  color: var(--text-soft);
  margin-bottom: 24px;
  line-height: 1.6;
}

form.form--sent .form__fields {
  display: none;
}

form.form--sent .form__success {
  display: block;
}

@media (max-width: 640px) {
  .modal {
    padding: 12px;
  }

  .modal__dialog {
    padding: 32px 20px 26px;
  }
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  padding: 70px 0 40px;
  border-top: 1px solid var(--border-soft);
  background: rgba(10, 7, 14, 0.45);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.footer__brand img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(201, 169, 110, 0.2));
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--text);
}

.footer__brand-tag {
  font-size: 1.36rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 6px;
}

.footer__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 34ch;
}

.footer__title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.footer__links {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer__links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer__links a:hover {
  color: var(--gold-soft);
}

.footer__insta {
  margin-top: 18px;
}

.footer__insta-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: rgba(236, 230, 241, 0.02);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.footer__insta-link:hover {
  border-color: rgba(201, 169, 110, 0.4);
  background: rgba(201, 169, 110, 0.06);
  transform: translateY(-2px);
}

.footer__qr {
  width: 200px;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  display: block;
  object-fit: contain;
}

.footer__insta-label {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.footer__insta-link:hover .footer__insta-label {
  color: var(--gold-soft);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer__bottom a {
  color: var(--text-muted);
}

.footer__bottom a:hover {
  color: var(--gold-soft);
}

.footer__legal {
  font-size: 0.72rem;
  color: var(--text-muted);
  max-width: 58ch;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ---------- Decorative astro graphics ---------- */

.astro-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 10px 0;
  color: var(--gold);
  opacity: 0.55;
}

.astro-divider::before,
.astro-divider::after {
  content: "";
  height: 1px;
  width: min(120px, 18vw);
  background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.5), transparent);
}

.astro-divider svg {
  width: 22px;
  height: 22px;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gold);
  color: #17101f;
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1280px) {
  .nav {
    gap: 20px;
  }
}

@media (max-width: 1140px) {
  :root {
    --header-h: 108px;
  }

  .nav,
  .header__cta {
    display: none;
  }

  .burger {
    display: block;
  }

  .mobile-menu {
    display: flex;
  }

  .header__logo img {
    width: 88px;
    height: 88px;
  }

  .header__brand {
    font-size: 1.5rem;
  }

  .header__brand span {
    font-size: 0.95rem;
    margin-top: 3px;
  }
}

@media (max-width: 1080px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 28px;
  }

  .step:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 96px;
  }

  .header__logo img {
    width: 76px;
    height: 76px;
  }

  .header__brand {
    font-size: 1.3rem;
  }

  .header__brand span {
    font-size: 0.8rem;
  }

  .footer__brand img {
    width: 110px;
    height: 110px;
  }

  .footer__brand-name {
    font-size: 1.8rem;
  }

  .footer__brand-tag {
    font-size: 1.15rem;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .section-head--split {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .illust--natal {
    width: min(270px, 72%);
    margin-inline: auto;
  }

  .hero__visual {
    order: -1;
  }

  .hero__photo-wrap {
    width: min(100%, 320px);
  }

  .h1 {
    max-width: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__photo-wrap {
    margin-inline: auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 36px);
  }

  .header__inner {
    gap: 16px;
  }

  .section {
    padding: 76px 0;
  }

  .section--tight {
    padding: 64px 0;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step::after {
    display: none;
  }

  .hero {
    padding-top: calc(var(--header-h) + 28px);
    padding-bottom: 70px;
    min-height: auto;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__starmap {
    width: min(560px, 122vw);
    right: -20%;
    top: 4%;
    opacity: 0.4;
  }

  .faq__starmap {
    opacity: 0.14;
    width: 96%;
  }

  .editorial__synastry {
    margin-top: 34px;
  }

  .cta-planet {
    margin-top: 24px;
    margin-bottom: 32px;
  }

  .cta-block__action {
    margin-top: 28px;
    gap: 18px;
  }

  .service-card {
    padding: 32px 24px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__insta-link {
    padding: 10px 16px 10px 10px;
  }

  .footer__qr {
    width: 200px;
    height: auto;
    max-width: 100%;
  }

  :root {
    --header-h: 88px;
  }

  .header__brand {
    font-size: 1.1rem;
    letter-spacing: 0.08em;
  }

  .header__brand span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
  }

  .header__logo img {
    width: 62px;
    height: 62px;
  }

  .footer__brand img {
    width: 92px;
    height: 92px;
  }

  .footer__brand-name {
    font-size: 1.55rem;
  }

  .footer__brand-tag {
    font-size: 1rem;
  }
}

/* Очень узкие экраны: шапка должна помещаться целиком */
@media (max-width: 343px) {
  .header__inner {
    gap: 12px;
    width: calc(100% - 32px);
  }

  .header__logo {
    gap: 8px;
  }

  .header__logo img {
    width: 52px;
    height: 52px;
  }

  .header__brand {
    font-size: 0.95rem;
    letter-spacing: 0.06em;
  }

  .header__brand span {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    margin-top: 2px;
  }
}
