/* ============================================================
   Салон массажа «Тишина» — общая дизайн-система
   Палитра: theme.json | Шрифты: Cormorant Garamond + Manrope
   ============================================================ */

:root {
  --brand: #2F4739;
  --brand-hover: #24382C;
  --on-brand: #FFFFFF;
  --accent: #C0794A;
  --accent-hover: #A8653A;
  --on-accent: #FFFFFF;
  --bg: #FAF6F0;
  --surface: #FFFFFF;
  --text: #1E241F;
  --muted: #6B7169;
  --border: #E5DED4;

  --brand-deep: #1D2E24;
  --brand-soft: color-mix(in srgb, var(--brand) 8%, var(--bg));
  --accent-soft: color-mix(in srgb, var(--accent) 12%, var(--surface));
  --accent-glow: color-mix(in srgb, var(--accent) 35%, transparent);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;

  --container: 1280px;
  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 32px;

  --shadow-s: 0 2px 10px rgba(30, 36, 31, .06);
  --shadow-m: 0 12px 34px rgba(30, 36, 31, .10);
  --shadow-l: 0 28px 70px rgba(29, 46, 36, .18);

  --ease: cubic-bezier(.22, .8, .32, 1);
}

/* ---------- База ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .55em;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -.005em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: .4em; }
li::marker { color: var(--accent); }

strong { font-weight: 700; }

.nowrap, .num, .price { white-space: nowrap; }

::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- Контейнер ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.container--narrow { max-width: 880px; }

/* ---------- Типографические помощники ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.28rem);
  line-height: 1.6;
  color: var(--muted);
}

.text-muted { color: var(--muted); }
.text-center { text-align: center; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border: 0;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}

.btn:active { transform: translateY(1px) scale(.99); }

.btn--accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--on-accent);
  box-shadow: 0 10px 26px var(--accent-glow);
}

.btn--accent:hover {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent-hover));
  color: var(--on-accent);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px var(--accent-glow);
}

.btn--brand {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 10px 26px rgba(47, 71, 57, .28);
}

.btn--brand:hover {
  background: var(--brand-hover);
  color: var(--on-brand);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--brand);
  border: 2px solid color-mix(in srgb, var(--brand) 35%, transparent);
}

.btn--ghost:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--on-brand);
}

.btn--light {
  background: var(--surface);
  color: var(--brand);
  box-shadow: var(--shadow-s);
}

.btn--light:hover { background: var(--surface); color: var(--accent); transform: translateY(-2px); }

.btn--lg { padding: 19px 40px; font-size: 1.08rem; }
.btn--sm { padding: 11px 22px; font-size: .92rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: .01em;
  flex-shrink: 0;
}

.logo:hover { color: var(--brand); }

.logo::before {
  content: "";
  width: 12px;
  height: 12px;
  align-self: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--accent), var(--accent-hover));
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent);
}

.main-nav { margin-left: auto; }

.main-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: block;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .98rem;
  color: var(--text);
  text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.main-nav a:hover { background: var(--brand-soft); color: var(--brand); }

.main-nav a.is-active { background: var(--brand); color: var(--on-brand); }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}

.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { left: 0; right: 0; top: -7px; }
.nav-toggle span::after { left: 0; right: 0; top: 7px; }

.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }

  /* без JS меню остаётся обычной строкой-переносом */
  .js-nav .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-m);
    padding: 12px 20px 20px;
    display: none;
  }

  .js-nav .nav-open .main-nav { display: block; }

  .js-nav .main-nav ul { flex-direction: column; gap: 2px; }
  .js-nav .main-nav a { padding: 13px 16px; font-size: 1.05rem; }

  .main-nav ul { flex-wrap: wrap; justify-content: flex-end; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 104px);
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 88% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 65%),
    radial-gradient(700px 500px at -10% 110%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 60%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-copy h1 { margin-bottom: .45em; }

.hero-copy .lead { max-width: 34em; margin-bottom: 30px; }

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: -18px auto auto -18px;
  width: 130px;
  height: 130px;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  opacity: .16;
  z-index: -1;
}

.hero-card {
  position: absolute;
  left: -34px;
  bottom: 34px;
  max-width: 290px;
  padding: 20px 24px;
  border-radius: var(--radius-m);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .65);
  box-shadow: var(--shadow-m);
}

.hero-card .big {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  white-space: nowrap;
}

.hero-card .small { font-size: .92rem; color: var(--muted); margin-top: 6px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media img { aspect-ratio: 4 / 3; }
  .hero-card { left: 16px; bottom: 16px; }
}

/* ---------- Секции ---------- */

.section { padding: clamp(56px, 8vw, 110px) 0; }

.section--tinted {
  background:
    radial-gradient(700px 380px at 100% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%),
    var(--brand-soft);
}

.section--surface { background: var(--surface); }

.section--dark {
  background:
    radial-gradient(900px 500px at 85% -20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    linear-gradient(160deg, var(--brand), var(--brand-deep));
  color: color-mix(in srgb, var(--on-brand) 88%, transparent);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--on-brand); }

.section--dark .lead,
.section--dark p { color: color-mix(in srgb, var(--on-brand) 78%, transparent); }

.section--dark .eyebrow { color: color-mix(in srgb, var(--accent) 80%, #fff); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(34px, 4.5vw, 56px);
}

.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::after {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ---------- Полоса доверия (бейджи) ---------- */

.trust-band { padding: clamp(34px, 4vw, 52px) 0; }

.badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.badge {
  padding: 26px 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

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

.badge .badge-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  white-space: nowrap;
  margin-bottom: 8px;
}

.badge .badge-text { font-size: .95rem; color: var(--muted); }

@media (max-width: 900px) { .badges { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .badges { grid-template-columns: 1fr; } }

/* ---------- Разворот: текст + фото ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}

.split--reverse .split-media { order: 2; }

.split-media { position: relative; }

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
}

.split-media::after {
  content: "";
  position: absolute;
  right: -16px;
  bottom: -16px;
  width: 45%;
  height: 45%;
  border-radius: var(--radius-m);
  border: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  z-index: -1;
}

.split-body .lead { margin-bottom: 26px; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
}

/* ---------- Список преимуществ с маркерами ---------- */

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.check-list li {
  position: relative;
  padding-left: 46px;
  margin: 0;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C0794A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
}

.check-list li strong { display: block; margin-bottom: 2px; }
.check-list li span { color: var(--muted); font-size: .96rem; }

/* ---------- Шаги с большими номерами ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.steps--two { grid-template-columns: repeat(2, 1fr); }

.step {
  counter-increment: step;
  position: relative;
  padding: 30px 26px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

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

.step::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: color-mix(in srgb, var(--accent) 55%, transparent);
  margin-bottom: 14px;
}

.step h3 { font-size: 1.25rem; margin-bottom: .4em; }
.step p { font-size: .95rem; color: var(--muted); margin: 0; }

.section--dark .step {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: none;
}

.section--dark .step p { color: color-mix(in srgb, var(--on-brand) 70%, transparent); }
.section--dark .step::before { color: color-mix(in srgb, var(--accent) 75%, #fff); }

@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps, .steps--two { grid-template-columns: 1fr; } }

/* ---------- Карточки ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cards--two { grid-template-columns: repeat(2, 1fr); }
.cards--four { grid-template-columns: repeat(4, 1fr); }

.card {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  text-decoration: none;
  color: var(--text);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

a.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-m);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  color: var(--text);
}

.card .card-tag {
  align-self: flex-start;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .96rem; flex: 1; }

.card .card-link {
  margin-top: 18px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.card .card-link::after { content: "→"; transition: transform .25s var(--ease); }
a.card:hover .card-link::after { transform: translateX(5px); }

.card--img { padding: 0; overflow: hidden; }

.card--img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

a.card--img:hover img { transform: scale(1.04); }

.card--img .card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }

@media (max-width: 1000px) { .cards, .cards--four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards, .cards--two, .cards--four { grid-template-columns: 1fr; } }

/* ---------- Цены ---------- */

.price-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.price-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 30px 28px;
  box-shadow: var(--shadow-s);
}

.price-group--featured {
  background: linear-gradient(165deg, var(--brand), var(--brand-deep));
  border-color: transparent;
  color: color-mix(in srgb, var(--on-brand) 85%, transparent);
  box-shadow: var(--shadow-l);
  position: relative;
  overflow: hidden;
}

.price-group--featured::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%);
}

.price-group h3 { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.price-group--featured h3 { color: var(--on-brand); border-bottom-color: rgba(255, 255, 255, .16); }

.price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}

.price-line + .price-line { border-top: 1px dashed var(--border); }
.price-group--featured .price-line + .price-line { border-top-color: rgba(255, 255, 255, .16); }

.price-line .price-name { font-weight: 600; }
.price-line .price-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  text-align: right;
}

.price-group--featured .price-value { color: color-mix(in srgb, var(--accent) 70%, #fff); }

.price-line .price-note { display: block; font-size: .85rem; color: var(--muted); font-weight: 400; }
.price-group--featured .price-note { color: color-mix(in srgb, var(--on-brand) 60%, transparent); }

@media (max-width: 900px) { .price-groups { grid-template-columns: 1fr; } }

/* Таблица цен для служебных страниц */

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-s);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .98rem;
}

.table th, .table td { padding: 16px 22px; text-align: left; }

.table thead th {
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  white-space: nowrap;
}

.table tbody tr + tr td { border-top: 1px solid var(--border); }
.table tbody tr:hover { background: var(--brand-soft); }
.table td:last-child, .table th:last-child { white-space: nowrap; font-weight: 700; color: var(--accent); }

/* ---------- Отзывы ---------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.quote {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  position: relative;
}

.quote::before {
  content: "«";
  position: absolute;
  top: 6px;
  right: 22px;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: color-mix(in srgb, var(--accent) 22%, transparent);
}

.quote .stars { color: var(--accent); letter-spacing: 3px; font-size: 1rem; margin-bottom: 14px; }
.quote p { color: var(--text); font-size: .98rem; flex: 1; }

.quote .quote-author {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-weight: 700;
}

.quote .quote-author span { display: block; font-weight: 400; font-size: .88rem; color: var(--muted); }

@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: 14px; max-width: 860px; }

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.faq-list details[open] {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  box-shadow: var(--shadow-m);
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 60px 22px 26px;
  font-weight: 700;
  font-size: 1.06rem;
  position: relative;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -8px;
  border-right: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .3s var(--ease);
}

.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }

.faq-list .faq-answer {
  padding: 0 26px 24px;
  color: var(--muted);
}

.faq-list .faq-answer p { margin: 0; }

/* ---------- Мини-статья ---------- */

.mini-article {
  max-width: 820px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: clamp(30px, 4.5vw, 56px);
  box-shadow: var(--shadow-s);
}

.mini-article .lead { color: var(--text); }

.mini-article details { margin-top: 8px; }

.mini-article summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  color: var(--accent);
  padding: 10px 0;
}

.mini-article summary::-webkit-details-marker { display: none; }
.mini-article summary::after { content: "↓"; transition: transform .3s var(--ease); }
.mini-article details[open] summary::after { transform: rotate(180deg); }
.mini-article summary:hover { color: var(--accent-hover); }

.mini-article .article-body { padding-top: 14px; }
.mini-article .article-body p { color: var(--muted); }

/* ---------- Контактный блок / форма ---------- */

.contact-band {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  background:
    radial-gradient(600px 400px at 90% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%),
    linear-gradient(150deg, var(--brand), var(--brand-deep));
  color: var(--on-brand);
  padding: clamp(36px, 5vw, 64px);
  box-shadow: var(--shadow-l);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 4.5vw, 64px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.contact-band h2 { color: var(--on-brand); }
.contact-band .lead { color: color-mix(in srgb, var(--on-brand) 78%, transparent); }
.contact-band .eyebrow { color: color-mix(in srgb, var(--accent) 75%, #fff); }

.contact-points {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.contact-points li {
  position: relative;
  padding-left: 34px;
  margin: 0;
  font-weight: 600;
}

.contact-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.contact-form {
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-m);
  padding: clamp(26px, 3.5vw, 40px);
}

.form-field { margin-bottom: 18px; }

.form-field label {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: color-mix(in srgb, var(--on-brand) 85%, transparent);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 15px 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: var(--radius-s);
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
}

.form-field textarea { min-height: 110px; resize: vertical; }

.contact-form .btn { width: 100%; }

.form-note {
  margin: 14px 0 0;
  font-size: .82rem;
  color: color-mix(in srgb, var(--on-brand) 60%, transparent);
  text-align: center;
}

/* светлый вариант формы (на светлом фоне) */
.contact-form--light {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-m);
}

.contact-form--light .form-field label { color: var(--text); }
.contact-form--light .form-field input,
.contact-form--light .form-field textarea,
.contact-form--light .form-field select { border-color: var(--border); }
.contact-form--light .form-note { color: var(--muted); }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Контактные строки (телефон/адрес) */

.contact-lines { display: grid; gap: 14px; margin-top: 24px; }

.contact-line {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.contact-line .ico {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}

.contact-line strong { display: block; font-size: 1.12rem; }
.contact-line span { font-size: .9rem; color: var(--muted); }

/* ---------- Подвал ---------- */

.site-footer {
  background: linear-gradient(170deg, var(--brand-deep), #152019);
  color: color-mix(in srgb, var(--on-brand) 72%, transparent);
  padding: clamp(48px, 6vw, 80px) 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer-brand .logo { color: var(--on-brand); font-size: 1.9rem; }
.footer-brand p { margin-top: 16px; font-size: .95rem; max-width: 30em; }

.footer-col .footer-title {
  color: var(--on-brand);
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: color-mix(in srgb, var(--on-brand) 72%, transparent);
  text-decoration: none;
  font-size: .96rem;
  transition: color .2s;
}

.footer-col a:hover { color: var(--accent); }

.footer-contacts { display: grid; gap: 12px; font-size: .98rem; }
.footer-contacts a { color: var(--on-brand); font-weight: 700; text-decoration: none; font-size: 1.15rem; white-space: nowrap; }
.footer-contacts a:hover { color: var(--accent); }
.footer-contacts .muted { font-size: .9rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  padding-top: 28px;
  font-size: .88rem;
  color: color-mix(in srgb, var(--on-brand) 50%, transparent);
}

@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- CTA-полоса между секциями ---------- */

.cta-strip {
  border-radius: var(--radius-l);
  background:
    radial-gradient(500px 300px at 10% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 60%),
    linear-gradient(140deg, var(--brand), var(--brand-deep));
  color: var(--on-brand);
  padding: clamp(36px, 5vw, 60px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  justify-content: space-between;
  box-shadow: var(--shadow-l);
}

.cta-strip h2 { color: var(--on-brand); margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-strip p { color: color-mix(in srgb, var(--on-brand) 75%, transparent); margin: 8px 0 0; max-width: 40em; }

/* ---------- Галерея / широкое фото ---------- */

.wide-photo {
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-l);
}

.wide-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

@media (max-width: 700px) { .wide-photo img { aspect-ratio: 16 / 10; } }

/* ---------- Хлебные крошки ---------- */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  font-size: .9rem;
  color: var(--muted);
}

.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "·"; margin-right: 8px; color: var(--accent); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

/* ---------- Появление по прокрутке (только при живом JS) ---------- */

.js-anim .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.js-anim .reveal.is-in { opacity: 1; transform: none; }

.js-anim .reveal[data-delay="1"] { transition-delay: .08s; }
.js-anim .reveal[data-delay="2"] { transition-delay: .16s; }
.js-anim .reveal[data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-anim .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
