:root {
  --ink: #1d2422;
  --muted: #65706d;
  --paper: #fffdf8;
  --soft: #f4eee6;
  --white: #ffffff;
  --line: rgba(29, 36, 34, 0.13);
  --teal: #557d82;
  --teal-dark: #315e64;
  --clay: #b98e7f;
  --gold: #b78b43;
  --blue: #dbeaec;
  --shadow: 0 24px 70px rgba(49, 94, 100, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 58px);
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 820;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  background: var(--teal);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 850;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 720;
}

nav a {
  text-decoration: none;
}

.language-link {
  padding: 4px 9px;
  color: var(--teal-dark);
  border: 1px solid rgba(49, 94, 100, 0.24);
  border-radius: 8px;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  font-size: clamp(3.4rem, 7.4vw, 7.2rem);
  line-height: 0.93;
}

h2 {
  max-width: 860px;
  font-size: clamp(2.35rem, 4.6vw, 4.9rem);
  line-height: 0.97;
}

h3 {
  font-size: 1.12rem;
}

.en-page h1,
.en-page h2,
.en-page h3,
.ru-page h1,
.ru-page h2,
.ru-page h3 {
  text-transform: uppercase;
}

.en-page h1,
.ru-page h1 {
  font-size: clamp(2.45rem, 5.2vw, 5rem);
  line-height: 1.06;
}

.en-page h2,
.ru-page h2 {
  font-size: clamp(2rem, 3.9vw, 4.2rem);
  line-height: 1.04;
}

.en-page h3,
.ru-page h3 {
  font-size: 1rem;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: clamp(30px, 6vw, 84px);
  align-items: center;
  padding: clamp(58px, 8vw, 105px) clamp(18px, 5vw, 74px);
  background:
    radial-gradient(circle at 84% 16%, rgba(185, 142, 127, 0.28), transparent 28%),
    linear-gradient(135deg, #fffdf8 0%, #f4eee6 54%, #dbeaec 100%);
}

.hero-copy {
  display: grid;
  gap: 24px;
}

.lead {
  max-width: 760px;
  margin: 0;
  color: #3c4743;
  font-size: clamp(1.1rem, 1.75vw, 1.35rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 19px;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 14px 32px rgba(49, 94, 100, 0.22);
}

.button.secondary {
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(49, 94, 100, 0.22);
}

.profile-card {
  padding: 18px;
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.doctor-photo {
  min-height: 430px;
  overflow: hidden;
  background: #eadcca;
  border: 1px solid rgba(49, 94, 100, 0.12);
  border-radius: 8px;
}

.doctor-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: 50% 22%;
}

.profile-copy {
  display: grid;
  gap: 5px;
  padding: 20px 4px 6px;
}

.profile-copy p {
  margin: 0;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-copy strong {
  font-size: 1.36rem;
}

.profile-copy span {
  color: var(--muted);
}

.intro,
.bio-story,
.credentials,
.care,
.patients,
.media,
.contact {
  padding: 86px clamp(18px, 5vw, 74px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(280px, 1fr);
  gap: clamp(28px, 6vw, 82px);
  background: var(--white);
  border-radius: 28px 28px 0 0;
}

.intro-text {
  display: grid;
  gap: 18px;
  align-content: start;
}

.intro-text p,
.bio-body p,
.credential-list p,
.media p,
.contact p {
  margin: 0;
  color: var(--muted);
}

.bio-story {
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) minmax(300px, 1fr);
  gap: clamp(30px, 6vw, 86px);
  align-items: start;
  background:
    radial-gradient(circle at 88% 4%, rgba(219, 234, 236, 0.78), transparent 24%),
    var(--paper);
}

.bio-body {
  display: grid;
  gap: 18px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(49, 94, 100, 0.06);
}

.credentials {
  background: var(--soft);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.credential-list {
  display: grid;
  gap: 12px;
}

.credential-list article {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  padding: 24px;
  background: rgba(255, 253, 248, 0.76);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.credential-list span {
  color: var(--gold);
  font-weight: 900;
}

.credential-list h3 {
  margin-bottom: 8px;
}

.care {
  background: var(--paper);
}

.care-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.care-row span {
  padding: 13px 15px;
  color: var(--teal-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 820;
}

.patients {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(300px, 1fr);
  gap: clamp(30px, 6vw, 80px);
  background:
    radial-gradient(circle at 88% 18%, rgba(219, 234, 236, 0.82), transparent 26%),
    var(--white);
}

.patient-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.patient-grid article {
  min-height: 220px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.patient-grid p {
  margin: 0;
  color: var(--muted);
}

.media {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(300px, 1fr);
  gap: clamp(30px, 6vw, 80px);
  background: linear-gradient(135deg, #fffdf8, #f1e8dd);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.social-card {
  min-height: 160px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 22px;
  color: var(--white);
  background: linear-gradient(135deg, #6e98a0, #bd8f86);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 14px 38px rgba(49, 94, 100, 0.1);
}

.instagram {
  background: linear-gradient(135deg, #7f4ac9, #d5438e 48%, #f1a64b);
}

.youtube {
  color: var(--white);
  background: linear-gradient(135deg, #121212, #c51f1a);
}

.muted-link {
  filter: saturate(0.58);
}

.social-card span {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.social-card strong {
  font-size: 1.55rem;
}

.social-card small {
  opacity: 0.74;
  font-weight: 760;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.62fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
  background: linear-gradient(135deg, rgba(219, 234, 236, 0.72), rgba(255, 253, 248, 0.94));
}

.contact p {
  max-width: 720px;
  margin-top: 20px;
  font-size: 1.08rem;
}

address {
  display: grid;
  gap: 10px;
  padding: 26px;
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-style: normal;
}

address a:not(.button) {
  color: var(--teal-dark);
  font-weight: 850;
}

address .button {
  width: fit-content;
  margin-top: 14px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 5vw, 74px);
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .hero,
  .intro,
  .bio-story,
  .patients,
  .media,
  .contact {
    grid-template-columns: 1fr;
  }

  .profile-card {
    max-width: 620px;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
    gap: 14px;
  }

  h1 {
    font-size: clamp(2.35rem, 10.8vw, 4.1rem);
    line-height: 1.06;
  }

  h2 {
    font-size: clamp(1.9rem, 8.7vw, 3rem);
    line-height: 1.08;
  }

  .hero {
    min-height: auto;
  }

  .hero,
  .intro,
  .bio-story,
  .credentials,
  .care,
  .patients,
  .media,
  .contact {
    width: 100%;
    max-width: 100%;
  }

  .hero-copy,
  .intro-heading,
  .intro-text,
  .bio-lead,
  .bio-body,
  .section-heading,
  .patient-grid,
  .media > div,
  .contact > div,
  address {
    min-width: 0;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .doctor-photo,
  .doctor-photo img {
    min-height: 340px;
  }

  .bio-body {
    padding: 22px;
  }

  .credential-list article,
  .patient-grid,
  .social-grid {
    grid-template-columns: 1fr;
  }

  .patients,
  .bio-story {
    gap: 24px;
  }
}
