/* ============================================================
   Exclusive Farfor — design system
   Структура и стилистика по мотивам exclusive-farfor.ru
   Фирменные цвета оригинала: #271852, #f4f4f6, акцент #b41803
   ============================================================ */

:root {
  --main-color: #271852;
  --main-color-dark: #1b0f36;
  --main-color-soft: #f4f4f6;
  --top-bar-bg: #f4f4f6;
  --header-bg: #ffffff;
  --accent: #b41803;
  --accent-grad: linear-gradient(90deg, rgba(249,86,64,1) 0%, rgba(181,25,4,1) 100%);
  --text: #1a1a1a;
  --text-soft: #555;
  --border: #e6e4ea;
  --footer-bg: #f7f7f7;
  --footer-border: #dedede;
  --footer-link: #666667;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Cormorant Garamond', 'Georgia', serif;
  --shadow-sm: 0 1px 3px rgba(39,24,82,.08);
  --shadow-md: 0 6px 24px rgba(39,24,82,.12);
  --radius: 4px;
  --gold: #c8a45d;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 14px; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--main-color);
  line-height: 1.2;
}
h1 { font-size: 42px; }
h2 { font-size: 34px; }
h3 { font-size: 26px; }
h4 { font-size: 20px; }
h5 { font-size: 17px; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.pb-24 { padding-bottom: 24px; }

.section { padding: 56px 0; }
.section-title { text-align: center; font-size: 34px; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--text-soft); max-width: 640px; margin: 0 auto 36px; }

/* ---------- Кнопки ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius); font-size: 14px; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase; border: 1px solid transparent;
  transition: all .18s ease; white-space: nowrap;
}
.button--main { background: var(--main-color); color: #fff; }
.button--main:hover { background: var(--main-color-dark); }
.button--brown { background: #fff; color: #6d4b1e; border-color: #b99a6a; }
.button--brown:hover { background: #b99a6a; color: #fff; }
.button--light { background: #fff; color: var(--main-color); border-color: var(--main-color); }
.button--light:hover { background: var(--main-color); color: #fff; }
.button--disabled { opacity: .5; pointer-events: none; }
.button--full { width: 100%; }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs { padding: 18px 0; font-size: 13px; color: var(--text-soft); }
.breadcrumbs a { color: var(--text-soft); }
.breadcrumbs a:hover { color: var(--main-color); }
.breadcrumbs .sep { margin: 0 8px; color: #bbb; }

/* ---------- Топ-бар ---------- */
.top-bar { background: var(--top-bar-bg); border-bottom: 1px solid var(--border); }
.top-bar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 42px; font-size: 13px;
}
.top-bar__left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.top-bar__right { display: flex; align-items: center; gap: 16px; }
.top-bar__link { color: var(--text); opacity: .85; transition: opacity .15s; }
.top-bar__link:hover { opacity: 1; color: var(--accent); }
.top-bar__contact { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.top-bar__contact:hover { color: var(--accent); }

.currency-switch {
  display: inline-flex; border: 1px solid var(--border); border-radius: 20px;
  overflow: hidden; background: #fff;
}
.currency-switch button { border: 0; background: transparent; padding: 5px 12px; font-size: 12px; color: var(--text-soft); letter-spacing: .03em; }
.currency-switch button.active { background: var(--main-color); color: #fff; }

/* ---------- Шапка ---------- */
.header { background: var(--header-bg); position: relative; }
.header__inner { display: flex; align-items: center; gap: 24px; min-height: 118px; position: relative; }
.header__logo { flex: 0 0 auto; }
.header__logo a { display: flex; flex-direction: column; align-items: center; }
.logo-name {
  font-family: var(--font-head); font-size: 34px; font-weight: 700;
  letter-spacing: .14em; color: var(--main-color); text-transform: uppercase; line-height: 1;
}
.logo-tag { font-size: 11px; letter-spacing: .42em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
.header__center { flex: 1; display: flex; align-items: center; justify-content: center; gap: 12px; }
.header__actions { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.header-phone { display: flex; flex-direction: column; align-items: flex-start; }
.header-phone .phone { font-size: 20px; font-weight: 500; color: #1a1a1a; letter-spacing: .02em; }
.header-phone .email { font-size: 13px; color: #000; }

.icon-btn {
  position: relative; display: inline-flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px; width: 56px; height: 52px; border: 1px solid transparent;
  border-radius: var(--radius); background: transparent; color: var(--main-color);
  font-size: 11px; transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--main-color-soft); }
.icon-btn .badge {
  position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--accent-grad); color: #fff; font-size: 10px;
  line-height: 17px; font-weight: 600; display: none;
}
.icon-btn .badge.visible { display: block; }

/* ---------- Мега-меню ---------- */
.main-menu { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; position: sticky; top: 0; z-index: 900; }
.main-menu__list { display: flex; justify-content: center; }
.main-menu__item { position: relative; }
.main-menu__item > a {
  display: block; padding: 15px 22px; font-size: 14px; font-weight: 500;
  color: var(--text); text-transform: uppercase; letter-spacing: .06em; position: relative;
}
.main-menu__item > a::before {
  content: ''; position: absolute; left: 22px; right: 22px; top: -1px; height: 4px;
  background: var(--accent-grad); opacity: 0; transition: opacity .18s; border-radius: 0 0 2px 2px;
}
.main-menu__item.is-open > a::before, .main-menu__item > a:hover::before { opacity: 1; }
.main-menu__item > a:hover, .main-menu__item.is-open > a { color: var(--main-color); }

.mega {
  position: absolute; left: 50%; transform: translateX(-50%) translateY(8px);
  top: 100%; width: 720px; max-width: 92vw; background: #fff;
  border: 1px solid var(--border); border-top: 3px solid var(--accent-grad);
  box-shadow: var(--shadow-md); padding: 26px 30px; display: none; z-index: 950;
}
.mega--cols { width: 1080px; }
.mega--brands { width: 1080px; }
.mega__grid--5 { grid-template-columns: repeat(5, 1fr); }
.main-menu__item.is-open .mega { display: block; animation: fadeIn .18s ease; }
.mega__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 26px; }
.mega--brands .mega__grid { grid-template-columns: repeat(5, 1fr); }
.mega__col { display: flex; flex-direction: column; gap: 6px; }
.mega__col-title { font-size: 13px; font-weight: 600; color: var(--main-color); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.mega__link { font-size: 14px; color: var(--text-soft); padding: 2px 0; transition: color .15s; }
.mega__link:hover { color: var(--accent); }
.mega__link--all { color: var(--accent); font-weight: 500; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(4px); }
  to { opacity: 1; transform: translateX(-50%) translateY(8px); }
}

/* ---------- Мобильное меню ---------- */
.nav-toggle { display: none; border: 0; background: transparent; font-size: 26px; color: var(--main-color); }
.mobile-menu { display: none; position: fixed; inset: 0; z-index: 1100; background: #fff; overflow-y: auto; padding: 24px; }
.mobile-menu.is-open { display: block; }
.mobile-menu__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.mobile-menu__close { border: 0; background: transparent; font-size: 26px; color: var(--main-color); }
.mobile-menu .mm-item { border-top: 1px solid var(--border); }
.mobile-menu .mm-item > a { display: block; padding: 14px 0; font-size: 16px; font-weight: 600; color: var(--main-color); }
.mobile-menu .mm-sub { padding-bottom: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.mobile-menu .mm-sub a { font-size: 14px; color: var(--text-soft); }

/* ---------- Модальные окна ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(27,15,54,.55); z-index: 1200;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.is-open { display: flex; animation: fadeBg .2s ease; }
@keyframes fadeBg { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff; width: 100%; max-width: 460px; border-radius: 8px;
  box-shadow: var(--shadow-md); padding: 34px; position: relative;
  max-height: 92vh; overflow-y: auto;
}
.modal--wide { max-width: 780px; }
.modal__title { font-size: 26px; margin-bottom: 6px; }
.modal__sub { color: var(--text-soft); font-size: 14px; margin-bottom: 22px; }
.modal__close {
  position: absolute; top: 14px; right: 16px; border: 0; background: transparent;
  font-size: 26px; line-height: 1; color: var(--text-soft);
}
.modal__close:hover { color: var(--accent); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; margin-bottom: 6px; color: var(--text-soft); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border);
  border-radius: var(--radius); background: #fafafa; transition: border-color .15s, background .15s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--main-color); background: #fff;
}
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.link-switch { color: var(--accent); font-size: 13px; background: none; border: 0; }
.link-switch:hover { text-decoration: underline; }

/* Корзина */
.cart-list { margin-bottom: 20px; }
.cart-item {
  display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: center;
}
.cart-item__img { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 6px; overflow: hidden; background: var(--main-color-soft); }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-weight: 500; font-size: 14px; }
.cart-item__meta { font-size: 12px; color: var(--text-soft); }
.cart-item__price { font-weight: 600; color: var(--main-color); white-space: nowrap; }
.cart-item__remove { border: 0; background: transparent; color: #bbb; font-size: 18px; }
.cart-item__remove:hover { color: var(--accent); }
.cart-empty { text-align: center; padding: 30px 10px; color: var(--text-soft); }
.cart-empty .big { font-size: 44px; margin-bottom: 10px; }
.cart-total { display: flex; justify-content: space-between; font-size: 17px; font-weight: 600; margin: 4px 0 18px; }

/* Поиск */
.search-modal .modal { max-width: 640px; }
.search-input { display: flex; gap: 10px; }
.search-input input { flex: 1; padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 16px; }
.search-results { margin-top: 18px; max-height: 46vh; overflow-y: auto; }
.search-hit { display: flex; gap: 12px; align-items: center; padding: 10px 8px; border-radius: 6px; cursor: pointer; }
.search-hit:hover { background: var(--main-color-soft); }
.search-hit__img { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 5px; background: var(--main-color-soft); overflow: hidden; }
.search-hit__img img, .search-hit__img svg { width: 100%; height: 100%; object-fit: cover; }
.search-hit__name { font-weight: 500; font-size: 14px; }
.search-hit__brand { font-size: 12px; color: var(--text-soft); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(120deg, #f7f5f0 0%, #efe9dd 100%); padding: 64px 0; border-bottom: 1px solid var(--border); }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero__badge { display: inline-block; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; font-weight: 600; }
.hero__title { font-size: 46px; line-height: 1.14; margin-bottom: 20px; }
.hero__text { color: var(--text-soft); font-size: 16px; max-width: 460px; margin-bottom: 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__visual { position: relative; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #3b2560 0%, #271852 55%, #1b0f36 100%); min-height: 380px; display: flex; align-items: center; justify-content: center; padding: 20px; }
.hero__visual img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(230,201,143,.35); box-shadow: 0 18px 44px rgba(0,0,0,.45); }
.hero__visual svg { width: 88%; height: auto; }

/* Плитки категорий */
.cat-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.cat-tile {
  position: relative; border-radius: 10px; overflow: hidden; min-height: 260px;
  display: flex; align-items: flex-end; padding: 26px; color: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,15,54,0) 30%, rgba(27,15,54,.72) 100%); }
.cat-tile__body { position: relative; z-index: 2; width: 100%; }
.cat-tile__name { font-family: var(--font-head); font-size: 26px; font-weight: 600; }
.cat-tile__link { display: inline-block; margin-top: 6px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,.6); padding-bottom: 2px; }
.cat-tile__link:hover { border-color: #fff; }

/* ---------- О компании ---------- */
.about-hero { background: var(--main-color-soft); }
.about-hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-hero__title { font-size: 40px; margin-bottom: 18px; position: relative; }
.about-hero__text p { margin-bottom: 14px; color: var(--text-soft); font-size: 15.5px; }
.about-hero__logo { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.about-brand {
  width: 150px; height: 76px; border-radius: 8px; background: #fff; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 20px; color: var(--main-color); font-weight: 700;
}
.about-brand:hover { border-color: var(--gold); }

/* Преимущества */
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.usp { text-align: center; padding: 26px 18px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.usp__icon { font-size: 34px; margin-bottom: 12px; }
.usp__title { font-weight: 600; margin-bottom: 6px; }
.usp__text { font-size: 13.5px; color: var(--text-soft); }

/* ---------- Подписка ---------- */
.newsletter { background: var(--main-color); color: #fff; }
.newsletter__inner { display: flex; align-items: center; gap: 34px; justify-content: space-between; flex-wrap: wrap; }
.newsletter__title { color: #fff; font-size: 26px; }
.newsletter__form { display: flex; gap: 10px; flex: 1; max-width: 460px; }
.newsletter__form input { flex: 1; padding: 13px 15px; border-radius: var(--radius); border: 0; }

/* ---------- Карточки товаров / коллекций ---------- */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.products-grid--4 { grid-template-columns: repeat(4, 1fr); }
.product-card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-card__media {
  position: relative; aspect-ratio: 1/1; background: var(--main-color-soft);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-card__media img, .product-card__media svg { width: 100%; height: 100%; object-fit: cover; }
.product-card__brand {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  background: rgba(255,255,255,.92); border-radius: 4px; padding: 3px 9px;
  font-size: 11px; letter-spacing: .06em; color: var(--main-color); font-weight: 600;
}
.product-card__count {
  position: absolute; right: 10px; bottom: 10px; z-index: 3;
  background: rgba(39,24,82,.85); color: #fff; font-size: 11px;
  padding: 3px 9px; border-radius: 10px;
}
.product-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card__cat { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); }
.product-card__name { font-family: var(--font-head); font-size: 22px; color: var(--main-color); line-height: 1.15; }
.product-card__name:hover { color: var(--accent); }
.product-card__meta { font-size: 13px; color: var(--text-soft); }
.product-card__price { font-size: 18px; font-weight: 600; color: var(--accent); margin-top: auto; padding-top: 8px; }
.product-card__actions { display: flex; gap: 10px; margin-top: 6px; }
.product-card__actions .button { flex: 1; }

/* ---------- Каталог: лэйаут ---------- */
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 34px; align-items: start; padding: 28px 0 60px; }
.catalog-head { margin: 24px 0 4px; }
.catalog-head h1 { font-size: 38px; }
.catalog-desc { color: var(--text-soft); max-width: 780px; margin-top: 10px; }
.sort-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.sort-bar__count { font-size: 13px; color: var(--text-soft); }
.sort-bar select { padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.sort-bar label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-soft); white-space: nowrap; }
.catalog-search { flex: 1; min-width: 200px; max-width: 420px; }
.catalog-search input { width: 100%; padding: 9px 14px; border: 1px solid var(--border); border-radius: 20px; background: #fafafa; font-size: 14px; }
.catalog-search input:focus { outline: none; border-color: var(--main-color); background: #fff; }

/* Фильтры */
.filters { position: sticky; top: 66px; }
.filter-block { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 16px; overflow: hidden; background: #fff; }
.filter-block__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 16px; font-weight: 600; font-size: 14px; color: var(--main-color);
  text-transform: uppercase; letter-spacing: .06em; cursor: pointer;
}
.filter-block__head .tick { transition: transform .2s; font-size: 12px; }
.filter-block.is-closed .tick { transform: rotate(90deg); }
.filter-block__body { padding: 6px 16px 14px; border-top: 1px solid var(--border); }
.filter-block.is-closed .filter-block__body { display: none; }
.filter-option { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 13.5px; color: var(--text-soft); cursor: pointer; }
.filter-option input { accent-color: var(--main-color); width: 15px; height: 15px; }
.filter-option .cnt { margin-left: auto; font-size: 12px; color: #aaa; }
.filter-option:hover { color: var(--main-color); }
.filter-option.is-checked { color: var(--accent); font-weight: 500; }
.filter-show-more { display: block; border: 0; background: none; color: var(--accent); font-size: 13px; padding: 4px 0; }
.filter-actions { display: flex; gap: 10px; margin-top: 4px; }
.filters-mobile-toggle { display: none; width: 100%; margin-bottom: 14px; }

/* Пагинация */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 6px; font-size: 14px; color: var(--text-soft);
}
.pagination a:hover { border-color: var(--main-color); color: var(--main-color); }
.pagination .current { background: var(--main-color); border-color: var(--main-color); color: #fff; }
.pagination .dots { border: 0; }

/* ---------- Страница коллекции ---------- */
.collection-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 20px 0 60px; }
.collection-media { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--main-color-soft); display: flex; align-items: center; justify-content: center; min-height: 420px; }
.collection-media img, .collection-media svg { width: 100%; height: auto; }
.collection-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.collection-thumbs img, .collection-thumbs svg { width: 80px; height: 80px; border: 1px solid var(--border); border-radius: 8px; object-fit: cover; cursor: pointer; }
.collection-thumbs img.active { border-color: var(--accent); }

.collection-info h1 { font-size: 40px; margin-bottom: 8px; }
.collection-info .brand-line { color: var(--gold); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.collection-info .desc { color: var(--text-soft); margin-bottom: 22px; line-height: 1.65; }
.collection-price { font-size: 24px; font-weight: 600; color: var(--accent); margin-bottom: 18px; }

.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.spec-table th, .spec-table td { border-bottom: 1px solid var(--border); padding: 10px 4px; text-align: left; font-size: 14px; }
.spec-table th { color: var(--text-soft); font-weight: 400; width: 46%; }
.spec-table td { color: var(--main-color); font-weight: 600; }

.availability-box { background: var(--main-color-soft); border-radius: 8px; padding: 16px 18px; font-size: 14px; margin-bottom: 24px; }
.availability-box b { color: var(--main-color); }
.related-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.related-links a { font-size: 13px; color: var(--text-soft); border: 1px solid var(--border); border-radius: 20px; padding: 6px 14px; }
.related-links a:hover { border-color: var(--accent); color: var(--accent); }

.section-divider { text-align: center; font-size: 26px; margin: 10px 0 30px; position: relative; }
.section-divider::before, .section-divider::after { content: ''; position: absolute; top: 50%; width: 34%; height: 1px; background: var(--border); }
.section-divider::before { left: 0; }
.section-divider::after { right: 0; }

.item-row {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 18px; align-items: center;
  border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 14px;
  transition: box-shadow .18s;
}
.item-row:hover { box-shadow: var(--shadow-sm); }
.item-row__img { width: 84px; height: 84px; border-radius: 8px; overflow: hidden; background: var(--main-color-soft); display: flex; align-items: center; justify-content: center; }
.item-row__img img, .item-row__img svg { width: 100%; height: 100%; object-fit: cover; }
.item-row__name { font-size: 15px; font-weight: 500; }
.item-row__article { font-size: 12px; color: var(--text-soft); margin-top: 4px; }
.item-row__right { display: flex; align-items: center; gap: 18px; }
.item-row__price { font-size: 17px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.stepper button { width: 32px; height: 36px; border: 0; background: #fafafa; font-size: 16px; }
.stepper button:hover { background: var(--main-color-soft); }
.stepper input { width: 42px; height: 36px; border: 0; text-align: center; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }

/* ---------- Бренды ---------- */
.brands-hero { background: var(--main-color-soft); padding: 40px 0; }
.brands-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.brand-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 26px 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; transition: border-color .18s, box-shadow .18s; }
.brand-card:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.brand-card__name { font-family: var(--font-head); font-size: 22px; color: var(--main-color); font-weight: 700; }
.brand-card__count { font-size: 12px; color: var(--text-soft); }
.brand-article { max-width: 860px; margin: 0 auto; color: var(--text-soft); line-height: 1.7; }
.brand-article p { margin-bottom: 14px; }
.brand-article h3 { margin: 24px 0 10px; }

/* ---------- Инфо-страницы ---------- */
.info-page { max-width: 900px; margin: 0 auto; padding: 24px 0 70px; }
.info-page h1 { font-size: 40px; margin-bottom: 24px; }
.info-page h2 { font-size: 26px; margin: 26px 0 12px; }
.info-page h3 { font-size: 20px; margin: 20px 0 10px; }
.info-page p { margin-bottom: 14px; color: var(--text-soft); line-height: 1.7; }
.info-page ul, .info-page ol { margin: 0 0 14px 22px; }
.info-page li { margin-bottom: 8px; color: var(--text-soft); line-height: 1.6; }
.info-page blockquote { border-left: 3px solid var(--gold); padding: 6px 16px; background: var(--main-color-soft); margin: 16px 0; border-radius: 0 6px 6px 0; }
.info-page .lead { font-size: 18px; color: var(--main-color); }

.loyalty-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.loyalty-table th, .loyalty-table td { border: 1px solid var(--border); padding: 13px 16px; text-align: left; font-size: 14px; }
.loyalty-table th { background: var(--main-color); color: #fff; font-weight: 500; }
.loyalty-table tr:nth-child(even) td { background: #fafafa; }
.loyalty-table .status-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; color: #fff; }
.st-green { background: #3d8a54; }
.st-bronze { background: #a5713a; }
.st-silver { background: #8a929b; }
.st-gold { background: #c8a45d; }
.st-black { background: #232323; }
.st-exclusive { background: var(--main-color); }

.contacts-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.contact-card { border: 1px solid var(--border); border-radius: 10px; padding: 24px; margin-bottom: 16px; }
.contact-card__title { font-size: 16px; font-weight: 600; color: var(--main-color); margin-bottom: 8px; }
.contact-card__line { font-size: 15px; color: var(--text-soft); margin-bottom: 6px; }
.contact-card__line a:hover { color: var(--accent); }

.faq-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 14px; overflow: hidden; }
.faq-item__q { padding: 18px 20px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--main-color); }
.faq-item__q .tick { transition: transform .2s; color: var(--gold); }
.faq-item.is-open .tick { transform: rotate(45deg); }
.faq-item__a { display: none; padding: 0 20px 18px; color: var(--text-soft); line-height: 1.65; }
.faq-item.is-open .faq-item__a { display: block; }

/* ---------- Футер ---------- */
.footer { background: var(--footer-bg); border-top: 5px solid var(--main-color); margin-top: 20px; }
.footer__main { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; padding: 52px 0 40px; }
.footer__brand .logo-name { font-size: 26px; }
.footer__about { font-size: 13.5px; color: var(--footer-link); margin-top: 14px; max-width: 260px; line-height: 1.6; }
.footer__contacts { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.footer__contacts a:hover { color: var(--accent); }
.footer__title { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--main-color); margin-bottom: 16px; }
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__links a { font-size: 13.5px; color: var(--footer-link); }
.footer__links a:hover { color: var(--accent); }
.footer__bottom { border-top: 1px solid var(--footer-border); padding: 18px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--footer-link); }

/* ---------- Тост-уведомления ---------- */
.toast-wrap { position: fixed; bottom: 22px; right: 22px; z-index: 1500; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--main-color); color: #fff; border-radius: 8px; padding: 14px 18px;
  box-shadow: var(--shadow-md); font-size: 14px; max-width: 340px; opacity: 0;
  transform: translateY(10px); transition: all .25s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast--success { background: #2e7d44; }
.toast--error { background: var(--accent); }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 90px 20px; }
.error-page .code { font-family: var(--font-head); font-size: 130px; line-height: 1; color: var(--main-color); }
.error-page .msg { font-size: 22px; color: var(--text-soft); margin-bottom: 26px; }

/* ---------- Загрузка / пустые состояния ---------- */
.skeleton { position: relative; overflow: hidden; background: var(--main-color-soft); }
.skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-soft); }
.empty-state .big { font-size: 48px; margin-bottom: 12px; }

/* ---------- Адаптивность ---------- */
@media (max-width: 1080px) {
  .usp-grid, .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-tiles { grid-template-columns: repeat(3, 1fr); }
  .mega--brands { width: 92vw; }
  .mega--brands .mega__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-menu__list { display: none; }
  .header__inner { min-height: 88px; flex-wrap: wrap; justify-content: center; }
  .header__center { order: 3; width: 100%; justify-content: space-between; }
  .header-phone .email { display: none; }
  .hero__inner, .about-hero__inner, .collection-layout, .contacts-layout { grid-template-columns: 1fr; }
  .hero__title, .catalog-head h1, .info-page h1, .collection-info h1 { font-size: 32px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { display: none; position: fixed; inset: 0; z-index: 1200; background: #fff; overflow-y: auto; padding: 20px; top: 0; }
  .filters.is-open { display: block; }
  .filters-mobile-toggle { display: block; }
  .newsletter__inner { flex-direction: column; align-items: stretch; }
  .newsletter__form { max-width: none; }
  .top-bar__left .hide-m { display: none; }
}
@media (max-width: 620px) {
  .cat-tiles, .usp-grid, .brands-grid, .products-grid, .products-grid--4 { grid-template-columns: 1fr; }
  .top-bar__right { gap: 8px; }
  .currency-switch button { padding: 4px 9px; }
  .item-row { grid-template-columns: 64px 1fr; }
  .item-row__img { width: 64px; height: 64px; }
  .item-row__right { grid-column: 1 / -1; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
  h1 { font-size: 30px !important; }
  .section-title { font-size: 28px; }
  .footer__main { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
/* Переключатель языка (EN/RU) — стили наследует от .currency-switch */
.lang-switch { margin-right: 10px; }

/* ============================================================
   Мобильная оптимизация (v3)
   ============================================================ */

/* Кнопка закрытия панели фильтров (видна только на мобильных) */
.filters__close {
  display: none; position: absolute; top: 12px; right: 14px; z-index: 5;
  width: 40px; height: 40px; border: 1px solid var(--border); background: #fff;
  border-radius: 20px; font-size: 22px; line-height: 1; color: var(--main-color);
  align-items: center; justify-content: center;
}

@media (max-width: 900px) {
  /* пустая полоса горизонтального меню не нужна — есть бургер */
  .main-menu { display: none; }
  /* компактная шапка: не переполняется на планшетах */
  .header__inner { gap: 10px; min-height: 74px; }
  .logo-name { font-size: 24px; letter-spacing: .1em; }
  .logo-tag { font-size: 9px; letter-spacing: .26em; margin-top: 4px; }
  .header__center { order: 3; width: 100%; justify-content: center; padding-bottom: 6px; }
  .header-phone { align-items: center; }
  .header-phone .phone { font-size: 17px; }
  /* кнопки шапки — только иконки (текст скрываем, aria-label остаётся) */
  .icon-btn { width: 48px; height: 46px; font-size: 0; gap: 0; }
  /* фильтры: панель на весь экран, добавляем крестик */
  .filters { padding-top: 56px; }
  .filters__close { display: flex; }
  .hero { padding: 40px 0; }
  .hero__inner { gap: 26px; }
  .hero__title { font-size: 30px; }
  .cat-tile { min-height: 200px; }
  .section { padding: 42px 0; }
  .footer__main { gap: 26px; padding: 36px 0 30px; }
}

@media (max-width: 620px) {
  body { font-size: 14.5px; }
  .container { padding: 0 14px; }
  /* топ-бар: прячем e-mail, остаётся кликабельный телефон */
  .top-bar { font-size: 12px; }
  .top-bar__inner { min-height: 38px; gap: 8px; }
  .top-bar__left { gap: 10px; }
  .top-bar__right { gap: 0; }
  .top-bar__contact[href^="mailto"] { display: none; }
  /* шапка 360px: логотип и иконки помещаются без переполнения */
  .header__inner { min-height: 58px; }
  .logo-name { font-size: 19px; }
  .logo-tag { font-size: 8px; letter-spacing: .2em; }
  .icon-btn { width: 42px; height: 42px; }
  .icon-btn svg { width: 20px; height: 20px; }
  .nav-toggle { font-size: 23px; }
  /* hero компактнее — картинка не должна занимать весь экран */
  .hero { padding: 30px 0; }
  .hero__inner { gap: 20px; }
  .hero__title { font-size: 26px; }
  .hero__text { font-size: 15px; margin-bottom: 22px; }
  .hero__visual { min-height: 240px; padding: 12px; }
  .hero__visual img { min-height: 220px; }
  .section { padding: 32px 0; }
  .section-title { font-size: 24px; }
  .section-sub { margin-bottom: 24px; }
  .cat-tile { min-height: 160px; padding: 18px; }
  .cat-tile__name { font-size: 21px; }
  .product-card__name { font-size: 19px; }
  .product-card__body { padding: 13px 14px 16px; }
  /* сортировка: поиск на отдельной строке, без горизонтального скролла */
  .sort-bar { flex-wrap: wrap; }
  .catalog-search { min-width: 0; max-width: none; flex: 1 1 100%; order: -1; }
  /* широкие таблицы (программа лояльности) — горизонтальный скролл */
  .loyalty-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* модалки и тосты на ширину экрана */
  .modal { padding: 22px 18px; }
  .modal__title { font-size: 21px; }
  .modal-overlay { padding: 10px; }
  .toast-wrap { left: 14px; right: 14px; bottom: 14px; }
  .toast { max-width: none; }
  /* тап-зоны кнопок */
  .button { padding: 12px 18px; }
  .item-row { grid-template-columns: 56px 1fr; }
  .item-row__img { width: 56px; height: 56px; }
  .error-page { padding: 60px 14px; }
  .error-page .code { font-size: 84px; }
  .error-page .msg { font-size: 17px; }
}
