/* ДиаЛаб Плюс — фирменные цвета (брендбук):
   основной PANTONE 525 C #2F1946, логотип #645AA1, Cool Gray 11 #4D4D4D,
   доп.: 267 C #64219E, 7441 C #9561CC, 522 C #C1A5E5, 7443 C #DBC4E7 */
:root {
  --primary: #645AA1;        /* фиолетовый логотипа */
  --primary-dark: #2F1946;   /* PANTONE 525 C */
  --accent: #9561CC;         /* PANTONE 7441 C */
  --bg: #F6F4FA;             /* светлая лаванда */
  --text: #3a3742;
  --muted: #4D4D4D;          /* Cool Gray 11 C */
  --border: #DBC4E7;         /* PANTONE 7443 C */
  --radius-field: 8px;       /* закругление полей ввода (как на сайте) */
  --radius-area: 8px;        /* многострочные поля (textarea) */
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;  /* исключаем фантомную высоту от горизонтального переполнения */
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.25rem; margin-top: 2rem; }

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

/* Header */
.header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
/* Свёрнутая шапка при скролле: остаётся только строка меню + лупа */
.header.is-collapsed .header-inner { display: none; }
.nav-search {
  display: none; align-items: center; justify-content: center; margin-left: auto;
  width: 40px; height: 40px; border: 0; background: none; border-radius: 10px;
  color: var(--primary); cursor: pointer; flex-shrink: 0;
}
.nav-search:hover { background: var(--bg); }
.nav-search svg { width: 22px; height: 22px; }
.header.is-collapsed .nav-search { display: flex; }

/* Общее правило для всех выпадающих списков: не выше 80% экрана, со скроллом */
.dropdown > ul { max-height: 80vh; overflow-y: auto; }

/* ИИ-режим: блок чата под шапкой + минимальная шапка */
.ai-chat { display: none; width: 100%; }
.ai-chat #dialab-chat { height: 100%; }
.ai-mode-on .ai-chat { display: block; min-height: 60vh; }  /* точную высоту ставит JS (экран минус шапка) */
/* В шапке остаётся строка меню: слева телефон/корзина/вход, справа переключатель */
.ai-mode-on .header-inner { display: none; }
.ai-mode-on .nav-burger,
.ai-mode-on .nav-links,
.ai-mode-on .nav .nav-search { display: none !important; }  /* лупа скрыта в ИИ-режиме всегда */
/* Переключатель остаётся слева, телефон/корзина/вход — справа */
.ai-mode-on .nav .header-links { display: flex; margin-left: auto; margin-right: 0; order: 5; }
.header-inner { display: flex; align-items: center; gap: 16px; padding: 12px 16px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; }
.logo-img { height: 52px; width: auto; display: block; }
.phone { font-weight: 600; }
.header-links { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.header-links .phone { margin-right: 8px; }

.region-picker { position: relative; }
.region-picker summary { cursor: pointer; list-style: none; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.geo-pin { color: var(--primary); flex-shrink: 0; }
.icon { vertical-align: -3px; color: var(--primary); }
.icon-lg { vertical-align: -4px; }
/* Иконки-кнопки в шапке (корзина, ЛК) — как на ai.dialab.ru */
.icon-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; color: var(--primary);
}
.icon-btn:hover { background: var(--bg); text-decoration: none; }
.icon-btn svg { width: 26px; height: 26px; }
.cart-badge {
  position: absolute; top: 1px; right: -2px; min-width: 17px; text-align: center;
  background: var(--accent); color: #fff; border-radius: 999px;
  font-size: .7rem; line-height: 1; font-weight: 700; padding: 3px 4px;
}
.phone-btn { display: none; }
.region-name-short { display: none; }

/* Мобильная шапка: номер → иконка трубки, иконки над поиском справа,
   короткое название города; первая строка не переносится */
@media (max-width: 800px) {
  .header-links .phone { display: none; }
  .phone-btn { display: flex; }
  .header-inner .search { order: 5; flex-basis: 100%; max-width: none; }
  .region-name-full { display: none; }
  .region-name-short { display: inline; }
  .header-inner { gap: 10px; }
  .logo-img { height: 42px; }
  .region-picker summary { white-space: nowrap; }
  .region-picker, .logo, .header-links { flex-shrink: 0; }
  .header-links { gap: 4px; }
  .icon-btn { width: 36px; height: 36px; }
  .icon-btn svg { width: 24px; height: 24px; }
}
.region-picker ul {
  position: absolute; z-index: 10; background: #fff; border: 1px solid var(--border);
  border-radius: 8px; padding: 8px; margin: 4px 0 0; list-style: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 2px;
}
/* На узких экранах — одна колонка, чтобы не выходить за край */
@media (max-width: 640px) {
  .region-picker ul { grid-template-columns: 1fr; min-width: 200px; }
}
.region-picker li a { display: block; padding: 6px 12px; border-radius: 6px; color: var(--text); }
.region-picker li a:hover { background: var(--bg); text-decoration: none; }

.search { display: flex; flex: 1; min-width: 220px; max-width: 420px; }
/* font-size 16px — иначе iOS зумит страницу при фокусе на поле */
.search input { flex: 1; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px 0 0 8px; font-size: 16px; }
.search button { border: 0; background: var(--primary); color: #fff; padding: 8px 16px; border-radius: 0 8px 8px 0; cursor: pointer; }

.nav { display: flex; gap: 22px; padding: 10px 16px; align-items: center; }
.nav a { font-weight: 600; color: var(--text); }
.nav-links { display: flex; gap: 22px; align-items: center; }

/* Выпадающий список «О компании» (десктоп) */
.nav-dropdown { position: relative; }
.nav-dropdown summary {
  list-style: none; cursor: pointer; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 6px;
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after {
  content: ""; width: 5px; height: 5px; margin-top: -2px;
  border-right: 1.6px solid var(--primary); border-bottom: 1.6px solid var(--primary);
  transform: rotate(45deg); transition: transform .15s;
}
.nav-dropdown[open] summary::after { transform: rotate(-135deg); margin-top: 2px; }
.nav-dropdown ul {
  position: absolute; z-index: 20; right: 0; top: calc(100% + 10px); min-width: 260px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 8px 0; margin: 0; list-style: none; box-shadow: 0 6px 24px rgba(0,0,0,.12);
}
.nav-dropdown li a { display: block; padding: 9px 18px; color: var(--text); font-weight: 500; }
.nav-dropdown li a:hover { background: var(--bg); text-decoration: none; }

/* Подраздел «О компании» в мобильном сэндвиче */
.nav-sub { padding: 6px 0; border-top: 1px solid var(--border); margin-top: 6px; }
.nav-sub-title { display: block; padding: 4px 18px; font-weight: 700; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }
.nav-sub a { display: block; padding: 8px 18px 8px 28px; }

/* Сэндвич-меню (только мобильная версия) */
.nav-burger { display: none; position: relative; }
.nav-burger summary { list-style: none; cursor: pointer; display: flex; align-items: center; color: var(--primary); }
.nav-burger summary::-webkit-details-marker { display: none; }
.nav-burger ul {
  position: absolute; z-index: 20; left: 0; top: calc(100% + 8px); min-width: 220px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 8px 0; margin: 0; list-style: none; box-shadow: 0 6px 24px rgba(0,0,0,.12);
}
.nav-burger li a { display: block; padding: 10px 18px; }

/* Переключатель «ИИ-режим» в стиле iOS */
.ai-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; user-select: none; }
.ai-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.ai-slider {
  width: 44px; height: 26px; border-radius: 999px; background: #d9d3ea;
  position: relative; flex-shrink: 0; transition: background .2s;
}
.ai-slider::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s;
}
.ai-toggle input:checked + .ai-slider { background: linear-gradient(90deg, var(--accent), var(--primary)); }
.ai-toggle input:checked + .ai-slider::after { transform: translateX(18px); }
.ai-toggle input:focus-visible + .ai-slider { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 800px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav { gap: 16px; }
}

/* Layout blocks */
/* main.container — иначе правило перебивает .container (padding: 0 16px) */
main.container { padding: 16px 16px 48px; }
/* Верхний отступ страницы задаёт main; у hero он обнулён, чтобы зазор шапка→баннер не вырос */
.hero { background: linear-gradient(120deg, var(--primary), var(--primary-dark)); color: #fff; padding: 36px; border-radius: 14px; margin: 0 0 8px; }
.hero h1 { margin: 0 0 8px; }
.hero .btn { background: #fff; color: var(--primary); }

/* Слайдер главного баннера */
.hero-slider { margin: 0 0 8px; }
.hero-slider .slides {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; border-radius: 14px;
}
.hero-slider .slides::-webkit-scrollbar { display: none; }
.hero-slider .slide {
  flex: 0 0 100%; scroll-snap-align: start; position: relative;
  margin: 0; border-radius: 0; overflow: hidden;
}
.hero-title { font-size: 1.7rem; font-weight: 700; margin: 0 0 8px; line-height: 1.25; }
.hero-slider .slide h1 { font-size: 1.7rem; line-height: 1.25; }
.hero-content { max-width: 62%; position: relative; z-index: 1; }
.hero-art {
  position: absolute; top: 0; right: 0; bottom: 0; width: 33.33%;
  display: flex; align-items: center; justify-content: center; padding: 20px 28px;
}
.hero-art svg { max-width: 100%; max-height: 100%; height: auto; }
/* Наведение (:hover) на кнопку баннера — текст становится белым */
.hero .btn:hover, .hero-slider .btn:hover { color: #fff; }

/* Ряд управления слайдером: стрелка слева, точки по центру, стрелка справа */
.slider-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 12px; }
.slider-dots { display: flex; justify-content: center; gap: 8px; }
.slider-dots .dot {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--border); transition: background .15s, transform .15s;
}
.slider-dots .dot.active { background: var(--primary); transform: scale(1.25); }
.slider-arrow {
  background: none; border: 0; padding: 4px 10px; cursor: pointer; color: var(--primary);
  display: inline-flex; align-items: center;
}
.slider-arrow:hover { color: var(--primary-dark); }
#hero-prev { justify-self: start; }
#hero-next { justify-self: end; }
.slider-arrow svg { width: 9px; height: 9px; display: block; }  /* не выше точек */
@media (max-width: 800px) {
  .hero-art { display: none; }
  .hero-content { max-width: none; }
}

/* Три блока под баннером */
.feature-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
@media (max-width: 800px) { .feature-links { grid-template-columns: 1fr; } }
.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px;
  display: flex; flex-direction: column; gap: 4px; color: var(--text);
}
.feature-card:hover { border-color: var(--primary); text-decoration: none; }
.feature-card svg { width: 26px; height: 26px; color: var(--primary); margin-bottom: 4px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.card-link { color: var(--text); }
.card-link:hover { border-color: var(--primary); text-decoration: none; }
/* Вся карточка анализа ведёт на его страницу (кроме кнопки «В корзину») */
.card .card-cover::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card .price-row form { position: relative; z-index: 2; }
.card:has(.card-cover):hover { border-color: var(--primary); }

.code { color: var(--muted); font-size: .85rem; }
.muted { color: var(--muted); font-size: .9rem; }
.price { color: var(--primary-dark); font-weight: 700; white-space: nowrap; }
.price-big { font-size: 1.8rem; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }

/* Buttons */
.btn {
  display: inline-block; background: var(--primary); color: #fff; border: 0;
  padding: 8px 18px; border-radius: 8px; cursor: pointer; font-size: .95rem; font-weight: 600;
  white-space: nowrap;
}
.service-row .btn { flex-shrink: 0; }
.btn:hover { background: var(--primary-dark); text-decoration: none; }
.btn-lg { padding: 12px 26px; font-size: 1.05rem; }
.btn-sm { padding: 5px 12px; font-size: .85rem; }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
/* «В корзине» — светло-фиолетовая с белым текстом (услуга уже добавлена) */
.btn-in-cart { background: var(--accent); color: #fff; }
.btn-in-cart:hover { background: var(--primary); color: #fff; text-decoration: none; }
.link-btn { background: none; border: 0; color: var(--primary); cursor: pointer; padding: 0; font-size: 1rem; }

/* Catalog */
.catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
@media (max-width: 800px) { .catalog-layout { grid-template-columns: 1fr; } }
.sidebar { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; align-self: start; }
/* На десктопе — статичный заголовок, на мобильных — раскрывающийся список */
.cat-details summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; font-size: 1.05rem; pointer-events: none; margin-bottom: 10px;
}
.cat-details summary::-webkit-details-marker { display: none; }
.cat-details summary::after {
  content: ""; width: 8px; height: 8px; margin: -2px 6px 0;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: rotate(45deg); transition: transform .15s; display: none;
}
.cat-details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
@media (max-width: 800px) {
  .cat-details summary { pointer-events: auto; cursor: pointer; margin-bottom: 0; }
  .cat-details summary::after { display: block; }
  .cat-details[open] summary { margin-bottom: 10px; }
}
.cat-tree { list-style: none; padding: 0; margin: 0; }
.cat-tree ul { list-style: none; padding-left: 14px; }
.cat-tree a { display: block; padding: 4px 0; color: var(--text); }
.cat-tree a.active { color: var(--primary); font-weight: 700; }

.service-row {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px;
  position: relative; cursor: pointer;
}
.service-row:hover { border-color: var(--primary); }
/* Вся карточка ведёт на страницу анализа (растянутая ссылка), кроме кнопки «В корзину» */
.service-row .card-cover::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.service-row .price-row form { position: relative; z-index: 2; }
.pagination { display: flex; gap: 16px; margin: 20px 0; align-items: center; }
/* Мета услуги: биоматериал · срок. На мобильных срок с новой строки */
.service-meta .bio + .term::before { content: "· "; }
@media (max-width: 800px) {
  .service-meta .bio { display: block; }
  .service-meta .term { display: block; }
  .service-meta .bio + .term::before { content: ""; }
}

/* Service detail */
.breadcrumbs { font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
.service-title { margin-bottom: 4px; }
.service-code { margin: 0 0 20px; }
.service-card { display: grid; grid-template-columns: 1fr 280px; gap: 24px; }
@media (max-width: 800px) {
  .service-card { grid-template-columns: 1fr; }
  .service-side { order: -1; }  /* цена над описанием */
}
/* Верхний паддинг подобран так, чтобы «Описание» визуально начиналось как цена в соседнем блоке */
.service-main { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 24px 20px 20px; }
.service-main > h2:first-child { margin-top: 0; }
.service-side { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; align-self: start; }

/* Tables & forms */
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.table th { background: var(--bg); }

/* Единый скруглённый вид всех текстовых полей (pill), textarea — мягкий радиус */
input[type=text], input[type=email], input[type=tel], input[type=number],
input[type=password], input[type=search], input[type=date],
input[type=datetime-local], input[type=time], select {
  border: 1px solid var(--border); border-radius: var(--radius-field);
  padding: 8px 14px; font-size: 1rem; font-family: inherit; background: #fff; color: var(--text);
}
textarea { border: 1px solid var(--border); border-radius: var(--radius-area); padding: 9px 14px; font-size: 1rem; font-family: inherit; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(100,90,161,.15); }

.form p { margin: 0 0 14px; }
.form label { display: block; font-weight: 600; margin-bottom: 4px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--radius-field); font-size: 1rem;
}
.form textarea { border-radius: var(--radius-area); }
.form-narrow { max-width: 420px; }

/* Вкладки на странице входа: Пациент / Корпоративный клиент */
.login-tabs { display: inline-flex; gap: 4px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 4px; margin-bottom: 20px; }
.login-tab { border: 0; background: none; padding: 8px 18px; border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--text); }
.login-tab.active { background: var(--primary); color: #fff; }
.checkout-layout { display: grid; grid-template-columns: 1fr 320px; gap: 30px; }
@media (max-width: 800px) { .checkout-layout { grid-template-columns: 1fr; } }
.cart-total { display: flex; justify-content: flex-end; align-items: center; gap: 24px; margin-top: 18px; font-size: 1.15rem; }

/* Misc */
/* Всплывающие уведомления справа сверху */
.toasts { position: fixed; top: 16px; right: 16px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: min(340px, calc(100vw - 32px)); }
.toast {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 40px 14px 18px; box-shadow: 0 8px 28px rgba(47,25,70,.18);
  animation: toast-in .25s ease-out; transition: opacity .3s, transform .3s;
}
.toast-error { border-color: #f5c6c0; }
.toast-hide { opacity: 0; transform: translateX(20px); }
.toast-close {
  position: absolute; top: 8px; right: 10px; background: none; border: 0; cursor: pointer;
  font-size: 1.15rem; line-height: 1; color: var(--muted); padding: 2px;
}
.toast-close:hover { color: var(--text); }
@keyframes toast-in { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

/* Кнопка «Очистить корзину» справа над таблицей */
.cart-clear { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.seo-text { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-top: 24px; }
/* Свёртка SEO-текста: весь текст в DOM (индексируется), визуально ограничен по высоте */
.seo-toggle-input { position: absolute; opacity: 0; width: 0; height: 0; }
.seo-body { position: relative; max-height: 50vh; overflow: hidden; }
.seo-body::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  background: linear-gradient(rgba(255,255,255,0), #fff); pointer-events: none;
}
.seo-toggle-input:checked ~ .seo-body { max-height: none; }
.seo-toggle-input:checked ~ .seo-body::after { display: none; }
.seo-toggle {
  display: inline-block; margin-top: 14px; cursor: pointer;
  color: var(--primary); font-weight: 600;
}
.seo-toggle::after { content: "Показать ещё ▾"; }
.seo-toggle-input:checked ~ .seo-toggle::after { content: "Свернуть ▴"; }
.seo-toggle:hover { text-decoration: underline; }
.seo-toggle-input:focus-visible ~ .seo-toggle { outline: 2px solid var(--accent); outline-offset: 3px; }
.centers-list { padding-left: 18px; }

/* Карта Яндекс с точками центров */
.cmap { width: 100%; height: 100%; min-height: 260px; border-radius: 12px; overflow: hidden; background: #e7e0f2; }
/* Однотонная (обесцвеченная) карта: фильтр только на слой тайлов, пины остаются цветными */
.cmap [class*="ground-pane"] { filter: grayscale(1); }
.home-map { height: 420px; margin-bottom: 10px; }

/* Страница центров: список слева, карта справа; на мобильных карта сверху */
.centers-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; margin-top: 12px; }
.centers-layout.no-map { grid-template-columns: 1fr; }
.centers-col { display: grid; grid-template-columns: 1fr; gap: 12px; }
.centers-layout.no-map .centers-col { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.centers-map-wrap { position: sticky; top: 80px; height: min(600px, 80vh); }
@media (max-width: 800px) {
  .centers-layout { grid-template-columns: 1fr; }
  .centers-map-wrap { order: -1; position: static; height: auto; aspect-ratio: 1 / 1; }
}
.errorlist { color: #c0392b; margin: 0 0 6px; padding-left: 18px; }

/* Блок фактов (после категорий, без заголовка) */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 28px 0 8px; }
@media (max-width: 800px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .facts { grid-template-columns: 1fr; } }
.fact {
  background: linear-gradient(150deg, var(--primary), var(--primary-dark));
  color: #fff; border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 6px;
}
.fact-num { font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.fact-text { font-size: .95rem; opacity: .9; }

/* Подвал — светло-фиолетовый, со структурой сайта и контактами */
.footer { background: #ece4f6; border-top: 1px solid var(--border); padding: 32px 0 20px; margin-top: 32px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr 1fr; gap: 28px; }
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 22px; } }
@media (max-width: 460px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h3 { margin: 0 0 4px; font-size: 1rem; color: var(--primary-dark); }
.footer-col a { color: var(--text); }
.footer-col a:hover { color: var(--primary); }
.footer-brand .logo-img { height: 48px; }
.footer-brand p { margin: 4px 0 0; color: var(--muted); font-size: .85rem; }
.footer-phone { font-size: 1.3rem; font-weight: 700; color: var(--primary-dark) !important; }
.footer .disclaimer { margin: 24px 0 0; color: var(--muted); font-size: .8rem; letter-spacing: .03em; }

/* --- Личный кабинет (поверх бренд-слоя сайта) --- */
.lk-badge { font-weight: 700; color: #fff; border: 0; background: linear-gradient(120deg, var(--accent), var(--primary)); border-radius: 999px; padding: 4px 12px; font-size: .85rem; }
.lk-client { font-weight: 600; }
