/* ============================================================
   ООО «МК Лея» — mkleya.com
   Светлый медицинский стиль: белый фон, сдержанный красный акцент
   в тон логотипу, тёплые нейтралы
   ============================================================ */

:root {
  /* Приглушённый фирменный красный (в тон логотипу), тёплые нейтралы — спокойно, не агрессивно.
     Имена переменных сохранены от прежней темы, чтобы перекрасить весь сайт разом. */
  --blue: #bb3a34;        /* основной акцент — глубокий приглушённый красный */
  --blue-dark: #97281f;   /* тёмный красный: hover, заголовочные акценты */
  --blue-light: #f7e9e7;  /* светлая красная подложка для бейджей/секций */
  --teal: #d0665a;        /* вторичный тёплый красный для мягких градиентов */
  --teal-light: #fbeeeb;
  --ink: #2a2124;         /* тёплый почти-чёрный */
  --gray: #6f665f;        /* тёплый серый */
  --gray-light: #ece5e2;  /* тёплый светло-серый */
  --bg: #ffffff;
  --bg-soft: #faf6f4;     /* тёплый off-white */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 8px 30px rgba(120, 40, 36, 0.10);
  --shadow-lg: 0 18px 50px rgba(120, 40, 36, 0.15);
  --transition: 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
ul { list-style: none; }

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

section { padding: 88px 0; }
section.tight { padding: 56px 0; }

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-light);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; }
h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 18px; }
h3 { font-size: 20px; }

.lead { font-size: 18px; color: var(--gray); max-width: 720px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover { background: var(--blue-light); transform: translateY(-3px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.header.scrolled { border-bottom-color: var(--gray-light); box-shadow: 0 4px 20px rgba(15, 31, 51, 0.06); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 21px; color: var(--ink); }
.logo-img { height: 46px; width: auto; display: block; }
.logo-img--footer { height: 42px; }
.logo span em { font-style: normal; color: var(--blue); }
.logo small { display: block; font-size: 11px; font-weight: 600; color: var(--gray); letter-spacing: 0.06em; }

.nav { display: flex; gap: 6px; }
.nav a {
  padding: 9px 15px;
  border-radius: 100px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  transition: background 0.25s, color 0.25s;
}
.nav a:hover, .nav a.active { background: var(--blue-light); color: var(--blue); }

.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 26px; height: 3px; background: var(--ink); border-radius: 3px; margin: 5px 0; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 170px 0 110px;
  overflow: hidden;
  background:
    radial-gradient(700px 480px at 85% 8%, rgba(208, 102, 90, 0.12), transparent 60%),
    radial-gradient(800px 560px at 8% 90%, rgba(187, 58, 52, 0.09), transparent 60%),
    linear-gradient(180deg, #faf3f2 0%, #ffffff 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--blue), var(--teal)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .lead { margin: 22px 0 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
.hero-badge {
  display: flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: 100px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(15, 31, 51, 0.05);
}
.hero-badge svg { width: 18px; height: 18px; color: var(--teal); flex: none; }

.hero-visual { position: relative; min-height: 380px; }
.hero-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px 26px;
  animation: floaty 6s ease-in-out infinite;
}
.hero-card .num { font-size: 34px; font-weight: 800; color: var(--blue); line-height: 1; }
.hero-card .cap { font-size: 13px; color: var(--gray); font-weight: 600; margin-top: 6px; }
.hero-card:nth-child(1) { top: 4%; left: 6%; animation-delay: 0s; }
.hero-card:nth-child(2) { top: 36%; right: 0; animation-delay: 1.2s; }
.hero-card:nth-child(3) { bottom: 4%; left: 14%; animation-delay: 2.4s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Анимации появления при скролле ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: 0.7s cubic-bezier(0.22, 0.61, 0.36, 1); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: 0.7s cubic-bezier(0.22, 0.61, 0.36, 1); }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: 0.12s; }
[data-delay="2"] { transition-delay: 0.24s; }
[data-delay="3"] { transition-delay: 0.36s; }
[data-delay="4"] { transition-delay: 0.48s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; transition: none; }
  .hero-card { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- О компании ---------- */
.about { background: var(--bg-soft); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-text p { color: var(--gray); margin-bottom: 16px; }
.about-text strong { color: var(--ink); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.stat {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.stat .num { font-size: 42px; font-weight: 800; color: var(--blue); line-height: 1.1; }
.stat .num span { color: var(--teal); }
.stat .cap { color: var(--gray); font-weight: 600; font-size: 14px; margin-top: 8px; }

.milestones { margin-top: 48px; position: relative; padding-left: 28px; }
.milestones::before {
  content: "";
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--blue), var(--teal));
}
.milestone { position: relative; padding-bottom: 26px; }
.milestone:last-child { padding-bottom: 0; }
.milestone::before {
  content: "";
  position: absolute;
  left: -28px; top: 7px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--teal);
}
.milestone .year { font-weight: 800; color: var(--blue); font-size: 17px; }
.milestone p { color: var(--gray); font-size: 15px; }

/* ---------- Услуги ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.service-card {
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue-light), var(--teal-light));
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 28px; height: 28px; color: var(--blue); }
.service-card h3 { margin-bottom: 10px; font-size: 18px; }
.service-card p { color: var(--gray); font-size: 14.5px; }

/* ---------- Каталог: карточки групп ---------- */
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 48px; }
.cat-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.cat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.cat-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--blue-light), var(--teal-light));
  display: grid; place-items: center;
  overflow: hidden;
}
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.cat-card:hover .cat-card-img img { transform: scale(1.06); }
.cat-card-img svg { width: 64px; height: 64px; color: var(--blue); opacity: 0.55; }
.cat-card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.cat-card h3 { margin-bottom: 8px; }
.cat-card p { color: var(--gray); font-size: 14.5px; flex: 1; }
.cat-card .cat-link {
  margin-top: 18px;
  font-weight: 700;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.25s;
}
.cat-card:hover .cat-link { gap: 14px; }

/* ---------- Страницы каталога ---------- */
.page-hero {
  padding: 150px 0 60px;
  background:
    radial-gradient(600px 380px at 90% 10%, rgba(208, 102, 90, 0.11), transparent 60%),
    linear-gradient(180deg, #faf3f2 0%, #ffffff 100%);
}
.breadcrumbs { font-size: 14px; color: var(--gray); margin-bottom: 16px; }
.breadcrumbs a { color: var(--gray); }
.breadcrumbs a:hover { color: var(--blue); }

.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 20px; }
.product-card {
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-img {
  height: 230px;
  flex: none;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
  overflow: hidden;
  border-bottom: 1px solid var(--gray-light);
}
.product-img img {
  max-height: 100%; max-width: 100%;
  width: auto; height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;  /* фото на белом фоне мягко ложатся на тёплую панель */
}
.product-img svg { width: 56px; height: 56px; color: var(--blue); opacity: 0.4; }
.product-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 16.5px; margin-bottom: 8px; }
.product-body p { color: var(--gray); font-size: 14px; flex: 1; }
.product-body .props { margin: 12px 0 0; font-size: 13.5px; color: var(--gray); }
.product-body .props li { display: flex; gap: 8px; padding: 3px 0; }
.product-body .props li::before { content: "•"; color: var(--teal); font-weight: 800; }
.product-body .btn { margin-top: 18px; align-self: flex-start; }

.subcats { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 8px; }
.subcat-chip {
  padding: 8px 18px;
  border-radius: 100px;
  background: var(--gray-light);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  border: none;
  font-family: var(--font);
  transition: background 0.25s, color 0.25s;
}
.subcat-chip:hover { background: var(--blue-light); color: var(--blue); }
.subcat-chip.active { background: var(--blue); color: #fff; }

/* ---------- Почему мы ---------- */
.why { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 55%, var(--teal) 130%); color: #fff; }
.why .section-label { background: rgba(255, 255, 255, 0.14); color: #fff; }
.why h2 { color: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.why-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(6px);
  transition: background var(--transition), transform var(--transition);
}
.why-card:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-6px); }
.why-card h3 { margin-bottom: 10px; font-size: 18px; }
.why-card p { color: rgba(255, 255, 255, 0.82); font-size: 14.5px; }

/* ---------- Новости ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 48px; }
.news-card {
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-date { font-size: 13px; font-weight: 700; color: var(--teal); margin-bottom: 12px; }
.news-card h3 { font-size: 17px; margin-bottom: 10px; }
.news-card p { color: var(--gray); font-size: 14.5px; flex: 1; }
.news-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

/* ---------- Контакты и форма ---------- */
.contact { background: var(--bg-soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 22px; }
.contact-info-item .ic {
  width: 48px; height: 48px; flex: none;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  display: grid; place-items: center;
}
.contact-info-item .ic svg { width: 22px; height: 22px; color: var(--blue); }
.contact-info-item b { display: block; font-size: 15px; }
.contact-info-item span, .contact-info-item a { color: var(--gray); font-size: 15px; }

.form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 38px;
}
.form-card h3 { font-size: 22px; margin-bottom: 6px; }
.form-card > p { color: var(--gray); font-size: 14.5px; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-soft);
  transition: border-color 0.25s, background 0.25s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12.5px; color: var(--gray); margin-top: 14px; }

/* ---------- Модальное окно КП ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(42, 33, 36, 0.55);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: grid; place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff;
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 38px;
  position: relative;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.modal-overlay.open .modal { transform: none; }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--gray-light);
  cursor: pointer;
  font-size: 18px;
  color: var(--ink);
  transition: background 0.25s;
}
.modal-close:hover { background: var(--blue-light); }

/* ---------- Футер ---------- */
.footer { background: var(--ink); color: #d3c4bf; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer p { font-size: 14px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer a { color: #d3c4bf; font-size: 14px; transition: color 0.25s; }
.footer a:hover { color: #fff; }
.footer li { margin-bottom: 9px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #a4938c;
}

/* ---------- Чат-виджет ---------- */
.chat-fab {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 1500;
  width: 62px; height: 62px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(120, 40, 36, 0.35);
  display: grid; place-items: center;
  transition: transform 0.3s;
}
.chat-fab:hover { transform: scale(1.08); }
.chat-fab svg { width: 28px; height: 28px; }
.chat-fab .dot {
  position: absolute; top: 4px; right: 4px;
  width: 13px; height: 13px;
  background: #22c55e;
  border: 2.5px solid #fff;
  border-radius: 50%;
}

.chat-window {
  position: fixed;
  right: 26px; bottom: 104px;
  z-index: 1500;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 520px;
  max-height: calc(100vh - 140px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(15, 31, 51, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.chat-window.open { opacity: 1; transform: none; pointer-events: auto; }
.chat-head {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-head .ava {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: grid; place-items: center;
  font-weight: 800;
}
.chat-head b { font-size: 15px; display: block; }
.chat-head small { font-size: 12.5px; opacity: 0.85; }
.chat-head .chat-close { margin-left: auto; background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; padding: 11px 15px; border-radius: 16px; font-size: 14px; line-height: 1.5; animation: msgIn 0.3s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg.bot { background: #fff; border: 1px solid var(--gray-light); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg.user { background: var(--blue); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 10px; background: var(--bg-soft); }
.chat-quick button {
  border: 1.5px solid var(--blue);
  color: var(--blue);
  background: #fff;
  border-radius: 100px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.chat-quick button:hover { background: var(--blue); color: #fff; }
.chat-input { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--gray-light); background: #fff; }
.chat-input input {
  flex: 1;
  border: 1.5px solid var(--gray-light);
  border-radius: 100px;
  padding: 11px 18px;
  font-family: var(--font);
  font-size: 14px;
}
.chat-input input:focus { outline: none; border-color: var(--blue); }
.chat-input button {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.25s;
}
.chat-input button:hover { background: var(--blue-dark); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 34px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #fff;
  padding: 14px 26px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 600;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid, .products-grid, .news-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px 24px 28px;
    box-shadow: 0 20px 40px rgba(15, 31, 51, 0.12);
    transform: translateY(-130%);
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .nav.open { transform: none; }
  .burger { display: block; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .catalog-grid, .products-grid, .news-grid, .why-grid, .services-grid, .stats, .form-row { grid-template-columns: 1fr; }
  .hero { padding: 130px 0 80px; }
  .footer-grid { grid-template-columns: 1fr; }
}
