/* ============================================================
   Choco Style — рождественский лендинг
   Палитра: тёплый кремовый + тёмный шоколад + мягкое золото
   Шрифты: Cormorant Garamond (заголовки) + Manrope (текст)
   Система: шкала отступов 8px, карточки с границей 1px и
   радиусом 24px (без теней), hover-zoom 1.04, клампинг текста,
   горизонтальные слайдеры с круглыми кнопками 40px
   ============================================================ */

:root {
  --cream: #faf4ea;
  --cream-deep: #f2e5d2;
  --surface: #fffdf8;
  --ink: #3e2a20;
  --ink-soft: #5c4433;
  --muted: #8a7261;
  --gold: #c09a4e;
  --gold-deep: #a8823f;
  --berry: #9c3b3b;
  --line: rgba(62, 42, 32, 0.14);
  --shadow: 0 10px 40px rgba(96, 66, 40, 0.12);
  --radius-s: 8px;
  --radius-m: 16px;
  --radius: 24px;
  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 85% -100px, rgba(192, 154, 78, 0.12), transparent 60%),
    var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 24px;
  color: var(--ink);
}

p { margin: 0 0 16px; }

a { color: inherit; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(1240px, 100% - 40px);
  margin-inline: auto;
}

.icon { width: 1.15em; height: 1.15em; vertical-align: -0.22em; flex-shrink: 0; }

/* ---------- Иконки: Tabler outline, тонкая линия ---------- */
.icon,
.icon-btn svg,
.badge__flake,
.divider svg,
.scroll-btn svg,
.review__quote,
.contact__icon svg,
.footer__social svg,
.float-bar__btn svg,
.float-bar__toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Мелкие иконки чуть плотнее, чтобы линия не «исчезала» */
.icon { stroke-width: 1.35; }
.badge__flake { stroke-width: 1.6; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--ink);
  color: var(--cream);
}
.btn--primary:hover { background: var(--gold-deep); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(62, 42, 32, 0.28);
}
.btn--ghost:hover { border-color: var(--gold-deep); color: var(--gold-deep); }

.btn--light {
  background: var(--cream);
  color: var(--ink);
}
.btn--light:hover { background: var(--gold); color: var(--surface); }

.btn--lg { height: 48px; padding: 0 32px; font-size: 1rem; }

.btn--small { height: 32px; padding: 0 16px; font-size: 0.75rem; background: var(--ink); color: var(--cream); }
.btn--small:hover { background: var(--gold-deep); }

/* Круглые кнопки-стрелки для слайдеров */
.scroll-buttons { display: flex; gap: 8px; }

.scroll-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 100%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.scroll-btn svg { width: 20px; height: 20px; }
.scroll-btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.scroll-btn.is-disabled { opacity: 0.35; pointer-events: none; }

/* ---------- Строка-анонс ---------- */
.topbar {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding: 8px 16px;
}
.topbar p {
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: rgba(250, 244, 234, 0.9);
}

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 244, 234, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 12px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 48px;
  margin-top: -4px;
  flex-shrink: 0;
  color: var(--gold);
}
.logo__mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.logo__name {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.logo__sub {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.nav__link {
  position: relative;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 4px 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--gold);
  transition: right 0.3s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { right: 0; }

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

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 100%;
  color: var(--ink-soft);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: rgba(62, 42, 32, 0.08); color: var(--gold-deep); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.burger span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s 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); }

/* ---------- Герой ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 64px;
}

.hero__snow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 22%, rgba(192, 154, 78, 0.16) 0 2px, transparent 3px),
    radial-gradient(circle at 28% 68%, rgba(192, 154, 78, 0.12) 0 2px, transparent 3px),
    radial-gradient(circle at 55% 15%, rgba(192, 154, 78, 0.13) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at 78% 42%, rgba(192, 154, 78, 0.10) 0 2px, transparent 3px),
    radial-gradient(circle at 92% 78%, rgba(192, 154, 78, 0.14) 0 2px, transparent 3px),
    radial-gradient(circle at 40% 90%, rgba(156, 59, 59, 0.10) 0 2px, transparent 3px);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(156, 59, 59, 0.09);
  color: var(--berry);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.badge__flake { width: 1.1em; height: 1.1em; }

.hero__title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.hero__title::first-letter { color: var(--gold-deep); }

.hero__sub {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

.hero__media { position: relative; }

.hero__frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.hero__frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.5s ease; }
.hero__frame:hover img { transform: scale(1.04); }

.hero__chip {
  position: absolute;
  left: -16px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  padding: 12px 20px;
}
.hero__chip-num {
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--gold-deep);
  line-height: 1.1;
}
.hero__chip-label { font-size: 0.75rem; color: var(--muted); }

/* ---------- Бегущая строка ---------- */
.ticker {
  border-block: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.55);
  overflow: hidden;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 42s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }

.ticker__group {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px 14px 0;
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ticker__group i {
  font-style: normal;
  color: var(--gold);
}

@keyframes ticker-scroll {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; }
  .ticker__track { animation: none; }
}

/* ---------- Секции ---------- */
.section { padding: 56px 0; }

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}

.section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
  text-align: left;
}
.section__head--row .section__title { margin-bottom: 0; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 8px;
}

.section__title {
  font-size: 2rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0;
}

.section__lead {
  color: var(--muted);
  margin: 16px auto 0;
  max-width: 46em;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  color: var(--gold);
}
.divider svg { width: 22px; height: 22px; opacity: 0.85; }
.divider span {
  width: 72px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---------- Карточки меню ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

/* Шесть позиций: по три карточки в ряд */
@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cards .card { grid-column: span 2; }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.5s ease, border-color 0.5s ease;
}
.card:hover { transform: scale(1.04); border-color: rgba(192, 154, 78, 0.5); }

.card__media { position: relative; overflow: hidden; }
.card__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card__media img { transform: scale(1.04); }

/* Мини-галерея в карточке товара */
.card__media--gallery {
  aspect-ratio: 4 / 5;
  touch-action: pan-y;
  background: var(--cream-deep);
}
.card-gallery__track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.card__media--gallery .card-gallery__img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.card:hover .card__media--gallery .card-gallery__img { transform: none; }

.card-gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(250, 244, 234, 0.92);
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(62, 42, 32, 0.2);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.card-gallery__arrow--prev { left: 10px; }
.card-gallery__arrow--next { right: 10px; }
.card-gallery__arrow svg { width: 18px; height: 18px; }
.card-gallery__arrow:hover { background: #fff; }
.card-gallery__arrow:active { transform: translateY(-50%) scale(0.94); }
.card__media--gallery:hover .card-gallery__arrow,
.card__media--gallery:focus-within .card-gallery__arrow {
  opacity: 1;
  pointer-events: auto;
}

.card-gallery__counter {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(62, 42, 32, 0.38);
  color: var(--cream);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.card-gallery__dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(62, 42, 32, 0.32);
  transform: translateX(-50%);
}
.card-gallery__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(250, 244, 234, 0.6);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}
.card-gallery__dot.is-active {
  width: 18px;
  background: var(--gold);
}
.card-gallery__arrow:focus-visible,
.card-gallery__dot:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (hover: none) {
  .card-gallery__arrow { opacity: 1; pointer-events: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .card-gallery__track { transition: none; }
}

/* Заглушка «фото скоро появится» из фирменного лого */
.card__media--placeholder {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 150% at 8% 4%, #FFFDF8 0%, #FAF4EA 55%, #F1E6D3 100%);
}
.card__media--placeholder::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(192, 154, 78, 0.38);
  pointer-events: none;
}
.card__placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}
.card__placeholder-mark svg {
  display: block;
  width: 86px;
  height: 79px;
  color: var(--gold-deep);
}
.card__placeholder-name {
  font-family: var(--font-head);
  font-size: 2rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.card__placeholder-note {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.chip {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-s);
  background: rgba(255, 253, 248, 0.94);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.chip--hit { background: var(--berry); color: var(--surface); }
.chip--gift { background: var(--gold); color: var(--surface); }

/* Бейдж-звезда с зубчатым краем */
.chip--burst {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  padding: 0;
  border-radius: 0;
  background: var(--berry);
  color: var(--surface);
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(-12deg);
  clip-path: polygon(50.00% 0.00%, 56.73% 7.53%, 65.45% 2.45%, 69.52% 11.69%, 79.39% 9.55%, 80.41% 19.59%, 90.45% 20.61%, 88.31% 30.48%, 97.55% 34.55%, 92.47% 43.27%, 100.00% 50.00%, 92.47% 56.73%, 97.55% 65.45%, 88.31% 69.52%, 90.45% 79.39%, 80.41% 80.41%, 79.39% 90.45%, 69.52% 88.31%, 65.45% 97.55%, 56.73% 92.47%, 50.00% 100.00%, 43.27% 92.47%, 34.55% 97.55%, 30.48% 88.31%, 20.61% 90.45%, 19.59% 80.41%, 9.55% 79.39%, 11.69% 69.52%, 2.45% 65.45%, 7.53% 56.73%, 0.00% 50.00%, 7.53% 43.27%, 2.45% 34.55%, 11.69% 30.48%, 9.55% 20.61%, 19.59% 19.59%, 20.61% 9.55%, 30.48% 11.69%, 34.55% 2.45%, 43.27% 7.53%);
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px;
  gap: 8px;
}

.card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.card__row--bottom { margin-top: auto; padding-top: 16px; align-items: center; }

.card__name {
  font-size: 1.375rem;
  line-height: 1.25;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__weight {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
}

.card__desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__desc.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.card__more {
  align-self: flex-start;
  margin: -4px 0 0;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid rgba(168, 130, 63, 0.45);
  background: none;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--gold-deep);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.card__more:hover { color: var(--ink); border-color: var(--ink); }

.card__price {
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--gold-deep);
}

.card__price--range {
  font-size: 1.2rem;
  white-space: nowrap;
}

.menu__note {
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
  margin: 32px auto 0;
  max-width: 560px;
}

/* ---------- Слайдер «Наши работы» ---------- */
.slider {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* воздух для hover-зума */
  margin: 0 -14px;
  padding: 32px 14px;
}
.slider::-webkit-scrollbar { display: none; }

.slider__item {
  flex: 0 0 clamp(260px, 32vw, 420px);
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.slider__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.slider__item:hover img { transform: scale(1.04); }

/* ---------- Как заказать ---------- */
.order { background: var(--cream-deep); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px 24px;
}

.step__num {
  position: absolute;
  top: -16px;
  left: 24px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--surface);
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
}

.step__title { font-size: 1.375rem; margin-bottom: 8px; }
.step__text { color: var(--ink-soft); font-size: 0.9375rem; margin: 0; }

/* ---------- О кондитерской ---------- */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.about__media { position: relative; }

.about__img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.about__img--main {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.about__text { color: var(--ink-soft); }

.about__perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-top: 24px;
}

.perk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
}
.perk .icon { color: var(--gold-deep); }

/* ---------- Отзывы (по мотивам референса) ---------- */
.reviews { background: var(--cream-deep); }

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.review {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  transition: transform 0.5s ease;
}
.review:hover { transform: scale(1.04); }

.review__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.review__name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review__quote {
  width: 28px;
  height: 28px;
  color: var(--gold);
  flex-shrink: 0;
}

.review__text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(600px 240px at 15% 0%, rgba(192, 154, 78, 0.25), transparent 60%),
    var(--ink);
  padding: 56px 0;
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta__title {
  color: var(--cream);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.cta__sub {
  color: rgba(250, 244, 234, 0.78);
  margin: 0;
  max-width: 44em;
}

/* ---------- Контакты ---------- */
.contacts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-decoration: none;
  transition: transform 0.5s ease, border-color 0.5s ease;
}
.contact:hover { transform: scale(1.04); border-color: rgba(192, 154, 78, 0.5); }

.contact__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-bottom: 8px;
}
.contact__icon svg { width: 24px; height: 24px; }
.contact__icon--wa { background: rgba(37, 158, 88, 0.13); color: #1f8f53; }
.contact__icon--tel { background: rgba(192, 154, 78, 0.16); color: var(--gold-deep); }
.contact__icon--tg { background: rgba(52, 154, 203, 0.13); color: #2275a3; }
.contact__icon--blog { background: rgba(156, 59, 59, 0.12); color: var(--berry); }
.contact__icon--fb { background: rgba(59, 89, 152, 0.13); color: #33559b; }

.contact__name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
}

.contact__value { font-size: 0.8125rem; color: var(--muted); }

.contacts__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.875rem;
  margin: 32px 0 0;
}

/* ---------- Футер ---------- */
.footer {
  background: var(--ink);
  color: rgba(250, 244, 234, 0.82);
  padding: 40px 0 16px;
}

.footer__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(250, 244, 234, 0.14);
}

.logo--light .logo__mark { color: var(--gold); }
.logo--light .logo__name { color: var(--cream); }
.logo--light .logo__sub { color: rgba(250, 244, 234, 0.55); }

.footer__nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  flex-wrap: wrap;
}
.footer__nav a {
  text-decoration: none;
  font-size: 0.875rem;
  color: rgba(250, 244, 234, 0.75);
  transition: color 0.2s ease;
}
.footer__nav a:hover { color: var(--gold); }

.footer__social { display: flex; gap: 8px; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(250, 244, 234, 0.2);
  color: var(--cream);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.footer__social a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.footer__social svg { width: 18px; height: 18px; }

.footer__bottom {
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__bottom p {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(250, 244, 234, 0.5);
}
.footer__dev a {
  color: rgba(250, 244, 234, 0.72);
  text-decoration: none;
  border-bottom: 1px solid rgba(192, 154, 78, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer__dev a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ---------- Плавающая панель ---------- */
.float-bar {
  display: none;
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.float-bar__list {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  visibility: hidden;
  transition: visibility 0s linear 0.28s;
}

.float-bar__btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--surface);
  box-shadow: 0 12px 26px -10px rgba(62, 42, 32, 0.5);
  opacity: 0;
  transform: translateY(14px) scale(0.8);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.24s cubic-bezier(0.2, 0.8, 0.3, 1.1);
}
.float-bar__btn svg { width: 25px; height: 25px; }
.float-bar__btn--wa { background: #259e58; }
.float-bar__btn--tg { background: #2f8fc4; }
.float-bar__btn--tel { background: var(--gold-deep); }

.float-bar.is-open .float-bar__list {
  visibility: visible;
  transition-delay: 0s;
}
.float-bar.is-open .float-bar__btn {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.float-bar.is-open .float-bar__btn:nth-child(3) { transition-delay: 0.02s; }
.float-bar.is-open .float-bar__btn:nth-child(2) { transition-delay: 0.07s; }
.float-bar.is-open .float-bar__btn:nth-child(1) { transition-delay: 0.12s; }
.float-bar.is-open .float-bar__btn:hover { transform: scale(1.07); }

.float-bar__toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(62, 42, 32, 0.6);
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.float-bar__toggle:hover { transform: scale(1.05); }
.float-bar__toggle svg {
  position: absolute;
  width: 24px;
  height: 24px;
  transition: opacity 0.18s ease, transform 0.24s ease;
}
.float-bar__toggle-icon--close { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.float-bar.is-open .float-bar__toggle { background: var(--berry); }
.float-bar.is-open .float-bar__toggle-icon--open { opacity: 0; transform: rotate(90deg) scale(0.6); }
.float-bar.is-open .float-bar__toggle-icon--close { opacity: 1; transform: none; }

/* ---------- Анимация появления ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .hero__inner { gap: 32px; }
  .about__inner { gap: 32px; }
}

@media (max-width: 980px) {
  .hero { padding: 40px 0 48px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 620px; }
  .hero__chip { left: auto; right: 16px; }

  .about__inner { grid-template-columns: 1fr; }
  .about__media { max-width: 560px; }

  .steps { grid-template-columns: 1fr; gap: 32px; }
  .reviews__grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px 16px;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.28s ease,
      visibility 0s linear 0.28s;
    z-index: 49;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition-delay: 0s;
  }
  .nav__link { padding: 14px 8px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__link:last-child { border-bottom: 0; }
  .nav__link::after { display: none; }

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

  .float-bar { display: flex; }
}

@media (max-width: 680px) {
  .section { padding: 40px 0; }
  .section__title { font-size: 1.5rem; }
  .section__head { margin-bottom: 24px; }
  .section__head--row { flex-direction: column; align-items: flex-start; gap: 16px; }

  .cta { padding: 40px 0; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .cta .btn { width: 100%; }

  .card:hover, .review:hover, .contact:hover, .slider__item:hover img, .hero__frame:hover img { transform: none; }
}

@media (max-width: 560px) {
  .logo__mark { width: 44px; height: 40px; }
  .logo__name { font-size: 2rem; }
  .logo__sub { font-size: 0.625rem; letter-spacing: 0.16em; }

  .hero__actions .btn { flex: 1 1 100%; }
  .hero__chip { right: 8px; bottom: 8px; padding: 8px 14px; }
  .hero__chip-num { font-size: 1.3rem; }

  .card__row--bottom { flex-wrap: wrap; }
  .about__perks { grid-template-columns: 1fr; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__nav { margin-left: 0; }
}
