:root {
  color-scheme: light;
  --paper: #f5f6fb;
  --white: #fff;
  --ink: #141a35;
  --muted: #565c73;
  --line: #dce1ed;
  --blue: #2045de;
  --deep-blue: #12247b;
  --lime: #c1fa79;
  --sans: Geist, system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 1rem/1.5 var(--sans); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { letter-spacing: -.045em; line-height: 1.03; }
h2 { font-size: clamp(1.85rem, 3.4vw, 3rem); font-weight: 750; }
h3 { line-height: 1.28; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, summary, select { cursor: pointer; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid #2457ff; outline-offset: 4px; }
.shell { width: min(1320px, calc(100% - 80px)); margin-inline: auto; }
.skip, .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; top: 10px; left: 10px; z-index: 10; background: var(--white); padding: 12px; }
.site-head { border-bottom: 1px solid var(--line); background: var(--white); }
.head-inner, .head-tools, .nav-main, .identity, .shortlist-link { display: flex; align-items: center; }
.head-inner { min-height: 72px; gap: clamp(1.3rem, 4vw, 4rem); }
.identity { gap: 9px; font-weight: 750; font-size: 1.08rem; letter-spacing: -.035em; white-space: nowrap; }
.identity b { color: var(--blue); }
.nav-main { gap: clamp(1rem, 3vw, 2.25rem); color: var(--muted); font-size: .92rem; font-weight: 650; }
.nav-main a:hover, .external-text:hover, .product-source:hover { text-decoration: underline; text-underline-offset: .25em; }
.head-tools { margin-left: auto; gap: .75rem; }
.dropdown { position: relative; }
.dropdown summary { list-style: none; display: inline-flex; align-items: center; gap: .65rem; border: 1px solid var(--line); border-radius: 7px; padding: .66rem .82rem; background: var(--white); font-size: .85rem; font-weight: 650; white-space: nowrap; }
.dropdown summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.dropdown[open] summary { color: var(--blue); border-color: var(--blue); }
.chevron { width: .43em; height: .43em; border: solid currentColor; border-width: 0 1.4px 1.4px 0; transform: translateY(-.16em) rotate(45deg); flex: none; }
[open] > summary .chevron { transform: translateY(.12em) rotate(225deg); }
.dropdown-inner { position: absolute; z-index: 5; top: calc(100% + 7px); right: 0; min-width: max-content; max-height: 62vh; overflow: auto; padding: 5px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 12px 30px #0e164020; border-radius: 8px; }
.dropdown-inner a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-radius: 5px; padding: .6rem .78rem; font-size: .9rem; }
.dropdown-inner a:hover, .dropdown-inner a[aria-current] { color: var(--blue); background: #eff2ff; }
.locale-symbol { font-size: 1.12rem; line-height: 1; }
.shortlist-link { gap: 7px; padding: .55rem .72rem; border-radius: 7px; color: var(--blue); background: #eef1ff; font-size: .84rem; font-weight: 750; white-space: nowrap; }
.shortlist-link svg, .search-control svg { width: 18px; height: 18px; flex: none; }
[data-shortlist-count] { border-radius: 100px; min-width: 1.55rem; padding: .13em .35em; text-align: center; color: white; background: var(--blue); font: 700 .75rem/1.4 var(--mono); }
.hero { display: grid; grid-template-columns: 49% 51%; min-height: 430px; margin-top: 26px; border-radius: 15px; overflow: clip; background: #141f58; color: var(--white); }
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 1.15rem; padding: clamp(2rem, 5.35vw, 5.25rem); background: radial-gradient(ellipse at 0% 100%, #263fb2 0, #192766 53%, #141e54 100%); }
.hero-kicker { display: flex; align-items: center; gap: .65rem; color: #e9edff; font: 700 .73rem/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.hero-kicker span { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--lime); }
.hero h1 { font-size: clamp(3rem, 5.75vw, 5.7rem); font-weight: 800; line-height: .98; max-width: 11ch; text-wrap: balance; }
.hero-intro { max-width: 43ch; font-size: clamp(.98rem, 1.35vw, 1.12rem); color: #e3e9ff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 44px; padding: .68rem .95rem; border: 1px solid transparent; border-radius: 7px; font-size: .88rem; font-weight: 750; }
.button:hover { filter: brightness(.94); }
.button.white { background: var(--white); color: var(--deep-blue); }
.button.glass { border-color: #ffffff72; color: var(--white); }
.button.primary { background: var(--blue); color: var(--white); }
.hero a:focus-visible { outline-color: var(--lime); }
.arrow { font-family: var(--sans); font-weight: 750; }
.hero-visual { position: relative; isolation: isolate; min-width: 0; }
.hero-visual img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 52% 50%; }
.hero-visual figcaption { position: absolute; right: 1rem; bottom: 1rem; color: #f3f6ff; background: #121b3dd9; border: 1px solid #ffffff32; padding: .32rem .6rem; border-radius: 4px; font-size: .69rem; }
.section { padding-block: 2.9rem; scroll-margin-top: 1.3rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.section-heading p, .guide > p { color: var(--muted); margin-top: .45rem; max-width: 70ch; }
.category-section { border-bottom: 1px solid var(--line); }
.category-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .55rem; margin-top: 1.4rem; }
.category-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .45rem; min-height: 54px; padding: .65rem .62rem; border: 1px solid var(--line); border-radius: 7px; background: var(--white); font-size: .78rem; line-height: 1.2; font-weight: 700; overflow-wrap: anywhere; }
.category-card svg { color: var(--blue); width: 20px; height: 20px; }
.category-card .arrow { color: #53628b; font-size: .86rem; }
.category-card:hover { color: var(--blue); border-color: #9eacff; background: #f4f6ff; }
.external-text { color: var(--blue); font-size: .9rem; font-weight: 700; }
.catalog-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 25%); gap: .7rem; margin-block: 1.3rem .75rem; }
.search-control { display: flex; align-items: center; gap: .7rem; padding: 0 .85rem; color: #4e5e93; background: var(--white); border: 1px solid var(--line); border-radius: 7px; }
.search-control:focus-within { border-color: var(--blue); outline: 2px solid #bac6ff; }
.search-control input { border: 0; padding: .76rem 0; width: 100%; background: none; color: var(--ink); min-width: 0; outline: none; }
.filter-control select, .worksheet input { width: 100%; padding: .71rem .85rem; border: 1px solid var(--line); border-radius: 7px; background: var(--white); color: var(--ink); }
.catalog-note { color: var(--muted); font-size: .79rem; margin-bottom: 1rem; }
.catalog-note a { color: var(--blue); font-weight: 700; }
.empty, .worksheet-empty { padding: 1rem; border: 1px dashed #b9c2df; border-radius: 7px; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .92rem; }
.product-card { display: flex; flex-direction: column; min-width: 0; background: var(--white); border-radius: 10px; border: 1px solid var(--line); overflow: clip; }
.product-photo { aspect-ratio: 1.08; display: block; border-bottom: 1px solid var(--line); background: #eceef5; overflow: hidden; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .18s ease; }
.product-photo:hover img { transform: scale(1.035); }
.product-photo:focus-visible { outline-offset: -4px; }
.product-info { display: flex; flex-direction: column; flex: 1; gap: .48rem; padding: .88rem; }
.product-category { color: var(--blue); font: 700 .68rem/1.3 var(--mono); text-transform: uppercase; }
.product-info h3 { font-size: clamp(.95rem, 1.5vw, 1.12rem); font-weight: 750; }
.product-prices { margin-top: auto; padding-top: .2rem; }
.price { color: var(--ink); font: 700 clamp(.91rem, 1.9vw, 1.12rem)/1.35 var(--mono); }
.original-price { color: var(--muted); font: 400 .75rem/1.5 var(--mono); }
.product-actions { margin-top: .32rem; padding-top: .65rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem; border-top: 1px solid var(--line); }
.product-source { color: var(--blue); font-size: .8rem; font-weight: 700; }
.save-button, .outline-button { border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); min-height: 36px; padding: .36rem .64rem; font-size: .78rem; font-weight: 700; }
.save-button:hover, .outline-button:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.save-button::before { content: "+"; margin-right: .28rem; }
.save-button[aria-pressed="true"] { background: #eef2ff; color: var(--blue); border-color: #b4c1ff; }
.save-button[aria-pressed="true"]::before { content: "✓"; }
.outline-button:disabled { cursor: default; opacity: .55; }
.worksheet { padding: clamp(1.2rem, 3.5vw, 2.6rem); border: 1px solid #cbd5fc; border-radius: 12px; background: #ebefff; }
.form-status { min-height: 1.1em; color: #8b2035; font-size: .85rem; font-weight: 650; }
.form-status:empty { display: none; }
.measurement-guide { max-width: 73ch; color: var(--ink); font-size: .91rem; }
.measure-reference { max-width: 250px; display: grid; gap: .35rem; margin-block: 1.15rem; }
.worksheet label, .worksheet-row > div { font-size: .83rem; font-weight: 700; }
.worksheet-items { display: grid; gap: .45rem; }
.worksheet-row { display: grid; grid-template-columns: minmax(135px, 2fr) minmax(110px, 1fr) minmax(90px, 1fr) auto; align-items: center; gap: .7rem; background: white; border: 1px solid #d8dff7; border-radius: 7px; padding: .7rem; }
.worksheet-row a { color: var(--blue); font-size: .9rem; }
.worksheet-row label, .worksheet-row > div { display: grid; gap: .2rem; }
.worksheet-row output { font-family: var(--mono); font-size: 1rem; }
.worksheet-notes { margin-top: .83rem; color: var(--muted); font-size: .82rem; }
.worksheet input[aria-invalid="true"] { border-color: #a83c50; }
.help-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(1.4rem, 5vw, 5rem); }
.guide ol { margin: 1.15rem 0; padding-left: 1.5rem; }
.guide li { padding-left: .25rem; margin-bottom: .85rem; }
.guide li::marker { color: var(--blue); font: 700 .82rem var(--mono); }
.guide li h3 { font-size: 1rem; }
.guide li p, .faq p { font-size: .91rem; color: var(--muted); margin-top: .35rem; }
.guide-sources { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.faq h2 { margin-bottom: 1.1rem; }
.faq details { padding: .82rem 0; border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; list-style: none; font-weight: 700; line-height: 1.3; }
.faq summary:hover { color: var(--blue); }
.site-footer { border-top: 1px solid var(--line); background: var(--white); padding-block: 1.7rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1.2rem; align-items: center; }
.footer-inner p { max-width: 60ch; font-size: .81rem; color: var(--muted); margin-top: .6rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .9rem; color: var(--blue); font-size: .84rem; font-weight: 700; }
@media (max-width: 1160px) {
  .category-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .shell { width: calc(100% - 36px); }
  .head-inner { min-height: 61px; gap: .9rem; }
  .nav-main { display: none; }
  .hero { grid-template-columns: 50% 50%; min-height: 385px; }
  .hero-copy { padding: 2rem; }
  .hero h1 { font-size: clamp(2.65rem, 6.7vw, 4rem); }
  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 590px) {
  .shell { width: calc(100% - 28px); }
  .identity { font-size: .94rem; gap: .38rem; }
  .identity img { width: 29px; height: 29px; }
  .head-tools { gap: .38rem; }
  .locale-menu summary { padding: .51rem; gap: .35rem; font-size: .75rem; }
  .locale-symbol, .shortlist-link > span:not([data-shortlist-count]) { display: none; }
  .shortlist-link { padding: .4rem; gap: .22rem; }
  .shortlist-link svg { width: 15px; }
  .hero { grid-template-columns: 1fr; margin-top: 14px; }
  .hero-copy { padding: 1.55rem 1.25rem; gap: .75rem; }
  .hero h1 { font-size: clamp(2.6rem, 10.7vw, 3.55rem); }
  .hero-actions { gap: .45rem; }
  .button { padding: .58rem .65rem; font-size: .81rem; min-height: 42px; }
  .hero-visual { aspect-ratio: 1.65; }
  .hero-visual figcaption { bottom: .6rem; right: .6rem; }
  .section { padding-block: 2.15rem; }
  .section-heading { align-items: start; flex-wrap: wrap; }
  .category-menu .dropdown-inner { right: auto; left: 0; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-card { min-height: 48px; }
  .catalog-controls { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .product-info { padding: .65rem; }
  .worksheet { padding: 1.1rem; }
  .worksheet-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .worksheet-row > a { grid-column: 1 / -1; }
  .help-grid { grid-template-columns: 1fr; gap: 0; }
  .help-grid .guide { padding-bottom: .5rem; }
  .footer-inner { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
