/* ================================================================
   K74 THEME — keramogranit74.local
   По образцу laparet.ru | Bootstrap 3 + Inter | PHP 8.3
   ================================================================ */

/* ─── ПЕРЕМЕННЫЕ ─────────────────────────────────────────────── */
:root {
  --c-yellow:       #FFB800;
  --c-yellow-dark:  #E6A800;
  --c-yellow-light: #FFF8E1;
  --c-dark:         #1a1a1a;
  --c-text:         #333333;
  --c-text-2:       #555555;
  --c-text-muted:   #888888;
  --c-white:        #ffffff;
  --c-bg:           #f5f5f5;
  --c-bg-section:   #f8f8f8;
  --c-border:       #e0e0e0;
  --c-border-light: #f0f0f0;

  --c-badge-new:    #ff4785;
  --c-badge-hit:    #ff7a00;
  --c-badge-sale:   #d32f2f;

  --shadow-sm:      0 1px 4px rgba(0,0,0,.07);
  --shadow-md:      0 2px 8px rgba(0,0,0,.10);
  --shadow-lg:      0 4px 20px rgba(0,0,0,.13);

  --r-sm:    4px;
  --r-md:    8px;
  --r-lg:    12px;
  --r-pill:  100px;
}

/* ─── БАЗА ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html,
body {
  margin: 0 !important;
  padding: 0 !important;
}

html {
  background: var(--c-white);
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.6;
  margin: 0;
}

a { color: var(--c-text); text-decoration: none; transition: color .18s; }
a:hover { color: var(--c-yellow); text-decoration: none; }

h1,h2,h3,h4,h5,h6 { font-weight: 700; color: var(--c-dark); line-height: 1.3; margin-top: 0; }
h1 { font-size: 26px; margin-bottom: 20px; }
h2 { font-size: 22px; margin-bottom: 16px; }
h3 { font-size: 18px; margin-bottom: 12px; }
h4 { font-size: 15px; margin-bottom: 8px; }

img { max-width: 100%; height: auto; }

/* ─── ВЕРХНЯЯ ПОЛОСА ─────────────────────────────────────────── */
#top {
  background: var(--c-dark);
  color: #aaa;
  margin: 0 !important;
  margin-top: 0 !important;
  padding: 0;
  min-height: 44px;
  border-bottom: none;
  position: relative;
  z-index: 3;
}
body > #top:first-child {
  margin-top: 0 !important;
}
#top .container {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 0;
  padding-bottom: 0;
}
#top, #top * { font-size: 12px !important; }
#top a { color: #aaa; }
#top a:hover { color: var(--c-yellow); }
#top-links { margin: 0 0 0 auto; }
#top-links .list-inline { margin: 0; }
#top-links .list-inline > li { padding: 0; }
#top-links .list-inline > li + li { margin-left: 12px; }
#top .btn-link,
#top-links li,
#top-links a { color: #aaa; padding: 0; }
#top-links a:hover { color: var(--c-yellow); }
#top .dropdown-menu {
  background: #222;
  border: 1px solid #333;
  border-radius: var(--r-md);
  padding: 6px;
}
#top .dropdown-menu a { color: #bbb; border-radius: var(--r-sm); }
#top .dropdown-menu a:hover { color: var(--c-yellow); background: rgba(255,255,255,.05); }
#top .dropdown-toggle { padding: 0 14px 0 0 !important; }
#top ul { margin: 0; }

/* Кнопка «Заказать звонок» в топ-баре */
.top-cta-btn {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid var(--c-yellow);
  border-radius: var(--r-sm);
  color: var(--c-yellow) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  white-space: nowrap;
  transition: background .18s, color .18s;
  line-height: 1.5;
}
.top-cta-btn:hover {
  background: var(--c-yellow);
  color: var(--c-dark) !important;
}

/* ─── ШАПКА ──────────────────────────────────────────────────── */
header {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
  margin: 0;
}
header .container {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Логотип */
#logo {
  flex-shrink: 0;
  margin: 0;
  line-height: 1;
}
#logo a { display: block; }
#logo img { height: 34px; width: auto; display: block; }
#logo h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-dark);
  margin: 0;
  letter-spacing: -.5px;
}
#logo h1 a { color: var(--c-dark); }
#logo h1 a:hover { color: var(--c-dark); }

/* Поиск */
#search {
  flex: 1 1 auto;
  max-width: 540px;
  margin: 0;
}
#search .input-group { display: flex; height: 40px; }
#search .form-control {
  height: 40px;
  font-size: 13px;
  border: 1px solid var(--c-border);
  border-right: none;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  box-shadow: none;
  background: var(--c-bg-section);
  color: var(--c-text);
  padding: 0 14px;
  font-family: 'Inter', sans-serif;
}
#search .form-control:focus {
  border-color: var(--c-yellow);
  background: var(--c-white);
  box-shadow: none;
  outline: none;
}
#search .input-group-btn .btn {
  height: 40px;
  width: 44px;
  background: var(--c-yellow);
  border: 1px solid var(--c-yellow);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--c-dark);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s;
  padding: 0;
}
#search .input-group-btn .btn:hover { background: var(--c-yellow-dark); border-color: var(--c-yellow-dark); }
#search .input-lg { font-size: 13px !important; }
#search .btn-lg { font-size: 15px !important; }

/* Правая часть шапки — обёртка */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Инфо «N салонов» */
.header-salons {
  font-size: 12px;
  color: var(--c-text-muted);
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
}
.header-salons strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-dark);
}

/* Избранное */
.header-wishlist {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--c-text-muted);
  font-size: 11px;
  text-decoration: none;
  transition: color .18s;
  line-height: 1;
}
.header-wishlist i { font-size: 22px; color: var(--c-dark); display: block; }
.header-wishlist:hover { color: var(--c-yellow); }
.header-wishlist:hover i { color: var(--c-yellow); }

/* Корзина */
#cart { margin: 0; }
#cart > .btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent !important;
  border: none !important;
  padding: 0;
  font-size: 12px;
  font-weight: 500;
  color: #7d858f !important;
  height: auto;
  box-shadow: none !important;
}
#cart > .btn:hover,
#cart > .btn:focus,
#cart > .btn:active {
  background: transparent !important;
  border: none !important;
  color: #202632 !important;
  box-shadow: none !important;
}

#cart > .btn .header-icon-btn__icon {
  width: 46px;
  height: 46px;
  border: 1px solid #dfe4ea;
  border-radius: 14px;
  background: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
  box-shadow: 0 8px 18px rgba(32, 40, 54, .06);
}

#cart > .btn .header-icon-btn__icon i {
  font-size: 20px;
  color: #202632 !important;
  transition: color .18s ease;
}

#cart > .btn:hover .header-icon-btn__icon,
#cart > .btn:focus .header-icon-btn__icon,
#cart > .btn:active .header-icon-btn__icon {
  background: #f5f7fa !important;
  border-color: #cfd6df !important;
  box-shadow: 0 10px 24px rgba(32, 40, 54, .1) !important;
}

#cart > .btn:hover .header-icon-btn__icon i,
#cart > .btn:focus .header-icon-btn__icon i,
#cart > .btn:active .header-icon-btn__icon i {
  color: #202632 !important;
}

/* Круглая иконка корзины */
.cart-icon-wrap {
  width: 38px;
  height: 38px;
  background: var(--c-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background .18s;
}
.cart-icon-wrap i { font-size: 18px; color: var(--c-white); }
.cart-icon-wrap .cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  background: var(--c-yellow);
  color: var(--c-dark);
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  font-family: 'Inter', sans-serif;
}
#cart > .btn span#cart-total { font-size: 12px; }
#cart > .btn.dropdown-toggle:after { display: none; }

#cart .dropdown-menu {
  background: var(--c-white);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  right: 0;
  left: auto;
  min-width: 340px;
  padding: 16px;
}
#cart .dropdown-menu table { margin-bottom: 8px; font-size: 13px; }
#cart .dropdown-menu li > div { min-width: auto; padding: 0; }
#cart .dropdown-menu p { font-size: 13px; color: var(--c-text-muted); text-align: center; padding: 8px 0; }
#cart .dropdown-menu a { color: var(--c-yellow); font-weight: 600; }
#cart .dropdown-menu a:hover { color: var(--c-yellow-dark); }

/* ─── НАВИГАЦИЯ ──────────────────────────────────────────────── */
.menu-bar {
  background: var(--c-yellow);
  border-bottom: none;
  margin-bottom: 24px;
}
.menu-bar .container {
  position: relative;
}
#menu {
  background: transparent;
  min-height: 48px;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
#menu .container { min-height: 48px; display: flex; align-items: center; }
#menu .navbar-header { display: flex; align-items: center; }
#menu .collapse.navbar-collapse { padding: 0; }
#menu .nav > li > a {
  color: var(--c-dark);
  font-weight: 600;
  font-size: 14px;
  padding: 13px 16px;
  min-height: auto;
  line-height: 1.4;
  transition: background .18s;
}
#menu .nav > li > a:hover,
#menu .nav > li.open > a {
  background: rgba(0,0,0,.12);
  color: var(--c-dark);
}
#menu .dropdown-menu {
  background: var(--c-white);
  border: none;
  border-top: 3px solid var(--c-yellow);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--r-md) var(--r-md);
  padding: 8px;
  min-width: 220px;
}
#menu .dropdown-inner a {
  color: var(--c-text);
  font-weight: 500;
  font-size: 13px;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  min-width: 200px;
  display: block;
}
#menu .dropdown-inner a:hover {
  color: var(--c-dark);
  background: var(--c-yellow-light);
}
#menu li.dropdown > a::after { color: inherit; }

/* Кнопка «Каталог товаров» */
.nav-catalog-btn {
  background: rgba(0,0,0,.12) !important;
  border-radius: var(--r-sm) !important;
  font-weight: 700 !important;
  margin-right: 4px;
}
.nav-catalog-btn:hover { background: rgba(0,0,0,.2) !important; }

/* CTA кнопка в меню */
.nav-cta-btn {
  margin-left: auto !important;
  background: var(--c-dark) !important;
  color: var(--c-white) !important;
  border-radius: var(--r-sm) !important;
  padding: 10px 18px !important;
  font-weight: 700 !important;
  white-space: nowrap;
  font-size: 13px !important;
  transition: background .18s !important;
}
.nav-cta-btn:hover { background: #333 !important; color: var(--c-white) !important; }

#menu .btn-navbar {
  background: rgba(0,0,0,.15);
  border: none;
  color: var(--c-dark);
  font-size: 18px;
}
#menu .see-all { color: var(--c-dark); font-weight: 600; }

/* ─── ХЛЕБНЫЕ КРОШКИ ─────────────────────────────────────────── */
.breadcrumb {
  background: transparent;
  padding: 6px 0 16px;
  margin: 0;
  font-size: 12px;
  border-radius: 0;
}
.breadcrumb > li { color: var(--c-text-muted); }
.breadcrumb > li a { color: var(--c-text-muted); }
.breadcrumb > li a:hover { color: var(--c-yellow); }
.breadcrumb > li + li::before { content: '›'; padding: 0 5px; color: #ccc; }
.breadcrumb > li:last-child { color: var(--c-text); }

/* ─── БОКОВАЯ КОЛОНКА ────────────────────────────────────────── */
#column-left { padding-right: 20px; }

.list-group a {
  border: none !important;
  border-bottom: 1px solid var(--c-border-light) !important;
  border-radius: 0 !important;
  padding: 9px 0;
  font-size: 13px;
  color: var(--c-text);
  background: transparent !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-shadow: none !important;
  box-shadow: none !important;
}
.list-group a:hover { color: var(--c-yellow); border-bottom-color: var(--c-border-light) !important; }
.list-group a.active,
.list-group a.active:hover {
  color: #2e333b !important;
  font-weight: 700;
  background: #f3f4f6 !important;
  border-left: 3px solid #5a616b !important;
  padding-left: 10px;
}
.list-group .list-group-item.active,
.list-group .list-group-item.active:hover,
.list-group .list-group-item.active:focus {
  color: #2e333b !important;
  font-weight: 700 !important;
  background: #f3f4f6 !important;
  border-color: transparent transparent var(--c-border-light) #5a616b !important;
  border-left: 3px solid #5a616b !important;
  padding-left: 10px !important;
  text-shadow: none !important;
  box-shadow: none !important;
}
#product-category > .container:first-child,
#product-collection-list > .container:first-child,
#product-collection > .container:first-child {
  margin-top: 0;
  padding-top: 0;
}
#product-category .breadcrumb,
#product-collection-list .breadcrumb,
#product-collection .breadcrumb {
  padding-top: 6px;
  padding-bottom: 16px;
  margin-top: 0;
  margin-bottom: 0;
}
.list-group-item:first-child { border-radius: 0 !important; }
.list-group-item:last-child { border-radius: 0 !important; }
.panel { border-radius: var(--r-md) !important; border: 1px solid var(--c-border); box-shadow: none; }
.panel-heading { background: var(--c-dark) !important; color: var(--c-white) !important; border-radius: var(--r-md) var(--r-md) 0 0 !important; }
.panel-heading a { color: var(--c-white) !important; }

/* ─── КАРТОЧКА ТОВАРА ────────────────────────────────────────── */
.product-thumb {
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-white);
  padding: 0;
  margin-bottom: 16px;
  transition: box-shadow .2s, transform .2s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  height: calc(100% - 16px);
}
.product-thumb:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Изображение */
.product-thumb .image {
  position: relative;
  background: var(--c-bg-section);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}
.product-thumb .image a { display: block; width: 100%; height: 100%; }
.product-thumb .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
  display: block;
  margin: 0;
}
.product-thumb:hover .image img { transform: scale(1.04); }

/* Значки */
.product-thumb .product-sticker {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}
.k74-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  line-height: 1.5;
  white-space: nowrap;
}
.k74-badge-new  { background: var(--c-badge-new); color: #fff; }
.k74-badge-hit  { background: var(--c-badge-hit); color: #fff; }
.k74-badge-sale { background: var(--c-badge-sale); color: #fff; }

/* Кнопка избранного */
.btn-wishlist-card {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: color .18s, background .18s;
  padding: 0;
}
.btn-wishlist-card:hover { color: #e53935; background: #fff; }

/* Тег поверхности */
.product-thumb__surface-tag {
  display: inline-block;
  background: rgba(0,0,0,.05);
  color: var(--c-text-2);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  margin: 8px 12px 0;
  align-self: flex-start;
}

/* Тело карточки */
.product-thumb .caption {
  padding: 8px 12px 12px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-height: 140px;
}
.product-thumb__meta {
  font-size: 11px;
  color: var(--c-text-muted);
  margin: 0 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-thumb h4 { font-size: 13px; font-weight: 600; margin: 0 0 8px; line-height: 1.4; }
.product-thumb h4 a {
  color: var(--c-dark);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-thumb h4 a:hover { color: var(--c-yellow); }
.product-thumb .caption > p { display: none; } /* скрываем описание в карточке */

/* Цена */
.product-thumb .price {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-dark);
  margin: auto 0 6px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}
.product-thumb .price-new { color: var(--c-badge-sale); }
.product-thumb .price-old { font-size: 12px; font-weight: 400; color: var(--c-text-muted); text-decoration: line-through; }
.product-thumb .price-tax { display: none; }

/* Кнопки */
.product-thumb .button-group {
  display: flex;
  gap: 8px;
  max-width: none;
  overflow: visible;
  border: none;
  margin-top: 0;
}
.product-thumb .button-group button {
  height: 34px;
  border: none;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
  padding: 0 12px;
  white-space: nowrap;
}
/* «Подробнее» — первая кнопка */
.product-thumb .button-group button:first-child {
  flex: 0 0 auto;
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.product-thumb .button-group button:first-child:hover {
  border-color: var(--c-text);
  color: var(--c-dark);
}
/* «В корзину» — вторая кнопка */
.product-thumb .button-group button:first-child + button {
  flex: 1 1 auto;
  background: var(--c-yellow);
  color: var(--c-dark);
  border: none;
}
.product-thumb .button-group button:first-child + button:hover { background: var(--c-yellow-dark); }
/* Третья кнопка (сравнение) */
.product-thumb .button-group button + button + button {
  flex: 0 0 auto;
  width: 34px;
  padding: 0;
  background: var(--c-bg);
  color: var(--c-text-muted);
  border: none;
}
.product-thumb .button-group button + button + button:hover { color: var(--c-yellow); background: var(--c-yellow-light); }

/* Вид списка — product-list */
.product-list .product-thumb {
  flex-direction: row;
  height: auto;
}
.product-list .product-thumb .image {
  width: 180px;
  flex-shrink: 0;
  aspect-ratio: auto;
  height: auto;
  min-height: 180px;
}
.product-list .product-thumb .caption {
  min-height: 0;
  padding: 16px;
}

/* ─── КАРТОЧКА КОЛЛЕКЦИИ ─────────────────────────────────────── */
.collection-card {
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-white);
  transition: box-shadow .2s, transform .2s;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  height: calc(100% - 16px);
}
.collection-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.collection-card:hover .collection-card__img { transform: scale(1.04); }

.collection-card__image-wrap {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--c-bg-section);
  display: block;
}
.collection-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.collection-card__body { padding: 14px; flex: 1 1 auto; display: flex; flex-direction: column; }
.collection-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-dark);
  display: block;
  margin-bottom: 6px;
  line-height: 1.3;
}
.collection-card__name:hover { color: var(--c-yellow); }
.collection-card__desc {
  font-size: 12px;
  color: var(--c-text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1 1 auto;
}
.collection-card__price {
  font-size: 13px;
  color: var(--c-text-muted);
  margin-bottom: 12px;
  margin-top: auto;
}
.collection-card__price strong { font-size: 15px; font-weight: 700; color: var(--c-dark); }
.collection-card__btn {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text);
  background: transparent;
  cursor: pointer;
  transition: border-color .18s, color .18s;
  font-family: 'Inter', sans-serif;
}
.collection-card__btn:hover { border-color: var(--c-dark); color: var(--c-dark); }

/* ─── КНОПКИ ─────────────────────────────────────────────────── */
#tab-popular .row {
  display: flex;
  flex-wrap: wrap;
}

#tab-popular [class*="col-"] {
  display: flex;
}

#tab-popular .collection-card {
  width: 100%;
}

@media (max-width: 767px) {
  .collection-catalog {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .collection-filter__price-range {
    grid-template-columns: 1fr;
  }

  .collection-catalog__sidebar {
    position: static;
  }

  .collection-filter {
    padding: 16px 14px;
    border-radius: 18px;
  }

  #tab-popular .row {
    display: block;
  }

  #tab-popular [class*="col-"] {
    display: block;
  }
}

.btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  border-radius: var(--r-sm);
  border: none;
  font-size: 13px;
  transition: background .18s, color .18s, border-color .18s;
}
.btn-primary,
.btn-warning {
  background: var(--c-yellow) !important;
  color: var(--c-dark) !important;
  border-color: var(--c-yellow) !important;
}
.btn-primary:hover, .btn-warning:hover,
.btn-primary:active, .btn-warning:active,
.btn-primary:focus, .btn-warning:focus {
  background: var(--c-yellow-dark) !important;
  border-color: var(--c-yellow-dark) !important;
  color: var(--c-dark) !important;
  box-shadow: none !important;
}
.btn-dark {
  background: var(--c-dark);
  color: var(--c-white);
  border: none;
}
.btn-dark:hover { background: #333; color: var(--c-white); }
.btn-default {
  background: var(--c-white);
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.btn-default:hover { background: var(--c-bg); color: var(--c-dark); border-color: #ccc; box-shadow: none; }
.btn-inverse {
  background: var(--c-dark);
  color: var(--c-white);
}
.btn-inverse:hover { background: #333; color: var(--c-white); }
.btn-lg { padding: 11px 22px; font-size: 14px; }
.btn-xl {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--r-sm);
}
.btn-block { display: block; width: 100%; text-align: center; }

/* ─── ТЕГИ ФИЛЬТРА (размеры, типы) ──────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.filter-tag {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--c-text);
  cursor: pointer;
  transition: all .18s;
  text-decoration: none;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}
.filter-tag:hover,
.filter-tag.active {
  background: var(--c-yellow-light);
  border-color: var(--c-yellow);
  color: var(--c-dark);
}
.filter-tag.active { background: var(--c-yellow); font-weight: 600; }

.collection-catalog {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.collection-catalog--products {
  display: block;
}

.collection-catalog--category {
  display: block;
}

.product-page-layout {
  display: block;
}

.product-page-layout.collection-page-layout {
  display: block;
  grid-template-columns: none;
  gap: 0;
}

.product-page-layout .collection-page-layout__main {
  width: 100%;
}

.collection-catalog__sidebar {
  position: sticky;
  top: 24px;
}

.collection-page-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.collection-page-layout__sidebar {
  position: sticky;
  top: 24px;
}

.collection-page-layout__main {
  min-width: 0;
}

.collection-catalog__content--wide {
  width: 100%;
}

.collection-filter {
  background: linear-gradient(180deg, #fcfbf8 0%, #f6f2ea 100%);
  border: 1px solid rgba(34, 34, 34, .08);
  border-radius: 22px;
  padding: 20px 18px;
  box-shadow: 0 14px 38px rgba(34, 34, 34, .07);
}

.collection-filter__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.collection-filter__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-dark);
}

.collection-filter__reset {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-muted);
}

.collection-filter__reset:hover {
  color: var(--c-dark);
}

.collection-filter__section + .collection-filter__section,
.collection-filter__group--search + .collection-filter__section,
.collection-filter__section + .collection-filter__actions {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(34, 34, 34, .08);
}

.collection-filter__section {
  display: block;
}

.collection-filter__section[open] .collection-filter__summary {
  color: var(--c-dark);
}

.collection-filter__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  margin: 0;
  color: #3b3129;
}

.collection-filter__summary::-webkit-details-marker {
  display: none;
}

.collection-filter__summary-text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.collection-filter__summary-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(34, 34, 34, .12);
  background: rgba(255, 255, 255, .75);
  position: relative;
  flex: 0 0 18px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.collection-filter__summary-icon:before,
.collection-filter__summary-icon:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 1.5px;
  background: #7b6758;
  border-radius: 999px;
  transform-origin: center;
}

.collection-filter__summary-icon:before {
  transform: translate(-82%, -50%) rotate(45deg);
}

.collection-filter__summary-icon:after {
  transform: translate(-18%, -50%) rotate(-45deg);
}

.collection-filter__section[open] .collection-filter__summary-icon {
  transform: rotate(180deg);
  border-color: rgba(201, 160, 79, .4);
  background: rgba(255, 248, 235, .95);
}

.collection-filter__group {
  margin-top: 14px;
}

.collection-filter__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--c-dark);
  margin-bottom: 12px;
}

.collection-filter__search {
  height: 42px;
  border-radius: 12px;
  border-color: rgba(34, 34, 34, .12);
  box-shadow: none;
}

.collection-filter__options {
  display: grid;
  gap: 10px;
}

.collection-filter__price-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.collection-filter__price-field {
  display: grid;
  gap: 6px;
  margin: 0;
}

.collection-filter__price-field span {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8b7763;
}

.collection-filter__price-field .form-control {
  height: 42px;
  border-radius: 12px;
  border: 1px solid #d8c7b7;
  box-shadow: none;
}

.collection-filter__price-hint {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #8b7763;
}

.collection-filter__options--scroll {
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

.collection-filter__check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--c-text);
  margin: 0;
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, .62);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
  cursor: pointer;
}

.collection-filter__check:hover {
  background: rgba(255, 250, 241, .98);
  border-color: rgba(201, 160, 79, .22);
}

.collection-filter__check input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border-radius: 5px;
  border: 1px solid #cab29b;
  background: #fff;
  position: relative;
  flex: 0 0 18px;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.collection-filter__check input:checked {
  background: var(--c-yellow);
  border-color: var(--c-yellow);
  box-shadow: 0 0 0 3px rgba(201, 160, 79, .18);
}

.collection-filter__check input:checked:after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #2b231c;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.collection-filter__check input:checked + span {
  color: var(--c-dark);
  font-weight: 600;
}

.collection-filter__check small {
  margin-left: auto;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(34, 34, 34, .05);
  font-size: 12px;
  font-weight: 700;
  color: #776658;
}

.collection-filter__actions {
  margin-top: 20px;
}

.collection-filter__actions .btn {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
}

.collection-catalog__item {
  display: flex;
}

.collection-catalog__item .product-thumb {
  width: 100%;
}

.collection-catalog__btn {
  background: #ececec;
  border: 1px solid #d8d8d8;
  color: #111111;
  font-weight: 600;
}

.collection-catalog__btn:hover,
.collection-catalog__btn:focus {
  background: #4a4a4a;
  border-color: #4a4a4a;
  color: #ffffff;
}

/* ─── ТУЛБАР КАТАЛОГА ────────────────────────────────────────── */
.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
#compare-total {
  color: #4b4f56;
}
#compare-total:hover,
#compare-total:focus {
  color: #23272f;
}
.catalog-type-toggle {
  display: flex;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.catalog-type-toggle a {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-muted);
  text-decoration: none;
  transition: background .18s, color .18s;
  border-right: 1px solid var(--c-border);
}
.catalog-type-toggle a:last-child { border-right: none; }
.catalog-type-toggle a.active,
.catalog-type-toggle a:hover {
  background: var(--c-yellow);
  color: var(--c-dark);
}
.catalog-view-btns {
  display: flex;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.catalog-view-btns button {
  width: 36px;
  height: 34px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--c-border);
  color: var(--c-text-muted);
  cursor: pointer;
  transition: background .18s, color .18s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.catalog-view-btns button:last-child { border-right: none; }
.catalog-view-btns button.active,
.catalog-view-btns button:hover { background: var(--c-yellow-light); color: var(--c-dark); }

.catalog-compare { margin-left: 0; }
.catalog-compare a { font-size: 12px; color: var(--c-text-muted); }
.catalog-compare a:hover { color: var(--c-yellow); }

.catalog-sort { margin-left: auto; }
.catalog-sort .input-group-addon { font-size: 12px; background: var(--c-bg); border-color: var(--c-border); color: var(--c-text-muted); }
.catalog-sort .form-control { font-size: 12px; border-color: var(--c-border); box-shadow: none; height: 34px; }

/* ─── ПАГИНАЦИЯ ──────────────────────────────────────────────── */
.pagination { margin: 8px 0; }
.pagination > li > a,
.pagination > li > span {
  color: var(--c-text);
  border-color: var(--c-border);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: var(--r-sm) !important;
  margin: 0 2px;
  transition: background .18s, border-color .18s;
  font-family: 'Inter', sans-serif;
}
.pagination > li > a:hover {
  background: var(--c-yellow-light);
  border-color: var(--c-yellow);
  color: var(--c-dark);
}
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover {
  background: var(--c-yellow) !important;
  border-color: var(--c-yellow) !important;
  color: var(--c-dark) !important;
  font-weight: 700;
}

/* ─── ВКЛАДКИ ────────────────────────────────────────────────── */
.nav-tabs {
  border-bottom: 2px solid var(--c-border);
  margin-bottom: 24px;
}
.nav-tabs > li > a {
  color: var(--c-text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: 0;
  transition: color .18s;
}
.nav-tabs > li > a:hover { color: var(--c-dark); background: transparent; border-color: transparent; }
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  color: var(--c-dark);
  font-weight: 700;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--c-yellow);
}

/* Вкладки страницы коллекции */
.collection-nav-bar {
  margin: 0 0 28px;
}
.collection-nav-bar .nav-tabs,
.collection-nav-tabs {
  display: flex !important;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  border-bottom: none;
  margin: 0;
  padding: 10px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.95) 0%, rgba(255,255,255,.72) 28%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #fcfcfa 0%, #f2efe7 100%);
  border: 1px solid rgba(34,34,34,.08);
  border-radius: 20px;
  box-shadow:
    0 16px 36px rgba(34,34,34,.08),
    inset 0 1px 0 rgba(255,255,255,.85);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(34,34,34,.18) transparent;
}
.collection-nav-bar .nav-tabs > li,
.collection-nav-tabs > li {
  float: none !important;
  display: block !important;
  margin: 0;
  flex: 0 0 auto;
}
.collection-nav-bar .nav-tabs > li > a,
.collection-nav-tabs > li > a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #4a4740;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .01em;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(255,255,255,.45);
  margin: 0;
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s, transform .18s;
  backdrop-filter: blur(3px);
}
.collection-nav-bar .nav-tabs > li > a:hover,
.collection-nav-bar .nav-tabs > li > a:focus {
  color: var(--c-dark);
  background: rgba(255,191,62,.16);
  border-color: rgba(255,191,62,.38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.collection-nav-bar .nav-tabs > li.active > a,
.collection-nav-bar .nav-tabs > li.active > a:hover,
.collection-nav-bar .nav-tabs > li.active > a:focus {
  color: var(--c-dark);
  background: linear-gradient(180deg, #ffd36f 0%, var(--c-yellow) 100%);
  border: 1px solid var(--c-yellow);
  box-shadow:
    0 10px 22px rgba(255,191,62,.34),
    inset 0 1px 0 rgba(255,255,255,.55);
  transform: translateY(-1px);
}
.collection-nav-bar .nav-tabs > li > a i {
  font-size: 14px;
  color: rgba(34,34,34,.72);
}
.collection-nav-bar .nav-tabs > li.active > a i {
  color: var(--c-dark);
}
.collection-nav-bar .nav-tabs::-webkit-scrollbar {
  height: 6px;
}
.collection-nav-bar .nav-tabs::-webkit-scrollbar-track {
  background: transparent;
}
.collection-nav-bar .nav-tabs::-webkit-scrollbar-thumb {
  background: rgba(34,34,34,.18);
  border-radius: 999px;
}

@media (max-width: 767px) {
  .collection-nav-bar .nav-tabs,
  .collection-nav-tabs {
    gap: 8px;
    padding: 8px;
    border-radius: 16px;
  }

  .collection-nav-bar .nav-tabs > li > a,
  .collection-nav-tabs > li > a {
    padding: 11px 15px;
    font-size: 13px;
  }
}

/* ─── СТРАНИЦА КОЛЛЕКЦИИ ─────────────────────────────────────── */
.collection-hero {
  display: flex;
  gap: 40px;
  margin-bottom: 32px;
  align-items: flex-start;
}
.collection-hero__gallery { flex: 0 0 52%; max-width: 52%; }
.collection-hero__main {
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--c-bg-section);
  aspect-ratio: 4 / 3;
  display: block;
}
.collection-hero__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.collection-hero__thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.collection-hero__thumb {
  width: 68px;
  height: 68px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .18s;
  flex-shrink: 0;
  display: block;
}
.collection-hero__thumb.active,
.collection-hero__thumb:hover { border-color: var(--c-yellow); }
.collection-hero__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.collection-hero__info { flex: 1 1 auto; }
.collection-hero__name { font-size: 30px; font-weight: 700; color: var(--c-dark); margin: 0 0 10px; }
.collection-hero__price { font-size: 16px; color: var(--c-text-muted); margin-bottom: 20px; }
.collection-hero__price strong { font-size: 24px; font-weight: 700; color: var(--c-dark); }

.collection-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
}
.collection-benefit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.collection-benefit__icon { font-size: 22px; color: var(--c-text-muted); flex-shrink: 0; margin-top: 1px; }
.collection-benefit__text { font-size: 12px; color: var(--c-text-muted); line-height: 1.4; font-weight: 500; }

/* Заголовок группы продуктов в коллекции */
.product-group-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-dark);
  margin: 24px 0 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--c-yellow);
  display: inline-block;
}

/* ─── КАРТОЧКА ТОВАРА — СТРАНИЦА ТОВАРА ──────────────────────── */
.product-page-hero {
  display: flex;
  gap: 40px;
  margin-bottom: 32px;
  align-items: flex-start;
}
.product-page-gallery { flex: 0 0 42%; max-width: 42%; }

/* Основное изображение */
.product-main-image {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-bg-section);
  margin-bottom: 10px;
  position: relative;
}
.product-main-image .thumbnail {
  display: block;
  border: none;
  border-radius: var(--r-md);
  padding: 0;
  overflow: hidden;
}
.product-main-image .thumbnail img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
}

/* Миниатюры */
.product-thumb-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}
.product-thumb-list .image-additional { max-width: none; }
.product-thumb-list .image-additional a {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color .18s;
  padding: 0;
  margin-bottom: 0;
}
.product-thumb-list .image-additional a:hover { border-color: var(--c-yellow); }
.product-thumb-list .image-additional a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
}

/* Инфо-панель товара */
.product-page-info { flex: 1 1 auto; }
.product-page-info.sticky { position: sticky; top: 16px; }

.product-page-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-dark);
  margin: 0 0 14px;
  line-height: 1.35;
}
.product-page-meta { margin-bottom: 14px; font-size: 13px; color: var(--c-text-muted); }
.product-page-meta a { color: var(--c-text-muted); }
.product-page-meta a:hover { color: var(--c-yellow); }

/* Цена на странице товара */
.product-page__price { margin: 0 0 12px; }
.product-page__price h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--c-dark);
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.product-page__price .price-unit { font-size: 16px; font-weight: 400; color: var(--c-text-muted); }
.product-page__price .price-new { color: var(--c-badge-sale); font-size: 28px; }
.product-page__price .price-old {
  font-size: 16px;
  color: var(--c-text-muted);
  text-decoration: line-through;
  font-weight: 400;
}

/* Кол-во и кнопка добавления */
.product-page__qty-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.product-page__qty-btn label { display: none; }
.product-page__qty-btn input[name="quantity"] {
  width: 72px;
  height: 46px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  outline: none;
  box-shadow: none;
}
.product-page__qty-btn input[name="quantity"]:focus { border-color: var(--c-yellow); }
#button-cart {
  flex: 1 1 auto;
  height: 46px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--c-yellow) !important;
  color: var(--c-dark) !important;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background .18s;
  letter-spacing: .2px;
  white-space: nowrap;
}
#button-cart:hover { background: var(--c-yellow-dark) !important; }
#button-cart i { font-size: 16px; }

/* Кнопки wishlist и compare */
.product-actions-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.product-actions-bar .btn {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 0 14px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
}
.product-actions-bar .btn:hover { color: var(--c-yellow); border-color: var(--c-yellow); background: var(--c-yellow-light); }

/* Таблица характеристик */
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--c-border-light); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table th {
  width: 42%;
  padding: 9px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-muted);
  vertical-align: top;
}
.specs-table td {
  padding: 9px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-dark);
  vertical-align: top;
}
.specs-group-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--c-text-muted);
  padding: 14px 0 6px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 4px;
}

/* ─── CTA БЛОК 3D/VR ─────────────────────────────────────────── */
.cta-3d-block {
  background: var(--c-dark);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  margin: 40px 0;
  min-height: 220px;
}
.cta-3d-block__content {
  padding: 40px 48px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta-3d-block__title {
  font-size: 26px;
  font-weight: 700;
  color: var(--c-white);
  margin: 0 0 8px;
  line-height: 1.3;
}
.cta-3d-block__title span { color: var(--c-yellow); }
.cta-3d-block__subtitle {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  margin: 0 0 24px;
  max-width: 400px;
  line-height: 1.6;
}
.cta-3d-block__image {
  flex: 0 0 36%;
  max-width: 36%;
  overflow: hidden;
}
.cta-3d-block__image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ─── КАРУСЕЛЬ / СЛАЙДЕР КОЛЛЕКЦИЙ ──────────────────────────── */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-head h2, .section-head h3 { margin: 0; }
.section-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}
.section-nav-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  background: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s, border-color .18s;
  font-size: 15px;
  color: var(--c-text);
  padding: 0;
  font-family: 'Inter', sans-serif;
}
.section-nav-btn:hover { background: var(--c-yellow); border-color: var(--c-yellow); color: var(--c-dark); }

/* Карточка в карусели популярных коллекций */
.pop-collection-card { text-align: left; display: block; color: var(--c-text); }
.pop-collection-card__image {
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  margin-bottom: 10px;
  background: var(--c-bg-section);
}
.pop-collection-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.pop-collection-card:hover .pop-collection-card__image img { transform: scale(1.04); }
.pop-collection-card__label { font-size: 11px; color: var(--c-text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .4px; }
.pop-collection-card__name { font-size: 14px; font-weight: 600; color: var(--c-dark); }
.pop-collection-card:hover .pop-collection-card__name { color: var(--c-yellow); }

/* ─── ГЛАВНАЯ — СЕКЦИИ ───────────────────────────────────────── */
#common-home {
  padding-left: 15px;
  padding-right: 15px;
}
#common-home #content {
  padding-left: 15px;
  padding-right: 15px;
}

.home-section { padding: 40px 0; }
.home-section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--c-dark);
  text-align: center;
  margin-bottom: 28px;
}
.home-section-title em { font-style: normal; color: var(--c-yellow); }

/* Преимущества */
.home-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 40px;
}
.home-feature { display: flex; align-items: flex-start; gap: 12px; }
.home-feature__icon { font-size: 24px; color: var(--c-yellow); flex-shrink: 0; margin-top: 2px; }
.home-feature__title { font-size: 13px; font-weight: 600; color: var(--c-dark); margin-bottom: 3px; }
.home-feature__text { font-size: 12px; color: var(--c-text-muted); line-height: 1.4; }

/* ─── ПОДВАЛ ─────────────────────────────────────────────────── */
footer {
  background: var(--c-dark);
  color: #aaa;
  margin-top: 0;
  padding: 40px 0 0;
  border-top: 3px solid var(--c-yellow);
}
footer h5 {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-white);
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: .6px;
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { padding: 0 0 7px; }
footer a { color: #aaa; font-size: 13px; }
footer a:hover { color: var(--c-yellow); text-decoration: none; }
footer hr { border-top: 1px solid #2a2a2a; margin: 20px 0; }

.footer-bottom {
  background: #111;
  padding: 14px 0;
  margin-top: 32px;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-legal { font-size: 11px; color: #555; line-height: 1.5; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2a2a2a;
  color: #777;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: background .18s, color .18s;
}
.footer-social a:hover { background: var(--c-yellow); color: var(--c-dark); }

.footer-contacts { margin-top: 4px; }
.footer-phone {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-white);
  display: block;
  margin-bottom: 4px;
}
.footer-hours { font-size: 12px; color: #888; margin-bottom: 14px; }
.footer-btn-group { display: flex; flex-direction: column; gap: 8px; }
.footer-btn-group .btn {
  font-size: 12px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-weight: 600;
}
.footer-btn-outline {
  background: transparent;
  border: 1px solid #444;
  color: #ccc;
}
.footer-btn-outline:hover { border-color: var(--c-yellow); color: var(--c-yellow); background: transparent; }

/* ─── ВСПОМОГАТЕЛЬНЫЕ ────────────────────────────────────────── */
.text-accent { color: var(--c-yellow); }
.text-muted-k { color: var(--c-text-muted); }
.bg-light-k { background: var(--c-bg-section); }
.section-divider { border-bottom: 1px solid var(--c-border); margin: 28px 0; }

/* Рейтинг */
.rating .fa-star-o { color: #ddd; font-size: 14px; }
.rating .fa-star   { color: var(--c-yellow); font-size: 14px; }
.rating .fa-stack  { font-size: 7px; }

/* Alert */
.alert { border-radius: var(--r-md); font-size: 13px; }
.alert-success { background: #e8f5e9; border-color: #4caf50; color: #2e7d32; }
.alert-danger  { background: #ffebee; border-color: #ef9a9a; color: #c62828; }
.alert-info    { background: var(--c-yellow-light); border-color: var(--c-yellow); color: var(--c-dark); }

/* Cookie */
.cookie-notification { background: rgba(0,0,0,.82); }
.cookie-notification__btn { background: var(--c-yellow) !important; color: var(--c-dark) !important; border: none; }

/* ─── АДАПТИВ ─────────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .collection-hero__gallery { flex: 0 0 48%; max-width: 48%; }
  .product-page-gallery { flex: 0 0 44%; max-width: 44%; }
}

@media (max-width: 991px) {
  .collection-hero, .product-page-hero { flex-direction: column; gap: 24px; }
  .collection-hero__gallery,
  .product-page-gallery { flex: none; max-width: 100%; width: 100%; }
  .product-page-info.sticky { position: static; }
  .cta-3d-block__image { display: none; }
  .cta-3d-block__content { padding: 32px; }
  .collection-benefits { grid-template-columns: 1fr 1fr; }
  #column-left { padding-right: 0; margin-bottom: 20px; }
  .home-features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  h1 { font-size: 20px; }
  h2 { font-size: 18px; }
  header .container { flex-wrap: wrap; gap: 10px; }
  #search { flex: 1 1 100%; max-width: 100%; order: 3; }
  .header-right { margin-left: auto; }
  .collection-hero__name { font-size: 22px; }
  .product-page-name { font-size: 18px; }
  .product-page__price h2 { font-size: 22px; }
  .product-page__qty-btn { flex-wrap: wrap; }
  .collection-benefits { grid-template-columns: 1fr; }
  .cta-3d-block__content { padding: 24px; }
  .cta-3d-block__title { font-size: 20px; }
  .home-features { grid-template-columns: 1fr 1fr; }
  .footer-bottom .container { justify-content: center; text-align: center; }
  .catalog-toolbar { gap: 8px; }
  .catalog-sort { margin-left: 0; width: 100%; }
}

@media (max-width: 480px) {
  .home-features { grid-template-columns: 1fr; }
  .filter-bar { gap: 4px; }
  .filter-tag { font-size: 11px; padding: 4px 10px; }
}

@media (min-width: 768px) {
  #menu .dropdown:hover .dropdown-menu { display: block; }
  .product-list .product-thumb .image { float: left; }
}

@media (min-width: 1440px) {
  .container { width: 1380px; }
}

/* ================================================================
   K74 ADDITIONS — классы для новых шаблонов
   ================================================================ */

/* ─── ВЕРХНЯЯ ПОЛОСА — новые классы ─────────────────────────── */
.top-left-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
}
.top-phone {
  color: #aaa !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  white-space: nowrap;
}
.top-phone:hover { color: var(--c-yellow) !important; }
.top-phone i { margin-right: 4px; }

/* ─── ШАПКА — новые классы ───────────────────────────────────── */
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.header-logo { flex-shrink: 0; }
.header-search { flex: 1 1 auto; }
.header-actions {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex-shrink: 0;
  margin-left: auto;
}
.header-icon-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #7d858f;
  font-size: 12px;
  text-decoration: none;
  transition: color .18s ease;
  line-height: 1.1;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  min-width: 92px;
}
.header-icon-btn__icon {
  width: 46px;
  height: 46px;
  border: 1px solid #dfe4ea;
  border-radius: 14px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
  box-shadow: 0 8px 18px rgba(32, 40, 54, .06);
}
.header-icon-btn__icon i {
  font-size: 20px;
  color: #202632;
  transition: color .18s ease;
}
.header-icon-btn__label {
  color: inherit;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}
.header-icon-btn:hover,
.header-actions #cart > .btn:hover {
  color: #202632;
}
.header-icon-btn:hover .header-icon-btn__icon,
.header-actions #cart > .btn:hover .header-icon-btn__icon {
  background: #f5f7fa;
  border-color: #cfd6df;
  box-shadow: 0 10px 24px rgba(32, 40, 54, .1);
}
.header-icon-btn:hover .header-icon-btn__icon i,
.header-actions #cart > .btn:hover .header-icon-btn__icon i {
  color: #202632;
}

/* ─── ПЕРЕКЛЮЧАТЕЛЬ КОЛЛЕКЦИИ / ТОВАРЫ ──────────────────────── */
.menu-switcher {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: linear-gradient(180deg, #ffe39a 0%, #f2bd3f 100%);
  border: 1px solid rgba(131, 90, 8, .18);
  border-radius: 18px;
  padding: 5px;
  gap: 0;
  flex-shrink: 0;
  margin-right: 4px;
  min-width: 246px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 10px 24px rgba(122, 84, 12, .18);
}
.menu-switcher__thumb {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(50% - 5px);
  height: calc(100% - 10px);
  border-radius: 13px;
  background: linear-gradient(135deg, #2b2f36 0%, #555f6d 100%);
  box-shadow: 0 10px 24px rgba(34, 39, 46, .26), inset 0 1px 0 rgba(255,255,255,.12);
  transition: transform .24s ease, box-shadow .24s ease;
  z-index: 0;
}
.menu-switcher.is-products .menu-switcher__thumb {
  transform: translateX(100%);
}
.menu-switcher__btn {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 11px 18px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(55, 38, 5, .78) !important;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
  white-space: nowrap;
  line-height: 1.4;
  letter-spacing: .01em;
  text-shadow: 0 1px 0 rgba(255,255,255,.18);
}
.menu-switcher__btn i {
  font-size: 12px;
  opacity: .8;
}
.menu-switcher__btn:hover {
  color: #2f2206 !important;
  text-decoration: none;
  transform: translateY(-1px);
}
.menu-switcher__btn.active {
  color: #ffffff !important;
}
.menu-switcher__btn.active i { color: #ffffff; opacity: 1; }
.menu-switcher.is-products #msw-products,
.menu-switcher.is-collections #msw-collections {
  color: #ffffff !important;
}
.menu-switcher.is-products #msw-products i,
.menu-switcher.is-collections #msw-collections i {
  color: #ffffff !important;
  opacity: 1;
}
.menu-switcher.is-products #msw-collections,
.menu-switcher.is-collections #msw-products {
  color: rgba(55, 38, 5, .78) !important;
}
.menu-switcher.is-products #msw-collections i,
.menu-switcher.is-collections #msw-products i {
  color: inherit !important;
  opacity: .78;
}

/* Фиксируем одинаковый вид переключателя на всех страницах, как на карточке товара */
.menu-switcher .menu-switcher__thumb {
  transform: translateX(100%) !important;
}
.menu-switcher #msw-products,
.menu-switcher #msw-products i {
  color: #ffffff !important;
  opacity: 1 !important;
}
.menu-switcher #msw-collections,
.menu-switcher #msw-collections i {
  color: rgba(55, 38, 5, .78) !important;
  opacity: .78 !important;
}

/* Разделитель */
.menu-divider {
  width: 1px;
  height: 22px;
  background: rgba(0,0,0,.18);
  margin: 0 4px;
  flex-shrink: 0;
}

/* ─── МЕНЮ — новые классы ────────────────────────────────────── */
.menu-bar-inner {
  display: flex;
  align-items: center;
  min-height: 48px;
  width: 100%;
}
.menu-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  flex-wrap: wrap;
}
.menu-item { position: relative; }
.menu-link {
  display: block;
  padding: 13px 16px;
  color: var(--c-dark);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: background .18s;
  text-decoration: none;
}
.menu-link:hover,
.menu-item.open > .menu-link {
  background: rgba(0,0,0,.12);
  color: var(--c-dark);
  text-decoration: none;
}
.menu-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--c-white);
  border-top: 3px solid var(--c-yellow);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--r-md) var(--r-md);
  min-width: 220px;
  padding: 8px;
  z-index: 1000;
}
.menu-item.open .menu-dropdown { display: block; }
.menu-dropdown-inner { display: flex; }
.menu-dropdown-inner ul { list-style: none; padding: 0; margin: 0; }
.menu-dropdown-inner ul li a {
  display: block;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text);
  border-radius: var(--r-sm);
  min-width: 180px;
  white-space: nowrap;
  transition: background .18s, color .18s;
  text-decoration: none;
}
.menu-dropdown-inner ul li a:hover {
  color: var(--c-dark);
  background: var(--c-yellow-light);
}
.menu-see-all {
  display: block;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-dark);
  text-decoration: none;
  border-top: 1px solid var(--c-border-light);
  margin-top: 4px;
}
.menu-see-all:hover { color: var(--c-yellow); }
.menu-catalog-btn { background: rgba(0,0,0,.12) !important; }

.menu-mega-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 18px;
    margin-right: 12px;
    border: 1px solid rgba(120, 85, 18, .18);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,245,214,.98) 0%, rgba(247,225,164,.98) 100%);
    color: #2f2412;
    font-size: 14px;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 8px 18px rgba(147, 104, 16, .12);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.menu-mega-trigger:hover,
.menu-mega-trigger.is-open {
    background: linear-gradient(180deg, #fff3cb 0%, #f0c85f 100%);
    color: #221a0e;
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 12px 24px rgba(147, 104, 16, .16);
    border-color: rgba(120, 85, 18, .28);
}

.menu-mega-trigger .fa-angle-down {
    font-size: 16px;
    transition: transform .18s ease;
}

.menu-mega-trigger .fa-bars,
.menu-mega-trigger .fa-angle-down {
    color: inherit;
}

.menu-mega-trigger.is-open .fa-angle-down {
  transform: rotate(180deg);
}

.menu-mega-panel {
  display: none;
  position: absolute;
  left: 15px;
  right: 15px;
  top: calc(100% + 10px);
  z-index: 1200;
}

.menu-mega-panel.is-open {
  display: block;
}

.menu-mega {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  background: #ffffff;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 18px 42px rgba(22, 18, 12, .14);
  border: 1px solid rgba(34, 34, 34, .08);
  overflow: hidden;
}

.menu-mega__aside {
  background: #faf8f3;
  padding: 20px 0;
  border-right: 1px solid rgba(34, 34, 34, .06);
}

.menu-mega__eyebrow {
  padding: 0 22px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9a8565;
  margin-bottom: 14px;
}

.menu-mega__nav {
  display: grid;
  gap: 0;
}

.menu-mega__tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #2e2720;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition: background .18s ease, color .18s ease, padding .18s ease;
}

.menu-mega__tab:hover,
.menu-mega__tab.is-active {
  background: #ffffff;
  color: #c69223;
  padding-left: 26px;
}

.menu-mega__content {
  padding: 24px 30px 28px;
  min-width: 0;
}

.menu-mega__pane {
  display: none;
}

.menu-mega__pane.is-active {
  display: block;
}

.menu-mega__pane-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(34, 34, 34, .06);
}

.menu-mega__title {
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
  color: #16120f;
  margin-bottom: 0;
}

.menu-mega__subtitle {
  display: none;
}

.menu-mega__all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: #f5efe2;
  color: #2a2218;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}

.menu-mega__all:hover {
  background: #ead9b0;
  color: #1e1812;
  text-decoration: none;
}

.menu-mega__all--inline {
  margin-top: 8px;
}

.menu-mega__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 24px;
}

.menu-mega__grid--filters {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 34px;
  align-items: start;
}

.menu-mega__group-title {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 800;
  color: #16120f;
  margin-bottom: 10px;
}

.menu-mega__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.menu-mega__links a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #2f2923;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.menu-mega__links a:hover {
  background: #faf5ed;
  color: #14110e;
  transform: translateX(2px);
  text-decoration: none;
}

.menu-mega__links--filters {
  gap: 2px;
}

.menu-mega__links--filters a {
  padding: 3px 0;
  border-radius: 0;
  font-size: 13px;
  font-weight: 400;
  color: #2f2923;
  line-height: 1.45;
}

.menu-mega__links--filters a:hover {
  background: transparent;
  color: #c69223;
  transform: none;
}

.menu-mega__empty {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #faf7f1;
}

@media (max-width: 1199px) {
  .menu-mega {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .menu-mega__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-mega__grid--filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .menu-item:hover .menu-dropdown { display: block; }
}
@media (max-width: 767px) {
  .menu-nav { flex-direction: column; align-items: flex-start; width: 100%; }
  .menu-link { width: 100%; }
  .menu-dropdown { position: static; box-shadow: none; border-top: none; border-left: 3px solid var(--c-yellow); border-radius: 0; }
  .menu-item.open .menu-dropdown { display: block; }
}

/* ─── КАРТОЧКА ТОВАРА — вспомогательные классы ───────────────── */
/* Бейджи (используются в шаблонах без .k74-badge) */
.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  line-height: 1.5;
  white-space: nowrap;
}
.product-badge--new  { background: var(--c-badge-new);  color: #fff; }
.product-badge--hit  { background: var(--c-badge-hit);  color: #fff; }
.product-badge--wow  { background: #c98f1a; color: #fff; }
.product-badge--sale { background: var(--c-badge-sale); color: #fff; }

/* Секции внутри .product-thumb (новый неймингсерч) */
.product-thumb__img {
  position: relative;
  background: var(--c-bg-section);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}
.product-thumb__img a { display: block; width: 100%; height: 100%; }
.product-thumb__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
  display: block;
}
.product-thumb:hover .product-thumb__img img { transform: scale(1.04); }

.product-thumb__hover-btns {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transition: opacity .2s;
}
.product-thumb:hover .product-thumb__hover-btns { opacity: 1; }

.product-thumb__body {
  padding: 10px 12px 12px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.product-thumb__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-dark);
  margin-bottom: 6px;
  line-height: 1.4;
  flex: 1 1 auto;
}
.product-thumb__name a { color: var(--c-dark); }
.product-thumb__name a:hover { color: var(--c-yellow); }

.product-thumb__price {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}
.price-main { color: var(--c-dark); }
.price-new  { color: var(--c-badge-sale); }
.price-old  { font-size: 12px; font-weight: 400; color: var(--c-text-muted); text-decoration: line-through; }
.price-tax  { font-size: 11px; color: var(--c-text-muted); font-weight: 400; }

/* Название коллекции в карточке */
.collection-card__name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: -0.01em;
  color: var(--c-dark);
  margin-bottom: 6px;
}
.collection-card__name a { color: var(--c-dark); }
.collection-card__name a:hover { color: var(--c-yellow); }

@media (max-width: 767px) {
  .collection-card__name { font-size: 14px; }
}

/* Основной размер */
.collection-card__sizes {
  font-size: 12px;
  color: var(--c-text-muted);
  margin-bottom: 8px;
  line-height: 1.4;
}

/* Бейдж «В наличии» в карточке коллекции */
.collection-in-stock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #2e7d32;
  background: #e8f5e9;
  border-radius: var(--r-pill);
  padding: 2px 8px;
  margin-bottom: 6px;
}
.collection-in-stock i { font-size: 11px; }

/* Цена «от X ₽/м²» */
.collection-price-from {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-dark);
}

.product-thumb__desc {
  font-size: 12px;
  color: var(--c-text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-thumb__actions {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: auto;
}
.product-thumb__actions .btn { font-size: 12px; }

/* Маленькая иконка-кнопка (избранное, сравнение) */
.btn-icon {
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: color .18s, background .18s;
  padding: 0;
}
.btn-icon:hover { color: var(--c-yellow); background: #fff; }

/* ─── ТУЛБАР КАТАЛОГА — разметка ─────────────────────────────── */
.catalog-toolbar__left  { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; }
.catalog-toolbar__right { display: flex; align-items: stretch; justify-content: flex-end; gap: 8px; margin-left: auto; flex: 0 1 auto; flex-wrap: nowrap; }
.catalog-toolbar__sort  { display: flex; align-items: stretch; flex: 0 0 auto; }
.catalog-toolbar__right .input-group,
.catalog-toolbar__sort .input-group { display: flex; align-items: stretch; flex-wrap: nowrap; width: auto; margin-bottom: 0; }
.catalog-toolbar__sort .input-group-addon,
.catalog-toolbar__right .input-group-addon { font-size: 12px; background: var(--c-bg); border-color: var(--c-border); color: var(--c-text-muted); width: auto; white-space: nowrap; height: 34px; line-height: 20px; padding: 6px 12px; display: flex; align-items: center; margin-bottom: 0; }
.catalog-toolbar__sort .form-control,
.catalog-toolbar__right .form-control { font-size: 12px; border-color: var(--c-border); box-shadow: none; height: 34px; min-width: 190px; width: 190px; margin-bottom: 0; }
.catalog-toolbar__right #input-limit.form-control { min-width: 110px; width: 110px; }

@media (max-width: 767px) {
  .catalog-toolbar__left,
  .catalog-toolbar__right {
    flex: 1 1 100%;
    margin-left: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .catalog-toolbar__right .input-group,
  .catalog-toolbar__sort .input-group {
    width: 100%;
  }

  .catalog-toolbar__sort .form-control,
  .catalog-toolbar__right .form-control {
    min-width: 0;
    width: 100%;
  }
}

/* ─── ГЕРОЙ КОЛЛЕКЦИИ — новые классы ────────────────────────── */
.collection-hero__inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.collection-hero__main-img {
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--c-bg-section);
}
.collection-hero__main-img img { width: 100%; display: block; }
.collection-hero__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--c-dark);
  margin: 0 0 12px;
}
.collection-hero__desc {
  font-size: 14px;
  color: var(--c-text);
  margin-bottom: 20px;
  line-height: 1.6;
}
.collection-hero__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0 24px;
  padding-top: 20px;
  border-top: 1px solid var(--c-border);
}
.collection-hero__feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--c-text);
}
.collection-hero__feature i { font-size: 18px; color: var(--c-yellow); flex-shrink: 0; margin-top: 1px; }
.collection-hero__cta { margin-top: 4px; }
.collection-nav-tabs { /* Алиас — стили идут через .collection-nav-bar .nav-tabs */ }

.product-group-title__count {
  font-size: 11px;
  font-weight: 400;
  color: var(--c-text-muted);
  margin-left: 4px;
}

/* Карточки товаров на странице коллекции: как в обычном каталоге */
#tab-elements .product-grid > [class*="col-"] .product-thumb {
  flex: 1 1 auto;
  margin-bottom: 0;
  height: 100%;
}

/* ─── СТРАНИЦА ТОВАРА — новые классы ────────────────────────── */
.product-page-gallery__main {
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-bg-section);
  margin-bottom: 10px;
  aspect-ratio: 1;
}
.product-page-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.product-page-gallery__thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.product-page-gallery__thumb {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color .18s;
  flex-shrink: 0;
}
.product-page-gallery__thumb:hover { border-color: var(--c-yellow); }
.product-page-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.product-page-info__top-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.product-page-info__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--c-dark);
  margin: 0 0 14px;
  line-height: 1.35;
}
.product-page-info__meta { margin-bottom: 12px; font-size: 13px; }
.product-page-info__meta .meta-label { color: var(--c-text-muted); }
.meta-label { color: var(--c-text-muted); }

.product-page-info__price {
  margin: 0 0 16px;
}
.product-page-info__price .price-main { font-size: 28px; font-weight: 700; }
.product-page-info__price .price-new  { font-size: 28px; font-weight: 700; color: var(--c-badge-sale); }
.product-page-info__price .price-old  { font-size: 16px; font-weight: 400; color: var(--c-text-muted); text-decoration: line-through; }
.product-page-info__price .price-tax  { font-size: 12px; color: var(--c-text-muted); display: block; margin-top: 2px; }
.price-points  { font-size: 12px; color: var(--c-text-muted); }
.price-discounts { font-size: 12px; color: var(--c-text-muted); margin-top: 4px; }

.product-page-info__rating { margin-bottom: 16px; }
.product-page-info__rating .fa-star  { color: var(--c-yellow); }
.product-page-info__rating .fa-star-o { color: #ddd; }
.product-page-info__rating a { margin-left: 6px; font-size: 12px; color: var(--c-text-muted); }

.product-page-info__qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 10px;
}
.product-page-info__qty-row .control-label { margin: 0; font-size: 13px; color: var(--c-text-muted); white-space: nowrap; }
.product-page-info__qty-row .qty-group { display: flex; align-items: center; gap: 8px; }
.product-page-info__qty-row input[name="quantity"] {
  width: 68px;
  height: 42px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  outline: none;
  box-shadow: none;
}
.product-page-info__qty-row input[name="quantity"]:focus { border-color: var(--c-yellow); }
.product-page-info__cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px !important;
  font-weight: 700 !important;
  height: 48px;
}

.product-tabs { margin-bottom: 0; }
.product-tab-content { padding: 24px 0; }
.product-page-tabs-wrap {
  margin-top: 28px;
  padding-top: 4px;
}

/* CTA 3D — поддержка классов из нового шаблона */
.cta-3d-block__text {
  flex: 1 1 auto;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta-3d-block__btn {
  margin: 40px 48px 40px 0;
  align-self: center;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 28px;
}

/* ─── ПОДВАЛ — новые классы ──────────────────────────────────── */
.footer-cols { padding-bottom: 20px; }
.footer-links li a { color: #aaa !important; font-size: 13px; }
.footer-links li a:hover { color: var(--c-yellow) !important; }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 11px; color: #555; }
.footer-social-link {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2a2a2a;
  color: #777 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: background .18s, color .18s;
  text-decoration: none;
}
.footer-social-link:hover { background: var(--c-yellow); color: var(--c-dark) !important; }

/* Теги товара */
.product-tags { font-size: 13px; color: var(--c-text-muted); margin-top: 16px; }
.product-tags a { color: var(--c-text-muted); margin: 0 2px; }
.product-tags a:hover { color: var(--c-yellow); }

/* ─── СЕТКА ТОВАРОВ: flexbox, 3 в ряд ───────────────────────── */
.product-grid {
  display: flex !important;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
}
.product-grid > [class*="col-"] {
  float: none !important;
  padding-left: 10px;
  padding-right: 10px;
  display: flex;
  flex-direction: column;
}
.product-grid > [class*="col-"] .product-thumb {
  flex: 1 1 auto;
  margin-bottom: 0;
  height: 100%;
}
@media (min-width: 768px) {
  .product-grid > [class*="col-"] {
    width: 33.3333% !important;
  }

  .featured-grid > [class*="col-"] {
    width: 25% !important;
  }
}
@media (max-width: 767px) {
  .product-grid > [class*="col-"] {
    width: 100% !important;
  }
}

/* ─── АДАПТИВ — дополнения ───────────────────────────────────── */
@media (max-width: 991px) {
  .collection-page-layout {
    grid-template-columns: 1fr;
  }

  .collection-page-layout__sidebar {
    position: static;
  }

  .collection-hero__inner { flex-direction: column; gap: 24px; }
  .collection-hero__gallery { flex: none; max-width: 100%; width: 100%; }
  .cta-3d-block__text { padding: 32px; }
  .cta-3d-block__btn { margin: 0 32px 32px; align-self: flex-start; }
}
@media (max-width: 767px) {
  .header-inner { flex-wrap: wrap; }
  .header-search { flex: 1 1 100%; order: 3; }
  .header-actions { margin-left: auto; }
  .collection-hero__features { grid-template-columns: 1fr; }
  .product-page-info__title { font-size: 18px; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
  .cta-3d-block__text { padding: 24px; }
  .cta-3d-block__btn { margin: 0 24px 24px; }
}

/* Home page stage 1 */
#common-home #content {
  min-height: 0;
}

.k74-home {
  padding: 28px 0 40px;
}

.k74-home__section {
  margin: 0;
}

.k74-home__featured {
  margin-top: 56px;
}

.k74-home > * + * {
  margin-top: 56px;
}

#common-home #content > .swiper-viewport,
#common-home #content > .slideshow {
  margin-bottom: 0;
}

#common-home #content > .swiper-viewport + .k74-home,
#common-home #content > .slideshow + .k74-home {
  padding-top: 32px;
}

#common-home #content > .swiper-viewport .swiper-pagination,
#common-home #content > .slideshow .swiper-pagination {
  display: none !important;
}

.k74-section-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.k74-section-heading--compact {
  margin-bottom: 18px;
}

.k74-section-heading__eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7a8591;
}

.k74-section-heading__title {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: #232a31;
}

.k74-section-heading__lead {
  max-width: 760px;
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #5d6772;
}

.k74-benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.k74-benefit-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f5f7 100%);
  border: 1px solid #e3e7eb;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(30, 37, 45, .06);
  color: #232a31;
  transition: transform .25s ease, box-shadow .25s ease;
}

.k74-benefit-card:hover {
  color: #232a31;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(30, 37, 45, .10);
}

.k74-benefit-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 16px;
  background: #e9edf1;
  color: #5d6772;
  font-size: 18px;
}

.k74-benefit-card__text {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.k74-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 210px;
  gap: 16px;
}

.k74-gallery-card,
.k74-popular-card,
.k74-material-card,
.k74-news-card,
.k74-promo__visual {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  background: #edf1f4;
  box-shadow: 0 18px 42px rgba(30, 37, 45, .08);
  transition: transform .3s ease, box-shadow .3s ease;
}

.k74-gallery-card:hover,
.k74-popular-card:hover,
.k74-material-card:hover,
.k74-news-card:hover,
.k74-promo__visual:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(30, 37, 45, .12);
}

.k74-gallery-card--hero {
  grid-column: span 2;
  grid-row: span 2;
}

.k74-gallery-card--small {
  min-height: 210px;
}

.k74-gallery-card--pair-left {
  grid-column: 1 / 3;
}

.k74-gallery-card--pair-right {
  grid-column: 3 / 5;
}

.k74-gallery-card img,
.k74-popular-card img,
.k74-material-card img,
.k74-news-card img,
.k74-promo__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.k74-gallery-card:hover img,
.k74-popular-card:hover img,
.k74-material-card:hover img,
.k74-news-card:hover img,
.k74-promo__visual:hover img {
  transform: scale(1.05);
}

.k74-gallery-card__overlay,
.k74-popular-card__overlay,
.k74-material-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 18, 18, .05) 0%, rgba(18, 18, 18, .68) 100%);
}

.k74-gallery-card__content,
.k74-popular-card__title,
.k74-material-card__title {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  color: #fff;
}

.k74-gallery-card__label {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.k74-gallery-card__title,
.k74-popular-card__title,
.k74-material-card__title {
  display: block;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .18);
}

.k74-gallery__grid .k74-gallery-card:not(.k74-gallery-card--hero) .k74-gallery-card__title {
  font-size: 20px;
}

.k74-popular__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.k74-popular-card {
  min-height: 220px;
}

.k74-popular-card__title {
  font-size: 22px;
}

.k74-promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 540px);
  gap: 20px;
  align-items: stretch;
  padding: 36px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(184, 194, 204, .45), transparent 40%),
    linear-gradient(135deg, #f5f7f9 0%, #e7ecf0 100%);
  box-shadow: 0 22px 48px rgba(30, 37, 45, .08);
}

.k74-promo__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 8px 18px 6px;
}

.k74-promo__title {
  margin: 0 0 12px;
  font-size: 42px;
  line-height: 1.04;
  letter-spacing: -.04em;
  color: #232a31;
}

.k74-promo__subtitle {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  color: #5d6772;
}

.k74-promo__text {
  max-width: 560px;
  margin: 0 0 24px;
  font-size: 16px;
  color: #59636e;
}

.k74-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  width: fit-content;
  padding: 0 28px;
  border-radius: 999px;
  background: #1f1d19;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 16px 30px rgba(31, 29, 25, .16);
}

.k74-button:hover,
.k74-button:focus {
  color: #fff;
  background: #11100e;
}

.k74-promo__visual {
  min-height: 360px;
}

.k74-promo__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(20, 18, 14, .78);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.k74-materials__intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  margin-bottom: 20px;
}

.k74-materials__text-block {
  padding: 0 12px 0 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.k74-materials__side-title {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.k74-feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.k74-feature-list__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: #525d68;
}

.k74-feature-list__item i {
  margin-top: 2px;
  color: #66717c;
  font-size: 17px;
}

.k74-materials__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 170px;
  gap: 16px;
}

.k74-material-card--lg {
  grid-column: span 2;
  grid-row: span 2;
}

.k74-material-card--tall {
  grid-row: span 2;
}

.k74-material-card--wide {
  grid-column: span 2;
}

.k74-seo {
  padding: 34px 30px;
  border: 1px solid #e3e7eb;
  border-radius: 30px;
  background: linear-gradient(180deg, #fff 0%, #f4f7f9 100%);
  box-shadow: 0 18px 40px rgba(30, 37, 45, .05);
}

.k74-seo__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.k74-seo__column p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.8;
  color: #56616c;
}

.k74-seo__column p:last-child {
  margin-bottom: 0;
}

.k74-news__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.k74-news-card {
  min-height: 320px;
  background: #fff;
}

.k74-news-card--featured {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 100%;
}

.k74-news-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 18, 18, .04) 18%, rgba(18, 18, 18, .82) 100%);
}

.k74-news-card__body {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  color: #fff;
}

.k74-news-card__meta {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.k74-news-card__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 22px;
  line-height: 1.22;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .24);
}

.k74-news-card:not(.k74-news-card--featured) .k74-news-card__title {
  font-size: 18px;
}

@media (max-width: 1199px) {
  .k74-section-heading__title {
    font-size: 30px;
  }

  .k74-benefits__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .k74-gallery__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 190px;
  }

  .k74-gallery-card--hero {
    grid-column: span 2;
    grid-row: span 2;
  }

  .k74-gallery-card--small {
    min-height: 190px;
  }

  .k74-gallery-card--pair-left {
    grid-column: 1 / 3;
  }

  .k74-gallery-card--pair-right {
    grid-column: 3 / 5;
  }

  .k74-popular__grid,
  .k74-news__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .k74-promo {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
  }

  .k74-promo__title {
    font-size: 36px;
  }

  .k74-materials__intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .k74-materials__text-block { min-height: 0; }
}

@media (max-width: 991px) {
  .k74-home {
    padding-top: 20px;
    padding-bottom: 28px;
  }

  .k74-home > * + * {
    margin-top: 44px;
  }

  .k74-section-heading__title {
    font-size: 28px;
  }

  .k74-benefits__grid,
  .k74-popular__grid,
  .k74-news__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .k74-promo {
    grid-template-columns: minmax(0, 1fr);
    padding: 28px;
  }

  .k74-promo__visual {
    min-height: 300px;
    order: -1;
  }

  .k74-materials__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 180px;
  }

  .k74-material-card--lg,
  .k74-material-card--wide,
  .k74-material-card--tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .k74-seo__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .k74-news-card--featured {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 340px;
  }
}

@media (max-width: 767px) {
  .k74-home {
    padding-top: 14px;
    padding-bottom: 20px;
  }

  .k74-home > * + * {
    margin-top: 32px;
  }

  .k74-section-heading__title {
    font-size: 24px;
  }

  .k74-section-heading__lead,
  .k74-promo__text,
  .k74-seo__column p {
    font-size: 14px;
  }

  .k74-benefits__grid,
  .k74-gallery__grid,
  .k74-popular__grid,
  .k74-news__grid,
  .k74-materials__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .k74-benefit-card,
  .k74-popular-card,
  .k74-news-card,
  .k74-gallery-card,
  .k74-material-card {
    border-radius: 22px;
  }

  .k74-gallery__grid {
    grid-auto-rows: 220px;
  }

  .k74-gallery-card--hero,
  .k74-news-card--featured {
    grid-column: span 1;
    grid-row: span 1;
  }

  .k74-gallery-card--small {
    min-height: 220px;
  }

  .k74-gallery-card--pair-left,
  .k74-gallery-card--pair-right {
    grid-column: auto;
  }

  .k74-popular-card,
  .k74-news-card,
  .k74-material-card {
    min-height: 240px;
  }

  .k74-promo {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .k74-promo__title {
    font-size: 30px;
  }

  .k74-promo__subtitle {
    font-size: 18px;
  }

  .k74-promo__visual {
    min-height: 240px;
  }

  .k74-materials__text-block {
    padding: 0;
    border-radius: 0;
  }

  .k74-seo {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .k74-gallery-card__content,
  .k74-news-card__body {
    left: 0;
    right: 0;
    bottom: 0;
  }

  .k74-news-card__body {
    min-height: 78px;
    padding: 16px 16px;
  }

  .k74-gallery-card__title,
  .k74-popular-card__title,
  .k74-material-card__title,
  .k74-news-card__title {
    font-size: 20px;
  }
}
