/* РОСПОТРЕБНАДЗОР-ОНЛАЙН — светлая тема, единый зернистый фон + Inter, курсор-мишень */

:root {
  --primary: #3c3c3c;
  --secondary: #b3b2b2;
  --text-muted: #5c5a57;
  --white: #fff;
  /* Акцент: тёмно-коричневый (вместо «юридического синего») */
  --legal-blue: #3b2e26;
  --legal-blue-light: #4d3d33;
  /* RGB для tint’ов (границы/тени) */
  --legal-blue-ch: 59 46 38;
  --accent-warm: #dacfc2;
  --page-bg: #dcd7d0;
  --hero-sand: #dcd7d0;
  --surface: rgba(255, 255, 255, 0.4);
  --surface-strong: rgba(255, 255, 255, 0.55);
  --shadow-card: 0 8px 28px rgba(45, 42, 38, 0.08);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: min(1140px, calc(100% - 48px));
  --radius-block: 14px;
  --radius-control: 10px;
  --cursor-ring-size: 36px;
  /* обрезка hero снизу (видео + scrim) — одна переменная, чтобы не было тёмной полосы */
  --hero-clip-bottom: 14%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
  min-height: 100%;
  background-color: var(--page-bg);
  background-image: url("../assets/site-grain.png");
  background-repeat: repeat;
  background-attachment: scroll;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--primary);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1, "liga" 1;
}

h1,
h2,
h3 {
  font-family: var(--font);
  letter-spacing: -0.02em;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Кастомный курсор: точка + кольцо с белым ореолом (только мышь, не тач) */
.cursor-root {
  display: none;
}

@media (min-width: 992px) and (pointer: fine) {
  body.is-cursor-custom {
    cursor: none;
  }

  body.is-cursor-custom a,
  body.is-cursor-custom button,
  body.is-cursor-custom [role="button"],
  body.is-cursor-custom input,
  body.is-cursor-custom textarea,
  body.is-cursor-custom summary {
    cursor: none;
  }

  body.is-cursor-custom .cursor-root {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: normal;
    transition: opacity 0.2s ease;
  }

  body.is-cursor-custom .cursor-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    background: #1f1f1f;
    transform: translate3d(-100px, -100px, 0);
    will-change: transform;
  }

  body.is-cursor-custom .cursor-ring {
    position: absolute;
    width: var(--cursor-ring-size);
    height: var(--cursor-ring-size);
    margin: calc(var(--cursor-ring-size) / -2) 0 0 calc(var(--cursor-ring-size) / -2);
    border-radius: 50%;
    border: 1px solid rgba(55, 55, 55, 0.85);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.92), 0 0 0 2px rgba(255, 255, 255, 0.35);
    transform: translate3d(-100px, -100px, 0);
    will-change: transform;
    transition: width 0.2s ease, height 0.2s ease, margin 0.2s ease, opacity 0.2s ease;
  }

  body.is-cursor-hover .cursor-ring {
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    opacity: 0.85;
  }

  /* Поверх кастомного «прицела» — в формах снова виден текстовый курсор и pointer */
  body.is-cursor-custom :where(
      input,
      textarea,
      select,
      button,
      a,
      summary,
      label,
      [role="button"],
      [role="textbox"],
      [contenteditable="true"]
    ) {
    cursor: revert !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.is-cursor-custom {
    cursor: auto;
  }

  .cursor-root {
    display: none !important;
  }

  .service-phase {
    transition: none;
  }

  .service-phase:hover {
    transform: none;
  }

  .adv-item {
    transition: none;
  }

  .adv-item:hover {
    transform: none;
  }

  .step {
    transition: none;
  }

  .step:hover {
    transform: none;
    box-shadow: none;
    background: var(--surface);
    border-color: rgba(0, 0, 0, 0.07);
    z-index: auto;
  }

  #how .step:hover .step__kicker {
    color: var(--legal-blue);
  }

  .step:hover .step__infographic,
  .service-phase:hover .service-phase__infographic {
    transform: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }

  .benefit-card {
    transition: none;
  }

  .benefit-card:hover {
    transform: none;
    box-shadow: var(--shadow-card);
  }

  .benefit-example {
    transition: none;
  }

  .benefit-example:hover {
    transform: none;
    box-shadow: 0 12px 40px rgb(var(--legal-blue-ch) / 0.1);
    border-left-color: var(--legal-blue);
    background: linear-gradient(135deg, rgb(var(--legal-blue-ch) / 0.06) 0%, rgba(255, 255, 255, 0.5) 50%, var(--surface) 100%);
  }

  .pricing-wrap {
    transition: none;
  }

  .pricing-wrap:hover {
    transform: none;
    box-shadow: var(--shadow-card);
    border-color: rgb(var(--legal-blue-ch) / 0.14);
    z-index: auto;
  }

  .stat-card {
    transition: none;
  }

  .stat-card:hover {
    transform: none;
    box-shadow: var(--shadow-card);
    border-color: rgb(var(--legal-blue-ch) / 0.12);
  }
}

.wrapper {
  width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
}

.site-logo {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 50;
  line-height: 0;
  text-decoration: none;
  padding: 0;
}

.site-logo img {
  display: block;
  height: 96px;
  width: auto;
  max-width: min(320px, 74vw);
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.28));
}

.site-nav {
  position: absolute;
  left: 252px;
  right: 20px;
  top: 20px;
  z-index: 49;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 10px 14px;
  overflow: visible;
}

.site-nav__menu {
  min-width: 220px;
}

.site-nav-dropdown {
  position: relative;
}

.site-nav-dropdown__summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  list-style: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.site-nav-dropdown__summary::-webkit-details-marker {
  display: none;
}

.site-nav-dropdown__summary::after {
  content: "▾";
  margin-left: 8px;
  font-size: 11px;
  opacity: 0.9;
}

.site-nav-dropdown__summary:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.24);
}

.site-nav-dropdown__list {
  position: absolute;
  left: 0;
  /* Без зазора под summary: иначе курсор «висит в пустоте» и срабатывает mouseleave на <details> */
  top: 100%;
  min-width: 360px;
  padding: 8px;
  background: rgba(22, 22, 22, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  gap: 4px;
  z-index: 60;
}

.site-nav-dropdown:not([open]) > .site-nav-dropdown__list {
  display: none;
}

.site-nav-dropdown:hover > .site-nav-dropdown__list {
  display: grid !important;
}

.site-nav-dropdown__link {
  display: block;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.94);
  text-decoration: none;
  border: 1px solid transparent;
}

.site-nav-dropdown__link:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
}

.site-nav-dropdown__link--active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.site-nav__actions {
  margin-left: auto;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.site-nav__meta {
  padding-left: 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  order: 1;
}

.site-nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  order: 2;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.site-nav__cta:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.94);
  color: #1f1f1f;
  border-color: rgba(255, 255, 255, 0.94);
}

body:has(.hero__bg-image) .site-nav-dropdown__summary,
body:has(.hero__bg-image) .site-nav__meta {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.75),
    0 0 14px rgba(0, 0, 0, 0.45);
}

body:has(.hero__bg-image) .site-nav__cta {
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.site-logo:hover {
  opacity: 0.92;
}

.site-nav__burger {
  display: none;
}

.site-nav-backdrop {
  display: none;
}

/* Планшеты и телефоны: шапка не «упирается» в left:252px, меню не вылезает за экран */
@media (max-width: 768px) {
  /* Hero: меньше clip снизу + центр по вертикали при object-fit: cover — видно больше видео/фото */
  :root {
    --hero-clip-bottom: 3%;
  }

  .hero__video,
  .hero__bg-image {
    object-position: center center;
  }

  .site-logo {
    top: 16px;
    left: 16px;
  }

  .site-logo img {
    height: 76px;
    max-width: min(260px, calc(100vw - 100px));
  }

  .site-nav__burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.38);
    color: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    position: fixed;
    top: max(14px, env(safe-area-inset-top, 0px));
    right: max(14px, env(safe-area-inset-right, 0px));
    z-index: 210;
    transition: background 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .site-nav__burger:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.55);
  }

  .site-nav__burger-line {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition:
      transform 0.28s ease,
      opacity 0.2s ease;
  }

  body.is-nav-drawer-open .site-nav__burger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  body.is-nav-drawer-open .site-nav__burger-line:nth-child(2) {
    opacity: 0;
  }

  body.is-nav-drawer-open .site-nav__burger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .site-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 199;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.48);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .site-nav-backdrop:not([hidden]) {
    display: block;
  }

  body.is-nav-drawer-open {
    overflow: hidden;
  }

  .site-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: auto;
    width: min(360px, calc(100vw - 48px));
    max-width: 100%;
    margin: 0;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    background: linear-gradient(200deg, rgba(24, 24, 28, 0.98) 0%, rgba(14, 14, 16, 0.98) 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.45);
    transform: translate3d(105%, 0, 0);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  body.is-nav-drawer-open .site-nav-backdrop:not([hidden]) {
    z-index: 10080;
  }

  body.is-nav-drawer-open .site-nav {
    transform: translate3d(0, 0, 0);
    z-index: 10090;
  }

  body.is-nav-drawer-open .site-nav__burger {
    z-index: 10095;
  }

  /* На тач-экране не открываем выпадашку по hover — только по tap на «Помощь» */
  .site-nav-dropdown:not([open]):hover > .site-nav-dropdown__list {
    display: none !important;
  }

  .site-nav__menu {
    min-width: 0;
    width: 100%;
  }

  .site-nav__actions {
    margin-left: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .site-nav-dropdown__list {
    position: static;
    min-width: 0;
    width: 100%;
    max-width: none;
    margin-top: 8px;
  }

  .site-nav-dropdown__summary {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 12px;
    white-space: normal;
    text-align: center;
  }

  .site-nav-dropdown__link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 12px;
  }

  .site-nav__cta {
    min-height: 44px;
    padding: 10px 18px;
    font-size: 12px;
  }

  .site-nav__meta {
    font-size: 13px;
    white-space: normal;
    text-align: center;
    flex: 1 1 200px;
  }

  .site-nav__link {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 12px;
  }

  /* Hero: контент ниже фиксированной шапки, без центрирования «в экран» под логотип/меню */
  #hero.section-intro {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: clamp(88px, 20dvh, 132px);
    padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }

  #hero.section-intro .screen-content {
    max-width: none;
    width: 100%;
  }

  #hero.section-intro .main-block {
    text-align: left;
    width: 100%;
  }

  #hero.section-intro .main-block__title {
    font-size: clamp(1.15rem, 5.2vw, 1.65rem);
    line-height: 1.22;
    letter-spacing: -0.025em;
  }

  #hero.section-intro .intro__divider {
    margin: 12px 0 16px;
    gap: 10px;
    max-width: none;
  }

  #hero.section-intro .intro__divider-logo {
    height: 48px;
    max-width: min(200px, 52vw);
  }

  #hero.section-intro .intro__divider-line {
    min-width: 20px;
  }

  #hero.section-intro .intro__text--lead {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 16px;
    text-align: left;
  }

  #hero.section-intro .hero-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }

  #hero.section-intro .hero-cta .btn {
    width: 100%;
    max-width: none;
  }

  #hero.section-intro .next-slide-btn {
    margin-top: 20px;
  }

  .section-intro:has(.hero__video) .hero__scrim {
    background: rgba(0, 0, 0, 0.52);
  }

  .section-intro:has(.hero__bg-image) .hero__scrim {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.52) 0%,
      rgba(0, 0, 0, 0.62) 50%,
      rgba(0, 0, 0, 0.76) 100%
    );
  }
}

@media (max-width: 480px) {
  :root {
    --hero-clip-bottom: 0%;
  }

  .site-logo {
    top: 14px;
    left: 14px;
    padding: 0;
  }

  .site-logo img {
    height: 70px;
    max-width: min(240px, calc(100vw - 92px));
  }

  .site-nav__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav__meta {
    order: 1;
    flex: none;
  }

  .site-nav__cta {
    order: 2;
    width: 100%;
    justify-content: center;
  }

  #hero.section-intro {
    padding-top: clamp(92px, 22dvh, 140px);
  }

  #hero.section-intro .main-block__title {
    font-size: clamp(1.05rem, 5.6vw, 1.45rem);
  }

  .site-nav__burger {
    top: max(12px, env(safe-area-inset-top, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
  }
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  border-radius: 0;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  text-decoration: none;
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--surface);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
}

/* ——— Hero: видео на весь экран + только затемнение (без цвета фона сайта) ——— */
.section-intro {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 48px 24px 48px;
  color: rgba(255, 255, 255, 0.92);
}

.screen__bg-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  /* прозрачно: под обрезанным видео виден тот же фон, что и у страницы — без чёрной полосы */
  background: transparent;
}

.screen__bg-container.has-no-video {
  background-color: var(--page-bg);
  background-image: url("../assets/site-grain.png");
  background-repeat: repeat;
}

.screen__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Полноэкранное cover-видео или фото; снизу обрезка — чтобы не было видно водяной знак */
.hero__video,
.hero__bg-image {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  /* нижняя часть кадра не показываем (подберите --hero-clip-bottom при необходимости) */
  clip-path: inset(0 0 var(--hero-clip-bottom) 0);
  -webkit-clip-path: inset(0 0 var(--hero-clip-bottom) 0);
}

.screen__bg-container.has-no-video .hero__video,
.screen__bg-container.has-no-video .hero__bg-image {
  display: none;
}

/* Только затемнение — картинка видео читается, без «перекраски» под --page-bg */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.4);
  clip-path: inset(0 0 var(--hero-clip-bottom) 0);
  -webkit-clip-path: inset(0 0 var(--hero-clip-bottom) 0);
}

/* Фото в hero (не видео): сильнее «дымка», чтобы белый текст и кнопки читались */
.screen__bg-container:has(.hero__bg-image) .hero__scrim {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.48) 0%,
    rgba(0, 0, 0, 0.58) 45%,
    rgba(0, 0, 0, 0.72) 100%
  );
}

.screen-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
}

.main-block__title {
  margin: 0 0 20px;
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--primary);
}

.section-intro .main-block__title {
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
  margin-bottom: 0;
  font-weight: 700;
}

.section-intro:has(.hero__bg-image) .main-block__title {
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.75),
    0 2px 20px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(0, 0, 0, 0.4);
}

.section-intro .main-block__title.hero-lead {
  font-size: clamp(18px, 2.4vw, 28px);
  line-height: 1.38;
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 100%;
  margin-bottom: 28px;
}

.section-intro .main-block {
  text-align: center;
}

.intro__divider {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 36px auto 44px;
  max-width: min(640px, 100%);
}

.intro__divider-line {
  flex: 1;
  min-width: 56px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

.intro__divider-logo {
  display: block;
  height: 92px;
  width: auto;
  max-width: min(278px, 78vw);
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.95;
  filter: drop-shadow(0 2px 20px rgba(0, 0, 0, 0.25));
}

.intro__text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  max-width: 560px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.section-intro .intro__text {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.55;
  margin-left: auto;
  margin-right: auto;
}

.section-intro:has(.hero__bg-image) .intro__text {
  color: rgba(255, 255, 255, 0.97);
  text-shadow:
    0 1px 4px rgba(0, 0, 0, 0.65),
    0 0 24px rgba(0, 0, 0, 0.35);
}

.section-intro .intro__text--lead {
  max-width: min(900px, 100%);
  font-weight: 600;
  font-size: clamp(17px, 2.25vw, 24px);
  line-height: 1.38;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.section-intro:has(.hero__bg-image) .intro__text--lead {
  text-shadow:
    0 1px 4px rgba(0, 0, 0, 0.65),
    0 0 28px rgba(0, 0, 0, 0.35);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.section-intro .hero-cta {
  justify-content: center;
}

.btn-hero-primary {
  background: #fff;
  color: #2a2a2a;
  border: 1px solid #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.section-intro:has(.hero__bg-image) .btn-hero-primary {
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.btn-hero-primary:hover {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.9);
}

.btn-hero-outline {
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

.section-intro:has(.hero__bg-image) .btn-hero-outline {
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

/* CTA после hero на светлом фоне (те же классы кнопок, что в intro) */
.lead-actions .hero-cta {
  justify-content: center;
}

.lead-actions .btn-hero-primary {
  background: var(--legal-blue);
  color: var(--white);
  border-color: var(--legal-blue);
  box-shadow: none;
}

.lead-actions .btn-hero-primary:hover {
  background: var(--legal-blue-light);
  color: var(--white);
  border-color: var(--legal-blue-light);
}

.lead-actions .btn-hero-outline {
  background: var(--surface-strong);
  color: var(--legal-blue);
  border-color: var(--legal-blue);
  text-shadow: none;
}

.lead-actions .btn-hero-outline:hover {
  background: var(--legal-blue);
  color: var(--white);
  border-color: var(--legal-blue);
}

.lead-actions .hotline-meta {
  color: var(--text-muted);
  text-shadow: none;
  text-align: center;
  margin-bottom: 0;
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.section-intro:has(.hero__bg-image) .btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
}

.btn-hero-wa svg {
  flex-shrink: 0;
}

.next-slide-btn {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.next-slide-btn button {
  background: none;
  border: none;
  padding: 12px;
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  animation: float 2.2s ease-in-out infinite;
}

.next-slide-btn button:hover {
  color: rgba(255, 255, 255, 0.95);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* ——— Sections ——— */
.section {
  padding: 64px 24px;
}

.section--padding {
  padding-top: 72px;
  padding-bottom: 72px;
}

@media (max-width: 768px) {
  .section {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
}

/* Плотнее стык с hero: меньше воздуха над заголовком метрик */
#trust.section--padding {
  padding-top: 40px;
}

.section--muted,
.section--yellow {
  background: transparent;
}

.section__heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 12px;
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--primary);
}

.section__sub {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 15px;
  color: var(--text-muted);
}

#categories .section__heading {
  max-width: min(920px, 100%);
}

#categories .section__sub {
  font-size: clamp(17px, 2.1vw, 20px);
  line-height: 1.55;
}

.section__sub--wide {
  max-width: min(800px, 100%);
  line-height: 1.65;
  font-size: clamp(16px, 2vw, 19px);
}

#about .section__sub--wide {
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.58;
}

#hero + .section .section__sub--wide {
  margin-bottom: 0;
  text-align: center;
  font-size: clamp(20px, 2.8vw, 30px);
  line-height: 1.5;
  max-width: min(980px, 100%);
}

#hero + .section.lead-actions .section__sub--wide {
  font-size: clamp(16px, 1.9vw, 18px);
  line-height: 1.65;
  max-width: min(800px, 100%);
}

#why .section__heading {
  max-width: min(960px, 100%);
}

#why .section__sub--why {
  max-width: min(760px, 100%);
  font-size: clamp(15px, 1.75vw, 17px);
  line-height: 1.65;
}

#zozpp-benefits .section__heading {
  max-width: min(920px, 100%);
}

.section__sub--benefits {
  max-width: min(680px, 100%);
  font-size: clamp(16px, 1.95vw, 19px);
  line-height: 1.62;
}

#request {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flow-root;
  /* подложка на случай субпиксельного зазора у края */
  background-color: #2a2623;
}

#request::before {
  content: "";
  position: absolute;
  left: -3px;
  right: -3px;
  top: -3px;
  bottom: -3px;
  z-index: 0;
  background: url("../1.jpg") center / cover no-repeat;
}

#request::after {
  content: "";
  position: absolute;
  left: -3px;
  right: -3px;
  top: -3px;
  bottom: -3px;
  z-index: 1;
  /* лёгкая «дымка», чтобы фото читалось; текст усиливаем тенями и карточкой формы */
  background: linear-gradient(
    180deg,
    rgba(245, 242, 238, 0.38) 0%,
    rgba(228, 223, 216, 0.32) 45%,
    rgba(210, 202, 192, 0.4) 100%
  );
  pointer-events: none;
}

#request .wrapper {
  position: relative;
  z-index: 2;
}

#request .section__heading {
  color: #fff;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(0, 0, 0, 0.35);
}

#request .section__sub {
  max-width: min(760px, 100%);
  font-size: clamp(17px, 2.25vw, 22px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(0, 0, 0, 0.3);
}

#request .cta-block {
  padding: 28px 24px 24px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 40px rgba(35, 30, 25, 0.14);
}

@supports (backdrop-filter: blur(10px)) {
  #request .cta-block {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.62);
  }
}

#request .form-group label {
  color: var(--primary);
}

#request .form-group input,
#request .form-group textarea {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

#request .form-note {
  color: var(--text-muted);
}

.benefit-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  max-width: 1000px;
  margin: 0 auto 40px;
}

@media (min-width: 640px) {
  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.benefit-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 22px 22px 20px;
  background: var(--surface);
  border: 1px solid rgb(var(--legal-blue-ch) / 0.12);
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--legal-blue);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 44px rgb(var(--legal-blue-ch) / 0.12);
}

.benefit-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  color: var(--legal-blue);
}

.benefit-card__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.benefit-card__text {
  margin: 0;
  font-size: clamp(15px, 1.45vw, 17px);
  line-height: 1.5;
  color: var(--primary);
  font-weight: 500;
}

.benefit-example {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 26px;
  background: linear-gradient(135deg, rgb(var(--legal-blue-ch) / 0.06) 0%, rgba(255, 255, 255, 0.5) 50%, var(--surface) 100%);
  border: 1px solid rgb(var(--legal-blue-ch) / 0.14);
  border-left: 5px solid var(--legal-blue);
  box-shadow: 0 12px 40px rgb(var(--legal-blue-ch) / 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-left-color 0.3s ease,
    background 0.3s ease;
}

.benefit-example__icon-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgb(var(--legal-blue-ch) / 0.1);
  color: var(--legal-blue);
}

.benefit-example:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 52px rgb(var(--legal-blue-ch) / 0.16);
  border-left-color: var(--legal-blue-light);
  background: linear-gradient(135deg, rgb(var(--legal-blue-ch) / 0.1) 0%, rgba(255, 255, 255, 0.75) 45%, var(--surface) 100%);
}

.benefit-example:hover .benefit-example__icon-wrap {
  background: rgb(var(--legal-blue-ch) / 0.16);
  color: var(--legal-blue-light);
}

.benefit-example__svg {
  width: 28px;
  height: 28px;
}

.benefit-example__body {
  min-width: 0;
}

.benefit-example__title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--legal-blue);
}

.benefit-example__text {
  margin: 0;
  font-size: clamp(14px, 1.35vw, 16px);
  line-height: 1.65;
  color: var(--text-muted);
}

.submission-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.submission-list__item {
  position: relative;
  padding-left: 26px;
  font-size: clamp(14px, 1.35vw, 16px);
  line-height: 1.55;
  color: var(--text-muted);
}

.submission-list__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--legal-blue);
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgb(var(--legal-blue-ch) / 0.08);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.9);
}

/* Юридические услуги: этапы до блока «4 шага» */
.service-phases {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
}

.service-phase {
  padding: 24px 24px 22px;
  background: var(--surface);
  border: 1px solid rgb(var(--legal-blue-ch) / 0.1);
  box-shadow: var(--shadow-card);
  border-left: 3px solid var(--legal-blue);
  transition:
    box-shadow 0.32s ease,
    transform 0.32s ease,
    border-left-color 0.32s ease;
}

.service-phase:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 48px rgb(var(--legal-blue-ch) / 0.16);
  border-left-color: var(--legal-blue-light);
}

.service-phase__head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 14px;
}

.service-phase__num {
  flex-shrink: 0;
  font-size: clamp(32px, 4.5vw, 44px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--legal-blue);
}

.service-phase__intro {
  min-width: 0;
}

.service-phase__stage {
  margin: 0 0 6px;
  font-size: clamp(11px, 1.15vw, 13px);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--legal-blue);
}

.service-phase__title {
  margin: 0;
  font-size: clamp(18px, 2.25vw, 22px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary);
}

.service-phase__text {
  margin: 0 0 14px;
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.65;
  color: var(--text-muted);
}

.service-phase__tag {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgb(var(--legal-blue-ch) / 0.12);
  font-size: clamp(14px, 1.35vw, 16px);
  font-weight: 600;
  color: var(--legal-blue);
  letter-spacing: 0.03em;
}

@media (max-width: 480px) {
  .service-phase__head {
    gap: 14px;
  }

  .service-phase__num {
    font-size: 28px;
  }
}

/* Trust bar */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (min-width: 768px) {
  .trust-bar {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.trust-bar__label {
  grid-column: 1 / -1;
  text-align: center;
  font-size: clamp(16px, 2.2vw, 20px);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--legal-blue);
  font-weight: 700;
  margin-bottom: 16px;
}

.trust-item {
  text-align: center;
  padding: 22px 18px;
  background: var(--surface);
  border: 1px solid rgb(var(--legal-blue-ch) / 0.1);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.trust-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgb(var(--legal-blue-ch) / 0.12);
}

.trust-item__icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  color: var(--legal-blue);
}

.trust-item__value {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  color: var(--legal-blue);
  line-height: 1.2;
}

.trust-item__label {
  font-size: clamp(14px, 1.55vw, 17px);
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.45;
}

/* Cards grid */
.cards-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-problem--center-last {
    grid-column: 1 / -1;
    max-width: calc((100% - 20px) / 2);
    justify-self: center;
  }
}

.card-problem {
  background: var(--surface);
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s, transform 0.25s;
}

.card-problem:hover {
  box-shadow: 0 16px 48px rgba(60, 60, 60, 0.12);
  transform: translateY(-4px);
}

.card-problem__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  color: var(--legal-blue);
}

.card-problem__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.card-problem__title {
  margin: 0 0 10px;
  font-size: clamp(18px, 2.1vw, 21px);
  font-weight: 700;
  line-height: 1.3;
}

.card-problem__text {
  margin: 0;
  font-size: clamp(15px, 1.55vw, 17px);
  color: var(--text-muted);
  line-height: 1.55;
}

/* Steps */
.steps-wrap {
  max-width: 1180px;
  margin: 0 auto;
}

.steps {
  display: grid;
  gap: 0;
}

@media (min-width: 1100px) {
  .steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
  }

  .how--rpn .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 14px;
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.07);
  margin-bottom: -1px;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
}

/* Инфографика шагов / этапов: иконка по порядку (1–5) */
.step__infographic,
.service-phase__infographic {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 16px;
  background: linear-gradient(160deg, rgb(var(--legal-blue-ch) / 0.12) 0%, rgba(255, 255, 255, 0.55) 100%);
  border: 1px solid rgb(var(--legal-blue-ch) / 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 32px 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step__infographic {
  margin: 0 auto 14px;
}

.service-phase__infographic {
  margin: 0 0 14px;
}

/* SVG встроены в CSS (data URI), чтобы шаги не «пустели», если на хостинге нет папки assets/ */
.steps .step:nth-child(1) .step__infographic,
.service-phases .service-phase:nth-child(1) .service-phase__infographic {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgYXJpYS1oaWRkZW49InRydWUiPgogIDxwYXRoIGQ9Ik0yMiAxNi45djNhMiAyIDAgMCAxLTIuMiAyIDE5LjggMTkuOCAwIDAgMS04LjYtMy4xIDE5LjUgMTkuNSAwIDAgMS02LTYgMTkuOCAxOS44IDAgMCAxLTMuMS04LjdBMiAyIDAgMCAxIDQuMSAyaDNhMiAyIDAgMCAxIDIgMS43Yy4xIDEgLjQgMiAuOCAyLjlhMiAyIDAgMCAxLS40NSAyLjExTDkuMSA5LjlhMTYgMTYgMCAwIDAgNiA2bDEuMjctMS4yN2EyIDIgMCAwIDEgMi4xMS0uNDVjLjkuNCAxLjkuNyAyLjkuOGEyIDIgMCAwIDEgMS43MiAyLjgyeiIgc3Ryb2tlPSIjM2IyZTI2IiBzdHJva2Utd2lkdGg9IjEuNDUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgogIDxwYXRoIGQ9Ik0xMiAxOHYuMDEiIHN0cm9rZT0iIzNiMmUyNiIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KPC9zdmc+Cg==");
}

.steps .step:nth-child(2) .step__infographic,
.service-phases .service-phase:nth-child(2) .service-phase__infographic {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgYXJpYS1oaWRkZW49InRydWUiPgogIDxwYXRoIGQ9Ik0yMSAxNWEyIDIgMCAwIDEtMiAySDdsLTQgNFY1YTIgMiAwIDAgMSAyLTJoMTRhMiAyIDAgMCAxIDIgMnoiIHN0cm9rZT0iIzNiMmUyNiIgc3Ryb2tlLXdpZHRoPSIxLjQ1IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KICA8cGF0aCBkPSJNOSA5aDZNOSAxM2g0IiBzdHJva2U9IiMzYjJlMjYiIHN0cm9rZS13aWR0aD0iMS40NSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+Cjwvc3ZnPgo=");
}

.steps .step:nth-child(3) .step__infographic,
.service-phases .service-phase:nth-child(3) .service-phase__infographic {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgYXJpYS1oaWRkZW49InRydWUiPgogIDxjaXJjbGUgY3g9IjEyIiBjeT0iNSIgcj0iMi4yNSIgc3Ryb2tlPSIjM2IyZTI2IiBzdHJva2Utd2lkdGg9IjEuNDUiLz4KICA8cGF0aCBkPSJNMTIgNy4yNVYxMSIgc3Ryb2tlPSIjM2IyZTI2IiBzdHJva2Utd2lkdGg9IjEuNDUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgogIDxwYXRoIGQ9Ik0xMiAxMSA3IDE2LjVNMTIgMTFsNSA1LjUiIHN0cm9rZT0iIzNiMmUyNiIgc3Ryb2tlLXdpZHRoPSIxLjQ1IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KICA8Y2lyY2xlIGN4PSI3IiBjeT0iMTguNSIgcj0iMi4yNSIgc3Ryb2tlPSIjM2IyZTI2IiBzdHJva2Utd2lkdGg9IjEuNDUiLz4KICA8Y2lyY2xlIGN4PSIxNyIgY3k9IjE4LjUiIHI9IjIuMjUiIHN0cm9rZT0iIzNiMmUyNiIgc3Ryb2tlLXdpZHRoPSIxLjQ1Ii8+Cjwvc3ZnPgo=");
}

.steps .step:nth-child(4) .step__infographic,
.service-phases .service-phase:nth-child(4) .service-phase__infographic {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgYXJpYS1oaWRkZW49InRydWUiPgogIDxwYXRoIGQ9Ik0xMiAzdjE4IiBzdHJva2U9IiMzYjJlMjYiIHN0cm9rZS13aWR0aD0iMS40NSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+CiAgPHBhdGggZD0iTTUgOGgxNE01IDE2aDE0IiBzdHJva2U9IiMzYjJlMjYiIHN0cm9rZS13aWR0aD0iMS40NSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+CiAgPHBhdGggZD0iTTkgOHY4TTE1IDh2OCIgc3Ryb2tlPSIjM2IyZTI2IiBzdHJva2Utd2lkdGg9IjEuNDUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgogIDxwYXRoIGQ9Ik03IDIxaDEwIiBzdHJva2U9IiMzYjJlMjYiIHN0cm9rZS13aWR0aD0iMS40NSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+Cjwvc3ZnPgo=");
}

.steps .step:nth-child(5) .step__infographic,
.service-phases .service-phase:nth-child(5) .service-phase__infographic {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgYXJpYS1oaWRkZW49InRydWUiPgogIDxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjkiIHN0cm9rZT0iIzNiMmUyNiIgc3Ryb2tlLXdpZHRoPSIxLjQ1Ii8+CiAgPHBhdGggZD0iTTggMTIuNSAxMSAxNiAxNiA5IiBzdHJva2U9IiMzYjJlMjYiIHN0cm9rZS13aWR0aD0iMS40NSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CiAgPHBhdGggZD0iTTEyIDZ2Mk0xMiAxNnYyTTYgMTJoMk0xNiAxMmgyIiBzdHJva2U9IiMzYjJlMjYiIHN0cm9rZS13aWR0aD0iMS4xIiBzdHJva2UtbGluZWNhcD0icm91bmQiIG9wYWNpdHk9IjAuNDUiLz4KPC9zdmc+Cg==");
}

.step:hover .step__infographic,
.service-phase:hover .service-phase__infographic {
  transform: scale(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 6px 18px rgb(var(--legal-blue-ch) / 0.12);
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 38px rgb(var(--legal-blue-ch) / 0.14);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgb(var(--legal-blue-ch) / 0.14);
  z-index: 3;
}

#how .step:hover .step__kicker {
  color: var(--legal-blue-light);
}

@media (min-width: 1100px) {
  .step {
    margin-bottom: 0;
    margin-right: -1px;
  }
}

.step__kicker {
  margin: 0 0 8px;
  width: 100%;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--legal-blue);
}

.step__title {
  margin: 0 0 8px;
  width: 100%;
  font-size: clamp(15px, 1.35vw, 17px);
  font-weight: 700;
  line-height: 1.25;
}

#how .step__title {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.step__desc {
  margin: 0;
  width: 100%;
  font-size: clamp(15px, 1.45vw, 18px);
  color: var(--text-muted);
  line-height: 1.55;
}

@media (min-width: 1100px) {
  .step::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -12px;
    width: 0;
    height: 0;
    margin-top: -8px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 10px solid var(--accent-warm);
    z-index: 2;
  }

  .step:last-child::after {
    display: none;
  }
}

/* Advantages */
.adv-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .adv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .adv-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.adv-item {
  padding: 24px;
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  height: 100%;
  transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.adv-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(60, 60, 60, 0.12);
}

.adv-item__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  color: var(--legal-blue);
}

.adv-item__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.adv-item h3 {
  margin: 0 0 10px;
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 700;
  line-height: 1.3;
}

.adv-item p {
  margin: 0;
  font-size: clamp(14px, 1.25vw, 16px);
  color: var(--text-muted);
  line-height: 1.55;
}

/* Pricing */
.pricing-wrap {
  position: relative;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgb(var(--legal-blue-ch) / 0.14);
  background: var(--surface-strong);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.32s ease,
    box-shadow 0.32s ease,
    border-color 0.32s ease;
}

.pricing-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgb(var(--legal-blue-ch) / 0.16);
  border-color: rgb(var(--legal-blue-ch) / 0.26);
  z-index: 2;
}

@media (max-width: 768px) {
  .pricing-wrap {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    box-shadow:
      var(--shadow-card),
      inset -14px 0 14px -14px rgba(59, 46, 38, 0.06);
  }

  .pricing-wrap:hover {
    transform: none;
  }
}

.pricing-sprite {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.pricing-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
  background: transparent;
}

.pricing-table th,
.pricing-table td {
  padding: 14px 14px;
  text-align: center;
  border: 1px solid rgb(var(--legal-blue-ch) / 0.1);
  vertical-align: middle;
}

.pricing-table thead th {
  background: var(--legal-blue);
  color: var(--white);
  font-weight: 700;
  border-color: rgba(255, 255, 255, 0.12);
}

.pricing-table thead th:not(:first-child) {
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 13px;
}

.pricing-table td:first-child,
.pricing-table th:first-child {
  text-align: left;
}

.pricing-table thead th:first-child {
  font-weight: 700;
}

.pricing-table tbody th:first-child {
  font-weight: 600;
}

.pricing-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.35);
}

.pricing-table__intro td {
  font-weight: 400;
  font-size: 13px;
  line-height: 1.45;
  max-width: 220px;
  color: var(--text-muted);
}

.pricing-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.pricing-mark__svg {
  width: 26px;
  height: 26px;
  display: block;
}

.pricing-mark--yes {
  color: var(--legal-blue);
}

.pricing-mark--no {
  color: rgba(92, 90, 87, 0.45);
}

.pricing-table .price-row th,
.pricing-table .price-row td {
  font-weight: 700;
  font-size: 15px;
  background: rgb(var(--legal-blue-ch) / 0.06);
  color: var(--primary);
}

.pricing-table .cta-row td {
  padding-top: 18px;
  padding-bottom: 18px;
  background: rgba(255, 255, 255, 0.25);
  border-color: rgb(var(--legal-blue-ch) / 0.08);
}

.pricing-table .cta-row .btn {
  width: 100%;
  max-width: 180px;
}

.pricing-footnote {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 100%;
  text-align: center;
}

@media (min-width: 1100px) {
  .pricing-footnote {
    white-space: nowrap;
  }
}

.why-table {
  font-size: clamp(16px, 1.55vw, 19px);
}

.why-table th,
.why-table td {
  padding: 16px 18px;
}

.tariff-table {
  font-size: clamp(16px, 1.45vw, 18px);
}

.tariff-table th,
.tariff-table td {
  padding: 16px 18px;
}

.tariff-table .pricing-table__intro td {
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.5;
}

/* Матрица услуг (yurist-zpp-spb): галочки как на главной, аккуратная строка цен */
.section-pricing-matrix .tariff-table {
  font-size: clamp(16px, 1.55vw, 19px);
}

.section-pricing-matrix .tariff-table .price-row th,
.section-pricing-matrix .tariff-table .price-row td {
  font-size: clamp(17px, 1.6vw, 20px);
  border-top: 2px solid rgb(var(--legal-blue-ch) / 0.22);
  padding-top: 20px;
  padding-bottom: 20px;
}

.section-pricing-matrix .pricing-mark__svg {
  width: 28px;
  height: 28px;
}

/* FAQ */
.faq-list {
  max-width: 52rem;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  font-size: 16px;
  font-weight: 700;
  position: relative;
  display: block;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--legal-blue);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item__label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-right: 8px;
}

.faq-item__mark {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--legal-blue);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  color: var(--legal-blue);
  background: rgba(255, 255, 255, 0.5);
}

.faq-item__question {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.faq-item__answer {
  padding: 0 0 24px calc(28px + 12px);
  margin-top: -4px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Final CTA form */
.cta-block {
  max-width: 560px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  color: var(--primary);
  background: var(--surface-strong);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0;
  font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

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

.form-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}

.btn-submit {
  width: 100%;
  background: var(--legal-blue);
  color: var(--white);
  border: 1px solid var(--legal-blue);
  padding: 16px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-submit:hover {
  background: var(--legal-blue-light);
  border-color: var(--legal-blue-light);
}

.hotline-number {
  margin: 6px 0 4px;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.hotline-meta {
  margin: 0 0 26px;
  font-size: clamp(14px, 1.7vw, 18px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}

@media (min-width: 800px) {
  .contacts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Три карточки услуг в один ряд (pretenziya #services) */
.contacts-grid--3 {
  max-width: min(1180px, 100%);
}

@media (min-width: 900px) {
  .contacts-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 1.4vw, 18px);
  }

  .contacts-grid--3 .contact-card {
    padding: 18px 14px 16px;
  }
}

@media (max-width: 899px) {
  .contacts-grid--3 {
    grid-template-columns: 1fr;
  }
}

/* Появление при скролле: 4 причины + 3 услуги (pretenziya-uslugi-obrazec) */
html.no-js .page-pretenziya .stats-grid--4 .stat-card,
html.no-js .page-pretenziya .contacts-grid--3 .contact-card {
  opacity: 1;
  transform: none;
}

html.js .page-pretenziya .stats-grid--4:not(.is-revealed) .stat-card,
html.js .page-pretenziya .contacts-grid--3:not(.is-revealed) .contact-card {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  pointer-events: none;
}

.page-pretenziya .stats-grid--4.is-revealed .stat-card,
.page-pretenziya .contacts-grid--3.is-revealed .contact-card {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  transition:
    opacity 0.58s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.58s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.page-pretenziya .stats-grid--4.is-revealed .stat-card:nth-child(1) {
  transition-delay: 0.04s;
}
.page-pretenziya .stats-grid--4.is-revealed .stat-card:nth-child(2) {
  transition-delay: 0.11s;
}
.page-pretenziya .stats-grid--4.is-revealed .stat-card:nth-child(3) {
  transition-delay: 0.18s;
}
.page-pretenziya .stats-grid--4.is-revealed .stat-card:nth-child(4) {
  transition-delay: 0.25s;
}

.page-pretenziya .contacts-grid--3.is-revealed .contact-card:nth-child(1) {
  transition-delay: 0.05s;
}
.page-pretenziya .contacts-grid--3.is-revealed .contact-card:nth-child(2) {
  transition-delay: 0.14s;
}
.page-pretenziya .contacts-grid--3.is-revealed .contact-card:nth-child(3) {
  transition-delay: 0.23s;
}

@media (prefers-reduced-motion: reduce) {
  html.js .page-pretenziya .stats-grid--4:not(.is-revealed) .stat-card,
  html.js .page-pretenziya .contacts-grid--3:not(.is-revealed) .contact-card {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: none;
  }

  .page-pretenziya .stats-grid--4.is-revealed .stat-card,
  .page-pretenziya .contacts-grid--3.is-revealed .contact-card {
    transition: none;
  }
}

.contact-card {
  padding: 22px 22px 20px;
  background: var(--surface);
  border: 1px solid rgb(var(--legal-blue-ch) / 0.1);
  border-left: 4px solid var(--legal-blue);
  box-shadow: var(--shadow-card);
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 0 14px;
  padding: 10px;
  color: var(--legal-blue);
  border-radius: 14px;
  background: linear-gradient(160deg, rgb(var(--legal-blue-ch) / 0.1) 0%, rgba(255, 255, 255, 0.45) 100%);
  border: 1px solid rgb(var(--legal-blue-ch) / 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.contact-card__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.contact-card:hover .contact-card__icon {
  transform: scale(1.04);
  border-color: rgb(var(--legal-blue-ch) / 0.18);
}

.contact-card__title {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--legal-blue);
}

.contact-card__value {
  margin: 0 0 8px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.3;
}

.contact-card__text {
  margin: 0;
  font-size: clamp(14px, 1.35vw, 16px);
  color: var(--text-muted);
}

.consent-row {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.consent-row input {
  margin-top: 2px;
}

.review-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .review-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Три карточки кейсов в один ряд (#results на pretenziya-uslugi-obrazec) */
.review-list--3 {
  max-width: min(1180px, 100%);
}

@media (min-width: 900px) {
  .review-list--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 1.4vw, 16px);
  }

  .review-list--3 .review-card {
    padding: 18px 14px;
  }
}

@media (max-width: 899px) {
  .review-list--3 {
    grid-template-columns: 1fr;
  }
}

/* Четыре отзыва в ряд (горячая линия и др.) */
.review-list--4 {
  max-width: min(1180px, 100%);
}

@media (min-width: 900px) {
  .review-list--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 1.2vw, 14px);
  }

  .review-list--4 .review-card {
    padding: 18px 12px;
  }
}

@media (max-width: 899px) {
  .review-list--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .review-list--4 {
    grid-template-columns: 1fr;
  }

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

  main.main {
    padding-bottom: max(72px, calc(env(safe-area-inset-bottom, 0px) + 56px));
  }
}

.review-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid rgb(var(--legal-blue-ch) / 0.12);
  border-left: 4px solid var(--legal-blue);
  box-shadow: var(--shadow-card);
}

.review-card__icon {
  width: 42px;
  height: 42px;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--legal-blue);
  border-radius: 12px;
  background: rgb(var(--legal-blue-ch) / 0.08);
  border: 1px solid rgb(var(--legal-blue-ch) / 0.1);
}

.review-card__icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.review-card__title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--legal-blue);
  letter-spacing: 0.02em;
}

.review-card__text {
  margin: 0;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.65;
  color: var(--text-muted);
}

/* Главная: отзывы перед ЧАВО — звёзды в коричневой гамме сайта */
.home-reviews__stars {
  margin: 0 0 12px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1;
  letter-spacing: 0.14em;
  color: var(--legal-blue);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.home-reviews__author {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.home-reviews__author strong {
  font-weight: 700;
  color: var(--legal-blue);
}

.home-reviews__quote {
  margin: 0;
  padding: 0;
  border: none;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.65;
  color: var(--text-muted);
  font-style: normal;
}

.home-reviews__card--quote-first .home-reviews__quote {
  margin: 0 0 14px;
}

.home-reviews__card--quote-first .home-reviews__author {
  margin: 0 0 6px;
}

.home-reviews__payout {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--legal-blue);
}

/* Глобально скругляем «оконные» блоки и карточки */
.benefit-card,
.benefit-example,
.submission-list__item,
.service-phase,
.trust-item,
.card-problem,
.step,
.adv-item,
.pricing-wrap,
.faq-item,
.contact-card,
.review-card,
.stat-card,
.cta-block,
.callback-modal__dialog,
.callback-modal__input,
.messenger-dock__flyout,
.messenger-dock__panel,
.messenger-dock__bubble,
.messenger-dock__composer,
.messenger-dock__textarea,
.messenger-dock__emoji-pop {
  border-radius: var(--radius-block);
}

.btn,
.form-group input,
.form-group textarea {
  border-radius: var(--radius-control);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Ровно 4 карточки в один ряд (pretenziya #what-is и др.) */
.stats-grid--4 {
  max-width: min(1180px, 100%);
}

@media (min-width: 900px) {
  .stats-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 1.4vw, 16px);
  }

  .stats-grid--4 .stat-card {
    padding: 18px 12px;
  }

  .stats-grid--4 .stat-card__value {
    font-size: clamp(28px, 3.2vw, 36px);
  }
}

@media (max-width: 899px) {
  .stats-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-card {
  padding: 22px 18px;
  text-align: center;
  background: var(--surface);
  border: 1px solid rgb(var(--legal-blue-ch) / 0.12);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgb(var(--legal-blue-ch) / 0.14);
  border-color: rgb(var(--legal-blue-ch) / 0.22);
}

.page-pretenziya .stats-grid--4.is-revealed .stat-card:hover {
  transform: translate3d(0, -4px, 0);
}

.stat-card__icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--legal-blue);
  border-radius: 14px;
  background: rgb(var(--legal-blue-ch) / 0.08);
  border: 1px solid rgb(var(--legal-blue-ch) / 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.stat-card__icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.stat-card__value {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  color: var(--legal-blue);
  line-height: 1.2;
}

.stat-card__text {
  margin: 0;
  font-size: clamp(14px, 1.3vw, 16px);
  color: var(--text-muted);
  line-height: 1.55;
}

.contact-preference {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.contact-preference legend {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.contact-preference label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 14px;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text-muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ——— pretenziya-uslugi-obrazec.html: чуть крупнее текст в блоках ——— */
.page-pretenziya .main {
  font-size: 1.0625rem;
}

@media (min-width: 900px) {
  .page-pretenziya .main {
    font-size: 1.08rem;
  }
}

.page-pretenziya .section__heading {
  font-size: clamp(24px, 3.4vw, 34px);
}

.page-pretenziya .section__sub {
  font-size: 16px;
}

.page-pretenziya .section__sub--wide {
  font-size: clamp(17px, 2.05vw, 21px);
}

.page-pretenziya #hero + .section.lead-actions .section__sub--wide {
  font-size: clamp(17px, 2.05vw, 20px);
}

.page-pretenziya .lead-actions .hotline-meta {
  font-size: clamp(15px, 1.65vw, 18px);
}

.page-pretenziya .benefit-example__title {
  font-size: 16px;
}

.page-pretenziya .benefit-example__text {
  font-size: clamp(15px, 1.45vw, 18px);
}

.page-pretenziya .submission-list__item {
  font-size: clamp(15px, 1.45vw, 18px);
}

.page-pretenziya .pricing-wrap .pricing-table {
  font-size: 15px;
}

.page-pretenziya .pricing-wrap .tariff-table {
  font-size: clamp(17px, 1.55vw, 19px);
}

.page-pretenziya .pricing-wrap .pricing-mark__svg {
  width: 28px;
  height: 28px;
}

.page-pretenziya .contact-card__title {
  font-size: 14px;
}

.page-pretenziya .contact-card__text {
  font-size: clamp(15px, 1.4vw, 17px);
}

.page-pretenziya .card-problem__text {
  font-size: clamp(16px, 1.6vw, 18px);
}

.page-pretenziya .step__kicker {
  font-size: 12px;
}

.page-pretenziya .step__title {
  font-size: clamp(16px, 1.4vw, 18px);
}

.page-pretenziya .step__desc {
  font-size: clamp(16px, 1.5vw, 19px);
}

.page-pretenziya .adv-item h3 {
  font-size: clamp(17px, 1.55vw, 20px);
}

.page-pretenziya .adv-item p {
  font-size: clamp(15px, 1.4vw, 17px);
}

.page-pretenziya .stat-card__text {
  font-size: clamp(15px, 1.4vw, 17px);
}

.page-pretenziya .review-card__title {
  font-size: 16px;
}

.page-pretenziya .review-card__text {
  font-size: clamp(15px, 1.35vw, 17px);
}

.page-pretenziya .faq-item summary {
  font-size: 17px;
}

.page-pretenziya .faq-item__question {
  font-size: inherit;
}

.page-pretenziya .faq-item__answer {
  font-size: 16px;
}

.page-pretenziya .btn {
  font-size: 15px;
}

.page-pretenziya .btn-submit {
  font-size: 15px;
}

.page-pretenziya #request .form-group label {
  font-size: 14px;
}

.page-pretenziya #request .form-group input,
.page-pretenziya #request .form-group textarea {
  font-size: 16px;
}

.page-pretenziya #request .form-note {
  font-size: 13px;
}

/* ——— Виджет обратного звонка (плавающая «трубка» + модальное окно) ——— */
body.callback-modal-open {
  overflow: hidden;
}

.callback-fab {
  position: fixed;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: max(22px, env(safe-area-inset-bottom, 0px));
  z-index: 10040;
  isolation: isolate;
  width: 58px;
  height: 58px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #f1602e;
  color: #fff;
  cursor: pointer;
  box-shadow:
    0 4px 18px rgba(241, 96, 46, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.callback-fab:hover {
  background: #ff6b35;
  transform: scale(1.05);
  box-shadow:
    0 6px 22px rgba(241, 96, 46, 0.5),
    0 2px 10px rgba(0, 0, 0, 0.22);
}

.callback-fab:active {
  transform: scale(0.97);
}

.callback-fab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.callback-fab__pulse {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: #f1602e;
  pointer-events: none;
  animation: callback-fab-ring 2.1s ease-out infinite;
}

.callback-fab__icon-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.callback-fab__icon {
  width: 26px;
  height: 26px;
  display: block;
}

@keyframes callback-fab-ring {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.42);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .callback-fab__pulse {
    animation: none;
    opacity: 0;
  }
}

.callback-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

/* Иначе author `display: flex` перебивает UA для [hidden] — окно «вечно открыто» */
.callback-modal[hidden] {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}

.callback-modal:not([hidden]) {
  display: flex;
  visibility: visible;
  pointer-events: auto;
}

.callback-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 18, 15, 0.58);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.callback-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 26px 24px 22px;
  border-radius: 14px;
  background: linear-gradient(180deg, #5a5652 0%, #4a4541 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.callback-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}

.callback-modal__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.callback-modal__title {
  margin: 0 44px 20px 0;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  letter-spacing: -0.02em;
}

.callback-modal__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.callback-modal__input {
  flex: 1 1 160px;
  min-width: 0;
  padding: 14px 14px;
  font-size: 16px;
  font-family: var(--font);
  color: var(--primary);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
}

.callback-modal__input::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

.callback-modal__submit {
  flex: 0 0 auto;
  min-width: 140px;
  padding: 14px 18px;
  border: none;
  border-radius: 8px;
  background: #f1602e;
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.callback-modal__submit:hover {
  background: #ff6b35;
}

.callback-modal__submit:active {
  transform: scale(0.98);
}

.callback-modal__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.callback-modal__consent input {
  margin-top: 3px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .callback-modal__submit {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* ——— Виджет «Отправьте сообщение» слева (вкладка + hover-меню + окно чата) ——— */
body.messenger-panel-open {
  overflow: hidden;
}

.messenger-dock {
  position: fixed;
  left: max(0px, env(safe-area-inset-left, 0px));
  top: 50%;
  transform: translateY(-50%);
  z-index: 10030;
  font-family: var(--font);
  isolation: isolate;
  --messenger-tab-w: 50px;
  pointer-events: none;
}

.messenger-dock__rail,
.messenger-dock__panel:not([hidden]),
.messenger-dock__backdrop:not([hidden]) {
  pointer-events: auto;
}

.messenger-dock__backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(22, 18, 15, 0.38);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.messenger-dock__backdrop[hidden] {
  display: none !important;
}

.messenger-dock__backdrop:not([hidden]) {
  display: block;
}

.messenger-dock__rail {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.messenger-dock__tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: var(--messenger-tab-w);
  min-height: 200px;
  max-height: 72vh;
  padding: 16px 6px 12px;
  margin: 0;
  border: none;
  border-radius: 0 14px 14px 0;
  background: linear-gradient(180deg, #cc2958 0%, #ff7a32 100%);
  color: #fff;
  cursor: pointer;
  box-shadow:
    4px 0 22px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: filter 0.2s ease, transform 0.15s ease;
}

.messenger-dock__tab:hover {
  filter: brightness(1.06);
}

.messenger-dock__tab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.messenger-dock__tab:active {
  transform: scale(0.98);
}

.messenger-dock__tab-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: clamp(11px, 1.5vw, 13px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.15;
  user-select: none;
}

.messenger-dock__tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
  margin-top: 8px;
}

.messenger-dock__flyout {
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  min-width: 252px;
  padding: 8px 0;
  margin: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.16),
    0 2px 8px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
  z-index: 4;
}

@media (hover: hover) and (pointer: fine) {
  .messenger-dock__rail:hover .messenger-dock__flyout {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
  }
}

.messenger-dock__rail:focus-within .messenger-dock__flyout {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.messenger-dock.is-panel-open .messenger-dock__flyout {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.messenger-dock__flyout-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #1f1f1f;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

a.messenger-dock__flyout-item {
  color: #1f1f1f;
}

.messenger-dock__flyout-item:hover {
  background: rgba(0, 0, 0, 0.05);
  text-decoration: none;
}

.messenger-dock__flyout-item + .messenger-dock__flyout-item {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.messenger-dock__flyout-ico {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.messenger-dock__flyout-ico--tg {
  border-radius: 50%;
  background-color: #2aabee;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9.04 15.29l-.33 3.62c.48 0 .69-.21.94-.46l2.25-2.16 4.67 3.42c.86.47 1.48.22 1.71-.78l3.07-14.48c.24-1.13-.41-1.57-1.15-1.3L2.32 10.42c-1.09.43-1.07 1.05-.19 1.32l4.82 1.5 11.19-7.06c.53-.33 1.01-.15.61.18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

.messenger-dock__flyout-ico--vk {
  border-radius: 7px;
  background-color: #2787f5;
  /* Скруглённый синий квадрат + белый логотип «vk» (геометрия Simple Icons, бренд VK) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect width='24' height='24' rx='7' fill='%232787F5'/%3E%3Cpath fill='%23fff' d='M6.79 7.3H4.05c.13 6.24 3.25 9.99 8.72 9.99h.31v-3.57c2.01.2 3.53 1.67 4.14 3.57h2.84c-.78-2.84-2.83-4.41-4.11-5.01 1.28-.74 3.08-2.54 3.51-4.98h-2.58c-.56 1.98-2.22 3.78-3.8 3.95V7.3H10.5v6.92c-1.6-.4-3.62-2.34-3.71-6.92Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.messenger-dock__flyout-ico--chat {
  border-radius: 50%;
  background: #22c55e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H5.17L4 17.17V4h16v12z'/%3E%3C/svg%3E")
    center/16px 16px no-repeat;
}

.messenger-dock__panel {
  position: fixed;
  left: calc(var(--messenger-tab-w) + max(8px, env(safe-area-inset-left, 0px)));
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: min(360px, calc(100vw - var(--messenger-tab-w) - 28px));
  max-height: min(560px, 86vh);
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
}

.messenger-dock__panel[hidden] {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}

.messenger-dock__panel:not([hidden]) {
  display: flex;
  visibility: visible;
  pointer-events: auto;
}

.messenger-dock__panel-head {
  position: relative;
  padding: 18px 16px 16px 48px;
  background: linear-gradient(90deg, #ff7a32 0%, #cc2958 100%);
  color: #fff;
}

.messenger-dock__panel-x {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: background 0.15s ease;
}

.messenger-dock__panel-x:hover {
  background: #fff;
}

.messenger-dock__panel-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.messenger-dock__thread {
  flex: 1 1 auto;
  min-height: 120px;
  max-height: 220px;
  overflow-y: auto;
  padding: 14px 16px;
  background: #fafafa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.messenger-dock__bubble {
  margin: 0;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  color: #333;
  background: #e8e8e8;
  border-radius: 12px;
  border-bottom-left-radius: 4px;
}

.messenger-dock__bubble--out {
  margin-left: 18%;
  background: #dbeafe;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 4px;
}

.messenger-dock__composer {
  display: flex;
  flex-direction: column;
  padding: 12px 14px 14px;
  background: #fff;
}

.messenger-dock__textarea {
  width: 100%;
  min-height: 72px;
  margin: 0 0 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  color: var(--primary);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  resize: vertical;
}

.messenger-dock__textarea::placeholder {
  color: #999;
}

.messenger-dock__textarea:focus {
  outline: none;
  border-color: #cc2958;
  box-shadow: 0 0 0 2px rgba(204, 41, 88, 0.12);
}

.messenger-dock__composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.messenger-dock__composer-tools {
  display: flex;
  align-items: center;
  gap: 2px;
}

.messenger-dock__tool {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #555;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}

.messenger-dock__tool:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.06);
  color: #222;
}

.messenger-dock__tool:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.messenger-dock__emoji-slot {
  position: relative;
}

.messenger-dock__emoji-pop {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  max-width: 220px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 5;
}

.messenger-dock__emoji-pop[hidden] {
  display: none !important;
}

.messenger-dock__emoji-opt {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.messenger-dock__emoji-opt:hover {
  background: rgba(0, 0, 0, 0.06);
}

.messenger-dock__send {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #ddd 0%, #bbb 100%);
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.messenger-dock__send:not(:disabled) {
  background: linear-gradient(135deg, #ff7a32 0%, #cc2958 100%);
  box-shadow: 0 4px 12px rgba(204, 41, 88, 0.35);
}

.messenger-dock__send:not(:disabled):hover {
  filter: brightness(1.05);
  transform: scale(1.04);
}

.messenger-dock__send:disabled {
  color: #888;
  cursor: not-allowed;
}

.messenger-dock__files {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
}

@media (max-width: 520px) {
  .messenger-dock {
    top: auto;
    bottom: max(92px, env(safe-area-inset-bottom, 0px));
    transform: none;
  }

  .messenger-dock__tab {
    min-height: 150px;
    max-height: 46vh;
  }

  .messenger-dock__panel {
    left: max(10px, env(safe-area-inset-left, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
    width: auto;
    max-height: min(520px, 78vh);
  }

  .callback-fab {
    bottom: max(96px, calc(env(safe-area-inset-bottom, 0px) + 84px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .messenger-dock__flyout,
  .messenger-dock__tab {
    transition: none;
  }
}
