/* ВетМедЦентр — тема в цветах логотипа */
:root {
  --brand: #2bb3b6;
  --brand-dark: #1e696f;
  --brand-deep: #154c51;
  --brand-light: #e8f6f6;
  --brand-soft: #f4fafa;
  --accent: #e4473b;
  --accent-dark: #c4352a;
  --green: #02833e;
  --text: #22302f;
  --muted: #5d6f6e;
  --line: #d6e7e7;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(21, 76, 81, .08);
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.6 var(--font);
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand-dark); }
a:hover { color: var(--brand); }
.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); overflow: hidden; height: 1px; width: 1px; word-wrap: normal; }
.skip-link.focusable:focus { position: fixed !important; top: 8px; left: 8px; z-index: 1000; clip: auto; width: auto; height: auto; background: #fff; padding: 8px 12px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 2px solid transparent;
  font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); color: #fff; }
.btn--primary { background: var(--brand-dark); color: #fff; }
.btn--primary:hover { background: var(--brand-deep); color: #fff; }
.btn--ghost { border-color: var(--brand); color: var(--brand-dark); background: #fff; }
.btn--ghost:hover { background: var(--brand-light); color: var(--brand-deep); }
.btn--lg { padding: 14px 26px; font-size: 16px; }

/* Шапка */
.topbar { background: var(--brand-dark); color: #d9f0f0; font-size: 14px; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; margin-right: 16px; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar__city { opacity: .75; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5fe3a1; margin-right: 8px; box-shadow: 0 0 0 3px rgba(95, 227, 161, .25); }

.header { display: flex; align-items: center; gap: 28px; padding-top: 16px; padding-bottom: 16px; }
.header__logo img { display: block; width: 250px; }
.header__phones { display: flex; flex-direction: column; margin-left: auto; text-align: right; }
.phone-link { font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; line-height: 1.45; }
.phone-link:hover { color: var(--brand-dark); }
.header__actions { display: flex; flex-direction: column; gap: 8px; }
.header__mobile { display: none; margin-left: auto; gap: 8px; align-items: center; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: var(--brand-light); color: var(--brand-dark); cursor: pointer;
}
.icon-btn--accent { background: var(--accent); color: #fff; }
.burger { flex-direction: column; gap: 5px; }
.burger span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Главное меню */
.mainnav { background: var(--brand); }
.mainnav ul.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.mainnav ul.menu a {
  display: block; padding: 14px 22px; color: #fff; text-decoration: none;
  font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 15px;
}
.mainnav ul.menu a:hover, .mainnav ul.menu a.is-active { background: var(--brand-dark); color: #fff; }
.mainnav__mobile-extra { display: none; }
.mainnav nav h2 { position: absolute; clip: rect(1px, 1px, 1px, 1px); }

/* Раскладка */
.messages-wrap { padding-top: 16px; }
.layout { display: block; padding-top: 28px; padding-bottom: 28px; }
.layout--with-sidebar { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
.layout__main { min-width: 0; }
.layout__main:focus { outline: none; }

/* Боковое меню направлений */
.layout__sidebar { position: sticky; top: 16px; }
.sidebar-toggle { display: none; }
.layout__sidebar h2 { position: absolute; clip: rect(1px, 1px, 1px, 1px); }
.layout__sidebar ul.menu { list-style: none; margin: 0; padding: 8px; background: var(--brand-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.layout__sidebar ul.menu a {
  display: flex; align-items: center; padding: 9px 14px; border-radius: 10px;
  color: var(--brand-deep); text-decoration: none; font-weight: 500;
}
.layout__sidebar ul.menu a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-right: 10px; flex: none; }
.layout__sidebar ul.menu a:hover, .layout__sidebar ul.menu a.is-active { background: var(--brand-dark); color: #fff; }
.layout__sidebar ul.menu a:hover::before, .layout__sidebar ul.menu a.is-active::before { background: #fff; }
.layout__sidebar ul.menu li:first-child a { background: var(--green); color: #fff; margin-bottom: 6px; font-weight: 600; }
.layout__sidebar ul.menu li:first-child a::before { background: #b8f5d2; }
.layout__sidebar ul.menu li:first-child a:hover { background: #016a32; }

/* Типографика содержимого */
h1, .page-title { font-size: 32px; line-height: 1.25; color: var(--brand-deep); margin: 0 0 20px; font-weight: 700; }
.layout__main h2 { font-size: 24px; color: var(--brand-dark); margin: 32px 0 12px; line-height: 1.3; }
.layout__main h3 { font-size: 19px; color: var(--brand-dark); margin: 24px 0 10px; }
.layout__main p { margin: 0 0 14px; }
.layout__main ul, .layout__main ol { padding-left: 22px; }
.layout__main table { border-collapse: collapse; width: 100%; margin: 16px 0; display: block; overflow-x: auto; }
.layout__main td, .layout__main th { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.layout__main th { background: var(--brand-soft); }
.layout__main img { border-radius: 10px; }
.layout__main .rtecenter { text-align: center; }
.layout__main .rteright { text-align: right; }
.layout__main iframe { max-width: 100%; }
.node__content::after { content: ""; display: table; clear: both; }
[style*="float: left"], [style*="float:left"] { margin-right: 16px; }
[style*="float: right"], [style*="float:right"] { margin-left: 16px; }

/* Вкладки администратора */
.tabs, ul.tabs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 16px; }
.tabs a { display: block; padding: 6px 14px; border-radius: 999px; background: var(--brand-light); text-decoration: none; font-size: 14px; }
.tabs a.is-active { background: var(--brand-dark); color: #fff; }

/* Сообщения */
.messages { padding: 14px 18px; border-radius: 10px; margin-bottom: 14px; background: #eef9f1; border-left: 4px solid var(--green); }
.messages--error { background: #fdeeee; border-color: var(--accent); }
.messages--warning { background: #fff7e6; border-color: #e5a400; }

/* Призыв записаться */
.cta {
  margin-top: 36px; padding: 24px 28px; border-radius: var(--radius);
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cta p { margin: 0; }
.cta a { color: #fff; font-weight: 600; white-space: nowrap; }
.cta__title { font-size: 20px; font-weight: 700; margin-bottom: 4px !important; }
.cta .btn--accent { box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }

/* Баннеры */
.banners { display: grid; gap: 12px; padding-bottom: 28px; justify-items: center; }
.banners img { display: block; border-radius: 10px; }

/* Заметки ветеринара */
.notes { background: var(--brand-soft); border-top: 1px solid var(--line); padding: 40px 0; }
.notes__title { margin: 0 0 20px; font-size: 26px; }
.notes__title a { color: var(--brand-deep); text-decoration: none; }
.notes__all { text-align: center; margin: 24px 0 0; }

/* Карточки статей */
.articles { display: grid; gap: 22px; }
.articles--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.article-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.articles--compact .article-card { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
.article-card__img { display: block; background: var(--brand-light); }
.article-card__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; display: block; aspect-ratio: 4 / 3; }
.article-card__placeholder { display: block; width: 100%; height: 100%; min-height: 90px; background: linear-gradient(135deg, var(--brand-light), #fff); }
.article-card__body { padding: 16px 18px 16px 0; }
.article-card__title { margin: 0 0 8px !important; font-size: 19px !important; line-height: 1.35; }
.articles--compact .article-card__title { font-size: 15px !important; font-weight: 600; margin: 0 !important; }
.article-card__title a { text-decoration: none; color: var(--brand-deep); }
.article-card__title a:hover { color: var(--brand); }
.article-card__text { color: var(--muted); margin: 0 0 10px !important; }
.article-card__more { font-weight: 600; text-decoration: none; }
.article-card__more::after { content: " →"; }

/* Пагинация */
.pager__items { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 28px 0 0; justify-content: center; }
.pager__item a { display: block; min-width: 40px; padding: 8px 12px; text-align: center; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; }
.pager__item.is-active a, .pager__item a:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

/* Прайс */
.price { margin-top: 8px; }
.price__search { position: sticky; top: 0; z-index: 5; background: #fff; padding: 10px 0 14px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.price__input {
  flex: 1 1 320px; padding: 13px 16px 13px 44px; border-radius: 12px; border: 2px solid var(--line); font: 16px var(--font);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='%231e696f' d='M10 2a8 8 0 0 1 6.3 12.9l5.4 5.4-1.4 1.4-5.4-5.4A8 8 0 1 1 10 2zm0 2a6 6 0 1 0 0 12 6 6 0 0 0 0-12z'/%3E%3C/svg%3E") no-repeat 14px center;
}
.price__input:focus { outline: none; border-color: var(--brand); }
.price__controls { display: flex; gap: 8px; }
.price__toggle { border: 0; background: none; color: var(--brand-dark); font: 600 14px var(--font); cursor: pointer; padding: 6px 4px; text-decoration: underline dotted; }
.price__empty { padding: 16px; background: var(--brand-soft); border-radius: 10px; }
.price-section { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; background: #fff; overflow: hidden; }
.price-section[open] { box-shadow: var(--shadow); }
.price-section > summary, .price-sub > summary { list-style: none; cursor: pointer; }
.price-section > summary::-webkit-details-marker, .price-sub > summary::-webkit-details-marker { display: none; }
.price-section__title {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px; font-weight: 700; font-size: 18px; color: var(--brand-deep);
}
.price-section__title::before, .price-sub__title::before {
  content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg); transition: transform .2s; margin-right: 4px;
}
details[open] > .price-section__title::before, details[open] > .price-sub__title::before { transform: rotate(45deg); }
.price-section__title:hover { background: var(--brand-soft); }
.price-section__count { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--brand-dark); background: var(--brand-light); border-radius: 999px; padding: 2px 10px; }
.price-section__body { padding: 0 20px 14px; }
.price-sub { border-top: 1px dashed var(--line); }
.price-sub__title { display: flex; align-items: center; gap: 10px; padding: 12px 0; font-weight: 600; color: var(--brand-dark); }
.price-sub .price-list { list-style: none; margin: 0 0 8px; padding: 0 0 0 22px; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px dashed var(--line); }
.price-row__name small { display: block; color: var(--muted); }
.price-row__value { font-weight: 700; color: var(--brand-deep); white-space: nowrap; }
.price-row__value abbr { text-decoration: none; font-weight: 500; color: var(--muted); }
.price-row.is-match .price-row__name { background: #fff6c8; border-radius: 4px; }
.price__note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* Отзывы */
.guestbook__form-wrap { margin-bottom: 20px; }
.guestbook__form-wrap > summary { list-style: none; display: inline-flex; }
.guestbook__form-wrap > summary::-webkit-details-marker { display: none; }
.guestbook__form { margin-top: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--brand-soft); max-width: 640px; }
.guestbook__total { color: var(--muted); }
.review { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; background: #fff; }
.review__head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.review__name { font-weight: 700; color: var(--brand-deep); }
.review__date { color: var(--muted); font-size: 14px; }
.review__answer { margin-top: 12px; padding: 12px 16px; background: var(--brand-light); border-radius: 10px; border-left: 4px solid var(--brand); }
.review__answer-label { display: block; font-weight: 700; font-size: 14px; color: var(--brand-dark); margin-bottom: 4px; }

/* Формы */
.form-item { margin-bottom: 14px; }
.form-item label { display: block; font-weight: 600; margin-bottom: 4px; }
.form-item input[type=text], .form-item input[type=tel], .form-item input[type=email], .form-item input[type=password], .form-item textarea, .form-item select {
  width: 100%; padding: 11px 14px; border: 2px solid var(--line); border-radius: 10px; font: 16px var(--font); background: #fff;
}
.form-item input:focus, .form-item textarea:focus { outline: none; border-color: var(--brand); }
.form-type-checkbox label { display: inline; font-weight: 400; }
.description { font-size: 14px; color: var(--muted); }
.form-submit, input[type=submit] { background: var(--brand-dark); color: #fff; border: 0; border-radius: 999px; padding: 12px 24px; font: 600 15px var(--font); cursor: pointer; }
.form-submit:hover { background: var(--brand-deep); }

/* Подвал */
.site-footer { background: var(--brand-deep); color: #cfe5e5; font-size: 15px; }
.footer { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr 1.6fr; gap: 32px; padding-top: 40px; padding-bottom: 28px; }
.footer a { color: #fff; text-decoration: none; display: block; line-height: 1.9; }
.footer a:hover { color: #9ee6e7; }
.footer small { opacity: .7; }
.footer__head { font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; margin: 0 0 10px; }
.footer__brand img { background: #fff; border-radius: 12px; padding: 8px; width: 150px; }
.footer__social { display: flex; gap: 8px; margin-top: 14px; }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; line-height: 1; }
.footer__social a:hover { background: var(--brand); color: #fff; }
.footer__legal p { margin: 0 0 14px; font-size: 13px; line-height: 1.5; }
.pay { display: flex; flex-wrap: wrap; gap: 6px; }
.pay img { height: 26px; width: auto; background: #fff; border-radius: 4px; padding: 2px 4px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 14px; padding-bottom: 18px; font-size: 13px; opacity: .8; }

/* Cookie */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 900; max-width: 980px; margin: 0 auto;
  background: #fff; border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0, 0, 0, .2); padding: 18px 22px;
  display: flex; gap: 18px; align-items: center; font-size: 14px;
}
.cookie[hidden], .cookie-modal[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie__buttons { display: flex; gap: 8px; flex: none; }
.cookie-modal { position: fixed; inset: 0; z-index: 950; background: rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.cookie-modal__box { background: #fff; border-radius: var(--radius); padding: 24px; max-width: 560px; max-height: 90vh; overflow: auto; }
.cookie-modal__box h3 { margin-top: 0; color: var(--brand-deep); }
.cookie-opt { display: flex; gap: 8px; font-weight: 600; margin-top: 10px; }
.cookie-desc { font-size: 13px; color: var(--muted); margin: 4px 0 8px; }

/* Мобильное меню (выезжает слева), оформление как на старом сайте */
.mdrawer, .mdrawer-bkg { display: none; }
.mdrawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 1000;
  width: 80%; min-width: 240px; max-width: 420px;
  background: #eaeaea; overflow-y: auto; -webkit-overflow-scrolling: touch;
  transform: translateX(-100%); transition: transform .3s;
  font-family: "Noto Sans", Roboto, Ubuntu, Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.2;
}
.mdrawer.is-open { transform: translateX(0); box-shadow: 4px 0 20px rgba(0, 0, 0, .2); }
.mdrawer-bkg { position: fixed; inset: 0; z-index: 999; background: rgba(0, 0, 0, .45); }
.mdrawer-bkg:not([hidden]) { display: block; }
.mdrawer ul { list-style: none; margin: 0; padding: 0; }
.mdrawer li { margin: 10px 0; }
.mdrawer a { text-decoration: none; text-transform: uppercase; color: #33bcc6; }
.mdrawer__list { padding: 50px 20px 30px !important; }
.mdrawer__sub ul { margin: 0 0 0 25px !important; }
.mdrawer__contacts { padding: 0 20px 40px !important; color: #ccc; }
.mdrawer .mdrawer__addr { color: #666; }
.mdrawer__hours { color: #aaa; margin-bottom: 20px !important; }
.mdrawer .mdrawer__phone { color: #1e696f; }
.mdrawer__social { display: flex; gap: 16px; padding: 0 20px 40px; margin: 0; }
.mdrawer__social img { width: 32px; height: 32px; display: block; }
body.mdrawer-open { overflow: hidden; }

/* Планшет */
@media (max-width: 1100px) {
  .header__actions { display: none; }
  .footer { grid-template-columns: 1fr 1fr; }
}

/* Телефон */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .topbar { display: none; }
  .header { padding-top: 10px; padding-bottom: 10px; gap: 12px; }
  .header__logo img { width: 170px; }
  .header__phones { display: none; }
  .header__mobile { display: flex; }
  .site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
  .mainnav { display: none; }
  .mdrawer { display: block; }
  .layout { padding-top: 18px; }
  .layout--with-sidebar { display: flex; flex-direction: column; gap: 18px; align-items: stretch; }
  .layout__main { width: 100%; max-width: 100%; overflow-wrap: anywhere; }
  .layout__main * { max-width: 100%; }
  .layout__main img { margin-left: 0 !important; margin-right: 0 !important; }
  .layout__main table { width: 100% !important; }
  .layout__sidebar { position: static; width: 100%; }
  .sidebar-toggle {
    display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 12px 16px; border-radius: 12px;
    border: 1px solid var(--line); background: var(--brand-soft); font: 600 16px var(--font); color: var(--brand-deep); cursor: pointer;
  }
  .sidebar-toggle::after { content: "▾"; transition: transform .2s; }
  .sidebar-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
  .sidebar-body { display: none; margin-top: 8px; }
  .sidebar-body.is-open { display: block; }
  .sidebar-body ul.menu { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
  .sidebar-body ul.menu li:first-child { grid-column: 1 / -1; }
  h1, .page-title { font-size: 25px; }
  .layout__main h2 { font-size: 21px; }
  .layout__main [style*="float"] { float: none !important; display: block; margin: 0 auto 12px !important; }
  .layout__main img { height: auto !important; }
  .cta { padding: 20px; }
  .cta .btn { width: 100%; }
  .articles--compact { grid-template-columns: 1fr; }
  .article-card { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
  .article-card__body { padding: 12px 12px 12px 0; }
  .article-card__title { font-size: 16px !important; }
  .article-card__text { display: none; }
  .price-section__title { padding: 14px 14px; font-size: 16px; }
  .price-section__body { padding: 0 14px 10px; }
  .price-sub .price-list { padding-left: 8px; }
  .price-row { font-size: 15px; }
  .footer { grid-template-columns: 1fr; gap: 22px; }
  .cookie { flex-direction: column; align-items: stretch; }
  .cookie__buttons .btn { flex: 1; }
  .banners img { width: 100%; }
}

/* Врачи на страницах услуг */
.doctors-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.doctors-mini a { display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: var(--brand-soft); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.doctors-mini img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 0 !important; }
.doctors-mini span { padding: 10px 12px; font-size: 14px; color: var(--muted); }
.doctors-mini b { color: var(--brand-deep); font-size: 15px; }
.doctors-mini a:hover b { color: var(--brand); }
@media (max-width: 600px) { .doctors-mini { grid-template-columns: 1fr 1fr; } }

/* Наследие старых текстов: кнопка записи и таблицы-раскладки без рамок */
.layout__main .regme { float: right; margin: 0 0 12px 20px; }
.layout__main .regme a, .layout__main .regme2 a {
  display: inline-block; background: var(--accent); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none; box-shadow: 0 6px 18px rgba(228, 71, 59, .25);
}
.layout__main .regme a:hover { background: var(--accent-dark); color: #fff; }
.layout__main table[border="0"] td, .layout__main table[border="0"] th { border: 0; }
.page-front .layout__main table[border="0"] { display: block; width: 100% !important; overflow: visible; }
.page-front .layout__main table[border="0"] tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.page-front .layout__main table[border="0"] tr { display: contents; }
.page-front .layout__main table[border="0"] td {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px !important; background: var(--brand-soft);
  border: 1px solid var(--line) !important; border-radius: var(--radius); width: auto !important;
}
.page-front .layout__main table[border="0"] td:empty { display: none; }
.page-front .layout__main table[border="0"] td img { width: 72px !important; height: 72px !important; border-radius: 50%; padding: 0 !important; margin: 0 !important; flex: none; }
.page-front .layout__main table[border="0"] td a { font-weight: 600; text-decoration: none; color: var(--brand-deep); }
.page-front .layout__main table[border="0"] td:hover { border-color: var(--brand) !important; }
@media (max-width: 860px) {
  .layout__main .regme { float: none; margin: 0 0 14px; }
  .layout__main .regme a { display: block; text-align: center; }
}
@media (max-width: 480px) {
  .page-front .layout__main table[border="0"] tbody { gap: 8px; }
  .page-front .layout__main table[border="0"] td { flex-direction: column; text-align: center; gap: 6px; padding: 10px 6px !important; font-size: 14px; }
  .page-front .layout__main table[border="0"] td img { width: 56px !important; height: 56px !important; }
}
[data-price-row][hidden], [data-price-group][hidden], .price__empty[hidden] { display: none !important; }
.article-card__placeholder { background: var(--brand-light) url("../images/logo-f_.png") no-repeat center / 60% auto; opacity: .9; }

/* ===== Правки 25.11.2026 ===== */

/* Таблицы в текстах: без фиксированной высоты (иначе появлялась прокрутка). */
.layout__main table, .layout__main tr, .layout__main td { height: auto !important; }
.layout__main td[height], .layout__main table[height] { height: auto !important; }

/* Таблица из одной ячейки («Внимание!») превращается скриптом в заметку. */
.note { margin: 18px 0; padding: 14px 18px; border-left: 4px solid var(--accent); background: #fff5f3; border-radius: 10px; }
.note p { margin: 0 0 6px; }
.note p:last-child { margin-bottom: 0; }

/* Картинки в текстах */
.layout__main img.img-wide { display: block; width: 100% !important; height: auto !important; margin: 16px 0; }
.layout__main img.img-center { display: block; max-width: 520px; width: 100%; height: auto; margin: 16px auto; }

/* Картинка статьи слева, текст и цены обтекают справа. */
.node-type-article .layout__main article img[src*="/styles/node/"] { float: left; width: 220px; height: auto; margin: 4px 24px 12px 0; }

/* Онлайн-консультант: плитка животных */
.pet-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; max-width: 640px; margin: 18px 0 22px; clear: both; }
.pet-tiles img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); border-radius: 14px !important; background: #fff; }

/* Онлайн-консультант: темы консультаций раскрывающимся списком */
details.topics { border: 1px solid var(--line); border-radius: var(--radius); margin: 18px 0; background: #fff; overflow: hidden; }
details.topics > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 20px; font-weight: 700; font-size: 18px; color: var(--brand-deep); }
details.topics > summary::-webkit-details-marker { display: none; }
details.topics > summary::before { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); transition: transform .2s; flex: none; }
details.topics[open] > summary::before { transform: rotate(45deg); }
details.topics > summary:hover { background: var(--brand-soft); }
.topics__list { list-style: none; margin: 0; padding: 4px 20px 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
.topics__list li { padding: 8px 0; border-top: 1px dashed var(--line); }
.topics__list a { text-decoration: none; font-weight: 600; }
.topics__list a:hover { text-decoration: underline; }
.topics__list span { color: var(--text); }

/* Стерилизация: картинка и кнопки операций рядом */
.svc-split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: center; margin: 22px 0; clear: both; }
.svc-split img { width: 100%; height: auto !important; }
.svc-links { display: grid; gap: 10px; }
.svc-links a { display: block; padding: 14px 18px; border: 2px solid var(--brand); border-radius: 12px; color: var(--brand-deep); font-weight: 700; text-decoration: none; background: #fff; }
.svc-links a::after { content: " →"; color: var(--brand); }
.svc-links a:hover { background: var(--brand-light); color: var(--brand-deep); }

/* Врачи: карточки в одном стиле */
.doctors { display: grid; gap: 18px; margin-top: 12px; clear: both; }
.doctor-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; align-items: start; }
.doctor-card img { width: 220px !important; height: 270px !important; object-fit: cover; object-position: top; border-radius: 12px !important; margin: 0 !important; float: none !important; }
.doctor-card__role { margin: 0; color: var(--muted); font-size: 15px; }
.doctor-card__name { margin: 2px 0 10px; font-size: 21px; color: var(--brand-deep); }
.doctor-card__info { list-style: none; margin: 0 0 14px; padding: 0; }
.doctor-card__info li { padding: 5px 0; border-top: 1px dashed var(--line); }
.doctor-card__info b { color: var(--brand-dark); }
.btn-outline { display: inline-block; padding: 10px 18px; border-radius: 999px; background: var(--accent); color: #fff !important; font-weight: 700; text-decoration: none; }
.btn-outline:hover { background: var(--accent-dark); }

/* Адрес и телефоны: два филиала */
.branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 18px 0 26px; clear: both; }
.branch { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: #fff; }
.branch h3 { margin: 0 0 10px; color: var(--brand-deep); }
.branch p { margin: 0 0 8px; }
.branch__map { margin: 12px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.branch__map iframe { display: block; width: 100%; height: 300px; border: 0; }
.contact-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.contact-list li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--brand-soft); }
.contact-list img { width: 24px !important; height: 24px !important; border-radius: 0 !important; flex: none; }
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list small { margin-left: auto; color: var(--muted); }
.social-row { display: flex; gap: 12px; }
.social-row img { width: 44px !important; height: 44px !important; }
.doc-links { columns: 2; column-gap: 28px; padding-left: 18px; }

/* Отзывы: текст клиента на голубом, ответ клиники на белом */
.review { background: var(--brand-light); border-color: #c7e6e7; }
.review__answer { background: #fff; border-left-color: var(--brand); }

/* Шапка: преимущества между логотипом и телефонами */
.header__usp { list-style: none; margin: 0 0 0 12px; padding: 0; display: flex; gap: 22px; flex: 1; justify-content: center; }
.header__usp li { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.3; color: var(--muted); max-width: 220px; }
.header__usp svg { width: 40px; height: 40px; flex: none; padding: 9px; border-radius: 50%; background: var(--brand-light); color: var(--brand-dark); }
.header__usp b { display: block; color: var(--brand-deep); font-size: 15px; }
.header__usp + .header__phones { margin-left: 0; }

/* Подвал ниже: мельче шрифт, ссылки «Клиника» в два столбца */
.site-footer { font-size: 14px; }
.footer { grid-template-columns: .8fr 1.5fr 1fr 1.4fr; gap: 28px; padding-top: 28px; padding-bottom: 18px; }
.footer a { line-height: 1.7; }
.footer__col--links { columns: 2; column-gap: 24px; }
.footer__col--links .footer__head { column-span: all; }
.footer__col--links a { break-inside: avoid; }
.footer__brand img { width: 120px; }
.footer__legal p { font-size: 12.5px; }

@media (max-width: 1180px) {
  .header__usp { display: none; }
  .header__usp + .header__phones { margin-left: auto; }
}
@media (max-width: 1100px) {
  .footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .topics__list { grid-template-columns: 1fr; }
  .svc-split { grid-template-columns: 1fr; }
  .doctor-card { grid-template-columns: 1fr; }
  .doctor-card img { width: 100% !important; height: 320px !important; }
  .branches { grid-template-columns: 1fr; }
  .doc-links { columns: 1; }
  .node-type-article .layout__main article img[src*="/styles/node/"] { float: none; display: block; width: 100%; max-width: 360px; margin: 0 0 14px; }
  .footer__col--links { columns: 2; }
}
@media (max-width: 600px) {
  .footer { grid-template-columns: 1fr; gap: 18px; padding-top: 22px; }
  .pet-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .pet-tiles img { border-radius: 10px !important; }
  .footer a { line-height: 1.55; padding: 3px 0; }
  .footer__col--links, .footer__col--contacts { columns: 2; column-gap: 16px; }
  .footer__col--contacts .footer__head { column-span: all; }
  .footer__col--contacts a, .footer__col--contacts span { break-inside: avoid; display: block; }
  .footer__brand { display: flex; align-items: center; gap: 16px; }
  .footer__brand img { width: 96px; }
  .footer__social { margin-top: 0; }
}

/* Кнопки администратора на прайсе и отзывах (посетители не видят) */
.admin-bar { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 10px 14px; margin: 0 0 14px; border: 1px dashed var(--accent); border-radius: 10px; background: #fff8f6; font-size: 14px; }
.admin-bar a { font-weight: 700; color: var(--accent-dark); }
.admin-bar span { color: var(--muted); }
.review__admin { font-size: 13px; margin-left: auto; margin-right: 12px; }
.review__admin a { color: var(--accent-dark); }

/* 30.11.2026: блок цен не ужимается рядом с картинкой статьи */
.price--inline { clear: both; }

/* 30.11.2026: ссылка админу на правку режима работы */
.topbar__edit { margin-left: 8px; color: inherit; opacity: .75; font-size: .9em; text-decoration: underline; }
.mdrawer__deep { padding-left: 1em; }
.footer__counter { margin-top: 10px; }
.footer__counter img { display: block; }

/* 30.11.2026: отзывы о враче в карточке */
.review__doctor { font-size: 13px; color: var(--muted); margin-left: 8px; }
.doc-reviews { margin-top: 12px; }
.doc-reviews__btn { display: inline-block; cursor: pointer; list-style: none; padding: 8px 16px; border: 1px solid var(--brand); border-radius: 999px; color: var(--brand-deep); font-weight: 600; font-size: 14px; }
.doc-reviews__btn::-webkit-details-marker { display: none; }
.doc-reviews[open] .doc-reviews__btn { background: var(--brand-soft); }
.doc-reviews__list { margin-top: 12px; max-height: 420px; overflow-y: auto; display: grid; gap: 10px; padding-right: 4px; }
.doc-review { background: var(--brand-soft); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.doc-review__head { margin: 0 0 6px; }
.doc-review__head span { color: var(--muted); font-size: 13px; margin-left: 6px; }
.doc-review__answer { margin-top: 8px; padding: 8px 10px; background: #fff; border-radius: 8px; }

/* 01.12.2026: счётчик Метрики в самом низу, на телефоне скрыт */
.footer__bottom { display: flex; justify-content: flex-start; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__counter { margin: 0; }
@media (max-width: 860px) { .footer__counter { display: none; } }
