/* MedSina — стили персональных лендингов врачей.
   Один файл на все страницы; акцентный цвет приходит из --accent в <style> страницы. */

:root {
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-2: #f8fafc;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, .15);
  --accent: #2563eb;
  --accent-soft: #2563eb14;
  --accent-line: #2563eb33;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.lp-wrap { max-width: 940px; margin: 0 auto; padding: 0 20px; }

/* ── шапка ─────────────────────────────────────────── */

.lp-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; max-width: 1140px; margin: 0 auto; padding: 18px 20px;
}
.lp-logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none;
}
.lp-logo span:last-child { color: var(--accent); }
.lp-logo-icon {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: var(--accent); color: #fff; font-size: 18px;
}
.lp-nav nav { display: flex; gap: 22px; flex-wrap: wrap; }
.lp-nav nav a { color: var(--text-2); font-weight: 500; font-size: 15px; }
.lp-nav nav a:hover { color: var(--accent); text-decoration: none; }

/* ── герой ─────────────────────────────────────────── */

.lp-hero { position: relative; overflow: hidden; padding: 56px 20px 64px; }
.lp-hero-bg {
  position: absolute; inset: -40px;
  background-size: cover; background-position: center;
  filter: blur(48px) saturate(1.15); opacity: .5; transform: scale(1.15);
}
.lp-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.94) 70%, #fff 100%);
}
.lp-hero-inner {
  position: relative; z-index: 1;
  max-width: 940px; margin: 0 auto;
  display: flex; align-items: center; gap: 36px; flex-wrap: wrap;
}
.lp-avatar {
  width: 200px; height: 200px; border-radius: 50%; object-fit: cover;
  border: 5px solid #fff; box-shadow: var(--shadow-lg); flex-shrink: 0;
  background: var(--bg-2);
}
.lp-hero-text { flex: 1; min-width: 280px; }
.lp-eyebrow {
  margin: 0 0 6px; font-size: 14px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent);
}
.lp-hero h1 { margin: 0 0 10px; font-size: clamp(28px, 5vw, 42px); line-height: 1.15; font-weight: 800; }
.lp-tagline { margin: 0 0 18px; font-size: 18px; color: var(--text-2); }

.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.lp-chip {
  padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line);
}

/* ── кнопки ────────────────────────────────────────── */

.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius-sm); font: inherit;
  font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.lp-btn:hover { transform: translateY(-1px); text-decoration: none; }
.lp-btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px var(--accent-line); }
.lp-btn-primary:hover { box-shadow: 0 10px 26px var(--accent-line); }
.lp-btn-ghost { background: #fff; color: var(--text); border-color: var(--border); }
.lp-btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.lp-btn-full { width: 100%; margin-top: 6px; }
.lp-btn[disabled] { opacity: .6; cursor: default; transform: none; }

/* ── секции ────────────────────────────────────────── */

.lp-section { padding: 44px 0; border-top: 1px solid var(--border); }
.lp-section:first-child { border-top: 0; }
.lp-section h2 { margin: 0 0 22px; font-size: clamp(22px, 3.4vw, 28px); font-weight: 700; }

.lp-prose p { margin: 0 0 16px; color: var(--text-2); font-size: 17px; }
.lp-prose p:last-child { margin-bottom: 0; }

.lp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.lp-tag {
  padding: 5px 12px; border-radius: 8px; font-size: 13px;
  background: var(--bg-2); color: var(--text-2); border: 1px solid var(--border);
}

.lp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.lp-card {
  padding: 22px; border-radius: var(--radius); background: var(--bg-2);
  border: 1px solid var(--border); transition: border-color .15s ease, transform .15s ease;
}
.lp-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.lp-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.lp-card p { margin: 0; color: var(--text-2); font-size: 15px; }

.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lp-step { display: flex; gap: 16px; align-items: flex-start; }
.lp-step-num {
  flex-shrink: 0; display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 16px;
}
.lp-step h3 { margin: 6px 0 4px; font-size: 17px; font-weight: 600; }
.lp-step p { margin: 0; color: var(--text-2); font-size: 15px; }

/* ── клиника и карта ───────────────────────────────── */

.lp-clinic { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.lp-clinic-info h3 { margin: 0 0 10px; font-size: 18px; font-weight: 600; }
.lp-addr { margin: 0 0 10px; color: var(--text-2); }
.lp-phone a { font-weight: 600; font-size: 17px; }
.lp-muted { color: var(--text-3); }
.lp-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.lp-map iframe { width: 100%; height: 260px; border: 0; display: block; }
.lp-map-link { display: block; padding: 10px 14px; font-size: 14px; background: var(--bg-2); }

/* ── FAQ ───────────────────────────────────────────── */

.lp-faq { display: grid; gap: 10px; }
.lp-faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-2); overflow: hidden;
}
.lp-faq-item summary {
  padding: 16px 20px; cursor: pointer; font-weight: 600; font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary::after {
  content: '+'; color: var(--accent); font-size: 22px; font-weight: 400; line-height: 1; flex-shrink: 0;
}
.lp-faq-item[open] summary::after { content: '−'; }
.lp-faq-item[open] summary { border-bottom: 1px solid var(--border); }
.lp-faq-a { padding: 14px 20px 18px; }
.lp-faq-a p { margin: 0; color: var(--text-2); font-size: 15px; }

/* ── «это ваша страница» ───────────────────────────── */

.lp-claim-block {
  margin: 12px 0 0; padding: 32px; border-radius: var(--radius);
  background: var(--accent-soft); border: 1px solid var(--accent-line); border-top: 0;
}
.lp-claim-block h2 { margin-bottom: 12px; }
.lp-claim-lead { margin: 0 0 20px; color: var(--text-2); font-size: 16px; max-width: 620px; }

.lp-disclaimer {
  margin: 32px 0 48px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--bg-2); color: var(--text-3); font-size: 13px; line-height: 1.6;
}

/* ── подвал ────────────────────────────────────────── */

.lp-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 36px 0; }
.lp-footer-inner { display: grid; gap: 16px; justify-items: center; text-align: center; }
.lp-footer nav { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.lp-footer nav a { color: var(--text-2); font-size: 14px; }
.lp-copy { margin: 0; color: var(--text-3); font-size: 13px; }

/* ── модалка ───────────────────────────────────────── */

.lp-modal {
  border: 0; border-radius: var(--radius); padding: 0; width: min(460px, calc(100vw - 32px));
  box-shadow: var(--shadow-lg); color: var(--text);
}
.lp-modal::backdrop { background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); }
.lp-modal-inner { position: relative; padding: 28px; display: grid; gap: 12px; }
.lp-modal-inner h3 { margin: 0; font-size: 20px; font-weight: 700; }
.lp-modal-lead { margin: 0 0 6px; color: var(--text-2); font-size: 15px; }
.lp-modal-inner label { display: grid; gap: 5px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.lp-modal-inner input, .lp-modal-inner textarea {
  padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font: inherit; font-size: 16px; color: var(--text); background: #fff; resize: vertical;
}
.lp-modal-inner input:focus, .lp-modal-inner textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.lp-modal-x {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
  border: 0; border-radius: 8px; background: var(--bg-2); color: var(--text-2);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.lp-modal-x:hover { background: var(--border); }
.lp-modal-note { margin: 0; color: var(--text-3); font-size: 12px; line-height: 1.5; }
.lp-modal-ok { padding: 8px 0; color: #16a34a; font-weight: 600; font-size: 15px; }
.lp-modal-err { padding: 8px 0; color: #dc2626; font-weight: 500; font-size: 14px; }

/* ── мобильные ─────────────────────────────────────── */

@media (max-width: 720px) {
  .lp-nav { flex-direction: column; gap: 12px; padding: 14px 20px; }
  .lp-nav nav { gap: 16px; }
  .lp-hero { padding: 32px 20px 40px; }
  .lp-hero-inner { flex-direction: column; text-align: center; gap: 22px; }
  .lp-avatar { width: 150px; height: 150px; }
  .lp-chips, .lp-cta { justify-content: center; }
  .lp-clinic { grid-template-columns: 1fr; }
  .lp-section { padding: 34px 0; }
  .lp-claim-block { padding: 24px 20px; }
  .lp-btn { width: 100%; }
  .lp-step-num { width: 32px; height: 32px; font-size: 14px; }
}
