/* ===== Variables ===== */
:root {
  --bg: #050505;
  --bg-secondary: #0d0d0d;
  --bg-card: #141414;
  --text: #f5f5f5;
  --text-muted: #777777;
  --accent: #ff2d2d;
  --accent-hover: #ff4d4d;
  --border: #1f1f1f;
  --sale: #ff2d2d;
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-catalog: var(--font-body);
  --header-height: 72px;
  --font-nav: var(--font-display);
  --header-red: #8a3838;
  --header-red-light: #a84848;
  --header-red-muted: rgba(138, 56, 56, 0.78);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: var(--transition);
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-outline {
  border: 1px solid var(--text);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--text);
  color: var(--bg);
}

.btn-full {
  width: 100%;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  color: var(--header-red-light);
}

.header-top {
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 8px 24px;
  flex-wrap: wrap;
}

.header-phone,
.header-email {
  transition: color var(--transition);
}

.header-phone:hover,
.header-email:hover {
  color: var(--accent);
}

.lang-switch .active {
  color: var(--text);
}

.lang-switch a {
  color: var(--text-muted);
}

.header-main-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: var(--header-height);
}

.nav {
  justify-self: center;
  width: max-content;
  max-width: 100%;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: clamp(20px, 2.4vw, 36px);
  justify-content: center;
  flex-wrap: wrap;
}

.nav-list a {
  font-family: var(--font-nav);
  font-size: clamp(13px, 1.15vw, 16px);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--header-red-muted);
  transition: color var(--transition);
  position: relative;
  cursor: pointer;
  padding: 4px 2px;
  white-space: nowrap;
}

.logo {
  justify-self: start;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.logo-img--footer {
  height: 88px;
  margin-bottom: 0;
}

.header-tagline {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-link-sale {
  color: var(--header-red-light);
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--header-red-light);
  transition: width var(--transition);
}

.nav-list a:hover {
  color: var(--header-red-light);
}

.nav-list a:hover::after {
  width: 100%;
}

.nav-item {
  position: relative;
}

.nav-item--has-sub > a::after {
  display: none;
}

.nav-item--has-sub::before {
  content: '';
  position: absolute;
  left: -12px;
  right: -12px;
  top: 100%;
  height: 18px;
}

.nav-sub {
  list-style: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  padding: 8px 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  z-index: 200;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.nav-sub a {
  display: block;
  padding: 10px 18px;
  font-family: var(--font-nav);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-sub a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-sub a::after {
  display: none;
}

.nav-item--has-sub:hover .nav-sub,
.nav-item--has-sub:focus-within .nav-sub,
.nav-item--has-sub.sub-open .nav-sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0.04s;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-self: end;
}

.header-info {
  position: relative;
}

.info-btn[aria-expanded="true"] {
  color: var(--header-red-light);
}

.info-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  padding: 8px 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  z-index: 220;
}

.info-menu-label {
  padding: 8px 16px 10px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.info-menu-link {
  display: block;
  padding: 11px 16px;
  font-size: 13px;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}

.info-menu-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--header-red-light);
}

.info-menu-link--external {
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 14px;
  color: var(--header-red-muted);
}

.info-menu-link--external:hover {
  color: var(--header-red-light);
}

.header .icon-btn {
  color: var(--header-red-light);
}

.header .icon-btn:hover {
  color: var(--header-red-light);
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: color var(--transition);
}

.icon-btn:hover {
  color: var(--accent);
}

.social-icon svg,
.social-link svg {
  width: 20px;
  height: 20px;
  display: block;
}

.social-icon--vk svg,
.social-link--vk svg {
  width: 20px;
  height: 20px;
}

.vk-icon-bg {
  fill: currentColor;
}

.vk-icon-mark {
  fill: var(--bg);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-link {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: var(--transition);
  flex-shrink: 0;
}

.social-link svg {
  width: 20px;
  height: 20px;
  display: block;
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cart-count {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--accent);
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.header .menu-toggle span {
  background: var(--header-red-light);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 85vh;
  min-height: 560px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, #1a1a1a 0%, var(--bg) 70%);
}

.hero-slide[data-slide="1"] .hero-bg {
  background: radial-gradient(circle at 35% 45%, #1a1a1a 0%, var(--bg) 72%);
}

.hero-slide[data-slide="2"] .hero-bg {
  background: radial-gradient(circle at 65% 45%, #1a1a1a 0%, var(--bg) 72%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 45, 45, 0.12) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: none;
  padding: 0 24px;
}

.hero-tag {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
  max-width: 900px;
}

.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-logo {
  width: min(440px, 72vw);
  height: auto;
  margin-bottom: 28px;
}

.section-seo-text,
.catalog-group-seo {
  margin: -4px 0 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 640px;
}

.catalog-group-seo {
  margin-top: 6px;
}

.hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

.hero-dot {
  width: 40px;
  height: 2px;
  background: rgba(255,255,255,0.3);
  transition: var(--transition);
}

.hero-dot.active {
  background: var(--accent);
  width: 60px;
}

/* ===== Banners ===== */
.banners {
  padding: 60px 0;
}

.banners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.banner-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  group: banner;
}

.banner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.banner-card:hover img {
  transform: scale(1.08);
}

.banner-card-content {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.banner-card-content span {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.banner-card-content strong {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.08em;
}

/* ===== Products / Catalog ===== */
.category-section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.clothing-group {
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.clothing-group-head {
  padding: 56px 0 8px;
}

.catalog-group-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.05;
}

.category-section--clothing {
  padding: 40px 0 48px;
  border-top: 1px solid var(--border);
}

.category-section--clothing .section-title {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 500;
  letter-spacing: 0.1em;
}

.section-label {
  display: block;
  font-family: var(--font-catalog);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.category-section--sale {
  background: var(--bg-secondary);
}

.category-section--outlet {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.products,
.sale-section {
  padding: 56px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}

.section-link {
  font-family: var(--font-catalog);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
  white-space: nowrap;
}

.section-link:hover {
  color: var(--accent);
}

.sale-badge {
  background: var(--sale);
  color: white;
  font-family: var(--font-catalog);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  white-space: nowrap;
}

.outlet-badge {
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-catalog);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  white-space: nowrap;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 20px;
  align-items: stretch;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  cursor: pointer;
}

.product-media {
  position: relative;
  margin-bottom: 14px;
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-card);
  margin-bottom: 0;
}

.product-image-wrap.img-portrait {
  aspect-ratio: 3/4;
}

.product-image-wrap.img-landscape {
  aspect-ratio: 4/3;
}

.product-image-wrap.img-square {
  aspect-ratio: 1/1;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-catalog);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
}

.product-badge.sale {
  background: var(--sale);
  color: white;
}

.product-quick {
  padding: 12px 0 0;
  margin-top: 12px;
  border-top: 1px solid var(--border);
}

.product-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 70px;
  align-content: flex-start;
  margin-bottom: 10px;
}

.size-btn {
  min-width: 36px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--border);
  background: transparent;
  font-family: var(--font-catalog);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-sizing: border-box;
}

.size-btn:hover:not(.disabled) {
  border-color: var(--text);
}

.size-btn.selected {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.size-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
}

.add-to-cart {
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  background: var(--text);
  color: var(--bg);
  border: none;
  font-family: var(--font-catalog);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-sizing: border-box;
}

.add-to-cart:hover:not(.added) {
  background: var(--accent);
}

.add-to-cart.added {
  background: var(--accent);
  pointer-events: none;
}

/* ===== Product page ===== */
.product-page-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 250;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.product-page-overlay.active {
  opacity: 1;
  visibility: visible;
}

.product-page {
  position: fixed;
  inset: 0;
  z-index: 260;
  overflow-y: auto;
  background: var(--bg);
  transform: translateY(24px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.product-page.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.product-page-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 88px 24px 48px;
}

.product-page-close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 270;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: rgba(5, 5, 5, 0.92);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.product-page-close:hover {
  border-color: var(--header-red-light);
  color: var(--header-red-light);
}

.product-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.product-page-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-page-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-page-thumb {
  width: 72px;
  height: 96px;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition);
}

.product-page-thumb.active {
  border-color: var(--header-red-light);
}

.product-page-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-page-image {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--bg-card);
  overflow: hidden;
}

.product-page-image.img-portrait {
  aspect-ratio: 3/4;
}

.product-page-image.img-landscape {
  aspect-ratio: 4/3;
}

.product-page-image.img-square {
  aspect-ratio: 1/1;
}

.product-page-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-page-badge {
  position: absolute;
  top: 16px;
  left: 16px;
}

.product-page-category {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--header-red-muted);
  margin-bottom: 12px;
}

.product-page-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 16px;
}

.product-page-price {
  font-family: var(--font-catalog);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
}

.product-page-price .old {
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 10px;
  font-size: 18px;
}

.product-page-price .new {
  color: var(--accent);
}

.product-page-description {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 28px;
  white-space: pre-line;
}

.product-page-sizes {
  margin-bottom: 16px;
}

.product-page-sizes .product-sizes {
  min-height: 0;
  margin-bottom: 0;
}

.product-page-sizes-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.product-page-add {
  width: 100%;
  max-width: 360px;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.product-info h3 {
  font-family: var(--font-catalog);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  min-height: 2.9em;
  margin: 0;
}

.product-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-catalog);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-top: auto;
}

.product-price .old {
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
  font-size: 13px;
}

.product-price .new {
  color: var(--sale);
}

/* ===== About ===== */
.about {
  padding: 100px 0;
  background: var(--bg-secondary);
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
  font-weight: 600;
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin: 16px 0 24px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 15px;
}

.about-founded {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-top: 8px;
}

.about-text .btn {
  margin-top: 24px;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 380px);
  aspect-ratio: 1;
  padding: 40px;
  border: 1px solid rgba(255, 45, 45, 0.18);
  background: radial-gradient(circle at 50% 40%, #1a1a1a 0%, var(--bg) 72%);
  overflow: hidden;
}

.about-logo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 45, 45, 0.14) 0%, transparent 58%);
  pointer-events: none;
}

.about-logo img {
  position: relative;
  z-index: 1;
  width: min(280px, 72%);
  height: auto;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(280px, 1.4fr);
  gap: 48px;
  padding: 48px 0 40px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  align-self: stretch;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-list a {
  font-size: 14px;
  color: var(--text);
  transition: color var(--transition);
}

.footer-list a:hover {
  color: var(--header-red-light);
}

.footer-meta {
  border-top: 1px solid var(--border);
  padding: 24px 0 28px;
}

.footer-meta p,
.footer-meta a {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
}

.footer-meta p {
  margin-bottom: 6px;
}

.footer-meta p:last-child {
  margin-bottom: 0;
  margin-top: 12px;
}

.footer-meta a {
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--text-muted);
}

.checkout-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}

.checkout-consent input {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
}

.checkout-consent a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== Cart ===== */
.cart-overlay,
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
  z-index: 270;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100%;
  height: 100%;
  background: var(--bg);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition);
  border-left: 1px solid var(--border);
}

.cart-sidebar.active {
  transform: translateX(0);
  z-index: 271;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.cart-header h3 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.06em;
}

.cart-close {
  font-size: 28px;
  opacity: 0.6;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 40px 0;
  font-size: 14px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.cart-item img {
  width: 80px;
  height: 100px;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
}

.cart-item-info .size {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-item-price {
  font-weight: 600;
  font-size: 14px;
}

.cart-item-remove {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: underline;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
}

.cart-total strong {
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 40px;
  width: 440px;
  max-width: calc(100% - 32px);
  z-index: 201;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal.checkout-modal.active {
  z-index: 280;
}

#checkoutOverlay.active {
  z-index: 275;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 24px;
  opacity: 0.6;
}

.modal h3 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.modal label {
  display: block;
  margin-bottom: 16px;
}

.modal label span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.modal input[type="text"],
.modal input[type="tel"] {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 16px;
  font-size: 14px;
  outline: none;
}

.modal input:focus {
  border-color: var(--accent);
}

.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.checkbox-label input {
  margin-top: 3px;
}

.checkout-modal {
  width: min(720px, calc(100% - 32px));
  max-height: 92vh;
  overflow-y: auto;
}

.checkout-modal h3 {
  margin-bottom: 8px;
}

.checkout-summary {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.checkout-summary > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.checkout-summary > div strong {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
}

.checkout-summary-total {
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 16px;
  font-weight: 600;
}

.checkout-discount strong {
  color: var(--accent);
}

.checkout-promo {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.checkout-promo input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
}

.checkout-promo .btn {
  padding: 11px 16px;
  font-size: 13px;
}

.promo-message {
  font-size: 13px;
  margin: -4px 0 12px;
}

.promo-message.ok { color: var(--accent); }
.promo-message.err { color: #f87171; }

.checkout-section {
  margin-bottom: 20px;
}

.checkout-section h4 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.checkout-section label {
  display: block;
  margin-bottom: 14px;
  position: relative;
}

.checkout-section label span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.checkout-section input,
.checkout-section select {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
}

.checkout-section input:focus,
.checkout-section select:focus {
  border-color: var(--accent);
}

.delivery-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.delivery-type {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  margin-bottom: 0 !important;
  font-size: 13px;
}

.delivery-type:has(input:checked) {
  border-color: var(--accent);
  background: rgba(255, 45, 45, 0.08);
}

.delivery-type input {
  width: auto;
}

.delivery-info {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 4px;
}

.delivery-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.delivery-city-field {
  position: relative;
  z-index: 30;
  margin-bottom: 12px;
}

.delivery-city-field input {
  font-size: 16px;
}

.checkout-delivery {
  overflow: visible;
}

.yandex-pvz-widget {
  width: 100%;
  min-height: 420px;
  height: 420px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  touch-action: manipulation;
}

.pvz-inline-host:not(.hidden) .yandex-pvz-widget {
  display: block;
}

.pvz-open-map-btn {
  margin: 8px 0 12px;
}

.pvz-map-shell {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.pvz-map-shell.hidden {
  display: none;
}

body.pvz-map-open {
  overflow: hidden;
}

.pvz-map-shell-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px calc(12px + env(safe-area-inset-top));
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}

.pvz-map-back {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
}

.pvz-map-shell-title {
  font-size: 15px;
  font-weight: 600;
}

.pvz-widget-host {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.pvz-widget-host .yandex-pvz-widget {
  flex: 1;
  min-height: 0;
  height: auto !important;
  border: none;
  border-radius: 0;
}

.pvz-list-fallback {
  margin-top: 8px;
}

.pvz-list-fallback-title {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pvz-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.pvz-list-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-secondary);
  color: var(--text);
  cursor: pointer;
}

.pvz-list-item strong {
  font-size: 14px;
}

.pvz-list-item span {
  font-size: 12px;
  color: var(--text-muted);
}

.delivery-widget-error {
  padding: 24px 16px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.selected-pickup {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-secondary);
}

.selected-pickup-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.selected-pickup-address {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

.suggest-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  z-index: 10;
  max-height: 220px;
  overflow-y: auto;
}

.suggest-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: none;
  background: none;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}

.suggest-item:hover {
  background: var(--bg-secondary);
}

.hidden {
  display: none !important;
}

.checkout-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 48px 0;
  font-family: var(--font-catalog);
  font-size: 14px;
  font-weight: 500;
}

/* ===== FAB & Toast ===== */
.fab-callback {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--accent);
  color: var(--bg);
  padding: 14px 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 50;
  transition: var(--transition);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.fab-callback:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--bg);
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 500;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.cart-prompt {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(120%);
  z-index: 310;
  width: min(560px, calc(100% - 32px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
}

.cart-prompt.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.cart-prompt-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.cart-prompt-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
}

.cart-prompt-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cart-prompt-continue,
.cart-prompt-go {
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  transition: var(--transition);
}

.cart-prompt-continue {
  background: transparent;
  color: var(--text-muted);
}

.cart-prompt-continue:hover {
  color: var(--text);
}

.cart-prompt-go {
  background: var(--accent);
  color: #fff;
}

.cart-prompt-go:hover {
  background: var(--accent-hover);
}

@media (max-width: 640px) {
  .cart-prompt-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cart-prompt-actions {
    flex-direction: column-reverse;
  }

  .cart-prompt-continue,
  .cart-prompt-go {
    width: 100%;
  }
}

@media (hover: none), (max-width: 992px) {
  .product-media {
    margin-bottom: 10px;
  }
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .header-top {
    display: none;
  }

  .header-main-inner {
    grid-template-columns: 44px 1fr auto;
    gap: 12px;
  }

  .logo {
    justify-self: center;
  }

  .header-actions {
    justify-self: end;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .nav-list a {
    font-size: 18px;
    letter-spacing: 0.05em;
  }

  .nav-sub a {
    font-size: 14px;
  }

  .nav-sub {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    border: none;
    padding: 8px 0 0 12px;
    background: transparent;
  }

  .nav-sub a {
    padding: 6px 0;
  }

  .banners-grid {
    grid-template-columns: 1fr;
  }

  .banner-card {
    aspect-ratio: 16/9;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-logo {
    width: min(100%, 320px);
    padding: 32px 24px;
  }

  .about-logo img {
    width: min(240px, 78%);
  }

  .logo-img {
    height: 40px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 576px) {
  .hero-content {
    padding: 0 24px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .modal.checkout-modal {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    max-height: none;
    height: 100%;
    transform: none;
    padding: 16px 14px calc(16px + env(safe-area-inset-bottom));
    border: none;
    border-radius: 0;
    -webkit-overflow-scrolling: touch;
  }

  .modal.checkout-modal.active {
    transform: none;
  }

  .checkout-modal h3 {
    font-size: 22px;
    margin-bottom: 6px;
    padding-right: 36px;
  }

  .checkout-note {
    font-size: 12px;
    margin-bottom: 14px;
  }

  .checkout-summary {
    padding: 12px;
    margin-bottom: 14px;
  }

  .yandex-pvz-widget {
    min-height: 340px;
  }

  .delivery-city-field .suggest-list {
    z-index: 400;
    max-height: min(240px, 40vh);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  }

  .suggest-item {
    padding: 14px 16px;
    font-size: 16px;
  }
}

@media (max-width: 992px) {
  .product-page-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-page-inner {
    padding-top: 72px;
  }
}
