/* =========================================================================
   Komarov Wellness & Massage — redesign 2026
   Природная зелёно-оливковая палитра, светлая горизонтальная шапка,
   карточки услуг с ценами, сквозная кнопка «Записаться».
   Написано поверх Bootstrap 5. Один файл на все языки.
   ========================================================================= */

:root {
  --cream:       #f5f3ec;
  --cream-2:     #efece1;
  --paper:       #ffffff;
  --ink:         #26302a;   /* тёмный тёплый графит-зелёный */
  --ink-soft:    #2c342f;
  --olive:       #6b7a4f;   /* основной акцент — олива */
  --olive-deep:  #556240;
  --olive-light: #8a9a6b;
  --sage:        #dfe4d3;   /* мягкий фон-блок */
  --line:        #e2ddd0;
  --gold:        #b8925a;   /* тёплый вторичный акцент (цена/сертификат) */
  --shadow:      0 18px 50px -24px rgba(38,48,42,.35);
  --shadow-sm:   0 8px 24px -14px rgba(38,48,42,.30);
  --radius:      18px;
  --radius-lg:   26px;
  --maxw:        1180px;
  --font-head:   "Lora", Georgia, "Times New Roman", serif;
  --font-body:   "Open Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  margin: 0;
  line-height: 1.65;
  font-size: 18px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--olive-deep); text-decoration: none; transition: color .2s; }
a:hover { color: var(--olive); }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0;
}

.rd-container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* Скрываем весь старый шаблонный хром (сайдбар, старые плавающие кнопки) */
#header,
body > a > .custom-btn,
body > a > button.custom-btn,
.language2,
.mobile-nav-toggle,
#hero { display: none !important; }

/* Отступ, чтобы контент не заезжал под фикс-шапку */
body { padding-top: 0; }

/* =========================================================================
   Шапка
   ========================================================================= */
.rd-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245,243,236,.88);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.rd-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.rd-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
/* Дубль-кнопка в шапке нужна только когда основное меню скрыто (моб.) */
.rd-header .rd-header-book { display: none; }
.rd-brand img {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--olive-light);
}
.rd-brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 600;
}
.rd-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}
.rd-nav a.rd-navlink {
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-soft);
  font-family: var(--font-body);
  white-space: nowrap;
  position: relative;
  padding: 5px 9px;
  border-radius: 18px;
  transition: background .2s, color .2s;
}
/* точка-разделитель перед каждым пунктом, кроме первого */
.rd-nav a.rd-navlink::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--olive-light);
}
.rd-nav a.rd-navlink:first-of-type::before { display: none; }
/* капсула при наведении / на активном пункте */
.rd-nav a.rd-navlink:hover,
.rd-nav a.rd-navlink.is-active {
  color: var(--olive-deep);
  background: var(--sage);
}
.rd-nav a.rd-navlink:hover::before,
.rd-nav a.rd-navlink.is-active::before { opacity: 0; }
/* скрыть и точку справа (принадлежит следующему пункту) */
.rd-nav a.rd-navlink:hover + a.rd-navlink::before,
.rd-nav a.rd-navlink.is-active + a.rd-navlink::before { opacity: 0; }

.rd-lang {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 600;
  margin-left: 7px;
  margin-right: 7px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2px;
}
.rd-lang a {
  color: var(--ink-soft);
  padding: 4px 9px;
  border-radius: 16px;
}
.rd-lang a.is-active { background: var(--olive); color: #fff; }
.rd-lang a:hover { background: var(--sage); color: var(--olive-deep); }
.rd-lang a.is-active:hover { background: var(--olive); color: #fff; }

.rd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.rd-btn--primary {
  background: var(--olive);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(107,122,79,.9);
}
.rd-btn--primary:hover {
  background: var(--olive-deep);
  color: #fff;
  transform: translateY(-2px);
}
.rd-btn--ghost {
  background: transparent;
  color: var(--olive-deep);
  border: 1.5px solid var(--olive-light);
}
.rd-btn--ghost:hover { background: var(--sage); color: var(--olive-deep); }
.rd-btn--gold { background: var(--gold); color:#fff; }
.rd-btn--gold:hover { background:#a17e49; color:#fff; transform: translateY(-2px); }

/* Бургер */
.rd-burger {
  display: none;
  margin-left: auto;
  background: none; border: none;
  width: 40px; height: 40px;
  flex: 0 0 40px;
  cursor: pointer;
  position: relative;
}
.rd-header__mobact { display: none; }
.rd-nav__socials { display: none; }
.rd-nav__socials a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff; color: var(--olive-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; transition: .2s;
}
.rd-nav__socials a:hover { background: var(--olive); color: #fff; border-color: var(--olive); }
.rd-burger span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--ink);
  transform-origin: center;
  transition: top .30s ease, transform .30s ease;
}
.rd-burger span:nth-child(1){ top: 14px; }
.rd-burger span:nth-child(2){ top: 24px; }
body.rd-menu-open .rd-burger span:nth-child(1){ top:19px; transform: rotate(45deg); }
body.rd-menu-open .rd-burger span:nth-child(2){ top:19px; transform: rotate(-45deg); }

/* =========================================================================
   Hero
   ========================================================================= */
.rd-hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(245,243,236,.2), rgba(245,243,236,.75) 78%, var(--cream)),
    radial-gradient(120% 120% at 80% 0%, #e7ebdd 0%, transparent 60%),
    var(--cream);
  overflow: hidden;
}
.rd-hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 78px 22px 70px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.rd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 18px;
}
.rd-eyebrow::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--olive-light);
}
.rd-hero h1 {
  font-size: clamp(33px, 4.4vw, 52px);
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -.3px;
  font-weight: 600;
}
.rd-hero h1 em {
  font-style: italic;
  color: var(--olive-deep);
}
.rd-hero__lead {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 30em;
  margin: 0 0 30px;
}
.rd-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.rd-hero__meta {
  display: flex;
  gap: 30px;
  margin-top: 38px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.rd-hero__meta .n {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--olive-deep);
  line-height: 1;
}
.rd-hero__meta .l {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
}
.rd-hero__media {
  position: relative;
}
.rd-hero__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 4/4.4;
}
.rd-hero__badge {
  position: absolute;
  left: -14px; bottom: 26px;
  background: var(--paper);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 12px;
  font-size: 14px;
}
.rd-hero__badge b { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--olive-deep); }
.rd-hero__badge i { color: var(--gold); font-size: 22px; }

/* =========================================================================
   Секции — общее
   ========================================================================= */
.rd-section { padding: 76px 0; }
.rd-section--sage { background: var(--cream-2); }
.rd-section--paper { background: var(--paper); }

.rd-head { max-width: 640px; margin: 0 auto 46px; text-align: center; }
.rd-head .rd-eyebrow { margin-bottom: 12px; }
.rd-head .rd-eyebrow::before { content:none; }
.rd-head h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  margin: 0 0 12px;
}
.rd-head p { color: var(--ink-soft); font-size: 18.5px; margin: 0; }

/* =========================================================================
   About
   ========================================================================= */
.rd-about__grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 48px;
  align-items: start;
  max-width: var(--maxw);
  margin: 0 auto;
}
.rd-about__img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 3/3.6;
  object-fit: cover;
}
.rd-about__quote {
  font-family: var(--font-head);
  font-size: 25px;
  font-style: italic;
  font-weight: 500;
  color: var(--olive-deep);
  line-height: 1.36;
  margin: 0 0 6px;
}
.rd-about__quote-src { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 22px; }
.rd-about__list { display: grid; gap: 14px; }
.rd-about__list .row-i {
  display: flex; gap: 13px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.rd-about__list .row-i i { color: var(--olive); font-size: 20px; margin-top: 2px; }
.rd-about__list .row-i p { margin: 0; font-size: 17.5px; color: var(--ink-soft); }

/* =========================================================================
   Услуги — карточки с ценами
   ========================================================================= */
.rd-services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.rd-scard {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .25s, border-color .2s;
  cursor: pointer;
  text-align: left;
}
.rd-scard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--olive-light);
}
.rd-scard__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--sage);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.rd-scard__icon img { width: 32px; height: 32px; object-fit: contain; }
.rd-scard h4 { font-size: 21px; margin: 0 0 8px; font-weight: 600; }
.rd-scard__desc {
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 18px;
  flex: 1 0 auto;
}
.rd-scard__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.rd-scard__more {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--olive-deep);
  display: inline-flex; align-items: center; gap: 6px;
}
.rd-scard:hover .rd-scard__more { color: var(--gold); }

/* Модалка услуги */
.rd-modal {
  position: fixed; inset: 0;
  background: rgba(30,38,32,.55);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.rd-modal.is-open { display: flex; }
.rd-modal__box {
  background: var(--paper);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow: hidden;
  padding: 0;
  box-shadow: var(--shadow);
  position: relative;
}
.rd-modal__scroll {
  /* Keep the native scrollbar fully inside the rounded modal.
     The vertical margin gives its end buttons room, while the adjusted
     padding keeps the text in exactly the same visual position. */
  max-height: calc(88vh - 24px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 22px 25px 18px 32px;
  margin: 12px 7px 12px 0;
  scrollbar-width: thin;
  scrollbar-color: #8a8a8a transparent;
}
.rd-modal__scroll::-webkit-scrollbar { width: 8px; }
.rd-modal__scroll::-webkit-scrollbar-track { background: transparent; }
.rd-modal__scroll::-webkit-scrollbar-thumb {
  background: #8a8a8a;
  border-radius: 999px;
}
.rd-modal__close {
  position: absolute; top: 16px; right: 28px;
  width: 38px; height: 38px; border-radius: 50%;
  border: none; background: var(--sage); color: var(--ink);
  font-size: 20px; cursor: pointer; line-height: 1;
}
.rd-modal__close:hover { background: var(--olive); color: #fff; }
.rd-modal__box h3 { font-size: 30px; margin: 0 0 14px; padding-right: 30px; }
.rd-modal__box .body { font-size: 17px; color: var(--ink-soft); line-height: 1.6; }
.rd-modal__box .body p { margin: 0 0 12px; }
.rd-modal__box .body ul { margin: 0 0 14px; padding-left: 20px; }
.rd-modal__box .body li { margin: 4px 0; }
.rd-modal__box .body br { content:""; display:block; margin: 3px 0; }
.rd-modal__prices {
  margin: 20px 0 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.rd-modal__prices .pr {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 11px 16px; font-size: 16.5px;
}
.rd-modal__prices .pr:nth-child(odd){ background: var(--cream); }
.rd-modal__prices .pr b { color: var(--olive-deep); font-family: var(--font-head); font-size: 16px; font-weight: 700; white-space: nowrap; }
.rd-modal__prices .grp {
  padding: 9px 16px; background: var(--sage);
  font-weight: 600; font-size: 13px; text-transform: uppercase;
  letter-spacing: .05em; color: var(--olive-deep);
}

/* =========================================================================
   Цены — аккордеон
   ========================================================================= */
.rd-price-acc { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.rd-acc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, box-shadow .25s;
}
.rd-acc.is-open { border-color: var(--olive-light); box-shadow: var(--shadow-sm); }
.rd-acc__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; padding: 20px 24px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); text-align: left;
}
.rd-acc__title { font-family: var(--font-head); font-size: 21px; font-weight: 600; color: var(--ink); }
.rd-acc__meta { display: flex; align-items: center; gap: 16px; }
.rd-acc__from { font-size: 15.5px; font-weight: 600; color: var(--olive-deep); white-space: nowrap; }
.rd-acc__chev { font-size: 22px; color: var(--olive); transition: transform .3s ease; line-height: 1; }
.rd-acc.is-open .rd-acc__chev { transform: rotate(180deg); }
.rd-acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s ease; }
.rd-acc.is-open .rd-acc__panel { grid-template-rows: 1fr; }
.rd-acc__panel-inner { overflow: hidden; min-height: 0; }
.rd-acc__body { padding: 0 24px 20px; }
.rd-acc__grp {
  display: inline-block; font-family: var(--font-body);
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--olive-deep); background: var(--sage);
  padding: 4px 12px; border-radius: 20px; margin: 16px 0 8px;
}
.rd-acc__grp:first-child { margin-top: 4px; }
.rd-acc__row {
  display: block;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.rd-acc__row:last-child { border-bottom: none; }
.rd-acc__info { display: block; }
.rd-acc__inc { font-size: 15.5px; color: var(--ink-soft); line-height: 1.45; }
.rd-acc__inc em { font-style: italic; color: var(--ink); }
.rd-acc__inc b { color: var(--ink); font-weight: 600; }
.rd-acc__tp { display: block; font-family: var(--font-body); font-size: 17.5px; font-weight: 700; margin-top: 6px; color: var(--olive); }
.rd-acc__tp .t { color: var(--olive); font-weight: 600; }
.rd-acc__tp .p { color: var(--olive-deep); }
@media (max-width: 560px) {
  .rd-acc__head { padding: 16px 18px; }
  .rd-acc__title { font-size: 19px; }
  .rd-acc__body { padding: 0 18px 16px; }
}
.rd-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.rd-benefit {
  display: flex; align-items: center; gap: 15px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}
.rd-benefit img { width: 34px; height: 34px; flex: none; }
.rd-benefit span { font-size: 17px; font-weight: 500; }

/* =========================================================================
   Галереи (сертификаты, кабинет, локация)
   ========================================================================= */
.rd-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.rd-gallery a {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 3/4;
  position: relative;
}
.rd-gallery.rd-gallery--wide a { aspect-ratio: 4/3; }
/* Регалии — Isotope masonry, картинки целиком, с анимацией фильтра */
.rd-gallery--iso {
  max-width: var(--maxw);
  margin: 0 auto;
}
.rd-gallery--iso .rd-iso-item {
  width: calc(33.333% - 12px);
  margin-bottom: 18px;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  background: var(--paper);
}
.rd-gallery--iso .rd-iso-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .4s;
}
.rd-gallery--iso .rd-iso-item:hover img { transform: scale(1.04); }
.rd-gallery--iso .rd-iso-item::after {
  content: "\F52A";
  font-family: "bootstrap-icons";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px;
  background: rgba(85,98,64,0); opacity: 0; transition: .3s;
}
.rd-gallery--iso .rd-iso-item:hover::after { background: rgba(85,98,64,.4); opacity: 1; }
@media (max-width: 860px) { .rd-gallery--iso .rd-iso-item { width: calc(50% - 9px); } }
@media (max-width: 520px) { .rd-gallery--iso .rd-iso-item { width: 100%; } }
.rd-gallery a img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.rd-gallery a:hover img { transform: scale(1.05); }
.rd-gallery a::after {
  content: "\F52A";
  font-family: "bootstrap-icons";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px;
  background: rgba(85,98,64,.0);
  opacity: 0; transition: .3s;
}
.rd-gallery a:hover::after { background: rgba(85,98,64,.45); opacity: 1; }

.rd-filters {
  display: flex; justify-content: center; gap: 10px;
  margin-bottom: 30px; flex-wrap: wrap;
}
.rd-filters button {
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  padding: 8px 20px; border-radius: 999px;
  font-size: 16px; font-weight: 500; cursor: pointer;
  font-family: var(--font-body); transition: .2s;
}
.rd-filters button.is-active,
.rd-filters button:hover { background: var(--olive); color: #fff; border-color: var(--olive); }
.rd-gallery a.is-hidden { display: none; }
/* Кабинет: увеличенная галерея */
@media (min-width: 1050px) {
  #cabinet .rd-container { max-width: 1320px; }
  #cabinet .rd-gallery {
    max-width: 900px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}


/* Локация: исходные вертикальные пропорции фотографий */
#location .rd-gallery {
  max-width: 1040px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
#location .rd-gallery a {
  aspect-ratio: 643 / 895;
}
#location .rd-gallery a img {
  object-fit: cover;
}
@media (max-width: 860px) {
  #location .rd-gallery {
    max-width: 680px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  #location .rd-gallery {
    max-width: 420px;
    grid-template-columns: 1fr;
    gap: 16px;
  }
}


/* =========================================================================
   Отзывы: текст и карусель
   ========================================================================= */
.rd-reviews .rd-head { margin-bottom: 12px; }
.rd-reviews__lead {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 36px;
  color: var(--ink-soft);
  font-size: 18.5px;
  line-height: 1.55;
}
.rd-review-link {
  display: inline-block;
  font-weight: 650;
  white-space: nowrap;
}
.rd-review-link i { margin-right: 2px; }
.rd-no-break { white-space: nowrap; }
.rd-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.rd-reviews-carousel {
  max-width: 900px;
  margin: 0 auto;
  user-select: none;
}
.rd-reviews-carousel__stage {
  display: grid;
  grid-template-columns: minmax(48px, 1fr) minmax(0, 400px) minmax(48px, 1fr);
  align-items: center;
}
.rd-reviews-carousel__viewport {
  overflow: hidden;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  touch-action: pan-y;
}
.rd-reviews-carousel__track {
  display: flex;
  transform: translate3d(0, 0, 0);
  transition: transform .48s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
.rd-review-slide {
  position: relative;
  flex: 0 0 100%;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #eef0e8;
}
.rd-review-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .4s;
}
/* Такое же наведение, как у фотографий кабинета и сертификатов */
.rd-review-slide::after {
  content: "\F52A";
  font-family: "bootstrap-icons";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  background: rgba(85, 98, 64, 0);
  opacity: 0;
  pointer-events: none;
  transition: background .3s, opacity .3s;
}
.rd-review-slide:hover img,
.rd-review-slide:focus-visible img {
  transform: scale(1.05);
}
.rd-review-slide:hover::after,
.rd-review-slide:focus-visible::after {
  background: rgba(85, 98, 64, .45);
  opacity: 1;
}
/* Старую нижнюю плашку скрываем: иконка теперь появляется по центру */
.rd-review-slide__zoom {
  display: none;
}
.rd-review-slide:focus-visible {
  outline: 3px solid var(--olive-light);
  outline-offset: -3px;
}
.rd-reviews-carousel__nav {
  width: 54px;
  height: 54px;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--olive);
  font-size: 36px;
  cursor: pointer;
  transition: color .2s, background .2s, transform .2s;
}
.rd-reviews-carousel__nav:hover {
  color: var(--olive-deep);
  background: rgba(104, 118, 81, .09);
  transform: scale(1.06);
}
.rd-reviews-carousel__nav:focus-visible {
  outline: 3px solid var(--olive-light);
  outline-offset: 2px;
}
.rd-reviews-carousel__dots {
  min-height: 22px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.rd-review-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1.5px solid var(--olive);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: width .2s, background .2s, border-color .2s;
}
.rd-review-dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: var(--olive);
}
.rd-review-dot:focus-visible {
  outline: 2px solid var(--olive-light);
  outline-offset: 3px;
}
/* Мобильная шапка: логотип + бургер сверху, кнопки отдельной строкой по центру */
@media (max-width: 720px) {
  .rd-header__inner { flex-wrap: wrap; row-gap: 12px; }
  .rd-brand { order: 1; }
  .rd-burger { order: 2; }
  .rd-header__mobact {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 12px;
  }
  .rd-header .rd-header__mobact .rd-btn--ghost { display: inline-flex; }
}

@media (max-width: 620px) {
  .rd-reviews__lead { font-size: 18.5px; margin-bottom: 28px; }
  .rd-reviews-carousel__stage {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }
  .rd-reviews-carousel__nav {
    width: 42px;
    height: 48px;
    font-size: 30px;
  }
  .rd-review-slide__zoom {
    height: 42px;
    transform: translateY(0);
    background: rgba(85, 98, 64, .72);
  }
}
@media (prefers-reduced-motion: reduce) {
  .rd-reviews-carousel__track,
  .rd-review-slide__zoom,
  .rd-reviews-carousel__nav,
  .rd-review-dot { transition: none; }
}

/* =========================================================================
   Контакты
   ========================================================================= */
.rd-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.rd-info { display: grid; gap: 16px; align-content: start; }
.rd-info__item {
  display: flex; gap: 15px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 20px;
}
.rd-info__item i { color: var(--olive); font-size: 22px; margin-top: 3px; }
.rd-info__item h4 { font-size: 19px; margin: 0 0 4px; }
.rd-info__item p { margin: 0; font-size: 17px; color: var(--ink-soft); }
.rd-info__item a { font-weight: 500; }
.rd-map iframe { width: 100%; height: 260px; border: 0; border-radius: 14px; margin-top: 4px; }

.rd-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.rd-form h3 { font-size: 26px; margin: 0 0 6px; }
.rd-form p.sub { color: var(--ink-soft); font-size: 15px; margin: 0 0 20px; }
.rd-form label { font-size: 13.5px; font-weight: 600; color: var(--ink); display: block; margin-bottom: 6px; }
.rd-form input, .rd-form textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 12px;
  font-family: var(--font-body); font-size: 17px; background: var(--cream);
  margin-bottom: 16px; transition: border-color .2s;
}
.rd-form input:focus, .rd-form textarea:focus { outline: none; border-color: var(--olive-light); background: #fff; }
.rd-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rd-form .two > div { margin: 0; }
.rd-form button { width: 100%; }
.rd-form .loading, .rd-form .error-message, .rd-form .sent-message { display: none; font-size: 14px; margin-bottom: 12px; }
.rd-form .sent-message { color: var(--olive-deep); display: none; }

/* =========================================================================
   CTA полоса
   ========================================================================= */
.rd-cta {
  background: linear-gradient(120deg, var(--olive-deep), var(--olive));
  color: #fff;
  text-align: center;
  padding: 62px 22px;
}
.rd-cta h2 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); margin: 0 0 10px; }
.rd-cta p { color: rgba(255,255,255,.82); margin: 0 0 26px; font-size: 16.5px; }
.rd-cta .rd-btn--primary { background: #fff; color: var(--olive-deep); }
.rd-cta .rd-btn--primary:hover { background: var(--cream); color: var(--olive-deep); }

/* =========================================================================
   Footer
   ========================================================================= */
.rd-footer {
  background: var(--ink);
  color: #cbd2c6;
  padding: 40px 22px 34px;
}
.rd-footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: center;
}
.rd-footer__soc { display: flex; justify-content: center; gap: 12px; }
.rd-footer__soc a {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  transition: .2s;
}
.rd-footer__soc a:hover { background: var(--olive); }
.rd-footer__copy { width: 100%; text-align: center; font-size: 13px; color: #8a938660; color: rgba(255,255,255,.4); margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }

/* =========================================================================
   Плавающие кнопки (моб. запись)
   ========================================================================= */
.rd-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 1500;
  display: flex; flex-direction: column; gap: 8px;
}
.rd-float a {
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff; box-shadow: var(--shadow-sm);
}
.rd-float .wa { background: #25d366; }
.rd-float .tg { background: #2aabee; }
.rd-float .bk { background: var(--olive); font-size: 22px; }
.rd-float a:hover { transform: scale(1.08); transition: .15s; }

.rd-back-to-top {
  position: fixed; left: 18px; bottom: 18px; z-index: 1400;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; opacity: 0; visibility: hidden; transition: .3s;
}
.rd-back-to-top.show { opacity: 1; visibility: visible; }
.rd-back-to-top:hover { background: var(--olive); color:#fff; }

/* =========================================================================
   Адаптив
   ========================================================================= */
@media (max-width: 1080px) {
  .rd-services__grid { grid-template-columns: repeat(2, 1fr); }
}


/* Full desktop header keeps the standard sizes; below this point we switch straight to the burger. */
@media (min-width: 1441px) {
  .rd-header__inner { max-width: 1380px; }
}

@media (max-width: 1440px) {
  .rd-nav .rd-navlink--desktop-only { display: none !important; }
  .rd-header__inner { justify-content: space-between; }
  .rd-nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); flex-direction: column; align-items: flex-start;
    gap: 4px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
  body.rd-menu-open .rd-nav { display: flex; }
  .rd-nav a.rd-navlink::before { display: none !important; }
  .rd-nav a.rd-navlink {
    padding: 8px 0;
    width: 100%;
    font-size: 16px;
    border-radius: 0;
    transition: none;
  }
  /* В бургер-меню пункты не подсвечиваются при наведении/активном состоянии. */
  .rd-nav a.rd-navlink:hover,
  .rd-nav a.rd-navlink.is-active {
    color: var(--ink-soft);
    background: transparent;
  }
  .rd-nav .rd-btn { width: 100%; margin-top: 6px; }
  .rd-nav .rd-nav-booking { display: none !important; }
  .rd-nav__socials {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }
  .rd-footer__soc { display: none; }
  .rd-footer__inner { display: none; }
  .rd-footer__copy { margin-top: 0; padding-top: 0; border-top: 0; }
  .rd-nav .rd-lang { padding: 8px 0 0; margin-left: 0; border: none; border-radius: 0; }
  .rd-burger { display: block; order: 3; }
  .rd-header__mobact { display: flex; align-items: center; gap: 10px; order: 2; }
  .rd-header__mobact .rd-btn--ghost { display: inline-flex; }
  .rd-header__mobact .rd-btn { padding: 9px 16px; font-size: 14px; }
  .rd-hero__inner { grid-template-columns: 1fr; padding-top: 48px; }
  .rd-hero__media { order: -1; max-width: 420px; }
  .rd-about__grid { grid-template-columns: 1fr; }
  .rd-benefits { grid-template-columns: repeat(2, 1fr); }
  .rd-contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 17.5px; }
  .rd-services__grid { grid-template-columns: 1fr; }
  .rd-benefits { grid-template-columns: 1fr; }
  .rd-form .two { grid-template-columns: 1fr; }
  .rd-hero__meta { gap: 22px; }
  .rd-section { padding: 56px 0; }
}

/* Уважение к prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Mobile header: keep brand and burger on the same row.
   This override intentionally comes after the broader <=1440px rules. */
@media (max-width: 720px) {
  .rd-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    align-items: center;
    column-gap: 12px;
    row-gap: 12px;
  }
  .rd-brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }
  .rd-burger {
    grid-column: 2;
    grid-row: 1;
    order: initial;
    margin-left: 0;
    justify-self: end;
  }
  .rd-header__mobact {
    grid-column: 1 / -1;
    grid-row: 2;
    order: initial;
    width: 100%;
    justify-content: center;
  }
  .rd-nav {
    grid-column: 1 / -1;
  }
}

/* ======================================================================
   2026-08-07: larger standard desktop header (normal mode only).
   Grows progressively up to about 1.15x on wide screens so the 1440px
   burger breakpoint remains safe and the low-vision header is untouched.
   ====================================================================== */
@media (min-width: 1441px) {
  body:not(.a11y-enabled) .rd-header__inner {
    width: calc(100% - 28px);
    max-width: 1660px;
    padding-top: clamp(14px, .96vw, 16.2px);
    padding-bottom: clamp(14px, .96vw, 16.2px);
    padding-left: clamp(18px, 1.24vw, 24.9px);
    padding-right: clamp(18px, 1.24vw, 24.9px);
    gap: clamp(24px, 1.63vw, 27.8px);
  }

  body:not(.a11y-enabled) .rd-brand {
    gap: clamp(12px, .81vw, 13.4px);
    font-size: clamp(22px, 1.49vw, 25.3px);
  }
  body:not(.a11y-enabled) .rd-brand img {
    width: clamp(42px, 2.83vw, 48.3px);
    height: clamp(42px, 2.83vw, 48.3px);
  }
  body:not(.a11y-enabled) .rd-brand small {
    font-size: clamp(11px, .74vw, 12.65px);
  }

  body:not(.a11y-enabled) .rd-nav {
    gap: clamp(5px, .345vw, 5.75px);
  }
  body:not(.a11y-enabled) .rd-nav a.rd-navlink {
    font-size: clamp(16px, 1.075vw, 18.4px);
    padding: clamp(5px, .345vw, 5.75px) clamp(9px, .62vw, 10.55px);
  }

  body:not(.a11y-enabled) .rd-lang {
    gap: clamp(2px, .144vw, 2.88px);
    font-size: clamp(13px, .88vw, 14.95px);
    margin-left: clamp(7px, .48vw, 8.15px);
    margin-right: clamp(7px, .48vw, 8.15px);
    padding: clamp(2px, .144vw, 2.88px);
  }
  body:not(.a11y-enabled) .rd-lang a {
    padding: clamp(4px, .288vw, 4.8px) clamp(9px, .62vw, 10.55px);
  }

  body:not(.a11y-enabled) .rd-nav .rd-btn {
    gap: clamp(8px, .555vw, 9.6px);
    font-size: clamp(15px, 1.006vw, 17.25px);
    padding: clamp(12px, .81vw, 13.9px) clamp(22px, 1.49vw, 25.4px);
  }
}


/* ======================================================================
   v41: centred, framed and slightly larger language switcher in burger menu
   ====================================================================== */
@media (max-width: 1440px) {
  body:not(.a11y-enabled) .rd-nav > .rd-lang {
    align-self: center;
    width: max-content;
    max-width: 100%;
    margin: 10px auto 2px;
    padding: 3px;
    gap: 2px;
    border: 1px solid var(--line);
    border-radius: 24px;
    font-size: 15.6px;
    line-height: 1.2;
    box-sizing: border-box;
  }
  body:not(.a11y-enabled) .rd-nav > .rd-lang a {
    padding: 5px 11px;
    border-radius: 20px;
    line-height: 1.2;
  }
}


/* ======================================================================
   v47: content-height burger menu + 10% larger burger navigation labels
   ====================================================================== */
@media (max-width: 1440px) {
  .rd-nav a.rd-navlink {
    font-size: 17.6px;
    line-height: 1.35;
    padding-top: 9px;
    padding-bottom: 9px;
  }
}

/* ======================================================================
   v46: mobile language switcher 10% larger
   ====================================================================== */
@media (max-width: 720px) {
  body:not(.a11y-enabled) .rd-nav > .rd-lang {
    padding: 3.3px;
    gap: 2.2px;
    font-size: 17.16px;
  }
  body:not(.a11y-enabled) .rd-nav > .rd-lang a {
    padding: 5.5px 12.1px;
  }
}


/* ======================================================================
   v48: keep content-height burger, but make oversized menus scrollable
   inside the viewport (important for A+ / A++ and short mobile screens).
   ====================================================================== */
@media (max-width: 1440px) {
  .rd-nav {
    max-height: calc(100dvh - var(--rd-header-height, 160px));
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
  }
}


/* ======================================================================
   v49: full-screen burger, safe bottom spacing and gentle open animation
   ====================================================================== */
@media (max-width: 1440px) {
  body.rd-menu-open {
    overflow: hidden;
  }

  .rd-nav {
    display: flex;
    position: fixed;
    top: var(--rd-header-height, 110px);
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100dvh - var(--rd-header-height, 110px));
    max-height: calc(100dvh - var(--rd-header-height, 110px));
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    padding: 22px 22px max(30px, calc(env(safe-area-inset-bottom) + 18px));
    z-index: 999;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .22s ease, transform .22s ease;
  }

  body.rd-menu-open .rd-nav {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .rd-nav__socials {
    margin-top: auto;
    margin-bottom: 2px;
  }
}

@media (max-width: 560px) {
  .rd-nav {
    padding-left: 18px;
    padding-right: 18px;
    padding-bottom: max(32px, calc(env(safe-area-inset-bottom) + 20px));
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 1440px) {
  .rd-nav {
    transition: none;
    transform: none;
  }
}


/* ======================================================================
   v50: extra-small phones — keep the brand clear of the burger and keep
   fixed page controls out of the open navigation drawer.
   ====================================================================== */
@media (max-width: 360px) {
  .rd-header__inner {
    grid-template-columns: minmax(0, 1fr) 36px;
    column-gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .rd-brand {
    gap: 8px;
    font-size: 19px;
    line-height: 1.15;
  }
  .rd-brand img {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }
  .rd-brand small {
    font-size: 10px;
    letter-spacing: .16em;
  }
  .rd-burger {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }
  .rd-burger span:nth-child(1) { top: 12px; }
  .rd-burger span:nth-child(2) { top: 22px; }
  body.rd-menu-open .rd-burger span:nth-child(1),
  body.rd-menu-open .rd-burger span:nth-child(2) { top: 17px; }
}

/* On very narrow phones the drawer already contains the social links.
   Temporarily hide fixed floating controls while the drawer is open so
   neither side competes for the same small bottom area. */
@media (max-width: 400px) {
  body.rd-menu-open .rd-float,
  body.rd-menu-open .rd-back-to-top {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}


/* ======================================================================
   v51: burger overlay cleanup — fixed page controls always disappear while
   the burger is open, and drawer socials disappear immediately on close.
   ====================================================================== */
@media (max-width: 1440px) {
  body.rd-menu-open .rd-float,
  body.rd-menu-open .rd-back-to-top {
    display: none !important;
  }

  body:not(.rd-menu-open) .rd-nav__socials {
    display: none !important;
  }

  body.rd-menu-open .rd-nav__socials {
    display: flex !important;
  }
}


/* ======================================================================
   v52: burger drawer slides vertically from top to bottom using the same
   0.5s timing as the original site's mobile drawer.
   ====================================================================== */
@media (max-width: 1440px) {
  .rd-nav {
    opacity: 1;
    transform: translateY(-100%);
    visibility: hidden;
    pointer-events: none;
    will-change: transform;
    transition: transform .5s ease-in-out, visibility 0s linear .5s;
  }

  body.rd-menu-open .rd-nav {
    display: flex;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: transform .5s ease-in-out, visibility 0s linear 0s;
  }

  body.rd-menu-closing .rd-nav {
    display: flex;
    visibility: visible;
    pointer-events: none;
    transform: translateY(-100%);
    transition: transform .5s ease-in-out, visibility 0s linear .5s;
  }

  body.rd-menu-open .rd-float,
  body.rd-menu-open .rd-back-to-top,
  body.rd-menu-closing .rd-float,
  body.rd-menu-closing .rd-back-to-top {
    display: none !important;
  }

  body:not(.rd-menu-open):not(.rd-menu-closing) .rd-nav__socials {
    display: none !important;
  }

  body.rd-menu-open .rd-nav__socials,
  body.rd-menu-closing .rd-nav__socials {
    display: flex !important;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 1440px) {
  .rd-nav,
  body.rd-menu-open .rd-nav,
  body.rd-menu-closing .rd-nav {
    transition: none;
  }
}

/* ======================================================================
   v53: drawer reveal starts exactly below the complete sticky header.
   Only the navigation panel is animated; the two header rows never move.
   ====================================================================== */
@media (max-width: 1440px) {
  .rd-nav {
    top: var(--rd-header-height, 110px);
    height: calc(100dvh - var(--rd-header-height, 110px));
    max-height: calc(100dvh - var(--rd-header-height, 110px));
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    transform: translateY(-12px);
    clip-path: inset(0 0 100% 0);
    will-change: clip-path, transform;
    transition: clip-path .5s ease-in-out, transform .5s ease-in-out;
  }

  body.rd-menu-open .rd-nav {
    display: flex;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
    transition: clip-path .5s ease-in-out, transform .5s ease-in-out;
  }

  body.rd-menu-closing .rd-nav {
    display: flex;
    visibility: visible;
    pointer-events: none;
    transform: translateY(-12px);
    clip-path: inset(0 0 100% 0);
    transition: clip-path .5s ease-in-out, transform .5s ease-in-out;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 1440px) {
  .rd-nav,
  body.rd-menu-open .rd-nav,
  body.rd-menu-closing .rd-nav {
    transform: none;
    transition: none;
  }
}


/* ======================================================================
   v54: original-style drawer motion, adapted vertically.
   The viewport begins exactly below the complete two-row header and clips
   the panel, so the menu literally slides out from under the lower edge.
   Opening and closing both use the original site's 0.5s ease-in-out timing.
   ====================================================================== */
.rd-nav-drawer { display: contents; }

@media (max-width: 1440px) {
  .rd-nav-drawer {
    display: block;
    position: fixed;
    top: var(--rd-header-height, 110px);
    left: 0;
    right: 0;
    height: calc(100dvh - var(--rd-header-height, 110px));
    overflow: hidden;
    z-index: 999;
    pointer-events: none;
  }

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

  .rd-nav-drawer .rd-nav {
    display: flex !important;
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;

    opacity: 1 !important;
    visibility: visible !important;
    clip-path: none !important;
    pointer-events: none;
    transform: translate3d(0, -100%, 0) !important;
    will-change: transform;
    transition: transform .5s ease-in-out !important;
  }

  body.rd-menu-open .rd-nav-drawer {
    pointer-events: auto;
  }

  body.rd-menu-open .rd-nav-drawer .rd-nav {
    pointer-events: auto;
    transform: translate3d(0, 0, 0) !important;
    transition: transform .5s ease-in-out !important;
  }

  body.rd-menu-closing .rd-nav-drawer .rd-nav {
    pointer-events: none;
    transform: translate3d(0, -100%, 0) !important;
    transition: transform .5s ease-in-out !important;
  }

  /* Keep the drawer's own social row visible while it slides away. */
  body.rd-menu-open .rd-nav__socials,
  body.rd-menu-closing .rd-nav__socials {
    display: flex !important;
  }

  /* Fixed page controls stay out of the way until the drawer has fully closed. */
  body.rd-menu-open .rd-float,
  body.rd-menu-open .rd-back-to-top,
  body.rd-menu-closing .rd-float,
  body.rd-menu-closing .rd-back-to-top {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 1440px) {
  .rd-nav-drawer .rd-nav,
  body.rd-menu-open .rd-nav-drawer .rd-nav,
  body.rd-menu-closing .rd-nav-drawer .rd-nav {
    transition: none !important;
  }
}


/* v54.1: closed drawer is removed from keyboard/screen-reader flow after motion. */
@media (max-width: 1440px) {
  .rd-nav-drawer .rd-nav {
    visibility: hidden !important;
    transition: transform .5s ease-in-out, visibility 0s linear .5s !important;
  }
  body.rd-menu-open .rd-nav-drawer .rd-nav {
    visibility: visible !important;
    transition: transform .5s ease-in-out, visibility 0s linear 0s !important;
  }
  body.rd-menu-closing .rd-nav-drawer .rd-nav {
    visibility: visible !important;
    transition: transform .5s ease-in-out, visibility 0s linear .5s !important;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 1440px) {
  .rd-nav-drawer .rd-nav,
  body.rd-menu-open .rd-nav-drawer .rd-nav,
  body.rd-menu-closing .rd-nav-drawer .rd-nav {
    transition: none !important;
  }
}


/* ======================================================================
   v55: floating page controls remain mounted while burger is open.
   The drawer simply sits above them in the stacking order, so they are
   covered by the menu instead of disappearing/reappearing.
   ====================================================================== */
@media (max-width: 1440px) {
  .rd-nav-drawer {
    z-index: 1600;
  }

  body.rd-menu-open .rd-float,
  body.rd-menu-closing .rd-float {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
  }

  body.rd-menu-open .rd-back-to-top,
  body.rd-menu-closing .rd-back-to-top {
    display: flex !important;
    pointer-events: none !important;
  }

  body.rd-menu-open .rd-back-to-top.show,
  body.rd-menu-closing .rd-back-to-top.show {
    opacity: 1 !important;
    visibility: visible !important;
  }

  body.rd-menu-open .rd-back-to-top:not(.show),
  body.rd-menu-closing .rd-back-to-top:not(.show) {
    opacity: 0 !important;
    visibility: hidden !important;
  }
}


/* ======================================================================
   v56: the mobile header/drawer stacking context sits above fixed page
   controls. The controls remain mounted; the opaque drawer covers them
   naturally while it slides over their position.
   ====================================================================== */
@media (max-width: 1440px) {
  .rd-header {
    z-index: 1551;
  }
}


/* ======================================================================
   v57: anchor the burger language switcher to the lower control group.
   The spacing above/below the separator is symmetrical: language capsule
   -> separator equals separator -> social icons.
   ====================================================================== */
@media (max-width: 1440px) {
  .rd-nav > .rd-lang {
    margin-top: auto !important;
    margin-right: auto !important;
    margin-bottom: 16px !important;
    margin-left: auto !important;
  }

  .rd-nav__socials {
    margin-top: 0 !important;
    padding-top: 16px;
  }
}


/* ======================================================================
   v58: original-site anchor scrolling can run while the burger slides out.
   The original drawer removes its open state before native smooth scrolling;
   therefore the page must not remain scroll-locked during our closing motion.
   ====================================================================== */
@media (max-width: 1440px) {
  body.rd-menu-closing {
    overflow: auto;
  }
}


/* ======================================================================
   v59: robust mobile drawer geometry.
   The drawer is pinned from the measured lower edge of the full mobile
   header to the viewport bottom. No 100dvh subtraction is used, avoiding
   rounding / dynamic-browser-toolbar gaps on very small phones.
   ====================================================================== */
@media (max-width: 1440px) {
  .rd-nav-drawer {
    top: var(--rd-header-height, 110px);
    bottom: 0;
    height: auto;
    max-height: none;
  }

  .rd-nav-drawer .rd-nav {
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
  }
}


/* ======================================================================
   v60: fixed drawer must use the viewport, not the sticky header as its
   containing block. backdrop-filter on an ancestor makes fixed descendants
   use that ancestor as a containing block in Chromium/WebKit, which made the
   top+bottom drawer collapse after v59. On mobile we move the blur to a
   pseudo-element so the drawer remains viewport-fixed.
   ====================================================================== */
@media (max-width: 1440px) {
  .rd-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent !important;
  }

  .rd-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(245,243,236,.88);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    pointer-events: none;
  }

  .rd-nav-drawer {
    position: fixed !important;
    top: var(--rd-header-height, 110px) !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    height: auto !important;
    max-height: none !important;
  }
}


/* ======================================================================
   v61: anchor-scroll stability. While the drawer is sliding closed, the
   document must already be scrollable; otherwise native smooth scrolling
   is interrupted until the closing class disappears.
   ====================================================================== */
@media (max-width: 1440px) {
  body.rd-menu-open {
    overflow-y: hidden;
  }

  body.rd-menu-closing {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body.rd-menu-closing .rd-nav-drawer .rd-nav {
    transition: transform .5s ease-in-out, visibility 0s linear .5s !important;
  }
}
