:root {
  --bg: #0e0d0b;
  --bg-2: #141210;
  --bg-3: #1b1815;
  --line: rgba(212, 180, 120, 0.18);
  --line-strong: rgba(212, 180, 120, 0.4);
  --text: #ece4d6;
  --muted: #9c9284;
  --gold: #c9a96a;
  --gold-light: #ecd7a4;
  --gold-dark: #8d6f3a;
  --gold-grad: linear-gradient(120deg, #8d6f3a 0%, #d8bb7e 35%, #f3e2b6 50%, #c9a96a 65%, #8d6f3a 100%);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", sans-serif;
  --container: 1240px;
  --pad: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 1px solid var(--gold-light); outline-offset: 4px; }

.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--gold); opacity: 0.7; }
.title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(38px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.01em;
  margin-top: 20px;
}
.title em, .about__big em {
  font-style: italic;
  background: var(--gold-grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 30px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: #1a140a; background: var(--gold-grad); background-size: 220% 100%; background-position: 0% 0;
  border: 1px solid transparent; overflow: hidden; isolation: isolate;
  transition: background-position 0.8s var(--ease), transform 0.3s var(--ease), box-shadow 0.4s var(--ease);
}
.btn:hover { background-position: 100% 0; box-shadow: 0 14px 40px -18px rgba(214, 180, 110, 0.6); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn--ghost {
  background: transparent; color: var(--gold-light); border-color: var(--line-strong);
}
.btn--ghost:hover { background: rgba(201, 169, 106, 0.08); border-color: var(--gold); box-shadow: none; }
.btn--small { min-height: 42px; padding: 0 20px; font-size: 11px; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(14, 13, 11, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}
.header__inner {
  max-width: var(--container); margin: 0 auto; padding: 18px var(--pad);
  display: flex; align-items: center; gap: 40px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: 0.22em;
}
.logo__me { color: var(--gold); margin-left: 0.3em; font-style: italic; letter-spacing: 0.12em; }
.logo__mark {
  width: 9px; height: 9px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 169, 106, 0.15), 0 0 18px 2px rgba(236, 215, 164, 0.5);
}
.nav { display: flex; gap: 32px; margin-left: auto; }
.nav a {
  position: relative; font-size: 13px; letter-spacing: 0.06em; color: var(--muted);
  transition: color 0.3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; width: 44px; height: 44px; position: relative; margin-left: auto; }
.burger span {
  position: absolute; left: 10px; right: 10px; height: 1px; background: var(--gold-light);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: 1.6fr 1fr; align-items: end; gap: 40px;
  max-width: var(--container); margin: 0 auto; padding: 140px var(--pad) 100px;
}
.hero::before {
  content: ""; position: absolute; inset: 0 -50vw; z-index: -2;
  background:
    radial-gradient(60% 55% at 78% 30%, rgba(201, 169, 106, 0.16), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(141, 111, 58, 0.12), transparent 70%),
    var(--bg);
}
.hero__beam {
  position: absolute; z-index: -1; top: 46%; left: -50vw; right: -50vw; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(236, 215, 164, 0.1) 30%, var(--gold-light) 62%, rgba(236, 215, 164, 0.1) 80%, transparent);
  transform: rotate(-8deg); transform-origin: center;
  box-shadow: 0 0 22px 2px rgba(236, 215, 164, 0.35);
  animation: beam 7s var(--ease) infinite;
}
@keyframes beam {
  0%, 100% { opacity: 0.35; transform: rotate(-8deg) translateX(-6%); }
  50% { opacity: 1; transform: rotate(-8deg) translateX(6%); }
}
.hero__ring {
  position: absolute; z-index: -1; top: 12%; right: -4%;
  width: min(54vw, 640px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 50%, transparent 58%, rgba(201, 169, 106, 0.05) 59%, transparent 60%);
  animation: spin 60s linear infinite;
}
.hero__ring::before, .hero__ring::after {
  content: ""; position: absolute; border-radius: 50%;
}
.hero__ring::before { inset: 14%; border: 1px dashed rgba(212, 180, 120, 0.14); }
.hero__ring::after {
  width: 10px; height: 10px; top: -5px; left: calc(50% - 5px);
  background: var(--gold-light); box-shadow: 0 0 24px 6px rgba(236, 215, 164, 0.55);
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero__title {
  font-family: var(--serif); font-weight: 300; line-height: 0.82;
  font-size: clamp(88px, 17vw, 240px); letter-spacing: -0.02em;
  margin: 28px 0 36px;
}
.hero__line { display: block; }
.hero__line--accent {
  font-style: italic; padding-left: 0.9em;
  background: var(--gold-grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.hero__lead { max-width: 520px; font-size: clamp(16px, 1.4vw, 18px); color: #cfc5b5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero__aside { justify-self: end; padding-bottom: 10px; }
.facts { margin: 0; display: grid; gap: 0; border-left: 1px solid var(--line); }
.facts div { padding: 20px 0 20px 28px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--gold-light); }
.facts dd { margin: 8px 0 0; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.hero__scroll {
  position: absolute; left: var(--pad); bottom: 28px; width: 1px; height: 54px; background: var(--line);
  overflow: hidden;
}
.hero__scroll span {
  position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--gold-light);
  animation: drip 2.2s var(--ease) infinite;
}
@keyframes drip { to { top: 110%; } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(90px, 12vw, 160px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section__head { margin-bottom: clamp(48px, 7vw, 88px); }
.section__head--split { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; }
.section__note { max-width: 340px; color: var(--muted); font-size: 14px; }

/* About */
.about__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.about__big {
  font-family: var(--serif); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.3; font-weight: 300;
  margin-bottom: 28px; color: var(--text);
}
.about__text p:not(.about__big) { color: var(--muted); max-width: 560px; }

/* Benefits */
.benefits { background: var(--bg-2); }
.benefits__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(40px, 7vw, 110px);
}
.benefit {
  display: grid; grid-template-columns: 70px 1fr; gap: 20px;
  padding: 36px 0; border-top: 1px solid var(--line);
  transition: border-color 0.5s;
}
.benefit:nth-child(even) { transform: translateY(60px); }
.benefit.is-visible:nth-child(even) { transform: translateY(60px); }
.benefit:hover { border-color: var(--gold); }
.benefit__num { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--gold); line-height: 1; }
.benefit h3 { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; margin-bottom: 12px; }
.benefit p { color: var(--muted); font-size: 15px; }
.benefits .container { padding-bottom: 60px; }

/* Prices */
.tabs { display: flex; gap: 6px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.tab {
  position: relative; padding: 14px 26px 18px;
  font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); color: var(--muted);
  transition: color 0.3s;
}
.tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--gold-grad); transform: scaleX(0); transition: transform 0.5s var(--ease);
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--gold-light); }
.tab.is-active::after { transform: scaleX(1); }

.price-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(30px, 5vw, 70px); }
.price-panel__title {
  font-family: var(--serif); font-style: italic; font-size: 34px; color: var(--gold);
  padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid var(--line-strong);
}
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li {
  display: flex; align-items: baseline; gap: 12px; padding: 15px 0;
  border-bottom: 1px solid rgba(212, 180, 120, 0.08);
  transition: padding-left 0.4s var(--ease);
}
.price-list li:hover { padding-left: 8px; }
.price-list li:hover span { color: var(--gold-light); }
.price-list span { font-size: 15px; transition: color 0.3s; }
.price-list i { flex: 1; border-bottom: 1px dotted rgba(212, 180, 120, 0.3); transform: translateY(-4px); min-width: 20px; }
.price-list b { font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--gold-light); white-space: nowrap; }

/* Desktop: show all three columns, hide tabs */
@media (min-width: 981px) {
  .tabs { display: none; }
  .price-panel:nth-child(2) { transform: translateY(40px); }
}

.prices__cta {
  margin-top: clamp(80px, 9vw, 120px);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  padding: 34px 40px; border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(201, 169, 106, 0.07), transparent 70%);
}
.prices__cta p { font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); max-width: 620px; }

/* Masters */
.masters { background: var(--bg-2); overflow: hidden; }
.masters__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.master {
  position: relative; border: 1px solid var(--line); background: var(--bg-3);
  transition: border-color 0.5s, transform 0.6s var(--ease);
}
.master:hover { border-color: var(--line-strong); }
.master--offset { margin-top: 90px; }
.master__monogram {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  display: grid; place-items: center;
  background:
    radial-gradient(70% 90% at 50% 120%, rgba(201, 169, 106, 0.32), transparent 70%),
    linear-gradient(160deg, #1f1b16, #0f0e0c);
  border-bottom: 1px solid var(--line);
}
.master__monogram::before {
  content: ""; position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--line-strong);
}
.master__monogram::after {
  content: ""; position: absolute; left: -20%; right: -20%; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  box-shadow: 0 0 16px 1px rgba(236, 215, 164, 0.4);
  transform: rotate(-14deg) translateX(-100%); opacity: 0;
  transition: transform 1.4s var(--ease), opacity 0.6s;
}
.master:hover .master__monogram::after { transform: rotate(-14deg) translateX(100%); opacity: 1; }
.master__monogram span {
  position: relative; font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(110px, 13vw, 180px); line-height: 1;
  background: var(--gold-grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.master__body { padding: clamp(28px, 3.5vw, 44px); }
.master__role { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.master__name { font-family: var(--serif); font-size: clamp(44px, 4.6vw, 60px); line-height: 1.05; margin: 10px 0 18px; }
.master__text { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.master__phone {
  display: inline-block; font-family: var(--serif); font-size: clamp(26px, 2.6vw, 32px); color: var(--gold-light);
  margin-bottom: 26px; border-bottom: 1px solid var(--line); transition: border-color 0.3s;
}
.master__phone:hover { border-color: var(--gold); }
.master__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.master__actions .btn--tg { flex: 1 1 240px; }

/* Steps */
.steps__grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.steps__list { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps__list li {
  display: grid; grid-template-columns: 80px 1fr; align-items: baseline; gap: 20px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.steps__list li:first-child { border-top: 1px solid var(--line); }
.steps__list span { font-family: var(--serif); font-style: italic; font-size: 34px; color: var(--gold); }
.steps__list p { font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); line-height: 1.35; }

/* Contacts */
.contacts__card {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(60px, 9vw, 120px) clamp(24px, 6vw, 80px);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(201, 169, 106, 0.16), transparent 70%),
    var(--bg-2);
}
.contacts__card .eyebrow::after { content: ""; width: 36px; height: 1px; background: var(--gold); opacity: 0.7; }
.contacts__beam {
  position: absolute; top: 0; left: 50%; width: 1px; height: 100%;
  background: linear-gradient(180deg, var(--gold-light), transparent 40%);
  opacity: 0.6;
}
.contacts__title { position: relative; }
.contacts__address {
  position: relative; display: inline-block; margin-top: 22px;
  font-family: var(--serif); font-size: clamp(22px, 3vw, 28px); color: var(--text);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; transition: color 0.3s, border-color 0.3s;
}
.contacts__address:hover { color: var(--gold-light); border-color: var(--gold); }
.contacts__city { margin-top: 14px; color: var(--muted); font-size: 14px; letter-spacing: 0.06em; }
.contacts__list {
  position: relative; margin-top: 56px;
  display: grid; grid-template-columns: 1fr 1fr; max-width: 760px; margin-left: auto; margin-right: auto;
  border-top: 1px solid var(--line);
}
.contact { display: flex; flex-direction: column; gap: 6px; padding: 30px 20px; }
.contact + .contact { border-left: 1px solid var(--line); }
.contact__name { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--gold); margin-bottom: 6px; }
.contact a { font-size: 17px; transition: color 0.3s; }
.contact a:hover { color: var(--gold-light); }
.contact a + a { color: var(--muted); font-size: 14px; letter-spacing: 0.04em; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 44px 0 34px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer p { font-size: 13px; color: var(--muted); }
.footer__copy { letter-spacing: 0.04em; }
.footer__note { margin-top: 26px; font-size: 11px !important; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; translate: 0 28px; transition: opacity 1.1s var(--ease), translate 1.1s var(--ease); }
.reveal.is-visible { opacity: 1; translate: 0 0; }
.hero .reveal:nth-child(2) { transition-delay: 0.1s; }
.hero__title .reveal:nth-child(1) { transition-delay: 0.15s; }
.hero__title .reveal:nth-child(2) { transition-delay: 0.3s; }
.hero__lead.reveal { transition-delay: 0.45s; }
.hero__actions.reveal { transition-delay: 0.6s; }
.hero__aside.reveal { transition-delay: 0.75s; }
.no-js .reveal { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; translate: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .header__cta { display: none; }
}

@media (max-width: 980px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px;
    padding: 100px var(--pad) 40px;
    background: rgba(14, 13, 11, 0.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav a { font-family: var(--serif); font-size: 40px; color: var(--text); padding: 6px 0; }
  .nav a::after { display: none; }
  .header.menu-open { background: transparent; border-color: transparent; backdrop-filter: none; }

  .hero { grid-template-columns: 1fr; align-items: center; padding-top: 120px; padding-bottom: 90px; }
  .hero__aside { justify-self: stretch; }
  .facts { grid-template-columns: repeat(3, 1fr); border-left: 0; border-top: 1px solid var(--line); }
  .facts div { padding: 20px 12px 0 0; border-bottom: 0; }
  .facts dt { font-size: 30px; }
  .facts dd { font-size: 10px; letter-spacing: 0.1em; }
  .hero__ring { width: 90vw; top: 6%; right: -40%; }
  .hero__scroll { display: none; }

  .about__grid, .steps__grid { grid-template-columns: 1fr; }
  .benefits__list { grid-template-columns: 1fr; }
  .benefit:nth-child(even), .benefit.is-visible:nth-child(even) { transform: none; }
  .benefits .container { padding-bottom: 0; }

  .price-panels { display: block; }
  .price-panel { display: none; }
  .price-panel.is-active { display: block; animation: fadeUp 0.6s var(--ease); }
  .price-panel__title { display: none; }

  .masters__grid { grid-template-columns: 1fr; }
  .master--offset { margin-top: 0; }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  body { font-size: 15px; }
  .header__inner { padding-top: 14px; padding-bottom: 14px; }
  .logo { font-size: 20px; }
  .hero__line--accent { padding-left: 0.5em; }
  .hero__actions .btn { width: 100%; }
  .tab { padding: 12px 16px 14px; flex: 1; }
  .price-list b { font-size: 20px; }
  .price-list span { font-size: 14px; }
  .prices__cta { padding: 28px 22px; }
  .prices__cta .btn { width: 100%; }
  .master__actions .btn { width: 100%; flex: 1 1 100%; }
  .steps__list li { grid-template-columns: 50px 1fr; gap: 12px; }
  .contacts__list { grid-template-columns: 1fr; }
  .contact + .contact { border-left: 0; border-top: 1px solid var(--line); }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
