/* Сайт Майи Синдер — удаление тату и татуажа, Екатеринбург.
   Палитра и шкала — research/design-refs.md, вариант «Оникс».

   ПРАВИЛА, которые нельзя нарушать при правках:
   1) Цветов ровно столько, сколько в :root. Новых не заводить.
   2) Золото — акценты, заголовки, кнопки, тонкие линии. НИКОГДА длинные абзацы.
   3) Размеры шрифта — только из шкалы --fs-1..--fs-6. Новых не плодить.
   4) Радиус — var(--rad) / var(--rad-sm). На глаз не выставлять.
   5) 🔴 Фон страницы ЕДИНЫЙ. Секции НЕ разделяются ни линиями, ни полосами другого
      цвета: и то и другое владелец забраковал 05.09. Разделяют воздух и золотой мазок.
   6) Декор — нарисованные мазки (tools/build_decor.py), НЕ куски обложки VK.
   7) На мобиле декор выключен, blur не используем нигде (дорого по рендеру). */

:root {
  --bg: #0B0B0C;
  --surface: #16161A;
  --surface-2: #1D1D21;
  --text: #F5F1E8;
  --muted: #A8A29E;
  --gold: #D4AF37;
  --gold-soft: #E3C067;
  --gold-deep: #B8860B;
  --line: rgba(212, 175, 55, .2);
  --line-soft: rgba(245, 241, 232, .09);
  --grad-gold: linear-gradient(135deg, #F0CB63 0%, #D4AF37 45%, #B8860B 100%);

  --fs-1: clamp(31px, 4.9vw, 52px);
  --fs-2: clamp(24px, 3vw, 33px);
  --fs-3: clamp(18px, 1.45vw, 22px);
  --fs-4: clamp(16px, 1.25vw, 18px);
  --fs-5: clamp(15px, 1.05vw, 16px);
  --fs-6: 13px;

  --rad: 16px;
  --rad-sm: 10px;
  --pad: clamp(50px, 5vw, 78px);
  --serif: "Playfair Display", "PT Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-5)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-soft); }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.14; margin: 0; }
h1 { font-size: var(--fs-1); }
h2 { font-size: var(--fs-2); }
h3 { font-size: var(--fs-3); font-weight: 600; line-height: 1.3; }
p { margin: 0 0 12px; }

main { position: relative; }   /* якорь для сквозного слоя декора */
.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }

.section { position: relative; z-index: 1; padding: var(--pad) 0; }
.section > .wrap { position: relative; z-index: 2; }
.section__head { max-width: 680px; margin-bottom: clamp(22px, 2.6vw, 34px); }
.section__lead { color: var(--muted); font-size: var(--fs-4); margin: 10px 0 0; }

/* надзаголовок с волнистым золотым подчёркиванием */
.kicker {
  font-size: var(--fs-6); letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold-soft); font-weight: 500; margin: 0 0 10px;
  display: inline-flex; flex-direction: column; gap: 5px;
}
.kicker::after {
  content: ""; height: 6px; width: 100%;
  background: no-repeat left center/auto 6px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='6' viewBox='0 0 120 6'%3E%3Cpath d='M1 4C20 4 22 1.6 40 1.6S62 4.4 80 4.4 102 2 119 2' fill='none' stroke='%23D4AF37' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ——— золотой декор: СКВОЗНОЙ слой на всю страницу ———
   🔴 Мазки лежат НЕ внутри секций. Внутри секции их резала бы граница блока —
   получался обрубленный край (правка владельца 06.09). Здесь они свободно
   пересекают границы блоков, поэтому линия перетекает из одного в другой,
   а её концы растворяет маска. */
.deco-layer {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
/* мягкая подсветка фона: страница дышит и не выглядит плоско-чёрной */
.deco-layer::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 22% at 78% 6%, rgba(212, 175, 55, .07), transparent 70%),
    radial-gradient(55% 18% at 12% 34%, rgba(212, 175, 55, .05), transparent 70%),
    radial-gradient(60% 20% at 86% 62%, rgba(212, 175, 55, .05), transparent 70%),
    radial-gradient(55% 18% at 16% 88%, rgba(212, 175, 55, .045), transparent 70%);
}
.deco {
  position: absolute; pointer-events: none;
  background-repeat: no-repeat; background-size: contain; background-position: center;
  opacity: .5;
  /* концы мазка растворяются, поэтому обрыва по краю не видно */
  -webkit-mask-image: radial-gradient(ellipse at center, #000 42%, transparent 88%);
  mask-image: radial-gradient(ellipse at center, #000 42%, transparent 88%);
}
.deco--1 { background-image: url(../img/decor-brush-1.svg); }
.deco--2 { background-image: url(../img/decor-brush-2.svg); }
.deco--3 { background-image: url(../img/decor-brush-3.svg); }

/* ——— кнопки ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: var(--rad-sm); border: 1px solid transparent;
  font: 600 var(--fs-5)/1 var(--sans); text-decoration: none; cursor: pointer;
  white-space: nowrap; transition: filter .18s, background .18s, border-color .18s;
}
.btn--gold { background: var(--grad-gold); color: #0B0B0C; }
.btn--gold:hover { filter: brightness(1.12); }
.btn--ghost { background: transparent; color: var(--gold-soft); border-color: var(--line); }
.btn--ghost:hover { background: rgba(212, 175, 55, .1); border-color: var(--gold); }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; }

.cta-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  margin-top: clamp(20px, 2.4vw, 30px);
}
.cta-line p { margin: 0; color: var(--muted); font-size: var(--fs-4); flex: 1 1 260px; }

/* ——— шапка ——— */
.top {
  position: sticky; top: 0; z-index: 40; background: rgba(11, 11, 12, .94);
  border-bottom: 1px solid var(--line-soft);
}
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; }
.logo { font-family: var(--serif); font-size: 19px; color: var(--text); text-decoration: none; }
.logo b { color: var(--gold); font-weight: 700; }
.top__meta { display: flex; align-items: center; gap: 18px; font-size: var(--fs-6); color: var(--muted); }
.top__tel { color: var(--text); text-decoration: none; font-weight: 500; white-space: nowrap; }

/* ——— hero ——— */
.hero { position: relative; z-index: 1; padding: clamp(32px, 4vw, 64px) 0 clamp(38px, 4vw, 58px); }
.hero__grid {
  position: relative; z-index: 2; display: grid;
  grid-template-columns: 1.08fr .92fr; gap: clamp(26px, 3.5vw, 54px); align-items: center;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__sub { font-size: var(--fs-4); color: var(--muted); margin: 16px 0 22px; max-width: 27em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { font-size: var(--fs-6); color: var(--muted); margin: 12px 0 0; }
.hero__ph { position: relative; border-radius: var(--rad); overflow: hidden; border: 1px solid var(--line); }
.hero__ph img { width: 100%; aspect-ratio: 4/5; max-height: 500px; object-fit: cover; object-position: 50% 24%; }

.trust {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; margin-top: clamp(26px, 3vw, 38px);
  background: var(--line-soft); border: 1px solid var(--line-soft);
  border-radius: var(--rad); overflow: hidden;
}
.trust div { background: var(--bg); padding: 17px 18px; }
.trust b { display: block; font-family: var(--serif); font-size: var(--fs-3); color: var(--gold); font-weight: 700; }
.trust span { display: block; font-size: var(--fs-6); color: var(--muted); margin-top: 5px; line-height: 1.45; }

/* ——— карточки ——— */
.cards { display: grid; gap: 13px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--rad); padding: 20px 22px; transition: border-color .2s;
}
.card:hover { border-color: var(--line); }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); margin: 0; }
.card--gold { border-color: var(--line); }

/* ——— карусель работ ——— */
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  padding: 9px 17px; border-radius: 999px; border: 1px solid var(--line-soft);
  background: transparent; color: var(--muted); font: 500 var(--fs-6)/1 var(--sans); cursor: pointer;
}
.tab[aria-selected="true"] { border-color: var(--gold); color: var(--gold-soft); background: rgba(212, 175, 55, .08); }
.arrows { display: flex; gap: 8px; flex: none; }
.arrows button {
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--gold-soft);
  font-size: 17px; line-height: 1; transition: background .16s;
}
.arrows button:hover { background: rgba(212, 175, 55, .1); }
.rail {
  display: flex; gap: 13px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 4px;
}
.rail::-webkit-scrollbar { display: none; }
.rail figure {
  margin: 0; flex: 0 0 clamp(205px, 23vw, 258px); scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--rad); overflow: hidden;
}
.rail img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.rail figcaption { padding: 10px 13px; font-size: var(--fs-6); color: var(--gold-soft); }
.rail [hidden] { display: none; }

/* ——— блок доверия ——— */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 48px); align-items: center; }
.about ul { margin: 16px 0 0; padding: 0; list-style: none; }
.about li { position: relative; padding-left: 22px; margin-bottom: 8px; color: var(--muted); }
.about li::before { content: ""; position: absolute; left: 0; top: 11px; width: 9px; height: 1px; background: var(--gold); }
.quote {
  border-left: 2px solid var(--gold); padding: 2px 0 2px 18px; margin: 18px 0 0;
  font-family: var(--serif); font-size: var(--fs-4); font-style: italic;
}
.shots { display: grid; grid-template-columns: 1.3fr 1fr; gap: 11px; }
.shots figure { margin: 0; border-radius: var(--rad); overflow: hidden; border: 1px solid var(--line); }
.shots figure:first-child { grid-row: span 2; }
.shots img { width: 100%; height: 100%; object-fit: cover; }
.shots figure:first-child img { aspect-ratio: 3/4.3; }
.shots figure:not(:first-child) img { aspect-ratio: 4/3.2; }

.device {
  display: grid; grid-template-columns: 210px 1fr; gap: clamp(18px, 2.6vw, 36px);
  align-items: center; margin-top: clamp(22px, 3vw, 36px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--rad); padding: 20px clamp(20px, 2.6vw, 30px);
}
.device img { width: 100%; border-radius: var(--rad-sm); }
.device h3 { margin-bottom: 7px; }
.device p { color: var(--muted); margin: 0; }

.geo {
  margin-top: clamp(20px, 2.6vw, 32px); padding: 18px 22px;
  border: 1px solid var(--line); border-radius: var(--rad);
  color: var(--muted); font-size: var(--fs-5);
}
.geo b { color: var(--text); font-weight: 600; }

/* ——— отзывы ——— */
.rating { display: flex; align-items: baseline; gap: 12px; margin: clamp(24px, 3vw, 38px) 0 14px; }
.rating b { font-family: var(--serif); font-size: var(--fs-2); color: var(--gold); }
.rating span { font-size: var(--fs-6); color: var(--muted); }
.rev { display: grid; gap: 13px; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }
.rev blockquote {
  margin: 0; background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--rad); padding: 22px;
}
.rev p { font-size: var(--fs-5); }
.rev strong { color: var(--text); font-weight: 600; }
.rev footer { font-size: var(--fs-6); color: var(--muted); margin-top: 11px; }

/* ——— визит и цены ——— */
.steps { display: grid; gap: 11px; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); counter-reset: s; }
.steps > div {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--rad); padding: 18px 20px;
}
.steps > div::before {
  counter-increment: s; content: counter(s);
  font-family: var(--serif); font-size: var(--fs-3); color: var(--gold); display: block; margin-bottom: 7px;
}
.steps h3 { font-size: var(--fs-4); margin-bottom: 5px; }
.steps p { color: var(--muted); margin: 0; font-size: var(--fs-6); line-height: 1.55; }

.price-anchor { display: grid; gap: 11px; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); margin-bottom: 12px; }
.price-anchor div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--rad); padding: 18px 20px; }
.price-anchor span { display: block; font-size: var(--fs-6); color: var(--muted); }
.price-anchor b { display: block; font-family: var(--serif); font-size: var(--fs-3); color: var(--gold); margin-top: 6px; }
details.fold { border: 1px solid var(--line-soft); border-radius: var(--rad); background: var(--surface); }
details.fold > summary { padding: 15px 20px; cursor: pointer; font-weight: 600; color: var(--gold-soft); list-style: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: " +"; color: var(--gold); }
details.fold[open] > summary::after { content: " –"; }
.fold__body { padding: 0 20px 20px; }
table.price { width: 100%; border-collapse: collapse; font-size: var(--fs-5); }
table.price th, table.price td { padding: 9px 8px; text-align: left; border-bottom: 1px solid var(--line-soft); }
table.price th { font: 500 var(--fs-6)/1.4 var(--sans); color: var(--gold-soft); letter-spacing: .04em; text-transform: uppercase; }
table.price td:first-child { color: var(--muted); }
.price-note { font-size: var(--fs-6); color: var(--muted); margin-top: 12px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 2.8vw, 40px); align-items: start; }

.bonus {
  display: grid; gap: 10px; margin-top: 12px; padding: 18px 22px;
  border-radius: var(--rad); border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(212, 175, 55, .12), rgba(212, 175, 55, .03));
}
.bonus b { font-family: var(--serif); font-size: var(--fs-3); color: var(--gold); }
.bonus span { color: var(--muted); font-size: var(--fs-5); }

/* ——— FAQ ——— */
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary { padding: 17px 34px 17px 0; cursor: pointer; font-weight: 500; font-size: var(--fs-4); position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; color: var(--gold); font-size: 20px; }
.faq details[open] summary::after { content: "–"; }
.faq .faq__a { padding: 0 0 18px; color: var(--muted); max-width: 60em; }
.faq .faq__a p:last-child { margin-bottom: 0; }

/* ——— контакты ——— */
.contacts { margin: 0; }
.contacts dt { font-size: var(--fs-6); color: var(--muted); margin-top: 15px; }
.contacts dd { margin: 3px 0 0; font-size: var(--fs-4); }
.contacts a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }

.foot { border-top: 1px solid var(--line-soft); padding: 24px 0 34px; font-size: var(--fs-6); color: var(--muted); }
.foot__row { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: space-between; }
.foot a { color: var(--muted); }
.foot__legal { margin-top: 11px; line-height: 1.6; max-width: 70em; }

/* ——— поп-ап: квиз-расчёт ——— */
.modal {
  position: fixed; inset: 0; z-index: 60; display: none;
  background: rgba(6, 6, 7, .82); padding: 20px; overflow-y: auto;
}
.modal.is-open { display: grid; place-items: center; }
.modal__box {
  width: min(620px, 100%); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--rad);
  padding: clamp(22px, 3vw, 34px); position: relative;
}
.modal__close {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid var(--line-soft); background: transparent;
  color: var(--muted); font-size: 17px; line-height: 1; cursor: pointer;
}
.modal__close:hover { color: var(--text); border-color: var(--line); }

.quiz__bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: var(--fs-6); color: var(--muted); }
.quiz__track { flex: 1; height: 2px; background: var(--line-soft); border-radius: 2px; overflow: hidden; }
.quiz__fill { height: 100%; width: 20%; background: var(--grad-gold); transition: width .3s; }
.quiz__q { font-family: var(--serif); font-size: var(--fs-3); margin-bottom: 14px; }
.quiz__note { font-size: var(--fs-6); color: var(--muted); margin: 14px 0 0; }
.opts { display: grid; gap: 9px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.opt {
  text-align: left; padding: 14px 17px; border-radius: var(--rad-sm); cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line-soft); color: var(--text);
  font: 500 var(--fs-5)/1.4 var(--sans); transition: border-color .16s, background .16s;
}
.opt:hover { border-color: var(--gold); background: rgba(212, 175, 55, .07); }
.opt small { display: block; color: var(--muted); font-weight: 400; font-size: var(--fs-6); margin-top: 4px; }
.quiz__back { background: none; border: 0; color: var(--muted); font: 400 var(--fs-6)/1 var(--sans); cursor: pointer; padding: 14px 0 0; }
.quiz__send { display: grid; gap: 10px; margin-top: 4px; }
.quiz__summary {
  background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--rad-sm);
  padding: 14px 16px; margin-bottom: 16px; font-size: var(--fs-6); color: var(--muted);
}
.quiz__summary b { color: var(--text); font-weight: 600; }

/* ——— юр-страница и «спасибо» ——— */
.doc { padding: 44px 0 68px; }
.doc h1 { margin-bottom: 8px; }
.doc h2 { font-size: var(--fs-3); margin: 30px 0 10px; }
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-left: 20px; }
.doc .date { color: var(--muted); font-size: var(--fs-6); margin-bottom: 24px; }
.thanks { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.thanks p { color: var(--muted); max-width: 34em; margin-inline: auto; }

/* ——— появление при скролле (механика перенесена с сайта oncodoc) ——— */
.js-anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js-anim .reveal.is-up { transform: translateY(-18px); }
.js-anim .reveal.is-in { opacity: 1; transform: none; }

/* раскладка мазков по высоте страницы: каждый садится на стык блоков */
.deco--a { top: 1%;  right: -16%; width: 68%; aspect-ratio: 900/500; opacity: .6; }
.deco--b { top: 19%; left: -20%;  width: 66%; aspect-ratio: 900/500; opacity: .45; }
.deco--c { top: 40%; right: -18%; width: 64%; aspect-ratio: 900/500; opacity: .5; }
.deco--d { top: 61%; left: -18%;  width: 62%; aspect-ratio: 900/500; opacity: .4; }
.deco--e { top: 82%; right: -14%; width: 60%; aspect-ratio: 900/500; opacity: .45; }

/* ——— мобильный ——— */
@media (max-width: 900px) {
  .hero__grid, .about, .split { grid-template-columns: 1fr; }
  .hero__ph { order: -1; }
  .hero__ph img { aspect-ratio: 4/3; max-height: 320px; object-position: 50% 22%; }
  .deco { display: none; }
  .trust { grid-template-columns: 1fr 1fr; }
  .top__meta .top__hours { display: none; }
  .device { grid-template-columns: 130px 1fr; gap: 16px; }
  .arrows { display: none; }
  .rail-head { flex-direction: column; align-items: stretch; }
  .shots { grid-template-columns: 1fr 1fr; }
  .shots figure:first-child { grid-row: span 1; grid-column: span 2; }
  .shots figure:first-child img { aspect-ratio: 4/3; }
}
@media (max-width: 560px) {
  /* на узком экране текст рядом с фото сжимался в колонку в 200px — ставим друг под друга */
  .device { grid-template-columns: 1fr; }
  .device img { max-height: 220px; object-fit: cover; }
}
@media (max-width: 480px) {
  .btn { width: 100%; }
  .rail figure { flex-basis: 76vw; }
  .modal { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .js-anim .reveal { opacity: 1; transform: none; }
}
