/* Onest подключается локально всеми страницами сайта. Раньше здесь стояло только
   font-family: 'Onest' без единого @font-face — шрифт не грузился нигде, и весь
   сайт молча показывался системным. Имя семейства у переменной версии —
   «Onest Variable», это и есть та деталь, из-за которой объявление не работало. */
/* onest-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Onest Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/onest/onest-cyrillic-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* onest-cyrillic-wght-normal */
@font-face {
  font-family: 'Onest Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/onest/onest-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* onest-latin-ext-wght-normal */
@font-face {
  font-family: 'Onest Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/onest/onest-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* onest-latin-wght-normal */
@font-face {
  font-family: 'Onest Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/onest/onest-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* ============================================================
   PRAVOKEY РІР‚вЂќ Design System v4.0
   TOTUM-inspired Р’В· Bold Color Blocks Р’В· #006b8b Accent
   ============================================================ */

/* ======================== RESET ======================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ======================== TOKENS ======================== */
:root {
  --accent: #044b41;
  --accent-light: #0d6e61;
  --accent-dark: #02312b;
  --accent-50: #f0f7f5;
  --accent-100: #e0f2ed;

  --white: #ffffff;
  --off-white: #f8f9fb;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --font: 'Onest Variable', 'Onest', system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.10);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 300ms;
}

/* ======================== BASE ======================== */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  font-size: 18px;
  color: var(--gray-800);
  background: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

/* Затемнение при наведении — только для ссылок без своего цвета. Псевдокласс внутри
   :where() не добавляет веса: раньше "a:hover" (0,1,1) перебивал цвет любой ссылки-кнопки
   с классом (0,1,0) — белый текст на тёмно-зелёной кнопке при наведении пропадал
   («Скачать счёт», крошки и RSS в тёмной шапке статей). */
a:where(:hover) {
  color: var(--accent-dark);
}

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

/* ======================== HEADER ======================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: background, backdrop-filter, box-shadow;
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__logo-icon {
  width: 32px;
  height: auto;
}

.header__logo-icon path {
  fill: var(--accent);
}

.header__logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: 0.02em;
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.header__cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 107, 139, 0.3);
}

/* === Шапка поверх тёмного героя ===
   Пока шапка не прокручена, она прозрачная, а её ссылки тёмные — на светлых
   страницах это читается, на тёмном герое (статьи) сливалось с фоном.
   Класс ставится на body страницами, у которых первый экран тёмный. */
body.has-dark-hero .header:not(.header--scrolled) .header-nav__link {
  color: rgba(255, 255, 255, 0.86);
}

body.has-dark-hero .header:not(.header--scrolled) .header-nav__link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

body.has-dark-hero .header:not(.header--scrolled) .header__logo-text {
  color: var(--white);
}

body.has-dark-hero .header:not(.header--scrolled) .header__cta,
body.has-dark-hero .header:not(.header--scrolled) .header-contact-btn {
  background: #C8A55C;
  color: #02312b;
}

body.has-dark-hero .header:not(.header--scrolled) .header__cta:hover,
body.has-dark-hero .header:not(.header--scrolled) .header-contact-btn:hover {
  background: #d8b876;
  color: #02312b;
}

body.has-dark-hero .header:not(.header--scrolled) .header-burger span {
  background: var(--white);
}

body.has-dark-hero .header:not(.header--scrolled) .header-burger:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ======================== HERO ======================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 0;
  background: var(--white);
  border-radius: 0 0 60px 60px;
  z-index: 10;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.02);
}

.hero>.container {
  width: 100%;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__content {
  padding-bottom: 40px;
  position: relative;
  z-index: 2;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--accent-50);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
  border: 1px solid var(--accent-100);
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

.hero__title {
  font-size: clamp(3.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--gray-900);
  margin-bottom: 32px;
  letter-spacing: -0.04em;
}

.hero__title-accent {
  color: var(--accent);
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 36px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  box-shadow: 0 4px 20px rgba(0, 107, 139, 0.25);
}

.hero__btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 107, 139, 0.35);
}

.hero__btn-arrow {
  font-size: 1.2rem;
  transition: transform var(--dur) var(--ease);
}

.hero__btn:hover .hero__btn-arrow {
  transform: translateX(4px);
}

/* Hero Right: Photo + Quote Card */
.hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

/* ======================== STATS BAR ======================== */
.stats-bar {
  background: var(--accent);
  padding: 120px 0 80px;
  position: relative;
  z-index: 1;
  margin-top: -60px;
}

.stats-bar::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(var(--sx1, 0px), var(--sy1, 0px));
  transition: transform 0.15s ease-out;
}

.stats-bar::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(var(--sx2, 0px), var(--sy2, 0px));
  transition: transform 0.2s ease-out;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-num {
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
  font-weight: 500;
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 12px;
}

/* ======================== SECTIONS ======================== */
.section {
  padding: 100px 0;
}

.section--gray {
  background: var(--off-white);
}

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

.section__overline {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.section__desc {
  font-size: 1.05rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ======================== PAIN CARDS ======================== */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pain-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}

.pain-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease);
}

.pain-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.pain-card:hover::after {
  transform: scaleX(1);
}

.pain-card__num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray-300);
  margin-bottom: 24px;
  line-height: 1;
  font-family: var(--font);
}

.pain-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  line-height: 1.3;
}

.pain-card__text {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ======================== PROCESS ======================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ======================== CASES ======================== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.case-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--dur) var(--ease);
}

.case-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.case-card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  background: var(--accent-50);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.case-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  line-height: 1.3;
}

.case-card__result {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #059669;
  margin-bottom: 12px;
}

.case-card__text {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ======================== CTA BANNER ======================== */
.cta-section {
  padding: 100px 0;
}

.cta-banner {
  background: var(--accent);
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(var(--sx1, 0px), var(--sy1, 0px));
  transition: transform 0.15s ease-out;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(var(--sx2, 0px), var(--sy2, 0px));
  transition: transform 0.2s ease-out;
}

.cta-banner__title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-banner__text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

.cta-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 36px;
  width: 100%;
  max-width: 440px;
  min-width: 300px;
  background: var(--off-white);
  color: var(--accent-dark);
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  position: relative;
  z-index: 1;
}

.cta-banner__btn:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ======================== FOOTER ======================== */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 32px 0;
}

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

.footer__copy {
  font-size: 0.85rem;
}

.footer a {
  color: var(--gray-400);
}

.footer a:hover {
  color: var(--white);
}

/* ======================== PAYMENT MODAL ======================== */
.payment-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur) var(--ease);
}

.payment-modal.active {
  opacity: 1;
  visibility: visible;
}

.payment-modal__content {
  background: var(--off-white);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.97);
  transition: all var(--dur) var(--ease);
}

.payment-modal.active .payment-modal__content {
  transform: translateY(0) scale(1);
}

.payment-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gray-100);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: var(--gray-500);
  font-size: 18px;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-modal__close:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

.payment-modal__header {
  margin-bottom: 24px;
  text-align: center;
}

.payment-modal__header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.payment-modal__header p {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.payment-modal__methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-method {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: 16px;
  border-radius: var(--radius-md);
  color: var(--gray-800);
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all 200ms var(--ease);
}

.payment-method:hover {
  border-color: var(--accent);
  background: var(--accent-50);
  color: var(--accent-dark);
}

.payment-modal__secure {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--gray-400);
  text-align: center;
}

/* ======================== UTILITY ======================== */
.landing-seo-phrases {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1024px) {
  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 0;
    background: var(--white);
    border-radius: 0 0 60px 60px;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.02);
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__content {
    padding-bottom: 40px;
    position: relative;
    z-index: 2;
  }

  .hero__subtitle {
    margin: 0 auto 36px;
  }

  .hero__visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
  }

  .hero__award {
    right: -10px;
  }

  .hero__quote-card {
    margin-left: 0;
    margin-right: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .pain-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-card__connector {
    position: absolute;
    top: 60px;
    right: -12px;
    width: 24px;
    height: 2px;
    background: var(--gray-300);
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 0;
    background: var(--white);
    border-radius: 0 0 60px 60px;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.02);
  }

  .hero__title {
    font-size: 2rem;
  }

  .pain-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-num {
    font-size: 2.5rem;
  }

  .cta-banner {
    padding: 48px 24px;
  }

  .cta-banner__btn {
    min-width: 0;
    width: 100%;
  }

  .header__cta span {
    display: none;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

.hero__bg-lines-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  perspective: 1000px;
  transform-style: preserve-3d;
}

#hero-waves-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* === Shared: Premium Modal Shell === */
/* Общая "оболочка" для всех премиум-модалок сайта (contact_modal, payment_modal):
   overlay, карточка модалки, кнопка закрытия, контейнер контента, заголовок/подзаголовок.
   У каждой модалки остаются только её уникальные внутренние стили в соответствующей секции. */
.premium-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.premium-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.premium-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 32px 64px rgba(4, 75, 65, 0.13);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.premium-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.premium-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.04);
  border: none;
  border-radius: 50%;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.premium-modal-close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--gray-900);
}

.premium-modal-content {
  position: relative;
  padding: 36px 32px 32px;
  overflow-y: auto;
  overflow-x: hidden;
}

.premium-modal-header {
  margin-bottom: 24px;
  padding-right: 24px;
}

.premium-modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gray-900);
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.premium-modal-subtitle {
  font-size: 0.92rem;
  color: var(--gray-500);
  line-height: 1.5;
  margin: 0;
}

/* Контактная модалка открывается поверх платёжной при переключении между ними */
#pcm-overlay.premium-modal-overlay {
  z-index: 99998;
}

#pcm-modal.premium-modal {
  z-index: 99999;
}

#pm-overlay.premium-modal-overlay {
  z-index: 99996;
}

#pm-modal.premium-modal {
  z-index: 99997;
}

/* Бесплатный чат — ниже контактной модалки: «Перезвоните» открывается поверх */
#fcm-overlay.premium-modal-overlay {
  z-index: 99994;
}

#fcm-modal.premium-modal {
  z-index: 99995;
}

/* === Бесплатный вход в чат (partials/free_chat_modal.blade.php) === */
.fcm-label {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(4, 75, 65, 0.08);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.fcm-hint {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--gray-500);
}

.fcm-submit {
  width: 100%;
  justify-content: center;
  text-align: center;
  border: none;
  cursor: pointer;
}

.fcm-submit:disabled {
  opacity: 0.7;
  cursor: progress;
}

.fcm-consent {
  margin: -6px 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--gray-500);
}

.fcm-consent a {
  color: var(--gray-600);
  text-decoration: underline;
}

.fcm-alt {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 0;
  background: none;
  border: none;
  font: inherit;
  font-size: 0.88rem;
  color: var(--gray-600);
  text-decoration: underline;
  cursor: pointer;
}

.fcm-alt:hover {
  color: var(--accent);
}

/* Ловушка для ботов — вне экрана, а не display:none (часть ботов такие поля пропускает) */
.fcm-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 640px) {
  .premium-modal {
    max-width: calc(100% - 32px);
    border-radius: 20px;
  }

  .premium-modal-content {
    padding: 28px 24px 24px;
  }
}

/* === STYLES FROM contact_modal.blade.php === */

.pcm-step {
  display: none;
  animation: pcmFadeIn 0.3s ease forwards;
}

.pcm-step.pcm-active {
  display: block;
}

@keyframes pcmFadeIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.pcm-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pcm-option-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}

.pcm-option-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(4, 75, 65, 0.06);
  transform: translateY(-2px);
}

.pcm-option-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pcm-option-text {
  flex: 1;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-900);
}

.pcm-option-arrow {
  color: var(--gray-400);
  transition: transform 0.2s;
}

.pcm-option-btn:hover .pcm-option-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.pcm-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--gray-500);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-bottom: 24px;
  transition: color 0.2s;
}

.pcm-back-btn:hover {
  color: var(--gray-900);
}

.pcm-email-box {
  background: rgba(4, 75, 65, 0.04);
  border: 1px solid rgba(4, 75, 65, 0.1);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.pcm-email-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
  user-select: all;
}

.pcm-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pcm-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.pcm-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
}

.pcm-req {
  color: #ef4444;
}

.pcm-input,
.pcm-textarea {
  width: 100%;
  padding: 14px 16px;
  background: #f9fafb;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  font-size: 1rem;
  color: var(--gray-900);
  font-family: inherit;
  transition: all 0.2s;
  box-sizing: border-box;
}

.pcm-textarea {
  min-height: 100px;
  resize: vertical;
}

.pcm-input:focus,
.pcm-textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(4, 75, 65, 0.1);
}

.pcm-input.pcm-has-error,
.pcm-textarea.pcm-has-error {
  border-color: #ef4444;
  background: #fef2f2;
}

.pcm-error {
  display: none;
  font-size: 0.8rem;
  color: #ef4444;
  font-weight: 500;
  margin-top: 4px;
}

.pcm-consent-group {
  margin-top: 8px;
}

.pcm-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.pcm-checkbox-wrapper {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.pcm-checkbox {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
  margin: 0;
}

.pcm-checkbox-custom {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1.5px solid var(--gray-300);
  border-radius: 6px;
  background: #fff;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pcm-checkbox-custom svg {
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: #fff;
}

.pcm-checkbox:checked+.pcm-checkbox-custom {
  background: var(--accent);
  border-color: var(--accent);
}

.pcm-checkbox:checked+.pcm-checkbox-custom svg {
  opacity: 1;
  transform: scale(1);
}

.pcm-checkbox:focus-visible+.pcm-checkbox-custom {
  box-shadow: 0 0 0 3px rgba(4, 75, 65, 0.2);
}

.pcm-consent-text {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.5;
}

.pcm-consent-text a {
  color: var(--gray-900);
  text-decoration: underline;
}

.pcm-submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.pcm-success-icon {
  width: 80px;
  height: 80px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

@media (max-width: 640px) {
  .pcm-modal {
    max-width: calc(100% - 32px);
    border-radius: 20px;
  }

  .pcm-content {
    padding: 32px 24px;
  }
}


/* === STYLES FROM header.blade.php === */
/* ===== Header Nav ===== */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.header-nav__link:hover {
  color: var(--accent);
  background: rgba(4, 75, 65, 0.04);
}

/* ===== Dropdown ===== */
.header-nav__dropdown {
  position: relative;
}

.header-nav__dropdown-trigger svg {
  transition: transform 0.2s;
}

.header-nav__dropdown:hover .header-nav__dropdown-trigger svg {
  transform: rotate(180deg);
}

.header-nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 8px;
  min-width: 260px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.04);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.header-nav__dropdown:hover .header-nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.header-nav__dropdown-link {
  display: block;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s;
  white-space: nowrap;
}

.header-nav__dropdown-link:hover {
  color: var(--accent);
  background: rgba(4, 75, 65, 0.04);
}

.header-nav__dropdown-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 4px 8px;
}

/* ===== Mobile Burger ===== */
.header-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s;
}

.header-burger:hover {
  background: rgba(0, 0, 0, 0.04);
}

.header-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all 0.3s;
}

.header-burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header-burger.active span:nth-child(2) {
  opacity: 0;
}

.header-burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Mobile Menu ===== */
.header-mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.header-mobile-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.header-mobile-menu__inner {
  padding: 24px 20px 40px;
  max-width: 400px;
  margin: 0 auto;
}

.header-mobile-menu__section {
  display: flex;
  flex-direction: column;
}

.header-mobile-menu__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 8px;
  padding: 0 12px;
}

/* ===== Header Contact Button ===== */
.header-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #082F24;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.header-contact-btn:hover {
  background: #041a14;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(8, 47, 36, 0.2);
}

.header-contact-btn svg {
  transition: transform 0.2s;
}

.header-contact-btn:hover svg {
  transform: translateX(3px);
}

.header-mobile-menu__link {
  display: block;
  padding: 14px 12px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-800);
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.15s;
}

.header-mobile-menu__link:hover {
  color: var(--accent);
  background: rgba(4, 75, 65, 0.04);
}

.header-mobile-menu__divider {
  height: 1px;
  background: var(--gray-100);
  margin: 12px 0;
}

@media (max-width: 1024px) {
  .header-nav {
    display: none;
  }

  .header-burger {
    display: flex;
  }

  .header-mobile-menu {
    display: block;
  }
}


/* === STYLES FROM scripts.blade.php === */
@keyframes shake-error {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  75% {
    transform: translateX(4px);
  }
}

.custom-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  width: max-content;
  max-width: calc(100% - 32px);
  background: #fff;
  border: 1px solid #ef4444;
  border-radius: 12px;
  padding: 16px 24px;
  box-shadow: 0 12px 32px rgba(239, 68, 68, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 999999;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.custom-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Глобальные стили для SVG-чекбокса из модалки */
.global-consent-group {
  margin-top: 16px;
}

.global-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.global-checkbox-wrapper {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 0;
}

.global-checkbox {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
  margin: 0;
}

.global-checkbox-custom {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1.5px solid var(--gray-300);
  border-radius: 6px;
  background: #fff;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes soft-pulse-checkbox {
  0% {
    box-shadow: 0 0 0 0 rgba(4, 75, 65, 0.25);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(4, 75, 65, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(4, 75, 65, 0);
  }
}

@keyframes urgent-pulse-checkbox {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(239, 68, 68, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.shake-animation {
  animation: shake-error 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Soft pulse when unchecked */
.global-checkbox:not(:checked):not(.has-error)+.global-checkbox-custom {
  animation: soft-pulse-checkbox 2s infinite;
}

/* Error state: urgent red pulse */
.global-checkbox.has-error+.global-checkbox-custom {
  border-color: #ef4444;
  background: #fef2f2;
  animation: urgent-pulse-checkbox 1.2s infinite;
}

.global-checkbox-custom svg {
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: #fff;
}

.global-checkbox:checked+.global-checkbox-custom {
  background: var(--accent);
  border-color: var(--accent);
}

.global-checkbox:checked+.global-checkbox-custom svg {
  opacity: 1;
  transform: scale(1);
}

.global-checkbox:focus-visible+.global-checkbox-custom {
  box-shadow: 0 0 0 3px rgba(4, 75, 65, 0.2);
}

.global-consent-text {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.5;
  user-select: none;
}

.global-consent-text a {
  color: var(--gray-900);
  text-decoration: underline;
}

/* Inverse theme for dark backgrounds */
@keyframes soft-pulse-checkbox-inverse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.is-inverse .global-checkbox-custom {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.is-inverse .global-checkbox:not(:checked):not(.has-error)+.global-checkbox-custom {
  animation: soft-pulse-checkbox-inverse 2s infinite;
}

.is-inverse .global-checkbox.has-error+.global-checkbox-custom {
  background: rgba(239, 68, 68, 0.2);
}

.is-inverse .global-checkbox:checked+.global-checkbox-custom {
  background: #fff;
  border-color: #fff;
}

.is-inverse .global-checkbox:checked+.global-checkbox-custom svg {
  color: var(--accent);
}

.global-scroll-btns {
  position: fixed;
  right: 16px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
  pointer-events: none;
}

.global-scroll-btn {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--gray-200);
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.global-scroll-btn:hover {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(0) scale(1.05);
}

.global-scroll-btn.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .global-scroll-btns {
    right: 0;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .global-scroll-btn {
    border-radius: 12px 0 0 12px;
    width: 40px;
    height: 48px;
    border-right: none;
  }
}

/* Mobile tap highlight */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Cookie Banner */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: calc(100% - 48px);
  max-width: 340px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 24px;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--gray-100);
  z-index: 9999;
  transform: translateZ(0);
  will-change: transform, opacity;
}

/* Видимость баннера держит класс (см. footer.blade.php): инлайновый display
   перебивал бы мобильную flex-раскладку ниже. */
#cookie-banner.is-visible {
  display: block;
}

/* Текст и кнопка баннера: раньше стояли инлайном в разметке, вынесены в CSS,
   чтобы мобильная раскладка могла их переопределить. */
.cookie-banner__text {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.6;
}

.cookie-banner__link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Баннер лежит внутри тёмного подвала, и «.footer a:hover» (белый) делал ссылку
   невидимой на белом фоне баннера */
#cookie-banner .cookie-banner__link:hover {
  color: var(--accent-dark);
}

.cookie-banner__btn {
  background: var(--gray-900);
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}

.cookie-banner__btn:hover {
  background: var(--accent);
}

@media (max-width: 768px) {
  #cookie-banner {
    left: 16px;
    right: 16px;
    margin: 0 auto;
    width: calc(100% - 32px);
    bottom: max(16px, env(safe-area-inset-bottom, 16px));
  }

  /* На телефоне баннер в прежнем виде занимал около 190 px и ложился поверх
     главной кнопки в первом экране — платный трафик приходил на закрытый CTA.
     Компактная строка «текст + кнопка» умещается примерно в 90 px и встаёт
     ниже кнопки. */
  #cookie-banner {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
  }

  #cookie-banner.is-visible {
    display: flex;
  }

  .cookie-banner__text {
    font-size: 0.75rem;
    line-height: 1.45;
    margin-bottom: 0;
  }

  .cookie-banner__btn {
    width: auto;
    flex: none;
    padding: 10px 14px;
    font-size: 0.75rem;
    white-space: nowrap;
  }
}

/* Prevent page shifting when scrollbar appears/disappears */
html {
  overflow-y: scroll;
}

/* Hide scrollbar utility (like Telegram input) */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

/* === STYLES FROM payment_modal.blade.php === */
/* Shell вынесен в "Shared: Premium Modal Shell" в начале файла — здесь только уникальные стили формы выбора тарифа */

.pm-checkbox-error {
  display: none;
  font-size: 0.8rem;
  color: #ef4444;
  font-weight: 500;
  margin-top: 8px;
}

.pm-checkbox-error.show {
  display: block;
}

.pm-form {
  display: flex;
  flex-direction: column;
}

.pm-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pm-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pm-option:hover {
  border-color: var(--gray-300);
}

.pm-option--active {
  border-color: var(--accent, #044b41);
  background: rgba(4, 75, 65, 0.03);
  box-shadow: 0 0 0 3px rgba(4, 75, 65, 0.08);
}

.pm-radio {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--accent, #044b41);
  cursor: pointer;
}

.pm-option-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.pm-option-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.pm-option-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
}

.pm-option-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gray-900);
  white-space: nowrap;
}

.pm-option-desc {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* Кто оплачивает: от ответа зависит, на кого оформится чек НПД */
.pm-payer {
  margin-top: 18px;
}

.pm-payer-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 8px;
}

.pm-payer-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pm-payer-chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 12px;
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-600);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pm-payer-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pm-payer-chip:hover {
  border-color: var(--gray-300);
}

.pm-payer-chip--active {
  border-color: var(--accent, #044b41);
  background: rgba(4, 75, 65, 0.05);
  color: var(--accent, #044b41);
}

.pm-payer-chip:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(4, 75, 65, 0.18);
}

.pm-payer-business {
  margin-top: 10px;
}

.pm-payer-inn {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--gray-900);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pm-payer-inn:focus {
  outline: none;
  border-color: var(--accent, #044b41);
  box-shadow: 0 0 0 3px rgba(4, 75, 65, 0.08);
}

.pm-payer-hint {
  margin: 6px 2px 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--gray-500);
}

.pm-payer-hint--ok {
  color: var(--accent, #044b41);
  font-weight: 600;
}

.pm-payer-hint--error {
  color: #ef4444;
}

.pm-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
  margin-top: 22px;
}

.pm-ask-link {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 16px;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--gray-500);
  text-decoration: underline;
  cursor: pointer;
}

.pm-ask-link:hover {
  color: var(--gray-700);
}

@media (max-width: 640px) {
  .pm-option-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}

/* === Shared: Expert Section (landing.blade.php + service.blade.php) === */
.expert-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: flex-start;
}

.expert-photo {
  width: 280px;
  border-radius: var(--radius-xl);
  object-fit: cover;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.08));
}

.expert-award {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #92400e;
  margin-top: 20px;
}

@media (max-width: 1024px) {
  .expert-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .expert-photo {
    margin: 0 auto;
  }
}


/* === HERO v2: одна ось, фактурная лента, волны отдельной полосой === */
.hero2 {
  position: relative;
  padding-top: 150px;
  background: linear-gradient(180deg, #ffffff 0%, var(--gray-50) 100%);
  overflow: hidden;
}

.hero2__overline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 28px;
}

.hero2__title {
  font-size: clamp(2.5rem, 5vw, 3.95rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  margin: 0 0 28px;
}

.hero2__subtitle {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--gray-600);
  max-width: 760px;
  margin: 0 0 36px;
}

.hero2__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero2__cta {
  padding: 18px 36px;
  font-size: 1.05rem;
  text-decoration: none;
}

.hero2__ask {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.92rem;
  color: var(--gray-600);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.hero2__ask:hover {
  color: var(--gray-900);
}

.hero2__note {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--gray-500);
  max-width: 640px;
  margin: 0;
}

.hero2__note a {
  color: var(--gray-700);
  font-weight: 600;
  text-decoration: underline;
}

.hero2__waves {
  position: relative;
  height: 170px;
  margin-top: 8px;
  pointer-events: none;
}

.hero2__waves canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero2__facts {
  position: relative;
  border-top: 1px solid var(--gray-200);
  background: #ffffff;
}

@media (max-width: 560px) {
  .hero2 {
    padding-top: 120px;
  }

  .hero2__title {
    font-size: 2.05rem;
  }

  .hero2__waves {
    height: 110px;
  }
}


/* === Lora (антиква для заголовков, self-hosted, вариативная 400-700) === */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/lora/lora-cyrillic-wght.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/lora/lora-latin-wght.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* === v3 (превью редизайна): антиква в заголовках, скоуп .v3 === */
.v3 .hero2__title,
.v3 .section__title {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.v3 .hero2__title {
  font-size: clamp(2.2rem, 3.9vw, 3.2rem);
  line-height: 1.16;
}

/* Хиро v3: слева текст, справа коллаж продукта */
.v3 .hero3-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
}

.hero3-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 10px 0;
}

.hero3-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(4, 75, 65, 0.08);
  padding: 16px 20px;
  max-width: 440px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

/* Наведение: карточка выравнивается из наклона и приподнимается — страница живая */
.hero3-card:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 0 22px 44px rgba(4, 75, 65, 0.14);
}

.hero3-card--msg {
  transform: rotate(-1.2deg);
  align-self: flex-start;
}

.hero3-msg-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.hero3-ava {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero3-msg-head b {
  display: block;
  font-size: 0.92rem;
  color: var(--gray-900);
}

.hero3-msg-head span {
  display: block;
  font-size: 0.78rem;
  color: var(--gray-500);
}

.hero3-msg-head span i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  margin-right: 5px;
  font-style: normal;
}

.hero3-card--msg p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--gray-800);
  margin: 0 0 6px;
}

.hero3-card--msg time {
  display: block;
  text-align: right;
  font-size: 0.72rem;
  color: var(--gray-400);
}

.hero3-card--chip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-900);
  padding: 13px 18px;
  align-self: flex-end;
  transform: rotate(1.1deg);
}

.hero3-card--chip .ok {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: #0b9e6f;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero3-card--chip .tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-400);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
}

.hero3-card--deadline {
  align-self: flex-start;
  transform: rotate(-0.8deg);
  padding: 14px 18px;
  min-width: 300px;
}

.hero3-card--deadline .hero3-deadline-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 10px;
}

.hero3-card--deadline span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.hero3-card--deadline b {
  font-size: 0.92rem;
  color: var(--gray-900);
  white-space: nowrap;
}

.hero3-card--deadline .bar {
  height: 6px;
  border-radius: 3px;
  background: var(--gray-100);
  overflow: hidden;
}

.hero3-card--deadline .bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: #C8A55C;
}

.hero3-card--file {
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: flex-end;
  transform: rotate(0.9deg);
  padding: 13px 18px;
}

.hero3-file-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(4, 75, 65, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.hero3-card--file b {
  display: block;
  font-size: 0.88rem;
  color: var(--gray-900);
}

.hero3-card--file span {
  display: block;
  font-size: 0.75rem;
  color: #0b9e6f;
  font-weight: 600;
}

@media (max-width: 1000px) {
  .v3 .hero3-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .hero3-stack {
    display: none;
  }

  .v3 .hero2__actions {
    max-width: 100%;
  }
}


/* === v3.1: доводка по замечаниям 26.08 === */

/* Слоган-эпиграф: курсивная антиква приглушённым золотом — перекликается
   с золотым ключом в шапке, не дублируя его */
.hero3-overline {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: #b2925c;
  margin-bottom: 26px;
}

/* Заголовок хиро: балансировка строк вместо nowrap — при любом масштабе
   экрана текст остаётся внутри своей колонки и не наезжает на коллаж */
.v3 .hero2__title {
  text-wrap: balance;
}

/* Аватар в карточке чата — настоящее фото, как в самом чате */
img.hero3-ava {
  display: block;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* PDF-иконка */
.hero3-pdf {
  flex-shrink: 0;
}

/* Кнопка + приглашение в одну строку: компактная кнопка, справа две строки текста */
.v3 .hero2__actions {
  flex-direction: row;
  align-items: center;
  gap: 28px;
  margin-bottom: 22px;
}

.v3 .hero2__cta {
  justify-content: center;
  padding: 18px 34px;
  white-space: nowrap;
}

.v3 .hero2__ask {
  text-align: left;
  text-decoration: none;
  line-height: 1.45;
}

.v3 .hero2__ask > span {
  display: block;
}

.v3 .hero2__ask > span:first-child {
  color: var(--gray-500);
  font-size: 0.88rem;
}

.v3 .hero2__ask-link {
  color: var(--gray-500);
  font-size: 0.88rem;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.v3 .hero2__ask:hover .hero2__ask-link {
  color: var(--accent);
}

@media (max-width: 560px) {
  .v3 .hero2__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .v3 .hero2__cta {
    width: 100%;
  }

  .v3 .hero2__ask {
    text-align: center;
  }

  .hero3-overline {
    font-size: 0.9rem;
    gap: 9px;
  }

  .hero3-overline img {
    width: 16px;
    height: 16px;
  }
}

/* Волны: на узких экранах не сжимаем — убираем */
@media (max-width: 760px) {
  .hero2__waves {
    display: none;
  }
}

/* === Тёмная акцентная секция «Типичные ситуации» === */
.sit-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #02312b 0%, #044b41 100%);
  padding: 96px 0;
}

.sit-band > .container {
  position: relative;
  z-index: 1;
}

/* Водяной ключ в правом нижнем углу — как на превью-карточке бренда */
.sit-band__key {
  position: absolute;
  right: -120px;
  bottom: -150px;
  width: 560px;
  height: 560px;
  filter: brightness(0) invert(1);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 760px) {
  .sit-band__key {
    width: 360px;
    height: 360px;
    right: -90px;
    bottom: -100px;
  }
}

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

.sit-band__overline {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #C8A55C;
  margin-bottom: 16px;
}

.sit-band__title {
  color: #ffffff;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-bottom: 16px;
}

.sit-band__desc {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  margin: 0;
}

.sit-list {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 64px;
}

.sit-list li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.sit-list li span {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #C8A55C;
  min-width: 32px;
  line-height: 1.5;
}

.sit-list li p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.sit-band__cta {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.sit-band__cta span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.98rem;
  max-width: 560px;
}

.sit-band__btn {
  background: #C8A55C;
  color: #02312b;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 16px 34px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.sit-band__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

@media (max-width: 760px) {
  .sit-band {
    padding: 64px 0;
  }

  .sit-list {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .sit-band__cta {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .sit-band__btn {
    width: 100%;
  }
}


/* === Лента фактов v2: медленная бегущая строка антиквенных показателей === */
.facts2-viewport {
  overflow: hidden;
  padding: 30px 0 34px;
}

.facts2-strip {
  display: flex;
  width: max-content;
  animation: facts2-scroll 55s linear infinite;
}

.facts2-viewport:hover .facts2-strip {
  animation-play-state: paused;
}

.facts2-set {
  display: flex;
}

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

.facts2__cell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 280px;
  flex-shrink: 0;
  padding: 0 36px;
  border-left: 1px solid var(--gray-200);
}

.facts2__num {
  font-family: 'Lora', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.facts2__num i {
  font-style: normal;
  color: var(--gray-300);
  font-weight: 400;
  padding: 0 2px;
}

.facts2__num--gold {
  color: #C8A55C;
}

.facts2__label {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--gray-500);
}

/* Уважение к настройке «меньше движения»: лента останавливается и листается пальцем */
@media (prefers-reduced-motion: reduce) {
  .facts2-strip {
    animation: none;
  }

  .facts2-viewport {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 760px) {
  .hero2__facts {
    margin-top: 40px;
  }

  .facts2-viewport {
    padding: 24px 0 26px;
  }

  .facts2-strip {
    animation-duration: 38s;
  }

  .facts2__cell {
    width: 235px;
    padding: 0 26px;
  }

  .facts2__num {
    font-size: 1.65rem;
  }

  .facts2__label {
    font-size: 0.82rem;
  }
}


/* Lora Italic — только для эпиграфа-слогана */
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/lora/lora-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/lora/lora-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD;
}


/* === v3: «Направления работы» — карточки в едином языке === */
.dir2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.dir2-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 12px 32px rgba(4, 75, 65, 0.05);
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.dir2-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(4, 75, 65, 0.12);
}

.dir2-card__title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--gray-900);
  margin: 0;
}

.dir2-card__text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-600);
  margin: 0;
  flex: 1;
}

.dir2-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 6px;
}

.dir2-card__link svg {
  transition: transform 0.3s ease;
}

.dir2-card:hover .dir2-card__link svg {
  transform: translateX(5px);
}

@media (max-width: 900px) {
  .dir2-grid {
    grid-template-columns: 1fr 1fr;
    margin-top: 44px;
  }
}

@media (max-width: 560px) {
  .dir2-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 36px;
  }

  .dir2-card {
    padding: 24px;
  }
}

/* Широкая карточка «Для заказчиков» под сеткой направлений: другая
   аудитория, поэтому другой фон — зелёный, как шапки разделов */
.dir2-card--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--accent);
  border-color: var(--accent);
}

.dir2-card--wide .dir2-card__title,
.dir2-card--wide .dir2-card__text,
.dir2-card--wide .dir2-card__link {
  color: #fff;
}

.dir2-card--wide .dir2-card__text {
  opacity: 0.85;
  max-width: 720px;
}

.dir2-card__wide-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dir2-card__overline {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #D4B36E;
}

.dir2-card--wide .dir2-card__link {
  flex-shrink: 0;
  margin-top: 0;
}

/* Та же зелёная карточка под тарифами поставщиков на главной — выход на цены для заказчиков */
.price3-customers {
  margin-top: 32px;
}

@media (max-width: 560px) {
  .dir2-card--wide {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* === v3: «Порядок работы» — издательская хронология === */
.proc2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 56px;
}

.proc2__step {
  border-top: 1px solid var(--gray-200);
  padding-top: 24px;
}

.proc2__num {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1;
  color: #C8A55C;
}

.proc2__title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 14px 0 10px;
}

.proc2__text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-600);
  margin: 0;
}

.proc2__note {
  margin: 48px auto 0;
  max-width: 620px;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--gray-500);
}

@media (max-width: 760px) {
  .proc2 {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 40px;
  }

  .proc2__note {
    margin-top: 36px;
    text-align: left;
  }
}


/* === v3: секция «Специалист» в единой системе === */
.v3 #expert h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.v3 .expert-photo {
  border-radius: 14px;
}

/* Награда: фирменное золото вместо чужого янтарного, лента с золотым обрезом */
.v3 .expert-award {
  background: rgba(200, 165, 92, 0.08);
  border: none;
  border-left: 3px solid #C8A55C;
  border-radius: 0 10px 10px 0;
  color: var(--gray-800);
  font-weight: 500;
  padding: 14px 18px;
  gap: 12px;
  align-items: flex-start;
}

.v3 .expert-award svg {
  flex-shrink: 0;
  margin-top: 1px;
}


/* Единый радиус кнопок в новой системе: 12px везде */
.v3 .hero__btn,
.v3 .price3-btn,
.v3 .sit-band__btn,
.v3 .price3-btn--gold {
  border-radius: 12px;
}

/* === v3: тарифы — светлая, тёмная премиум и лестница === */
.price3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  /* Карточки естественной высоты: без растяжки под самую высокую */
  align-items: start;
}

.price3-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 26px 26px 24px;
  box-shadow: 0 12px 32px rgba(4, 75, 65, 0.05);
}

.price3-name {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 14px;
}

.price3-price {
  font-family: 'Lora', Georgia, serif;
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.price3-per {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin: 0 0 20px;
}

.price3-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.price3-list li {
  position: relative;
  padding: 9px 0 9px 22px;
  border-top: 1px solid var(--gray-100);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--gray-700);
}

/* Метки — круглые, в фирменном золоте: квадратов в системе нет */
.price3-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #C8A55C;
}

.price3-sla {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--gray-500);
  margin: 0 0 20px;
}

.price3-btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
}

/* Тёмная премиум-карточка */
.price3-card--dark {
  background: linear-gradient(165deg, #02312b 0%, #044b41 100%);
  border-color: transparent;
}

.price3-card__key {
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 300px;
  height: 300px;
  filter: brightness(0) invert(1);
  opacity: 0.05;
  pointer-events: none;
}

.price3-card--dark > * {
  position: relative;
  z-index: 1;
}

.price3-flag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C8A55C;
  border: 1px solid rgba(200, 165, 92, 0.4);
  border-radius: 6px;
  padding: 5px 10px;
  margin-bottom: 16px;
}

.price3-card--dark .price3-name {
  color: #fff;
}

.price3-card--dark .price3-price {
  color: #C8A55C;
}

.price3-card--dark .price3-per {
  color: rgba(255, 255, 255, 0.55);
}

.price3-card--dark .price3-list li {
  color: rgba(255, 255, 255, 0.9);
  border-top-color: rgba(255, 255, 255, 0.12);
}

.price3-card--dark .price3-sla {
  color: rgba(255, 255, 255, 0.6);
}

.price3-card--dark .price3-sla a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
}

.price3-btn--gold {
  background: #C8A55C;
  color: #02312b;
  font-family: inherit;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.price3-btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* Лестница дальнейших шагов */
.price3-ladder {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  flex: 1;
}

.price3-ladder li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--gray-100);
}

.price3-ladder span {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--gray-700);
}

.price3-ladder b {
  font-size: 0.9rem;
  color: var(--gray-900);
  white-space: nowrap;
}

.price3-credit {
  background: rgba(200, 165, 92, 0.08);
  border-left: 3px solid #C8A55C;
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  color: var(--gray-700);
  margin-bottom: 0;
}

/* Полоса сравнения */
.price3-compare {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-top: 32px;
  padding: 22px 28px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
}

.price3-compare__label {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  color: #C8A55C;
  white-space: nowrap;
  margin-top: 1px;
}

.price3-compare p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-700);
}

@media (max-width: 1000px) {
  .price3-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 560px) {
  .price3-card {
    padding: 26px 22px 22px;
  }

  .price3-compare {
    flex-direction: column;
    gap: 8px;
    padding: 20px 22px;
  }
}


/* === v3: кейсы === */
.v3 .case-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(4, 75, 65, 0.05);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.v3 .case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(4, 75, 65, 0.12);
}

.v3 .case-card__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 4px 10px;
}

.v3 .case-card__title {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  line-height: 1.4;
}

.v3 .case-card__result {
  border-top: 1px solid var(--gray-100);
  padding-top: 14px;
}

.v3 #show-more-cases {
  border-radius: 12px;
}

.v3 #show-more-cases:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* === v3: CTA-баннер в стиле тёмной подписи === */
.v3 .cta-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #02312b 0%, #044b41 100%);
  border-radius: 14px;
}

.v3 .cta-banner::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 340px;
  height: 340px;
  background: url('/img/logo.svg') no-repeat center / contain;
  opacity: 0.07;
  pointer-events: none;
}

.v3 .cta-banner > * {
  position: relative;
  z-index: 1;
}

.v3 .cta-banner__title {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  color: #fff;
}

.v3 .cta-banner__btn {
  background: #C8A55C;
  color: #02312b;
  font-family: inherit;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.v3 .cta-banner__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}


/* === Ключ в шапке — фирменное золото (решение 26.08.2026) === */
.header__logo-icon path {
  fill: #C8A55C;
}


/* ============================================================
   Единая дизайн-система по всему сайту (26.08.2026):
   антиква в заголовках, золотые акценты, один радиус кнопок.
   Дублирует правила .v3 без скоупа — чтобы внутренние страницы
   (/uslugi/*, /tseny, /faq, /ekspertiza и пр.) выглядели как главная.
   ============================================================ */
.section__title,
.page-hero__title,
.premium-title,
.service-hero__title,
.faq-section-title,
.cta-banner__title,
.case-card__title,
.process-card__title,
.related-card__title,
.refund-highlight__title {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero__btn,
.cta-banner__btn,
#show-more-cases {
  border-radius: 12px;
}

/* Карточки кейсов и CTA-баннер — в системе на любой странице */
.case-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(4, 75, 65, 0.05);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(4, 75, 65, 0.12);
}

.cta-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #02312b 0%, #044b41 100%);
  border-radius: 14px;
}

.cta-banner::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 340px;
  height: 340px;
  background: url('/img/logo.svg') no-repeat center / contain;
  opacity: 0.07;
  pointer-events: none;
}

.cta-banner > * {
  position: relative;
  z-index: 1;
}

.cta-banner__title {
  color: #fff;
}

.cta-banner__btn {
  background: #C8A55C;
  color: #02312b;
  font-family: inherit;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-banner__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}


/* === Страницы услуг: карточка цены и списки в системе === */
.service-hero__cta-card {
  border: 1px solid var(--gray-200);
  border-top: 3px solid #C8A55C;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(4, 75, 65, 0.07);
}

.service-hero__cta-price {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.service-hero__cta-price-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.svc-cta-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.svc-cta-list li {
  position: relative;
  padding: 9px 0 9px 22px;
  border-top: 1px solid var(--gray-100);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--gray-600);
}

.svc-cta-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #C8A55C;
}

/* «Моя экспертиза»: галочки в зелёных кружках, как чипы коллажа */
.service-action-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: #0b9e6f;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* Специалист: имя антиквой и золотая лента награды — на любой странице */
#expert h3 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.expert-photo {
  border-radius: 14px;
}

.expert-award {
  background: rgba(200, 165, 92, 0.08);
  border: none;
  border-left: 3px solid #C8A55C;
  border-radius: 0 10px 10px 0;
  color: var(--gray-800);
  font-weight: 500;
  padding: 14px 18px;
  gap: 12px;
  align-items: flex-start;
}

.expert-award svg {
  flex-shrink: 0;
  margin-top: 1px;
}

/* Смежные услуги — единый язык карточек */
.related-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(4, 75, 65, 0.05);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(4, 75, 65, 0.12);
}
