/* ============================================================
   ADITEX — site.css (общие стили: layout, header, nav, footer, кнопки)
   Базируется на wow-прототипе deploy/prototype-wow.html
   prod-card / fabric-* / .products НЕ трогать — работают как есть.
   ============================================================ */

/* ===== TOKENS ===== */
:root {
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --bg-deep: #f3f4f6;

  /* Navy */
  --navy-900: #0a1628;
  --navy-800: #0f1f3a;
  --navy-700: #152a4a;
  --navy-600: #1a3358;
  --navy-500: #1d3461;

  /* Grayscale */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Orange — warm tone */
  --orange: #e8622a;
  --orange-hover: #d4551f;
  --orange-light: #f0854a;
  --orange-pale: #fef3ed;

  /* Aliases (старые имена → новые цвета) */
  --ink: var(--navy-900);
  --ink-soft: var(--gray-600);
  --ink-muted: var(--gray-500);
  --ink-soft-2: var(--gray-300);
  --accent: var(--orange);
  --accent-dark: var(--orange-hover);
  --accent-soft: var(--orange-pale);
  --navy-dark: var(--navy-900);
  --border: var(--gray-200);
  --border-strong: var(--gray-300);
  --green: #16a34a;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10,22,40,.04);
  --shadow-md: 0 4px 16px rgba(10,22,40,.06);
  --shadow-lg: 0 12px 32px rgba(10,22,40,.08);
  --shadow-xl: 0 20px 48px rgba(10,22,40,.12);
  --shadow-orange: 0 8px 24px rgba(232,98,42,.28);

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ===== RESET / BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.serif { font-family: 'Playfair Display', serif; font-weight: 500; }

/* ===== TOPBAR ===== */
.topbar {
  background: var(--navy-900);
  color: #cbd5e1;
  font-size: 13px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  letter-spacing: 0.01em;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.topbar a { transition: color .2s; }
.topbar a:hover { color: var(--orange-light); }
.topbar-left {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--gray-400);
  flex-wrap: wrap;
}
.topbar-left i { color: var(--orange-light); font-size: 14px; }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar-right a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-weight: 500;
}
.topbar-right i { font-size: 15px; }

/* ===== HEADER (glass-morphism) ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(229,231,235,.6);
  transition: background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.header.scrolled {
  background: rgba(255,255,255,.95);
  border-bottom-color: var(--gray-200);
  box-shadow: 0 1px 12px rgba(0,0,0,.05);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.search-bar {
  flex: 1;
  max-width: 460px;
  position: relative;
}
.search-bar i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 16px;
}
.search-bar input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: rgba(255,255,255,.6);
  font-size: 14px;
  color: var(--gray-900);
  transition: all .2s;
}
.search-bar input:focus {
  outline: none;
  border-color: var(--orange);
  background: white;
  box-shadow: 0 0 0 4px rgba(232,98,42,.08);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: transparent;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  font-size: 18px;
  transition: all .2s;
  border: 1px solid transparent;
}
.icon-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-200);
}
.icon-btn .badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--orange);
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.callback-btn {
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--navy-900);
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--navy-900);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.callback-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(232,98,42,.28);
}

/* ===== NAV ===== */
.nav {
  background: white;
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 81px;
  z-index: 49;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  overflow-x: auto;
}
.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  border-bottom: 2px solid transparent;
  transition: all .2s;
  white-space: nowrap;
  cursor: pointer;
}
.nav-item:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.nav-item .chev { font-size: 10px; opacity: 0.5; }
.nav-item.catalog {
  color: var(--navy-900);
  font-weight: 700;
}
.nav-item.catalog i { font-size: 16px; }
.nav-item.catalog:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.nav-item.active {
  color: var(--navy-900);
  border-bottom-color: var(--orange);
}
.nav-divider { flex: 1; }
.nav-utility {
  font-size: 13px;
  color: var(--gray-600);
  padding: 14px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: color .2s;
}
.nav-utility:hover { color: var(--orange); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: all .25s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}
.btn-primary {
  background: var(--orange);
  color: white;
  box-shadow: 0 4px 12px rgba(232,98,42,.22);
}
.btn-primary:hover {
  background: var(--orange-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--navy-700);
  color: var(--navy-900);
}
.btn-outline:hover {
  background: var(--navy-900);
  color: white;
  transform: translateY(-2px);
}
.btn-ghost {
  background: white;
  color: var(--navy-900);
  border: 1px solid var(--gray-200);
}
.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}
.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-accent { background: var(--orange); color: white; box-shadow: 0 4px 12px rgba(232,98,42,.22); }
.btn-accent:hover { background: var(--orange-hover); color: white; transform: translateY(-2px); box-shadow: var(--shadow-orange); }
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-sm { padding: 10px 18px; font-size: 13px; }

/* ===== SECTION HEADERS (общие) ===== */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 48px; gap: 24px; flex-wrap: wrap; }
.section-header { margin-bottom: 48px; max-width: 720px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header.center .section-label { justify-content: center; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}
.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.section-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--orange);
  border-radius: 1px;
}
.section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  margin-bottom: 16px;
}
.section-title em { font-style: normal; color: var(--orange); }
.section-subtitle, .section-sub {
  font-size: 17px;
  color: var(--gray-600);
  max-width: 640px;
  line-height: 1.6;
  margin-top: 0;
}
.section-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: all .2s;
}
.section-link:hover { background: var(--ink); color: white; border-color: var(--ink); }

/* ===== shared fabric textures (НЕ ТРОГАТЬ — для prod-card fallback) ===== */
.fabric-tex { width: 100%; height: 100%; position: relative; }
.fabric-tex::before { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 3px), repeating-linear-gradient(0deg, rgba(0,0,0,0.04) 0 1px, transparent 1px 3px); }
.fabric-beige { background: linear-gradient(135deg, #e8d4b8 0%, #b89770 100%); }
.fabric-cream { background: linear-gradient(135deg, #f5ebd6 0%, #d9c5a4 100%); }
.fabric-gray { background: linear-gradient(135deg, #c0b6a8 0%, #8a8278 100%); }
.fabric-warm-gray { background: linear-gradient(135deg, #b0a290 0%, #7a6d5e 100%); }
.fabric-coffee { background: linear-gradient(135deg, #8a705a 0%, #4a3a2c 100%); }
.fabric-pearl { background: linear-gradient(135deg, #ece2cf 0%, #c9bfa9 100%); }
.fabric-sand { background: linear-gradient(135deg, #e0c9a8 0%, #b89770 100%); }
.fabric-dark-gray { background: linear-gradient(135deg, #6e6660 0%, #2d2924 100%); }
.fabric-magnolia { background: linear-gradient(135deg, #f4e8d8 0%, #d4c0a8 100%); }
.fabric-cappuccino { background: linear-gradient(135deg, #b89776 0%, #6e4f30 100%); }
.fabric-graphite { background: linear-gradient(135deg, #5a5550 0%, #1f1d1a 100%); }
.fabric-rose { background: linear-gradient(135deg, #d4c0b0 0%, #a08068 100%); }

/* ===== PRODUCT CARD (НЕ ТРОГАТЬ — работает с компонентом x-product-card) ===== */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.prod-card { cursor: pointer; transition: transform .3s; }
.prod-card:hover { transform: translateY(-4px); }
.prod-card-image { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; position: relative; margin-bottom: 16px; background: var(--bg-soft); }
.prod-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 24px); }
.prod-badge { padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }
.prod-badge.hit { background: var(--accent); color: white; }
.prod-badge.new { background: var(--ink); color: white; }
.prod-badge.stock { background: rgba(255,255,255,0.95); color: var(--ink); }
.prod-quick { position: absolute; bottom: 12px; left: 12px; right: 12px; display: flex; gap: 8px; opacity: 0; transform: translateY(8px); transition: all .25s; }
.prod-card:hover .prod-quick { opacity: 1; transform: translateY(0); }
.prod-quick-btn { flex: 1; padding: 10px 14px; background: rgba(255,255,255,0.95); color: var(--ink); font-size: 12px; font-weight: 600; cursor: pointer; border: none; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: all .2s; }
.prod-quick-btn.fav { flex: 0 0 38px; padding: 10px; }
.prod-quick-btn:hover { background: var(--ink); color: white; }
.prod-card-meta { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 4px; }
.prod-collection { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.prod-stock { font-size: 12px; color: var(--green); font-weight: 600; }
.prod-name { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 600; line-height: 1.1; margin-bottom: 6px; letter-spacing: -0.01em; }
.prod-specs { font-size: 13px; color: var(--ink-muted); display: flex; gap: 8px; flex-wrap: wrap; }
.prod-specs span:not(:last-child)::after { content: '·'; margin-left: 8px; color: var(--ink-soft-2); }
.prod-price { font-size: 14px; font-weight: 700; color: var(--ink); margin-top: 8px; }
.prod-price span { font-weight: 500; color: var(--ink-muted); font-size: 12px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.65);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 56px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
  max-width: 320px;
  margin-bottom: 24px;
}
.footer-socials { display: flex; gap: 10px; }
.footer-social-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  transition: all .2s;
}
.footer-social-icon:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-2px);
}
.footer-col h5,
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.footer-col a:hover { color: var(--orange-light); }
.footer-contact-block .ph { font-size: 22px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.01em; color: white; }
.footer-contact-block .ph-hint { font-size: 12px; color: rgba(255,255,255,.55); margin-bottom: 18px; }
.footer-contact-block .em { font-size: 14px; color: rgba(255,255,255,.85); margin-bottom: 16px; display: block; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,.4);
}

/* ===== RESPONSIVE (только общее: header / nav / footer / products / sections) ===== */
@media (max-width: 1024px) {
  section { padding: 72px 0; }
  .section { padding: 72px 0; }
  .section-title { font-size: clamp(1.75rem, 3vw, 2rem); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .search-bar { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .topbar { font-size: 12px; }
  .topbar-left { display: none; }
  .topbar-right { gap: 12px; width: 100%; justify-content: space-between; }
  .header-inner { gap: 12px; padding: 12px 0; }
  .callback-btn .btn-text { display: none; }
  section { padding: 56px 0; }
  .section { padding: 56px 0; }
  .section-title { font-size: 1.5rem; }
  .section-subtitle, .section-sub { font-size: 15px; }
  .products { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; margin-bottom: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ==== CTA — белый текст inline-power ==== */
.cta-card, .cta-card * { color: white !important; }
.cta-card .section-label, .cta-card .section-label::before { color: #f0854a !important; }
.cta-card .section-label::before { background: #f0854a !important; }
.cta-card .cta-title, .cta-card h2 { color: white !important; }
.cta-card .cta-text, .cta-card p { color: rgba(255,255,255,.85) !important; }
.cta-card label { color: rgba(255,255,255,.7) !important; }
.cta-card input { background: rgba(255,255,255,.1) !important; color: white !important; border-color: rgba(255,255,255,.2) !important; }
.cta-card input::placeholder { color: rgba(255,255,255,.45) !important; }
.cta-form-btn, .cta-card button[type="submit"] { background: #e8622a !important; color: white !important; }
.cta-form-policy { color: rgba(255,255,255,.5) !important; }

/* ==== Лого: фиксированный размер ==== */
.brand img { height: 56px !important; width: auto !important; background: transparent !important; }
.footer-brand img { height: 50px !important; width: auto !important; }

/* ==== FINAL CTA/LOGO override ==== */
.cta-card, .cta-card * { color: white !important; }
.cta-card .section-label, .cta-card .section-label::before { color: #f0854a !important; }
.cta-card .section-label::before { background: #f0854a !important; }
.cta-card h2 { color: white !important; }
.cta-card p, .cta-card .cta-text { color: rgba(255,255,255,.85) !important; }
.cta-card label { color: rgba(255,255,255,.7) !important; }
.cta-card input { background: rgba(255,255,255,.1) !important; color: white !important; border-color: rgba(255,255,255,.2) !important; }
.cta-card input::placeholder { color: rgba(255,255,255,.45) !important; }
.cta-card button[type="submit"], .cta-form-btn { background: #e8622a !important; color: white !important; }
.brand img { height: 56px !important; width: auto !important; background: transparent !important; }
.footer-brand img { height: 50px !important; }
