/* ============ ПЕРЕМЕННЫЕ ТЕМ ============ */
:root {
  /* light theme (default) */
  --bg: #FAF6F0;
  --bg-tint: #F2EBDC;
  --bg-card: #FFFFFF;
  --bg-nav: rgba(250, 246, 240, 0.88);
  --bg-form-section: rgba(250, 246, 240, 0.6);
  --ink: #1B2545;
  --ink-soft: #3A436A;
  --muted: #6F6A5E;
  --gold: #B89B5E;
  --gold-deep: #8E7842;
  --gold-soft: rgba(184, 155, 94, 0.18);
  --line: #E6DDC7;
  --shadow-color: 27, 37, 69;

  /* invariants */
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1120px;
  --radius: 14px;
  --radius-sm: 8px;
  --transition: 220ms cubic-bezier(.2, .7, .2, 1);
  --shadow-sm: 0 4px 12px rgba(var(--shadow-color), 0.06);
  --shadow-md: 0 10px 30px rgba(var(--shadow-color), 0.10);
  --shadow-lg: 0 24px 60px rgba(var(--shadow-color), 0.16);

  /* «вечная ночь» — палитра для тёмных секций в любом режиме */
  --night-bg: #0E1424;
  --night-bg-soft: #161E36;
  --night-ink: #F5EDDB;
  --night-ink-soft: rgba(245, 237, 219, 0.78);
  --night-muted: rgba(245, 237, 219, 0.55);
  --night-line: rgba(245, 237, 219, 0.12);
  --night-gold: #D4B373;
  --night-gold-soft: rgba(212, 179, 115, 0.18);
}

[data-theme="dark"] {
  --bg: #0B1020;
  --bg-tint: #131A2E;
  --bg-card: #1A2138;
  --bg-nav: rgba(11, 16, 32, 0.88);
  --bg-form-section: rgba(11, 16, 32, 0.5);
  --ink: #F2EAD3;
  --ink-soft: #C9C2B1;
  --muted: #8C8676;
  --gold: #D4B373;
  --gold-deep: #E2C58A;
  --gold-soft: rgba(212, 179, 115, 0.16);
  --line: #2A3145;
  --shadow-color: 0, 0, 0;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--transition), color var(--transition);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

/* ============ КОНТЕЙНЕРЫ ============ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; position: relative; }
.section--tint { background: var(--bg-tint); transition: background var(--transition); }
.section__narrow { max-width: 760px; margin: 0 auto; }
.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 8px 0 24px;
  text-align: center;
}
.section__lede {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 40px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
  margin: 0;
  position: relative;
  display: inline-block;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 10px;
  opacity: 0.6;
}
.eyebrow--centered { text-align: center; }
.eyebrow--centered::before { margin-left: 0; }

/* Трейдмарк: «Катя & Звёзды» — слова курсивом, «&» в золоте, без анимации (Safari-safe) */
.amp {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  font-size: 0.92em;
  padding: 0 0.16em;
  display: inline-block;
  vertical-align: baseline;
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-nav);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background var(--transition), border-color var(--transition);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 20px;
}
.nav__logo {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav__menu a {
  font-size: 14.5px;
  color: var(--ink-soft);
  transition: color var(--transition);
  position: relative;
}
.nav__menu a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav__menu a:not(.nav__cta):hover { color: var(--ink); }
.nav__menu a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  background: var(--ink);
  color: var(--bg) !important;
  padding: 10px 18px;
  border-radius: 999px;
  transition: background var(--transition), transform var(--transition);
}
.nav__cta:hover { background: var(--ink-soft); transform: translateY(-1px); }

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: var(--bg-card);
  transition: color var(--transition), border-color var(--transition), transform var(--transition), background var(--transition);
  flex-shrink: 0;
}

/* Переключатель языка — компактная группа из 3 кнопок */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.lang-switcher button {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
  line-height: 1;
}
.lang-switcher button:hover {
  color: var(--ink);
}
.lang-switcher button.is-active {
  color: var(--bg);
  background: var(--ink);
}
.theme-toggle:hover { color: var(--gold-deep); border-color: var(--gold); transform: rotate(12deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--transition), opacity var(--transition);
}

/* ============ HERO ============ */
.hero {
  padding: 80px 0 110px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  transition: background var(--transition);
}
/* E. Гипнотический градиент-аура: hue-rotate + saturate + scale */
.hero::before {
  content: "";
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(ellipse 55% 45% at 80% 15%, var(--gold-soft), transparent 65%),
    radial-gradient(ellipse 45% 35% at 10% 90%, rgba(var(--shadow-color), 0.10), transparent 65%);
  animation: heroAura 11s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  will-change: filter, transform;
}
@keyframes heroAura {
  0%, 100% { filter: hue-rotate(0deg) saturate(1) brightness(1); transform: scale(1); }
  50% { filter: hue-rotate(30deg) saturate(1.55) brightness(1.08); transform: scale(1.08); }
}

/* A. Мерцающее «созвездие» — пульсирующие точки, без сдвига позиции */
.hero__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.star {
  --x: 50%;
  --y: 50%;
  --d: 0s;
  --s: 1;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(6px * var(--s));
  height: calc(6px * var(--s));
  border-radius: 999px;
  background: var(--gold);
  filter: blur(0.3px);
  opacity: 0.35;
  animation: starTwinkle 4.6s ease-in-out infinite;
  animation-delay: var(--d);
  transform: translate(-50%, -50%);
}
.star::after {
  content: "";
  position: absolute;
  inset: calc(-8px * var(--s));
  border-radius: 999px;
  background: radial-gradient(circle, var(--gold-soft) 0%, transparent 70%);
  opacity: 0.9;
}
@keyframes starTwinkle {
  0%, 100% { opacity: 0.25; box-shadow: 0 0 0 0 var(--gold-soft); }
  50% { opacity: 1; box-shadow: 0 0 calc(10px * var(--s)) calc(2px * var(--s)) var(--gold-soft); }
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__text > * { animation: heroIn 700ms cubic-bezier(.2,.7,.2,1) both; }
.hero__text > .eyebrow { animation-delay: 50ms; }
.hero__text > .hero__title { animation-delay: 150ms; }
.hero__text > .hero__lede { animation-delay: 280ms; }
.hero__text > .hero__sub { animation-delay: 400ms; }
.hero__text > .hero__cta { animation-delay: 520ms; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(52px, 8.2vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 18px 0 22px;
}
.hero__lede {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 28px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink-soft);
  margin: 0 0 16px;
  max-width: 560px;
}
.hero__sub {
  color: var(--muted);
  max-width: 540px;
  margin: 0 0 32px;
}
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__photo {
  position: relative;
  display: flex;
  justify-content: flex-end;
  animation: heroIn 900ms 200ms cubic-bezier(.2,.7,.2,1) both;
}
/* F. Дыхание золотой рамки вокруг hero-фото */
.hero__photo::before {
  content: "";
  position: absolute;
  inset: -16px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  transform: translate(18px, 18px);
  opacity: 0.45;
  pointer-events: none;
  animation: frameBreath 4.6s ease-in-out infinite;
  will-change: opacity, box-shadow;
}
@keyframes frameBreath {
  0%, 100% {
    opacity: 0.3;
    box-shadow: inset 0 0 0 0 var(--gold-soft), 0 0 0 0 var(--gold-soft);
  }
  50% {
    opacity: 0.85;
    box-shadow: inset 0 0 16px 0 var(--gold-soft), 0 0 30px 4px var(--gold-soft);
  }
}

/* ============ ФОТО ============ */
.photo {
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  box-shadow: var(--shadow-lg);
  filter: saturate(0.96);
  transition: filter var(--transition), transform var(--transition);
}
.photo--portrait {
  aspect-ratio: 3 / 4;
  width: 100%;
  height: auto;
  max-width: 380px;
  object-fit: cover;
}
.photo--square {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  max-width: 320px;
  object-fit: cover;
  object-position: center 25%; /* лицо не уходит вниз при квадратном кропе */
  margin: 0 auto;
}
[data-theme="dark"] .photo { filter: saturate(0.85) brightness(0.92); }

.story__photo {
  display: flex;
  justify-content: center;
  margin: 28px 0 40px;
  position: relative;
}
.story__photo::after {
  content: "✦";
  position: absolute;
  bottom: -12px;
  right: calc(50% - 180px);
  color: var(--gold);
  font-size: 22px;
  opacity: 0.7;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 6px 20px rgba(var(--shadow-color), 0.18);
}
.btn--primary:hover { background: var(--ink-soft); box-shadow: 0 10px 28px rgba(var(--shadow-color), 0.24); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--sm { padding: 10px 18px; font-size: 14px; }

/* ============ PROSE ============ */
.prose p {
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

/* ============ ПОДХОД — ТЁМНАЯ СЕКЦИЯ-АКЦЕНТ ============ */
.section--night {
  background: var(--night-bg);
  color: var(--night-ink);
  overflow: hidden;
}
.section--night::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 15% 25%, rgba(212, 179, 115, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(212, 179, 115, 0.06), transparent 60%);
  pointer-events: none;
}
.section--night > .container { position: relative; z-index: 1; }
.section--night .section__title { color: var(--night-ink); }
.section--night .eyebrow { color: var(--night-gold); }
.section--night .prose p { color: var(--night-ink-soft); }

.section--night .star {
  background: var(--night-gold);
  opacity: 0.8;
}
.section--night .hero__stars { position: absolute; }

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.approach-card {
  background: var(--night-bg-soft);
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  padding: 32px 26px;
  position: relative;
  transition: transform var(--transition), border-color var(--transition);
}
.approach-card:hover { transform: translateY(-4px); border-color: var(--night-gold); }
.approach-card__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--night-gold);
  display: block;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}
.approach-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  margin: 0 0 12px;
  color: var(--night-ink);
}
.approach-card p {
  margin: 0;
  color: var(--night-ink-soft);
  font-size: 16px;
  line-height: 1.65;
}
.approach-card--accent {
  background: linear-gradient(160deg, #2A2417 0%, #1A1A2E 100%);
  border-color: var(--night-gold);
}
.approach-card--accent::after {
  content: "✦";
  position: absolute;
  top: 18px;
  right: 22px;
  color: var(--night-gold);
  font-size: 16px;
  opacity: 0.8;
}

/* ============ SERVICES ============ */
.services__group {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  text-align: center;
  margin: 64px 0 24px;
  color: var(--gold-deep);
  position: relative;
}
.services__group:first-of-type { margin-top: 20px; }
.services__group::before,
.services__group::after {
  content: "";
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin: 0 18px;
  opacity: 0.5;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.services-grid:has(> :only-child) { grid-template-columns: minmax(0, 480px); justify-content: center; }

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.service-card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 12px;
}
.service-card__who {
  color: var(--muted);
  font-style: italic;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 16px;
}
.service-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.service-card__list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.service-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
}
.service-card__format {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.service-card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.service-card__price {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
}
.service-card__price s {
  color: var(--muted);
  font-size: 18px;
  margin-right: 6px;
  font-weight: 400;
}

.service-card--accent {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-tint) 100%);
  border-color: var(--gold);
  box-shadow: 0 8px 28px var(--gold-soft);
}
[data-theme="dark"] .service-card--accent {
  background: linear-gradient(180deg, var(--bg-card) 0%, #221E33 100%);
}
.service-card__badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0;
}

.services__hint {
  text-align: center;
  color: var(--muted);
  margin-top: 48px;
  font-size: 16px;
}
.services__hint a {
  color: var(--gold-deep);
  border-bottom: 1px solid currentColor;
}

/* ============ TESTIMONIALS ============ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 20px;
}
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  margin: 0;
  position: relative;
  transition: transform var(--transition), border-color var(--transition);
}
.testimonial:hover { transform: translateY(-3px); border-color: var(--gold); }
.testimonial::before {
  content: "“";
  position: absolute;
  top: -6px;
  left: 20px;
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.5;
}
.testimonial blockquote {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  margin: 16px 0 16px;
  font-style: italic;
}
.testimonial figcaption {
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ============ CONTACT ============ */
.contact-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 8px 0 36px;
}
.contact-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 22px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.contact-btn:hover { transform: translateY(-3px); border-color: var(--gold); }
.contact-btn__label {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
}
.contact-btn__handle { font-size: 14px; color: var(--muted); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-row label { font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.form-hint { color: var(--muted); font-weight: 400; font-size: 13px; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font: inherit;
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.form-row textarea { resize: vertical; min-height: 96px; }
.form-consent { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0 0 18px; }
.form-status { margin: 14px 0 0; font-size: 14px; color: var(--gold-deep); min-height: 20px; }

/* ============ FOOTER ============ */
.footer {
  background: var(--night-bg);
  color: var(--night-ink);
  padding: 48px 0;
  margin-top: 0;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
}
.footer__brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  margin: 0;
}
.footer__brand .amp { color: var(--night-gold); }
.footer__small { font-size: 13.5px; color: var(--night-muted); margin: 0; }
.footer__nav { display: flex; gap: 20px; }
.footer__nav a {
  font-size: 14px;
  color: var(--night-ink-soft);
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--night-gold); }

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="100"] { transition-delay: 100ms; }
.reveal[data-delay="200"] { transition-delay: 200ms; }
.reveal[data-delay="300"] { transition-delay: 300ms; }
.reveal[data-delay="400"] { transition-delay: 400ms; }

/* ============ MOBILE ============ */
@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__photo { order: -1; justify-content: center; }
  .hero__photo::before { display: none; }
  .photo--portrait { max-width: 280px; margin: 0 auto; }
  .approach-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-buttons { grid-template-columns: 1fr; }
  .services__group::before, .services__group::after { width: 24px; margin: 0 12px; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .hero { padding: 56px 0 84px; }
  .contact-form { padding: 24px 20px; }

  .nav__toggle { display: flex; }
  .nav__inner { gap: 10px; }
  .nav__logo { font-size: 19px; }
  .lang-switcher button { padding: 4px 7px; font-size: 10px; }
  .nav__menu {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition), padding var(--transition);
  }
  .nav__menu a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav__menu a:last-child { border-bottom: 0; }
  .nav__cta { margin-top: 8px; text-align: center; border-radius: 999px; }
  .nav--open .nav__menu { max-height: 520px; padding: 8px 24px 24px; }
  .nav--open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav--open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav--open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============ FORM SECTIONS (условные группы) ============ */
.form-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 8px;
  margin: 0 0 18px;
  background: var(--bg-form-section);
  animation: formSectionIn 360ms cubic-bezier(.2,.7,.2,1);
}
.form-section[hidden] { display: none; }
.form-section legend {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--gold-deep);
  padding: 0 8px;
  margin-left: -8px;
}
.form-section__hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.55;
}

@keyframes formSectionIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ SERVICE CARD TILT (только при наличии hover-устройства) ============ */
@media (hover: hover) and (pointer: fine) {
  .tilt {
    transform-style: preserve-3d;
    will-change: transform;
  }
  /* при ховере внутреннее содержимое чуть приподнимается — даёт глубину */
  .tilt .service-card__title { transform: translateZ(6px); }
  .tilt .service-card__price { transform: translateZ(8px); }
  .tilt .btn { transform: translateZ(10px); }
}

/* ============ ПОДСКАЗКА УСЛУГ ============ */
.services__hint-sub {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
}

/* ============ PROSE CTA ============ */
.prose__cta {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px !important;
  color: var(--ink) !important;
  margin-top: 28px !important;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.prose__cta a {
  color: var(--gold-deep);
  border-bottom: 1px solid currentColor;
  font-style: normal;
}

/* ============ HERO PHOTO — мягкое idle-«дыхание», когда курсор не двигался ============ */
.hero__photo {
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}

/* B. Cursor-glow — мягкое золотое радиальное свечение за курсором */
.cursor-glow {
  position: fixed;
  width: 560px;
  height: 560px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(184, 155, 94, 0.18) 0%, rgba(184, 155, 94, 0.08) 35%, transparent 65%);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 500ms ease, background 400ms ease;
  mix-blend-mode: multiply;
  will-change: left, top, opacity;
}
[data-theme="dark"] .cursor-glow {
  background: radial-gradient(circle, rgba(212, 179, 115, 0.22) 0%, rgba(212, 179, 115, 0.10) 35%, transparent 65%);
  mix-blend-mode: screen;
}
.cursor-glow.is-active { opacity: 1; }

@media (hover: none) {
  .cursor-glow {
    opacity: 0.55;
    width: 360px;
    height: 360px;
  }
}

/* G. Wipe-переход темы — clip-path значения ставятся inline из JS
   (CSS-переменные в clip-path не транзишатся в Safari) */
.theme-wipe {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  will-change: clip-path;
}

/* H. Glow-pulse на CTA-кнопке — мягкая золотая аура, что зовёт нажать */
.btn--pulse {
  position: relative;
  isolation: isolate;
}
.btn--pulse::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(184, 155, 94, 0.45) 0%, transparent 65%);
  z-index: -1;
  opacity: 0;
  animation: ctaPulse 3.4s ease-in-out infinite;
  pointer-events: none;
}
[data-theme="dark"] .btn--pulse::after {
  background: radial-gradient(circle, rgba(212, 179, 115, 0.5) 0%, transparent 65%);
}
@keyframes ctaPulse {
  0%, 100% { opacity: 0; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.18); }
}

/* D. Линии-связи между карточками «Подхода» — рисуются на скролл-входе */
.approach-wrap {
  position: relative;
}
.approach-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}
.approach-lines line {
  stroke: var(--night-gold);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  opacity: 0;
  transition: stroke-dashoffset 1.6s cubic-bezier(.3, .6, .3, 1), opacity 500ms ease;
}
.approach-lines.is-visible line { stroke-dashoffset: 0; opacity: 0.55; }
.approach-lines.is-visible line:nth-of-type(2) { transition-delay: 700ms; }
.approach-grid { position: relative; z-index: 1; }

@media (max-width: 880px) {
  .approach-lines { display: none; }
}

/* На мобильных тяжёлые анимации отключаем — экономим батарею */
@media (max-width: 720px), (hover: none) {
  .hero::before { animation: none; }
  .hero__photo { transform: none !important; }
  .tilt { transform: none !important; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__photo { transform: none !important; }
  .tilt { transform: none !important; }
  .cursor-glow { display: none; }
  .approach-lines line { stroke-dashoffset: 0; opacity: 0.55; }
}
