:root {
  color-scheme: light;
  --ink: #17211d;
  --ink-soft: #4d5a54;
  --paper: #ffffff;
  --canvas: #f5f7f5;
  --line: #dce2de;
  --green: #146b4a;
  --green-dark: #0d4e36;
  --green-pale: #e7f3ed;
  --blue: #245d8f;
  --amber: #f4c95d;
  --amber-pale: #fff7df;
  --danger: #a23c32;
  --shell: 1180px;
  --shadow: 0 10px 28px rgb(23 33 29 / 8%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  background: var(--ink);
  color: var(--paper);
  font-size: 19px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  padding: 8px 11px;
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--green-pale);
  color: var(--green-dark);
}

.intro-band {
  padding: 52px 0 42px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}

.intro-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  gap: 64px;
  align-items: end;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.16;
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 20px;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 780;
}

h2 {
  margin-bottom: 14px;
  font-size: 30px;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.lead {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.55;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.category-list {
  display: grid;
  gap: 8px;
}

.category-link {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  text-decoration: none;
}

.category-link:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
}

.category-link strong,
.category-link small {
  display: block;
}

.category-link small {
  margin-top: 2px;
  color: var(--ink-soft);
}

.category-link > span:last-child {
  color: var(--green);
  font-size: 22px;
}

.risk-note {
  display: flex;
  width: min(calc(100% - 40px), var(--shell));
  margin: 24px auto 0;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border-left: 4px solid var(--amber);
  background: var(--amber-pale);
  color: #5a481b;
}

.risk-note strong {
  color: var(--ink);
  white-space: nowrap;
}

.section {
  padding-top: 64px;
  padding-bottom: 64px;
}

.section--muted {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.text-link {
  color: var(--blue);
  font-weight: 720;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--green-dark);
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.offer-card {
  display: flex;
  min-width: 0;
  min-height: 292px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.offer-card[hidden] {
  display: none;
}

.offer-card:hover {
  border-color: #aab7b0;
  box-shadow: var(--shadow);
}

.offer-card__head {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.offer-card__head img {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  object-fit: contain;
}

.offer-card__head > div {
  min-width: 0;
}

.offer-card h3 {
  overflow-wrap: anywhere;
}

.offer-card h3 a {
  text-decoration: none;
}

.offer-card h3 a:hover {
  color: var(--green);
}

.offer-card__facts {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.offer-card__facts div {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.offer-card__facts dt {
  color: var(--ink-soft);
  font-size: 12px;
}

.offer-card__facts dd {
  margin: 2px 0 0;
  font-weight: 700;
}

.offer-card__footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}

.offer-card__footer span {
  max-width: 170px;
  color: var(--ink-soft);
  font-size: 12px;
}

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

.guide-card {
  min-height: 240px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.guide-card h3 a {
  text-decoration: none;
}

.guide-card h3 a:hover {
  color: var(--green);
}

.guide-card p:not(.eyebrow) {
  color: var(--ink-soft);
}

.prose-section {
  max-width: 860px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  padding: 18px 0;
  cursor: pointer;
  font-weight: 750;
}

.faq-list details p {
  max-width: 700px;
  padding-bottom: 18px;
  color: var(--ink-soft);
}

.page-top {
  padding-top: 36px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: 13px;
}

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

.breadcrumb__separator {
  color: #9ca8a2;
}

.title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.title-row h1 {
  margin-bottom: 12px;
}

.result-count {
  display: flex;
  min-width: 126px;
  flex-direction: column;
  padding: 16px;
  border-left: 3px solid var(--green);
  background: var(--green-pale);
}

.result-count strong {
  font-size: 28px;
}

.result-count span {
  color: var(--ink-soft);
  font-size: 13px;
}

.catalog-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.catalog-toolbar p {
  color: var(--ink-soft);
  font-size: 13px;
}

.search-field {
  display: grid;
  width: min(100%, 420px);
  gap: 7px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.search-field input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid #aeb9b3;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
}

.search-field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgb(20 107 74 / 14%);
}

.empty-state {
  padding: 32px;
  border: 1px dashed #aeb9b3;
  text-align: center;
}

.offer-detail {
  padding-bottom: 46px;
}

.offer-detail__identity {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.offer-detail__identity img {
  width: 88px;
  height: 88px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
}

.offer-detail h1 {
  margin-bottom: 10px;
}

.fact-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 34px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact-table div {
  min-width: 0;
  padding: 18px 20px 18px 0;
}

.fact-table div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.fact-table dt {
  color: var(--ink-soft);
  font-size: 12px;
}

.fact-table dd {
  margin: 5px 0 0;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.detail-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
  gap: 64px;
  align-items: start;
}

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

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  top: 1px;
  left: 0;
  color: var(--green);
  content: "✓";
  font-weight: 900;
}

.info-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  background: #f1f6fa;
}

.info-panel p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.article {
  max-width: 900px;
  padding-top: 36px;
  padding-bottom: 84px;
}

.article header {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.article h1 {
  margin-bottom: 16px;
}

.article-meta {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.article-body {
  max-width: 760px;
  padding-top: 18px;
}

.article-body section {
  padding: 24px 0;
}

.article-body h2 {
  font-size: 25px;
}

.article-body p,
.article-body li {
  color: #35413b;
  font-size: 17px;
}

.article-body a {
  color: var(--blue);
}

.article-next {
  margin-top: 32px;
  padding: 24px;
  border-top: 4px solid var(--green);
  background: var(--green-pale);
}

.article-next p {
  margin: 6px 0 14px;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.inline-links a {
  color: var(--green-dark);
  font-weight: 750;
}

.article--info header {
  padding-bottom: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: #d7dfdb;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr;
  gap: 64px;
  padding-top: 46px;
  padding-bottom: 46px;
}

.brand--footer {
  margin-bottom: 18px;
  color: var(--paper);
}

.brand--footer .brand__mark {
  background: var(--amber);
  color: var(--ink);
}

.site-footer p {
  max-width: 360px;
  color: #aebbb4;
  font-size: 13px;
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.site-footer nav a,
.site-footer a {
  color: #eaf0ed;
  text-underline-offset: 3px;
}

.footer-title {
  color: var(--paper) !important;
  font-weight: 750;
}

@media (max-width: 940px) {
  .intro-band__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .fact-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact-table div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .fact-table div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .site-header__inner {
    display: block;
    padding-top: 10px;
    padding-bottom: 8px;
  }

  .brand {
    margin-bottom: 7px;
  }

  .main-nav {
    margin-right: -14px;
    margin-left: -8px;
    padding-right: 14px;
    padding-left: 8px;
  }

  .main-nav a {
    padding: 7px 8px;
    font-size: 13px;
  }

  .intro-band {
    padding-top: 38px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 26px;
  }

  .lead {
    font-size: 17px;
  }

  .risk-note {
    width: min(calc(100% - 28px), var(--shell));
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .risk-note strong {
    white-space: normal;
  }

  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .section-heading,
  .title-row,
  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .offer-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .offer-card {
    min-height: 0;
  }

  .breadcrumb {
    overflow-x: auto;
    white-space: nowrap;
  }

  .result-count {
    min-width: 118px;
  }

  .search-field {
    width: 100%;
  }

  .offer-detail__identity {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
  }

  .offer-detail__identity img {
    width: 64px;
    height: 64px;
  }

  .fact-table {
    grid-template-columns: 1fr;
  }

  .fact-table div,
  .fact-table div + div,
  .fact-table div:nth-child(3) {
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .fact-table div:first-child {
    border-top: 0;
  }

  .detail-copy {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

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