/* =========================================================
   НИЖЕГОРОДСКАЯ ТЕКСТИЛЬНАЯ КОМПАНИЯ — кевлар оптом и в розницу
   Дизайн: тёмный индустриальный фон + фирменный «арамидовый жёлтый»,
   сигнатурный элемент — диагональное плетение (имитация ткани кевлара)
   ========================================================= */

:root {
  --bg-0: #17110c;
  --bg-1: #201810;
  --bg-2: #2a2118;
  --weave-line: #3d3123;
  --yellow: #c9a227;
  --yellow-bright: #e8c547;
  --text-0: #f2ead9;
  --text-1: #cabfa9;
  --text-2: #8f8570;
  --danger: #b5482f;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 2px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-0);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Woven texture — signature element ---------- */
.weave {
  background-image:
    repeating-linear-gradient(45deg, var(--weave-line) 0, var(--weave-line) 2px, transparent 2px, transparent 14px),
    repeating-linear-gradient(-45deg, var(--weave-line) 0, var(--weave-line) 2px, transparent 2px, transparent 14px);
  background-color: var(--bg-1);
}

.weave-divider {
  height: 10px;
  background-image:
    repeating-linear-gradient(45deg, var(--yellow) 0, var(--yellow) 2px, transparent 2px, transparent 10px),
    repeating-linear-gradient(-45deg, var(--yellow) 0, var(--yellow) 2px, transparent 2px, transparent 10px);
  opacity: 0.55;
}

/* ---------- Header ---------- */
/* ---------- Motion: hero entrance ---------- */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal-up {
  opacity: 0;
  animation: revealUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ---------- Motion: scroll-triggered reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* No JS / reduced motion fallback: never leave content invisible */
.no-js .reveal,
.no-js .reveal-up {
  opacity: 1;
  transform: none;
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-up {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}

/* ---------- Motion: sticky header shrink ---------- */
.site-header {
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.site-header.scrolled .container {
  height: 64px;
  transition: height 0.2s ease;
}

/* ---------- Motion: animated weave divider ---------- */
.weave-divider {
  background-size: 200% 100%;
  animation: weaveDrift 14s linear infinite;
}

@keyframes weaveDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 200px 0, -200px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .weave-divider { animation: none; }
}

/* ---------- Motion: hover lift on cards ---------- */
.size-row,
.stat-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.size-row:hover,
.size-row:focus-within {
  transform: translateY(-2px);
  border-color: var(--yellow);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.stat-card:hover {
  border-color: var(--yellow);
  transform: translateY(-3px);
}

.btn, .add-to-cart, .submit-order {
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover, .add-to-cart:hover:not(:disabled), .submit-order:hover:not(:disabled) {
  box-shadow: 0 6px 18px rgba(201, 162, 39, 0.35);
}

/* ---------- Motion: cart badge pulse on change ---------- */
@keyframes cartPulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.cart-count.pulse {
  animation: cartPulse 0.4s ease;
}

/* ---------- Motion: cart item removal ---------- */
.cart-item.removing {
  opacity: 0;
  transform: translateX(16px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* ---------- Mobile hamburger menu ---------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--weave-line);
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--text-0);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  border-top: 1px solid var(--weave-line);
}

.mobile-nav.open {
  max-height: 240px;
}

.mobile-nav a {
  padding: 14px 24px;
  color: var(--text-1);
  text-decoration: none;
  border-bottom: 1px solid var(--weave-line);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mobile-nav a:hover { color: var(--yellow-bright); }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav { display: flex; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(23, 17, 12, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--weave-line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text-0);
  text-transform: uppercase;
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.15;
  max-width: 220px;
}

.logo span {
  color: var(--yellow);
}

.logo small {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
  letter-spacing: 0.08em;
  text-transform: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-1);
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.15s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--yellow-bright);
}

.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--weave-line);
  color: var(--text-0);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
}

.cart-button:hover,
.cart-button:focus-visible {
  border-color: var(--yellow);
  color: var(--yellow-bright);
}

.cart-count {
  background: var(--yellow);
  color: var(--bg-0);
  font-weight: 700;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  padding: 0 4px;
}

:focus-visible {
  outline: 2px solid var(--yellow-bright);
  outline-offset: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, var(--weave-line) 0, var(--weave-line) 1.5px, transparent 1.5px, transparent 16px),
    repeating-linear-gradient(-45deg, var(--weave-line) 0, var(--weave-line) 1.5px, transparent 1.5px, transparent 16px);
  opacity: 0.5;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 48px;
  align-items: end;
}

.eyebrow {
  font-family: var(--font-mono);
  color: var(--yellow);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.03;
  text-transform: uppercase;
  margin: 0 0 22px;
  letter-spacing: 0.01em;
}

.hero h1 em {
  font-style: normal;
  color: var(--yellow);
}

.hero p.lead {
  font-size: 17px;
  color: var(--text-1);
  max-width: 46ch;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--yellow);
  color: #1a1409;
}

.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--yellow-bright);
}

.btn-outline {
  background: transparent;
  color: var(--text-0);
  border-color: var(--weave-line);
}

.btn-outline:hover, .btn-outline:focus-visible {
  border-color: var(--yellow);
  color: var(--yellow-bright);
}

/* Hero stat card — the "5x stronger than steel" thesis */
.hero-stat {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--weave-line);
  padding: 28px;
  border-radius: var(--radius);
}

.hero-stat .number {
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 700;
  color: var(--yellow-bright);
  line-height: 1;
  display: block;
}

.hero-stat .unit {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--yellow);
}

.hero-stat p {
  color: var(--text-1);
  font-size: 14px;
  margin: 12px 0 0;
}

/* ---------- Section shell ---------- */
section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 0;
  letter-spacing: 0.01em;
}

.section-head .index {
  font-family: var(--font-mono);
  color: var(--text-2);
  font-size: 13px;
}

/* ---------- О материале ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-grid p {
  color: var(--text-1);
  font-size: 15.5px;
  margin: 0 0 16px;
}

.about-grid strong { color: var(--text-0); }

.material-photo {
  margin: 0 0 20px;
  border: 1px solid var(--weave-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-1);
}

.material-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.material-photo figcaption {
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  border-top: 1px solid var(--weave-line);
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stat-card {
  background: var(--bg-1);
  border: 1px solid var(--weave-line);
  padding: 20px;
  border-radius: var(--radius);
}

.stat-card .val {
  font-family: var(--font-mono);
  color: var(--yellow-bright);
  font-size: 26px;
  font-weight: 700;
  display: block;
}

.stat-card .label {
  color: var(--text-2);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 6px;
  display: block;
}

.uses-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
}

.uses-list li {
  color: var(--text-1);
  font-size: 14.5px;
  padding-left: 18px;
  position: relative;
}

.uses-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 2px;
  background: var(--yellow);
}

/* ---------- Товары ---------- */
/* ---------- Товары: витрина с фото + список размеров ---------- */
.product-showcase {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: start;
}

.showcase-photo {
  margin: 0;
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--weave-line);
  border-radius: var(--radius);
  padding: 24px;
  overflow: hidden;
}

.showcase-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(201, 162, 39, 0.12), transparent 60%);
  pointer-events: none;
}

.showcase-photo img {
  width: 100%;
  height: auto;
  position: relative;
  animation: photoFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.45));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.showcase-photo:hover img {
  transform: scale(1.03);
  filter: drop-shadow(0 24px 36px rgba(201, 162, 39, 0.25));
}

@keyframes photoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(0.4deg); }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-photo img { animation: none; }
}

.size-list-lead {
  color: var(--text-1);
  font-size: 14.5px;
  margin: 0 0 20px;
}

.size-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bg-1);
  border: 1px solid var(--weave-line);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 10px;
}

.size-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.size-row-name {
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.size-row-price {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--yellow-bright);
  font-weight: 700;
}

.size-row-price small {
  color: var(--text-2);
  font-weight: 400;
  font-size: 11px;
}

.size-row .qty-row {
  gap: 10px;
}

.size-row .add-to-cart {
  width: auto;
  padding: 10px 18px;
}

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

@media (max-width: 520px) {
  .size-row { flex-direction: column; align-items: stretch; }
  .size-row .qty-row { justify-content: space-between; }
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--weave-line);
  border-radius: var(--radius);
}

.qty-control button {
  background: transparent;
  border: none;
  color: var(--text-0);
  width: 32px;
  height: 32px;
  font-family: var(--font-mono);
  font-size: 16px;
  cursor: pointer;
}

.qty-control button:hover { color: var(--yellow-bright); }

.qty-control input {
  width: 42px;
  text-align: center;
  background: transparent;
  border: none;
  border-left: 1px solid var(--weave-line);
  border-right: 1px solid var(--weave-line);
  color: var(--text-0);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 6px 0;
}

.add-to-cart {
  width: 100%;
  background: var(--yellow);
  color: #1a1409;
  border: none;
  padding: 12px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
}

.add-to-cart:hover, .add-to-cart:focus-visible {
  background: var(--yellow-bright);
}

.add-to-cart.added {
  background: #4c7a4f;
  color: #eaf5ea;
}

/* ---------- Contacts / footer ---------- */
.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contacts h2 { margin-top: 0; }

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--weave-line);
  display: flex;
  justify-content: space-between;
  font-size: 14.5px;
}

.contact-list span.k {
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

site-footer, .site-footer {
  border-top: 1px solid var(--weave-line);
  padding: 28px 0;
  color: var(--text-2);
  font-size: 13px;
  text-align: center;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-2);
  border: 1px solid var(--yellow);
  color: var(--text-0);
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-body);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 100;
}

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

/* ---------- Cart page ---------- */
.cart-page-header {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--weave-line);
}

.cart-page-header h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 32px;
  margin: 0 0 8px;
}

.back-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
}

.back-link:hover { color: var(--yellow-bright); }

.cart-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 40px;
  align-items: start;
  padding: 48px 0;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 16px;
  align-items: center;
  background: var(--bg-1);
  border: 1px solid var(--weave-line);
  padding: 16px 18px;
  border-radius: var(--radius);
}

.cart-item .swatch {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background-image:
    repeating-linear-gradient(45deg, var(--yellow) 0, var(--yellow) 2px, transparent 2px, transparent 8px),
    repeating-linear-gradient(-45deg, var(--yellow) 0, var(--yellow) 2px, transparent 2px, transparent 8px);
  background-color: var(--bg-2);
}

.cart-item .info h4 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 17px;
  text-transform: uppercase;
}

.cart-item .info span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
}

.cart-item .line-price {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.remove-btn {
  background: transparent;
  border: 1px solid var(--weave-line);
  color: var(--text-2);
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}

.remove-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.empty-cart {
  color: var(--text-2);
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--weave-line);
  border-radius: var(--radius);
}

.empty-cart a { color: var(--yellow-bright); text-decoration: none; }

.order-panel {
  background: var(--bg-1);
  border: 1px solid var(--weave-line);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 96px;
}

.order-panel h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 20px;
  margin: 0 0 20px;
}

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--weave-line);
  border-bottom: 1px solid var(--weave-line);
  margin-bottom: 20px;
}

.order-total .label {
  color: var(--text-2);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.order-total .value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--yellow-bright);
}

.delivery-block {
  margin: 4px 0 20px;
  padding-top: 4px;
  border-top: 1px dashed var(--weave-line);
}

.delivery-label {
  display: block;
  font-size: 12.5px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 16px 0 8px;
  font-family: var(--font-mono);
}

.delivery-block select {
  width: 100%;
  background: var(--bg-0);
  border: 1px solid var(--weave-line);
  color: var(--text-0);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
}

.delivery-block select:focus {
  border-color: var(--yellow);
  outline: none;
}

.delivery-hint {
  color: var(--text-2);
  font-size: 12px;
  margin: 12px 0 10px;
}

.carrier-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.carrier-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-0);
  border: 1px solid var(--weave-line);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
}

.carrier-card:hover {
  border-color: var(--yellow);
}

.carrier-card input[type="radio"] {
  accent-color: var(--yellow);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.carrier-card .carrier-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  display: block;
}

.carrier-card .carrier-days {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-2);
}

.carrier-card .carrier-price {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--yellow-bright);
  white-space: nowrap;
}

.carrier-card.selected {
  border-color: var(--yellow);
  background: rgba(201, 162, 39, 0.08);
}

.delivery-links {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--text-2);
}

.delivery-links a {
  color: var(--text-2);
  text-decoration: underline;
}

.delivery-links a:hover { color: var(--yellow-bright); }

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 12.5px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  font-family: var(--font-mono);
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--bg-0);
  border: 1px solid var(--weave-line);
  color: var(--text-0);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--yellow);
  outline: none;
}

.form-field textarea { resize: vertical; min-height: 80px; }

.form-error {
  color: var(--danger);
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.form-field.invalid input,
.form-field.invalid textarea {
  border-color: var(--danger);
}

.form-field.invalid .form-error { display: block; }

.submit-error {
  color: var(--danger);
  font-size: 13px;
  margin: -6px 0 12px;
  display: none;
}

.submit-error.show { display: block; }

.submit-order:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.submit-order {
  width: 100%;
  background: var(--yellow);
  color: #1a1409;
  border: none;
  padding: 15px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  margin-top: 6px;
}

.submit-order:hover { background: var(--yellow-bright); }

.order-success {
  text-align: center;
  padding: 60px 20px;
}

.order-success .mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  color: var(--yellow-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 20px;
}

.order-success h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  margin: 0 0 10px;
}

.order-success p { color: var(--text-1); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .uses-list { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .order-panel { position: static; }
}

/* ---------- Нити и волокна: карточки с 3D-наклоном и бликом ---------- */
.fiber-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.fiber-card {
  background: var(--bg-1);
  border: 1px solid var(--weave-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.fiber-card:hover {
  border-color: var(--yellow);
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4);
}

.fiber-photo-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 40% 30%, rgba(232, 197, 71, 0.1), var(--bg-2) 70%);
  overflow: hidden;
  --shine-x: 50%;
  --shine-y: 50%;
}

.fiber-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 140px at var(--shine-x) var(--shine-y), rgba(255, 245, 210, 0.35), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.fiber-photo-wrap:hover::after {
  opacity: 1;
}

.fiber-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform 0.15s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .fiber-photo-wrap img { transition: none; }
  .fiber-card:hover { transform: none; }
}

.fiber-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.fiber-body .article {
  font-family: var(--font-mono);
  color: var(--text-2);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.fiber-body h3 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 0;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.fiber-body p.desc {
  color: var(--text-1);
  font-size: 13.5px;
  margin: 0;
  flex-grow: 1;
}

.fiber-body .specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fiber-body .specs span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
  border: 1px solid var(--weave-line);
  padding: 4px 8px;
  border-radius: var(--radius);
}

.fiber-body .price-row {
  border-top: 1px solid var(--weave-line);
  padding-top: 12px;
}

.fiber-body .price {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--text-0);
  font-weight: 700;
}

.fiber-body .price small {
  font-size: 11.5px;
  color: var(--text-2);
  font-weight: 400;
}

.fiber-body .qty-row .add-to-cart {
  width: auto;
  padding: 10px 16px;
  flex-grow: 1;
}

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

/* ---------- Селектор dtex в карточке нити ---------- */
.dtex-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.dtex-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dtex-btn {
  background: var(--bg-0);
  border: 1px solid var(--weave-line);
  color: var(--text-1);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.dtex-btn:hover {
  border-color: var(--yellow);
  color: var(--text-0);
}

.dtex-btn:focus-visible {
  outline: none;
  border-color: var(--yellow);
}

.dtex-btn.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--bg-0);
}

/* ---------- «Мы на Ozon» ---------- */
.ozon-section {
  position: relative;
  overflow: hidden;
}

.ozon-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.ozon-copy .eyebrow {
  margin-bottom: 14px;
}

.ozon-copy h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 0 0 16px;
}

.ozon-copy p {
  color: var(--text-1);
  font-size: 15px;
  max-width: 42ch;
  margin: 0 0 28px;
}

.ozon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-1);
  border: 1px solid var(--weave-line);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-1);
  margin-bottom: 20px;
}

.ozon-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ba55d;
  animation: ozonDotPulse 1.8s ease-in-out infinite;
}

@keyframes ozonDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 165, 93, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(59, 165, 93, 0); }
}

.btn-ozon {
  background: #005bff;
  color: #ffffff;
  border: none;
}

.btn-ozon:hover {
  background: #0a6bff;
  box-shadow: 0 8px 22px rgba(0, 91, 255, 0.35);
}

/* Phone mockup */
.phone-mockup-wrap {
  display: flex;
  justify-content: center;
  perspective: 1400px;
}

.phone-mockup {
  position: relative;
  width: 260px;
  border-radius: 40px;
  padding: 12px;
  background: linear-gradient(160deg, #2b2b2b, #0c0c0c);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  animation: phoneFloat 5s ease-in-out infinite;
  transform-style: preserve-3d;
}

@keyframes phoneFloat {
  0%, 100% { transform: rotateY(-6deg) rotateX(2deg) translateY(0); }
  50% { transform: rotateY(-6deg) rotateX(2deg) translateY(-12px); }
}

.phone-mockup::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #0c0c0c;
  border-radius: 14px;
  z-index: 2;
}

.phone-screen {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  max-height: 520px;
}

.phone-screen img {
  width: 100%;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .phone-mockup { animation: none; }
  .ozon-badge .dot { animation: none; }
}

@media (max-width: 860px) {
  .ozon-layout { grid-template-columns: 1fr; text-align: center; }
  .ozon-copy p { margin-left: auto; margin-right: auto; }
}
