/* ============================================================
   Мини-лендинги для рекламы (VK) — лёгкий самостоятельный стиль
   Использует токены variables.css. Не подключает main.css.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 104px; /* reserve space for the fixed .lp-sticky bar, incl. safe-area devices */
}
h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; line-height: 1.14; color: var(--text); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; font-family: inherit; }
ul { list-style: none; }

.lp-container { width: 100%; max-width: 640px; margin: 0 auto; padding: 0 20px; }
.lp-wide { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Top bar: logo + phone, no navigation */
.lp-topbar {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.lp-topbar .lp-wide { display: flex; align-items: center; justify-content: space-between; }
.lp-logo { display: flex; align-items: center; gap: 8px; }
.lp-logo__icon { width: 26px; height: 26px; flex-shrink: 0; }
.lp-logo__name { font-family: 'Cormorant Garamond', serif; font-size: 18px; letter-spacing: .02em; color: var(--text); }
.lp-topbar__phone { font-size: 14px; color: var(--gold); white-space: nowrap; }

/* Hero: real service photo + УТП/price/CTA, two columns on desktop */
.lp-hero { padding: 28px 0 36px; border-bottom: 1px solid var(--border); }
.lp-hero__grid { display: flex; flex-direction: column; gap: 24px; }
.lp-hero__photo { order: -1; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.lp-hero__photo img { width: 100%; height: 100%; object-fit: cover; }

.lp-tag {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
.lp-h1 { font-size: clamp(28px, 6vw, 44px); margin-bottom: 14px; }
.lp-sub { font-size: 15px; color: var(--text-mid); line-height: 1.7; margin-bottom: 20px; }

.lp-price {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: var(--bg-3); border: 1px solid var(--border-l);
  border-radius: var(--radius); padding: 10px 18px; margin-bottom: 22px;
}
.lp-price__label { font-size: 12px; color: var(--text-light); text-transform: uppercase; letter-spacing: .06em; }
.lp-price__value { font-family: 'Cormorant Garamond', serif; font-size: 26px; color: var(--gold-l); font-weight: 600; }

.lp-cta-primary {
  display: block; width: 100%; text-align: center;
  padding: 16px 20px; border-radius: var(--radius-pill);
  background: var(--wine); color: var(--white);
  font-size: 15px; font-weight: 600; letter-spacing: .02em;
  transition: var(--transition);
}
.lp-cta-primary:hover, .lp-cta-primary:active { background: var(--wine-h); }
.lp-hero__text .lp-cta-primary { max-width: 340px; }

.lp-main { padding: 32px 0 0; }

/* Benefits */
.lp-benefits { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.lp-benefit { display: flex; align-items: flex-start; gap: 12px; }
.lp-benefit__icon {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-3); border: 1px solid var(--border-l);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 15px;
}
.lp-benefit__text { font-size: 14px; color: var(--text-mid); line-height: 1.6; padding-top: 6px; }

/* Form */
.lp-form-section {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 20px; margin-bottom: 32px;
}
.lp-form-section__title { font-size: 21px; margin-bottom: 4px; }
.lp-form-section__sub { font-size: 13px; color: var(--text-light); margin-bottom: 18px; }
.lp-field {
  width: 100%; padding: 13px 16px; margin-bottom: 12px;
  background: var(--bg-3); border: 1px solid var(--border-l);
  border-radius: 10px; color: var(--text); font-size: 15px; font-family: inherit;
}
.lp-field::placeholder { color: var(--text-light); }
.lp-field:focus { outline: none; border-color: var(--gold); }
textarea.lp-field { resize: vertical; min-height: 64px; }
.lp-consent { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 16px; }
.lp-consent input { margin-top: 3px; accent-color: var(--gold); flex-shrink: 0; }
.lp-consent label { font-size: 12px; color: var(--text-light); line-height: 1.5; }
.lp-consent a { color: var(--gold); text-decoration: underline; }
.lp-submit {
  width: 100%; padding: 15px 20px; border-radius: var(--radius-pill);
  background: var(--gold); color: var(--bg); font-weight: 600; font-size: 15px;
  transition: var(--transition);
}
.lp-submit:hover { background: var(--gold-l); }
.lp-submit:disabled { opacity: .6; cursor: default; }
.lp-form-error { color: var(--wine-h); font-size: 13px; margin-top: 10px; display: none; }
.lp-form-error.show { display: block; }

.lp-thankyou { display: none; text-align: center; padding: 12px 4px; }
.lp-thankyou.show { display: block; }
.lp-thankyou__check {
  width: 52px; height: 52px; border-radius: 50%; background: var(--bg-3);
  border: 1px solid var(--gold); color: var(--gold); font-size: 26px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.lp-thankyou h3 { font-size: 22px; margin-bottom: 8px; }
.lp-thankyou p { font-size: 14px; color: var(--text-mid); line-height: 1.6; }

/* FAQ */
.lp-faq__title { font-size: 22px; margin-bottom: 16px; }
.lp-faq__item { border-bottom: 1px solid var(--border); }
.lp-faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: transparent; text-align: left; padding: 16px 0;
  font-size: 14.5px; font-weight: 500; color: var(--text);
}
.lp-faq__q span { color: var(--gold); flex-shrink: 0; transition: transform .25s ease; }
.lp-faq__item.open .lp-faq__q span { transform: rotate(180deg); }
.lp-faq__a { max-height: 0; overflow: hidden; transition: max-height .25s ease; font-size: 13.5px; color: var(--text-mid); line-height: 1.7; }
.lp-faq__item.open .lp-faq__a { max-height: 240px; padding-bottom: 16px; }

/* Full price list (before FAQ) */
.lp-prices { margin-bottom: 32px; }
.lp-prices__title { font-size: 22px; margin-bottom: 4px; }
.lp-prices__sub { font-size: 13px; color: var(--text-light); margin-bottom: 18px; }
.lp-price-group + .lp-price-group { margin-top: 22px; }
.lp-price-group__title {
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.lp-price-list { border-top: 1px solid var(--border); }
.lp-price-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.lp-price-row__name { font-size: 14px; color: var(--text); line-height: 1.5; }
.lp-price-row__value { font-size: 14px; color: var(--gold-l); font-weight: 600; white-space: nowrap; }

/* Footer */
.lp-footer { margin: 36px 0 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.lp-footer__row { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-light); }
.lp-footer__row a { color: var(--gold); }
.lp-footer__legal { margin-top: 14px; font-size: 12px; color: var(--text-light); }
.lp-footer__legal a { text-decoration: underline; }

/* Sticky CTA bar (fixed, all breakpoints): booking + price */
.lp-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--bg-2); border-top: 1px solid var(--border);
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
  display: flex; justify-content: center; gap: 10px;
}
.lp-sticky__inner { display: flex; gap: 10px; width: 100%; max-width: 560px; }
.lp-sticky .lp-cta-primary { margin: 0; flex: 1; }
.lp-cta-secondary {
  display: flex; align-items: center; justify-content: center; text-align: center;
  flex: 1; padding: 16px 18px; border-radius: var(--radius-pill);
  background: transparent; color: var(--gold-l); border: 1.5px solid var(--border-l);
  font-size: 15px; font-weight: 600; letter-spacing: .02em; transition: var(--transition);
}
.lp-cta-secondary:hover, .lp-cta-secondary:active { border-color: var(--gold); color: var(--gold); }

/* Privacy modal (plain JS, no fancybox dependency) */
.lp-modal-backdrop {
  position: fixed; inset: 0; background: rgba(8,6,5,.72);
  display: none; align-items: flex-end; justify-content: center; z-index: 100;
  padding: 0;
}
.lp-modal-backdrop.open { display: flex; }
.privacy-modal {
  background: var(--bg-2); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 28px 22px 32px; max-width: 640px; width: 100%; max-height: 82vh;
  overflow-y: auto; color: var(--text);
}
.privacy-modal h2 { font-size: 21px; margin-bottom: 16px; }
.privacy-modal h3 { font-size: 14px; margin: 16px 0 6px; color: var(--gold); font-weight: 600; }
.privacy-modal p { font-size: 13px; line-height: 1.75; color: var(--text-mid); margin-bottom: 8px; }
.privacy-modal__close {
  display: block; margin: 18px auto 0; padding: 10px 26px; border-radius: var(--radius-pill);
  background: var(--gold); color: var(--bg); font-weight: 600; font-size: 13px;
}

@media (min-width: 640px) {
  .lp-modal-backdrop { align-items: center; }
  .privacy-modal { border-radius: var(--radius-lg); }
}

/* Desktop: two-column hero (text left, real service photo right) — matches /uslugi/ pages */
@media (min-width: 861px) {
  .lp-hero { padding: 56px 0 64px; }
  .lp-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .lp-hero__photo { order: 0; }
  .lp-hero__text .lp-cta-primary { display: inline-block; width: auto; padding-left: 36px; padding-right: 36px; }

  .lp-benefits { flex-direction: row; gap: 20px; }
  .lp-benefit { flex: 1; flex-direction: column; align-items: flex-start; gap: 10px; }
  .lp-benefit__text { padding-top: 0; }

  .lp-sticky__inner { max-width: 420px; }
}
