/* Блоки страницы для клиник: кейсы со скринами, «что меняем», форма разбора. Цвета — токены сайта клуба. */
.hero h1.hero-title-sm { text-wrap: balance; }

/* Кейсы */
.case-grid { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
.case { background: var(--card); border-radius: var(--radius-lg); padding: 1.75rem; display: flex; flex-direction: column; gap: .9rem; }
.case-where { font-size: .85rem; font-weight: 600; color: var(--muted-2); }
.case h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-wrap: balance; }
.case-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.case-facts li { position: relative; padding-left: 1.1rem; color: var(--muted); font-size: .98rem; line-height: 1.45; }
.case-facts li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: #34d17a; }
.case .shot { margin-top: auto; }

/* Скриншот */
.shot { margin: 0; display: grid; gap: .5rem; }
.shot img { width: 100%; height: auto; display: block; border-radius: var(--radius-md); background: #fff;
  box-shadow: 0 0 0 1px var(--border), 0 18px 40px -24px rgba(26,26,26,.35); }
.shot figcaption { font-size: .85rem; color: var(--muted-2); }

/* Выгоды */
.benefits .card h3 { font-size: 1.25rem; }

/* Что меняем */
.change { display: grid; gap: 1.5rem; padding: 2.25rem 0; border-top: 1px solid var(--border); }
.change:first-of-type { border-top: 0; padding-top: 0; }
.change-copy h3 { font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: .6rem; }
.change-copy p { color: var(--muted); font-size: 1.05rem; line-height: 1.55; max-width: 34rem; }
.change-shots { display: grid; gap: 1.25rem; }
.change-ai .ai-chat { transform: none; margin: 0 auto; }
@media (min-width: 900px) {
  .change { grid-template-columns: 5fr 7fr; column-gap: 3rem; align-items: start; }
  .change-copy { position: sticky; top: 6rem; }
  .change-ai { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* Шаги */
#steps .steps-banner h2 { text-wrap: balance; max-width: 40rem; margin-left: auto; margin-right: auto; }
.steps-cta { display: flex; justify-content: center; margin-top: 2.5rem; }

/* Форма разбора */
.lead-box { background: var(--card); border-radius: var(--radius-lg); padding: 2rem 1.25rem; display: grid; gap: 2rem; }
@media (min-width: 900px) { .lead-box { grid-template-columns: 1fr 1fr; padding: 3rem; column-gap: 3rem; align-items: center; } }
.lead-copy h2 { font-size: 1.9rem; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; margin-bottom: 1rem; }
.lead-copy p { color: var(--muted); font-size: 1.08rem; line-height: 1.55; }
.lead-form, .lead-done { background: #fff; border-radius: var(--radius-lg); padding: 1.5rem; display: grid; gap: 1rem;
  box-shadow: 0 0 0 1px var(--border), 0 24px 48px -28px rgba(26,26,26,.35); }
.lf-field { display: grid; gap: .4rem; }
.lf-field span, .lf-contact legend { font-size: .9rem; font-weight: 600; }
.lf-field input { font: inherit; font-size: 1.05rem; padding: .85rem 1rem; border-radius: 14px; border: 1px solid var(--border); background: var(--card);
  color: var(--ink); outline: none; transition: border-color .2s, background .2s; font-variant-numeric: tabular-nums; }
.lf-field input:focus { border-color: var(--blue); background: #fff; }
.lf-field input.invalid { border-color: #ff5a5f; }
.lf-contact { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.lf-contact legend { margin-bottom: .5rem; padding: 0; }
.lf-contact label { position: relative; cursor: pointer; }
.lf-contact input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.lf-contact span { display: inline-block; padding: .6rem 1rem; border-radius: 999px; background: var(--card); font-weight: 600; font-size: .95rem;
  box-shadow: inset 0 0 0 1px var(--border); transition: background .2s, color .2s, box-shadow .2s; }
.lf-contact input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.lf-contact input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.lf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lf-err { margin: 0; color: #c62828; font-size: .9rem; }
.lf-submit { width: 100%; }
.lf-submit:disabled { opacity: .7; cursor: default; }
.lf-consent { margin: 0; font-size: .8rem; color: var(--muted-2); line-height: 1.45; }
.lf-consent a { color: inherit; text-decoration: underline; }
.lead-done { text-align: center; justify-items: center; }
.lead-done-ic { width: 56px; height: 56px; border-radius: 50%; background: rgba(52,209,122,.16); display: grid; place-items: center; }
.lead-done-ic svg { width: 28px; height: 28px; fill: none; stroke: #15803d; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lead-done h3 { font-size: 1.3rem; }
.lead-done p { color: var(--muted); }
.lf-test { font-size: .85rem; background: rgba(255,159,10,.14); color: #8a5300 !important; padding: .4rem .8rem; border-radius: 10px; }

.lead-box [hidden] { display: none !important; }

/* Заголовок первого экрана: ровно 3 строки, подзаголовок — 2 */
.hero h1.hero-3l { font-size: clamp(1.3rem, 5.9vw, 2.6rem); line-height: 1.12; letter-spacing: -.03em; }
.hero-3l span, .hero-2l span { display: block; white-space: nowrap; }
.hero-copy .hero-desc.hero-2l { font-size: clamp(.95rem, 3.6vw, 1.15rem); line-height: 1.45; color: var(--muted); }

/* Кнопка в стиле DesignBookmark: тёмная «пилюля», круглая стрелка, блик, нажатие */
.btn-go { position: relative; display: inline-flex; align-items: center; gap: .9rem; padding: .5rem .5rem .5rem 1.5rem; min-height: 56px;
  border: 0; border-radius: 999px; background: #17181a; color: #fff !important; font: 600 1.02rem/1.2 var(--font); letter-spacing: -.01em;
  text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 14px 30px -12px rgba(23,24,26,.55), 0 2px 6px rgba(23,24,26,.18);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .3s; }
.btn-go::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%) no-repeat; background-size: 250% 100%;
  background-position: 130% 0; animation: goShine 3.6s ease-in-out infinite; }
.go-ic { flex: none; width: 42px; height: 42px; border-radius: 50%; background: #34d17a; display: grid; place-items: center;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.go-ic svg { width: 20px; height: 20px; fill: none; stroke: #0e0f11; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  animation: goNudge 3.6s ease-in-out infinite; }
.btn-go:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 20px 36px -12px rgba(23,24,26,.6), 0 3px 8px rgba(23,24,26,.2); }
.btn-go:hover .go-ic { transform: translateX(3px) scale(1.06); }
.btn-go:active { transform: translateY(1px) scale(.97); transition-duration: .12s; }
.btn-go:focus-visible { outline: 2px solid #0075de; outline-offset: 3px; }
.btn-go:disabled { opacity: .7; cursor: default; transform: none; }
@keyframes goShine { 0%, 55% { background-position: 130% 0; } 85%, 100% { background-position: -30% 0; } }
@keyframes goNudge { 0%, 70%, 100% { transform: none; } 78% { transform: translateX(4px); } 86% { transform: translateX(-1px); } }
@media (prefers-reduced-motion: reduce) { .btn-go::before, .go-ic svg { animation: none; } }
.lf-submit.btn-go { width: 100%; justify-content: space-between; }
@media (max-width: 420px) { .btn-go { font-size: .95rem; padding-left: 1.2rem; } }
@media (min-width: 860px) { .case-top { grid-column: 1 / -1; } .case-top .case-shots { grid-template-columns: 1fr 1fr; } }
.case-shots { display: grid; gap: 1.25rem; margin-top: auto; }
.case-top h3 { font-size: 1.9rem; }
@media (min-width: 1000px) { .case-grid { grid-template-columns: repeat(3, 1fr); } .case h3 { font-size: 1.3rem; } .case-top h3 { font-size: 1.9rem; } }
@media (min-width: 860px) { .case-top .case-shots { grid-template-columns: 1fr; } }
.hero > * { min-width: 0; }
.hero .dbm-hero-logo { margin-bottom: 2.25rem; }
@media (max-width: 399px) { .hero-3l span, .hero-2l span { white-space: normal; } }
.lead-box > * { min-width: 0; } @media (max-width: 360px) { .lead-box { padding: 1.5rem .75rem; } .lead-form { padding: 1.1rem; } .lead-copy h2 { font-size: 1.6rem; } }
/* попап */
.lf-modal .modal-card { max-width: 440px; text-align: left; padding: 2.25rem 1.5rem 1.5rem; }
.lf-modal .modal-card h3 { font-size: 1.4rem; line-height: 1.2; padding-right: 2.5rem; text-wrap: balance; }
.lf-modal .modal-sub { margin: .5rem 0 1.25rem; }
.lf-modal .lead-form, .lf-modal .lead-done { box-shadow: none; padding: 0; }
.lf-modal [hidden] { display: none !important; }

/* Форма крупнее (как у dan-digital): высокие поля, сегмент-переключатель, большая кнопка */
.lead-form { gap: 1.25rem; }
.lf-field { gap: .55rem; }
.lf-field span, .lf-contact legend { font-size: .95rem; font-weight: 500; color: var(--muted); }
.lf-field input { height: 64px; padding: 0 1.4rem; border-radius: 20px; font-size: 1.1rem; border-color: transparent; }
.lf-field input:focus { border-color: var(--ink); }
.lf-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 6px; border-radius: 999px; background: var(--card); }
.lf-contact legend { float: left; width: 100%; margin-bottom: .55rem; }
.lf-contact span { display: flex; align-items: center; justify-content: center; height: 52px; padding: 0 .5rem; border-radius: 999px;
  background: transparent; box-shadow: none; font-size: 1rem; color: var(--muted); }
.lf-contact input:checked + span { background: var(--ink); color: #fff; box-shadow: 0 6px 16px -8px rgba(23,24,26,.6); }
.lf-submit.btn-go { min-height: 68px; font-size: 1.1rem; padding-left: 1.75rem; }
.lf-submit .go-ic { width: 52px; height: 52px; }
@media (max-width: 640px) {
  .lead-box { padding: 1.75rem .75rem .75rem; background: transparent; }
  .lead-copy { padding: 0 .5rem; }
  .lead-form, .lead-done { padding: 1.5rem 1.25rem; }
  .lead-copy h2 { font-size: 2rem; }
}
.lf-contact-wrap { display: grid; gap: .55rem; } .lf-label { font-size: .95rem; font-weight: 500; color: var(--muted); }

/* Без серых подложек: блоки делим тонкой линией и воздухом, текст на всю ширину */
.case { background: none; border-radius: 0; padding: 1.75rem 0 0; border-top: 1px solid var(--border); }
.case-grid { gap: 2.5rem 2rem; }
.benefits .card { background: none; border-radius: 0; padding: 1.5rem 0 0; border-top: 2px solid var(--ink); box-shadow: none; }
#steps .steps-banner { background: none; border-radius: 0; padding: 0; }
#steps .steps-list { max-width: 760px; gap: 0; }
#steps .step { padding: 1.4rem 0; border-top: 1px solid var(--border); }
#steps .step:last-child { border-bottom: 1px solid var(--border); }
.lead-box { background: none; padding: 0; border-radius: 0; }
@media (max-width: 640px) { .lead-box { padding: 0; } .lead-copy { padding: 0; } }
