/* Главная costcontrol.su: вход + рассказ о продукте (index.html, docs/landing.md).
   Цвета — из main.css (--primary, --sidebar-bg — синий логотипа), одна колонка до 1120 px; на телефоне форма входа — первой. */
html:has(body.ld), body.ld { height: auto; }
.ld [hidden] { display: none !important; }
body.ld { background: var(--bg); font-size: 16px; line-height: 1.55; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { body.ld { scroll-behavior: auto; } }

.ld-wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
.ld h1, .ld h2, .ld h3 { color: #1E2136; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
.ld h1 { font-size: 44px; line-height: 1.1; font-weight: 700; }
.ld h2 { font-size: 30px; line-height: 1.2; font-weight: 700; }
.ld h3 { font-size: 18px; line-height: 1.3; font-weight: 600; }
.ld-eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #7F87C0; }
.ld-sec { display: flex; flex-direction: column; gap: 14px; padding-block: 72px; }

.ld-band { background: var(--surface); border-block: 1px solid var(--border); }

/* шапка */
.ld-top { position: sticky; top: 0; z-index: 10; background: rgba(245,244,248,0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.ld-top-in { display: flex; align-items: center; gap: 28px; min-height: 60px; }
.ld-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--sidebar-bg); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.ld-brand svg { width: 30px; height: 30px; flex: none; }
.ld-brand .logo-dot { background: #7F87C0; }
.ld-nav { display: flex; gap: 22px; margin-left: auto; }
.ld-nav a { color: #5D6280; text-decoration: none; font-size: 14px; font-weight: 500; }
.ld-nav a:hover, .ld-nav a:focus-visible { color: var(--sidebar-bg); }

/* кнопки */
.ld-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 11px; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ld-btn-main { background: var(--sidebar-bg); color: #fff; }
.ld-btn-main:hover { background: #374070; }
.ld-btn-line { border: 1px solid #C9CCE3; color: var(--sidebar-bg); background: var(--surface); }
.ld-btn-line:hover { border-color: #7F87C0; }
.ld-top-login { min-height: 38px; padding: 0 16px; font-size: 14px; }
.ld a:focus-visible, .ld summary:focus-visible { outline: 2px solid #7F87C0; outline-offset: 2px; }

/* первый экран: рассказ + вход */
.ld-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 400px); gap: 56px; align-items: center; padding-block: 64px 48px; }
.ld-hero-text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ld-lead { margin: 0; font-size: 19px; line-height: 1.55; color: #4C516E; max-width: 34em; }
.ld-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.ld-login { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px 28px 22px; box-shadow: 0 1px 2px rgba(40,44,80,0.04), 0 16px 40px rgba(40,44,80,0.08); scroll-margin-top: 90px; }
.ld-login-title { font-size: 20px; font-weight: 700; color: #1E2136; margin-bottom: 14px; }
.ld-login .login-forgot { margin-top: 14px; }

/* снимок «Итогов недели» */
.ld-shot-hero { padding-bottom: 72px; }
.ld-frame { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: 0 24px 60px rgba(40,44,80,0.12); }
.ld-frame-bar { display: flex; gap: 6px; padding: 10px 14px; background: #EEEFF5; border-bottom: 1px solid var(--border); }
.ld-frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D3D5E4; }
.ld-frame img, .ld-feat img, .ld-phone img { display: block; width: 100%; height: auto; }
/* пока картинка грузится — спокойный фон вместо белой дыры */
.ld-frame img, .ld-feat img, .ld-phone img { background: #EEF0F7; }
.ld-caption { margin: 12px 0 0; font-size: 14px; color: var(--text-secondary); text-align: center; }

/* круг по ролям */
.ld-loop { list-style: none; counter-reset: s; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ld-loop li { counter-increment: s; background: var(--bg); border-radius: 14px; padding: 16px; font-size: 15px; line-height: 1.45; color: #4C516E; display: flex; flex-direction: column; gap: 6px; }
.ld-loop li::before { content: counter(s); font-weight: 700; color: #7F87C0; font-size: 14px; }
.ld-loop li b { color: #1E2136; display: block; }

/* возможности */
.ld-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 14px; }
.ld-feat { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 14px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ld-feat img { border-radius: 10px; border: 1px solid var(--border-light); aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.ld-feat h3, .ld-feat p { padding-inline: 6px; }
.ld-feat p { margin: 0; color: #5D6280; font-size: 15px; }
.ld-more { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 24px; font-size: 15px; color: #5D6280; }
.ld-more b { color: #1E2136; font-weight: 600; }

/* приложение */
.ld-app { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; align-items: center; padding-block: 64px; }
.ld-app-text { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ld-app-text p { margin: 0; font-size: 17px; color: #4C516E; max-width: 32em; }
.ld-app-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; max-width: 34em; font-size: 16px; color: #1E2136; }
.ld-app-list li { display: flex; gap: 10px; align-items: baseline; }
.ld-app-list li::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #7F87C0; transform: translateY(-2px); }
.ld-phone { border: 8px solid #1E2136; border-radius: 38px; overflow: hidden; max-height: 470px; box-shadow: 0 24px 50px rgba(40,44,80,0.18); }

/* подключение */
.ld-steps { list-style: none; counter-reset: s; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ld-steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.ld-steps li::before { content: counter(s); font-weight: 700; color: #7F87C0; font-size: 14px; }
.ld-steps b { color: #1E2136; font-size: 16px; }
.ld-steps span { color: #5D6280; font-size: 15px; }

/* вопросы */
.ld-faq { display: flex; flex-direction: column; max-width: 760px; margin-top: 8px; border-top: 1px solid var(--border); }
.ld-faq details { border-bottom: 1px solid var(--border); }
.ld-faq summary { list-style: none; cursor: pointer; padding: 16px 32px 16px 0; font-size: 17px; font-weight: 600; color: #1E2136; position: relative; }
.ld-faq summary::-webkit-details-marker { display: none; }
.ld-faq summary::after { content: '+'; position: absolute; right: 4px; top: 13px; font-size: 22px; font-weight: 400; color: #7F87C0; }
.ld-faq details[open] summary::after { content: '−'; }
.ld-faq p { margin: 0 0 16px; color: #5D6280; max-width: 40em; }

/* контакты */
.ld-contact { background: var(--sidebar-bg); color: #E3E5F4; }
.ld-contact-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: 56px; }
.ld-contact h2 { color: #fff; }
.ld-contact p { margin: 8px 0 0; font-size: 17px; }
.ld-contact-list { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 18px; font-weight: 600; color: #fff; }
.ld-contact-item { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
a.ld-contact-item:hover { text-decoration: underline; text-underline-offset: 4px; }
.ld-contact-item svg { width: 22px; height: 22px; fill: none; stroke: #AEB4DE; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.ld-foot { display: flex; justify-content: space-between; gap: 16px; padding-block: 24px 32px; font-size: 14px; color: var(--text-secondary); }
.ld-foot a { color: var(--sidebar-bg); text-decoration: none; }

/* планшет */
@media (max-width: 960px) {
  .ld-nav { display: none; }
  .ld-top-login { margin-left: auto; }
  .ld-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 32px; }
  .ld h1 { font-size: 36px; }
  .ld-loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* телефон: форма входа — первой (заходят в основном те, кто уже работает) */
@media (max-width: 720px) {
  .ld-wrap { padding-inline: 16px; }
  .ld-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 20px 36px; }
  .ld-login { order: -1; padding: 22px 20px 18px; border-radius: 16px; }
  .ld-top-login { display: none; }
  .ld h1 { font-size: 30px; }
  .ld h2 { font-size: 24px; }
  .ld-lead { font-size: 17px; }
  .ld-sec { padding-block: 48px; }
  .ld-shot-hero { padding-bottom: 48px; }
  .ld-loop, .ld-feats, .ld-more, .ld-steps, .ld-app-list { grid-template-columns: minmax(0, 1fr); }
  .ld-app { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 48px; }
  .ld-phone { max-width: 240px; margin: 0 auto; }
  .ld-contact-in { padding-block: 40px; }
  .ld-contact-list { flex-direction: column; font-size: 17px; }
}
