@charset "UTF-8";
/* ============ ШРИФТЫ (самохостинг, кириллица + латиница) ============ */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/cormorant-500.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../assets/fonts/cormorant-500italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/cormorant-600.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/manrope-400.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/manrope-500.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/manrope-600.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/manrope-700.woff2") format("woff2"); }

/* ============ БАЗА ============ */
:root {
  --bg: #f7f4ee;
  --bg-tint: #efe9df;
  --ink: #191613;
  --ink-soft: #4c463e;
  --muted: #877e71;
  --accent: #a4552f;
  --accent-dark: #8a4526;
  --line: rgba(25, 22, 19, 0.12);
  --white: #fffdf9;
  --dark: #171411;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", -apple-system, sans-serif;
  --radius: 14px;
  --shadow: 0 20px 60px rgba(25, 22, 19, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

.section { padding: 110px 0; }
.section--tinted { background: var(--bg-tint); }
.section--dark { background: var(--dark); color: var(--white); }

.section__over {
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 18px;
}
.section__over--light { color: #d9a184; }
.section__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 5vw, 54px); line-height: 1.12;
  margin-bottom: 48px; max-width: 720px;
}
.section__title em { font-style: italic; color: var(--accent); }
.section__title--light { color: var(--white); }
.section__title--light em { color: #d9a184; }

/* ============ КНОПКИ ============ */
.btn {
  display: inline-block; padding: 16px 36px; border-radius: 999px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s, background 0.3s, color 0.3s;
}
.btn:hover { transform: translateY(-3px); }
.btn--solid { background: var(--ink); color: var(--white); }
.btn--solid:hover { background: var(--accent); box-shadow: 0 14px 30px rgba(164, 85, 47, 0.35); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.6); color: var(--white); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn--pay {
  background: var(--accent); color: var(--white); width: 100%; text-align: center;
  padding: 18px 36px; font-size: 16px;
}
.btn--pay:hover { background: var(--accent-dark); box-shadow: 0 14px 30px rgba(164, 85, 47, 0.4); }
/* Неактивная кнопка: приглушена, но текст читаем (контраст AA) */
.btn--pay.is-disabled {
  background: #6b4130; color: rgba(255, 253, 249, 0.72);
  pointer-events: none; box-shadow: none;
}

/* ============ ШАПКА ============ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: box-shadow 0.4s, padding 0.4s;
  padding: 18px 0;
}
/* Подложка вынесена в псевдоэлемент намеренно. backdrop-filter на самой шапке
   делает её точкой отсчёта для position:fixed у потомков, и мобильное меню
   (.nav с inset:0) разворачивалось внутри шапки, а не на весь экран:
   пункты висели в воздухе без фона. */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(247, 244, 238, 0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; transition: opacity 0.4s;
}
.header.is-scrolled::before { opacity: 1; }
.header.is-scrolled {
  box-shadow: 0 1px 0 var(--line); padding: 10px 0;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-family: var(--serif); font-size: 24px; font-weight: 600;
  letter-spacing: 0.02em; text-decoration: none; color: var(--white);
  transition: color 0.4s;
}
.logo em { font-style: italic; font-weight: 500; }
.header.is-scrolled .logo { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 14px; font-weight: 500; text-decoration: none;
  color: rgba(255, 255, 255, 0.92); transition: color 0.3s; letter-spacing: 0.02em;
}
.header.is-scrolled .nav a { color: var(--ink-soft); }
.nav a:hover { color: var(--accent); }
.nav__cta {
  border: 1px solid currentColor; padding: 8px 20px; border-radius: 999px;
}
.burger { display: none; }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: -6%;
  animation: kenburns 18s ease-out both;
}
.hero__bg picture { display: block; width: 100%; height: 100%; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 32%; display: block;
}
@keyframes kenburns {
  from { transform: scale(1.14); }
  to { transform: scale(1); }
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 20, 17, 0.55) 0%, rgba(23, 20, 17, 0.25) 65%, rgba(23, 20, 17, 0.15) 100%),
    linear-gradient(180deg, rgba(23, 20, 17, 0.5) 0%, rgba(23, 20, 17, 0.32) 40%, rgba(23, 20, 17, 0.72) 100%);
}
.hero__content { position: relative; z-index: 2; color: var(--white); padding-top: 60px; }
.hero__over {
  font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase;
  font-weight: 600; color: rgba(255, 255, 255, 0.85); margin-bottom: 26px;
}
.hero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(44px, 8vw, 96px); line-height: 1.04; margin-bottom: 28px;
}
.hero__title em { font-style: italic; color: #ecc9a8; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line span {
  display: block; transform: translateY(110%);
  animation: riseup 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero__title .line:nth-child(2) span { animation-delay: 0.18s; }
@keyframes riseup { to { transform: translateY(0); } }
.hero__sub {
  max-width: 560px; font-size: 18px; font-weight: 400;
  color: rgba(255, 255, 255, 0.9); margin-bottom: 40px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px; z-index: 2;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 8px;
  margin-left: -2px; background: var(--white); border-radius: 2px;
  animation: scrollhint 1.8s ease-in-out infinite;
}
@keyframes scrollhint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* ============ МАРКИ ============ */
.marquee {
  background: var(--ink); color: var(--bg);
  overflow: hidden; padding: 22px 0; white-space: nowrap;
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 40px;
  animation: marquee 26s linear infinite;
}
.marquee__track span {
  font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 26px; letter-spacing: 0.08em;
}
.marquee__track i { color: var(--accent); font-style: normal; font-size: 13px; }
@keyframes marquee { to { transform: translateX(-33.33%); } }

/* ============ КАК ЭТО РАБОТАЕТ ============ */
.how__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px;
}
.how__step { border-top: 1px solid var(--line); padding-top: 26px; }
.how__num {
  font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 44px;
  color: var(--accent); display: block; margin-bottom: 14px; line-height: 1;
}
.how__step h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.how__step p { color: var(--ink-soft); font-size: 15px; }

/* ============ УСЛУГИ ============ */
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
/* Кадры заранее обрезаны под 3:2 (assets/card-*.webp) — заполняют блок
   целиком, без пустот и подложек */
.card__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-tint); }
.card__img img,
.card__img video {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.card__img video { display: block; }
.card:hover .card__img img,
.card:hover .card__img video { transform: scale(1.05); }
.card__body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card__body p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 14px; }
.card__body ul { list-style: none; margin-bottom: 20px; }
.card__body li {
  font-size: 13.5px; color: var(--muted); padding-left: 18px; position: relative; margin-bottom: 5px;
}
.card__body li::before { content: "\2014"; position: absolute; left: 0; color: var(--accent); }
.card__price {
  margin-top: auto; font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--accent);
}

/* ============ ГАЛЕРЕЯ ============ */
.gallery__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px; gap: 20px;
}
.gallery__item {
  position: relative; overflow: hidden; border-radius: var(--radius); margin: 0;
}
.gallery__item--tall { grid-row: span 2; }
.gallery__btn {
  display: block; width: 100%; height: 100%; padding: 0; border: 0;
  background: none; cursor: zoom-in; overflow: hidden;
}
.gallery__btn:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery__item:hover img { transform: scale(1.06); }
/* подсказка «можно открыть» */
.gallery__item::after {
  content: "\2922"; position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(23, 20, 17, 0.55); color: var(--white);
  font-size: 15px; backdrop-filter: blur(4px);
  opacity: 0; transform: scale(0.85); transition: opacity 0.35s, transform 0.35s;
  pointer-events: none;
}
.gallery__item:hover::after, .gallery__item:focus-within::after {
  opacity: 1; transform: scale(1);
}

/* ============ ЛАЙТБОКС ============ */
.lb {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(12, 10, 9, 0.94);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; transition: opacity 0.3s ease;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lb[hidden] { display: none; }
.lb.is-open { opacity: 1; }
.lb__stage {
  margin: 0; max-width: 100%; max-height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.lb__img {
  max-width: min(1200px, 92vw); max-height: 78vh;
  width: auto; height: auto; object-fit: contain;
  border-radius: 8px; background: rgba(255, 253, 249, 0.04);
  opacity: 0; transform: scale(0.97);
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.lb__img.is-ready { opacity: 1; transform: scale(1); }
/* Ролик в лайтбоксе: те же габариты, что у кадра, чтобы листание
   фото → видео → фото не дёргало окно по размеру. */
.lb__video {
  max-width: min(1200px, 92vw); max-height: 78vh;
  width: auto; height: auto;
  border-radius: 8px; background: #000;
}
.lb__video[hidden] { display: none; }
.lb__cap {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 15px; color: rgba(255, 253, 249, 0.9); text-align: center;
}
.lb__count { font-size: 13px; color: rgba(255, 253, 249, 0.5); }
.lb__close, .lb__nav {
  position: absolute; z-index: 2; border: 1px solid rgba(255, 253, 249, 0.28);
  background: rgba(18, 15, 13, 0.62); color: var(--white);
  cursor: pointer; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lb__close:hover, .lb__nav:hover {
  background: rgba(164, 85, 47, 0.9); border-color: rgba(255, 253, 249, 0.5);
}
.lb__close:focus-visible, .lb__nav:focus-visible { outline: 2px solid #ecc9a8; outline-offset: 3px; }
.lb__close {
  top: 22px; right: 22px; width: 46px; height: 46px;
  font-size: 28px; line-height: 1; font-family: var(--sans);
}
.lb__nav {
  top: 50%; transform: translateY(-50%); width: 54px; height: 54px;
  font-size: 32px; line-height: 1; padding-bottom: 4px;
}
.lb__nav:hover { transform: translateY(-50%) scale(1.06); }
.lb__nav--prev { left: 24px; }
.lb__nav--next { right: 24px; }
body.lb-open { overflow: hidden; }

@media (max-width: 720px) {
  .lb { padding: 12px; }
  .lb__img { max-width: 94vw; max-height: 72vh; }
  .lb__close { top: 12px; right: 12px; width: 42px; height: 42px; }
  .lb__nav { width: 46px; height: 46px; font-size: 27px; }
  .lb__nav--prev { left: 8px; }
  .lb__nav--next { right: 8px; }
  .gallery__item::after { opacity: 1; transform: scale(1); width: 28px; height: 28px; font-size: 13px; top: 8px; right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .lb, .lb__img { transition: none; }
  .lb__img { opacity: 1; transform: none; }
}
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px;
  background: linear-gradient(180deg, transparent, rgba(23, 20, 17, 0.72));
  color: var(--white); font-size: 14px; font-weight: 500;
  opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.4s;
}
.gallery__item:hover figcaption { opacity: 1; transform: translateY(0); }

/* ============ ОПЛАТА ============ */
.pay__wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start; }
.pay__text { color: rgba(255, 253, 249, 0.82); margin-bottom: 24px; }
.pay__list { list-style: none; }
.pay__list li {
  padding-left: 24px; position: relative; margin-bottom: 12px;
  color: rgba(255, 253, 249, 0.82); font-size: 15px;
}
.pay__list li::before { content: "\2726"; position: absolute; left: 0; color: var(--accent); font-size: 11px; top: 5px; }
.pay__list a { color: #d9a184; }
.pay__box {
  background: rgba(255, 253, 249, 0.06); border: 1px solid rgba(255, 253, 249, 0.14);
  border-radius: var(--radius); padding: 34px;
}
.check {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  font-size: 14px; margin-bottom: 16px; line-height: 1.5;
}
.check input {
  appearance: none; -webkit-appearance: none; flex: 0 0 auto;
  width: 20px; height: 20px; margin-top: 2px; border-radius: 6px;
  border: 1.5px solid rgba(135, 126, 113, 0.75); background: transparent;
  cursor: pointer; position: relative; transition: background 0.25s, border-color 0.25s;
}
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.pay__person { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 22px; }
.pay__field {
  width: 100%; padding: 13px 16px;
  font-family: var(--sans); font-size: 15px;
  color: var(--white); background: rgba(255, 253, 249, 0.07);
  border: 1.5px solid rgba(255, 253, 249, 0.22); border-radius: 10px;
  outline: none; transition: border-color 0.3s, background 0.3s;
}
.pay__field::placeholder { color: rgba(255, 253, 249, 0.4); }
.pay__field:focus { border-color: var(--accent); background: rgba(255, 253, 249, 0.1); }
.pay__field.is-invalid, .form input.is-invalid { border-color: #d05a3a; }

/* Honeypot: поле-ловушка для ботов, людям не видно */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Страница /pay: только форма оплаты на тёмном фоне */
.paypage { background: var(--dark); min-height: 100svh; }
.paypage__wrap {
  max-width: 560px; margin: 0 auto; padding: 40px 20px 60px;
  display: flex; flex-direction: column; gap: 28px;
}
/* a. — чтобы перебить font-size из .logo--light ниже по файлу */
a.paypage__logo {
  text-decoration: none; display: flex; align-items: center; justify-content: center;
  gap: 0.35em; font-size: clamp(17px, 4.6vw, 26px);
}
.paypage__logo span { text-align: center; }
/* Итальянский триколор по бокам логотипа */
.paypage__flag {
  flex: 0 0 auto; width: 1.08em; height: 0.72em; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 253, 249, 0.16);
}
.paypage__req { text-align: center; font-size: 12.5px; color: rgba(255, 253, 249, 0.45); }

.pay__amount-label {
  display: block; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; color: rgba(255, 253, 249, 0.65); margin-bottom: 10px;
}
.pay__amount-wrap { position: relative; margin-bottom: 22px; }
.pay__amount {
  width: 100%; padding: 13px 44px 13px 16px;
  font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--white); background: rgba(255, 253, 249, 0.07);
  border: 1.5px solid rgba(255, 253, 249, 0.22); border-radius: 10px;
  outline: none; transition: border-color 0.3s, background 0.3s;
}
.pay__amount:focus { border-color: var(--accent); background: rgba(255, 253, 249, 0.1); }
.pay__cur {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-size: 19px; color: rgba(255, 253, 249, 0.55); pointer-events: none;
}
/* Галка согласия в блоке оплаты — мельче базовой (по просьбе клиента, −20%) */
.pay__box .check { font-size: 11px; gap: 10px; }
.pay__box .check input { width: 18px; height: 18px; margin-top: 0; }
.pay__box .check input:checked::after { left: 5px; top: 2px; width: 5px; height: 9px; }
.pay__box .check span { color: rgba(255, 253, 249, 0.85); }
.pay__box .check a { color: #d9a184; }
.pay__box .btn--pay { margin-top: 10px; }
.pay__note {
  margin-top: 14px; font-size: 12.5px; color: rgba(255, 253, 249, 0.72); text-align: center;
}

/* ============ FAQ ============ */
.faq__item {
  border-bottom: 1px solid var(--line); padding: 6px 0;
}
.faq__item summary {
  cursor: pointer; list-style: none; position: relative;
  font-size: 18px; font-weight: 600; padding: 18px 44px 18px 0;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-size: 28px; font-weight: 500; color: var(--accent);
  transition: transform 0.35s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding: 0 0 20px; color: var(--ink-soft); max-width: 680px; }
.faq__item a { color: var(--accent); }

/* ============ ФОРМА ============ */
.form { max-width: 640px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.form input[type="text"], .form input[type="tel"] {
  font-family: var(--sans); font-size: 15px; padding: 16px 20px;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--white);
  outline: none; transition: border-color 0.3s; width: 100%;
}
.form input[type="text"]:focus, .form input[type="tel"]:focus { border-color: var(--accent); }
.form .check span { color: var(--ink-soft); }
.form .check a { color: var(--accent); }
.form .btn { margin-top: 8px; }
.form__ok { margin-top: 16px; color: #2e7d4f; font-weight: 600; }

/* ============ ФУТЕР ============ */
.footer { background: var(--dark); color: rgba(255, 253, 249, 0.75); padding: 70px 0 0; }
.footer__grid {
  display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 48px; padding-bottom: 50px;
}
.logo--light { color: var(--white); font-size: 26px; }
.footer__tag { margin-top: 14px; font-size: 14px; max-width: 280px; }
.footer__contacts { margin-top: 18px; font-size: 15px; line-height: 1.7; }
.footer__contacts a {
  color: var(--white); text-decoration: none; font-weight: 600;
  transition: color 0.3s;
}
.footer__contacts a:hover { color: #d9a184; }
.footer__hint {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 253, 249, 0.5);
}
.messengers { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.messenger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 13px; border-radius: 999px;
  border: 1px solid rgba(255, 253, 249, 0.24);
  color: var(--white); text-decoration: none;
  font-size: 14px; font-weight: 600;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.messenger svg { width: 18px; height: 18px; fill: currentColor; flex: 0 0 auto; }
.messenger:hover { transform: translateY(-2px); border-color: transparent; }
.messenger--tg:hover { background: #2AABEE; }
.messenger--max:hover { background: var(--accent); }
.footer__req p { font-size: 13.5px; margin-bottom: 4px; }
.footer__docs { display: flex; flex-direction: column; gap: 10px; }
.footer__docs a {
  font-size: 14px; text-decoration: none; color: rgba(255, 253, 249, 0.75);
  transition: color 0.3s; width: fit-content;
}
.footer__docs a:hover { color: #d9a184; }
.footer__bottom {
  border-top: 1px solid rgba(255, 253, 249, 0.12); padding-top: 22px; padding-bottom: 22px;
  font-size: 13px; color: rgba(255, 253, 249, 0.65);
}

/* ============ ДОК-СТРАНИЦЫ ============ */
.doc { padding-top: 140px; padding-bottom: 90px; }
.doc h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 12px; }
.doc__date { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.doc h2 { font-size: 20px; font-weight: 700; margin: 34px 0 12px; }
.doc p, .doc li { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 10px; }
.doc ul, .doc ol { padding-left: 22px; margin-bottom: 14px; }
.doc .back { color: var(--accent); font-weight: 600; text-decoration: none; font-size: 14px; }

/* ============ АНИМАЦИЯ ПОЯВЛЕНИЯ ============ */
.reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.how__step.reveal:nth-child(2), .card.reveal:nth-child(2) { transition-delay: 0.1s; }
.how__step.reveal:nth-child(3), .card.reveal:nth-child(3) { transition-delay: 0.2s; }
.how__step.reveal:nth-child(4), .card.reveal:nth-child(4) { transition-delay: 0.3s; }
.card.reveal:nth-child(5) { transition-delay: 0.4s; }
.card.reveal:nth-child(6) { transition-delay: 0.5s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg { animation: none; }
  .marquee__track { animation-duration: 60s; }
}
.no-anim { scroll-behavior: auto; }
.no-anim .hero { min-height: 860px; }
.no-anim .reveal { opacity: 1; transform: none; transition: none; }
.no-anim .hero__bg { animation: none; transform: none; }
.no-anim .hero__title .line span { animation: none; transform: none; }

/* ============ АДАПТИВ ============ */
@media (max-width: 1000px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .how__grid { grid-template-columns: repeat(2, 1fr); }
  .pay__wrap { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 799px) {
  /* иконка-подсказка скролла — десктопная метафора: на телефоне
     наползает на кнопки hero и не нужна */
  .hero__scroll { display: none; }
}
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .nav {
    position: fixed; inset: 0; background: rgba(23, 20, 17, 0.96);
    flex-direction: column; justify-content: center; gap: 28px;
    opacity: 0; pointer-events: none; transition: opacity 0.35s;
  }
  .nav.is-open { opacity: 1; pointer-events: auto; }
  .nav a, .header.is-scrolled .nav a { color: var(--white); font-size: 20px; }
  .burger {
    display: flex; flex-direction: column; gap: 5px; background: none; border: none;
    cursor: pointer; z-index: 110; padding: 6px;
  }
  .burger span {
    width: 26px; height: 2px; background: currentColor; color: var(--white);
    transition: transform 0.3s, opacity 0.3s; border-radius: 2px;
  }
  .header.is-scrolled .burger span { color: var(--ink); }
  .burger.is-open span { color: var(--white); }
  .burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.is-open span:nth-child(2) { opacity: 0; }
  .burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .services__grid { grid-template-columns: 1fr; }
  .how__grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .pay__box { padding: 24px; }
  .doc { padding-top: 112px; padding-bottom: 64px; }
  /* пресеты суммы — одной строкой и на мобильных */
  .pay__person { grid-template-columns: 1fr; }
}

/* ============ MOLECOLA: правки под маленький сайт ============ */

/* Hero без фотографии: фотоматериалов от заказчика нет, а пустой .hero__bg
   пропускает кремовый фон body сквозь тёмную вуаль и даёт грязный серый.
   Поэтому фон рисуем цветом — с еле заметным намёком на итальянский флаг. */
.hero--plain { min-height: 72svh; background: var(--dark); }
.hero--plain .hero__bg {
  inset: 0; animation: none;
  background:
    radial-gradient(120% 90% at 12% 18%, rgba(0, 140, 69, 0.20), transparent 58%),
    radial-gradient(110% 90% at 88% 26%, rgba(205, 33, 42, 0.22), transparent 60%),
    linear-gradient(180deg, #1f1c17 0%, #171411 100%);
}
.hero--plain .hero__veil {
  background: linear-gradient(180deg, rgba(23, 20, 17, 0.18) 0%, rgba(23, 20, 17, 0.58) 100%);
}

/* Логотип-словомарка: у MOLECOLA нет курсивной второй половины, как
   у «Shopping Italia», поэтому держим его разрядкой, а не начертанием. */
.logo--brand { letter-spacing: 0.2em; font-weight: 600; }

/* Блок контактов магазина */
.shop__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.shop__item h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.shop__item p { color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.shop__item a { color: var(--accent); }

/* Врезка со ссылкой на ленту.
   Блок центрированный, а у .section__title жёсткие max-width: 720px и
   margin-bottom: 48px — в центрированной колонке заголовок из-за этого
   оптически уезжает влево от абзаца, а разрыв под ним получается больше,
   чем воздух вокруг кнопки. Здесь выравниваем всё по одной оси и задаём
   свой вертикальный ритм. */
.livecta { max-width: 700px; text-align: center; }
.livecta .section__title { max-width: none; margin: 0 auto 20px; }
.livecta .section__over { margin-bottom: 14px; }
.livecta p:not(.section__over) {
  max-width: 560px; margin: 0 auto; color: var(--ink-soft);
  text-wrap: balance;                 /* строки одинаковой длины, без висячего слова */
}
.livecta .btn { margin-top: 34px; }

/* Кнопка «Правила покупки» в блоке оплаты */
.pay__rules { margin-top: 26px; }
