/* Layout — keshbek-gid.ru · UI patterns from sravni.ru
   Icons: Lucide (ISC) */

.shell {
  width: min(100% - 32px, 1080px);
  margin-inline: auto;
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
}

.icon--sm {
  width: 16px;
  height: 16px;
}

.btn-primary .icon {
  margin-right: 4px;
}

/* Header 60px solid — как у Сравни */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.brand__logo {
  display: block;
  width: auto;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
}

.brand__logo--dark {
  display: none;
}

html[data-theme="guinness"] .brand__logo--light,
html[data-theme="dark"] .brand__logo--light {
  display: none;
}

html[data-theme="guinness"] .brand__logo--dark,
html[data-theme="dark"] .brand__logo--dark {
  display: block;
}

.nav {
  display: none;
  gap: 16px;
  margin-left: 4px;
}

.nav__link {
  color: var(--text-secondary);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  line-height: 20px;
  transition: color var(--ease);
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__cta {
  display: none;
}

.nav-toggle .icon-close {
  display: none;
}

.site-header.is-nav-open .nav-toggle .icon-menu {
  display: none;
}

.site-header.is-nav-open .nav-toggle .icon-close {
  display: block;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.site-header__cta {
  display: none;
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

/* Mobile drawer */
@media (max-width: 767px) {
  .site-header {
    z-index: 40;
  }

  .site-header.is-nav-open .nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 8px 16px 24px;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    overflow-y: auto;
    z-index: 39;
  }

  .site-header.is-nav-open .nav__link {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
    line-height: 24px;
  }

  .site-header.is-nav-open .nav__cta {
    display: inline-flex;
    align-self: stretch;
    justify-content: center;
    margin-top: 20px;
    min-height: 44px;
  }

  body.is-nav-open {
    overflow: hidden;
  }
}

.theme-toggle .icon-sun {
  display: none;
}

html[data-theme="guinness"] .theme-toggle .icon-moon,
html[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

html[data-theme="guinness"] .theme-toggle .icon-sun,
html[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

.guide-item__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  line-height: 16px;
}

.guide-item__label .icon {
  color: var(--accent);
}

/* Hero — текст + иллюстрация как у Сравни */
.hero {
  padding: 32px 0 24px;
  background: var(--bg-page);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: 24px;
  align-items: stretch;
}

.hero__copy {
  max-width: 640px;
}

.hero__title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4.2vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero__lead {
  margin: 0 0 24px;
  max-width: 540px;
  color: var(--text-secondary);
  font-size: var(--fs-body);
  line-height: 20px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__actions .btn-primary--lg,
.hero__actions .btn-ghost {
  min-height: 44px;
  font-size: 14px;
  padding: 0 18px;
}

.hero__visual {
  display: block;
  min-height: 160px;
}

.hero__img {
  display: block;
  width: min(100%, 260px);
  height: auto;
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 10px 22px color-mix(in srgb, var(--color-D100) 10%, transparent));
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-h-lg);
  padding: 0 var(--btn-pad-x);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--fs-cta);
  font-weight: 500;
  line-height: 20px;
  transition: border-color var(--ease), background var(--ease);
}

.btn-ghost:hover {
  border-color: var(--color-D30);
  background: transparent;
  color: var(--text-primary);
}

/* Sections */
.section {
  padding: 24px 0;
}

.section__title {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.5vw, 24px);
  line-height: 1.25;
}

.section__lead {
  margin: 0 0 20px;
  max-width: 560px;
  color: var(--text-secondary);
  font-size: var(--fs-body);
  line-height: 20px;
}

/* Section header */
.section-head {
  display: block;
  margin-bottom: 4px;
}

.section-head .section__title {
  margin-bottom: 8px;
}

.section-head .section__lead {
  margin-bottom: 16px;
}

.section-head > .prose,
.section-split__main > .section-head > div {
  min-width: 0;
  max-width: 640px;
}

/* Title + list left, illustration full height right */
.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 32%);
  gap: 16px 28px;
  align-items: stretch;
}

.section-split__main {
  min-width: 0;
  display: grid;
  gap: 12px;
  align-content: start;
}

.section-split > .section-illust {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: contain;
  object-position: center right;
  align-self: stretch;
  filter: drop-shadow(0 8px 16px color-mix(in srgb, var(--color-D100) 8%, transparent));
}

/* legacy: illust still inside section-head (no section-split wrapper) */
.section-head:has(> .section-illust) {
  position: relative;
  padding-right: min(48%, 340px);
}

.section-head > .section-illust {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: auto;
  height: 100%;
  max-width: min(48%, 340px);
  object-fit: contain;
  object-position: center right;
}

.section-split .section-head {
  position: static;
  padding-right: 0;
  margin-bottom: 0;
}

@media (max-width: 719px) {
  .section-split {
    grid-template-columns: 1fr;
  }

  .section-split > .section-illust {
    order: -1;
    width: min(200px, 50%);
    height: auto;
    max-height: 180px;
    justify-self: start;
    object-position: center left;
  }

  .section-head:has(> .section-illust) {
    padding-right: 0;
  }

  .section-head > .section-illust {
    position: static;
    width: min(180px, 55%);
    height: auto;
    max-width: none;
    max-height: 160px;
    margin: 8px 0 0;
  }
}

.money__aside {
  display: grid;
  gap: 0;
  background: var(--bg-cta-soft);
}

.money__visual {
  display: flex;
  justify-content: center;
  align-items: stretch;
  align-self: stretch;
  padding: 16px 16px 0;
}

.money__illust {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 200px;
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 8px 16px color-mix(in srgb, var(--color-D100) 8%, transparent));
}

/* Guide cards — BlockWrapper: L100, radius 20, pad 20/16 */
.guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.guide-item {
  display: grid;
  gap: 8px;
  padding: 20px 16px;
  background: var(--bg-surface);
  border: 0;
  border-radius: var(--radius-xl);
  color: inherit;
  transition: background var(--ease);
}

.guide-item:hover {
  background: var(--bg-cta-soft);
  color: inherit;
}

.guide-item__title {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: var(--fw-bold);
  line-height: 20px;
}

.guide-item__meta {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 20px;
}

/* Money — surface card + soft inset */
.section--money {
  padding-bottom: 40px;
}

.money {
  display: grid;
  gap: 0;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.money__copy {
  padding: 24px 16px;
}

.money .section__title {
  margin-bottom: 8px;
}

.money .section__lead {
  margin-bottom: 20px;
}

.money__points {
  margin: 0;
  padding: 16px;
  list-style: none;
  display: grid;
  gap: 8px;
  background: transparent;
}

.money__points li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 36px 12px 14px;
  color: var(--text-secondary);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: color-mix(in srgb, var(--bg-surface) 55%, transparent);
}

.money__points li::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-50%) rotate(-45deg);
}

.money__points .icon {
  display: none;
}

.money__points a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.money__points a:hover {
  text-decoration: underline;
}

/* Hub content */
.section--surface {
  background: var(--bg-surface);
}

.updated {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 18px;
}

.verified {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 16px;
  max-width: 720px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 18px;
}

.verified__icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--accent, #1a7f4f);
}

.verified__label {
  color: var(--text);
  font-weight: 600;
}

.verified__sep {
  margin: 0 0.35em;
  opacity: 0.45;
}

.prose {
  max-width: 720px;
}

.prose p {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: var(--fs-body);
  line-height: 1.55;
}

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

.prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.steps__item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 16px;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
}

.steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-cta-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: var(--fw-bold);
}

.steps__title {
  margin: 0 0 4px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: var(--fw-bold);
  line-height: 22px;
}

.steps__text {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--fs-body);
  line-height: 1.5;
}

.timeline-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.timeline {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.timeline th,
.timeline td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  font-size: var(--fs-body);
  line-height: 1.45;
  border-bottom: 1px solid var(--border);
}

.timeline th {
  color: var(--text-muted);
  font-weight: var(--fw-semibold);
  background: var(--bg-elevated);
}

.timeline td {
  color: var(--text-secondary);
}

.timeline td:first-child {
  color: var(--text-primary);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
}

.timeline tr:last-child th,
.timeline tr:last-child td {
  border-bottom: 0;
}

.timeline a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Mobile: stack tables as cards (readable, no crushed columns) */
@media (max-width: 767px) {
  .timeline-wrap,
  .compare-wrap {
    overflow: visible;
  }

  .timeline,
  .compare {
    min-width: 0;
    display: block;
    background: transparent;
    border-radius: 0;
    overflow: visible;
  }

  .timeline thead,
  .compare thead {
    display: none;
  }

  .timeline tbody,
  .compare tbody {
    display: grid;
    gap: 10px;
  }

  .timeline tr,
  .compare tr {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
  }

  .timeline th,
  .timeline td,
  .compare th,
  .compare td {
    display: block;
    padding: 0;
    border: 0;
    white-space: normal;
  }

  .timeline td:first-child,
  .compare td:first-child {
    color: var(--text-primary);
    font-weight: var(--fw-semibold);
  }

  .timeline td:nth-child(2),
  .compare td:nth-child(2) {
    color: var(--text-primary);
  }

  .timeline td:last-child:not(:first-child),
  .compare td:last-child:not(:first-child) {
    color: var(--text-secondary);
    padding-top: 2px;
  }
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.5;
}

.check-list .icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--ok);
}

.faq {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.faq details {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  padding: 4px 16px;
}

.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 14px 36px 14px 0;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: var(--fw-bold);
  line-height: 22px;
  list-style: none;
}

.faq summary::-webkit-details-marker,
.faq summary::marker {
  display: none;
  content: "";
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  background:
    linear-gradient(var(--accent), var(--accent)) center / 12px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2px 12px no-repeat;
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

.faq details[open] summary {
  padding-bottom: 8px;
}

.faq details[open] summary::after {
  background: linear-gradient(var(--accent), var(--accent)) center / 12px 2px no-repeat;
  transform: translateY(-50%) rotate(180deg);
}

.faq__body {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: var(--fs-body);
  line-height: 1.55;
}

.section__note {
  margin: 20px 0 0;
  max-width: 560px;
  color: var(--text-secondary);
  font-size: var(--fs-body);
  line-height: 20px;
}

.section__note a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Inner page hero */
.page-hero {
  padding: 16px 0 20px;
  background: var(--bg-page);
}

.page-hero--visual {
  padding: 16px 0 24px;
  overflow: hidden;
}

.page-hero--visual .hero__copy {
  max-width: 640px;
}

.page-hero .hero__title {
  max-width: 720px;
}

.page-hero--visual .hero__title {
  max-width: none;
}

.page-hero .hero__lead {
  margin-bottom: 16px;
}

.page-hero--visual .hero__lead {
  margin-bottom: 20px;
}

.breadcrumb {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 18px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--link);
}

/* Scenarios */
.scenario-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.scenario {
  padding: 20px 16px;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
}

.scenario__eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  line-height: 18px;
}

.scenario__title {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: var(--fw-bold);
  line-height: 22px;
}

.scenario__logo {
  display: block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 7px;
  object-fit: contain;
}

.scenario__logo--wide {
  width: 28px;
  height: 28px;
  max-width: 28px;
  object-fit: contain;
}

.scenario__text {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--fs-body);
  line-height: 1.5;
}

/* Compare table */
.compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
}

.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

@media (max-width: 767px) {
  .compare-wrap {
    background: transparent;
    border-radius: 0;
  }

  .compare {
    min-width: 0;
  }
}

.compare th,
.compare td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  font-size: var(--fs-body);
  line-height: 1.45;
  border-bottom: 1px solid var(--border);
}

.compare th {
  color: var(--text-muted);
  font-weight: var(--fw-semibold);
  background: var(--bg-elevated);
}

.compare td {
  color: var(--text-secondary);
}

.compare td:first-child {
  color: var(--text-primary);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
}

.compare tr:last-child td {
  border-bottom: 0;
}

.compare__note {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 18px;
}

/* Offer slots — elevated plates */
.offer-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.offer-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 20px 18px;
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in srgb, var(--border) 80%, var(--accent));
  background:
    radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 48%),
    linear-gradient(165deg, var(--bg-elevated) 0%, var(--bg-surface) 55%, color-mix(in srgb, var(--bg-surface) 88%, #000) 100%);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 5%, transparent),
    0 10px 24px color-mix(in srgb, #000 18%, transparent);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.offer-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 6%, transparent),
    0 14px 28px color-mix(in srgb, #000 24%, transparent);
}

.offer-card.is-offer-focus {
  border-color: var(--accent);
  box-shadow:
    inset 0 0 0 1px var(--accent),
    0 14px 28px color-mix(in srgb, var(--accent) 18%, transparent);
}

.offer-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 2px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
}

.offer-card__logo {
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: contain;
  background: color-mix(in srgb, #fff 6%, var(--bg-elevated));
}

.offer-card__logo--wide {
  width: 40px;
  height: 40px;
  max-width: 40px;
  object-fit: contain;
  background: transparent;
}

.offer-card__name {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: var(--fw-bold);
  line-height: 22px;
}

.offer-card__meta {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.45;
}

.offer-card__status {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 18px;
}

.offer-card__ad {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.offer-card .btn-primary,
.offer-card .btn-ghost {
  justify-self: stretch;
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
}

.offer-card .btn-primary {
  margin-top: 4px;
}

.disclaimer {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.nav__link.is-active {
  color: var(--text-primary);
}

/* Cookie bar — fluxweb-style, Metrika on by default */
.cookie-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 100;
  max-width: 1080px;
  margin-inline: auto;
  padding: 14px 16px;
  background: var(--color-L100);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 40px color-mix(in srgb, var(--color-D100) 18%, transparent);
}

html[data-theme="guinness"] .cookie-bar,
html[data-theme="dark"] .cookie-bar {
  background: #171d23;
}

.cookie-bar__inner {
  display: grid;
  gap: 12px;
  align-items: center;
}

.cookie-bar__text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

.cookie-bar__text a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: var(--fw-regular);
  line-height: 20px;
  cursor: pointer;
}

.cookie-bar__btn--accept {
  background: var(--accent);
  color: var(--text-on-accent);
}

.cookie-bar__btn--accept:hover {
  background: var(--accent-hover);
}

.cookie-bar__btn--decline {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.cookie-bar__btn--decline:hover {
  background: var(--bg-control-hover);
}

.site-footer__bottom-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: center;
}

.site-footer__made {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 18px;
}

.site-footer__credits {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  line-height: 1;
}

.site-footer__credits:hover {
  color: var(--text-primary);
}

.site-footer__credits-text {
  font-size: 13px;
  line-height: 18px;
  white-space: nowrap;
}

.site-footer__flux-star {
  display: block;
  flex-shrink: 0;
  width: 24px;
  height: 26px;
}

.site-footer__flux-wordmark {
  display: block;
  flex-shrink: 0;
  width: 98px;
  height: 16px;
}

.site-footer__flux {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-weight: var(--fw-semibold);
  text-decoration: none;
}

.site-footer__flux:hover {
  color: var(--accent);
}

.site-footer__flux-icon {
  width: 14px;
  height: 14px;
  display: block;
}

.legal-doc {
  max-width: 720px;
}

.legal-doc h2 {
  margin: 28px 0 12px;
  font-size: 18px;
  line-height: 24px;
}

.legal-doc h3 {
  margin: 20px 0 8px;
  font-size: 16px;
  line-height: 22px;
}

.legal-doc ul {
  margin: 0 0 14px;
  padding-left: 1.2em;
  color: var(--text-secondary);
  font-size: var(--fs-body);
  line-height: 1.55;
}

.legal-doc li {
  margin-bottom: 6px;
}

.legal-doc p {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: var(--fs-body);
  line-height: 1.55;
}

.legal-doc strong {
  color: var(--text-primary);
  font-weight: var(--fw-semibold);
}

/* Footer */
.site-footer {
  margin-top: 24px;
  padding: 40px 0 28px;
  background: var(--bg-header);
  border-top: 1px solid var(--border);
}

.site-footer__top {
  display: grid;
  gap: 28px;
  padding-bottom: 32px;
}

.site-footer__brand {
  max-width: 320px;
}

.site-footer__about {
  margin: 14px 0 18px;
  color: var(--text-secondary);
  font-size: var(--fs-body);
  line-height: 20px;
}

.site-footer__cta {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.site-footer__heading {
  margin: 0 0 12px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: var(--fw-bold);
  line-height: 20px;
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.site-footer__list a {
  color: var(--text-secondary);
  font-size: var(--fs-body);
  line-height: 20px;
  transition: color var(--ease);
}

.site-footer__list a:hover {
  color: var(--text-primary);
}

.site-footer__bottom {
  display: grid;
  gap: 8px;
  padding-top: 20px;
}

.site-footer__legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 8px;
  align-items: center;
  margin-top: 8px;
  padding: 28px 0 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 18px;
}

.site-footer__legal-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
}

.site-footer__legal-nav a:hover {
  color: var(--text-primary);
}

.site-footer__legal-nav a:not(:last-child)::after {
  content: "·";
  margin: 0 12px 0 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.site-footer__copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 18px;
}

.site-footer__legal {
  margin: 0;
  max-width: 720px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 18px;
}

@media (min-width: 768px) {
  .site-footer {
    padding: 48px 0 32px;
  }

  .site-footer__top {
    grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 32px 24px;
    padding-bottom: 40px;
    border-bottom: 0;
  }

  .site-footer__legal-nav {
    margin-top: 0;
    padding: 32px 0 28px;
  }

  .site-footer__bottom {
    display: grid;
    gap: 10px;
  }

  .site-footer__bottom-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 32px;
  }

  .site-footer__legal {
    max-width: none;
    text-align: left;
  }
}

@media (min-width: 768px) {
  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-left: 4px;
    padding: 0;
    background: transparent;
    border: 0;
    overflow: visible;
  }

  .nav-toggle {
    display: none;
  }

  .nav__cta {
    display: none !important;
  }

  .site-header__cta {
    display: inline-flex;
  }

  .hero {
    padding: 40px 0 32px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 24px;
  }

  .hero__visual {
    position: relative;
    align-self: stretch;
    min-height: 0;
    overflow: visible;
  }

  .hero__img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: 100%;
    max-width: 100%;
    margin: 0;
    object-fit: contain;
    object-position: right center;
  }

  .hero__lead {
    font-size: var(--fs-body-lg);
    line-height: 24px;
  }

  .section {
    padding: 32px 0;
  }

  .guide-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps__item {
    grid-template-columns: 1fr;
  }

  .guide-item {
    padding: 24px 20px;
  }

  .guide-item__title {
    font-size: 18px;
    line-height: 24px;
  }

  .money {
    grid-template-columns: 1.35fr 1fr;
  }

  .money__copy {
    padding: 32px 40px;
  }

  .money__visual {
    padding-top: 28px;
  }

  .money__illust {
    max-width: 220px;
  }

  .money__points {
    padding: 20px 28px 32px;
    align-content: start;
  }

  .section-head:has(> .section-illust) {
    padding-right: min(46%, 380px);
  }

  .section-head > .section-illust {
    max-width: min(46%, 380px);
  }

  .scenario-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-hero {
    padding: 20px 0 24px;
  }

  .page-hero--visual {
    padding: 20px 0 28px;
  }

  .cookie-bar__inner {
    grid-template-columns: 1fr auto;
    gap: 16px 20px;
  }
}

/* Cashback calc — blue gradient full + black plate RIGHT */
.kg-calc-panel {
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(90% 80% at 8% 0%, color-mix(in srgb, #fff 22%, transparent), transparent 52%),
    radial-gradient(70% 60% at 100% 100%, color-mix(in srgb, #002a3a 40%, transparent), transparent 55%),
    linear-gradient(145deg, var(--accent) 0%, var(--accent-hover) 52%, color-mix(in srgb, var(--accent-hover) 55%, #002a3a) 100%);
  color: var(--text-on-accent);
  box-shadow: 0 16px 36px color-mix(in srgb, var(--accent-hover) 28%, transparent);
}

.kg-calc-panel__layout {
  display: grid;
  gap: 0;
  align-items: stretch;
}

@media (min-width: 900px) {
  .kg-calc-panel__layout {
    grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.35fr);
  }
}

.kg-calc-panel__head {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 24px 20px 12px;
  background: none;
}

@media (min-width: 900px) {
  .kg-calc-panel__head {
    padding: 32px 16px 32px 32px;
  }
}

.kg-calc-panel__eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text-on-accent) 70%, transparent);
}

.kg-calc-panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: var(--fw-bold);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-on-accent);
}

.kg-calc-panel__lead {
  margin: 0;
  max-width: 28em;
  font-size: 14px;
  line-height: 21px;
  font-weight: 500;
  color: color-mix(in srgb, var(--text-on-accent) 78%, transparent);
}

/* Black plate — RIGHT */
.kg-calc-panel__stage {
  margin: 12px;
  padding: 20px 16px;
  border-radius: 16px;
  background:
    radial-gradient(80% 60% at 100% 0%, color-mix(in srgb, var(--bg-control-hover) 40%, transparent), transparent 55%),
    linear-gradient(165deg, #2b2e33 0%, #171d23 50%, #12161a 100%);
  color: #fff;
  border: 1px solid color-mix(in srgb, var(--bg-control-hover) 55%, transparent);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 5%, transparent),
    0 12px 28px color-mix(in srgb, #000 25%, transparent);
}

@media (min-width: 900px) {
  .kg-calc-panel__stage {
    margin: 16px 16px 16px 8px;
    padding: 28px 24px;
    min-height: 100%;
  }
}

.kg-calc {
  display: grid;
  gap: 0;
  margin: 0;
  max-width: none;
}

.kg-calc__progress {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.kg-calc__progress-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  color: color-mix(in srgb, var(--text-on-accent) 78%, transparent);
}

.kg-calc__bar {
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-on-accent) 22%, transparent);
  overflow: hidden;
}

.kg-calc__bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--text-on-accent);
  transition: width 0.25s ease;
}

.kg-calc__step {
  display: none;
  gap: 14px;
}

.kg-calc__step.is-active {
  display: grid;
  animation: kg-calc-in 0.22s ease;
}

@keyframes kg-calc-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.kg-calc__eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.kg-calc__q {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: var(--fw-bold);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.kg-calc__hint {
  margin: -4px 0 0;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  color: color-mix(in srgb, #fff 58%, transparent);
}

.kg-calc__choices {
  display: grid;
  gap: 8px;
}

.kg-calc__choices--scenario {
  gap: 10px;
}

@media (min-width: 720px) {
  .kg-calc__choices--scenario {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1100px) {
  .kg-calc__choices--scenario {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.kg-calc__choices--chips {
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 8px;
}

.kg-calc__choice {
  appearance: none;
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  text-align: left;
  border: 1px solid color-mix(in srgb, var(--bg-control-hover) 80%, transparent);
  background: color-mix(in srgb, #2b2e33 80%, #171d23);
  color: #fff;
  font-family: var(--font-open-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
}

.kg-calc__choice-mark {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, #fff 35%, transparent);
  background: transparent;
  box-sizing: border-box;
}

.kg-calc__choice-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.kg-calc__choice:hover {
  background: color-mix(in srgb, var(--bg-control-hover) 45%, #2b2e33);
  border-color: color-mix(in srgb, var(--accent-hover) 55%, var(--bg-control-hover));
}

.kg-calc__choice.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, #2b2e33);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.kg-calc__choice.is-active .kg-calc__choice-mark {
  border-color: var(--accent);
  background: radial-gradient(circle at center, var(--accent) 0 45%, transparent 46%);
}

.kg-calc__choice-title {
  display: block;
  font-weight: 600;
}

.kg-calc__choice-meta {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: color-mix(in srgb, #fff 55%, transparent);
}

.kg-calc__choice--chip {
  grid-template-columns: 1fr;
  place-items: center;
  min-height: 48px;
  padding: 10px 12px;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.kg-calc__choice--chip .kg-calc__choice-mark {
  display: none;
}

.kg-calc__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 2px;
}

.kg-calc__back {
  appearance: none;
  border: 0;
  background: transparent;
  color: color-mix(in srgb, #fff 62%, transparent);
  font-family: var(--font-open-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  padding: 8px 0;
  cursor: pointer;
}

.kg-calc__back:hover {
  color: #fff;
}

.kg-calc__result {
  display: grid;
  gap: 16px;
}

.kg-calc__hero-metric {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 14%, #2b2e33);
  border: 1px solid color-mix(in srgb, var(--accent-hover) 40%, transparent);
}

.kg-calc__metric-sub {
  margin: 6px 0 0;
  color: color-mix(in srgb, #fff 72%, transparent);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.kg-calc__metric-value--xl {
  margin: 0;
  font-size: clamp(32px, 5vw, 40px);
  line-height: 1.1;
  color: #fff;
  font-family: var(--font-aeroport);
  font-weight: 700;
}

.kg-calc__metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kg-calc__metric {
  display: grid;
  gap: 4px;
}

.kg-calc__metric-label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: color-mix(in srgb, #fff 45%, transparent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.kg-calc__metric-value {
  margin: 0;
  font-family: var(--font-aeroport);
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
  color: #fff;
}

.kg-calc__metric-value--accent {
  color: var(--color-G200);
}

.kg-calc__note {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  color: color-mix(in srgb, #fff 62%, transparent);
}

.kg-calc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.kg-calc__cta {
  min-width: min(100%, 220px);
  font-weight: 500;
}

.kg-calc__disclaimer {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  color: color-mix(in srgb, #fff 42%, transparent);
}

.section--calc-anchor {
  padding: 8px 0 28px;
}

.section--calc-anchor .shell {
  display: block;
}

.kg-calc__presets { display: flex; flex-wrap: wrap; gap: 8px; }
.kg-calc__preset {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-family: var(--font-open-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.kg-calc__dots { display: none; }
.kg-calc-panel__plate { display: contents; }
.kg-calc-panel__intro { display: contents; }

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