:root {
  --blue-dark: #0b3556;
  --blue-soft: #edf3f9;
  --text-main: #2b3340;
  --text-muted: #6a7280;
  --yellow: #f5b400;
  --card-border: #d7e0ec;
  --bg-body: #f4f6fb;
}

/* СБРОС/БАЗА */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-main);
  background: var(--bg-body);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ШАПКА */


/* Yellow strip above header */
:root{
  --top-strip-h: 6px; /* thickness */
}


.hero{
  margin-top: calc(64px + var(--top-strip-h));
}


/* HERO — Фудзи-сан фоном */

.hero {
  position: relative;
  height: 90vh;
  min-height: 560px;
  margin-top: 64px;          /* matches fixed header */
  overflow: hidden;

  background-image: url("https://saisei-mirai.or.jp/staging-saiseimi/wp-content/uploads/sites/3/shutterstock_2710189249.jpg");
  background-size: cover;
  background-position: center;

  color: #fff;
  display: flex;
  align-items: center;
}


.hero-content {
  max-width: 620px;
  
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  opacity: 0.85;
  margin-bottom: 10px;
}

.hero h1 {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin: 0 0 12px;
}

.hero-number {
  font-size: 84px;
  font-weight: 800;
  line-height: 0.9;
  color: #f8d56a;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.hero-main-text {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
}

.hero-subtext {
  font-size: 15px;
  max-width: 520px;
  line-height: 1.6;
  opacity: 0.95;
}

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

/* КНОПКИ */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--yellow);
  color: #2b2412;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #f4f6fb;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover,
.btn-secondary:hover {
  filter: brightness(1.05);
}

.btn-block {
  width: 100%;
}

/* ОБЩИЕ СЕКЦИИ */

.section {
  padding: 72px 0;
  background: #f9fbff;
}

.section-light {
  background: var(--blue-soft);
}

.section-title {
  text-align: center;
  font-size: 32px;
  margin: 0 0 8px;
  font-weight: 600;
}

.section-lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
  color: var(--text-muted);
  font-size: 15px;
}

/* CARD GRID */

.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card-grid-5 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px 22px 22px;
  border: 1px solid var(--card-border);
  box-shadow: 0 12px 24px rgba(12, 35, 66, 0.06);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.card-image .card-img {
  height: 150px;
  border-radius: 10px 10px 0 0;
  margin: -20px -22px 14px;
  background: linear-gradient(135deg, #d7e4f7, #f3f7ff);
}

.card-meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 2px;
}

.card-link .card-cta {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-dark);
  text-decoration: none;
  position: relative;
}

.card-link .card-cta::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--yellow);
}

/* ДОКТОРА */

.doctor-list {
  background: #fff;
  border-radius: 18px;
  padding: 16px 0;
  box-shadow: 0 18px 40px rgba(15, 35, 70, 0.08);
  border: 1px solid #dde5f1;
}

.doctor-item {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  gap: 14px;
}

.doctor-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid #e8eef7;
}

.doctor-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #eef3fb;
    display: flex;
    align-items: center;
    justify-content: center;
}

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


.doctor-body h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.doctor-role {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .doctor-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .doctor-avatar {
    width: 80px;
    height: 80px;
  }
}


/* CONTACT */

.contact-section {
  background: var(--blue-soft);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: flex-start;
  margin-top: 32px;
}

.contact-info h3 {
  margin: 0 0 18px;
  font-size: 22px;
}

.contact-columns {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--text-main);
}

.contact-columns h4 {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-form-card {
  background: #fff;
  border-radius: 26px;
  padding: 24px 26px 0px;
  box-shadow: 0 30px 70px rgba(9, 32, 68, 0.18);
}

.contact-form-card h3 {
  margin: 0 0 18px;
  font-size: 20px;
}

.contact-form label {
  display: block;
  font-size: 13px;
  margin-bottom: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d4deec;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 2px rgba(245, 180, 0, 0.35);
}

@media (max-width: 640px) {
  .contact-columns {
    flex-direction: column;
    gap: 20px;
  }

  .contact-form-card {
    border-radius: 20px;
    padding: 20px;
  }
}

/* АДАПТИВ */

@media (max-width: 960px) {
  .main-nav {
    display: none;
  }

  .btn-cta {
    margin-left: auto;
  }

  .hero {
    height: auto;
    min-height: 520px;
  }

  .hero {
    padding: 40px 0 56px;
  }

  .hero h1 {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-number {
    font-size: 70px;
  }

  .hero-main-text {
    font-size: 26px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 26px;
  }

  .hero-number {
    font-size: 60px;
  }

  .hero-main-text {
    font-size: 22px;
  }
}

/* ARTICLES GRID (с картинками как на примере) */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-top: 36px;
}

.article-card {
  background: #fff;
  border-radius: 14px;
  padding: 22px 20px 26px;
  border: 1px solid #dde5f1;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.04);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.article-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 16px;
}

.article-card h4 {
  font-size: 15px;
  margin: 0 0 10px;
  font-weight: 600;
}

.article-card p {
  font-size: 13px;
  line-height: 1.5;
  color: #666;
}
/* TREATMENT CARDS WITH IMAGE PLACEHOLDER */

.treatment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.treatment-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #dde5f1;
  box-shadow: 0 14px 30px rgba(10, 30, 60, 0.06);
  padding: 18px 18px 22px;
  text-align: left;
  display: flex;
  flex-direction: column;
}

/* Картинка в карточке */
.treatment-image {
  width: 100%;
  height: 200px;
  object-fit: cover;       /* ✅ НЕ будет сплющивания */
  border-radius: 14px;
  display: block;
  transition: transform 0.5s ease;   /* ✅ плавный зум */
}

/* ЗУМ ПРИ НАВЕДЕНИИ НА КАРТОЧКУ */
.treatment-card:hover .treatment-image {
  transform: scale(1.08);
}


.treatment-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.treatment-card p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}


/* --------------------
   LOCATION CARDS
---------------------*/

.location-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 30px rgba(10, 30, 60, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(10, 30, 60, 0.12);
}

/* IMAGE */
.location-image {
  width: 100%;
  height: 180px;
  object-fit: cover;     /* ✔ НЕ растягивает картинку */
  display: block;
}

/* TEXT */
.location-card h3 {
  font-size: 18px;
  margin: 16px 18px 4px;
  font-weight: 600;
}

.location-card span {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: #6b7280;
  margin: 0 18px 18px;
  display: block;
}

.location-content {
  padding: 16px 20px 20px;   /* ← вот здесь регулируем позицию */
}

.location-content h3 {
  margin: 0 0 6px 0;         /* заголовок ровно над Japan */
}

.location-meta {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #6b7280;
  margin: 0;                 /* чтобы Japan не сползала */
  text-transform: uppercase;
}

/* ---------- UNIVERSITIES SECTION ---------- */

.universities-section {
  text-align: center;
  padding: 70px 20px;
}

.universities-section h2 {
  font-size: 34px;
  margin-bottom: 10px;
}

.section-subtitle {
  color: #6a7280;
  margin-bottom: 40px;
}

/* ❗ По 3 карточки в ряд на десктопе */
.universities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Крупнее карточки */
.university-card {
  background: #ffffff;
  padding: 32px 26px;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(10, 30, 60, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.university-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 60px rgba(10, 30, 60, 0.12);
}

/* Крупнее логотипы */
.university-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 16px;
}

.university-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.university-card p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

/* 📱 Адаптация: на планшете по 2, на телефоне по 1 */
@media (max-width: 1024px) {
  .universities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .universities-grid {
    grid-template-columns: 1fr;
  }
}
.treatment-card{
  display:block;
  text-decoration:none;
  color:inherit;
}
.treatment-link{
  display:block;
  text-decoration:none;
  color:inherit;
}

.treatment-link:focus-visible{
  outline: 3px solid rgba(245,180,0,.45);
  outline-offset: 6px;
  border-radius: 18px;
}
.treatment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.treatment-link{
  display:block;
  text-decoration:none;
  color:inherit;
}

.treatment-card{
  height:100%;
}


/* =========================
   FULL-WIDTH SECTIONS
========================= */

/* Все основные блоки — на всю ширину экрана */
.site-header,
.hero,
.section,
.universities-section,
.site-footer {
  width: 100%;
}

/* Убираем ограничение фона у секций */
.section,
.universities-section {
  padding-left: 0;
  padding-right: 0;
}

/* Контент по центру, но фон на всю ширину */
.section > .container,
.universities-section > .container,
.site-footer > .container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}


@media (max-width: 768px) {
  .header-inner {
    gap: 12px;
  }

  .logo-title {
    font-size: 12px;
  }

  .logo-subtitle {
    display: none;
  }
}


/* GRID */
.aa-ageWithImage{
  display:grid;
  grid-template-columns: 1fr 0.9fr 1fr;
  gap:32px;
  align-items:center;
  margin-top:40px;
}

/* IMAGE BLOCK */
.aa-ageImage{
  position:relative;
  border-radius:20px;
  overflow:hidden;
  box-shadow:
    0 20px 50px rgba(0,0,0,0.12),
    inset 0 0 0 1px rgba(212,175,55,0.25);
  background:#000;
}

.aa-ageImage img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* GOLD LABEL */
.aa-ageImageLabel{
  position:absolute;
  bottom:14px;
  left:50%;
  transform:translateX(-50%);
  background:linear-gradient(135deg,#d4af37,#f3e7b3);
  color:#0b2b44;
  font-weight:600;
  font-size:13px;
  padding:6px 14px;
  border-radius:999px;
  letter-spacing:0.04em;
  box-shadow:0 4px 15px rgba(0,0,0,0.25);
}

/* MOBILE */
@media(max-width:900px){
  .aa-ageWithImage{
    grid-template-columns:1fr;
  }

  .aa-ageImage{
    max-height:320px;
  }
}




/* 1) Move the hero text a bit higher */
.hero{
  align-items: flex-start;     /* instead of center */
  padding-top: 120px;          /* adjust: 90–160px */
}

/* 2) Make text readable on bright image (glass panel) */
.hero-content{
  max-width: 620px;
  margin-top: 10px;            /* fine-tune */
  padding: 22px 22px 18px;
  border-radius: 18px;

  background: rgba(255,255,255,.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 18px 50px rgba(2,10,25,.18);
}

/* 3) Change text from white to dark navy for contrast */
.hero-kicker{
  color: rgba(3,19,38,.70);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 12px;
  margin: 0 0 10px;
}

.hero h1,
.hero-main-text{
  color: #071c2e;              /* deep navy */
}

.hero-number{
  color: #f0b429;              /* your gold */
  text-shadow: 0 10px 22px rgba(2,10,25,.18);
}

.hero-subtext{
  color: rgba(3,19,38,.78);
}

/* 4) Buttons still look good on the light card */
.hero-actions{
  margin-top: 14px;
}

/* Mobile spacing */
@media (max-width: 820px){
  .hero{ padding-top: 88px; }
  .hero-content{ margin: 0 14px; }
}

.hero-content{
  max-width: 760px;
  width: min(760px, 92vw);
  padding: 0;                 /* ❌ убираем внутренний отступ */
  background: none;           /* ❌ убираем белый фон */
  backdrop-filter: none;      /* ❌ убираем blur */
  -webkit-backdrop-filter: none;
  border: none;               /* ❌ убираем рамку */
  box-shadow: none;           /* ❌ убираем тень */
}

.hero h1,
.hero p,
.hero-kicker {
  text-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

.btn-primary{
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.btn-secondary{
  background: var(--yellow);
  color: #2b2412;
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.btn-secondary:hover{
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 16px;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.lang-switch .lang {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.lang-switch .lang:hover {
  color: #f0b429; /* твой фирменный желтый */
}

.lang-switch .active {
  color: #ffffff;
  font-weight: 600;
  cursor: default;
}

.lang-sep {
  color: rgba(255,255,255,0.35);
}

.article-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.article-link:hover .article-card {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.article-card p {
  margin-top: auto;
}
.article-link:hover .article-card {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(0,0,0,.14);
}
.article-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  margin-bottom: 16px;
}
.article-card {
  height: 100%;
  display: flex;
  flex-direction: column;

  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.article-link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.articles-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 🔥 ровно 3 в ряд */
  gap: 36px;
  align-items: stretch;
}

@media (max-width: 1024px){
  .articles-grid{
    grid-template-columns: repeat(2, 1fr); /* планшет */
  }
}

@media (max-width: 640px){
  .articles-grid{
    grid-template-columns: 1fr; /* мобильный */
  }
}
.articles-grid{
  max-width: 1100px;
  margin: 0 auto;
}


.location-link{
  display: block;
  text-decoration: none;
  color: inherit;
}

.location-link:hover .location-card{
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(10,30,60,0.12);
}

.university-photo {
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 18px;
}

.university-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* логотип */
.university-logo {
  width: 72px;
  height: auto;
  margin-bottom: 12px;
}

/* шапка */
.site-header{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  background: var(--blue-dark);
}

/* внутренняя строка: лого / меню / языки / кнопка */
.header-inner{
  display: flex;
  align-items: center;      /* ✅ вертикальное выравнивание всего */
  gap: 18px;
  min-height: 70px;         /* можно 72/76 если надо */
}

/* меню пусть не ломает кнопку */
.site-nav{
  flex: 1 1 auto;
}

/* блок справа (языки + кнопка) */
.header-right{
  display: flex;
  align-items: center;      /* ✅ вертикально ровно */
  gap: 14px;
}

/* кнопка */
.header-cta{
  display: inline-flex;
  align-items: center;      /* ✅ текст по центру */
  justify-content: center;
  height: 44px;             /* фикс высота = ровная капсула */
  padding: 0 18px;
  border-radius: 999px;
  background: var(--yellow);
  color: #0b2b44;
  font-weight: 700;
  line-height: 1;           /* ✅ убирает “плавание” текста */
  white-space: nowrap;
}
.logo{
  display:flex;
  align-items:center;
  gap: 12px;
  text-decoration:none;
  color:#fff;
}

.logo-badge{
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background:#fff;                 /* ✅ белый круг */
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  flex: 0 0 46px;
}

.logo-badge img{
  width: 80%;
  height: 80%;
  object-fit: contain;             /* ✅ логотип не обрезается */
  display:block;
}

.team-leads{
  margin-top: 14px;
}

.team-leads-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.team-lead-card{
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 10px 24px rgba(2,10,25,.06);
}

.team-avatar{
  width: 46px;
  height: 46px;
  border-radius: 999px;
  object-fit: cover;
  background: #f1f5f9;
  flex: 0 0 46px;
}

.team-name{
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.team-role{
  margin-top: 2px;
  font-size: 13px;
  color: #52606d;
}

@media (max-width: 900px){
  .team-leads-grid{ grid-template-columns: 1fr; }
}

/* ===== Doctors layout: Featured + Grid ===== */

.doctor-featured{
  display:flex;
  align-items:center;
  gap: 18px;
  padding: 22px 22px;
  background: var(--card, #fff);
  border-radius: var(--radius2, 22px);
  box-shadow: var(--softShadow, 0 14px 34px rgba(3, 15, 35, .12));
  border: 1px solid rgba(11, 43, 68, .08);
  margin-top: 26px;
  margin-bottom: 18px;
}

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

.doctor-card{
  display:flex;
  align-items:center;
  gap: 14px;
  padding: 16px 16px;
  background: var(--card, #fff);
  border-radius: 18px;
  border: 1px solid rgba(11, 43, 68, .08);
  box-shadow: 0 10px 26px rgba(3, 15, 35, .08);
}

/* avatar */
.doctor-avatar{
  width: 64px;
  height: 64px;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;
  background: #eef3f9;
  border: 1px solid rgba(11, 43, 68, .10);
}

.doctor-avatar--xl{
  width: 84px;
  height: 84px;
}

.doctor-avatar img{
  width: 100%;
  height: 100%;
  display:block;
  object-fit: cover;
}

/* text */
.doctor-body h3{
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.2;
}

.doctor-role{
  margin: 0;
  color: var(--muted, #52606d);
  font-size: 13px;
}

/* responsive */
@media (max-width: 860px){
  .doctor-grid{ grid-template-columns: 1fr; }
  .doctor-featured{ padding: 18px; }
  .doctor-card{ padding: 14px; }
}


/* ===== Doctor placeholder (SVG icon) ===== */

.doctor-avatar--placeholder{
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f7fbff, #eaf1f9);
}

.doctor-icon{
  width: 30px;
  height: 30px;
  fill: rgba(11, 43, 68, .55); /* navy, мягко */
}


.doctor-avatar--placeholder {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.doctor-icon {
  width: 26px;
  height: 26px;
  fill: #94a3b8;
}

.doctor-featured {
  margin-bottom: 28px;
}

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

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


/* Контейнер: 1 место, где задаем расстояния */
.doctors-stack{
  display:flex;
  flex-direction:column;
  gap:24px; /* ← одинаково красиво как gap в grid */
}

/* Featured (Inui) */
.doctor-card--featured{
  display:flex;
  align-items:center;
  gap:18px;
  padding:22px 24px;
  background:#fff;
  border-radius:22px;
  box-shadow: var(--softShadow);
}

/* Grid 2 колонки */
.doctor-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:24px;
}

/* Карточка */
.doctor-card{
  display:flex;
  align-items:center;
  gap:16px;
  padding:18px 20px;
  background:#fff;
  border-radius:22px;
  box-shadow: var(--softShadow);
  min-height:96px;
}

/* Аватар */
.doctor-avatar{
  width:64px;
  height:64px;
  border-radius:50%;
  flex:0 0 64px;
  overflow:hidden;
  background:#f4f7fb;
  border:1px solid rgba(11,43,68,.10);
  display:flex;
  align-items:center;
  justify-content:center;
}
.doctor-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Placeholder SVG */
.doctor-avatar--placeholder{
  background:#eef3f8;
}
.doctor-icon{
  width:26px;
  height:26px;
  fill: rgba(11,43,68,.45);
}

/* Текст */
.doctor-body h3{
  margin:0;
  font-size:18px;
  line-height:1.2;
}
.doctor-role{
  margin:6px 0 0;
  color: var(--muted);
  font-size:13px;
}

/* Mobile */
@media (max-width: 768px){
  .doctor-card--featured{
    flex-direction:column;
    align-items:flex-start;
  }
  .doctor-grid{
    grid-template-columns: 1fr;
  }
}



/* =========================
   ABOUT (Premium)
   ========================= */

.about-brand-grid{
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 64px;
  align-items: center;
  padding: 56px 44px;
  border-radius: 26px;
  background:
    radial-gradient(900px 420px at 18% 15%, rgba(255,255,255,.92), rgba(255,255,255,.72) 55%, rgba(255,255,255,.62) 100%),
    linear-gradient(180deg, rgba(244,247,251,.55), rgba(244,247,251,.2));
  box-shadow: 0 18px 55px rgba(2, 10, 25, 0.10);
  border: 1px solid rgba(11, 43, 68, 0.08);
  overflow: hidden;
}

/* subtle gold accent line (top) */
.about-brand-grid::before{
  content:"";
  position:absolute;
  left: 44px;
  right: 44px;
  top: 22px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(240,180,41,.95), transparent);
  opacity: .95;
}

/* very soft pattern (premium feel) */
.about-brand-grid::after{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(500px 220px at 78% 18%, rgba(240,180,41,.10), transparent 60%),
    radial-gradient(520px 240px at 20% 90%, rgba(16,58,92,.10), transparent 62%);
  pointer-events:none;
}

.about-brand-text{
  position: relative;
  z-index: 1;
}

.about-brand-text .section-title{
  margin: 0 0 16px;
  letter-spacing: .2px;
}

.about-brand-text p{
  margin: 0 0 14px;
  max-width: 56ch;
  color: rgba(15, 23, 42, .88);
  font-size: 16px;
  line-height: 1.75;
}

.about-brand-text p:last-child{ margin-bottom: 0; }

/* right side */
.about-brand-logo{
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 12px;
}

/* logo seal */
.logo-circle{
  width: 280px;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,1), rgba(255,255,255,.92) 55%, rgba(255,255,255,.86) 100%);
  display: grid;
  place-items: center;
  border: 1px solid rgba(11, 43, 68, 0.12);
  box-shadow:
    0 18px 60px rgba(2, 10, 25, 0.14),
    inset 0 0 0 10px rgba(240, 180, 41, 0.10);
}

.logo-circle img{
  width: 66%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(2, 10, 25, 0.18));
}

/* caption like a signature */
.logo-caption{
  margin: 0;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(82, 96, 109, .92);
}

/* responsive */
@media (max-width: 920px){
  .about-brand-grid{
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 44px 26px;
    text-align: center;
  }
  .about-brand-grid::before{
    left: 26px;
    right: 26px;
  }
  .about-brand-text p{
    margin-left: auto;
    margin-right: auto;
  }
  .logo-circle{
    width: 240px;
  }
}

/* Eyebrow (premium tag) */
.about-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(82, 96, 109, .95);
}

.about-eyebrow .dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f0b429, #d9a116);
  box-shadow: 0 0 0 3px rgba(240,180,41,.18);
}

/* Center on mobile */
@media (max-width: 920px){
  .about-eyebrow{
    justify-content: center;
  }
}


/* =========================
   Expandable About block
========================= */

.about-block{
  background:#fff;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(2,10,25,.10);
  border: 1px solid rgba(15,23,42,.08);
  overflow:hidden;
}

.about-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 0;
  align-items: center;
  min-height: 420px;
}

.about-copy{
  padding: 44px 44px 40px;
}

.about-kicker{
  display:flex;
  align-items:center;
  gap:10px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #6a7280;
  margin-bottom: 14px;
}

.about-kicker .dot{
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--yellow, #f5b400);
  box-shadow: 0 0 0 4px rgba(245,180,0,.18);
}

.about-title{
  margin:0 0 14px;
  font-size: 44px;
  line-height: 1.15;
  color: var(--text-main, #2b3340);
}

.about-intro p,
.about-more p{
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--text-main, #2b3340);
}

/* Collapsible area (default closed) */
.about-more{
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height .35s ease, opacity .25s ease, transform .25s ease;
}

/* Open state */
.about-block.is-open .about-more{
  max-height: 520px; /* enough for a few paragraphs */
  opacity: 1;
  transform: translateY(0);
}

/* Actions */
.about-actions{
  display:flex;
  align-items:center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.about-toggle{
  border: 0;
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--blue-dark, #0b3556);
  color: #fff;
  box-shadow: 0 14px 30px rgba(2,10,25,.18);
}

.about-toggle:hover{opacity:.96}

.about-link{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(11,53,86,.18);
  color: var(--blue-dark, #0b3556);
  font-weight: 800;
  text-decoration:none;
  background: #fff;
}

.about-link:hover{background: rgba(11,53,86,.05)}

/* Right side */
.about-visual{
  background:
    radial-gradient(480px 260px at 55% 35%, rgba(245,180,0,.14), rgba(245,180,0,0) 60%),
    radial-gradient(520px 300px at 60% 55%, rgba(11,53,86,.12), rgba(11,53,86,0) 62%),
    linear-gradient(180deg, #fafcff 0%, #f4f6fb 100%);
  height: 100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding: 34px 24px;
  text-align:center;
}

.about-logo-ring{
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  border: 8px solid rgba(245,180,0,.18);
  box-shadow: 0 22px 60px rgba(2,10,25,.16);
  display:grid;
  place-items:center;
}

.about-logo-ring img{
  width: 170px;
  height: 170px;
  object-fit: contain;
}

.about-visual-caption{
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #6a7280;
}

/* Responsive */
@media (max-width: 980px){
  .about-grid{
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .about-copy{
    padding: 34px 22px 26px;
  }
  .about-title{
    font-size: 34px;
  }
  .about-logo-ring{
    width: 240px;
    height: 240px;
  }
  .about-logo-ring img{
    width: 140px;
    height: 140px;
  }
}

/* =========================
   Approach — centered head
========================= */

.approach-centered{
  padding: 70px 0 60px;
}

.approach-centered__inner{
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.approach-centered__head{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.approach-centered__logo{
  height: 40px;
  width: auto;
  display: block;
}

.approach-centered__title{
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
}

.approach-centered__desc{
  margin: 0 auto;
  max-width: 760px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
}

/* Mobile */
@media (max-width: 640px){
  .approach-centered{
    padding: 50px 0 40px;
  }

  .approach-centered__head{
    gap: 10px;
  }

  .approach-centered__logo{
    height: 34px;
  }

  .approach-centered__desc{
    font-size: 16px;
  }
}

/* =========================
   TREATMENTS — bigger images
   (keeps 6 cards)
========================= */

.treatment-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}

.treatment-link{
  text-decoration: none;
  color: inherit;
  display: block;
}

.treatment-card{
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--softShadow);
  transition: transform .18s ease, box-shadow .18s ease;
}

.treatment-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* 🔥 главное: большая “шапка” с фото */
.treatment-image{
  width: 100%;
  height: 260px;            /* увеличили! (было меньше/auto) */
  object-fit: cover;
  display: block;
  background: #e9eef5;
}

/* текстовый блок компактнее, чтобы фото доминировало */
.treatment-card h3{
  margin: 16px 18px 10px;
  font-size: 18px;
  line-height: 1.25;
  color: var(--text);
}

.treatment-card p{
  margin: 0 18px 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* Tablet: 2 колонки */
@media (max-width: 980px){
  .treatment-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .treatment-image{
    height: 240px;
  }
}

/* Mobile: 1 колонка */
@media (max-width: 640px){
  .treatment-grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .treatment-image{
    height: 220px;
  }
}

/* =========================
   TREATMENTS — flat style
   (like Siteman)
========================= */

.treatment-card{
  background: transparent;   /* убрали карточку */
  border-radius: 0;          /* убрали скругления */
  box-shadow: none;          /* убрали тень */
  overflow: visible;
  transition: none;
}

.treatment-card:hover{
  transform: none;
  box-shadow: none;
}

/* большое фото без рамок */
.treatment-image{
  width: 100%;
  height: 280px;             /* можно менять: 260–320 */
  object-fit: cover;
  display: block;
  border-radius: 0;          /* важно */
}

/* текст как редакционный блок */
.treatment-card h3{
  margin: 16px 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.treatment-card p{
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* сетка чуть “воздушнее”, как у Siteman */
.treatment-grid{
  gap: 36px 28px;
}

/* Tablet */
@media (max-width: 980px){
  .treatment-image{
    height: 260px;
  }
}

/* Mobile */
@media (max-width: 640px){
  .treatment-image{
    height: 220px;
  }
  .treatment-grid{
    gap: 26px;
  }
}
/* =========================
   TREATMENTS — Siteman style
========================= */

.treatment-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 28px;
  align-items: stretch;
}

/* ссылка — как блок */
.treatment-link{
  display: block;
  text-decoration: none;
  color: inherit;
}

/* карточка = белая панель, без rounded */
.treatment-card{
  height: 100%;
  display: flex;
  flex-direction: column;

  background: #fff;
  border: 1px solid rgba(15, 23, 42, .14);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;

  padding: 0;
  transition: none;
}

/* фото большое, без скруглений */
.treatment-image{
  width: 100%;
  height: 300px;           /* как у Siteman — большое фото */
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* типографика и центр как у Siteman */
.treatment-card h3{
  margin: 22px 22px 12px;
  text-align: center;

  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;

  color: var(--text);
}

.treatment-card p{
  margin: 0 26px 22px;
  text-align: center;

  color: var(--text);
  opacity: .85;
  font-size: 15px;
  line-height: 1.85;
}

/* Добавляем кнопку "Learn more" снизу как у Siteman
   (без изменения HTML: рисуем псевдоэлементом) */
.treatment-card::after{
  content: "Learn More";
  display: inline-block;

  align-self: center;
  margin: auto 0 24px;     /* прижимает кнопку к низу */
  padding: 12px 34px;

  border: 2px solid #1d4ed8;   /* спокойный синий, близко к референсу */
  color: #1d4ed8;
  background: transparent;

  font-weight: 600;
  font-size: 14px;
  letter-spacing: .02em;
}

/* hover — очень деликатный */
.treatment-link:hover .treatment-card{
  border-color: rgba(29, 78, 216, .55);
}

.treatment-link:hover .treatment-card::after{
  background: rgba(29, 78, 216, .08);
}

/* Tablet: 2 колонки */
@media (max-width: 980px){
  .treatment-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .treatment-image{
    height: 270px;
  }
  .treatment-card h3{
    font-size: 30px;
  }
}

/* Mobile: 1 колонка */
@media (max-width: 640px){
  .treatment-grid{
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .treatment-image{
    height: 230px;
  }
  .treatment-card h3{
    font-size: 28px;
  }
}

.treatment-grid{
  gap: 40px 36px;
}

.treatment-card{
  padding-left: 0;
  padding-right: 0;
}

.treatment-image{
  height: 340px;
}

/* =========================
   TREATMENTS — extra wide like Siteman
========================= */

/* делаем секцию шире контейнера */
#treatments .container{
  max-width: 1320px;   /* было ~1200 */
}

/* уменьшаем "воздух" между колонками */
.treatment-grid{
  gap: 28px;
}

/* убираем любые внутренние ограничения */
.treatment-card{
  padding-left: 0;
  padding-right: 0;
}

/* фото реально на всю ширину колонки */
.treatment-image{
  width: 100%;
  height: 340px;       /* ключевое: визуально как у Siteman */
  object-fit: cover;
  display: block;
}

/* Tablet */
@media (max-width: 1200px){
  #treatments .container{
    max-width: 1100px;
  }
  .treatment-image{
    height: 300px;
  }
}

/* Mobile */
@media (max-width: 640px){
  #treatments .container{
    max-width: 100%;
  }
  .treatment-image{
    height: 240px;
  }
}

/* =========================
   Universities — FINAL Siteman style
   photo (square) + logo + name under
========================= */

.university-card{
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

/* PHOTO: square / rectangular, no rounding */
.university-photo img{
  width: 100%;
  height: 260px;          /* можно 240–300 */
  object-fit: cover;
  display: block;
  border-radius: 0;
  box-shadow: none;
}

/* LOGO + NAME ROW (under photo) */
.university-logo{
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  margin: 14px 10px 0 0;
}

.university-card h3{
  display: inline-block;
  vertical-align: middle;
  margin: 14px 0 6px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

/* description text */
.university-card p{
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* GRID spacing stays editorial */
.universities-grid{
  gap: 36px 28px;
}

/* Tablet */
@media (max-width: 980px){
  .universities-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .university-photo img{
    height: 240px;
  }
}

/* Mobile */
@media (max-width: 640px){
  .universities-grid{
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .university-photo img{
    height: 220px;
  }
  .university-logo{
    width: 36px;
    height: 36px;
  }
  .university-card h3{
    font-size: 16px;
  }
}

/* === FORCE: no rounded corners, no frames (Universities photos) === */

.university-photo,
.university-photo img{
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* если где-то применялись общие стили для img */
.universities-section img{
  border-radius: 0 !important;
  box-shadow: none !important;
}


/* =========================
   Universities — match slide
========================= */

.universities-slide{
  background:#fff;
  padding: 64px 0 70px;
}

.universities-slide .container{
  max-width: 1200px;
}

.uni-title{
  margin: 0;
  text-align: center;
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.uni-accent{
  height: 6px;
  width: min(980px, 86%);
  margin: 14px auto 34px;
  background: #f59e0b; /* orange line */
}

/* grid 3x2 */
.uni-slide-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 32px;
  align-items: start;
}

/* no card look */
.uni-slide-card{
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

/* photos: flat, no frame, consistent size */
.uni-slide-photo img{
  width: 100%;
  height: auto;          /* ВАЖНО */
  max-height: none;      /* чтобы не резало */
  object-fit: contain;   /* ничего не обрезается */
  display: block;
}


/* logo + name centered under photo */
.uni-row{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  text-align: center;
}

.uni-logo{
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  border-radius: 0;
}

.uni-name{
  font-size: 22px;
  font-weight: 500;
  color: #0f172a;
  line-height: 1.1;
  white-space: nowrap;
}

/* allow long name to wrap nicely (Kyoto) */
.uni-slide-card:nth-child(5) .uni-name{
  white-space: normal;
  max-width: 320px;
}

/* Tablet */
@media (max-width: 980px){
  .uni-slide-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 26px;
  }
  .uni-slide-photo img{
    height: 210px;
  }
  .uni-name{
    font-size: 20px;
  }
}

/* Mobile */
@media (max-width: 640px){
  .universities-slide{
    padding: 48px 0 56px;
  }
  .uni-accent{
    height: 5px;
    margin-bottom: 26px;
  }
  .uni-slide-grid{
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .uni-slide-photo img{
    height: 200px;
  }
  .uni-name{
    font-size: 18px;
    white-space: normal;
  }
}


.uni-slide-photo img{
  width: 100%;
  height: auto;          /* ВАЖНО */
  max-height: none;      /* чтобы не резало */
  object-fit: contain;   /* ничего не обрезается */
  display: block;
}

.uni-slide-photo img{
  width: 100%;
  height: auto;
  max-height: 260px;   /* подбери 240–280 */
  object-fit: contain;
}

/* =====================================================
   UNIVERSITIES — PPTX STYLE (NO CROPPING, FULL HEIGHT)
   Paste this at the VERY END of your CSS
===================================================== */

/* Section */
.universities-section{
  padding: 64px 0 72px;
  background: #f6f8fb;
}

.universities-section h2{
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 6px;
}

.universities-section .section-subtitle{
  text-align: center;
  max-width: 820px;
  margin: 0 auto 44px;
  color: #6b7280;
  font-size: 15px;
}

/* Grid: 3 x 2 */
.universities-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
  align-items: start;
}

/* Card — NOT a card */
.university-card{
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  overflow: visible !important;
}

/* Photo wrapper — MUST NOT CROP */
.university-photo{
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Image — FULL HEIGHT, NO CUT */
.university-photo img{
  width: 100%;
  height: auto !important;
  max-height: none !important;
  display: block;
  object-fit: unset !important;   /* critical */
  border-radius: 0;
  box-shadow: none;
}

/* Logo + name row */
.university-logo{
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  margin: 14px 10px 0 0;
}

.university-card h3{
  display: inline-block;
  vertical-align: middle;
  margin: 14px 0 6px;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  line-height: 1.25;
}

/* Description (if used) */
.university-card p{
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
}

/* Tablet */
@media (max-width: 980px){
  .universities-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 26px;
  }
}

/* Mobile */
@media (max-width: 640px){
  .universities-section{
    padding: 48px 0 56px;
  }

  .universities-grid{
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .university-logo{
    width: 38px;
    height: 38px;
  }

  .university-card h3{
    font-size: 16px;
  }
}

/* === Force Kyoto Prefectural University of Medicine to stay on ONE line === */

/* target ONLY the Kyoto card */
.university-card:nth-child(5) h3{
  white-space: nowrap;        /* no line break */
}

/* keep logo + text perfectly aligned */
.university-card:nth-child(5){
  display: flex;
  flex-direction: column;
  align-items: center;
}

.university-card:nth-child(5) .university-logo,
.university-card:nth-child(5) h3{
  vertical-align: middle;
}

/* =====================================================
   FORCE Kyoto logo + name on ONE LINE
===================================================== */

/* Target ONLY Kyoto Prefectural University of Medicine */
.university-card:nth-child(5){
  text-align: center;
}

/* Make logo + name a single flex row */
.university-card:nth-child(5) .university-logo,
.university-card:nth-child(5) h3{
  display: inline-block;
  vertical-align: middle;
}

/* Wrap logo + text visually on one line */
.university-card:nth-child(5){
  white-space: nowrap;
}

/* Fine-tune spacing */
.university-card:nth-child(5) .university-logo{
  margin-right: 10px;
}

.university-card:nth-child(5) h3{
  margin-top: 0;
  margin-bottom: 0;
  font-size: 17px; /* slightly smaller to fit */
  line-height: 1.2;
}

/* =====================================================
   Kyoto Prefectural University of Medicine — ONE LINE
   (logo + name inline, CSS-only, FINAL)
===================================================== */

/* Target ONLY Kyoto card */
.university-card:nth-child(5){
  text-align: center;
}

/* Hide separate logo image */
.university-card:nth-child(5) .university-logo{
  display: none !important;
}

/* Turn h3 into inline row with logo */
.university-card:nth-child(5) h3{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 17px;
  line-height: 1.2;
}

/* Inject logo inside text */
.university-card:nth-child(5) h3::before{
  content: "";
  width: 44px;
  height: 44px;
  background-image: url("https://saisei-mirai.or.jp/en/wp-content/uploads/sites/3/5a8be20ccdf7e9a6abd71ccff61f4f73.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  flex: 0 0 auto;
}

/* =====================================================
   Autism Spectrum — show full image (no cropping)
===================================================== */

/* Target Autism card ONLY */
.treatment-card:nth-child(5) img,
.treatment-card[data-type="autism"] img{
  object-fit: contain !important;  /* показать ВСЮ картинку */
  height: auto !important;
  max-height: none !important;
  background: #fff;                /* чтобы не было серых полей */
}

/* Make Autism image visually wider */
.treatment-card:nth-child(5) img{
  padding: 0 6px;
}

/* =====================================================
   Autism Spectrum — wide diagram, no crop, readable text
===================================================== */

/* Target Autism card ONLY */
.treatment-card:nth-child(5) {
  grid-column: span 1; /* keep grid logic intact */
}

/* Image container */
.treatment-card:nth-child(5) .treatment-image,
.treatment-card:nth-child(5) .card-image,
.treatment-card:nth-child(5) .image-wrapper {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 12px 16px; /* breathing space like PPT */
}

/* Image itself */
.treatment-card:nth-child(5) img {
  width: 100%;
  height: auto !important;
  max-width: 100%;
  object-fit: contain !important;
  display: block;
  margin: 0 auto;
  background: #fff;
}

/* Optional: make Autism card visually wider */
@media (min-width: 1024px) {
  .treatment-card:nth-child(5) {
    transform: scaleX(1.06); /* subtle widen, PPT-like */
  }
}

/* =========================================
   FIX: Autism (5th card) image must NOT crop
   (targets .treatment-link #5 inside .treatment-grid)
========================================= */

/* 1) Target ONLY 5th card (Autism) */
.treatment-grid > .treatment-link:nth-child(5) .treatment-image{
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;   /* <-- ключ: НЕ cover */
  object-position: center !important;
  display: block !important;
}

/* 2) If you have a wrapper that clips the image */
.treatment-grid > .treatment-link:nth-child(5) .treatment-card{
  overflow: visible !important;
}

/* 3) If your CSS forces all images to fixed height */
.treatment-grid > .treatment-link:nth-child(5) .treatment-card img{
  height: auto !important;
  object-fit: contain !important;
}

/* 4) Optional: give a bit more horizontal room inside image area */
.treatment-grid > .treatment-link:nth-child(5) .treatment-card{
  padding-left: 16px;
  padding-right: 16px;
}


.hero-subtext{
  max-width: 520px;
  margin-top: 14px;
  padding: 0;
}

.hero-lead{
  display: block;
  font-size: 19px;
  font-weight: 600;
  color: #0b3556; /* deep medical blue */
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}

.hero-focus{
  display: block;
  margin-top: 4px;
  font-size: 16px;
  color: #1f3b52;
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}

.hero-focus strong{
  font-weight: 700;
  color: #0b3556;
}