/* ============================================================
   SELLING LAYER — общий слой конверсии (лид-магнит, поп-апы,
   sticky-CTA, траст-бейджи, телефон/Telegram в шапке).
   Подключается на всех страницах после inline-стилей страницы,
   поэтому переиспользует :root-токены (--coral, --pearl, --ink…).
   Единый источник правды — правим здесь, не дублируем по файлам.
   ============================================================ */

/* ---------- Шапка: телефон + Telegram рядом с CTA ---------- */
/* Меню с переключателем языка центрируем абсолютно (как было раньше),
   независимо от ширины правой группы контактов. */
.nav {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
}
.nav > .nav-logo { justify-self: start; }
.nav > .nav-center-group { justify-self: center; }
.nav > .nav-contact { justify-self: end; }

.nav-contact {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
/* Плашка «Номер скопирован» (десктоп, клик по телефону) */
.nav-phone-toast {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--ink, #0A0A0A);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 9px;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 1300;
}
.nav-phone-toast.show { opacity: 1; transform: none; }
.nav-phone,
.nav-tg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 52px;
  border-radius: 999px;
  color: rgba(240, 239, 235, 0.92);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  box-sizing: border-box;
  /* Текстура 1-в-1 как у .nav-pill / .nav-logo */
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: width 0.32s ease, padding 0.32s ease, color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}
.nav-tg { width: 52px; }
/* Телефон по умолчанию — только иконка; разворачивается по клику (.is-open) */
.nav-phone { width: 52px; padding: 0; overflow: hidden; }
.nav-phone .nav-phone-text {
  max-width: 0;
  opacity: 0;
  margin-left: 0;
  transition: max-width 0.32s ease, opacity 0.22s ease, margin-left 0.32s ease;
}
.nav-phone.is-open { width: auto; padding: 0 16px; }
.nav-phone.is-open .nav-phone-text { max-width: 220px; opacity: 1; margin-left: 4px; }
.nav-phone:hover,
.nav-tg:hover {
  color: #fff;
  border-color: rgba(229, 102, 69, 0.6);
  background: rgba(229, 102, 69, 0.12);
}
.nav-phone svg,
.nav-tg svg { width: 18px; height: 18px; flex: 0 0 auto; }
/* На мобильном в шапке — иконки телефона и Telegram (CTA скрыт). */
@media (max-width: 640px) {
  .nav-contact .nav-cta { display: none; }
  /* Непрозрачная заливка (поверх видео-фона hero), бордер + тени как у дока. */
  .nav-phone,
  .nav-tg {
    background: rgba(26, 22, 19, 0.94);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }
  /* Плавающую кнопку Jivo поднимаем выше мобильного меню-дока */
  body > jdiv { bottom: 300px !important; }
}

/* ---------- Траст-бейджи у CTA ---------- */
.cta-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(240, 239, 235, 0.7);
}
.cta-trust span { white-space: nowrap; }
.cta-trust b { color: var(--coral, #e56645); font-weight: 700; }
/* Светлый вариант для Pearl-карточек */
.leadmagnet-card .cta-trust { color: rgba(10, 10, 10, 0.62); justify-content: center; }

/* ---------- Логотипы клиентов (соцдоказательство) ---------- */
.client-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 34px;
  margin: 26px auto 0;
  max-width: 760px;
}
.client-logos-label {
  width: 100%;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 239, 235, 0.5);
  margin-bottom: 4px;
}
.client-logos .client-logo {
  font-family: var(--display, 'Onest', sans-serif);
  font-weight: 700;
  font-size: clamp(15px, 2vw, 19px);
  letter-spacing: -0.01em;
  color: rgba(240, 239, 235, 0.82);
  opacity: 0.85;
}

/* ============================================================
   ЛИД-МАГНИТ — сквозной блок «5 макетов за 24 часа»
   Pearl-карточка с мягким coral-свечением по краю.
   ============================================================ */
.leadmagnet-section { padding-top: 50px; padding-bottom: 50px; scroll-margin-top: 96px; }
#contact-form-section { scroll-margin-top: 96px; }
.leadmagnet-card {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding: 44px 44px 38px;
  border-radius: 26px;
  background: var(--pearl, #F0EFEB);
  color: var(--ink, #0A0A0A);
  box-shadow:
    0 0 0 1px rgba(229, 102, 69, 0.18),
    0 26px 70px -28px rgba(229, 102, 69, 0.55),
    0 12px 40px -20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.leadmagnet-glow {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(40% 50% at 12% 0%, rgba(229, 102, 69, 0.30), transparent 70%),
    radial-gradient(45% 55% at 100% 100%, rgba(244, 194, 125, 0.28), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}
.leadmagnet-body, .leadmagnet-card .lead-form, .leadmagnet-card .lead-success {
  position: relative;
  z-index: 1;
}
.leadmagnet-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral-deep, #C84A2C);
  background: rgba(229, 102, 69, 0.12);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.leadmagnet-title {
  font-family: var(--display, 'Onest', sans-serif);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.08;
  margin: 0 0 14px;
}
.leadmagnet-sub {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(10, 10, 10, 0.72);
  margin: 0 0 24px;
  max-width: 620px;
}

/* ---------- Короткая форма (лид-магнит + поп-ап) ----------
   Вёрстка 1-в-1 с формой связи в модалке: поля во всю ширину, стопкой;
   переключатель «Телефон/Другое» — сегментированный во всю ширину. */
.lead-form { display: block; }
.lead-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.lead-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(10, 10, 10, 0.6);
}
.lead-field input {
  height: 50px;
  padding: 0 16px;
  border-radius: 13px;
  border: 1px solid rgba(10, 10, 10, 0.16);
  background: #fff;
  color: var(--ink, #0A0A0A);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.lead-field input:focus {
  outline: none;
  border-color: var(--coral, #e56645);
  box-shadow: 0 0 0 3px rgba(229, 102, 69, 0.16);
}
.lead-field.error input,
.lead-field.error textarea {
  border-color: #d23b3b;
  box-shadow: 0 0 0 3px rgba(210, 59, 59, 0.14);
}
.lead-field-full { margin-bottom: 12px; }
.lead-field textarea {
  min-height: 84px;
  padding: 13px 16px;
  border-radius: 13px;
  border: 1px solid rgba(10, 10, 10, 0.16);
  background: #fff;
  color: var(--ink, #0A0A0A);
  font-size: 15px;
  font-family: inherit;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.lead-field textarea:focus {
  outline: none;
  border-color: var(--coral, #e56645);
  box-shadow: 0 0 0 3px rgba(229, 102, 69, 0.16);
}
.lead-label .opt { color: rgba(10,10,10,0.4); font-weight: 500; }

/* Переключатель «Телефон / Другое» — сегментированный контрол как в основной
   форме обратной связи (светлая тема под Pearl-карточку). */
.lead-contact-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  margin-bottom: 8px;
  background: rgba(10, 10, 10, 0.05);
  border: 1px solid rgba(10, 10, 10, 0.1);
  border-radius: 11px;
}
.lead-tab {
  flex: 1;
  height: 38px;
  padding: 0 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(10, 10, 10, 0.55);
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.18s ease;
}
.lead-tab.active {
  background: var(--coral, #e56645); color: #fff;
  box-shadow: 0 2px 8px rgba(229, 102, 69, 0.3);
}

/* Юр. подпись под кнопкой (вместо галочки согласия) */
.lead-legal {
  margin: 10px 0 0;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
  color: rgba(10, 10, 10, 0.45);
}
.lead-legal a { color: rgba(10, 10, 10, 0.55); text-decoration: underline; }
/* Юр-подпись в модалке — тоже мельче */
.modal .form-legal-note { font-size: 10.5px; line-height: 1.4; }
.lead-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(10, 10, 10, 0.62);
  cursor: pointer;
  margin: 4px 0 16px;
}
.lead-consent input { margin-top: 2px; flex: 0 0 auto; width: 16px; height: 16px; accent-color: var(--coral, #e56645); }
.lead-consent a { color: var(--coral-deep, #C84A2C); text-decoration: underline; }
.lead-consent.error { color: #d23b3b; }
.lead-consent.error a { color: #d23b3b; }
.lead-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 14px;
  background: var(--coral, #e56645);
  color: #fff;
  font-family: var(--display, 'Onest', sans-serif);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 12px 30px -10px rgba(229, 102, 69, 0.7);
}
.lead-submit:hover { background: var(--coral-deep, #C84A2C); transform: translateY(-1px); }
.lead-submit:disabled { opacity: 0.7; cursor: default; transform: none; }
.lead-submit .arrow { transition: transform 0.2s ease; }
.lead-submit:hover .arrow { transform: translateX(3px); }
.lead-micro {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  font-weight: 600;
  color: rgba(10, 10, 10, 0.78);
}
.lead-error {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(210, 59, 59, 0.1);
  color: #b62f2f;
  font-size: 13px;
  text-align: center;
}
.lead-success { text-align: center; padding: 18px 0; }
.lead-success-icon {
  width: 56px; height: 56px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--coral, #e56645); color: #fff;
  font-size: 28px; font-weight: 700;
}
.lead-success h3 {
  font-family: var(--display, 'Onest', sans-serif);
  font-weight: 800; font-size: 22px; margin: 0 0 8px;
}
.lead-success p { color: rgba(10, 10, 10, 0.7); font-size: 15px; line-height: 1.55; margin: 0; }

@media (max-width: 600px) {
  .leadmagnet-card { padding: 30px 20px 26px; }
  .lead-row { grid-template-columns: 1fr; }
}

/* ============================================================
   СТРАНИЦЫ УСЛУГ — блок преимуществ карточками + кнопка кейсов
   (единый визуальный язык с блоком преимуществ на главной)
   ============================================================ */
.svc-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 8px 0 26px;
}
.svc-benefit-card {
  padding: 22px 22px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}
.svc-benefit-card::before {
  content: "";
  position: absolute;
  top: 0; left: 22px; right: 22px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--coral, #e56645), transparent);
  opacity: 0.7;
}
.svc-benefit-title {
  font-family: var(--display, 'Onest', sans-serif);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--coral, #e56645);
  margin: 0 0 10px;
}
.svc-benefit-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(240, 239, 235, 0.82);
  margin: 0;
}
/* Кнопка «Посмотреть кейсы» — обычного размера, справа от оранжевого CTA */
.case-modal-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.svc-cases-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--display, 'Onest', sans-serif);
  font-weight: 600;
  font-size: 15px;
  color: rgba(240, 239, 235, 0.95);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.2s ease;
}
.svc-cases-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}
.svc-cases-btn .arrow { transition: transform 0.2s ease; }
.svc-cases-btn:hover .arrow { transform: translateX(3px); }

/* Превью услуг на главной: показываем контент целиком (не режем углы),
   фрейм остаётся ровно 1:1. */
.service-media .service-cover,
.service-media .service-video { object-fit: contain !important; }

/* Цветные плашки/чипы для «Кому подойдёт» и «Чем выигрываем» */
.svc-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.svc-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  border: 1px solid transparent;
}
.svc-chip-coral  { background: rgba(229,102,69,0.18);  border-color: rgba(229,102,69,0.45);  color: #f0b3a0; }
.svc-chip-sky    { background: rgba(61,138,208,0.18);  border-color: rgba(61,138,208,0.45);  color: #a9cdef; }
.svc-chip-rose   { background: rgba(217,134,178,0.18); border-color: rgba(217,134,178,0.45); color: #e6bcd5; }
.svc-chip-sunset { background: rgba(244,194,125,0.18); border-color: rgba(244,194,125,0.45); color: #f3d6a8; }

/* ============================================================
   ПОП-АПЫ (таймер + exit-intent) — инжектятся selling.js
   ============================================================ */
.lucid-pop-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 10, 10, 0.62);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lucid-pop-overlay.open { opacity: 1; visibility: visible; }
@media (max-width: 640px) { .lucid-pop-overlay { padding: 12px; } .lucid-pop { padding: 22px 20px 18px; } }
.lucid-pop {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--pearl, #F0EFEB);
  color: var(--ink, #0A0A0A);
  border-radius: 22px;
  padding: 26px 30px 22px;
  box-shadow:
    0 0 0 1px rgba(229, 102, 69, 0.2),
    0 30px 80px -20px rgba(0, 0, 0, 0.6);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lucid-pop-overlay.open .lucid-pop { transform: none; }
.lucid-pop .leadmagnet-glow { position: absolute; inset: 0; }
/* В поп-апе поля плотнее, чтобы влезал по высоте */
.lucid-pop .lead-field { margin-bottom: 10px; }
.lucid-pop .lead-field textarea { min-height: 56px; }
.lucid-pop-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 34px; height: 34px;
  border: none; border-radius: 50%;
  background: rgba(10, 10, 10, 0.06);
  color: rgba(10, 10, 10, 0.6);
  font-size: 20px; line-height: 1; cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease;
}
.lucid-pop-close:hover { background: rgba(10, 10, 10, 0.12); }
.lucid-pop-tag {
  display: inline-block;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--coral-deep, #C84A2C);
  background: rgba(229, 102, 69, 0.12);
  padding: 4px 11px; border-radius: 999px; margin-bottom: 12px;
  position: relative; z-index: 1;
}
.lucid-pop-title {
  font-family: var(--display, 'Onest', sans-serif);
  font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(19px, 4.4vw, 23px); line-height: 1.1;
  margin: 0 0 7px; position: relative; z-index: 1;
}
.lucid-pop-sub {
  font-size: 14px; line-height: 1.45;
  color: rgba(10, 10, 10, 0.7);
  margin: 0 0 12px; position: relative; z-index: 1;
}
.lucid-pop-timer {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  color: var(--coral-deep, #C84A2C);
  background: rgba(229, 102, 69, 0.1);
  border-radius: 10px; padding: 6px 13px; margin-bottom: 12px;
  position: relative; z-index: 1;
}
.lucid-pop-timer b { font-variant-numeric: tabular-nums; font-size: 16px; }
.lucid-pop .lead-row { grid-template-columns: 1fr 1fr; }
@media (max-width: 420px) { .lucid-pop .lead-row { grid-template-columns: 1fr; } }

/* Sticky-CTA на мобильном убран по требованию — телефон теперь в шапке. */
.lucid-sticky-cta { display: none !important; }
