/* ============================================
   M.G. Dental Clinic — Dark Typographic CSS
   ============================================ */

:root {
  --ink:    #0B0E13;
  --ink2:   #161B24;
  --ink3:   #1E2533;
  --teal:   #00C2A8;
  --teal-d: #009E88;
  --teal-l: #B2F0E8;
  --sand:   #F5F0EB;
  --mist:   #EEF2F5;
  --mid:    #5A6478;
  --line:   rgba(255,255,255,.09);
  --line-d: rgba(0,0,0,.09);
  --font-d: 'DM Serif Display', Georgia, serif;
  --font-s: 'DM Sans', system-ui, sans-serif;
  --ease:   cubic-bezier(.4,0,.2,1);
  --r:      8px;
}

/* ── Reset ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body {
  font-family: var(--font-s);
  background: var(--sand);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { border:none; background:none; cursor:pointer; font-family:inherit; }
img { display:block; max-width:100%; }
ul { list-style:none; }
svg { display:block; }

/* ── Utilities ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.sec-label {
  display: inline-block;
  font-family: var(--font-s);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--teal-d);
  background: rgba(0,194,168,.1);
  padding: .35rem 1rem;
  border-radius: 99px;
  margin-bottom: 1.25rem;
}
.sec-label--light { color: var(--teal-l); background: rgba(178,240,232,.12); }
.sec-h2 {
  font-family: var(--font-d);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.sec-h2 em { font-style: italic; color: var(--teal-d); }
.sec-h2--light { color: #fff; }
.sec-h2--light em { color: var(--teal-l); }
.sec-head-row { display:flex; align-items:baseline; gap:2rem; flex-wrap:wrap; margin-bottom:2.5rem; border-bottom:1px solid var(--line-d); padding-bottom:1.5rem; }
.sec-head-row .sec-h2 { margin:0; }

/* ── Header ── */
.header {
  position: fixed; top:0; left:0; width:100%; z-index:100;
  background: rgba(11,14,19,.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: all .3s var(--ease);
}
.navbar { display:flex; align-items:center; justify-content:space-between; height:68px; gap:1.5rem; }
.logo { display:flex; align-items:center; gap:.7rem; }
.logo-cross {
  width:34px; height:34px; background:var(--teal); color:#fff;
  font-size:1.4rem; font-weight:300; border-radius:6px;
  display:flex; align-items:center; justify-content:center; line-height:1; flex-shrink:0;
}
.logo-name {
  font-family: var(--font-s); font-size:.95rem; font-weight:600; color:#fff;
  display:flex; flex-direction:column;
}
.logo-city { font-size:.65rem; font-weight:400; color: var(--teal-l); letter-spacing:.05em; opacity:.8; }
.nav { display:flex; gap:2rem; }
.nl { font-size:.85rem; font-weight:500; color:rgba(255,255,255,.6); letter-spacing:.02em; transition:color .2s; }
.nl:hover { color:#fff; }
.nav-end { display:flex; align-items:center; gap:1rem; }
.langs { display:flex; background:rgba(255,255,255,.08); border-radius:99px; padding:.15rem; gap:.1rem; }
.lb { padding:.35rem .8rem; border-radius:99px; font-size:.72rem; font-weight:700; letter-spacing:.06em; color:rgba(255,255,255,.45); transition:all .2s; }
.lb:hover { color:#fff; }
.lb.active { background:var(--teal); color:#fff; }
.btn-call {
  padding:.55rem 1.4rem;
  background:var(--teal); color:#fff;
  border-radius:var(--r); font-size:.82rem; font-weight:600;
  transition: all .25s var(--ease);
}
.btn-call:hover { background:var(--teal-d); transform:translateY(-1px); }
.burger { display:none; flex-direction:column; gap:5px; padding:.4rem; }
.burger span { display:block; width:22px; height:2px; background:rgba(255,255,255,.7); border-radius:2px; transition:.3s; }
.burger.open span:nth-child(1) { transform:rotate(45deg) translate(5px,5px); }
.burger.open span:nth-child(2) { opacity:0; }
.burger.open span:nth-child(3) { transform:rotate(-45deg) translate(5px,-5px); }

/* ── Hero ── */
.hero {
  background: var(--ink);
  padding-top: 68px;
  position: relative;
  overflow: hidden;
}
/* geometric background pattern */
.hero::before {
  content:'';
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(0,194,168,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,194,168,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events:none;
}
.hero::after {
  content:'';
  position:absolute;
  width:600px; height:600px;
  background: radial-gradient(circle, rgba(0,194,168,.18) 0%, transparent 70%);
  top:-150px; right:-100px;
  pointer-events:none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 7rem 2rem 5rem;
  max-width: 1160px;
  margin: 0 auto;
  position: relative; z-index:1;
}
.hero-eyebrow {
  display:flex; align-items:center; gap:.6rem;
  font-size:.78rem; font-weight:500; letter-spacing:.08em;
  color:rgba(255,255,255,.4); text-transform:uppercase;
  margin-bottom:1.75rem;
}
.pulse-dot {
  width:8px; height:8px; border-radius:50%; background:var(--teal); flex-shrink:0;
  animation:pulse 2s infinite;
}
@keyframes pulse {
  0%,100%{box-shadow:0 0 0 0 rgba(0,194,168,.5)}
  50%{box-shadow:0 0 0 6px rgba(0,194,168,0)}
}
.hero-h1 {
  font-family: var(--font-d);
  font-size: clamp(2.6rem,5.5vw,4.2rem);
  line-height: 1.06;
  color: #fff;
  margin-bottom: 1.5rem;
}
.hero-h1 em { font-style:italic; color:var(--teal); }
.hero-sub { font-size:1.05rem; color:rgba(255,255,255,.55); margin-bottom:2.5rem; max-width:440px; line-height:1.7; }
.hero-actions { display:flex; gap:1rem; flex-wrap:wrap; }
.btn-primary {
  display:inline-flex; align-items:center; gap:.6rem;
  padding:.8rem 1.75rem;
  background:var(--teal); color:#fff;
  border-radius:var(--r); font-size:.95rem; font-weight:600;
  transition: all .25s var(--ease);
  box-shadow: 0 8px 24px rgba(0,194,168,.3);
}
.btn-primary svg { width:17px; height:17px; stroke:currentColor; fill:none; stroke-width:2; }
.btn-primary:hover { background:var(--teal-d); transform:translateY(-2px); box-shadow:0 12px 32px rgba(0,194,168,.4); }
.btn-tg {
  display:inline-flex; align-items:center; gap:.6rem;
  padding:.8rem 1.75rem;
  border:1px solid rgba(255,255,255,.18); color:rgba(255,255,255,.8);
  border-radius:var(--r); font-size:.95rem; font-weight:500;
  transition: all .25s var(--ease);
}
.btn-tg svg { width:17px; height:17px; stroke:currentColor; fill:none; stroke-width:2; }
.btn-tg:hover { border-color:var(--teal); color:var(--teal); background:rgba(0,194,168,.06); }

/* hero right */
.hero-right { display:flex; flex-direction:column; gap:2.5rem; }
.hero-stat-block {
  background:rgba(255,255,255,.05);
  border:1px solid var(--line);
  border-radius:12px; padding:2rem;
  display:flex; flex-direction:column; gap:1.5rem;
}
.hsb-item { display:flex; flex-direction:column; gap:.3rem; }
.hsb-n {
  font-family:var(--font-d); font-size:2.8rem; line-height:1; color:#fff;
}
.hsb-n sup { font-size:1.4rem; color:var(--teal); }
.hsb-l { font-size:.82rem; color:rgba(255,255,255,.45); font-weight:500; letter-spacing:.02em; }
.hsb-line { height:1px; background:var(--line); }

.hero-quote {
  background:rgba(0,194,168,.07);
  border-left:3px solid var(--teal);
  padding:1.5rem 1.75rem;
  border-radius:0 var(--r) var(--r) 0;
}
.hero-quote blockquote {
  font-family:var(--font-d); font-style:italic;
  font-size:1.15rem; color:#fff; line-height:1.5;
  margin-bottom:.75rem;
}
.hero-quote cite { font-size:.78rem; color:rgba(255,255,255,.4); font-style:normal; font-weight:500; }

/* ticker */
.hero-ticker {
  position:relative; overflow:hidden;
  background:var(--teal); padding:.85rem 0;
  border-top:1px solid rgba(0,0,0,.1);
}
.ticker-track {
  display:flex; gap:2rem; align-items:center;
  width:max-content;
  animation:ticker 28s linear infinite;
  white-space:nowrap;
  font-size:.82rem; font-weight:600; letter-spacing:.08em;
  text-transform:uppercase; color:var(--ink);
}
.tick-sep { opacity:.5; font-weight:300; }
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── About ── */
.about { padding:6rem 0; background:var(--sand); }
.about-grid { display:grid; grid-template-columns:220px 1fr; gap:4rem; }
.about-label-col { padding-top:.4rem; }
.about-cross-deco {
  font-family:var(--font-d); font-size:8rem; line-height:1;
  color:rgba(0,194,168,.12); margin-top:2rem; user-select:none;
  font-weight:700;
}
.about-text-col .sec-h2 { margin-top:.5rem; }
.about-text-col p { color:var(--mid); max-width:600px; margin-bottom:1rem; }
.about-pillars { display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line-d); border:1px solid var(--line-d); border-radius:var(--r); overflow:hidden; margin-top:2.5rem; }
.pillar {
  background:var(--sand);
  padding:1.5rem 1.25rem;
  display:flex; flex-direction:column; gap:.5rem;
  transition:background .2s;
}
.pillar:hover { background:var(--mist); }
.pillar-n { font-family:var(--font-d); font-size:1.9rem; color:var(--teal-d); line-height:1; }
.pillar-t { font-size:.82rem; font-weight:600; color:var(--mid); letter-spacing:.03em; }

/* ── Services ── */
.services { padding:6rem 0; background:var(--mist); }
.svc-grid { display:grid; grid-template-columns:1fr 1fr; }
.svc {
  display:grid; grid-template-columns:52px 1fr auto;
  align-items:center; gap:1rem;
  padding:1.6rem 1.25rem;
  border-bottom:1px solid var(--line-d);
  border-right:1px solid var(--line-d);
  transition:background .2s;
  color:var(--ink);
}
.svc:nth-child(even) { border-right:none; }
.svc:nth-last-child(-n+2) { border-bottom:none; }
.svc:hover { background:#fff; }
.svc:hover .svc-arr { transform:translateX(4px); color:var(--teal-d); }
.svc-n { font-family:var(--font-d); font-size:1.1rem; color:var(--teal-d); opacity:.6; }
.svc-title { font-weight:500; font-size:1rem; }
.svc-arr { font-size:1.1rem; color:var(--mid); transition:all .2s; }

/* ── Why ── */
.why { padding:6rem 0; background:var(--ink2); }
.why-top { text-align:center; margin-bottom:4rem; }
.why-grid {
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:1px; background:var(--line);
  border:1px solid var(--line); border-radius:12px; overflow:hidden;
}
.why-card {
  background:var(--ink3); padding:2.5rem 2rem;
  transition:background .25s;
}
.why-card:hover { background:#1f2840; }
.why-icon {
  width:44px; height:44px; border-radius:var(--r);
  background:rgba(0,194,168,.1); border:1px solid rgba(0,194,168,.2);
  display:flex; align-items:center; justify-content:center; margin-bottom:1.5rem;
}
.why-icon svg { width:20px; height:20px; stroke:var(--teal); fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.why-card h3 { font-family:var(--font-s); font-size:1rem; font-weight:600; color:#fff; margin-bottom:.75rem; }
.why-card p { font-size:.88rem; color:rgba(255,255,255,.45); line-height:1.7; margin:0; }

/* ── Numbers ── */
.numbers { padding:5rem 0; background:var(--teal); }
.num-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:2rem; }
.num-item { text-align:center; }
.num-big {
  display:block; font-family:var(--font-d); font-size:clamp(2.8rem,5vw,4.5rem); line-height:1; color:var(--ink);
  margin-bottom:.5rem;
}
.num-big sup { font-size:.5em; }
.num-sub { font-size:.82rem; font-weight:600; color:rgba(11,14,19,.65); letter-spacing:.04em; }

/* ── Contact ── */
.contact { padding:6rem 0; background:var(--sand); }
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:4rem; align-items:start; }
.contact-left .sec-h2 { margin-top:.5rem; }
.contact-left > p { color:var(--mid); margin-bottom:2.5rem; }
.contact-items { display:flex; flex-direction:column; gap:.5rem; }
.c-item {
  display:flex; align-items:center; gap:1.1rem;
  padding:1.1rem 1.25rem;
  border:1px solid var(--line-d);
  border-radius:var(--r);
  background:var(--mist);
  transition:all .25s;
  color:var(--ink);
}
.c-item:hover { border-color:var(--teal); background:#fff; transform:translateX(4px); }
.c-icon {
  width:40px; height:40px; flex-shrink:0;
  background:rgba(0,194,168,.1);
  border-radius:var(--r);
  display:flex; align-items:center; justify-content:center;
}
.c-icon svg { width:18px; height:18px; stroke:var(--teal-d); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.c-label { display:block; font-size:.72rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--mid); margin-bottom:.15rem; }
.c-val { display:block; font-size:.98rem; font-weight:600; color:var(--ink); }
.map-wrap {
  height:480px; border-radius:12px; overflow:hidden;
  border:1px solid var(--line-d);
  box-shadow:0 8px 32px rgba(0,0,0,.07);
}
.map-wrap iframe { width:100%; height:100%; border:0; }

/* ── Footer ── */
.footer { background:var(--ink); padding:2.5rem 0 1.5rem; border-top:1px solid var(--line); }
.footer-grid { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:2rem; padding-bottom:2rem; border-bottom:1px solid var(--line); margin-bottom:1.5rem; }
.footer-brand { display:flex; align-items:center; gap:.75rem; }
.footer-name { font-family:var(--font-s); font-weight:700; color:#fff; font-size:.95rem; }
.footer-city { font-size:.7rem; color:rgba(255,255,255,.35); letter-spacing:.04em; }
.footer-nav { display:flex; gap:1.75rem; flex-wrap:wrap; }
.footer-nav a { font-size:.82rem; color:rgba(255,255,255,.45); font-weight:500; transition:color .2s; }
.footer-nav a:hover { color:#fff; }
.footer-contacts { display:flex; flex-direction:column; gap:.3rem; text-align:right; }
.footer-contacts a { font-size:.85rem; color:rgba(255,255,255,.45); transition:color .2s; }
.footer-contacts a:hover { color:var(--teal); }
.footer-bottom { text-align:center; font-size:.75rem; color:rgba(255,255,255,.2); }

/* ── Scroll to top ── */
.to-top {
  position:fixed; bottom:2rem; right:2rem;
  width:42px; height:42px;
  background:var(--teal); color:var(--ink);
  border-radius:50%; font-size:1.1rem; font-weight:700;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 16px rgba(0,194,168,.4);
  opacity:0; visibility:hidden; pointer-events:none;
  transition:all .3s var(--ease);
  z-index:99;
}
.to-top.show { opacity:1; visibility:visible; pointer-events:auto; }
.to-top:hover { transform:translateY(-3px); }

/* ── Animations ── */
.fade-up { opacity:0; transform:translateY(28px); transition:opacity .6s var(--ease), transform .6s var(--ease); }
.fade-up.in { opacity:1; transform:none; }

/* ── Responsive ── */
@media(max-width:1024px){
  .hero-grid { grid-template-columns:1fr; gap:4rem; padding:6rem 2rem 4rem; }
  .hero-right { display:grid; grid-template-columns:1fr 1fr; gap:1.5rem; }
  .about-grid { grid-template-columns:1fr; gap:2rem; }
  .about-cross-deco { display:none; }
  .about-pillars { grid-template-columns:repeat(2,1fr); }
  .num-grid { grid-template-columns:repeat(2,1fr); gap:2rem; }
  .contact-grid { grid-template-columns:1fr; }
  .map-wrap { height:360px; }
}
@media(max-width:768px){
  .nav { display:none; }
  .nav.open {
    display:flex; flex-direction:column;
    position:fixed; top:68px; left:0; width:100%;
    background:var(--ink2); border-bottom:1px solid var(--line);
    padding:1.5rem 2rem; gap:1.25rem;
    animation:slideDown .25s var(--ease);
  }
  @keyframes slideDown{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
  .nl { font-size:1rem; color:rgba(255,255,255,.8); }
  .burger { display:flex; }
  .btn-call { display:none; }
  .svc-grid { grid-template-columns:1fr; }
  .svc { border-right:none !important; }
  .svc:nth-last-child(-n+2) { border-bottom:1px solid var(--line-d); }
  .svc:last-child { border-bottom:none; }
  .why-grid { grid-template-columns:1fr; }
  .hero-right { grid-template-columns:1fr; }
  .hero-actions { flex-direction:column; }
  .hero-actions .btn-primary, .hero-actions .btn-tg { justify-content:center; }
  .footer-grid { flex-direction:column; align-items:flex-start; }
  .footer-contacts { text-align:left; }
}
@media(max-width:480px){
  .about-pillars { grid-template-columns:1fr 1fr; }
  .num-grid { grid-template-columns:1fr 1fr; }
  .container { padding:0 1.25rem; }
  .hero-grid { padding:5rem 1.25rem 3rem; }
}
