/* Форма заявки франшизы (js/lead-form.js): окно, встроенная форма, карточки «город или вся область», нижняя панель на телефоне.
   Все правила начинаются с lf-, чтобы не задеть стили лендинга. */

.lf-form { container-type: inline-size; color: #14233D; font: 16px/1.4 "LetoSans", Arial, sans-serif; text-align: left; }
.lf-form *, .lf-form *::before, .lf-form *::after { box-sizing: border-box; }
.lf-title { margin: 0 40px 6px 0; color: #093573; font: 28px/1.15 "LetoSans-Bold", Arial, sans-serif; }
.lf-lead { margin: 0 0 18px; color: #4a5872; font-size: 16px; line-height: 1.45; }
.lf-field { position: relative; margin: 0 0 14px; }
.lf-field label, .lf-label { display: block; margin: 0 0 6px; color: #33435e; font: 14px/1.2 "LetoSans-Bold", Arial, sans-serif; }
.lf-field label small { color: #8a94a6; font-family: "LetoSans", Arial, sans-serif; }
.lf-form input[type=text], .lf-form input[type=tel], .lf-form textarea {
    display: block; width: 100%; margin: 0; padding: 12px 14px 11px; border: 1.5px solid #CBD6E6; border-radius: 12px; background: #fff;
    color: #14233D; font: 17px/1.3 "LetoSans", Arial, sans-serif; outline: none; transition: border-color .15s, box-shadow .15s; }
.lf-form textarea { resize: vertical; min-height: 76px; }
.lf-form input:focus, .lf-form textarea:focus { border-color: #2f73c0; box-shadow: 0 0 0 3px rgba(47,115,192,.18); }
.lf-form [aria-invalid="true"] { border-color: #cd3135 !important; }
.lf-err { display: block; color: #cd3135; font-size: 13px; line-height: 1.3; }
.lf-err:empty { display: none; }
.lf-field .lf-err { margin-top: 4px; }
.lf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@container (max-width: 420px) { .lf-row { grid-template-columns: 1fr; gap: 0; } }

/* подсказки городов */
.lf-sug { position: absolute; left: 0; right: 0; top: calc(100% - 2px); z-index: 5; max-height: 280px; margin: 0; padding: 6px; overflow-y: auto; list-style: none;
    border-radius: 12px; background: #fff; box-shadow: 0 14px 40px rgba(9,53,115,.22); }
.lf-sug[hidden] { display: none; }
.lf-sug li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.lf-sug li:hover, .lf-sug li[aria-selected="true"] { background: #E0EDFD; }
.lf-sug small { color: #8a94a6; font-size: 13px; }
.lf-sug em { flex-shrink: 0; color: #157a4b; font: normal 13px/1.2 "LetoSans-Bold", Arial, sans-serif; }

/* выбор: кнопки-чипы */
.lf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lf-chips button { margin: 0; padding: 9px 14px 8px; border: 1.5px solid #CBD6E6; border-radius: 30px; background: #fff; color: #33435e;
    font: 15px/1.2 "LetoSans-Bold", Arial, sans-serif; cursor: pointer; transition: border-color .15s, background .15s; }
.lf-chips button:hover { border-color: #8fa6c6; }
.lf-chips button[aria-checked="true"] { border-color: #093573; background: #093573; color: #fff; }
.lf-chips button small { color: #6b7891; font: 13px/1.2 "LetoSans", Arial, sans-serif; }
.lf-chips button[aria-checked="true"] small { color: #c5d8f3; }
.lf-chips--formats { margin-top: 10px; }

/* карточки «только город» и «вся область» */
.lf-offer-box { margin: 0 0 16px; }
.lf-offer-box:empty { display: none; }
.lf-offers { display: grid; grid-template-columns: 1fr; gap: 12px; }
.lf-offers.has-region { grid-template-columns: 1fr 1fr; }
@container (max-width: 540px) { .lf-offers.has-region { grid-template-columns: 1fr; } .lf-offer.is-best { order: -1; } }
.lf-offer { position: relative; display: flex; flex-direction: column; align-items: flex-start; width: 100%; margin: 0; padding: 16px 16px 14px; border: 1.5px solid #CBD6E6; border-radius: 16px;
    background: #fff; color: #14233D; text-align: left; font: 14px/1.35 "LetoSans", Arial, sans-serif; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.lf-offer:hover { border-color: #8fa6c6; }
.lf-offer.is-best { border: 2px solid #2f73c0; background: linear-gradient(180deg, #F1F7FF, #fff 60%); }
.lf-offer::before { content: ""; position: absolute; right: 14px; top: 14px; width: 22px; height: 22px; border: 2px solid #CBD6E6; border-radius: 50%; background: #fff; }
.lf-offer[aria-checked="true"] { border-color: #093573; box-shadow: 0 0 0 3px rgba(9,53,115,.18); }
.lf-offer[aria-checked="true"]::before { border-color: #093573; background: #093573 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 7.5 2.6 2.6L11 4.5'/%3E%3C/svg%3E") 50% 50% no-repeat; }
.lf-offer__tag { position: absolute; left: 14px; top: -11px; padding: 4px 10px 3px; border-radius: 20px; background: #F2B441; color: #14233D;
    font: 12px/1.2 "LetoSans-Bold", Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.lf-offer__name { padding-right: 34px; color: #33435e; font: 15px/1.25 "LetoSans-Bold", Arial, sans-serif; }
.lf-offer.is-best .lf-offer__name { color: #093573; }
.lf-offer__price { margin-top: 6px; color: #093573; font: 26px/1.1 "LetoSans-Bold", Arial, sans-serif; white-space: nowrap; }
.lf-offer__price small { font-size: 14px; }
.lf-offer__month { margin-top: 2px; color: #6b7891; font-size: 13px; }
.lf-offer__list { display: block; margin-top: 10px; }
.lf-offer__list > span { position: relative; display: block; padding: 3px 0 3px 20px; }
.lf-offer__list > span::before { content: ""; position: absolute; left: 2px; top: 9px; width: 10px; height: 6px; border: solid #1f9d63; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.lf-offer__list > span.is-minus { color: #8a94a6; }
.lf-offer__list > span.is-minus::before { top: 11px; width: 9px; height: 0; border-width: 0 0 2px; border-color: #b0b9c8; transform: none; }
.lf-offer__list b { font-family: "LetoSans-Bold", Arial, sans-serif; font-weight: normal; }
.lf-offer__save { display: block; width: 100%; margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: #FFF4DC; color: #6a4a00; font: 13px/1.35 "LetoSans-Bold", Arial, sans-serif; }
.lf-note { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: #EEF2F7; color: #33435e; font-size: 14px; line-height: 1.4; }
.lf-near { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.lf-near button { margin: 0; padding: 8px 12px 7px; border: 1.5px solid #9fc2ef; border-radius: 30px; background: #fff; color: #093573; font: 15px/1.2 "LetoSans-Bold", Arial, sans-serif; cursor: pointer; }
.lf-near button:hover { background: #E0EDFD; }
.lf-near small { color: #157a4b; font: 13px/1.2 "LetoSans", Arial, sans-serif; }

/* вопрос, согласие, кнопка */
.lf-more { display: inline-block; margin: 0 0 12px; padding: 0; border: 0; background: none; color: #2f73c0; font: 15px/1.3 "LetoSans-Bold", Arial, sans-serif; cursor: pointer; }
.lf-more[hidden], .lf-field[hidden] { display: none; }
.lf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lf-consent { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 0; color: #33435e; font-size: 14px; line-height: 1.35; cursor: pointer; }
.lf-consent input { flex-shrink: 0; width: 20px; height: 20px; margin: 0; accent-color: #093573; cursor: pointer; }
.lf-consent a { color: #2f73c0; text-decoration: underline; }
.lf-consent + .lf-err { margin: 4px 0 0 30px; }
.lf-submit { display: block; width: 100%; margin: 16px 0 0; padding: 16px 20px 14px; border: 0; border-radius: 50px; background: #BC3F3C; color: #fff;
    font: 16px/1.2 "LetoSans-Bold", Arial, sans-serif; letter-spacing: .16px; text-transform: uppercase; cursor: pointer; transition: background .15s; }
.lf-submit:hover { background: #d30037; }
.lf-submit:disabled { background: #c98a88; cursor: progress; }
.lf-fail { margin: 10px 0 0; color: #cd3135; font-size: 14px; }
.lf-fail a, .lf-foot a, .lf-done-text a { color: inherit; font-family: "LetoSans-Bold", Arial, sans-serif; white-space: nowrap; }
.lf-foot { margin: 10px 0 0; color: #6b7891; font-size: 13px; text-align: center; }

/* после отправки */
.lf-done { padding: 8px 0; outline: none; }
.lf-done-title { margin: 0 40px 8px 0; color: #093573; font: 26px/1.2 "LetoSans-Bold", Arial, sans-serif; }
.lf-done-title::before { content: ""; display: inline-block; width: 26px; height: 26px; margin: 0 10px -4px 0; border-radius: 50%;
    background: #1f9d63 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 13.5 3.5 3.5L18.5 9.5'/%3E%3C/svg%3E") 50% 50% no-repeat; }
.lf-done-text { margin: 0 0 10px; color: #33435e; font-size: 16px; line-height: 1.45; }
.lf-pdf { display: flex; flex-direction: column; margin: 6px 0 12px; padding: 16px 20px 14px 64px; border-radius: 16px; background: #093573 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' fill='none' stroke='%23F2B441' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 3H8a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M18 3v6h6M10 16h10M10 21h7'/%3E%3C/svg%3E") 22px 50% no-repeat;
    color: #fff !important; font: 18px/1.25 "LetoSans-Bold", Arial, sans-serif; text-decoration: none; transition: background-color .15s; }
.lf-pdf:hover { background-color: #0d4590; }
.lf-pdf small { margin-top: 2px; color: #9fc2ef; font: 14px/1.2 "LetoSans", Arial, sans-serif; }

/* окно */
.lf-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.lf-modal[hidden] { display: none; }
.lf-backdrop { position: absolute; inset: 0; background: rgba(9,22,45,.62); }
.lf-dialog { position: relative; width: 100%; max-width: 680px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
    padding: 30px 32px 24px; border-radius: 22px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.lf-close { position: absolute; right: 14px; top: 12px; z-index: 2; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #EEF2F7; color: #33435e; font: 26px/40px Arial, sans-serif; cursor: pointer; }
.lf-close:hover { background: #E0EDFD; }
html.lf-lock, html.lf-lock body { overflow: hidden; }
@media (max-width: 575px) {
    .lf-modal { align-items: flex-end; padding: 0; }
    .lf-dialog { max-height: 94vh; max-height: 94dvh; padding: 22px 16px 18px; border-radius: 20px 20px 0 0; }
    .lf-title { font-size: 23px; }
    .lf-lead { font-size: 15px; }
    .lf-offers.has-region { grid-template-columns: 1fr; }
    .lf-offer.is-best { order: -1; }
}

/* цены города и области в 3D-блоке и карточке карты */
.lf-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 0; }
.lf-strip__item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin: 0; padding: 8px 12px 7px; border: 1.5px solid #CBD6E6; border-radius: 12px; background: #fff;
    color: #33435e; text-align: left; font: 13px/1.2 "LetoSans-Bold", Arial, sans-serif; cursor: pointer; transition: border-color .15s, background .15s; }
.lf-strip__item b { color: #093573; font: 18px/1.15 "LetoSans-Bold", Arial, sans-serif; font-weight: normal; white-space: nowrap; }
.g3-panel .lf-strip__item span { white-space: nowrap; }
.lf-strip__item i { margin-left: 4px; padding: 1px 5px 0; border-radius: 10px; background: #F2B441; color: #14233D; font: normal 10px/1.3 "LetoSans-Bold", Arial, sans-serif; text-transform: uppercase; vertical-align: 1px; }
.lf-strip__item:hover { border-color: #2f73c0; }
.lf-strip__item.is-best { border-color: #2f73c0; background: #F1F7FF; }
.g3-panel .lf-strip { margin: -4px 0 14px; }
.g3-panel .lf-strip__item { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #c5d3ea; }
.g3-panel .lf-strip__item b { color: #fff; }
.g3-panel .lf-strip__item.is-best { border-color: #F2B441; background: rgba(242,180,65,.12); }
.g3-panel .lf-strip__item:hover { border-color: #9fc2ef; }

/* нижняя панель на телефоне */
.lf-bar { display: none; }
@media (max-width: 767px) {
    .lf-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000; display: flex; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96);
        box-shadow: 0 -6px 24px rgba(9,53,115,.16); transform: translateY(110%); transition: transform .25s; }
    .lf-bar.is-on { transform: none; }
    .lf-bar button { flex: 1 1 auto; margin: 0; padding: 14px 16px 12px; border: 0; border-radius: 50px; background: #BC3F3C; color: #fff; font: 15px/1.2 "LetoSans-Bold", Arial, sans-serif; letter-spacing: .16px; text-transform: uppercase; }
    .lf-bar a { flex: 0 0 48px; border-radius: 50%; background: #093573 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23fff'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E") 50% 50% no-repeat; }
    html.lf-lock .lf-bar { display: none; }
}

/* встроенная форма на тёмном фоне блоков и вторая ссылка первого экрана */
.lf-inline { max-width: 600px; padding: 22px 22px 18px; border-radius: 20px; background: #fff; box-shadow: 0 10px 40px rgba(9,22,45,.18); }
/* «Поговорите с основателем»: форма внутри рамки блока, ниже фото в треугольнике */
.dir-content__form .lf-inline { max-width: 640px; margin: 64px auto 0; padding: 0 30px 10px; border-radius: 0; background: none; box-shadow: none; }
@media (max-width: 767px) { .dir-content__form .lf-inline { margin-top: 10px; padding: 0 16px 10px; } }
/* блок цен на странице города */
.lf-offer-page .lf-offer__go { margin-top: 12px; color: #2f73c0; font: 14px/1.2 "LetoSans-Bold", Arial, sans-serif; }
.lf-offer-page .lf-offer::before { display: none; }
.lf-offer-page .lf-offer__name { padding-right: 0; }
.lf-offer-page .lf-offer:hover { border-color: #2f73c0; box-shadow: 0 8px 24px rgba(9,53,115,.12); }
.lf-hero-pdf { display: block; margin: 16px 0 0; padding: 0; border: 0; background: none; color: inherit; font: 16px/1.3 "LetoSans-Bold", Arial, sans-serif;
    text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.lf-hero-pdf:hover { text-decoration-thickness: 2px; }
