/* =====================================================================
   FMC Design System v1 — «Семья и Медицина» (fmcdoconline.com)
   Подключается ПОСЛЕ app.css и ЗАМЕНЯЕТ fmc-booking.css.
   Mobile-first. Токены → база → компоненты → страницы.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root{
  /* Палитра вокруг #00BFA5 (Material Teal A700). Контраст проверен по WCAG 2.2 */
  --fmc-primary:#00BFA5;        /* акцент, фон кнопок; текст на нём — --fmc-on-primary (7,3:1) */
  --fmc-primary-600:#00A890;    /* hover кнопки (текст 5,7:1) */
  --fmc-primary-700:#00796B;    /* ссылки и мелкий текст на белом (5,3:1) */
  --fmc-primary-900:#00574B;    /* hover ссылок, текст на tint (6,8:1) */
  --fmc-primary-50:#E6F8F5;     /* фон-tint */
  --fmc-primary-100:#C2EFE8;    /* тональная кнопка / выделение */
  --fmc-on-primary:#06201C;     /* текст/иконки на #00BFA5 */
  --fmc-tg:var(--fmc-primary); --fmc-max:var(--fmc-primary-100);
  --fmc-text:#0F1E1C;           /* 17:1 */
  --fmc-text-2:#3B4A47;         /* 9,3:1 */
  --fmc-text-3:#5A6966;         /* 5,8:1 на белом, 5,3:1 на фоне */
  --fmc-bg:#F4F7F6;
  --fmc-surface:#FFFFFF;
  --fmc-border:#DCE4E2;
  --fmc-border-strong:#B8C6C3;
  --fmc-danger:#B3261E;
  --fmc-danger-50:#FCEEEE;
  --fmc-focus:0 0 0 2px #fff,0 0 0 4px var(--fmc-primary-700);

  --fmc-font:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --fmc-fs-xs:13px; --fmc-fs-sm:14px; --fmc-fs-md:16px; --fmc-fs-lg:18px;
  --fmc-fs-h3:18px; --fmc-fs-h2:22px; --fmc-fs-h1:26px;
  --fmc-lh:1.55; --fmc-lh-tight:1.25;

  --fmc-s1:4px; --fmc-s2:8px; --fmc-s3:12px; --fmc-s4:16px; --fmc-s5:24px; --fmc-s6:32px; --fmc-s7:48px;
  --fmc-r-sm:12px; --fmc-r:12px; --fmc-r-lg:12px; --fmc-r-pill:12px; /* один радиус */
  --fmc-shadow:0 1px 2px rgba(15,30,28,.05);
  --fmc-shadow-hover:0 4px 16px rgba(15,30,28,.10);
  --fmc-tap:48px;
  --fmc-container:1240px;
  --fmc-gutter:16px;
  /* тема prostore читает эти переменные */
  --theme-primary-color:var(--fmc-primary-700);
  --theme-secondary-color:var(--fmc-primary-700);
  --body-bg:var(--fmc-bg);
  --base-font-family:var(--fmc-font);
}
@media (min-width:768px){ :root{ --fmc-gutter:24px; --fmc-fs-h1:32px; --fmc-fs-h2:26px; --fmc-fs-h3:20px; } }
@media (min-width:1200px){ :root{ --fmc-fs-h1:36px; } }

/* ---------- 2. Base ---------- */
html body{ background:var(--fmc-bg); color:var(--fmc-text); font-family:var(--fmc-font);
  font-size:var(--fmc-fs-md); line-height:var(--fmc-lh); -webkit-text-size-adjust:100%; }
body .app .container-fluid{ max-width:var(--fmc-container); padding-left:var(--fmc-gutter); padding-right:var(--fmc-gutter); margin-left:auto; margin-right:auto; }
body a{ color:var(--fmc-primary-700); }
body a:focus-visible, body button:focus-visible{ outline:none; box-shadow:var(--fmc-focus); border-radius:var(--fmc-r-sm); }
body .app h1, body .app .h1, body .breadcrumbs__title{ font-size:var(--fmc-fs-h1); line-height:var(--fmc-lh-tight); font-weight:700; letter-spacing:-.01em; color:var(--fmc-text); margin:0 0 var(--fmc-s2); }
body .app .h2, body .app h2, body .categories__title, body .products-featured__title{ font-size:var(--fmc-fs-h2); line-height:var(--fmc-lh-tight); font-weight:700; margin:var(--fmc-s6) 0 var(--fmc-s4); }
@media (prefers-reduced-motion:reduce){ *{ animation:none!important; transition:none!important; scroll-behavior:auto!important; } }

/* ---------- 3. Breadcrumbs ---------- */
body .breadcrumbs{ padding:var(--fmc-s5) 0 var(--fmc-s4); }
body .breadcrumbs__menu{ display:flex; flex-wrap:wrap; gap:4px 8px; font-size:var(--fmc-fs-xs); color:var(--fmc-text-3); }
body .breadcrumbs__link{ color:var(--fmc-text-3); text-decoration:none; }
body .breadcrumbs__link:hover{ color:var(--fmc-primary-700); }

/* ---------- 4. Surfaces / cards ---------- */
body .ui-wysiwyg, body .details, body .sku, body .reviews__item, body .page .editor{ border-radius:var(--fmc-r-lg); }
body .ui-wysiwyg{ background:var(--fmc-surface); border:1px solid var(--fmc-border); box-shadow:none; padding:var(--fmc-s5); }
@media (min-width:768px){ body .ui-wysiwyg{ padding:var(--fmc-s6); } }

/* ---------- 5. Rich text (описания услуг, направлений, врачей) ---------- */
body .editor{ font-size:var(--fmc-fs-md); line-height:var(--fmc-lh); color:var(--fmc-text); }
body .editor > *:first-child{ margin-top:0; }
body .editor p, body .editor ul, body .editor ol{ max-width:72ch; margin:0 0 var(--fmc-s3); }
body .editor h2{ font-size:var(--fmc-fs-h2); margin:var(--fmc-s6) 0 var(--fmc-s3); }
body .editor h3{ font-size:var(--fmc-fs-h3); line-height:var(--fmc-lh-tight); font-weight:700; color:var(--fmc-text);
  margin:var(--fmc-s5) 0 var(--fmc-s2); padding-top:var(--fmc-s5); border-top:1px solid var(--fmc-border); }
body .editor h3:first-child{ border-top:0; padding-top:0; }
body .editor ul{ list-style:none; padding:0; }
body .editor ul > li{ position:relative; padding-left:22px; margin:0 0 6px; }
body .editor ul > li::before{ content:""; position:absolute; left:4px; top:.62em; width:7px; height:7px; border-radius:50%; background:var(--fmc-primary); }
body .editor ol{ padding-left:22px; }
body .editor strong{ font-weight:600; }
/* «Важно» / «Когда срочно» — последний блок с 103/112 выделяется */
body .editor h3.fmc-alert-h, body .editor h3.fmc-alert-h + p, body .editor h3.fmc-alert-h + ul{ }
body .editor .fmc-alert{ background:var(--fmc-danger-50); border:1px solid #F2C4C1; border-radius:var(--fmc-r); padding:var(--fmc-s4); margin:var(--fmc-s4) 0; }
body .editor .fmc-alert h3{ border:0; padding:0; margin:0 0 var(--fmc-s2); color:var(--fmc-danger); }
/* FAQ: вопрос — жирным, ответ — обычным */
body .editor .fmc-faq{ display:grid; gap:var(--fmc-s2); }
body .editor details{ background:var(--fmc-bg); border-radius:var(--fmc-r); padding:var(--fmc-s3) var(--fmc-s4); }
body .editor details > summary{ cursor:pointer; font-weight:600; min-height:24px; list-style:none; }
body .editor details > summary::-webkit-details-marker{ display:none; }
body .editor details > summary::after{ content:"+"; float:right; color:var(--fmc-primary-700); font-weight:700; }
body .editor details[open] > summary::after{ content:"–"; }
body .editor details > p{ margin:var(--fmc-s2) 0 0; }
/* кнопка «Читать дальше» темы не нужна: тексты короткие */
body .details__txt-readmore{ max-height:none!important; height:auto!important; overflow:visible!important; }
body .details__txt-readmore + .ui-link, body .details__txt-readmore + a{ display:none; }

/* ---------- 6. Buttons ---------- */
body .ui-btn{ min-height:var(--fmc-tap); border-radius:var(--fmc-r); font-weight:600; font-size:var(--fmc-fs-sm); letter-spacing:0; }
body .ui-btn--primary{ background:var(--fmc-primary); border-color:var(--fmc-primary); color:var(--fmc-on-primary); }
body .ui-btn--primary:hover{ background:var(--fmc-primary-600); border-color:var(--fmc-primary-600); }

/* ---------- 7. Booking block (Telegram + MAX + телефон) ---------- */
.fmc-booking-actions{ display:grid; grid-template-columns:1fr; gap:var(--fmc-s2); width:100%; min-width:0; }
@media (min-width:576px){ .fmc-booking-actions{ grid-template-columns:repeat(3,minmax(0,1fr)); } }
.fmc-booking-actions > a.ui-btn, .fmc-book-btn{
  display:flex; align-items:center; justify-content:center; gap:8px; width:100%;
  min-height:var(--fmc-tap); height:auto; padding:12px 14px; margin:0;
  font:600 var(--fmc-fs-sm)/1.25 var(--fmc-font); text-align:center; text-decoration:none; white-space:nowrap;
  border:1px solid transparent; border-radius:var(--fmc-r); color:#fff; box-shadow:none; transition:background .15s, box-shadow .15s; }
.fmc-booking-actions > a.fmc-booking-button, .fmc-book-btn--tg{ background:var(--fmc-tg); }
.fmc-booking-actions > a.fmc-booking-button:hover, .fmc-book-btn--tg:hover{ background:var(--fmc-primary-600); color:#fff; }
.fmc-booking-actions > a.fmc-max-booking, .fmc-book-btn--max{ background:var(--fmc-max); }
.fmc-booking-actions > a.fmc-max-booking:hover, .fmc-book-btn--max:hover{ background:var(--fmc-primary-200,#8FE3D6); color:#fff; }
.fmc-booking-actions > a.fmc-phone-booking, .fmc-book-btn--tel{ background:var(--fmc-surface); color:var(--fmc-text); border-color:var(--fmc-border); }
.fmc-booking-actions > a.fmc-phone-booking:hover, .fmc-book-btn--tel:hover{ border-color:var(--fmc-primary); color:var(--fmc-primary-700); }
.fmc-booking-actions svg, .fmc-book-btn svg{ width:18px; height:18px; flex:0 0 18px; fill:currentColor; }
.fmc-booking-note{ margin:var(--fmc-s2) 0 0; font-size:var(--fmc-fs-xs); color:var(--fmc-text-3); }
/* в карточках списка — компактно, столбиком */
body .products__item .fmc-booking-actions{ grid-template-columns:1fr; }
body .products__item .fmc-booking-actions > a.ui-btn{ min-height:44px; font-size:var(--fmc-fs-sm); }
.ui-add-to-cart.is-active > .fmc-booking-button{ display:flex; }

/* sticky-панель записи на мобильных (страница услуги и врача) */
.fmc-sticky-book{ display:none; }
@media (max-width:767.98px){
  .fmc-sticky-book{ position:fixed; left:0; right:0; bottom:calc(var(--fmc-tabbar,56px) + env(safe-area-inset-bottom)); z-index:90;
    display:grid; grid-template-columns:repeat(3,1fr); gap:6px; padding:8px var(--fmc-gutter);
    background:rgba(255,255,255,.96); backdrop-filter:saturate(1.4) blur(8px); border-top:1px solid var(--fmc-border);
    transform:translateY(120%); transition:transform .2s; }
  .fmc-sticky-book.is-visible{ transform:none; }
  .fmc-sticky-book .fmc-book-btn{ min-height:44px; padding:8px 6px; font-size:13px; gap:6px; }
  body.fmc-has-sticky .chat{ bottom:calc(var(--fmc-tabbar,56px) + 72px)!important; }
}

/* ---------- 8. Header ---------- */
body .header{ background:var(--fmc-surface); border-bottom:1px solid var(--fmc-border); }
.fmc-header-contacts{ display:flex; align-items:center; gap:var(--fmc-s2); white-space:nowrap; }
.fmc-header-phone{ font-size:var(--fmc-fs-md); font-weight:700; color:var(--fmc-text); text-decoration:none; margin-right:var(--fmc-s2); }
.fmc-header-telegram, .fmc-header-max{ display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:8px 14px;
  border-radius:var(--fmc-r); color:#fff; font-size:var(--fmc-fs-sm); font-weight:600; text-decoration:none; }
.fmc-header-telegram{ background:var(--fmc-tg); } .fmc-header-telegram:hover{ background:var(--fmc-primary-600); color:#fff; }
.fmc-header-max{ background:var(--fmc-max); } .fmc-header-max:hover{ background:var(--fmc-primary-200,#8FE3D6); color:#fff; }
/* магазинные элементы темы — не нужны клинике */
body .header__acc, body .header__action, body .sku__addto, body .sku__availability, body .sku__id,
body .sku__price-option, body .products__item-status, body .products__item-buttons, body .ui-btn--view,
body .ui-number, body .js-btn-preview{ display:none!important; }
body .header__nav-link, body .header__nav a{ font-weight:500; }

/* ---------- 9. Directions grid (главная, /napravleniya) ---------- */
body .products-categories__grid{ display:grid!important; width:auto!important; max-width:100%!important; gap:var(--fmc-s3); grid-template-columns:repeat(2,minmax(0,1fr))!important; margin:0!important; padding:0; overflow:visible!important; flex-wrap:initial; }
@media (min-width:600px){ body .products-categories__grid{ grid-template-columns:repeat(3,minmax(0,1fr))!important; } }
@media (min-width:1200px){ body .products-categories__grid{ grid-template-columns:repeat(6,minmax(0,1fr))!important; } }
body .products-categories__item-image{ display:none!important; }
/* inline style="flex:0 0 20%" у <li> задаётся в шаблоне — убрать в home/category twig; до тех пор перекрываем */
body .products-categories__grid > li{ flex:none!important; max-width:none!important; width:auto!important; padding:0!important; margin:0!important; list-style:none; display:flex; }
body .products-categories__grid > li > a{ width:100%; }
body .products-categories__item{ display:flex; align-items:center; justify-content:center; min-height:84px; width:auto; margin:0; padding:var(--fmc-s3);
  background:var(--fmc-surface); border:1px solid var(--fmc-border); border-radius:var(--fmc-r); box-shadow:none; text-align:center; transition:border-color .15s, box-shadow .15s; }
body .products-categories__item:hover{ border-color:var(--fmc-primary); box-shadow:var(--fmc-shadow-hover); }
body .app .products-categories__item-title{ font-size:var(--fmc-fs-sm); font-weight:600; line-height:1.3; letter-spacing:0; color:var(--fmc-text); margin:0; hyphens:manual; -webkit-hyphens:manual; overflow-wrap:normal; word-break:normal; }
@media (max-width:359.98px){ body .products-categories__item{ padding:8px; } body .app .products-categories__item-title{ font-size:13px; } }
@media (min-width:1200px){ body .app .products-categories__item-title{ font-size:13px; } }
body .products-categories__item-image:empty{ display:none; }

/* ---------- 10. Services list (категория) ---------- */
body .products__list{ display:grid!important; gap:var(--fmc-s3); grid-template-columns:1fr; margin:0!important; padding:0; }
@media (min-width:600px){ body .products__list{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (min-width:1200px){ body .products__list{ grid-template-columns:repeat(3,minmax(0,1fr)); } }
body .products__list > li{ display:flex; width:auto!important; max-width:none!important; flex:none!important; padding:0!important; margin:0!important; list-style:none; }
body .products__list > li > .products__item{ flex:1 1 100%!important; width:100%!important; }
body .products__item{ width:auto!important; max-width:none!important; flex:none!important; margin:0!important; display:flex; }
body .products__item-in{ display:flex; flex-direction:column; gap:var(--fmc-s3); width:100%; height:100%; padding:var(--fmc-s4);
  background:var(--fmc-surface); border:1px solid var(--fmc-border); border-radius:var(--fmc-r); box-shadow:none; }
body .products__item-image{ display:none; }
body .products__list > li > *{ min-width:0; }
body .products__item-in{ min-width:0; overflow:hidden; }
body .app .products__item-title{ white-space:normal; overflow:visible; text-overflow:clip; height:auto; -webkit-line-clamp:unset; display:block;
  font-size:var(--fmc-fs-md); font-weight:600; line-height:1.35; color:var(--fmc-text); margin:0; }
body .products__item-price{ margin-top:auto; font-size:var(--fmc-fs-md); }
body .products__item-action{ margin-top:0; }

/* цены «Взрослые / Дети» (классы контента .zn/.zz) */
body .zn{ display:grid; grid-template-columns:1fr auto; gap:4px 16px; align-items:baseline; }
body .zz.zc{ color:var(--fmc-text-2); font-size:var(--fmc-fs-sm); margin:0; }
body .zz.zc1{ color:var(--fmc-text); font-weight:700; font-size:var(--fmc-fs-lg); margin:0; text-align:right; }

/* ---------- 11. Product (услуга) ---------- */
body .sku{ background:var(--fmc-surface); border:1px solid var(--fmc-border); padding:var(--fmc-s4); margin-bottom:var(--fmc-s4); }
@media (min-width:768px){ body .sku{ padding:var(--fmc-s5); } }
body .sku__price{ margin:0 0 var(--fmc-s4); }
body .details{ background:transparent; }
body .details__control{ background:transparent; border:0; padding:0; margin:0 0 var(--fmc-s3); }
body .details__control-menu{ display:flex; gap:var(--fmc-s2); overflow-x:auto; scrollbar-width:none; padding:2px; }
body .details__control-btn{ min-height:44px; padding:8px 16px; border-radius:var(--fmc-r-pill); border:1px solid var(--fmc-border); background:var(--fmc-surface);
  color:var(--fmc-text-2); font-weight:600; font-size:var(--fmc-fs-sm); white-space:nowrap; }
body .details__control-btn.is-active{ background:var(--fmc-primary); border-color:var(--fmc-primary); color:var(--fmc-on-primary); }
body .details__control-btn::after{ display:none!important; }
body .details__tabs-content{ background:var(--fmc-surface); border:1px solid var(--fmc-border); border-radius:var(--fmc-r-lg); padding:var(--fmc-s5); }
@media (min-width:768px){ body .details__tabs-content{ padding:var(--fmc-s6); } }
body .details__title{ display:none; } /* дублирует вкладку */

/* ---------- 12. Doctors (список и карточки во вкладке «Врачи») ---------- */
body .gallery-container{ margin-left:0!important; margin-right:0!important; display:grid!important; gap:var(--fmc-s4); grid-template-columns:repeat(1,minmax(0,1fr)); margin:0!important; }
@media (min-width:480px){ body .gallery-container{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (min-width:900px){ body .gallery-container{ grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (min-width:1200px){ body .gallery-container{ grid-template-columns:repeat(4,minmax(0,1fr)); } }
body .gallery-container > *{ margin:0!important; width:auto!important; max-width:none!important; flex:none!important; }
body .gallery-item, body .gallery-item-v{ display:flex; flex-direction:column; height:100%; background:var(--fmc-surface);
  border:1px solid var(--fmc-border); border-radius:var(--fmc-r-lg); overflow:hidden; cursor:pointer; transition:box-shadow .15s, border-color .15s; }
body .gallery-item:hover, body .gallery-item-v:hover{ border-color:var(--fmc-primary); box-shadow:var(--fmc-shadow-hover); }
body .gallery-item img, body .gallery-item-v img{ width:100%!important; aspect-ratio:1/1; height:auto!important; object-fit:cover; background:var(--fmc-primary-50); border-radius:0!important; }
body .name__doctor, body .card-title{ font-size:var(--fmc-fs-md)!important; font-weight:700!important; line-height:1.3; color:var(--fmc-text)!important; padding:0; margin:0 0 4px; }
body .gallery-item > .v1{ background:transparent!important; display:block; padding:var(--fmc-s4) var(--fmc-s4) 0; font-size:var(--fmc-fs-sm); font-weight:600; color:var(--fmc-primary-700); }
body .gallery-item > .v2{ display:flex; flex-direction:column; gap:2px; padding:4px var(--fmc-s4) var(--fmc-s4); }
body .gallery-item .v2 a{ text-decoration:none; }
body .gallery-item .v3{ display:flex; justify-content:space-between; gap:8px; font-size:var(--fmc-fs-sm); color:var(--fmc-text-3); border-top:1px solid var(--fmc-border); padding-top:6px; margin-top:6px; }
body .gallery-item .v4{ color:var(--fmc-text); font-weight:600; text-align:right; }

/* ---------- 13. Benefits / contacts cards ---------- */
body .benefits__item{ background:var(--fmc-surface); border:1px solid var(--fmc-border); border-radius:var(--fmc-r); box-shadow:none; }
body .benefits__item-title{ font-size:var(--fmc-fs-sm); font-weight:600; color:var(--fmc-text); }
.fmc-contact-grid{ display:grid; grid-template-columns:1fr; gap:var(--fmc-s3); margin-bottom:var(--fmc-s5); }
@media (min-width:600px){ .fmc-contact-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); } }
.fmc-contact-card, .fmc-contact-card > a{ display:flex; width:100%; min-width:0; margin:0; padding:0; text-decoration:none; }
.fmc-contact-card .benefits__item{ display:flex; align-items:center; gap:var(--fmc-s4); width:100%; height:100%; min-height:88px; margin:0; padding:var(--fmc-s4) var(--fmc-s5); }
.fmc-contact-card .benefits__item-image{ flex:0 0 32px; width:32px; height:32px; margin:0; }
.fmc-contact-card .benefits__item-title{ margin:0; font-size:var(--fmc-fs-md); line-height:1.35; overflow-wrap:anywhere; }
.fmc-contact-card .z0{ color:var(--fmc-text-3); font-weight:500; font-size:var(--fmc-fs-sm); }
body .nn1, body .benefits.nn2, body .benefits.nn2 > .container-fluid, body .benefits.nn2 .jjjj, body .benefits.nn2 .jjjjj{ background:transparent!important; padding-left:0; padding-right:0; box-shadow:none; }
body .benefits.nn2 iframe{ width:100%; min-height:320px; border:0; border-radius:var(--fmc-r-lg); }

/* ---------- 14. Home banners ---------- */
body .slider img, body .jjj img{ border-radius:var(--fmc-r-lg); }

/* ---------- 15. Footer ---------- */
body .app .footer, body .footer.footer--v6{ background:#0F1E1C; color:#C9D4D2; font-size:var(--fmc-fs-sm); line-height:1.6; }
body .footer a{ color:#E6EEEC; text-decoration:none; } body .footer a:hover{ color:#fff; text-decoration:underline; }
body .footer .footer__bottom, body .footer small{ color:#A3B3AF; }

/* ---------- 16. Chat widget ---------- */
body .chat__toggle{ width:56px; height:56px; border-radius:50%; background:var(--fmc-primary); color:var(--fmc-on-primary); box-shadow:var(--fmc-shadow-hover); }
body .chat__link{ min-height:var(--fmc-tap); display:flex; align-items:center; gap:10px; }
.fmc-chat-max .chat__link-icon{ display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:50%; background:var(--fmc-max); color:var(--fmc-primary-900); }
.fmc-chat-max .chat__link-icon svg{ width:18px; height:18px; fill:currentColor; }
.fmc-social-max svg{ width:24px; height:24px; fill:var(--fmc-max); }

/* ---------- 17. Hide shop leftovers (fmc-booking.css) ---------- */
#cart, .header__nav-cart:not(.f12), .js-cart-trigger, .ui-add-to-cart .ui-number,
a[href*="checkout/cart"], a[href*="checkout/checkout"], a[href="/cart"], a[href$="fmcdoconline.com/cart"],
a[href*="wa.me" i], a[href*="whatsapp.com" i], a[href^="whatsapp:" i]{ display:none!important; }

/* CTA-карточка, закрывающая неполный последний ряд сетки врачей */
.fmc-fill-card{ display:flex; flex-direction:column; justify-content:center; gap:var(--fmc-s3); padding:var(--fmc-s5);
  background:var(--fmc-primary-50); border:1px dashed #8FE3D6; border-radius:var(--fmc-r-lg); }
.fmc-fill-card p{ margin:0; font-weight:600; font-size:var(--fmc-fs-lg); color:var(--fmc-text); }
.fmc-fill-card .fmc-booking-actions{ max-width:560px; }

/* ---------- 18. Вложенные контейнеры из CMS-контента (страница внутри страницы) ---------- */
body .ui-wysiwyg .page, body .ui-wysiwyg .page > .container-fluid, body .ui-wysiwyg .container-fluid{ padding-left:0!important; padding-right:0!important; max-width:none; }
body .ui-wysiwyg .ui-wysiwyg{ padding:0; border:0; background:transparent; }
body .ui-wysiwyg .row{ margin-left:0; margin-right:0; }
body .ui-wysiwyg .row > [class*="col-"]{ padding-left:0; padding-right:0; }
body .benefits.nn2 > .row{ margin-top:0!important; }
body .benefits.nn2 h2, body .benefits.nn2 .h2{ margin-top:0; }

/* ---------- 19. Breadcrumbs: перенос вместо обрезки на мобильных ---------- */
body .breadcrumbs__menu{ overflow:visible!important; white-space:normal!important; flex-wrap:wrap!important; mask-image:none!important; -webkit-mask-image:none!important; }
body .breadcrumbs__menu > li{ flex:0 1 auto; white-space:normal; }

/* ---------- 20. Чат-виджет не перекрывает контент на десктопе ---------- */
@media (min-width:1200px){ body .chat{ right:16px!important; bottom:24px!important; } }

/* ---------- 21. Фотогалереи (интерьер, экстерьер, лицензия, фото кабинета) ---------- */
body .gallery-container:not(:has(.v2)){ grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--fmc-s2); }
@media (min-width:768px){ body .gallery-container:not(:has(.v2)){ grid-template-columns:repeat(4,minmax(0,1fr)); gap:var(--fmc-s3); } }
body .gallery-container:not(:has(.v2)) img{ width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:var(--fmc-r); }
body .gallery-container:not(:has(.v2)) > *{ border:0; background:transparent; }

/* ---------- 22. Отрывок описания в карточке услуги ---------- */
/* Сейчас шаблон режет описание по символам («…откололс»). До правки шаблона (вывод meta_description) — скрываем. */
body .products__item .z3{ display:none; }
body .products__item .z3.fmc-excerpt{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin:0; font-size:var(--fmc-fs-sm); color:var(--fmc-text-2); }

/* ---------- 23. QA-фиксы ---------- */
body .sku, body .details, body .details__wrapper, body .details__tabs, body .details__tabs-content{ box-sizing:border-box; max-width:100%; margin-left:0; margin-right:0; }
body .breadcrumbs__link{ display:inline-flex; align-items:center; min-height:24px; padding:2px 0; }
body .footer a{ display:inline-flex; align-items:center; min-height:28px; padding:2px 0; }

body .app .products__item-title{ min-height:24px; }
body .editor a[href^="tel:"]{ display:inline-block; padding:2px 0; }
body .products-categories{ margin-left:0!important; margin-right:0!important; width:auto!important; overflow:visible; }
body .products-categories__grid{ padding:0!important; }

/* ---------- 24. Мобильные слои: sticky-запись, чат, cookie-плашка не перекрывают друг друга и текст ---------- */
@media (max-width:767.98px){
  body.fmc-has-sticky #xuiFluxPod{ bottom:calc(var(--fmc-tabbar,56px) + 72px + env(safe-area-inset-bottom))!important; }
  body.fmc-has-sticky .footer{ padding-bottom:calc(var(--fmc-tabbar,56px) + 96px); }
  body .footer{ padding-bottom:calc(var(--fmc-tabbar,56px) + 24px); }
}
body .app .footer, body .footer.footer--v6{ border-top:0; box-shadow:none; }
body .breadcrumbs__menu{ margin-left:0!important; margin-right:0!important; padding-left:0; }
body .breadcrumbs__menu{ width:auto!important; max-width:100%!important; box-sizing:border-box; }
body .breadcrumbs__menu{ min-width:0!important; }
body .breadcrumbs__menu > li:first-child{ padding-left:0!important; margin-left:0!important; }
body .details__control-menu > li{ margin:0!important; padding:0!important; }

/* ---------- v2 (2026-11-13): единая система — 1 радиус, шаг 4/8, тач-цели ≥44px ---------- */
/* Кнопки: одна высота, один радиус, одно начертание */
body .ui-btn, body .fmc-booking-actions .ui-btn, body .fmc-book-btn{ min-height:44px; border-radius:var(--fmc-r); font-weight:600; font-size:var(--fmc-fs-md); line-height:1.25; }
body .fmc-booking-actions .ui-btn svg, body .fmc-book-btn svg{ width:18px; height:18px; flex:0 0 18px; fill:currentColor; }
body .ui-btn:focus-visible, body .fmc-book-btn:focus-visible, body .details__control-btn:focus-visible, body summary:focus-visible{ outline:none; box-shadow:var(--fmc-focus); }
/* Формы */
body .ui-input, body .ui-textarea, body .ui-select, body .form-control{ min-height:44px; border-radius:var(--fmc-r); border:1px solid var(--fmc-border); background:var(--fmc-surface); font-size:var(--fmc-fs-md); padding:10px 12px; color:var(--fmc-text); }
body .ui-input:focus, body .ui-textarea:focus, body .form-control:focus{ border-color:var(--fmc-primary); box-shadow:var(--fmc-focus); outline:none; }
body .ui-label{ font-size:var(--fmc-fs-sm); font-weight:600; color:var(--fmc-text-2); margin-bottom:4px; }
/* Таблицы в текстах */
body .editor table{ width:100%; border-collapse:collapse; font-size:var(--fmc-fs-sm); margin:0 0 var(--fmc-s4); display:block; overflow-x:auto; }
body .editor th, body .editor td{ border-bottom:1px solid var(--fmc-border); padding:8px 12px; text-align:left; vertical-align:top; }
body .editor th{ font-weight:600; color:var(--fmc-text-2); background:var(--fmc-bg); }
/* Вкладки: высота 44, один радиус */
body .details__control-btn.is-active, body .details__control-btn.active{ background:var(--fmc-primary); border-color:var(--fmc-primary); color:var(--fmc-on-primary); }
/* Карта: фасад вместо тяжёлого iframe */
body .fmc-map{ position:relative; display:flex; align-items:center; justify-content:center; width:100%; height:100%; min-height:240px; border-radius:var(--fmc-r);
  background:var(--fmc-primary-50) linear-gradient(135deg,rgba(0,191,165,.10) 25%,transparent 25%,transparent 50%,rgba(0,191,165,.10) 50%,rgba(0,191,165,.10) 75%,transparent 75%) 0 0/24px 24px; cursor:pointer; overflow:hidden; }
body .fmc-map__btn{ display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 20px; border:0; border-radius:var(--fmc-r); background:var(--fmc-surface); color:var(--fmc-primary-700); font:600 var(--fmc-fs-md)/1 var(--fmc-font); box-shadow:var(--fmc-shadow-hover); cursor:pointer; }
body .fmc-map__btn svg{ width:20px; height:20px; fill:currentColor; }
body .fmc-map:hover .fmc-map__btn{ background:var(--fmc-primary); color:var(--fmc-on-primary); }
body .fmc-map iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
/* Контакты: одна сетка карточек (телефон · Telegram · MAX) */
body .fmc-contact-grid{ display:grid; grid-template-columns:1fr; gap:var(--fmc-s3); margin:0 0 var(--fmc-s4); }
@media (min-width:600px){ body .fmc-contact-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); } }
body .fmc-contact-card > a{ display:block; height:100%; text-decoration:none; }
body .fmc-contact-card .benefits__item{ height:100%; min-height:72px; border-radius:var(--fmc-r); }
/* Изображения в контенте */
body .editor img{ max-width:100%; height:auto; border-radius:var(--fmc-r); }
/* Иконки: единая толщина/размер */
body .benefits__item-image svg{ width:24px; height:24px; }
/* ---------- v3 (13.11.2026): корень, шапка без «прыжков», единые кнопки ---------- */
/* 1) Корневой размер: тема ставила 9px на мобильных и 0,68vw (≈8,2–10px) на 1200–1470px — всё выглядело «отдалённым». Фикс: 10px везде (1.6rem = 16px). */
html, :root{ font-size:10px!important; }
html body{ font-size:16px; }
@media (min-width:1200px){ html body{ font-size:17px; } }
/* 2) Шапка: одна высота при любом скролле */
@media (min-width:1200px){
  html body .app > header.header{ position:sticky!important; top:0; z-index:1000; }
  html.is-header-fixed body .header-fixed, html body .header-fixed{ position:relative!important; top:auto!important; left:auto!important; right:auto!important;
    height:auto!important; max-width:none!important; margin:0!important; background:transparent!important; color:inherit!important;
    transition:none!important; transform:none!important; animation:none!important; box-shadow:none!important; }
  html.is-header-fixed body .header-fixed .header__logo{ margin:0 2rem 0 0; flex:0 0 auto; }
  html body .header__logo img{ height:44px!important; width:auto!important; }
}
html body .header, html body .header *{ transition-property:color, background-color, border-color, box-shadow, opacity!important; }
/* sticky работает только без overflow:hidden у предка — clip не создаёт контейнер прокрутки */
html body .app{ overflow-x:clip!important; overflow-y:visible!important; }
/* мобильная шапка: фиксированная панель и место под неё — одной высоты (без перекрытия и сдвигов) */
@media (max-width:1199.98px){
  html body .header__mobile{ height:64px!important; min-height:64px!important; padding-top:0!important; padding-bottom:0!important; display:flex; align-items:center; }
  html body .app > header.header{ height:64px!important; min-height:64px!important; }
  html body .header__mobile .header__logo img{ height:36px!important; width:auto!important; }
}

/* ---------- v3 компоненты: одна кнопка на весь сайт (Material 3 логика: filled / tonal / outlined) ---------- */
html body .fmc-booking-actions > a.ui-btn, html body a.fmc-book-btn, html body a.fmc-header-telegram, html body a.fmc-header-max, html body .fmc-map__btn{
  display:inline-flex!important; flex-direction:row!important; align-items:center!important; justify-content:center!important; gap:8px!important;
  box-sizing:border-box; min-height:48px!important; height:auto!important; padding:0 16px!important; margin:0!important;
  font-family:var(--fmc-font)!important; font-size:16px!important; font-weight:600!important; line-height:1.25!important; letter-spacing:0!important;
  text-align:center; text-decoration:none!important; text-transform:none!important; white-space:nowrap; vertical-align:middle;
  border:1px solid transparent!important; border-radius:var(--fmc-r)!important; box-shadow:none!important; float:none!important;
  transition:background-color .15s, border-color .15s, color .15s!important; }
html body .fmc-booking-actions > a.ui-btn > span, html body a.fmc-book-btn > span{ display:inline!important; padding:0!important; margin:0!important; line-height:inherit!important; color:inherit!important; font:inherit!important; position:static!important; }
html body .fmc-booking-actions > a.ui-btn > svg, html body a.fmc-book-btn > svg, html body .fmc-map__btn > svg, html body a.fmc-header-telegram > svg, html body a.fmc-header-max > svg{
  display:block!important; width:20px!important; height:20px!important; flex:0 0 20px!important; margin:0!important; fill:currentColor!important; position:static!important; }
html body .fmc-booking-actions > a.ui-btn::before, html body .fmc-booking-actions > a.ui-btn::after{ content:none!important; display:none!important; }
/* filled — Telegram */
html body .fmc-booking-actions > a.fmc-booking-button, html body a.fmc-book-btn--tg, html body a.fmc-header-telegram{ background:var(--fmc-primary)!important; color:var(--fmc-on-primary)!important; }
html body .fmc-booking-actions > a.fmc-booking-button:hover, html body a.fmc-book-btn--tg:hover, html body a.fmc-header-telegram:hover{ background:var(--fmc-primary-600)!important; color:var(--fmc-on-primary)!important; }
/* tonal — MAX */
html body .fmc-booking-actions > a.fmc-max-booking, html body a.fmc-book-btn--max, html body a.fmc-header-max{ background:var(--fmc-primary-100)!important; color:var(--fmc-primary-900)!important; }
html body .fmc-booking-actions > a.fmc-max-booking:hover, html body a.fmc-book-btn--max:hover, html body a.fmc-header-max:hover{ background:#A9E8DE!important; color:var(--fmc-primary-900)!important; }
/* outlined — телефон */
html body .fmc-booking-actions > a.fmc-phone-booking, html body a.fmc-book-btn--tel{ background:var(--fmc-surface)!important; color:var(--fmc-primary-900)!important; border-color:var(--fmc-border-strong)!important; }
html body .fmc-booking-actions > a.fmc-phone-booking:hover, html body a.fmc-book-btn--tel:hover{ background:var(--fmc-primary-50)!important; border-color:var(--fmc-primary-700)!important; }
html body .fmc-booking-actions > a.ui-btn:active, html body a.fmc-book-btn:active{ transform:translateY(1px); }
html body .fmc-booking-actions > a.ui-btn:focus-visible, html body a.fmc-book-btn:focus-visible, html body a.fmc-header-telegram:focus-visible, html body a.fmc-header-max:focus-visible{ outline:none!important; box-shadow:var(--fmc-focus)!important; }
/* шапка: компактный вариант той же кнопки (44px) */
html body a.fmc-header-telegram, html body a.fmc-header-max{ min-height:44px!important; padding:0 14px!important; font-size:15px!important; }
html body .fmc-header-phone{ color:var(--fmc-text)!important; font-size:17px; font-weight:700; text-decoration:none; }
/* закреплённая панель: 3 равные кнопки */
@media (max-width:767.98px){ html body .fmc-sticky-book a.fmc-book-btn{ min-height:48px!important; padding:0 8px!important; font-size:14px!important; gap:6px!important; } }
/* сетка блока записи */
html body .fmc-booking-actions{ display:grid!important; grid-template-columns:1fr; gap:8px!important; width:100%; }
@media (min-width:576px){ html body .fmc-booking-actions{ grid-template-columns:repeat(3,minmax(0,1fr)); } }
html body .products__item .fmc-booking-actions, html body .fmc-fill-card .fmc-booking-actions{ grid-template-columns:1fr; }
@media (min-width:576px){ html body .fmc-fill-card .fmc-booking-actions{ grid-template-columns:repeat(3,minmax(0,1fr)); } }
/* ссылки */
html body .app a:not([class]), html body .editor a{ color:var(--fmc-primary-700); text-underline-offset:2px; }
html body .app a:not([class]):hover, html body .editor a:hover{ color:var(--fmc-primary-900); }
/* иконки темы (спрайт → Material Symbols Filled) */
html body svg[class^="icon-"]{ fill:currentColor; }
/* SEO-текст категории под списком услуг */
html body .catalog .seo.ko1301{ margin-top:var(--fmc-s6); }

/* ---------- v3.1 (18.11.2026) ---------- */
/* Шапка sticky: теме больше не нужен отступ под fixed-шапку — убираем «пустую полосу» и прыжок */
@media (min-width:1200px){ html body .app > main.main, html body .app > .main{ margin-top:0!important; padding-top:0!important; } }
/* SEO-текст категории (ko1301) — после списка услуг */
html body .catalog .col-xl-9{ display:flex; flex-direction:column; }
html body .catalog .col-xl-9 > *{ min-width:0; }
html body .catalog .col-xl-9 > .catalog__content{ order:1; }
html body .catalog .col-xl-9 > .seo.ko1301{ order:2; margin-top:var(--fmc-s6); padding:var(--fmc-s5); background:var(--fmc-surface); border:1px solid var(--fmc-border); border-radius:var(--fmc-r); }
/* Иконки темы → Material Symbols Filled (спрайт, квадратные 24/20px, без обводки) */
html body svg[class^="icon-"]{ fill:currentColor; stroke:none; }
html body svg.icon-toggle, html body svg.icon-call, html body svg.icon-acc, html body svg.icon-search, html body svg.icon-close,
html body svg.icon-nav-catalog, html body svg.icon-catalog-home, html body svg.icon-chat, html body svg.icon-chat-close{ width:24px!important; height:24px!important; }
html body svg.icon-arrow-down, html body svg.icon-arrow-toggle, html body svg.icon-arrow-categories, html body svg.icon-arrow-back,
html body svg.icon-arrow-left, html body svg.icon-arrow-right, html body svg.icon-next, html body svg.icon-prev, html body svg.icon-close-alerts{ width:20px!important; height:20px!important; }
html body svg.icon-chat-telegram{ width:24px!important; height:24px!important; color:var(--fmc-primary-700); }
/* Шапка: иконки в кнопках Telegram/MAX и единый ритм */
html body .fmc-header-actions, html body .header__contacts{ gap:8px; }
/* Карточки направлений: читаемый размер */
html body .app .products-categories__item-title{ font-size:15px!important; line-height:1.3!important; }
@media (min-width:414px){ html body .app .products-categories__item-title{ font-size:16px!important; } }
/* Подписи в карточке услуги ≥14px */
html body .sku__price-label, html body .products__item-price-label{ font-size:14px!important; }
html body .sku p.zc{ font-size:15px!important; color:var(--fmc-text-2)!important; } html body .sku p.zc1{ font-size:20px!important; }
html body .catalog .seo.ko1301 .seo__wrapper, html body .catalog .seo.ko1301 .seo__desc, html body .catalog .seo.ko1301 .editor{ max-width:none!important; width:auto!important; padding:0!important; margin:0!important; border:0!important; background:none!important; box-shadow:none!important; max-height:none!important; overflow:visible!important; }
html body .catalog .seo.ko1301 .editor, html body .catalog .seo.ko1301 .editor p, html body .catalog .seo.ko1301 .editor li{ font-size:16px!important; font-weight:400!important; line-height:1.55!important; color:var(--fmc-text)!important; }
html body .catalog .seo.ko1301 .editor h2, html body .catalog .seo.ko1301 .editor h3{ font-weight:600!important; }
html body .catalog .seo.ko1301 .seo__desc::after, html body .catalog .seo.ko1301 .seo__wrapper::after{ display:none!important; }
/* списки в контенте: один маркер (у темы был второй ::after и отступ 40px); только ul без класса */
html body .editor ul:not([class]) > li, html body .ui-wysiwyg ul:not([class]) > li{ position:relative; padding-left:22px!important; margin:0 0 8px!important; list-style:none; }
html body .editor ul:not([class]) > li::after, html body .ui-wysiwyg ul:not([class]) > li::after{ content:none!important; display:none!important; }
html body .editor ul:not([class]) > li::before, html body .ui-wysiwyg ul:not([class]) > li::before{ content:""!important; position:absolute!important; left:4px!important; top:.62em!important; width:7px!important; height:7px!important; border-radius:50%!important; background:var(--fmc-primary-700)!important; }
html body .editor ul:not([class]), html body .ui-wysiwyg ul:not([class]){ padding-left:0!important; margin:0 0 16px!important; list-style:none!important; }
/* «О клинике»/«О нас»: без карточки в карточке, обычный текст 16px */
html body .ui-wysiwyg .reviews__item{ border:1px solid var(--fmc-border)!important; border-radius:var(--fmc-r)!important; padding:var(--fmc-s5)!important; box-shadow:none!important; }
html body .ui-wysiwyg .reviews__item-body, html body .ui-wysiwyg .reviews__item-body p, html body .ui-wysiwyg .reviews__item-body li{ font-size:16px!important; line-height:1.55!important; color:var(--fmc-text)!important; }
html body .ui-wysiwyg .reviews__item-body .hio1{ font-size:22px!important; font-weight:700!important; margin:0 0 8px!important; }
html body .ui-wysiwyg .reviews__item-body .hio2{ font-size:16px!important; font-weight:400!important; line-height:1.55!important; margin:0 0 16px!important; }
/* ---------- v3.2 (18.11.2026, после живого QA) ---------- */
/* шапка ПК: фиксированная высота — исключает сдвиг контента при инициализации темы */
@media (min-width:1200px){ html body .app > header.header{ height:72px!important; min-height:72px!important; } html body .header-fixed, html.is-header-fixed body .header-fixed{ height:72px!important; min-height:72px!important; padding-top:0!important; padding-bottom:0!important; display:flex!important; align-items:center!important; } }
/* вкладки: 16px, 48px, одинаково на всех ширинах */
html body .details__control-btn{ min-height:48px!important; height:48px!important; padding:0 20px!important; font-size:16px!important; line-height:1!important; display:inline-flex!important; align-items:center!important; justify-content:center!important; }
html body .details__control-menu{ display:flex!important; flex-wrap:wrap!important; gap:8px!important; padding:0!important; margin:0 0 12px!important; }
/* контакты (модуль и страница): 1 колонка до 1024px, 3 — шире */
@media (max-width:1023.98px){ html body .fmc-contact-grid{ grid-template-columns:1fr!important; } }
/* преимущества «О нас»: 2 колонки до 1024px */
@media (max-width:1023.98px){ html body .row:has(> .col-sm-3 > .benefits__item), html body .benefits__list{ display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:8px!important; margin:0!important; } html body .row:has(> .col-sm-3 > .benefits__item) > [class*="col-"]{ max-width:none!important; width:auto!important; flex:none!important; padding:0!important; } }
/* страница врача: фото не больше 320px; на ≥768 — фото слева, карточка справа */
html body .unique-block{ max-width:320px; margin:0 auto var(--fmc-s4); border-radius:var(--fmc-r); overflow:hidden; }
html body .unique-block img{ display:block; width:100%; height:auto; aspect-ratio:1/1; object-fit:cover; }
@media (min-width:768px){
  html body div:has(> .unique-block):has(> .sku){ display:grid; grid-template-columns:280px minmax(0,1fr); gap:var(--fmc-s5); align-items:start; }
  html body div:has(> .unique-block):has(> .sku) > .unique-block{ margin:0; max-width:none; }
  html body div:has(> .unique-block):has(> .sku) > .sku{ margin:0!important; height:100%; }
  html body div:has(> .unique-block):has(> .sku) > :not(.unique-block):not(.sku){ grid-column:1 / -1; }
}
/* иконки карточек (Material Symbols Filled) — один цвет и размер */
html body .benefits__item-image{ color:var(--fmc-primary-700); }
html body .benefits__item-image svg{ width:28px!important; height:28px!important; fill:currentColor; }
html body .row:has(> .col-sm-3 > .benefits__item) .benefits__item{ margin:0!important; height:100%; }
/* «О нас» на главной: подзаголовок-абзац обычным шрифтом */
html body .reviews__item-body .hio2{ font-size:16px!important; font-weight:400!important; line-height:1.55!important; margin:0 0 8px!important; }
html body .reviews__item-body .hio1{ margin-bottom:8px!important; }
