/* ============ Base & variables ============ */
:root{
  --navy: #0b3a74;
  --navy-dark: #0c2c57;
  --green: #12994a;
  --green-light: #e6f6ec;
  --ink: #16212e;
  --muted: #5b6b7c;
  --bg-alt: #f4f8fb;
  --border: #e4ebf1;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(11,58,116,0.08);
  --container: 1180px;
  font-size: 16px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ margin:0 0 .5em; line-height:1.2; font-weight:800; }
p{ margin:0 0 1em; color: var(--muted); }

.container{
  width:100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow{
  display:inline-block;
  color: var(--green);
  font-weight:700;
  font-size:.85rem;
  letter-spacing:.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ============ Buttons ============ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight:700;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary{ background: var(--green); color:#fff; box-shadow: 0 8px 20px rgba(18,153,74,.3); }
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 12px 26px rgba(18,153,74,.4); }
.btn-ghost{ background: transparent; border-color: var(--border); color: var(--navy); }
.btn-ghost:hover{ border-color: var(--navy); }
.btn-outline{ background:#fff; border-color: var(--navy); color: var(--navy); margin-top: 8px; }
.btn-outline:hover{ background: var(--navy); color:#fff; }
.btn-light{ background:#fff; color: var(--navy); }
.btn-light:hover{ transform: translateY(-2px); }
.btn-lg{ padding: 15px 30px; font-size: 1rem; }
.btn-block{ width:100%; }

/* ============ Header ============ */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  height: 84px; gap: 24px;
}
.logo{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.logo-img{ height: 54px; width:auto; }
.logo-footer .logo-img{ height: 64px; }
.logo-text{
  font-weight:800; font-size:1.05rem; color: var(--navy);
  line-height:1.1; display:flex; flex-direction:column;
}
.logo-text strong{ color: var(--green); }
.logo-text small{ font-weight:600; font-size:.6rem; color: var(--muted); letter-spacing:.04em; text-transform:uppercase; }
.logo-text.light{ color:#fff; }

.main-nav{ display:flex; gap: 24px; }
.main-nav a{ white-space:nowrap; }
.main-nav a{ font-weight:600; font-size:.95rem; color: var(--ink); position:relative; padding: 6px 0; }
.main-nav a:hover{ color: var(--navy); }
.main-nav a::after{
  content:''; position:absolute; left:0; bottom:0; height:2px; width:0; background: var(--green);
  transition: width .2s ease;
}
.main-nav a:hover::after{ width:100%; }

.header-actions{ display:flex; align-items:center; gap: 16px; }

.lang-switch{ display:flex; border:1px solid var(--border); border-radius: 999px; padding: 3px; gap:2px; }
.lang-switch button{
  border:none; background:none; padding: 6px 12px; border-radius: 999px; font-weight:700; font-size:.8rem;
  color: var(--muted); cursor:pointer; transition: background .15s ease, color .15s ease;
}
.lang-switch button.active{ background: var(--navy); color:#fff; }
.header-phone{ display:flex; align-items:center; gap:6px; white-space:nowrap; font-weight:700; color: var(--navy); font-size:.95rem; }
.header-phone svg{ color: var(--green); }

.burger{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:38px; height:38px; background:none; border:none; cursor:pointer;
}
.burger span{ display:block; height:2px; background: var(--navy); border-radius:2px; }

/* ============ Hero ============ */
.hero{ padding: 72px 0 40px; overflow:hidden; }
.hero-inner{ display:grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items:center; }
.hero h1{ font-size: clamp(2.1rem, 4vw, 3.2rem); color: var(--navy); letter-spacing:-.01em; }
.hero h1 .accent{ color: var(--green); }
.hero .lead{ font-size:1.1rem; max-width: 520px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin: 26px 0 40px; }
.hero-stats{ display:flex; gap: 36px; flex-wrap:wrap; }
.stat strong{ display:block; font-size:1.6rem; color: var(--navy); font-weight:800; }
.stat .star{ color:#f5b014; font-size:1.1rem; }
.stat small{ color: var(--muted); font-size:.85rem; }
.hero-art{ position:relative; width:100%; max-width: 480px; aspect-ratio: 1; margin-left:auto; }
.hero-emblem{
  position:absolute; inset: 6%; border-radius:50%;
  background: radial-gradient(circle at 50% 50%, #fff 0 58%, #eaf2fc 58.5% 100%);
  display:flex; align-items:center; justify-content:center;
  box-shadow: inset 0 0 0 1px var(--border);
}
.hero-emblem::before{
  content:''; position:absolute; inset:-14px; border-radius:50%;
  border: 2px dashed rgba(18,153,74,.25);
}
.hero-emblem img{ width: 40%; height:auto; filter: drop-shadow(0 14px 22px rgba(11,58,116,.15)); }
.hero-chip{
  position:absolute; display:flex; align-items:center; gap:10px;
  background:#fff; border:1px solid var(--border); border-radius: 999px;
  padding: 8px 16px 8px 8px; box-shadow: var(--shadow);
  font-weight:700; font-size:.88rem; color: var(--navy); white-space:nowrap;
  animation: chip-float 6s ease-in-out infinite;
}
.chip-icon{
  width:34px; height:34px; border-radius:50%; background: var(--green-light); color: var(--green);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.chip-1{ top: 10%; left: -4%; }
.chip-2{ top: 46%; right: -2%; animation-delay: -2s; }
.chip-3{ bottom: 8%; left: 4%; animation-delay: -4s; }
@keyframes chip-float{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce){ .hero-chip{ animation:none; } }

/* ============ Trust strip ============ */
.trust-strip{ background: var(--bg-alt); padding: 26px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.trust-grid{ display:flex; justify-content:space-between; gap: 20px; flex-wrap:wrap; }
.trust-item{ display:flex; align-items:center; gap:10px; font-weight:700; font-size:.92rem; color: var(--navy); }

/* ============ Sections ============ */
.section{ padding: 90px 0; }
.section-alt{ background: var(--bg-alt); }
.section-head{ max-width: 640px; margin: 0 auto 50px; text-align:center; }
.section-head h2{ color: var(--navy); font-size: clamp(1.6rem, 3vw, 2.3rem); }
.section-head p{ margin: 0; }

.grid{ display:grid; gap: 24px; }

/* ============ About ============ */
.about-grid{ display:grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items:center; }
.about-art{ position:relative; display:flex; flex-direction:column; gap:20px; }
.about-card{
  border-radius: var(--radius); padding: 30px; color:#fff;
  display:flex; flex-direction:column; gap:6px; box-shadow: var(--shadow);
}
.about-card strong{ font-size:2rem; font-weight:800; }
.card-blue{ background: linear-gradient(135deg, var(--navy), var(--navy-dark)); }
.card-green{ background: linear-gradient(135deg, var(--green), #1f7a39); margin-left: 60px; }
.about-text h2{ color: var(--navy); font-size: clamp(1.5rem, 3vw, 2.1rem); }
.check-list{ margin: 18px 0; display:flex; flex-direction:column; gap:12px; }
.check-list li{ position:relative; padding-left: 30px; color: var(--ink); }
.check-list li::before{
  content:''; position:absolute; left:0; top:4px; width:18px; height:18px; border-radius:50%;
  background: var(--green-light);
  box-shadow: inset 0 0 0 2px var(--green);
}
.check-list li::after{
  content:'✓'; position:absolute; left:3px; top:1px; font-size:.75rem; color: var(--green); font-weight:800;
}
.address-line{ display:flex; align-items:center; gap:10px; font-weight:700; color: var(--navy); margin-top: 10px; }

/* ============ Clinic + Pharmacy ============ */
.section-tight{ padding-top: 70px; }
.units-grid{ grid-template-columns: 1fr 1fr; max-width: 1000px; margin: 0 auto; }
.unit-card{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow); position:relative; overflow:hidden;
  display:flex; flex-direction:column;
}
.unit-card::before{ content:''; position:absolute; top:0; left:0; right:0; height:5px; }
.unit-clinic::before{ background: var(--navy); }
.unit-pharmacy::before{ background: var(--green); }
.unit-head{ display:flex; align-items:center; gap:16px; margin-bottom: 8px; }
.unit-head h3{ color: var(--navy); font-size:1.25rem; margin:0; }
.unit-head span:not(.unit-icon){ color: var(--muted); font-size:.9rem; }
.unit-icon{
  width:56px; height:56px; border-radius:16px; display:flex; align-items:center; justify-content:center;
  color:#fff; flex-shrink:0;
}
.unit-clinic .unit-icon{ background: linear-gradient(135deg, var(--navy), var(--navy-dark)); }
.unit-pharmacy .unit-icon{ background: linear-gradient(135deg, var(--green), #0d7a3a); }
.unit-card .check-list{ flex:1; margin: 18px 0 24px; }
.unit-card .btn{ align-self:flex-start; margin-top:0; }

/* ============ Services ============ */
.services-grid{ grid-template-columns: repeat(4, 1fr); }
.service-card{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.icon-wrap{
  width: 52px; height:52px; border-radius: 14px; background: var(--green-light);
  display:flex; align-items:center; justify-content:center; margin-bottom: 16px;
}
.service-card h3{ font-size: 1.05rem; color: var(--navy); }
.service-card p{ font-size:.92rem; margin:0; }

/* ============ Doctors ============ */
.doctors-grid{ grid-template-columns: repeat(3, 1fr); max-width: 900px; margin: 0 auto; }
.doctor-card{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius);
  padding: 30px 24px; text-align:center; transition: transform .2s ease, box-shadow .2s ease;
}
.doctor-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow); }
.doctor-avatar{
  width: 84px; height: 84px; border-radius:50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--navy), var(--green));
  color:#fff; display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:1.3rem;
}
.doctor-card h3{ font-size:1.05rem; margin-bottom:2px; color: var(--navy); }
.doctor-role{ display:block; color: var(--green); font-weight:700; font-size:.85rem; margin-bottom: 10px; }
.doctor-card p{ font-size:.88rem; margin:0; }

/* ============ Prices ============ */
.price-table{ max-width: 760px; margin: 0 auto; border:1px solid var(--border); border-radius: var(--radius); overflow:hidden; background:#fff; }
.price-row{ display:flex; justify-content:space-between; padding: 16px 26px; border-bottom:1px solid var(--border); }
.price-row:last-child{ border-bottom:none; }
.price-row span:first-child{ color: var(--ink); font-weight:600; }
.price-row span:last-child{ color: var(--navy); font-weight:800; min-width: 60px; text-align:right; }
.price-row span:last-child:empty::after{ content:'—'; color: var(--muted); font-weight:600; }
.price-row-head{ background: var(--navy); color:#fff; font-weight:800; }
.price-row-head span{ color:#fff !important; }
.price-note{ text-align:center; font-size:.85rem; margin-top: 18px; }
.price-note a{ color: var(--navy); font-weight:700; text-decoration: underline; }

/* ============ Reviews ============ */
.rating-badge{ display:inline-flex; align-items:center; gap:10px; margin-top: 10px; background: var(--green-light); padding: 10px 20px; border-radius: 999px; }
.rating-score{ font-weight:800; font-size:1.3rem; color: var(--navy); }
.stars{ color:#f5b014; letter-spacing:2px; }
.rating-count{ font-size:.82rem; color: var(--muted); }
.reviews-grid{ grid-template-columns: repeat(3,1fr); }
.review-card{ background:#fff; border:1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.review-card p{ color: var(--ink); font-style: italic; }
.review-author{ font-weight:700; color: var(--navy); font-size:.88rem; }

/* ============ Contacts ============ */
.contacts-grid{ display:grid; grid-template-columns: .85fr 1.15fr; gap: 50px; align-items:stretch; }
.contacts-info h2{ color: var(--navy); }
.contact-row{ display:flex; gap:14px; margin-bottom: 20px; align-items:flex-start; }
.contact-row strong{ display:block; color: var(--navy); font-size:.95rem; }
.contact-row span, .contact-row a{ color: var(--muted); font-size:.95rem; }
.contact-row a:hover{ color: var(--green); }
.contacts-map{ min-height: 360px; border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow); border:1px solid var(--border); }
.contacts-map iframe{ width:100%; height:100%; border:0; min-height: 360px; }

/* ============ CTA banner ============ */
.cta-banner{ background: linear-gradient(120deg, var(--navy), var(--navy-dark)); padding: 60px 0; }
.cta-inner{ display:flex; justify-content:space-between; align-items:center; gap: 30px; flex-wrap:wrap; }
.cta-inner h2{ color:#fff; font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom:6px; }
.cta-inner p{ color: #c7d7ec; margin:0; }

/* ============ Footer ============ */
.site-footer{ background: var(--navy-dark); color:#cfe0f0; padding: 60px 0 0; }
.footer-grid{ display:grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-about{ color:#9fb6cf; font-size:.9rem; margin-top: 14px; }
.footer-col h4{ color:#fff; font-size:.95rem; margin-bottom: 16px; }
.footer-col{ display:flex; flex-direction:column; gap:10px; font-size:.9rem; }
.footer-col a{ color:#b9cbe0; }
.footer-col a:hover{ color:#fff; }
.footer-bottom{ padding: 22px 0; font-size:.82rem; color:#8fa6c0; text-align:center; }
.logo-footer{ margin-bottom: 4px; }

/* ============ Modal ============ */
.modal-overlay{
  position: fixed; inset:0; background: rgba(12,20,32,.6); backdrop-filter: blur(3px);
  display:flex; align-items:center; justify-content:center; z-index: 999;
  opacity:0; pointer-events:none; transition: opacity .2s ease;
  padding: 20px;
}
.modal-overlay.active{ opacity:1; pointer-events:auto; }
.modal{
  background:#fff; border-radius: 20px; padding: 36px; width:100%; max-width: 460px;
  position:relative; transform: translateY(16px); transition: transform .2s ease;
  max-height: 90vh; overflow-y:auto;
}
.modal-overlay.active .modal{ transform: translateY(0); }
.modal h3{ color: var(--navy); font-size:1.4rem; }
.modal-close{
  position:absolute; top:16px; right:16px; width:34px; height:34px; border-radius:50%;
  border:none; background: var(--bg-alt); font-size:1.3rem; cursor:pointer; color: var(--navy);
}
.appointment-form{ display:flex; flex-direction:column; gap: 14px; margin-top: 18px; }
.appointment-form label{ display:flex; flex-direction:column; gap:6px; font-size:.85rem; font-weight:700; color: var(--navy); }
.appointment-form input, .appointment-form textarea{
  border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font: inherit; color: var(--ink);
  resize: vertical;
}
.appointment-form input:focus, .appointment-form textarea:focus{ outline: 2px solid var(--green); border-color: transparent; }
.form-success{ color: var(--green); font-weight:700; text-align:center; margin-top: 14px; }

/* ============ WhatsApp float ============ */
.whatsapp-float{
  position: fixed; bottom: 26px; right: 26px; width: 58px; height:58px; border-radius:50%;
  background: #25D366; display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 24px rgba(37,211,102,.4); z-index: 90; transition: transform .15s ease;
}
.whatsapp-float:hover{ transform: scale(1.08); }

/* ============ Reveal animation ============ */
[data-reveal]{ opacity:0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in-view{ opacity:1; transform: translateY(0); }

/* ============ Responsive ============ */
@media (max-width: 1320px){
  .header-phone{ display:none; }
}
@media (max-width: 1180px){
  .main-nav{ display:none; }
  .header-phone{ display:none; }
  .burger{ display:flex; }
  .main-nav.open{
    display:flex; flex-direction:column; position:absolute; top:84px; left:0; right:0;
    background:#fff; padding: 20px 24px; gap:16px; border-bottom:1px solid var(--border);
    box-shadow: var(--shadow);
  }
}

@media (max-width: 960px){
  .hero-inner, .about-grid, .contacts-grid{ grid-template-columns: 1fr; }
  .hero-art{ max-width: 380px; margin: 10px auto 0; }
  .chip-1{ left: -4%; } .chip-2{ right: -6%; }
  .units-grid{ grid-template-columns: 1fr; }
  .services-grid{ grid-template-columns: repeat(2,1fr); }
  .doctors-grid{ grid-template-columns: repeat(2,1fr); }
  .reviews-grid{ grid-template-columns: 1fr; }
  .card-green{ margin-left:0; }
}

@media (max-width: 620px){
  .logo-img{ height: 42px; }
  .header-actions .btn-primary{ display:none; }
  .hero-art{ max-width: 320px; }
  .hero-chip{ font-size:.78rem; padding: 6px 12px 6px 6px; }
  .chip-icon{ width:28px; height:28px; }
  .chip-1{ top: 4%; left: -2%; }
  .chip-2{ top: auto; bottom: 16%; right: -4%; }
  .chip-3{ bottom: 0; left: 2%; }
  .unit-card{ padding: 24px; }
  .services-grid, .doctors-grid{ grid-template-columns: 1fr; }
  .trust-grid{ justify-content:flex-start; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .price-row{ padding: 14px 18px; font-size:.9rem; }
  .cta-inner{ text-align:center; justify-content:center; }
}
