/* TopFinanz Schweiz — editorial Swiss design */

:root {
  --c-bg: #F3F2EE;
  --c-bg-deep: #E7E6E0;
  --c-surface: #FFFFFF;
  --c-surface-2: #ECEAE4;
  --c-ink: #0F1B2D;
  --c-ink-soft: #3D4A5F;
  --c-ink-mute: #7A8493;
  --c-line: #D5D3CC;
  --c-line-soft: #E4E2DC;
  --c-red: #C8232C;
  --c-red-deep: #A11820;
  --c-copper: #B8923E;
  --c-gold: #B8923E;
  --c-gold-deep: #8E6E2A;
  --c-glacier: #3E6E8E;
  --c-glacier-deep: #2A5070;
  --c-green: #1E6E47;
  --c-green-deep: #155234;
  --c-amber: #D89A2C;
  --c-grad: linear-gradient(120deg, #0F1B2D 0%, #C8232C 55%, #B8923E 100%);
  --c-grad-soft: linear-gradient(120deg, rgba(15,27,45,.12) 0%, rgba(200,35,44,.10) 55%, rgba(184,146,62,.12) 100%);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-sharp: cubic-bezier(.7, 0, .25, 1);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 2px 6px rgba(26,24,21,.04), 0 1px 2px rgba(26,24,21,.05);
  --shadow-md: 0 10px 30px rgba(26,24,21,.06), 0 4px 10px rgba(26,24,21,.04);
  --shadow-lg: 0 30px 60px rgba(26,24,21,.10), 0 10px 25px rgba(26,24,21,.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  font-feature-settings: 'kern', 'liga', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { flex: 1; }

img, svg { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: break-word;
  word-break: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--c-ink);
  overflow-wrap: break-word;
  word-break: break-word;
}

h1 { font-size: clamp(40px, 7.5vw, 92px); }
h2 { font-size: clamp(30px, 4.5vw, 56px); letter-spacing: -0.025em; }
h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.015em; }
h4 { font-size: clamp(18px, 1.6vw, 22px); }

p { line-height: 1.65; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

input, textarea, select, button {
  font-family: inherit;
}

.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;
}

/* ============ Container ============ */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 820px) { .container { padding: 0 20px; } }
@media (max-width: 520px) { .container { padding: 0 16px; } }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid var(--c-line-soft);
  overflow: visible;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.94);
  border-bottom-color: var(--c-line);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  flex-shrink: 0;
}
.brand__mark {
  width: 40px; height: 40px;
  color: var(--c-ink);
  transition: transform .5s var(--ease);
}
.brand:hover .brand__mark { transform: scale(1.06); }
.brand__name { display: flex; flex-direction: column; line-height: 1; gap: 2px; }
.brand__name b { font-weight: 600; }
.brand__name small {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--c-ink-mute);
}

/* Header nav — NO underlines. Chip-hover + dot indicator for active */
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-ink-soft);
  border-radius: 999px;
  transition: color .3s var(--ease), background-color .3s var(--ease);
}
.nav a:hover {
  color: var(--c-ink);
}
.nav a.is-active {
  color: var(--c-ink);
}
.nav a.is-active::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 50%;
  width: 5px; height: 5px;
  background: var(--c-red);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
  50% { transform: translateX(-50%) scale(1.5); opacity: .55; }
}

.nav { margin-left: auto; }

/* Burger */
.burger {
  display: none;
  width: 46px; height: 46px;
  position: relative;
  z-index: 110;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
.burger span {
  position: absolute;
  left: 13px; right: 13px;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 22px; 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, 76px));
    z-index: 100;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 24px 28px;
    background: var(--c-bg);
    border-top: 1px solid var(--c-line);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(-10px);
    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: 18px 12px;
    font-size: 22px;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-weight: 500;
    color: var(--c-ink);
    border-radius: 0;
    border-bottom: 1px solid var(--c-line-soft);
    background: transparent !important;
  }
  .nav a.is-active { color: var(--c-red); }
  .nav a.is-active::before { display: none; }

  .nav .header-cta-mobile {
    display: block;
    margin-top: 8px;
  }

  /* Do NOT lock body scroll on burger open — causes header jumps */
  /* feedback-burger-no-scroll-lock rule */
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--c-ink);
  color: var(--c-bg);
}
.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c-grad);
  opacity: 0;
  transition: opacity .4s var(--ease);
  z-index: -1;
}
.btn--primary:hover::before { opacity: 1; }
.btn--primary:hover { color: #ffffff; }

.btn--accent {
  background: var(--c-red);
  color: #fff;
}
.btn--accent:hover { background: var(--c-red-deep); }

.btn--apply {
  width: 100%;
  background: var(--c-green);
  color: #fff;
}
.btn--apply:hover { background: var(--c-green-deep); }

.btn--ghost {
  background: transparent;
  border: 1.5px solid var(--c-line);
  color: var(--c-ink);
}
.btn--ghost:hover { border-color: var(--c-ink); background: var(--c-surface); }

.btn--lg { padding: 20px 38px; font-size: 16px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 56px 0 72px;
  overflow: hidden;
  background: var(--c-bg);
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/img/hero/hero-bg.avif');
  background-size: cover;
  background-position: center right;
  opacity: 0.55;
  mix-blend-mode: multiply;
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg,
      rgba(243,242,238,.98) 0%,
      rgba(243,242,238,.92) 38%,
      rgba(243,242,238,.62) 60%,
      rgba(243,242,238,.32) 100%);
  z-index: -1;
  pointer-events: none;
}
@media (max-width: 820px) {
  .hero { padding: 40px 0 56px; }
  .hero::after {
    background: linear-gradient(180deg,
      rgba(243,242,238,.95) 0%,
      rgba(243,242,238,.82) 65%,
      rgba(243,242,238,.5) 100%);
  }
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 0;
}

.hero__title {
  font-size: clamp(38px, 5.6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  font-weight: 600;
  color: var(--c-ink);
  margin: 0;
}
.hero__title em {
  font-style: normal;
  font-weight: 600;
  color: var(--c-red);
  position: relative;
  white-space: nowrap;
  padding-right: 0.04em;
}
.hero__title em::before {
  content: '';
  position: absolute;
  left: -0.05em; top: 0.12em; bottom: 0.18em;
  width: 4px;
  background: var(--c-red);
  border-radius: 2px;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  animation: emAccent .7s cubic-bezier(.22,1,.36,1) .35s forwards;
}
@keyframes emAccent {
  to { opacity: 1; transform: scaleY(1); }
}
.hero__title em {
  padding-left: 0.18em;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero__lead {
  margin-top: 22px;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.55;
  color: var(--c-ink-soft);
  max-width: 620px;
}
.hero__actions {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__meta {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-top: 28px;
  border-top: 1px solid var(--c-line);
}
.hero__meta-item {
  padding-right: 24px;
  border-right: 1px solid var(--c-line-soft);
}
.hero__meta-item:last-child { border-right: none; padding-right: 0; }
.hero__meta-item:not(:first-child) { padding-left: 24px; }
@media (max-width: 820px) {
  .hero__meta { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
  .hero__meta-item:nth-child(2) { border-right: none; }
  .hero__meta-item:nth-child(odd):not(:first-child) { padding-left: 0; border-left: none; }
  .hero__meta-item:nth-child(3), .hero__meta-item:nth-child(4) { padding-top: 22px; border-top: 1px solid var(--c-line-soft); }
  .hero__meta-item:nth-child(odd) { padding-right: 24px; }
  .hero__meta-item:nth-child(even) { padding-left: 24px; border-right: none; padding-right: 0; }
  .hero__meta-item:nth-child(3) { padding-left: 0; }
}
@media (max-width: 420px) {
  .hero__meta { grid-template-columns: 1fr 1fr; }
}
.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 24px;
  border-right: 1px solid var(--c-line-soft);
}
.hero__meta-item b {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--c-ink);
  line-height: 1;
}
.hero__meta-item b small {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.5em;
  font-weight: 500;
  color: var(--c-ink-mute);
  letter-spacing: -0.01em;
}
.hero__meta-item > span {
  font-size: 12px;
  font-weight: 500;
  color: var(--c-ink-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.35;
}

/* Hero visual — asymmetric image card with floating stat */
.hero__visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 28px;
  overflow: hidden;
  background-image: url('/assets/img/hero/hero-bg.avif');
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-lg);
  transform: translateY(0);
  animation: floatY 8s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero__visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(26,24,21,.35));
}

.hero__stat-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 2;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}
.hero__stat-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 8px;
}
.hero__stat-row b {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--c-ink);
  letter-spacing: -0.02em;
}
.hero__stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(31,139,90,.12);
  color: var(--c-green-deep);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.hero__stat-pill svg { width: 12px; height: 12px; }
.hero__stat-name {
  font-size: 13px;
  color: var(--c-ink-soft);
  font-weight: 500;
}
.hero__stat-bar {
  margin-top: 12px;
  display: flex;
  gap: 4px;
}
.hero__stat-bar i {
  flex: 1;
  height: 4px;
  background: var(--c-line);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.hero__stat-bar i:nth-child(-n+4)::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--c-grad);
}

/* Hero subscribe inline */
.hero__sub {
  margin-top: 28px;
  display: flex;
  gap: 8px;
  padding: 6px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.hero__sub input {
  flex: 1;
  min-width: 0;
  padding: 12px 18px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--c-ink);
}
.hero__sub input::placeholder { color: var(--c-ink-mute); }
.hero__sub button {
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--c-ink);
  color: var(--c-bg);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .3s var(--ease);
}
.hero__sub button:hover { background: var(--c-red); }
.hero__sub-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--c-ink-mute);
  padding-left: 18px;
}

@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr; gap: 50px; }
  .hero__visual { aspect-ratio: 16/11; max-width: 600px; margin: 0 auto; }
  .hero__meta { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .hero__grid { gap: 36px; }
}
@media (max-width: 520px) {
  .hero { padding: 56px 0 60px; }
  .hero__grid { gap: 28px; }
  .hero__title { font-size: clamp(28px, 8.5vw, 38px); letter-spacing: -0.02em; }
  .hero__meta { grid-template-columns: 1fr 1fr; gap: 18px 0; padding-top: 22px; margin-top: 32px; }
  .hero__meta-item { padding-right: 14px; }
  .hero__meta-item:not(:first-child) { padding-left: 14px; }
  .hero__meta-item:nth-child(odd) { padding-left: 0; padding-right: 14px; }
  .hero__meta-item:nth-child(even) { padding-left: 14px; padding-right: 0; border-right: none; }
  .hero__meta-item:nth-child(2) { border-right: none; }
  .hero__meta-item:nth-child(3), .hero__meta-item:nth-child(4) { padding-top: 18px; border-top: 1px solid var(--c-line-soft); }
  .hero__meta-item b { font-size: 22px; }
  .hero__meta-item > span { font-size: 11px; }
  .hero__sub { flex-direction: column; border-radius: 18px; padding: 8px; }
  .hero__sub button { width: 100%; }
  .hero__visual { aspect-ratio: 4/5; }
}

/* ============ Section base ============ */
.section {
  padding: 110px 0;
  position: relative;
}
.section--tight { padding: 80px 0; }
@media (max-width: 820px) { .section { padding: 70px 0; } .section--tight { padding: 56px 0; } }

.section__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}
.section__title {
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.028em;
  max-width: 720px;
}
.section__title em {
  font-style: normal;
  font-weight: 600;
  color: var(--c-red);
}
.section__lead {
  font-size: 17px;
  color: var(--c-ink-soft);
  max-width: 380px;
}
@media (max-width: 820px) {
  .section__head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
}

/* ============ USP / trust strip ============ */
.usp {
  padding: 80px 0 60px;
  background: #ffffff;
  border-top: 1px solid var(--c-line-soft);
  border-bottom: 1px solid var(--c-line-soft);
}
.usp__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-left: 1px solid var(--c-line);
}
.usp__card {
  padding: 30px 28px;
  border-right: 1px solid var(--c-line);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  position: relative;
  transition: background-color .3s var(--ease);
}
.usp__card:hover { background: var(--c-surface); }
.usp__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--c-bg);
  border-radius: 14px;
  color: var(--c-red);
  margin-bottom: 22px;
  transition: transform .5s var(--ease);
}
.usp__icon svg { width: 22px; height: 22px; }
.usp__card:hover .usp__icon { transform: scale(1.05); }
.usp__num {
  position: absolute;
  top: 24px; right: 28px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--c-ink-mute);
  font-feature-settings: 'tnum' 1;
}
.usp__card h3 {
  font-size: 21px;
  margin-bottom: 10px;
}
.usp__card p {
  font-size: 14.5px;
  color: var(--c-ink-soft);
  line-height: 1.55;
}
@media (max-width: 980px) {
  .usp__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .usp__grid { grid-template-columns: 1fr; }
}

/* ============ Comparison table ============ */
.compare {
  background: var(--c-bg);
}
.compare-wrap {
  position: relative;
  border-radius: 24px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compare-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.compare table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
.compare th, .compare td {
  padding: 22px 24px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--c-line-soft);
}
.compare thead th {
  background: var(--c-surface-2);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-ink-mute);
  border-bottom: 1px solid var(--c-line);
}
.compare tbody tr:last-child td { border-bottom: none; }
.compare tbody tr { transition: background-color .25s var(--ease); }
.compare tbody tr:hover { background: var(--c-surface-2); }

.compare__bank {
  display: flex; align-items: center; gap: 16px;
}
.compare__logo {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--c-bg);
  display: grid; place-items: center;
  color: var(--c-red);
  flex-shrink: 0;
  border: 1px solid var(--c-line);
}
.compare__bank b { font-weight: 600; font-size: 15.5px; display: block; }
.compare__bank span { font-size: 13px; color: var(--c-ink-mute); }

.badge-best {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  background: linear-gradient(135deg, var(--c-red), var(--c-copper));
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-best svg { width: 11px; height: 11px; }

.rate { font-family: 'DM Sans', system-ui, sans-serif; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.rate small { font-family: 'Inter', sans-serif; font-size: 12px; color: var(--c-ink-mute); font-weight: 500; margin-left: 4px; }

.stars { display: inline-flex; gap: 2px; color: var(--c-amber); }
.stars svg { width: 16px; height: 16px; }

.compare__cta {
  display: inline-flex;
  align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  background: var(--c-green);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.compare__cta:hover { background: var(--c-green-deep); transform: translateY(-1px); }
.compare__cta svg { width: 14px; height: 14px; flex-shrink: 0; }

@media (max-width: 820px) {
  .compare th, .compare td { padding: 16px 18px; }
}

/* ============ Categories ============ */
.cats {
  background: var(--c-bg);
}
.cats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 22px;
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s var(--ease);
  text-decoration: none;
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.cat-card__img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.cat-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.cat-card:hover .cat-card__img img { transform: scale(1.08); }
.cat-card__img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(26,24,21,.25));
}
.cat-card__icon {
  position: absolute;
  top: 16px; left: 16px;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  color: var(--c-ink);
  z-index: 2;
}
.cat-card__icon svg { width: 20px; height: 20px; }
.cat-card__body { padding: 24px 24px 28px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.cat-card__body h3 { font-size: 22px; }
.cat-card__body p { font-size: 14.5px; color: var(--c-ink-soft); }
.cat-card__more {
  margin-top: auto;
  padding-top: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: 0.02em;
}
.cat-card__more svg { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.cat-card:hover .cat-card__more svg { transform: translateX(4px); }

@media (max-width: 1100px) {
  .cats__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .cats__grid { grid-template-columns: 1fr; }
}

/* ============ Blog cards ============ */
.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.post {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .4s var(--ease);
}
.post:hover { transform: translateY(-4px); }
.post__img {
  aspect-ratio: 5/3;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 22px;
}
.post__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.post:hover .post__img img { transform: scale(1.06); }
.post__meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-ink-mute);
  margin-bottom: 14px;
}
.post__meta b { color: var(--c-red); font-weight: 600; }
.post__meta i { font-style: normal; color: var(--c-line); }
.post h3 { font-size: 24px; margin-bottom: 12px; transition: color .3s var(--ease); }
.post:hover h3 { color: var(--c-red); }
.post p { font-size: 15px; color: var(--c-ink-soft); }

@media (max-width: 980px) {
  .blog__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .blog__grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ============ Subscribe CTA ============ */
.subscribe {
  position: relative;
  margin: 0;
  padding: 120px 0;
  background-image: url('/assets/img/sections/cta-bg.avif');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.subscribe::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(243,242,238,.95), rgba(243,242,238,.7));
}
.subscribe__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.subscribe h2 { font-size: clamp(34px, 4.4vw, 60px); }
.subscribe h2 em { font-style: normal; font-weight: 600; color: var(--c-red); }
.subscribe p { margin-top: 18px; font-size: 17px; color: var(--c-ink-soft); max-width: 460px; }
.subscribe__form {
  display: flex;
  gap: 10px;
  padding: 8px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}
.subscribe__form input {
  flex: 1;
  min-width: 0;
  padding: 16px 22px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 15px;
}
.subscribe__form button {
  padding: 16px 28px;
  background: var(--c-ink);
  color: var(--c-bg);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .3s var(--ease);
}
.subscribe__form button:hover { background: var(--c-red); }
.subscribe__check {
  margin-top: 16px;
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px;
  color: var(--c-ink-soft);
  line-height: 1.5;
}
.subscribe__check input { margin-top: 2px; accent-color: var(--c-red); flex-shrink: 0; }
.subscribe__check a { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 980px) {
  .subscribe { padding: 90px 0; }
  .subscribe__inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 520px) {
  .subscribe__form { flex-direction: column; border-radius: 22px; padding: 10px; }
  .subscribe__form button { width: 100%; }
}

/* ============ Footer ============ */
.site-footer {
  background: #222e41;
  color: rgba(243,242,238,.7);
  padding: 80px 0 32px;
}
.site-footer h4 {
  color: var(--c-bg);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(243,242,238,.1);
}
.footer__brand .brand { color: var(--c-bg); font-size: 24px; margin-bottom: 18px; }
.footer__brand .brand__mark { color: var(--c-bg); }
.footer__brand .brand__name small { color: rgba(243,242,238,.4); }
.footer__about {
  max-width: 360px;
  font-size: 14.5px;
  line-height: 1.6;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer__col a {
  font-size: 14.5px;
  color: rgba(243,242,238,.7);
  transition: color .25s var(--ease);
}
.footer__col a:hover { color: var(--c-red); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 30px;
  font-size: 12.5px;
  color: rgba(243,242,238,.5);
}
.footer__bottom-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__bottom-links a { color: rgba(243,242,238,.55); transition: color .25s var(--ease); }
.footer__bottom-links a:hover { color: var(--c-bg); }
.footer__legal {
  margin-top: 36px;
  padding: 22px;
  background: rgba(243,242,238,.04);
  border-radius: 12px;
  border-left: 3px solid var(--c-red);
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(243,242,238,.62);
}
.footer__legal b { color: var(--c-bg); }

@media (max-width: 980px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 520px) {
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
}

/* ============ Reveal animations ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__visual, .hero__title em { animation: none; }
}

/* ============ Category page ============ */
.page-intro {
  padding: 96px 0 48px;
  position: relative;
}
.crumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px;
  color: var(--c-ink-mute);
  margin-bottom: 28px;
}
.crumbs a { color: var(--c-ink-mute); }
.crumbs a:hover { color: var(--c-ink); }
.crumbs svg { width: 12px; height: 12px; opacity: .6; }

.page-intro h1 {
  font-size: clamp(40px, 6vw, 76px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-weight: 500;
  margin-bottom: 24px;
}
.page-intro h1 em { font-style: normal; font-weight: 600; color: var(--c-red); }
.page-intro__lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--c-ink-soft);
  max-width: 720px;
}
.page-intro__meta {
  margin-top: 30px;
  display: flex; flex-wrap: wrap; gap: 22px;
  font-size: 13px; color: var(--c-ink-mute);
  align-items: center;
}
.page-intro__meta b { color: var(--c-ink); font-weight: 600; }
.page-intro__meta svg { width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; }
@media (max-width: 820px) {
  .page-intro { padding: 48px 0 32px; }
}
@media (max-width: 520px) {
  .page-intro { padding: 32px 0 24px; }
  .page-intro h1 { font-size: clamp(30px, 8vw, 40px); margin-bottom: 18px; }
  .page-intro__lead { font-size: 16px; }
  .page-intro__meta { margin-top: 22px; gap: 14px; }
  .crumbs { margin-bottom: 18px; }
}

/* ============ Filter bar ============ */
.toolbar {
  position: relative;
  z-index: 5;
  padding: 28px 0;
  border-top: 1px solid var(--c-line-soft);
  border-bottom: 1px solid var(--c-line-soft);
  background: var(--c-bg);
}
.toolbar__row {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
}
.toolbar__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-mute);
  margin-right: 6px;
}
.chip {
  padding: 10px 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-ink-soft);
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { color: var(--c-ink); border-color: var(--c-ink); }
.chip.is-on { background: var(--c-ink); color: var(--c-bg); border-color: var(--c-ink); }
.chip__count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(26,24,21,.08);
  font-size: 11px;
  font-weight: 600;
}
.chip.is-on .chip__count { background: rgba(243,242,238,.15); }

/* ============ Product cards (offer list) ============ */
.offers {
  padding: 70px 0;
}
.offer-list { display: flex; flex-direction: column; gap: 18px; }
.offer[hidden] { display: none; }
.offer {
  display: grid;
  grid-template-columns: 96px 1.4fr 1fr 220px;
  gap: 28px;
  align-items: center;
  padding: 26px 28px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 20px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  position: relative;
}
.offer:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-copper);
}
.offer.is-best {
  border: 1.5px solid var(--c-red);
  background: linear-gradient(180deg, var(--c-surface), var(--c-surface-2));
}
.offer.is-best::before {
  content: 'Nejlepší volba';
  position: absolute;
  top: -10px; left: 24px;
  padding: 4px 12px;
  background: var(--c-red);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 6px;
}
.offer__logo {
  width: 76px; height: 76px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  color: var(--c-red);
  flex-shrink: 0;
}
.offer__main h3 { font-size: 22px; margin-bottom: 6px; }
.offer__main p { font-size: 13.5px; color: var(--c-ink-soft); line-height: 1.5; }
.offer__rating { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; color: var(--c-ink-mute); }
.offer__rating b { color: var(--c-ink); font-weight: 600; }
.offer__rating .stars { gap: 1px; }

.offer__specs {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13.5px;
  color: var(--c-ink-soft);
}
.offer__spec { display: flex; align-items: center; gap: 8px; }
.offer__spec svg { width: 14px; height: 14px; color: var(--c-green); flex-shrink: 0; }
.offer__spec b { color: var(--c-ink); font-weight: 600; }

.offer__cta { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.offer__cta .rate { font-size: 28px; }
.offer__cta .rate-label { font-size: 12px; color: var(--c-ink-mute); margin-bottom: -6px; }

.offer__legal {
  grid-column: 1 / -1;
  padding-top: 16px;
  margin-top: 6px;
  border-top: 1px solid var(--c-line-soft);
  font-size: 11.5px;
  color: var(--c-ink-mute);
  font-style: italic;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .offer { grid-template-columns: 76px 1fr; gap: 18px; padding: 22px; }
  .offer__specs, .offer__cta { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .offer { grid-template-columns: 1fr; }
  .offer__logo { width: 60px; height: 60px; }
  .offer__logo svg { width: 24px; height: 24px; }
}

/* ============ FAQ accordion ============ */
.faq {
  padding: 90px 0;
  background: var(--c-surface-2);
}
.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.faq__intro h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 18px; }
.faq__intro p { color: var(--c-ink-soft); font-size: 16px; max-width: 360px; }
.faq__list { display: flex; flex-direction: column; gap: 10px; }
details.qa {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 16px;
  overflow: hidden;
}
details.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  -webkit-tap-highlight-color: transparent;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after {
  content: '';
  width: 22px; height: 22px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1815' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9 L12 15 L18 9'/></svg>") center/contain no-repeat;
  transition: transform .35s var(--ease);
  flex-shrink: 0;
}
details.qa[open] summary::after { transform: rotate(180deg); }
details.qa .qa__body {
  padding: 0 26px 24px;
  font-size: 15.5px;
  color: var(--c-ink-soft);
  line-height: 1.65;
}
@media (max-width: 820px) {
  .faq__grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ============ Long-form content ============ */
.long-form {
  padding: 80px 0;
}
.long-form h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  margin: 50px 0 18px;
}
.long-form h2:first-child { margin-top: 0; }
.long-form h3 { font-size: clamp(22px, 2.2vw, 28px); margin: 36px 0 14px; }
.long-form p { margin-bottom: 18px; font-size: 16.5px; line-height: 1.7; color: var(--c-ink-soft); }
.long-form p strong { color: var(--c-ink); font-weight: 600; }
.long-form ul, .long-form ol { margin: 0 0 22px 22px; }
.long-form li { margin-bottom: 8px; font-size: 16px; color: var(--c-ink-soft); line-height: 1.7; }
.long-form a { color: var(--c-red); text-decoration: underline; text-underline-offset: 3px; }
.long-form a:hover { color: var(--c-red-deep); }

/* ============ Cookie banner ============ */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 90;
  padding: 22px 24px;
  background: var(--c-ink);
  color: var(--c-bg);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  transform: translateY(140%);
  transition: transform .55s var(--ease);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner__text {
  flex: 1; min-width: 280px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(243,242,238,.82);
}
.cookie-banner__text a { text-decoration: underline; color: var(--c-bg); }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner button {
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.cookie-banner .accept {
  background: var(--c-bg);
  color: var(--c-ink);
}
.cookie-banner .accept:hover { background: var(--c-red); color: #fff; }
.cookie-banner .reject {
  background: transparent;
  color: var(--c-bg);
  border: 1px solid rgba(243,242,238,.25);
}
.cookie-banner .reject:hover { border-color: var(--c-bg); }

/* ============ Chat widget ============ */
.chat-fab {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 80;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  background: var(--c-ink);
  color: var(--c-bg);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform .4s var(--ease), background-color .3s var(--ease);
}
.chat-fab:hover { background: var(--c-red); transform: scale(1.06); }
.chat-fab svg { width: 26px; height: 26px; }
.chat-fab__pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--c-red);
  animation: chatPulse 2.4s ease-out infinite;
  opacity: 0;
}
@keyframes chatPulse {
  0% { transform: scale(.9); opacity: .7; }
  100% { transform: scale(1.7); opacity: 0; }
}

.chat-panel {
  position: fixed;
  right: 24px; bottom: 100px;
  z-index: 85;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 460px;
  max-height: calc(100dvh - 140px);
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.98);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.chat-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear 0s;
}
.chat__head {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: var(--c-ink);
  color: var(--c-bg);
}
.chat__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-bg);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.chat__avatar::after {
  content: '';
  position: absolute; bottom: 0; right: 0;
  width: 11px; height: 11px;
  background: var(--c-green);
  border-radius: 50%;
  border: 2px solid var(--c-ink);
}
.chat__avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat__title { flex: 1; }
.chat__title b { display: block; font-family: 'DM Sans', system-ui, sans-serif; font-weight: 500; font-size: 16px; }
.chat__title span { font-size: 12px; color: rgba(243,242,238,.7); }
.chat__close {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: var(--c-bg);
  transition: background-color .25s var(--ease);
}
.chat__close:hover { background: rgba(243,242,238,.1); }
.chat__close svg { width: 18px; height: 18px; }
.chat__body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--c-bg);
}
.msg {
  max-width: 82%;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 18px;
  animation: msgIn .35s var(--ease);
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg--bot { align-self: flex-start; background: var(--c-surface); color: var(--c-ink); border: 1px solid var(--c-line); border-bottom-left-radius: 6px; }
.msg--user { align-self: flex-end; background: var(--c-ink); color: var(--c-bg); border-bottom-right-radius: 6px; }
.msg--typing { display: inline-flex; gap: 4px; padding: 14px 18px; }
.msg--typing i {
  width: 6px; height: 6px;
  background: var(--c-ink-mute);
  border-radius: 50%;
  animation: typingDot 1.2s ease-in-out infinite;
}
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-3px); opacity: 1; }
}
.chat__quick {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 20px 12px;
}
.chat__quick button {
  padding: 7px 12px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--c-ink);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.chat__quick button:hover { background: var(--c-ink); color: var(--c-bg); }
.chat__form {
  display: flex; gap: 8px;
  padding: 14px 16px;
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
}
.chat__form input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-size: 14px;
  outline: none;
  transition: border-color .25s var(--ease);
}
.chat__form input:focus { border-color: var(--c-ink); }
.chat__form button {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--c-red);
  color: #fff;
  border-radius: 50%;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.chat__form button:hover { background: var(--c-red-deep); transform: scale(1.06); }
.chat__form button svg { width: 18px; height: 18px; }

@media (max-width: 520px) {
  .chat-panel { right: 16px; left: 16px; width: auto; bottom: 90px; }
  .chat-fab { right: 16px; bottom: 16px; }
}

/* ============ Toast ============ */
.toast-shade {
  position: fixed; inset: 0;
  z-index: 320;
  background: rgba(26,24,21,.5);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility 0s linear .3s;
}
.toast-shade.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity .3s var(--ease), visibility 0s linear 0s;
}
.toast {
  background: var(--c-bg);
  border-radius: 22px;
  padding: 36px 40px;
  text-align: center;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  transform: scale(.94);
  transition: transform .35s var(--ease);
}
.toast-shade.is-visible .toast { transform: scale(1); }
.toast__icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--c-green);
  color: #fff;
}
.toast--error .toast__icon { background: var(--c-red); }
.toast__icon svg { width: 32px; height: 32px; }
.toast b {
  display: block;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 8px;
}
.toast p { font-size: 15px; color: var(--c-ink-soft); }

/* ============ About page ============ */
.about-team {
  padding: 70px 0;
}
.about-team__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.about-team__img {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.about-team__img img { width: 100%; height: 100%; object-fit: cover; }
.about-team h2 { margin-bottom: 18px; }
.about-team p { color: var(--c-ink-soft); font-size: 16px; margin-bottom: 14px; }
@media (max-width: 820px) {
  .about-team__grid { grid-template-columns: 1fr; gap: 32px; }
}

.values {
  padding: 60px 0;
  background: var(--c-surface-2);
}
.values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.value {
  padding: 32px 30px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 20px;
}
.value__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--c-red);
  color: #fff;
  margin-bottom: 20px;
}
.value__icon svg { width: 22px; height: 22px; }
.value h3 { font-size: 22px; margin-bottom: 10px; }
.value p { font-size: 14.5px; color: var(--c-ink-soft); }
@media (max-width: 820px) {
  .values__grid { grid-template-columns: 1fr; }
}

/* ============ Contact page ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  padding: 70px 0;
}
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-info__item {
  display: flex; gap: 16px;
  align-items: flex-start;
  padding: 22px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 18px;
}
.contact-info__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--c-bg);
  border-radius: 12px;
  color: var(--c-red);
  flex-shrink: 0;
}
.contact-info__icon svg { width: 22px; height: 22px; }
.contact-info__item > div:not(.contact-info__icon) { min-width: 0; flex: 1; }
.contact-info__item b { display: block; font-size: 13px; color: var(--c-ink-mute); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; font-weight: 600; overflow-wrap: break-word; word-break: break-word; }
.contact-info__item span { font-family: 'DM Sans', system-ui, sans-serif; font-size: 18px; font-weight: 500; color: var(--c-ink); overflow-wrap: break-word; word-break: break-word; display: block; }

.contact-form {
  padding: 36px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 22px;
}
.contact-form h2 { font-size: 28px; margin-bottom: 6px; }
.contact-form > p { color: var(--c-ink-soft); margin-bottom: 26px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 600; color: var(--c-ink); letter-spacing: 0.01em; }
.field input, .field textarea {
  padding: 14px 18px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--c-ink);
  outline: none;
  transition: border-color .25s var(--ease);
  width: 100%;
}
.field textarea { resize: none; min-height: 140px; }
.field input:focus, .field textarea:focus { border-color: var(--c-ink); }
.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--c-ink-soft);
}
.field--check input { width: auto; padding: 0; margin-top: 3px; accent-color: var(--c-red); }
.field--check a { text-decoration: underline; }
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; padding: 50px 0; }
  .contact-form { padding: 26px; }
}

/* ============ Blog index ============ */
.posts-list {
  padding: 70px 0;
}
.posts-list__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
}
@media (max-width: 980px) {
  .posts-list__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .posts-list__grid { grid-template-columns: 1fr; }
}

/* ============ 404 ============ */
.notfound {
  min-height: calc(100vh - var(--header-offset, 76px) - 200px);
  display: grid;
  place-items: center;
  padding: 80px 0;
  text-align: center;
}
.notfound b {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(120px, 22vw, 240px);
  line-height: 1;
  background: var(--c-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.notfound h1 { font-size: clamp(30px, 4vw, 48px); margin: 12px 0 14px; }
.notfound p { font-size: 17px; color: var(--c-ink-soft); margin-bottom: 28px; max-width: 460px; }

/* ============ Footer social ============ */
.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.footer__social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(243,242,238,.06);
  color: rgba(243,242,238,.75);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.footer__social a svg { width: 17px; height: 17px; }
.footer__social a:hover {
  background: rgba(243,242,238,.16);
  color: #fff;
  transform: translateY(-2px);
}

/* ============ Article + Apply modals ============ */
.article-modal,
.apply-modal {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(15,27,45,.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid; place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s var(--ease), visibility 0s linear .3s;
}
.article-modal.is-open,
.apply-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .3s var(--ease), visibility 0s linear 0s;
}
.article-modal__panel,
.apply-modal__panel {
  position: relative;
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
  border-radius: 24px;
  box-shadow: 0 40px 80px rgba(15,27,45,.4);
  overflow: hidden;
  transform: translateY(28px) scale(.96);
  transition: transform .4s var(--ease);
}
.article-modal.is-open .article-modal__panel,
.apply-modal.is-open .apply-modal__panel {
  transform: translateY(0) scale(1);
}
.article-modal__close,
.apply-modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: none;
  background: rgba(15,27,45,.08);
  color: var(--c-ink);
  cursor: pointer;
  z-index: 3;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.article-modal__close:hover,
.apply-modal__close:hover {
  background: rgba(15,27,45,.18);
  transform: scale(1.05);
}
.article-modal__close svg,
.apply-modal__close svg { width: 18px; height: 18px; }

.article-modal__hero {
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 21/9;
  background: var(--c-bg-deep);
}
.article-modal__hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.article-modal__body {
  padding: 36px 48px 48px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.article-modal__meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px;
  color: var(--c-ink-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.article-modal__meta b { color: var(--c-red); font-weight: 600; }
.article-modal__meta i { font-style: normal; color: var(--c-line); }
.article-modal__title {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--c-ink);
}
.article-modal__content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-ink-soft);
  margin-bottom: 14px;
}
.article-modal__content h3 {
  font-size: 21px;
  margin: 30px 0 12px;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}
.article-modal__content ul {
  margin: 10px 0 20px 22px;
}
.article-modal__content li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: var(--c-ink-soft);
}
.article-modal__content strong { color: var(--c-ink); font-weight: 600; }

.apply-modal__head {
  padding: 32px 36px 0;
}
.apply-modal__kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-red);
  font-weight: 600;
  margin-bottom: 10px;
}
.apply-modal__head h2 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  margin-bottom: 8px;
}
.apply-modal__head p {
  font-size: 14.5px;
  color: var(--c-ink-soft);
  line-height: 1.55;
}
.apply-modal__form {
  padding: 22px 36px 36px;
  overflow-y: auto;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.apply-modal__form .field { margin-bottom: 14px; }
.apply-modal__form input[readonly] {
  background: var(--c-bg-deep);
  color: var(--c-ink);
  font-weight: 500;
  cursor: not-allowed;
}

body[data-article-open="true"],
body[data-apply-open="true"] { overflow: hidden; }

.post { cursor: pointer; }

@media (max-width: 820px) {
  .article-modal,
  .apply-modal { padding: 12px; }
  .article-modal__body { padding: 26px 22px 32px; }
}

/* compare/offer logo SVG sizing + contact map */
.compare__logo svg { width: 24px; height: 24px; }
.offer__logo svg { width: 32px; height: 32px; }
.contact-info__map {
  margin-top: 24px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
}
.contact-info__map iframe {
  display: block;
  filter: grayscale(0.15) contrast(1.02);
}
@media (max-width: 820px) {
  .contact-info__map iframe { height: 240px; }
  .article-modal__hero { aspect-ratio: 16/10; }
  .apply-modal__head { padding: 26px 22px 0; }
  .apply-modal__form { padding: 18px 22px 28px; }
}
