/* --- Variables --- */
:root {
  --blue-dark: #1e3a5f;
  --blue: #2563a8;
  --blue-light: #3b82c6;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --shadow: 0 1px 3px rgba(30, 58, 95, 0.12);
  --shadow-md: 0 4px 12px rgba(30, 58, 95, 0.15);
  --radius: 8px;
  --header-h: 72px;
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--gray-800);
  background: var(--white);
}
body.has-calculator-bar { padding-bottom: 72px; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.section-title {
  font-size: 1.75rem;
  color: var(--blue-dark);
  margin: 0 0 1.5rem;
  text-align: center;
}

/* --- Header --- */
.header {
  background: var(--white);
}
.header__row {
  border-bottom: 1px solid var(--gray-200);
}
.header__row:last-of-type { border-bottom: none; }
.header__row_sticky {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(30, 58, 95, 0.08), 0 4px 20px rgba(30, 58, 95, 0.06);
  border-bottom: 1px solid var(--gray-200);
}
.header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.header__row_1 .header__inner {
  padding-top: 14px;
  padding-bottom: 14px;
}
.header__row_1 .header__contacts {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 28px;
  font-size: 0.9rem;
  color: var(--gray-600);
}
.header__row_1 .header__contacts .header__phone-email {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.4;
}
.header__row_1 .header__contacts .header__phone,
.header__row_1 .header__contacts .header__email {
  display: block;
}
.header__row_1 .header__address { max-width: 240px; line-height: 1.4; }
.header__row_2 .header__inner_search {
  padding-top: 10px;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px 16px;
  flex-wrap: wrap;
}
.header__row_2 .header-search {
  flex: 1;
  min-width: 200px;
}
.header__row2-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn_header {
  padding: 10px 18px;
  font-size: 0.95rem;
  white-space: nowrap;
}
.header .btn_header,
.header .btn_secondary.btn_header {
  background: transparent;
  color: var(--blue-dark);
  border: 2px solid var(--blue-dark);
}
.header .btn_header:hover,
.header .btn_secondary.btn_header:hover {
  background: var(--blue-dark);
  color: var(--white);
  text-decoration: none;
}
.header .btn_header[href] { text-decoration: none; }
.header__row_3 .header__inner {
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}
.logo:hover { text-decoration: none; color: var(--blue); }
.logo__img { width: 52px; height: auto; flex-shrink: 0; }
.header__phone {
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.header__phone:hover { color: var(--blue); text-decoration: none; }
.header__email:hover { text-decoration: underline; }
/* Search */
.header-search {
  position: relative;
  width: 100%;
}
.header-search__input {
  width: 100%;
  padding: 10px 16px;
  font-size: 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-800);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.header-search__input::placeholder { color: var(--gray-500); }
.header-search__input:hover { border-color: var(--gray-500); }
.header-search__input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 168, 0.15);
}
.header-search__dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 50;
  display: none;
}
.header-search__dropdown.is-open { display: block; }
.header-search__item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  font-size: 0.95rem;
  color: var(--gray-800);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.15s;
}
.header-search__item:last-child { border-bottom: none; }
.header-search__item:hover,
.header-search__item:focus {
  background: var(--gray-50);
  color: var(--blue-dark);
  outline: none;
}
.header-search__empty {
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--gray-500);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
}
.nav__link {
  color: var(--gray-700);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav__link:hover { color: var(--blue-dark); border-bottom-color: var(--blue); text-decoration: none; }
.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--gray-100);
  border: none;
  border-radius: var(--radius);
  margin-left: auto;
  color: var(--blue-dark);
}
.header__row_1 .burger { display: none; }
.burger__icon {
  display: block;
  width: 24px;
  height: 24px;
}
.burger:hover { color: var(--blue); background: var(--gray-200); }
.header__mobile-menu {
  display: none;
  padding: 20px 24px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}
.header__mobile-menu .nav { flex-direction: column; }
.header__mobile-menu .header__phone,
.header__mobile-menu .header__time,
.header__mobile-menu .header__address,
.header__mobile-menu .header__email {
  display: block;
  margin-top: 8px;
}
@media (max-width: 900px) {
  .header__row_2 { display: none; }
  .header__row_3 { display: none; }
  .header__row_1 .header__contacts { display: none; }
  .nav:not(.nav_mobile) { display: none; }
  .header__row_1 .burger { display: flex; }
  .burger { display: flex; }
  .header_mobile-open .header__mobile-menu {
    display: block;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    overflow-y: auto;
    padding-top: 24px;
    padding-bottom: 24px;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }
  .header__row_1.header__row_sticky { z-index: 1000; }
}

/* --- Hero --- */
.hero {
  position: relative;
  background: linear-gradient(152deg, #0f2744 0%, var(--blue-dark) 35%, var(--blue) 100%);
  color: var(--white);
  padding: 64px 24px 72px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 45%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}
.hero__label {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero__title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  margin: 0 0 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.hero__title-add {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  margin: 0 0 20px;
  opacity: 0.92;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.hero__subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0 0 36px;
  line-height: 1.6;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.hero .btn {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.hero .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.hero .btn_primary { background: var(--white); color: var(--blue-dark); }
.hero .btn_secondary { border-width: 2px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  transition: opacity 0.2s, background 0.2s;
}
.btn:hover { text-decoration: none; opacity: 0.95; }
.btn_primary {
  background: var(--white);
  color: var(--blue-dark);
}
.btn_primary:hover { background: var(--gray-100); }
.btn_secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn_secondary:hover { background: rgba(255,255,255,0.15); color: var(--white); }
.btn_block { width: 100%; }
.btn_large { padding: 14px 28px; font-size: 1.05rem; }

/* --- Prices + Calculator --- */
.inner-page .prices { padding-top: 32px; }
.prices { padding: 48px 0; background: var(--gray-50); }
.prices__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 24px;
  justify-content: center;
}
.prices__tag {
  display: inline-block;
  padding: 8px 16px;
  background: var(--white);
  color: var(--blue-dark);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  transition: background 0.2s, color 0.2s;
}
.prices__tag:hover {
  background: var(--blue-dark);
  color: var(--white);
  text-decoration: none;
}
@media (max-width: 768px) {
  .prices__tags {
    gap: 8px 12px;
  }
  .prices__tag {
    flex: 0 1 calc(50% - 6px);
    padding: 8px 14px;
    font-size: 0.9rem;
    min-width: 0;
  }
}
.prices__filter-caption {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin: 0 0 12px;
  font-weight: 500;
}
.prices__filter-tiles {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}
.prices__filter-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  line-height: 2;
}
.prices__filter-group {
  font-size: 0.9rem;
  color: var(--gray-600);
  font-weight: 600;
  flex-shrink: 0;
}
.prices__filter-tile {
  display: inline-block;
  padding: 8px 14px;
  background: var(--white);
  color: var(--blue-dark);
  border-radius: var(--radius);
  font-size: 0.9rem;
  border: 1px solid var(--gray-200);
  transition: border-color 0.2s, background 0.2s;
}
.prices__filter-tile:hover {
  border-color: var(--blue);
  background: var(--gray-50);
  text-decoration: none;
  color: var(--blue-dark);
}

/* Горизонтальный фильтр таблиц */
.prices__filter-bar-wrap {
  margin-bottom: 24px;
  position: relative;
}
.prices__filter-mobile-btn {
  display: none;
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--blue-dark);
  background: var(--white);
  border: 2px solid var(--blue-dark);
  border-radius: var(--radius);
  cursor: pointer;
  margin-bottom: 16px;
}
.prices__filter-mobile-btn:hover {
  border-color: var(--blue);
  background: var(--gray-50);
}
.prices__filter-bar {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.prices__filter-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 20px;
}
.prices__filter-bar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.prices__filter-bar-item label {
  font-size: 0.85rem;
  color: var(--gray-600);
  font-weight: 500;
}
.prices__filter-bar-item select {
  padding: 8px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.95rem;
  min-width: 90px;
  background: var(--white);
}
.prices__filter-bar-item_price {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.prices__filter-bar-item_price label {
  width: 100%;
}
.prices__filter-bar-item_price input {
  width: 100px;
  padding: 8px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.prices__filter-bar-sep {
  color: var(--gray-500);
  font-weight: 500;
}
.prices__filter-reset {
  margin-left: auto;
  flex-shrink: 0;
}
.prices__row_hidden { display: none !important; }
.price-block_all-hidden { display: none !important; }

/* Панель фильтров (мобильная) */
.prices__filter-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.25s;
}
.prices__filter-panel_open {
  pointer-events: auto;
  visibility: visible;
}
.prices__filter-panel-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.prices__filter-panel_open .prices__filter-panel-overlay {
  opacity: 1;
}
.prices__filter-panel-inner {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 85vw);
  max-width: 320px;
  background: var(--white);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}
.prices__filter-panel_open .prices__filter-panel-inner {
  transform: translateX(0);
}
.prices__filter-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
}
.prices__filter-panel-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue-dark);
}
.prices__filter-panel-close {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gray-600);
  cursor: pointer;
  border-radius: var(--radius);
  padding: 0;
}
.prices__filter-panel-close:hover {
  color: var(--blue-dark);
  background: var(--gray-100);
}
.prices__filter-panel-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.prices__filter-panel-body .prices__filter-bar-item select,
.prices__filter-panel-body .prices__filter-bar-item input {
  width: 100%;
  min-width: 0;
}
.prices__filter-panel-body .prices__filter-bar-item_price input {
  width: 100%;
}
.prices__filter-panel-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.prices__filter-panel-footer .btn {
  flex: 1;
}
.prices__filter-panel-footer .btn_secondary {
  background: var(--white);
  color: var(--blue-dark);
  border: 2px solid var(--blue-dark);
}
.prices__filter-panel-footer .btn_secondary:hover {
  background: var(--gray-100);
  color: var(--blue-dark);
  border-color: var(--blue-dark);
}

@media (max-width: 900px) {
  .prices__filter-bar-wrap .prices__filter-bar {
    display: none;
  }
  .prices__filter-mobile-btn {
    display: block;
  }
}

.price-table__name-link {
  color: var(--blue-dark);
  font-weight: 500;
}
.price-table__name-link:hover { color: var(--blue); text-decoration: none; }
.prices__layout {
  display: block;
}
.prices__tables { min-width: 0; }
.price-block { margin-bottom: 2rem; }
.price-block:last-child { margin-bottom: 0; }
.price-block_all-hidden { margin-bottom: 0; }
.price-block__title {
  font-size: 1.25rem;
  color: var(--blue-dark);
  margin: 0 0 12px;
}
.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.table th,
.table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}
.table th {
  background: var(--blue-dark);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
}
.price-table__th_sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.price-table__th_sortable:hover {
  background: var(--blue);
}
.price-table__sort-icon {
  margin-left: 4px;
  opacity: 0.9;
  font-size: 0.85em;
}
.table tbody tr:hover { background: var(--gray-50); }
.price-table__row_highlight {
  background: rgba(255, 193, 7, 0.35) !important;
  transition: background 0.3s ease;
}
.table input[type="number"] {
  width: 70px;
  padding: 6px 8px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-size: 1rem;
}
/* Калькулятор: скрыт в потоке, контент переносится в .calculator-bar через JS */
.calculator {
  display: none;
}

/* Нижняя панель заказа (прилипает к низу экрана) */
.calculator-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  padding: 12px 0;
}
.calculator-bar__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
.calculator-bar__left {
  display: flex;
  align-items: center;
  min-width: 0;
  position: relative;
}
.calculator-bar__title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.calculator-bar__title-wrap_has-items {
  cursor: pointer;
}
.calculator-bar__title-wrap_has-items::after {
  content: '▼';
  font-size: 0.7em;
  color: var(--gray-500);
}
.calculator-bar__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 0;
}
.calculator-bar__dropdown {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 8px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  max-height:  min(60vh, 320px);
  overflow-y: auto;
  padding: 12px;
  min-width: 280px;
}
.calculator-bar__dropdown[hidden] { display: none !important; }
.calculator-bar__list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray-700);
}
.calculator-bar__list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-100);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: baseline;
}
.calculator-bar__list li:last-child { border-bottom: none; }
.calculator-bar__list .calculator-bar__item-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calculator-bar__list .calculator-bar__item-qty { color: var(--gray-600); }
.calculator-bar__list .calculator-bar__item-sum { font-weight: 600; color: var(--blue-dark); }
.calculator-bar__total-wrap {
  font-size: 1.05rem;
  white-space: nowrap;
  margin-left: 25px;
}
.calculator-bar__total-wrap strong { color: var(--blue-dark); }
.calculator-bar .btn {
  flex-shrink: 0;
  width: auto;
  min-width: 140px;
  padding: 10px 20px;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .calculator-bar__inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
  }
  .calculator-bar__left {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
  }
  .calculator-bar__total-wrap {
    flex: 0 0 auto;
    margin-left: 0;
  }
  .calculator-bar .btn {
    flex: 1 1 100%;
  }
  .calculator-bar__dropdown { left: 0; right: 0; min-width: 0; }
}

/* --- Delivery --- */
.delivery { padding: 48px 0; }
.delivery .table { max-width: 700px; margin: 0 auto; }

/* --- About --- */
.about { padding: 48px 0; background: var(--gray-50); }
.about__text { max-width: 800px; margin: 0 auto; font-weight: normal; }
.about__text p { font-weight: normal; }
.about__text h2 { font-size: 1.2rem; font-weight: 600; color: var(--blue-dark); margin: 1.5rem 0 0.5rem; }
.about__text h3 { color: var(--blue-dark); font-size: 1.2rem; margin: 1.5rem 0 0.5rem; font-weight: 600; }
.about__text ul, .about__text ol { padding-left: 1.5rem; margin: 0.5rem 0; }
.about__features { list-style: none; padding-left: 0; }
.about__features li { margin-bottom: 8px; padding-left: 0; }
.about__steps { padding-left: 1.5rem; }

/* --- Carousel --- */
.carousel-section { padding: 48px 0; }
.carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.carousel__track-wrap { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.carousel__track {
  display: flex;
  transition: transform 0.35s ease;
}
.carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
}
.carousel__prev,
.carousel__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--blue-dark);
  color: var(--white);
  font-size: 1.2rem;
  z-index: 2;
  opacity: 0.9;
}
.carousel__prev:hover, .carousel__next:hover { opacity: 1; }
.carousel__prev { left: 12px; }
.carousel__next { right: 12px; }
.carousel__prev::before { content: '‹'; }
.carousel__next::before { content: '›'; }
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--gray-300);
  padding: 0;
  transition: background 0.2s;
}
.carousel__dot_active { background: var(--blue); }
.carousel__dot:hover { background: var(--blue-light); }

/* --- Certificates --- */
.certificates { padding: 48px 0; background: var(--gray-50); }
.certificates__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.certificates__item {
  display: block;
  background: var(--white);
  padding: 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.certificates__item:hover { text-decoration: none; box-shadow: var(--shadow-md); }
.certificates__item img { width: 100%; height: auto; max-height: 280px; object-fit: contain; }
@media (max-width: 700px) {
  .certificates__grid { grid-template-columns: 1fr; }
}

/* --- GOSTs --- */
.gosts { padding: 48px 0; }
.gosts__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.gosts__link {
  display: inline-block;
  padding: 10px 18px;
  background: var(--gray-100);
  color: var(--blue-dark);
  border-radius: var(--radius);
  font-weight: 500;
}
.gosts__link:hover { background: var(--gray-200); text-decoration: none; color: var(--blue); }

/* --- Reviews --- */
.reviews { padding: 48px 0; background: var(--gray-50); }
.reviews__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.reviews__head .section-title { margin-bottom: 0; }
.reviews__yandex-icon { height: 36px; width: auto; display: block; }
.reviews__carousel-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 16px;
}
.reviews__arrow {
  flex-shrink: 0;
  width: 48px;
  border: none;
  background: var(--blue-dark);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 1.5rem;
  cursor: pointer;
  align-self: center;
  transition: opacity 0.2s;
}
.reviews__arrow:hover { opacity: 0.9; }
.reviews__arrow_prev::before { content: '‹'; }
.reviews__arrow_next::before { content: '›'; }
.reviews__track-wrap { overflow: hidden; flex: 1; min-width: 0; }
.reviews__track {
  display: flex;
  transition: transform 0.35s ease;
}
.reviews__page {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 0 4px;
}
.reviews__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.reviews__card-header { margin-bottom: 12px; }
.reviews__card-name { font-weight: 700; font-size: 1.05rem; color: var(--blue-dark); margin: 0 0 4px; }
.reviews__card-from { font-size: 0.9rem; color: var(--gray-500); margin: 0 0 4px; }
.reviews__card-date { font-size: 0.85rem; color: var(--gray-500); margin: 0; font-style: italic; }
.reviews__card-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}
.reviews__card-stars span { color: #f59e0b; font-size: 1.1rem; }
.reviews__card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-700);
  flex: 1;
  white-space: pre-line;
  margin: 0;
}
.reviews__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.reviews__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: var(--gray-300);
  padding: 0;
  cursor: pointer;
  transition: background 0.2s;
}
.reviews__dot_active { background: var(--blue); }
.reviews__dot:hover { background: var(--blue-light); }
@media (max-width: 900px) {
  .reviews__page { grid-template-columns: 1fr; }
}
/* Мобильная версия: листание по одному отзыву (ширина и flex задаются в JS) */
.reviews__track_mobile .reviews__page {
  min-width: 0;
  grid-template-columns: 1fr;
}

/* --- FAQ --- */
.faq { padding: 48px 0; background: var(--gray-50); }
.faq__item { margin-bottom: 8px; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.faq__question {
  width: 100%;
  padding: 16px 20px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-dark);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  padding-right: 40px;
}
.faq__question::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
}
.faq__item .faq__question[aria-expanded="true"]::after { content: '−'; }
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq__answer_open { max-height: 500px; }
.faq__answer p { margin: 0; padding: 0 20px 16px; color: var(--gray-700); line-height: 1.6; }

/* --- Map --- */
.map-section { padding: 48px 0; }
.map-section__frame-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-width: 100%;
  height: 400px;
  background: var(--gray-200);
}
.map-section__iframe { width: 100%; height: 100%; border: 0; }
.map-section__note { text-align: center; margin-top: 12px; color: var(--gray-500); font-size: 0.95rem; }

/* --- Consult --- */
.consult { padding: 48px 0; background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%); color: var(--white); }
.consult__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.consult__photo {
  flex: 0 0 200px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,0.4);
}
.consult__photo img { width: 100%; height: 100%; object-fit: cover; }
.consult__content { flex: 1; min-width: 260px; text-align: center; }
.consult__title { margin: 0 0 8px; font-size: 1.5rem; }
.consult__text { margin: 0 0 20px; opacity: 0.95; }
.consult .btn_primary { background: var(--white); color: var(--blue-dark); }
.consult .btn_primary:hover { background: var(--gray-100); color: var(--blue-dark); }

/* --- Footer --- */
.footer { background: var(--gray-800); color: var(--gray-300); font-size: 0.9rem; padding: 0; }
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px 48px;
  padding: 40px 0 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
}
.footer__logo:hover { color: var(--white); text-decoration: none; opacity: 0.9; }
.footer__logo-img { width: 44px; height: auto; flex-shrink: 0; }
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer__nav-link {
  color: var(--gray-300);
  font-size: 0.95rem;
}
.footer__nav-link:hover { color: var(--white); text-decoration: none; }
.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-left: auto;
  text-align: right;
}
.footer__phone { font-weight: 600; color: var(--white); font-size: 1.05rem; }
.footer__phone:hover { color: var(--white); text-decoration: none; opacity: 0.9; }
.footer__email:hover { color: var(--white); text-decoration: none; }
.footer a { color: var(--gray-300); }
.footer a:hover { color: var(--white); text-decoration: none; }
.footer__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0;
  align-items: center;
}
.btn_footer {
  color: var(--white);
  background: var(--blue);
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid var(--blue);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: background 0.2s;
}
.btn_footer:hover { color: var(--white); text-decoration: none; background: var(--blue-dark); }
.btn_footer_primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn_footer_primary:hover { color: var(--white); background: var(--blue-dark); }
.footer__bottom {
  padding: 20px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer__copy { font-size: 0.85rem; color: var(--gray-500); }
@media (max-width: 900px) {
  .footer__contacts { margin-left: 0; text-align: left; }
  .footer__top { flex-direction: column; gap: 24px; }
}

/* --- Product card --- */
.product-page { padding: 32px 0 48px; }
.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}
.product-card__gallery {
  position: sticky;
  top: 100px;
  background: var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.product-card__gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-card__info { }
.product-card__title { font-size: 1.75rem; color: var(--blue-dark); margin: 0 0 12px; }
.product-card__stock { font-size: 0.95rem; color: var(--gray-600); margin-bottom: 8px; }
.product-card__rating { margin-bottom: 16px; color: #f59e0b; font-size: 1.1rem; }
.product-card__price { font-size: 1.75rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 8px; }
.product-card__article { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 20px; }
.product-card__qty { margin-bottom: 20px; }
.product-card__qty label { display: block; margin-bottom: 6px; font-weight: 500; }
.product-card__qty input { width: 100px; padding: 10px; border: 1px solid var(--gray-300); border-radius: var(--radius); font-size: 1rem; }
.product-card__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.product-tabs { margin-bottom: 48px; }
.product-tabs__head { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--gray-200); margin-bottom: 20px; }
.product-tabs__btn {
  padding: 12px 20px;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.product-tabs__btn:hover { color: var(--blue-dark); }
.product-tabs__btn_active { color: var(--blue-dark); border-bottom-color: var(--blue); }
.product-tabs__panel { display: none; padding: 16px 0; }
.product-tabs__panel_active { display: block; }
.product-chars-table { border-collapse: collapse; }
.product-chars-table td { padding: 8px 16px 8px 0; border-bottom: 1px solid var(--gray-100); }
.product-chars-table td:first-child { color: var(--gray-600); width: 140px; }
@media (max-width: 900px) {
  .product-card { grid-template-columns: 1fr; }
  .product-card__gallery { position: static; }
}

/* --- Modal --- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.modal_open {
  opacity: 1;
  visibility: visible;
}
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.modal__box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 24px;
}
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--gray-100);
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--gray-700);
}
.modal__close:hover { background: var(--gray-200); }
.modal__title { margin: 0 0 16px; font-size: 1.35rem; color: var(--blue-dark); }
.modal__products { margin-bottom: 16px; padding: 12px; background: var(--gray-50); border-radius: var(--radius); font-size: 0.9rem; }
.modal__products-title { margin: 0 0 8px; font-weight: 600; }
.modal__products-list { margin: 0; padding-left: 1.2rem; }
#b24-form-container { margin-top: 16px; }

/* --- Back to top --- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background 0.2s;
  cursor: pointer;
}
body.has-calculator-bar .back-to-top {
  bottom: 80px;
}
.back-to-top:hover {
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
}
.back-to-top_visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top__arrow {
  display: block;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 10px solid currentColor;
  margin-bottom: 4px;
}
