/* =========================================================
   ЛОР-кабинет доктора Сухачёва — lorkds.ru
   Оформление сайта «ЛОР-кабинет доктора Сухачёва»
   ========================================================= */

:root {
  --blue: #0d52d6;
  --blue-dark: #0a41ac;
  --blue-light: #eaf0fd;
  --orange: #e96631;
  --text: #696973;
  --muted: #8b9198;
  --dark: #2c3640;
  --dark-2: #3a4754;
  --bg: #f8f8f8;
  --card: #f0f2f5;
  --line: #e6e6e6;
  --white: #fff;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 6px 24px rgba(44, 54, 64, .08);
  --shadow-hover: 0 12px 32px rgba(13, 82, 214, .14);
  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: #000;
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; transition: color .2s ease, background .2s ease, opacity .2s ease; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4, h5 {
  font-family: Montserrat, Roboto, sans-serif;
  font-weight: 700;
  color: #000;
  margin: 0 0 18px;
  line-height: 1.3;
}

p { margin: 0 0 15px; color: var(--text); }

ul { margin: 0; padding: 0; list-style: none; }

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

.btn {
  display: inline-block;
  padding: 13px 30px;
  border: 0;
  border-radius: 50px;
  background: var(--blue);
  color: #fff;
  font-family: Montserrat, Roboto, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2px;
  text-align: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--blue-dark); color: #fff; box-shadow: 0 8px 20px rgba(13, 82, 214, .3); }
.btn--ghost { background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .6); }
.btn--ghost:hover { background: #fff; color: var(--blue); box-shadow: none; }
.btn--light { background: var(--card); color: var(--blue); }
.btn--light:hover { background: #e4e8ee; color: var(--blue-dark); box-shadow: none; }
.btn--orange { background: var(--orange); }
.btn--orange:hover { background: #d4551f; box-shadow: 0 8px 20px rgba(233, 102, 49, .3); }

/* ---------------- Верхняя строка ---------------- */

.topline {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.topline__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 38px;
}
.topline__links { display: flex; gap: 22px; flex-wrap: wrap; }
.topline__links a { color: var(--text); }
.topline__links a:hover { color: var(--blue); }
.topline__right { display: flex; gap: 22px; align-items: center; color: var(--muted); }
.topline__right a { color: var(--muted); }
.topline__right a:hover { color: var(--blue); }

/* ---------------- Шапка ---------------- */

.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 18px 20px;
}

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo:hover { opacity: .85; }
.logo__mark {
  width: 52px; height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, #2f74f0 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(13, 82, 214, .28);
}
.logo__mark svg { width: 28px; height: 28px; fill: #fff; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__title {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: .4px;
}
.logo__sub { font-size: 12.5px; color: var(--blue); font-weight: 500; }

.header__address {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.4;
  margin-left: auto;
}
.header__address svg { width: 22px; height: 22px; fill: var(--orange); flex-shrink: 0; }
.header__address strong { display: block; color: #000; font-weight: 500; }

.header__phone { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.header__phone a.tel {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--dark);
}
.header__phone a.tel:hover { color: var(--blue); }
.header__phone .btn { padding: 9px 22px; font-size: 13px; }

.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  padding: 10px 9px;
}
.burger span { display: block; height: 2px; background: var(--dark); border-radius: 2px; margin: 4px 0; transition: .25s; }

/* ---------------- Меню ---------------- */

.nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}
.nav__list { display: flex; flex-wrap: wrap; }
.nav__list > li > a {
  display: block;
  padding: 15px 20px;
  color: var(--dark);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  position: relative;
}
.nav__list > li > a:hover,
.nav__list > li.is-active > a {
  color: var(--blue);
  border-bottom-color: var(--blue);
  background: var(--blue-light);
}
.nav__list > li.is-active > a { font-weight: 700; }
.nav__phone {
  margin-left: auto;
  display: flex;
  align-items: center;
  padding: 0 4px 0 20px;
}
.nav__phone a { font-weight: 700; color: var(--blue); }

/* ---------------- Герой ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(255, 255, 255, .18), transparent 60%),
    linear-gradient(120deg, var(--blue) 0%, #1d63ea 55%, #3f86ff 100%);
  color: #fff;
  padding: 66px 0 74px;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; bottom: -160px;
  width: 460px; height: 460px;
  border: 60px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
}
.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 46px;
  align-items: center;
}
.hero h1 {
  color: #fff;
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero__lead {
  color: rgba(255, 255, 255, .92);
  font-size: 17px;
  max-width: 640px;
  margin-bottom: 26px;
}
.hero__badges { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero__badge {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 13.5px;
  line-height: 1.35;
  backdrop-filter: blur(3px);
}
.hero__badge b { display: block; font-family: Montserrat, sans-serif; font-size: 14px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
  color: var(--text);
  box-shadow: 0 18px 40px rgba(4, 26, 74, .28);
}
.hero__card img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 4px solid var(--blue-light); }
.hero__card h3 { font-size: 16px; margin-bottom: 6px; }
.hero__card .role { color: var(--blue); font-size: 13px; font-weight: 500; margin-bottom: 12px; }
.hero__card .hours {
  background: var(--card);
  border-radius: var(--radius);
  padding: 10px;
  font-size: 12.5px;
  color: var(--text);
}

/* ---------------- Секции ---------------- */

.section { padding: 56px 0; }
.section--white { background: #fff; }
.section--grey { background: var(--bg); }
.section--dark { background: var(--dark); }

.section__head { text-align: center; max-width: 780px; margin: 0 auto 34px; }
.section__head h2 { font-size: 27px; }
.section__head p { font-size: 15px; }
.section__head .accent {
  display: inline-block;
  color: var(--orange);
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.title {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #000;
  margin: 0 0 16px;
}

.page-head {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
}
.page-head h1 { font-size: 30px; margin: 0; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: var(--muted); }

/* ---------------- Карточки ---------------- */

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: transparent; }
.card h3 { font-size: 17px; }
.card p:last-child { margin-bottom: 0; }

.card--soft { background: var(--card); border-color: transparent; }

.icon-tile {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.icon-tile svg { width: 26px; height: 26px; fill: var(--blue); }
.icon-tile--orange { background: #fdeee7; }
.icon-tile--orange svg { fill: var(--orange); }

/* ---------------- Врачи ---------------- */

.doctor {
  display: flex;
  gap: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow .25s ease, transform .25s ease;
}
.doctor:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.doctor__photo {
  width: 170px; height: 170px;
  flex: 0 0 170px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--card);
}
.doctor__name { font-size: 19px; margin-bottom: 6px; }
.doctor__role {
  color: var(--blue);
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 12px;
}
.doctor__text { font-size: 14px; color: var(--text); margin-bottom: 14px; }
.doctor__hours {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 9px 14px;
  font-size: 13.5px;
  color: var(--dark);
}
.doctor__hours svg { width: 17px; height: 17px; fill: var(--orange); flex-shrink: 0; }
.doctor__hours b { color: var(--blue); }

/* ---------------- Списки ---------------- */

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 11px;
  color: var(--text);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/11px no-repeat;
}
.check-list li strong { color: #000; }

.dash-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 9px;
  color: var(--text);
}
.dash-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

.num-list { counter-reset: n; }
.num-list li {
  counter-increment: n;
  position: relative;
  padding-left: 42px;
  margin-bottom: 16px;
  color: var(--text);
}
.num-list li::before {
  content: counter(n);
  position: absolute;
  left: 0; top: -2px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------------- Услуги ---------------- */

.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: 100%;
  transition: box-shadow .25s ease, transform .25s ease;
}
.service:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.service h3 { font-size: 16px; margin-bottom: 10px; }
.service p { font-size: 13.5px; margin-bottom: 0; }
.service .tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 50px;
  padding: 3px 12px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: Montserrat, sans-serif;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 12px;
}
.service .tag--orange { background: #fdeee7; color: var(--orange); }

/* ---------------- Таблицы ---------------- */

.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow-x: auto; }

table.table { width: 100%; border-collapse: collapse; min-width: 640px; }
table.table th, table.table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.table thead th {
  background: var(--blue);
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 0;
  white-space: nowrap;
}
table.table tbody tr:last-child td { border-bottom: 0; }
table.table tbody tr:hover { background: #fafbff; }
table.table td { color: var(--text); font-size: 14px; }
table.table td.num { color: #000; font-weight: 500; white-space: nowrap; }
table.table td.code { color: var(--muted); font-size: 13px; white-space: nowrap; }
table.table tr.group td {
  background: var(--card);
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  color: #000;
}
table.table tr.group:hover td { background: var(--card); }
table.table td.right, table.table th.right { text-align: right; }

.note {
  background: var(--card);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 15px 18px;
  font-size: 13.5px;
  color: var(--text);
  margin-top: 20px;
}
.note strong { color: #000; }

/* ---------------- ДМС / отзывы ---------------- */

.dms-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.dms-grid div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  display: flex; align-items: center; justify-content: center;
  min-height: 92px;
}
.dms-grid img { max-height: 70px; width: auto; object-fit: contain; }

.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review__stars { color: var(--orange); letter-spacing: 3px; font-size: 15px; }
.review p { font-size: 14px; font-style: italic; margin: 0; }
.review__author {
  margin-top: auto;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .6px;
}
.review__author::before { content: "— "; color: var(--muted); font-weight: 400; }

/* ---------------- Галерея ---------------- */

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--card); }
.gallery img { width: 100%; height: 210px; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.05); }

/* ---------------- Контакты ---------------- */

.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.contact-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: 100%;
}
.contact-item .icon-tile { width: 46px; height: 46px; margin-bottom: 14px; }
.contact-item .icon-tile svg { width: 22px; height: 22px; }
.contact-item h3 { font-size: 15px; margin-bottom: 8px; }
.contact-item p, .contact-item a { font-size: 14px; color: var(--text); margin: 0; display: block; }
.contact-item a:hover { color: var(--blue); }
.contact-item .big { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 17px; color: var(--dark); }

.map {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  height: 400px;
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 9px 0; border-bottom: 1px dashed var(--line); color: var(--text); font-size: 14px; }
.hours-table tr:last-child td { border-bottom: 0; }
.hours-table td:last-child { text-align: right; color: #000; font-weight: 500; }
.hours-table .off { color: var(--muted); font-weight: 400; }

/* ---------------- FAQ ---------------- */

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 20px;
  margin-bottom: 12px;
  transition: box-shadow .2s ease;
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 30px 17px 0;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #000;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
  font-size: 22px;
  font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; margin: 0; font-size: 14px; }

/* ---------------- Призыв (CTA) ---------------- */

.cta {
  background: linear-gradient(120deg, var(--blue) 0%, #2f74f0 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta h2 { color: #fff; font-size: 25px; margin-bottom: 8px; }
.cta p { color: rgba(255, 255, 255, .88); margin: 0; font-size: 15px; }
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------------- Футер ---------------- */

.footer { background: #fff; border-top: 1px solid var(--line); padding-top: 46px; }
.footer__grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 36px; }
.footer h4 {
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #000;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}
.footer h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 34px; height: 3px;
  background: var(--orange);
  border-radius: 3px;
}
.footer li { margin-bottom: 9px; }
.footer li a, .footer p { color: var(--text); font-size: 13.5px; }
.footer li a:hover { color: var(--blue); }
.footer .contact-line { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 11px; font-size: 13.5px; color: var(--text); }
.footer .contact-line svg { width: 16px; height: 16px; fill: var(--blue); flex-shrink: 0; margin-top: 3px; }
.footer .contact-line a { color: var(--text); }
.footer .contact-line a:hover { color: var(--blue); }

.social { display: flex; gap: 12px; margin-bottom: 16px; }
.social a {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--card);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.social a:hover { background: var(--blue); transform: translateY(-3px); }
.social img { width: 22px; height: 22px; filter: grayscale(1); opacity: .7; transition: .2s; }
.social a:hover img { filter: none; opacity: 1; }

.footer__bottom { background: var(--card); border-top: 1px solid var(--line); padding: 18px 0; }
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.disclaimer { font-size: 12px; color: var(--muted); max-width: 720px; line-height: 1.6; }
.copyright { font-size: 12.5px; color: var(--muted); }
.copyright a { color: var(--muted); }
.copyright a:hover { color: var(--blue); }
.pays { display: flex; gap: 8px; align-items: center; }
.pays img { height: 20px; width: auto; opacity: .8; }

.legal { background: #fff; border-top: 1px solid var(--line); padding: 12px 0; }
.legal p { font-size: 12px; color: var(--muted); margin: 0; }

/* ---------------- Cookie ---------------- */

.cookies {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 90;
  background: var(--dark);
  color: rgba(255, 255, 255, .85);
  border-radius: var(--radius);
  padding: 15px 20px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, .3);
  font-size: 13px;
}
.cookies.is-open { display: flex; }
.cookies a { color: #7fa8ff; text-decoration: underline; }
.cookies .btn { padding: 8px 26px; font-size: 13px; flex-shrink: 0; }

/* ---------------- Прочее ---------------- */

.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 34px; align-items: start; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.split img { border-radius: var(--radius-lg); }

.quote {
  background: var(--card);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  font-size: 15px;
  color: var(--dark);
  font-style: italic;
}

.back-top {
  position: fixed;
  right: 22px; bottom: 84px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  border: 0;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  box-shadow: 0 8px 20px rgba(13, 82, 214, .35);
  font-size: 18px;
}
.back-top.is-visible { display: flex; }
.back-top:hover { background: var(--blue-dark); }

/* ---------------- Адаптив ---------------- */

@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__card { max-width: 380px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .dms-grid { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .header__address { display: none; }
  .burger { display: block; }
  .nav__list {
    display: none;
    flex-direction: column;
    border-top: 1px solid var(--line);
  }
  .nav__list.is-open { display: flex; }
  .nav__list > li > a { border-bottom: 1px solid var(--line); padding: 13px 4px; }
  .nav__list > li.is-active > a { background: var(--blue-light); }
  .nav__phone { display: none; }
  .nav { position: static; }
  .header__inner { gap: 16px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .two-col, .split { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .doctor { flex-direction: column; }
  .doctor__photo { width: 100%; height: 260px; flex: none; }
  .hero h1 { font-size: 30px; }
  .section { padding: 40px 0; }
  .cta { padding: 28px; }
}

@media (max-width: 620px) {
  .topline__right { display: none; }
  .logo__title { font-size: 14.5px; }
  .header__phone a.tel { font-size: 16px; }
  .header__phone .btn { display: none; }
  .contact-grid, .dms-grid, .grid--4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 50px; }
  .hero h1 { font-size: 26px; }
  .section__head h2 { font-size: 22px; }
  .page-head h1 { font-size: 23px; }
  .cookies { flex-direction: column; align-items: flex-start; }
}

/* ---------------- Слайдер на странице «О клинике» ---------------- */

.mslider {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.mslider__track { position: relative; padding-top: 31.25%; } /* пропорции 960 × 300 */

.mslider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility .7s ease;
}
.mslider__slide.is-active { opacity: 1; visibility: visible; }

.mslider__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.mslider__content {
  position: absolute;
  left: 4.5%;
  top: 50%;
  transform: translateY(-50%);
  width: 58%;
  max-width: 540px;
}

.mslider__eyebrow {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-family: Montserrat, Roboto, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.mslider__line {
  margin: 0 0 6px;
  color: var(--dark);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.mslider__line:last-child { margin-bottom: 0; }

.mslider__line--lead {
  font-family: Montserrat, Roboto, sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--blue);
  margin-bottom: 10px;
}

/* Текст «выезжает» справа с задержкой — как в прежнем слайдере */
.mslider__slide.is-active .mslider__content > * {
  animation: mslide-in .65s cubic-bezier(.22, .61, .36, 1) both;
}
.mslider__slide.is-active .mslider__content > *:nth-child(1) { animation-delay: .25s; }
.mslider__slide.is-active .mslider__content > *:nth-child(2) { animation-delay: .45s; }
.mslider__slide.is-active .mslider__content > *:nth-child(3) { animation-delay: .65s; }
.mslider__slide.is-active .mslider__content > *:nth-child(4) { animation-delay: .85s; }
.mslider__slide.is-active .mslider__content > *:nth-child(5) { animation-delay: 1.05s; }

@keyframes mslide-in {
  from { opacity: 0; transform: translateX(38px); }
  to   { opacity: 1; transform: translateX(0); }
}

.mslider__dots {
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 3;
}

.mslider__dot {
  width: 10px; height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(44, 54, 64, .25);
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}
.mslider__dot:hover { background: rgba(44, 54, 64, .5); }
.mslider__dot.is-active { background: var(--blue); transform: scale(1.25); }

/* Компактный вариант — слайдер-модуль в узкой колонке над карточкой «Почему мы?» */
@media (min-width: 701px) {
  .mslider--module { max-width: none; }
  .mslider--module .mslider__content { width: 62%; max-width: none; }
  .mslider--module .mslider__eyebrow { font-size: 9.5px; letter-spacing: .6px; padding: 4px 10px; margin-bottom: 7px; }
  .mslider--module .mslider__line { font-size: 12px; line-height: 1.35; margin-bottom: 4px; }
  .mslider--module .mslider__line--lead { font-size: 16px; line-height: 1.2; margin-bottom: 6px; }
  .mslider--module .mslider__dots { bottom: 8px; gap: 8px; }
  .mslider--module .mslider__dot { width: 8px; height: 8px; }
}

@media (max-width: 700px) {
  .mslider__track { padding-top: 0; }
  .mslider__slide { position: static; display: none; transition: none; }
  .mslider__slide.is-active { display: block; }
  .mslider__bg { position: static; height: auto; }
  .mslider__content {
    position: static;
    transform: none;
    width: auto;
    max-width: none;
    padding: 18px;
  }
  .mslider__line--lead { font-size: 18px; }
  .mslider__dots { position: static; padding: 0 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .mslider__slide { transition: none; }
  .mslider__slide.is-active .mslider__content > * { animation: none; }
}
