/* Лендинги ЕЦИ — общий каркас: шрифт, сетка, кнопки, шапка, форма, окно заявки, подвал.
   Цвета каждого лендинга задаются переменными в его файле (assets/landings/<псевдоним>/<псевдоним>.css). */

@font-face { font-family: 'Muller'; src: url('/assets/templates/2018/fonts/muller/MullerRegular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Muller'; src: url('/assets/templates/2018/fonts/muller/MullerMedium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Muller'; src: url('/assets/templates/2018/fonts/muller/MullerBold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Muller'; src: url('/assets/templates/2018/fonts/muller/MullerExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }

.ld {
  --ink: #110e6e;          /* заголовки */
  --text: #2c3a86;         /* основной текст */
  --muted: #5d68a3;        /* подписи */
  --line: #dfe6f7;         /* рамки */
  --bg: #ffffff;
  --bg-soft: #eef5fe;      /* фон разделов */
  --accent: #f4334f;       /* выделение в заголовках */
  --primary: #f4334f;      /* главная кнопка */
  --primary-2: #f4334f;    /* второй цвет главной кнопки (градиент) */
  --blue: #1170f5;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(24, 38, 120, .08);
  --header-h: 78px;
  --wrap-max: 1320px;      /* одна ширина для шапки и разделов: по краям макета и чтобы шапка вмещала все пункты */
  margin: 0;
  overflow-x: clip;        /* clip, а не hidden: не ломает липкую шапку */
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 'Muller', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* сбросы — через :where(), чтобы любой класс компонента был сильнее их */
:where(.ld) *, :where(.ld) *::before, :where(.ld) *::after { box-sizing: border-box; }
:where(.ld) [hidden] { display: none !important; }
:where(.ld) img { display: block; max-width: 100%; height: auto; }
:where(.ld) a { color: inherit; }
:where(.ld) :is(h1, h2, h3, h4, p, ul, ol) { margin: 0; }
:where(.ld) :is(ul, ol) { padding: 0; list-style: none; }
:where(.ld) button { font: inherit; cursor: pointer; }
html { scroll-behavior: smooth; }
.ld section[id], .ld footer[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.ld-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ld-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ld-ico { width: 24px; height: 24px; flex: none; }
.ld-wrap { width: min(100% - 40px, var(--wrap-max)); margin-inline: auto; }
.ld-section { padding: 72px 0; }

/* ---------- заголовки ---------- */
.ld-h2 { color: var(--ink); font-weight: 800; font-size: clamp(28px, 3.3vw, 42px); line-height: 1.1; letter-spacing: -.01em; }
.ld-h2--sm { font-size: clamp(24px, 2.4vw, 32px); }
.ld-sub { margin-top: 10px; color: var(--muted); font-size: 17px; line-height: 1.45; }
.ld-accent { color: var(--accent); }
.ld-grad-text { background: linear-gradient(90deg, var(--grad-a, #ef4785), var(--grad-b, #8e48db)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- кнопки ---------- */
.ld-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px; border: 1.5px solid transparent; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; text-align: center; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, background-color .15s ease;
}
.ld-btn .ld-ico { width: 20px; height: 20px; }
.ld-btn:hover { transform: translateY(-1px); }
.ld-btn:active { transform: none; }
.ld-btn:focus-visible, .ld a:focus-visible, .ld button:focus-visible { outline: 3px solid rgba(17, 112, 245, .45); outline-offset: 2px; }
.ld-done [tabindex="-1"]:focus { outline: none; }   /* заголовок итога получает фокус для экранных дикторов, рамка ему не нужна */
.ld-btn--primary { color: #fff; background: linear-gradient(90deg, var(--primary), var(--primary-2)); box-shadow: 0 8px 20px -8px var(--primary); }
.ld-btn--primary:hover { filter: brightness(1.06); }
.ld-btn--outline { color: var(--blue); background: #fff; border-color: currentColor; }
.ld-btn--outline:hover { background: #f4f8ff; }
.ld-btn--light { color: var(--ink); background: #fff; }
.ld-btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; border-radius: 9px; }
.ld-btn--lg { min-height: 58px; padding: 0 32px; }
.ld-btn--block { width: 100%; }
.ld-btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- логотип ---------- */
/* Логотип от заказчика (02.11.2026): белый на градиенте, под знаком — подпись сайта (eci-spb.ru или Переуступки.рф).
   Собран вёрсткой, а не картинкой: присланный JPG в шапке мылится. Исходники — «От заказчика 02.11.2026/» */
.ld-logo-tile { display: inline-flex; flex: none; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border-radius: 12px; background: linear-gradient(90deg, #ee5a5f 0%, #b46ec2 52%, #5a9bf6 100%); color: #fff; text-decoration: none; line-height: 1; }
.ld-logo-tile__mark { display: grid; justify-items: center; }
/* у присланного логотипа знак жирнее нашего векторного — утолщаем обводкой; ширина знака равна ширине длинной подписи, как в оригинале */
.ld-logo-tile__mark svg { display: block; width: 58px; height: 50px; fill: currentColor; stroke: currentColor; stroke-width: 7px; stroke-linejoin: round; overflow: visible; }
.ld-logo-tile__cap { margin-top: 1px; font-weight: 700; font-size: 7.6px; line-height: 1.1; white-space: nowrap; }
.ld-logo-tile__name { font-weight: 800; font-size: 13px; line-height: 1.12; }

/* ---------- шапка ---------- */
.ld-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); transition: box-shadow .2s ease; }
.ld-header.is-scrolled { box-shadow: 0 6px 24px rgba(20, 30, 100, .08); }
.ld-header__in { position: relative; display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.ld-header .ld-btn--sm { padding: 0 14px; }
.ld-nav { display: flex; gap: 14px; margin-right: auto; }
.ld-nav a { color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; opacity: .85; }
.ld-nav a:hover { opacity: 1; color: var(--blue); }
.ld-nav .ld-nav__more { display: none; }   /* пункты, которые на компьютере стоят кнопками в шапке */
/* Компактная шапка: меню уходит под кнопку. Класс is-compact стоит в разметке (телефон видит шапку сразу компактной),
   landing.js снимает его, если все пункты помещаются, и возвращает, когда перестают помещаться */
.ld-header.is-compact .ld-nav { display: none; position: absolute; top: 100%; left: -20px; right: -20px; flex-direction: column; gap: 0; padding: 8px 20px 16px; background: #fff; box-shadow: 0 18px 30px rgba(20, 30, 100, .1); }
.ld-header.is-compact .ld-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.ld-header.is-compact .ld-nav .ld-nav__more { display: block; color: var(--accent); font-weight: 700; }
.ld-nav .ld-nav__menu { display: none; }   /* пункт только для выпадающего меню: в полной шапке на него нет места */
.ld-header.is-compact .ld-nav .ld-nav__menu { display: block; }
.ld-menu-open .ld-header.is-compact .ld-nav { display: flex; }
.ld-header.is-compact .ld-burger { display: inline-flex; }
.ld-header.is-compact .ld-header__extra { display: none; }
.ld-header.is-compact .ld-header__phone { margin-left: auto; }
/* На ноутбуке разделы уходят под кнопку меню, а кнопки заявок остаются на виду: места им хватает */
@media (min-width: 1040px) {
  .ld-header.is-compact .ld-header__extra { display: flex; margin-left: auto; }
  .ld-header.is-compact .ld-header__extra ~ .ld-header__phone { margin-left: 0; }
  .ld-header.is-compact .ld-nav .ld-nav__more { display: none; }
}
.ld-header__phone { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.ld-header__phone .ld-ico { color: var(--blue); }
.ld-header__phone b { display: block; font-size: 16px; font-weight: 800; }
.ld-header__phone small { display: block; color: var(--muted); font-size: 12px; }
.ld-burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }

/* ---------- форма ---------- */
.ld-form__fields { display: grid; gap: 12px; }
.ld-field { position: relative; display: block; }
.ld-field__ico { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: #8c96c4; pointer-events: none; }
.ld-field input {
  width: 100%; height: 54px; padding: 0 16px 0 48px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); font: 500 16px/1 'Muller', Arial, sans-serif; outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.ld-field input::placeholder { color: #8c96c4; }
.ld-field input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(17, 112, 245, .12); }
.ld-field.is-bad input { border-color: #e5394d; box-shadow: 0 0 0 4px rgba(229, 57, 77, .1); }
.ld-check { position: relative; display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.4; color: var(--muted); cursor: pointer; }
.ld-check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.ld-check__box { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border: 1.5px solid #b9c2e6; border-radius: 6px; background: #fff; color: #fff; transition: background-color .15s ease, border-color .15s ease; }
.ld-check__box .ld-ico { width: 15px; height: 15px; opacity: 0; stroke-width: 3; }
.ld-check input:checked + .ld-check__box { background: var(--blue); border-color: var(--blue); }
.ld-check input:checked + .ld-check__box .ld-ico { opacity: 1; }
.ld-check input:focus-visible + .ld-check__box { outline: 3px solid rgba(17, 112, 245, .45); outline-offset: 2px; }
.ld-check.is-bad .ld-check__box { border-color: #e5394d; }
.ld-check a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ld-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ld-form__msg { padding: 10px 14px; border-radius: 9px; background: #fff0f2; color: #c0192f; font-size: 14px; line-height: 1.4; }
.ld-form__policy { margin-top: 12px; font-size: 13px; text-align: center; color: var(--muted); }
.ld-form__policy a { color: inherit; }
.ld-form.is-sending { opacity: .7; }
.ld-form .ld-btn--block { margin-top: 16px; }
.ld-done { text-align: center; }
.ld-done__ico { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 14px; border-radius: 50%; background: #e7f8ee; color: #1f9d55; }
.ld-done__ico .ld-ico { width: 32px; height: 32px; stroke-width: 2.4; }
.ld-done p { margin-top: 10px; color: var(--muted); }
.ld-done p a { color: var(--blue); font-weight: 700; white-space: nowrap; }
.ld-done .ld-btn { margin-top: 20px; }

/* ---------- окно заявки ---------- */
.ld-dialog { width: min(460px, 100% - 32px); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 22px; background: #fff; color: var(--text); box-shadow: 0 30px 80px rgba(12, 16, 80, .3); overflow: auto; }
.ld-dialog::backdrop { background: rgba(12, 12, 70, .5); backdrop-filter: blur(3px); }
.ld-dialog[open] { animation: ld-pop .18s ease-out; }
@keyframes ld-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.ld-dialog__box { position: relative; padding: 36px 32px 28px; }
.ld-dialog__close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f1f4fc; color: var(--ink); }
.ld-dialog__title { padding-right: 32px; color: var(--ink); font-weight: 800; font-size: 26px; line-height: 1.15; }
.ld-done .ld-dialog__title { padding-right: 0; }
.ld-dialog__sub { margin: 8px 0 20px; color: var(--muted); font-size: 15px; }
.ld-dialog-fallback { position: fixed; inset: 0; z-index: 100; margin: auto; height: fit-content; }

/* ---------- cookie ---------- */
.ld-cookie { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 16px; max-width: 600px; padding: 14px 16px 14px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 12px 40px rgba(12, 16, 80, .14); font-size: 13px; line-height: 1.45; color: var(--muted); }
.ld-cookie a { color: var(--ink); }

/* ---------- подвал ---------- */
.ld-footer { padding: 40px 0 28px; border-top: 1px solid var(--line); background: #fff; }
.ld-footer__in { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.ld-footer__nav { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-right: auto; }
.ld-footer__nav a { color: var(--ink); font-size: 15px; text-decoration: none; opacity: .8; }
.ld-footer__nav a:hover { opacity: 1; }
.ld-footer__contacts { display: grid; gap: 2px; color: var(--muted); font-size: 14px; }
.ld-footer__contacts a { color: var(--ink); text-decoration: none; }
.ld-footer__contacts b { font-size: 18px; font-weight: 800; }
.ld-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: #8a93bf; font-size: 12px; line-height: 1.5; }
.ld-footer__legal a { color: inherit; }

/* ---------- планшет и телефон ---------- */
@media (max-width: 860px) {
  .ld-header__in { gap: 12px; }
  .ld-logo-tile { gap: 7px; padding: 4px 10px 4px 8px; border-radius: 10px; }
  .ld-logo-tile__mark svg { width: 48px; height: 41px; stroke-width: 8px; }
  .ld-logo-tile__cap { font-size: 7px; }
  .ld-logo-tile__name { font-size: 11.5px; }
  .ld { --header-h: 64px; }
  .ld-section { padding: 48px 0; }
  .ld-sub { font-size: 16px; }
  .ld-header__phone small { display: none; }
  .ld-cookie { right: 16px; flex-direction: column; align-items: stretch; text-align: left; }
}
@media (max-width: 600px) {
  .ld-wrap { width: calc(100% - 32px); }
  .ld-header.is-compact .ld-nav { left: -16px; right: -16px; }
  .ld-header__phone span { display: none; }
  .ld-header__phone { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; }
  .ld-header__phone .ld-ico { width: 20px; height: 20px; }
  .ld-btn { white-space: normal; }
  .ld-btn--lg { width: 100%; }
  .ld-dialog__box { padding: 30px 20px 22px; }
  .ld-dialog__title { font-size: 22px; }
  .ld-footer__in { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ld *, .ld *::before, .ld *::after { transition: none !important; animation: none !important; }
}
