/* =====================================================================
   Направление A · «Вечерняя студия» — Мастер Лидия, бровист, Челябинск
   ДНК 11-shampan-lyuks · liveliness_tier: commercial
   Скетч 2 экранов: Hero + Услуги
   ===================================================================== */

/* ---------- TOKENS ---------- */
:root {
  /* Палитра 60/30/10 — из мира клиента, без чистых #000/#FFF */
  --bg:            #0F0C0A;   /* 60% почти-чёрный тёплый */
  --surface:       #1D1815;   /* 30% тёплый уголь */
  --gold:          #C4A882;   /* 10% состаренное золото (акцент, ≤8% вьюпорта) */
  --offwhite:      #FAF7F0;   /* светлая section-alt */
  --text-on-dark:  #F3EDE5;   /* текст на тёмном  (16.76:1) */
  --text-on-light: #1A1513;   /* текст на светлом (16.91:1) */
  --text-muted:    #C9BFB1;   /* приглушённый на тёмном */

  /* Тень на тёмной теме — тёплая desaturated, НИКОГДА не чёрная */
  --shadow-warm:   0 18px 48px -24px rgba(196, 168, 130, .18);

  /* Шрифты */
  --font-display:  "Playfair Display", Georgia, serif;
  --font-body:     "Onest", "PT Root UI", "Segoe UI", system-ui, sans-serif;

  /* Модульная шкала ×1.25 (major third), body 17px */
  --step--1: 0.85rem;   /* 13.6 — служебное */
  --step-0:  1.0625rem; /* 17   — body */
  --step-1:  1.33rem;
  --step-2:  1.66rem;
  --step-3:  2.07rem;
  --step-4:  2.59rem;
  --step-5:  3.24rem;

  /* 8pt-сетка */
  --sp-1: 8px;  --sp-2: 16px; --sp-3: 24px; --sp-4: 32px;
  --sp-5: 48px; --sp-6: 64px; --sp-7: 96px; --sp-8: 128px;

  --radius: 4px;
  --ease:  cubic-bezier(.22, .61, .36, 1);  /* одна кривая на весь сайт */
  --dur:   260ms;
  --measure: 62ch;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
ul { list-style: none; }
a  { color: inherit; text-decoration: none; }

/* ---------- Межстраничные переходы (View Transitions, бюджет не расходуют) ---------- */
@view-transition { navigation: auto; }

/* ---------- ТИПОГРАФИКА ---------- */
.overline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-1);
  color: var(--gold);              /* золото — крупно/декоративно, 8.61:1 */
  letter-spacing: .02em;
  margin-bottom: var(--sp-3);
}

h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-6) var(--sp-3) var(--sp-6);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

/* Линейная маска-читаемость снизу (0 → 45%), тёплая темнота */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(15, 12, 10, .96) 0%,
    rgba(15, 12, 10, .82) 28%,
    rgba(15, 12, 10, .45) 62%,
    rgba(15, 12, 10, .12) 100%
  );
}

.hero__inner { max-width: 780px; }

.hero__title {
  font-size: clamp(2.5rem, 7vw, var(--step-5)); /* ≥40px на 375px — засечки держатся */
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--text-on-dark);      /* заголовок НЕ золотой — золото на линии/CTA */
  margin-bottom: var(--sp-4);
}

.hero__sub {
  max-width: var(--measure);
  color: var(--text-muted);
  font-size: var(--step-1);
  line-height: 1.6;
  margin-bottom: var(--sp-5);
}

.hero__scroll {
  position: absolute;
  right: var(--sp-3);
  bottom: var(--sp-4);
  font-size: var(--step--1);
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--gold);
  writing-mode: vertical-rl;
  opacity: .7;
}

/* ---------- КНОПКА (ОДНА, золото) ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;              /* крупный/жирный лейбл — держит APCA на золоте */
  font-size: var(--step-1);      /* ≈21px, крупно → золото легитимно и по APCA */
  letter-spacing: .01em;
  padding: 16px 40px;
  border-radius: var(--radius);
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.btn--gold {
  background: var(--gold);
  color: var(--text-on-light);     /* 7.99:1 — AA + AAA */
  box-shadow: var(--shadow-warm);
}

.btn--gold:hover,
.btn--gold:focus-visible {
  background: var(--bg);
  color: var(--gold);              /* инверсия, 8.61:1 на крупном лейбле */
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ============ УСЛУГИ ============ */
.services {
  padding: var(--sp-8) var(--sp-3);
  max-width: 1200px;
  margin-inline: auto;
}

.section__head { max-width: 720px; margin-bottom: var(--sp-6); }

.section__title {
  font-size: clamp(2rem, 5vw, var(--step-4));
  font-weight: 500;
  line-height: 1.1;
  color: var(--text-on-dark);
  margin-bottom: var(--sp-3);
}

.section__lead {
  max-width: var(--measure);
  color: var(--text-muted);
  font-size: var(--step-1);
}

/* Карточки — БЕЗ рамок и цветных полосок; разделение воздухом и тоном поверхности */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}

.card {
  background: var(--surface);      /* 30% поверхность — тон отделяет карточку */
  border-radius: var(--radius);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-warm); }

.card__name {
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-on-dark);
}

.card__desc { color: var(--text-muted); font-size: var(--step-0); }

.card__meta {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  margin-top: auto;
  padding-top: var(--sp-2);
}

/* Цена — крупная антиква (декоративно, золото допустимо ≥24px, 7.77:1 на surface) */
.card__price {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  color: var(--gold);
}

.card__dur { font-size: var(--step--1); color: var(--text-muted); letter-spacing: .04em; }

/* CTA под услугами */
.services__cta {
  margin-top: var(--sp-7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  text-align: center;
}

/* Тонкая золотая линия-разделитель (hairline, не border-left-декор) */
.hairline {
  width: 64px;
  height: 1px;
  background: var(--gold);
  opacity: .8;
}

/* ============ IMAGE PLACEHOLDERS (тёмно-золотистое тонирование, НЕ серые) ============ */
.img-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  background:
    radial-gradient(120% 90% at 70% 15%, rgba(196,168,130,.18), transparent 55%),
    linear-gradient(160deg, #1D1815 0%, #14100D 55%, #0F0C0A 100%);
  overflow: hidden;
}
.img-placeholder::after {
  /* тонкая золотая рамка-намёк, чтобы отличить от «пустоты» */
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(196,168,130,.22);
  border-radius: var(--radius);
  pointer-events: none;
}
.img-placeholder__label {
  font-family: var(--font-body);
  font-size: var(--step--1);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(196,168,130,.85);
  padding: var(--sp-2) var(--sp-3);
}
.img-placeholder--hero { min-height: 100svh; }

/* =====================================================================
   ДВИЖЕНИЕ (commercial): ОДНА система reveal + View Transitions
   Момент №1 — reveal секций через scroll-driven CSS, одна кривая.
   Момент №2 — View Transitions (бюджет не расходуют).
   ===================================================================== */

/* Только transform/opacity. Один приём, одна кривая для всех section */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    section {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 18%;
    }
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__inner {
    animation: reveal-up 700ms var(--ease) both;
  }
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- prefers-reduced-motion: всё движение отключено ---------- */
@media (prefers-reduced-motion: reduce) {
  section, .hero__inner { animation: none; opacity: 1; transform: none; }
  .btn, .card { transition: none; }
  .btn--gold:hover, .card:hover { transform: none; }
  @view-transition { navigation: none; }
}

/* =====================================================================
   АДАПТИВ — mobile-first: 375 (база) / 768 / 1440
   ===================================================================== */

/* Планшет */
@media (min-width: 768px) {
  .hero { padding: var(--sp-7) var(--sp-6) var(--sp-7); }
  .services { padding: var(--sp-8) var(--sp-6); }
  .cards { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
  /* Комбо-карточка (5-я) во всю ширину — акцент на итоговой услуге */
  .card:last-child { grid-column: 1 / -1; }
  .services__cta { flex-direction: row; justify-content: center; }
  .hero__title { letter-spacing: -.015em; }
}

/* Десктоп */
@media (min-width: 1440px) {
  .hero { padding-inline: var(--sp-8); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card:last-child { grid-column: auto; } /* на трёх колонках комбо возвращается в ряд */
  .section__head { margin-bottom: var(--sp-7); }
}

/* =====================================================================
   NAV — фиксированная, прозрачная → затемняется при скролле
   ===================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-3);
  background: transparent;
  transition: background var(--dur) var(--ease),
              backdrop-filter var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.nav.nav--scrolled {
  background: rgba(15, 12, 10, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(196,168,130,.08);
}

.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
}
.nav__logo-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-2);
  color: var(--gold);
  line-height: 1;
}
.nav__logo-role {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: lowercase;
}

.nav__links {
  display: none;
  list-style: none;
  gap: var(--sp-5);
  align-items: center;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .02em;
  transition: color var(--dur) var(--ease);
}
.nav__links a:hover { color: var(--text-on-dark); }

.nav__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--sp-1);
  color: var(--text-on-dark);
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: 0;
  background: rgba(15, 12, 10, .97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  list-style: none;
}
.nav__mobile.is-open { display: flex; }
.nav__mobile a {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 500;
  color: var(--text-on-dark);
  transition: color var(--dur) var(--ease);
}
.nav__mobile a:hover { color: var(--gold); }

@media (min-width: 768px) {
  .nav { padding: var(--sp-3) var(--sp-6); }
  .nav__links { display: flex; }
  .nav__burger { display: none; }
}
@media (min-width: 1440px) {
  .nav { padding-inline: var(--sp-8); }
}

/* =====================================================================
   MASTER — секция О мастере
   ===================================================================== */
.master {
  padding: var(--sp-8) var(--sp-3);
  max-width: 1200px;
  margin-inline: auto;
}

.master__layout {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.master__photo {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}

.master__text { display: flex; flex-direction: column; gap: var(--sp-4); }

.master__text p {
  color: var(--text-muted);
  font-size: var(--step-0);
  line-height: 1.7;
  max-width: var(--measure);
}

@media (min-width: 768px) {
  .master { padding: var(--sp-8) var(--sp-6); }
  .master__layout {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--sp-7);
  }
  .master__photo { max-width: 380px; }
}

@media (min-width: 1440px) {
  .master { padding-inline: var(--sp-8); }
  .master__photo { max-width: 440px; }
}

/* =====================================================================
   CERTS — заглушки сертификатов
   ===================================================================== */
.certs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}
.cert-placeholder {
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  min-width: 140px;
  flex: 1 1 140px;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100px;
}
.cert-placeholder__icon {
  opacity: .45;
  color: var(--gold);
}
.cert-placeholder__label {
  font-size: var(--step--1);
  color: var(--text-muted);
  letter-spacing: .04em;
}

/* =====================================================================
   PORTFOLIO — горизонтальная лента scroll-snap
   ===================================================================== */
.portfolio {
  padding: var(--sp-8) 0;
}
.portfolio__head {
  padding: 0 var(--sp-3);
  max-width: 1200px;
  margin-inline: auto;
  margin-bottom: var(--sp-6);
}

.portfolio-rail {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3) var(--sp-4);
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.portfolio-rail::-webkit-scrollbar { display: none; }
.portfolio-rail.is-dragging { cursor: grabbing; scroll-behavior: auto; }

.portfolio-item {
  scroll-snap-align: start;
  flex: 0 0 auto;
  display: flex;
  gap: var(--sp-2);
}

.ph-before,
.ph-after {
  position: relative;
  width: 220px;
  height: 300px;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 70% 15%, rgba(196,168,130,.14), transparent 55%),
    linear-gradient(160deg, #1D1815 0%, #14100D 55%, #0F0C0A 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  flex-shrink: 0;
}
.ph-before::after,
.ph-after::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(196,168,130,.18);
  border-radius: var(--radius);
  pointer-events: none;
}

.ph-label {
  font-size: var(--step--1);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(196,168,130,.7);
  padding: var(--sp-2) var(--sp-3);
  background: rgba(15,12,10,.6);
  width: 100%;
}

.portfolio__disclaimer {
  padding: var(--sp-4) var(--sp-3) 0;
  text-align: center;
  color: var(--text-muted);
  font-size: var(--step--1);
  max-width: 1200px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .portfolio__head { padding: 0 var(--sp-6); }
  .portfolio-rail { padding-inline: var(--sp-6); }
  .portfolio__disclaimer { padding-inline: var(--sp-6); }
  .ph-before, .ph-after { width: 260px; height: 360px; }
}
@media (min-width: 1440px) {
  .portfolio__head { padding-inline: var(--sp-8); }
  .portfolio-rail { padding-inline: var(--sp-8); }
  .portfolio__disclaimer { padding-inline: var(--sp-8); }
  .ph-before, .ph-after { width: 300px; height: 400px; }
}

/* =====================================================================
   PROCESS — светлая section-alt (Как проходит визит)
   ===================================================================== */
.process {
  background: var(--offwhite);
  color: var(--text-on-light);
  padding: var(--sp-8) var(--sp-3);
}

.process .overline { color: var(--gold); }

.process .section__title { color: var(--text-on-light); }

.process__lead {
  color: var(--text-on-light);
  opacity: .75;
  font-size: var(--step-0);
  max-width: var(--measure);
  margin-bottom: var(--sp-6);
}

.process__body {
  max-width: 1200px;
  margin-inline: auto;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
}

.step {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}

.step__num {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  width: 2ch;
}

.step__content { display: flex; flex-direction: column; gap: var(--sp-1); }

.step__title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  color: var(--text-on-light);
  line-height: 1.2;
}

.step__text {
  color: var(--text-on-light);
  opacity: .75;
  font-size: var(--step-0);
  line-height: 1.65;
  max-width: 56ch;
}

.process__images {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.process__img {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
}

/* img-placeholder на светлом фоне — немного другой тон */
.process .img-placeholder {
  background:
    radial-gradient(120% 90% at 70% 15%, rgba(196,168,130,.22), transparent 55%),
    linear-gradient(160deg, #E8E2D8 0%, #DDD7CC 55%, #D0CABD 100%);
}
.process .img-placeholder__label { color: rgba(90,75,60,.7); }
.process .img-placeholder::after { border-color: rgba(90,75,60,.18); }

@media (min-width: 768px) {
  .process { padding: var(--sp-8) var(--sp-6); }
  .process__images { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1440px) {
  .process { padding-inline: var(--sp-8); }
}

/* =====================================================================
   REVIEWS — карточки отзывов-заглушки
   ===================================================================== */
.reviews {
  padding: var(--sp-8) var(--sp-3);
  max-width: 1200px;
  margin-inline: auto;
}

.reviews__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}

.review-placeholder {
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: box-shadow var(--dur) var(--ease);
}
.review-placeholder:hover { box-shadow: var(--shadow-warm); }

.review-placeholder__stars {
  display: flex;
  gap: 4px;
  color: var(--gold);
  font-size: var(--step-1);
  opacity: .55;
}

.review-placeholder__text {
  color: var(--text-muted);
  font-size: var(--step-0);
  line-height: 1.65;
  font-style: italic;
}

.review-placeholder__author {
  color: var(--text-muted);
  font-size: var(--step--1);
  letter-spacing: .04em;
  opacity: .7;
}

.reviews__disclaimer {
  margin-top: var(--sp-4);
  text-align: center;
  font-size: var(--step--1);
  color: var(--text-muted);
  opacity: .65;
}

@media (min-width: 768px) {
  .reviews { padding: var(--sp-8) var(--sp-6); }
  .reviews__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1440px) {
  .reviews { padding-inline: var(--sp-8); }
}

/* =====================================================================
   FAQ — details/summary аккордеон
   ===================================================================== */
.faq {
  padding: var(--sp-8) var(--sp-3);
  max-width: 800px;
  margin-inline: auto;
}

.faq__list {
  margin-top: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(196,168,130,.15);
}

details.faq__item {
  border-bottom: 1px solid rgba(196,168,130,.15);
}

details.faq__item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--text-on-dark);
  user-select: none;
  transition: color var(--dur) var(--ease);
}
details.faq__item summary::-webkit-details-marker { display: none; }
details.faq__item summary::marker { display: none; }
details.faq__item[open] summary { color: var(--gold); }
details.faq__item summary:hover { color: var(--gold); }

.faq__marker {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--step-2);
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1;
  transition: transform var(--dur) var(--ease);
}
details.faq__item[open] .faq__marker { transform: rotate(45deg); }

.faq__answer {
  padding: 0 0 var(--sp-4);
  color: var(--text-muted);
  font-size: var(--step-0);
  line-height: 1.7;
  max-width: 64ch;
}

@media (min-width: 768px) {
  .faq { padding: var(--sp-8) var(--sp-6); }
}
@media (min-width: 1440px) {
  .faq { padding-inline: var(--sp-8); max-width: 900px; }
}

/* =====================================================================
   CONTACTS — блок записи + форма
   ===================================================================== */
.contacts {
  padding: var(--sp-8) var(--sp-3);
  max-width: 1200px;
  margin-inline: auto;
}

.contacts__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-7);
  margin-top: var(--sp-6);
}

.contacts__cta-block {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  align-items: flex-start;
}

.contacts__sub {
  color: var(--text-muted);
  font-size: var(--step-1);
  line-height: 1.6;
  max-width: var(--measure);
}

.contacts__info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.contacts__info-row {
  color: var(--text-muted);
  font-size: var(--step-0);
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
}

.contacts__info-label {
  color: var(--gold);
  font-size: var(--step--1);
  letter-spacing: .06em;
  text-transform: uppercase;
  min-width: 80px;
  padding-top: 2px;
}

.contacts__socials {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}

.social-link {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text-muted);
  font-size: var(--step-0);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius);
  background: var(--surface);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.social-link:hover {
  color: var(--text-on-dark);
  background: rgba(196,168,130,.12);
}
.social-link svg { flex-shrink: 0; }

/* Разделитель «или» */
.contacts__divider {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--text-muted);
  font-size: var(--step--1);
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .5;
}
.contacts__divider::before,
.contacts__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: .3;
}

/* ФОРМА */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.form__label {
  font-size: var(--step--1);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form__input {
  background: var(--surface);
  border: 1px solid rgba(196,168,130,.2);
  border-radius: var(--radius);
  padding: 16px var(--sp-3);
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--text-on-dark);
  outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form__input::placeholder { color: var(--text-muted); opacity: .55; }
.form__input:focus {
  border-color: rgba(196,168,130,.6);
  box-shadow: 0 0 0 3px rgba(196,168,130,.08);
}
.form__input.is-invalid {
  border-color: rgba(200,80,60,.5);
  box-shadow: 0 0 0 3px rgba(200,80,60,.08);
}

.form__error {
  font-size: var(--step--1);
  color: rgba(220,110,90,1);
  display: none;
}
.form__error.is-visible { display: block; }

/* Honeypot — скрыт от людей */
.form__honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
  tabindex: -1;
}

.form__checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--step--1);
  color: var(--text-muted);
  line-height: 1.5;
}

.form__checkbox-row input[type="checkbox"] {
  margin-top: 4px;
  flex-shrink: 0;
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.form__checkbox-row a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(196,168,130,.4);
}

.form__msg {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius);
  font-size: var(--step-0);
  display: none;
}
.form__msg.is-visible { display: block; }
.form__msg--flood {
  background: rgba(196,168,130,.1);
  border: 1px solid rgba(196,168,130,.2);
  color: var(--gold);
}
.form__msg--success {
  background: rgba(100,160,100,.1);
  color: #A8D0A0;
  border: 1px solid rgba(100,160,100,.2);
}

@media (min-width: 768px) {
  .contacts { padding: var(--sp-8) var(--sp-6); }
  .contacts__layout { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1440px) {
  .contacts { padding-inline: var(--sp-8); }
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  background: var(--surface);
  padding: var(--sp-7) var(--sp-3) var(--sp-5);
  border-top: 1px solid rgba(196,168,130,.1);
}

.footer__inner {
  max-width: 1200px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

.footer__logo { display: flex; flex-direction: column; line-height: 1.2; }
.footer__logo-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-2);
  color: var(--gold);
  line-height: 1;
}
.footer__logo-role {
  font-size: var(--step--1);
  color: var(--text-muted);
  letter-spacing: .04em;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  list-style: none;
}
.footer__nav a {
  font-size: var(--step--1);
  color: var(--text-muted);
  letter-spacing: .04em;
  transition: color var(--dur) var(--ease);
}
.footer__nav a:hover { color: var(--text-on-dark); }

.footer__legal {
  font-size: var(--step--1);
  color: var(--text-muted);
  opacity: .6;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.footer__bottom {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(196,168,130,.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-2);
  font-size: var(--step--1);
  color: var(--text-muted);
  opacity: .55;
}

.footer__bottom a {
  color: var(--gold);
  opacity: 1;
  text-decoration: underline;
  text-decoration-color: rgba(196,168,130,.3);
  transition: opacity var(--dur) var(--ease);
}
.footer__bottom a:hover { opacity: .8; }

@media (min-width: 768px) {
  .footer { padding: var(--sp-7) var(--sp-6) var(--sp-5); }
  .footer__inner { grid-template-columns: 1fr 1fr 1fr; align-items: start; }
}
@media (min-width: 1440px) {
  .footer { padding-inline: var(--sp-8); }
}

/* =====================================================================
   SERVICES — дополнения (дисклеймер)
   ===================================================================== */
.services__disclaimer {
  margin-top: var(--sp-4);
  text-align: center;
  font-size: var(--step--1);
  color: var(--text-muted);
  opacity: .65;
}

/* =====================================================================
   Страницы privacy / thank-you / 404
   ===================================================================== */
.page-solo {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.page-solo__nav {
  padding: var(--sp-3) var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  border-bottom: 1px solid rgba(196,168,130,.1);
}

.page-solo__back {
  font-size: var(--step--1);
  color: var(--text-muted);
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  transition: color var(--dur) var(--ease);
}
.page-solo__back:hover { color: var(--gold); }

.page-solo__content {
  flex: 1;
  padding: var(--sp-7) var(--sp-3);
  max-width: 760px;
  margin-inline: auto;
  width: 100%;
}

.page-solo__content h1 {
  font-size: clamp(2rem, 5vw, var(--step-4));
  font-weight: 500;
  line-height: 1.15;
  color: var(--text-on-dark);
  margin-bottom: var(--sp-5);
}

.page-solo__content h2 {
  font-size: var(--step-2);
  font-weight: 500;
  color: var(--text-on-dark);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
}

.page-solo__content p,
.page-solo__content li {
  color: var(--text-muted);
  font-size: var(--step-0);
  line-height: 1.7;
  margin-bottom: var(--sp-3);
}

.page-solo__content ul,
.page-solo__content ol {
  padding-left: var(--sp-4);
  margin-bottom: var(--sp-3);
}
.page-solo__content ul { list-style: disc; }
.page-solo__content ol { list-style: decimal; }

.page-solo__content a { color: var(--gold); text-decoration: underline; }

.page-solo__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-4);
  padding: var(--sp-8) var(--sp-3);
  flex: 1;
}

@media (min-width: 768px) {
  .page-solo__nav { padding: var(--sp-3) var(--sp-6); }
  .page-solo__content { padding: var(--sp-7) var(--sp-6); }
}

/* =====================================================================
   prefers-reduced-motion — полная ветка (все анимации)
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  section, .hero__inner { animation: none !important; opacity: 1; transform: none; }
  .btn, .card, .nav, .social-link, .nav__links a,
  .review-placeholder, .footer__nav a, .footer__bottom a,
  .faq__marker, .nav__burger span, .page-solo__back { transition: none !important; }
  .btn--gold:hover, .card:hover { transform: none; }
  .details.faq__item[open] .faq__marker { transform: none; }
  @view-transition { navigation: none; }
  .portfolio-rail { scroll-behavior: auto; }
}

/* ============ МЕДИА-АССЕТЫ — растровые <img> ============ */

/* Hero background image */
.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: -2;
}

/* Master portrait */
.master__photo {
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Process & studio photos */
.process__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-top: var(--sp-4);
}

/* Portfolio img tags (override div-стили) */
.ph-before,
.ph-after {
  display: block;
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: var(--radius);
  background: none;  /* убрать CSS-фон, если был */
}
/* Лейбл До/После — только через aria-label теперь, скрытые span убраны */
