/* Сайт Davra */
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { background: var(--paper); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* Навигация */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 86%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav-links { display: flex; gap: 24px; margin-left: 12px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-r { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* Первый экран */
.hero { padding: 40px 0 96px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) 392px; gap: 72px; align-items: center; }
.hero h1 { font-size: clamp(42px, 5.4vw, 76px); line-height: 1.0; letter-spacing: -0.045em; margin: 18px 0 22px; font-weight: 600; max-width: 12ch; }
.lead { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 36em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 48px 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 16px 32px 0 0; }
.facts div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.facts dt { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.facts dd { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.mobile-demo { display: none; margin-top: 24px; }

.device-wrap { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.device {
  width: 392px; height: 760px; padding: 10px; border-radius: 52px; background: #0e0f12; position: relative;
  box-shadow: 0 0 0 1px rgba(14, 15, 18, .08), 0 40px 80px -30px rgba(14, 15, 18, .45), 0 18px 36px -24px rgba(36, 67, 214, .35);
}
.device::before { content: ''; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 14px; background: #0e0f12; z-index: 2; }
.device iframe { width: 100%; height: 100%; border: 0; border-radius: 42px; background: var(--paper); display: block; }
.device-wrap figcaption { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 0 0 rgba(17, 120, 90, .5); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(17, 120, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(17, 120, 90, 0); } }

/* Секции */
.section { padding: 112px 0; border-top: 1px solid var(--line); }
.section.alt { background: var(--surface-2); }
.sec-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 56px; }
.sec-head h2, .dash-text h2, .final h2 { font-size: clamp(32px, 3.6vw, 50px); letter-spacing: -0.035em; line-height: 1.05; max-width: 18ch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.problem article { padding: 26px 32px 6px 0; border-top: 1px solid var(--ink); }
.problem article + article { padding-left: 32px; border-left: 1px solid var(--line); }
.problem .idx { font-size: 12px; color: var(--accent); }
.problem h3 { font-size: 22px; margin: 18px 0 10px; }
.problem p { color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 30ch; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { position: relative; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; gap: 10px; }
.step-n { font-size: 40px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: var(--ink); margin-bottom: 18px; }
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 44px; right: -17px; width: 18px; height: 1px; background: var(--line-2); }
.steps h3 { font-size: 18px; }
.steps p { font-size: 14.5px; line-height: 1.55; color: var(--muted); }

.panel { padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.checks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; }
.checks li { position: relative; padding: 15px 0 15px 34px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.45; }
.checks li::before { content: ''; position: absolute; left: 0; top: 16px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232443d6' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8.5'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* Кабинет на тёмном фоне */
.section.dark { background: #0e0f12; color: #f1f0eb; border-top: 0; }
.section.dark .eyebrow { color: #8f9298; }
.section.dark .lead { color: #a6a8ad; }
.dash-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; align-items: center; }
.dash-text { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.dash-text .btn { margin-top: 12px; }
.btn.light { background: #f4f3ef; color: #0e0f12; }
.btn.light:hover { background: #fff; }
.dash-card { background: #15161a; border: 1px solid #26282d; border-radius: 22px; padding: 28px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #26282d; padding-bottom: 24px; }
.kpis div { display: flex; flex-direction: column; gap: 6px; padding-right: 16px; }
.kpis div + div { padding-left: 20px; border-left: 1px solid #26282d; }
.kpis b { font-size: clamp(30px, 3vw, 42px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: #fff; }
.kpis span { font-size: 13px; color: #9b9da3; }
.sd { padding-top: 22px; }
.sd-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sd-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #9b9da3; }
.sd-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sd-legend i.offer { margin-left: 10px; }
.seek { background: #5d78f0; }
.offer { background: #d07a35; }
.sd-rows { display: grid; gap: 12px; }
.sd-row { display: grid; grid-template-columns: minmax(0, 176px) 1fr; gap: 14px; align-items: center; font-size: 13px; }
.sd-row span { color: #d3d2cd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-bars { display: grid; gap: 4px; min-width: 0; }
.sd-bar { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sd-bar i { display: block; height: 10px; border-radius: 3px; min-width: 3px; width: calc((100% - 30px) * var(--f)); flex: none; transition: width .6s var(--ease); }
.sd-bar b { font: 500 11px/1 var(--mono); color: #9b9da3; }

/* Цены */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.plan.hot { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.plan-badge { position: absolute; top: 22px; right: 20px; }
.plan h3 { font-size: 17px; }
.price { font-size: 28px; font-weight: 500; letter-spacing: -0.04em; margin-top: 8px; line-height: 1.1; }
.plan-d { font-size: 14px; color: var(--muted); }
.plan-f { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.price-note { margin-top: 22px; font-size: 14px; color: var(--muted); }

/* Вопросы */
.faq-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-in .sec-head { margin-bottom: 0; position: sticky; top: 100px; }
.faq details { border-top: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font: 600 18px/1.35 var(--display); letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 24px/1 var(--mono); color: var(--muted); transition: transform .2s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 22px 0; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* Финальный призыв */
.final { text-align: left; }
.final-in { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.final h2 { font-size: clamp(36px, 4.6vw, 64px); max-width: 16ch; }

.footer { border-top: 1px solid var(--line); padding: 28px 0 36px; }
.foot-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 13px; }
.foot-in .muted { flex: 1; min-width: 200px; }

/* Планшет */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .hero-in { grid-template-columns: 1fr; gap: 56px; }
  .hero h1 { max-width: 14ch; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .dash-in { grid-template-columns: 1fr; gap: 48px; }
  .faq-in { grid-template-columns: 1fr; gap: 32px; }
  .faq-in .sec-head { position: static; }
}

/* Телефон */
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .nav-in { gap: 12px; height: 60px; }
  .nav-cab { display: none; }
  .nav-r .btn.primary { display: none; }
  .hero { padding: 32px 0 64px; }
  .hero h1 { font-size: 42px; margin: 14px 0 16px; }
  .lead { font-size: 17px; }
  .cta-row { flex-direction: column; align-items: stretch; margin-top: 26px; }
  .cta-row .btn { width: 100%; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; }
  .facts div { padding: 14px 10px 0 0; }
  .facts div + div { padding-left: 12px; }
  .facts dt { font-size: 14px; letter-spacing: -0.03em; white-space: nowrap; }
  .facts dd { font-size: 12px; }
  .device-wrap { display: none; }
  .mobile-demo { display: inline-flex; }
  .section { padding: 72px 0; }
  .sec-head { margin-bottom: 36px; }
  .grid-3, .grid-2, .steps, .plans { grid-template-columns: 1fr; }
  .problem article, .problem article + article { padding: 22px 0 18px; border-left: 0; }
  .problem article + article { border-top: 1px solid var(--line); }
  .panel { padding: 22px; }
  .kpis { grid-template-columns: 1fr; gap: 16px; }
  .kpis div + div { padding-left: 0; border-left: 0; border-top: 1px solid #26282d; padding-top: 16px; }
  .dash-card { padding: 20px; }
  .sd-row { grid-template-columns: 1fr; gap: 6px; }
  .faq summary { font-size: 16.5px; }
  .faq details p { padding-right: 0; }
}
