@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Inter:wght@400..700&display=swap");

:root {
  color-scheme: dark;
  --background: #100d18;
  --surface: #171320;
  --surface-raised: #1c1727;
  --text: #f6f2fc;
  --muted: #b3a9c1;
  --subtle: #9a90a9;
  --line: #30283b;
  --accent: #bb9bff;
  --accent-bright: #a574f7;
  --heading: "Bricolage Grotesque", Inter, system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 280px;
  background: var(--background);
  color: var(--text);
  font: 400 0.9375rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
button:disabled { cursor: default; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #c9afff; outline-offset: 4px; }
.guide-links { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin-block: 1rem; }
.guide-links a, .guide-document a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.guide-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.25rem; }
.guide-document { max-width: 52rem; padding-block: clamp(2rem, 6vw, 5rem); font-size: 1rem; }
.guide-document nav[aria-label="Sayfa konumu"] { color: var(--muted); margin-bottom: 2rem; }
.guide-document h1 { font: 750 clamp(2.1rem, 5vw, 3.75rem)/1.08 var(--heading); letter-spacing: -.04em; }
.guide-document h2 { margin-block: 2rem .5rem; font: 680 1.45rem/1.25 var(--heading); }
.guide-document p { line-height: 1.75; }
.guide-document .guide-lead { color: var(--muted); font-size: 1.15rem; margin-top: 1rem; }
.guide-document aside { border-top: 1px solid var(--line); margin-top: 2.5rem; }
.guide-index-link { display: inline-block; color: var(--accent); font-weight: 650; text-decoration: underline; text-underline-offset: .2em; }
.guide-document .guide-source { margin-top: 1.5rem; color: var(--muted); }
.hub-jumps { margin-block: 1.5rem 2rem; }
.topic-section { border-top: 1px solid var(--line); padding-bottom: 1.25rem; scroll-margin-top: 1rem; }
.topic-section p { color: var(--muted); }
.topic-section ul { padding-left: 1.25rem; margin-block: .75rem 0; }
.topic-section li { padding-block: .3rem; }
[hidden] { display: none !important; }

.container {
  width: min(1184px, calc(100% - 96px));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid #241d30;
  background: #110d19;
}

.header-inner {
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font: 760 1.2rem/1 var(--heading);
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  flex: 0 0 31px;
  width: 31px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #ba94ff;
  border-radius: 9px;
  background: linear-gradient(135deg, #ccafff, #8b54e2);
  color: #1c102c;
  font-size: 0;
  box-shadow: inset 0 1px 1px #f3e7ff4d;
}

.brand-mark::before {
  width: 17px;
  aspect-ratio: 1;
  position: absolute;
  background: currentColor;
  clip-path: polygon(50% 0%, 64% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 64%, 0 50%, 35% 35%);
  content: "";
}

.brand-mark::after {
  width: 5px;
  aspect-ratio: 1;
  position: absolute;
  border-radius: 50%;
  background: #c4a2ff;
  content: "";
}


.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 38px);
}

.site-nav a {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 550;
  white-space: nowrap;
  transition: color 120ms ease;
}

.site-nav a:first-child,
.site-nav a:hover,
.footer-links a:hover { color: var(--text); }

.header-action {
  justify-self: end;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border: 1px solid #463759;
  border-radius: 9px;
  background: #1a1326;
  color: #e8dcfb;
  font-size: 0.8125rem;
  font-weight: 650;
  transition: border-color 140ms ease, background 140ms ease;
}

.header-action:hover { border-color: #8b6db6; background: #231831; }

#selection-count {
  min-width: 21px;
  padding: 1px 5px;
  border: 1px solid #5a427e;
  border-radius: 5px;
  background: #392652;
  color: #eadcff;
  font-size: 0.6875rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.update-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 9px 10px 9px 14px;
  border: 1px solid #4a3962;
  border-radius: 12px;
  background: linear-gradient(110deg, #2c1d40, #20182c 70%);
}

.update-banner:not([hidden]) + .hero { margin-top: 13px; }

.update-banner-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #5e467e;
  border-radius: 9px;
  background: #3b2953;
  color: #dbc3ff;
  font-size: 1.3rem;
  line-height: 1;
}

.update-banner-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 16px;
  overflow-wrap: anywhere;
}

.update-banner-copy h2 {
  color: #f5eafe;
  font: 720 1rem/1.25 var(--heading);
}

#campaign-update-status {
  color: #cbbada;
  font-size: 0.75rem;
  line-height: 1.45;
}

.update-banner-link, .update-banner-close {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #ead9ff;
  transition: background 140ms ease, border-color 140ms ease;
}

.update-banner-link {
  gap: 8px;
  padding: 0 12px;
  border-color: #5a4473;
  background: #39274d;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.update-banner-close {
  width: 44px;
  padding: 0;
  background: transparent;
  font-size: 1.3rem;
  line-height: 1;
}

.update-banner-link:hover, .update-banner-close:hover {
  border-color: #8d6fb1;
  background: #4b3561;
}

@media (max-width: 790px) {
  .update-banner { margin-top: 18px; }
}

@media (max-width: 540px) {
  .update-banner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 5px 9px;
    padding: 9px 7px 9px 10px;
  }

  .update-banner-icon { width: 32px; height: 32px; }

  .update-banner-copy { padding-top: 2px; }

  .update-banner-link {
    grid-area: 2 / 2 / auto / 4;
    justify-self: start;
    min-height: 44px;
  }

  .update-banner-close { grid-column: 3; grid-row: 1; }
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 370px;
  align-items: center;
  overflow: hidden;
  margin-top: 28px;
  border: 1px solid #3d2c52;
  border-radius: 22px;
  background: radial-gradient(ellipse at 80% 45%, #41215e, transparent 66%), #1c142a;
}

.hero-art {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  display: block;
  width: 65%;
  height: 100%;
  object-fit: cover;
  object-position: 57% center;
  color: transparent;
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #1c142a 26%, #1c142af2 40%, #1c142a60 58%, transparent 77%);
  pointer-events: none;
  content: "";
}

.hero-content {
  width: min(720px, 73%);
  padding: 45px clamp(28px, 4vw, 57px);
}

.hero h1 {
  font: 800 clamp(2.5rem, 4.7vw, 4.5rem)/0.98 var(--heading);
  letter-spacing: -0.062em;
}

.hero h1 span {
  display: block;
  color: #c4a4ff;
}

.hero-content > p {
  max-width: 420px;
  margin-top: 20px;
  color: #d1c4df;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 25px;
}

.button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 0.8125rem;
  font-weight: 700;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.button-primary {
  background: #bd9aff;
  color: #1d1230;
  box-shadow: inset 0 1px #e3cfff80;
}

.button-primary:hover { background: #d1b7ff; }
.button-primary:disabled { background: #423651; color: #d6c9e6; box-shadow: none; }

.button-ghost {
  border-color: #514364;
  background: #251a35a0;
  color: #efe6fc;
}

.button-ghost:hover { border-color: #9e7dc6; background: #352449; }

.source-note {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin-top: 13px;
  padding: 9px 14px;
  border: 1px solid #2e253b;
  border-radius: 9px;
  background: #171221;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.source-note strong { color: #e1cef9; font-weight: 650; white-space: nowrap; }

.source-note::before {
  width: 7px;
  aspect-ratio: 1;
  flex: 0 0 7px;
  align-self: center;
  border-radius: 50%;
  background: #b38bf5;
  box-shadow: 0 0 0 4px #ac7df221;
  content: "";
}

.catalog { margin-top: 43px; scroll-margin-top: 22px; }

.section-heading { margin-bottom: 20px; }

.section-heading h2, .guide-intro h2 {
  font: 760 clamp(1.9rem, 3.3vw, 2.65rem)/1.1 var(--heading);
  letter-spacing: -0.045em;
}

.section-heading p, .guide-intro p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.875rem;
}

.catalog-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.category-tab {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid #342a42;
  border-radius: 8px;
  background: #1a1524;
  color: #c7bcd4;
  font-size: 0.8125rem;
  font-weight: 610;
  white-space: nowrap;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.category-tab:hover { border-color: #715890; color: #f6ecff; }

.category-tab[aria-pressed="true"] {
  border-color: #7658a2;
  background: #382651;
  color: #f0e4ff;
}

.category-tab span {
  color: #b6a4ca;
  font-size: 0.6875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.category-tab[aria-pressed="true"] span { color: #e1c9ff; }

.filters {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box::before {
  position: absolute;
  left: 13px;
  top: 12px;
  width: 11px;
  height: 11px;
  border: 1.5px solid #a397b3;
  border-radius: 50%;
  pointer-events: none;
  content: "";
}

.search-box::after {
  position: absolute;
  left: 21px;
  top: 22px;
  width: 5px;
  height: 1.5px;
  border-radius: 1px;
  background: #a397b3;
  transform: rotate(45deg);
  transform-origin: left center;
  pointer-events: none;
  content: "";
}

.search-box input, #offer-sort {
  min-height: 38px;
  border: 1px solid #342a42;
  border-radius: 8px;
  background: #181321;
  color: var(--text);
  font-size: 0.8125rem;
}

.search-box input {
  width: clamp(142px, 15.5vw, 220px);
  padding: 0 12px 0 34px;
}

.search-box input::placeholder { color: #a89cb6; opacity: 1; }

#offer-sort {
  max-width: 170px;
  padding: 0 7px 0 10px;
}

.table-shell {
  overflow: hidden;
  border: 1px solid #332a40;
  border-radius: 12px;
  background: #171320;
}

.offer-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.offer-table thead th {
  padding: 12px 16px;
  background: #21192c;
  color: #c5b7d3;
  font-size: 0.73rem;
  font-weight: 650;
  white-space: nowrap;
}

.offer-table tr > :first-child { padding-left: 21px; }

.offer-table tr > :last-child { padding-right: 20px; }

.offer-table tbody th, .offer-table td {
  height: 76px;
  padding: 11px 16px;
  border-top: 1px solid #302639;
  color: #e7deef;
  font-size: 0.8125rem;
  vertical-align: middle;
}

.offer-table .provider-cell { text-align: left; }

.offer-table tbody tr { transition: background 120ms ease; }
.offer-table tbody tr:hover { background: #1d1728; }

.provider {
  display: flex;
  align-items: center;
  gap: 11px;
}

.provider-mark {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  place-items: center;
  border: 1px solid #5a467e;
  border-color: color-mix(in srgb, var(--mark-ink, #d6b7ff) 30%, #20172e);
  border-radius: 10px;
  background: #35244d;
  background: color-mix(in srgb, var(--mark-ink, #d6b7ff) 14%, #20172e);
  color: var(--mark-ink, #d6b7ff);
  font: 750 0.9rem/1 var(--heading);
  letter-spacing: 0.01em;
}

.mark-violet { --mark-ink: #d5b4ff; }
.mark-blue { --mark-ink: #a4bbff; }
.mark-amber { --mark-ink: #f6ca80; }
.mark-mint { --mark-ink: #9fe5c5; }
.mark-rose { --mark-ink: #f1accd; }
.mark-slate { --mark-ink: #c4cee6; }

.provider-name, .offer-amount { display: block; }

.provider-name { color: var(--text); font-weight: 700; }

.provider-type, .offer-caption {
  display: block;
  margin-top: 2px;
  color: var(--subtle);
  font-size: 0.7rem;
  line-height: 1.3;
}

.offer-amount {
  color: #d2b4ff;
  font: 750 1.16rem/1.15 var(--heading);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.detail-btn {
  min-height: 37px;
  padding: 0 11px;
  border: 1px solid #4c3b60;
  border-radius: 7px;
  background: #21182d;
  color: #ebdafa;
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
  transition: border-color 140ms ease, background 140ms ease;
}

.detail-btn:hover { border-color: #9f7bd2; background: #34234a; }

.compare-choice {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  gap: 6px;
  padding: 0 3px;
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
  cursor: pointer;
}

.compare-choice:hover { color: var(--text); }

.compare-check {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #bd9aff;
  cursor: pointer;
}

.compare-check:disabled { cursor: default; }

.empty-state {
  display: grid;
  justify-items: center;
  gap: 13px;
  padding: 36px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.empty-state h3 {
  color: var(--text);
  font: 720 1.25rem/1.2 var(--heading);
}

.catalog-footer {
  padding: 11px 0 0;
  color: var(--subtle);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.guide {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.35fr);
  align-items: start;
  gap: 42px;
  margin: 62px 0 65px;
  padding-top: 35px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 22px;
}

.faq-list { display: grid; gap: 8px; }

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.faq-list summary {
  display: flex;
  min-height: 47px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 15px;
  list-style: none;
  color: #e9e0ef;
  font-size: 0.84rem;
  font-weight: 650;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  flex: none;
  color: #c6a0ff;
  font-size: 1.1rem;
  font-weight: 500;
  content: "+";
}

.faq-list details[open] summary::after { content: "−"; }

.faq-list details > p, .faq-list details > div {
  padding: 0 15px 14px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.site-footer {
  border-top: 1px solid #282033;
  background: #130e1b;
}

.footer-inner {
  display: flex;
  min-height: 98px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
  color: var(--muted);
  font-size: 0.75rem;
}

.footer-brand { display: grid; gap: 6px; }

.footer-brand .brand { font-size: 1.05rem; }

.footer-brand .brand-mark {
  width: 25px;
  flex-basis: 25px;
  border-radius: 7px;
}

.footer-brand .brand-mark::before { width: 14px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 20px;
}

.compare-bar {
  position: fixed;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0 16px max(14px, env(safe-area-inset-bottom));
  pointer-events: none;
}

.compare-inner {
  display: flex;
  width: min(720px, 100%);
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-inline: auto;
  padding: 10px 12px 10px 16px;
  border: 1px solid #74549d;
  border-radius: 12px;
  background: #251a35;
  box-shadow: 0 12px 40px #0009;
  pointer-events: auto;
}

body:has(.compare-bar:not([hidden])) .site-footer {
  padding-bottom: 84px;
}

.compare-summary { color: #e7daf6; font-size: 0.875rem; font-weight: 650; }
#bar-count { color: #d8bbff; font-variant-numeric: tabular-nums; }

#selection-status {
  color: #c7b4db;
  font-size: 0.73rem;
  font-weight: 400;
}

.compare-actions { display: flex; align-items: center; gap: 8px; }

#clear-selection, #open-compare {
  min-height: 39px;
  white-space: nowrap;
}

.offer-dialog {
  width: min(720px, calc(100% - 28px));
  max-height: min(82dvh, 760px);
  overflow: auto;
  padding: 0;
  border: 1px solid #5e477b;
  border-radius: 16px;
  background: #1b1426;
  color: var(--text);
  box-shadow: 0 20px 80px #0008;
}

.offer-dialog::backdrop { background: #0b0714d9; backdrop-filter: blur(4px); }

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 23px;
  border-bottom: 1px solid var(--line);
}

.dialog-header h2 {
  font: 760 clamp(1.35rem, 4vw, 1.7rem)/1.1 var(--heading);
  letter-spacing: -0.035em;
}

#close-dialog {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  padding: 0;
  border: 1px solid #4c3b5f;
  border-radius: 8px;
  background: #261b37;
  color: #ecdafd;
  font-size: 1.15rem;
}

#close-dialog:hover { background: #3a2751; }

#dialog-body { padding: 20px 23px 23px; }

.dialog-kicker {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 650;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 18px;
}

.detail-field {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1e172a;
}

.detail-grid dt { color: var(--muted); font-size: 0.75rem; }
.detail-grid dd { margin: 3px 0 0; color: var(--text); font-size: 0.875rem; font-weight: 650; }
.dialog-terms { color: var(--muted); font-size: 0.875rem; line-height: 1.6; }
.dialog-terms > * + * { margin-top: 8px; }

.compare-table-wrap {
  margin-top: 12px;
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.compare-table {
  width: 100%;
  min-width: max-content;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.8125rem;
}

.compare-table th, .compare-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.compare-table thead th { background: #2c1f3d; color: #ecdcff; }
.compare-table tbody th { color: var(--muted); }
.compare-table tbody tr:last-child > * { border-bottom: 0; }

.sr-only, .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .container { width: calc(100% - 60px); }
  .offer-table th, .offer-table td { padding-right: 11px; padding-left: 11px; }
  .offer-table tr > :first-child { padding-left: 16px; }
  .offer-table tr > :last-child { padding-right: 16px; }
}

@media (max-width: 940px) {
  .catalog-controls { align-items: flex-start; flex-direction: column; gap: 10px; }
  .filters { width: 100%; }
  .search-box { flex: 1; }
  .search-box input { width: 100%; }
}

@media (max-width: 790px) {
  .container { width: calc(100% - 36px); }
  .header-inner { grid-template-columns: 1fr 1fr; min-height: 63px; gap: 16px; }
  .site-nav { display: none; }

  .hero { margin-top: 20px; min-height: 330px; }
  .hero-content { width: min(530px, 80%); padding: 34px 28px; }
  .hero h1 { font-size: clamp(2.55rem, 7vw, 3.45rem); }
  .hero-art { width: 72%; }
  .hero::after { background: linear-gradient(90deg, #1c142a 19%, #1c142af5 36%, #1c142a60 68%, transparent); }

  .table-shell { overflow: visible; border: 0; border-radius: 0; background: transparent; }
  .offer-table, .offer-table tbody { display: block; }

  .offer-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
  }

  .offer-table tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .offer-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
    padding: 13px 14px 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
  }

  .offer-table tbody tr > *, .offer-table tbody tr > :first-child, .offer-table tbody tr > :last-child {
    display: block;
    height: auto;
    padding: 8px 0;
    border: 0;
  }

  .offer-table tr > td[data-label]::before {
    display: block;
    margin-bottom: 3px;
    color: var(--subtle);
    font-size: 0.68rem;
    content: attr(data-label);
  }

  .offer-table tbody tr > .provider-cell {
    grid-column: 1 / -1;
    padding-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
  }

  .offer-table tr > td.action-cell {
    grid-column: 1 / -1;
    padding-top: 9px;
    padding-bottom: 0;
    border-top: 1px solid var(--line);
  }

  .offer-table tr > td.action-cell::before { display: none; }
  .row-actions { justify-content: space-between; }
  .detail-btn { min-height: 41px; }
  .compare-choice { min-height: 41px; padding-inline: 6px; }

  .empty-state { border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
  .guide { margin-top: 44px; gap: 20px; }
}

@media (max-width: 540px) {
  .container { width: calc(100% - 28px); }

  .hero { min-height: 0; align-items: flex-start; border-radius: 16px; }
  .hero-content { width: 100%; padding: 25px 22px 179px; }
  .hero h1 { font-size: clamp(2.35rem, 10.5vw, 3.3rem); }
  .hero-content > p { margin-top: 15px; font-size: 0.875rem; }
  .hero-actions { margin-top: 17px; }
  .hero-art { inset: auto 0 0; width: 100%; height: 205px; object-position: 58% 56%; }
  .hero::after { background: linear-gradient(180deg, #1c142a 46%, #1c142af5 58%, #1c142a25 83%, transparent); }

  .catalog { margin-top: 32px; }
  .section-heading { margin-bottom: 14px; }
  .category-tabs { width: 100%; }
  .category-tab { min-height: 39px; padding-inline: 9px; font-size: 0.76rem; }
  .search-box input, #offer-sort { min-height: 42px; font-size: 1rem; }
  .search-box input { min-width: 0; }
  #offer-sort { max-width: 45%; }
  .offer-table tbody { grid-template-columns: 1fr; }

  .guide { grid-template-columns: 1fr; margin-bottom: 42px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }

  .compare-inner { align-items: stretch; flex-direction: column; padding: 10px 12px; }
  .compare-actions { justify-content: flex-end; }
  body:has(.compare-bar:not([hidden])) .site-footer { padding-bottom: 124px; }
  .dialog-header { padding-inline: 16px; }
  #dialog-body { padding-inline: 16px; }
}

@media (max-width: 360px) {
  .header-inner { gap: 9px; }
  .brand { gap: 8px; font-size: 1.03rem; }
  .brand-mark { width: 27px; flex-basis: 27px; }
  .header-action { gap: 6px; padding-inline: 8px; font-size: 0.75rem; }
  .header-action > [aria-hidden="true"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.offer-detail { display: block; margin-block-start: .25rem; color: var(--muted); font-size: .75rem; line-height: 1.35; }
.source-links { display: flex; align-items: baseline; flex-wrap: wrap; gap: .375rem .75rem; margin: 1.25rem 0 0; line-height: 1.5; }
.source-link { color: #d1b5ff; text-decoration: underline; text-underline-offset: .2em; }
.source-link:hover { color: #eee1ff; }
.source-date { color: var(--muted); font-size: .875rem; }
