/* ============================================================
   ProDent Landing — палитра, типографика, базовые стили
   ============================================================ */
:root {
  --bg-page: #F4F9FB;
  --bg-surface: #FFFFFF;
  --navy-primary: #142864;
  --navy-text: #1A2542;
  --text-muted: #5C6B89;
  --mint-primary: #82CFCB;
  --mint-hover: #6BBFBB;
  --coral-accent: #F28B7D;
  --border-soft: rgba(20, 40, 100, 0.12);
  --shadow-card: 0 20px 50px rgba(20, 40, 100, 0.08);
  --shadow-float: 0 24px 48px rgba(20, 40, 100, 0.14);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at 85% 30%, #E1F2F4 0%, #F4F9FB 55%, #FFFFFF 100%);
  color: var(--navy-text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.page-wrapper {
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px 48px 64px;
}

/* ========== HEADER ========== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  position: relative;
  z-index: 50;
}
.logo { display: inline-flex; align-items: center; }
.logo img { display: block; height: 40px; width: auto; }
.nav { display: flex; gap: 36px; }
.nav a {
  text-decoration: none;
  color: var(--navy-text);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--mint-hover); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 26px;
  border: 1.5px solid var(--navy-primary);
  border-radius: 10px;
  color: var(--navy-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.25s ease;
}
.btn-outline:hover { background: var(--navy-primary); color: #FFFFFF; transform: translateY(-2px); }

/* ========== HERO ========== */
.hero {
  display: grid;
  grid-template-columns: 45% 55%;
  align-items: center;
  gap: 24px;
  margin-top: 72px;
}
.hero-title {
  font-size: clamp(40px, 4.1vw, 56px);
  line-height: 1.08;
  font-weight: 800;
  color: var(--navy-primary);
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 490px;
  margin-bottom: 36px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  background: var(--mint-primary);
  color: var(--navy-primary);
  padding: 15px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1.5px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  background: var(--mint-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(107, 191, 187, 0.35);
}
.btn-secondary {
  background: #FFFFFF;
  color: var(--navy-primary);
  border: 1.5px solid var(--border-soft);
  padding: 15px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.btn-secondary:hover { border-color: var(--navy-primary); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ========== HERO SHOWCASE (многослойная композиция) ========== */
.hero-showcase {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.dot-matrix {
  position: absolute;
  inset: 6% 4%;
  z-index: -2;
  background-image: radial-gradient(rgba(20, 40, 100, 0.16) 1.4px, transparent 1.4px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
  opacity: 0.55;
}
.ambient-glow {
  position: absolute;
  width: 70%;
  height: 70%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(130, 207, 203, 0.35) 0%, rgba(130, 207, 203, 0) 68%);
  filter: blur(28px);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* Центральное окно системы */
.dashboard-card {
  background: var(--bg-surface);
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  width: 92%;
  z-index: 2;
  overflow: hidden;
}
.window-topbar { display: flex; min-height: 360px; }
.window-sidebar {
  width: 56px;
  flex: 0 0 56px;
  background: var(--navy-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  gap: 20px;
}
.window-sidebar img {
  width: 28px; height: 28px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  margin-bottom: 8px;
}
.side-icon {
  color: rgba(255, 255, 255, 0.55);
  font-size: 17px;
  line-height: 1;
  cursor: default;
}
.side-icon.active { color: #FFFFFF; background: rgba(255, 255, 255, 0.14); padding: 8px; border-radius: 8px; }
.window-body { flex: 1; padding: 18px 20px 16px; min-width: 0; }
.window-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
}
.window-title { font-weight: 700; font-size: 15px; color: var(--navy-primary); white-space: nowrap; }
.window-search { font-size: 11px; color: var(--text-muted); background: #F2F6FA; padding: 6px 10px; border-radius: 8px; }
.legend { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.badge { font-size: 10px; padding: 4px 9px; border-radius: 6px; font-weight: 600; }
.badge b { margin-left: 4px; font-weight: 700; }
.badge.healthy { background: #EBF2F7; color: #4A607A; }
.badge.implant { background: #DFF5F3; color: #1E7E78; }
.badge.treatment { background: #FDEAE7; color: #C44D3E; }

.jaw-label {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  font-weight: 700;
  text-align: center;
  margin: 6px 0 4px;
}
.tooth-grid {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 5px;
  margin-bottom: 8px;
}
.tooth-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out);
}
.tooth-item:hover { transform: translateY(-4px) scale(1.08); }
.tooth-shape {
  width: 100%;
  height: 30px;
  border-radius: 7px 7px 10px 10px;
  background: #EBF2F7;
  border: 1.5px solid #D5E3EE;
  transition: all 0.25s var(--ease-out);
}
.tooth-item[data-status="implant"] .tooth-shape { background: #A9E4E0; border-color: #6AC7C2; }
.tooth-item[data-status="treatment"] .tooth-shape { background: #F6B2A8; border-color: #E87A6B; }
.tooth-num { font-size: 9px; color: var(--text-muted); font-weight: 600; }
.tooth-tooltip {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #F2F7FA;
  border: 1px solid var(--border-soft);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: tooltipIn 0.35s var(--ease-out);
}
.tooth-tooltip .tt-num { font-weight: 800; font-size: 14px; color: var(--navy-primary); }
@keyframes tooltipIn { from { opacity: 0; transform: translateY(6px); } }

/* Плавающие карточки (нарезанные ассеты) */
.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-float);
  z-index: 5;
  overflow: hidden;
  will-change: transform;
  transition: box-shadow 0.3s ease;
}
.floating-card img { display: block; width: 100%; height: auto; }
.floating-card:hover { box-shadow: 0 28px 60px rgba(20, 40, 100, 0.22); }
.card-booking-top { top: -22px; right: -18px; width: 250px; }
.card-booking-bottom { bottom: -30px; left: -26px; width: 300px; }
.card-analytics { bottom: -18px; right: -8px; width: 260px; }

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
/* Левитация — на внутреннем img, parallax (JS) — на самой карточке,
   чтобы анимации не перезаписывали transform друг друга. */
.float-slow img { animation: floatSlow 6s ease-in-out infinite; }
.float-medium img { animation: floatSlow 5s ease-in-out 1s infinite; }
.float-fast img { animation: floatSlow 5.5s ease-in-out 0.5s infinite; }

/* ========== СЕКЦИИ ========== */
.section { padding: 88px 0 8px; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint-hover);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy-primary);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-subtitle { font-size: 17px; line-height: 1.6; color: var(--text-muted); }

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.bento-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 30px;
  min-height: 210px;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}
.bento-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mint-primary), var(--coral-accent));
  opacity: 0;
  transition: opacity 0.35s ease;
}
.bento-card:hover { transform: translateY(-4px); box-shadow: 0 28px 56px rgba(20, 40, 100, 0.13); }
.bento-card:hover::before { opacity: 1; }
.bento-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.bento-icon.mint { background: #DFF5F3; }
.bento-icon.navy { background: #E7ECF8; }
.bento-icon.coral { background: #FDEAE7; }
.bento-card h3 { font-size: 19px; font-weight: 700; color: var(--navy-primary); margin-bottom: 10px; }
.bento-card p { font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.bento-tag {
  position: absolute;
  right: 24px; top: 26px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ========== ТАРИФЫ ========== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-out);
}
.price-card:hover { transform: translateY(-4px); }
.price-card.featured { border-color: var(--mint-primary); box-shadow: 0 24px 56px rgba(107, 191, 187, 0.22); }
.popular {
  position: absolute;
  top: -12px; left: 28px;
  background: var(--mint-primary);
  color: var(--navy-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
}
.price-card h3 { font-size: 20px; font-weight: 700; color: var(--navy-primary); margin-bottom: 10px; }
.price { font-size: 28px; font-weight: 800; color: var(--navy-primary); margin-bottom: 6px; }
.price span { font-size: 15px; font-weight: 500; color: var(--text-muted); }
.price-note { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; min-height: 18px; }
.price-card ul { list-style: none; margin-bottom: 28px; flex: 1; }
.price-card li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--navy-text);
}
.price-card li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  color: var(--mint-hover);
  font-weight: 800;
}

/* CTA-баннер */
.cta-banner {
  margin-top: 28px;
  background: var(--navy-primary);
  border-radius: 20px;
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 24px 56px rgba(20, 40, 100, 0.22);
}
.cta-banner h2 { color: #FFFFFF; font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.cta-banner p { color: rgba(255, 255, 255, 0.72); font-size: 15px; }

/* ========== СКАЧИВАНИЕ ПРИЛОЖЕНИЯ ========== */
.download-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 44px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.download-info .section-title { font-size: clamp(26px, 2.6vw, 36px); }
.download-info .section-subtitle { margin-bottom: 24px; max-width: 540px; }
.download-direct { margin-bottom: 24px; }

.store-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: #F7FAFC;
  color: var(--navy-primary);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.1;
}
.store-badge span { display: flex; flex-direction: column; }
.store-badge small { font-size: 9px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.04em; }
.store-badge.stub { opacity: 0.55; cursor: not-allowed; }

.download-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: linear-gradient(160deg, #F4FBFC, #FFFFFF);
}
.download-qr img { width: 168px; height: 168px; display: block; border-radius: 8px; }
.download-qr span { font-size: 12px; font-weight: 600; color: var(--text-muted); }

/* ========== FOOTER ========== */
.footer {
  margin-top: 88px;
  border-top: 1px solid var(--border-soft);
  padding-top: 40px;
}
.footer-top { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-top .logo img { height: 36px; }
.footer-top p { color: var(--text-muted); font-size: 14px; }
.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--navy-primary); }

/* ========== SCROLL REVEAL ========== */
.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-scale {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-up.in, .reveal-scale.in { opacity: 1; transform: none; }

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1200px) {
  .card-booking-top { right: 0; }
  .card-booking-bottom { left: -10px; }
  .card-analytics { right: 0; }
}

@media (max-width: 992px) {
  .page-wrapper { padding: 20px 28px 48px; }
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 48px; margin-top: 48px; }
  .hero-content { text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-showcase { min-height: auto; display: grid; gap: 20px; }
  .dashboard-card { width: 100%; }
  /* Плавающие виджеты аккуратно встают в сетку под основным окном */
  .floating-card {
    position: relative;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    transform: none !important;
    animation: none !important;
  }
  .dot-matrix, .ambient-glow { inset: 0; }
  .bento-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .cta-banner { padding: 32px 28px; }
  .download-card { grid-template-columns: 1fr; padding: 32px 28px; gap: 28px; text-align: center; }
  .download-info .section-subtitle { margin-left: auto; margin-right: auto; }
  .store-badges { justify-content: center; }
}

@media (max-width: 560px) {
  .page-wrapper { padding: 16px 18px 40px; }
  .logo img { height: 34px; }
  .btn-outline { padding: 9px 18px; font-size: 14px; }
  .hero-title { font-size: 34px; }
  .hero-subtitle { font-size: 16px; }
  .hero-buttons { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; }
  .window-sidebar { width: 40px; flex-basis: 40px; }
  .window-body { padding: 12px; }
  .tooth-grid { gap: 3px; }
  .tooth-shape { height: 24px; }
  .window-search { display: none; }
  .section { padding-top: 64px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal-up, .reveal-scale { opacity: 1; transform: none; }
}
