/* ev-gerasimov.ru — страницы «Ozon Доставка для Тильды»: /ozon-dostavka-tilda и /ozon-dostavka-tilda/<slug> (23.10.2026).
   Подключается ПОСЛЕ /_site/pages.css: оттуда цвета, шрифты, шапка, подвал, кнопки, поля формы, вопросы, баннер cookie,
   оглавление и блоки статей. Здесь — только блоки коммерческой страницы (префикс tl-), модальная форма заявки
   и спокойная плавающая кнопка на телефоне (синяя кнопка на белой полупрозрачной панели, без салатовых кнопок и фона).
   Сначала телефон: 320–480 px без горизонтальной прокрутки, отступы по бокам 16 px, кнопки от 48 px, поля 16 px. */

html.tl-lock, html.tl-lock body { overflow: hidden; }
button.btn { -webkit-appearance: none; appearance: none; }
.top .top-link { white-space: nowrap; }
.tl-nw { white-space: nowrap; }

/* ---------- кнопки на тёмном фоне: синяя основная + контурная, без салатового ---------- */
.final .btn:not(.btn-ghost) { box-shadow: 0 14px 34px rgba(36, 87, 255, .35); }
.toc-cta small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 4px; }

/* ---------- секции коммерческой страницы ---------- */
.tl-sec { padding: 88px 0; }
.tl-soft { background: var(--soft); }
.tl-head { max-width: 860px; margin-bottom: 36px; }
.tl-head .lead { max-width: 780px; }
.tl-after { margin-top: 26px; }
.tl-link { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 800; text-decoration: none; }
.tl-link svg { width: 18px; height: 18px; flex: none; }
.tl-link:hover { text-decoration: underline; }

/* ---------- hero ---------- */
.tl-hero { padding: 26px 0 64px; }
.tl-hero .crumbs { margin-bottom: 8px; }
.tl-hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; align-items: center; }
.tl-hero .h1 { font-size: clamp(26px, 3.2vw + 12px, 44px); }
.tl-hero .btns { margin-top: 30px; }
.tl-hero .hero-note a { color: #fff; font-weight: 700; }

/* схема варианта в корзине Тильды */
.tl-cart { position: relative; background: #fff; color: var(--text); border-radius: 24px; padding: 22px 22px 18px; box-shadow: 0 40px 90px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06); }
.tl-cart-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8B95A9; }
.tl-cart-h span { letter-spacing: 0; text-transform: none; font-weight: 700; font-size: 13px; background: var(--soft); border-radius: 8px; padding: 4px 8px; color: var(--muted); }
.tl-cart-l { margin-top: 14px; font-size: 15px; font-weight: 800; }
.tl-radio { list-style: none; margin-top: 8px; }
.tl-radio > li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid #EEF1F6; font-size: 15.5px; line-height: 1.45; }
.tl-radio > li:first-child { border-top: 0; }
.tl-radio i { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; box-shadow: inset 0 0 0 2px #B9C2D3; }
.tl-radio .is-on i { box-shadow: inset 0 0 0 2px var(--ozon), inset 0 0 0 6px #fff, inset 0 0 0 12px var(--ozon); }
.tl-radio .is-on b { color: var(--text); }
.tl-pick { margin: 2px 0 4px 30px; padding: 12px 14px; border-radius: 14px; background: #F2F6FF; box-shadow: inset 0 0 0 1px #D9E4FF; font-size: 14.5px; line-height: 1.5; }
.tl-pick-t { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.tl-pick-t svg { width: 18px; height: 18px; color: var(--ozon); flex: none; }
.tl-pick p { color: var(--muted); margin-top: 4px; }
.tl-pick .tl-pick-btn { display: inline-flex; align-items: center; min-height: 36px; margin-top: 8px; padding: 6px 12px; border-radius: 10px; background: var(--ozon); color: #fff; font-weight: 800; font-size: 14px; }
.tl-cart-sum { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 15px; color: var(--muted); }
.tl-cart-sum b { color: var(--text); }
.tl-cart-cap { margin-top: 12px; font-size: 13px; line-height: 1.5; color: #8B95A9; }

/* ---------- ранний доступ ---------- */
.tl-early { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tl-early .card { display: flex; flex-direction: column; }
.tl-early .card .h3 { font-size: 18.5px; }
.tl-early .checks > li { font-size: 15.5px; margin-top: 10px; }
.tl-wait { list-style: none; margin-top: 12px; }
.tl-wait > li { position: relative; padding-left: 34px; margin-top: 10px; line-height: 1.55; font-size: 15.5px; }
.tl-wait > li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 7px; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='5.5' fill='none' stroke='%232457FF' stroke-width='2'/%3E%3Cpath d='M11 8.3V11l1.8 1.2' fill='none' stroke='%232457FF' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/22px no-repeat; }
.tl-honest { margin-top: 16px; }

/* ---------- как это работает ---------- */
.tl-flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tl-flow .card .h3 { display: flex; align-items: center; gap: 10px; }
.tl-flow .card .h3 svg { width: 22px; height: 22px; color: var(--ozon); }
.tl-flow .olist > li { font-size: 16px; }
.tl-flow .olist > li b { display: block; }

/* ---------- возможности ---------- */
.tl-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tl-feat { border: 1px solid var(--line); border-radius: 20px; padding: 22px; background: #fff; }
.tl-feat-i { width: 44px; height: 44px; border-radius: 13px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.tl-feat-i svg { width: 22px; height: 22px; }
.tl-feat .h3 { margin-top: 14px; font-size: 18px; }
.tl-feat p { margin-top: 8px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }

/* ---------- что нужно ---------- */
.tl-need { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tl-need .card .h3 { font-size: 18.5px; }
.tl-need .list li { font-size: 15.5px; }

/* ---------- шаги подключения ---------- */
.tl-steps { list-style: none; counter-reset: st; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tl-steps > li { counter-increment: st; position: relative; border: 1px solid var(--line); border-radius: 20px; padding: 20px 20px 20px 66px; background: #fff; line-height: 1.5; font-size: 15.5px; }
.tl-steps > li::before { content: counter(st); position: absolute; left: 20px; top: 20px; width: 32px; height: 32px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font: 600 15px/32px var(--font-h); text-align: center; }
.tl-steps b { display: block; font-size: 16.5px; margin-bottom: 4px; }
.tl-steps span { color: var(--muted); }

/* ---------- цена ---------- */
.tl-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tl-price { border: 1px solid var(--line); border-radius: 22px; padding: 24px 22px; background: #fff; display: flex; flex-direction: column; }
.tl-price.is-key { box-shadow: inset 0 0 0 2px var(--blue); border-color: transparent; }
.tl-price-n { font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tl-price-v { font: 600 34px/1.1 var(--font-h); letter-spacing: -.02em; margin-top: 10px; white-space: nowrap; }
.tl-price-v small { font: 700 16px/1 var(--font); color: var(--muted); letter-spacing: 0; }
.tl-price p { margin-top: 10px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.tl-price-tag { align-self: flex-start; margin-top: 12px; padding: 5px 10px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); font-size: 13.5px; font-weight: 800; }
.tl-price-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.tl-price-info .card .h3 { font-size: 18px; }
.tl-price-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }

/* ---------- опыт / автор ---------- */
.tl-exp { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.tl-author { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.tl-author .author-ava { flex: none; }
.tl-author-name { font-size: 19px; font-weight: 800; line-height: 1.3; }
.tl-author-role { font-size: 14.5px; color: var(--muted); margin-top: 2px; }
.tl-author p + p { margin-top: 10px; }
.tl-author .tl-author-txt { margin-top: 10px; font-size: 16px; line-height: 1.6; }
.tl-exp .checks > li { font-size: 16px; }

/* ---------- материалы ---------- */
.tl-mats { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- вопросы ---------- */
.tl-faq { max-width: 860px; }

/* ---------- модальная форма заявки ---------- */
.tl-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px; }
.tl-modal-bg { position: absolute; inset: 0; background: rgba(8, 13, 28, .62); }
.tl-modal-panel { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 48px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: #fff; border-radius: 24px; padding: 30px 28px 26px; box-shadow: 0 40px 100px rgba(0, 0, 0, .35); outline: none; }
@supports (height: 100dvh) { .tl-modal-panel { max-height: calc(100dvh - 48px); } }
.tl-modal-x { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; border: 0; border-radius: 12px; background: var(--soft); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.tl-modal-x:hover { background: #E7ECF5; }
.tl-modal-x svg { width: 16px; height: 16px; }
.tl-modal-tag { display: inline-flex; padding: 5px 10px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.tl-modal .h3 { font-size: 21px; margin-top: 12px; padding-right: 48px; }
.tl-modal .sub-t { color: var(--muted); font-size: 15.5px; margin-top: 8px; line-height: 1.5; }
.tl-modal .form { margin-top: 18px; }
.tl-modal .field { margin-top: 14px; }
.tl-modal .field:first-child { margin-top: 0; }
.tl-modal .field > label .opt { font-weight: 600; color: var(--muted); }
.tl-modal textarea.input { min-height: 96px; resize: vertical; }
.tl-modal .done-ico { margin-top: 4px; }
.tl-modal .done .h2 { margin-top: 14px; }
.tl-modal .done .btns { margin-top: 20px; }
.tl-modal .done .btn { width: 100%; }

/* ---------- плавающая кнопка на телефоне ---------- */
.tl-sticky { display: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
    .tl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .tl-hero-grid, .tl-exp { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .tl-cart { max-width: 520px; }
    .tl-early, .tl-grid3, .tl-need, .tl-prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tl-mats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .tl-sec { padding: 68px 0; }
    .tl-head { margin-bottom: 28px; }
    .tl-flow, .tl-price-info { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
    .tl-early, .tl-grid3, .tl-need, .tl-prices, .tl-steps, .tl-mats { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .tl-sec { padding: 52px 0; }
    .tl-head { margin-bottom: 22px; }
    .tl-hero { padding: 16px 0 44px; }
    .tl-hero .btns { margin-top: 20px; }
    .tl-cart { padding: 18px 16px 14px; border-radius: 20px; }
    .tl-pick { margin-left: 0; }
    .tl-feat, .tl-price { padding: 20px 16px; border-radius: 18px; }
    .tl-steps > li { padding: 18px 16px 18px 60px; border-radius: 18px; }
    .tl-steps > li::before { left: 16px; top: 18px; }
    .tl-price-v { font-size: 30px; }
    .tl-price-cta { flex-direction: column; align-items: stretch; }
    .tl-price-cta .tl-link { align-self: flex-start; }
    .tl-author { padding: 20px 16px; border-radius: 20px; }
    .tl-modal { padding: 0; align-items: stretch; }
    .tl-modal-panel { max-width: none; max-height: none; height: 100%; border-radius: 0; padding: 22px 16px 28px; }
    /* Спокойная нижняя панель: белая полупрозрачная подложка и обычная синяя кнопка.
       iOS Safari красит свою панель в цвет края страницы — белая подложка даёт белую панель. */
    .tl-sticky { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(12, 19, 35, .08); transform: translateY(110%); transition: transform .3s; }
    .tl-sticky.is-on { transform: none; }
    .tl-sticky .btn { width: 100%; min-height: 52px; box-shadow: none; }
    body.tl-has-sticky { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 420px) {
    .tl-author { flex-direction: column; gap: 12px; }
}
@media (max-width: 400px) {
    .tl-hero .btn-lg svg, .final .btn-lg svg { display: none; }
}
@media print {
    .tl-sticky, .tl-modal { display: none !important; }
}

/* главный оффер на первом экране: «50 доставок бесплатно» — синяя плашка, без салатового */
.tl-offer { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 22px; padding: 10px 16px 10px 10px; border-radius: 16px; background: rgba(36, 87, 255, .16); box-shadow: inset 0 0 0 1.5px rgba(91, 131, 255, .55); color: #DDE5F7; font-size: 15px; line-height: 1.4; }
.tl-offer b { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border-radius: 10px; background: var(--blue); color: #fff; font-size: 16.5px; font-weight: 800; }
.tl-offer + .btns { margin-top: 18px; }
@media (max-width: 640px) {
    .tl-offer { display: flex; padding: 10px 12px 10px 10px; font-size: 14.5px; }
}

/* надзаголовки на тёмном фоне — спокойный голубой вместо салатового (страницы Тильды) */
.hero .eyebrow, .dark .eyebrow { color: #9DB4FF; }
.hero .eyebrow::before, .dark .eyebrow::before { box-shadow: 0 0 0 4px rgba(91, 131, 255, .22); }
.author-ava { color: #9DB4FF; }
.tl-author-name a { color: var(--text); text-decoration: none; }
.tl-author-name a:hover { color: var(--blue); }
