/* Студия «Чёрная орхидея» — цвета взяты из логотипа.
   Стиль: тёмный, «журнальный»: тонкие линии вместо карточек, крупная антиква, один акцент. */
:root {
  --bg: #08090a;
  --bg-tint: #0c1012;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f3f1ef;
  --muted: #a9b3b6;
  --teal: #4f7c86;
  --teal-light: #8fb7bf;
  --wine: #7a1c2c;
  --wine-light: #b8445a;
  --container: 1180px;
  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", Arial, sans-serif;
  --font-script: "Marck Script", "Cormorant Garamond", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-light); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--teal-light); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.1; margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; }
.skip-link:focus { left: 8px; }

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal-light);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 28px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1.2 var(--font-body); letter-spacing: 0.02em;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary { background: var(--wine-light); color: #fff; }
.btn-primary:hover { background: #a63a4f; color: #fff; }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--teal-light); color: #fff; }
.btn-sm { min-height: 42px; padding: 9px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 9, 10, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 50%; }
.brand span { font-family: var(--font-script); font-size: 26px; line-height: 1; white-space: nowrap; }
.brand:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-social { display: flex; align-items: center; gap: 8px; }
.header-social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; transition: transform .2s ease; }
.header-social a:hover { transform: translateY(-1px); }
.header-social svg { width: 28px; height: 28px; display: block; }
@media (max-width: 359px) { .header-social { display: none; } }

/* ---------- Меню «три полоски» ---------- */
.menu-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 50%;
  background: transparent; cursor: pointer;
}
.menu-toggle:hover { border-color: var(--teal-light); }
.menu-toggle span { display: block; height: 1.5px; background: var(--text); transition: transform .25s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.menu { position: fixed; inset: 64px 0 0; z-index: 40; }
.menu[hidden] { display: none; }
.menu-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); opacity: 0; transition: opacity .25s ease; }
.menu-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  overflow-y: auto; padding: 18px 28px 32px;
  background: var(--bg); border-left: 1px solid var(--line);
  transform: translateX(24px); opacity: 0; transition: transform .25s ease, opacity .25s ease;
}
.menu.is-open .menu-backdrop { opacity: 1; }
.menu.is-open .menu-panel { transform: none; opacity: 1; }
body.menu-open { overflow: hidden; }
.menu-group { display: grid; padding: 18px 0; border-bottom: 1px solid var(--line); }
.menu-group:last-child { border-bottom: 0; }
.menu-group a { padding: 6px 0; color: var(--text); text-decoration: none; font-size: 16px; }
.menu-group a:hover { color: var(--teal-light); }
.menu-main a { padding: 8px 0; font-family: var(--font-head); font-size: 30px; line-height: 1.15; }
.menu-main a[aria-current="page"] { color: var(--wine-light); }
.menu-title { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-light); }
.menu-social a { display: flex; align-items: center; gap: 12px; }
.menu-social svg { width: 24px; height: 24px; flex: none; }
.menu-docs a { font-size: 13px; color: var(--muted); }

/* ---------- Заголовок внутренних страниц ---------- */
.page-hero {
  padding: 56px 0 40px;
  background:
    radial-gradient(60% 120% at 90% 0%, rgba(79, 124, 134, 0.16), transparent 70%),
    radial-gradient(50% 120% at 0% 100%, rgba(122, 28, 44, 0.16), transparent 70%);
}
.page-hero h1 { font-size: clamp(40px, 9vw, 72px); }
.page-lead { margin: 16px 0 0; max-width: 36em; color: var(--muted); font-size: clamp(16px, 4.2vw, 19px); }
.section-flush { border-top: 0; padding-top: 24px; }
.link-arrow { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.link-arrow:hover { color: var(--teal-light); }

/* Услуги коротко на главной */
.teaser { border-top: 1px solid var(--line-strong); }
.teaser-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 22px 4px; border-bottom: 1px solid var(--line-strong);
  color: var(--text); text-decoration: none; transition: background-color .2s ease;
}
.teaser-item:hover { background: rgba(255, 255, 255, 0.025); color: #fff; }
.teaser-name { font-family: var(--font-head); font-size: clamp(24px, 5.5vw, 36px); line-height: 1.15; }
.teaser-price { flex: none; color: var(--teal-light); font-size: 15px; font-weight: 600; white-space: nowrap; }

/* Полоса с призывом записаться */
.cta-band { padding: 64px 0; border-top: 1px solid var(--line); background: linear-gradient(120deg, rgba(122, 28, 44, 0.22), transparent 60%), var(--bg-tint); }
.cta-inner { display: grid; gap: 24px; }
.cta-band h2 { font-size: clamp(32px, 6.5vw, 48px); }
.cta-band p:not(.eyebrow) { margin: 12px 0 0; color: var(--muted); }
.cta-actions { display: flex; flex-direction: column; gap: 10px; }
.cta-actions .btn { white-space: nowrap; }

/* ---------- Первый экран ---------- */
.hero { position: relative; overflow: hidden; padding: 28px 0 0; display: flex; flex-direction: column; }
.hero-media { order: 2; }
.hero-inner { position: relative; z-index: 2; }
.hero h1 .h1-main { display: block; font-size: clamp(34px, 9vw, 76px); font-weight: 500; }
.hero h1 .h1-sub {
  display: block; margin-top: 10px;
  font-size: clamp(21px, 5.4vw, 34px); font-style: italic; color: var(--teal-light);
}
.hero-lead { margin: 16px 0 0; max-width: 30em; font-size: clamp(16px, 4.2vw, 19px); color: var(--muted); }
.hero-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.hero-media { position: relative; margin-top: 8px; }
.hero-media img {
  width: 100%; height: auto;
  /* края картинки растворяются в фоне, без рамки */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
          mask-composite: intersect;
}

/* ---------- Секции ---------- */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(34px, 7vw, 52px); }
.section-head > p:not(.eyebrow) { margin: 14px 0 0; color: var(--muted); }
.section-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.muted-note { margin: 0; color: var(--muted); font-size: 14px; }

/* «Что вы получите» */
.benefits { display: grid; gap: 36px; }
.benefit { padding-top: 22px; border-top: 1px solid var(--line-strong); }
.num { display: block; font-family: var(--font-head); font-size: 20px; font-style: italic; color: var(--wine-light); }
.benefit h3 { margin: 10px 0 10px; font-size: 26px; }
.benefit p { margin: 0; color: var(--muted); }

/* Услуги: прайс-лист строками */
.services { border-top: 1px solid var(--line-strong); }
.svc { display: grid; gap: 14px; padding: 30px 0; border-bottom: 1px solid var(--line-strong); }
.svc h3 { font-size: clamp(28px, 6vw, 36px); }
.svc-tag { margin: 6px 0 0; color: var(--teal-light); font-style: italic; font-family: var(--font-head); font-size: 19px; }
.svc-body p { margin: 0; color: var(--muted); }
.svc-facts { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--text); }
.svc-facts li::before { content: "— "; color: var(--teal-light); }
.svc-body .svc-note { margin-top: 12px; font-size: 14px; color: #e3c2c9; }
.svc-cta { display: grid; gap: 14px; }
.svc-price { margin: 0; font-family: var(--font-head); font-size: 32px; font-weight: 600; line-height: 1.1; }
.svc-price small { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--muted); }
.svc-cta .btn { width: 100%; padding-left: 14px; padding-right: 14px; white-space: nowrap; font-size: clamp(13.5px, 3.9vw, 15px); }

/* Для кого */
.audience { display: grid; }
.audience-item { padding: 26px 0; border-top: 1px solid var(--line-strong); }
.audience-item h3 { font-size: clamp(30px, 6vw, 40px); font-style: italic; }
.audience-item p { margin: 10px 0 0; color: var(--muted); max-width: 30em; }

/* Почему выбирают */
.reasons { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: r; }
.reasons li { counter-increment: r; position: relative; padding: 20px 0 20px 52px; border-top: 1px solid var(--line); }
.reasons li::before {
  content: counter(r, decimal-leading-zero);
  position: absolute; left: 0; top: 19px;
  font-family: var(--font-head); font-style: italic; font-size: 20px; color: var(--wine-light);
}
.reasons strong { display: block; font-weight: 600; }
.reasons span { display: block; margin-top: 2px; color: var(--muted); font-size: 15px; }

/* Портфолио (пока без фото) */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gallery-item { margin: 0; }
.gallery-item a { display: block; }
.gallery-item img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--bg-tint); }
.gallery-item figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.portfolio-empty { display: grid; gap: 18px; }
.portfolio-empty h2 { font-size: clamp(34px, 7vw, 52px); }
.portfolio-empty > p { margin: 0; max-width: 34em; color: var(--muted); font-family: var(--font-head); font-style: italic; font-size: clamp(20px, 4.6vw, 26px); line-height: 1.35; }

/* Как проходит визит */
.steps { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 18px 0 18px 64px; border-top: 1px solid var(--line); }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 4px;
  font-family: var(--font-head); font-size: 44px; line-height: 1; color: var(--teal);
}
.notice {
  margin: 36px 0 0; padding: 4px 0 4px 18px; max-width: 760px;
  border-left: 2px solid var(--wine-light);
  color: #e3c2c9; font-size: 15px;
}

/* ---------- Запись ---------- */
.booking { display: grid; gap: 44px; }
.booking-aside h2 { font-size: clamp(34px, 7vw, 52px); }
.lead { margin: 14px 0 0; color: var(--muted); }
.address { margin: 26px 0 0; display: grid; gap: 8px; font-size: 15px; }
.address div { display: flex; gap: 12px; }
.address dt { width: 72px; flex: none; color: var(--muted); }
.address dd { margin: 0; }

/* Кнопки-контакты для записи */
.book-links { border-top: 1px solid var(--line-strong); }
.book-link {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 4px; border-bottom: 1px solid var(--line-strong);
  color: var(--text); text-decoration: none;
  transition: background-color .2s ease, padding .2s ease;
}
.book-link svg { flex: none; width: 44px; height: 44px; }
.book-text { flex: 1; min-width: 0; }
.book-title { display: block; font-family: var(--font-head); font-size: clamp(24px, 5.5vw, 32px); line-height: 1.15; }
.book-text small { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.book-arrow { flex: none; font-size: 24px; color: var(--wine-light); transition: transform .2s ease; }
.book-link:hover { color: #fff; background: rgba(255, 255, 255, 0.025); }
.book-link:hover .book-arrow { transform: translateX(4px); }
.book-link-quiet .book-title { font-size: clamp(20px, 4.6vw, 24px); color: var(--muted); }
.book-link-quiet svg { width: 34px; height: 34px; margin: 0 5px; }
.book-legal { margin: 18px 0 0; font-size: 13px; color: #7d888b; }

/* ---------- Карта во всю ширину ---------- */
.map-band { position: relative; border-top: 1px solid var(--line); }
.map-frame { position: relative; height: 420px; background: var(--bg-tint); }
#studio-map { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border: 0; }
#studio-map[hidden] { display: none; }
.map-fallback { position: absolute; inset: 0; margin: 0; padding: 20px; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 14px; }
.map-card-wrap { position: relative; }
.map-card { padding: 28px 0 8px; }
.map-title { margin: 0; font-family: var(--font-head); font-size: 30px; line-height: 1.15; }
.map-addr { margin: 8px 0 18px; color: var(--muted); }

/* ---------- Футер ---------- */
.footer { padding: 64px 0 28px; margin-top: 48px; border-top: 1px solid var(--line); background: #060708; font-size: 14px; color: var(--muted); }
.footer p { margin: 0; }
.footer-top { display: grid; gap: 36px; padding-bottom: 40px; }
.footer-brand { display: grid; gap: 10px; justify-items: start; }
.footer-tagline { font-family: var(--font-head); font-style: italic; font-size: 20px; color: var(--text); }
.footer-about { max-width: 22em; }
.footer-brand .btn { margin-top: 8px; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-title { margin-bottom: 4px !important; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-light); }
.footer-col a { color: var(--text); text-decoration: none; width: fit-content; }
.footer-col a:hover { color: var(--teal-light); }
.footer-msg { display: inline-flex; align-items: center; gap: 10px; }
.footer-msg svg { width: 22px; height: 22px; flex: none; }
.footer-bottom { display: grid; gap: 14px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: #fff; }
/* Простой футер на страницах документов */
.footer-grid { display: grid; gap: 26px; }
.footer-grid .footer-tagline { margin-top: 10px; }

/* ---------- Юридические страницы ---------- */
.doc { padding: 44px 0 72px; }
.doc .container { max-width: 820px; }
.doc-back { display: inline-flex; gap: 6px; margin-bottom: 26px; font-size: 14px; text-decoration: none; }
.doc h1 { margin: 0 0 10px; font-size: clamp(34px, 7vw, 50px); }
.doc h2 { margin: 40px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 28px; color: #fff; }
.doc p, .doc li { color: #d9dcdd; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc-meta { margin: 22px 0 8px; padding: 4px 0 4px 18px; border-left: 2px solid var(--teal); }
.doc-meta p { margin: 6px 0; }
.ph { background: rgba(184, 68, 90, 0.2); color: #f3c3cc; border-radius: 3px; padding: 0 4px; }

/* ---------- Адаптив ---------- */
@media (max-width: 420px) { .header-cta { display: none; } }
@media (max-width: 380px) {
  .brand span { font-size: 22px; }
  .header .btn-sm { padding: 8px 14px; }
}

@media (min-width: 560px) {
  .cta-actions { flex-direction: row; }
  .cta-actions .btn { flex: 0 0 200px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: row; }
  .hero-actions .btn { flex: 0 1 250px; padding-left: 16px; padding-right: 16px; white-space: nowrap; }
}

@media (min-width: 860px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .page-hero { padding: 96px 0 64px; }
  .section-flush { padding-top: 32px; }
  .cta-band { padding: 88px 0; }
  .cta-inner { grid-template-columns: 1fr auto; align-items: end; gap: 48px; }
  .section { padding: 112px 0; }
  .hero { min-height: calc(100svh - 64px); flex-direction: row; align-items: center; padding: 64px 0; }
  .hero-inner { width: 100%; }
  .hero-media { position: absolute; z-index: 1; top: 50%; right: 1%; width: 52%; margin: 0; transform: translateY(-50%); }
  .hero-inner > * { max-width: min(560px, 48vw); }

  .benefits { grid-template-columns: repeat(3, 1fr); gap: 40px; }

  .svc { grid-template-columns: 1fr 1.25fr 270px; gap: 40px; align-items: start; padding: 38px 0; }
  .svc-price { text-align: right; }

  .audience { grid-template-columns: 1fr 1fr; gap: 0 56px; }

  .why { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
  .why .section-head { margin-bottom: 0; position: sticky; top: 100px; }

  .portfolio-empty { grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: end; }

  .steps { grid-template-columns: repeat(5, 1fr); gap: 28px; }
  .steps li { padding: 64px 0 0; border-top-color: var(--line-strong); }
  .steps li::before { top: 14px; }

  .booking { grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: center; }

  .map-frame { height: 480px; }
  .map-card-wrap { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: flex; align-items: center; }
  .map-card {
    pointer-events: auto; width: 340px; padding: 30px 30px 32px;
    background: rgba(8, 9, 10, 0.92); border-left: 2px solid var(--wine-light);
  }

  .footer-top { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 40px; }
  .footer-bottom { grid-template-columns: 1fr auto; align-items: center; }
  .footer-grid { grid-template-columns: 1fr auto; align-items: end; }
}
