/*
Theme Name: Malinovsky Child
Theme URI: https://malinovsky.by
Description: Дочерняя тема для сайта психолога Малиновского
Author: Malinovsky
Template: astra
Version: 1.2
Text Domain: malinovsky-child
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
:root {
  --wp--preset--color--luminous-vivid-orange: #2E86C1 !important;
  --wp--preset--color--luminous-vivid-amber: #AED6F1 !important;
}

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

html,
body,
.m-page {
  max-width: 100%;
  overflow-x: hidden;
}

body,
button,
input,
textarea,
select,
.m-page {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.m-page {
  background: #F4F8FC;
  color: #1A2E3B;
  line-height: 1.6;
}

.m-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.m-animate { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.m-animate.m-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   НАВИГАЦИЯ
   ============================================================ */
.m-nav {
  background: #1B4F72;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(27,79,114,0.35);
}

.m-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  gap: 16px;
}

.m-nav__logo {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
  display: flex;
  align-items: center;
}

.m-nav__links {
  display: flex;
  align-items: center;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.m-nav__item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.m-nav__item > a,
.m-nav__item > span {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 0 10px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  transition: color 0.2s;
}

.m-nav__item > a:hover,
.m-nav__item > span:hover,
.m-nav__item:hover > span { color: #fff; }

.m-nav__chev {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  flex-shrink: 0;
}

.m-nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 0.5px solid #D0E4F0;
  border-radius: 10px;
  min-width: 210px;
  padding: 6px 0;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  z-index: 200;
}

.m-nav__item:hover .m-nav__dropdown { display: block; }

.m-nav__dropdown a {
  display: block;
  font-size: 13px;
  color: #3A5A72;
  padding: 9px 18px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.m-nav__dropdown a:hover { background: #EBF4FB; color: #1B6FA8; }

.m-nav__cta {
  background: #fff;
  color: #1B4F72 !important;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 4px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s, box-shadow 0.2s;
}

.m-nav__cta:hover {
  background: #EBF4FB;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* ── Бургер-кнопка ── */
.m-nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #fff;
  flex-shrink: 0;
  line-height: 1;
  border-radius: 8px;
  /* FIX: синий hover вместо оранжевого */
  transition: background 0.2s;
}

.m-nav__toggle:hover {
  background: rgba(255,255,255,0.15);
}

/* ── Крестик закрытия в мобильном меню ── */
.m-nav__close {
  display: none; /* показывается только на мобиле через CSS */
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  padding: 14px 20px;
  font-size: 22px;
  line-height: 1;
  width: 100%;
  text-align: right;
  transition: color 0.2s;
}

.m-nav__close:hover { color: #fff; }

/* ============================================================
   HERO
   ============================================================ */
.m-hero {
  background: linear-gradient(135deg, #1B4F72 0%, #2E86C1 100%);
  padding: 64px 0 56px;
}

.m-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: center;
}

.m-hero__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: #AED6F1;
  background: rgba(255,255,255,0.15);
  padding: 5px 12px;
  border-radius: 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,0.2);
}

.m-hero h1 {
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.m-hero__text {
  font-size: 16px;
  color: rgba(255,255,255,0.82);
  line-height: 1.75;
  margin-bottom: 30px;
  max-width: 520px;
}

.m-hero p {
  color: rgba(255,255,255,0.86);
}

.m-hero__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.m-hero__btns .m-btn {
  width: auto !important;
  min-width: 0 !important;
  max-width: max-content;
  flex: 0 0 auto;
  white-space: nowrap;
}

.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 28px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  line-height: 1;
  width: auto;
  max-width: max-content;
  flex: 0 0 auto;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, opacity 0.2s, border-color 0.2s;
}

.m-btn:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.18); opacity: 1; }
.m-btn--white   { background: #fff; color: #1B4F72; }
.m-btn--outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5); }
.m-btn--primary { background: #2E86C1; color: #fff; }
.m-btn--secondary { background: #EBF4FB; color: #1B4F72; border: 1px solid #D0E4F0; }
.m-btn--white:hover { background: #EBF4FB; color: #1B4F72; }
.m-btn--outline:hover { background: rgba(255,255,255,0.16); color: #fff; border-color: rgba(255,255,255,0.85); }
.m-btn--primary:hover { background: #1B4F72; color: #fff; }
.m-btn--primary:focus,
.m-btn--primary:active,
.m-btn--primary:visited,
.m-test-form .m-btn--primary:focus,
.m-test-form .m-btn--primary:active {
  background: #1B4F72 !important;
  color: #fff !important;
  border-color: #1B4F72 !important;
  outline: 2px solid rgba(46,134,193,0.25);
  outline-offset: 2px;
}
.m-btn--stable,
.m-btn--stable:visited,
.m-btn--stable:hover,
.m-btn--stable:focus,
.m-btn--stable:active {
  background: #2E86C1 !important;
  color: #fff !important;
  border-color: #2E86C1 !important;
  opacity: 1 !important;
  transform: none !important;
  text-decoration: none !important;
}
.m-btn--stable:hover,
.m-btn--stable:focus {
  background: #1B4F72 !important;
  border-color: #1B4F72 !important;
  box-shadow: 0 6px 18px rgba(27,79,114,0.24);
}
.m-btn--secondary:hover { background: #D0E4F0; color: #1B4F72; }
.m-page a:hover,
.m-page button:hover { text-decoration: none; }

.m-hero__photo {
  width: 280px;
  height: 350px;
  background: rgba(255,255,255,0.12);
  border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,0.22);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  justify-self: end;
}

.m-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.m-hero__photo-placeholder {
  width: 130px;
  height: 175px;
  background: rgba(255,255,255,0.22);
  border-radius: 50% 50% 0 0;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.m-trust {
  background: #EBF4FB;
  border-bottom: 1px solid #D0E4F0;
  padding: 14px 0;
}

.m-trust__inner {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
}

.m-trust__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #3A5A72;
  font-weight: 500;
}

.m-trust__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2E86C1;
  flex-shrink: 0;
}

/* ============================================================
   СЕКЦИИ
   ============================================================ */
.m-section { padding: 56px 0; }
.m-section--white { background: #fff; }
.m-section--light { background: #F4F8FC; }
.m-section--dark  { background: #1B4F72; }

.m-section__label {
  font-size: 11px;
  font-weight: 700;
  color: #2E86C1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.m-section__title {
  font-size: 30px;
  font-weight: 700;
  color: #1A2E3B;
  margin-bottom: 36px;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

/* ============================================================
   УСЛУГИ
   ============================================================ */
.m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.m-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  border: 1px solid #D0E4F0;
  transition: box-shadow 0.25s;
}

.m-card:hover { box-shadow: 0 8px 28px rgba(46,134,193,0.13); }

.m-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #EBF4FB;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.m-card__icon svg { width: 22px; height: 22px; }
.m-card h3 { font-size: 15px; font-weight: 700; color: #1A2E3B; margin-bottom: 8px; }
.m-card p  { font-size: 13px; color: #6A8A9A; line-height: 1.65; }

.m-card__link {
  display: inline-block;
  font-size: 13px;
  color: #2E86C1;
  margin-top: 14px;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.m-card__link:hover { color: #1B4F72; }

/* ============================================================
   ДЛЯ РОДИТЕЛЕЙ
   ============================================================ */
.m-parents { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.m-parent {
  background: #F4F8FC;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid #D0E4F0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}

.m-parent:hover { box-shadow: 0 4px 16px rgba(46,134,193,0.1); }
.m-parent__num { font-size: 22px; font-weight: 700; color: #2E86C1; flex-shrink: 0; line-height: 1; min-width: 30px; }
.m-parent h4 { font-size: 14px; font-weight: 700; color: #1A2E3B; margin-bottom: 5px; }
.m-parent p  { font-size: 13px; color: #6A8A9A; line-height: 1.55; }

/* ============================================================
   ОБ АВТОРЕ
   ============================================================ */
.m-about__card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #D0E4F0;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(46,134,193,0.07);
}

.m-about__top {
  padding: 30px;
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 26px;
  align-items: start;
}

.m-about__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #EBF4FB;
  border: 3px solid #AED6F1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #1B4F72;
  flex-shrink: 0;
  overflow: hidden;
}

.m-about__avatar img { width: 100%; height: 100%; object-fit: cover; }
.m-about__avatar--photo {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  align-self: start;
  margin-right: 8px;
}
.m-about__avatar--photo img {
  object-position: top center;
}
.m-about__name { font-size: 22px; font-weight: 700; color: #1A2E3B; margin-bottom: 4px; letter-spacing: -0.3px; }
.m-about__role { font-size: 13px; color: #2E86C1; font-weight: 500; margin-bottom: 12px; }
.m-about__text { font-size: 14px; color: #5A7A8A; line-height: 1.75; margin-bottom: 14px; }

.m-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.m-badge  { font-size: 12px; padding: 4px 11px; border-radius: 10px; background: #EBF4FB; color: #1B4F72; font-weight: 600; border: 1px solid #D0E4F0; }

.m-about__toggle {
  padding: 16px 30px;
  border-top: 1px solid #EBF4FB;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
}

.m-about__toggle:hover { background: #F4F8FC; }
.m-about__toggle span { font-size: 13px; color: #2E86C1; font-weight: 600; }

.m-about__arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #EBF4FB;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s;
  flex-shrink: 0;
  border: 1px solid #D0E4F0;
}

.m-about__arrow.open { transform: rotate(180deg); }

.m-about__expanded { display: none; padding: 28px 30px; border-top: 1px solid #EBF4FB; background: #FAFCFF; }
.m-about__expanded.visible { display: block; }
.m-about__expanded p { font-size: 14px; color: #5A7A8A; line-height: 1.8; margin-bottom: 14px; }
.m-about__expanded h4 { font-size: 14px; font-weight: 700; color: #1A2E3B; margin: 22px 0 12px; padding-bottom: 6px; border-bottom: 2px solid #EBF4FB; }

.m-cert-list { display: flex; flex-direction: column; gap: 10px; }
.m-cert-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #5A7A8A; line-height: 1.55; }
.m-cert-dot  { width: 7px; height: 7px; border-radius: 50%; background: #2E86C1; flex-shrink: 0; margin-top: 5px; }

/* ============================================================
   ЦЕНЫ
   ============================================================ */
.m-tabs { display: flex; gap: 8px; margin-bottom: 28px; }

.m-tab {
  font-size: 13px;
  padding: 9px 20px;
  border-radius: 22px;
  cursor: pointer;
  border: 1.5px solid #AED6F1;
  color: #2E86C1;
  background: #fff;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.m-tab.active { background: #2E86C1; color: #fff; border-color: #2E86C1; }
.m-tab:hover:not(.active) { background: #EBF4FB; }

.m-price-panel { display: none; }
.m-price-panel.active { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }

.m-price-card {
  border: 1px solid #D0E4F0;
  border-radius: 16px;
  padding: 24px 20px;
  background: #F4F8FC;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.m-price-card:hover { box-shadow: 0 6px 20px rgba(46,134,193,0.12); }
.m-price-card--featured { border: 2px solid #2E86C1; background: #fff; }

.m-price-popular { font-size: 11px; background: #EBF4FB; color: #1B4F72; padding: 3px 10px; border-radius: 8px; display: inline-block; margin-bottom: 10px; font-weight: 600; border: 1px solid #D0E4F0; align-self: flex-start; }
.m-price-name     { font-size: 15px; font-weight: 700; color: #1A2E3B; margin-bottom: 5px; }
.m-price-duration { font-size: 12px; color: #6A8A9A; margin-bottom: 16px; line-height: 1.55; flex: 1; }
.m-price-amount   { font-size: 32px; font-weight: 700; color: #2E86C1; margin-bottom: 18px; letter-spacing: -0.5px; line-height: 1; }
.m-price-amount span { font-size: 15px; color: #6A8A9A; font-weight: 400; }

.m-price-btn {
  margin-top: auto;
  width: 100%;
  background: #EBF4FB;
  color: #1B4F72;
  font-size: 13px;
  font-weight: 600;
  padding: 11px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: background 0.2s, color 0.2s;
}

.m-price-card--featured .m-price-btn { background: #2E86C1; color: #fff; }
.m-price-btn:hover { opacity: 0.88; }

/* ============================================================
   ОТЗЫВЫ
   ============================================================ */
.m-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.m-review {
  background: #fff;
  border-radius: 16px;
  padding: 22px 20px;
  border: 1px solid #D0E4F0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s;
}

.m-review:hover { box-shadow: 0 4px 16px rgba(46,134,193,0.1); }
.m-review__stars  { display: flex; gap: 3px; }
.m-review__star   { color: #2E86C1; font-size: 16px; }
.m-review__text   { font-size: 13px; color: #5A7A8A; line-height: 1.7; flex: 1; }
.m-review__author { font-size: 13px; font-weight: 700; color: #1A2E3B; }
.m-review__date   { font-size: 11px; color: #9AB0BC; }

/* ============================================================
   CTA
   ============================================================ */
.m-cta { text-align: center; }
.m-cta h2 { font-size: 34px; font-weight: 700; color: #fff; margin-bottom: 12px; letter-spacing: -0.5px; }
.m-cta p  { font-size: 16px; color: rgba(255,255,255,0.78); margin-bottom: 28px; }

.m-cta__phones {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.m-cta__phone {
  font-size: 20px;
  font-weight: 700;
  color: #AED6F1;
  text-decoration: none;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}

.m-cta__phone:hover { color: #fff; }

/* ============================================================
   ФУТЕР
   ============================================================ */
.m-footer { background: #132839; }

.m-footer__top {
  padding: 40px 0 30px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.m-footer__col h4 { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.95); margin-bottom: 16px; }

.m-footer__col a,
.m-footer__col span {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
  line-height: 1.5;
}

.m-footer__col a:hover { color: #AED6F1; }

.m-footer__pay { padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }

.m-footer__pay-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.m-footer__pay-logos { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.m-pay-logo {
  height: 30px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 3px 12px;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.m-pay-logo--visa    { color: #fff; letter-spacing: -0.5px; font-size: 15px; }
.m-pay-logo--belkart { color: #AED6F1; font-size: 12px; }
.m-pay-logo--maestro { color: rgba(255,255,255,0.7); font-style: italic; }

.m-mc     { display: flex; align-items: center; }
.m-mc__r  { width: 18px; height: 18px; border-radius: 50%; background: #1B4F72; }
.m-mc__y  { width: 18px; height: 18px; border-radius: 50%; background: #2E86C1; margin-left: -7px; }

.m-ssl {
  font-size: 11px;
  color: #AED6F1;
  border: 1px solid rgba(174,214,241,0.3);
  border-radius: 7px;
  padding: 5px 11px;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 30px;
}

.m-footer__bottom { padding: 18px 0; }

.m-footer__copy { font-size: 12px; color: rgba(255,255,255,0.35); line-height: 1.6; }
.m-footer__copy a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.m-footer__copy a:hover { color: #AED6F1; }

/* ============================================================
   ПЛАВАЮЩИЕ КНОПКИ — FIX: не перекрываются
   Телефон: снизу слева
   Наверх:  снизу справа
   ============================================================ */
.m-float {
  position: fixed;
  bottom: 28px;
  left: 28px;   /* FIX: телефон — СЛЕВА */
  z-index: 9999;
}

.m-float__btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #2E86C1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(46,134,193,0.5);
  animation: float-pulse 2.5s infinite;
  transition: background 0.2s;
}

.m-float__btn:hover { background: #1B4F72; animation: none; box-shadow: 0 4px 18px rgba(46,134,193,0.5); }

@keyframes float-pulse {
  0%   { box-shadow: 0 0 0 0    rgba(46,134,193,0.55); }
  70%  { box-shadow: 0 0 0 18px rgba(46,134,193,0); }
  100% { box-shadow: 0 0 0 0    rgba(46,134,193,0); }
}

.m-scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;   /* FIX: наверх — СПРАВА */
  z-index: 9998;
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  padding: 0 !important;
  line-height: 1;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #1B4F72;
  border: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(27,79,114,0.4);
  transition: background 0.2s, box-shadow 0.2s;
}

.m-scroll-top svg { display: block; flex: 0 0 auto; }
.m-scroll-top:hover { background: #163F5C; box-shadow: 0 6px 18px rgba(27,79,114,0.5); }
.m-scroll-top.visible { display: flex; }

/* ============================================================
   ПОПАП ТЕЛЕФОНОВ
   ============================================================ */
.m-phone-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.m-phone-overlay.open { display: flex; }

.m-phone-popup {
  background: #fff;
  border-radius: 18px;
  padding: 32px 36px;
  max-width: 340px;
  width: 90%;
  position: relative;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  text-align: center;
}

.m-phone-popup__close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: #6A8A9A;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}

.m-phone-popup__close:hover { color: #1A2E3B; }

.m-phone-popup__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #EBF4FB;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.m-phone-popup__title { font-size: 17px; font-weight: 700; color: #1A2E3B; margin-bottom: 6px; }
.m-phone-popup__sub   { font-size: 13px; color: #6A8A9A; margin-bottom: 22px; }
.m-phone-popup__numbers { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }

.m-phone-popup__num {
  font-size: 20px;
  font-weight: 700;
  color: #2E86C1;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 12px;
  background: #EBF4FB;
  border: 1px solid #D0E4F0;
  display: block;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  width: 100%;
  transition: background 0.2s;
}

.m-phone-popup__num:hover { background: #D0E4F0; }
.m-phone-popup__hint { font-size: 12px; color: #9AB0BC; }

.m-page .m-phone-popup__num,
.m-page .m-phone-popup__num:visited {
  color: #2E86C1 !important;
  background: #EBF4FB !important;
  border-color: #D0E4F0 !important;
}

.m-page .m-phone-popup__num:hover,
.m-page .m-phone-popup__num:focus {
  color: #fff !important;
  background: #1B4F72 !important;
  border-color: #1B4F72 !important;
  outline: none;
}

.m-copy-toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%) translateY(14px);
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  padding: 10px 16px;
  border-radius: 999px;
  background: #1B4F72;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(27,79,114,0.25);
  transition: opacity 0.2s, transform 0.2s;
}

.m-copy-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   КОНТЕНТНЫЕ СТРАНИЦЫ
   ============================================================ */
.m-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.m-article-column {
  min-width: 0;
}

.m-content-card,
.m-side-card {
  background: #fff;
  border: 1px solid #D0E4F0;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(27,79,114,0.06);
  overflow-wrap: anywhere;
}

.m-content-card { padding: 34px; }
.m-side-card { padding: 24px; position: sticky; top: 88px; }

.m-content-card h2 {
  font-size: 25px;
  font-weight: 800;
  color: #1A2E3B;
  margin: 0 0 16px;
}

.m-content-card h3 {
  font-size: 19px;
  font-weight: 800;
  color: #1A2E3B;
  margin: 28px 0 12px;
}

.m-content-card p,
.m-content-card li {
  font-size: 15px;
  color: #4A6B7C;
  line-height: 1.8;
}

.m-content-card p { margin-bottom: 15px; }
.m-content-card ul,
.m-content-card ol { margin: 12px 0 18px 22px; }
.m-content-card li { margin-bottom: 8px; }
.m-content-card strong { color: #1A2E3B; }

.m-note {
  margin: 22px 0;
  padding: 18px 20px;
  border-radius: 14px;
  background: #EBF4FB;
  border: 1px solid #D0E4F0;
  color: #3A5A72;
}

.m-chip-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 4px; }
.m-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #EBF4FB;
  color: #1B4F72;
  font-size: 13px;
  font-weight: 700;
}

.m-link-grid,
.m-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.m-link-card,
.m-info-box {
  display: block;
  padding: 18px;
  border-radius: 14px;
  background: #F4F8FC;
  border: 1px solid #D0E4F0;
  text-decoration: none;
}

.m-link-card:hover { background: #EBF4FB; }
.m-link-card strong,
.m-info-box strong {
  display: block;
  color: #1A2E3B;
  font-size: 15px;
  margin-bottom: 6px;
}

.m-link-card span,
.m-info-box span {
  display: block;
  color: #6A8A9A;
  font-size: 13px;
  line-height: 1.55;
}

.m-side-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: #1A2E3B;
  margin: 0 0 14px;
}

.m-side-card a {
  display: block;
  color: #2E86C1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 0;
  border-bottom: 1px solid #EBF4FB;
}

.m-side-card a:last-child { border-bottom: 0; }

.m-booking-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #EBF4FB, #fff);
  border: 1px solid #D0E4F0;
}

.m-booking-box h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #1A2E3B;
}

.m-booking-box p {
  margin: 0 0 10px;
  color: #6A8A9A;
  font-size: 12px;
  line-height: 1.55;
}

.m-booking-box .m-calendar {
  margin: 10px 0 12px;
}

.m-booking-box .m-calendar__grid {
  gap: 4px;
}

.m-booking-box .m-calendar__day {
  border-radius: 7px;
  font-size: 11px;
}

.m-booking-box .m-calendar__legend {
  display: none;
}

.m-booking-days {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.m-booking-days span {
  display: block;
  padding: 9px 11px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #D0E4F0;
  color: #1B4F72;
  font-size: 13px;
  font-weight: 700;
}

.m-calendar {
  margin: 14px 0 16px;
}

.m-calendar__month {
  margin-bottom: 10px;
  color: #1A2E3B;
  font-size: 15px;
  font-weight: 800;
  text-transform: capitalize;
}

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

.m-calendar__weekdays {
  margin-bottom: 6px;
}

.m-calendar__weekdays span {
  color: #6A8A9A;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.m-calendar__day {
  display: flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  width: 100%;
  min-width: 0;
  padding: 0;
  aspect-ratio: 1 / 1;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid #D0E4F0;
  background: #fff;
  color: #6A8A9A;
  line-height: 1;
  text-align: center;
  font-family: inherit;
}

.m-calendar__day--empty {
  visibility: hidden;
}

.m-calendar__day.is-past {
  background: #E6EDF2;
  border-color: #D7E1E8;
  color: #9AB0BC;
}

.m-calendar__day.is-available {
  background: #2E86C1;
  border-color: #2E86C1;
  color: #fff;
  box-shadow: 0 5px 12px rgba(46,134,193,0.22);
  cursor: pointer;
}

.m-calendar__day.is-available:hover,
.m-calendar__day.is-available.is-selected {
  background: #1B4F72;
  border-color: #1B4F72;
  color: #fff;
  box-shadow: 0 7px 16px rgba(27,79,114,0.28);
}

.m-calendar__day.is-closed {
  background: #F4F8FC;
  color: #9AB0BC;
}

.m-calendar__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 12px 0 0;
  color: #6A8A9A;
  font-size: 11px;
}

.m-calendar__legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.m-calendar__legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

.m-calendar__legend i.is-available { background: #2E86C1; }
.m-calendar__legend i.is-past { background: #D7E1E8; }
.m-calendar__legend i.is-closed { background: #F4F8FC; border: 1px solid #D0E4F0; }

.m-selected-date {
  margin-top: 12px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #D0E4F0;
  color: #1B4F72;
  font-size: 13px;
  font-weight: 800;
}

.m-selected-date.is-error {
  border-color: #2E86C1;
  background: #EBF4FB;
}

.m-map {
  margin-top: 20px;
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #D0E4F0;
  box-shadow: 0 10px 30px rgba(27,79,114,0.08);
  aspect-ratio: 16 / 9;
  min-height: 300px;
  contain: layout paint;
}

.m-map iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-width: 0;
  border: 0;
}

.m-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.m-contact-card {
  padding: 24px;
}

.m-contact-card h2 {
  margin: 0 0 16px;
  color: #1A2E3B;
  font-size: 20px;
  font-weight: 800;
}

.m-card-lead {
  margin: -6px 0 20px;
  color: #6A8A9A;
  font-size: 13px;
  line-height: 1.65;
}

.m-contact-list {
  display: grid;
  gap: 16px;
}

.m-contact-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.m-contact-icon {
  width: 40px;
  height: 40px;
  background: #EBF4FB;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.m-contact-row span {
  display: block;
  color: #6A8A9A;
  font-size: 12px;
  margin-bottom: 4px;
}

.m-contact-row a,
.m-contact-row strong {
  display: block;
  color: #1B4F72;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.m-contact-row a:hover {
  color: #2E86C1;
}

.m-contact-row em {
  display: block;
  margin-top: 4px;
  color: #6A8A9A;
  font-style: normal;
  font-size: 13px;
}

.m-info-note {
  margin-top: 18px;
  padding: 14px 16px;
  background: #F4F8FC;
  border-radius: 12px;
  border: 1px solid #D0E4F0;
  color: #3A5A72;
  font-size: 13px;
  line-height: 1.65;
}

.m-calendar-box {
  margin-top: 6px;
  padding: 14px;
  border: 1px solid #D0E4F0;
  border-radius: 16px;
  background: #F4F8FC;
  overflow: hidden;
}

.m-calendar-box h3 {
  margin: 0 0 10px;
  color: #1A2E3B;
  font-size: 17px;
}

.m-phone-card {
  margin-top: 16px;
  padding: 16px;
  background: #EBF4FB;
  border-radius: 12px;
  text-align: center;
}

.m-phone-card span {
  display: block;
  color: #3A5A72;
  font-size: 13px;
  margin-bottom: 10px;
}

.m-btn--compact {
  justify-self: start;
  width: auto;
  padding: 12px 18px;
}

.m-btn--outline-blue {
  background: #fff;
  color: #1B4F72;
  border: 1.5px solid #2E86C1;
}

.m-btn--outline-blue:hover,
.m-btn--outline-blue:focus {
  background: #1B4F72;
  color: #fff !important;
  border-color: #1B4F72;
}

.m-booking-box .m-btn {
  color: #fff !important;
  width: auto;
  text-align: center;
}

.m-booking-box--compact {
  padding: 18px;
}

.m-booking-box--compact p {
  margin-bottom: 14px;
}

.m-booking-box--compact .m-btn {
  display: inline-flex;
  width: auto;
  min-height: 42px;
  padding: 11px 18px;
}

.m-form {
  display: grid;
  gap: 14px;
}

.m-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #1A2E3B;
}

.m-form input,
.m-form textarea {
  width: 100%;
  border: 1px solid #D0E4F0;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: #1A2E3B;
  background: #fff;
}

.m-form input:focus,
.m-form textarea:focus {
  outline: none;
  border-color: #2E86C1;
  box-shadow: 0 0 0 3px rgba(46,134,193,0.16);
}

.m-success {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #EBF4FB;
  border: 1px solid #D0E4F0;
  color: #1B4F72;
  font-weight: 700;
}

.m-article-list,
.m-test-list {
  display: grid;
  gap: 16px;
}

.m-article-item,
.m-test-item {
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #D0E4F0;
  box-shadow: 0 8px 24px rgba(27,79,114,0.05);
}

.m-article-item h2,
.m-test-item h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.m-article-item h2 a,
.m-test-item h2 a {
  color: #1A2E3B;
  text-decoration: none;
}

.m-article-item h2 a:hover,
.m-test-item h2 a:hover { color: #2E86C1; }

.m-test-form {
  display: grid;
  gap: 18px;
}

.m-test-question {
  padding: 18px;
  border-radius: 14px;
  background: #F4F8FC;
  border: 1px solid #D0E4F0;
}

.m-test-question strong {
  display: block;
  margin-bottom: 10px;
  color: #1A2E3B;
}

.m-test-question label {
  display: block;
  margin: 7px 0;
  color: #4A6B7C;
}

.testme_area {
  display: grid;
  gap: 16px;
}

.testme_question {
  padding: 18px;
  border-radius: 14px;
  background: #F4F8FC;
  border: 1px solid #D0E4F0;
}

.testme_question_text {
  margin-bottom: 10px;
  color: #1A2E3B;
  font-weight: 800;
}

.testme_answer_block {
  margin: 7px 0;
  color: #4A6B7C;
}

.testme_answer_block label {
  margin-left: 7px;
}

.m-old-test-btn {
  justify-self: start;
}

.m-test-result {
  display: none;
  padding: 18px;
  border-radius: 14px;
  background: #EBF4FB;
  border: 1px solid #D0E4F0;
  color: #1B4F72;
  font-weight: 700;
  line-height: 1.65;
}

.m-test-result.visible { display: block; }

.m-license-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.m-license-gallery a,
.m-license-gallery__item {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #D0E4F0;
  background: #fff;
  cursor: zoom-in;
  appearance: none;
  -webkit-appearance: none;
}

.m-license-gallery img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.28s ease;
}

.m-license-gallery a:hover img,
.m-license-gallery__item:hover img { transform: scale(1.06); }

.m-legal-text {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid #D0E4F0;
  border-radius: 16px;
  background: #F8FBFE;
  color: #1A2E3B;
  font-size: 14px;
  line-height: 1.75;
  white-space: normal;
}

.m-legal-text p {
  margin: 0 0 12px;
  color: #1A2E3B;
  font-size: 14px;
  line-height: 1.62;
}

.m-legal-text p:last-child {
  margin-bottom: 0;
}

.m-cert-grid {
  display: grid;
  gap: 18px;
}

.m-cert-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid #D0E4F0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(27,79,114,0.05);
}

.m-cert-card__body h2 {
  margin: 0 0 8px;
  color: #1A2E3B;
  font-size: 20px;
  line-height: 1.25;
}

.m-cert-card__body p {
  margin: 0 0 6px;
  color: #3A5A72;
  font-size: 14px;
  line-height: 1.6;
}

.m-cert-card__body span {
  color: #6A8A9A;
  font-size: 13px;
  font-weight: 700;
}

.m-cert-card__image {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #D0E4F0;
  background: #F4F8FC;
  cursor: zoom-in;
  appearance: none;
  -webkit-appearance: none;
  text-align: inherit;
}

.m-cert-card__image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.m-cert-card__image:hover img {
  transform: scale(1.06);
}

.m-cert-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 34, 50, 0.68);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.m-cert-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.m-cert-modal__dialog {
  position: relative;
  width: min(920px, 96vw);
  max-height: 92vh;
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(10, 34, 50, 0.28);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.22s ease;
}

.m-cert-modal.open .m-cert-modal__dialog {
  transform: translateY(0) scale(1);
}

.m-cert-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #EBF4FB;
  color: #1B4F72;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.m-cert-modal__close:hover,
.m-cert-modal__close:focus {
  background: #1B4F72;
  color: #fff;
  transform: scale(1.04);
}

.m-cert-modal__title {
  padding-right: 46px;
  color: #1A2E3B;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.m-cert-modal__dialog img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
  background: #F4F8FC;
}

.m-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.m-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #D0E4F0;
  background: #fff;
  color: #1B4F72;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.m-pagination .page-numbers.current,
.m-pagination .page-numbers:hover {
  background: #1B4F72;
  border-color: #1B4F72;
  color: #fff;
}

.m-page .m-content-card a,
.m-page .m-footer a,
.m-page .m-side-card a { color: #2E86C1; }
.m-page .m-content-card a:hover,
.m-page .m-footer a:hover,
.m-page .m-side-card a:hover { color: #1B4F72; }

.m-page .m-content-card .m-btn--primary,
.m-page .m-content-card .m-btn--primary:visited,
.m-page .m-side-card .m-btn--primary,
.m-page .m-side-card .m-btn--primary:visited {
  color: #fff !important;
}

.m-page .m-content-card .m-btn--primary:hover,
.m-page .m-side-card .m-btn--primary:hover {
  color: #fff !important;
  background: #1B4F72;
}

.m-page .m-nav,
.m-page .m-nav a,
.m-page .m-nav a:visited,
.m-page .m-nav span {
  color: rgba(255,255,255,0.9);
}

.m-page .m-nav__logo,
.m-page .m-nav__logo:visited {
  color: #fff !important;
}

.m-page .m-nav__item > a:hover,
.m-page .m-nav__item > span:hover,
.m-page .m-nav__item:hover > span {
  color: #fff !important;
}

.m-page .m-nav__dropdown a,
.m-page .m-nav__dropdown a:visited {
  color: #3A5A72 !important;
}

.m-page .m-nav__dropdown a:hover {
  background: #EBF4FB !important;
  color: #1B4F72 !important;
}

.m-page .m-nav__cta,
.m-page .m-nav__cta:visited {
  color: #1B4F72 !important;
  background: #fff;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  min-width: 0;
  padding: 7px 14px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  align-self: center;
}

.m-page .m-nav__cta:hover {
  color: #fff !important;
  background: #2E86C1 !important;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 900px) {
  .m-cards              { grid-template-columns: repeat(2, 1fr); }
  .m-price-panel.active { grid-template-columns: repeat(2, 1fr); }
  .m-reviews            { grid-template-columns: repeat(2, 1fr); }
  .m-content-layout     { grid-template-columns: 1fr; }
  .m-side-card          { position: static; }
}

@media (max-width: 768px) {
  /* Показываем бургер */
  .m-nav__toggle { display: block; }
  .m-nav__cta    { display: none !important; }

  .m-nav__toggle:hover,
  .m-nav__toggle:focus,
  .m-nav__toggle:active {
    background: rgba(255,255,255,0.14) !important;
    color: #fff !important;
    box-shadow: none !important;
    outline: none !important;
  }

  /* Мобильное меню */
  .m-nav__links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1B4F72 !important;
    flex-direction: column;
    overflow-y: auto;
    z-index: 1001;
    padding-bottom: 24px;
  }

  .m-nav__links.open { display: flex; }

  /* FIX: крестик показывается внутри открытого меню */
  .m-nav__close {
    display: block;
    background: rgba(255,255,255,0.12) !important;
    color: #fff !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .m-nav__close:hover,
  .m-nav__close:focus,
  .m-nav__close:active {
    background: rgba(255,255,255,0.2) !important;
    color: #fff !important;
    box-shadow: none !important;
    outline: none !important;
  }

  .m-nav__item { height: auto; width: 100%; flex-direction: column; align-items: flex-start; }

  .m-nav__item > a,
  .m-nav__item > span {
    padding: 13px 20px;
    height: auto;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.92) !important;
  }

  .m-page .m-nav__links.open .m-nav__item > a,
  .m-page .m-nav__links.open .m-nav__item > span,
  .m-page .m-nav__links.open .m-nav__item > a:visited {
    color: rgba(255,255,255,0.92) !important;
  }

  /* Подменю по клику через JS */
  .m-nav__dropdown {
    position: static;
    box-shadow: none;
    border: none;
    background: rgba(0,0,0,0.18);
    border-radius: 0;
    min-width: unset;
    width: 100%;
    padding: 4px 0;
    display: none;
  }

  .m-nav__item.open .m-nav__dropdown { display: block; }

  .m-nav__dropdown a {
    color: rgba(255,255,255,0.82) !important;
    padding: 10px 36px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }

  .m-nav__dropdown a:hover,
  .m-nav__dropdown a:focus,
  .m-nav__dropdown a:active {
    background: rgba(255,255,255,0.08) !important;
    color: #fff !important;
  }

  /* Hero */
  .m-hero__inner  { grid-template-columns: 1fr; }
  .m-hero__photo  {
    display: block;
    width: min(280px, 80vw);
    height: 340px;
    margin: 0 auto;
  }
  .m-hero h1      { font-size: 28px; }
  .m-section__title { font-size: 24px; }

  /* Сетки */
  .m-cards              { grid-template-columns: 1fr; }
  .m-parents            { grid-template-columns: 1fr; }
  .m-price-panel.active { grid-template-columns: 1fr; }
  .m-reviews            { grid-template-columns: 1fr; }
  .m-footer__top        { grid-template-columns: 1fr; }
  .m-about__top         { grid-template-columns: 1fr; text-align: center; }
  .m-badges             { justify-content: center; }

  .m-cta h2    { font-size: 26px; }
  .m-cta__phone { font-size: 17px; }
  .m-content-card { padding: 24px; }
  .m-link-grid,
  .m-info-grid { grid-template-columns: 1fr; }
  .m-license-gallery { grid-template-columns: 1fr; }
  .m-contact-grid { grid-template-columns: 1fr; }
  .m-cert-card { grid-template-columns: 1fr; }
  .m-cert-card__image img { height: auto; max-height: 360px; object-fit: contain; }

  .m-map {
    aspect-ratio: 1 / 1;
    min-height: 320px;
    margin-left: 0;
    margin-right: 0;
  }

  .m-legal-text {
    padding: 16px;
  }

  /* FIX мобиль: кнопки на своих местах, не мешают друг другу */
  .m-float      { left: 16px;  bottom: 20px; }
  .m-scroll-top { right: 16px; bottom: 20px; }
}

@media (max-width: 480px) {
  .m-container { padding: 0 16px; }
  .m-section   { padding: 40px 0; }
  .m-hero      { padding: 44px 0 36px; }
  .m-hero h1   { font-size: 24px; }
  .m-btn       { font-size: 13px; padding: 11px 20px; }
}
