/* ============================================================
   Студия картин по фото — стили лендинга (розовый вариант)
   Дизайн-система: тёплая светлая палитра «Розовое золото» + крем
   ============================================================ */

/* ---------- Переменные и сброс ---------- */
:root {
  --bg: #FBF6F0;
  --bg-soft: #F6EEE7;
  --surface: #FFFFFF;
  --surface-2: #FAF0EA;

  --ink: #3B262B;
  --ink-dim: rgba(59, 38, 43, 0.68);
  --ink-faint: rgba(59, 38, 43, 0.66);

  --gold: #B76E79;
  --gold-bright: #A4515E;
  --gold-dark: #8E4A56;

  --btn-primary-ink: #FFFFFF;
  --btn-primary-glow: rgba(164, 81, 94, 0.32);
  --btn-primary-glow-hover: rgba(164, 81, 94, 0.42);

  --line: rgba(59, 38, 43, 0.12);
  --line-strong: rgba(59, 38, 43, 0.22);

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1200px;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-lg: 0 30px 80px rgba(96, 45, 62, 0.28);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Защита от перебивания display у скрытых элементов */
[hidden] {
  display: none !important;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}

::selection {
  background: var(--gold);
  color: #FBF6F0;
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  --pad: 24px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  padding: 16px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    background-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
  will-change: transform;
}

.btn:active {
  transform: scale(0.97);
}

.btn--sm {
  font-size: 14px;
  padding: 11px 20px;
}

.btn--lg {
  font-size: 18px;
  padding: 20px 34px;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--gold-bright);
  color: var(--btn-primary-ink);
  box-shadow: 0 14px 40px var(--btn-primary-glow);
}

.btn--primary:hover {
  background: var(--gold-dark);
  color: var(--btn-primary-ink);
  transform: translateY(-2px);
  box-shadow: 0 18px 48px var(--btn-primary-glow-hover);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(59, 38, 43, 0.03);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  transform: translateY(-2px);
}

/* ---------- Cookie-баннер ---------- */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(59, 38, 43, 0.08);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-dim);
}

.cookie-bar__text {
  margin: 0;
  flex: 1 1 auto;
}

.cookie-bar__text a {
  color: var(--gold-bright);
  text-decoration: underline;
}

.cookie-bar__text a:hover {
  color: var(--gold-dark);
}

.cookie-bar__accept {
  flex: 0 0 auto;
}

@media (max-width: 620px) {
  .cookie-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 16px;
  }

  .cookie-bar__accept {
    width: 100%;
  }
}

/* ---------- Шапка ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 16px;
}

/* Тень/бэкдроп шапки при прокрутке — только CSS (scroll-driven),
   в браузерах без поддержки шапка остаётся прозрачной (не ломает чтение) */
@supports (animation-timeline: scroll()) {
  .site-header {
    animation: header-scroll var(--ease-out) both;
    animation-timeline: scroll(root);
    animation-range: 0 90px;
  }
}

@keyframes header-scroll {
  from {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    padding-block: 16px;
  }
  to {
    background: rgba(251, 246, 240, 0.9);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line), 0 12px 32px rgba(96, 45, 62, 0.18);
    padding-block: 10px;
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.brand__text small {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-weight: 600;
}

.site-header__nav {
  margin-inline: auto;
}

.site-header__nav ul {
  display: flex;
  gap: 8px;
}

.site-header__nav a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink-dim);
  border-radius: 999px;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.site-header__nav a:hover {
  color: var(--ink);
  background: rgba(59, 38, 43, 0.06);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-header__phone {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.site-header__phone:hover {
  color: var(--gold-bright);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.25s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(251, 246, 240, 0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  display: flex;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 96px 24px 40px;
}

.mobile-menu nav {
  margin: auto;
}

.mobile-menu nav ul {
  display: grid;
  gap: 8px;
  text-align: center;
}

.mobile-menu nav a:not(.btn) {
  display: block;
  padding: 14px 24px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
}

.mobile-menu nav a:not(.btn):hover {
  color: var(--gold-bright);
}

.mobile-menu--open {
  overflow: hidden;
}

/* ============================================================
   Секция 1: Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 140px 80px;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 12%, rgba(183, 110, 121, 0.14), transparent 60%),
    radial-gradient(700px 600px at 8% 88%, rgba(183, 110, 121, 0.07), transparent 65%),
    var(--bg);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

/* --- Текстовая колонка --- */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 700;
  margin-bottom: 28px;
}

.hero__eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(183, 110, 121, 0.18);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}

.hero__city {
  color: var(--gold-bright);
  position: relative;
  white-space: nowrap;
}

.hero__city::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 8px;
  border-radius: 4px;
  background: rgba(183, 110, 121, 0.28);
  z-index: -1;
}

.hero__subtitle {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-dim);
  max-width: 34em;
  margin-bottom: 34px;
}

.hero__subtitle strong {
  color: var(--ink);
  font-weight: 700;
}

.hero__cta {
  display: grid;
  gap: 14px;
  justify-items: start;
  margin-bottom: 40px;
}

.hero__cta-note {
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

.hero__trust {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 12px 28px;
  justify-content: start;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-dim);
}

.hero__trust-item svg {
  flex-shrink: 0;
}

/* --- Медиа-колонка --- */
.hero__media {
  position: relative;
  display: grid;
  place-items: center;
}

.hero__img {
  width: min(100%, 480px);
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  position: relative;
  z-index: 2;
}

.hero__media-frame {
  position: absolute;
  width: min(100%, 480px);
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  border: 1px solid rgba(183, 110, 121, 0.5);
  transform: translate(18px, 18px);
  z-index: 1;
  pointer-events: none;
}

.hero__badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: rgba(251, 246, 240, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(96, 45, 62, 0.22);
  max-width: 260px;
  color: inherit;
  text-decoration: none;
}

.hero__badge svg {
  flex-shrink: 0;
}

.hero__badge span {
  display: grid;
  line-height: 1.25;
}

.hero__badge strong {
  font-size: 14px;
  font-weight: 700;
}

.hero__badge small {
  font-size: 12px;
  color: var(--ink-dim);
  margin-top: 2px;
}

.hero__badge--canvas {
  bottom: 8%;
  left: -6%;
  animation: float 6s ease-in-out infinite;
}

.hero__badge--sketch {
  top: 7%;
  right: -4%;
  animation: float 7s ease-in-out 1.2s infinite;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero__badge--sketch:hover,
.hero__badge--sketch:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 18px 44px rgba(96, 45, 62, 0.32);
}

/* --- Подсказка скролла --- */
.hero__scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color 0.3s ease;
  z-index: 3;
}

.hero__scroll-hint:hover {
  color: var(--ink);
}

.hero__scroll-hint svg {
  animation: hint-bounce 1.8s ease-in-out infinite;
}

/* ---------- Общая типографика секций ---------- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 800;
  margin-bottom: 18px;
}

.section-eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  max-width: 22em;
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--ink-dim);
  max-width: 58ch;
}

/* ---------- Reveal-анимации: только CSS, прогрессивное улучшение ---------- */
/* Если браузер не поддерживает scroll-driven анимации — контент просто видим */
@supports (animation-timeline: view()) {
  .reveal {
    opacity: 0;
    animation: reveal-up 0.9s var(--ease-out) both;
    animation-timeline: view();
    animation-range: entry 5% entry 70%;
  }
}

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

/* Карточки шагов в горизонтальном скролле — скролл-порт не совпадает с окном */
@media (max-width: 900px) {
  @supports (animation-timeline: view()) {
    .steps__list .reveal {
      animation: none;
      opacity: 1;
      transform: none;
    }
  }
}

/* ============================================================
   Секция 2: Боли и решения
   ============================================================ */
.pain {
  position: relative;
  padding-block: 112px;
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.pain__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.pain-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.5s ease, box-shadow 0.5s var(--ease-out);
}

.pain-card:nth-child(2) {
  transition-delay: 0.08s;
}

.pain-card:nth-child(3) {
  transition-delay: 0.16s;
}

.pain-card:hover {
  transform: translateY(-6px);
  border-color: rgba(183, 110, 121, 0.45);
  box-shadow: 0 28px 64px rgba(96, 45, 62, 0.22);
}

.pain-card__ghost {
  position: absolute;
  top: -18px;
  right: -18px;
  color: var(--gold);
  opacity: 0.05;
  pointer-events: none;
}

.pain-card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  color: var(--gold-bright);
  background: rgba(183, 110, 121, 0.12);
  border: 1px solid rgba(183, 110, 121, 0.3);
  margin-bottom: 22px;
}

.pain-card__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 10px;
}

.pain-card__pain-text {
  font-size: 15px;
  color: var(--ink-dim);
}

.pain-card__arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--gold);
  margin-block: 22px 8px;
}

.pain-card__solution {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: auto;
}

.pain-card__solution-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--gold-bright);
  margin-bottom: 8px;
}

.pain-card__solution-text {
  font-size: 15px;
  color: var(--ink);
}

/* ============================================================
   Секция 3: Выбор стиля (галерея «до/после»)
   ============================================================ */
.styles {
  padding-block: 112px;
}

.styles__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.style-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.5s ease, box-shadow 0.5s var(--ease-out);
  will-change: transform;
}

.style-card:hover {
  transform: translateY(-6px);
  border-color: rgba(183, 110, 121, 0.4);
  box-shadow: 0 28px 64px rgba(96, 45, 62, 0.22);
}

/* --- «До/После»: два слоя + прозрачный range --- */
.ba {
  --pos: 50%;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface-2);
}

.ba__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba__img--after {
  z-index: 1;
}

.ba__img--before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}

.ba__range {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  touch-action: pan-y;
}

.ba__range:focus-visible {
  outline: none;
}

.ba:focus-within {
  box-shadow: inset 0 0 0 3px var(--gold-bright);
}

.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  z-index: 4;
  display: grid;
  place-items: center;
  pointer-events: none;
  transform: translateX(-50%);
}

.ba__handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #3B262B;
  box-shadow: 0 0 0 1px rgba(96, 45, 62, 0.18);
}

.ba__handle svg {
  display: block;
  width: 20px;
  height: 20px;
  padding: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid var(--gold);
  box-sizing: content-box;
  color: var(--gold-bright);
  box-shadow: 0 8px 24px rgba(96, 45, 62, 0.22);
}

.ba__tag {
  position: absolute;
  top: 14px;
  z-index: 3;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ink);
  pointer-events: none;
}

.ba__tag--before {
  left: 14px;
}

.ba__tag--after {
  right: 14px;
}

/* --- Текст карточки --- */
.style-card__body {
  padding: 26px 26px 0;
}

.style-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.style-card__num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--gold);
}

.style-card__badge {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.style-card__title {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 8px;
}

.style-card__text {
  font-size: 15px;
  color: var(--ink-dim);
}

.style-card__cta {
  margin: 22px 26px 26px;
  justify-self: start;
}

/* ============================================================
   Секция 4: Как мы работаем
   ============================================================ */
.steps {
  position: relative;
  padding-block: 112px;
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.steps__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 60px;
  position: relative;
  scroll-behavior: smooth;
}

.steps__list::before {
  content: "";
  position: absolute;
  top: 39px;
  left: 7%;
  right: 7%;
  height: 2px;
  border-top: 2px dashed rgba(183, 110, 121, 0.35);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease-out), border-color 0.5s ease;
}

.step:hover {
  transform: translateY(-6px);
  border-color: rgba(183, 110, 121, 0.45);
}

.step__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.step__num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--gold-bright);
}

.step__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(183, 110, 121, 0.12);
  border: 1px solid rgba(183, 110, 121, 0.3);
  color: var(--gold-bright);
  position: relative;
  z-index: 2;
}

.step__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}

.step__text {
  font-size: 14.5px;
  color: var(--ink-dim);
  line-height: 1.55;
}

.steps__note {
  margin-top: 34px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

.steps__nav {
  display: none;
}

/* ============================================================
   Секция: Почему печать на холсте (печать vs нейросеть)
   ============================================================ */
.why-print__grid {
  display: grid;
  gap: 16px;
  margin-top: 56px;
}

.guarantee__card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 28px 26px;
}

.guarantee__card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.25;
  margin: 14px 0 8px;
}

.guarantee__card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin: 0;
}

@media (min-width: 960px) {
  .why-print__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   Секция 5: Цены и размеры
   ============================================================ */
.prices {
  padding-block: 112px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- Слайдер размеров: карточка + человек 1,75 м --- */
.prices__slider {
  margin-top: 56px;
}

.prices__track {
  display: flex;
  gap: 20px;
  align-items: stretch;
  padding-bottom: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.prices__track::-webkit-scrollbar {
  display: none;
}

.price-slide {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.5s ease, box-shadow 0.5s var(--ease-out);
}

.price-slide:hover {
  transform: translateY(-6px);
  border-color: rgba(183, 110, 121, 0.45);
  box-shadow: 0 24px 56px rgba(96, 45, 62, 0.2);
}

.price-slide--hit {
  border-color: var(--gold);
  background:
    radial-gradient(360px 200px at 80% 0%, rgba(183, 110, 121, 0.14), transparent 60%),
    var(--surface);
  box-shadow: 0 22px 52px rgba(96, 45, 62, 0.22);
}

.price-slide__media {
  position: relative;
  aspect-ratio: 600 / 760;
  transform: translateZ(0);
}

.price-slide__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.price-slide__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: #FBF6F0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.price-slide__badge--muted {
  position: static;
  display: inline-block;
  margin-left: 10px;
  padding: 4px 10px;
  background: rgba(183, 110, 121, 0.14);
  color: var(--gold-bright);
  border: 1px solid rgba(183, 110, 121, 0.38);
  font-size: 10px;
  letter-spacing: 0.02em;
  vertical-align: 2px;
}

.price-slide__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 24px;
}

.price-slide__measure {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--gold-bright);
  margin-bottom: 8px;
}

.price-slide__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
}

.price-slide__price {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  color: var(--gold-bright);
  margin-top: auto;
}

.price-slide__price span {
  font-size: 18px;
  color: var(--gold);
}

.price-slide__cta {
  margin-top: 18px;
  width: 100%;
}

.prices__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
}

.prices__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.prices__arrow:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.prices__arrow:disabled {
  opacity: 0.35;
  cursor: default;
  border-color: var(--line);
}

.prices__count {
  min-width: 58px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink-dim);
}

.prices__note {
  margin-top: 26px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-faint);
}

/* --- Блок «что включено» + схема размеров --- */
.prices__extra {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  margin-top: 64px;
  padding: 44px;
  border-radius: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.prices__info-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
}

.prices__includes {
  display: grid;
  gap: 14px;
}

.prices__includes li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-dim);
}

.prices__includes svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.prices__cta {
  margin-top: 28px;
}

.prices__figure {
  text-align: center;
}

.prices__figure img {
  border-radius: 18px;
  border: 1px solid var(--line);
  max-width: 100%;
  height: auto;
}

.prices__figure figcaption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ============================================================
   Секция 6: Отзывы и гарантии
   ============================================================ */
.reviews {
  padding-block: 112px;
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.reviews__carousel {
  --gap: 24px;
  margin-top: 56px;
  overflow: hidden;
  padding: 26px 0;
}

.reviews__track {
  display: flex;
  align-items: stretch;
  gap: var(--gap);
  will-change: transform;
  touch-action: pan-y;
  cursor: grab;
}

.reviews__track:active {
  cursor: grabbing;
}

.reviews__card {
  flex: 0 0 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 40px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  opacity: 0.5;
  transform: scale(0.9);
  transition: transform 0.7s var(--ease-out), opacity 0.7s ease,
    border-color 0.7s ease, box-shadow 0.7s ease;
  will-change: transform, opacity;
}

.reviews__card.is-current {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(183, 110, 121, 0.6);
  box-shadow: 0 22px 46px rgba(96, 45, 62, 0.22);
}

.reviews__text {
  margin: 0;
  padding: 42px 8px 0;
  position: relative;
  text-align: center;
  font-size: 15px;
  color: var(--ink-dim);
  line-height: 1.8;
}

.reviews__text::before {
  content: "“";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.6;
}

.reviews__text p + p {
  margin-top: 10px;
}

.reviews__foot {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.reviews__name {
  display: block;
  font-style: normal;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--gold-bright);
}

.reviews__order {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 4px;
  letter-spacing: 0.03em;
}

.reviews__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
}

.reviews__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.reviews__arrow:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.reviews__count {
  min-width: 58px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink-dim);
}

.guarantee {
  margin-top: 56px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 36px 40px;
  border-radius: 22px;
  background:
    radial-gradient(600px 240px at 0% 50%, rgba(183, 110, 121, 0.12), transparent 55%),
    var(--surface);
  border: 1px solid var(--line);
}

.guarantee__icon {
  color: var(--gold);
}

.guarantee__copy h3 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.guarantee__copy p {
  font-size: 15px;
  color: var(--ink-dim);
  line-height: 1.6;
  max-width: 560px;
}

.guarantee__list {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 300px;
}

.guarantee__list li {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(183, 110, 121, 0.35);
  background: rgba(183, 110, 121, 0.08);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold-bright);
}

/* ============================================================
   Секция 7: Контакты и форма заказа
   ============================================================ */
.contacts {
  padding-block: 112px;
}

.contacts__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 56px;
}

.order-form {
  padding: 36px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(96, 45, 62, 0.18);
  scroll-margin-top: 90px;
}

.order-form__title {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 8px;
}

.order-form__hint {
  font-size: 14px;
  color: var(--ink-dim);
  margin-bottom: 26px;
}

.order-form__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.order-form__cols--3 {
  grid-template-columns: 1fr 1.2fr 1.3fr;
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

/* Ловушка для ботов: уводим за пределы экрана, а не display:none —
   часть автозаполнителей пропускает только неотрисованные элементы. */
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.order-form__cols .field {
  margin-top: 0;
}

.field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(59, 38, 43, 0.3);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23B76E79' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(183, 110, 121, 0.15);
}

.field__hint {
  font-size: 12px;
  color: var(--ink-faint);
}

.field input[readonly] {
  background: var(--surface-2);
  color: rgba(59, 38, 43, 0.7);
  cursor: not-allowed;
}

.order-form__pickup-field {
  margin-top: 18px;
  display: grid;
  justify-items: start;
  gap: 8px;
}

.order-form__pickup {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  color: var(--ink);
}

.order-form__pickup .order-form__check {
  margin-top: 0;
}

.order-form__pickup-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(183, 110, 121, 0.12);
  border: 1px solid rgba(183, 110, 121, 0.28);
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 600;
}

.order-form__submit {
  margin-top: 24px;
  width: 100%;
}

.order-form__policy {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-faint);
  line-height: 1.55;
}

.order-form__policy a {
  color: var(--gold-bright);
}

.order-form__policy a:hover {
  color: var(--gold-bright);
}

.order-form__status {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-dim);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.order-form__status.is-error {
  color: #8E3B4A;
  background: #FBEBEE;
  border-color: #E3B7C0;
}

.order-form__status.is-success {
  color: #2F6B4F;
  background: #E8F4ED;
  border-color: #BFDCC9;
}

.order-form__status-tg {
  color: var(--gold-bright);
  font-weight: 600;
  text-decoration: underline;
}

.order-form__status-tg:hover {
  color: var(--gold-dark);
}

.field__error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: #8E3B4A;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #E3B7C0;
}

.field.is-invalid input:focus,
.field.is-invalid select:focus,
.field.is-invalid textarea:focus {
  border-color: #8E3B4A;
  box-shadow: 0 0 0 3px rgba(142, 59, 74, 0.12);
}

.order-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.order-form__check {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
}

.consent-full {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  background: var(--surface-2);
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.6;
}

.consent-full summary {
  cursor: pointer;
  color: var(--gold-bright);
  font-weight: 600;
  padding: 10px 0;
  list-style: none;
}

.consent-full summary::-webkit-details-marker {
  display: none;
}

.consent-full summary::before {
  content: "▾ ";
  display: inline-block;
}

.consent-full[open] summary::before {
  content: "▴ ";
}

.consent-full a {
  color: var(--gold-bright);
}

.consent-full p {
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.consent-full p:last-child {
  border-bottom: 0;
  padding-bottom: 12px;
}

.faq__list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 0 18px;
  box-shadow: 0 2px 10px rgba(59, 38, 43, 0.04);
}

.faq__item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  position: relative;
  padding: 16px 26px 16px 0;
  color: var(--ink);
}

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

.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 14px;
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
  color: var(--gold-bright);
}

.faq__item[open] summary::after {
  content: "−";
}

.faq__item p {
  margin: 0;
  padding: 0 0 16px;
  color: var(--ink-dim);
  line-height: 1.65;
}

@media (min-width: 780px) {
.faq {
  padding-block: 0 48px;
}

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

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.contacts__side-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 22px;
}

.contacts__list {
  display: grid;
}

.contacts__item {
  display: grid;
  gap: 3px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contacts__item:first-child {
  padding-top: 0;
}

.contacts__label {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ink-faint);
}

.contacts__label--icon {
  display: flex;
  align-items: center;
  gap: 7px;
}

.contacts__icon {
  width: 14px;
  height: 14px;
  flex: none;
}

.contacts__value {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

a.contacts__value:hover {
  color: var(--gold-bright);
}

.contacts__note {
  font-size: 12.5px;
  color: var(--ink-faint);
}

.contacts__map {
  margin-top: 26px;
}

.contacts__map img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.contacts__map iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.contacts__map figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-faint);
  text-align: center;
}

.contacts__legal {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.contacts__legal h4 {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.contacts__legal p {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.6;
}

/* ============================================================
   Футер
   ============================================================ */
.footer {
  padding-block: 36px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 13px;
  color: var(--ink-faint);
}

.footer__nav {
  margin-left: auto;
}

.footer__nav ul {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer__nav a {
  font-size: 13px;
  color: var(--ink-dim);
}

.footer__nav a:hover {
  color: var(--gold-bright);
}

.footer__legal {
  flex: 0 0 100%;
  margin: 4px 0 0;
}

.footer__legal a {
  font-size: 13px;
  color: var(--ink-dim);
}

.footer__legal a:hover {
  color: var(--gold-bright);
}

/* ---------- Анимации ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes hint-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Hero виден сразу: LCP-элемент не должен стартовать с opacity: 0. */

/* ---------- Адаптив: планшет ---------- */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__media {
    order: -1;
  }

  .hero__img,
  .hero__media-frame {
    width: min(100%, 420px);
  }

  .hero__trust {
    grid-template-columns: 1fr;
  }

  .site-header__nav,
  .site-header__actions {
    display: none;
  }

  .burger {
    display: inline-flex;
    margin-left: auto;
  }

  .hero__badge--canvas {
    left: 2%;
    bottom: 4%;
  }

  .hero__badge--sketch {
    right: 2%;
    top: 4%;
  }

  .pain__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pain {
    padding-block: 80px;
  }

  .styles {
    padding-block: 80px;
  }
}

/* ---------- Адаптив: шаги как горизонтальный слайдер ---------- */
@media (max-width: 900px) {
  .steps {
    padding-block: 80px;
  }

  .steps__list {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    margin-inline: calc(var(--pad, 24px) * -1);
    padding-inline: var(--pad, 24px);
    padding-bottom: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .steps__list::-webkit-scrollbar {
    display: none;
  }

  .steps__list::before {
    display: none;
  }

  .step {
    flex: 0 0 min(84%, 380px);
    display: block;
    padding: 22px;
  }

  .step__top {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
  }

  .steps__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 24px;
  }

  .steps__arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    color: var(--ink);
    transition: border-color 0.3s ease, color 0.3s ease;
  }

  .steps__arrow:hover {
    border-color: var(--gold);
    color: var(--gold-bright);
  }

  .steps__arrow:disabled {
    opacity: 0.35;
    cursor: default;
    border-color: var(--line);
  }

  .steps__dots {
    display: flex;
    gap: 2px;
  }

  .steps__dots button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    background: transparent;
  }

  .steps__dots button::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    transition: background 0.3s ease, transform 0.3s var(--ease-out);
  }

  .steps__dots button:hover::before {
    background: var(--gold-bright);
  }

  .steps__dots button.is-active::before {
    background: var(--gold-dark);
    transform: scale(1.35);
  }
}

/* ---------- Адаптив: узкий планшет ---------- */
@media (max-width: 780px) {
  .styles__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .style-card__body {
    padding: 22px 22px 0;
  }

  .style-card__cta {
    margin: 18px 22px 22px;
  }

  .prices {
    padding-block: 80px;
  }

  .prices__extra {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 28px 24px;
    margin-top: 44px;
  }

  .prices__cta {
    width: 100%;
  }
}

/* ---------- Адаптив: мобильный ---------- */
@media (max-width: 620px) {
  .container {
    --pad: 18px;
  }

  /* Слайдер размеров: карточка «на весь палец» */
  .prices__track {
    margin-inline: calc(var(--pad, 18px) * -1);
    padding-inline: var(--pad, 18px);
    gap: 14px;
  }

  .price-slide {
    flex: 0 0 min(82%, 320px);
  }

  .hero {
    padding-block: 120px 70px;
  }

  .hero__title {
    font-size: clamp(30px, 8.6vw, 40px);
  }

  .hero__cta {
    width: 100%;
    justify-items: stretch;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .hero__cta-note {
    text-align: center;
  }

  .hero__media {
    order: 2;
  }

  .hero__badge {
    padding: 11px 14px;
    max-width: 230px;
  }

  .hero__badge--canvas {
    left: 0;
  }

  .hero__badge--sketch {
    right: 0;
  }

  .hero__scroll-hint {
    display: none;
  }
}

/* ---------- Адаптив: отзывы, контакты, футер ---------- */
@media (max-width: 960px) {
  .contacts__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .guarantee {
    grid-template-columns: auto 1fr;
  }

  .guarantee__list {
    grid-column: 1 / -1;
    justify-content: flex-start;
    max-width: none;
  }
}

@media (max-width: 780px) {
  .reviews__carousel {
    --gap: 16px;
  }

  .order-form__cols--3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .order-form {
    padding: 26px 20px;
  }

  .order-form__cols {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .order-form__cols .field {
    margin-top: 18px;
  }

  .order-form__cols .field:first-child {
    margin-top: 0;
  }

  /* Слайдер отзывов: компактная карточка */
  .reviews {
    padding-block: 64px;
  }

  .reviews__carousel {
    --gap: 12px;
    margin-top: 40px;
  }

  .reviews__card {
    padding: 26px 20px;
    flex: 0 0 min(90%, 360px);
  }

  .reviews__text {
    font-size: 13.5px;
    line-height: 1.65;
  }

  .reviews__name {
    font-size: 16px;
  }

  .guarantee {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 22px;
  }

  .guarantee__list {
    max-width: none;
  }

  .footer__nav {
    margin-left: 0;
  }
}

/* ---------- Адаптив: унификация текста на мобильных ----------
   Выравниваем всё по левому краю и приводим тело текста к 15px */
@media (max-width: 900px) {
  .steps__note,
  .prices__note,
  .hero__cta-note {
    text-align: start;
  }

  .step__text,
  .steps__note,
  .prices__note,
  .reviews__text,
  .hero__cta-note,
  .order-form__hint {
    font-size: 15px;
  }
}

/* ---------- Виджет отзывов (MyReviews / Авито) ---------- */
.reviews__widget {
  margin-top: 44px;
}

/* Показывается, только когда отключён JavaScript: виджет отзывов тогда
   не грузится, и секция не должна выглядеть сломанной. */
.reviews__fallback {
  max-width: 720px;
  margin: 24px auto 0;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

.reviews__fallback a {
  color: var(--gold-dark);
  text-underline-offset: 3px;
}

.my-reviews {
  display: flex;
  justify-content: center;
  min-height: 469px;
  max-width: 1170px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.my-reviews iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 640px) {
  .my-reviews {
    border-radius: 16px;
  }
}

/* ---------- Доступность: reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html,
  .steps__list,
  .prices__track {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

}
/* ============================================================
   Блог и статьи
   ============================================================ */
.article-main,
.blog-main {
  padding: 124px 0 88px;
}

.article-container {
  max-width: 860px;
}

.breadcrumbs {
  margin-bottom: 28px;
  font-size: 13px;
  color: var(--ink-faint);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--line-strong);
}

.breadcrumbs a {
  color: var(--ink-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumbs a:hover {
  color: var(--gold-bright);
}

.article-hero {
  margin-bottom: 30px;
}

.article-category {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.article-category::before {
  content: "";
  width: 24px;
  height: 1.5px;
  background: var(--gold);
}

.article-hero h1,
.blog-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}

.article-lead {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-dim);
  max-width: 68ch;
}

.article-meta {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-faint);
}

.article-media {
  margin: 30px 0;
}

.article-media picture {
  display: block;
}

.article-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}

.article-media--cover img {
  aspect-ratio: 3 / 2;
}

.article-media--wide img {
  aspect-ratio: 16 / 10;
}

.article-media--square img {
  aspect-ratio: 1 / 1;
}

.article-media__stub,
.blog-card__media {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(183, 110, 121, 0.08), rgba(183, 110, 121, 0.015)),
    var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 220px;
  padding: 24px;
  text-align: center;
  color: var(--ink-faint);
}

.article-media--cover .article-media__stub {
  aspect-ratio: 3 / 2;
}

.article-media--wide .article-media__stub {
  aspect-ratio: 16 / 10;
}

.article-media--square .article-media__stub {
  aspect-ratio: 1 / 1;
}

.article-media__stub strong,
.blog-card__media strong {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
}

.article-media__stub span,
.blog-card__media span {
  font-size: 12px;
  line-height: 1.5;
}

.article-media figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-faint);
  text-align: center;
}

.article-toc {
  margin: 32px 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.article-toc h2 {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.article-toc ol {
  display: grid;
  gap: 7px;
  padding-left: 1.2em;
  list-style: decimal;
  color: var(--ink-dim);
}

.article-toc a {
  color: var(--ink-dim);
  text-decoration: none;
}

.article-toc a:hover {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body {
  font-size: 17px;
  line-height: 1.78;
}

.article-body > * {
  margin-bottom: 20px;
}

.article-body h2 {
  margin: 46px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.article-body h3 {
  margin: 32px 0 10px;
  font-size: 20px;
  line-height: 1.35;
}

.article-body p {
  margin: 0 0 20px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 22px;
  padding-left: 1.45em;
}

.article-body ul {
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  margin-bottom: 9px;
  padding-left: 4px;
}

.article-body a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.article-body a:hover {
  color: var(--gold-bright);
}

.article-body strong {
  font-weight: 700;
}

.article-body blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--gold);
  background: var(--surface-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-dim);
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-body .table-wrap {
  margin: 26px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.article-body table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
}

.article-body th,
.article-body td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-body th {
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.article-body tr:last-child td {
  border-bottom: 0;
}

.article-cta {
  margin: 42px 0;
  padding: 30px;
  border: 1px solid rgba(183, 110, 121, 0.35);
  border-radius: var(--radius);
  background:
    radial-gradient(500px 220px at 90% 0%, rgba(183, 110, 121, 0.16), transparent 70%),
    var(--surface);
}

.article-cta h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.2;
}

.article-cta p {
  margin: 0 0 18px;
  color: var(--ink-dim);
}

.article-cta__note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ink-faint);
}

.article-faq {
  margin: 48px 0 0;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.article-faq h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.2;
}

.article-faq .faq__list {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.article-author {
  margin: 44px 0 0;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.article-author h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}

.article-author p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-dim);
}

.article-author a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-related {
  margin: 48px 0 0;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.article-related h2 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
}

.related__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.related__item {
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out);
}

.related__item:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.related__item span {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.related__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.blog-hero {
  max-width: 760px;
  margin-bottom: 36px;
}

.blog-hero p {
  font-size: 18px;
  color: var(--ink-dim);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(96, 45, 62, 0.12);
}

.blog-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
}

.blog-card__media picture {
  display: block;
  height: 100%;
}

.blog-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}

.blog-card__category {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.blog-card__title {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.25;
}

.blog-card__text {
  font-size: 15px;
  color: var(--ink-dim);
}

.blog-card__meta {
  margin-top: auto;
  padding-top: 12px;
  font-size: 12px;
  color: var(--ink-faint);
}

.articles-teaser {
  padding-block: 0 96px;
}

.articles-teaser__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.articles-teaser__head .section-title {
  margin-bottom: 0;
}

.articles-teaser__link {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.articles-teaser__link:hover {
  color: var(--gold-bright);
}

@media (max-width: 780px) {
  .article-main,
  .blog-main {
    padding: 104px 0 64px;
  }

  .blog-grid,
  .related__list {
    grid-template-columns: 1fr;
  }

  .articles-teaser__head {
    display: block;
  }

  .articles-teaser__link {
    display: inline-block;
    margin-top: 14px;
  }

  .article-body {
    font-size: 16px;
    line-height: 1.72;
  }

  .article-cta {
    padding: 24px;
  }
}

@media (max-width: 620px) {
  .article-hero h1,
  .blog-hero h1 {
    font-size: 30px;
  }

  .article-lead {
    font-size: 17px;
  }

  .article-media__stub {
    min-height: 180px;
  }

  .article-toc {
    padding: 18px;
  }
}
