﻿:root {
  --primary: #25b8a8;
  --accent: #e56773;
  --bg: #f6f7f9;
  --text: #222;
  --muted: #6b7280;
  --border: #e5e7eb;
  --footer-bg: #1d1f27;
  --white: #fff;
}
* { box-sizing: border-box; }
html, body { margin:0; padding:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; background: var(--bg); color: var(--text); }

.container { max-width: 960px; margin: 0 auto; padding: 16px; }

/* Header */
.header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; background: var(--white); border-bottom:1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.brand { display:flex; align-items:center; gap:12px; text-decoration:none; color: inherit; }
.brand img { height: 36px; }
.brand .title { font-weight: 700; color: var(--primary); }
.menu-btn { background:none; border:1px solid var(--border); border-radius:8px; padding:8px 10px; font-size:16px; color: var(--muted); cursor:pointer; width:36px; height:36px; display:flex; align-items:center; justify-content:center; }
/* Menu icons */
.menu-btn .icon { position: relative; width:18px; height:2px; background: currentColor; border-radius:2px; display:inline-block; }
.menu-btn .icon::before, .menu-btn .icon::after { content:""; position:absolute; left:0; width:18px; height:2px; background: currentColor; border-radius:2px; }
.menu-btn .icon::before { top:-6px; }
.menu-btn .icon::after  { top: 6px; }
.menu-btn.close .icon { background: transparent; }
.menu-btn.close .icon::before { transform: rotate(45deg); top:0; }
.menu-btn.close .icon::after  { transform: rotate(-45deg); top:0; }
/* Header LK button (moved CTA) */
.header .btn.lk { font-weight:500; font-size:14px; display:flex; align-items:center; gap:.25rem; padding:.5rem; }
.header .btn.lk .icon { width:16px; height:16px; fill: currentColor; }

/* Overlay menu */
.overlay { position: fixed; inset:0; background: rgba(0,0,0,.45); display:none; z-index:60; }
.overlay.active { display:block; }
.drawer { position: absolute; right:0; top:0; height:100%; width: 280px; background: var(--white); box-shadow: none; padding:16px; }
.drawer h3 { margin:0 0 12px; }
.nav a { display:block; padding:10px 8px; border-radius:8px; color: inherit; text-decoration:none; box-shadow: none; }
.nav a:hover { background: #f3f4f6; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--primary), #4dd6c8); color:#fff; border-radius:16px; padding:20px; margin:16px; }
.hero h1 { margin:0 0 8px; font-size:22px; }
.hero p { margin:0; opacity:.95; }

/* Carousel */
.section { padding: 8px 16px; }
.section h2 { margin: 8px 0 12px; font-size:18px; }
.carousel { display:flex; gap:12px; overflow:auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.carousel .card { flex: 0 0 calc((100% - 24px)/3); max-width: calc((100% - 24px)/3); }
.card { background: var(--white); border:1px solid var(--border); border-radius:12px; overflow:hidden; scroll-snap-align: start; }
.card img { width:100%; height:140px; object-fit:cover; background:#eaeaea; }
.card .body { padding:14px; }
.card .title { font-weight:800; font-size:16px; margin:0 0 6px; text-transform:uppercase; letter-spacing:.2px; }
.card .meta { color: var(--muted); font-size:12.5px; }
.card a { text-decoration:none; color: inherit; }

/* Grid */
.grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap:12px; }

/* Doctor card refinements */
.doc-spec { color: var(--muted); text-transform:uppercase; font-size:11px; letter-spacing:.3px; margin-bottom:6px; }
.doc-grade { color:#48515b; margin-bottom:8px; font-size:13px; }
.doc-clinic { color:#6b7280; font-size:12.5px; margin: 2px 0 8px; }
.doc-foot { display:flex; justify-content:space-between; align-items:center; margin-top:10px; font-size:13px; }
.doc-exp { color:#475569; }
.doc-exp b { color: var(--primary); }
.doc-more { color: var(--accent); font-weight:700; }

/* Promotion cards */
.promo-card { position:relative; }
.promo-badge { position:absolute; left:12px; top:12px; background: var(--accent); color:#fff; padding:6px 10px; border-radius:8px; font-weight:700; font-size:12px; }
.promo-discount { position:absolute; right:12px; top:54px; background: var(--primary); color:#fff; padding:10px 14px; border-radius:10px; font-weight:800; box-shadow:none; }
.price-row { display:flex; gap:10px; align-items:center; margin:8px 0 6px; }
.old-price { color:#94a3b8; text-decoration: line-through; }
.new-price { background: var(--primary); color:#fff; padding:6px 10px; border-radius:8px; font-weight:800; }
.date-row { display:flex; align-items:center; gap:6px; color:#64748b; font-size:12.5px; margin:6px 0 8px; }

/* Contacts */
.contact-title { color: var(--accent); font-weight:800; text-transform:uppercase; margin:0 0 8px; }
.contact-card img { height:180px; }
.section-h { font-weight:800; margin:12px 0 6px; }

/* Home contacts preview */
.mini-contacts { display:flex; gap:12px; overflow:auto; padding-bottom:8px; }
.mini-contacts .card { flex: 0 0 calc((100% - 24px)/3); max-width: calc((100% - 24px)/3); }
.mini-contacts img { height:120px; object-fit:cover; width:100%; background:#eaeaea; }

@media (max-width: 700px){
  .carousel .card, .mini-contacts .card { flex-basis: 100%; max-width: 100%; }
}

/* Filter */
.filters { display:flex; gap:10px; align-items:center; margin: 8px 0 16px; }
select, input[type="search"] { padding:8px; border:1px solid var(--border); border-radius:8px; background: var(--white); }

/* Footer */
.footer { background: var(--footer-bg); color: #cbd5e1; margin-top:28px; }
.footer .container { padding: 20px 16px; }
.footer a { color: #9bd4cc; text-decoration:none; box-shadow: none; }
.footer .legal { font-size: 12px; color: #94a3b8; margin-top:8px; }
/* Requisites layout */
.footer .legal .reqs { display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap:12px; margin-top:8px; }
.footer .legal .req { display:grid; gap:4px; padding:12px; border:1px solid rgba(255,255,255,.08); border-radius:10px; background: rgba(255,255,255,.02); }
.footer .legal .req > div:first-child { margin-bottom:4px; }
.footer .legal .req b { color:#e2e8f0; }
/* Footer bottom row */
.footer-bottom { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:6px; margin-top:16px; padding-top:12px; border-top:1px solid rgba(255,255,255,.08); font-size:12.5px; }
.footer .copy { color:#94a3b8; font-size:12.5px; }
.footer-bottom a { color:#9bd4cc; text-decoration:none; }
.footer-bottom a:hover { text-decoration:underline; }
/* ensure requisites always visible */

/* Utilities */
.muted { color: var(--muted); }
.link { color: var(--primary); text-decoration:none; box-shadow: none; }
.link:hover { text-decoration:underline; }

/* Buttons */
.btn { display:inline-block; background: var(--primary); color:#fff; font-weight:700; border:none; border-radius:10px; padding:10px 14px; cursor:pointer; text-decoration:none; box-shadow: none; }
.btn.secondary { background: var(--accent); color:#fff; }
.btn.ghost { background: transparent; border:1px solid var(--border); color: var(--text); }
.actions { display:flex; gap:10px; margin-top:10px; }

/* Modal */
.modal-overlay { position: fixed; inset:0; background: rgba(0,0,0,.5); display:none; z-index:80; }
.modal-overlay.active { display:block; }
.modal { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:min(560px,92vw); background:#fff; border-radius:14px; border:1px solid var(--border); box-shadow:none; padding:16px; }
.modal h3 { margin:0 0 10px; }
.form-row { display:flex; gap:10px; margin:8px 0; }
.form-row input { flex:1; padding:10px; border:1px solid var(--border); border-radius:10px; }
.form-note { font-size:12px; color: #667085; }

/* soft background */
body { background: linear-gradient(180deg, #f8fafc 0%, #f2f7f6 100%); }

/* Clinic chips */
.chips { display:flex; flex-wrap:wrap; gap:6px; margin:6px 0 8px; }
.chip { background:#eceff1; color:#415a60; border:1px solid #dde4e7; padding:2px 8px; font-size:11.5px; border-radius:999px; }

/* CTA */
.cta-center { display:flex; justify-content:center; }
.btn .icon { width:16px; height:16px; vertical-align:-2px; fill:currentColor; }
