:root {
  --ink: #052e21;
  --text: #065f46;
  --muted: #4e7b68;
  --line: #bfe6d4;
  --line-strong: #86d5b1;
  --wash: #effaf4;
  --wash-strong: #ddf2e6;
  --surface: #ffffff;
  --surface-soft: #fbfefd;
  --green: #059669;
  --green-dark: #064e3b;
  --cyan: #059669;
  --cyan-dark: #064e3b;
  --amber: #f59e0b;
  --rose: #e76f61;
  --shadow: 0 18px 48px rgba(6, 78, 59, 0.12);
  --shadow-soft: 0 10px 28px rgba(5, 150, 105, 0.11);
  --radius: 8px;
  --header-height: 76px;
  --font: "Figtree", "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.quiz-open {
  overflow: hidden;
}

body.menu-open::after {
  content: "";
  position: fixed;
  inset: var(--header-height) 0 0;
  z-index: 20;
  background: rgba(6, 78, 59, 0.34);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

:focus-visible {
  outline: 4px solid rgba(5, 150, 105, 0.26);
  outline-offset: 3px;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(178, 224, 200, 0.85);
  backdrop-filter: blur(18px);
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: var(--header-height);
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  gap: 16px;
}

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.menu-toggle:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow-soft);
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 2px 0;
  border-radius: 999px;
  background: var(--ink);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 206px;
  height: auto;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.lang {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.lang button {
  min-width: 36px;
  height: 30px;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-size: 0.76rem;
  font-weight: 900;
}

.lang button.active {
  color: #ffffff;
  background: var(--cyan);
}

.menu-panel {
  position: fixed;
  top: var(--header-height);
  left: 0;
  z-index: 60;
  width: min(390px, calc(100vw - 34px));
  height: calc(100svh - var(--header-height));
  padding: 18px;
  border-right: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.menu-panel[hidden] {
  display: none;
}

.menu-panel-inner {
  display: grid;
  gap: 10px;
}

.menu-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--wash);
  font-weight: 900;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.menu-panel a::after {
  content: "+";
  color: var(--cyan);
  font-size: 1.05rem;
}

.menu-panel a:hover {
  border-color: var(--cyan);
  background: #ffffff;
  color: var(--cyan-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 16px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.btn.small {
  min-height: 38px;
  padding: 9px 16px;
  font-size: 0.9rem;
}

.btn.primary {
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 12px 26px rgba(5, 150, 105, 0.2);
}

.btn.primary:hover {
  background: var(--green-dark);
  box-shadow: 0 14px 30px rgba(6, 78, 59, 0.22);
}

.btn.secondary {
  color: var(--cyan-dark);
  background: #ffffff;
  border: 1px solid var(--line);
}

.btn.secondary:hover {
  border-color: var(--cyan);
  background: var(--wash);
  color: var(--green-dark);
}

.btn.full {
  width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  width: 100%;
  max-width: 780px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(2.65rem, 5.8vw, 5.55rem);
  line-height: 0.97;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 1.12rem;
  line-height: 1.3;
}

.lead {
  max-width: 680px;
  color: var(--text);
  font-size: 1.18rem;
}

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

.hero {
  min-height: clamp(640px, 78svh, 820px);
  padding: 54px 0 34px;
  background:
    linear-gradient(180deg, #f7fdfd 0%, #ffffff 72%),
    var(--surface);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.hero-copy {
  max-width: 850px;
}

.hero-logo {
  width: min(292px, 100%);
  margin-bottom: 28px;
}

.hero-summary {
  width: 100%;
  max-width: 780px;
  color: var(--text);
  font-size: clamp(1.16rem, 2vw, 1.52rem);
  font-weight: 700;
  line-height: 1.35;
}

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

.hero-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 860px;
  margin-top: 28px;
}

.hero-card div {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.hero-card span {
  display: block;
  grid-row: 1 / span 2;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.05;
}

.hero-card strong {
  display: block;
  margin-top: 0;
  color: var(--green-dark);
  font-size: 1.04rem;
  line-height: 1.3;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 520px;
  margin: 0;
}

.hero-photo {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-photo::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.86) 58%, #ffffff 100%);
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.hero-visual figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 3px;
  max-width: min(285px, calc(100% - 36px));
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius);
  color: #ffffff;
  background: rgba(6, 78, 59, 0.84);
  backdrop-filter: blur(10px);
}

.hero-visual figcaption span {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-visual figcaption strong {
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
}

.hero-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: #ffffff;
  font-weight: 900;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.hero-nav a:hover {
  border-color: var(--cyan);
  background: var(--wash);
  color: var(--cyan-dark);
}

.section {
  padding: 84px 0;
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.section.alt {
  background: var(--wash);
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head p:last-child {
  color: var(--text);
  font-size: 1.06rem;
}

.section-head .btn {
  margin-top: 10px;
}

.graduate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.graduate-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.graduate-photo {
  display: grid;
  place-items: center;
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(135deg, rgba(5, 150, 105, 0.15), rgba(5, 150, 105, 0.16)),
    var(--wash-strong);
}

.graduate-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.graduate-placeholder {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--cyan);
  box-shadow: 0 14px 28px rgba(5, 150, 105, 0.2);
  font-size: 1.55rem;
  font-weight: 900;
}

.certificate-mark {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 78px;
  padding: 8px;
  border: 1px solid rgba(5, 150, 105, 0.24);
  border-radius: 6px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.graduate-card .graduate-name {
  display: block;
  padding: 15px 16px 4px;
}

.doctor-name,
.graduate-name {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.3;
}

.graduate-meta {
  display: block;
  min-height: 36px;
  padding: 0 16px 16px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.about-layout {
  display: grid;
  gap: 24px;
}

.about-statement {
  max-width: 980px;
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 2.35rem);
  font-weight: 900;
  line-height: 1.24;
}

.about-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows:
    minmax(270px, auto)
    minmax(290px, auto)
    minmax(290px, auto);
  gap: 18px;
}

.about-bento-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  align-content: start;
  align-items: start;
  column-gap: 16px;
  row-gap: 16px;
  min-width: 0;
  min-height: 230px;
  padding: clamp(22px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(178, 224, 200, 0.9);
  border-radius: 24px;
  background: #edf6f1;
  box-shadow: 0 14px 34px rgba(6, 78, 59, 0.08);
}

.about-bento-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -52px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.08);
  pointer-events: none;
}

.about-bento-card-1 {
  grid-column: 8 / 13;
  grid-row: 1 / 3;
  min-height: 578px;
}

.about-bento-card-2 {
  grid-column: 4 / 13;
  grid-row: 3 / 4;
  min-height: 290px;
}

.about-bento-card-3 {
  grid-column: 1 / 4;
  grid-row: 2 / 4;
  min-height: 598px;
}

.about-bento-card-4 {
  grid-column: 1 / 8;
  grid-row: 1 / 2;
  min-height: 270px;
}

.about-bento-card-5 {
  grid-column: 4 / 8;
  grid-row: 2 / 3;
  min-height: 290px;
}

.about-card-number {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
}

.about-bento-card h3 {
  position: relative;
  z-index: 1;
  align-self: center;
  margin: 0;
  color: var(--cyan-dark);
  font-size: clamp(1.42rem, 2.4vw, 2.15rem);
  line-height: 1.05;
}

.about-bento-card h3 span {
  display: block;
}

.about-bento-card h3 .title-nowrap {
  white-space: nowrap;
}

.about-card-art {
  position: absolute;
  right: 24px;
  bottom: 18px;
  z-index: 0;
  display: grid;
  place-items: center;
  width: min(34%, 190px);
  height: 190px;
  color: var(--cyan-dark);
  opacity: 0.13;
  pointer-events: none;
}

.about-card-art svg {
  display: block;
  width: 100%;
  height: 100%;
}

.about-bento-card-1 .about-card-art,
.about-bento-card-3 .about-card-art {
  position: relative;
  right: auto;
  bottom: auto;
  grid-column: 1 / -1;
  justify-self: center;
  z-index: 1;
  width: min(82%, 340px);
  height: 260px;
  margin: 2px 0 6px;
  opacity: 0.26;
}

.about-bento-card-3 .about-card-art {
  width: min(88%, 245px);
  height: 230px;
  margin-top: 0;
}

.about-bento-card-4 .about-card-art {
  right: 30px;
  bottom: -22px;
}

.about-bento-card-5 h3 {
  grid-column: 1 / -1;
  max-width: 190px;
  font-size: clamp(1.34rem, 1.9vw, 1.82rem);
}

.about-bento-card-5 .about-card-art {
  top: 24px;
  right: 22px;
  bottom: auto;
  width: min(32%, 116px);
  height: 116px;
  opacity: 0.12;
}

.about-bento-card p {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.45;
}

.about-bento-card-1 p,
.about-bento-card-2 p {
  font-size: clamp(1.04rem, 1.35vw, 1.18rem);
}

.about-bento-card-3 p,
.about-bento-card-5 p {
  font-size: 0.98rem;
  line-height: 1.5;
}

.text-highlight {
  display: inline;
  padding: 0 0.18em;
  border-radius: 5px;
  color: var(--cyan-dark);
  background: rgba(5, 150, 105, 0.16);
  font-weight: 900;
}

.about-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.92fr);
  gap: 24px;
  align-items: start;
}

.program-details {
  display: grid;
  grid-template-columns: minmax(118px, 0.48fr) minmax(0, 1fr);
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.program-details dt,
.program-details dd {
  min-height: 56px;
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.program-details dt {
  color: var(--cyan-dark);
  background: var(--surface-soft);
  font-weight: 900;
}

.program-details dd {
  color: var(--ink);
  border-left: 1px solid var(--line);
  font-weight: 800;
}

.program-details dt:last-of-type,
.program-details dd:last-of-type {
  border-bottom: 0;
}

.benefit-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 22px 22px 22px 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  color: var(--text);
  font-size: 1.03rem;
  font-weight: 800;
}

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

.specialty-card {
  position: relative;
  display: grid;
  align-content: space-between;
  justify-items: start;
  min-height: 178px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.specialty-card::after {
  content: "+";
  position: absolute;
  right: 16px;
  bottom: 12px;
  color: rgba(5, 150, 105, 0.34);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.specialty-card:hover,
.specialty-card:focus-visible {
  border-color: var(--cyan);
  background: var(--wash);
  box-shadow: var(--shadow);
  color: var(--cyan-dark);
  outline: none;
}

.specialty-card-icon {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.specialty-card-label {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  color: inherit;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.specialty-card-points {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  margin: 16px 0 0;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
}

.specialty-card-points span {
  position: relative;
  padding-left: 17px;
}

.specialty-card-points span::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--cyan);
  transform: translateY(-50%);
}

.specialty-card-meta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 18px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--green-dark);
  background: rgba(5, 150, 105, 0.12);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.25;
}

.specialty-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--wash);
}

.specialty-cta p {
  margin: 0;
  color: var(--text);
  font-weight: 900;
}

.readiness-section {
  background: var(--green-dark);
  color: #ffffff;
}

.readiness-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1fr);
  gap: 36px;
  align-items: start;
}

.readiness-section .eyebrow,
.readiness-section h2,
.readiness-section .section-head p {
  color: #ffffff;
}

.readiness-cards {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: 14px;
}

.readiness-cards article {
  min-height: 154px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
}

.readiness-cards article:first-child {
  display: grid;
  align-content: center;
  min-height: 322px;
  background: #ffffff;
  color: var(--green-dark);
  grid-row: span 2;
}

.readiness-cards span {
  display: block;
  color: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.readiness-cards article:first-child span {
  color: var(--cyan-dark);
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.95;
}

.readiness-cards strong {
  display: block;
  margin-top: 12px;
  color: inherit;
  font-size: 1.38rem;
  line-height: 1.15;
}

.readiness-cards p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.doctors-section {
  padding-top: 80px;
}

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

.doctor-item {
  min-width: 0;
  display: grid;
  align-content: start;
}

.doctor-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
  cursor: default;
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.doctor-card:hover,
.doctor-card:focus-visible {
  border-color: var(--cyan);
  box-shadow: var(--shadow);
  outline: none;
}

.doctor-card-media {
  display: grid;
  place-items: center;
  width: 168px;
  min-height: 190px;
  background:
    linear-gradient(145deg, rgba(5, 150, 105, 0.18), rgba(5, 150, 105, 0.22)),
    var(--wash-strong);
}

.doctor-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-avatar {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 16px 30px rgba(5, 150, 105, 0.22);
  font-size: 1.3rem;
  font-weight: 900;
}

.doctor-card span {
  display: block;
}

.doctor-card h3 {
  margin: 0;
}

.doctor-card .doctor-avatar {
  display: grid;
}

.doctor-card-body {
  display: grid;
  align-content: center;
  grid-template-rows: auto auto 1fr auto;
  padding: 22px;
}

.doctor-position {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.doctor-more {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  justify-self: end;
  align-self: end;
  min-height: 36px;
  margin-top: 18px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--cyan-dark);
  background: var(--wash);
  font-size: 0.82rem;
  font-weight: 900;
}

.doctor-more:hover,
.doctor-more:focus-visible {
  color: #ffffff;
  border-color: var(--cyan);
  background: var(--cyan);
  outline: none;
}

.doctor-card[aria-expanded="true"] {
  border-color: var(--cyan);
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  box-shadow: var(--shadow);
}

.doctor-card[aria-expanded="true"] .doctor-more {
  color: #ffffff;
  border-color: var(--cyan);
  background: var(--cyan);
}

.doctor-panel {
  padding: 0 18px 18px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.doctor-panel[hidden] {
  display: none;
}

.doctor-card[aria-expanded="true"] + .doctor-panel {
  border-color: var(--cyan);
}

.doctor-panel dl {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-top: 18px;
}

.doctor-panel dt {
  color: var(--cyan-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.doctor-panel dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.doctor-panel ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.doctor-detail-grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.doctor-detail-card {
  scroll-margin-top: calc(var(--header-height) + 18px);
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.doctor-detail-card:target {
  border-color: var(--cyan);
  box-shadow: var(--shadow);
}

.doctor-detail-card h3 {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}

.doctor-detail-position {
  margin-bottom: 18px;
  color: var(--cyan-dark);
  font-weight: 900;
}

.doctor-detail-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.doctor-detail-card dt {
  color: var(--cyan-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.doctor-detail-card dd {
  margin: 0;
  color: var(--text);
  font-weight: 750;
}

.doctor-detail-card ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.doctor-page-section {
  background: #f6fbf8;
}

.doctor-page-grid {
  display: grid;
  gap: 18px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--cyan-dark);
  background: #ffffff;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.back-link:hover,
.back-link:focus-visible {
  color: #ffffff;
  border-color: var(--cyan);
  background: var(--cyan);
  outline: none;
}

.doctor-profile-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(22px, 3.5vw, 42px);
  border: 2px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(219, 240, 229, 0.9)),
    #ffffff;
  box-shadow: 0 24px 70px rgba(6, 78, 59, 0.09);
}

.doctor-profile-media {
  display: grid;
  place-items: center;
  min-height: 360px;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(5, 150, 105, 0.18), rgba(5, 150, 105, 0.22)),
    var(--wash-strong);
}

.doctor-profile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-profile-media .doctor-avatar {
  width: 138px;
  height: 138px;
  font-size: 2rem;
}

.doctor-profile-copy {
  min-width: 0;
}

.doctor-profile-copy h1 {
  max-width: none;
  margin-bottom: 6px;
  font-size: clamp(2.35rem, 5vw, 4.6rem);
}

.doctor-profile-details {
  display: grid;
  grid-template-columns: minmax(150px, 0.22fr) minmax(0, 1fr);
  gap: 14px 22px;
  margin: 26px 0 0;
}

.doctor-profile-details dt {
  color: var(--cyan-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.doctor-profile-details dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.doctor-profile-details ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.partner-card {
  display: grid;
  align-content: space-between;
  min-height: 190px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(178, 224, 200, 0.9);
  border-radius: 24px;
  background: #edf6f1;
  box-shadow: 0 14px 34px rgba(6, 78, 59, 0.08);
}

.partner-number {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
}

.partner-card h3 {
  margin: 40px 0 0;
  color: var(--cyan-dark);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.08;
}

.location-grid,
.apply-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: 44px;
  align-items: start;
}

.location-section {
  background: #ffffff;
}

.location-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--wash);
  box-shadow: var(--shadow-soft);
}

.location-card::before {
  content: "";
  display: block;
  height: 180px;
  background:
    linear-gradient(90deg, rgba(5, 150, 105, 0.18) 1px, transparent 1px),
    linear-gradient(0deg, rgba(5, 150, 105, 0.18) 1px, transparent 1px),
    linear-gradient(135deg, rgba(5, 150, 105, 0.24), rgba(5, 150, 105, 0.18));
  background-size: 34px 34px, 34px 34px, auto;
}

.location-card::after {
  content: "";
  position: absolute;
  top: 66px;
  left: 50%;
  width: 28px;
  height: 28px;
  border: 8px solid #ffffff;
  border-radius: 999px;
  background: var(--rose);
  box-shadow: 0 12px 24px rgba(231, 111, 97, 0.28);
  transform: translateX(-50%);
}

.location-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.location-card div {
  display: grid;
  gap: 8px;
  padding: 24px;
  background: #ffffff;
}

.location-card strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.location-card span {
  color: var(--text);
  font-weight: 700;
}

.location-card a {
  color: var(--cyan-dark);
  font-weight: 900;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.review-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.review-card p {
  margin-bottom: 0;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 700;
}

.review-card strong {
  color: var(--ink);
}

.review-meta {
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.custom-section {
  background: #ffffff;
}

.custom-section.alt {
  background: var(--wash);
}

.custom-section-body {
  max-width: 860px;
  color: var(--text);
  font-size: 1.06rem;
}

.custom-section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.custom-section-card,
.custom-section-stat {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.custom-section-card {
  display: grid;
  gap: 10px;
  min-height: 210px;
  padding: 22px;
}

.custom-section-card span,
.custom-section-stat span {
  color: var(--cyan-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.custom-section-card strong {
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.22;
}

.custom-section-card p {
  margin-bottom: 0;
  color: var(--text);
  font-weight: 700;
}

.custom-section-stat {
  padding: 22px;
}

.custom-section-stat strong {
  display: block;
  margin: 6px 0;
  color: var(--cyan);
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1;
}

.custom-section-stat p {
  margin-bottom: 0;
  color: var(--text);
  font-weight: 700;
}

.faq-section {
  background: #ffffff;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 940px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.faq-question {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 16px;
  align-items: center;
  min-height: 70px;
  padding: 18px 20px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  line-height: 1.35;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #ffffff;
  background: var(--cyan);
  font-size: 1.25rem;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "-";
  background: var(--green);
}

.faq-answer {
  padding: 0 20px 22px;
  color: var(--text);
  font-weight: 700;
}

.faq-answer p {
  margin: 0;
}

.faq-answer p + p {
  margin-top: 12px;
}

.faq-answer ul {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding-left: 20px;
}

.apply-section {
  background: var(--green-dark);
  color: #ffffff;
}

.apply-section .eyebrow,
.apply-section h2,
.apply-section .lead {
  color: #ffffff;
}

.apply-form {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.phone-fields {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.field label {
  color: var(--ink);
  font-weight: 900;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.14);
}

.form-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
}

.quiz-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow-y: auto;
  padding: 32px 20px;
}

.quiz-modal[hidden] {
  display: none;
}

.quiz-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 32, 42, 0.48);
}

.quiz-modal-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--wash);
  box-shadow: 0 28px 70px rgba(6, 32, 42, 0.24);
}

.quiz-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--green-dark);
  background: #ffffff;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}

.quiz-modal-layout {
  width: 100%;
}

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
  gap: 40px;
  align-items: start;
}

.quiz-intro {
  display: grid;
  gap: 18px;
}

.quiz-intro .lead {
  margin-bottom: 0;
}

.score-bands {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.score-band {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: var(--radius);
  background: #ffffff;
}

.score-band.strong {
  border-left-color: var(--green);
}

.score-band.possible {
  border-left-color: var(--cyan);
}

.score-band.advising {
  border-left-color: var(--amber);
}

.score-band strong {
  color: var(--green-dark);
  font-size: 1.05rem;
  line-height: 1;
}

.score-band span {
  color: var(--text);
  font-weight: 900;
  line-height: 1.3;
}

.quiz-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.quiz-panel[hidden] {
  display: none;
}

.quiz-top,
.quiz-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quiz-top {
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 900;
}

.quiz-lead-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.quiz-lead-form[hidden],
.quiz-controls[hidden] {
  display: none;
}

.quiz-lead-form h3 {
  margin-bottom: 0;
}

.quiet-button {
  color: var(--green-dark);
  background: transparent;
  font-weight: 900;
}

.quiz-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--wash-strong);
}

.quiz-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--cyan);
  transition: width 180ms ease;
}

.quiz-options {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--wash);
  font-weight: 800;
  cursor: pointer;
}

.quiz-option.selected {
  border-color: var(--cyan);
  background: #e8fbfd;
  color: var(--ink);
}

.quiz-option input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: var(--cyan);
}

.quiz-result {
  margin: 22px 0;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--wash);
}

.quiz-result[hidden] {
  display: none;
}

.quiz-result-score {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--green);
  font-size: 0.92rem;
  line-height: 1;
}

.quiz-result p {
  color: var(--text);
}

.quiz-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.quiz-notes article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.quiz-notes p {
  margin-bottom: 0;
  color: var(--text);
}

.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner img {
  width: 190px;
}

.footer-copy {
  display: grid;
  gap: 6px;
}

.footer-copy p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  text-align: right;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .about-content-grid,
  .readiness-layout,
  .quiz-layout,
  .location-grid,
  .apply-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .hero-photo,
  .hero-visual img {
    min-height: 420px;
  }

  .specialty-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .graduate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-bento-card-1,
  .about-bento-card-2,
  .about-bento-card-3,
  .about-bento-card-4,
  .about-bento-card-5 {
    grid-column: auto;
    grid-row: auto;
    min-height: 260px;
  }

  .about-bento-card-1 .about-card-art,
  .about-bento-card-3 .about-card-art {
    width: min(70%, 280px);
    height: 190px;
  }

  .partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .doctor-grid,
  .reviews-grid,
  .custom-section-grid,
  .partners-grid {
    grid-template-columns: 1fr;
  }

  .doctor-card {
    grid-template-columns: 148px minmax(0, 1fr);
  }

  .doctor-card-media {
    width: 148px;
  }

  .doctor-profile-card {
    grid-template-columns: 1fr;
  }

  .doctor-profile-media {
    min-height: 260px;
  }

  .doctor-profile-details {
    grid-template-columns: 1fr;
  }

  .readiness-cards {
    grid-template-columns: 1fr;
  }

  .readiness-cards article:first-child {
    min-height: 190px;
    grid-row: auto;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .topbar {
    width: min(100% - 24px, 1180px);
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
  }

  .brand img {
    width: min(150px, 38vw);
  }

  .header-quiz,
  .header-apply {
    display: none;
  }

  .lang button {
    min-width: 30px;
  }

  h1 {
    font-size: 2.38rem;
    line-height: 1.03;
  }

  h2 {
    font-size: 2.05rem;
  }

  .hero-summary {
    font-size: 1.08rem;
  }

  h1,
  h2,
  h3,
  .lead,
  .hero-summary,
  .btn {
    overflow-wrap: anywhere;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .hero-logo {
    display: none;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-visual {
    order: -1;
    min-height: 650px;
  }

  .phone-fields {
    grid-template-columns: 1fr;
  }

  .hero-visual .hero-card {
    grid-template-columns: 1fr;
    margin-top: -24px;
    padding-inline: 10px;
  }

  .hero-visual .hero-card div {
    min-height: 66px;
    padding: 13px 15px;
  }

  .hero-photo,
  .hero-visual img {
    min-height: 650px;
  }

  .hero-visual figcaption {
    position: absolute;
    right: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    margin-top: 0;
    color: #ffffff;
    background: rgba(6, 78, 59, 0.84);
    border-color: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(10px);
  }

  .section {
    padding: 62px 0;
  }

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

  .specialty-card {
    min-height: 142px;
    padding: 15px;
  }

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

  .specialty-cta .btn {
    width: 100%;
  }

  .program-details {
    grid-template-columns: 1fr;
  }

  .program-details dd {
    border-left: 0;
  }

  .graduate-grid,
  .faq-list,
  .quiz-notes {
    grid-template-columns: 1fr;
  }

  .doctor-card {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .doctor-card-media {
    width: 118px;
    min-height: 150px;
  }

  .doctor-avatar {
    width: 66px;
    height: 66px;
    font-size: 1.05rem;
  }

  .doctor-card-body {
    padding: 16px;
  }

  .faq-question {
    grid-template-columns: minmax(0, 1fr) 30px;
    padding: 16px;
  }

  .faq-question::after {
    width: 30px;
    height: 30px;
  }

  .faq-answer {
    padding: 0 16px 18px;
  }

  .quiz-top,
  .quiz-controls,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .quiz-controls .btn {
    width: 100%;
  }

  .quiz-panel {
    padding: 20px;
  }

  .quiz-modal {
    padding: 14px;
  }

  .quiz-modal-shell {
    padding: 58px 16px 18px;
  }

  .score-band {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-inner {
    display: grid;
    justify-items: start;
  }

  .footer-copy p,
  .footer-inner p {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 28px, 380px);
    margin-left: 14px;
    margin-right: auto;
  }

  .lang {
    display: none;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-nav a {
    min-width: 0;
    padding-inline: 10px;
    text-align: center;
  }

  .specialty-grid {
    grid-template-columns: 1fr;
  }
}

/* Sketch-faithful layout pass: clean version of the supplied paper wireframes. */
main {
  display: flex;
  flex-direction: column;
}

.hero {
  order: 1;
}

#ixtisaslar {
  order: 3;
}

#hekimler {
  order: 4;
}

#partnyorlar {
  order: 5;
}

#biz-kimik {
  order: 2;
}

#mezunlar {
  order: 6;
}

#diaqnostika {
  order: 8;
}

#unvan {
  order: 9;
}

#reyler {
  order: 10;
}

#customSections {
  order: 11;
}

#faq {
  order: 7;
}

#muraciet {
  order: 12;
}

.topbar {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.menu-toggle {
  display: none;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.desktop-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: #ffffff;
  font-size: 0.9rem;
  font-weight: 900;
  white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan-dark);
  background: var(--wash);
}

.header-quiz,
.header-apply {
  display: none;
}

.hero,
.section {
  background: #f6fbf8;
}

.hero-grid,
#ixtisaslar > .container,
#hekimler > .container,
#mezunlar > .container {
  position: relative;
  border: 2px solid rgba(6, 32, 42, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(219, 240, 229, 0.9)),
    #ffffff;
  box-shadow: 0 24px 70px rgba(6, 78, 59, 0.09);
}

.hero-grid::before,
#ixtisaslar > .container::before,
#hekimler > .container::before,
#mezunlar > .container::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: 13px;
  pointer-events: none;
}

.hero {
  min-height: auto;
  padding: 36px 0 28px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  padding: clamp(22px, 3vw, 38px);
}

.hero-card div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.hero h1 {
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: clamp(2.28rem, 5vw, 5.2rem);
  line-height: 1;
  overflow-wrap: normal;
}

.hero .lead {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--green-dark);
  background: transparent;
  box-shadow: none;
  font-size: clamp(1.2rem, 2.1vw, 2rem);
  font-weight: 900;
  line-height: 1.18;
}

.hero-summary {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  box-shadow: none;
  font-size: clamp(0.98rem, 1.25vw, 1.16rem);
}

.hero-actions {
  margin-top: 0;
}

.hero-card {
  margin-top: 0;
}

.hero-card div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  align-items: center;
  column-gap: 14px;
  min-height: 104px;
  padding: 18px;
}

.hero-visual {
  display: grid;
  grid-template-rows: minmax(0, clamp(620px, 48vw, 760px)) auto;
  align-content: start;
  gap: 0;
  min-height: 0;
}

.hero-photo {
  position: relative;
  min-height: 0;
  border-width: 2px;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.88) 33%, rgba(255, 255, 255, 0.3) 58%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0) 38%);
  pointer-events: none;
}

.hero-photo::after {
  z-index: 1;
  height: 42%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9) 62%, #ffffff 100%);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.hero-photo-copy {
  position: absolute;
  top: clamp(24px, 3.5vw, 50px);
  bottom: clamp(70px, 8vw, 116px);
  left: clamp(24px, 4vw, 64px);
  z-index: 2;
  display: grid;
  align-content: start;
  gap: clamp(12px, 1.5vw, 20px);
  width: min(52%, 760px);
  min-width: 0;
  color: var(--ink);
}

.hero-photo-copy .hero-logo {
  width: min(300px, 72%);
  margin: 0 0 clamp(8px, 1.3vw, 18px);
}

.hero-photo-copy .eyebrow {
  margin: 0;
}

.hero-visual .hero-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  max-width: none;
  margin-top: -38px;
  padding: 0 clamp(12px, 2vw, 20px);
}

.hero-visual .hero-card div {
  min-height: 72px;
  padding: 15px 18px;
  border-radius: 12px;
}

.hero-visual .hero-card span {
  min-width: 46px;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-visual .hero-card strong {
  color: var(--green-dark);
  font-size: clamp(1.03rem, 1.4vw, 1.28rem);
  line-height: 1.18;
}

.hero-nav {
  justify-content: center;
}

#ixtisaslar > .container,
#hekimler > .container,
#mezunlar > .container {
  display: grid;
  grid-template-columns: minmax(320px, 0.36fr) minmax(0, 1fr);
  gap: 28px;
  padding: clamp(24px, 4vw, 46px);
}

#ixtisaslar .section-head,
#hekimler .section-head,
#mezunlar .section-head {
  position: static;
  top: auto;
  align-self: start;
  min-width: 0;
  max-width: none;
  margin: 0;
}

#ixtisaslar .section-head h2,
#hekimler .section-head h2,
#mezunlar .section-head h2 {
  max-width: 100%;
  font-size: clamp(2.15rem, 3.65vw, 3.55rem);
  line-height: 0.98;
  overflow-wrap: anywhere;
}

#ixtisaslar .section-head p:last-child,
#hekimler .section-head p:last-child,
#mezunlar .section-head p:last-child {
  font-weight: 800;
}

#ixtisaslar .specialty-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(284px, auto);
  gap: 18px;
}

#ixtisaslar .specialty-card {
  min-height: 284px;
  padding: 20px;
  border-width: 2px;
  border-color: rgba(5, 150, 105, 0.24);
  grid-template-rows: auto auto 1fr auto;
}

#ixtisaslar .specialty-card:nth-child(1),
#ixtisaslar .specialty-card:nth-child(3),
#ixtisaslar .specialty-card:nth-child(5) {
  grid-column: auto;
  grid-row: auto;
}

.specialty-card-lines {
  display: grid;
  gap: 8px;
  width: min(170px, 72%);
}

.specialty-card-lines i {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: rgba(6, 78, 59, 0.24);
}

.specialty-card-lines i:nth-child(2) {
  width: 72%;
}

.specialty-card-lines i:nth-child(3) {
  width: 88%;
}

#ixtisaslar .specialty-card-lines {
  display: none;
}

.specialty-cta {
  grid-column: 2;
  border-width: 2px;
  background: #ffffff;
}

#hekimler .doctor-grid {
  grid-column: 2;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  grid-auto-rows: auto;
  align-items: start;
  gap: 18px;
}

#hekimler .doctor-detail-grid {
  grid-column: 2;
}

#hekimler .doctor-item:first-child {
  grid-column: auto;
  grid-row: auto;
}

#hekimler .doctor-item:nth-child(2) {
  grid-column: auto;
  grid-row: auto;
}

#hekimler .doctor-card {
  grid-template-columns: 1fr;
  grid-template-rows: 220px minmax(158px, 1fr);
  height: 100%;
  min-height: 390px;
  border-width: 2px;
}

#hekimler .doctor-card-media {
  width: 100%;
  height: 220px;
  min-height: 0;
}

#hekimler .doctor-item:first-child .doctor-card-media {
  height: 220px;
  min-height: 0;
}

#hekimler .doctor-card-body {
  align-content: start;
  min-height: 158px;
  border-top: 1px solid var(--line);
}

#hekimler .doctor-panel {
  border-width: 2px;
  margin-bottom: 2px;
}

#hekimler .doctor-detail-card {
  border-width: 2px;
}

#mezunlar .graduate-grid {
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  align-items: stretch;
  gap: 18px;
}

#mezunlar .graduate-card {
  border-width: 2px;
  min-height: 250px;
}

#mezunlar .graduate-card:nth-child(1) {
  transform: none;
}

#mezunlar .graduate-card:nth-child(2) {
  transform: none;
}

#mezunlar .graduate-card:nth-child(3) {
  transform: none;
}

#mezunlar .graduate-card:nth-child(4) {
  transform: none;
}

#biz-kimik,
#diaqnostika,
#unvan,
#reyler,
#partnyorlar,
#faq,
#muraciet {
  background: #ffffff;
}

@media (max-width: 1180px) {
  .desktop-nav {
    justify-content: flex-end;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .desktop-nav::-webkit-scrollbar {
    display: none;
  }

  .desktop-nav a {
    min-height: 32px;
    padding: 6px 8px;
    font-size: 0.72rem;
  }

  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    width: min(1200px, calc(100% - 24px));
  }

  .brand img {
    width: clamp(130px, 18vw, 176px);
  }

  .header-actions,
  .lang {
    flex-shrink: 0;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  #ixtisaslar > .container,
  #hekimler > .container,
  #mezunlar > .container {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    grid-template-columns: 1fr;
  }

  .hero-logo,
  .hero-copy .eyebrow,
  .hero-summary,
  .hero-actions,
  .hero-card {
    grid-column: auto;
  }

  .hero h1,
  .hero .lead {
    min-height: auto;
  }

  .hero-visual {
    order: -1;
  }

  #ixtisaslar .section-head,
  #hekimler .section-head,
  #mezunlar .section-head {
    position: static;
  }

  .specialty-cta {
    grid-column: auto;
  }

  #hekimler .doctor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #hekimler .doctor-grid,
  #hekimler .doctor-detail-grid {
    grid-column: auto;
  }

  #hekimler .doctor-item:first-child,
  #hekimler .doctor-item:nth-child(2) {
    grid-column: span 1;
    grid-row: span 1;
  }

  #mezunlar .graduate-card {
    transform: none !important;
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 112px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    gap: 8px 10px;
    min-height: auto;
    padding: 9px 0 8px;
  }

  .brand {
    grid-area: brand;
  }

  .header-actions {
    grid-area: actions;
  }

  .desktop-nav {
    grid-area: nav;
    width: 100%;
    justify-content: flex-start;
    padding: 0 2px 5px 0;
  }

  .desktop-nav a {
    min-height: 30px;
    padding: 5px 8px;
    font-size: 0.68rem;
  }

  .hero-grid,
  #ixtisaslar > .container,
  #hekimler > .container,
  #mezunlar > .container {
    border-radius: 14px;
    padding: 18px;
  }

  .hero-grid::before,
  #ixtisaslar > .container::before,
  #hekimler > .container::before,
  #mezunlar > .container::before {
    inset: 7px;
    border-radius: 10px;
  }

  .hero-logo {
    display: block;
    width: min(210px, 100%);
  }

  .hero h1 {
    font-size: 2.14rem;
  }

  .hero .lead {
    font-size: 1.14rem;
  }

  .hero-visual {
    grid-template-rows: minmax(0, 650px) auto;
  }

  .hero-photo-copy {
    inset: 18px 18px 70px;
    width: auto;
    gap: 11px;
  }

  .hero-photo-copy .hero-logo {
    width: min(180px, 72%);
    margin-bottom: 4px;
  }

  .hero-photo-copy .eyebrow {
    font-size: 0.82rem;
  }

  .hero-summary {
    font-size: 0.95rem;
    line-height: 1.38;
  }

  .hero-visual .hero-card {
    grid-template-columns: 1fr;
    margin-top: -24px;
    padding-inline: 10px;
  }

  .hero-visual .hero-card div {
    min-height: 66px;
    padding: 13px 15px;
  }

  #ixtisaslar .specialty-grid,
  #hekimler .doctor-grid,
  #mezunlar .graduate-grid,
  .about-bento {
    grid-template-columns: 1fr;
  }

  #ixtisaslar .specialty-card,
  #ixtisaslar .specialty-card:nth-child(1),
  #ixtisaslar .specialty-card:nth-child(3),
  #ixtisaslar .specialty-card:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
  }

  #mezunlar .graduate-card {
    min-height: auto;
  }

  .about-bento-card {
    min-height: 230px;
  }

  .about-bento-card-1 .about-card-art,
  .about-bento-card-3 .about-card-art {
    width: min(74%, 230px);
    height: 150px;
  }

  .about-card-art {
    width: 126px;
    height: 126px;
  }
}

/* Final hero correction: keep information on the left, and make only the picture block carry the fade + bullets. */
.hero-grid {
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
  align-items: stretch;
  gap: 26px;
  padding: clamp(22px, 3vw, 38px);
}

.hero-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 16px;
  max-width: none;
}

.hero-logo,
.hero-copy .eyebrow,
.hero h1,
.hero .lead,
.hero-summary,
.hero-actions {
  grid-column: 1 / -1;
}

.hero-logo {
  display: block;
  width: min(260px, 100%);
  margin: 0 0 8px;
}

.hero-copy .eyebrow {
  margin: 0;
}

.hero h1,
.hero .lead,
.hero-summary {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.hero h1 {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 150px;
  max-width: none;
  margin: 0;
  padding: 22px;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1;
  overflow-wrap: normal;
}

.hero .lead {
  display: flex;
  align-items: center;
  max-width: none;
  min-height: 126px;
  margin: 0;
  padding: 22px;
  color: var(--green-dark);
  font-size: clamp(1.28rem, 2.5vw, 2rem);
  font-weight: 900;
  line-height: 1.18;
}

.hero-summary {
  max-width: none;
  min-height: 128px;
  margin: 0;
  padding: 20px 22px;
  color: var(--text);
  font-size: clamp(1.02rem, 1.4vw, 1.24rem);
  font-weight: 800;
  line-height: 1.35;
}

.hero-actions {
  margin-top: 0;
}

.hero-visual {
  position: relative;
  display: block;
  align-self: stretch;
  min-height: clamp(620px, 46vw, 760px);
  margin: 0;
}

.hero-photo {
  position: relative;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-photo::before {
  content: none;
}

.hero-photo::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 42%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9) 58%, #ffffff 100%);
  pointer-events: none;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
}

.hero-photo-bullets {
  position: absolute;
  right: clamp(20px, 3vw, 42px);
  bottom: clamp(24px, 3vw, 38px);
  left: clamp(20px, 3vw, 42px);
  z-index: 2;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-photo-bullets li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: start;
  column-gap: 12px;
  color: var(--green-dark);
  font-size: clamp(1.02rem, 1.45vw, 1.28rem);
  font-weight: 900;
  line-height: 1.18;
}

.hero-photo-bullets li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 0.48em;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(5, 150, 105, 0.08);
}

.hero-photo-bullets strong {
  min-width: 0;
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    min-height: clamp(560px, 76vw, 720px);
  }
}

@media (max-width: 700px) {
  .hero-logo {
    display: block;
    width: min(210px, 100%);
  }

  .hero h1 {
    min-height: 120px;
    font-size: 2.14rem;
  }

  .hero .lead {
    min-height: 104px;
    font-size: 1.14rem;
  }

  .hero-summary {
    min-height: auto;
    font-size: 0.95rem;
    line-height: 1.38;
  }

  .hero-visual {
    min-height: 560px;
  }

  .hero-photo,
  .hero-visual img {
    min-height: 560px;
  }

  .hero-photo-bullets {
    right: 18px;
    bottom: 24px;
    left: 18px;
    gap: 8px;
  }

  .hero-photo-bullets li {
    grid-template-columns: 12px minmax(0, 1fr);
    column-gap: 10px;
    font-size: 1.02rem;
  }
}

/* Hero copy: logo and eyebrow removed, boxes stretch to fill the hero card */
.hero-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.hero h1 {
  flex: 1.5;
  min-height: 200px;
  border-color: rgba(178, 224, 200, 0.9);
  background: #edf6f1;
  font-size: clamp(2.2rem, 3.9vw, 3.9rem);
  line-height: 1.12;
}

.hero h1 .text-highlight {
  padding: 0;
  background: none;
}

.hero .lead {
  flex: 1;
  min-height: 150px;
  border-color: transparent;
  background: var(--green);
  color: #ffffff;
  font-size: clamp(1.7rem, 3.3vw, 2.7rem);
}

/* Green as co-dominant surface color */
#muraciet {
  background: var(--green-dark);
}

.hero-actions .btn {
  padding: 22px 44px;
  font-size: 1.3rem;
}

/* Header nav: one grouped block (Biz kimik → FAQ) + two standalone blocks, iOS app-icon corners */
.desktop-nav {
  gap: 10px;
}

.desktop-nav .nav-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.desktop-nav .nav-group a {
  min-height: 36px;
  border: none;
  border-radius: 11px;
  background: transparent;
}

.desktop-nav > a {
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 14px;
}

/* Specialty cards: symbol icon replaces the corner plus + squircle meta chips */
.specialty-card::after {
  content: none;
}

.specialty-card-symbol {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  color: var(--cyan-dark);
  background: rgba(5, 150, 105, 0.14);
}

.specialty-card-symbol svg {
  width: 40px;
  height: 40px;
}

.specialty-card-label {
  font-size: 1.85rem;
}

.specialty-card-meta-group {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.specialty-card-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--green-dark);
  background: rgba(5, 150, 105, 0.12);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.25;
}

#ixtisaslar .specialty-card {
  grid-template-rows: auto 1fr auto;
  row-gap: 12px;
}

/* İxtisaslar: header on top, cards spread across the full width as wide rectangles */
#ixtisaslar > .container {
  grid-template-columns: minmax(0, 1fr);
}

#ixtisaslar .specialty-grid {
  grid-auto-rows: minmax(210px, auto);
}

#ixtisaslar .specialty-grid .specialty-card {
  min-height: 210px;
}

#ixtisaslar .specialty-cta {
  grid-column: auto;
}

/* Biz kimik: eyebrow acts as the section header, title sits below it smaller */
#biz-kimik .eyebrow {
  margin-bottom: 10px;
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  line-height: 1.05;
}

#biz-kimik .section-head h2 {
  max-width: none;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.4;
}

/* Footer social links: squircle chips with icon + label */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--green-dark);
  background: #ffffff;
  font-weight: 900;
  transition: background 180ms ease, border-color 180ms ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  border-color: var(--green);
  background: var(--wash);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

/* Partners: continuously scrolling logo marquee */
.partners-grid {
  display: block;
  overflow: hidden;
}

.partner-track {
  display: flex;
  width: max-content;
  animation: partner-scroll 28s linear infinite;
}

.partners-grid:hover .partner-track,
.partners-grid:focus-within .partner-track {
  animation-play-state: paused;
}

.partner-track-set {
  display: flex;
  align-items: flex-start;
  gap: 56px;
  padding-right: 56px;
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 240px;
  min-height: 0;
  padding: 10px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.partner-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--green);
  font-size: 1.5rem;
  font-weight: 900;
}

.partner-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
}

@keyframes partner-scroll {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .partner-track {
    animation: none;
  }

  .partners-grid {
    overflow-x: auto;
  }
}

.partner-logo.has-image {
  width: 160px;
  height: 116px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

/* Section headers: never break mid-word (e.g. "Выпускники"), scale down instead */
#hekimler .section-head h2,
#mezunlar .section-head h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.9rem);
  line-height: 1.05;
  overflow-wrap: normal;
  word-break: keep-all;
}

/* Russian words run longer: scale the hero title down so lines break cleanly */
html[lang="ru"] .hero h1 {
  font-size: clamp(1.9rem, 3.2vw, 3.2rem);
}

html[lang="ru"] .hero-actions .btn {
  padding: 20px 26px;
  font-size: 1.12rem;
}

/* EN/RU: words are longer than AZ — never split a word, size text down instead */
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] .hero .lead,
html[lang="en"] .specialty-card-label,
html[lang="ru"] h1,
html[lang="ru"] h2,
html[lang="ru"] h3,
html[lang="ru"] .hero .lead,
html[lang="ru"] .specialty-card-label {
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: manual;
}

html[lang="en"] .about-bento-card h3,
html[lang="ru"] .about-bento-card h3 {
  font-size: clamp(1.2rem, 1.6vw, 1.6rem);
  line-height: 1.15;
}

/* Mobile: nav group dissolves into individual scrollable chips */
@media (max-width: 980px) {
  .desktop-nav .nav-group {
    display: contents;
  }

  .desktop-nav .nav-group a {
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
  }
}

/* Mobile: smaller specialty icon so the chips never collide with it */
@media (max-width: 640px) {
  .specialty-card-symbol {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .specialty-card-symbol svg {
    width: 28px;
    height: 28px;
  }

  .specialty-card-meta-group {
    padding-right: 64px;
  }
}

/* Brand: official stacked lockup, sized by header height */
.brand {
  display: inline-flex;
  align-items: center;
}

/* Mobile: burger menu replaces the chip nav */
@media (max-width: 980px) {
  .menu-toggle {
    display: inline-grid;
  }

  .desktop-nav {
    display: none;
  }

  .menu-panel a::after {
    color: var(--green);
  }

  .menu-toggle:hover {
    border-color: var(--green);
  }
}

/* Mobile header: single row — logo left, language + burger right */
@media (max-width: 980px) {
  :root {
    --header-height: 64px;
  }

  .topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: auto;
    padding: 8px 0;
  }

  .brand {
    order: 1;
    margin-right: auto;
  }

  .header-actions {
    order: 2;
  }

  .menu-toggle {
    order: 3;
  }
}

/* Language switcher inside the burger panel */
.menu-panel .lang {
  display: flex;
  justify-content: stretch;
  margin-top: 6px;
}

.menu-panel .lang button {
  flex: 1;
  min-height: 44px;
}

.site-header .brand img {
  width: auto;
  height: 58px;
}

@media (max-width: 980px) {
  .site-header .brand img {
    height: 46px;
  }
}

/* Written logo next to the lockup */
.brand {
  gap: 12px;
}

.site-header .brand img.brand-wordmark {
  height: 36px;
}

@media (max-width: 980px) {
  .site-header .brand img.brand-wordmark {
    height: 26px;
  }
}

/* Buttons: gradient + depth so they read as pressable */
.btn {
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, opacity 180ms ease, transform 150ms ease;
}

.btn.primary {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(26px) saturate(210%);
  backdrop-filter: blur(26px) saturate(210%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(6, 50, 40, 0.06),
    0 8px 24px rgba(6, 78, 59, 0.16);
  text-shadow: none;
}

.btn.primary::after {
  content: "";
  position: absolute;
  inset: 0 0 55% 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.02));
  pointer-events: none;
}

.btn.primary:hover {
  background: rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(6, 50, 40, 0.06),
    0 10px 28px rgba(6, 78, 59, 0.2);
  transform: translateY(-1px);
}

.btn.primary:active {
  background: rgba(235, 245, 240, 0.5);
  box-shadow: inset 0 2px 6px rgba(6, 50, 40, 0.16), 0 3px 8px rgba(6, 78, 59, 0.14);
  transform: translateY(1px);
}

.btn.secondary {
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #ffffff 0%, #eef8f2 100%);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 4px 10px rgba(6, 78, 59, 0.1),
    0 1px 3px rgba(6, 78, 59, 0.12);
}

.btn.secondary:hover {
  border-color: var(--green);
  background: linear-gradient(180deg, #ffffff 0%, #e2f3e9 100%);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 6px 14px rgba(6, 78, 59, 0.14),
    0 2px 4px rgba(6, 78, 59, 0.14);
  transform: translateY(-1px);
}

.btn.secondary:active {
  background: linear-gradient(180deg, #eef8f2 0%, #e2f3e9 100%);
  box-shadow: inset 0 2px 4px rgba(6, 78, 59, 0.14);
  transform: translateY(1px);
}

@media (prefers-reduced-motion: reduce) {
  .btn.primary:hover,
  .btn.primary:active,
  .btn.secondary:hover,
  .btn.secondary:active {
    transform: none;
  }
}


/* glass glare streak across the button */
.btn.primary::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -30%;
  width: 55%;
  height: 220%;
  transform: rotate(24deg);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

/* Mobile: hero CTA buttons 25% narrower, centered */
@media (max-width: 980px) {
  .hero-actions {
    justify-content: center;
  }

  .hero-actions .btn {
    width: 75%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Specialty card: Ətraflı button + syllabus modal */
.specialty-card {
  cursor: pointer;
}

.specialty-card-details {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 10px 16px;
  border: 1px solid var(--cyan);
  border-radius: 12px;
  color: var(--cyan-dark);
  background: #ffffff;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.specialty-card-details::after {
  content: "→";
  font-weight: 900;
}

.specialty-card-details:hover,
.specialty-card-details:focus-visible {
  color: #ffffff;
  background: var(--cyan);
  outline: none;
}

.syllabus-modal-shell {
  width: min(860px, 100%);
}

.syllabus-modal-shell > .eyebrow {
  margin-bottom: 8px;
}

.syllabus-modal-shell > h2 {
  margin: 0 0 22px;
  font-size: 1.7rem;
  line-height: 1.2;
}

.syllabus-list {
  display: grid;
  gap: 14px;
}

.syllabus-lesson {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.syllabus-lesson-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.syllabus-lesson-number {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--cyan);
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.syllabus-lesson-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.25;
}

.syllabus-lesson-topic {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.syllabus-lesson-practice {
  display: block;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--green-dark);
  background: rgba(5, 150, 105, 0.1);
  font-size: 0.9rem;
  line-height: 1.45;
}

.syllabus-lesson-practice strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .syllabus-modal-shell {
    padding: 26px 18px;
  }

  .syllabus-modal-shell > h2 {
    font-size: 1.4rem;
  }
}
