/* Top Finanzas España — Rioja + Ochre + Milk */

/* Kill all paragraph max-width caps (inline or class-based) */
p[style*="max-width"] { max-width: none !important; }

:root {
  --c-primary: #6E1F2E;
  --c-primary-deep: #4E1620;
  --c-primary-soft: #8E3A47;
  --c-accent: #D4A24C;
  --c-accent-deep: #B5852F;
  --c-bg: #FBF8F3;
  --c-bg-warm: #F5EEDF;
  --c-surface: #FFFFFF;
  --c-text: #1A1410;
  --c-text-2: #3A2E26;
  --c-muted: #6B5F58;
  --c-divider: #E5DCC9;
  --c-divider-2: #D6C8AC;
  --c-success: #2F7A4D;
  --c-danger: #B53A2C;
  --c-line: rgba(26, 20, 16, .08);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-sm: 0 1px 2px rgba(26, 20, 16, .06);
  --shadow-md: 0 4px 14px rgba(26, 20, 16, .08), 0 1px 2px rgba(26, 20, 16, .04);
  --shadow-lg: 0 18px 40px -16px rgba(110, 31, 46, .25), 0 4px 12px rgba(26, 20, 16, .06);
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  overflow-x: clip;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--c-primary); text-decoration: none; transition: color .25s var(--ease); overflow-wrap: break-word; word-break: break-word; }
a:hover { color: var(--c-primary-deep); }
button { font-family: inherit; font-weight: 600; cursor: pointer; border: 0; background: none; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.18;
  color: var(--c-text);
  overflow-wrap: break-word;
  word-break: break-word;
}
h1 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p { font-size: 1.0625rem; line-height: 1.65; color: var(--c-text-2); }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 56px); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .01em;
  text-decoration: none;
  transition: transform .2s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
}
.btn--primary { background: var(--c-primary); color: #FBF8F3; box-shadow: 0 8px 22px -10px rgba(110, 31, 46, .55); }
.btn--primary:hover { background: var(--c-primary-deep); color: #FBF8F3; transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(110, 31, 46, .65); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--c-primary); border: 1.5px solid var(--c-divider-2); }
.btn--ghost:hover { background: var(--c-bg-warm); color: var(--c-primary-deep); border-color: var(--c-primary); }
.btn--accent { background: var(--c-accent); color: var(--c-text); }
.btn--accent:hover { background: var(--c-accent-deep); color: #FBF8F3; transform: translateY(-1px); }
.btn--full { width: 100%; }
.btn .ic { width: 18px; height: 18px; }

/* Icon helper */
.ic { width: 24px; height: 24px; display: inline-block; vertical-align: middle; }

/* ==================== HEADER ==================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 248, 243, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-divider);
  overflow: visible;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-block: 14px;
  padding-inline: clamp(24px, 5vw, 56px);
  position: relative;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; color: var(--c-text); letter-spacing: -.01em; }
.brand:hover { color: var(--c-primary); }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(110, 31, 46, .18));
}
.brand-text { white-space: nowrap; }
.brand-text strong { color: var(--c-primary); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--c-text-2);
  position: relative;
  padding: 6px 0;
  transition: color .2s var(--ease);
}
.nav a:hover { color: var(--c-primary); }
.nav a.is-active { color: var(--c-primary); }

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--c-bg-warm);
  font-weight: 700;
  font-size: 13px;
  color: var(--c-text-2);
  border: 1px solid var(--c-divider);
}
.lang-switch .ic { width: 14px; height: 14px; }

/* Burger */
.burger {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  z-index: 110;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--c-bg-warm);
  border: 1px solid var(--c-divider);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.burger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--c-primary);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1220px) {
  .burger { display: block; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    max-height: calc(100dvh - var(--header-offset, 64px));
    z-index: 100;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px clamp(20px, 4vw, 56px) 28px;
    background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-warm) 100%);
    border-top: 1px solid var(--c-divider);
    box-shadow: 0 24px 40px rgba(26, 20, 16, .12);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .3s var(--ease), opacity .25s var(--ease), visibility 0s linear .3s;
  }
  .nav[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform .3s var(--ease), opacity .25s var(--ease), visibility 0s linear 0s;
  }
  .nav a {
    width: 100%;
    padding: 16px 0;
    font-size: 19px;
    color: var(--c-text);
    text-align: left;
    border-bottom: 1px solid var(--c-divider);
  }
  .nav a.is-active { color: var(--c-primary); }
  .nav-mobile-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 16px; }
  .nav-mobile-actions .btn { width: 100%; }
  .nav-mobile-actions .btn--primary { color: #FBF8F3; }
  .nav-mobile-actions .lang-switch { align-self: center; }
  .header-actions .lang-switch,
  .header-actions .btn--primary { display: none; }
}
@media (min-width: 1221px) {
  .nav-mobile-actions { display: none; }
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  padding: 80px 0;
  background-color: var(--c-bg);
  background-image:
    linear-gradient(102deg, rgba(251, 248, 243, .97) 0%, rgba(251, 248, 243, .92) 35%, rgba(251, 248, 243, .58) 60%, rgba(251, 248, 243, .15) 88%, rgba(251, 248, 243, 0) 100%),
    radial-gradient(70% 90% at 100% 30%, rgba(110, 31, 46, .18) 0%, transparent 65%),
    url('/assets/img/hero-neutral.avif');
  background-size: cover, cover, cover;
  background-position: center, center right, center right;
  background-repeat: no-repeat;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .08 0 0 0 0 .06 0 0 0 .3 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .05;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  right: -120px; top: -80px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(212, 162, 76, .22), transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: hero-glow 14s var(--ease) infinite;
}
@keyframes hero-glow {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: .85; }
  50% { transform: scale(1.18) translate(-20px, 30px); opacity: 1; }
}
.hero__inner {
  position: relative;
  z-index: 1;
  animation: hero-fade-up .9s var(--ease) both;
}
.hero__title {
  font-size: clamp(1.9rem, 4.2vw, 3.8rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: 0 0 30px;
  color: var(--c-text);
}
.hero__title-em {
  color: var(--c-primary);
  display: inline-block;
  position: relative;
}
.hero__title-em::after {
  content: '';
  position: absolute;
  left: -2px; right: -2px; bottom: .06em;
  height: .22em;
  background: rgba(212, 162, 76, .42);
  z-index: -1;
  border-radius: 4px;
}
.hero__title-italic {
  font-style: italic;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--c-accent-deep);
  display: inline-block;
}
.hero__lead {
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  color: var(--c-text-2);
  line-height: 1.55;
  margin: 0 0 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: clamp(48px, 6vw, 76px); }
.hero__live {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.4vw, 18px);
  position: relative;
}
.hero-tile {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: rgba(255, 255, 255, .76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(229, 220, 201, .7);
  border-radius: 18px;
  box-shadow: 0 8px 24px -12px rgba(26, 20, 16, .12);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.hero-tile:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -14px rgba(110, 31, 46, .22); border-color: rgba(212, 162, 76, .5); }
.hero-tile__ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(110, 31, 46, .12), rgba(212, 162, 76, .2));
  color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-tile__ico .ic { width: 18px; height: 18px; }
.hero-tile__body { min-width: 0; }
.hero-tile__label { font-size: 11px; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .1em; display: block; }
.hero-tile strong { font-size: 1.5rem; font-weight: 800; color: var(--c-primary); display: block; margin: 4px 0 2px; letter-spacing: -.02em; line-height: 1.1; }
.hero-tile__delta { font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.hero-tile__delta--down { color: var(--c-success); }
.hero-tile__delta--up { color: var(--c-accent-deep); }
.hero-tile__delta--neutral { color: var(--c-muted); }

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1220px) {
  .hero {
    background-image:
      linear-gradient(180deg, rgba(251, 248, 243, .94) 0%, rgba(251, 248, 243, .78) 55%, rgba(251, 248, 243, .55) 100%),
      url('/assets/img/hero-neutral.avif');
    background-size: cover, cover;
    background-position: center, center 80%;
  }
}
@media (max-width: 1100px) {
  .hero__live { grid-template-columns: repeat(2, 1fr); max-width: none; }
}
@media (max-width: 520px) {
  .hero__live { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; width: 100%; }
}

/* ==================== SECTIONS ==================== */
.section { padding: clamp(56px, 8vw, 110px) 0; position: relative; }
.section--warm { background: var(--c-bg-warm); }
.section--surface { background: var(--c-surface); }
.section__head { display: flex; flex-direction: column; gap: 14px; }
.section__head .label {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.section__head .lead { color: var(--c-muted); font-size: 1.1rem; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.in.stagger > * {
  animation: rev-in .7s var(--ease) both;
}
.reveal.in.stagger > *:nth-child(1) { animation-delay: 0s; }
.reveal.in.stagger > *:nth-child(2) { animation-delay: .08s; }
.reveal.in.stagger > *:nth-child(3) { animation-delay: .16s; }
.reveal.in.stagger > *:nth-child(4) { animation-delay: .24s; }
.reveal.in.stagger > *:nth-child(5) { animation-delay: .32s; }
.reveal.in.stagger > *:nth-child(6) { animation-delay: .4s; }
@keyframes rev-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* USP */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.usp-card {
  background: var(--c-surface);
  border: 1px solid var(--c-divider);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.usp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.usp-card__ico {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(110, 31, 46, .08), rgba(212, 162, 76, .15));
  display: flex; align-items: center; justify-content: center;
  color: var(--c-primary);
  margin-bottom: 18px;
}
.usp-card__ico .ic { width: 26px; height: 26px; }
.usp-card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.usp-card p { font-size: .95rem; color: var(--c-muted); }
@media (max-width: 820px) { .usp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 430px) { .usp-grid { grid-template-columns: 1fr; gap: 14px; } }

/* Top products table */
.top-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-lg); border: 1px solid var(--c-divider); background: var(--c-surface); }
.top-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.top-table th, .top-table td { padding: 18px 18px; text-align: left; font-size: 14px; }
.top-table thead th { background: var(--c-bg-warm); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); border-bottom: 1px solid var(--c-divider); }
.top-table tbody tr:nth-child(even) { background: rgba(212, 162, 76, .04); }
.top-table tbody tr:hover { background: rgba(110, 31, 46, .04); }
.top-table tbody tr.is-best td:first-child { position: relative; }
.top-table tbody tr.is-best td:first-child::before {
  content: 'BEST VALUE';
  position: absolute;
  top: -6px; left: 12px;
  padding: 2px 8px;
  background: var(--c-accent);
  color: var(--c-text);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  border-radius: 4px;
}
.top-table .prod { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.top-table .prod .ic-thumb { width: 36px; height: 36px; border-radius: 8px; background: var(--c-primary); color: #FBF8F3; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.top-table .rate { font-size: 1.05rem; font-weight: 800; color: var(--c-primary); }
.top-table .rate small { font-size: 11px; font-weight: 600; color: var(--c-muted); display: block; }
.top-table .rating { display: inline-flex; gap: 2px; color: var(--c-accent); }
.top-table .rating .ic { width: 14px; height: 14px; }

/* Categories grid */
.cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.cat-card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-divider);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-bg-warm);
}
.cat-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat-card:hover .cat-card__img img { transform: scale(1.04); }
.cat-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cat-card__body h3 { font-size: 1.15rem; margin-bottom: 4px; }
.cat-card__body p { font-size: .92rem; color: var(--c-muted); flex: 1; }
.cat-card__cta { display: inline-flex; align-items: center; gap: 6px; color: var(--c-primary); font-weight: 700; font-size: 14px; margin-top: 8px; }
.cat-card__cta .ic { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.cat-card:hover .cat-card__cta .ic { transform: translateX(4px); }
@media (max-width: 1100px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cats { grid-template-columns: 1fr; } }

/* Live ticker */
.ticker {
  background: linear-gradient(90deg, var(--c-primary-deep) 0%, var(--c-primary) 50%, var(--c-primary-deep) 100%);
  color: #FBF8F3;
  padding: 14px 0;
  overflow: hidden;
  position: relative;
  border-block: 1px solid rgba(212, 162, 76, .2);
}
.ticker::before, .ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--c-primary-deep), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--c-primary-deep), transparent); }
.ticker__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: ticker 60s linear infinite;
  font-weight: 600;
  font-size: 14px;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}
.ticker__track > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 56px;
  flex-shrink: 0;
}
.ticker__track .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); flex-shrink: 0; padding: 0; }
@keyframes ticker {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}

/* Blog cards */
.blogs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.blog-card {
  background: var(--c-surface);
  border: 1px solid var(--c-divider);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card__cover { aspect-ratio: 16 / 10; overflow: hidden; }
.blog-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.blog-card:hover .blog-card__cover img { transform: scale(1.04); }
.blog-card__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card__chip {
  display: inline-flex; align-self: flex-start;
  padding: 4px 10px;
  background: rgba(212, 162, 76, .15);
  color: var(--c-accent-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
}
.blog-card h3 { font-size: 1.2rem; line-height: 1.3; color: var(--c-text); flex: 1; }
.blog-card h3 a { color: inherit; }
.blog-card h3 a:hover { color: var(--c-primary); }
.blog-card__meta { display: flex; gap: 14px; font-size: 13px; color: var(--c-muted); align-items: center; }
.blog-card__meta .ic { width: 14px; height: 14px; }
@media (max-width: 1100px) { .blogs { grid-template-columns: 1fr; gap: 22px; } }

/* Trust */
.trust {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.trust__visual { order: 2; }
.trust__visual img { width: 100%; max-width: 520px; margin-left: auto; }
.trust__list { display: flex; flex-direction: column; gap: 20px; margin-top: 22px; }
.trust__item { display: flex; gap: 16px; }
.trust__item .ic-wrap {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(110, 31, 46, .08);
  color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.trust__item h4 { font-size: 1.05rem; margin-bottom: 4px; }
.trust__item p { font-size: .95rem; color: var(--c-muted); }
@media (max-width: 1100px) {
  .trust { grid-template-columns: 1fr; }
  .trust__visual { order: 0; }
  .trust__visual img { margin: 0 auto; }
}

/* Subscribe */
.subscribe {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-deep) 100%);
  color: #FBF8F3;
  border-radius: var(--r-xl);
  padding: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.subscribe::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 162, 76, .35), transparent 65%);
  top: -100px; right: -100px;
}
.subscribe h2 { color: #FBF8F3; }
.subscribe p { color: rgba(251, 248, 243, .82); margin-top: 12px; font-size: 1.05rem; }
.subscribe__form { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; max-width: 520px; }
.subscribe__row { display: flex; gap: 10px; }
.subscribe__row input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(251, 248, 243, .25);
  background: rgba(251, 248, 243, .12);
  color: #FBF8F3;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.subscribe__row input::placeholder { color: rgba(251, 248, 243, .55); }
.subscribe__row input:focus { outline: 0; border-color: var(--c-accent); background: rgba(251, 248, 243, .18); }
.subscribe__row button { background: var(--c-accent); color: var(--c-text); padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 14px; transition: background-color .25s var(--ease), transform .2s var(--ease); white-space: nowrap; }
.subscribe__row button:hover { background: #E8B85F; transform: translateY(-1px); }
.subscribe__check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: rgba(251, 248, 243, .8); }
.subscribe__check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--c-accent); flex-shrink: 0; }
.subscribe__check a { color: var(--c-accent); text-decoration: underline; }
.subscribe__visual { position: relative; z-index: 1; }
.subscribe__visual img { width: 100%; max-width: 380px; margin-left: auto; }
@media (max-width: 820px) {
  .subscribe { grid-template-columns: 1fr; padding: 32px 24px; }
  .subscribe__visual { display: none; }
  .subscribe__row { flex-direction: column; }
}

/* FAQ accordion */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--c-surface);
  border: 1px solid var(--c-divider);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.faq details.is-open { border-color: var(--c-accent); box-shadow: var(--shadow-md); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--c-text);
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  width: 26px; height: 26px;
  border-radius: 50%;
  background-color: var(--c-bg-warm);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E1F2E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-size: 14px 14px;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 360ms cubic-bezier(.22, 1, .36, 1);
  flex-shrink: 0;
}
.faq details.is-open summary::after { transform: rotate(180deg); }
.faq .faq__body {
  overflow: hidden;
}
.faq .faq__body > * {
  padding: 0 24px;
  color: var(--c-text-2);
  font-size: .98rem;
  line-height: 1.6;
}
.faq .faq__body > *:first-child { padding-top: 4px; }
.faq .faq__body > *:last-child { padding-bottom: 22px; }
.faq .faq__body p { font-size: inherit; color: inherit; }
.faq .faq__body p + p { margin-top: 12px; }

/* Final CTA */
.final-cta {
  text-align: center;
  background: var(--c-bg-warm);
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 80px);
  background-image:
    radial-gradient(600px 300px at 15% 30%, rgba(212, 162, 76, .25), transparent 65%),
    radial-gradient(500px 280px at 85% 70%, rgba(110, 31, 46, .14), transparent 65%);
}
.final-cta h2 { margin-bottom: 14px; }
.final-cta p { font-size: 1.1rem; color: var(--c-muted); margin: 0 auto 28px; }
.final-cta__row { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ==================== FOOTER ==================== */
.site-footer {
  background: var(--c-text);
  color: rgba(251, 248, 243, .82);
  padding: clamp(56px, 7vw, 84px) 0 32px;
  margin-top: auto;
}
.site-footer h4 { color: #FBF8F3; font-size: .95rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .1em; }
.site-footer a { color: rgba(251, 248, 243, .72); transition: color .2s var(--ease); }
.site-footer a:hover { color: var(--c-accent); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  margin-bottom: 44px;
}
.footer__brand { display: flex; flex-direction: column; gap: 16px; max-width: 320px; }
.footer__brand .brand { color: #FBF8F3; }
.footer__brand p { font-size: .92rem; color: rgba(251, 248, 243, .65); line-height: 1.6; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col ul a { font-size: .95rem; }
.footer__social {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 26px;
  border-top: 1px solid rgba(251, 248, 243, .12);
  border-bottom: 1px solid rgba(251, 248, 243, .12);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.footer__social-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(251, 248, 243, .55);
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-right: 6px;
}
.footer__social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(251, 248, 243, .07);
  color: rgba(251, 248, 243, .82);
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
  border: 1px solid rgba(251, 248, 243, .08);
}
.footer__social a:hover { background: var(--c-accent); color: var(--c-text); transform: translateY(-2px); border-color: var(--c-accent); }
.footer__social a .ic { width: 18px; height: 18px; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: rgba(251, 248, 243, .55);
}
.footer__legal a { color: rgba(251, 248, 243, .65); }
.footer__legal a + a::before { content: '·'; margin: 0 10px; color: rgba(251, 248, 243, .35); }
.footer__age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-deep) 100%);
  color: var(--c-text);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -.02em;
  padding: 0;
  border: 2px solid rgba(251, 248, 243, .14);
  box-shadow: 0 6px 18px -6px rgba(212, 162, 76, .55), inset 0 1px 0 rgba(255, 255, 255, .35);
  position: relative;
  flex-shrink: 0;
}
.footer__age::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1.5px solid rgba(26, 20, 16, .25);
  pointer-events: none;
}
.footer__social .footer__age { margin-left: auto; }
@media (max-width: 520px) {
  .footer__social .footer__age { margin-left: 0; }
}
.footer__disclaimer {
  font-size: .82rem;
  color: rgba(251, 248, 243, .45);
  line-height: 1.6;
  margin-top: 24px;
}
@media (max-width: 820px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ==================== PRODUCT CARDS (category pages) ==================== */
.product-list { display: flex; flex-direction: column; gap: 20px; }
.product-card {
  background: var(--c-surface);
  border: 1px solid var(--c-divider);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 32px);
  display: grid;
  grid-template-columns: 120px 1fr 240px;
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
  position: relative;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.product-card.is-best { border-color: var(--c-accent); }
.product-card.is-best::before {
  content: 'BEST VALUE';
  position: absolute;
  top: -10px; left: 24px;
  background: var(--c-accent);
  color: var(--c-text);
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  border-radius: 4px;
}
.product-card__brand { display: flex; flex-direction: column; gap: 10px; align-items: center; min-width: 110px; }
.product-card__logo {
  width: 76px; height: 76px;
  border-radius: 16px;
  background: var(--c-primary);
  color: #FBF8F3;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 24px;
  position: relative;
  flex-shrink: 0;
}
.product-card__logo::after {
  content: '';
  position: absolute;
  top: 12px; right: 12px;
  width: 10px; height: 10px;
  background: var(--c-accent);
  border-radius: 50%;
}
.product-card__brand .brand-name { font-size: 12px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; text-align: center; }
.product-card__main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.product-card__main h3 { font-size: 1.2rem; }
.product-card__rating { display: inline-flex; align-items: center; gap: 6px; color: var(--c-accent); font-weight: 700; font-size: 14px; color: var(--c-text-2); }
.product-card__rating .stars { display: inline-flex; color: var(--c-accent); }
.product-card__rating .stars .ic { width: 16px; height: 16px; }
.product-card__features { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--c-text-2); }
.product-card__features li { position: relative; padding-left: 24px; list-style: none; }
.product-card__features li::before {
  content: '';
  position: absolute;
  left: 0; top: 4px;
  width: 14px; height: 14px;
  background: var(--c-accent);
  border-radius: 50%;
  background-image: linear-gradient(45deg, transparent 40%, #FBF8F3 40% 60%, transparent 60%);
}
.product-card__rates { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--c-muted); padding-top: 6px; border-top: 1px solid var(--c-divider); margin-top: 4px; padding-top: 12px; }
.product-card__rates strong { color: var(--c-primary); font-weight: 800; font-size: 15px; display: block; }
.product-card__cta { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.product-card__cta .disclaimer { font-size: 11px; color: var(--c-muted); line-height: 1.5; text-align: center; }
@media (max-width: 1100px) {
  .product-card { grid-template-columns: 110px 1fr 200px; gap: 20px; }
}
@media (max-width: 820px) {
  .product-card { grid-template-columns: 1fr; text-align: center; }
  .product-card__brand { flex-direction: row; min-width: 0; justify-content: center; }
  .product-card__main { text-align: left; }
  .product-card__cta { width: 100%; }
  .product-card.is-best::before { left: 50%; transform: translateX(-50%); }
}

/* Category page intro */
.cat-intro { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.cat-intro__visual img { border-radius: var(--r-xl); }
@media (max-width: 1100px) { .cat-intro { grid-template-columns: 1fr; } }

/* Filter bar */
.filter-bar {
  background: var(--c-surface);
  border: 1px solid var(--c-divider);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  position: relative;
  z-index: 50;
}
.filter-bar__group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-bar__group strong { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--c-muted); margin-right: 6px; }
.chip {
  display: inline-flex;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--c-divider);
  background: var(--c-bg);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-2);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.chip:hover { border-color: var(--c-primary); color: var(--c-primary); }
.chip[aria-pressed="true"] { background: var(--c-primary); color: #FBF8F3; border-color: var(--c-primary); }
.filter-bar__sort { margin-left: auto; }

/* Custom select */
.cselect { position: relative; min-width: 200px; }
.cselect__trigger {
  width: 100%;
  padding: 11px 38px 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--c-divider);
  background: var(--c-bg);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
  text-align: left;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.cselect__trigger::after {
  content: '';
  position: absolute;
  right: 16px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--c-primary);
  border-bottom: 2px solid var(--c-primary);
  transform: translateY(-65%) rotate(45deg);
  transition: transform .25s var(--ease);
}
.cselect.is-open .cselect__trigger::after { transform: translateY(-30%) rotate(-135deg); }
.cselect__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-divider);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
  z-index: 100;
}
.cselect.is-open .cselect__panel { display: block; }
.cselect__opt {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-2);
  cursor: pointer;
}
.cselect__opt:hover { background: var(--c-bg-warm); color: var(--c-primary); }
.cselect__opt[aria-selected="true"] { background: var(--c-primary); color: #FBF8F3; }

/* Forms (modal/contact) */
.form { display: flex; flex-direction: column; gap: 18px; }
.form__row { display: flex; flex-direction: column; gap: 6px; }
.form__row label { font-size: 13px; font-weight: 600; color: var(--c-text-2); }
.form__row input,
.form__row textarea,
.form__row select {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--c-divider);
  background: var(--c-bg);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.form__row textarea { resize: none; min-height: 140px; line-height: 1.55; }
.form__row input:focus,
.form__row textarea:focus,
.form__row select:focus { outline: 0; border-color: var(--c-primary); background: var(--c-surface); }
.form__check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--c-muted); }
.form__check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--c-primary); flex-shrink: 0; }
.form__check a { text-decoration: underline; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 20, 16, .56);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), visibility 0s linear .25s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .25s var(--ease), visibility 0s linear 0s; }
.modal {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 540px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: clamp(24px, 4vw, 36px);
  position: relative;
  transform: translateY(20px) scale(.96);
  opacity: 0;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.modal-backdrop.is-open .modal { transform: translateY(0) scale(1); opacity: 1; }
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--c-bg-warm);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text-2);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.modal__close:hover { background: var(--c-primary); color: #FBF8F3; }
.modal h3 { font-size: 1.4rem; margin-bottom: 8px; }
.modal p { font-size: .95rem; color: var(--c-muted); margin-bottom: 22px; }
.modal__product { padding: 12px 14px; background: var(--c-bg-warm); border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--c-primary); margin-bottom: 18px; }

/* Toast */
.toast-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 20, 16, .48);
  z-index: 250;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), visibility 0s linear .25s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.toast-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .25s var(--ease), visibility 0s linear 0s; }
.toast {
  background: var(--c-surface);
  border-radius: var(--r-md);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  max-width: 360px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  transform: scale(.92);
  opacity: 0;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.toast-backdrop.is-open .toast { transform: scale(1); opacity: 1; }
.toast__ico {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.toast--ok .toast__ico { background: rgba(47, 122, 77, .12); color: var(--c-success); }
.toast--err .toast__ico { background: rgba(181, 58, 44, .12); color: var(--c-danger); }
.toast__ico .ic { width: 28px; height: 28px; }
.toast h4 { font-size: 1.1rem; }
.toast p { font-size: .92rem; color: var(--c-muted); margin: 0; }

/* Chat */
.chat-toggle {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 150;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #FBF8F3;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 32px -8px rgba(110, 31, 46, .55);
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.chat-toggle:hover { background: var(--c-primary-deep); transform: scale(1.06); }
.chat-toggle .ic { width: 26px; height: 26px; }
.chat-toggle .badge { position: absolute; top: 6px; right: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--c-accent); border: 2px solid var(--c-primary); }
.chat-panel {
  position: fixed;
  bottom: 90px; right: 22px;
  z-index: 151;
  width: 360px;
  height: 460px;
  max-width: calc(100vw - 44px);
  max-height: calc(100dvh - 120px);
  background: var(--c-surface);
  border-radius: var(--r-lg);
  box-shadow: 0 28px 60px -16px rgba(26, 20, 16, .35);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--c-divider);
}
.chat-panel.is-open { display: flex; animation: chat-in .3s var(--ease) both; }
@keyframes chat-in { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--c-primary); color: #FBF8F3; }
.chat-head__avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid rgba(251, 248, 243, .25); position: relative; }
.chat-head__avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-head__avatar::after { content: ''; position: absolute; bottom: -1px; right: -1px; width: 12px; height: 12px; border-radius: 50%; background: var(--c-success); border: 2px solid var(--c-primary); }
.chat-head h4 { color: #FBF8F3; font-size: 14px; }
.chat-head p { color: rgba(251, 248, 243, .8); font-size: 11px; margin: 0; }
.chat-head__close { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: rgba(251, 248, 243, .15); color: #FBF8F3; display: flex; align-items: center; justify-content: center; }
.chat-head__close:hover { background: rgba(251, 248, 243, .25); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; background: var(--c-bg); display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 80%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.msg--bot { background: var(--c-surface); border: 1px solid var(--c-divider); align-self: flex-start; border-top-left-radius: 4px; color: var(--c-text); }
.msg--me { background: var(--c-primary); color: #FBF8F3; align-self: flex-end; border-top-right-radius: 4px; }
.msg--typing { padding: 12px 14px; }
.msg--typing span { display: inline-block; width: 6px; height: 6px; background: var(--c-muted); border-radius: 50%; margin-right: 3px; animation: typing 1.2s var(--ease) infinite; }
.msg--typing span:nth-child(2) { animation-delay: .15s; }
.msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; max-width: 95%; }
.chat-quick button { padding: 6px 12px; border-radius: 999px; background: var(--c-bg-warm); color: var(--c-primary); font-size: 12px; font-weight: 700; border: 1px solid var(--c-divider); }
.chat-quick button:hover { background: var(--c-primary); color: #FBF8F3; }
.chat-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--c-divider); background: var(--c-surface); }
.chat-input input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--c-divider); background: var(--c-bg); font-family: inherit; font-size: 14px; }
.chat-input input:focus { outline: 0; border-color: var(--c-primary); }
.chat-input button { width: 38px; height: 38px; border-radius: 50%; background: var(--c-primary); color: #FBF8F3; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-input button:hover { background: var(--c-primary-deep); }
@media (max-width: 520px) {
  .chat-toggle { bottom: 16px; right: 16px; }
  .chat-panel { right: 16px; bottom: 80px; }
}

/* Cookie banner */
.cookie-bar {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  z-index: 180;
  background: var(--c-surface);
  border: 1px solid var(--c-divider);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 18px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  max-width: 760px;
  margin: 0 auto;
  transform: translateY(120%);
  transition: transform .35s var(--ease);
}
.cookie-bar.is-show { transform: translateY(0); }
.cookie-bar p { font-size: 13px; color: var(--c-text-2); margin: 0; max-width: 460px; }
.cookie-bar p a { text-decoration: underline; }
.cookie-bar__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-bar__actions button { padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.cookie-bar__actions .accept { background: var(--c-primary); color: #FBF8F3; }
.cookie-bar__actions .reject { background: var(--c-bg-warm); color: var(--c-text-2); }

/* Article (blog post) */
.article {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.article h1 { margin-bottom: 8px; }
.article__meta { display: flex; gap: 18px; font-size: 14px; color: var(--c-muted); align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--c-divider); margin-bottom: 12px; }
.article__meta .ic { width: 16px; height: 16px; }
.article__cover { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-lg); margin-bottom: 18px; }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.article h2 { margin-top: 18px; font-size: 1.6rem; }
.article h3 { margin-top: 12px; font-size: 1.2rem; }
.article p { font-size: 1.05rem; line-height: 1.75; }
.article ul, .article ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--c-text-2); font-size: 1.02rem; line-height: 1.65; }
.article blockquote {
  margin: 20px 0;
  padding: 18px 24px;
  background: var(--c-bg-warm);
  border-left: 4px solid var(--c-primary);
  border-radius: 8px;
  font-style: italic;
  color: var(--c-text-2);
}
.article .toc {
  background: var(--c-bg-warm);
  padding: 22px 24px;
  border-radius: var(--r-md);
  margin: 12px 0;
}
.article .toc h4 { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 12px; }
.article .toc ol { padding-left: 0; list-style: none; }
.article .toc ol li { counter-increment: toc; }
.article .toc ol li::before { content: counter(toc) '. '; color: var(--c-primary); font-weight: 800; }
.article .toc ol { counter-reset: toc; }
.article .toc a { color: var(--c-text-2); }
.article .toc a:hover { color: var(--c-primary); }


/* Legal pages */
.legal-content { display: flex; flex-direction: column; gap: 18px; }
.legal-content h2 { margin-top: 26px; font-size: 1.5rem; }
.legal-content h3 { margin-top: 14px; font-size: 1.15rem; }
.legal-content p, .legal-content li { font-size: 1rem; line-height: 1.7; color: var(--c-text-2); }
.legal-content ul, .legal-content ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.legal-content table th, .legal-content table td { padding: 12px 14px; border: 1px solid var(--c-divider); text-align: left; }
.legal-content table th { background: var(--c-bg-warm); font-weight: 700; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 4vw, 56px); }
@media (max-width: 1100px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-info__item { display: flex; gap: 14px; padding: 18px 20px; background: var(--c-surface); border: 1px solid var(--c-divider); border-radius: var(--r-md); }
.contact-info__item .ic-wrap { width: 42px; height: 42px; border-radius: 12px; background: rgba(110, 31, 46, .08); color: var(--c-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info__item h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-info__item p { font-size: .92rem; margin: 0; }

/* About */
.about-team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 24px; }
.about-team__card { background: var(--c-surface); border: 1px solid var(--c-divider); border-radius: var(--r-lg); padding: 24px; text-align: center; }
.about-team__avatar { width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(135deg, var(--c-primary), var(--c-accent)); margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; color: #FBF8F3; font-weight: 800; font-size: 28px; }
.about-team__card h4 { font-size: 1.05rem; }
.about-team__card .role { font-size: 12px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: 8px; }
.about-team__card p { font-size: .9rem; margin: 0; }
@media (max-width: 820px) { .about-team { grid-template-columns: 1fr; gap: 16px; } }

/* 404 */
.notfound { text-align: center; padding: clamp(60px, 10vw, 120px) 0; }
.notfound .code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; color: var(--c-primary); line-height: 1; letter-spacing: -.04em; }
.notfound h1 { margin: 8px 0 16px; }

/* Tablet & Mobile fine-tunes */
@media (max-width: 820px) {
  .hero__stats { gap: 20px; }
  .hero__stat strong { font-size: 1.35rem; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .top-table th, .top-table td { padding: 14px 12px; font-size: 13px; }
}
@media (max-width: 430px) {
  .hero__chip-card { display: none; }
}
@media (max-width: 360px) {
  .container { padding-inline: 16px; }
  .brand-text { display: none; }
  .hero h1 { font-size: 1.55rem; }
}
