/* ===== RESET ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

/* ===== VARIABLES ===== */
:root {
  --black: #1a1a1a;
  --white: #f5f4f0;
  --off: #eeecea;
  --gray1: #e6e4e0;
  --gray2: #d8d6d1;
  --gray3: #a8a7a1;
  --gray4: #6a6960;
  --accent: #1a56db;
  --accent-light: #eff4ff;
  --green: #16a34a;
  --green-light: #f0fdf4;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Geologica", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 24px 72px rgba(0, 0, 0, 0.14);
  --shadow-xl: 0 40px 120px rgba(0, 0, 0, 0.18);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
@keyframes gridFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.reveal-line {
  display: block;
  animation: fadeUp 0.8s var(--ease-out) both;
}
.reveal-fade {
  animation: fadeIn 0.9s var(--ease-out) both;
}
.delay-1 {
  animation-delay: 0.12s;
}
.delay-2 {
  animation-delay: 0.24s;
}
.delay-3 {
  animation-delay: 0.36s;
}
.delay-4 {
  animation-delay: 0.48s;
}
.delay-5 {
  animation-delay: 0.6s;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(252, 252, 250, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray2);
  animation: fadeIn 0.5s ease both;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: default;
}
.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25))
    drop-shadow(0 1px 3px rgba(0, 0, 0, 0.15));
}
.logo-text-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.logo-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--black);
}
.logo-sub {
  font-size: 0.62rem;
  color: var(--gray3);
  letter-spacing: 0.3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav a {
  color: var(--gray4);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  padding: 8px 18px;
  position: relative;
  transition: color 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 18px;
  right: 18px;
  height: 1px;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.nav a:hover {
  color: var(--black);
}
.nav a:hover::after {
  transform: scaleX(1);
}
.nav-cta {
  display: flex !important;
  align-items: center;
  gap: 6px;
  background: var(--black) !important;
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: var(--r-sm) !important;
  font-weight: 600 !important;
  transition:
    background 0.2s,
    transform 0.2s !important;
}
.nav-cta::after {
  display: none !important;
}
.nav-cta:hover {
  background: #333 !important;
  transform: translateY(-1px) !important;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  padding: 140px 40px 0;
  position: relative;
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

/* Фоновая сетка */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--gray2) 1px, transparent 1px),
    linear-gradient(90deg, var(--gray2) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(
    ellipse 80% 60% at 80% 40%,
    black 0%,
    transparent 70%
  );
  opacity: 0.55;
}
.hero-accent-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--accent) 30%,
    var(--accent) 70%,
    transparent
  );
  z-index: 1;
}

.hero-layout {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
  padding-bottom: 60px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
  animation: fadeUp 0.6s var(--ease-out) both;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6vw, 6rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 36px;
  word-break: keep-all;
  overflow-wrap: normal;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.hero-desc {
  max-width: 480px;
  margin-bottom: 44px;
}
.hero-desc p {
  font-size: 1.05rem;
  color: var(--gray4);
  line-height: 1.75;
  font-weight: 300;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.btn-main:hover {
  background: #222;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.btn-arrow {
  font-size: 1.1rem;
  transition: transform 0.2s;
}
.btn-main:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  background: transparent;
  color: var(--black);
  text-decoration: none;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  font-weight: 500;
  border: 1.5px solid var(--gray2);
  transition:
    border-color 0.2s,
    background 0.2s;
}
.btn-outline:hover {
  border-color: var(--black);
  background: var(--off);
}

/* Hero правая колонка */
.hero-right {
  position: relative;
}
.hero-card-stack {
  position: relative;
  padding: 24px 0;
}

.hero-visual-block {
  background: var(--off);
  border: 1px solid var(--gray2);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.hero-visual-block::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 86, 219, 0.08), transparent 70%);
}

.visual-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}
.vg-item {
  border-radius: var(--r-sm);
  overflow: hidden;
  animation: gridFloat 4s ease infinite;
}

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

.vg-item:hover img {
  transform: scale(1.06);
}

.vg-1 {
  height: 88px;
  animation-delay: 0s;
}
.vg-2 {
  height: 72px;
  animation-delay: 0.3s;
}
.vg-3 {
  height: 80px;
  animation-delay: 0.6s;
}
.vg-4 {
  height: 72px;
  animation-delay: 0.9s;
}

/* Декоративные ячейки */
.vg-5 {
  height: 88px;
  animation-delay: 1.2s;
}
.vg-6 {
  height: 72px;
  animation-delay: 1.5s;
}

.vg-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: var(--gray1);
  border: 1px solid var(--gray2);
}

.vg-dark {
  background: var(--black) !important;
  border: none !important;
}

.vg-price {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
}

.vg-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 3px 8px;
  border-radius: 4px;
}

.vg-sub {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gray3);
}

.visual-caption {
  font-size: 0.78rem;
  color: var(--gray3);
  font-weight: 400;
  line-height: 1.5;
}

.hero-badge {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--gray2);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  z-index: 10;
}
.top-badge {
  top: -16px;
  right: -20px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.badge-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 600;
  color: var(--black);
}
.badge-label {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--gray4);
  font-weight: 500;
}
.bottom-badge {
  bottom: -16px;
  left: -16px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--black);
}

/* stats bar removed */

/* ===== CATALOG ===== */
.catalog {
  padding: 120px 40px 120px;
  max-width: 1280px;
  margin: 0 auto;
}

.catalog-header {
  margin-bottom: 64px;
}
.cat-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray3);
  margin-bottom: 16px;
}
.rule-line {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--gray2);
}
.rule-white {
  background: rgba(255, 255, 255, 0.3);
}
.cat-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.cat-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.cat-sub {
  font-size: 0.85rem;
  color: var(--gray3);
  font-weight: 400;
}

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}

/* ===== PRODUCT CARD ===== */
.pcard {
  border: 1px solid var(--gray2);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
  cursor: pointer;
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    border-color 0.25s;
  position: relative;
}
.pcard:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.pcard-featured {
  border: 2px solid var(--black);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.pcard-featured:hover {
  transform: translateY(-16px);
  box-shadow: var(--shadow-xl);
}

.featured-ribbon {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  z-index: 10;
  white-space: nowrap;
}

.pcard-img {
  position: relative;
  height: 280px;
  background: var(--gray1);
  overflow: hidden;
}
.pcard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.pcard:hover .pcard-img img {
  transform: scale(1.06);
}

.pcard-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 14, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
  backdrop-filter: blur(2px);
}
.pcard:hover .pcard-overlay {
  opacity: 1;
}
.overlay-hint {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  padding: 9px 22px;
  border-radius: var(--r-sm);
  transition:
    border-color 0.2s,
    background 0.2s;
}
.pcard:hover .overlay-hint {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
}

.pcard-tag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--black);
  backdrop-filter: blur(4px);
}
.perf-tag {
  background: rgba(239, 244, 255, 0.95);
  color: var(--accent);
}
.combo-tag {
  background: rgba(240, 253, 244, 0.95);
  color: var(--green);
}

.pcard-num {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
}

.pcard-body {
  padding: 28px;
}

.pcard-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.pcard-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
}
.pcard-price-inline {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--black);
  white-space: nowrap;
  letter-spacing: -0.3px;
}
.featured-price {
  color: var(--accent);
}

.pcard-specs {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
}
.ps-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--gray1);
  font-size: 0.82rem;
}
.ps-row:last-child {
  border-bottom: none;
}
.ps-row > span:first-child {
  color: var(--gray3);
  font-weight: 500;
}
.ps-row > span:last-child {
  color: var(--black);
  font-weight: 600;
}

.pcard-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--gray2);
  border-radius: var(--r-sm);
  color: var(--black);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 600;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
}
.pcard-btn:hover {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}
.pcard-btn svg {
  transition: transform 0.2s;
}
.pcard-btn:hover svg {
  transform: translateX(4px);
}

.pcard-btn-dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.pcard-btn-dark:hover {
  background: #333;
  border-color: #333;
}

/* ===== ABOUT ===== */
.about {
  background: var(--off);
  border-top: 1px solid var(--gray2);
  border-bottom: 1px solid var(--gray2);
  padding: 100px 40px;
}
.about-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.about-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray3);
  margin-bottom: 20px;
}
.about-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin-bottom: 24px;
}
.about-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.about-text {
  font-size: 0.95rem;
  color: var(--gray4);
  line-height: 1.8;
  font-weight: 300;
}

.adv-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.adv-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--gray2);
  align-items: start;
}
.adv-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.adv-item:first-child {
  padding-top: 0;
}

.adv-icon {
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 1px solid var(--gray2);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    border-color 0.2s;
  flex-shrink: 0;
}
.adv-item:hover .adv-icon {
  background: var(--black);
  border-color: var(--black);
}
.adv-item:hover .adv-icon svg path,
.adv-item:hover .adv-icon svg rect,
.adv-item:hover .adv-icon svg circle {
  stroke: white;
}

.adv-text h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
}
.adv-text p {
  font-size: 0.85rem;
  color: var(--gray4);
  line-height: 1.65;
}

/* ===== CONTACTS ===== */
.contacts {
  background: var(--black);
  color: var(--white);
  padding: 100px 40px 0;
}

.contacts-top {
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 72px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ct-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 20px;
}
.ct-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.ct-title em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
}
.ct-sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.4);
  max-width: 480px;
  line-height: 1.7;
  font-weight: 300;
}

.contacts-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cblock {
  padding: 44px 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-decoration: none;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}
.cblock::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.03);
  opacity: 0;
  transition: opacity 0.2s;
}
.cblock:hover::before {
  opacity: 1;
}
.cblock:last-child {
  border-right: none;
}

.cblock-tg:hover .cblock-icon svg path {
  fill: white;
}

.cblock-icon {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition:
    border-color 0.2s,
    background 0.2s;
}
.cblock:hover .cblock-icon {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.cblock-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cblock-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}
.cblock-val {
  font-size: 1.05rem;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
}

.cblock-arrow {
  position: absolute;
  top: 44px;
  right: 40px;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.25);
  transition:
    color 0.2s,
    transform 0.2s;
}
.cblock:hover .cblock-arrow {
  color: rgba(255, 255, 255, 0.7);
  transform: translate(3px, -3px);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
}
.footer-logo {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.2);
}
.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.18);
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}
.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.modal-content {
  position: relative;
  z-index: 501;
  background: var(--white);
  width: 92%;
  max-width: 560px;
  border-radius: var(--r-lg);
  padding: 40px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray2);
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: all 0.35s var(--ease-out);
  text-align: center;
  max-height: 92vh;
  overflow-y: auto;
}
.modal.open .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--gray1);
  color: var(--gray4);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    color 0.2s;
}
.modal-close:hover {
  background: var(--black);
  color: white;
}

.modal-slider {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 28px;
}
.slider-wrapper {
  width: 100%;
  height: 320px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--gray1);
}
.slider-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gray2);
  background: rgba(255, 255, 255, 0.9);
  color: var(--black);
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.slider-btn:hover {
  background: var(--black);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.prev {
  left: 12px;
}
.next {
  right: 12px;
}

#modal-title {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--black);
}
.modal-specs {
  text-align: left;
  margin-bottom: 20px;
}
.modal-specs p {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--gray1);
  font-size: 0.85rem;
}
.modal-specs strong {
  color: var(--black);
  font-weight: 600;
}
.modal-specs p > :last-child {
  color: var(--gray4);
}
.modal-price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--black);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .hero-right {
    display: none;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pcard-featured {
    transform: none;
  }
  .about-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .contacts-grid {
    grid-template-columns: 1fr;
  }
  .cblock {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .cblock:last-child {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 20px;
    height: 60px;
  }
  .logo-sub {
    display: none;
  }
  .nav a:not(.nav-cta) {
    display: none;
  }
  .hero {
    padding: 100px 20px 0;
  }
  .hero-layout {
    padding-bottom: 0;
  }
  .stats-inner {
    padding: 0 20px;
    flex-wrap: wrap;
  }

  .catalog,
  .about {
    padding: 80px 20px;
  }
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .contacts {
    padding: 80px 20px 0;
  }
  .contacts-top,
  .contacts-grid,
  .footer-bottom {
    padding-left: 0;
    padding-right: 0;
  }
  .modal-content {
    padding: 40px 20px 24px;
  }
  .slider-wrapper {
    height: 240px;
  }
}

/* ===== ОРНАМЕНТАЛЬНЫЙ РАЗДЕЛИТЕЛЬ ===== */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  margin: -40px 0;
  position: relative;
  z-index: 2;
}

.ornament-divider svg {
  width: 100%;
  max-width: 800px;
  height: 60px;
}

.ornament-divider svg path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawOrnament 2s ease forwards;
}

@keyframes drawOrnament {
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 768px) {
  .flourish-tl {
    width: 120px;
    height: 120px;
    top: 70px;
    left: 10px;
  }
  .flourish-br {
    display: none;
  }
  .flourish-tr {
    display: none;
  }
  .ornament-divider {
    padding: 0 16px;
    margin: -20px 0;
  }
}

/* ===== ЧИСЛА В HERO BADGE - ГРАДИЕНТ ===== */
.badge-num {
  background: linear-gradient(135deg, #111 0%, #444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 768px) {
  .marquee-content span {
    font-size: 0.65rem;
    letter-spacing: 2px;
  }
}

/* ===== КНОПКА РЕКВИЗИТОВ ===== */
.req-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 12px 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-sm);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}

.req-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

/* ===== КНОПКА ТЕМЫ ===== */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid #e2e1dd;
  background: transparent;
  color: #6e6d68;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  flex-shrink: 0;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
}
.theme-toggle:hover {
  border-color: #0e0e0e;
  color: #0e0e0e;
  background: #f0efec;
}

/* ===== ТЁМНАЯ ТЕМА ===== */
[data-theme="dark"] body {
  background: #0e0e0e;
  color: #ffffff;
}
[data-theme="dark"] .header {
  background: rgba(14, 14, 14, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .hero {
  background: #0e0e0e;
}
[data-theme="dark"] .hero-bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}
[data-theme="dark"] .logo-name {
  color: #ffffff;
}
[data-theme="dark"] .logo-sub {
  color: #888888;
}
[data-theme="dark"] .nav a {
  color: #888888;
}
[data-theme="dark"] .nav a:hover {
  color: #ffffff;
}
[data-theme="dark"] .nav a::after {
  background: #ffffff;
}
[data-theme="dark"] .nav-cta {
  background: #ffffff !important;
  color: #000000 !important;
}
[data-theme="dark"] .nav-cta:hover {
  background: #e0e0e0 !important;
}
[data-theme="dark"] .theme-toggle {
  border-color: #3a3a3a;
  color: #888888;
}
[data-theme="dark"] .theme-toggle:hover {
  border-color: #ffffff;
  color: #ffffff;
  background: #1e1e1e;
}
[data-theme="dark"] .hero-title {
  color: #ffffff;
}
[data-theme="dark"] .hero-desc p {
  color: #888888;
}
[data-theme="dark"] .hero-eyebrow {
  color: #4d8fef;
}
[data-theme="dark"] .btn-outline {
  border-color: #3a3a3a;
  color: #ffffff;
}
[data-theme="dark"] .btn-outline:hover {
  border-color: #ffffff;
  background: #1e1e1e;
}
[data-theme="dark"] .hero-stats-bar {
  border-top-color: #2a2a2a;
}
[data-theme="dark"] .stat-divider {
  background: #2a2a2a;
}
[data-theme="dark"] .hstat-n {
  color: #ffffff;
}
[data-theme="dark"] .section-tag {
  color: #888888;
}
[data-theme="dark"] .section-title {
  color: #ffffff;
}
[data-theme="dark"] .cat-title {
  color: #ffffff;
}
[data-theme="dark"] .catalog {
  background: #0e0e0e;
}

[data-theme="dark"] .pcard {
  background: #161616;
  border-color: #2a2a2a;
}
[data-theme="dark"] .pcard:hover {
  background: #1e1e1e;
  border-color: #3a3a3a;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .pcard-featured {
  border-color: #ffffff;
}
[data-theme="dark"] .pcard-img {
  background: #111111;
}
[data-theme="dark"] .pcard-title {
  color: #ffffff;
}
[data-theme="dark"] .pcard-price-inline {
  color: #ffffff;
}
[data-theme="dark"] .featured-price {
  color: #4d8fef;
}
[data-theme="dark"] .ps-row {
  border-bottom-color: #2a2a2a;
}
[data-theme="dark"] .ps-row > span:first-child {
  color: #888888;
}
[data-theme="dark"] .ps-row > span:last-child {
  color: #ffffff;
}
[data-theme="dark"] .pcard-btn {
  border-color: #3a3a3a;
  color: #ffffff;
}
[data-theme="dark"] .pcard-btn:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}
[data-theme="dark"] .pcard-btn-dark {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}
[data-theme="dark"] .pcard-btn-dark:hover {
  background: #e0e0e0;
  border-color: #e0e0e0;
}
[data-theme="dark"] .about {
  background: #111111;
  border-color: #2a2a2a;
}
[data-theme="dark"] .about-title {
  color: #ffffff;
}
[data-theme="dark"] .about-text {
  color: #888888;
}
[data-theme="dark"] .about-label {
  color: #888888;
}
[data-theme="dark"] .rule-line {
  background: #3a3a3a;
}
[data-theme="dark"] .adv-item {
  border-bottom-color: #2a2a2a;
}
[data-theme="dark"] .adv-icon {
  background: #1e1e1e;
  border-color: #3a3a3a;
}
[data-theme="dark"] .adv-icon svg path,
[data-theme="dark"] .adv-icon svg rect,
[data-theme="dark"] .adv-icon svg circle {
  stroke: #ffffff;
}
[data-theme="dark"] .adv-text h4 {
  color: #ffffff;
}
[data-theme="dark"] .adv-text p {
  color: #888888;
}

[data-theme="dark"] .modal-content {
  background: #161616;
  border-color: #2a2a2a;
}
[data-theme="dark"] .modal-overlay {
  background: rgba(0, 0, 0, 0.7);
}
[data-theme="dark"] .modal-close {
  background: #2a2a2a;
  color: #888888;
}
[data-theme="dark"] .modal-close:hover {
  background: #ffffff;
  color: #000000;
}
[data-theme="dark"] .slider-wrapper {
  background: #111111;
}
[data-theme="dark"] .slider-btn {
  background: rgba(30, 30, 30, 0.95);
  border-color: #3a3a3a;
  color: #ffffff;
}
[data-theme="dark"] #modal-title {
  color: #ffffff;
}
[data-theme="dark"] .modal-specs p {
  border-bottom-color: #2a2a2a;
}
[data-theme="dark"] .modal-specs strong {
  color: #ffffff;
}
[data-theme="dark"] .modal-specs p > :last-child {
  color: #888888;
}
[data-theme="dark"] .modal-price {
  color: #ffffff;
}

/* Мобайл */
@media (max-width: 768px) {
  .theme-toggle {
    width: 32px;
    height: 32px;
    margin-left: 8px;
  }
  [data-theme="dark"] .theme-toggle {
    border-color: #3a3a3a;
  }
}

/* ===== ФИКС КНОПКИ ЗАКАЗАТЬ В ТЁМНОЙ ТЕМЕ ===== */
[data-theme="dark"] .pcard-btn-dark {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #000000 !important;
}
[data-theme="dark"] .pcard-btn-dark:hover {
  background: #e0e0e0 !important;
  border-color: #e0e0e0 !important;
  color: #000000 !important;
}

/* ===== ФИКС КОНТАКТОВ В ТЁМНОЙ ТЕМЕ ===== */
[data-theme="dark"] .cblock-val {
  color: #ffffff !important;
}
[data-theme="dark"] .cblock-label {
  color: rgba(255, 255, 255, 0.35) !important;
}
[data-theme="dark"] .cblock-icon {
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
}
[data-theme="dark"] a.cblock .cblock-val {
  color: #4d8fef !important;
}

/* ===== СЕКЦИЯ О ПРОИЗВОДСТВЕ ===== */
.production {
  padding: 100px 40px;
  background: var(--off);
  border-top: 1px solid var(--gray2);
  border-bottom: 1px solid var(--gray2);
}

.production-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.production-header {
  max-width: 640px;
  margin-bottom: 60px;
}

.production-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--black);
  line-height: 1.15;
  letter-spacing: -0.3px;
  margin: 12px 0 16px;
}

.production-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.production-sub {
  font-size: 0.95rem;
  color: var(--gray4);
  line-height: 1.8;
  font-weight: 300;
}

/* Видео */
.production-videos {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-flex-direction: row;
  flex-direction: row;
  gap: 16px;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
}

.prod-video-card {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #000;
  -webkit-flex: 1 1 0;
  flex: 1 1 0;
  min-width: 0;
  width: 50%;
  max-width: 50%;
  box-sizing: border-box;
}

.prod-video {
  width: 100%;
  height: 280px;
  -webkit-object-fit: cover;
  object-fit: cover;
  display: block;
}

.prod-video-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* Галерея — простая сетка без span */
.production-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.gallery-item {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--gray1);
}

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

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

/* Все ячейки одинаковые — без span */
.gallery-item--tall {
  grid-row: auto;
}
.gallery-item--tall img {
  height: 220px;
  min-height: unset;
}
.gallery-item--wide {
  grid-column: auto;
}
.gallery-item--wide img {
  height: 220px;
}

/* Тёмная тема */
[data-theme="dark"] .production {
  background: #111111;
  border-color: #2a2a2a;
}

[data-theme="dark"] .production-title {
  color: #ffffff;
}
[data-theme="dark"] .production-sub {
  color: #888888;
}
[data-theme="dark"] .gallery-item {
  background: #1e1e1e;
}
[data-theme="dark"] .prod-video-card {
  background: #000;
}

/* Мобайл */
@media (max-width: 768px) {
  .production {
    padding: 60px 20px;
  }

  .production-videos {
    -webkit-flex-direction: column;
    flex-direction: column;
  }

  .prod-video-card {
    width: 100%;
    max-width: 100%;
    -webkit-flex: none;
    flex: none;
  }

  .prod-video {
    height: 200px;
  }

  .production-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item img,
  .gallery-item--tall img,
  .gallery-item--wide img {
    height: 200px;
    min-height: unset;
  }
}

/* Блок производства внутри about */
.about .production-inner {
  max-width: 1280px;
  margin: 60px auto 0;
  padding-top: 0;
}

.production-header {
  margin-bottom: 40px;
}

.production-sub {
  font-size: 0.95rem;
  color: var(--gray4);
  line-height: 1.8;
  font-weight: 300;
  margin-top: 8px;
}

[data-theme="dark"] .about .production-inner {
  border-top-color: #2a2a2a;
}

@media (max-width: 768px) {
  .about .production-inner {
    margin-top: 40px;
    padding-top: 40px;
  }
}

/* ===== МОБИЛЬНЫЙ ФИКС ===== */
.eyebrow-short {
  display: none;
}
.eyebrow-full {
  display: inline;
}

@media (max-width: 600px) {
  /* Синяя линия и сетка — убираем */
  .hero-accent-line {
    display: none !important;
  }
  .hero-bg-grid {
    display: none !important;
  }

  /* Шапка */
  .header-inner {
    padding: 0 16px;
    height: 56px;
  }
  .logo-sub {
    display: none;
  }
  .logo-name {
    font-size: 0.68rem;
    letter-spacing: 2px;
  }
  .nav a:not(.nav-cta) {
    display: none;
  }
  .nav-cta {
    padding: 9px 16px !important;
    font-size: 0.8rem !important;
  }
  .theme-toggle {
    width: 34px;
    height: 34px;
    margin-left: 8px;
  }

  /* Hero */
  .hero {
    padding: 76px 20px 48px;
    min-height: auto;
  }

  /* Eyebrow — одна строка */
  .eyebrow-short {
    display: inline;
  }
  .eyebrow-full {
    display: none;
  }
  .hero-eyebrow {
    font-size: 0.6rem !important;
    letter-spacing: 1.2px !important;
    gap: 6px !important;
    margin-bottom: 16px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .eyebrow-dot {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
  }

  /* Заголовок */
  .hero-title {
    font-size: 2.4rem !important;
    letter-spacing: -1px !important;
    line-height: 1.05 !important;
    margin-bottom: 20px !important;
  }

  /* Описание */
  .hero-desc {
    margin-bottom: 28px;
  }
  .hero-desc p {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  /* Кнопки в колонку */
  .hero-cta-group {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .btn-main,
  .btn-outline {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.9rem;
  }

  /* Каталог */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pcard-featured {
    transform: none;
  }
  .pcard-body {
    padding: 20px;
  }

  /* О нас */
  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .production-videos {
    flex-direction: column;
  }
  .prod-video-card {
    width: 100%;
    max-width: 100%;
    flex: none;
  }
  .prod-video {
    height: 200px;
  }
  .production-gallery {
    grid-template-columns: 1fr;
  }
  .gallery-item img,
  .gallery-item--tall img,
  .gallery-item--wide img {
    height: 200px;
    min-height: unset;
  }

  /* Контакты */
  .contacts-grid {
    grid-template-columns: 1fr;
  }
  .cblock {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 20px;
  }
  .cblock:last-child {
    border-bottom: none;
  }
  .ct-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 20px 0;
  }

  /* Реквизиты */
  .req-btn {
    width: 100%;
    justify-content: center;
    margin-top: 20px;
  }

  /* Модалка */
  .modal-content {
    padding: 40px 16px 24px;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 14px;
  }
  .slider-wrapper {
    height: 220px;
  }
}

/* Маленькие телефоны */
@media (max-width: 390px) {
  .hero-title {
    font-size: 2rem !important;
  }
  .nav-cta span {
    display: none;
  }
  .nav-cta {
    padding: 9px 12px !important;
  }
}

/* Планшеты — видео в колонку */
@media (max-width: 1024px) and (min-width: 601px) {
  .production-videos {
    -webkit-flex-direction: column;
    flex-direction: column;
  }
  .prod-video-card {
    width: 100%;
    max-width: 100%;
    -webkit-flex: none;
    flex: none;
  }
  .prod-video {
    height: 260px;
  }
  .production-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
