/* ==========================================================================
   СФЕРА ЖИЗНИ — СТИЛИ И ДИЗАЙН-СИСТЕМА
   Эко-технологии купольного деревянного домостроения
   ========================================================================== */

/* ==========================================================================
   Local Fonts (Self-Hosted WOFF2 / TTF)
   ========================================================================== */

/* Ruslan Display */
@font-face {
  font-family: 'Ruslan Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ruslan-display-cyrillic-400-normal.woff2') format('woff2'),
       url('../fonts/ruslan-display.ttf') format('truetype');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Ruslan Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ruslan-display-latin-400-normal.woff2') format('woff2'),
       url('../fonts/ruslan-display.ttf') format('truetype');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-cyrillic-500-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-cyrillic-700-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Montserrat */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/montserrat-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/montserrat-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-cyrillic-700-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/montserrat-cyrillic-800-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/montserrat-latin-800-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-bg: #FAF8F5;
  --color-surface: #FFFFFF;
  --color-surface-soft: #F2ECE4;
  --color-surface-dark: #19271E;
  
  --color-primary: #23432B;
  --color-primary-light: #36603F;
  --color-primary-dark: #162B1C;
  
  --color-accent: #C68A4C;
  --color-accent-light: #DEAA6F;
  --color-accent-dark: #9E672F;
  
  --color-text: #1F2421;
  --color-text-muted: #5A645E;
  --color-text-light: #94A199;
  --color-text-on-dark: #F5F7F5;
  
  --color-border: #E8E2D8;
  --color-border-subtle: #F0ECE4;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(25, 39, 30, 0.05);
  --shadow-md: 0 8px 24px rgba(25, 39, 30, 0.08);
  --shadow-lg: 0 16px 40px rgba(25, 39, 30, 0.12);
  
  --font-brand: 'Ruslan Display', 'Georgia', serif;
  --font-heading: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1240px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-anchor: none;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

.legacy-banner {
  background: #23432B;
  color: #FFFFFF;
  text-align: center;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.legacy-banner a {
  color: #FFFFFF;
  text-decoration: underline;
}

@supports (display: grid) {
  .legacy-banner {
    display: none;
  }
}

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

ul, ol {
  list-style: none;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary-dark);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); letter-spacing: -0.01em; margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}
p:last-child {
  margin-bottom: 0;
}

.text-lead {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.6;
  color: var(--color-text);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Badges & Section Headers */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(35, 67, 43, 0.08);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.section-badge.accent {
  background: rgba(198, 138, 76, 0.15);
  color: var(--color-accent-dark);
}

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

.section-header h1,
.article-header h1 {
  font-size: clamp(1.4rem, 2.8vw, 2.25rem);
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(35, 67, 43, 0.25);
}
.btn-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(35, 67, 43, 0.35);
}

.btn-accent {
  background: var(--color-accent);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(198, 138, 76, 0.3);
}
.btn-accent:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(198, 138, 76, 0.4);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover {
  border-color: var(--color-primary);
  background: var(--color-surface-soft);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-outline-primary {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  box-shadow: none;
}
.btn-outline-primary:hover {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(35, 67, 43, 0.2);
}

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

.btn-lg {
  padding: 18px 36px;
  font-size: 1.05rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 248, 245, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-subtle);
  transform: translateZ(0);
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

.site-header-spacer {
  display: block;
  width: 100%;
  pointer-events: none;
  visibility: hidden;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(25, 39, 30, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas:
    "phone brand cta"
    "nav   nav   nav";
  align-items: center;
  row-gap: 14px;
  padding: 16px clamp(28px, 4.5vw, 64px) 12px;
  transition: padding var(--transition-fast), row-gap var(--transition-fast);
}

.site-header.scrolled .header-inner {
  padding: 5px clamp(28px, 4.5vw, 64px) 5px;
  row-gap: 4px;
}

.brand-logo {
  grid-area: brand;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  transition: gap var(--transition-fast);
}

.brand-logo img {
  height: 94px;
  width: 94px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: none;
  transition: transform var(--transition-fast), height var(--transition-fast), width var(--transition-fast);
}

.brand-logo:hover img {
  transform: scale(1.1);
}

.site-header.scrolled .brand-logo {
  gap: 12px;
}

.site-header.scrolled .brand-logo img {
  height: 48px;
  width: 48px;
}

.brand-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: fit-content;
}

.brand-title {
  font-family: var(--font-brand);
  font-size: clamp(1.85rem, 2.8vw, 2.45rem);
  font-weight: 400;
  color: var(--color-primary-dark);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  white-space: nowrap;
  display: block;
  transition: font-size var(--transition-fast);
}

.site-header.scrolled .brand-title {
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  line-height: 1.05;
}

.brand-tagline {
  font-size: clamp(0.814rem, 1.23vw, 1.08rem);
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  display: block;
  white-space: nowrap;
  transition: font-size var(--transition-fast);
}

.site-header.scrolled .brand-tagline {
  font-size: clamp(0.55rem, 0.75vw, 0.66rem);
  line-height: 1.1;
}

.header-cta {
  display: contents;
}

.header-phone {
  grid-area: phone;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-primary-dark);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.header-phone svg {
  color: var(--color-accent);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.header-phone:hover {
  color: var(--color-accent-dark);
}

.header-phone:hover svg {
  transform: rotate(-10deg) scale(1.1);
}

.header-cta .btn {
  grid-area: cta;
  justify-self: end;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid rgba(35, 67, 43, 0.4);
  box-shadow: none;
}

.header-cta .btn:hover {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(35, 67, 43, 0.2);
}

.nav-desktop {
  grid-area: nav;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 22px;
  padding-top: 12px;
  border-top: 1px solid rgba(35, 67, 43, 0.08);
  transition: padding var(--transition-fast), gap var(--transition-fast);
}

.site-header.scrolled .nav-desktop {
  padding-top: 4px;
  gap: 16px;
}

.site-header.scrolled .nav-desktop a {
  font-size: 0.92rem;
  padding: 3px 2px;
}

.site-header.scrolled .header-phone {
  font-size: 1.05rem;
}

.site-header.scrolled .header-phone svg {
  width: 18px;
  height: 18px;
}

.site-header.scrolled .header-cta .btn {
  padding: 6px 16px;
  font-size: 0.82rem;
}

.nav-desktop a {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  padding: 6px 2px;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--transition-fast);
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2.5px;
  border-radius: 2px;
  background: var(--color-accent);
  transition: width var(--transition-fast);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--color-primary);
}

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

.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
}

.burger-btn span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--color-primary-dark);
  transition: all var(--transition-normal);
  border-radius: 2px;
}

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

/* Mobile Navigation Drawer */
.nav-mobile {
  display: none;
  position: fixed;
  top: 84px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250, 248, 245, 0.98);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  z-index: 999;
  padding: 30px 24px calc(30px + env(safe-area-inset-bottom, 0px));
  flex-direction: column;
  gap: 20px;
  border-top: 1px solid var(--color-border);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

.nav-mobile a.active {
  color: var(--color-accent);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding: 25px 0 80px;
  overflow: hidden;
  background: radial-gradient(circle at top right, rgba(198, 138, 76, 0.08), transparent 45%),
              radial-gradient(circle at bottom left, rgba(35, 67, 43, 0.06), transparent 50%);
}

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

.hero-content {
  z-index: 2;
}

.hero h1,
.hero-title {
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: #142217;
  border-left: 4px solid var(--color-accent);
  padding-left: 18px;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.hero-desc {
  font-size: clamp(1.02rem, 1.2vw, 1.15rem);
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2.5rem;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-sm);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 2.5rem;
}

.hero-actions .btn {
  padding: 13px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.hero-actions .btn-accent {
  background: var(--color-accent);
  color: #FFFFFF;
  border: 1.5px solid var(--color-accent);
  box-shadow: 0 2px 8px rgba(198, 138, 76, 0.22);
  transition: all var(--transition-normal);
}

.hero-actions .btn-accent:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  box-shadow: 0 4px 14px rgba(198, 138, 76, 0.32);
  transform: translateY(-2px);
}

.hero-actions .btn-secondary {
  background: #EBE3D5;
  color: var(--color-primary-dark);
  border: 1.5px solid rgba(35, 67, 43, 0.28);
  box-shadow: 0 2px 6px rgba(25, 39, 30, 0.05);
  transition: all var(--transition-normal);
}

.hero-actions .btn-secondary:hover {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(35, 67, 43, 0.2);
  transform: translateY(-2px);
}

.hero-actions .btn-outline-primary {
  background: #D4E6D2;
  color: var(--color-primary-dark);
  border: 1.5px solid #B7CDB6;
  box-shadow: 0 2px 6px rgba(35, 67, 43, 0.06);
}

.hero-actions .btn-outline-primary:hover {
  background: #C3D9C0;
  color: var(--color-primary-dark);
  border-color: #8FAF90;
  box-shadow: 0 4px 14px rgba(35, 67, 43, 0.12);
  transform: translateY(-2px);
}

@media (min-width: 1025px) {
  .hero-actions {
    flex-wrap: nowrap;
    gap: 10px;
  }
  .hero-actions .btn {
    padding: 12px 26px;
    font-size: 0.9rem;
  }
}

/* Круглая эко-печать в верхнем правом углу слайдера */
.hero-eco-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 12;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(34, 76, 40, 0.55);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  transform: rotate(-8deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3px;
  pointer-events: auto;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
  cursor: default;
}

.hero-eco-badge::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px dashed rgba(34, 76, 40, 0.5);
  border-radius: 50%;
  pointer-events: none;
}

.hero-eco-badge:hover {
  transform: rotate(-3deg) scale(1.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  border-color: rgba(34, 76, 40, 0.75);
}

.hero-eco-icon {
  font-size: 1.05rem;
  line-height: 1;
  margin-bottom: 1px;
}

.hero-eco-label {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #224C28;
  line-height: 1.1;
}

.hero-eco-label strong {
  font-size: 0.72rem;
  font-weight: 900;
  color: #224C28;
  display: block;
  letter-spacing: 0;
}

.hero-slider-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-surface-soft);
  aspect-ratio: 4 / 3;
  user-select: none;
  -webkit-user-select: none;
}

.hero-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

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

/* Скрываем встроенные бейджи слайдов в пользу общего анимированного бейджа */
.hero-slide .hero-slide-badge {
  display: none;
}

/* Кнопка в херо-слайдере «Смотреть работы» на месте описания */
.hero-slider-cta {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(25, 39, 30, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #FFFFFF;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.hero-slider-cta:hover {
  background: #FFFFFF;
  color: var(--color-primary-dark);
  border-color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

/* Контейнер мозаичной смены кадров */
.hero-mosaic-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

/* Мозаичные плитки */
.hero-mosaic-tile {
  position: absolute;
  box-sizing: border-box;
  background-repeat: no-repeat;
  will-change: transform, opacity;
  transition: transform 0.38s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.34s ease;
}

.hero-slider-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-slider-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(25, 39, 30, 0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.hero-slider-btn:hover {
  background: rgba(25, 39, 30, 0.82);
  border-color: rgba(255, 255, 255, 0.45);
  transform: scale(1.08);
}

/* ==========================================================================
   Section: 4E Philosophy & Benefits
   ========================================================================== */
.section {
  padding: 45px 0 75px;
}

.section-alt {
  background: var(--color-surface-soft);
}

.section-dark {
  background: var(--color-surface-dark);
  color: var(--color-text-on-dark);
}
.section-dark h2,
.section-dark h3 {
  color: #FFFFFF;
}
.section-dark p {
  color: var(--color-text-light);
}

.cards-4e-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.card-4e {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 32px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 24px;
}

.card-4e::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-accent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.card-4e:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.card-4e:hover::before {
  opacity: 1;
}

.card-4e-icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: var(--radius-md);
  background: rgba(198, 138, 76, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  flex-shrink: 0;
}

.card-4e-num,
.card-4e-letter {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--color-accent-dark);
  line-height: 1;
}

.card-4e-content {
  flex: 1;
}

.card-4e h3,
.card-4e h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
}

.card-4e p {
  margin-bottom: 0;
  color: var(--color-text-muted);
  line-height: 1.6;
  font-size: 0.98rem;
}

@media (min-width: 900px) {
  .card-4e-content {
    display: grid;
    grid-template-columns: 240px 1fr;
    align-items: center;
    gap: 28px;
  }
  .card-4e h3,
  .card-4e h4 {
    margin-bottom: 0;
  }
}

@media (max-width: 640px) {
  .card-4e {
    padding: 20px 20px;
    gap: 16px;
    align-items: flex-start;
  }
  .card-4e-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
  .card-4e-num,
  .card-4e-letter {
    font-size: 1.35rem;
  }
  .card-4e:hover {
    transform: none;
  }
}

/* ==========================================================================
   Section: Technology & Patents Showcase
   ========================================================================== */
.tech-teaser {
  display: grid;
  grid-template-columns: 1fr 1.61fr;
  gap: 40px;
  align-items: center;
}

.tech-teaser-photo {
  position: relative;
}

.tech-teaser-photo > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.tech-certs {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.tech-cert {
  width: 62px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(20, 34, 23, 0.35);
  overflow: hidden;
  line-height: 0;
}

.tech-cert img {
  width: 62px;
  height: 82px;
  object-fit: cover;
  object-position: top;
}

.tech-cert:first-child {
  transform: rotate(-7deg);
}

.tech-cert:last-child {
  transform: rotate(5deg);
}

.tech-cert:hover {
  transform: rotate(0deg) translateY(-3px);
}

.tech-teaser-copy {
  text-align: left;
}

.tech-teaser-copy .section-subtitle {
  margin-bottom: 28px;
}

.tech-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.tech-feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.tech-feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.tech-check-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(35, 67, 43, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.patents-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.patent-thumb {
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.patent-thumb:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.patent-thumb img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: contain;
  background: #FFF;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.patent-thumb span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

/* ==========================================================================
   Section: Product Categories (What we build)
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.products-more {
  margin-top: 28px;
  text-align: center;
}

.products-more .btn {
  background: #D4E6D2;
  color: var(--color-primary-dark);
  border: 1.5px solid #B7CDB6;
  box-shadow: 0 2px 6px rgba(35, 67, 43, 0.06);
}

.products-more .btn:hover {
  background: #C3D9C0;
  color: var(--color-primary-dark);
  border-color: #8FAF90;
  transform: translateY(-2px);
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.product-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(35, 67, 43, 0.9);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}

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

.product-card-body h3 {
  margin-bottom: 8px;
}

.product-card-body p {
  flex-grow: 1;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 16px;
  font-size: 0.88rem;
}

.product-meta strong {
  color: var(--color-accent-dark);
}

/* ==========================================================================
   Section: Steps of Work (5 Stages)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  position: relative;
}

.step-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  position: relative;
  transition: all var(--transition-fast);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--color-accent);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(35, 67, 43, 0.18);
  line-height: 1;
  margin-bottom: 12px;
}

.step-card h4 {
  margin-bottom: 8px;
  color: var(--color-primary-dark);
}

.step-card p {
  font-size: 0.9rem;
}

/* ==========================================================================
   Gallery Grid & Lightbox
   ========================================================================== */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.filter-btn.active {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(35, 67, 43, 0.2);
}

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

/* Главная: превью галереи всегда в один ряд.
   Порог ~170px на кадр (4:3): уже — убираем лишние, на самых узких остаётся одно.
   Ширина кадра ≈ (viewport − 40px полей − зазоры) / число колонок. */
.home-gallery-preview .gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 820px) {
  .home-gallery-preview .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .home-gallery-preview .gallery-item:nth-child(n + 4) {
    display: none;
  }
}

@media (max-width: 590px) {
  .home-gallery-preview .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-gallery-preview .gallery-item:nth-child(n + 3) {
    display: none;
  }
}

@media (max-width: 380px) {
  .home-gallery-preview .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-gallery-preview .gallery-item:nth-child(n + 2) {
    display: none;
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface-soft);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

/* Кнопка «Смотреть видео» на месте 28-го кадра */
.gallery-video-btn-slot {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: default;
  padding: 12px;
  overflow: visible;
}

.gallery-video-btn {
  padding: 16px 36px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(198, 138, 76, 0.35);
  transition: all var(--transition-normal);
}

.gallery-video-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 28px rgba(198, 138, 76, 0.55);
}

.gallery-num-badge {
  position: absolute;
  bottom: 8px;
  right: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 0.6);
  z-index: 3;
  pointer-events: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22, 43, 28, 0.85) 0%, transparent 60%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #FFFFFF;
  transition: opacity var(--transition-fast);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.gallery-category {
  font-size: 0.75rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Lightbox Modal (Полноэкранный просмотр и автопоказ) */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-img-wrap {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.lightbox-img-wrap img {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  cursor: default;
}

.lightbox-caption {
  position: absolute;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: min(840px, calc(100vw - 36px));
  max-width: 840px;
  margin: 0;
  z-index: 20;
  padding: 14px 24px;
  background: rgba(10, 18, 13, 0.45);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  text-align: center;
  pointer-events: auto;
  color: #FFFFFF;
}

.lightbox-caption-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.lightbox-caption-desc {
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 6px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.lightbox-counter {
  display: inline-block;
  font-size: 0.78rem;
  margin-top: 6px;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: #FFFFFF;
  font-size: 2.2rem;
  line-height: 1;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  transition: background var(--transition-fast);
  z-index: 25;
  cursor: pointer;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Кнопка лупы удалена */
.lightbox-zoom-btn {
  display: none !important;
}

/* Кнопка автоплея */
.lightbox-autoplay-toggle {
  position: absolute;
  top: 24px;
  right: 80px;
  color: #FFFFFF;
  font-size: 1.15rem;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  transition: all var(--transition-fast);
  cursor: pointer;
  z-index: 25;
}
.lightbox-autoplay-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}
.lightbox-autoplay-toggle.active {
  background: var(--color-accent);
  color: #FFFFFF;
  box-shadow: 0 0 16px rgba(198, 138, 76, 0.6);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 25;
  cursor: pointer;
}
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* Для патентов: просмотр документа с вертикальной прокруткой */
.lightbox-modal.is-patent {
  overflow-y: auto;
  display: block;
  padding: 70px 20px 40px;
}
.lightbox-modal.is-patent .lightbox-img-wrap {
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  display: block;
  text-align: center;
}
.lightbox-modal.is-patent .lightbox-img-wrap img {
  width: min(1000px, 96vw);
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: initial;
  margin: 0 auto;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85);
  border-radius: var(--radius-sm);
  cursor: default;
}
.lightbox-modal.is-patent .lightbox-caption {
  position: static;
  transform: none;
  max-width: 860px;
  margin: 24px auto 30px;
  background: rgba(10, 18, 13, 0.65);
  text-align: left;
}
.lightbox-modal.is-patent .lightbox-caption-desc {
  text-align: left;
}
.lightbox-modal.is-patent .lightbox-autoplay-toggle {
  display: none !important;
}

@media (max-width: 768px) {
  .lightbox-caption {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    padding: 10px 16px;
    width: calc(100vw - 24px);
  }
  .lightbox-caption-title {
    font-size: 0.95rem;
  }
  .lightbox-caption-desc {
    font-size: 0.82rem;
  }
  .lightbox-close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
  }
  .lightbox-autoplay-toggle {
    top: 16px;
    right: 64px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
  }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
}

/* ==========================================================================
   Video Gallery
   ========================================================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

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

.video-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111D15;
  overflow: hidden;
}

.video-player-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.rutube-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: #FFFFFF;
  text-align: center;
  padding: 24px;
}

.rutube-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 29, 21, 0.82) 0%, rgba(26, 44, 32, 0.88) 100%);
  backdrop-filter: blur(2px);
}

.rutube-placeholder-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rutube-badge-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E52E2E;
  color: #FFF;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(229, 46, 46, 0.35);
}

.rutube-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #162B1C;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transition: transform 0.25s ease, background 0.25s ease;
}

.rutube-placeholder:hover .rutube-play-btn {
  transform: scale(1.12);
  background: #FFFFFF;
}

.rutube-slot-hint {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  margin-top: 8px;
}

.video-card-body {
  padding: 24px;
  flex-grow: 1;
}

.video-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.video-card-body p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Articles & Knowledge Base
   ========================================================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.article-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}

.article-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-surface-soft);
}

.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.article-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.article-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.35;
}

.article-card-body p {
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 20px;
}

.article-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.92rem;
}
.article-link:hover {
  color: var(--color-accent-dark);
  gap: 12px;
}

/* Главная, узкий экран (не планшет): карточка статьи — фото слева, текст справа.
   Три карточки остаются друг под другом. */
@media (max-width: 640px) {
  .home-articles .articles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .home-articles .article-card {
    flex-direction: row;
    align-items: stretch;
  }
  .home-articles .article-card-img {
    flex: 0 0 38%;
    width: 38%;
    max-width: 150px;
    aspect-ratio: auto;
    align-self: stretch;
  }
  .home-articles .article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .home-articles .article-card-body {
    padding: 14px 14px 14px 12px;
    min-width: 0;
  }
  .home-articles .article-card-body h3 {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  .home-articles .article-card-body p {
    font-size: 0.84rem;
    margin-bottom: 10px;
  }
}

/* Article Detail Page Layout */
.article-single {
  padding: 60px 0 100px;
}

.article-header {
  max-width: 820px;
  margin: 0 auto 40px;
  text-align: center;
}

.article-header h1 {
  margin-bottom: 18px;
}

.article-meta-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.article-hero-img {
  max-width: calc(780px * 2 / 3); /* 520px — 2/3 ширины контента статьи на десктопе */
  width: 100%;
  margin: 0 auto 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.article-hero-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.article-body-content img {
  display: block;
  max-width: 66.666%; /* 2/3 ширины контента на десктопе */
  width: 100%;
  height: auto;
  margin: 36px auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.article-body-content {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text);
}

.article-body-content p {
  margin-bottom: 1.6rem;
  color: #2F3632;
}

.article-body-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
}

.article-body-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.9rem;
}

.article-quote {
  border-left: 4px solid var(--color-accent);
  background: var(--color-surface-soft);
  padding: 24px 30px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2.2rem 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-primary-dark);
}

.article-highlight-box {
  background: rgba(35, 67, 43, 0.05);
  border: 1px solid rgba(35, 67, 43, 0.15);
  border-radius: var(--radius-md);
  padding: 28px;
  margin: 2.5rem 0;
}

.article-highlight-box h4 {
  color: var(--color-primary-dark);
  margin-bottom: 12px;
}

/* ==========================================================================
   Lead Capture & Calculator Form
   ========================================================================== */
.lead-band {
  background: linear-gradient(135deg, #1E3424 0%, #294D33 100%);
  color: #FFFFFF;
}

.lead-band .form-label {
  color: rgba(255, 255, 255, 0.92);
}

.lead-band .form-consent {
  color: rgba(255, 255, 255, 0.72);
}

.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: center;
}

.lead-info h2 {
  color: #FFFFFF;
  margin-bottom: 16px;
}

.lead-info p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.lead-bullets {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lead-bullet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.lead-form-box {
  background: #FFFFFF;
  color: var(--color-text);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-primary-dark);
}

.form-required {
  color: var(--color-accent);
}

.email-alt {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(35, 67, 43, 0.12);
  background: #FFFFFF;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-consent {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-top: 12px;
  text-align: center;
}

.form-alert {
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-top: 14px;
  display: none;
  font-size: 0.9rem;
  text-align: center;
}
.form-alert.success {
  background: #EAF6ED;
  color: #1E6B34;
  border: 1px solid #C2E7CB;
  display: block;
}

/* ==========================================================================
   Contacts & Patents Page
   ========================================================================== */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  margin-bottom: 70px;
}

.contact-card-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.founder-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border-subtle);
}

.founder-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}

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

.contact-items-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-item-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-icon-bubble {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(35, 67, 43, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-socials-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-item-row > div:last-child {
  min-width: 0;
}

.contact-card-box,
.lead-form-box,
.video-card,
.article-card {
  min-width: 0;
  max-width: 100%;
}

.contact-card-box a,
.lead-form-box {
  overflow-wrap: anywhere;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: all var(--transition-fast);
}

.social-btn:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  background: var(--color-surface-soft);
}

.social-btns {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.social-btns a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--color-primary-dark);
  background: #FFFFFF;
  border: 1px solid rgba(198, 138, 76, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 4px 12px rgba(25, 39, 30, 0.08);
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.social-btns a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-btns a:hover,
.social-btns a:focus-visible {
  color: var(--color-accent-dark);
  border-color: var(--color-accent);
  transform: scale(1.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 0 14px rgba(198, 138, 76, 0.35);
}

.site-footer .social-btns {
  margin-top: 8px;
}

.site-footer .social-btns a {
  color: var(--color-text-light);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: none;
  text-decoration: none;
  font-weight: 400;
  padding-left: 0;
}

.site-footer .social-btns a:hover,
.site-footer .social-btns a:focus-visible {
  color: #f3d7a0;
  background: linear-gradient(180deg, rgba(255, 246, 228, 0.14), rgba(198, 138, 76, 0.22));
  border-color: rgba(222, 170, 111, 0.55);
  transform: scale(1.08);
  box-shadow:
    0 1px 0 rgba(255, 246, 228, 0.35) inset,
    0 0 14px rgba(222, 170, 111, 0.45);
}

.patents-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

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

.patent-full-img {
  padding: 24px;
  background: #FDFDFD;
  border-bottom: 1px solid var(--color-border-subtle);
  display: flex;
  justify-content: center;
  cursor: pointer;
}

.patent-full-img img {
  max-height: 400px;
  object-fit: contain;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-sm);
  transition: transform var(--transition-fast);
}

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

.patent-full-body {
  padding: 24px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-surface-dark);
  color: var(--color-text-on-dark);
  padding: 70px 0 30px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-brand h3 {
  color: #FFFFFF;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1rem;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

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

.footer-nav a {
  color: var(--color-text-light);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}
.footer-nav a:hover {
  color: var(--color-accent-light);
  padding-left: 4px;
}

.footer-contacts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.footer-contacts-list a {
  color: #FFFFFF;
  font-weight: 600;
}
.footer-contacts-list a:hover {
  color: var(--color-accent-light);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(222, 170, 111, 0.45);
  background: var(--color-primary);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(22, 43, 28, 0.28);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.scroll-top svg {
  width: 20px;
  height: 20px;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.scroll-top:hover,
.scroll-top:focus-visible {
  background: var(--color-accent);
  border-color: var(--color-accent-light);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(158, 103, 47, 0.35);
  outline: none;
}

@media (max-width: 768px) {
  .scroll-top {
    right: 14px;
    width: 44px;
    height: 44px;
  }
}

/* ==========================================================================
   Product catalog
   ========================================================================== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

.catalog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.catalog-card.is-open {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.catalog-toggle {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 16px 20px;
  text-align: center;
}

.catalog-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -4px;
}

.catalog-icon {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  background: var(--color-surface-soft);
  border-radius: 50%;
}

.catalog-icon svg {
  width: 72px;
  height: 72px;
}

.catalog-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--color-primary-dark);
  min-height: 2.7em;
}

.catalog-chevron {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  transition: transform var(--transition-fast);
}

.catalog-toggle[aria-expanded="true"] .catalog-chevron {
  transform: rotate(180deg);
}

.catalog-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 16px 18px;
  padding-top: 4px;
  border-top: 1px solid var(--color-border-subtle);
}

.catalog-menu[hidden] {
  display: none;
}

.catalog-menu li {
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-primary-dark);
  text-align: left;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .brand-logo {
    gap: 14px;
  }
  .brand-logo img {
    height: 76px;
    width: 76px;
  }
  .site-header.scrolled .brand-logo img {
    height: 44px;
    width: 44px;
  }
  .nav-desktop {
    gap: 12px;
  }
  .nav-desktop a {
    font-size: 0.88rem;
  }
  .header-phone {
    font-size: 1.05rem;
  }
  .header-cta .btn {
    padding: 10px 18px;
    font-size: 0.88rem;
  }
  .hero {
    padding-top: 12px;
    padding-bottom: 40px;
  }
  .hero-actions {
    margin-bottom: 1.25rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-slider-wrap {
    order: -1;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tech-teaser,
  .tech-box {
    grid-template-columns: 1fr;
    padding: 32px;
  }
  .tech-teaser {
    padding: 0;
  }
  .tech-teaser-photo {
    width: calc(100% + 40px);
    max-width: none;
    margin-left: -20px;
    margin-right: -20px;
  }
  .tech-teaser-photo > img {
    border-radius: 0;
  }
  .lead-grid {
    grid-template-columns: 1fr;
  }
  .contacts-grid,
  .video-grid,
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .contact-card-box,
  .lead-form-box {
    padding: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 85px;
  }
  .hero-actions {
    justify-content: center;
  }
  .btn {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions .btn {
    margin-left: 0;
    margin-right: 0;
  }
  .btn[style*="width"] {
    width: 100%;
  }
  .header-inner {
    grid-template-areas: "brand cta";
    grid-template-columns: 1fr auto;
    row-gap: 0;
    padding: 10px clamp(20px, 4vw, 32px);
    height: auto;
  }
  .site-header.scrolled .header-inner {
    padding: 6px clamp(16px, 3.5vw, 24px);
  }
  .brand-logo {
    justify-self: start;
  }
  .nav-desktop,
  .header-phone,
  .header-cta .btn {
    display: none;
  }
  .brand-logo img {
    height: 64px;
    width: 64px;
  }
  .site-header.scrolled .brand-logo img {
    height: 40px;
    width: 40px;
  }
  .brand-title {
    font-size: 1.45rem;
  }
  .site-header.scrolled .brand-title {
    font-size: 1.18rem;
  }
  .brand-tagline {
    font-size: 0.64rem;
  }
  .site-header.scrolled .brand-tagline {
    font-size: 0.52rem;
  }
  .burger-btn {
    grid-area: cta;
    justify-self: end;
    display: flex;
  }
  .lightbox-close {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    font-size: 1.8rem;
  }
  .lightbox-autoplay-toggle {
    top: 14px;
    right: 58px;
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }
  .lightbox-prev { left: 8px; width: 40px; height: 40px; }
  .lightbox-next { right: 8px; width: 40px; height: 40px; }
  .hero {
    padding: 18px 0 25px;
  }
  .section {
    padding: 30px 0 50px;
  }
  .home-video-preview {
    display: none;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .catalog-name {
    min-height: 0;
  }
  .lead-band {
    padding: 40px 0 50px;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .products-grid .product-card:nth-child(n + 2) {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-eco-badge {
    top: 14px;
    right: 14px;
    width: 58px;
    height: 58px;
    padding: 2px;
  }
  .hero-eco-icon {
    font-size: 0.95rem;
  }
  .hero-eco-label {
    font-size: 0.52rem;
  }
  .hero-eco-label strong {
    font-size: 0.66rem;
  }
  .article-hero-img {
    max-width: 100%;
    margin-bottom: 28px;
  }
  .article-body-content img {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    gap: 12px;
  }
  .brand-logo img {
    height: 52px;
    width: 52px;
  }
  .site-header.scrolled .brand-logo img {
    height: 36px;
    width: 36px;
  }
  .brand-title {
    font-size: 1.25rem;
  }
  .site-header.scrolled .brand-title {
    font-size: 1.05rem;
  }
  .brand-tagline {
    font-size: 0.55rem;
  }
  .site-header.scrolled .brand-tagline {
    font-size: 0.46rem;
  }
  .hero-eco-badge {
    top: 10px;
    right: 10px;
    width: 52px;
    height: 52px;
    padding: 2px;
  }
  .hero-eco-icon {
    font-size: 0.85rem;
  }
  .hero-eco-label {
    font-size: 0.46rem;
  }
  .hero-eco-label strong {
    font-size: 0.58rem;
  }
  .hero h1,
  .hero-title {
    border-left-width: 3.5px;
    padding-left: 14px;
  }
  .hero-slider-cta {
    bottom: 12px;
    left: 12px;
    padding: 7px 14px;
    font-size: 0.78rem;
  }
  .hero-slider-controls {
    bottom: 12px;
    right: 12px;
  }
  .hero-slider-btn {
    width: 44px;
    height: 44px;
    font-size: 0.95rem;
  }
}

@media (max-width: 360px) {
  .header-inner {
    padding: 8px 12px;
  }
  .brand-logo {
    gap: 8px;
  }
  .brand-logo img {
    height: 44px;
    width: 44px;
  }
  .brand-title {
    font-size: 1.12rem;
  }
  .brand-tagline {
    font-size: 0.5rem;
  }
  .burger-btn {
    width: 42px;
    height: 42px;
    padding: 7px;
  }
}
