/* Public site CSS — dikul.net style */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --blue: #0055A5; --blue-dark: #003d7a; --blue-light: #1a73c8;
  --blue-soft: rgba(0,85,165,.07); --blue-mid: rgba(0,85,165,.18);
  --accent: #E8521A; --text: #1a2332; --sub: #5a6a7e; --dim: #9aa5b4;
  --border: #dde3ec; --bg: #f0f4f8; --white: #fff;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body { font-family: 'Inter', 'Segoe UI', sans-serif; color: var(--text); font-size: 15px; line-height: 1.65; background: var(--white); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── HEADER ── */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--border); box-shadow: 0 2px 12px rgba(0,85,165,.07); }
.header-top { background: var(--blue); padding: 6px 0; }
.header-top-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
.header-top-text { font-size: 12px; color: rgba(255,255,255,.85); }
.header-top-phone { font-size: 13px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 6px; }
.header-main { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 66px; display: flex; align-items: center; gap: 32px; }
.site-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.site-logo-icon { width: 40px; height: 40px; background: var(--blue); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 14px; }
.site-logo-name { font-size: 17px; font-weight: 800; color: var(--text); line-height: 1.15; }
.site-logo-sub  { font-size: 10px; color: var(--sub); font-weight: 500; }
.site-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.site-nav a { padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--sub); transition: background .15s, color .15s; white-space: nowrap; }
.site-nav a:hover { background: var(--blue-soft); color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-book { background: var(--accent); color: #fff; padding: 9px 22px; border-radius: 8px; font-size: 14px; font-weight: 700; transition: background .15s; }
.btn-book:hover { background: #c94515; }
.btn-login { background: var(--blue-soft); color: var(--blue); border: 1.5px solid var(--blue-mid); padding: 8px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; transition: all .15s; }
.btn-login:hover { background: var(--blue); color: #fff; }
.header-collapse { display: flex; align-items: center; gap: 32px; flex: 1; }
.mob-burger-pub { display: none; background: none; border: none; cursor: pointer; color: var(--blue); padding: 6px; margin-left: auto; }

/* ── HERO ── */
.hero { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, #1a73c8 100%); padding: 80px 0 90px; overflow: hidden; position: relative; }
.hero::after { content: ''; position: absolute; right: -80px; top: -80px; width: 500px; height: 500px; border-radius: 50%; background: rgba(255,255,255,.04); pointer-events: none; }
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 420px; gap: 60px; align-items: center; }
.hero-announce { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); color: #fff; font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 99px; margin-bottom: 18px; line-height: 1.4; }
.hero-announce-dot { width: 7px; height: 7px; border-radius: 50%; background: #ffd166; flex-shrink: 0; }
.hero-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-bottom: 14px; }
.hero-title { font-size: 46px; font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 20px; }
.hero-title span { color: #ffd166; }
.hero-desc { font-size: 17px; color: rgba(255,255,255,.82); line-height: 1.7; margin-bottom: 36px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-btn-primary { background: var(--accent); color: #fff; padding: 14px 34px; border-radius: 10px; font-size: 16px; font-weight: 700; transition: background .15s; }
.hero-btn-primary:hover { background: #c94515; }
.hero-btn-secondary { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.3); padding: 13px 28px; border-radius: 10px; font-size: 15px; font-weight: 600; transition: background .15s; }
.hero-btn-secondary:hover { background: rgba(255,255,255,.22); }
.hero-card { background: rgba(255,255,255,.1); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.18); border-radius: 20px; padding: 28px; }
.hero-card-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 20px; }
.hero-steps { display: flex; flex-direction: column; gap: 14px; }
.hero-step { display: flex; align-items: flex-start; gap: 14px; }
.hero-step-num { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-step-text { font-size: 14px; color: rgba(255,255,255,.88); line-height: 1.5; }
.hero-step-text strong { color: #fff; display: block; margin-bottom: 2px; }

/* ── SECTION ── */
.section { padding: 72px 0; }
.section-alt { background: var(--bg); }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.section-title { font-size: 34px; font-weight: 800; color: var(--text); margin-bottom: 14px; }
.section-sub { font-size: 16px; color: var(--sub); max-width: 560px; margin: 0 auto; }

/* ── SPECIALTY CARDS ── */
.specialty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.specialty-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 28px 20px; text-align: center; transition: box-shadow .2s, transform .2s, border-color .2s; cursor: pointer; }
.specialty-card:hover { box-shadow: 0 8px 30px rgba(0,85,165,.12); transform: translateY(-3px); border-color: var(--blue-mid); }
.specialty-icon { width: 60px; height: 60px; background: var(--blue-soft); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 28px; }
.specialty-name { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.specialty-desc { font-size: 13px; color: var(--sub); line-height: 1.5; }

/* ── DOCTOR CARDS ── */
.doctors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.doctor-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; transition: box-shadow .22s, transform .22s;
  display: flex; flex-direction: column; text-decoration: none; color: var(--text);
}
.doctor-card:hover { box-shadow: 0 10px 36px rgba(0,85,165,.13); transform: translateY(-4px); border-color: var(--blue-mid); }

/* Portrait photo */
.doctor-card-photo {
  width: 100%; aspect-ratio: 3/4; position: relative; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(160deg, #dce8f7 0%, #c8daf0 100%);
  display: flex; align-items: center; justify-content: center;
}
.doctor-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.doctor-card-photo-icon { font-size: 80px; opacity: .45; user-select: none; }
.doctor-card-photo-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,30,70,.55) 0%, transparent 100%);
  padding: 14px 14px 12px;
}
.doctor-card-specialty {
  display: inline-block; background: rgba(255,255,255,.18); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.3); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 99px;
}

/* Card body */
.doctor-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.doctor-card-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 5px; line-height: 1.35; }
.doctor-card-title { font-size: 11px; color: var(--blue); font-weight: 600; margin-bottom: 9px; line-height: 1.5; }

/* Badges row */
.doctor-card-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.dc-badge { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 99px; white-space: nowrap; line-height: 1.6; }
.dc-badge-high  { background: #e8f0fe; color: #1a55a0; }
.dc-badge-phd   { background: #f3e8ff; color: #6b21a8; }
.dc-badge-cat1  { background: #dcfce7; color: #166534; }
.dc-badge-exp   { background: var(--bg); color: var(--sub); }

/* Bio */
.doctor-card-bio {
  font-size: 12px; color: var(--sub); line-height: 1.65; margin-bottom: 11px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

/* Certificates */
.doctor-card-certs { margin-bottom: 12px; display: flex; flex-direction: column; gap: 4px; }
.doctor-card-cert {
  font-size: 11px; color: var(--sub); display: flex; align-items: baseline; gap: 6px; line-height: 1.4;
}
.doctor-card-cert::before {
  content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%;
  background: var(--blue); flex-shrink: 0; margin-top: 5px;
}

/* Footer */
.doctor-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border); margin-top: auto; }
.doctor-card-price { font-size: 16px; font-weight: 800; color: var(--text); line-height: 1; }
.doctor-card-price span { font-size: 11px; font-weight: 400; color: var(--sub); display: block; margin-top: 2px; }
.doctor-card-btn {
  background: var(--blue); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 6px; border-radius: 8px; transition: background .15s; white-space: nowrap;
}
.doctor-card-btn:hover { background: var(--blue-dark); }

/* ── ADVANTAGES ── */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.adv-item { display: flex; gap: 18px; align-items: flex-start; }
.adv-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--blue-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.adv-icon svg { width: 24px; height: 24px; color: var(--blue); }
.adv-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.adv-text  { font-size: 13px; color: var(--sub); line-height: 1.6; }

/* ── HOW IT WORKS ── */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.steps-grid::before { content: ''; position: absolute; top: 26px; left: 8%; right: 8%; height: 2px; background: var(--blue-mid); z-index: 0; }
.step-item { text-align: center; position: relative; z-index: 1; }
.step-num { width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; border: 3px solid var(--white); box-shadow: 0 0 0 3px var(--blue-mid); }
.step-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.step-text  { font-size: 13px; color: var(--sub); }

/* ── CTA BANNER ── */
.cta-section { background: var(--blue); padding: 60px 0; }
.cta-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-title { font-size: 28px; font-weight: 800; color: #fff; }
.cta-sub   { font-size: 15px; color: rgba(255,255,255,.75); margin-top: 6px; }

/* ── FOOTER ── */
.site-footer { background: #0a1a2e; padding: 48px 0 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo-icon { width: 34px; height: 34px; background: var(--blue); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 12px; }
.footer-logo-name { font-size: 15px; font-weight: 700; color: #fff; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,.45); line-height: 1.7; }
.footer-col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.4); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 8px; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.3); }

/* ── FILTER BAR ── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; align-items: center; }
.filter-chip { padding: 7px 18px; border-radius: 99px; border: 1.5px solid var(--border); background: var(--white); font-size: 13px; font-weight: 600; color: var(--sub); cursor: pointer; transition: all .15s; white-space: nowrap; }
.filter-chip:hover, .filter-chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.search-input { flex: 1; min-width: 200px; padding: 9px 16px; border: 1.5px solid var(--border); border-radius: 99px; font-size: 14px; outline: none; transition: border-color .15s; }
.search-input:focus { border-color: var(--blue); }

/* ── DOCTOR DETAIL ── */
.doctor-detail-head { display: flex; gap: 32px; align-items: flex-start; margin-bottom: 32px; background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.doctor-detail-photo { width: 160px; height: 160px; border-radius: 14px; object-fit: cover; flex-shrink: 0; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 64px; }
.doctor-detail-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.doctor-detail-name { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.doctor-detail-specialty { font-size: 14px; color: var(--blue); font-weight: 600; margin-bottom: 10px; }
.doctor-detail-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.meta-pill { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--sub); }
.doctor-detail-price { font-size: 22px; font-weight: 800; color: var(--text); margin-top: 16px; }
.doctor-detail-price span { font-size: 14px; font-weight: 400; color: var(--sub); }

/* ── BOOK FORM ── */
.book-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 28px; max-width: 480px; }
.book-card-title { font-size: 18px; font-weight: 800; margin-bottom: 20px; }

/* ── RESPONSIVE ── */
/* ── DOCTOR DETAIL LAYOUT ── */
.dd-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }

/* ── RESPONSIVE ── */
@media(max-width: 1100px) {
  .specialty-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .doctors-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Планшет / мобильное меню */
@media(max-width: 900px) {
  .header-main { gap: 12px; height: 60px; position: relative; }
  .mob-burger-pub { display: flex; }
  /* Навигация и кнопки сворачиваются в выпадающее меню */
  .header-collapse {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 6px;
    background: var(--white); border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 28px rgba(0,85,165,.12);
    padding: 12px 16px;
  }
  .site-header.nav-open .header-collapse { display: flex; }
  .site-nav { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 12px 14px; font-size: 15px; }
  .header-actions { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 4px; }
  .btn-login, .btn-book { text-align: center; padding: 12px; font-size: 15px; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .hero-title { font-size: 32px; }
  .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: 1fr; }
  .dd-layout { grid-template-columns: 1fr; }
}

@media(max-width: 640px) {
  .header-top-text { display: none; }
  .header-top-inner { justify-content: center; }
  .hero { padding: 48px 0 56px; }
  .hero-title { font-size: 26px; }
  .hero-desc { font-size: 15px; }
  .hero-btns { flex-direction: column; }
  .hero-btn-primary, .hero-btn-secondary { width: 100%; text-align: center; }
  .section { padding: 44px 0; }
  .section-inner { padding: 0 16px; }
  .specialty-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 24px; }
  .section-header { margin-bottom: 32px; }
  .cta-inner { text-align: center; justify-content: center; flex-direction: column; }
  .cta-title { font-size: 22px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .doctor-detail-head { flex-direction: column; }
  .doctor-detail-photo { width: 100%; height: 380px; }
}

@media(max-width: 480px) {
  .doctors-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .doctor-card-body { padding: 12px 12px 14px; }
  .doctor-card-bio, .doctor-card-certs { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .header-main { padding: 0 16px; }
  .header-top-inner { padding: 0 16px; }
  .site-logo img { height: 34px !important; }
}

/* ── HOME: stats strip + specialties (2 cols) ── */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.sp-2col { grid-template-columns: repeat(2, 1fr); max-width: 680px; margin: 0 auto; }
@media(max-width: 640px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .sp-2col { grid-template-columns: 1fr; }
}
