/* ==========================================================================
   KALEBET DESIGN SYSTEM (SHADCN UI PORT)
   Zinc Dark Theme + Inter Typography
   ========================================================================== */

/* --------------------------------------------------------------------------
   FONTS
   -------------------------------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700;9..144,800&display=swap");

/* --------------------------------------------------------------------------
   CSS CUSTOM PROPERTIES (TOKENS)
   -------------------------------------------------------------------------- */
:root {
  /* SHADCN ZINC DARK THEME (HSL) */
  --background: 240 10% 3.9%;
  --foreground: 0 0% 98%;
  
  --card: 240 10% 3.9%;
  --card-foreground: 0 0% 98%;
  
  --popover: 240 10% 3.9%;
  --popover-foreground: 0 0% 98%;
  
  --primary: 0 72% 51%; /* #da3a3a (primary red) */
  --primary-foreground: 0 0% 98%;
  
  --secondary: 240 3.7% 15.9%;
  --secondary-foreground: 0 0% 98%;
  
  --muted: 240 3.7% 15.9%;
  --muted-foreground: 240 5% 64.9%;
  
  --accent: 240 3.7% 15.9%;
  --accent-foreground: 0 0% 98%;
  
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 0 0% 98%;
  
  --border: 240 3.7% 15.9%;
  --input: 240 3.7% 15.9%;
  --ring: 240 4.9% 83.9%;
  
  --radius: 0.5rem;

  /* Legacy Variable Mappings (for backward compatibility during refactor) */
  --color-bg: hsl(var(--background));
  --color-surface-1: hsl(var(--card));
  --color-surface-2: hsl(var(--secondary));
  --color-border: hsl(var(--border));
  --color-text: hsl(var(--foreground));
  --color-muted: hsl(var(--muted-foreground));
  --color-accent: hsl(var(--primary));
  --color-accent-hover: hsl(0 72% 45%);
  --color-focus: hsl(var(--ring));

  /* Typography */
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 600; /* Inter 600 is usually bold enough */
  --font-heading: 700;

  /* Spacing (Rem-based) */
  --space-1: 0.5rem;  /* 8px */
  --space-2: 1rem;    /* 16px */
  --space-3: 1.5rem;  /* 24px */
  --space-4: 2rem;    /* 32px */
  --space-5: 3rem;    /* 48px */
  --space-6: 4rem;    /* 64px */

  /* Layout */
  --container-max: 1280px; /* Wider for dashboard feel */
  --header-height: 72px;
}

/* --------------------------------------------------------------------------
   RESET & BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: hsl(var(--border));
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-normal);
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
  line-height: 1.5;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --------------------------------------------------------------------------
   FOCUS STATES
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   LAYOUT
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4); /* Increased padding */
}

.section {
  padding: var(--space-6) 0;
}

.section--compact {
  padding: var(--space-4) 0;
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: var(--font-heading);
  line-height: 1.1;
  letter-spacing: -0.025em; /* Tight tracking for headings */
  color: hsl(var(--foreground));
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }

.text-muted {
  color: hsl(var(--muted-foreground));
}

.text-accent {
  color: hsl(var(--primary));
}

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid hsl(var(--border));
  background-color: hsl(var(--background) / 0.95);
  backdrop-filter: blur(8px);
  height: var(--header-height);
}

.header__inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: inline-flex;
  align-items: center;
}

.header__logo-image {
  width: auto;
  height: 48px;
  max-width: 200px;
  object-fit: contain;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.header__nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: colors 0.2s ease;
}

.header__nav-link:hover,
.header__nav-link--active {
  color: hsl(var(--foreground));
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.header__telegram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.header__telegram-link i {
  color: #229ed9;
  font-size: 1rem;
}

.header__telegram-link:hover {
  color: hsl(var(--foreground));
  border-color: hsl(var(--primary));
  background-color: hsl(var(--accent));
}

/* Mobile menu button */
.header__menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: hsl(var(--foreground));
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary) / 0.5);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.header__menu-btn:hover {
  background: hsl(var(--accent));
  border-color: hsl(var(--primary) / 0.5);
}

.menu-icon {
  position: relative;
  width: 18px;
  height: 14px;
}

.menu-icon__line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.menu-icon__line:nth-child(1) { top: 0; }
.menu-icon__line:nth-child(2) { top: 6px; }
.menu-icon__line:nth-child(3) { top: 12px; }

.header__menu-btn[aria-expanded="true"] .menu-icon__line:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.header__menu-btn[aria-expanded="true"] .menu-icon__line:nth-child(2) {
  opacity: 0;
}

.header__menu-btn[aria-expanded="true"] .menu-icon__line:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

/* Mobile sheet navigation */
.mobile-nav {
  display: none;
}

.mobile-nav__backdrop {
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
}

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.mobile-nav__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.mobile-nav__close {
  width: 2rem;
  height: 2rem;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  color: hsl(var(--foreground));
  background: hsl(var(--secondary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.mobile-nav__list li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  width: 100%;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 0.9rem;
  border-radius: calc(var(--radius) + 2px);
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
  background: hsl(var(--accent) / 0.65);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.mobile-nav__link:hover {
  transform: translateX(2px);
  border-color: hsl(var(--primary) / 0.55);
}

.mobile-nav__actions {
  margin-top: auto;
  display: grid;
  gap: 0.625rem;
  padding-top: var(--space-4);
}

.mobile-nav__actions .btn {
  width: 100%;
}

.mobile-nav__phone {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
}

@media (max-width: 768px) {
  body.mobile-nav-lock {
    overflow: hidden;
  }

  .header {
    height: 64px;
  }

  .header__inner {
    gap: 0.75rem;
  }

  .header__logo-image {
    width: auto;
    height: 38px;
    max-width: 170px;
  }

  .header__nav {
    display: none;
  }

  .header__actions {
    display: flex;
    margin-left: auto;
    gap: 0.5rem;
  }

  .header__actions .btn--secondary {
    display: none;
  }

  .header__actions .btn {
    height: 2.2rem;
    padding: 0 0.75rem;
    font-size: 0.8rem;
  }

  .header__menu-btn {
    display: inline-flex;
  }

  .mobile-nav {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 120;
    pointer-events: none;
    visibility: hidden;
  }

  .mobile-nav__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background: hsl(var(--background) / 0.7);
    backdrop-filter: blur(4px);
    transition: opacity 0.22s ease;
  }

  .mobile-nav__panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(88vw, 360px);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, hsl(var(--card)), hsl(var(--background)));
    border-left: 1px solid hsl(var(--border));
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.35);
    transform: translateX(105%);
    transition: transform 0.24s ease;
  }

  .mobile-nav.mobile-nav--open {
    pointer-events: auto;
    visibility: visible;
  }

  .mobile-nav.mobile-nav--open .mobile-nav__backdrop {
    opacity: 1;
  }

  .mobile-nav.mobile-nav--open .mobile-nav__panel {
    transform: translateX(0);
  }
}

/* --------------------------------------------------------------------------
   BUTTONS (SHADCN VARIANTS)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: normal;
  white-space: nowrap;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
  height: 2.5rem; /* h-10 */
  padding-left: 1rem;
  padding-right: 1rem;
  cursor: pointer;
  gap: var(--space-2);
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* Variant: Default (Primary) */
.btn--primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
}
.btn--primary:hover {
  background-color: hsl(var(--primary) / 0.9);
}

/* Variant: Outline (Secondary) */
.btn--secondary {
  border: 1px solid hsl(var(--border)); /* input border */
  background-color: hsl(var(--background));
  color: hsl(var(--foreground)); /* button foreground */
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.btn--secondary:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

/* Variant: Ghost */
.btn--ghost {
  background-color: transparent;
  color: hsl(var(--foreground));
}
.btn--ghost:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

/* Sizes */
.btn--small {
  height: 2.25rem; /* h-9 */
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  font-size: 0.75rem; /* text-xs/sm */
}

.btn--large {
  height: 2.75rem; /* h-11 */
  padding-left: 2rem;
  padding-right: 2rem;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.hero {
  padding: var(--space-6) 0;
  text-align: center;
}

.hero__title {
  font-size: 3.5rem; /* Larger */
  font-weight: 800; /* Extra bold */
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: var(--space-3);
  background: linear-gradient(to bottom right, #fff 30%, #a5b4fc); /* Subtle gradient text */
  -webkit-background-clip: text;
  background-clip: text;
  /* color: transparent;  Removed transparency for better contrast if gradient fails */
  color: hsl(var(--foreground));
}

.hero__subtitle {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 640px;
  margin: 0 auto var(--space-5);
  line-height: 1.6;
}

.hero--home {
  position: relative;
  padding: clamp(4.8rem, 9vw, 7rem) 0;
  background:
    linear-gradient(180deg, rgba(4, 8, 26, 0.62) 0%, rgba(3, 5, 18, 0.82) 100%),
    url("./assets/img/replacements/hero-bg.jpg") center / cover no-repeat;
}

.hero--home .hero__title {
  color: hsl(var(--foreground));
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
}

.hero--home .hero__subtitle {
  color: hsl(0 0% 94% / 0.92);
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.42);
}

.hero--home .hero__actions {
  justify-content: center;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.hero__secondary-link,
.hero__secondary-link span {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
}
.hero__secondary-link:hover,
.hero__secondary-link:hover span {
  color: hsl(var(--foreground));
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hero warning message */
.hero__warning {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background-color: hsl(var(--destructive) / 0.1);
  border: 1px solid hsl(var(--destructive) / 0.2);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  margin-bottom: var(--space-4);
  text-align: left;
}

.hero__warning svg {
  flex-shrink: 0;
  color: hsl(var(--destructive));
  width: 16px;
  height: 16px;
}

.hero__warning span {
  font-size: 0.8125rem; /* text-sm/13px */
  font-weight: 500;
  color: hsl(var(--destructive-foreground)); /* Typically white on red, but for light bg use different */
  color: hsl(0 84% 60%); /* Custom red text */
}

/* Blog hero variant */
.hero--blog {
  padding: var(--space-5) 0;
  text-align: left;
  border-bottom: 1px solid hsl(var(--border));
  background-color: hsl(var(--muted) / 0.3);
}

.hero--blog .hero__title {
  font-size: 2.25rem;
  margin-bottom: 0;
  background: none;
  -webkit-text-fill-color: initial;
  color: hsl(var(--foreground));
}

/* --------------------------------------------------------------------------
   TRUST ROW
   -------------------------------------------------------------------------- */
.trust-row {
  border-bottom: 1px solid hsl(var(--border));
  padding: var(--space-3) 0;
  background-color: hsl(var(--card));
}

.trust-row__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.trust-row__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  font-weight: 500;
}

.trust-row__item svg {
  width: 18px;
  height: 18px;
  color: hsl(var(--primary));
}

/* --------------------------------------------------------------------------
   SECTION HEADERS
   -------------------------------------------------------------------------- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
  gap: var(--space-2);
}

.section-header__title {
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}

.section-header__link {
  color: hsl(var(--primary));
  font-size: 0.875rem;
  font-weight: 500;
}

.section-header__link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --------------------------------------------------------------------------
   PROMO CARDS (Featured Grid)
   -------------------------------------------------------------------------- */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  align-items: start;
}

@media (max-width: 1024px) {
  .promo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .promo-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
}

.promo-card {
  background-color: transparent;
  display: flex;
  flex-direction: column;
  text-align: left;
  height: 100%;
}

.promo-card:hover {
  transform: none;
}

.promo-card__image {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--space-3);
  border: 1px solid hsl(var(--border));
  aspect-ratio: 3 / 2;
  background: transparent;
}

.promo-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}
.promo-card:hover .promo-card__image img {
  transform: scale(1.02);
}

.promo-card__body {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.promo-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.promo-card__category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: hsl(var(--primary));
  letter-spacing: 0.05em;
}

.promo-card__value {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.promo-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
  line-height: normal;
  letter-spacing: -0.025em;
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: hsl(var(--foreground));
}

.promo-card__summary {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-3);
  min-height: 3em;
}

.promo-card__cta {
  margin-top: auto;
  width: 100%;
}

/* --------------------------------------------------------------------------
   PROMO ROWS (Compact List)
   -------------------------------------------------------------------------- */
.promo-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.promo-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: var(--space-4);
  background-color: hsl(var(--card));
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-4);
  border: 1px solid hsl(var(--border) / 0.5); /* Subtle border */
  transition: all 0.2s ease;
}

.promo-row:hover {
  background-color: hsl(var(--accent));
  border-color: hsl(var(--border));
}

.promo-row__image {
  width: 80px;
  height: 48px;
  border-radius: 4px; /* Small radius for tiny image */
  overflow: hidden;
  background-color: hsl(var(--secondary));
  flex-shrink: 0;
  border: 1px solid hsl(var(--border));
}

.promo-row__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.promo-row__content {
  min-width: 0;
}

.promo-row__title {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
  color: hsl(var(--foreground));
}

.promo-row__meta {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.promo-row__meta span {
  color: hsl(var(--primary));
  font-weight: 500;
}

.promo-row__value {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  white-space: nowrap;
  font-feature-settings: "tnum";
}

@media (max-width: 640px) {
  .promo-row {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-2);
    padding: var(--space-3);
  }

  .promo-row__image {
    grid-row: 1 / 3;
    height: 60px;
    width: 60px;
  }

  .promo-row__value {
    display: none;
  }

  .promo-row .btn {
    grid-column: 2;
    justify-self: start;
    margin-top: var(--space-1);
    height: 2rem; /* h-8 */
    font-size: 0.75rem;
    padding: 0 0.75rem;
  }
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq {
  background-color: hsl(var(--card));
  border-radius: var(--radius);
  padding: var(--space-6);
  border: 1px solid hsl(var(--border));
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.faq__item {
  border-bottom: 1px solid hsl(var(--border));
  padding-bottom: var(--space-4);
}

.faq__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq__question {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: hsl(var(--foreground));
  letter-spacing: -0.015em;
}

.faq__answer {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   SEO ARTICLE
   -------------------------------------------------------------------------- */
.seo-article {
  background-color: hsl(var(--card));
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  padding: var(--space-6);
}

.seo-article p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: hsl(var(--muted-foreground));
  margin-bottom: var(--space-4);
}

.seo-article p:last-child {
  margin-bottom: 0;
}

.seo-article strong {
  color: hsl(var(--foreground));
  font-weight: 700;
}

.seo-article a:not(.btn) {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seo-article a:not(.btn):hover {
  color: hsl(var(--accent));
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background-color: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  padding: var(--space-8) 0 var(--space-6);
  margin-top: var(--space-8);
}
/* define space-8 separately since it wasn't in root map, or use calc */
.footer {
  padding: var(--space-6) 0 var(--space-4); /* Fallback to space-6 */
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }
}

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

.footer__brand {
  max-width: 320px;
}

.footer__logo {
  display: inline-flex;
}

.footer__logo-image {
  width: 176px;
  height: auto;
  object-fit: contain;
  margin-bottom: var(--space-3);
}

.footer__desc {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

.footer__whatsapp {
  margin-top: var(--space-3);
}

.footer__telegram-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding: 0.5rem 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer__telegram-link i {
  color: #229ed9;
  font-size: 1rem;
}

.footer__telegram-link:hover {
  color: hsl(var(--foreground));
  border-color: hsl(var(--primary));
  transform: translateY(-1px);
}

.footer__heading {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: hsl(var(--foreground));
  letter-spacing: 0.025em;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__link {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: hsl(var(--foreground));
}

.footer__bottom {
  grid-column: 1 / -1;
  border-top: 1px solid hsl(var(--border));
  padding-top: var(--space-4);
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer__disclaimer {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer__disclaimer .age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid hsl(var(--destructive));
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  color: hsl(var(--destructive));
}

.footer__copyright {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* --------------------------------------------------------------------------
   DETAIL PAGE: BREADCRUMBS
   -------------------------------------------------------------------------- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.breadcrumbs__separator {
  opacity: 0.4;
  font-size: 0.75rem;
}

.breadcrumbs__link:hover {
  color: hsl(var(--foreground));
}

.breadcrumbs__current {
  color: hsl(var(--foreground));
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   DETAIL PAGE: HERO
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   DETAIL PAGE: HERO
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   DETAIL PAGE: LAYOUT (SHADCN STYLE)
   -------------------------------------------------------------------------- */
.detail-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-10);
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4);
  align-items: start;
}

@media (max-width: 1024px) {
  .detail-content {
    grid-template-columns: 1fr;
    max-width: 800px;
  }
  .detail-sidebar {
    order: 1; /* Sidebar after content on mobile */
    margin-top: var(--space-8);
  }
}

/* --------------------------------------------------------------------------
   DETAIL PAGE: HERO
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   DETAIL PAGE: HERO (SPLIT LAYOUT)
   -------------------------------------------------------------------------- */
.detail-hero {
  display: grid;
  grid-template-columns: 1fr 450px; /* Text takes space, Image fixed width */
  gap: var(--space-8);
  align-items: center;
  margin-bottom: var(--space-8);
  border-bottom: 1px solid hsl(var(--border));
  padding-bottom: var(--space-8);
}

@media (max-width: 900px) {
  .detail-hero {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .detail-hero__image {
    order: -1; /* Image on top for mobile visual interest */
  }
}

.detail-hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 100%; /* Full width of its column */
}

.detail-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.detail-hero__category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  border: 1px solid hsl(var(--primary) / 0.2);
}

.detail-hero__title {
  font-family: var(--font-family);
  font-size: clamp(2rem, 4vw, 3rem); /* Slightly more compact for split layout */
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: hsl(var(--foreground));
}

.detail-hero__teaser {
  font-size: 1.125rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
  font-weight: 400;
}

.detail-hero__image {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: none;
  background: transparent;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  aspect-ratio: 3 / 2;
  align-self: start; /* Align to top of text */
}

.detail-hero__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* --------------------------------------------------------------------------
   DETAIL PAGE: TYPOGRAPHY (SHADCN PROSE)
   -------------------------------------------------------------------------- */
.article-blocks {
  max-width: 65ch; /* Optimal reading line length */
  margin: 0; /* Align left with grid */
}

.article-block {
  margin-bottom: var(--space-8);
  background: transparent;
  border: none;
  padding: 0;
}

/* Headings */
.article-block__title {
  font-family: var(--font-family);
  font-size: 1.875rem; /* 30px */
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: hsl(var(--foreground));
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid hsl(var(--border));
}

.article-block:first-child .article-block__title {
  margin-top: 0;
}

/* Paragraphs */
.article-block__content p {
  font-size: 1rem; /* 16px base size */
  line-height: 1.75; /* Relaxed reading height */
  margin-bottom: 1.5rem;
  color: hsl(var(--foreground)); /* High contrast text */
}

/* Lists */
.article-block__content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: grid;
  gap: 0.75rem;
}

.article-block__content li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
}

.article-block__content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em; /* Align with text vertical center approx */
  width: 6px;
  height: 6px;
  background-color: hsl(var(--foreground)); /* Subtle bullet */
  border-radius: 50%;
  opacity: 0.5;
}

.article-block__content li strong {
  color: hsl(var(--foreground));
  font-weight: 600;
}

/* Sidebar Styling - Sticky & Clean */
.detail-sidebar {
  position: sticky;
  top: 2rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.sidebar-box {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.sidebar-box__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-box__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.sidebar-box__list li {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  display: flex;
  align-items: start;
  gap: var(--space-2);
}

.sidebar-box__list li::before {
  content: "•";
  color: hsl(var(--primary));
}

.article-block__content ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.article-block__content li {
  position: relative;
  padding-left: var(--space-4);
}

.article-block__content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: hsl(var(--primary));
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   DETAIL PAGE: SIDEBAR
   -------------------------------------------------------------------------- */
.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: sticky;
  top: calc(var(--header-height) + var(--space-4));
}

.sidebar-box {
  background-color: hsl(var(--card));
  border-radius: var(--radius);
  padding: var(--space-4);
  border: 1px solid hsl(var(--border));
}

.sidebar-box__title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-box__list {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.sidebar-box__list li {
  position: relative;
  padding-left: var(--space-3);
}

.sidebar-box__list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: hsl(var(--primary));
}

.sidebar-cta {
  background: linear-gradient(
    135deg,
    hsl(var(--secondary)) 0%,
    hsl(var(--card)) 100%
  );
  text-align: center;
  padding: var(--space-6);
  border: 1px solid hsl(var(--border));
}

.sidebar-cta__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: hsl(var(--foreground));
}

.sidebar-cta__text {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: var(--space-4);
}

/* --------------------------------------------------------------------------
   RELATED PROMOS
   -------------------------------------------------------------------------- */
.related-section {
  border-top: 1px solid hsl(var(--border));
  padding-top: var(--space-8);
  margin-top: var(--space-8);
}

/* --------------------------------------------------------------------------
   UTILITY CLASSES
   -------------------------------------------------------------------------- */
.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;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }

/* --------------------------------------------------------------------------
   MOBILE REDESIGN (EDITORIAL NIGHT)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  body {
    background:
      radial-gradient(circle at 18% -8%, hsl(var(--primary) / 0.25), transparent 45%),
      radial-gradient(circle at 92% -18%, hsl(205 90% 55% / 0.17), transparent 42%),
      hsl(var(--background));
  }

  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 1.05rem 0;
  }

  .header {
    height: auto;
    border-bottom: 1px solid hsl(var(--border) / 0.75);
    background-color: hsl(var(--background) / 0.88);
  }

  .header__inner {
    min-height: 68px;
    gap: 0.5rem;
    padding: 0.5rem 0;
  }

  .header__logo {
    min-width: 0;
    flex: 1 1 auto;
  }

  .header__logo-image {
    width: auto;
    height: 40px;
    max-width: 168px;
  }

  .header__nav {
    display: none;
  }

  .header__actions {
    display: none;
  }

  .header__menu-btn {
    display: inline-flex;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border-radius: 0.75rem;
    border-color: hsl(var(--border) / 0.9);
    background: hsl(var(--secondary) / 0.82);
  }

  body.mobile-nav-lock {
    overflow: hidden;
  }

  .mobile-nav {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 120;
    pointer-events: none;
    visibility: hidden;
  }

  .mobile-nav__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background: hsl(var(--background) / 0.72);
    backdrop-filter: blur(6px);
    transition: opacity 0.24s ease;
  }

  .mobile-nav__panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(88vw, 342px);
    padding: calc(env(safe-area-inset-top) + 1rem) 1rem calc(env(safe-area-inset-bottom) + 1.1rem);
    display: flex;
    flex-direction: column;
    background:
      radial-gradient(circle at 85% 8%, hsl(var(--primary) / 0.18), transparent 48%),
      linear-gradient(180deg, hsl(225 22% 11%), hsl(var(--background)));
    border-left: 1px solid hsl(var(--border));
    box-shadow: -16px 0 36px rgba(0, 0, 0, 0.45);
    transform: translateX(106%);
    transition: transform 0.24s ease;
  }

  .mobile-nav.mobile-nav--open {
    pointer-events: auto;
    visibility: visible;
  }

  .mobile-nav.mobile-nav--open .mobile-nav__backdrop {
    opacity: 1;
  }

  .mobile-nav.mobile-nav--open .mobile-nav__panel {
    transform: translateX(0);
  }

  .mobile-nav__head {
    margin-bottom: 0.9rem;
  }

  .mobile-nav__eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.11em;
  }

  .mobile-nav__close {
    width: 1.9rem;
    height: 1.9rem;
  }

  .mobile-nav__link {
    font-size: 0.98rem;
    padding: 0.9rem 1rem;
    border-radius: 0.78rem;
    border: 1px solid hsl(var(--border) / 0.9);
    background: hsl(var(--secondary) / 0.8);
  }

  .mobile-nav__actions {
    margin-top: 1rem;
    gap: 0.65rem;
    padding-top: 1rem;
    border-top: 1px solid hsl(var(--border) / 0.7);
  }

  .mobile-nav__actions .btn {
    height: 2.8rem;
    border-radius: 0.78rem;
  }

  .hero {
    padding: 0.55rem 0 0.2rem;
    text-align: left;
  }

  .hero .container {
    border-radius: 1rem;
    border: 1px solid hsl(var(--border) / 0.9);
    padding: 1rem;
    background:
      linear-gradient(132deg, hsl(var(--card)) 0%, hsl(var(--secondary) / 0.62) 55%, hsl(var(--background)) 100%);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
  }

  .hero__title {
    font-size: clamp(2rem, 10vw, 2.65rem);
    line-height: 1.01;
    margin-bottom: 0.8rem;
    letter-spacing: -0.03em;
  }

  .hero__subtitle {
    margin: 0 0 1rem;
    max-width: none;
    font-size: 0.95rem;
    line-height: 1.58;
    color: hsl(var(--muted-foreground));
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .hero--home {
    padding: 2.3rem 0 2rem;
    text-align: center;
    background-position: center;
  }

  .hero--home .container {
    border: none;
    padding: 0 0.85rem;
    background: transparent;
    box-shadow: none;
  }

  .hero--home .hero__subtitle {
    margin: 0 auto 1rem;
    max-width: 680px;
  }

  .hero--home .hero__actions {
    justify-content: center;
  }

  .hero--home .hero__actions .btn {
    width: auto;
    min-width: 220px;
    height: 2.8rem;
    font-size: 0.98rem;
    border-radius: 0.7rem;
  }

  .section-header {
    margin-bottom: 0.55rem;
    align-items: end;
  }

  .section-header__title {
    font-size: 1.15rem;
    letter-spacing: -0.02em;
  }

  .section-header__link {
    font-size: 0.88rem;
    padding: 0.22rem 0.55rem;
    border: 1px solid hsl(var(--border));
    border-radius: 999px;
    background: hsl(var(--card));
  }

  .promo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .promo-card {
    min-width: 0;
    border: 1px solid hsl(var(--border));
    border-radius: 0.95rem;
    padding: 0.46rem;
    background: linear-gradient(180deg, hsl(var(--card)), hsl(var(--secondary) / 0.35));
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  }

  .promo-card__image {
    margin-bottom: 0.7rem;
    border-radius: 0.72rem;
    border-color: hsl(var(--border));
  }

  .promo-card__title {
    min-height: initial;
    font-size: 1.8rem;
  }

  .promo-card__summary {
    -webkit-line-clamp: 3;
    line-clamp: 3;
    min-height: 4.1em;
    margin-bottom: 0.75rem;
    font-size: 0.92rem;
  }

  .promo-card__cta {
    width: 100%;
    height: 2.55rem;
    border-radius: 0.65rem;
  }

  .seo-article {
    border-radius: 1rem;
    padding: 1rem;
    background:
      radial-gradient(circle at 90% 4%, hsl(var(--primary) / 0.16), transparent 40%),
      hsl(var(--card));
  }

  .seo-article h2 {
    font-size: 2.2rem;
    line-height: 1.05;
    margin-bottom: 0.9rem;
    letter-spacing: -0.03em;
  }

  .seo-article p {
    font-size: 0.95rem;
    line-height: 1.67;
  }

  .hero__warning {
    width: 100%;
    justify-content: center;
    border-radius: 0.66rem;
    margin-bottom: 0;
  }

  .hero__warning span {
    font-size: 0.78rem;
  }

  .breadcrumbs {
    font-size: 0.74rem;
    gap: 0.34rem;
    margin: 0.55rem 0;
  }

  .detail-hero {
    gap: 0.95rem;
    margin-bottom: 0.95rem;
    padding-bottom: 0.95rem;
  }

  .detail-hero__title {
    font-size: clamp(1.66rem, 8.4vw, 2.15rem);
  }

  .detail-hero__teaser {
    font-size: 0.98rem;
  }

  .detail-content {
    gap: 0.95rem;
    padding: 0;
  }

  .article-blocks {
    max-width: none;
  }

  .article-block__title {
    font-size: 1.34rem;
    margin-top: 1.25rem;
  }

  .article-block__content p,
  .article-block__content li {
    font-size: 0.97rem;
    line-height: 1.65;
  }

  .promo-list {
    gap: 0.62rem;
  }

  .promo-row {
    grid-template-columns: 70px 1fr;
    gap: 0.7rem;
    padding: 0.66rem;
    border-radius: 0.72rem;
  }

  .promo-row__value,
  .promo-row .btn {
    display: none;
  }

  .promo-row__image {
    width: 70px;
    height: 70px;
    border-radius: 0.56rem;
  }

  .promo-row__title {
    font-size: 0.88rem;
    margin-bottom: 0.25rem;
  }

  .promo-row__meta {
    font-size: 0.73rem;
  }

  .footer {
    margin-top: 1.2rem;
    padding-top: 1.1rem;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }

  .footer__logo-image {
    width: 136px;
  }

  .footer__desc,
  .footer__link {
    font-size: 0.86rem;
  }
}

@media (max-width: 380px) {
  .container {
    padding: 0 0.85rem;
  }

  .header__logo-image {
    height: 36px;
    max-width: 150px;
  }

  .header__menu-btn {
    width: 40px;
    height: 40px;
  }
}

/* --------------------------------------------------------------------------
   HEADER + FOOTER REDESIGN (MODERN)
   -------------------------------------------------------------------------- */
.header {
  top: 0;
  height: auto;
  border-bottom: 1px solid hsl(var(--border) / 0.65);
  background:
    linear-gradient(180deg, hsl(232 27% 12% / 0.95), hsl(232 20% 10% / 0.88));
  backdrop-filter: blur(14px) saturate(140%);
}

.header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, hsl(var(--primary) / 0.45), transparent);
}

.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 74px;
  gap: 1rem;
}

.header__logo {
  min-width: 0;
}

.header__logo-image {
  width: auto;
  height: 50px;
  max-width: 208px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.header__nav {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.28rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--border) / 0.7);
  background: hsl(var(--secondary) / 0.55);
}

.header__nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease, background-color 0.2s ease;
}

.header__nav-link:hover,
.header__nav-link--active {
  color: hsl(var(--foreground));
  background: hsl(var(--background) / 0.82);
}

.header__actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.header__actions .btn {
  height: 2.35rem;
  padding: 0 0.95rem;
  border-radius: 0.75rem;
  font-size: 0.86rem;
}

.header__actions .btn--secondary {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.55);
}

.header__menu-btn {
  display: none;
}

.mobile-nav {
  display: none;
}

.footer {
  margin-top: 3.2rem;
  padding: 2.4rem 0 1.25rem;
  border-top: 1px solid hsl(var(--border) / 0.72);
  background:
    radial-gradient(circle at 14% -20%, hsl(var(--primary) / 0.18), transparent 45%),
    linear-gradient(180deg, hsl(231 25% 12%), hsl(232 20% 9%));
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(180px, 0.8fr);
  gap: 2rem;
  align-items: start;
}

.footer__brand {
  max-width: 460px;
}

.footer__logo-image {
  width: 186px;
  height: auto;
  margin-bottom: 0.9rem;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}

.footer__desc {
  margin: 0;
  color: hsl(var(--muted-foreground));
  line-height: 1.62;
}

.footer__brand .footer__desc + .footer__desc {
  margin-top: 0.5rem !important;
}

.footer__whatsapp {
  margin-top: 0.95rem;
}

.footer__heading {
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.footer__links {
  display: grid;
  gap: 0.45rem;
}

.footer__link {
  font-size: 0.94rem;
  color: hsl(var(--foreground));
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer__link:hover {
  opacity: 1;
  transform: translateX(2px);
}

.footer__bottom {
  margin-top: 1.6rem;
  padding-top: 0.85rem;
  border-top: 1px solid hsl(var(--border) / 0.65);
}

.footer__bottom p {
  color: hsl(var(--muted-foreground));
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .header__inner {
    grid-template-columns: 1fr auto;
    min-height: 68px;
    gap: 0.65rem;
    padding: 0.3rem 0;
  }

  .header__logo-image {
    height: 42px;
    max-width: 172px;
  }

  .header__nav,
  .header__actions {
    display: none;
  }

  .header__menu-btn {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 0.82rem;
    border: 1px solid hsl(var(--border) / 0.9);
    background: hsl(var(--secondary) / 0.78);
    color: hsl(var(--foreground));
  }

  .mobile-nav {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 120;
    pointer-events: none;
    visibility: hidden;
  }

  .mobile-nav__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background: hsl(var(--background) / 0.7);
    backdrop-filter: blur(6px);
    transition: opacity 0.22s ease;
  }

  .mobile-nav__panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(86vw, 356px);
    padding: calc(env(safe-area-inset-top) + 1rem) 1rem calc(env(safe-area-inset-bottom) + 1.15rem);
    display: flex;
    flex-direction: column;
    background:
      radial-gradient(circle at 88% 12%, hsl(var(--primary) / 0.2), transparent 44%),
      linear-gradient(180deg, hsl(229 26% 13%), hsl(232 20% 8%));
    border-left: 1px solid hsl(var(--border) / 0.9);
    box-shadow: -16px 0 34px rgba(0, 0, 0, 0.42);
    transform: translateX(104%);
    transition: transform 0.24s ease;
  }

  .mobile-nav.mobile-nav--open {
    pointer-events: auto;
    visibility: visible;
  }

  .mobile-nav.mobile-nav--open .mobile-nav__backdrop {
    opacity: 1;
  }

  .mobile-nav.mobile-nav--open .mobile-nav__panel {
    transform: translateX(0);
  }

  .mobile-nav__head {
    margin-bottom: 0.9rem;
  }

  .mobile-nav__link {
    padding: 0.92rem 1rem;
    border-radius: 0.82rem;
    border: 1px solid hsl(var(--border) / 0.9);
    background: hsl(var(--secondary) / 0.76);
    font-size: 0.98rem;
  }

  .mobile-nav__actions {
    margin-top: 1rem;
    gap: 0.62rem;
    padding-top: 1rem;
    border-top: 1px solid hsl(var(--border) / 0.7);
  }

  .mobile-nav__actions .btn {
    height: 2.8rem;
    border-radius: 0.82rem;
  }

  .footer {
    margin-top: 2.2rem;
    padding-top: 1.7rem;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .footer__logo-image {
    width: 156px;
  }
}

@media (max-width: 420px) {
  .header__logo-image {
    height: 38px;
    max-width: 156px;
  }

  .header__menu-btn {
    width: 40px;
    height: 40px;
  }

  .mobile-nav__panel {
    width: min(92vw, 340px);
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }
}

/* --------------------------------------------------------------------------
   MOBILE MENU BUTTONS FIX (FINAL OVERRIDE)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .mobile-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.68rem;
  }

  .mobile-nav__list li {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .mobile-nav__link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 52px;
    padding: 0 1rem;
    border-radius: 0.86rem;
    border: 1px solid hsl(var(--border) / 0.9);
    background:
      linear-gradient(180deg, hsl(var(--secondary) / 0.95), hsl(var(--secondary) / 0.8));
    color: hsl(var(--foreground));
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
  }

  .mobile-nav__link:hover,
  .mobile-nav__link:focus-visible {
    border-color: hsl(var(--primary) / 0.85);
    background:
      linear-gradient(180deg, hsl(var(--secondary)), hsl(var(--secondary) / 0.88));
    transform: translateX(2px);
  }

  .mobile-nav__actions {
    margin-top: auto;
  }

  .mobile-nav__actions .btn {
    width: 100%;
    min-height: 50px;
    font-size: 0.96rem;
    font-weight: 700;
  }
}

/* --------------------------------------------------------------------------
   LOGO HOTFIX (DESKTOP + MOBILE)
   -------------------------------------------------------------------------- */
.header__logo {
  overflow: hidden;
}

.header .header__logo-image {
  display: block !important;
  width: auto !important;
  height: 48px !important;
  max-width: 188px !important;
  object-fit: contain !important;
}

.header .header__nav-link {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .header .header__logo-image {
    height: 38px !important;
    max-width: 148px !important;
  }
}

@media (max-width: 420px) {
  .header .header__logo-image {
    height: 34px !important;
    max-width: 132px !important;
  }
}
