@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap');
/* ===== MNATS Coffee — Основные стили ===== */

/* --- CSS Переменные --- */
:root {
  --color-bg: #E6E6DE;
  --color-surface: #FBFBF7;
  --color-card: #F6F2EA;
  --color-cream: #CECEC4;
  --color-text: #2A2340;
  --color-text-secondary: #5C5470;
  --color-text-muted: #8A8199;
  --color-accent: #E86A1C;
  --color-accent-hover: #C4510E;
  --color-border: #C0C0B4;
  --color-overlay: rgba(42, 35, 64, 0.45);
  --color-success: #4A7C59;

  --font-heading: 'Montserrat', Arial, 'Helvetica Neue', sans-serif;
  --font-body: 'Montserrat', Arial, 'Helvetica Neue', sans-serif;

  --max-width: 1280px;
  --header-height: 92px;

  --radius-sm: 4px;
  --radius: 8px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);

  --transition: 0.25s ease;
}

/* --- Сброс --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}

/* --- Типографика --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }

/* --- Контейнер --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Хедер --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.header__logo {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  white-space: nowrap;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__link {
  font-family: 'Montserrat', Arial, 'Helvetica Neue', sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  transition: color var(--transition);
  position: relative;
}

.header__link:hover,
.header__link.active {
  color: var(--color-text);
}

.header__link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-accent);
}

/* Выпадающий список раздела «Каталог» */
.header__nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.header__dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: -16px;
  min-width: 152px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #DCDCDC;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 28px rgba(42, 35, 64, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 20;
}

/* Невидимый мостик, чтобы меню не закрывалось по пути курсора вниз */
.header__dropdown::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}

.header__nav-item:hover .header__dropdown,
.header__nav-item:focus-within .header__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header__dropdown a {
  display: block;
  padding: 10px 18px;
  font-family: 'Montserrat', Arial, 'Helvetica Neue', sans-serif;
  font-size: calc(0.875rem * 0.85);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0D0C1D;
  white-space: nowrap;
  transition: background var(--transition);
}

.header__dropdown a:hover {
  background: rgba(42, 35, 64, 0.1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__cart-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition);
}

.header__cart-btn:hover {
  background: var(--color-cream);
}

.header__cart-icon {
  width: 22px;
  height: 22px;
}

.header__cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--color-accent);
  color: #FFF;
  font-size: 0.625rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: all var(--transition);
}

.header__cart-count.visible {
  opacity: 1;
  transform: scale(1);
}

/* Общая сумма заказа — справа от значка корзины, цветом логотипа */
.header__total {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #C4663A;
  white-space: nowrap;
}

/* Вспышка при добавлении: свечение повторяет контур цифр и медленно уходит вверх */
.header__total.is-pulsing {
  animation: header-total-glow 1700ms ease-out;
}

@keyframes header-total-glow {
  0% {
    text-shadow:
      0 0 0 rgba(196, 102, 58, 0),
      0 0 0 rgba(196, 102, 58, 0),
      0 0 0 rgba(196, 102, 58, 0);
  }
  18% {
    text-shadow:
      0 -4px 6px rgba(196, 102, 58, 1),
      0 -12px 14px rgba(196, 102, 58, 0.75),
      0 -24px 26px rgba(196, 102, 58, 0.42);
  }
  55% {
    text-shadow:
      0 -10px 11px rgba(196, 102, 58, 0.7),
      0 -24px 24px rgba(196, 102, 58, 0.42),
      0 -40px 40px rgba(196, 102, 58, 0.18);
  }
  100% {
    text-shadow:
      0 -22px 18px rgba(196, 102, 58, 0),
      0 -42px 38px rgba(196, 102, 58, 0),
      0 -58px 56px rgba(196, 102, 58, 0);
  }
}

/* Бургер-меню (мобильные) */
.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header__burger span {
  display: block;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition);
}

/* --- Футер --- */
.footer {
  background: var(--color-text);
  color: var(--color-cream);
  padding: 64px 0 32px;
  margin-top: 80px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer__brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.footer__tagline {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.footer__title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  color: var(--color-text-muted);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--color-cream);
  transition: opacity var(--transition);
}

.footer__links a:hover {
  opacity: 0.7;
}

.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  display: flex;
  justify-content: space-between;
}

/* --- Кнопки --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: #FFF;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
}

.btn--outline {
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn--outline:hover {
  border-color: var(--color-text);
}

.btn--lg {
  padding: 18px 40px;
  font-size: 0.875rem;
}

/* --- Карточка товара --- */
.product-card {
  /* Фон блока с описанием — на один шаг тише прежнего #F6F2EA, ближе к фону страницы */
  background: #E4E1D8;
  border-radius: var(--radius);
  /* Тень не в покое, а при наведении — один тон на всех карточках сайта */
  box-shadow: none;
  transition: box-shadow 0.25s ease;
  overflow: hidden;
  /* Вся карточка ведёт на страницу товара — «Подробнее» в ней больше нет */
  cursor: pointer;
}

.product-card:hover {
  box-shadow: 0 14px 34px rgba(42, 35, 64, 0.32);
}

.product-card__image {
  display: block;
  aspect-ratio: 4 / 5;
  background: var(--color-bg);
  overflow: hidden;
  position: relative;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
  /* Пакет в кадре на 10 % меньше, фон карточки виден по краям */
  transform: scale(0.9);
  transition: transform 0.5s ease;
}

.product-card:hover .product-card__image img {
  /* Увеличение при наведении прежнее, +12 % от нового размера */
  transform: scale(1.008);
}

/* Градиенты-заглушки для товаров (заменить на <img> при появлении фото) */
.product-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}

.product-card__placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.15) 0%, transparent 70%);
}

/* Уникальные градиенты для каждого товара */
.plh--ethiopia { background: linear-gradient(160deg, #C9A96E 0%, #A0845C 30%, #8B6914 60%, #6B4F1A 100%); }
.plh--colombia { background: linear-gradient(160deg, #B8956A 0%, #8B6F4E 35%, #6B4E32 65%, #4A3420 100%); }
.plh--brazil   { background: linear-gradient(160deg, #A0845C 0%, #7B5F3E 30%, #5C4328 60%, #3E2B17 100%); }
.plh--kenya    { background: linear-gradient(160deg, #8B5E3C 0%, #6B3A2E 35%, #4A2018 60%, #2E100C 100%); }
.plh--guatemala{ background: linear-gradient(160deg, #9B7B5C 0%, #73553C 35%, #4E3622 60%, #332214 100%); }
.plh--sumatra  { background: linear-gradient(160deg, #5C4A32 0%, #3E3220 35%, #2B2214 60%, #1A150A 100%); }

/* Фото для hero на главной */
.plh--hero { background: url('../img/hero-main.jpg') center / cover no-repeat; filter: brightness(0.7) saturate(0.38); }

/* Градиент для страницы "О бренде" */
.plh--about { background: linear-gradient(160deg, #EDE4D8 0%, #D4C4AD 35%, #B89B7C 65%, #8B6F4E 100%); }

.product-card__body {
  padding: 20px;
}

.product-card__name {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  /* Полоска за названием: #d4ccd5 — на 1 шаг мягче #c8bec9, 16.11.2026 */
  background: #d4ccd5;
  /* Верхняя строка притянута к пачке: −20 → −24 px, зазор уменьшился на 4 px */
  margin: -24px -20px 4px;
  padding: 12px 20px;
  text-align: center;
}

.product-card__origin {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.product-card__price {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.product-card__weight {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.product-card__actions {
  display: flex;
  gap: 8px;
  /* Высота ряда двух кнопок: без «Подробнее» «В корзину» сама ниже на 7 px */
  min-height: 38px;
}

.product-card__actions .btn {
  flex: 1;
  font-size: 0.6875rem;
  padding: 8px 12px;
}

.product-card__actions .product-card__add {
  /* Фиолетовый пачки «Бразилия / Эфиопия Сидамо» — единый цвет кнопки во всех карточках */
  background: #463F65;
}

/* Верх кнопки и счётчика прямой: над ними вплотную стоит полоса скидки с прямым низом */
.product-card__actions .product-card__add,
.product-card__actions .product-card__stepper {
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.product-card__actions .product-card__add:hover {
  background: #322C4F;
}

/* Цена на месте «Подробнее»: по центру своей ячейки, цветом пачки */
.card-price {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin: 0;
  font-size: 1.375rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #463F65;
}

/* Лот без цены в прайсе — ячейка пустая, кнопка занимает весь ряд */
.card-price--none {
  display: none;
}

/* Лот без цены (нет в наличии) — вместо «В корзину» надпись, без клика */
.product-card__soon {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  font-size: 0.6875rem;
  line-height: 1.2;
  text-align: center;
  color: var(--color-text-muted);
  cursor: default;
}

@media (max-width: 640px) {
  /* В узкой карточке цена рядом с кнопкой не помещается — она идёт своей строкой */
  .product-card__actions {
    flex-wrap: wrap;
  }

  .card-price {
    flex: 1 0 100%;
    font-size: 1.125rem;
  }
}

/* Строка скидки над кнопкой: рамка цветом кнопки «В корзину», две равные половины */
.discount-line {
  display: grid;
  /* Разделитель — продолжение левого края кнопки: правая ячейка на 7 px шире половины.
     Кнопка шире цены на свои боковые поля (24 px) при зазоре ряда 8 px, а ещё 1 px
     занимает сама линия, поэтому линия встаёт точно по краю кнопки */
  grid-template-columns: calc(50% - 7px) calc(50% + 7px);
  margin: 0;
  border: 1px solid #463F65;
  border-radius: 4px 4px 0 0;
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
  color: #D97A4C;
}

.discount-line__half {
  padding: 3px 6px;
}

/* «Скидка N %» — по центру своей ячейки, и по горизонтали, и по вертикали */
.discount-line__half:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-right: 1px solid #463F65;
}

/* Подсказка «добавьте N кг…» — мельче и с переносом: в узкой карточке окна
   она не должна вылезать за рамку; по вертикали стоит на одной линии со «Скидка N %» */
.discount-line__half:last-child {
  display: flex;
  align-items: center;
  font-size: 0.5625rem;
  line-height: 1.15;
  padding-left: 4px;
  padding-right: 4px;
  white-space: normal;
  overflow-wrap: break-word;
  /* Цвет кнопки «В корзину» — «Скидка N %» остаётся терракотовой */
  color: #463F65;
}

/* Следующая ступень в подсказке («20 %») — прежняя терракота.
   margin-left возвращает пробел: в flex-ячейке крайние пробелы текстовых отрезков срезаются */
.discount-line__next {
  color: #D97A4C;
  margin-left: 0.25em;
  white-space: nowrap;
}

/* Слот кнопки: «В корзину» или счётчик пачек на её месте */
.product-card__add-slot {
  display: contents;
}

.product-card__stepper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  padding: 3px 4px;
  border-radius: var(--radius-sm);
  /* Счётчик на месте «В корзину» — тот же цвет, что у кнопки */
  background: #463F65;
  color: #FFF;
  font-size: 0.6875rem;
}

.product-card__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #FFF;
  font-size: 0.9375rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition);
}

.product-card__step:hover {
  background: rgba(255, 255, 255, 0.22);
}

.product-card__qty {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #FFF;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  outline: none;
  transition: background var(--transition);
}

.product-card__qty:focus {
  background: rgba(255, 255, 255, 0.22);
}

/* --- Вкусовой профиль (5 кружков) --- */
.taste-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.taste-row__label {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
}

.taste-dots {
  display: inline-flex;
  gap: 3px;
}

.taste-dot {
  width: 7px;
  height: 7px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  box-sizing: border-box;
}

.taste-dot--on {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.product-card__taste .taste-dot--on {
  background: #C4663A;
  border-color: #C4663A;
}

.product-card__taste {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.product-card__weights {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.product-card__weight-btn {
  width: 60px;
  padding: 4px 2px;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text);
  background: #B5B8B1;
  border: 1px solid #B5B8B1;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.product-card__weight-btn.is-active {
  background: #6A6E68;
  border-color: #6A6E68;
  color: #FFF;
}

/* --- Сетка товаров --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Каталог: неполный последний ряд выравнивается по центру */
.product-grid--center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.product-grid--center > * {
  flex: 0 1 calc((100% - 48px) / 3);
  max-width: calc((100% - 48px) / 3);
}

/* Каталог: пока у лота нет фото пачки, градиент-заглушка не перекрывает общий фон */
.product-grid--center .product-card__placeholder {
  display: none;
}

/* Главная: у лотов без фото тот же ровный фон, что за пачкой у Фрути Бленда */
.section--hits .product-card__placeholder {
  display: none;
}

/* --- Hero --- */
.hero {
  position: relative;
  background: var(--color-cream);
  min-height: 340px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

/* Контейнер на всю ширину и высоту баннера, чтобы кнопку прижать к правому нижнему углу */
.hero .container {
  width: 100%;
  display: flex;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 48px 0 32px;
}

.hero__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.hero__title {
  margin-bottom: 20px;
}

.hero__text {
  font-size: 1.125rem;
  color: var(--color-text);
  margin-bottom: 32px;
  line-height: 1.7;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.9), 0 0 3px rgba(255, 255, 255, 0.75);
}

/* Кнопка баннера — терракота логотипа, а не общий акцент */
.hero .btn--primary {
  background: #C4663A;
}

.hero .btn--primary:hover {
  background: #A9552F;
}

/* Кнопка баннера на 15 % компактнее */
.hero .btn--lg {
  padding: 15px 34px;
  font-size: 0.75rem;
}

/* Блок «Готовы попробовать?» на главной — на общем фоне страницы */
.home-cta {
  background: var(--color-bg);
  text-align: center;
}

.home-cta__title {
  color: var(--color-text);
  margin-bottom: 16px;
}

.home-cta__text {
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  font-size: 1.125rem;
}

.home-cta__btn {
  background: #C4663A;
  color: #FFF;
}

.home-cta__btn:hover {
  background: #A9552F;
}

/* --- Секции --- */
.section {
  padding: 80px 0;
}

/* Каталог: компактный отступ от шапки */
.section.section--catalog {
  padding-top: 8px;
}

/* Главная: зазор от видео до «Хитов продаж» вдвое меньше обычного */
.section--hits {
  padding-top: 40px;
}

/* Главная: заголовок «Хиты продаж» прижат к подзаголовку так же, как в каталоге */
.section--hits .section__title {
  margin-bottom: 2px;
}

/* Главная: карточки «Хитов продаж» держат общий вид — тень только при наведении,
   поле с фотографией в цвет страницы (правила стали общими, своих больше нет) */

/* Кнопка «Перейти в каталог» между видео и «Хитами продаж» */
.section__cta {
  text-align: center;
  margin-bottom: 32px;
}

.catalog-cta {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Montserrat', Arial, 'Helvetica Neue', sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #FFFDF8;
  background: #0D0C1D;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 rgba(70, 70, 70, 0);
  transition: background var(--transition), box-shadow var(--transition);
}

.catalog-cta:hover {
  background: #23203A;
  box-shadow: 0 12px 30px rgba(70, 70, 70, 0.38);
}

/* Главная: кнопка скидки под карточками — сдвинута ниже и с ровной тенью вокруг */
.hits-cta {
  text-align: center;
  margin-top: 108px;
}

.discount-cta {
  display: inline-block;
  padding: 15px 32px;
  font-family: 'Montserrat', Arial, 'Helvetica Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: #FFFDF8;
  text-shadow: 0 1px 2px rgba(60, 35, 15, 0.55);
  /* Фон — ровная заливка #776292 (с 16.11.2026 вместо фрагмента кадра видео) */
  background-color: #776292;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 40px rgba(43, 32, 30, 0.62);
  transition: filter var(--transition);
}

.discount-cta:hover {
  filter: brightness(0.82);
}

/* Видео под «Хитами продаж»: во всю ширину, кадр целиком в своих пропорциях 1280×720 */
.section--video {
  padding: 0;
  position: relative;
}

.site-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  background: #0D0C1D;
}

/* Надпись «coffee mnats» поверх видео: по центру, 4 см (152 px) ниже меню */
.video-wordmark {
  position: absolute;
  top: 146px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  /* Запас под нижние засечки: без него градиент обрезает буквы по краю блока */
  padding: 6px 0 10px;
  z-index: 2;
  pointer-events: none;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 6.4rem;
  letter-spacing: 0.04em;
  color: transparent;
  /* Металл: узкая тёмная кромка, светлое ядро и основа-терракота по краям */
  background-image: linear-gradient(100deg,
    #C4663A 0%, #C4663A 46%,
    #9A4A29 47.5%, #F7CDB4 49%, #FFFFFF 50%, #F7CDB4 51%, #9A4A29 52.5%,
    #C4663A 54%, #C4663A 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  white-space: nowrap;
  animation: wordmark-fade 34s ease-in-out infinite, wordmark-shine 34s ease-in-out infinite;
}

/* Блики: два прохода по 7 с с паузой 1 с — с 4-й по 11-ю и с 12-й по 19-ю секунду */
@keyframes wordmark-shine {
  0%, 11.76% { background-position: 100% 0; }
  32.35% { background-position: 0% 0; animation-timing-function: steps(1, end); }
  35.29% { background-position: 100% 0; }
  55.88% { background-position: 0% 0; }
  100% { background-position: 0% 0; }
}

/* Надпись: 5 с появление, 20 с на экране, 5 с исчезновение, 4 с паузы */
@keyframes wordmark-fade {
  0% { opacity: 0; }
  14.71% { opacity: 1; }
  73.53% { opacity: 1; }
  88.24% { opacity: 0; }
  100% { opacity: 0; }
}

/* Подпись под надписью: тот же цикл, но появляется на 4 с позже логотипа */
.video-tagline {
  position: absolute;
  top: 270px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 2;
  pointer-events: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  /* Металл в буквах: медь по краям, светлое ядро */
  color: transparent;
  background-image: linear-gradient(100deg,
    #9A4A29 0%, #C07B52 25%, #FFF3E9 50%, #C07B52 75%, #9A4A29 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 1px 8px rgba(13, 12, 29, 0.95), 0 0 3px rgba(13, 12, 29, 0.85);
  animation: tagline-fade 34s ease-in-out 4s infinite backwards;
}

/* Подпись гаснет синхронно с логотипом: старт на 25-й секунде цикла, конец на 30-й.
   Кадры сдвинуты на 4 с задержки подписи: (25 − 4) / 34 = 61,76 %, (30 − 4) / 34 = 76,47 % */
@keyframes tagline-fade {
  0% { opacity: 0; }
  14.71% { opacity: 1; }
  61.76% { opacity: 1; }
  76.47% { opacity: 0; }
  100% { opacity: 0; }
}

.video-wordmark .logo-top { font-size: 0.30em; letter-spacing: 0.24em; }
.video-wordmark .logo-bottom { font-size: 1em; letter-spacing: 0.02em; margin-top: -13px; }

@media (max-width: 768px) {
  .video-wordmark,
  .video-tagline { display: none; }
}

.section__header {
  text-align: center;
  margin-bottom: 48px;
}

.section__title {
  margin-bottom: 12px;
}

/* Заголовок каталога с талисманом */
.section__title-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.section__title-row .section__title {
  margin-bottom: 0;
}

.section__mascot {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.section__subtitle {
  color: var(--color-text-secondary);
  font-size: 0.6875rem;
}

/* --- Блок «О бренде» --- */
.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-block__image {
  aspect-ratio: 4 / 5;
  background: var(--color-cream);
  border-radius: var(--radius);
  overflow: hidden;
}

.about-block__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.94) saturate(0.8);
}

.about-block__placeholder {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.about-block__placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.12) 0%, transparent 70%);
}

.about-block__title {
  margin-bottom: 20px;
}

.about-block__text {
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* «О компании»: заголовок над блоком по центру, текст по верху фото */
.section--about .about-block__title {
  font-size: 2.25rem;
  text-align: center;
  margin: 0 0 40px;
}

.section--about .about-block {
  align-items: start;
}

/* --- Преимущества --- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.feature {
  text-align: center;
}

.feature__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-cream);
  font-size: 1.25rem;
}

.feature__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 8px;
}

.feature__text {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- Панель корзины --- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: var(--color-surface);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
}

.cart-drawer__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
}

.cart-drawer__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition);
  font-size: 1.25rem;
  color: var(--color-text-secondary);
}

.cart-drawer__close:hover {
  background: var(--color-cream);
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-drawer__empty {
  text-align: center;
  padding: 48px 24px;
}

.cart-drawer__empty-icon {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.cart-drawer__empty-text {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-bottom: 24px;
}

.cart-drawer__footer {
  padding: 20px 24px;
  border-top: 1px solid var(--color-border);
}

/* Строка скидки по весу — как в корзине: цвет логотипа, 0.875rem */
.cart-drawer__discount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
  color: #C4663A;
  font-size: 0.875rem;
}

.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 1rem;
}

.cart-drawer__total-price {
  font-weight: 600;
  color: var(--color-accent);
  font-size: 1.25rem;
}

.cart-drawer__footer .btn {
  width: 100%;
}

/* «Оформить заказ» в мини-корзине — терракота надписи MNATS coffee в шапке */
.cart-drawer__footer .btn--primary {
  background: #C4663A;
}

.cart-drawer__footer .btn--primary:hover {
  background: #A9552F;
}

/* --- Элемент в корзине --- */
.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.cart-item__image {
  width: 80px;
  height: 100px;
  border-radius: var(--radius-sm);
  background: var(--color-cream);
  flex-shrink: 0;
  overflow: hidden;
}

/* На странице корзины лот показывается без плашки — пачка прямо на фоне страницы */
.cart-page__items .cart-item__image {
  background: transparent;
}

.cart-item__image .product-card__placeholder {
  width: 100%;
  height: 100%;
}

.cart-item__info {
  flex: 1;
  min-width: 0;
}

.cart-item__name {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.cart-item__origin {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.cart-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-item__price {
  font-weight: 500;
  color: var(--color-accent);
  font-size: 0.9375rem;
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.cart-item__qty button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--color-text-secondary);
  transition: background var(--transition);
}

.cart-item__qty button:hover {
  background: var(--color-cream);
}

.cart-item__qty span {
  width: 36px;
  text-align: center;
  font-size: 0.8125rem;
}

.cart-item__remove {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-decoration: underline;
  margin-top: 8px;
  display: inline-block;
  cursor: pointer;
}

.cart-item__remove:hover {
  color: var(--color-text);
}

/* «Очистить корзину» — размер как у «Удалить», цвет как у цены «Итого» */
.cart-clear {
  display: inline-block;
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--color-accent);
  text-decoration: underline;
  cursor: pointer;
  transition: color var(--transition);
}

.cart-clear:hover {
  color: #A9552F;
}

/* --- Подтверждение очистки корзины: маленькая карточка по центру экрана --- */
.clear-confirm {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.clear-confirm.open {
  display: flex;
}

.clear-confirm__overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 35, 64, 0.55);
}

.clear-confirm__box {
  position: relative;
  width: 100%;
  max-width: 320px;
  padding: 22px 20px 18px;
  background: #FBFBF7;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  text-align: center;
}

.clear-confirm__text {
  margin: 0;
  font-size: 15px;
  color: var(--color-text);
}

.clear-confirm__actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.clear-confirm__btn {
  flex: 1;
  padding: 9px 12px;
  border: 0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background var(--transition);
}

.clear-confirm__btn--yes {
  background: #C4663A;
  color: #FFF;
}

.clear-confirm__btn--yes:hover {
  background: #A9552F;
}

.clear-confirm__btn--no {
  background: #CECEC4;
  color: var(--color-text);
}

.clear-confirm__btn--no:hover {
  background: #D2D1C7;
}

/* --- Хлебные крошки --- */
.breadcrumbs {
  padding: 24px 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.breadcrumbs a {
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.breadcrumbs a:hover {
  color: var(--color-text);
}

.breadcrumbs span {
  margin: 0 8px;
}

/* --- Страница товара --- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 40px 0 80px;
}

.product-detail__gallery {
  aspect-ratio: 4 / 5;
  background: var(--color-cream);
  border-radius: var(--radius);
  overflow: hidden;
}

.product-detail__placeholder {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.product-detail__placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.12) 0%, transparent 70%);
}

.product-detail__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-detail__origin {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-detail__name {
  font-size: 2rem;
  margin-bottom: 4px;
}

.product-detail__price {
  font-size: 1.75rem;
  font-weight: 500;
  color: #C4663A;
}

/* Акценты карточки товара: кнопка «В корзину» и выбранный вес — фиолетовый пачки, как у кнопок в каталоге */
.product-detail .btn--primary {
  background: #463F65;
}

.product-detail .btn--primary:hover {
  background: #322C4F;
}

.product-detail .taste-dot--on {
  background: #C4663A;
  border-color: #C4663A;
}

.product-detail__weight {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.product-detail__desc {
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.product-detail__features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.product-detail__feature {
  display: flex;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.product-detail__taste {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 20px;
}

.product-detail__taste .taste-row__label {
  font-size: 0.875rem;
}

.product-detail__taste .taste-dot {
  width: 9px;
  height: 9px;
}

.product-detail__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.product-detail__actions .btn {
  flex: 1;
}

/* «В корзину» на странице товара остаётся крупной кнопкой */
.product-detail__actions .product-card__add {
  padding: 18px 40px;
  font-size: 0.875rem;
}

/* Счётчик пачек вместо неё — 240 × 52 px, крупнее карточного */
.product-detail__actions .product-card__stepper {
  flex: 0 0 240px;
  height: 52px;
  padding: 0 6px;
}

.product-detail__actions .product-card__step {
  width: 36px;
  height: 36px;
  font-size: 1.125rem;
}

.product-detail__actions .product-card__qty {
  font-size: 0.875rem;
}

/* --- Страница корзины (отдельная) --- */
.cart-page {
  padding: 40px 0 80px;
}

.cart-page__title {
  margin-bottom: 40px;
}

.cart-page__empty {
  text-align: center;
  padding: 80px 0;
}

.cart-page__empty-icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.cart-page__empty-text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* Кнопка пустой корзины — цветом кнопки «Перейти в каталог» на главной */
.cart-page__empty .btn--primary {
  background: #0D0C1D;
}

.cart-page__empty .btn--primary:hover {
  background: #23203A;
}

.cart-page__items {
  border-top: 1px solid var(--color-border);
}

.cart-page__summary {
  margin-top: 32px;
  display: flex;
  justify-content: flex-end;
}

.cart-page__summary-inner {
  width: 360px;
  max-width: 100%;
}

.cart-page__total-line {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
}

.cart-page__total-line--final {
  font-size: 1.25rem;
  font-weight: 600;
  border-bottom: none;
  padding-top: 16px;
}

/* Строка скидки по весу — цветом логотипа */
.cart-page__total-line--discount {
  color: #C4663A;
  font-size: 0.875rem;
}

.cart-page__total-line--final .cart-page__total-price {
  color: var(--color-accent);
}

.cart-page__checkout-btn {
  margin-top: 24px;
  width: 100%;
  /* Терракота надписи MNATS coffee — как у кнопки в мини-корзине */
  background: #C4663A;
}

.cart-page__checkout-btn:hover {
  background: #A9552F;
}

/* --- Уведомление --- */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(720px, calc(100vw - 48px));
  background: var(--color-text);
  color: #FFF;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.875rem;
  z-index: 300;
  opacity: 0;
  transition: all 0.35s ease;
  pointer-events: none;
}

.toast__img {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  background: #FFF;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- Адаптив --- */
/* Компьютер: у видео на главной срезан верх на 10 %, низ кадра на месте */
@media (min-width: 1025px) {
  .site-video {
    aspect-ratio: 160 / 81;
    object-position: center bottom;
  }
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid--center > * {
    flex-basis: calc((100% - 24px) / 2);
    max-width: calc((100% - 24px) / 2);
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .about-block {
    gap: 40px;
  }

  .product-detail {
    gap: 40px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header__nav {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .section__title-row {
    gap: 8px;
  }

  .section__mascot {
    width: 100px;
    height: 100px;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .product-grid--center > * {
    flex-basis: calc((100% - 16px) / 2);
    max-width: calc((100% - 16px) / 2);
  }

  /* Баннер на планшетах и телефонах — отдельный кадр, высота по его пропорции */
  .hero {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .plh--hero {
    background-image: url('../img/hero-main-mobile.jpg');
  }

  .hero__bg::after {
    background: linear-gradient(90deg, rgba(218, 218, 210, 0.93) 0%, rgba(218, 218, 210, 0.6) 100%);
  }

  .hero__content {
    padding: 48px 0;
  }

  .about-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-block__image {
    order: -1;
    aspect-ratio: 3 / 2;
  }

  .features {
    grid-template-columns: 1fr 1fr;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section {
    padding: 48px 0;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
  }

  .cart-drawer {
    width: 100vw;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-grid--center > * {
    flex-basis: 100%;
    max-width: 100%;
  }

  .product-card__body {
    padding: 16px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }
}

/* --- Мобильное меню --- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--color-surface);
  z-index: 150;
  transform: translateX(-100%);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu__header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 32px;
}

.mobile-menu__close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-text-secondary);
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-menu__links a {
  font-size: 1.25rem;
  font-family: var(--font-heading);
}

/* Фото товаров */
.product-detail__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(0.8);
}
.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === Вариант А «Как пачка»: шапка === */
.header {
  background: #0D0C1D;
  border-bottom: 1px solid #C4663A;
}
.header__logo {
  font-size: 3.2rem;
  color: #C4663A;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.header__mascot {
  width: 80px;
  height: 80px;
  margin-left: -73px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex: none;
}

/* Сдвиг влево не должен уводить логотип за край окна */
@media (max-width: 1400px) {
  .header__mascot { margin-left: 0; }
}

/* На планшете и телефоне круг остаётся видимым, но меньше */
@media (max-width: 1100px) {
  .header__mascot { width: 64px; height: 64px; }
}

@media (max-width: 768px) {
  .header__mascot { width: 52px; height: 52px; }
}
.logo-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 0.76;
}
.header__logo .logo-top { font-size: 0.31em; letter-spacing: 0.24em; }
.header__logo .logo-bottom { font-size: 1em; letter-spacing: 0.02em; }
.header__link { color: #CFC6BB; }
.header__link:hover,
.header__link.active { color: #FFFDF8; }
.header__link.active::after { background: #E86A1C; }
.header__cart-btn { color: #FFFDF8; }
.header__cart-btn:hover { background: rgba(255, 255, 255, 0.12); }
.footer { background: #2A2340; }

/* === Поп-ап описания лота в каталоге === */
.lot-modal {
  position: fixed; inset: 0; z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.lot-modal__overlay { position: absolute; inset: 0; background: rgba(42, 35, 64, 0.55); }
.lot-modal__box {
  position: relative;
  background: #FBFBF7;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 28px;
}
#lotModalBody {
  overflow-y: auto;
}
  padding: 28px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.lot-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px; height: 34px;
  padding: 0; margin: 0;
  line-height: 1;
  border: none; border-radius: 50%;
  background: #CECEC4; color: #2A2340;
  font-size: 15px; cursor: pointer;
}
.lot-modal__close:hover { background: #E86A1C; color: #fff; }

/* ===== EB Garamond (локально, OFL) ===== */
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/ebgaramond-cyrillic-ext-italic-400-800.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/ebgaramond-cyrillic-italic-400-800.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/ebgaramond-latin-ext-italic-400-800.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/ebgaramond-latin-italic-400-800.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/ebgaramond-cyrillic-ext-normal-400-800.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/ebgaramond-cyrillic-normal-400-800.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/ebgaramond-latin-ext-normal-400-800.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/ebgaramond-latin-normal-400-800.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Cormorant Garamond (локально, OFL) ===== */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/cormorantgaramond-cyrillic-ext-italic-300-700.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/cormorantgaramond-cyrillic-italic-300-700.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/cormorantgaramond-latin-ext-italic-300-700.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/cormorantgaramond-latin-italic-300-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/cormorantgaramond-cyrillic-ext-normal-300-700.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/cormorantgaramond-cyrillic-normal-300-700.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/cormorantgaramond-latin-ext-normal-300-700.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/cormorantgaramond-latin-normal-300-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Arno Pro — основной шрифт сайта (файл «2» из папки «Шрифты») ===== */
@font-face {
  font-family: 'Arno Pro';
  font-style: normal;
  /* В файле одно начертание Regular; жирность браузер дорисовывает сам */
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/arnopro-regular.ttf) format('truetype');
}

/* ===== Montserrat 600 — названия лотов в карточках (Google Fonts, OFL) ===== */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/montserrat-cyrillic-600.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/montserrat-latin-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122;
}

/* ===== Montserrat 400 — надписи в меню шапки (Google Fonts, OFL) ===== */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/montserrat-cyrillic-400.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/montserrat-latin-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122;
}

/* ===== Lora (локально, OFL) ===== */
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/lora-cyrillic-ext-italic-400-700.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/lora-cyrillic-italic-400-700.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/lora-latin-ext-italic-400-700.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/lora-latin-italic-400-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/lora-cyrillic-ext-normal-400-700.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/lora-cyrillic-normal-400-700.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/lora-latin-ext-normal-400-700.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/lora-latin-normal-400-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Prata (локально, OFL) — меню в хедере ===== */
@font-face {
  font-family: 'Prata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/prata-cyrillic-ext-normal-400.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Prata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/prata-cyrillic-normal-400.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Prata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/prata-latin-normal-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Фоновая текстура из веток (главная и внутренние страницы) --- */
.page-body {
  position: relative;
}

/* Вариант со сдвигом: текстура начинается ниже заголовка страницы */
.page-body--offset .branches {
  top: 150px;
}

.branches {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(240px, 1fr);
  padding: 24px 20px;
}

.branches img {
  width: 100%;
  height: 100%;
  max-width: 420px;
  object-fit: contain;
  opacity: 0.14;
  filter: saturate(0.25) brightness(1.06);
  align-self: center;
  justify-self: center;
}

.page-body > section > .container,
.page-body > *:not(.branches):not(section) {
  position: relative;
  z-index: 1;
}

.branches__item--1 { grid-area: 1 / 1; justify-self: start; align-self: start; }
.branches__item--2 { grid-area: 1 / 2; }
.branches__item--3 { grid-area: 1 / 3; justify-self: end; align-self: end; }
.branches__item--4 { grid-area: 2 / 1; align-self: end; }
.branches__item--5 { grid-area: 2 / 3; justify-self: end; align-self: start; }
.branches__item--6 { grid-area: 3 / 1; justify-self: center; align-self: start; }
.branches__item--7 { grid-area: 3 / 3; justify-self: center; align-self: end; }

@media (max-width: 768px) {
  .branches {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(220px, 1fr);
  }
  .branches__item--2,
  .branches__item--4,
  .branches__item--5,
  .branches__item--7 { display: none; }
  .branches__item--1 { grid-area: 1 / 1; }
  .branches__item--3 { grid-area: 2 / 1; }
  .branches__item--6 { grid-area: 3 / 1; }
}
