/* ============================================================
   РеСкупка — общий стиль сайта
   Палитра: theme.json (friendly)
   Шрифты: Playfair Display (заголовки) + Manrope (текст)
   ============================================================ */

:root {
  --color-brand: #1E3A8A;
  --color-brand-hover: #1E40AF;
  --color-on-brand: #FFFFFF;
  --color-accent: #D4AF37;
  --color-accent-hover: #B8941F;
  --color-on-accent: #ffffff;
  --color-bg: #fffaf3;
  --color-surface: #ffffff;
  --color-surface-2: #fff3e6;
  --color-text: #1c1917;
  --color-muted: #78716c;
  --color-border: #e7e5e4;

  --brand-ink: color-mix(in srgb, var(--color-brand) 88%, #000 12%);
  --brand-soft: color-mix(in srgb, var(--color-brand) 7%, var(--color-surface));
  --accent-soft: color-mix(in srgb, var(--color-accent) 14%, var(--color-surface));
  --accent-line: color-mix(in srgb, var(--color-accent) 45%, var(--color-border));

  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --shadow-s: 0 2px 10px rgba(28, 25, 23, 0.07);
  --shadow-m: 0 12px 34px rgba(28, 25, 23, 0.12);
  --shadow-l: 0 28px 70px rgba(28, 25, 23, 0.18);
  --container: 1280px;
  --header-h: 76px;
}

* { 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(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--color-brand); text-decoration: none; }
a:hover { color: var(--color-brand-hover); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

/* Числа и цены не рвём */
.num, .price, .nowrap { white-space: nowrap; }

/* ---------- Контейнер ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}
@media (max-width: 640px) {
  .container { padding-left: 18px; padding-right: 18px; }
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 14px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-hover) 100%);
  color: var(--color-on-brand);
  box-shadow: 0 10px 26px rgba(28, 25, 23, 0.2);
}
.btn-primary:hover {
  color: var(--color-on-brand);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(28, 25, 23, 0.26);
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  color: var(--color-on-accent);
  box-shadow: 0 10px 26px rgba(28, 25, 23, 0.2);
}
.btn-accent:hover {
  color: var(--color-on-accent);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(28, 25, 23, 0.26);
}

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

.btn-lg { padding: 18px 38px; font-size: 17px; }
.btn-sm { padding: 11px 22px; font-size: 14px; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}
.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--color-brand);
  letter-spacing: 0.01em;
  white-space: nowrap;
  margin-right: auto;
}
.logo:hover { color: var(--color-brand-hover); }
.logo .logo-accent { color: var(--color-accent); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > a,
.main-nav > .nav-group > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.main-nav > a:hover,
.main-nav > .nav-group > button:hover {
  background: var(--brand-soft);
  color: var(--color-brand);
}
.main-nav > a.is-active { color: var(--color-brand); background: var(--brand-soft); }

.nav-group { position: relative; }
.nav-group > button .caret {
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}
.nav-group.open > button .caret { transform: rotate(225deg) translateY(-1px); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-m);
  padding: 8px;
  display: none;
}
.nav-group.open .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block;
  padding: 11px 16px;
  border-radius: var(--radius-s);
  color: var(--color-text);
  font-weight: 600;
  font-size: 15px;
}
.nav-dropdown a:hover { background: var(--brand-soft); color: var(--color-brand); }

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

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-s);
  background: var(--color-surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--color-brand);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-m);
    padding: 14px 20px 20px;
  }
  .main-nav.open { display: flex; }
  .main-nav > a, .main-nav > .nav-group > button {
    width: 100%;
    justify-content: space-between;
    padding: 13px 16px;
  }
  .nav-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--brand-soft);
    margin-top: 4px;
  }
  .header-cta { display: none; }
}

/* ---------- Секции ---------- */
.section { padding: 104px 0; }
.section-lg { padding: 148px 0; }
.section-sm { padding: 76px 0; }
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-lg { padding: 88px 0; }
  .section-sm { padding: 52px 0; }
}

.section-tinted {
  background:
    radial-gradient(900px 400px at 85% -10%, var(--accent-soft), transparent 65%),
    radial-gradient(700px 380px at 5% 110%, var(--brand-soft), transparent 60%),
    var(--color-surface-2);
}
.section-surface { background: var(--color-surface); }

.section-dark {
  background:
    radial-gradient(1000px 500px at 110% -20%, color-mix(in srgb, var(--color-accent) 22%, transparent), transparent 60%),
    radial-gradient(800px 480px at -10% 120%, color-mix(in srgb, var(--color-brand-hover) 55%, transparent), transparent 65%),
    linear-gradient(160deg, var(--brand-ink) 0%, var(--color-brand) 100%);
  color: var(--color-on-brand);
}
.section-dark h1, .section-dark h2, .section-dark h3,
.section-dark .section-title { color: #fff; }
.section-dark p, .section-dark li { color: rgba(255, 255, 255, 0.82); }
.section-dark .section-subtitle { color: rgba(255, 255, 255, 0.72); }

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-hover);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  border-radius: 2px;
}
.section-head.center .eyebrow::after {
  content: "";
  width: 28px; height: 2px;
  background: linear-gradient(-90deg, var(--color-accent), transparent);
  border-radius: 2px;
}
.section-dark .eyebrow { color: var(--color-accent); }

.section-subtitle {
  font-size: 18px;
  color: var(--color-muted);
  margin: 0;
}

/* ---------- Герой ---------- */
.hero {
  position: relative;
  padding: 84px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 92% 0%, var(--accent-soft), transparent 60%),
    radial-gradient(760px 420px at -8% 90%, var(--brand-soft), transparent 60%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 .hl {
  background: linear-gradient(120deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.hero-subtitle {
  font-size: 19px;
  color: var(--color-muted);
  max-width: 540px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.hero-facts li {
  display: flex;
  flex-direction: column;
  margin: 0;
}
.hero-facts .fact-value {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--color-brand);
  white-space: nowrap;
  line-height: 1.15;
}
.hero-facts .fact-label {
  font-size: 13.5px;
  color: var(--color-muted);
}

.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: -22px auto auto -22px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  z-index: -1;
}
.hero-badge {
  position: absolute;
  left: -26px;
  bottom: 36px;
  background: color-mix(in srgb, var(--color-surface) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-m);
  padding: 16px 22px;
  max-width: 250px;
}
.hero-badge .hero-badge-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--color-brand);
  white-space: nowrap;
}
.hero-badge .hero-badge-label { font-size: 13.5px; color: var(--color-muted); }

@media (max-width: 960px) {
  .hero { padding: 56px 0 70px; }
  .hero .container { grid-template-columns: 1fr; gap: 44px; }
  .hero-media { max-width: 560px; }
  .hero-badge { left: 14px; bottom: 18px; }
}

/* ---------- Полоса преимуществ ---------- */
.badges {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.badge-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 24px 20px;
  box-shadow: var(--shadow-s);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.badge-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-m);
  border-color: var(--accent-line);
}
.badge-card .badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-soft), var(--brand-soft));
  color: var(--color-brand);
  margin-bottom: 14px;
}
.badge-card .badge-icon svg { width: 22px; height: 22px; }
.badge-card h3 { font-family: var(--font-body); font-size: 16px; font-weight: 800; margin: 0 0 6px; }
.badge-card p { font-size: 14px; color: var(--color-muted); margin: 0; }

@media (max-width: 1020px) { .badges { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .badges { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .badges { grid-template-columns: 1fr; } }

/* ---------- Карточки услуг ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) {
  .cards-grid, .cards-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cards-grid, .cards-grid.cols-2, .cards-grid.cols-4 { grid-template-columns: 1fr; }
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-s);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-l); }
.service-card .card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.service-card .card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover .card-img img { transform: scale(1.05); }
.service-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px 28px 30px;
}
.service-card h3 { margin-bottom: 10px; }
.service-card .card-text { color: var(--color-muted); font-size: 15.5px; margin-bottom: 18px; }
.service-card .card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 8px;
}
.service-card .card-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  margin: 0;
}
.service-card .card-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1.5px solid var(--color-accent);
}
.service-card .card-list li::after {
  content: "";
  position: absolute;
  left: 4px; top: 10px;
  width: 6px; height: 3px;
  border-left: 2px solid var(--color-accent-hover);
  border-bottom: 2px solid var(--color-accent-hover);
  transform: rotate(-45deg);
}
.service-card .card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 800;
  font-size: 15px;
  color: var(--color-brand);
}
.service-card .card-link .arrow { transition: transform 0.25s ease; }
.service-card .card-link:hover .arrow { transform: translateX(5px); }

/* ---------- Шаги ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 30px 24px 28px;
  box-shadow: var(--shadow-s);
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 { font-family: var(--font-body); font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--color-muted); margin: 0; }
.section-dark .step {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.section-dark .step h3 { color: #fff; }
@media (max-width: 1020px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Особенности с фото ---------- */
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-s);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); }
.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.feature-card .feature-body { padding: 26px 26px 30px; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { font-size: 15.5px; color: var(--color-muted); margin: 0; }

/* ---------- Отзывы ---------- */
.review-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  padding: 30px;
  box-shadow: var(--shadow-s);
}
.review-card .stars {
  display: inline-flex;
  gap: 3px;
  color: var(--color-accent);
  margin-bottom: 16px;
}
.review-card .stars svg { width: 17px; height: 17px; }
.review-card blockquote {
  margin: 0 0 22px;
  font-size: 15.5px;
  color: var(--color-text);
  flex: 1;
}
.review-card .review-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}
.review-card .review-author img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-line);
}
.review-card .review-name { font-weight: 800; font-size: 15px; }
.review-card .review-role { font-size: 13.5px; color: var(--color-muted); }

/* ---------- Цены / таблицы ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background: var(--color-surface);
  box-shadow: var(--shadow-s);
}
table.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  min-width: 560px;
}
.price-table th, .price-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.price-table thead th {
  background: var(--brand-soft);
  color: var(--color-brand);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover { background: var(--color-surface-2); }
.price-table td:last-child { white-space: nowrap; font-weight: 800; color: var(--color-brand); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; max-width: 860px; }
.faq details,
details.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
details.faq-item[open] { border-color: var(--accent-line); box-shadow: var(--shadow-m); }
details.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 26px;
  font-weight: 800;
  font-size: 16.5px;
  cursor: pointer;
  list-style: none;
  color: var(--color-text);
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px; height: 10px;
  border-right: 2.5px solid var(--color-accent-hover);
  border-bottom: 2.5px solid var(--color-accent-hover);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}
details.faq-item[open] summary::after { transform: rotate(225deg); }
details.faq-item .faq-answer {
  padding: 0 26px 22px;
  color: var(--color-muted);
  font-size: 15.5px;
}
details.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Мини-статья ---------- */
.mini-article {
  max-width: 860px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  padding: 44px 48px;
  box-shadow: var(--shadow-s);
}
@media (max-width: 640px) { .mini-article { padding: 28px 22px; } }
.mini-article h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.mini-article h3 { margin-top: 1.6em; }
.mini-article .lead {
  font-size: 18.5px;
  color: var(--color-text);
  border-left: 3px solid var(--color-accent);
  padding-left: 20px;
}
.mini-article p, .mini-article li { color: var(--color-muted); }
.mini-article details { margin-top: 8px; }
.mini-article details summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  color: var(--color-brand);
  padding: 12px 0;
}
.mini-article details summary::-webkit-details-marker { display: none; }
.mini-article details summary::after {
  content: "";
  width: 9px; height: 9px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}
.mini-article details[open] summary::after { transform: rotate(225deg); }
.mini-article details .article-body { padding-top: 6px; }

/* ---------- Форма ---------- */
.form-card {
  background: color-mix(in srgb, var(--color-surface) 90%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid color-mix(in srgb, var(--color-border) 80%, transparent);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  padding: 38px;
}
@media (max-width: 640px) { .form-card { padding: 26px 20px; } }
.form-card h2, .form-card h3 { margin-bottom: 8px; }
.form-card .form-title { font-size: 1.5rem; }
.form-card .form-sub { color: var(--color-muted); font-size: 15.5px; margin-bottom: 24px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .field-full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  margin-bottom: 7px;
  color: var(--color-text);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-s);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-brand) 12%, transparent);
}
.form-privacy {
  font-size: 13px;
  color: var(--color-muted);
  margin: 16px 0 0;
}

/* ---------- CTA-блок с формой ---------- */
.cta-split .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 960px) { .cta-split .container { grid-template-columns: 1fr; gap: 40px; } }
.cta-points {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 14px;
}
.cta-points li {
  position: relative;
  padding-left: 34px;
  margin: 0;
  font-size: 16.5px;
}
.cta-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1.5px solid var(--color-accent);
}
.cta-points li::after {
  content: "";
  position: absolute;
  left: 6px; top: 9px;
  width: 9px; height: 5px;
  border-left: 2.5px solid var(--color-accent-hover);
  border-bottom: 2.5px solid var(--color-accent-hover);
  transform: rotate(-45deg);
}

/* ---------- Подвал ---------- */
.site-footer {
  background: linear-gradient(160deg, var(--brand-ink), var(--color-brand));
  color: rgba(255, 255, 255, 0.8);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 52px;
}
@media (max-width: 1020px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .logo { color: #fff; }
.footer-brand .logo:hover { color: #fff; }
.footer-brand p { font-size: 14.5px; color: rgba(255, 255, 255, 0.66); max-width: 300px; }
.footer-col h4,
.footer-heading {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14.5px;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 22px 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Прочее ---------- */
.note-card {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-m);
  padding: 22px 26px;
  font-size: 15.5px;
}
.note-card strong { color: var(--color-accent-hover); }

.check-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 32px; margin: 0; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 1.5px solid var(--color-brand);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 6px; top: 8px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--color-brand);
  border-bottom: 2px solid var(--color-brand);
  transform: rotate(-45deg);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse > .split-media { order: 2; }
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > .split-media { order: 0; }
}
.split-media img {
  width: 100%;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- Утилиты ---------- */
.u-w-full { width: 100%; }
.u-mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Появление по прокрутке (безопасно) ---------- */
.js-anim .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-anim .reveal.is-in {
  opacity: 1;
  transform: none;
}
.js-anim .reveal[data-delay="1"] { transition-delay: 0.1s; }
.js-anim .reveal[data-delay="2"] { transition-delay: 0.2s; }
.js-anim .reveal[data-delay="3"] { transition-delay: 0.3s; }
.js-anim .reveal[data-delay="4"] { transition-delay: 0.4s; }

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