﻿/* ===== STELLAR STITCH — RETRO FUTURISM 60s ===== */

/* ===== FONTS ===== */
@font-face {
  font-family: 'Screpka';
  src: url('../fonts/subset-ScrepkaRegular.woff2') format('woff2'),
    url('../fonts/subset-ScrepkaRegular.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #F4EFE6;
  --orange: #D84343;
  --teal: #00B4AB;
  --dark: #4a230e;
  --header-bg: #F4EFE6;
  --header-text: #D84343;
  --header-h: 80px;
  --strip-h: 10px;
  --gray: #8B7E74;
  --light-gray: #EDE8E3;
  --white: #FFFFFF;
  --font-head: 'Comfortaa';
  --font-body: 'Comfortaa';
  --shadow: 0 8px 40px rgba(28, 20, 51, 0.12);
  --shadow-lg: 0 20px 60px rgba(28, 20, 51, 0.2);
  --radius: 7px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.65;
  position: relative;
  padding-top: calc(var(--header-h) + var(--strip-h));
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9000;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.052;
  mix-blend-mode: multiply;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ===== TYPOGRAPHY ===== */
.section-title,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Screpka', cursive;
  font-size: clamp(2rem, 5vw, 6.5rem);
  font-weight: 100;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: #8B7E73;
}


.title-decor {
  color: var(--orange);
  font-size: 1rem;
  letter-spacing: 0.5em;
  margin: 0.5rem 0 1rem;
}


.section-header {
  text-align: center;
  padding: 0px 21px 15px;
  /* max-width: 1200px; */
  margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid currentColor;
  transition: all 0.2s ease;
  cursor: pointer;
  border-radius: var(--radius);
}

.btn--primary {
  background: #d45555;
  color: var(--cream);
  border-color: #d45555;
}

.btn--primary:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 77, 0, 0.35);
}

.btn--accent {
  background: var(--orange);
  color: var(--cream);
  border-color: var(--orange);
}

.btn--accent:hover {
  background: transparent;
  color: var(--cream);
}

.btn--full {
  width: 100%;
}

.btn--outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}

.btn--outline:hover {
  background: var(--dark);
  color: var(--cream);
}

/* ===== HEADER ===== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--header-h);
  background: var(--header-bg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

#site-header::after {
  content: '';
  display: block;
  width: 100%;
  height: var(--strip-h);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='3'%3E%3Crect width='8' height='3' rx='1.5' fill='%23D84343'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='3'%3E%3Crect width='8' height='3' rx='1.5' fill='%23D84343'/%3E%3C/svg%3E");
  background-size: 21px 2px;
  background-position: 0 1px, 0 6px;
  background-repeat: repeat-x;
}

.header-inner {
  flex: 1;
  max-width: none;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 245px 1fr;
  /* 185px logo + 30px gap on each side */
  align-items: center;
  padding: 0 40px;
  position: relative;
}

#site-header.scrolled {
  box-shadow: 0 4px 20px rgba(28, 20, 51, 0.1);
  height: calc(var(--header-h) + 3px);
  padding-bottom: 3px;
}

.header-nav--left {
  display: flex;
  justify-content: flex-end;
  gap: 45px;
}

.header-nav--right {
  display: flex;
  justify-content: flex-start;
  gap: 45px;
}

.header-nav .nav-link {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--header-text);
  padding: 10px 20px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

/* Spacer to prevent layout shift on bold */
.header-nav .nav-link::after {
  content: attr(data-text);
  height: 0;
  visibility: hidden;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
  font-weight: 700;
}

.header-nav .nav-link::before {
  content: '';
  position: absolute;
  top: -100px;
  /* Extends way above the screen */
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--orange);
  z-index: -1;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.header-nav .nav-link:hover,
.header-nav .nav-link.active {
  font-weight: 700;
  /* Bold on hover/active */
  color: var(--cream);
}

.header-nav .nav-link:hover::before,
.header-nav .nav-link.active::before {
  opacity: 1;
  transform: translateY(0);
}

.logo {
  position: absolute;
  left: 50%;
  bottom: calc(var(--strip-h) * -1 - 35px);
  transform: translateX(-50%);
  width: 185px;
  height: 185px;
  background: var(--orange);
  border-radius: 50%;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--orange);
  /* Outer red border */
  box-shadow: 0 0 0 7px var(--cream), inset 0 0 0 2px var(--cream);
  /* New outer cream ring and existing inner cream ring */
  text-decoration: none;
}

.logo-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
  margin-top: 25px;
}

.logo-text {
  font-family: 'Hachi Maru Pop', cursive;
  font-size: 3.4rem;
  color: var(--cream);
  text-transform: lowercase;
  line-height: 1;
}

.logo-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 0.65rem;
  color: var(--cream);
  font-style: italic;
  margin-top: 5px;
  /* 5px below alla */
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.header-nav-right-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 45px;
  grid-column: 3;
}

.header-contacts {
  position: absolute;
  top: 0;
  bottom: var(--strip-h);
  right: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  line-height: 1.2;
  color: var(--header-text);
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-align: right;
  z-index: 1002;
}

.header-contacts-address {
  opacity: 0.85;
}

.header-contacts-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--header-text);
  transition: opacity 0.2s ease;
}

.header-contacts-phone:hover {
  opacity: 0.7;
}

.header-wa-icon {
  color: #25D366;
  flex-shrink: 0;
}

.logo-star {
  color: var(--orange);
  font-size: 0.9rem;
}

.header-right {
  display: flex;
  align-items: center;
}

.cart-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 10px 20px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  background: transparent;
  color: var(--header-text);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.cart-btn::after {
  content: "Корзина";
  height: 0;
  visibility: hidden;
  overflow: hidden;
  font-weight: 700;
}

.cart-btn-inner {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-btn::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--orange);
  z-index: -1;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.cart-btn:hover {
  font-weight: 700;
  color: var(--cream);
  opacity: 1;
}

.cart-btn:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.cart-count {
  font-weight: 700;
  color: var(--orange);
}

.cart-count[data-count="0"] {
  display: none;
}

/* ===== BANNER SLIDER ===== */
.banner-section {
  position: relative;
  height: 700px;
  /* Высота как у блока FAQ */
  margin-top: -30px;
  /* Смещаем вверх для перекрытия фона */
  overflow: hidden;
  z-index: 10;
}

.slider-wrapper {
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  background-color: var(--slide-bg, var(--dark));
  color: var(--slide-text, var(--cream));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  overflow: hidden;
}

.slide-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  /* background: var(--slide-bg); */
  z-index: 1;
}

.slide:has(.slide-video)::before {
  display: none;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.slide-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.starburst {
  position: absolute;
  opacity: 0.15;
}

.starburst::before,
.starburst::after {
  content: '';
  position: absolute;
  background: var(--slide-accent, var(--orange));
}

.sb1 {
  width: 200px;
  height: 200px;
  top: -60px;
  right: -60px;
  background: var(--slide-accent, var(--orange));
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0.2;
  animation: spinStar 20s linear infinite;
}

.sb2 {
  width: 120px;
  height: 120px;
  bottom: 80px;
  left: 60px;
  background: var(--slide-accent, var(--orange));
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0.15;
  animation: spinStar 15s linear infinite reverse;
}

.orbit-ring {
  position: absolute;
  width: 600px;
  height: 600px;
  border: 2px dashed var(--slide-accent, var(--orange));
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.08;
  animation: spinRing 40s linear infinite;
}

@keyframes spinStar {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spinRing {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.slide-content {
  position: absolute;
  z-index: 10;
  text-align: left;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: slideUpFade 1s ease-out forwards;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-title {
  font-family: 'Caveat', cursive;
  font-size: 74px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--slide-text, var(--cream));
}

.slide-subtitle {
  font-size: 20px;
  font-weight: 300;
  margin-bottom: 32px;
  opacity: 0.9;
  max-width: 100%;
  line-height: 1.4;
  color: var(--slide-text, var(--cream));
}

.slide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 43px;
  background: #d84343;
  color: var(--slide-text, var(--cream));
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.slide-btn:hover {
  background: transparent;
  border-color: var(--slide-accent, var(--orange));
  color: var(--slide-accent, var(--orange));
  transform: translateY(-2px);
}

/* Slider navigation removed */

/* ===== CATALOG ===== */
.catalog-section {
  position: relative;
  max-width: none;
  margin: 3px 0;
  padding: 60px 40px 80px;
  color: var(--cream);
  z-index: 1;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

/* The actual shaped background */
.catalog-section::before {
  content: '';
  position: absolute;
  inset: 0;
  /* background-image: url('../img/40c1a2967e6b899a479c4d18be71cf7e.jpg'); */
  /* filter: grayscale(0.2); */
  background-repeat: repeat;
  background-size: 500px;
  border-radius: 0;
  /* background: linear-gradient(to bottom, #F4EFE6 0%, #a0adda 100%); */
  z-index: -1;
}

/* Middle layer: above background, under content */
.catalog-bg-layer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  background-color: #F4EFE6;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.12), 0 4px 15px rgba(0, 0, 0, 0.08);
  z-index: 0;
  pointer-events: none;
}

.catalog-section .section-header {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  padding: 0;
  margin: 0 0 20px 0;

  text-align: center;
  z-index: 10;
  pointer-events: none;
}

.catalog-section .section-header h2.section-title {
  font-family: 'Screpka', cursive;
  font-size: 115px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  /* filter: drop-shadow(0 4px 2px rgba(0,0,0,0.3)); */
  margin: 0;
  display: inline-block;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
  justify-content: center;
  padding: 0px 40px 5px;
  max-width: 1200px;
  margin: 0 auto;
}

.filter-btn {
  font-family: var(--font-head);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 22px;
  border: none;
  color: var(--gray);
  background: transparent;
  transition: all 0.2s;
  border-radius: var(--radius);
  position: relative;
}

.filter-btn:hover,
.filter-btn.active {
  background: transparent;
  color: var(--gray);
  font-weight: 700;
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 22px;
  width: 0;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 6L5 1L10 6' stroke='%23D84343' stroke-width='2' fill='none'/%3E%3C/svg%3E") repeat-x;
  opacity: 0;
  transition: width 0.45s ease, opacity 0.2s;
  overflow: hidden;
}

.filter-btn:hover::after,
.filter-btn.active::after {
  opacity: 1;
  width: calc(100% - 44px);
}

.filter-btn.active {
  color: var(--gray);
  font-weight: 700;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px 21px;
  max-width: 1200px;
  margin: 0 auto;
  background: none;
  border: none;
  padding: 40px 20px;
}

.product-card {
  position: relative;
  background: white;
  padding: 6px;
  /* Reduced to save height */
  border: 1px solid #4a40608f;
  box-shadow: inset 2px 0 0 rgba(0, 0, 0, 0.08), inset -2px 0 0 rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  border-radius: 1px;
  /* Remove overflow:hidden to let backing show */
  will-change: transform;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  z-index: 10;
  transform: scale(1.05);
  box-shadow: 5px -5px 0 0 rgba(0, 0, 0, 0.25);
}

.card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.58rem;
  /* 10% smaller from 0.65rem */
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3.5px 11px;
  /* ~10% smaller from 4px 12px */
  border-radius: 10px;
  opacity: 0.9;
}

.card-img-wrap {
  aspect-ratio: 4 / 5;
  /* Shaved another ~6-8px */
  overflow: hidden;
  position: relative;
  border-radius: 1px;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-img-main {
  opacity: 1;
  transition: none;
}

.card-img-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

/* Mobile: show video fully without cropping */
@media (max-width: 900px) {
  .card-img-hover {
    object-fit: contain;
  }
}

.card-img-wrap video.card-img-hover {
  background: #000;
  opacity: 0;
  pointer-events: none;
}

/* Hover effects — desktop only */
@media (hover: hover) {
  .product-card:hover .card-img-hover {
    opacity: 1;
  }

  .product-card:hover .card-img-main {
    opacity: 0;
  }
}

/* Card overlay removed - replaced with image swap */
.card-overlay,
.card-overlay-text {
  display: none;
}

.card-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 4px 0px 0px;
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 2;
}

.card-tag {
  font-family: 'Comfortaa';
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 1px 0 0 0 rgba(0, 0, 0, 0.1), -1px 0 0 0 rgba(0, 0, 0, 0.1), 0 1px 0 0 rgba(0, 0, 0, 0.1), 0 -1px 0 0 rgba(0, 0, 0, 0.1);
}

.card-info {
  padding: 7px 5px 0px;
  /* Tightened by another ~4px */
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-cat {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 6px;
}

.card-name {
  font-family: var(--font-head);
  font-size: 13px;
  /* font-weight: 600; */
  text-transform: none;
  /* letter-spacing: 0.05em; */
  /* margin-bottom: 2px; */
  /* Tightened text */
  color: #4a230e;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  min-height: 36.4px; /* 2 lines * 13px * 1.4 line-height */
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
}

.card-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-rub {
  font-family: 'Caveat', cursive;
  font-size: 19px;
  font-weight: 700;
  color: var(--dark);
}

.price-kzt {
  font-family: 'Caveat', cursive;
  font-size: 0.85rem;
  color: var(--gray);
}

.product-card .price-kzt {
  display: none;
  /* Leave only one price in cards as requested */
}

.card-color-swatches {
  display: flex;
  gap: 4px;
  align-items: center;
}

.product-card .color-swatch {
  width: 16px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid #e5e5e5;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.product-card .color-swatch:hover {
  transform: scale(1.1);
}

.product-card.hidden {
  display: none;
}

/* ===== MARQUEE ===== */
.marquee-block {
  background: #fefefe;
  padding: 5px 0;
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  width: fit-content;
  animation: marquee-scroll 40s linear infinite;
}

.marquee-text {
  font-family: 'Hachi Maru Pop', cursive;
  font-size: 3.4rem;
  color: var(--orange);
  text-transform: lowercase;
  line-height: 1;
  white-space: nowrap;
  padding: 0;
  margin: 0;
  letter-spacing: 15px;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ===== IMAGE MARQUEE ===== */
.image-marquee {
  background: transparent;
  padding: 3px 0;
  overflow: hidden;
  position: relative;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
}

.image-track {
  display: flex;
  width: fit-content;
  animation: image-marquee-scroll 30s linear infinite;
  will-change: transform;
}

.image-track img {
  height: 120px;
  width: auto;
  flex-shrink: 0;
  margin: 0 10px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@keyframes image-marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-20%);
  }
}

/* ===== MISSION ===== */
.mission-section {
  background: #fffefc;
  color: var(--cream);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.mission-section::after {
  content: '';
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 300px;
  height: 300px;
  background-image: url('../img/cae0044e79aaccd73b1a7dc7fc72a52c.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom right;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.mission-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.mission-text {
  text-align: center;
  width: 100%;
}

.mission-text .section-title {
  font-family: 'Screpka', cursive;
  color: var(--gray);
}

.catalog-section .section-title {
  font-family: 'Screpka', cursive;
  color: var(--gray);
}

.mission-text .title-decor {
  color: var(--orange);
}

.mission-para {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 24px;
  color: #8b7e73;
  font-weight: 300;
}

.mission-images {
  width: 100%;
  max-width: 1200px;
  position: relative;
}

.mission-img-wrap {
  overflow: hidden;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
}

.mission-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.mission-img-wrap:hover img {
  transform: scale(1.04);
}

.mission-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--orange);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.mission-img-wrap:hover::after {
  opacity: 1;
}

/* ===== FEATURES BAR ===== */
.features-bar {
  width: 100%;
  background: #d74242;
  padding: 10px 0;
}

.features-bar-inner {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.feature-item {
  text-align: center;
}

.feature-subtitle {
  font-family: 'Caveat', cursive;
  font-style: italic;
  font-size: 20px;
  color: #f3ece5;
  margin-bottom: 4px;
}

.feature-text {
  font-family: 'Comfortaa', cursive;
  font-size: 13px;
  color: #f3ece5;
}

@media (max-width: 768px) {
  .features-bar-inner {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 90px;
    padding: 14px 20px;
    scroll-snap-type: none;
    -webkit-overflow-scrolling: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .features-bar-inner::-webkit-scrollbar {
    display: none;
  }

  .feature-item {
    position: absolute;
    inset: 14px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    text-align: center;
  }

  .feature-item.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* ===== FAQ ===== */
.faq-section {
  /* position: relative; */
  z-index: 1;
  background-color: var(--cream);
  background-image: url('../img/69bcac93f34ad4116853184f229749e4.jpg');
  background-repeat: repeat;
  background-size: 400px;
  padding-bottom: 80px;
  padding-top: 85px;
  /* box-shadow: 0 -8px 15px -5px #767574cf; */
}

.faq-section::before {
  content: "";
  position: absolute;
  top: -190px;
  left: 0;
  width: 100%;
  height: 347px;
  /* background-image: url('../img/71c3816dbd9f452bf1b1aa61009edc4e.png'); */
  background-repeat: repeat-x;
  background-size: 500px;
  z-index: -1;
  pointer-events: none;
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px;
}

.faq-item {
  border-bottom: 2px solid var(--dark);
}

.faq-item:first-child {
  border-top: 2px solid var(--dark);
}

.faq-question {
  width: 100%;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  background: none;
  border: none;
  color: var(--dark);
  cursor: pointer;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--orange);
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--orange);
  transition: transform 0.3s;
  flex-shrink: 0;
  line-height: 1;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 0.95rem;
  color: #4A4060;
  line-height: 1.75;
  font-family: 'Comfortaa', cursive;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #F4EFE6;
  color: var(--cream);
  padding: 0;
  position: relative;
}

.site-footer::before {
  content: '';
  display: block;
  width: 100%;
  height: var(--strip-h);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='3'%3E%3Crect width='8' height='3' rx='1.5' fill='%23D84343'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='3'%3E%3Crect width='8' height='3' rx='1.5' fill='%23D84343'/%3E%3C/svg%3E");
  background-size: 21px 2px;
  background-position: 0 1px, 0 6px;
  background-repeat: repeat-x;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 60px 50px;
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 2.8fr;
  gap: 60px;
}

.footer-right-group {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 12px;
}

.footer-logo-text {
  font-family: 'Hachi Maru Pop', cursive;
  font-size: 2.5rem;
  color: var(--orange);
  text-transform: lowercase;
  line-height: 1;
}

.footer-logo-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  color: var(--gray);
  font-style: italic;
  margin-top: 4px;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.footer-tagline {
  font-size: 0.9rem;
  color: #f2eee4;
  font-weight: 300;
  max-width: 280px;
}

.footer-heading {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--gray);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--orange);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  max-width: 170px;
}

.social-link {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  transition: all 0.2s;
  border-radius: var(--radius);
  overflow: visible;
  padding: 4px;
}

.social-link svg {
  width: 28px;
  height: 28px;
  overflow: visible;
}

.social-link:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255, 77, 0, 0.1);
}

.social-link--instagram:hover {
  border-color: #E1306C;
  color: #E1306C;
  background: rgba(225, 48, 108, 0.1);
}

.social-link--telegram:hover {
  border-color: #0088cc;
  color: #0088cc;
  background: rgba(0, 136, 204, 0.1);
}

.social-link--vk:hover {
  border-color: #0077FF;
  color: #0077FF;
  background: rgba(0, 119, 255, 0.1);
}

.social-link--youtube:hover {
  border-color: #FF0000;
  color: #FF0000;
  background: rgba(255, 0, 0, 0.1);
}

.social-link--whatsapp:hover {
  border-color: #25D366;
  color: #25D366;
  background: rgba(37, 211, 102, 0.1);
}

.footer-phone {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 0.05em;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-contacts-divider {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 15px;
}

.footer-contacts-divider::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gray) 20%, var(--gray) 80%, transparent);
  opacity: 0.5;
}

.footer-bottom {
  border-top: 1px solid var(--gray);
  padding: 20px 60px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray);
}

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 29, 51, 0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

#cartModalOverlay {
  justify-content: flex-end;
  padding: 0;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--cream);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
  scrollbar-width: thin;
}

@keyframes modalIn {
  from {
    transform: translateY(20px) scale(0.97);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--light-gray);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
  font-family: inherit;
}

.modal-close:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: rotate(90deg);
}

/* Product modal */
.product-modal {
  width: min(1080px, 100%);
}

.product-modal-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
}

.product-modal-img {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 90vh;
}

.product-modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-slider {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  max-height: calc(100% - 84px);
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.modal-slider-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.modal-slider-track img,
.modal-slider-track video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 2px;
}

.modal-slider-track img {
  cursor: zoom-in;
}

.modal-slider .slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #1C1433;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 0;
}

.modal-slider .slider-arrow.prev {
  left: 10px;
}

.modal-slider .slider-arrow.next {
  right: 10px;
}

.modal-thumbnails {
  display: flex;
  gap: 8px;
  padding: 12px 0 0;
  overflow-x: auto;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.modal-thumbnails::-webkit-scrollbar {
  height: 4px;
}

.modal-thumbnails::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 2px;
}

.modal-thumbnails::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

.modal-thumbnail {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  position: relative;
}

.modal-thumbnail img,
.modal-thumbnail video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-thumbnail:hover {
  border-color: rgba(216, 67, 67, 0.5);
}

.modal-thumbnail.active {
  border-color: var(--orange);
}

.modal-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--orange);
  color: white;
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 10px;
}

.product-modal-info {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 855px;
  overflow: hidden auto;
  will-change: transform;
  transform: translateZ(0);
  -webkit-overflow-scrolling: touch;
  contain: layout style paint;
}

#addToCartBtn {
  border-radius: 2px;
}

.modal-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.modal-tag {
  font-family: 'Comfortaa';
  font-size: 0.70rem;
  padding: 2px 6px;
  border-radius: 2px;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 1px 0 0 0 rgba(0, 0, 0, 0.1), -1px 0 0 0 rgba(0, 0, 0, 0.1), 0 1px 0 0 rgba(0, 0, 0, 0.1), 0 -1px 0 0 rgba(0, 0, 0, 0.1);
}

.modal-name {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 100;
  text-transform: none;
  letter-spacing: 0.04em;
  /* -webkit-text-stroke: 0.8px currentColor; */
}

.modal-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-price .price-rub {
  font-size: 25px;
}

.modal-desc {
  font-size: 0.9rem;
  color: #4A4060;
  line-height: 1.7;
  font-weight: 300;
  text-transform: none;
}

.modal-spoiler {
  border-bottom: 1px solid var(--light-gray);
}

.modal-spoiler:first-child {
  border-top: 1px solid var(--light-gray);
}

.modal-spoiler-toggle {
  width: 100%;
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  background: none;
  border: none;
  color: var(--dark);
  cursor: pointer;
  transition: color 0.2s;
}

.modal-spoiler-toggle:hover {
  color: var(--orange);
}

.modal-spoiler-icon {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--orange);
  transition: transform 0.3s;
  flex-shrink: 0;
  line-height: 1;
}

.modal-spoiler.open .modal-spoiler-icon {
  transform: rotate(45deg);
}

.modal-spoiler .modal-spoiler-content {
  max-height: 0 !important;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
}

.modal-spoiler.open .modal-spoiler-content {
  max-height: 400px !important;
  padding-bottom: 14px;
}

.modal-spoiler-text {
  font-size: 0.9rem;
  color: #8b7e74;
  line-height: 1.6;
  font-weight: 300;
}

/* Modal contact section */
.modal-contact-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--light-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.modal-contact-text {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #8b7e74;
  margin: 0;
}

.modal-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.modal-social-link {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  transition: all 0.2s;
  border-radius: var(--radius);
}

.modal-social-link:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255, 77, 0, 0.1);
}

.modal-social-link--telegram:hover {
  border-color: #0088cc;
  color: #0088cc;
  background: rgba(0, 136, 204, 0.1);
}

.modal-social-link--vk:hover {
  border-color: #0077FF;
  color: #0077FF;
  background: rgba(0, 119, 255, 0.1);
}

.modal-social-link--whatsapp:hover {
  border-color: #25D366;
  color: #25D366;
  background: rgba(37, 211, 102, 0.1);
}

.modal-option {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-label-wrap {
  display: flex;
  align-items: center;
  min-height: 0em;
  padding-top: 2px;
}

.option-label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  /* letter-spacing: 0.15em; */
  /* text-transform: uppercase; */
}

.option-label-suffix {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gray);
  text-transform: lowercase;
  display: inline-block;
  transition: margin-left 0.2s ease;
  padding-bottom: 3px;
}

.option-select {
  padding: 12px 14px;
  border: 1px solid var(--dark);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--dark);
  cursor: pointer;
  border-radius: var(--radius);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231C1433' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: flex-start;
  margin-top: 2px;
}

/* Разделитель между цветами в наличии и под заказ */
.color-divider {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent 0%, var(--gray) 20%, var(--gray) 80%, transparent 100%);
  margin: 0 4px;
  flex-shrink: 0;
}

.color-swatch {
  width: 32px;
  height: 48px;
  cursor: pointer;
  border: none;
  background: transparent;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  padding: 0;
}

.color-swatch:hover {
  transform: scale(1.1);
}

.color-swatch.selected {
  transform: scale(1.15);
}

.color-swatch.selected::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
}

/* SVG spool icon styling */
.color-swatch svg {
  width: 100%;
  height: 100%;
  display: block;
}

.selected-color-name {
  font-size: 13px;
  color: var(--gray);
  min-height: 1.2em;
}

/* Fullscreen Overlay */
.fullscreen-overlay {
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  cursor: default;
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.fullscreen-overlay.open {
  display: flex !important;
}

/* Zoom wrapper */
.fullscreen-image-wrapper {
  position: relative;
  width: 95vw;
  height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
}

.fullscreen-image-wrapper.zoomed {
  cursor: zoom-out;
}

.fullscreen-image-wrapper.is-panning {
  cursor: grabbing;
}

.fullscreen-overlay img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  background: white;
  border-radius: 4px;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.fullscreen-image-wrapper.zoomed img {
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  min-width: 100%;
  min-height: 100%;
}

.fullscreen-close {
  position: absolute;
  top: 30px;
  right: 30px;
  color: white;
  font-size: 32px;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: 0.2s;
  z-index: 10001;
}

.fullscreen-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Cart modal */
.cart-modal {
  width: min(500px, 100%);
  height: 100%;
  max-height: 100vh;
  margin: 0;
  border-radius: 0;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.cart-modal .btn {
  border-radius: 2px;
}

#cartModalOverlay.open .cart-modal {
  animation: cartSlideIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#cartModalOverlay.closing .cart-modal {
  animation: cartSlideOut 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes cartSlideIn {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes cartSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.modal-title {
  font-family: 'Screpka', cursive;
  font-size: 4rem;
  font-weight: 100;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  -webkit-text-stroke: 0.8px currentColor;
  text-align: center;
  padding: 0 45px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.cart-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 14px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--light-gray);
}

.cart-item-img {
  width: 60px;
  height: 72px;
  object-fit: cover;
}

.cart-item-name {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.cart-item-meta {
  font-size: 0.78rem;
  color: var(--gray);
  margin-bottom: 8px;
}

.cart-item-price {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--dark);
  background: none;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  border-radius: 2px;
}

.qty-btn:hover {
  background: var(--dark);
  color: var(--cream);
}

.qty-val {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.remove-item-btn {
  color: var(--gray);
  font-size: 0.9rem;
  padding: 4px;
  transition: color 0.2s;
}

.remove-item-btn:hover {
  color: var(--orange);
}

.cart-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 2;
}

.cart-empty-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.cart-empty-icon {
  height: 2.7em;
  width: auto;
}

.cart-footer {
  border-top: 2px solid var(--dark);
  padding-top: 20px;
}

.cart-total {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.cart-total strong {
  font-size: 1.3rem;
  color: var(--orange);
}

.cart-total-kzt {
  font-size: 0.85rem;
  color: var(--gray);
  margin-left: 8px;
  font-weight: 400;
  font-family: var(--font-body);
}

/* Order form */
.order-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.back-btn {
  position: absolute;
  top: 16px;
  left: 20px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.2s;
  z-index: 11;
  height: 36px;
  display: flex;
  align-items: center;
}

.back-btn:hover {
  color: var(--dark);
}

.order-form h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 2px solid var(--light-gray);
  background: white;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--dark);
  border-radius: 2px;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gray) 50%),
    linear-gradient(135deg, var(--gray) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.order-name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.order-name-grid input {
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
}

/* Checkout page layout */
.checkout-page main {
  padding-top: 90px;
}

.checkout-page .catalog-section {
  padding-top: 24px;
}

.checkout-page .order-form {
  max-width: 900px;
  margin: 0 auto;
}

.checkout-page #checkoutForm {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 22px 22px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(6px);
}

.checkout-page .order-summary-placeholder {
  margin-bottom: 4px;
}

@media (max-width: 800px) {
  .checkout-page #checkoutForm {
    padding: 18px 16px;
  }

  .checkout-page .order-name-grid {
    grid-template-columns: 1fr;
  }
}

.form-note {
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.5;
  font-style: italic;
}

.form-error {
  color: #CC1B1B;
  font-size: 0.85rem;
  min-height: 1em;
}

/* Success modal */
.success-modal {
  width: min(440px, 100%);
  padding: 60px 40px;
  text-align: center;
}

.success-star {
  font-size: 4rem;
  color: var(--orange);
  margin-bottom: 20px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.success-content h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.success-content p {
  color: var(--gray);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1000px) {
  .mission-section::after {
    display: none;
  }
}

@media (max-width: 900px) {
  #site-header {
    padding: 0 20px;
  }

  .header-nav {
    display: none;
  }

  .mission-inner {
    gap: 40px;
    padding: 0 30px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-modal-inner {
    grid-template-columns: 1fr;
  }

  .product-modal-img {
    aspect-ratio: 10/9;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    padding: 0 30px;
    padding-bottom: 40px;
  }
}

@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .category-filter {
    padding: 0 20px 36px;
  }

  .faq-list {
    padding: 0 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 20px 30px;
  }

  .footer-bottom {
    padding: 16px 20px;
  }

  .cart-modal {
    padding: 24px 20px;
  }

  .section-header {
    padding: 0px 20px 30px;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .slider-arrow--prev {
    left: 12px;
  }

  .slider-arrow--next {
    right: 12px;
  }

  /* Modal contact section mobile styles */
  .modal-contact-section {
    margin-top: 16px;
    padding-top: 16px;
    gap: 10px;
  }

  .modal-contact-text {
    font-size: 0.8rem;
  }

  .modal-social-links {
    gap: 10px;
  }

  .modal-social-link {
    width: 36px;
    height: 36px;
  }

  .modal-social-link svg {
    width: 18px;
    height: 18px;
  }
}

/* ===== STAGES OF WORK ===== */
.stages-section {
  display: none;
  /* Визуально скрыто по просьбе пользователя */
  padding: 0px 40px 150px;
  background: #2c1102d3;
  position: relative;
}


/* Ruler at top of stages section */
.stages-ruler {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  /* background: #2c1102d3; */
  z-index: 0;
  /* Create ruler markings: long lines for cm, medium for 5mm, short for mm */
  background-image:
    /* Major ticks (cm) - full height, every 100px */
    repeating-linear-gradient(to right,
      rgba(255, 255, 255, 0.6) 0px,
      rgba(255, 255, 255, 0.6) 2px,
      transparent 2px,
      transparent 100px),
    /* 5mm ticks - medium height */
    repeating-linear-gradient(to right,
      rgba(255, 255, 255, 0.4) 0px,
      rgba(255, 255, 255, 0.4) 1px,
      transparent 1px,
      transparent 50px),
    /* Minor ticks (mm) - short height, every 10px */
    repeating-linear-gradient(to right,
      rgba(255, 255, 255, 0.25) 0px,
      rgba(255, 255, 255, 0.25) 1px,
      transparent 1px,
      transparent 10px);
  background-size:
    100px 100%,
    50px 65%,
    10px 35%;
  background-position:
    0 0,
    0 0,
    0 0;
  background-repeat: repeat-x;
}

/* NEW: Styles for individual stage blocks */
.stages-list {
  max-width: 1200px;
  margin: 60px auto 100px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 80px;
  position: relative;
  z-index: 5;
}

.stage-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 2px dashed var(--cream);
  padding: 40px;
  border-radius: 5px;
}


.stage-block-header {
  display: flex;
  align-items: center;
  gap: 30px;
}

.stage-block .stages-ruler {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  height: 60px;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.stage-block .stages-ruler.ruler-step-1 {
  width: 102px;
}

.stage-block .stages-ruler.ruler-step-2 {
  width: 202px;
}

.stage-block .stages-ruler.ruler-step-3 {
  width: 302px;
}

.stage-block-title {
  font-family: 'Screpka', cursive;
  font-size: 3.5rem;
  color: #8B7E73;
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
}

.stage-block-content {
  width: 100%;
  max-width: 1200px;
  font-family: 'Comfortaa', cursive;
  font-size: 1.1rem;
  color: var(--cream);
  line-height: 1.8;
}



.stages-section .section-header {
  background: transparent;
  position: relative;
  z-index: 2;
  padding-top: 100px;
}


/* ===== STAGES TABS ===== */
.stages-tabs-container {
  max-width: 1020px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
}

.stages-intro {
  max-width: 700px;
  margin: 0 auto 30px;
  text-align: center;
  font-size: 1.05rem;
  color: var(--cream);
  line-height: 1.6;
}



/* ---- Tab Navigation (folder tabs) ---- */
.stages-tabs-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: stretch;
  padding: 30px 0;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  height: auto;
  width: 160px;
  margin-left: -15px;
  /* Overlap the content instead of right */
  order: 2;
  /* Move to the right side */
}

.stage-tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  /* Align text to right if desired, or keep left? Let's use flex-start to be close to the border, wait, if it's on the right, the anchor is left, so text should probably be flex-start */
  justify-content: center;
  gap: 6px;
  padding: 14px 16px 14px 10px;
  /* Swapped padding: more on the right or left? */
  border: 2px dashed #00000087;
  border-left: none;
  /* Stick to notebook on left side */
  border-radius: 0 12px 12px 0;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.25s ease;
  font-family: var(--font-head);
  color: var(--dark);
  position: relative;
  min-height: 80px;
  box-shadow: none;
  margin-bottom: 0;
}

/* Pastel colors per tab */
.stage-tab-btn:nth-child(1) {
  background-color: #CCD7D9;
}

.stage-tab-btn:nth-child(2) {
  background-color: #F4D892;
}

.stage-tab-btn:nth-child(3) {
  background-color: #CED8B2;
}

.stage-tab-btn:nth-child(4) {
  background-color: #F2B6A3;
}

.stage-tab-btn:nth-child(5) {
  background-color: #E89C73;
}

.stage-tab-btn:nth-child(6) {
  background-color: #000000;
  color: #fff;
}

.stage-tab-btn:hover {
  filter: brightness(1.07);
  transform: translateX(4px);
  /* pop to the right */
}

.stage-tab-btn.active {
  border-left: none !important;
  z-index: 3;
  min-height: 80px;
  filter: brightness(1.12);
  transform: translateX(0);
  box-shadow: none;
  margin-bottom: 0;
  width: calc(100% + 2px);
  margin-left: -2px;
  /* Pull left to ensure overlap if width increases */
}

/* Number badge */
.stage-tab-num {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.45;
  line-height: 1;
  font-family: var(--font-head);
  background: none;
  box-shadow: none;
  width: auto;
  height: auto;
  border-radius: 0;
  color: inherit;
}

.stage-tab-btn:nth-child(6) .stage-tab-num {
  color: rgba(255, 255, 255, 0.6);
}

.stage-tab-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: left;
  line-height: 1.3;
  color: inherit;
}

.stages-tabs-content {
  background-image: url(../img/pnpn.png);
  background-size: 100% 100%;
  background-position: center;
  flex: 1;
  order: 1;
  border: none;
  border-radius: 0;
  position: relative;
  z-index: 1;
  margin-top: 0;
}

.stages-inner-bg {
  position: absolute;
  top: 22px;
  bottom: 19px;
  left: 80px;
  right: 12px;
  border-radius: 0px;
  z-index: -1;
  transition: background-color 0.4s ease;
  opacity: 0.85;
  mask-image: linear-gradient(to right, transparent, black);
  -webkit-mask-image: linear-gradient(to right, transparent, black);
}

.stage-tab-panel {
  display: none;
  animation: stageFadeIn 0.35s ease-out;
  padding: 51px 44px 47px 100px;
  align-items: center;
  gap: 56px;
}

.stage-tab-panel.active {
  display: flex;
}

@keyframes stageFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Large ghost number */
.stage-panel-number {
  flex-shrink: 0;
  font-family: var(--font-head);
  font-size: 7rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--dark);
  opacity: 0.06;
  user-select: none;
  pointer-events: none;
}

.stage-panel-body {
  flex: 1;
}

.stage-panel-title {
  font-family: 'Caveat', cursive;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 18px;
  letter-spacing: 0.06em;
  line-height: 1.15;
  -webkit-text-stroke: 0.6px currentColor;
}

.stage-panel-desc {
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
  max-width: 560px;
  font-weight: 300;
  font-family: var(--font-head);
}

/* ---- Responsive ---- */
@media (max-width: 700px) {
  .stages-section {
    padding: 60px 20px 80px;
  }

  .stages-tabs-container {
    flex-direction: column;
  }

  .stages-tabs-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    width: 100%;
    padding: 0;
    margin-right: 0;
    margin-bottom: -2px;
    /* Overlap top border of content */
  }

  .stage-tab-btn {
    flex: 1 1 44%;
    min-width: 44%;
    min-height: 58px;
    padding: 10px 8px 12px;
    border-radius: 8px 8px 0 0;
    border-right: 2px dashed #00000087;
    border-bottom: none;
  }

  .stage-tab-btn:hover {
    transform: translateY(-2px);
  }

  .stage-tab-btn.active {
    border-bottom: none !important;
    min-height: 64px;
    transform: translateY(0);
    width: auto;
  }

  .stage-tab-panel {
    padding: 32px 24px;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .stage-panel-number {
    font-size: 4.5rem;
    opacity: 0.05;
  }

  .stage-panel-title {
    font-size: 1.3rem;
  }
}

/* ===== SIZE SELECTOR BUTTONS ===== */
.size-chart-link-wrap {
  margin-bottom: 0px;
  text-align: right;
}

.size-chart-link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--gray);
  text-decoration: underline;
  text-decoration-style: solid;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.size-chart-link:hover {
  color: var(--dark);
}

.size-selector,
.height-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.size-btn,
.height-btn {
  min-width: 35px;
  height: 35px;
  padding: 0 5px;
  border: 2px solid var(--light-gray);
  background: white;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.size-btn:hover:not(:disabled),
.height-btn:hover {
  border-color: var(--gray);
}

.size-btn.selected,
.height-btn.selected {
  border-color: var(--dark);
  background: var(--dark);
  color: white;
}

.size-btn.unavailable {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--light-gray);
}

.size-btn.is-order::after,
.height-btn.is-order::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
}

/* ===== IN STOCK INFO ===== */
.in-stock-info .option-label {
  color: var(--teal);
}

.in-stock-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.in-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #e0f7f5;
  border: 1px solid var(--teal);
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--dark);
}

.in-stock-badge strong {
  color: var(--teal);
  font-weight: 700;
}

/* ===== SIZE CHART MODAL ===== */
.size-chart-modal {
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
}

.size-chart-modal .modal-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  color: var(--dark);
}

.size-chart-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.size-chart-before,
.size-chart-after {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--gray);
}

.size-chart-tip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background-color: rgba(139, 115, 85, 0.12);
  border-radius: 8px;
  width: 100%;
}

.size-chart-tip__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--gray);
  margin-top: 2px;
}

.size-chart-tip__content {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--dark);
}

.size-chart-tip__content p {
  margin: 0 0 8px 0;
}

.size-chart-tip__content ul {
  margin: 0;
  padding-left: 18px;
}

.size-chart-tip__content li {
  margin-bottom: 4px;
}

.size-chart-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
}

.size-chart-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.size-chart-table th {
  background: var(--dark);
  color: var(--cream);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 16px;
  text-align: left;
  white-space: nowrap;
}

.size-chart-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--light-gray);
  color: var(--dark);
}

.size-chart-table tr:last-child td {
  border-bottom: none;
}

.size-chart-table tbody tr:hover {
  background: rgba(0, 180, 171, 0.05);
}

.size-chart-table td:first-child,
.size-chart-table th:first-child {
  font-weight: 700;
}

@media (max-width: 600px) {
  .size-chart-modal {
    padding: 24px 16px;
    max-height: 85vh;
  }

  .size-chart-table th,
  .size-chart-table td {
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  .size-btn,
  .height-btn {
    min-width: 44px;
    height: 36px;
    padding: 0 12px;
    font-size: 0.8rem;
  }
}

/* Model info text in modal */
.modal-model-info {
  font-family: 'Comfortaa', cursive;
  font-size: 0.8rem;
  color: #8B7E74;
  margin: 8px 0;
  line-height: 1.4;
}

/* Production time in modal */
.modal-production-time {
  font-family: 'Comfortaa', cursive;
  font-size: 0.8rem;
  color: #8B7E74;
  margin: 12px 0 8px;
  line-height: 1.4;
  text-align: center;
}

/* ===== ORDER FORM — SOCIAL CONTACT ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.order-summary-placeholder {
  min-height: 60px;
  background: rgba(0,0,0,0.03);
  border: 1.5px dashed var(--light-gray);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.order-summary-spoiler {
  width: 100%;
}

.order-summary-spoiler summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}

.order-summary-spoiler summary::-webkit-details-marker {
  display: none;
}

.order-summary-spoiler[open] summary {
  color: var(--dark);
}

.contact-method-label {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}

.contact-method-hint {
  font-size: 0.82rem;
  color: var(--gray);
  margin-bottom: 10px;
  line-height: 1.4;
}

.contact-method-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.contact-method-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 4px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: var(--gray);
}

.contact-method-card:hover {
  transform: translateY(-2px);
  border-color: var(--gray);
}

.contact-method-card .contact-method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease, transform 0.25s ease;
}

.contact-method-card .contact-method-name {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  transition: color 0.2s;
}

/* Active states per network */
.contact-method-card:has(input:checked) {
  border-color: currentColor;
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Telegram active */
.contact-method-card:has(input[value="telegram"]:checked) {
  color: #0088cc;
  border-color: #0088cc;
  background: rgba(0, 136, 204, 0.06);
}

/* WhatsApp active */
.contact-method-card:has(input[value="whatsapp"]:checked) {
  color: #25D366;
  border-color: #25D366;
  background: rgba(37, 211, 102, 0.06);
}

/* VK active */
.contact-method-card:has(input[value="vk"]:checked) {
  color: #0077FF;
  border-color: #0077FF;
  background: rgba(0, 119, 255, 0.06);
}

/* Instagram active */
.contact-method-card:has(input[value="instagram"]:checked) {
  color: #E1306C;
  border-color: #E1306C;
  background: rgba(225, 48, 108, 0.06);
}

/* MAX active */
.contact-method-card:has(input[value="max"]:checked) {
  color: #7A3EF0;
  border-color: #7A3EF0;
  background: rgba(122, 62, 240, 0.06);
}

/* Dim non-selected cards */
.contact-method-grid:has(input:checked) .contact-method-card:not(:has(input:checked)) {
  opacity: 0.45;
  transform: scale(0.96);
}

.contact-input-wrap input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--light-gray);
  background: white;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--dark);
  border-radius: 2px;
  transition: border-color 0.2s;
}

.contact-input-wrap input:focus {
  outline: none;
  border-color: var(--teal);
}

@media (max-width: 600px) {
  .contact-method-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .contact-method-card {
    padding: 10px 4px;
  }

  .order-summary-placeholder {
    min-height: 48px;
    font-size: 0.75rem;
  }

  .order-name-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
/* ===================================================
   MOBILE FIX — полный патч адаптивности
   =================================================== */

/* ===== МОБИЛЬНЫЙ ХЕДЕР — БУРГЕР МЕНЮ ===== */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
  transition: background 0.2s;
  z-index: 1100;
  flex-shrink: 0;
}

.burger-btn:hover {
  background: rgba(216, 67, 67, 0.08);
}

.burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--header-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

.burger-btn.open .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-btn.open .burger-line:nth-child(2) {
  opacity: 0;
  width: 0;
}

.burger-btn.open .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Мобильное выпадающее меню */
.mobile-nav {
  display: none;
  position: fixed;
  top: calc(var(--header-h) + var(--strip-h));
  left: 0;
  right: 0;
  background: var(--header-bg);
  z-index: 999;
  flex-direction: column;
  padding: 8px 0 16px;
  border-bottom: 3px solid var(--orange);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.mobile-nav a {
  display: block;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--header-text);
  padding: 13px 24px;
  border-bottom: 1px solid rgba(216,67,67,0.1);
  transition: background 0.2s, color 0.2s;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: var(--orange);
  color: var(--cream);
}

/* ===== REPAIR PAGE — SERVICES LIST ===== */
.services-list {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

.service-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0px;
  padding: 32px 0 0;
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--gray);
  text-align: center;
}

.service-cta-text {
  color: var(--gray);
}

.service-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1.5px solid var(--gray);
  border-radius: var(--radius);
  color: var(--gray);
  text-decoration: none;
  transition: all 0.2s;
  transform: scale(0.9);
  transform-origin: center;
}

.service-cta__btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.service-cta__btn:hover {
  color: #25D366;
  border-color: #25D366;
  background: rgba(37, 211, 102, 0.1);
}

/* Услуга-спойлер: переопределяем faq-question под layout [название] [цена] [+] */
.services-list .service-spoiler {
  border-bottom: 1px solid var(--dark);
}

.services-list .service-spoiler:first-child {
  border-top: none;
}

.service-spoiler-q {
  width: 100%;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  background: none;
  border: none;
  color: var(--dark);
  cursor: pointer;
  transition: color 0.2s;
}

.service-spoiler-q:hover {
  color: var(--orange);
}

.service-spoiler-name {
  flex: 1 1 auto;
  text-align: left;
}

.service-spoiler-price {
  flex: 0 0 auto;
  white-space: nowrap;
  color: var(--orange);
  margin-right: 12px;
  font-weight: 600;
}

/* Под-услуги внутри спойлера */
.subservice-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 0 14px 24px;
  border-bottom: none;
  border-top: none;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gray);
  transition: color 0.2s;
}

.subservice-row:hover {
  color: var(--orange);
}

.subservice-row .service-name {
  flex: 1 1 auto;
  color: var(--gray);
}

.subservice-row .service-price {
  flex: 0 0 auto;
  white-space: nowrap;
  display: block;
  flex-direction: row;
  color: var(--gray);
}

/* Контейнер под-услуг внутри ответа */
.service-spoiler .faq-answer {
  padding: 0 0 8px 0;
}

/* Увеличенный max-height для раскрытия (под-услуги могут быть длинными) */
.service-spoiler.open .faq-answer {
  max-height: 1500px;
}

.service-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  /* border-bottom: 2px solid var(--dark); */
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  color: var(--dark);
  transition: color 0.2s;
}


.service-row:hover {
  color: var(--orange);
}

.service-name {
  flex: 1 1 auto;
}

.service-price {
  flex: 0 0 auto;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.service-price .price-kzt {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--gray);
}

/* ===== REPAIR PAGE — EXAMPLES GRID ===== */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.example-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  background: var(--cream);
}

.example-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.example-card:hover img {
  transform: scale(1.05);
}

.example-card-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 14px 12px;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  pointer-events: none;
}

/* ===== REPAIR PAGE — RESPONSIVE ===== */
@media (max-width: 1100px) {
  .examples-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .examples-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-list {
    padding: 0 20px;
  }

  .service-row {
    font-size: 0.9rem;
    padding: 18px 0;
  }

  #examples .examples-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 0 20px;
    scrollbar-width: none;
  }

  #examples .examples-grid::-webkit-scrollbar {
    display: none;
  }

  #examples .example-card {
    flex: 0 0 78%;
    width: 78%;
    scroll-snap-align: center;
  }

  #examples .section-title {
    font-size: clamp(3rem, 10vw, 5rem);
  }
}

@media (max-width: 480px) {
  .service-row {
    font-size: 0.85rem;
    padding: 16px 0;
    gap: 12px;
  }

  .service-price .price-kzt {
    font-size: 0.75rem;
  }
}

/* Кнопка корзины в мобиле */
.mobile-cart-btn {
  display: none;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--header-text);
  background: none;
  border: 1.5px solid var(--header-text);
  border-radius: var(--radius);
  padding: 7px 12px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.mobile-cart-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--cream);
}

/* ===== BREAKPOINT 900px ===== */
@media (max-width: 900px) {

  :root {
    --header-h: 64px;
    --strip-h: 6px;
  }

  body {
    padding-top: calc(var(--header-h) + var(--strip-h));
  }

  /* Хедер — скрываем десктопный layout, показываем мобильный */
  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 0 16px;
    align-items: center;
  }

  /* Скрываем обе nav-панели */
  .header-nav--left,
  .header-nav--right,
  .header-nav-right-wrap,
  .header-contacts {
    display: none !important;
  }

  /* Скрываем десктопную корзину */
  .header-right {
    display: none;
  }

  /* Логотип — убираем выпирающий кружок, делаем горизонтальный */
  .logo {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    width: auto;
    height: auto;
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 2;
  }

  .logo-inner {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 0;
  }

  .logo-text {
    font-size: 1.8rem;
    color: var(--orange);
  }

  .logo-subtitle {
    font-size: 0.6rem;
    color: var(--gray);
    margin-top: 0;
  }

  /* Показываем мобильную корзину и бургер */
  .mobile-cart-btn {
    display: flex;
    grid-column: 3;
    align-self: center;
  }

  .burger-btn {
    display: flex;
    grid-column: 1;
    align-self: center;
  }

  /* Показываем мобильное меню (но управляется JS) */
  .mobile-nav {
    display: flex;
  }

  /* Баннер — убираем отрицательный margin (был -30px для перекрытия логотипа) */
  .banner-section {
    margin-top: 0;
    height: 55vw;
    min-height: 260px;
    max-height: 480px;
  }

  .slide-content {
    padding: 40px 30px;
  }

  .slide-title {
    font-size: 48px;
    margin-bottom: 14px;
  }

  .slide-subtitle {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .slide-btn {
    width: 160px;
    height: 40px;
    font-size: 11px;
  }

  /* Каталог */
  .catalog-section {
    padding: 30px 16px 50px;
  }

  .catalog-section .section-header h2.section-title {
    font-size: clamp(2.5rem, 12vw, 5rem);
  }

  .catalog-section .section-header {
    margin-bottom: 8px;
  }

  .category-filter {
    padding: 0 0 16px;
    gap: 4px;
  }

  .filter-btn {
    font-size: 0.78rem;
    padding: 8px 14px;
    letter-spacing: 0.06em;
  }

  .filter-btn::after {
    left: 14px;
  }

  .filter-btn:hover::after,
  .filter-btn.active::after {
    width: calc(100% - 28px);
  }

  /* Грид карточек — 1 колонка на всю ширину */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px 0;
    padding: 20px 0;
  }

  /* Карточки — убираем hover scale на мобиле (нет hover) */
  .product-card:hover {
    transform: none;
    box-shadow: inset 2px 0 0 rgba(0,0,0,0.08), inset -2px 0 0 rgba(0,0,0,0.08);
  }

  .product-card:active {
    transform: scale(0.97);
  }

  /* Отступы карточки */
  .card-info {
    padding: 6px 4px 2px;
  }

  .card-name {
    font-size: 12px;
  }

  .price-rub {
    font-size: 16px;
  }

  /* Модальное окно — product modal вертикально */
  .product-modal {
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
    margin: 0;
    overflow: hidden;
  }

  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .product-modal-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .product-modal-img {
    flex-shrink: 0;
    width: 100%;
    max-height: none;
    aspect-ratio: auto;
    position: relative;
  }

  .modal-slider {
    max-height: none;
    height: auto;
    aspect-ratio: 4/5;
    width: 100%;
  }

  .modal-slider-track {
    height: 100%;
  }

  .modal-slider-track img,
  .modal-slider-track video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--cream);
  }

  .modal-thumbnails {
    padding: 12px 16px;
    justify-content: center;
    background: var(--cream);
    border-bottom: 1px solid var(--light-gray);
  }

  .product-modal-info {
    padding: 20px 16px 32px;
    max-height: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* Фикс: убираем absolute позиционирование у цветов и размеров */
  .modal-option {
    position: static;
    margin-bottom: 8px;
  }

  .option-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
  }

  .color-swatches {
    margin-top: 0;
    gap: 8px;
  }

  /* Фикс: нормальное поведение спойлеров */
  .modal-spoiler {
    position: relative;
  }

  .modal-spoiler .modal-spoiler-content {
    max-height: 0 !important;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .modal-spoiler.open .modal-spoiler-content {
    max-height: 500px !important;
    padding-bottom: 16px;
  }

  .modal-name {
    font-size: 17px;
  }

  .modal-price .price-rub {
    font-size: 21px;
  }

  /* Корзина — полный экран */
  .cart-modal {
    width: 100%;
    padding: 20px 16px;
  }

  .modal-title {
    font-size: 2.5rem;
    padding: 0 36px;
  }

  /* Миссия */
  .mission-section {
    padding: 60px 0;
  }

  .mission-inner {
    padding: 0 16px;
    gap: 24px;
  }

  .mission-para {
    font-size: 0.95rem;
  }

  /* FAQ */
  .faq-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .faq-list {
    padding: 0 16px;
  }

  .faq-question {
    font-size: 0.9rem;
    padding: 18px 0;
  }

  /* Footer */
  .footer-inner {
    padding: 40px 16px 32px;
    gap: 24px;
  }

  .footer-bottom {
    padding: 16px;
  }

  /* Marquee images */
  .image-track img {
    height: 80px;
  }
}

/* ===== BREAKPOINT 480px — очень маленькие ===== */
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px 0;
  }

  .catalog-section {
    padding: 20px 10px 40px;
  }

  .card-name {
    font-size: 11px;
  }

  .card-tag {
    font-size: 9px;
  }

  .price-rub {
    font-size: 15px;
  }

  .filter-btn {
    font-size: 0.72rem;
    padding: 7px 10px;
  }

  .filter-btn::after {
    left: 10px;
  }

  .filter-btn:hover::after,
  .filter-btn.active::after {
    width: calc(100% - 20px);
  }

  .banner-section {
    height: 60vw;
    min-height: 320px;
  }

  .slide-content {
    padding: 30px 20px;
  }

  .slide-title {
    font-size: 32px;
    line-height: 1.1;
    margin-bottom: 12px;
  }

  .slide-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .slide-btn {
    width: 140px;
    height: 36px;
    font-size: 10px;
  }

  /* Таблица размеров — мобиль */
  .size-chart-modal {
    padding: 20px 12px;
  }

  /* Модал — полноэкранный снизу */
  .modal-overlay {
    align-items: flex-end;
  }

  .product-modal {
    border-radius: 16px 16px 0 0;
    height: 96dvh;
    max-height: 96dvh;
    overflow: hidden;
  }

  .product-modal-inner {
    max-height: 96dvh;
  }

  .product-modal-img {
    aspect-ratio: auto;
    max-height: none;
  }

  .modal-slider {
    aspect-ratio: 10/9;
    max-height: 48vh;
  }

  .product-modal-info {
    padding: 16px 12px 24px;
  }

  .modal-name {
    font-size: 16px;
  }

  .modal-price .price-rub {
    font-size: 19px;
  }

  .modal-thumbnails {
    padding: 8px 12px;
  }

  .modal-thumbnail {
    width: 48px;
    height: 48px;
  }

  .color-swatch {
    width: 28px;
    height: 42px;
  }

  .size-btn,
  .height-btn {
    min-width: 40px;
    height: 34px;
    font-size: 0.8rem;
  }
}

/* ===== BREAKPOINT 320px — самые маленькие экраны ===== */
@media (max-width: 320px) {
  .product-modal-info {
    padding: 12px 10px 20px;
    gap: 8px;
  }

  .modal-name {
    font-size: 15px;
  }

  .modal-price .price-rub {
    font-size: 17px;
  }

  .option-label {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }

  .color-swatch {
    width: 24px;
    height: 36px;
  }

  .size-btn,
  .height-btn {
    min-width: 36px;
    height: 32px;
    font-size: 0.75rem;
    padding: 0 4px;
  }

  .modal-thumbnails {
    padding: 6px 10px;
    gap: 6px;
  }

  .modal-thumbnail {
    width: 40px;
    height: 40px;
  }

  .modal-spoiler-toggle {
    font-size: 0.8rem;
    padding: 10px 0;
  }

  .btn--primary {
    padding: 12px 20px;
    font-size: 0.75rem;
  }
}

/* ===== Overlay body lock при открытом мобильном меню ===== */
body.menu-open {
  overflow: hidden;
}

/* ===== FLOATING RECORD BUTTON ===== */
.record-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  z-index: 9999;
  opacity: .8;
  transition: opacity .3s ease;
}

.record-fab:hover {
  opacity: 1;
}

.record-fab__text {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: .8;
  transition: opacity .3s ease;
}

.record-fab:hover .record-fab__text {
  opacity: 1;
}

.record-fab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--orange);
  z-index: -1;
  animation: record-fab-pulse 2.5s ease-out infinite;
}

@keyframes record-fab-pulse {
  0% {
    transform: scale(1);
    opacity: .8;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .record-fab {
    width: 90px;
    height: 90px;
    right: 12px;
    bottom: 12px;
  }

  .record-fab__text {
    font-size: 10px;
  }
}

/* ===== REPAIR PAGE MOBILE HEADER ===== */
@media (max-width: 900px) {
  .repair-page .header-inner {
    grid-template-columns: auto 1fr;
    gap: 0 12px;
  }

  .repair-page .logo {
    justify-self: start;
    margin-left: 12px;
  }

  .repair-page .header-contacts {
    display: flex !important;
    right: 16px;
    font-size: 0.7rem;
    text-align: right;
    z-index: 1002;
  }

  .repair-page .header-contacts-address {
    font-size: 0.6rem;
    opacity: 0.9;
  }

  .repair-page .header-contacts-phone svg {
    width: 14px;
    height: 14px;
    margin-left: 4px;
  }
}


/* ===== SEO: visually hidden H1 ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

