/* ==========================================================================
   ЛОФТ И ДЕРЕВО — Официальная таблица стилей (Легковесный автономный стек)
   Палитра: Премиальный лофт (графит #0d0f14, ночной #161922, античное золото #deb15c)
   Типографика: Roboto / -apple-system, sans-serif
   ========================================================================== */

:root {
  --bg-body: #0d0f14;
  --bg-card: #151821;
  --bg-card-hover: #1b1f2b;
  --bg-header: rgba(13, 15, 20, 0.92);
  --bg-elevated: #1e2330;
  
  --gold-primary: #deb15c;
  --gold-light: #f3ce85;
  --gold-dark: #b88b32;
  --gold-border: rgba(222, 177, 92, 0.25);
  --gold-glow: rgba(222, 177, 92, 0.15);
  
  --text-main: #f0f2f5;
  --text-muted: #9aa2b1;
  --text-dim: #6d7584;
  --white: #ffffff;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-gold: 0 0 20px rgba(222, 177, 92, 0.25);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

/* ==========================================================================
   ШАПКА (HEADER)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo img {
  height: 48px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  padding: 8px 4px;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-primary);
  border-radius: 2px;
}

/* Выпадающие меню */
.nav-item-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #141722;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  padding: 10px 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1100;
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-main);
  transition: var(--transition);
}

.dropdown-link:hover {
  background: rgba(222, 177, 92, 0.1);
  color: var(--gold-primary);
  padding-left: 24px;
}

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

.header-phone {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-phone:hover {
  color: var(--gold-light);
}

.burger-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 26px;
  cursor: pointer;
}

/* ==========================================================================
   КНОПКИ
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #deb15c 0%, #b88b32 100%);
  color: #0d0f14;
  box-shadow: 0 4px 15px rgba(222, 177, 92, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f3ce85 0%, #c99939 100%);
  box-shadow: 0 6px 22px rgba(222, 177, 92, 0.45);
  transform: translateY(-2px);
  color: #0d0f14;
}

.btn-outline {
  background: transparent;
  color: var(--gold-primary);
  border-color: var(--gold-border);
}

.btn-outline:hover {
  background: rgba(222, 177, 92, 0.12);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

.btn-lg {
  padding: 15px 32px;
  font-size: 16px;
}

/* ==========================================================================
   ГЛАВНЫЙ БАННЕР (HERO SECTION)
   ========================================================================== */
.hero-section {
  padding: 70px 0 50px;
  position: relative;
}

.hero-box {
  background: linear-gradient(145deg, #171a24 0%, #10121a 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 50px 60px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.hero-box::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(222, 177, 92, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(222, 177, 92, 0.12);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-primary);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-title span {
  color: var(--gold-primary);
}

.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 30px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-img {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-img img {
  max-height: 380px;
  width: auto;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.7));
  transition: transform 0.4s ease;
}

.hero-img:hover img {
  transform: scale(1.02);
}

/* ==========================================================================
   КАРТОЧКИ ПРЕИМУЩЕСТВ (BENEFITS 4 GRID)
   ========================================================================== */
.benefits-section {
  padding: 50px 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.benefit-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-border);
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), var(--shadow-gold);
}

.benefit-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(222, 177, 92, 0.1);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--gold-primary);
  font-size: 24px;
}

.benefit-icon img {
  width: 30px;
  height: 30px;
}

.benefit-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.benefit-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   КАТАЛОГ ПРОДУКЦИИ (PRODUCTS GRID)
   ========================================================================== */
.section {
  padding: 70px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-subtitle {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-primary);
  margin-bottom: 10px;
}

.section-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 15px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.product-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-border);
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), var(--shadow-gold);
}

.product-thumb {
  height: 260px;
  background: #11141c;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.product-thumb img {
  max-height: 220px;
  width: auto;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6));
}

.product-card:hover .product-thumb img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(20, 23, 34, 0.85);
  border: 1px solid var(--gold-border);
  color: var(--gold-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.product-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.product-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.meta-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.product-actions {
  display: flex;
  gap: 10px;
}

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

/* ==========================================================================
   О БРЕНДЕ (ABOUT SECTION)
   ========================================================================== */
.about-section {
  background: linear-gradient(180deg, var(--bg-body) 0%, #11141c 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.about-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.3;
}

.about-content p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
}

.stat-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--gold-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-dim);
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.about-gallery img {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.about-gallery img:hover {
  transform: scale(1.03);
}

/* ==========================================================================
   ГДЕ КУПИТЬ (MARKETPLACES SECTION)
   ========================================================================== */
.marketplaces-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.market-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.market-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-border);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.market-icon {
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--gold-primary);
}

.market-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.market-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ==========================================================================
   ПОДРОБНЫЕ БЛОКИ ПРОДУКТОВ (ДЛЯ ВНУТРЕННИХ СТРАНИЦ)
   ========================================================================== */
.product-hero {
  padding: 60px 0 40px;
}

.product-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
}

.feature-box:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-border);
  transform: translateY(-4px);
}

.feature-box h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.specs-table th, .specs-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}

.specs-table th {
  background: rgba(222, 177, 92, 0.08);
  color: var(--gold-primary);
  font-weight: 600;
}

.specs-table td:first-child {
  font-weight: 600;
  color: var(--text-main);
  width: 35%;
}

.specs-table td:last-child {
  color: var(--text-muted);
}

.specs-table tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   ФОРМА ОБРАТНОЙ СВЯЗИ / МОДАЛЬНОЕ ОКНО
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #141722;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), var(--shadow-gold);
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--gold-primary);
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: #0d0f14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(222, 177, 92, 0.2);
}

/* ==========================================================================
   ПОДВАЛ (FOOTER)
   ========================================================================== */
.site-footer {
  background: #090b0e;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 15px;
  margin-bottom: 20px;
}

.footer-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold-primary);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-contact-item b {
  color: var(--text-main);
}

.footer-bottom {
  padding-top: 25px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
}

/* ==========================================================================
   АДАПТИВНОСТЬ (RESPONSIVE)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-box {
    grid-template-columns: 1fr;
    padding: 40px 30px;
    text-align: center;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-img {
    margin-top: 20px;
  }
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-box {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .marketplaces-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-nav, .header-phone {
    display: none;
  }
  .burger-btn {
    display: block;
  }
  .hero-title {
    font-size: 32px;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .marketplaces-grid {
    grid-template-columns: 1fr;
  }
  .product-features-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
