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

:root {
  --bg-dark: #120e0c;
  --bg-card: rgba(28, 21, 18, 0.85);
  --bg-card-hover: rgba(38, 29, 25, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(217, 119, 6, 0.18);
  --border-glass-hover: rgba(217, 119, 6, 0.45);
  
  --primary-wood: #d97706;
  --primary-wood-light: #f59e0b;
  --primary-wood-dark: #b45309;
  
  --accent-forest: #16a34a;
  --accent-forest-glow: rgba(22, 163, 74, 0.3);
  
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-wood: #f1f5f9;
  
  --wood-grain-accent: #c88a4b;
  --danger: #ef4444;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(217, 119, 6, 0.15);
  --shadow-glow: 0 0 25px rgba(217, 119, 6, 0.35);
  
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);

  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.85rem);
  --text-sm: clamp(0.85rem, 0.8rem + 0.25vw, 0.95rem);
  --text-base: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem);
  --text-lg: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
  --text-xl: clamp(1.35rem, 1.2rem + 0.8vw, 1.6rem);
  --text-2xl: clamp(1.75rem, 1.5rem + 1.2vw, 2.3rem);
  --text-hero: clamp(2.2rem, 1.5rem + 3.5vw, 4rem);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  font-size: clamp(14px, 13px + 0.25vw, 16px);
}

body {
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #291a13 0%, #120e0c 60%);
  min-height: 100vh;
}

body.cart-open {
  overflow: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.topbar {
  background: rgba(18, 14, 12, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0;
  font-size: 0.85rem; 
  color: var(--text-muted);
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(22, 163, 74, 0.15);
  border: 1px solid rgba(22, 163, 74, 0.4);
  color: #4ade80;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.8rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.topbar-contacts {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.topbar-link {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  font-size: 0.85rem;
}

.topbar-link:hover {
  color: var(--primary-wood-light);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(18, 14, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  padding: 12px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(18, 14, 12, 0.97);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.logo-subtitle {
  display: block;
  font-size: 0.55em;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 1px;
  margin-top: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary-wood-dark), var(--primary-wood-light));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
}

.logo span {
  color: var(--primary-wood-light);
}

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-wood);
  position: relative;
  padding: 4px 0;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary-wood-light);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary-wood-light);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-menu-btn:hover {
  color: var(--primary-wood-light);
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary-wood), var(--primary-wood-dark));
  color: #fff;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.cart-count {
  background: #fff;
  color: var(--primary-wood-dark);
  font-size: 0.8rem;
  font-weight: 800;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  position: relative;
  min-height: clamp(420px, 70vh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(48px, 8vw, 80px) 0;
  background-color: #1a120e;
  background-image: linear-gradient(180deg, rgba(18, 14, 12, 0.45) 0%, rgba(18, 14, 12, 0.92) 100%),
                    url('assets/hero.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(217, 119, 6, 0.2);
  border: 1px solid var(--border-glass-hover);
  color: var(--primary-wood-light);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 22px;
  text-align: center;
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: var(--space-md);
  text-align: center;
  background: linear-gradient(135deg, #ffffff 40%, var(--wood-grain-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--text-wood);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
  font-weight: 500;
  text-align: center;
  max-width: 720px;
}

.hero-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 35px;
  width: 100%;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1.1rem; 
}

.hero-feature-item i {
  color: var(--accent-forest);
  font-size: 1.3rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-wood-light), var(--primary-wood-dark));
  color: #fff;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.15rem; 
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.15rem; 
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.section {
  padding: 70px 0;
}

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

.section-tag {
  color: var(--primary-wood-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem; 
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  color: var(--text-wood);
  font-size: var(--text-base);
  font-weight: 500;
}

.calculator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 360px);
  gap: var(--space-lg);
  align-items: start;
}

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

.calc-dimension-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
  align-items: end;
}

@media (max-width: 600px) {
  .calc-dimension-grid {
    grid-template-columns: 1fr;
  }
}

.field-hint {
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
  font-size: var(--text-xs);
}

.field-group {
  min-width: 0;
}

.calc-form-group {
  margin-bottom: 24px;
}

.calc-label {
  display: block;
  font-weight: 700;
  font-size: 1rem; 
  margin-bottom: 8px;
  color: var(--text-wood);
}

.wood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.wood-grid-single {
  grid-template-columns: 1fr;
}

.wood-radio {
  display: none;
}

.wood-option {
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.wood-radio:checked + .wood-option {
  border-color: var(--primary-wood-light);
  background: rgba(217, 119, 6, 0.15);
  box-shadow: 0 0 16px rgba(217, 119, 6, 0.2);
}

.wood-option i {
  font-size: 1.5rem;
  color: var(--primary-wood-light);
  margin-bottom: 5px;
  display: block;
}

.wood-name {
  font-weight: 700;
  font-size: 1rem; 
  display: block;
}

.wood-density {
  font-size: 0.8rem; 
  color: var(--text-muted);
}

.dimension-inputs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 600px) {
  .dimension-inputs {
    grid-template-columns: 1fr 1fr;
  }
}

.input-field {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #fff;
  font-size: 1rem; 
  font-weight: 600;
  transition: var(--transition);
}

.input-field:focus {
  outline: none;
  border-color: var(--primary-wood-light);
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.3);
}

.treatment-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem; 
  font-weight: 600;
}

.checkbox-label:hover {
  background: rgba(255, 255, 255, 0.08);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-wood-light);
}

.calc-result-box {
  background: linear-gradient(165deg, rgba(41, 26, 19, 0.9), rgba(18, 14, 12, 0.95));
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.result-title {
  font-size: 1.25rem;
  color: var(--primary-wood-light);
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 1rem; 
}

.result-row .label {
  color: var(--text-wood);
}

.result-row .value {
  font-weight: 700;
  color: #fff;
}

.total-price-box {
  background: rgba(217, 119, 6, 0.15);
  border: 1px solid var(--primary-wood);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 16px 0;
  text-align: center;
}

.total-price-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-wood-light);
  font-weight: 700;
}

.total-price-val {
  font-size: 2.2rem; 
  font-weight: 800;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  margin-top: 4px;
}

.total-volume {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.catalog-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-wood);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem; 
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--primary-wood);
  color: #fff;
  border-color: var(--primary-wood);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

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

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-lg);
}

.product-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #2a1a12 0%, #1a120e 100%);
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.08);
}

.product-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(18, 14, 12, 0.85);
  border: 1px solid var(--primary-wood-light);
  color: var(--primary-wood-light);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-size: 0.8rem; 
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.product-info {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.25rem; 
  margin-bottom: 6px;
}

.product-desc {
  color: var(--text-wood);
  font-size: 0.95rem; 
  margin-bottom: 14px;
  flex-grow: 1;
}

.product-specs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.85rem; 
  color: var(--text-wood);
}

.product-spec-item {
  background: rgba(255, 255, 255, 0.04);
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.product-price {
  font-size: 1.3rem; 
  font-weight: 800;
  color: var(--primary-wood-light);
}

.product-price span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 30px 22px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-wood-light);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.2), rgba(217, 119, 6, 0.05));
  border: 1px solid var(--primary-wood);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-wood-light);
  margin-bottom: 15px;
  margin-left: auto;
  margin-right: auto;
}

.service-title {
  font-size: 1.25rem; 
  margin-bottom: 8px;
}

.service-desc {
  color: var(--text-wood);
  font-size: 0.95rem; 
}

.sustainability-banner {
  background-color: #141a14;
  background-image: linear-gradient(135deg, rgba(22, 163, 74, 0.15), rgba(18, 14, 12, 0.95)),
                    url('assets/machinery.jpg');
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(22, 163, 74, 0.3);
  border-radius: var(--radius-lg);
  padding: 45px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

@media (max-width: 850px) {
  .sustainability-banner {
    grid-template-columns: 1fr;
    padding: 30px;
  }
}

.sust-badge {
  color: #4ade80;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.sust-title {
  font-size: 2rem;
  margin: 8px 0 14px;
}

.sust-desc {
  color: var(--text-wood);
  font-size: 1.05rem; 
  margin-bottom: 18px;
}

.sust-stats {
  display: flex;
  gap: 20px;
}

.sust-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: #4ade80;
  font-family: 'Outfit', sans-serif;
}

.sust-stat-label {
  font-size: 0.9rem; 
  color: var(--text-wood);
}

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

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

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 35px;
}

.info-item {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}

.info-icon {
  width: 46px;
  height: 46px;
  border-radius: 9px;
  background: rgba(217, 119, 6, 0.15);
  border: 1px solid var(--primary-wood);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-wood-light);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-title {
  font-size: 1.1rem; 
  font-weight: 700;
  margin-bottom: 4px;
}

.info-text {
  color: var(--text-wood);
  font-size: 1rem; 
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -500px;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: #18120e;
  border-left: 1px solid var(--border-glass-hover);
  z-index: 2001;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
}

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

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.drawer-title {
  margin: 0;
  font-size: var(--text-lg);
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-wood);
  font-size: 1.6rem;
  cursor: pointer;
  transition: var(--transition);
}

.close-btn:hover {
  color: #fff;
}

.cart-items-list {
  flex-grow: 1;
  overflow-y: auto;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-empty-msg {
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
}

.cart-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-item-title {
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  font-size: var(--text-sm);
}

.cart-item-detail {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

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

.cart-item-price {
  color: var(--primary-wood-light);
  font-weight: 700;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: var(--text-xs);
  padding: 4px 6px;
  transition: var(--transition);
}

.cart-item-remove:hover {
  color: #fff;
}

.cart-summary {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  margin-bottom: var(--space-lg);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 12px;
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-lg);
  font-weight: 800;
  gap: 12px;
}

.quote-form-box {
  background: rgba(0, 0, 0, 0.3);
  padding: var(--space-md);
  border-radius: 6px;
  margin-bottom: var(--space-lg);
}

.quote-form-label {
  color: var(--primary-wood-light);
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
  font-size: var(--text-sm);
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.section-alt-bg {
  background: rgba(0, 0, 0, 0.2);
}

.section-dark-bg {
  background: rgba(0, 0, 0, 0.3);
}

.section-no-top-pad {
  padding-top: 0;
}

.card-heading {
  font-size: var(--text-lg);
  margin-bottom: var(--space-lg);
}

.card-heading-sm {
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 45px 0 22px;
  color: var(--text-wood);
  font-size: 0.95rem; 
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 14px;
  font-size: 1.1rem; 
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--primary-wood-light);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  font-size: 0.9rem;
}

@media (max-width: 992px) {
  .topbar {
    padding: 10px 0;
  }

  .topbar-content {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-xs);
    text-align: center;
  }

  .status-badge {
    width: 100%;
    justify-content: center;
    font-size: var(--text-sm);
    padding: 6px 14px;
  }

  .topbar-contacts {
    flex-direction: column;
    gap: var(--space-xs);
    align-items: center;
    width: 100%;
  }

  .topbar-link {
    font-size: var(--text-sm);
    justify-content: center;
  }

  .topbar-link:nth-child(3) {
    display: none;
  }

  .nav-container {
    position: relative;
    flex-wrap: wrap;
    gap: var(--space-xs);
  }

  .logo {
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    flex: 1;
    min-width: 0;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .logo-subtitle {
    font-size: 0.5em;
    letter-spacing: 0.5px;
  }

  .cart-btn {
    padding: 8px 14px;
    font-size: var(--text-sm);
  }

  .cart-btn-label {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
    font-size: 1.6rem;
    line-height: 1;
    padding: 4px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(18, 14, 12, 0.99);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: var(--space-lg) var(--space-md);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    gap: var(--space-xs);
    align-items: stretch;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: var(--text-base);
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
  }

  .hero-tag {
    font-size: var(--text-sm);
    padding: 10px 18px;
    margin-bottom: var(--space-md);
  }

  .hero-features {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .hero-feature-item {
    font-size: var(--text-base);
    padding: 12px 16px;
    width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: var(--space-sm);
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    font-size: var(--text-base);
    padding: 14px 24px;
  }

  .section {
    padding: clamp(40px, 8vw, 70px) 0;
  }

  .calculator-card {
    padding: var(--space-lg) var(--space-md);
  }

  .calc-result-box {
    order: -1;
  }

  .result-row {
    font-size: var(--text-sm);
  }

  .total-price-val {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

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

  .sustainability-banner {
    grid-template-columns: 1fr;
    padding: var(--space-lg);
    text-align: center;
  }

  .sust-stats {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }

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

  .contact-info-card {
    padding: var(--space-lg) var(--space-md);
  }

  .info-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-grid {
    text-align: center;
  }

  .footer-col .logo {
    justify-content: center;
  }
}

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

  .cart-drawer {
    max-width: 100%;
    padding: var(--space-md);
  }

  .filter-btn {
    flex: 1 1 auto;
    min-width: 120px;
    text-align: center;
  }
}