:root {
  --primary: #002444;
  --primary-container: #1b3a5c;
  --secondary: #b71032;
  --secondary-dark: #920023;
  --accent: #F59E0B;
  --bg: #f7f9fc;
  --surface: #FFFFFF;
  --surface-muted: #f2f4f7;
  --surface-container: #eceef1;
  --text: #1E222D;
  --text-muted: #64748B;
  --text-variant: #43474e;
  --border: #c3c6cf;
  --outline: #73777f;
  --success: #059669;
  --call: #059669;
  --call-dark: #047857;
  --container: 1200px;
  --gutter: 24px;
  --section-padding: 80px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow: 0 4px 12px rgba(27, 58, 92, 0.08);
  --shadow-hover: 0 12px 24px rgba(27, 58, 92, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { min-width: 300px; overflow-x: clip; }
body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 16px;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.icon {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}
.icon--sm { font-size: 16px; }
.icon--lg { font-size: 32px; }
.icon--xl { font-size: 48px; }

/* Topbar */
.topbar { background: var(--primary); color: #fff; font-size: 12px; font-weight: 500; }
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  gap: 16px;
  flex-wrap: nowrap;
}
.topbar__addresses,
.topbar__phones {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  flex-shrink: 1;
  min-width: 0;
}
.topbar__hours,
.topbar__wa {
  flex-shrink: 0;
}
.topbar__addresses .topbar__item { white-space: nowrap; }
.topbar__phones .topbar__item { white-space: nowrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 4px; color: #fff; opacity: 0.95; }
.topbar__item:hover { opacity: 0.8; }
.topbar__item--hide-sm { display: none; }

/* Header */
.header { background: var(--surface); box-shadow: 0 2px 8px rgba(0,36,68,0.08); position: sticky; top: 0; z-index: 100; }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
  gap: 16px;
  position: relative;
}
.header__inner nav { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; }
.logo { font-weight: 700; font-size: 24px; color: var(--primary); white-space: nowrap; flex-shrink: 0; }

.logo span { color: var(--secondary); }
.nav { display: flex; gap: 24px; font-size: 14px; font-weight: 600; list-style: none; }
.nav a { color: var(--text-variant); transition: color 0.2s; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--primary); }
.nav li.active > a,
.nav a.active { color: var(--secondary); border-bottom-color: var(--secondary); }
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  padding: 8px;
  line-height: 0;
  order: -1;
}
.nav__toggle-icon {
  display: block;
  width: 24px;
  height: 18px;
  position: relative;
  background: linear-gradient(var(--primary), var(--primary)) center/100% 2px no-repeat;
  border-radius: 1px;
}
.nav__toggle-icon::before,
.nav__toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: transform 0.2s, top 0.2s, bottom 0.2s;
}
.nav__toggle-icon::before { top: 0; }
.nav__toggle-icon::after { bottom: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon::before { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon::after { bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }
.header__cta { flex-shrink: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: 0.2s;
  text-align: center;
}
.btn--primary { background: var(--secondary); color: #fff; }
.btn--primary:hover { opacity: 0.9; }
.btn--call { background: var(--call); color: #fff; }
.btn--call:hover { background: var(--call-dark); }
.btn--outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--outline-light { background: transparent; border: 2px solid #fff; color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--primary); }
.btn--lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius-xl); }

/* Hero slider */
.hero-slider {
  position: relative;
  height: 420px;
  background: var(--primary);
  overflow: hidden;
}
.hero-slide {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
}
.hero-slide .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero-slide.active {
  display: flex;
  animation: heroFadeIn 0.5s ease-in-out;
}
@keyframes heroFadeIn { from { opacity: 0; } to { opacity: 1; } }
.hero-slide__content {
  position: relative;
  z-index: 2;
  color: #fff;
}
.hero-slide__content h1,
.hero-slide__content h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero-slide__content p {
  font-size: 18px;
  line-height: 1.55;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-slide__media {
  height: 100%;
  min-height: 280px;
  border-radius: var(--radius-xl);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-slider__dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.hero-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 0;
}
.hero-slider__dot.active { background: #fff; }

/* Sections */
.section { padding: var(--section-padding) 0; }
.section--muted { background: var(--surface-muted); }
.section--container { background: var(--surface-container); }
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.section__title--center { text-align: center; width: 100%; margin-bottom: 40px; }

/* Brands */
.brands { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.brand {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  transition: 0.2s;
  cursor: default;
}
.brand:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.brand__avatar {
  width: 48px;
  height: 48px;
  background: var(--surface-container);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--primary);
  margin: 0 auto 12px;
}
.brand__name { font-size: 14px; font-weight: 600; color: var(--text); }

/* Promo cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: 0.2s;
  border-top: 4px solid var(--primary);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card--red { border-top-color: var(--secondary); }
.card--green { border-top-color: var(--success); }
.card--amber { border-top-color: var(--accent); }
.card .icon--xl { margin-bottom: 16px; }
.card--red .icon--xl { color: var(--secondary); }
.card--green .icon--xl { color: var(--success); }
.card--amber .icon--xl { color: var(--accent); }
.card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.card p { font-size: 16px; color: var(--text-muted); line-height: 1.5; }

/* Service cards */
.service-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card { cursor: pointer; }
.service-card__image {
  position: relative;
  height: 192px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--surface-container);
}
.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.service-card:hover .service-card__image img { transform: scale(1.05); }
.service-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}
.service-card__label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}
.service-card p { font-size: 16px; color: var(--text-muted); line-height: 1.5; }

/* Price list */
.price-list {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.price-row:last-child { border-bottom: none; }
.price-row:nth-child(even) { background: #f8fafc; }
.price-row__name { font-size: 18px; font-weight: 600; }
.price-row__value { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.price-row__price { font-weight: 700; color: var(--primary); font-size: 16px; }
.badge-free {
  background: var(--success);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.prices__more { text-align: center; margin-top: 32px; }
.prices__more a { color: var(--secondary); font-weight: 700; }
.prices__more a:hover { text-decoration: underline; }

/* Benefits */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.benefit-item { display: flex; gap: 16px; }
.benefit-item__icon {
  flex-shrink: 0;
  background: rgba(0,36,68,0.05);
  padding: 16px;
  border-radius: var(--radius-lg);
  color: var(--primary);
  height: fit-content;
}
.benefit-item h4 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.benefit-item p { font-size: 16px; color: var(--text-muted); line-height: 1.5; }

/* FAQ */
.faq { max-width: 768px; margin: 0 auto; }
.faq__item {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.faq__question {
  width: 100%;
  text-align: left;
  padding: 24px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
  transition: background 0.2s;
}
.faq__question:hover { background: var(--surface-muted); }
.faq__question[aria-expanded="true"] { color: var(--primary); }
.faq__question .icon { transition: transform 0.2s; flex-shrink: 0; }
.faq__question[aria-expanded="true"] .icon { transform: rotate(180deg); }
.faq__answer {
  display: none;
  padding: 0 24px 24px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.5;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin: 0 24px 24px;
}
.faq__item.is-open .faq__answer { display: block; }

/* CTA */
.cta-section { background: var(--primary); color: #fff; padding: var(--section-padding) 0; }
.cta-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.cta-section__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.cta-section__text { font-size: 18px; opacity: 0.85; margin-bottom: 32px; line-height: 1.55; }
.cta-section__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.cta-section__phone-label { font-size: 12px; opacity: 0.6; }
.cta-section__phone { font-size: 20px; font-weight: 600; }
.cta-form-wrap {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-hover);
  color: var(--text);
}
.callback-form input,
.callback-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.callback-form input:focus,
.callback-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0,36,68,0.15);
}
.callback-form label { font-size: 13px; display: flex; gap: 8px; align-items: flex-start; margin-bottom: 16px; color: var(--text-muted); }
.form-error { color: #fecaca; font-size: 13px; margin-bottom: 8px; }
.form-success { background: var(--success); color: #fff; padding: 12px 16px; border-radius: var(--radius-lg); margin-bottom: 16px; }

/* Footer */
.footer { background: var(--primary); color: rgba(255,255,255,0.85); padding: var(--section-padding) 0 0; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer__logo { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 24px; }
.footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.footer__links a { display: block; color: rgba(255,255,255,0.7); margin-bottom: 12px; transition: 0.2s; }
.footer__links a:hover { color: #fff; transform: translateX(4px); }
.footer__address { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; color: rgba(255,255,255,0.7); }
.footer__address a { color: inherit; }
.footer__address a:hover { color: #fff; }
.footer__contacts { display:flex; flex-direction:column;text-align: right;align-items: flex-end; }
.footer__contacts a.phone { font-size: 20px; font-weight: 700; color: #fff; display: block; margin-bottom: 4px; }
.footer__contacts .hours { font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 16px; display: block; }
.footer__copy {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer__contacts .btn--call{
    width:fit-content;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  overflow-y: auto;
  padding: 16px;
}
.modal.is-open { display: block; }
.modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,36,68,0.6);
  backdrop-filter: blur(2px);
}
.modal__dialog {
  position: relative;
  max-width: 440px;
  margin: 40px auto;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
}
.modal__close {
  position: absolute;
  right: 16px;
  top: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  z-index: 2;
}
.modal__close:hover { color: var(--primary); }
.modal__header { padding: 40px 32px 16px; text-align: center; }
.modal__header h2 { font-size: 24px; font-weight: 600; color: var(--primary); margin-bottom: 8px; }
.modal__header p { font-size: 16px; color: var(--text-muted); }
.modal__body { padding: 0 32px 32px; }
.modal-form label.field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-variant);
  margin-bottom: 6px;
}

/* Mobile CTA bar */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 90;
  gap: 12px;
}
.mobile-cta .btn { flex: 1; }
.mobile-cta__wa {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: #25D366;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.mobile-cta__wa svg { width: 28px; height: 28px; fill: currentColor; }

/* Inner pages */
.breadcrumbs { padding: 16px 0; font-size: 14px; color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--secondary); }
.breadcrumbs__sep { margin: 0 8px; opacity: 0.5; }

.page-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 0;
  align-items: start;
}
.section .page-layout { padding: 0; }
.page-layout__sidebar { background: var(--surface); border-radius: var(--radius-xl); padding: 20px; box-shadow: var(--shadow); }
.page-layout__sidebar ul { list-style: none; }
.page-layout__sidebar li { margin-bottom: 8px; }
.page-layout__sidebar a { font-size: 14px; font-weight: 500; }
.page-layout__sidebar a:hover { color: var(--secondary); }
.page-layout__sidebar .active > a { color: var(--secondary); font-weight: 600; }
/* Базовые стили для обертки пункта, чтобы выровнять плюсик и ссылку */
.sidebar-menu-item {
  display: flex;
  align-items: center;
  position: relative;
}

/* Стили самого переключателя (плюсика) */
.sidebar-toggle {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

/* Рисуем горизонтальную линию плюсика */
.sidebar-toggle::before,
.sidebar-toggle::after {
  content: '';
  position: absolute;
  background-color: var(--text-muted, #6c757d); /* Смените на свой цвет */
  transition: transform 0.3s ease;
}

/* Горизонтальная линия */
.sidebar-toggle::before {
  width: 10px;
  height: 20px;
  background: transparent;
  left: 9px;
  top: 0;
}
/* Чтобы сделать честный плюс/минус на чистом CSS: */
.sidebar-toggle::before {
  width: 12px;
  height: 20px;
  content: "+";
  font-size: 16px;
  line-height: 20px;
  font-weight: bold;
}

/* Изначально скрываем ТОЛЬКО те подменю, которые вложены внутрь li */
.page-layout__sidebar li .sidebar-submenu {
  display: none;
  padding-left: 20px;
  margin-top: 4px;
}

/* Показываем подменю только тогда, когда родительский li имеет класс .is-open */
.page-layout__sidebar li.is-open > .sidebar-submenu {
  display: block;
}

/* Плюсик показываем только для тех элементов, у которых реально есть скрытое подменю */
.sidebar-menu-item .sidebar-toggle {
  /* ваши стили для отображения плюсика */
}

/* Когда родительскому li добавляется класс .is-open, показываем меню и меняем плюс на минус */
.page-layout__sidebar li.is-open > .sidebar-submenu {
  display: block;
}

.page-layout__sidebar li.is-open > .sidebar-menu-item .sidebar-toggle::before {
  content: "−"; /* Меняем знак на минус */
}

.page-layout .content {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 4vw, 40px);
  box-shadow: var(--shadow);
}

.services-index { display: grid; gap: 16px; margin-top: 24px; }
.services-index__item {
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
}
.services-index__item h2 { margin: 0 0 8px; font-size: 18px; }
.services-index__item p { margin: 0; color: var(--text-muted); font-size: 15px; }
.services-index__item a { color: inherit; text-decoration: none; }
.services-index__item a:hover { color: var(--secondary); }

.section > .container.content {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 4vw, 40px);
  box-shadow: var(--shadow);
}

.content { font-size: 16px; line-height: 1.6; overflow-wrap: break-word; word-wrap: break-word; min-width: 0; }
.container.content { max-width: var(--container); }
.content hr { border: 0; border-top: 1px solid var(--border); height: 0; margin: 36px 0; }
.content > hr:first-child { display: none; }
.content hr + h1,
.content hr + h2,
.content hr + h3,
.content hr + h4,
.content hr + h5,
.content hr + h6,
.content hr + p,
.content hr + ul,
.content hr + ol,
.content hr + .content-figure { margin-top: 0; }
.content h1 { font-size: clamp(26px, 3vw, 34px); color: var(--primary); margin-bottom: 16px; line-height: 1.25; }
.content h2 { font-size: 22px; color: var(--primary); margin: 28px 0 12px; }
.content h3 { font-size: 18px; color: var(--primary); margin: 20px 0 8px; }
.content h4 { font-size: 17px; color: var(--primary); margin: 18px 0 8px; }
.content h5 { font-size: 16px; color: var(--primary); margin: 16px 0 8px; font-weight: 600; }
.content p { margin-bottom: 16px; }
.content ul, .content ol { margin: 0 0 16px 1.25rem; }
.content img { border-radius: var(--radius-lg); margin: 16px 0; max-width: 100%; height: auto; }
.content-gallery {
  margin: 8px 0 28px;
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
}
.content-gallery__nav {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.content-gallery__nav:hover:not(:disabled) {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.content-gallery__nav:disabled {
  opacity: 0.35;
  cursor: default;
}
.content-gallery__viewport { min-width: 0; }
.content-gallery__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--outline) transparent;
}
.content-gallery__track::-webkit-scrollbar { height: 6px; }
.content-gallery__track::-webkit-scrollbar-thumb {
  background: var(--outline);
  border-radius: 999px;
}
.content-gallery__item {
  flex: 0 0 auto;
  width: min(82vw, 340px);
  scroll-snap-align: start;
}
.content-gallery__item button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius-lg);
}
.content-gallery__item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  margin: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  pointer-events: none;
}
.content h4 + .content-gallery { margin-top: 4px; }

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.gallery-lightbox.is-open { display: flex; }
.gallery-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 36, 68, 0.88);
  backdrop-filter: blur(4px);
}
.gallery-lightbox__stage {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1200px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
}
.gallery-lightbox__close,
.gallery-lightbox__nav {
  position: absolute;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.gallery-lightbox__close:hover,
.gallery-lightbox__nav:hover:not(:disabled) {
  background: #fff;
  color: var(--secondary);
}
.gallery-lightbox__nav:disabled { opacity: 0.35; cursor: default; }
.gallery-lightbox__close { top: 16px; right: 16px; }
.gallery-lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.gallery-lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }
.content-figure { margin: 24px 0; text-align: center; }
.content-figure img { margin: 0 auto; display: block; }
.content hr + .content-figure { margin-top: 0; }
.content iframe, .content video, .content embed { max-width: 100%; }
.content table { margin: 16px 0; display: block; max-width: 100%; overflow-x: auto; }
.content pre { max-width: 100%; overflow-x: auto; }
.content a { overflow-wrap: anywhere; }

.blog-list { display: grid; gap: 20px; }
.blog-row { background: var(--surface); border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow); }
.blog-row h2 { font-size: 20px; margin-bottom: 8px; }
.blog-row h2 a:hover { color: var(--secondary); }
.blog-row__meta { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.blog-row__intro { color: var(--text-muted); font-size: 15px; }

.pagination{
    list-style-type: none !important;
    display: flex!important;
    gap:15px!important;
    margin:30px 0 !important;
}

.pagination .page-item{
    border-radius:4px;
    padding:5px 12px;
    border:2px solid #002444;
    cursor:pointer;
}

.page-title {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
  margin-bottom: 24px;
  color: var(--primary);
}
.page-intro {
  margin-bottom: 24px;
  padding: 20px 24px;
  background: var(--surface-alt, #f4f7fb);
  border-left: 4px solid var(--accent, #e85d04);
  border-radius: var(--radius-md, 8px);
  color: var(--text-muted, #5c6570);
  font-size: 16px;
  line-height: 1.65;
}
.page-intro p:last-child { margin-bottom: 0; }
.model-range {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.model-range__title {
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--primary);
}
.model-range__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.model-range__item {
  display: block;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  transition: 0.2s;
}
.model-range__item:hover {
  color: var(--secondary);
  border-color: var(--secondary);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.map-wrap { border-radius: var(--radius-xl); overflow: hidden; min-height: 400px; background: var(--surface-muted); margin-top: 24px; }

.table-wrap { background: var(--surface); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data-table th { background: var(--primary); color: #fff; text-align: left; padding: 14px 20px; font-weight: 600; }
table.data-table td { padding: 14px 20px; border-bottom: 1px solid var(--border); }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr:nth-child(even) { background: var(--surface-muted); }

/* Responsive */
@media (min-width: 768px) {
  .topbar__item--hide-sm { display: inline-flex; }
  .topbar__addresses.topbar__item--hide-sm { display: flex; }
}

@media (max-width: 1200px) {
  .topbar__inner {
    gap: 12px;
    padding-block: 6px;
    align-items: center;
  }
  .topbar__item { font-size: 11px; }
  .topbar__addresses,
  .topbar__phones {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .topbar__addresses .topbar__item { white-space: normal; }
  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 16px var(--gutter);
    box-shadow: var(--shadow);
    gap: 12px;
    z-index: 10;
  }
  .nav.is-open { display: flex; }
  .nav__toggle { display: block; }
  .header__inner nav { justify-content: flex-start; }
}

@media (max-width: 992px) {
  .brands { grid-template-columns: repeat(4, 1fr); }
  .service-cards { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__contacts { text-align: left; }
}

@media (max-width: 768px) {
  :root { --section-padding: 48px; --gutter: 16px; }
  .hero-slider { height: 360px; }
  .hero-slide .container { grid-template-columns: 1fr; }
  .hero-slide__media { display: none; }
  .cards-3, .benefits-grid { grid-template-columns: 1fr; }
  .service-cards { grid-template-columns: 1fr; }
  .cta-section__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .page-layout { grid-template-columns: 1fr; }
  .model-range__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-layout .content,
  .section > .container.content { padding: 20px 16px; }
  .header__cta .btn__text--full { display: none; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 88px; }
  .content hr { margin: 28px 0; }
  .content-gallery { gap: 4px; }
  .content-gallery__nav { width: 34px; height: 34px; }
  .content-gallery__item { width: min(78vw, 300px); }
  .content-gallery__item img { height: 210px; }
  .gallery-lightbox__nav--prev { left: 8px; }
  .gallery-lightbox__nav--next { right: 8px; }
  .gallery-lightbox__close { top: 8px; right: 8px; }
  
}

@media (max-width: 576px) {
  .brands { grid-template-columns: repeat(2, 1fr); }
  .topbar__left { gap: 8px; }
  .price-row { flex-direction: column; align-items: flex-start; }
  .logo { font-size: clamp(17px, 5.5vw, 24px); }
  .header__inner { gap: 8px; padding-block: 12px; }
  .header__cta .btn { padding-inline: 10px; }
  .nav__toggle { padding: 6px; }
  .logo img{width: 187px;}
}