/* design[70]: страница врача — стекло как поверхность, одна главная анимация (сертификаты), палитра Orivika */
:root {
  --ink: #0E3B35; --muted: #3F6B64; --teal: #147466; --teal2: #2FAB98; --mint: #E8F8F5; --pink: #E0487F; --violet: #5B3FA8;
  --bg: #F3FBF9; --ease: cubic-bezier(.23, 1, .32, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scrollbar-color: #9FCFC3 transparent; scrollbar-width: thin; }
::selection { background: #BFEDE3; color: var(--ink); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 10px; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 16px/1.6 "Golos Text", system-ui, sans-serif; overflow-x: hidden; }
h1, h2 { font-family: Manrope, "Golos Text", sans-serif; margin: 0; text-wrap: balance; }
a { text-underline-offset: 3px; }

/* фон: медленные пятна — свет за стеклом */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: drift 28s ease-in-out infinite alternate; }
.b1 { width: 560px; height: 560px; background: #9FE3D4; left: -160px; top: -120px; }
.b2 { width: 460px; height: 460px; background: #F8C6D8; right: -140px; top: 260px; animation-duration: 34s; }
.b3 { width: 420px; height: 420px; background: #D6CCF4; left: 28%; bottom: -200px; animation-duration: 40s; }
@keyframes drift { to { transform: translate3d(36px, 28px, 0) scale(1.06); } }

/* стекло — одна поверхность на смысловой блок */
.glass {
  background: rgba(255,255,255,.58); border: 1px solid rgba(255,255,255,.75); border-radius: 32px;
  backdrop-filter: blur(20px) saturate(1.35); -webkit-backdrop-filter: blur(20px) saturate(1.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 24px 50px -32px rgba(14,59,53,.45);
}

.draft { background: rgba(253,243,225,.92); color: #7A4B0B; text-align: center; padding: 8px 16px; font-size: 14px; font-weight: 600; }
.top { max-width: 1080px; margin: 0 auto; padding: 20px; display: flex; justify-content: space-between; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 20px Manrope, sans-serif; }
.brand img { border-radius: 10px; }
.pill { color: var(--teal); text-decoration: none; font-weight: 600; padding: 10px 18px; border-radius: 999px; background: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.85); transition: background-color 200ms ease; }
.pill:hover { background: #fff; }
main { max-width: 1080px; margin: 0 auto; padding: 4px 20px 88px; display: grid; gap: 28px; }

/* герой */
.hero { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: center; padding: 44px 48px; }
.avatar { width: 248px; height: 248px; justify-self: center; position: relative; }
.orb { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(110% 110% at 32% 22%, #FFFFFF 0%, #E3F7F2 38%, #A6E3D6 100%);
  box-shadow: inset 0 -20px 44px rgba(20,116,102,.22), inset 0 12px 30px rgba(255,255,255,.9), 0 34px 60px -34px rgba(20,116,102,.65); }
.orb img { width: 100%; height: 100%; object-fit: cover; }
.orb span { font: 800 80px Manrope, sans-serif; letter-spacing: -.03em; color: var(--teal); text-shadow: 0 2px 0 rgba(255,255,255,.8); }
h1 { font-size: clamp(36px, 5.2vw, 58px); font-weight: 800; line-height: 1.02; letter-spacing: -.03em; }
.role { margin: 12px 0 20px; color: var(--muted); font-size: 20px; }
.facts { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; color: var(--ink); }
.facts span { position: relative; padding-left: 16px; }
.facts span::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal2); }

/* девиз — типографика на фоне, без рамки */
.motto { margin: 8px 0; padding: 0 56px; position: relative; max-width: 900px; justify-self: center; }
.q-mark { position: absolute; left: 0; top: 2px; width: 40px; height: 40px; fill: var(--teal2); }
.motto blockquote { margin: 0; font: 700 clamp(22px, 2.6vw, 30px)/1.4 Manrope, sans-serif; letter-spacing: -.015em; }
.motto figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; }

/* стеклянная панель с двумя колонками */
.panel { padding: 36px 40px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.two > div + div { border-left: 1px solid rgba(20,116,102,.14); padding-left: 48px; }
h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.muted { color: var(--muted); margin: 0; } .small { font-size: 13px; margin-top: 16px; }

.ic3 { --b1: #F4FCFA; --b2: #E0F5F0; --c: #147466; --f: rgba(20,116,102,.12); width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: linear-gradient(160deg, var(--b1), var(--b2)); box-shadow: inset 0 1px 0 #fff, inset 0 -2px 3px rgba(14,59,53,.06), 0 6px 14px -8px rgba(20,116,102,.4); }
.ic3 svg { width: 24px; height: 24px; fill: var(--f); stroke: var(--c); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic3.pink { --b1: #FEF7FA; --b2: #FDEBF1; --c: #E0487F; --f: rgba(224,72,127,.12); }
.ic3.violet { --b1: #F8F6FD; --b2: #EEEAFA; --c: #5B3FA8; --f: rgba(91,63,168,.1); }
.ic3.mint { --c: #1E8C7B; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 20px; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--teal2), rgba(47,171,152,.12)); }
.timeline li { display: grid; grid-template-columns: 56px 1fr; gap: 14px; }
.timeline b { font: 800 14px Manrope, sans-serif; font-variant-numeric: tabular-nums; color: #fff; background: linear-gradient(160deg, #2FAB98, #147466);
  border-radius: 999px; height: 28px; display: grid; place-items: center; position: relative; box-shadow: 0 6px 14px -6px rgba(20,116,102,.6); }
.timeline strong { display: block; line-height: 1.35; } .timeline span { color: var(--muted); font-size: 14px; }
.list { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.list li { position: relative; padding-left: 28px; }
.list li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--mint); box-shadow: inset 0 0 0 4.5px var(--teal2); }

/* сертификаты — главная анимация страницы: 3D-наклон и блик за курсором */
.certs-wrap { display: grid; gap: 18px; }
.certs-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; }
.certs-head h2 { margin: 0; }
.certs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.cert { all: unset; cursor: zoom-in; display: grid; grid-template-columns: 46% 1fr; gap: 20px; align-items: center; padding: 14px; border-radius: 26px;
  background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 20px 40px -30px rgba(14,59,53,.55);
  transform: perspective(1000px); transition: transform 320ms var(--ease), box-shadow 320ms var(--ease); will-change: transform; }
.cert:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 30px 54px -30px rgba(14,59,53,.6); }
.cert:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; border-radius: 26px; }
.cert-img { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 1.42; background: #fff; box-shadow: 0 12px 22px -14px rgba(0,0,0,.45); }
.cert-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 300ms ease;
  background: radial-gradient(240px circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.55), rgba(255,255,255,0) 60%); }
.cert:hover .glare { opacity: 1; }
.cert-meta em { display: block; font-style: normal; font-weight: 700; font-size: 13px; color: var(--teal); margin-bottom: 4px; }
.cert-meta b { display: block; font-size: 15px; line-height: 1.35; }
.cert-meta small { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }

.review { margin: 0; font: 700 21px/1.45 Manrope, sans-serif; letter-spacing: -.01em; }
.links-title { margin-top: 22px; margin-bottom: 10px; font-size: 14px; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.lnk { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; color: var(--teal); font-weight: 600; font-size: 14px;
  text-decoration: none; background: rgba(255,255,255,.7); border: 1px solid rgba(20,116,102,.16); transition: transform 160ms var(--ease), background-color 200ms ease; }
.lnk::after { content: "↗"; font-size: 12px; opacity: .7; }
.lnk:hover { transform: translateY(-2px); background: #fff; }
.lnk:active { transform: scale(.97); }

/* просмотр сертификата */
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(14,59,53,.42);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade 220ms ease; }
.lightbox[hidden] { display: none; }
.lb-fig { margin: 0; position: relative; max-width: min(980px, 100%); background: #fff; border-radius: 24px; padding: 14px; animation: pop 280ms var(--ease);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.lb-fig img { display: block; max-width: 100%; max-height: 78vh; border-radius: 12px; }
.lb-fig figcaption { padding: 12px 6px 2px; font-weight: 600; }
.lb-close { position: absolute; top: -16px; right: -16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,.45); transition: transform 160ms var(--ease); }
.lb-close svg { width: 20px; height: 20px; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; fill: none; }
.lb-close:active { transform: scale(.94); }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: scale(.96); } }

/* вход героя: один раз */
.in-1, .in-2, .in-3, .orb { animation: rise 700ms var(--ease) both; }
.in-2 { animation-delay: 80ms; } .in-3 { animation-delay: 160ms; } .orb { animation-delay: 40ms; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 28px 24px; gap: 26px; text-align: center; }
  .avatar { width: 196px; height: 196px; } .orb span { font-size: 62px; }
  .facts { justify-content: center; }
  .two { grid-template-columns: 1fr; gap: 32px; }
  .two > div + div { border-left: 0; padding-left: 0; border-top: 1px solid rgba(20,116,102,.14); padding-top: 28px; }
  .panel { padding: 26px 22px; }
  .motto { padding: 0 4px 0 48px; }
  .q-mark { width: 32px; height: 32px; }
  .certs { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .cert { grid-template-columns: 1fr; gap: 12px; } }
@media (prefers-reduced-motion: reduce) {
  .blob, .in-1, .in-2, .in-3, .orb, .lightbox, .lb-fig { animation: none; }
  .cert, .lnk, .glare { transition: none; }
}

/* d120: no save/drag of certificates */
.cert, .cert img, .lb-fig img { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-user-drag: none; }
