/* ========================================================================== 
   НПО «Тактические Комплексы и Системы» (ТКС-PRO)
   Global Stylesheet
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #090909;
  --dark: #111111;
  --dark2: #1a1a1a;
  --dark3: #222222;
  --border: rgba(255, 255, 255, 0.08);
  --border2: rgba(255, 255, 255, 0.14);
  --accent: #c8a84b;
  --accent2: #e6c66a;
  --accent-glow: rgba(200, 168, 75, 0.2);
  --text: #f0ece4;
  --muted: #888880;
  --muted2: #929288;
  --success: #4caf50;
  --danger: #e53935;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Oswald', 'Arial Narrow', sans-serif;
  --font-tech: 'Exo 2', 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Accessibility Helpers ── */
.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;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 9999;
  background: var(--accent);
  color: #000;
  padding: 12px 20px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  height: 64px;
  background: rgba(9, 9, 9, 0.97);
  border-bottom: 1px solid var(--border);
}

@supports (backdrop-filter: blur(12px)) {
  nav {
    background: rgba(9, 9, 9, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo::before,
.footer-logo::before {
  content: '';
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background: url('../images/brand/tks-logo-v02.svg') center / contain no-repeat;
}

.nav-logo-icon {
  display: none;
}

.nav-logo-text {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--text);
  text-transform: uppercase;
}

.nav-logo-text span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-family: var(--font-tech);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-cta {
  border: 1px solid var(--accent) !important;
  color: var(--accent) !important;
  padding: 6px 18px;
  transition: background 0.2s, color 0.2s !important;
}

.nav-cta:hover {
  background: var(--accent) !important;
  color: var(--black) !important;
}

/* ── HERO ── */
.hero {
  min-height: calc(100vh - 92px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: .38;
  filter: grayscale(100%) contrast(1.15) brightness(.55);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .55) 50%, rgba(0, 0, 0, .72) 100%);
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 30% 50%, rgba(200, 168, 75, 0.06) 0%, transparent 70%),
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(255, 255, 255, 0.018) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(255, 255, 255, 0.018) 80px);
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  padding: 120px 60px 160px;
  position: relative;
  z-index: 3;
  max-width: 700px;
}

.hero-tag {
  display: inline-grid;
  grid-template-columns: max-content;
  align-items: start;
  gap: 10px;
  font-family: var(--font-tech);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-tag::before {
  content: none;
  display: none;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(52px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: 0.75px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 40px;
}

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

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--black);
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
  text-align: center;
}

.btn-primary:hover {
  background: var(--accent2);
  border-color: var(--accent2);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-block;
  padding: 13px 32px;
  border: 1px solid var(--border2);
  color: var(--text);
  font-family: var(--font-tech);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  background: transparent;
  cursor: pointer;
  text-align: center;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-stats {
  position: absolute;
  bottom: 60px;
  left: 60px;
  display: flex;
  gap: 40px;
  z-index: 3;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--accent);
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.stat-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* ── MARQUEE ── */
.marquee-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 14px 0;
  background: var(--dark2);
}

.marquee-track {
  display: flex;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 36px;
  font-family: var(--font-tech);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.marquee-dot {
  width: 4px;
  height: 4px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  flex-shrink: 0;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── SECTIONS ── */
section {
  padding: 90px 60px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}

.section-label {
  font-family: var(--font-tech);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
}

/* ── PRODUCTS ── */
.products-section {
  background: var(--dark);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.product-card {
  background: var(--dark);
  padding: 28px 22px;
  transition: background 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.product-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}

.product-card:hover,
.product-card:focus-visible {
  background: var(--dark2);
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.product-card:hover::after,
.product-card:focus-visible::after {
  transform: scaleX(1);
}

.product-img-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  margin-bottom: 16px;
  background: var(--dark2);
  overflow: hidden;
}

.product-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.product-card:hover .product-img {
  transform: scale(1.04);
}

.product-tag {
  font-family: var(--font-tech);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.product-name {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 7px;
  line-height: 1.2;
}

.product-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── WHOLESALE ── */
.wholesale-section {
  background: var(--dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.wholesale-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.wholesale-info h3 {
  font-family: var(--font-heading);
  font-size: 48px;
  letter-spacing: 0.75px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  line-height: 1.05;
}

.wholesale-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.wholesale-contacts {
  background: var(--dark2);
  border: 1px solid var(--border);
  padding: 32px;
}

.wholesale-contacts h4 {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.wholesale-contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wholesale-contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.wholesale-contact-item:hover {
  opacity: 0.8;
}

.wholesale-contact-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  background: var(--dark);
}

.wholesale-contact-info .label {
  font-family: var(--font-tech);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.wholesale-contact-info .value {
  font-size: 15px;
  color: var(--text);
}

/* ── ABOUT ── */
.about-section {
  background: var(--black);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-visual-main {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  filter: grayscale(20%) contrast(1.1);
}

.about-accent-box {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--accent);
  padding: 20px 24px;
  width: 180px;
}

.about-accent-num {
  font-family: var(--font-heading);
  font-size: 42px;
  color: var(--black);
  line-height: 1;
  text-transform: uppercase;
}

.about-accent-text {
  font-family: var(--font-tech);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.65);
  margin-top: 4px;
}

.about-text p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.about-checklist {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-tech);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
}

.check-icon {
  width: 20px;
  height: 20px;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  color: var(--accent);
}

/* ── STORES ── */
.stores-section {
  background: var(--dark);
}

.stores-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.store-card {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 140px;
  padding: 32px;
  background: var(--dark);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}

.store-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}

.store-card:hover {
  background: var(--dark2);
}

.store-card:hover::after {
  transform: scaleX(1);
}

.store-icon {
  width: 56px;
  height: 56px;
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--dark2);
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  transition: border-color 0.2s, background 0.2s;
}

.store-card:hover .store-icon {
  border-color: var(--accent);
}

.store-body {
  flex: 1;
}

.store-name {
  font-family: var(--font-heading);
  font-size: 34px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}

.store-desc {
  font-family: var(--font-tech);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.store-arrow {
  font-family: var(--font-tech);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.store-card:hover .store-arrow {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── CONTACTS ── */
.contacts-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  background: var(--dark);
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item:hover {
  background: var(--dark2);
}

.contact-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.contact-label {
  font-family: var(--font-tech);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

.contact-value {
  font-size: 14px;
  color: var(--text);
}

.map-container {
  border: 1px solid var(--border2);
  overflow: hidden;
  background: var(--dark2);
}

.map-container iframe {
  width: 100%;
  height: 450px;
  display: block;
  border: none;
  filter: grayscale(0.1) contrast(1.05);
  transition: filter 0.3s;
}


/* ── BLOG STYLES ── */
body.blog-page {
  background: #F0ECE4;
  color: #1A1A1A;
}

.blog-header {
  padding: 140px 60px 40px;
  background: #111111;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-header .section-label {
  color: #C8A84B;
}

.blog-header .section-title {
  color: #F0ECE4;
}

.blog-header p {
  color: #929288;
  max-width: 600px;
  margin-top: 12px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 60px;
  background: #F0ECE4;
}

.blog-card {
  background: #F8F6F1;
  border: 1px solid #E2DDD5;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: #1A1A1A;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  cursor: pointer;
}

.blog-card:hover {
  border-color: #C8A84B;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(200, 168, 75, 0.16), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.blog-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #E8E4DC;
  border-bottom: 1px solid #E2DDD5;
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #F8F6F1;
}

.blog-card-meta {
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: 2px;
  color: #80631A;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.blog-card-title {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #1A1A1A;
  margin-bottom: 12px;
  line-height: 1.35;
}

.blog-card-excerpt {
  font-size: 13.5px;
  color: #5A5A54;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

.blog-card-link {
  font-family: var(--font-tech);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2px;
  color: #80631A;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, gap 0.2s ease;
}

.blog-card:hover .blog-card-link {
  color: #6F5514;
  gap: 10px;
}

/* ── FOOTER ── */
footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 60px 60px 40px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 360px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo-icon {
  display: none;
}

.footer-logo-text {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-logo-text span {
  color: var(--accent);
}

.footer-tagline {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer-nav {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-nav-col h2 {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.footer-nav-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-col a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav-col a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  font-size: 13px;
}

.footer-requisites {
  color: var(--muted2);
  line-height: 1.6;
  flex: 2;
  min-width: 240px;
}

.footer-requisites strong {
  color: var(--muted);
  font-family: var(--font-tech);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex: 1;
  min-width: 200px;
}

.footer-copy {
  color: var(--muted2);
  font-size: 12px;
  margin: 0;
}

.footer-legal-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-legal-links a {
  font-size: 12px;
  color: var(--muted2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: 0.2s;
  cursor: pointer;
}

.footer-legal-links a:hover {
  color: var(--muted);
  border-color: var(--muted2);
}

/* ── BURGER & MOBILE MENU ── */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.burger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

.burger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(9, 9, 9, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  flex-direction: column;
  padding: 16px 0;
}

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

.mobile-menu a {
  font-family: var(--font-tech);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
}

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

.mobile-menu a:hover {
  color: var(--accent);
  background: var(--dark2);
}

.mobile-menu .mob-cta {
  color: var(--accent);
  margin: 12px 24px 4px;
  padding: 12px 24px;
  border: 1px solid var(--accent);
  text-align: center;
  background: none;
}

.mobile-menu .mob-cta:hover {
  background: var(--accent);
  color: var(--black);
}

/* ── MODAL ── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

@supports (backdrop-filter: blur(12px)) {
  .modal-backdrop {
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

.modal-backdrop.open {
  display: flex;
}

.product-modal {
  background: var(--dark);
  border: 1px solid var(--border2);
  max-width: 980px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.product-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.product-modal-title {
  font-family: var(--font-heading);
  font-size: 32px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
}

.modal-close {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}

.modal-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.product-modal-body {
  display: flex;
  flex-direction: row;
  overflow-y: auto;
  padding: 28px;
  gap: 32px;
  flex: 1;
}

.product-modal-gallery {
  flex: 1;
  min-width: 200px;
}

.product-modal-info {
  flex: 1.6;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-modal-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--dark2);
  border: 1px solid var(--border);
}

.product-modal-tag {
  font-family: var(--font-tech);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}

.product-modal-features {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-modal-features li {
  display: flex;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
  align-items: baseline;
}

.product-modal-features li strong {
  flex-shrink: 0;
  color: var(--accent);
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 14px;
}

.product-modal-desc-full {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 8px;
}

.product-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  align-items: center;
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark2);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 12px 28px;
  font-family: var(--font-tech);
  font-weight: 600;
  font-size: 13px;
  z-index: 250;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  white-space: nowrap;
}

@supports (backdrop-filter: blur(8px)) {
  .toast {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 40px 20px;
  }
}

@media (max-width: 900px) {
  .burger { display: flex; }
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  section { padding: 60px 20px; }
  .hero-content { padding: 100px 20px 220px; }
  .hero-stats { left: 20px; right: 20px; bottom: 30px; gap: 16px; flex-wrap: wrap; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .wholesale-grid { grid-template-columns: 1fr; gap: 40px; }


  .stores-grid { grid-template-columns: 1fr; }
  .about-section { grid-template-columns: 1fr; gap: 40px; }
  .contacts-section { grid-template-columns: 1fr; gap: 40px; }
  .blog-grid { grid-template-columns: 1fr; padding: 40px 20px; }
  footer { padding: 60px 20px 40px; }
  .footer-main { flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: stretch; }
  .footer-requisites,
  .footer-legal { min-width: 0; width: 100%; max-width: 100%; }
  .footer-legal { align-items: flex-start; }
  .store-body,
  .wholesale-contact-info { min-width: 0; }
  .about-accent-box { right: 0; }
  .product-modal-body { flex-direction: column; gap: 20px; }
  .toast { white-space: normal; text-align: center; max-width: 85vw; }
  .product-modal-actions { flex-direction: column; align-items: stretch; }
}

@media (max-width: 700px) {
  .section-header {
    flex-wrap: wrap;
    gap: 16px;
  }

  .section-header > * {
    min-width: 0;
    max-width: 100%;
  }

  .section-header > p,
  .wholesale-contact-info .value,
  .contact-value {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .store-card {
    gap: 16px;
    padding: 24px 16px;
  }

  .wholesale-contacts {
    padding: 24px 16px;
  }

  .contact-item {
    gap: 14px;
    padding: 18px 16px;
  }
}

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

  /* Give long marketplace names their own row and keep the action from colliding. */
  .store-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 10px;
    align-items: center;
  }

  .store-icon {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .store-body {
    grid-column: 2;
    grid-row: 1;
  }

  .store-name {
    max-width: 100%;
    font-size: clamp(27px, 9vw, 34px);
    overflow-wrap: anywhere;
  }

  .store-arrow {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    white-space: normal;
  }
}

/* ── ACCESSIBILITY / REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .marquee-track {
    animation: none;
    transform: none;
  }
  .hero-video {
    opacity: 0.15;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* BUILD_COMPOSED_SITE_RESPONSIVE_START */
/* Global mobile-responsive overrides.
   Composed into assets/css/style.css at build time so public pages keep one global stylesheet. */

@media (max-width: 900px) {
  .blog-header {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 700px) {
  .product-tag,
  .product-name,
  .product-desc {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .product-desc {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
    overflow: visible;
  }

  .hero-content,
  .wholesale-info {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero-title {
    font-size: clamp(40px, 13vw, 52px);
    letter-spacing: 0.5px;
    max-width: 100%;
  }

  .hero-desc,
  .wholesale-desc {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .hero-actions {
    max-width: 100%;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-outline,
  .wholesale-info .btn-primary {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    padding-left: 18px;
    padding-right: 18px;
    letter-spacing: 2px;
    line-height: 1.25;
  }

  .wholesale-section .section-title {
    font-size: clamp(34px, 10vw, 46px);
    max-width: 100%;
  }

  .wholesale-info h3 {
    font-size: clamp(34px, 10vw, 48px);
    max-width: 100%;
  }

  .blog-header > * {
    min-width: 0;
    max-width: 100%;
  }

  .blog-header .section-title {
    font-size: clamp(34px, 10vw, 50px);
    line-height: 1.02;
    letter-spacing: 1px;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .blog-header p {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .footer-nav-col a,
  .footer-legal-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
/* BUILD_COMPOSED_SITE_RESPONSIVE_END */


/* TKS_COOKIE_CONSENT_STYLES */
/* Cookie consent: compact, nonmodal surface; existing visual baseline preserved. */
.cookie-consent[hidden] { display: none !important; }
.cookie-consent {
  position: fixed;
  z-index: 1000;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(380px, calc(100% - 24px));
  margin-left: auto;
  margin-right: auto;
  padding: 14px;
  border: 1px solid var(--border2);
  border-radius: 10px;
  color: var(--text);
  background: var(--dark2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  font: 13px/1.5 var(--font-main);
}
.cookie-consent__message { margin: 0 0 11px; }
.cookie-consent__message a,
.cookie-policy a,
.footer-copy [data-cookie-settings] { color: var(--accent2); text-underline-offset: 3px; }
.cookie-consent__actions { display: flex; gap: 8px; }
.cookie-consent__actions button {
  flex: 1;
  min-height: 42px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font: 600 13px var(--font-main);
}
.cookie-consent__actions [data-cookie-choice="accepted"] { background: var(--accent); color: var(--black); }
.cookie-consent button:focus-visible,
.cookie-policy button:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; }
.cookie-policy {
  width: min(680px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 55vh;
  padding: 130px 0 75px;
}
.cookie-policy h1 { font: 600 clamp(32px, 5vw, 52px)/1.15 var(--font-main); margin-bottom: 24px; }
.cookie-policy p { margin: 0 0 18px; max-width: 60ch; }
.cookie-policy__settings {
  display: inline-block;
  margin: 8px 0 20px;
  background: transparent;
  color: var(--accent2);
  border: 1px solid var(--accent);
  border-radius: 6px;
  cursor: pointer;
  padding: 10px 14px;
  font: inherit;
}
@media (max-width: 430px) {
  /* Keep the consent surface visible without covering the primary bottom CTA on phones. */
  .cookie-consent {
    top: calc(64px + max(8px, env(safe-area-inset-top)));
    bottom: auto;
    padding: 12px;
  }

  /* Article pages also have the fixed 52px sequence navigation below the main nav. */
  body.article-page .cookie-consent {
    top: calc(116px + max(8px, env(safe-area-inset-top)));
  }
}
