/* ==========================================================================
   UkrEcoPelleta & ТОВ «УКРЕКОПЕЛЕТА» — Design System & Stylesheet
   Theme: Eco-Industrial Green & Clean White with Warm Wood Accents
   ========================================================================== */

:root {
  /* Colors */
  --color-brand-primary: #1e5631;       /* Deep Forest Green */
  --color-brand-primary-dark: #143d22;  /* Dark Spruce */
  --color-brand-primary-light: #2d7f48; /* Vibrant Leaf Green */
  --color-brand-accent: #22c55e;        /* Bright Eco Green */
  --color-brand-accent-glow: rgba(34, 197, 94, 0.25);

  --color-wood-primary: #966138;        /* Natural Warm Wood / Amber */
  --color-wood-dark: #6e4222;           /* Deep Oak */
  --color-wood-light: #d8a47f;          /* Light Birch / Pine */
  --color-wood-tint: #f6ede3;           /* Warm Kraft Paper tint */

  --color-bg-base: #fcfbf9;             /* Warm Crisp Eco White */
  --color-bg-surface: #ffffff;          /* Pure White */
  --color-bg-subtle: #f3efe6;           /* Subtle warm linen */
  --color-bg-card: #ffffff;
  --color-bg-dark: #121914;             /* Premium Industrial Charcoal-Green */

  --color-text-main: #18201a;           /* Dark Slate */
  --color-text-muted: #536056;          /* Muted Sage Slate */
  --color-text-light: #89968c;
  --color-text-inverse: #ffffff;
  --color-text-wood: #7d4924;

  --color-border: #e2ddd4;
  --color-border-light: #ece8e0;
  --color-border-brand: #a8dfbc;

  --color-success: #16a34a;
  --color-warning: #d97706;
  --color-info: #0284c7;

  /* Typography */
  --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --font-family-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Sizing & Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(18, 25, 20, 0.06), 0 1px 2px rgba(18, 25, 20, 0.04);
  --shadow-md: 0 4px 12px rgba(18, 25, 20, 0.08), 0 2px 4px rgba(18, 25, 20, 0.04);
  --shadow-lg: 0 12px 28px rgba(18, 25, 20, 0.1), 0 4px 8px rgba(18, 25, 20, 0.05);
  --shadow-xl: 0 20px 40px -10px rgba(18, 25, 20, 0.15);
  --shadow-glow: 0 0 30px var(--color-brand-accent-glow);

  /* Layout */
  --container-max: 1240px;
  --header-height: 80px;
  --transition-fast: 0.18s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--font-family-sans);
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  position: relative;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6, .footer-heading {
  font-family: var(--font-family-heading);
  color: var(--color-text-main);
  line-height: 1.25;
  font-weight: 700;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-brand-primary-light), var(--color-wood-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-green {
  background: linear-gradient(135deg, #22c55e, #86efac);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Top Notification Banner */
.top-bar {
  background-color: var(--color-brand-primary-dark);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  padding-block: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.8rem;
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.825rem;
  transition: color var(--transition-fast);
}

.top-bar-link:hover {
  color: #ffffff;
}

/* Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 251, 249, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

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

/* Brand Logo */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-brand-primary), var(--color-wood-primary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(30, 86, 49, 0.25);
  overflow: hidden;
  flex-shrink: 0;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-family-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-brand-primary-dark);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-title span {
  color: var(--color-wood-primary);
}

.brand-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-main);
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: color var(--transition-fast);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-brand-primary);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-pill-highlight {
  background: var(--color-wood-tint);
  color: var(--color-wood-dark);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-wood-light);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-pill-highlight:hover {
  background: var(--color-wood-light);
  color: #fff;
}

.nav-menu .mobile-nav-cta {
  display: none;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 3px;
}

.lang-btn {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: var(--color-brand-primary);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  min-height: 48px; /* Accessible tap target */
  transition: all var(--transition-fast);
  text-align: center;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-brand-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(30, 86, 49, 0.25);
}

.btn-primary:hover {
  background: var(--color-brand-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(30, 86, 49, 0.35);
  color: #ffffff;
}

.btn-wood {
  background: linear-gradient(135deg, var(--color-wood-primary), var(--color-wood-dark));
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(150, 97, 56, 0.3);
}

.btn-wood:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(150, 97, 56, 0.4);
  color: #ffffff;
}

.btn-secondary {
  background: var(--color-bg-surface);
  color: var(--color-brand-primary);
  border: 1.5px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-bg-subtle);
  border-color: var(--color-brand-primary);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--color-brand-accent);
  color: #0b341c;
  font-weight: 800;
}

.btn-accent:hover {
  background: #16a34a;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  min-height: 38px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
  min-height: 54px;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-surface);
  align-items: center;
  justify-content: center;
  color: var(--color-text-main);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding-block: 4rem 5rem;
  background: radial-gradient(circle at 10% 20%, rgba(216, 164, 127, 0.12) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(34, 197, 94, 0.1) 0%, transparent 45%),
              var(--color-bg-base);
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-badge-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-green {
  background: rgba(30, 86, 49, 0.1);
  color: var(--color-brand-primary);
  border: 1px solid rgba(30, 86, 49, 0.2);
}

.badge-wood {
  background: var(--color-wood-tint);
  color: var(--color-wood-dark);
  border: 1px solid var(--color-wood-light);
}

.badge-alert {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  animation: pulse-border 2.5s infinite;
}

@keyframes pulse-border {
  0%, 100% { border-color: #fde68a; box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.2); }
  50% { border-color: #f59e0b; box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.15); }
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--color-brand-primary-dark);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

/* Regional Quick Highlights */
.regional-focus-box {
  background: #ffffff;
  border: 2px solid var(--color-border-brand);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.regional-focus-box .rf-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-wood-tint);
  color: var(--color-wood-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.regional-focus-box .rf-text strong {
  display: block;
  font-size: 1.05rem;
  color: var(--color-brand-primary-dark);
}

.regional-focus-box .rf-text span {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Hero Visual Card */
.hero-media-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 6px solid #ffffff;
  background: var(--color-bg-surface);
}

.hero-media-card img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hero-media-card:hover img {
  transform: scale(1.03);
}

.hero-floating-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(18, 25, 20, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero-floating-badge .hfb-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #4ade80;
  line-height: 1;
}

.hero-floating-badge .hfb-label {
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Stats Ribbon */
.stats-ribbon {
  background: var(--color-brand-primary);
  color: #ffffff;
  padding-block: 2rem;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.stat-value {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  font-family: var(--font-family-heading);
  color: #86efac;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* Sections General */
.section {
  padding-block: 5rem;
  position: relative;
}

.section-subtle {
  background-color: var(--color-bg-subtle);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-dark {
  background-color: var(--color-bg-dark);
  color: #ffffff;
}

.section-dark h2,
.section-dark h3 {
  color: #ffffff;
}

.section-dark .lead {
  color: rgba(255, 255, 255, 0.7);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-wood-primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

/* Feature Cards Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

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

.feature-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--color-wood-tint);
  color: var(--color-wood-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  transition: all var(--transition-fast);
}

.feature-card:hover .feature-icon-box {
  background: var(--color-brand-primary);
  color: #ffffff;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Product Specs Cards */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.spec-item {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast);
}

.spec-item:hover {
  transform: translateY(-3px);
  border-color: var(--color-wood-primary);
}

.spec-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.spec-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-brand-primary-dark);
  font-family: var(--font-family-heading);
}

.spec-note {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 0.35rem;
}

/* Interactive Calculator Component */
.calc-wrapper {
  background: #ffffff;
  border: 2px solid var(--color-border-brand);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  margin-block: 2rem 3rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calc-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text-main);
  display: flex;
  justify-content: space-between;
}

.calc-range-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--color-brand-primary);
  height: 8px;
  border-radius: 4px;
  background: var(--color-border);
  outline: none;
}

.calc-number-input {
  width: 110px;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  color: var(--color-brand-primary-dark);
}

.calc-number-input:focus {
  outline: none;
  border-color: var(--color-brand-primary);
}

.calc-select {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-main);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231e5631'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
}

.calc-results-card {
  background: linear-gradient(145deg, #182c1f, #142218);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.calc-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-block: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-summary-row:last-of-type {
  border-bottom: none;
}

.calc-summary-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: #86efac;
}

.min-order-indicator {
  margin-block: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.min-order-ok {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.min-order-warn {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
}

/* Regional Map / Logistics Section */
.logistics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.city-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.city-tag {
  background: #ffffff;
  border: 1px solid var(--color-border);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.city-tag.hub {
  background: var(--color-wood-tint);
  border-color: var(--color-wood-light);
  color: var(--color-wood-dark);
  font-weight: 700;
}

/* Packaging Cards */
.packaging-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.pack-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.pack-card-header {
  background: var(--color-wood-tint);
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.pack-card-body {
  padding: 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* FAQ Accordion */
.faq-list {
  max-width: 840px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--color-brand-primary);
  box-shadow: var(--shadow-sm);
}

.faq-summary {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--color-brand-primary);
  font-weight: 400;
  line-height: 1;
  transition: transform var(--transition-fast);
}

.faq-item[open] .faq-summary::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Messenger Quick Bar */
.messenger-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-block: 2rem;
}

.messenger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  min-height: 48px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.messenger-btn:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-telegram {
  background: #229ed9;
}

.btn-viber {
  background: #7360f2;
}

.btn-whatsapp {
  background: #25d366;
}

.btn-phone {
  background: var(--color-brand-primary);
}

/* Form Groups & Accessible Forms */
.form-group {
  margin-block-end: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--color-text-main);
}

.form-control {
  width: 100%;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  min-height: 48px;
  box-sizing: border-box;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--color-text-main);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 3px rgba(30, 86, 49, 0.15);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

/* Modal Dialog */
dialog.contact-modal {
  border: none;
  border-radius: var(--radius-xl);
  padding: 0;
  max-width: 540px;
  width: 90%;
  box-shadow: var(--shadow-xl);
  margin: auto;
  background: #ffffff;
}

dialog.contact-modal::backdrop {
  background: rgba(18, 25, 20, 0.7);
  backdrop-filter: blur(6px);
}

.modal-header {
  padding: 1.5rem 2rem;
  background: var(--color-bg-subtle);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-brand-primary-dark);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-text-muted);
}

.modal-close:hover {
  background: var(--color-border);
  color: var(--color-text-main);
}

.modal-body {
  padding: 2rem;
}

/* Footer */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.75);
  padding-block: 4.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4,
.footer-col .footer-heading {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-link:hover {
  color: #86efac;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

/* Toast Notification */
.toast-msg {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #1e5631;
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Performance Optimization
   Eliminates UI slop, horizontal overflow, and pinch-zoom drift
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid,
  .calc-grid,
  .logistics-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .hero-media-card img {
    height: 380px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .container {
    padding-inline: 1.25rem;
  }

  .top-bar {
    font-size: 0.8rem;
    padding-block: 0.4rem;
  }

  .top-bar-inner {
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
  }

  .site-header {
    height: var(--header-height);
  }

  .header-inner {
    height: var(--header-height);
    gap: 0.75rem;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 1.25rem;
    gap: 0.75rem;
    box-shadow: var(--shadow-xl);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
  }

  .nav-link:hover {
    background: var(--color-bg-subtle);
  }

  .mobile-toggle {
    display: flex;
  }

  /* Hide desktop header CTA button on mobile so header elements never collide */
  .header-actions > .btn {
    display: none;
  }

  .hero-section {
    padding-block: 2.5rem 3.5rem;
  }

  .hero-title {
    font-size: clamp(1.85rem, 6vw, 2.6rem);
  }

  .hero-lead {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .hero-media-card img {
    height: 300px;
  }

  .stats-ribbon {
    padding-block: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
  }

  .stat-item::after {
    display: none !important;
  }

  .stat-value {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .section {
    padding-block: 3.5rem;
  }

  .section-header {
    margin-bottom: 2.25rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  /* Calculator Mobile Enhancements */
  .calc-wrapper {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  .calc-range-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .calc-number-input {
    width: 100%;
    min-height: 48px;
    font-size: 1.2rem;
  }

  .calc-results-card {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .calc-summary-val {
    font-size: 1.25rem;
  }

  #calc-order-btn {
    width: 100%;
    min-height: 50px;
  }

  /* Messenger Buttons */
  .messenger-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    width: 100%;
  }

  .messenger-btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
    gap: 0.4rem;
  }

  /* Footer */
  .site-footer {
    padding-block: 3rem 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .toast-msg {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 1rem;
  }

  .top-bar-links .top-bar-link:first-child {
    display: none;
  }

  .brand-logo {
    gap: 0.5rem;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
  }

  .brand-title {
    font-size: 1.15rem;
  }

  .brand-subtitle {
    font-size: 0.68rem;
  }

  .lang-btn {
    padding: 0.25rem 0.55rem;
    font-size: 0.75rem;
  }

  .hero-floating-badge {
    position: static;
    margin-top: 1rem;
    border-radius: var(--radius-md);
    background: #18201a;
    flex-direction: column;
    text-align: center;
    gap: 0.35rem;
  }

  .hero-media-card img {
    height: 240px;
  }

  .regional-focus-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
  }

  .stats-grid {
    gap: 1.25rem 0.5rem;
  }

  .stat-value {
    font-size: 1.65rem;
  }

  .feature-card {
    padding: 1.5rem 1.15rem;
  }

  .pack-card-header,
  .pack-card-body {
    padding: 1.25rem 1rem;
  }

  dialog.contact-modal {
    width: calc(100% - 1.5rem);
    max-width: calc(100% - 1.5rem);
  }

  .modal-header {
    padding: 1rem 1.25rem;
  }

  .modal-body {
    padding: 1.25rem 1rem;
  }

  .legal-page-wrap {
    padding: 1.5rem 1rem !important;
    margin-block: 1.5rem !important;
  }
}

@media (max-width: 360px) {
  .messenger-bar {
    grid-template-columns: 1fr;
  }

  .brand-title {
    font-size: 1.02rem;
  }
}
