/* Офталмологика – site styles */
:root {
  --navy: #0e2b50;
  --blue: #093482;
  --blue-btn: #0059b3;
  --teal: #1a9fb3;
  --teal-light: #5bc5e6;
  --yellow: #f9b701;
  --bg-soft: #e8ebf3;
  --bg-softer: #f4f6fa;
  --text: #2d3440;
  --muted: #5f6b7a;
  --line: #d9deea;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(14, 43, 80, .10);
  --container: 1180px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--teal); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
.icon { width: 1.1em; height: 1.1em; flex: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 2000; }
.skip:focus { left: 8px; top: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .75em 1.5em; border-radius: 999px;
  background: var(--blue); color: #fff; font-weight: 700; text-decoration: none;
  letter-spacing: .02em; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--yellow); color: var(--navy); }
.btn-outline { background: transparent; border-color: currentColor; color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1000; background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }
.brand img { width: 220px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.site-nav li { margin: 0; }
.site-nav ul a {
  position: relative; display: block; padding: 10px 10px; white-space: nowrap;
  color: #333; font-weight: 700; font-size: .82rem; text-transform: uppercase; text-decoration: none; letter-spacing: .02em;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 3px;
  background: var(--blue-btn); transform: scaleX(0); transition: transform .25s ease;
}
.site-nav ul a:hover::after, .site-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav ul a[aria-current="page"] { color: var(--navy); }
.btn-call { background: rgba(0, 89, 179, .9); padding: .6em 1.2em; white-space: nowrap; }
.btn-call:hover { background: var(--blue-btn); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--navy); cursor: pointer; }
.nav-toggle .icon { width: 30px; height: 30px; }
.nav-toggle .i-close { display: none; }

@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .brand img { width: 180px; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; box-shadow: 0 10px 20px rgba(0, 0, 0, .1);
    padding: 8px 20px 20px; display: none;
  }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: .95rem; }
  .site-nav ul a::after { display: none; }
  .site-nav ul a[aria-current="page"] { color: var(--blue-btn); }
  .btn-call { margin-top: 16px; justify-content: center; }
  .nav-open .site-nav { display: flex; }
  .nav-open .nav-toggle .i-open { display: none; }
  .nav-open .nav-toggle .i-close { display: inline; }
}

/* Hero */
.hero {
  position: relative; color: #fff; background: var(--navy) center / cover no-repeat;
  display: flex; align-items: center; min-height: 380px; padding: 80px 0;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 43, 80, .85) 0%, rgba(14, 43, 80, .55) 55%, rgba(14, 43, 80, .35) 100%); }
.hero .container { position: relative; }
.hero h1 {
  color: #fff; text-transform: uppercase; font-weight: 900; letter-spacing: .01em;
  font-size: clamp(1.8rem, 1.1rem + 2.8vw, 3.2rem); max-width: 900px; margin: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.hero .eyebrow { display: inline-block; color: var(--teal-light); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; margin-bottom: 14px; }
.hero .lead { font-size: 1.15rem; max-width: 720px; margin: 18px 0 0; opacity: .95; }
.hero-home { min-height: min(78vh, 720px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.breadcrumb { font-size: .85rem; margin-bottom: 12px; opacity: .9; }
.breadcrumb a { color: #fff; }

/* Sections */
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-softer { background: var(--bg-softer); }
.section-head { text-align: center; max-width: 820px; margin: 0 auto 48px; }
.section-head h2 { text-transform: uppercase; }
.section-head p { color: var(--muted); }
.kicker { display: block; color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; margin-bottom: 8px; }
.lead { font-size: 1.15rem; line-height: 1.75; }

/* Numbered service boxes (home) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { background: #fff; border-radius: var(--radius); padding: 36px 30px; box-shadow: var(--shadow); }
.step-num {
  width: 64px; height: 64px; border-radius: 50%; background: var(--yellow); color: #fff;
  display: grid; place-items: center; font-size: 2rem; font-weight: 900; margin-bottom: 20px;
}
.step h3 { margin-bottom: .5em; }
.step p { color: var(--muted); margin: 0; }

/* CTA band */
.cta-band { background: var(--navy); color: #fff; padding: 56px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; text-transform: uppercase; font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); }
.cta-band .btn { font-size: 1.15rem; }

/* Value columns (home) */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value { border-top: 4px solid var(--teal); background: #fff; padding: 30px 28px; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); }
.value .tag { color: var(--teal); font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; display: block; margin-bottom: 10px; }
.value p { color: var(--muted); font-size: .98rem; }

/* Image cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto; }
.card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 300px; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none;
  background: #8a93a3 center / cover no-repeat; box-shadow: var(--shadow); isolation: isolate;
}
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 43, 80, .05) 30%, rgba(14, 43, 80, .9) 100%); transition: background .3s; }
.card-body { padding: 24px; }
.card h3 { color: #fff; font-size: 1.15rem; margin: 0; text-transform: uppercase; }
.card p { margin: 8px 0 0; font-size: .95rem; opacity: .9; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; font-size: .9rem; color: var(--yellow); }
a.card:hover { color: #fff; }
a.card:hover::before { background: linear-gradient(180deg, rgba(9, 52, 130, .35) 0%, rgba(9, 52, 130, .95) 100%); }
a.card:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.card-tall { min-height: 440px; }

/* Article layout */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.article h2 { margin-top: 1.6em; }
.article h3 { margin-top: 1.5em; }
.article > :first-child { margin-top: 0; }
.article img { border-radius: var(--radius); margin: 1.5em 0; }
.article .lead { color: var(--navy); }
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }
.side-img { border-radius: var(--radius); box-shadow: var(--shadow); }
.side-box { background: var(--bg-soft); border-radius: var(--radius); padding: 26px; }
.side-box h2 { font-size: 1.15rem; text-transform: uppercase; margin-bottom: .7em; }
.side-box p { font-size: .95rem; color: var(--muted); }
.side-box .btn { width: 100%; justify-content: center; }
.side-box ul { list-style: none; padding: 0; margin: 0; }
.side-box li { margin: 0; border-bottom: 1px solid var(--line); }
.side-box li:last-child { border-bottom: 0; }
.side-box li a { display: block; padding: 9px 0; text-decoration: none; font-size: .93rem; color: var(--navy); }
.side-box li a:hover, .side-box li a[aria-current="page"] { color: var(--blue-btn); font-weight: 700; }
.side-cta { background: var(--navy); color: #fff; }
.side-cta h2 { color: #fff; }
.side-cta p { color: rgba(255, 255, 255, .85); }
.side-cta .btn { background: var(--yellow); color: var(--navy); }
.side-cta .btn:hover { background: #fff; }

/* Exam facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 2em 0; }
.fact { background: var(--bg-softer); border-left: 4px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; }
.fact-label { display: block; font-weight: 700; color: var(--navy); text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; margin-bottom: 4px; }
.fact p { margin: 0; font-size: .97rem; }
.note { background: #fff8e1; border-left: 4px solid var(--yellow); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin: 2em 0; font-size: .97rem; }
.note p:last-child { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 2em; }
.chips a { background: var(--bg-soft); color: var(--navy); padding: 8px 16px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .85rem; }
.chips a:hover { background: var(--blue); color: #fff; }
.form-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--bg-soft); border-radius: var(--radius); padding: 22px 26px; margin-top: 2.5em; }
.form-link p { margin: 0; font-weight: 700; color: var(--navy); }

/* Doctor profile */
.profile { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 56px; align-items: start; }
.profile-photo { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.profile .role { color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; }
.bio-list { list-style: none; padding: 0; }
.bio-list li { position: relative; padding-left: 28px; margin-bottom: .7em; }
.bio-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.contact-card .icon { width: 36px; height: 36px; color: var(--teal); margin-bottom: 14px; }
.contact-card h2 { font-size: 1.1rem; text-transform: uppercase; }
.contact-card p { margin: 0 0 .4em; }
.contact-card a { text-decoration: none; font-weight: 700; }
.map { margin-top: 40px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map iframe { display: block; width: 100%; height: 440px; border: 0; }
.hours { border-collapse: collapse; width: 100%; }
.hours th, .hours td { text-align: left; padding: 6px 0; vertical-align: top; font-size: .95rem; }
.hours th { font-weight: 400; padding-right: 12px; }
.hours td { font-weight: 700; white-space: nowrap; }

/* Footer */
.site-footer { background: #0a1f3a; color: rgba(255, 255, 255, .8); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr 1.2fr; gap: 40px; padding: 64px 20px 48px; }
.footer-brand img { width: 120px; background: #fff; border-radius: 12px; padding: 8px; }
.footer-name { color: #fff; font-weight: 700; margin: 14px 0 10px; text-transform: uppercase; letter-spacing: .05em; }
.footer-title { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.1em; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .45em; }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 1em; }
.footer-contact .icon { color: var(--teal-light); margin-top: .3em; }
.footer-contact small { opacity: .75; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.social a:hover { background: var(--teal); color: #fff; }
.site-footer .hours th { color: rgba(255, 255, 255, .75); }
.site-footer .hours td { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: .85rem; color: rgba(255, 255, 255, .6); }
.mobile-call { display: none; }

/* 404 */
.notfound { text-align: center; padding: 120px 0; }
.notfound .big { font-size: 6rem; font-weight: 900; color: var(--bg-soft); line-height: 1; }

/* Responsive */
@media (max-width: 980px) {
  .steps, .values, .contact-grid { grid-template-columns: 1fr; }
  .article-wrap, .profile { grid-template-columns: 1fr; gap: 40px; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .profile-photo { max-width: 460px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 60px; }
  .section { padding: 56px 0; }
  .hero { min-height: 300px; padding: 60px 0; }
  .hero-home { min-height: 520px; }
  .cards-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; padding-top: 48px; }
  .cta-band .container { flex-direction: column; text-align: center; }
  .mobile-call {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 999; height: 58px;
    background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .04em;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, .15);
  }
  .mobile-call:hover { color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
