/* === Полировка сайта (29.11.2026) ===
   1) FAQ: убираем второй плюс — наследие старых блоков Flexbe (summary::after "+")
      рисуется поверх современного круглого тоггла с полосками.
   2) Плавность скролла: hover-эффекты — только на устройствах с курсором,
      переходы — точечными свойствами вместо transition:all (меньше перерисовок).
   Файл подключается ПОСЛЕДНИМ (в build.py после {css_links}), чтобы перекрывать
   и all-blocks.css, и стили отдельных блоков. */

/* ── 1. FAQ: один плюс вместо двух ── */
.p24-faq .p24-faq-item summary::after {
  content: none !important;
  display: none !important;
}

/* ── 2. Скролл: точечные переходы вместо transition:all ── */
.p24-faq-item,
details {
  transition: border-color .22s ease, box-shadow .22s ease;
}
.p24-cases__grid > *,
.p24-team-card,
.p24-trust__item,
.p24-tm-opportunities__card,
.p24-roadmap__step {
  transition: transform .3s ease, box-shadow .3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .p24-faq-item:hover,
  details:hover {
    background: rgba(62, 109, 255, .03);
    transition: border-color .22s ease, box-shadow .22s ease, background .25s ease;
  }
}

/* ── 3. Кнопки-первички: градиент, блик, подъём, свечение ── */
.p24-hero__btn--primary,
.p24-cases__btn,
.p24-faq__cta,
.p24-services__cta a,
.p24-roadmap__cta a {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #ff7a1f 0%, #ff5c00 100%) !important;
  border-radius: 12px !important;
  box-shadow:
    0 6px 18px rgba(255, 92, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .25) !important;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
/* блик, пробегающий по кнопке при наведении */
.p24-hero__btn--primary::after,
.p24-cases__btn::after,
.p24-faq__cta::after,
.p24-services__cta a::after,
.p24-roadmap__cta a::after {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: 0;
  width: 42%;
  background: linear-gradient(105deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, .38) 50%,
    rgba(255, 255, 255, 0) 100%);
  transform: translateX(-160%) skewX(-18deg);
  transition: transform .55s ease;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .p24-hero__btn--primary:hover,
  .p24-cases__btn:hover,
  .p24-faq__cta:hover,
  .p24-services__cta a:hover,
  .p24-roadmap__cta a:hover {
    transform: translateY(-2px);
    box-shadow:
      0 12px 28px rgba(255, 92, 0, .38),
      inset 0 1px 0 rgba(255, 255, 255, .25) !important;
    filter: saturate(1.06);
  }
  .p24-hero__btn--primary:hover::after,
  .p24-cases__btn:hover::after,
  .p24-faq__cta:hover::after,
  .p24-services__cta a:hover::after,
  .p24-roadmap__cta a:hover::after {
    transform: translateX(430%) skewX(-18deg);
  }
}
.p24-hero__btn--primary:active,
.p24-cases__btn:active,
.p24-faq__cta:active,
.p24-services__cta a:active,
.p24-roadmap__cta a:active {
  transform: translateY(0) scale(.985);
  box-shadow: 0 4px 12px rgba(255, 92, 0, .30) !important;
}

/* вторичная кнопка hero — спокойный современный hover без градиента */
.p24-hero__btn--secondary {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .p24-hero__btn--secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 92, 0, .45);
    box-shadow: 0 8px 20px rgba(11, 31, 77, .10);
  }
}
.p24-hero__btn--secondary:active {
  transform: translateY(0) scale(.985);
}

/* фокус с клавиатуры — заметная рамка на кнопках */
.p24-hero__btn--primary:focus-visible,
.p24-hero__btn--secondary:focus-visible,
.p24-cases__btn:focus-visible,
.p24-faq__cta:focus-visible {
  outline: 3px solid rgba(255, 92, 0, .55);
  outline-offset: 3px;
}

/* ── Бейдж «Сделано на AIVA24» ── */
.p24-madeby {
  display: flex;
  align-items: center;
}
.p24-madeby__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  color: rgba(255, 255, 255, .62);
  background: rgba(255, 255, 255, .04);
  font: 500 12px/1 Inter, Arial, Helvetica, sans-serif;
  letter-spacing: .01em;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.p24-madeby__link,
.p24-footer__bottom .p24-madeby__link b {
  font-weight: 400 !important;  /* правило .p24-footer__bottom a ставит 600 — не выделяемся */
}
.p24-madeby__link b {
  color: inherit;
}
.p24-madeby__link:hover {
  color: rgba(255, 255, 255, .85);
  border-color: rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .07);
}

/* ── FAQ: карточка «Остался вопрос» прилипает при прокрутке ──
   overflow:hidden у секции ломал position:sticky (создавал контейнер прокрутки).
   Современные браузеры получают overflow:clip — липкость работает, обрезка декора сохраняется. */
.p24-faq {
  overflow: hidden;
  overflow: clip;
}
@media (min-width: 701px) {
  .p24-faq__side {
    top: 84px; /* не заезжает под липкую шапку */
  }
}

/* ── Отзывы Яндекса: прячем серый обрывок второго отзыва ──
   Виджет сам показывает верх следующего отзыва и гасит его — выглядит как серый мусор
   под последней звездой. Накрываем эту зону мягким белым градиентом (кнопка ниже — целая). */
.p24-reviews__iframe-wrap {
  position: relative;
}
.p24-reviews-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 76px;
  height: 58px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .85) 55%, #fff 100%);
  pointer-events: none;
}

/* ── «Содержание» статей: без прыжков ──
   1) Активный пункт получал font-weight:800 — текст становился шире, строки
      перезаворачивались и список дёргался. Вес теперь не меняется: активность
      видна по цвету и плашке.
   2) margin-left:-10px задвигал фон пункта под номер списка — номер «пропадал»
      при активации. Убираем сдвиг: номер виден всегда. */
.p24-errors__toc-link {
  margin-left: 0;
}
.p24-errors__toc-link.is-active {
  font-weight: inherit;
}

/* ─── Прогресс чтения статьи (.p24-progress, оранжевая полоса на самом верху) ───
 * Скрипт ширины уже был на страницах статей, но полоса была невидима:
 * var(--p24-orange) определена только внутри .p24-article, а полоса — снаружи неё. */
.p24-progress { background: #ff6200; }

/* ─── Подсветка текущего раздела в «Содержании» (класс .is-active ставит p24.js) ─── */
.p24-toc a { transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
/* Жирность активного пункта не меняем — смена веса меняет ширину текста и дёргает
 * список (тот же урок, что с содержанием /10-oshibok/: правка 7f29b2a). */
.p24-toc a.is-active { font-weight: inherit; }

/* ─── Сайдбар статьи: CTA + «Поделиться» (вставляет p24.js, id=p24-side-extra) ─── */
.p24-side-extra { flex: none; padding: 4px 4px 0; }
.p24-side-cta { padding-bottom: 14px; }
.p24-side-cta__btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 13px 18px;
  background: var(--p24-orange, #ff6200); color: #fff !important;
  border-radius: 8px; text-decoration: none !important;
  font-weight: 600; font-size: 15px; line-height: 1.25; text-align: center;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.p24-side-cta__btn:hover {
  background: #e95800; transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 98, 0, .22);
}
.p24-share { border-top: 1px solid #e2e6ec; padding-top: 14px; }
.p24-share__title { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: #515967; }
.p24-share__row { display: flex; gap: 8px; }
.p24-share__btn {
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff; text-decoration: none !important;
  transition: transform .15s ease, filter .15s ease;
}
.p24-share__btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.p24-share__btn--vk { background: #0077ff; }
.p24-share__btn--tg { background: #229ed9; }
.p24-share__btn--wa { background: #25d366; }
.p24-share__btn--copy { background: #646d82; }
.p24-share__btn--copy.is-done { background: #2ea44f; }

/* ─── Прогресс чтения с минутами под «Содержанием» (p24.js, .p24-readprogress) ─── */
.p24-readprogress { padding: 0 4px 14px; }
.p24-readprogress__track {
  height: 6px; border-radius: 999px; background: #e2e6ec; overflow: hidden;
}
.p24-readprogress__bar {
  height: 100%; width: 0; border-radius: 999px; background: #ff6200;
  transition: width .15s linear;
}
.p24-readprogress__label {
  margin: 8px 0 0; font-size: 13px; color: #515967; font-variant-numeric: tabular-nums;
}

/* ─── Акцент «ПАТЕНТ 24» в hero H1 — фирменный оранжевый ───
 * Каскад: .p24-hero h1 span { color: var(--p24-orange) } (специфичность 0,1,2)
 * побеждает .p24-hero__title span, но --p24-orange определена не везде,
 * поэтому var «молчал» и спан наследовал чёрный (в оригинале — оранжевый). */
.p24-hero h1 span { color: #ff5c00; }

/* ─── Липкая CTA-панель внизу (мобильные; вставляет p24.js, .p24-ctabar) ─── */
.p24-ctabar { display: none; }
@media (max-width: 820px) {
  .p24-ctabar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    display: flex; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid #e2e6ec;
    box-shadow: 0 -6px 24px rgba(11, 31, 77, .10);
  }
  .p24-ctabar__btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    height: 46px; border-radius: 10px; text-decoration: none !important;
    font-weight: 600; font-size: 15px; line-height: 1;
    transition: transform .12s ease, filter .12s ease;
  }
  .p24-ctabar__btn:active { transform: scale(.98); }
  .p24-ctabar__btn--main {
    flex: 1 1 auto;
    background: #ff5c00; color: #fff !important;
    box-shadow: 0 4px 14px rgba(255, 92, 0, .28);
  }
  .p24-ctabar__btn--main:active { filter: brightness(1.06); }
  .p24-ctabar__btn--call {
    flex: 0 0 auto; padding: 0 14px;
    background: #0b1f4d; color: #fff !important;
  }
  /* место под панель: подвал не уезжает под неё */
  .p24-footer { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  /* панель не нужна поверх открытого меню */
  body:has(.p24-header.is-mobile-open) .p24-ctabar { display: none; }
}
/* поля форм в фокусе — прячем панель, чтобы клавиатура не прятала поле */
@media (max-width: 820px) {
  body:has(.p24-form input:focus) .p24-ctabar,
  body:has(input[type="text"]:focus) .p24-ctabar,
  body:has(input[type="tel"]:focus) .p24-ctabar,
  body:has(input[type="email"]:focus) .p24-ctabar,
  body:has(textarea:focus) .p24-ctabar { display: none; }
}

/* ─── Страница /kontakti/ (тело собирается из posts.json, стили здесь) ─── */
.p24-kband { background: #0b1f4d; padding: 56px 24px; }
.p24-kband__inner { max-width: 1220px; margin: 0 auto; }
.p24-kband h1 { margin: 0; color: #fff; font-size: clamp(30px, 4.5vw, 46px); font-weight: 600; text-align: center; }
.p24-khero { background: #eef3f9; padding: 64px 24px; }
.p24-khero__grid { max-width: 1220px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 32px; align-items: center; }
.p24-khero__text h2 { margin: 0 0 16px; font-size: clamp(30px, 4vw, 44px); font-weight: 700; line-height: 1.08; text-transform: uppercase; color: #050505; }
.p24-khero__text h2 span { color: #ff5c00; }
.p24-khero__text p { margin: 0; color: #515967; font-size: 18px; line-height: 1.5; max-width: 520px; }
.p24-khero__card { background: #fff; border: 1px solid #e2e6ec; border-radius: 16px; padding: 20px; box-shadow: 0 12px 34px rgba(11, 31, 77, .07); display: grid; gap: 12px; }
.p24-khero__row { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid #eef1f5; border-radius: 10px; }
.p24-khero__row span { font-size: 13px; color: #646d82; }
.p24-khero__row strong { font-size: 17px; color: #050505; }
.p24-khero__row a { color: inherit; text-decoration: none; }
.p24-khero__btn { display: flex; align-items: center; justify-content: center; height: 54px; border-radius: 10px; background: linear-gradient(135deg, #ff7a1f, #ff5c00); color: #fff !important; font-weight: 700; font-size: 16px; text-decoration: none !important; letter-spacing: .02em; transition: transform .15s ease, filter .15s ease; }
.p24-khero__btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.p24-kcards { background: #eef3f9; padding: 0 24px 72px; max-width: 1268px; margin: 0 auto; }
.p24-kcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
@media (max-width: 1080px) { .p24-kcards { grid-template-columns: 1fr; max-width: 640px; } }
.p24-kcards .p24-footer-card { background: #fff; }
.p24-kform { background: #f7f8fa; padding: 72px 24px; }
.p24-kform__wrap { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid #e2e6ec; border-radius: 16px; padding: 32px; box-shadow: 0 12px 34px rgba(11, 31, 77, .07); }
.p24-kform__wrap h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); color: #050505; }
.p24-kform__wrap > p { margin: 0 0 20px; color: #515967; }
.p24-kform__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.p24-kform__field { display: grid; gap: 6px; }
.p24-kform__field--wide { grid-column: 1 / -1; }
.p24-kform__field label { font-size: 14px; font-weight: 600; color: #293775; }
.p24-kform__field input, .p24-kform__field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #d5dbe5; border-radius: 10px;
  font: inherit; font-size: 16px; color: #050505; background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.p24-kform__field input:focus, .p24-kform__field textarea:focus { outline: none; border-color: #ff5c00; box-shadow: 0 0 0 3px rgba(255, 92, 0, .12); }
.p24-kform__field input[aria-invalid="true"], .p24-kform__field textarea[aria-invalid="true"] { border-color: #d92d20; }
.p24-kform__err { min-height: 16px; font-size: 12px; color: #d92d20; }
.p24-kform__hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; }
.p24-kform__consent { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 18px; font-size: 13px; color: #515967; cursor: pointer; }
.p24-kform__consent input { margin-top: 2px; width: 16px; height: 16px; accent-color: #ff5c00; }
.p24-kform__consent a { color: #293775; }
.p24-kform__submit {
  width: 100%; height: 56px; border: 0; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, #ff7a1f, #ff5c00); color: #fff;
  font: inherit; font-weight: 700; font-size: 16px; letter-spacing: .02em; text-transform: uppercase;
  transition: transform .15s ease, filter .15s ease;
}
.p24-kform__submit:hover { filter: brightness(1.05); }
.p24-kform__submit:disabled { opacity: .6; cursor: default; }
.p24-kform__status { min-height: 20px; margin: 12px 0 0; font-size: 14px; }
.p24-kform__status[data-state="success"] { color: #12813a; font-weight: 600; }
.p24-kform__status[data-state="error"] { color: #d92d20; }
@media (max-width: 900px) {
  .p24-khero__grid { grid-template-columns: 1fr; }
  .p24-kform__grid { grid-template-columns: 1fr; }
  .p24-kband { padding: 44px 18px; }
  .p24-khero { padding: 48px 18px 40px; }
  .p24-kcards { padding: 0 18px 56px; }
  .p24-kform { padding: 56px 18px; }
  .p24-kform__wrap { padding: 22px 16px; }
}

/* ─── Мобильное меню: категории услуг одной колонкой ───
 * В сетке 2×N кнопки по ~136px: длинные названия («Международная защита»,
 * «Коммерческая тайна») переносятся и обрезаются. Одна колонка — строки
 * [01] Название ›, читается и выглядит аккуратно. */
@media (max-width: 820px) {
  .p24-header__categories { grid-template-columns: 1fr; gap: 8px; padding: 12px; }
  .p24-header__category {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 10px 12px;
    min-height: 48px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    border-radius: 10px;
  }
  .p24-header__category-number { width: 34px; height: 34px; border-radius: 9px; font-size: 13px; }
  .p24-header__category i { display: block; color: var(--p24-header-muted, #646d82); font-size: 16px; font-style: normal; }
  .p24-header__category.is-active { border-color: rgba(255, 98, 0, .45); }
}

/* ─── Загрузочная заставка (как на Госуслугах): логотип с пульсирующим ореолом ───
 * Разметку ставит build.py сразу после <body>, прячет p24.js (initSplash),
 * при выключенном JS заставку гасит <noscript>-стиль. */
.p24-splash {
  position: fixed; inset: 0; z-index: 95000;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .28s ease;
}
.p24-splash.is-done { opacity: 0; pointer-events: none; }
.p24-splash__pulse {
  position: absolute; width: 170px; height: 170px; border-radius: 50%;
  background: rgba(255, 92, 0, .09);
  animation: p24SplashPulse 1.5s ease-in-out infinite;
}
.p24-splash__logo { position: relative; width: 190px; height: auto; display: block; }
@keyframes p24SplashPulse {
  0%, 100% { transform: scale(1); opacity: .5; }
  50% { transform: scale(1.28); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .p24-splash__pulse { animation: none; opacity: .5; }
}

/* ─── Единая шапка на всех страницах ───
 * Копии css шапки в page-css разных страниц по-разному переопределяли ширину
 * логотипа и размер подписи (на /registraciya/ 150px/14px — «ПАТЕНТНОЕ БЮРО»
 * наезжало на «Услуги» при среднем сжатии). Закрепляем значения как на главной:
 * специфичность .p24-header .… бьёт копии независимо от порядка загрузки. */
.p24-header .p24-header__logo-img { width: 142px; }
.p24-header .p24-header__descriptor { font-size: 11px; }
@media (max-width: 1300px) {
  .p24-header .p24-header__logo-img { width: 132px; }
  .p24-header .p24-header__descriptor { font-size: 10px; }
}
@media (max-width: 1180px) {
  .p24-header .p24-header__descriptor { display: none; }
}
@media (max-width: 820px) {
  .p24-header .p24-header__logo-img { width: 142px; }
}
@media (max-width: 420px) {
  .p24-header .p24-header__logo-img { width: 128px; }
}

/* ─── Отсрочка закрытия мега-меню «Услуги» (десктоп) ───
 * Между строкой меню и панелью мёртвая зона ~23px: на страницах без меню-JS
 * (чистый CSS-hover) панель гаснет мгновенно, не давая довести курсор.
 * Класс ставит p24.js на mouseleave и держит панель видимой 650мс. */
.p24-header__mega.p24-mega-grace {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translate(-50%, 0) !important;
}

/* ─── Модалка заявки (p24.js, .p24-lmodal) — открывается globe-ссылками ─── */
.p24-lmodal {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(10, 12, 20, .62);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
.p24-lmodal[hidden] { display: none; }
.p24-lmodal__panel {
  position: relative; width: min(560px, 100%);
  max-height: calc(100vh - 36px); overflow-y: auto;
  background: #fff; border-radius: 16px; padding: 28px 26px 24px;
  box-shadow: 0 26px 58px rgba(11, 31, 77, .3);
}
.p24-lmodal__close {
  position: absolute; top: 12px; right: 14px;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: #f1f3f7; color: #293775; font-size: 22px; line-height: 1;
  cursor: pointer; transition: background .15s ease;
}
.p24-lmodal__close:hover { background: #e4e9f2; }
.p24-lmodal__panel h3 { margin: 0 0 6px; font-size: 24px; color: #050505; }
.p24-lmodal__note { margin: 0 0 16px; font-size: 14px; color: #515967; }

/* ─── Модалка заявки v2: фото эксперта слева (как в оригинале) ─── */
.p24-lmodal__panel {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  width: min(880px, 100%); padding: 0; overflow: hidden;
}; padding: 0; overflow: hidden;
}
.p24-lmodal__close { z-index: 2; top: 14px; right: 16px; }
.p24-lmodal__photo { position: relative; min-height: 100%; }
.p24-lmodal__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 18%; }
.p24-lmodal__body { padding: 30px 30px 24px; }
.p24-lmodal__body h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.3; color: #0b1f4d; }
.p24-lmodal__note { margin: 0 0 16px; font-size: 14px; color: #515967; }
.p24-lmodal__msgr-label { margin: 16px 0 8px; font-size: 13px; color: #515967; text-align: center; }
.p24-lmodal__msgr { display: flex; justify-content: center; gap: 10px; }
.p24-lmodal__msgr a { display: inline-flex; transition: transform .15s ease; }
.p24-lmodal__msgr a:hover { transform: scale(1.08); }
.p24-lmodal__msgr img { width: 40px; height: 40px; border-radius: 50%; }
@media (max-width: 719px) {
  .p24-lmodal__panel { grid-template-columns: 1fr; width: min(480px, 100%); padding: 0; }
  .p24-lmodal__photo { display: none; }
  .p24-lmodal__body { padding: 24px 18px 18px; }
  .p24-lmodal__body h3 { font-size: 19px; }
}

/* ─── Модалка заявки: поля в одну колонку, без склейки ───
 * Сетке 1fr 1fr не хватает места в узкой панели — инпуты не сжимались
 * (min-width:auto) и вылезали за край, склеиваясь друг с другом. */
.p24-lmodal .p24-kform__grid { grid-template-columns: 1fr; gap: 12px; }
.p24-lmodal .p24-kform__field input,
.p24-lmodal .p24-kform__field textarea {
  min-width: 0; width: 100%; height: 46px; padding: 11px 14px; border-radius: 10px;
}
.p24-lmodal .p24-kform__field textarea { height: auto; min-height: 64px; resize: vertical; }
.p24-lmodal .p24-kform__field label { margin-bottom: 2px; }

/* ─── Модалка заявки: финальная доводка (владелец: «исправь все косяки») ─── */
.p24-lmodal { padding: 16px; }
.p24-lmodal__panel {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  width: min(940px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0; border-radius: 18px; overflow-y: auto; overflow-x: hidden;
}
.p24-lmodal__close {
  width: 40px; height: 40px; top: 14px; right: 16px; font-size: 24px;
  background: rgba(241, 243, 247, .92);
}
.p24-lmodal__photo img { object-position: 50% 22%; }
.p24-lmodal__body { padding: 34px 32px 26px; }
.p24-lmodal__body h3 { font-size: 24px; line-height: 1.24; margin: 0 0 10px; }
.p24-lmodal__note { font-size: 14.5px; margin: 0 0 20px; }
.p24-lmodal .p24-kform__field input,
.p24-lmodal .p24-kform__field textarea { height: 48px; padding: 12px 14px; font-size: 15px; border-radius: 10px; }
.p24-lmodal .p24-kform__field textarea { height: auto; }
.p24-lmodal .p24-kform__consent { margin: 16px 0 20px; align-items: center; }
.p24-lmodal .p24-kform__consent input { width: 18px; height: 18px; margin-top: 0; }
.p24-lmodal .p24-kform__submit { height: 52px; font-size: 15px; }
.p24-lmodal__msgr img { width: 44px; height: 44px; }
@media (max-width: 719px) {
  .p24-lmodal__panel { width: calc(100vw - 24px); grid-template-columns: 1fr; }
  .p24-lmodal__body { padding: 24px 18px 18px; }
  .p24-lmodal__body h3 { font-size: 19px; }
}

/* ─── Формы: border-box для полей (иначе width:100% + padding вылезает
 * за контейнер на правый отступ — видно в модалке на скриншоте владельца) ─── */
.p24-kform__field input,
.p24-kform__field textarea,
.p24-kform__submit,
.p24-lmodal input,
.p24-lmodal textarea,
.p24-lmodal button { box-sizing: border-box; }

/* ─── Окно чек-листа после отправки формы гайда (/10-oshibok/, p24-checklist) ─── */
.p24-checklist {
  position: fixed; inset: 0; z-index: 9200;
  background: rgba(10, 12, 20, .62);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.p24-checklist[hidden] { display: none; }
.p24-checklist__panel {
  position: relative; width: min(1100px, 100%);
  max-height: calc(100vh - 32px); overflow-y: auto;
  background: linear-gradient(115deg, #221066 0%, #4527b8 55%, #6a3ee0 100%);
  border-radius: 18px;
  box-shadow: 0 26px 58px rgba(11, 31, 77, .4);
}
.p24-checklist__close {
  position: absolute; top: 14px; right: 16px; z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 24px; line-height: 1;
  cursor: pointer; transition: background .15s ease;
}
.p24-checklist__close:hover { background: rgba(255, 255, 255, .3); }
.p24-checklist__grid {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 12px; align-items: center; padding: 28px 34px;
}
.p24-checklist__photo img { display: block; width: 100%; height: auto; }
.p24-checklist__label {
  margin: 0 0 8px; color: #f7830a; font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.p24-checklist__body h3 {
  margin: 0 0 12px; color: #fff; font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 800; line-height: 1.18;
}
.p24-checklist__text { margin: 0 0 14px; color: rgba(255, 255, 255, .92); font-size: 16px; line-height: 1.45; }
.p24-checklist__accent { margin: 0 0 12px; color: #f7830a; font-size: clamp(18px, 2vw, 24px); font-weight: 800; }
.p24-checklist__sub { margin: 0 0 10px; color: #fff; font-weight: 700; }
.p24-checklist__list { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 8px; }
.p24-checklist__list li {
  position: relative; padding-left: 30px;
  color: rgba(255, 255, 255, .92); font-size: 14.5px; line-height: 1.4;
}
.p24-checklist__list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #f7830a; color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.p24-checklist__btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 52px; border-radius: 10px;
  background: #4d6ea6; color: #fff !important; text-decoration: none !important;
  font-weight: 700; font-size: 15px;
  transition: filter .15s ease, transform .15s ease;
}
.p24-checklist__btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.p24-checklist__note { margin: 10px 0 0; color: rgba(255, 255, 255, .6); font-size: 12.5px; }
@media (max-width: 860px) {
  .p24-checklist__grid { grid-template-columns: 1fr; padding: 56px 20px 22px; }
  .p24-checklist__photo { max-width: 380px; margin: 0 auto; }
  .p24-checklist__close { top: 10px; right: 12px; }
}

/* ─── Cookie-баннер (RU-01) ─── */
.p24-cookie {
  position: fixed; left: 16px; right: 16px; bottom: 12px; z-index: 9100;
  max-width: 1240px; margin: 0 auto;
  background: #fff; border: 1px solid #e2e6ec; border-radius: 12px;
  box-shadow: 0 -8px 30px rgba(11, 31, 77, .18);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.p24-cookie[hidden] { display: none; }
.p24-cookie p { margin: 0; flex: 1 1 380px; font-size: 13.5px; line-height: 1.4; color: #293775; }
.p24-cookie a { color: #293775; }
.p24-cookie__btns { display: flex; gap: 8px; }
.p24-cookie__btn {
  height: 40px; padding: 0 18px; border-radius: 8px; border: 0; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600;
  transition: filter .15s ease;
}
.p24-cookie__btn:hover { filter: brightness(1.05); }
.p24-cookie__btn--accept { background: #293775; color: #fff; }
.p24-cookie__btn--decline { background: #f1f3f7; color: #293775; }
@media (max-width: 820px) {
  .p24-cookie { left: 10px; right: 10px; bottom: 74px; padding: 12px 14px; gap: 10px; } /* над липкой CTA-панелью */
  .p24-cookie__btn { flex: 1 1 auto; }
}

/* ─── Блок «Стоимость» на страницах услуг (RU-03) ─── */
.p24-prices { background: #f5f7fa; padding: 40px 24px; }
.p24-prices__inner { max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid #e2e6ec; border-radius: 14px; padding: 26px 28px; box-shadow: 0 10px 30px rgba(11, 31, 77, .06); }
.p24-prices__title { margin: 0 0 14px; font-size: 26px; color: #050505; }
.p24-prices__rows { display: grid; gap: 10px; }
.p24-prices__row { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #e2e6ec; }
.p24-prices__row:last-child { border-bottom: 0; }
.p24-prices__name { flex: 1 1 auto; min-width: 0; color: #293775; font-size: 15.5px; line-height: 1.35; }
.p24-prices__dots { flex: 0 1 100%; }
.p24-prices__price { white-space: nowrap; color: #050505; font-size: 17px; }
.p24-prices__note { margin: 14px 0 0; color: #646d82; font-size: 12.5px; line-height: 1.4; }
@media (max-width: 700px) {
  .p24-prices { padding: 28px 16px; }
  .p24-prices__inner { padding: 20px 16px; }
  .p24-prices__row { flex-direction: column; gap: 2px; }
  .p24-prices__dots { display: none; }
}
/* ─── Тарифные карточки на страницах услуг (v2, конец контента) ─── */
.p24-prices { background: #f5f7fa; padding: 56px 24px 64px; }
.p24-prices__inner { max-width: 1240px; margin: 0 auto; }
.p24-prices__head { text-align: center; margin-bottom: 28px; }
.p24-prices__eyebrow { margin: 0 0 8px; color: #646d82; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.p24-prices__title { margin: 0 0 10px; font-size: clamp(24px, 3vw, 34px); color: #050505; }
.p24-prices__intro { margin: 0; color: #515967; font-size: 15.5px; }
.p24-prices__cards { display: grid; grid-template-columns: var(--p24-price-columns, repeat(auto-fit, minmax(230px, 1fr))); gap: 18px; }
.p24-prices__card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid #e2e6ec; border-radius: 14px; padding: 22px 22px 18px;
  box-shadow: 0 10px 30px rgba(11, 31, 77, .06);
}
.p24-prices__card--free {
  background: #eef3f9; border: 2px solid #8aa8c8;
}
.p24-prices__card-head { min-height: 52px; margin-bottom: 12px; border-bottom: 1px solid #e2e6ec; padding-bottom: 12px; }
.p24-prices__tag { margin: 0 0 6px; color: #646d82; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.p24-prices__card--free .p24-prices__tag { color: #8aa8c8; }
.p24-prices__name { margin: 0; color: #0b1f4d; font-size: 19px; font-weight: 800; line-height: 1.25; }
.p24-prices__description { margin: 6px 0 0; color: #515967; font-size: 13.5px; line-height: 1.4; }
.p24-prices__price { margin: 4px 0 14px; color: #050505; font-size: 26px; font-weight: 800; white-space: nowrap; }
.p24-prices__price span { font-size: 18px; font-weight: 700; }
.p24-prices__cta {
  display: flex; align-items: center; justify-content: center; height: 48px;
  border-radius: 10px; text-decoration: none !important; font-weight: 700; font-size: 15px;
  transition: filter .15s ease, transform .15s ease;
}
.p24-prices__cta:hover { filter: brightness(1.06); transform: translateY(-1px); }
.p24-prices__card--free .p24-prices__cta { background: #3e6d9c; color: #fff !important; }
.p24-prices__card:not(.p24-prices__card--free) .p24-prices__cta { background: #22314f; color: #fff !important; }
.p24-prices__features { flex: 1 1 auto; margin: 14px 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; align-content: start; }
.p24-prices__features li {
  position: relative; padding-left: 24px; color: #293775; font-size: 14px; line-height: 1.4;
}
.p24-prices__features li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%;
  background: #f7830a;
}
.p24-prices__features li::after {
  content: ""; position: absolute; left: 3px; top: 6px; width: 8px; height: 5px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}
.p24-prices__card-note { margin: 12px 0 0; color: #8a93a5; font-size: 12px; }
.p24-prices__note { margin: 16px 0 0; color: #8a93a5; font-size: 12.5px; }
@media (max-width: 1100px) {
  .p24-prices__cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
@media (max-width: 700px) {
  .p24-prices { padding: 36px 16px 44px; }
  .p24-prices__cards { grid-template-columns: 1fr; }
  .p24-prices__name { font-size: 17px; }
  .p24-prices__price { font-size: 23px; }
}

/* ─── Мини-квиз (p24.js, .p24-qmodal) — попап по ссылкам #raschet, как на оригинале:
 * шапка заявки, шаги с радио-карточками и прогрессом «Шаг N из 3», кнопка «Далее». ─── */
.p24-qmodal .p24-lmodal__panel {
  display: block; width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px); overflow-y: auto;
}
.p24-qmodal .p24-lmodal__body { padding: 30px 28px 24px; }
.p24-qmodal .p24-lmodal__body h3 { font-size: 22px; line-height: 1.28; margin: 0 0 8px; }
.p24-quiz__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 4px; }
.p24-quiz__step-label { font-size: 13px; font-weight: 600; color: #515967; white-space: nowrap; }
.p24-quiz__progress { flex: 1 1 auto; height: 6px; border-radius: 999px; background: #eef1f6; overflow: hidden; }
.p24-quiz__progress span { display: block; height: 100%; width: 0; border-radius: 999px; background: #ff5c00; transition: width .25s ease; }
.p24-quiz__q { margin: 14px 0 10px; font-size: 16px; font-weight: 700; color: #050505; }
.p24-quiz__opts { display: grid; gap: 8px; }
.p24-quiz__opt {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border: 1.5px solid #dfe3ea; border-radius: 10px;
  font-size: 14.5px; color: #293775; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.p24-quiz__opt:hover { border-color: #b9c2d0; }
.p24-quiz__opt input { width: 18px; height: 18px; margin: 0; accent-color: #ff5c00; flex: 0 0 18px; }
.p24-quiz__opt.is-checked { border-color: #ff5c00; background: rgba(255, 92, 0, .06); }
.p24-quiz__step[hidden] { display: none; }
.p24-quiz__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.p24-quiz__back {
  border: 0; background: none; padding: 6px 2px; font-size: 14px; color: #515967;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.p24-quiz__back[hidden] { display: none; }
.p24-quiz__next {
  min-width: 170px; height: 50px; margin-left: auto;
  border: 0; border-radius: 10px; background: #ff5c00; color: #fff;
  font-size: 15px; font-weight: 700; cursor: pointer; transition: filter .15s ease;
}
.p24-quiz__next:hover { filter: brightness(1.05); }
.p24-quiz__next:disabled { opacity: .45; cursor: default; }
.p24-qmodal .p24-kform__grid { grid-template-columns: 1fr; gap: 10px; margin-top: 4px; }
.p24-qmodal .p24-kform__field label { font-size: 13px; }
.p24-qmodal .p24-kform__field input { min-width: 0; width: 100%; height: 46px; padding: 11px 14px; border-radius: 10px; }
.p24-qmodal .p24-kform__consent { margin: 14px 0 16px; }
.p24-qmodal .p24-kform__submit { width: 100%; height: 52px; }
.p24-qmodal .p24-lmodal__msgr-label { margin-top: 14px; }
@media (max-width: 560px) {
  .p24-qmodal .p24-lmodal__body { padding: 22px 16px 18px; }
  .p24-qmodal .p24-lmodal__body h3 { font-size: 19px; }
  .p24-quiz__next { min-width: 140px; }
}

/* выравнивание цен: шапки карточек одной высоты на десктопе (главная, 5 карточек) */
@media (min-width: 701px) {
  .p24-prices__card-head { min-height: 138px; }
}
