/*
 * Design refresh (v1) — dark, calm, professional; matches the N2O-BG logo.
 * Loaded LAST on every page, overrides older styles only. No markup, heading
 * or text changes depend on this file, so removing it restores the old look.
 */
:root {
  --bg: #0b0d0f;
  --surface: #14171a;
  --surface-2: #1b1f23;
  --border: #262b30;
  --text: #e8eaec;
  --text-muted: #a3abb3;          /* 7.6:1 on --bg */
  --brand: #3fe3c9;               /* logo teal */
  --brand-strong: #5be0e5;
  --brand-ink: #062b27;           /* text on teal buttons, 9:1 */
  --accent: #ff7ac6;              /* logo pink, used sparingly */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, .h1, .h3-sub, .navbar, .tab button, .hero-number,
.choose-city-title, .product-card .text-xl:first-of-type, .add-button {
  font-family: var(--font-head);
}

h2, h3 { color: var(--text); letter-spacing: 0.01em; }

a { color: var(--brand-strong); }
a:hover { color: #fff; }

hr { border-color: var(--border); opacity: 1; }

:focus-visible {
  outline: 2px solid var(--brand-strong);
  outline-offset: 3px;
}

/* ---------- Navbar ---------- */
.navbar {
  background: rgba(11, 13, 15, 0.92) !important;
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}

.nav-promos-btn,
.nav-faq-btn {
  min-height: 44px;
  display: inline-flex !important;
  align-items: center;
}

/* ---------- Hero ---------- */
.hero-image {
  height: auto;
  min-height: 0;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.hero-container {
  color: var(--text);
  padding-top: 96px;
  max-width: 880px;
  margin: 0 auto;
}

.hero-container h1 {
  text-shadow: none;
  color: #fff;
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  line-height: 1.2;
  margin: 18px 0 12px;
}

.hero-container p {
  text-shadow: none;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 640px;
}

.hero-container p .text-danger {
  color: var(--brand) !important;
  font-weight: 600;
}

.age-restriction {
  width: 52px;
  height: 52px;
  top: -64px;
  opacity: 0.85;
}

.hero-number,
.animate-phone {
  font-size: clamp(2rem, 6vw, 2.75rem) !important;
  letter-spacing: 0.06em;
}

.socials {
  width: auto;
  justify-content: center;
  gap: 28px;
  margin-top: 8px;
}

.socials img {
  max-width: 110px;
  height: auto;
}

/* ---------- City tabs: segmented control ---------- */
.choose-city-title {
  color: var(--text-muted);
  font-size: 1.1rem !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 8px;
}

.tab {
  background: transparent;
  gap: 8px;
  padding: 0 12px;
}

.tab button,
.tab button.default-active {
  float: none;
  min-height: 44px;
  padding: 8px 18px;
  font-size: 1.05rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.tab button:hover {
  background: var(--surface-2);
  color: #fff;
}

.tab button.active,
.tab button.default-active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
  border-radius: 999px;
}

.tabcontent { padding: 8px 16px 0; }

.capsules-heading { margin-bottom: 28px; }

.capsules-heading h3,
.capsules-heading .h3-sub {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-muted);
  font-family: var(--font-body);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Product grid + cards ---------- */
.product-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px !important;
  max-width: 1180px;
  margin: 0 auto;
}

.product-card {
  width: auto !important;
  margin: 0 !important;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  justify-content: flex-start !important;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  border-color: rgba(63, 227, 201, 0.45);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.product-card > img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: 14px !important;
}

.product-card .text-xl {
  font-size: 0.95rem;
  margin: 0 0 4px;
  color: var(--text-muted);
}

.product-card .text-xl:first-of-type {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-card .text-info { color: var(--brand) !important; }

.product-content {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.product-content .text-success {
  color: var(--text-muted) !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px !important;
}

.product-prices {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  margin-bottom: 14px;
}

.product-prices p {
  width: auto !important;
  margin: 0;
  padding: 4px 0;
  font-size: 0.95rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  border-bottom: 1px dashed var(--border);
}

/* ---------- Buttons ---------- */
.btn-success,
.add-button.btn-success,
.add-to-cart-confirm-btn {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: var(--brand-ink) !important;
  box-shadow: none !important;
  font-weight: 600;
}

.btn-success:hover,
.btn-success:focus-visible {
  background: #6cf0db !important;
  color: var(--brand-ink) !important;
}

.add-button {
  width: 100%;
  min-height: 48px;
  margin: auto 0 0 !important;
  border-radius: var(--radius-sm) !important;
  letter-spacing: 0.08em;
}

.add-button.btn-outline-info {
  color: var(--text-muted) !important;
  border-color: var(--border) !important;
}

/* ---------- Promo banner on the home page ---------- */
.promo-banner {
  background: var(--surface);
  border: 1px solid var(--border);
}

/* ---------- SEO text blocks (Sofia / promotions) ---------- */
.container.my-5 h2,
.container.my-5 h3 { margin-top: 1.4rem; }

.container.my-5 p,
.container.my-5 li { color: var(--text-muted); }

.container.my-5 strong { color: var(--text); }

/* ---------- Footer ---------- */
footer.container {
  padding: 32px 16px 48px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

footer.container b { font-weight: 500; color: var(--text); }

/* inline opacity on footer lines made small print unreadable (<4.5:1) */
footer.container p { opacity: 1 !important; color: var(--text-muted); }
footer.container a { color: var(--text-muted) !important; }
footer.container a:hover { color: #fff !important; }

/* ---------- Floating call button: calm, no endless bounce ---------- */
.phone-fixed {
  animation: none !important;
  bottom: 20px;
  right: 20px;
}

.phone-fixed img {
  width: 60px !important;
  height: 60px !important;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
  transition: transform 0.2s;
}

.phone-fixed a:hover img { transform: scale(1.06); }

/* ---------- Checkout form on dark modal content ---------- */
.b2b-consent label { opacity: 1; color: inherit; }

/* ---------- Mobile ---------- */
@media (max-width: 575px) {
  .hero-container { padding-top: 84px; }
  .product-cards-grid { grid-template-columns: 1fr 1fr; gap: 12px !important; }
  .product-card { padding: 10px; }
  .product-card > img { height: 140px; }
  .product-card .text-xl:first-of-type { font-size: 1rem; }
  .product-prices { grid-template-columns: 1fr; }
  .tab button { padding: 8px 14px; font-size: 0.95rem; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Phone number: solid brand colour instead of the animated rainbow gradient */
.animate-phone {
  background: none !important;
  -webkit-text-fill-color: var(--brand) !important;
  color: var(--brand) !important;
  animation: none !important;
}

/* carousel.css (old Bootstrap template) sets body text to #5a5a5a and loads
   after this file on some pages — this selector wins regardless of order. */
html body {
  color: var(--text);
}

/* Sold-out button: Bootstrap fades disabled buttons to 65%, which drops the
   label below 4.5:1 — keep it readable; the outline style shows it's inactive. */
.add-button.btn-outline-info:disabled,
.add-button.btn-outline-info.disabled {
  opacity: 1 !important;
  color: var(--text-muted) !important;
  cursor: not-allowed;
}

/* ---------- Contrast fixes found by the page audit (all now ≥ 4.5:1) ---------- */
.promo-badge { background: #7e22ce !important; color: #fff !important; }           /* 6.9:1 */
.faq-cta-whatsapp { background: #25d366 !important; color: #052e16 !important; }    /* 8.9:1 */
.faq-cta-viber { background: #6247e0 !important; color: #fff !important; }           /* 5.6:1 */
.faq-product-detail,
.faq-price-next { color: var(--text-muted) !important; }

/* Optional "Желая фактура" checkbox: normal-size label, easy to tap */
.b2b-consent label { font-size: 0.95rem; align-items: center; min-height: 44px; }
.b2b-consent input { width: 18px; height: 18px; margin-top: 0; }
