/* ============================================================
   DentX · B2B-лендинг (вдохновение basdent.kz)
   ============================================================ */
:root {
  --blue: #1B4F8A;
  --blue-d: #0d3366;
  --mint: #2ECC9A;
  --mint-d: #25b085;
  --ink: #1a1a1a;
  --muted: #5a6b7d;
  --dark: #0d1b2a;
  --gray: #f8f9fa;
  --border: #e6ebf1;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(13,27,42,0.08);
  --shadow-lg: 0 18px 48px rgba(13,27,42,0.16);
  --fh: 'Montserrat', system-ui, sans-serif;
  --fb: 'Inter', system-ui, sans-serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--fb); color: var(--ink); background: #fff; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--fh); line-height: 1.15; letter-spacing: -0.02em; }
a { text-decoration: none; color: inherit; }
img, svg { display: block; }
[hidden] { display: none !important; }
.icon, [data-lucide] { width: 20px; height: 20px; }
.tooth-ic { width: 26px; height: 26px; fill: currentColor; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-dark { background: var(--dark); color: #fff; }
.section-gray { background: var(--gray); }
.section-blue { background: var(--blue); color: #fff; }
.section-darkblue { background: linear-gradient(160deg, var(--blue) 0%, var(--blue-d) 100%); color: #fff; }
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; text-align: center; }
.section-title.light { color: #fff; }
.section-sub { text-align: center; color: var(--muted); font-size: 18px; max-width: 640px; margin: 14px auto 0; }
.section-sub.light { color: rgba(255,255,255,0.8); }
.section .cards-3, .section .cards-4, .section .calc, .section .prices, .section .contact-grid, .section .pains-cta { margin-top: 48px; }

/* ── Кнопки ── */
.lbtn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px;
  padding: 0 26px; border-radius: 12px; font-family: var(--fh); font-weight: 700; font-size: 15px;
  cursor: pointer; border: 2px solid transparent; transition: all .3s ease; white-space: nowrap; }
.lbtn i { width: 18px; height: 18px; }
.lbtn-mint { background: var(--mint); color: #06402b; box-shadow: 0 8px 20px rgba(46,204,154,0.35); }
.lbtn-mint:hover { background: var(--mint-d); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(46,204,154,0.45); }
.lbtn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.lbtn-ghost:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }
.lbtn-ghost-blue { background: #fff; color: var(--blue); border-color: var(--border); }
.lbtn-ghost-blue:hover { border-color: var(--blue); transform: translateY(-3px); }
.lbtn-lg { min-height: 56px; padding: 0 32px; font-size: 17px; }
.lbtn-block { width: 100%; }

/* ── Шапка ── */
.lnav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.lnav-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.llogo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--fh); font-weight: 800; font-size: 24px; color: var(--blue); }
.llogo .tooth-ic { color: var(--blue); }
.llogo b { color: var(--mint); }
.lnav-links { display: flex; gap: 30px; }
.lnav-links a { font-weight: 500; color: var(--muted); transition: color .3s; }
.lnav-links a:hover { color: var(--blue); }
.lnav-right { display: flex; align-items: center; gap: 16px; }
.lnav-phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; color: var(--ink); }
.lnav-phone i { width: 16px; height: 16px; color: var(--mint-d); }
.lnav-burger { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; color: var(--ink); }

/* ── HERO ── */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: 100px 24px 140px; overflow: hidden;
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-d) 100%); }
.hero-grid-bg { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.07) 1.5px, transparent 1.5px); background-size: 30px 30px; opacity: .8; }
.hero-inner { position: relative; z-index: 2; max-width: 880px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(46,204,154,0.18); border: 1px solid rgba(46,204,154,0.5); color: #b9f5df; font-family: var(--fh); font-weight: 700; font-size: 14px; padding: 8px 18px; border-radius: 999px; margin-bottom: 28px; }
.hero-badge i { width: 16px; height: 16px; }
.hero-title { font-size: clamp(36px, 6vw, 64px); font-weight: 900; }
.hero-title .mint { color: var(--mint); }
.hero-sub { font-size: clamp(17px, 2.2vw, 20px); color: rgba(255,255,255,0.82); max-width: 640px; margin: 22px auto 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.hero-mini { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: center; margin-top: 40px; }
.hero-mini span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.9); }
.hero-mini i { width: 18px; height: 18px; color: var(--mint); }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 110px; z-index: 1; }

/* ── Сетки карточек ── */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Доверие ── */
.tcard { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; transition: all .3s ease; }
.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--mint); }
.tcard-ic { width: 56px; height: 56px; border-radius: 14px; background: #eaf3fb; color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.tcard-ic i { width: 28px; height: 28px; }
.tcard h3 { font-size: 20px; margin-bottom: 10px; }
.tcard p { color: var(--muted); }

/* ── Боли ── */
.pains .pcard { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 26px; transition: all .3s ease; }
.pains .pcard:hover { transform: translateY(-4px); background: rgba(255,255,255,0.07); border-color: rgba(231,76,60,0.5); }
.pcard-ic { width: 50px; height: 50px; border-radius: 12px; background: rgba(231,76,60,0.15); color: #ff7a6b; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.pcard-ic i { width: 26px; height: 26px; }
.pcard h3 { font-size: 18px; color: #fff; margin-bottom: 8px; }
.pcard p { color: rgba(255,255,255,0.65); font-size: 15px; }
.pains-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--mint); }
.pains-cta i { width: 32px; height: 32px; animation: bob 1.8s ease-in-out infinite; }
.pains-cta span { font-family: var(--fh); font-weight: 800; font-size: 22px; color: #fff; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ── Возможности ── */
.fcard { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: all .3s ease; }
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.fcard-ic { width: 52px; height: 52px; border-radius: 13px; background: #eaf3fb; color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.fcard-ic i { width: 26px; height: 26px; }
.fcard-ic .tooth-ic { width: 26px; height: 26px; }
.fcard h3 { font-size: 18px; margin-bottom: 8px; }
.fcard p { color: var(--muted); font-size: 15px; }

/* ── Живое демо ── */
.demo .dcard { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; transition: all .3s ease; display: block; }
.demo .dcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--mint); }
.dcard-ic { width: 56px; height: 56px; border-radius: 14px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.dcard-ic i { width: 28px; height: 28px; }
.dcard h3 { font-size: 20px; margin-bottom: 6px; }
.dcard p { color: var(--muted); margin-bottom: 16px; }
.dcard-go { display: inline-flex; align-items: center; gap: 6px; color: var(--mint-d); font-family: var(--fh); font-weight: 700; }
.dcard-go i { width: 18px; height: 18px; transition: transform .3s; }
.demo .dcard:hover .dcard-go i { transform: translateX(5px); }
.demo-note { text-align: center; color: var(--muted); margin-top: 28px; font-weight: 500; }

/* ── Цифры ── */
.stats .stat { text-align: center; }
.stats .stat b { display: block; font-family: var(--fh); font-weight: 900; font-size: clamp(36px, 5vw, 60px); color: #fff; line-height: 1; }
.stats .stat span { color: rgba(255,255,255,0.8); font-size: 15px; margin-top: 10px; display: block; }

/* ── Калькулятор Kaspi ── */
.calc { max-width: 560px; margin: 48px auto 0; background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 36px; }
.calc-row { margin-bottom: 24px; }
.calc-row label { display: block; font-family: var(--fh); font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.calc-row label b { color: var(--blue); }
.calc select { width: 100%; min-height: 50px; border: 1px solid var(--border); border-radius: 12px; padding: 0 14px; font-family: var(--fb); font-size: 16px; background: #fff; cursor: pointer; }
.calc input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 8px; border-radius: 999px; background: #e6ebf1; outline: none; }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--mint); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(46,204,154,0.5); cursor: pointer; }
.calc input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--mint); border: 4px solid #fff; cursor: pointer; }
.calc-ticks { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.calc-result { text-align: center; background: #eaf9f3; border: 1px solid #c3f0e0; border-radius: 14px; padding: 22px; margin-top: 6px; }
.calc-eq { color: var(--muted); font-size: 22px; vertical-align: middle; margin-right: 6px; }
.calc-result b { font-family: var(--fh); font-weight: 900; font-size: clamp(30px, 5vw, 42px); color: var(--blue); transition: transform .25s ease; display: inline-block; }
.calc-result b.pulse { transform: scale(1.12); }
.calc-per { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.calc-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 16px; }

/* ── Почему ── */
.wcard { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: all .3s ease; }
.wcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.wcard-ic { width: 52px; height: 52px; border-radius: 13px; background: #eafaf4; color: var(--mint-d); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.wcard-ic i { width: 26px; height: 26px; }
.wcard h3 { font-size: 18px; margin-bottom: 8px; }
.wcard p { color: var(--muted); font-size: 15px; }

/* ── Цены ── */
.prices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 860px; margin: 48px auto 0; }
.prcard { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 36px; transition: all .3s ease; }
.prcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.prcard-featured { border: 2px solid var(--mint); box-shadow: var(--shadow); }
.pr-tag { position: absolute; top: -14px; right: 28px; background: var(--mint); color: #06402b; font-family: var(--fh); font-weight: 700; font-size: 12px; padding: 6px 14px; border-radius: 999px; }
.pr-name { font-family: var(--fh); font-weight: 700; font-size: 16px; color: var(--muted); }
.pr-price { font-family: var(--fh); font-weight: 900; font-size: 34px; color: var(--blue); margin: 8px 0 22px; }
.pr-price span { font-size: 14px; font-weight: 500; color: var(--muted); }
.pr-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.pr-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.pr-list i { width: 18px; height: 18px; color: var(--mint-d); flex-shrink: 0; }
.pr-free { background: #eafaf4; border-radius: 10px; padding: 10px 14px; margin-bottom: 18px; font-size: 14px; }
.pr-free s { color: var(--muted); } .pr-free b { color: var(--mint-d); font-size: 17px; }
.pr-argument { display: flex; align-items: center; gap: 14px; max-width: 820px; margin: 36px auto 0; background: #fff8e8; border: 1px solid #f5e3b8; border-radius: 14px; padding: 20px 24px; font-weight: 600; }
.pr-argument i { width: 26px; height: 26px; color: #e6a700; flex-shrink: 0; }

/* ── Форма ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact-left .section-title { text-align: left; }
.contact-left .section-sub { text-align: left; margin-left: 0; }
.contact-points { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.contact-points li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.contact-points i { width: 20px; height: 20px; color: var(--mint); }
.contact-form { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 32px; }
.contact-form .field { margin-bottom: 16px; }
.contact-form label { display: block; font-family: var(--fh); font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.contact-form input { width: 100%; min-height: 50px; border: 1px solid var(--border); border-radius: 12px; padding: 0 14px; font-family: var(--fb); font-size: 16px; color: var(--ink); transition: border-color .3s; }
.contact-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27,79,138,0.12); }
.lead-msg { background: #eafaf4; color: var(--mint-d); font-weight: 600; padding: 12px 14px; border-radius: 10px; margin-bottom: 12px; }
.lead-msg.err { background: #fdecea; color: #e74c3c; }
.form-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }

/* ── Футер ── */
.lfooter { background: var(--dark); color: rgba(255,255,255,0.7); padding: 56px 0 0; }
.lfooter-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.lfooter .llogo { color: #fff; } .lfooter .llogo .tooth-ic { color: var(--mint); } .lfooter .llogo b { color: var(--mint); }
.lfooter-brand p { margin-top: 10px; font-size: 14px; max-width: 260px; }
.lfooter-col h4 { font-family: var(--fh); color: #fff; font-size: 15px; margin-bottom: 14px; }
.lfooter-col a { display: block; padding: 5px 0; font-size: 14px; transition: color .3s; }
.lfooter-col a:hover { color: var(--mint); }
.lfooter-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 24px; max-width: var(--wrap); margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: rgba(255,255,255,0.5); }
.lfooter-bottom a:hover { color: var(--mint); }

/* ── WhatsApp плавающая ── */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 200; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(37,211,102,0.5); transition: transform .3s; }
.wa-float:hover { transform: scale(1.1); }
.wa-float i { width: 28px; height: 28px; }

/* ── Появление при скролле ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.reveal-visible { opacity: 1; transform: none; }

/* ── Доступность / фокус ── */
:focus-visible { outline: 3px solid rgba(46,204,154,0.6); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Адаптив ── */
@media (max-width: 980px) {
  .cards-3, .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .lfooter-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .lnav-links { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); padding: 8px 0; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .3s; }
  .lnav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .lnav-links a { padding: 14px 24px; }
  .lnav-phone { display: none; }
  .lnav-burger { display: inline-flex; }
  .cards-3, .cards-4, .prices, .contact-grid { grid-template-columns: 1fr; }
  .contact-left .section-title, .contact-left .section-sub { text-align: center; }
  .lfooter-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: auto; padding: 80px 20px 120px; }
}
@media (max-width: 480px) {
  .lfooter-grid { grid-template-columns: 1fr; }
  .lbtn-lg { width: 100%; }
  .hero-actions { flex-direction: column; }
  .hero-actions .lbtn { width: 100%; }
}
