/* esim.click — компактный каталог без внешних ресурсов */
@font-face {
  font-family: "Manrope";
  src: url("/manrope.ttf?v=1") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f6f5ef;
  --ink: #182c28;
  --lime: #ddf58b;
  --muted: #53635b;
  --line: #cdd3c3;
  --surface: #fffef9;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
h1, h2, h3, h4, h5, h6 { font-weight: 300; }
b, strong { font-weight: 400; }
.update-status { min-height: 20px; margin: 0 0 8px; color: var(--muted); font-size: 12px; }
#result { transition: opacity .15s ease; }
#result[aria-busy="true"] { opacity: .55; }
body { margin: 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
header, main, footer { width: min(760px, calc(100% - 32px)); margin-inline: auto; }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 18px; border-bottom: 1px solid var(--line); }
a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.brand { display: inline-flex; align-items: center; gap: 5px; font-size: 25px; font-weight: 400; letter-spacing: -1px; text-decoration: none; }
.sim-mark { display: inline-flex; align-items: center; min-height: 38px; padding: 5px 9px 5px 9px; border: 0; border-radius: 0; clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%); background: #2867c7; color: #fff; font: inherit; line-height: 1; }
.brand-domain { color: var(--ink); background: none; padding: 0; border-radius: 0; }
.header-note { max-width: 220px; color: var(--muted); font-size: 12px; text-align: right; }
main { padding-block: 28px 36px; }
.eyebrow { margin: 0 0 8px; font-size: 11px; font-weight: 400; letter-spacing: .11em; text-transform: uppercase; }
h1 { margin: 0 0 12px; font-size: clamp(28px, 6vw, 42px); line-height: 1.12; letter-spacing: -.04em; }
h2 { margin: 26px 0 12px; font-size: 22px; line-height: 1.25; letter-spacing: -.02em; }
h3 { font-size: 17px; line-height: 1.3; }
.intro { max-width: 610px; margin: 0 0 24px; color: var(--muted); }
button, input, select { font: inherit; color: inherit; }
button, select, input:not([type="checkbox"]):not([type="radio"]) { min-height: 44px; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
input, select { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 10px 12px; }
input::placeholder { color: var(--muted); opacity: 1; }
.builder { display: grid; gap: 18px; margin: 22px 0; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.quick-filter { min-width: 0; margin: 0; padding: 0; border: 0; }
.quick-filter legend { margin-bottom: 8px; padding: 0; font-size: 13px; font-weight: 650; }
.quick-filter + .quick-filter { padding-top: 12px; border-top: 1px solid var(--line); }
.quick-filter .chips { gap: 12px 6px; padding-top: 8px; }
.quick-filter .chips button { position: relative; padding: 7px 11px; font-size: 13px; }
.filter-flame { position: absolute; top: 0; right: 5px; transform: translateY(-50%); display: grid; place-items: center; width: 24px; height: 20px; border: 1px solid #f0c5bd; border-radius: 7px; background: #fff1ec; color: #e34330; pointer-events: none; }
.filter-flame svg { width: 12px; height: 15px; }
.step-label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 400; letter-spacing: .025em; }
.country-select { position: relative; }
#destination-options { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 10; max-height: 280px; overflow-y: auto; padding: 4px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
#destination-options a { display: block; min-height: 44px; padding: 10px; border-radius: 4px; text-decoration: none; }
#destination-options a:hover, #destination-options a[aria-selected="true"] { background: var(--lime); }
.plan-coverage { grid-column: 1 / -1; padding-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; font-weight: 400; }
.plan-coverage b { color: var(--ink); font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mode-switch { display: flex; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.mode-switch button { flex: 1; padding: 8px 12px; border: 1px solid transparent; border-radius: 5px; background: transparent; font-weight: 400; }
.mode-switch button.active, .mode-switch button[aria-pressed="true"] { border-color: var(--ink); background: var(--lime); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); font-weight: 400; }
.chips button.active, .chips button[aria-pressed="true"] { border-color: var(--ink); background: var(--lime); }
.mode-switch button:hover:not(:disabled), .chips button:hover:not(:disabled) { border-color: var(--ink); }
.custom { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(130px, 2fr); gap: 10px 12px; align-items: center; }
.custom > label { grid-column: 1 / -1; }
.custom label { display: grid; gap: 6px; font-size: 13px; font-weight: 400; }
.custom input { font-weight: 400; }
.submit { width: 100%; padding: 12px 18px; border: 1px solid var(--ink); border-radius: 7px; background: var(--ink); color: var(--lime); font-weight: 400; }
.submit:hover:not(:disabled) { background: #294239; }
.result { margin-block: 24px; padding: 20px; border: 1px solid var(--ink); border-radius: 10px; background: var(--surface); }
.result-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.badge, .result-top .badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 4px; background: var(--lime); font-size: 11px; font-weight: 400; }
.plan-title { margin: 12px 0 16px; font-size: 24px; font-weight: 400; line-height: 1.2; letter-spacing: -.025em; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-block: 14px; border-block: 1px solid var(--line); }
.stat { min-width: 0; }
.stat strong { display: block; font-size: 20px; line-height: 1.25; }
.stat span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.price { font-size: 32px; font-weight: 400; line-height: 1.1; letter-spacing: -.04em; }
.price-caption { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: normal; }
.price-row a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--ink); border-radius: 6px; background: var(--lime); font-weight: 400; }
.details { margin-top: 18px; border-top: 1px solid var(--line); }
.details summary, .faq summary { min-height: 44px; padding-block: 12px; cursor: pointer; font-size: 13px; font-weight: 400; }
.details summary::marker, .faq summary::marker { color: var(--ink); }
.details dl { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(0, 2fr); gap: 8px 16px; margin: 4px 0 12px; font-size: 13px; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }
.note { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.empty { margin-block: 20px; padding: 20px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: 14px; }
.countries-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 30px 0 12px; }
.countries-header h2 { margin: 0; }
.all-directions { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 16px; padding: 10px 16px; border: 1px solid var(--ink); border-radius: 7px; background: var(--lime); font-weight: 400; text-decoration: none; }
.all-directions:hover { background: var(--surface); }
.countries-header input { max-width: 260px; font-size: 13px; }
.country-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.country-link { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; align-items: center; min-height: 76px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); text-decoration: none; }
.country-link:hover { border-color: var(--ink); background: var(--lime); }
.flag { grid-row: span 2; font-size: 23px; line-height: 1; }
.country-name { font-size: 13px; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.country-price { color: var(--muted); font-size: 12px; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: 12px; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.faq { margin-top: 30px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; padding: 18px 0 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
footer p { margin: 0; }
footer a { display: inline-flex; align-items: center; min-height: 44px; }
.error { margin-block: 12px; padding: 12px 14px; border: 1px solid #a2462d; border-radius: 6px; background: #fff0e8; color: #722d1c; font-size: 14px; }
[hidden] { display: none !important; }
.country-page main { padding-top: 12px; }
.country-page h1 { font-size: 28px; }
.country-page .breadcrumbs { margin-bottom: 8px; }
.country-page .builder { gap: 10px; margin: 16px 0; padding: 12px; }
.custom-filter > summary, .country-info > summary { min-height: 44px; padding: 10px 0; cursor: pointer; font-size: 13px; }
.custom-filter .custom { padding-top: 8px; }
.list-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.list-controls { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 12px; margin-left: auto; }
.sort-form { display: flex; align-items: center; gap: 8px; }
.sort-form label { font-size: 12px; color: var(--muted); }
.sort-form select { width: auto; max-width: 200px; min-height: 44px; padding: 8px; font-size: 12px; }
.list-heading h2 { margin: 12px 0; font-size: 19px; }
.list-heading a { font-size: 13px; }
.list-heading small { font-size: 12px; color: var(--muted); }
.plan-columns, .plan-row > summary { display: grid; grid-template-columns: minmax(100px, 1.3fr) minmax(65px, .7fr) minmax(85px, 1fr); gap: 8px; align-items: center; }
.plan-columns { padding: 6px 12px; color: var(--muted); font-size: 11px; }
.plan-columns > :last-child { text-align: right; padding-right: 18px; }
.plan-row { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; margin-bottom: 6px; }
.plan-row > summary { list-style: none; cursor: pointer; min-height: 52px; padding: 10px 12px; font-size: 14px; }
.plan-row > summary::-webkit-details-marker { display: none; }
.plan-row > summary:hover { background: var(--lime); }
.plan-volume { font-weight: 400; }
.plan-days { color: var(--muted); }
.plan-price { text-align: right; }
.plan-price::after { content: ' +'; color: var(--muted); font-weight: 400; }
.plan-row[open] .plan-price::after { content: ' −'; }
.plan-expanded { padding: 0 12px 12px; border-top: 1px solid var(--line); font-size: 13px; }
.plan-expanded dl { display: grid; grid-template-columns: 1fr 2fr; gap: 6px 12px; }
.plan-expanded dt { color: var(--muted); }
.plan-expanded dd { margin: 0; }
.country-info { margin-top: 16px; border-top: 1px solid var(--line); }
.country-info .faq { margin-top: 0; }
@media (max-width: 600px) {
  header, main, footer { width: calc(100% - 24px); }
  header { padding-top: 16px; gap: 10px; }
  .header-note { max-width: 160px; font-size: 11px; }
  main { padding-top: 22px; }
  .builder, .result { padding: 16px; }
  .country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .countries-header { align-items: stretch; flex-direction: column; gap: 10px; }
  .countries-header input { max-width: none; }
  .country-link { padding: 10px; }
  .stat strong { font-size: 18px; }
  .price-row { align-items: stretch; }
  .price-row a { flex-grow: 1; }
}
@media (max-width: 360px) {
  .header-note { max-width: 125px; }
  .custom { grid-template-columns: 1fr; }
  .country-link { column-gap: 6px; }
  .flag { font-size: 20px; }
  .details dl { grid-template-columns: 1fr; gap: 4px; }
  .details dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
