/* ============================================
   РезоТекс — style.css
   Light mode only. Industrial Warm palette.
   ============================================ */

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

[hidden] {
  display: none !important;
}

:root {
  --primary: #ff6b35;
  --primary-hover: #ff4500;
  --primary-light: #ffd4b8;
  --bg: linear-gradient(135deg, #fff9f0 0%, #fff0f8 50%, #f0f4ff 100%);
  --bg-white: #ffffff;
  --surface: #fffbf7;
  --surface-alt: #f0e6ff;
  --border: #ff8555;
  --text: #1a1a2e;
  --text-muted: #4a4a6a;
  --text-faint: #8a8aaa;
  --error: #ff1744;
  --success: #00d084;
  --accent-blue: #0066ff;
  --accent-green: #00d084;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-heading: 'Cabinet Grotesk', sans-serif;
  --font-body: 'General Sans', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--primary-hover);
}

ul, ol {
  list-style: none;
}

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

/* --- Utility --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

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

.header-logo span {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  text-decoration: none;
}

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 999;
  padding: 32px 20px;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

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

.mobile-menu a {
  display: block;
  padding: 16px 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--text);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/frame_04.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 20px 80px;
  max-width: 800px;
}

.hero h1 {
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero .hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-facts {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 320px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.24);
  color: #fff;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.hero-badge-secondary {
  background: rgba(255, 107, 53, 0.18);
  border-color: rgba(255, 107, 53, 0.45);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-ctas .btn {
  min-width: 320px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-phone {
  gap: 10px;
}

.btn-icon {
  font-size: 1rem;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #ff4500 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #ff2d00 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  color: #fff;
}

/* --- Catalog --- */
.catalog-section {
  background: var(--bg);
}

.filter-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  border: 2px solid var(--border);
  border-radius: 100px;
  background: var(--bg-white);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255, 107, 53, 0.05);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, #ff4500 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.2);
  transform: translateY(-4px);
}

.product-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.product-card-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.3;
}

.product-card-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary);
}

.product-card-price small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

.product-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-card-colors {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.spec-tag {
  padding: 3px 10px;
  background: var(--surface);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.product-card-btn {
  margin-top: auto;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--text);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.product-card-btn:hover {
  background: var(--primary);
  color: #fff;
}

.catalog-error {
  grid-column: 1 / -1;
  padding: 20px;
  background: var(--bg-white);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-align: center;
}

/* Extra cards */
.extra-card {
  background: var(--bg-white);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.extra-card-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.extra-card-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
}

.extra-card-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Product Photos --- */
.photo-section {
  background: var(--bg);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.photo-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.photo-card figcaption {
  padding: 14px 16px 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Detail Panel --- */
.detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.detail-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 50%;
  max-width: 560px;
  height: 100%;
  background: var(--bg-white);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.detail-overlay.open + .detail-panel,
.detail-panel.open {
  transform: translateX(0);
}

.detail-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-white);
  z-index: 1;
}

.detail-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-white);
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text);
  transition: all var(--transition);
  flex-shrink: 0;
}

.detail-close-btn:hover {
  background: var(--surface);
}

.detail-panel-header span {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-muted);
}

.detail-panel-body {
  padding: 24px;
  flex: 1;
}

.detail-product-image {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--surface);
}

.detail-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-product-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.detail-product-price {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
}

.detail-product-price small {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}

.detail-specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.detail-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--surface);
}

.detail-spec-row .label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.detail-spec-row .value {
  font-weight: 600;
  font-size: 0.95rem;
}

.detail-use {
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.detail-use-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.detail-use-text {
  font-size: 0.95rem;
  color: var(--text);
}

.detail-cta {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  transition: background var(--transition);
}

.detail-cta:hover {
  background: var(--primary-hover);
  color: #fff;
}

/* --- Price Table --- */
.price-section {
  background: var(--bg-white);
}

.price-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 920px;
}

.price-table thead th {
  padding: 14px 16px;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.price-table thead th:last-child {
  text-align: right;
}

.price-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--surface);
  vertical-align: middle;
}

.price-table tbody td:not(:first-child):not(:last-child) {
  white-space: nowrap;
}

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

.price-table tbody tr:hover {
  background: rgba(196, 90, 28, 0.03);
}

.price-table .price-col {
  text-align: right;
  font-weight: 800;
  font-size: 1.04rem;
  color: var(--primary-hover);
  white-space: nowrap;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.price-table .extras-row td {
  background: var(--surface);
  font-style: italic;
  color: var(--text-muted);
}

.price-name-col {
  min-width: 280px;
}

.price-name-main {
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.price-name-sub {
  margin-top: 4px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-faint);
}

.price-line-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.12);
  color: var(--primary-hover);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.price-extra-meta {
  color: var(--text-muted);
}

.price-table-cta {
  text-align: center;
  margin-top: 24px;
}

.price-callout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.2);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
}

.price-callout-header {
  margin-top: 0;
}

.price-callout-header-secondary {
  margin-top: 12px;
}

.price-callout-secondary {
  display: block;
  margin: 12px auto 0;
  max-width: 760px;
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-muted);
  font-weight: 600;
}

.price-table-cta a {
  font-weight: 500;
  font-size: 0.95rem;
}

/* --- Production --- */
.production-section {
  background: var(--bg);
}

.production-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.production-item {
  flex: 0 1 300px;
  max-width: 360px;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.production-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.production-item:hover img {
  transform: scale(1.05);
}

.production-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
}

.production-text {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* --- Documents --- */
.documents-section {
  background: var(--bg-white);
}

.documents-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
}

.doc-card {
  flex: 1 1 340px;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.doc-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

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

.doc-card-number {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 600;
  word-break: break-all;
}

.doc-open-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.doc-open-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.doc-detail-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc-detail-item {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.doc-detail-item strong {
  color: var(--text);
  font-weight: 600;
}

.doc-preview-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.doc-thumbnail-wrap {
  margin-top: 0;
}

.doc-thumbnail {
  width: 100%;
  max-width: 120px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.doc-thumbnail:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}

.doc-preview-text {
  flex: 1 1 180px;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.doc-note {
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(196, 90, 28, 0.06);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.doc-gost-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.doc-gost-badge {
  padding: 4px 12px;
  background: var(--surface-alt);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Legal details card */
.legal-card {
  flex: 1 1 340px;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.legal-card h3 {
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.legal-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.legal-item {
  font-size: 0.88rem;
}

.legal-item .legal-label {
  color: var(--text-muted);
  margin-bottom: 2px;
}

.legal-item .legal-value {
  font-weight: 600;
  color: var(--text);
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius-sm);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}

/* --- Contacts --- */
.contacts-section {
  background: var(--bg);
}

.contacts-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.contact-card {
  flex: 0 0 260px;
  max-width: 260px;
  min-height: 258px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.contact-card-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.contact-card-value {
  margin-top: auto;
  width: 100%;
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.contact-card a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  word-break: break-word;
}

.contact-card a:hover {
  color: var(--primary);
}

.contact-card-address {
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.55;
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}

.contact-card-note {
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.contact-card a[href^="tel:"] {
  font-size: 1.18rem;
}

.contact-card a[href^="mailto:"] {
  font-size: 0.98rem;
}

.contact-card-address a,
.footer-address a,
.legal-value a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 107, 53, 0.45);
  transition: color var(--transition), border-color var(--transition);
}

.contact-card-address a:hover,
.footer-address a:hover,
.legal-value a:hover {
  color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.contact-card-link {
  text-decoration: none;
  color: inherit;
}

.contact-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.contact-card-ozon {
  border-color: rgba(0, 91, 255, 0.18);
  background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
}

.ozon-card-icon {
  background: rgba(0, 91, 255, 0.1);
}

.ozon-card-value {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #005bff;
}

/* --- Footer --- */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand-logo img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-brand-logo span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.footer-address {
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-inn {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  padding: 4px 0;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 20px 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .hero-subtitle {
    font-size: 1rem;
  }

  .header-logo span {
    font-size: 1.55rem;
  }

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

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

  .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .legal-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .hero h1 {
    font-size: 1.65rem;
  }

  .header-logo span {
    font-size: 1.5rem;
  }

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

  .hero-facts {
    gap: 10px;
    margin-bottom: 24px;
  }

  .hero-badge {
    width: 100%;
    max-width: 360px;
    min-height: 52px;
    padding: 14px 18px;
    font-size: 0.94rem;
    white-space: normal;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 360px;
    min-width: 0;
    white-space: normal;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .price-table {
    min-width: 820px;
    font-size: 0.88rem;
  }

  .price-table thead th,
  .price-table tbody td {
    padding: 12px 14px;
  }

  .price-name-col {
    min-width: 240px;
  }

  .price-callout {
    width: 100%;
    max-width: 340px;
  }

  .contact-card {
    flex-basis: 100%;
    max-width: 360px;
    min-height: 220px;
  }

  .product-card {
    padding: 14px;
  }

  .product-card-image {
    aspect-ratio: 1 / 1;
  }

  .product-card-name {
    font-size: 0.85rem;
  }

  .product-card-price {
    font-size: 1.1rem;
  }

  .product-card-specs {
    display: none;
  }

  .product-card-colors {
    font-size: 0.78rem;
  }

  .production-grid {
    gap: 14px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .production-item img {
    height: 180px;
  }

  .production-item,
  .doc-card,
  .legal-card,
  .contact-card {
    flex-basis: 100%;
    max-width: 100%;
  }

  /* Detail panel as bottom sheet on mobile */
  .detail-panel {
    width: 100%;
    max-width: 100%;
    top: auto;
    bottom: 0;
    right: 0;
    height: 90vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: translateY(100%);
  }

  .detail-panel.open {
    transform: translateY(0);
  }

  .price-table-wrap {
    display: block;
  }

}

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

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

/* Body scroll lock */
body.panel-open {
  overflow: hidden;
}
