/* Цвета и шрифты в одном месте — легко поменять под клинику */
:root {
  --bg: #f4efe8;        /* тёплый молочный фон */
  --card: #ebe3d8;      /* бежевые карточки */
  --ink: #2d1d12;       /* тёмно-коричневый текст */
  --muted: #6f5f52;     /* второстепенный текст */
  --gold: #b8955a;      /* золотой акцент */
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Lato", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body { background: var(--bg); color: var(--ink); font: 300 17px/1.6 var(--sans); }
img { display: block; max-width: 100%; }
em { font-style: italic; color: var(--gold); }
a { color: inherit; text-decoration: none; }

/* Кнопки */
.btn { display: inline-block; padding: 14px 28px; border: 0; cursor: pointer; font: 700 13px var(--sans);
  letter-spacing: .12em; text-transform: uppercase; transition: background .3s, opacity .3s; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #a3824a; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 12px; }
.btn-wide { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* Шапка: прозрачная над видео, светлая после него */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 18px clamp(16px, 4vw, 48px); color: #fff; transition: background .4s, color .4s; }
.nav.solid { background: rgba(244, 239, 232, .94); color: var(--ink); backdrop-filter: blur(8px); }
.logo img { height: 46px; width: auto; transition: filter .4s; }
.nav.solid .logo img { filter: brightness(.72); }  /* на светлой шапке золото темнее, чтобы читалось */
.nav-links { display: flex; gap: 28px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.nav-links a:hover { color: var(--gold); }

/* ===== Первый экран ===== */
.hero-track { height: 700vh; position: relative; }           /* длина прокрутки = длина «прогулки» */
.hero-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; background: #1b130c; }
#hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(20,12,6,.45) 0%, rgba(20,12,6,.1) 35%, rgba(20,12,6,.55) 100%); }

.room { position: absolute; left: clamp(16px, 7vw, 110px); bottom: 14vh; max-width: 620px; color: #fff;
  opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; pointer-events: none; }
.room.visible { opacity: 1; transform: none; pointer-events: auto; }
.room.center { left: 50%; bottom: auto; top: 50%; transform: translate(-50%, -40%); text-align: center; width: min(900px, 92vw); max-width: none; }
.room.center.visible { transform: translate(-50%, -50%); }
.room h1 { font: 400 clamp(38px, 6vw, 82px)/1.08 var(--serif); margin: 14px 0 18px; }
.room .sub { font-size: clamp(16px, 1.6vw, 19px); opacity: .9; max-width: 600px; margin: 0 auto; }
.r-num, .eyebrow { font: 700 12px var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.r-title { font: 400 clamp(34px, 5vw, 64px)/1.1 var(--serif); margin: 12px 0 14px; }
.r-desc { font-size: 18px; opacity: .9; margin-bottom: 24px; }
.room em { color: #e2c48e; }
.scroll-hint { margin-top: 48px; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; opacity: .8;
  animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(8px); } }

.progress { position: absolute; right: 22px; top: 20vh; height: 60vh; width: 2px; background: rgba(255,255,255,.2); }
.progress span { display: block; width: 100%; height: 0; background: var(--gold); }
/* Переключатель языков */
.nav-right { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; gap: 2px; }
.lang button { background: none; border: 0; color: inherit; cursor: pointer; padding: 6px 7px;
  font: 700 12px var(--sans); letter-spacing: .12em; opacity: .55; transition: opacity .3s, color .3s; }
.lang button:hover { opacity: 1; }
.lang button.active { opacity: 1; color: var(--gold); }

/* ===== Разделы ===== */
.block { padding: clamp(72px, 11vw, 140px) clamp(16px, 7vw, 110px); max-width: 1320px; margin: 0 auto; }
h2 { font: 400 clamp(32px, 4.6vw, 58px)/1.12 var(--serif); margin: 14px 0 28px; max-width: 900px; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 680px; margin-bottom: 32px; }
.reveal { opacity: 0; transform: translateY(40px); }  /* скрипт плавно показывает при прокрутке */

/* О салоне: монограмма слева, текст справа */
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: 64px; align-items: center; }
.about-mark { width: 100%; filter: brightness(.85); }
.address { color: var(--ink); margin: -12px 0 28px; padding-left: 14px; border-left: 2px solid var(--gold); }

/* ИИ-раздел */
.ai { background: var(--card); max-width: none; }
.ai > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.steps li { border-top: 1px solid #cdbfae; padding-top: 18px; color: var(--muted); }
.steps .n { display: block; font: 400 28px var(--serif); color: var(--gold); margin-bottom: 6px; }
.ai-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; align-items: stretch; }
.ai-panel { background: var(--bg); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.upload { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1.5px dashed var(--gold); padding: 34px 16px; cursor: pointer; text-align: center; transition: background .3s; }
.upload:hover { background: #efe6da; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-icon { font-size: 30px; color: var(--gold); line-height: 1; }
.upload-text { font-weight: 700; }
.upload-note { font-size: 13px; color: var(--muted); }
.panel-title { font: 700 12px var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid #cdbfae; background: none; padding: 8px 14px; font: 400 14px var(--sans); color: var(--ink); cursor: pointer; border-radius: 40px; }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.consent { display: flex; gap: 10px; font-size: 13px; color: var(--muted); align-items: flex-start; }
.consent input { margin-top: 4px; accent-color: var(--gold); }
.mock-note { font-size: 13px; color: var(--muted); text-align: center; }

.compare { position: relative; overflow: hidden; aspect-ratio: 720 / 570; background: #ddd; user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.after-wrap { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.tag { position: absolute; top: 14px; background: rgba(45,29,18,.7); color: #fff; font-size: 12px; letter-spacing: .15em; text-transform: uppercase; padding: 6px 12px; }
.tag-l { left: 14px; } .tag-r { right: 14px; }
.range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; }
.disclaimer { margin-top: 24px; font-size: 14px; color: var(--muted); text-align: center; }

/* Прайс-лист: три группы, у каждой фото и список «название ······ цена» */
.price-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.price-group { background: var(--card); overflow: hidden; }
.price-group img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; transition: transform .8s ease; }
.price-group:hover img { transform: scale(1.04); }
.pg-body { padding: 26px 24px 28px; }
.pg-num { font: 400 15px var(--serif); color: var(--gold); }
.price-group h3 { font: 400 25px/1.2 var(--serif); margin: 4px 0 18px; }
.price-list { list-style: none; display: grid; gap: 14px; }
.price-list li { display: flex; align-items: baseline; gap: 10px; }
.pl-name { font-size: 16px; }
.pl-name small { display: block; font-size: 13px; color: var(--muted); }
.price-list i { flex: 1; border-bottom: 1px dotted #b9a68f; transform: translateY(-4px); min-width: 16px; }
.price-list b { font: 400 21px var(--serif); color: var(--ink); white-space: nowrap; }
.price-note { margin-top: 28px; color: var(--muted); font-size: 15px; }
.price-note a { color: var(--gold); font-weight: 700; }

/* Вопросы */
.faq details { border-bottom: 1px solid #d8ccbd; padding: 20px 0; max-width: 860px; }
.faq summary { font: 400 21px var(--serif); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin-top: 12px; }

/* Форма записи */
.form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 900px; }
.form input, .form select { padding: 16px; border: 1px solid #cdbfae; background: #fff; font: 400 16px var(--sans); color: var(--ink); min-width: 0; }
.form input:focus, .form select:focus { outline: 2px solid var(--gold); outline-offset: -1px; }
.form button { grid-column: 1 / -1; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { grid-column: 1 / -1; font-size: 15px; min-height: 1.6em; }
.form-msg.ok { color: #3c7a4a; } .form-msg.err { color: #a2412f; }
.insta-alt { margin-top: 22px; color: var(--muted); }
.insta-alt a { color: var(--gold); font-weight: 700; }

.footer { background: var(--ink); color: #d9cbbb; padding: 56px clamp(16px, 7vw, 110px); display: grid; gap: 10px; }
.footer-logo { height: 56px; width: auto; margin-bottom: 8px; }
.footer a { color: var(--gold); }
.footer .small { font-size: 12px; opacity: .6; }

/* Телефон */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav { gap: 10px; }
  .nav-right { gap: 6px; }
  .lang button { padding: 6px 4px; }
  .steps, .price-groups, .ai-grid, .about-grid, .form { grid-template-columns: 1fr; }
  .about-grid { gap: 28px; }
  .about-mark { width: 140px; }
  .logo img { height: 28px; }
  .room { bottom: 10vh; right: 16px; }
  .r-desc { font-size: 16px; }
  .progress { display: none; }
}

/* Если человек отключил анимации в системе — показываем всё сразу */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .scroll-hint { animation: none; }
}
