@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('./assets/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('./assets/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #f5f6ef;
  --surface: #fdfdf9;
  --ink: #192219;
  --muted: #536052;
  --line: #d8decf;
  --soft: #edf0e4;
  --dark: #151b16;
  --dark-line: #39433a;
  --lime: #d1fa54;
  --lime-hover: #bdec35;
  --focus: #45612c;
  --gutter: clamp(1rem, 3.2vw, 3rem);
  --radius: 1.15rem;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 100%;
  font-weight: 500;
  line-height: 1.5;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
body:has(.compare-tray:not([hidden])) { padding-bottom: 5.5rem; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button:enabled, select { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
a, button, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
h1, h2, h3, p { margin-block: 0; }
section[id] { scroll-margin-top: 1.25rem; }

.site-width {
  width: min(83.5rem, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 10;
  inset: 0.75rem auto auto 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--lime);
}

.site-header {
  min-height: 5.4rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 0.54rem;
  text-decoration: none;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.088em;
  line-height: 1.15;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 0.63rem;
  background: var(--lime);
  flex: none;
}

.brand-icon::after {
  content: '';
  width: 1rem;
  height: 1.23rem;
  background: var(--ink);
  clip-path: polygon(51% 0, 62% 39%, 100% 46%, 66% 58%, 49% 100%, 37% 59%, 0 52%, 37% 42%);
  transform: rotate(13deg);
}

.brand-dot { color: #6a891f; }
.site-nav { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem); }
.site-nav a, .footer-catalog {
  padding-block: 0.6rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}
.site-nav a:hover, .footer-catalog:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }

.button {
  min-height: 2.8rem;
  padding: 0.66rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  background: transparent;
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: background-color 160ms, border-color 160ms, color 160ms;
}
.button-outline { background: var(--surface); border-color: var(--line); }
.button-outline:hover:not(:disabled) { background: var(--soft); border-color: #9da996; }
.button-lime, .button-primary { background: var(--lime); color: var(--ink); }
.button-lime:hover:not(:disabled), .button-primary:hover:not(:disabled) { background: var(--lime-hover); }
.button:disabled { opacity: 0.58; }
.header-compare { justify-self: end; background: transparent; padding-inline: 0.85rem; }
.header-compare:disabled { opacity: 0.76; }
.compare-icon {
  position: relative;
  display: inline-block;
  width: 1.05rem;
  height: 1.05rem;
  background: linear-gradient(currentColor,currentColor) 0 35% / 100% 2px no-repeat,
    linear-gradient(currentColor,currentColor) 0 75% / 100% 2px no-repeat;
  flex: none;
}
.compare-icon::before, .compare-icon::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 7px;
  border-radius: 1px;
  background: currentColor;
}
.compare-icon::before { top: 12%; left: 34%; }
.compare-icon::after { top: 50%; right: 28%; }
.compare-count {
  min-width: 1.4rem;
  padding: 0.12rem 0.28rem;
  border-radius: 0.3rem;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.77rem;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(27rem, 39vw, 34rem);
  isolation: isolate;
  overflow: hidden;
  border-radius: 1.65rem;
  background: var(--dark);
  color: #fafdf4;
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(48rem, 62%);
  padding: clamp(2rem, 5.4vw, 5.2rem);
  padding-right: 0;
}
.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.65rem, 5.1vw, 4.95rem);
  font-weight: 800;
  line-height: 0.995;
  letter-spacing: -0.078em;
  text-wrap: balance;
}
.hero h1 em { color: var(--lime); font-style: normal; white-space: nowrap; }
.hero p {
  max-width: 28rem;
  margin-top: 1.28rem;
  color: #cbd4c8;
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  line-height: 1.6;
}
.hero-actions { margin-top: 1.65rem; display: flex; flex-wrap: wrap; gap: 0.85rem 1.25rem; align-items: center; }
.hero-actions .button { min-height: 3.15rem; padding-inline: 1.15rem; font-size: 0.94rem; }
.hero-count { color: #cbd4c8; font-size: 0.88rem; font-weight: 750; }
.hero-count:empty { display: none; }
.hero-art {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 38%;
  background: linear-gradient(90deg, var(--dark) 0%, transparent 28%), url('./assets/hero-cards.jpg') center 50% / cover no-repeat;
}
.hero-art::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background: linear-gradient(90deg, var(--dark), transparent 35%);
  pointer-events: none;
}
.hero :focus-visible, .compare-tray :focus-visible { outline-color: var(--lime); }

.catalog { margin-top: clamp(3rem, 6vw, 5.6rem); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 0.8rem 1.5rem; margin-bottom: 1.4rem; }
.section-head h2, .method h2 {
  font-size: clamp(2.05rem, 4.1vw, 3.2rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.068em;
  text-wrap: balance;
}
.section-head p { margin-top: 0.55rem; color: var(--muted); }
.result-count {
  min-width: max-content;
  padding: 0.45rem 0.75rem;
  margin-bottom: 0.1rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}
.catalog-controls { display: grid; grid-template-columns: minmax(0,1fr) minmax(12.2rem, auto); gap: 0.6rem; }
.search-box, .sort-box { position: relative; }
.search-box input, .sort-box select {
  min-height: 3.1rem;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--surface);
  font-weight: 650;
}
.search-box input { padding: 0.65rem 0.85rem 0.65rem 2.65rem; }
.search-box input::placeholder { color: var(--muted); opacity: 1; }
.search-box input:focus-visible, .sort-box select:focus-visible { outline-offset: 1px; }
.search-icon {
  position: absolute;
  top: calc(50% - 0.49rem);
  left: 1rem;
  width: 0.83rem;
  height: 0.83rem;
  border: 1.7px solid var(--muted);
  border-radius: 50%;
  pointer-events: none;
}
.search-icon::after {
  content: '';
  position: absolute;
  width: 0.38rem;
  height: 1.7px;
  background: var(--muted);
  transform: rotate(46deg);
  bottom: -0.15rem;
  right: -0.27rem;
}
.sort-box select { appearance: none; padding: 0.65rem 2.5rem 0.65rem 0.9rem; font-size: 0.92rem; }
.sort-box::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: calc(50% - 0.3rem);
  width: 0.48rem;
  height: 0.48rem;
  border: solid var(--muted);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  pointer-events: none;
}
.filter-list { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.7rem; }
.filter-chip {
  min-height: 2.75rem;
  padding: 0.52rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 760;
  line-height: 1.25;
  transition: background-color 160ms, border-color 160ms;
}
.filter-chip:hover { border-color: #a0ac98; background: var(--soft); }
.filter-chip.is-active, .filter-chip[aria-pressed='true'] { color: var(--ink); background: var(--lime); border-color: var(--lime); }

.provider-grid { margin-top: 1rem; }
.provider-grid:not(:empty) { border-block: 1px solid var(--line); }
.provider-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr) auto;
  grid-template-areas: 'service facts actions';
  align-items: start;
  gap: clamp(0.75rem, 1.6vw, 1.45rem);
  padding: 1rem clamp(0.6rem, 1.3vw, 1.2rem);
  border-bottom: 1px solid var(--line);
}
.provider-card:last-child { border-bottom: 0; }
.provider-card:focus-within { background: var(--soft); }
.provider-service { grid-area: service; min-width: 0; }
.provider-top { display: flex; align-items: flex-start; gap: 0.75rem; min-width: 0; }
.provider-logo {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 0.7rem;
  flex: none;
  display: grid;
  place-items: center;
  background-color: #e4efcb;
  color: #2c4926;
  font-weight: 800;
  font-size: 0.91rem;
}
.provider-logo[data-tone='1'] { background: #dde8f7; color: #213d62; }
.provider-logo[data-tone='2'] { background: #eddff2; color: #5d356a; }
.provider-logo[data-tone='3'] { background: #f7e5d3; color: #6a4228; }
.provider-logo[data-tone='4'] { background: #d9eeeb; color: #25534e; }
.provider-logo[data-tone='5'] { background: #e5e9f2; color: #364966; }
.provider-identity { min-width: 0; }
.provider-name-line { display: flex; align-items: center; gap: 0.4rem; }
.provider-name { overflow-wrap: anywhere; font-size: clamp(1.06rem, 1.8vw, 1.32rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.048em; }
.provider-category { color: var(--muted); font-size: 0.86rem; margin-top: 0.12rem; }
.provider-rank {
  display: inline-grid;
  place-items: center;
  min-width: 1.42rem;
  min-height: 1.42rem;
  padding-inline: 0.23rem;
  border-radius: 0.35rem;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  flex: none;
}
.provider-description { margin: 0.85rem 0; color: var(--muted); font-size: 0.94rem; line-height: 1.47; }
.provider-top .provider-description { margin: 0.23rem 0 0; font-size: 0.86rem; line-height: 1.4; }
.provider-facts, .provider-detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
  min-width: 0;
}
.provider-facts { grid-area: facts; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.provider-detail-facts {
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}
.provider-fact { min-width: 0; }
.provider-fact dt { color: var(--muted); font-size: 0.85rem; line-height: 1.3; }
.provider-fact dd { display: block; margin: 0.16rem 0 0; font-size: 0.9rem; font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
.provider-actions { grid-area: actions; display: grid; grid-template-columns: minmax(6.3rem, auto); gap: 0.45rem; }
.provider-actions .button { padding-inline: 0.6rem; }
.provider-link { color: var(--ink); }
.provider-compare.is-selected, .provider-compare[aria-pressed='true'] { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.provider-compare.is-selected:hover { background: var(--lime-hover); }
.catalog-state { margin-top: 1rem; border: 1px dashed #b9c5b3; border-radius: var(--radius); background: var(--surface); padding: 1.8rem 1rem; text-align: center; }
.catalog-state p { margin-bottom: 0.7rem; }
.pagination-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.38rem; margin-top: 1.2rem; }
.pagination-button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 750;
  transition: background-color 160ms, border-color 160ms;
}
.pagination-button:hover:not(:disabled) { border-color: #9da996; background: var(--soft); }
.pagination-button.is-current { border-color: var(--lime); background: var(--lime); }
.pagination-button.is-current:hover { border-color: var(--lime-hover); background: var(--lime-hover); }
.pagination-button:disabled { opacity: 0.5; }

.method {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(3.6rem, 7vw, 6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #e7eddd;
  padding: clamp(1.3rem, 3.9vw, 3.5rem);
}
.method-intro p { margin-top: 0.7rem; color: var(--muted); }
.method-list { margin: 0; }
.method-list > div { display: grid; grid-template-columns: minmax(7.1rem, 0.42fr) 1fr; gap: 0.6rem; border-top: 1px solid #c3cfba; padding-block: 0.78rem; }
.method-list dt { font-weight: 800; }
.method-list dd { margin: 0; color: var(--muted); font-size: 0.94rem; }
.site-footer { min-height: 6rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1.1rem; }
.site-credit { color: var(--muted); font-size: 0.9rem; }
.site-credit strong { color: var(--ink); }

.compare-tray {
  position: fixed;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  color: #fafdf4;
  background: var(--dark);
  border-top: 1px solid var(--dark-line);
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom, 0px));
}
.compare-tray-inner { width: min(83.5rem, 100%); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.compare-selection, .compare-tray-actions { display: flex; align-items: center; gap: 0.45rem; }
.compare-selection { flex-wrap: wrap; min-width: 0; }
.compare-chip { display: inline-flex; align-items: center; gap: 0.3rem; min-height: 2.35rem; max-width: 100%; padding: 0.35rem 0.55rem; background: #333e33; color: #fff; border: 0; border-radius: 0.5rem; font-size: 0.86rem; font-weight: 700; }
.compare-chip:hover { background: #465544; }
.compare-chip-remove { font-size: 1.1rem; line-height: 1; }
.button-quiet { color: #e5eee2; }
.button-quiet:hover { color: #fff; background: #354135; }

.dialog {
  width: min(60rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: clamp(1rem, 3.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2rem 6rem #101b174a;
}
.dialog::backdrop { background: #101b17a0; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 0.8rem; }
.dialog-header h2, #provider-content h2 { font-size: clamp(1.35rem, 3.8vw, 2.15rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.06em; }
.detail-dialog-header { justify-content: end; margin-bottom: 0; }
.icon-close {
  position: relative;
  min-width: 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--surface);
  color: var(--ink);
}
.icon-close::before, .icon-close::after { content: ''; position: absolute; top: calc(50% - 1px); left: calc(50% - 0.51rem); width: 1.02rem; height: 2px; background: currentColor; transform: rotate(45deg); }
.icon-close::after { transform: rotate(-45deg); }
.icon-close:hover { background: var(--soft); }
.provider-dialog { width: min(37.5rem, calc(100% - 2rem)); }
.provider-detail-facts { row-gap: 0.95rem; }
.provider-detail-facts dt { font-weight: 800; }
.provider-detail-facts dd { margin-inline-start: 0; overflow-wrap: anywhere; }
.provider-limitation { margin-top: 0.85rem; border-left: 3px solid #8a6831; padding: 0.5rem 0.8rem; background: #fbefda; color: #503815; }
.provider-date { color: var(--muted); font-size: 0.88rem; }
.provider-source-list { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; padding: 0; list-style: none; }
.provider-source-list a, .comparison-table a { font-weight: 760; text-underline-offset: 0.17em; }
#provider-content .button { margin-top: 0.8rem; }
#provider-content h3 { margin-top: 1rem; }
.comparison-scroll { overflow-x: auto; padding-bottom: 0.4rem; }
.comparison-table { width: 100%; border-collapse: collapse; text-align: start; font-size: 0.9rem; }
.comparison-table th, .comparison-table td { min-width: 7.5rem; border: 1px solid var(--line); padding: 0.65rem 0.7rem; text-align: start; vertical-align: top; }
.comparison-table thead th, .comparison-table tbody th { background: var(--soft); font-weight: 800; }
.comparison-table tbody th { min-width: 6.75rem; }

@media (max-width: 67rem) {
  .hero-copy { width: min(37rem, 65%); }
}

@media (max-width: 49rem) {
  .site-header { min-height: 4.6rem; grid-template-columns: 1fr auto; }
  .site-header .site-nav { display: flex; grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; gap: 0 1.05rem; margin-top: -0.65rem; padding-bottom: 0.35rem; }
  .site-header .brand, .header-compare { grid-row: 1; }
  .hero { display: grid; min-height: 0; }
  .hero-copy { width: 100%; padding: 2.2rem 1.55rem 0; }
  .hero h1 { max-width: 17ch; font-size: clamp(2.5rem, 7.3vw, 3.8rem); }
  .hero-art { position: relative; inset: auto; order: 2; width: 100%; min-height: 16rem; background: linear-gradient(180deg, var(--dark), transparent 36%), url('./assets/hero-cards.jpg') center 51% / cover no-repeat; }
  .hero-art::after { background: linear-gradient(180deg, var(--dark), transparent 30%); }
  .provider-card {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'service actions' 'facts facts';
    align-items: start;
    row-gap: 0.6rem;
  }
  .provider-actions { align-self: start; }
  .method { grid-template-columns: 1fr; }
  .method h2 { text-wrap: initial; }
}

@media (max-width: 35rem) {
  .site-header { min-height: 4.3rem; }
  .header-compare { gap: 0.32rem; padding-inline: 0.52rem; }
  .header-compare .compare-icon { display: none; }
  .hero { border-radius: 1.15rem; }
  .hero-copy { padding: 1.55rem 1rem 0; }
  .hero h1 { font-size: clamp(2.04rem, 8.9vw, 3.15rem); }
  .hero-actions { margin-top: 1.08rem; gap: 0.65rem; }
  .hero p { margin-top: 0.75rem; }
  .hero-art { min-height: 13rem; }
  .catalog { margin-top: 2.3rem; }
  .section-head { flex-wrap: wrap; align-items: start; margin-bottom: 0.8rem; }
  .section-head h2, .method h2 { font-size: clamp(1.95rem, 8vw, 2.45rem); }
  .section-head p { margin-top: 0.33rem; }
  .result-count { padding: 0.2rem 0.42rem; }
  .catalog-controls { grid-template-columns: 1fr; }
  .provider-card { padding: 0.82rem 0.2rem; column-gap: 0.5rem; }
  .provider-top { gap: 0.5rem; }
  .provider-logo { width: 2.25rem; height: 2.25rem; border-radius: 0.5rem; }
  .provider-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .provider-actions { gap: 0.3rem; }
  .provider-actions .button { padding-inline: 0.52rem; font-size: 0.84rem; }
  .method-list > div { grid-template-columns: 1fr; gap: 0.15rem; }
  .site-footer { padding-block: 1rem; min-height: 4.5rem; }
  .site-credit { order: 1; flex-basis: 100%; }
  .compare-tray-inner { align-items: start; flex-direction: column; }
  .compare-tray-actions { align-self: stretch; justify-content: end; }
  .compare-selection { max-height: 5rem; overflow-y: auto; }
  body:has(.compare-tray:not([hidden])) { padding-bottom: 9rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}
