@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&family=Roboto+Slab:wght@400;500;600;700&display=swap');

/* ---------- ПЕРЕМЕННЫЕ И НАСТРОЙКИ ---------- */
:root {
  --bg-black: #242424;
  --bg-panel: #242424;
  --bg-panel-2: #2a2521;
  --gold: #9C7043;
  --gold-soft: #b8925a;
  --cream: #f4ede3;
  --grey-text: #a89f96;
  --line: rgba(255, 255, 255, 0.08);
  --font-display: 'Roboto Slab', 'Georgia', serif;
  --font-body: 'Roboto', 'Segoe UI', sans-serif;
}

/* ---------- СБРОС И БАЗОВЫЕ СТИЛИ ---------- */
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html { 
  scroll-behavior: smooth; 
  overflow-x: hidden;
  width: 100%;
}

body {
  background: var(--bg-black);
  color: var(--cream);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

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

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

ul { 
  list-style: none; 
}

.container {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- ЗАГОЛОВКИ ---------- */
h1, h2, .brand-title {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  font-weight: 600;
  text-transform: uppercase;
  word-wrap: break-word;
}

h3,
.promo-name,
.catalog-subtitle {
  font-family: var(--font-display) !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  color: var(--gold) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  margin-top: 0;
  margin-bottom: 24px;
  line-height: 1.3;
}

h2,
.section-title,
.catalog-heading,
.about-heading,
.contacts-heading {
  font-family: var(--font-display) !important;
  font-size: 32px !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  color: #fff !important;
  line-height: 1.25;
}

.catalog-heading,
.about-heading,
.contacts-heading {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 40px;
}

#contacts.catalog-heading {
  margin-top: 0 !important;
}

.catalog-subheading-gold {
  color: var(--gold);
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: -10px;
  margin-bottom: 30px;
}

.gold-title { color: var(--gold) !important; }
.gold-highlight { color: var(--gold); font-weight: 600; }

/* ---------- ЕДИНАЯ СИСТЕМА ТАБОВ ---------- */
.tabs-container,
.catalog-tabs-container {
  width: 100%;
  display: flex;
  align-items: flex-end;
  margin-top: 20px;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  width: 100%;
  margin-bottom: 20px;
}

.tab-group,
.catalog-tabs,
.promo-tabs {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 100%;
  gap: 8px;
  margin: 0;
}

.tab-btn,
.catalog-tab,
.promo-tabs .tab,
.tabs .tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  appearance: none;
  background: transparent;
  border: 1px solid #444444;
  border-radius: 0 !important;
  color: #c9c9c9;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  opacity: 0.8;
  margin-bottom: -1px;
}

.tab-btn:hover,
.catalog-tab:hover,
.promo-tabs .tab:hover,
.tabs .tab:hover {
  border-color: var(--gold);
  color: #ffffff;
  opacity: 1;
}

.tab-btn.active,
.catalog-tab.active,
.promo-tabs .tab.active,
.tabs .tab.active {
  background-color: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
  font-weight: 700;
  opacity: 1;
}

/* ---------- ШАПКА ---------- */
header.topnav,
header.topnav.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 20px 0;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
}

.header-logo-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo-img {
  height: 70px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ---------- HERO СЕКЦИЯ ---------- */
.hero {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #241a12;
  box-sizing: border-box;
}

body.home header.topnav,
.hero header.topnav {
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

.hero::after {
  content: "";
  position: absolute; 
  inset: 0;
  background: linear-gradient(180deg, rgba(10,7,5,0.65) 0%, rgba(10,7,5,0.3) 50%, rgba(10,7,5,0.7) 100%);
  z-index: 1;
}

.hero > * { 
  position: relative; 
  z-index: 2; 
}

.hero-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 0 !important;
  width: 100%;
}

.cart-icon {
  width: 24px; 
  height: 24px;
  flex-shrink: 0;
  display: flex; 
  align-items: center; 
  justify-content: center;
  position: relative;
  z-index: 10;
  cursor: pointer;
}

.cart-icon img { 
  width: 20px; 
  height: 20px; 
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- БУРГЕР-МЕНЮ И НАВИГАЦИЯ ---------- */
.burger-menu {
  width: 28px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.burger-menu span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  transition: transform .3s ease, opacity .3s ease;
}

.burger-menu.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger-menu.active span:nth-child(2) { opacity: 0; }
.burger-menu.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  max-width: 80vw;
  height: 100vh;
  height: 100dvh;
  background: #181818;
  z-index: 40;
  padding: 110px 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transition: left .35s ease;
  box-shadow: 20px 0 50px rgba(0,0,0,.5);
  overflow-y: auto;
}

.mobile-nav.open { left: 0; }
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color .2s;
}
.mobile-nav a:hover { color: var(--gold); }

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease;
  z-index: 35;
}

.mobile-nav-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* ---------- ВРАЩАЮЩИЙСЯ ЛОГОТИП ---------- */
.logo-spin-wrap {
  position: relative;
  width: 300px;
  height: 300px;
  max-width: 80vw;
  max-height: 80vw;
  display: grid;
  place-items: center;
}

.logo-spin-wrap > img {
  grid-area: 1 / 1;
}

.logo-ring {
  width: 100%;
  height: 100%;
  animation: logo-spin 32s linear infinite;
}

.logo-static {
  width: 82%;
  height: 82%;
  object-fit: contain;
  z-index: 2;
}

@keyframes logo-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ---------- КНОПКИ ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;   
  padding: 18px 32px;
  border: 1px solid #fff;
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  transition: background 0.3s;
  margin-bottom: 40px;
  max-width: 100%;
  text-align: center;
  cursor: pointer;
}

.btn-hero {
  box-sizing: border-box !important;
  min-width: 210px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #30261C;
  border: 1px solid #fff;
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0.02em;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 32px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  transition: background .3s, border-color .3s;
}

.btn-outline-gold {
  border: 1px solid #fff;
  background: #242424;
  color: var(--cream);
}
.btn-outline-gold:hover { background: var(--gold); border-color: var(--gold); color: var(--cream); }

/* Анимация кнопок (btn-one) */
.btn.btn-one,
.btn-outline.btn-one,
.btn-order.btn-one {
  border: none !important;
  position: relative;
  background: transparent;
  overflow: visible;
  padding: 18px 32px;
  transition: color 0.3s ease;
}

.btn-one span {
  position: relative;
  z-index: 3;
  transition: color 0.3s ease !important;
}

.btn-one:hover span {
  letter-spacing: normal !important;
  color: var(--gold) !important;
}

.btn-one::before {
  content: '';
  position: absolute;
  inset: 0;
  border-left: 1px solid #fff;
  border-right: 1px solid #fff;
  transition: transform 0.4s ease, opacity 0.3s ease, border-color 0.3s ease;
  transform: scaleY(1);
  transform-origin: center;
  opacity: 1;
  z-index: 2;
  pointer-events: none;
}

.btn-one::after {
  content: '';
  position: absolute;
  inset: 0;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
  transition: transform 0.4s ease, border-color 0.3s ease;
  transform: scaleX(1);
  z-index: 2;
  pointer-events: none;
  background: transparent;
}

.btn-one:hover::before {
  transform: scaleY(0);
  opacity: 0;
  border-color: var(--gold);
}

.btn-one:hover::after {
  transform: scaleX(1);
  border-color: var(--gold);
}

/* ---------- СЕКЦИИ (ОБЩЕЕ) ---------- */
section {
  padding: 0;
  border-bottom: 1px solid var(--line);
  width: 100%;
}

section.alt { background: var(--bg-panel); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}

.full-bleed-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 0;
  border: none;
}

/* ---------- СЕКЦИЯ АКЦИИ (#PROMO) ---------- */
#promo { 
  margin-bottom: 0 !important;
  padding-top: 90px; 
  padding-bottom: 0; 
}

.promo-carousel-viewport {
  width: 100%;
  overflow: hidden;
  margin: 0;
}

.promo-carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.promo-slide {
  min-width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-shrink: 0;
  gap: 40px;
}

.promo-left { 
  flex: 1; 
  max-width: 460px;
  padding: 40px 0; 
  display: flex;             
  flex-direction: column;    
}

.promo-right { 
  flex: 1;
  max-width: 460px;
}

.promo-right img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  margin: 0; 
}

.promo-desc {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-container {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-top: 0;
  margin-bottom: auto;
}

.price-old {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--gold);
  text-decoration: line-through;
  text-decoration-color: red;
}

.price-new {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--gold);
}

.btn-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;    
  padding: 18px 32px;
  border: 1px solid #fff;
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  transition: background 0.3s;
  margin-top: 20px;
  margin-bottom: 40px;
}

/* ---------- CATALOG ---------- */
#catalog {
  background: #181818;
  margin-top: 0 !important;
  padding-top: 90px !important;
}

.catalog-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 80px;
  align-items: stretch;
  padding: 0;
}

.catalog-col-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}

.catalog-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: #fff;
  line-height: 1.6;
  margin-bottom: 40px;
}

.catalog-btn {
  align-self: flex-start;
  margin-bottom: 0;
}

.catalog-col-image {
  width: 100%;
  height: 100%;
}

.catalog-col-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-row-dark {
  background-color: #181818;
  width: 100%;
  padding: 0;
}

.product-catalog-section {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
  padding: 0;
}

.catalog-price-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.catalog-price-tag .price-divider {
  color: #555;
  font-weight: 300;
}

.capsule-specs {
  list-style: none;
  padding: 0;
  margin: 15px 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.capsule-specs li {
  font-size: 14px;
  color: #d1d1d1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.capsule-specs .spec-label { color: #888; font-size: 13px; }
.capsule-specs .spec-value { font-size: 14px; }

/* ---------- КАТАЛОГ СЛАЙДЕР И ВКЛАДКИ ---------- */
.catalog-slider-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  transition: height 0.3s ease;
}

.catalog-slider-track {
  display: flex;
  width: 300%;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, height;
  align-items: flex-start;
}

.catalog-pane {
  width: 33.33333%;
  flex-shrink: 0;
  opacity: 0.4;
  transition: opacity 0.4s ease;
  visibility: hidden;
  height: 0;
  overflow: hidden;
}

.catalog-pane.active {
  opacity: 1;
  visibility: visible;
  height: auto;
  overflow: visible;
}

/* ---------- О НАС & КОНТАКТЫ ---------- */
#about {
  padding-top: 90px;
  padding-bottom: 0;
}

#contacts {
  background: #181818;
  padding-top: 90px;
  padding-bottom: 0;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 80px;
  align-items: stretch;
  padding: 0;
}

.contact-map {
  width: 100%;
  min-height: 300px;
  overflow: hidden;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.contact-row-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: #fff;
}

.contact-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--gold);
}

.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: #181818;
  padding-top: 40px;
  padding-bottom: 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
}

.footer-nav a { color: var(--grey-text); transition: color .2s; }
.footer-nav a:hover { color: var(--gold); }
.footer-nav-left { justify-self: start; }
.footer-nav-right {
  justify-self: end;
  align-items: flex-end;
  text-align: right;
}

.footer-logo { justify-self: center; width: 90px; }
.footer-logo img { width: 100%; height: auto; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
}

.footer-copy {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--grey-text);
  letter-spacing: 0.04em;
}

.footer-policies { display: flex; gap: 24px; }
.footer-policies a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--grey-text);
  letter-spacing: 0.04em;
  transition: color .2s;
}
.footer-policies a:hover { color: var(--gold); }

/* ---------- МОДАЛЬНОЕ ОКНО КОРЗИНЫ ---------- */
.cart-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease;
  z-index: 100;
}

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

.cart-modal {
  position: fixed;
  top: 0;
  right: -450px;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  height: 100dvh;
  background: #1e1e1e;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  z-index: 101;
  display: flex;
  flex-direction: column;
  transition: right .35s cubic-bezier(0.25, 1, 0.5, 1);
}

.cart-modal.open { right: 0; }

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

.cart-modal-title {
  font-size: 22px !important;
  color: #fff !important;
  margin: 0 !important;
}

.cart-close-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

.cart-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-empty-text {
  color: var(--grey-text);
  font-size: 16px;
  text-align: center;
  margin-top: 40px;
}

.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  background: #2a2521;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cart-item-title {
  font-family: var(--font-display);
  font-size: 16px;
  color: #fff;
  font-weight: 600;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--grey-text);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
}
.cart-item-remove:hover { color: #e74c3c; }

.cart-item-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 15px 0;
}

.cart-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.option-label {
  font-size: 12px;
  color: #a0a0a0;
}

.weight-selector,
.roast-selector,
.grind-selector {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.weight-btn,
.roast-btn,
.grind-btn {
  background: transparent;
  border: 1px solid #444;
  color: #ccc;
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.weight-btn.active,
.roast-btn.active,
.grind-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.roast-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cart-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #141414;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 2px 6px;
}

.qty-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  width: 20px;
  cursor: pointer;
}

.qty-value {
  font-size: 14px;
  color: #fff;
  min-width: 16px;
  text-align: center;
}

.cart-item-price {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--gold);
  font-weight: 600;
}

.cart-modal-footer {
  padding: 20px 24px 28px;
  border-top: 1px solid var(--line);
  background: #181818;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  color: #fff;
  font-family: var(--font-display);
}

.cart-total-price {
  color: var(--gold);
  font-weight: 700;
}

.cart-checkout-btn {
  width: 100%;
  text-align: center;
}

/* СТРАНИЦА КАТАЛОГА */
.page-title-section {
  padding-top: 90px !important;
  padding-bottom: 30px;
}
.page-title-section .catalog-heading {
  margin-bottom: 0 !important;
}

/* ==========================================================================
   B2B PAGE STYLES
   ========================================================================== */

.b2b-hero {
  padding: 60px 20px 40px;
  text-align: center;
  background: radial-gradient(circle at center, rgba(197, 160, 89, 0.08) 0%, transparent 70%);
}

.hero-subtitle {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--cream);
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-desc {
  max-width: 650px;
  margin: 0 auto 30px;
  color: #bbb;
  font-size: 1.05rem;
  line-height: 1.6;
}

.b2b-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.feature-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.88rem;
  color: #aaa;
  line-height: 1.5;
}

.b2b-price-section {
  margin-bottom: 80px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--cream);
}

.section-subtitle {
  color: #888;
  font-size: 0.95rem;
  margin-top: 6px;
}

.b2b-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-panel);
  width: 100%;
}

.b2b-price-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
}

.b2b-price-table th,
.b2b-price-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.b2b-price-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.b2b-price-table td {
  color: #ccc;
}

.b2b-price-table td.highlight {
  color: var(--gold);
  font-weight: 700;
}

.b2b-form-section {
  margin-bottom: 80px;
}

.form-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.form-text h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--cream);
  margin-bottom: 12px;
}

.form-text p {
  color: #aaa;
  line-height: 1.6;
  margin-bottom: 24px;
}

.b2b-direct-contact {
  font-size: 0.95rem;
  color: #888;
}

.phone-link {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  margin-top: 4px;
}

.b2b-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: #12100f;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--gold);
}

.btn-b2b {
  font-family: var(--font-display) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.b2b-form .btn-b2b {
  width: 100%;
  margin-top: 10px;
}

/* ==========================================================================
   ШАХМАТКА (ZEBRA LAYOUT) ДЛЯ ДЕСКТОПА (min-width: 861px)
   ========================================================================== */

@media (min-width: 861px) {
  /* 1. Работа для GRID блоков (.catalog-row, .contact-row) */
  .catalog-row.row-reverse,
  .contact-row.row-reverse,
  .catalog-row:nth-child(even),
  .contact-row:nth-child(even) {
    direction: rtl; /* Разворачивает визуальный порядок колонок */
  }

  /* Восстанавливаем порядок текста внутри развернутых колонок */
  .catalog-row.row-reverse > *,
  .contact-row.row-reverse > *,
  .catalog-row:nth-child(even) > *,
  .contact-row:nth-child(even) > * {
    direction: ltr;
  }

  /* 2. Работа для FLEXBOX блоков (.promo-slide) */
  .promo-slide.row-reverse,
  .promo-slide:nth-child(even) {
    flex-direction: row-reverse;
  }
}

/* ==========================================================================
   MEDIA QUERIES (АДАПТИВНАЯ ВЕРСТКА)
   ========================================================================== */

@media (max-width: 860px) {
  /* Шапка и лого */
  header.topnav,
  header.topnav.container {
    padding-top: 16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-logo-img {
    height: 52px;
  }

  .logo-spin-wrap {
    width: 220px;
    height: 220px;
  }

  /* Заголовки */
  h2,
  .section-title,
  .catalog-heading,
  .about-heading,
  .contacts-heading {
    font-size: 24px !important;
    margin-bottom: 24px;
  }

  h3,
  .promo-name,
  .catalog-subtitle {
    font-size: 20px !important;
    margin-bottom: 16px;
  }

  /* Сетки страниц */
  .catalog-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .catalog-col-text {
    padding: 24px 0 0 0;
  }

  .catalog-col-image {
    min-height: 240px;
    max-height: 380px;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-map {
    min-height: 260px;
  }

  .section-head,
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  /* Табы и переключатели */
  .tab-group,
  .catalog-tabs,
  .promo-tabs {
    display: flex;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }

  .tab-group::-webkit-scrollbar,
  .catalog-tabs::-webkit-scrollbar,
  .promo-tabs::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .tab-btn,
  .catalog-tab,
  .promo-tabs .tab,
  .tabs .tab {
    flex: 0 0 auto;
    padding: 10px 16px;
  }

  /* Слайдер промо */
  #promo, #catalog, #about, #contacts {
    padding-top: 60px;
  }

  .promo-carousel-viewport { 
    overflow: hidden; 
    width: 100%; 
  }

  .promo-slide { 
    flex-direction: column; 
    gap: 24px; 
  }

  .promo-left {
    max-width: 100%;
    padding: 10px 0;
  }

  .promo-right { 
    max-width: 100%; 
    height: 260px;
  }

  .promo-right img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
  }

  /* Футер */
  .footer-top { 
    grid-template-columns: 1fr; 
    justify-items: center; 
    gap: 24px; 
  }

  .footer-nav-left, 
  .footer-nav-right, 
  .footer-logo { 
    justify-self: center; 
    text-align: center;
  }

  .footer-nav { 
    flex-wrap: wrap; 
    justify-content: center; 
    align-items: center;
  }

  .footer-bottom { 
    flex-direction: column; 
    gap: 16px; 
    text-align: center; 
  }

  /* B2B Раздел */
  .b2b-hero {
    padding: 40px 16px 20px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .form-card {
    grid-template-columns: 1fr;
    padding: 24px 16px;
    gap: 24px;
  }

  .b2b-price-section,
  .b2b-form-section {
    margin-bottom: 50px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .btn,
  .btn-hero,
  .btn-outline,
  .btn-order {
    width: 100%;
    padding: 14px 20px;
    font-size: 14px;
  }

  .price-container {
    gap: 12px;
  }

  .price-old, .price-new {
    font-size: 20px;
  }

  .cart-modal {
    max-width: 100vw;
  }

  .cart-item {
    grid-template-columns: 60px 1fr;
    gap: 12px;
  }

  .cart-item-img {
    width: 60px;
    height: 60px;
  }

  .hero-center {
    padding: 60px 0 !important;
  }
}