/* ============================================================
   ladica.space — дизайн-система (общая для всех страниц)
   Палитра: бирюза #40E0D0/#48D1CC · золото #FFD700/#D4AF37
   Фон: #FFFFFF / #E0F7FA · текст: #2C3E50
   Шрифты: Playfair Display (заголовки) + Inter (текст) — как в референсе
   Mobile-first.
   ============================================================ */
:root {
  --turquoise: #40E0D0;
  --turquoise-2: #48D1CC;
  --turquoise-deep: #1BA39C;
  --turquoise-darkest: #0E6E6A;
  --gold: #FFD700;
  --gold-2: #D4AF37;
  --gold-soft: #F7E7B3;
  --bg: #FFFFFF;
  --bg-mint: #E0F7FA;
  --bg-mint-2: #F2FBFC;
  --ink: #2C3E50;
  --ink-soft: #5B6B7A;
  --line: rgba(44, 62, 80, .12);

  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, Segoe UI, Roboto, sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 48px -22px rgba(14, 110, 106, .35);
  --shadow-gold: 0 14px 34px -14px rgba(212, 175, 55, .55);
  --container: 1200px;
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Типографика ---------- */
h1, h2, h3, .t-serif { font-family: var(--font-head); font-weight: 600; line-height: 1.15; letter-spacing: .01em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.5rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .18em;
  color: var(--gold-2);
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--mint { background: linear-gradient(180deg, var(--bg-mint-2), var(--bg-mint)); }
.section__head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head p { color: var(--ink-soft); margin-top: 14px; font-size: 1.05rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--center .eyebrow::after { content: ""; width: 34px; height: 2px; background: linear-gradient(270deg, var(--gold), transparent); }

.grad-turquoise { background: linear-gradient(92deg, var(--turquoise-deep), var(--turquoise-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-gold { background: linear-gradient(92deg, var(--gold-2), #e6c76a); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 30px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #4a3b00; box-shadow: var(--shadow-gold); }
.btn--gold:hover { box-shadow: 0 20px 42px -14px rgba(212, 175, 55, .7); }
.btn--turq { background: linear-gradient(135deg, var(--turquoise), var(--turquoise-2)); color: #05443f; box-shadow: var(--shadow); }
.btn--outline { border: 2px solid var(--turquoise-2); color: var(--turquoise-deep); background: transparent; }
.btn--outline:hover { background: rgba(64, 224, 208, .12); }
.btn--ghost { border: 2px solid var(--line); color: var(--ink); }
.btn--sm { padding: 10px 20px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--turquoise-deep); border-bottom: 2px solid rgba(64,224,208,.4); padding-bottom: 2px; transition: .25s; }
.link-more:hover { color: var(--gold-2); border-color: var(--gold-2); gap: 12px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -20px rgba(44,62,80,.35); }
.header__inner { display: flex; align-items: center; gap: 18px; height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.25rem; z-index: 110; }
.logo__mark { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1rem;
  background: conic-gradient(from 140deg, var(--turquoise), var(--gold), var(--turquoise-2), var(--turquoise)); }
.logo__text em { font-style: normal; color: var(--gold-2); }

.nav { display: none; align-items: center; gap: 4px; margin-inline: auto; }
.nav__link { position: relative; padding: 9px 13px; font-size: .92rem; font-weight: 600; color: var(--ink-soft); border-radius: 10px; transition: .25s; }
.nav__link:hover { color: var(--turquoise-deep); background: rgba(64,224,208,.1); }
.nav__link.is-active { color: var(--turquoise-deep); }
.nav__link.is-active::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--turquoise), var(--gold)); }

.header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-btn { padding: 6px 12px; font-size: .78rem; font-weight: 700; color: var(--ink-soft); }
.lang-btn.is-active { background: var(--ink); color: #fff; }

.burger { display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); z-index: 110; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.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); }

@media (min-width: 1024px) {
  .nav { display: flex; }
  .burger { display: none; }
  .header__cta { display: inline-flex; }
}
@media (max-width: 1023px) { .header__cta { display: none; } }

/* Мобильное меню */
.mobile-menu {
  position: fixed; inset: 0; z-index: 105; background: radial-gradient(circle at 80% 0%, #d8f6f3, #fff 65%);
  display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 20px) 28px 40px;
  transform: translateX(100%); transition: transform .4s cubic-bezier(.6,.05,.2,1); visibility: hidden;
}
.mobile-menu.is-open { transform: none; visibility: visible; }
.mobile-menu a.mnav { font-family: var(--font-head); font-size: 1.7rem; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.mobile-menu .btn { margin-top: 26px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 48px) 0 clamp(64px, 8vw, 110px);
  background:
    radial-gradient(900px 480px at 88% 8%, rgba(64,224,208,.28), transparent 60%),
    radial-gradient(700px 420px at 4% 90%, rgba(255,215,0,.16), transparent 60%),
    linear-gradient(180deg, #fff, var(--bg-mint-2)); }
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.hero__title { margin: 18px 0 20px; }
.hero__sub { font-size: clamp(1.02rem, 2vw, 1.2rem); color: var(--ink-soft); max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__stats { display: flex; gap: 28px; margin-top: 42px; flex-wrap: wrap; }
.stat b { font-family: var(--font-head); font-size: 1.9rem; color: var(--turquoise-deep); display: block; }
.stat span { font-size: .85rem; color: var(--ink-soft); }

.hero__photo { position: relative; }
.hero__photo-frame { position: relative; border-radius: 260px 260px var(--radius) var(--radius); overflow: hidden;
  border: 6px solid #fff; box-shadow: var(--shadow); aspect-ratio: 4/5; }
.hero__photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__ring { position: absolute; inset: -22px; border-radius: inherit; border: 1.5px dashed rgba(212,175,55,.6); animation: spin 40s linear infinite; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__badge { position: absolute; left: -8px; bottom: 26px; background: #fff; border-radius: 16px; padding: 12px 18px; box-shadow: var(--shadow);
  display: flex; gap: 10px; align-items: center; font-size: .85rem; font-weight: 700; }
.hero__badge i { font-style: normal; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-mint); }

/* ---------- Карточки ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } .grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; position: relative; overflow: hidden; transition: transform .35s ease, box-shadow .35s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--turquoise), var(--gold)); opacity: 0; transition: .35s; }
.card:hover::before { opacity: 1; }
.card__icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 1.5rem; background: linear-gradient(135deg, var(--bg-mint), #fff); border: 1px solid rgba(64,224,208,.35); margin-bottom: 18px; }
.card__meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--ink-soft); font-size: .88rem; margin: 10px 0 14px; }
.card__price { font-family: var(--font-head); font-size: 1.5rem; color: var(--gold-2); margin: 8px 0 18px; }
.card__price small { font-family: var(--font-body); font-size: .78rem; color: var(--ink-soft); }
.card__list li { display: flex; gap: 9px; padding: 5px 0; font-size: .92rem; color: var(--ink-soft); }
.card__list li::before { content: "✦"; color: var(--turquoise-2); }

/* ---------- Чипсы / фильтры ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip { padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); font-size: .86rem; font-weight: 600; color: var(--ink-soft); transition: .25s; }
.chip:hover { border-color: var(--turquoise-2); color: var(--turquoise-deep); }
.chip.is-active { background: linear-gradient(135deg, var(--turquoise), var(--turquoise-2)); border-color: transparent; color: #05443f; }

/* ---------- Отзывы ---------- */
.testi-track-mask { overflow: hidden; }
.testi-track { display: flex; transition: transform .6s cubic-bezier(.6,.05,.2,1); }
.testi { flex: 0 0 100%; padding: 6px; }
@media (min-width: 700px) { .testi { flex-basis: 50%; } }
.testi__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; height: 100%; display: flex; flex-direction: column; gap: 16px; }
.testi__quote { font-family: var(--font-head); font-size: 1.06rem; line-height: 1.5; color: var(--ink); flex: 1; }
.testi__person { display: flex; gap: 12px; align-items: center; }
.testi__avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #05443f; background: linear-gradient(135deg, var(--turquoise), var(--gold-soft)); }
.testi__result { font-size: .78rem; color: var(--gold-2); font-weight: 700; }
.carousel-nav { display: flex; gap: 10px; justify-content: center; margin-top: 26px; }
.carousel-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); transition: .3s; }
.carousel-dot.is-active { width: 30px; border-radius: 6px; background: linear-gradient(90deg, var(--turquoise), var(--gold)); }

/* ---------- Lead magnet ---------- */
.lead { background: linear-gradient(135deg, var(--gold), var(--gold-2)); border-radius: clamp(22px, 4vw, 34px); padding: clamp(34px, 6vw, 64px);
  color: #3f3200; position: relative; overflow: hidden; box-shadow: var(--shadow-gold); }
.lead::after { content: "❋"; position: absolute; right: -30px; top: -60px; font-size: 260px; color: rgba(255,255,255,.28); line-height: 1; }
.lead h2 { color: #3f3200; }
.lead .form-row { display: grid; gap: 14px; margin-top: 26px; max-width: 640px; position: relative; z-index: 2; }
@media (min-width: 700px) { .lead .form-row { grid-template-columns: 1fr 1fr auto; } }
.lead input { background: rgba(255,255,255,.92); }

/* ---------- Формы ---------- */
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; padding: 15px 18px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: #fff; outline: none; transition: .25s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--turquoise-2); box-shadow: 0 0 0 4px rgba(64,224,208,.18); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #e05656; box-shadow: 0 0 0 4px rgba(224,86,86,.14); }
.field__error { display: none; color: #c0392b; font-size: .78rem; margin-top: 5px; }
.field.is-invalid .field__error { display: block; }
.checkbox { display: flex; gap: 10px; font-size: .82rem; color: var(--ink-soft); align-items: flex-start; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--turquoise-deep); margin-top: 2px; }
.form-success { background: rgba(64,224,208,.15); border: 1px solid var(--turquoise-2); color: var(--turquoise-darkest); border-radius: var(--radius-sm); padding: 14px 18px; font-size: .9rem; margin-top: 14px; }

/* ---------- Модалки ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(14,45,55,.55); backdrop-filter: blur(4px); }
.modal__panel { position: relative; background: #fff; border-radius: var(--radius); max-width: 560px; width: 100%; max-height: 88vh; overflow: auto; padding: clamp(24px, 4vw, 40px); box-shadow: 0 40px 90px -30px rgba(0,0,0,.4); animation: pop .35s cubic-bezier(.2,1.2,.4,1); }
@keyframes pop { from { transform: translateY(26px) scale(.97); opacity: 0; } }
.modal__close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-mint); font-size: 1.1rem; }
body.no-scroll { overflow: hidden; }

/* ---------- Footer ---------- */
.footer { background: #12262e; color: #b9ccd1; padding: clamp(56px, 8vw, 90px) 0 28px; }
.footer a:hover { color: var(--turquoise); }
.footer__grid { display: grid; gap: 36px; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer h4 { color: #fff; font-family: var(--font-head); margin-bottom: 16px; }
.footer__links li { padding: 5px 0; font-size: .92rem; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); font-size: .84rem; transition: .25s; }
.social-btn:hover { border-color: var(--turquoise); background: rgba(64,224,208,.12); transform: translateY(-2px); }
.footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: .8rem; color: #7f979e; }

/* ---------- Разное ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--turquoise), var(--turquoise-2)); color: #05443f; font-size: 1.2rem;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .3s; }
.to-top.is-visible { opacity: 1; pointer-events: auto; }

.floating-cta { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 95; display: flex; gap: 10px;
  background: #fff; padding: 8px; border-radius: 999px; box-shadow: var(--shadow); }
@media (min-width: 1024px) { .floating-cta { display: none; } }
.floating-cta a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.25rem; }
.floating-cta .tg { background: linear-gradient(135deg, #36b7ee, #229ed9); }
.floating-cta .wa { background: linear-gradient(135deg, #43d07a, #25a75c); }

.breadcrumb { font-size: .85rem; color: var(--ink-soft); padding: calc(var(--header-h) + 22px) 0 0; }
.breadcrumb a:hover { color: var(--turquoise-deep); }

.page-hero { padding: calc(var(--header-h) + 40px) 0 clamp(40px, 6vw, 70px);
  background: radial-gradient(700px 380px at 85% 10%, rgba(64,224,208,.25), transparent 60%), linear-gradient(180deg, #fff, var(--bg-mint-2)); }

.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tag--turq { background: rgba(64,224,208,.18); color: var(--turquoise-darkest); }
.tag--gold { background: rgba(212,175,55,.18); color: #8a6d00; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 760px; }
table.data th { text-align: left; padding: 14px 16px; background: var(--bg-mint); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--turquoise-darkest); }
table.data td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
table.data tr:hover td { background: var(--bg-mint-2); }
