:root {
  --ink: #172a3a;
  --muted: #617487;
  --paper: #f7faf9;
  --surface: #ffffff;
  --line: #dbe7e4;
  --teal: #0b7d76;
  --teal-dark: #075d59;
  --teal-soft: #e5f4f1;
  --orange: #f28c52;
  --orange-soft: #fff0e7;
  --shadow: 0 18px 45px rgba(18, 54, 58, .10);
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --max-width: 1180px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.55; }
body.dialog-open { overflow: hidden; }
img { max-width: 100%; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
:focus-visible { outline: 3px solid rgba(242, 140, 82, .8); outline-offset: 3px; }

.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; transform: translateY(-160%); padding: .7rem 1rem; border-radius: 8px; color: #fff; background: var(--ink); }
.skip-link:focus { transform: translateY(0); }
.container { width: min(var(--max-width), calc(100% - 40px)); margin: 0 auto; }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(219, 231, 228, .85); background: rgba(247, 250, 249, .92); backdrop-filter: blur(18px); }
.header-inner { display: flex; min-height: 76px; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark, .hero-number, .product-mark { display: grid; place-items: center; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; color: #fff; background: var(--teal); font-size: .78rem; }
.brand strong { display: block; font-size: .98rem; letter-spacing: -.02em; }
.brand small { display: block; margin-top: -2px; color: var(--muted); font-size: .72rem; }
.main-nav { display: flex; align-items: center; gap: 25px; margin-left: auto; color: var(--muted); font-size: .88rem; font-weight: 650; }
.main-nav a { text-decoration: none; }
.main-nav a:hover { color: var(--teal); }
.cart-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--surface); font-size: .84rem; font-weight: 750; transition: border-color .2s, transform .2s, box-shadow .2s; }
.cart-button:hover { border-color: var(--teal); box-shadow: 0 8px 20px rgba(11, 125, 118, .13); transform: translateY(-1px); }
.cart-count { display: grid; min-width: 23px; height: 23px; place-items: center; padding: 0 5px; border-radius: 999px; color: #fff; background: var(--orange); font-size: .72rem; }

.hero { position: relative; overflow: hidden; padding: 92px 0 86px; background: linear-gradient(135deg, #eaf6f3 0%, #f7faf9 60%, #fff5ed 100%); }
.hero::after { position: absolute; right: -140px; bottom: -210px; width: 500px; height: 500px; border: 1px solid rgba(11, 125, 118, .13); border-radius: 50%; content: ""; box-shadow: 0 0 0 32px rgba(11, 125, 118, .04), 0 0 0 64px rgba(11, 125, 118, .03); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 80px; }
.eyebrow { margin: 0 0 12px; color: var(--teal); font-size: .73rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 670px; margin-bottom: 20px; font-size: clamp(2.7rem, 5vw, 5.2rem); line-height: .98; letter-spacing: -.075em; }
h2 { margin-bottom: 0; font-size: clamp(1.9rem, 3.3vw, 3.15rem); line-height: 1.04; letter-spacing: -.06em; }
.hero-text { max-width: 590px; margin-bottom: 28px; color: var(--muted); font-size: 1.08rem; }
.primary-button, .secondary-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; border: 0; border-radius: 999px; font-size: .86rem; font-weight: 800; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.primary-button { color: #fff; background: var(--teal); box-shadow: 0 10px 22px rgba(11, 125, 118, .2); }
.primary-button:hover:not(:disabled) { background: var(--teal-dark); box-shadow: 0 13px 26px rgba(11, 125, 118, .28); transform: translateY(-2px); }
.secondary-button { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.secondary-button:hover:not(:disabled) { border-color: var(--teal); color: var(--teal-dark); transform: translateY(-1px); }
.hero-note { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; color: var(--muted); font-size: .78rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #48ae72; box-shadow: 0 0 0 4px rgba(72, 174, 114, .14); }
.hero-panel { position: relative; min-height: 330px; padding: 28px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .75); border-radius: var(--radius-lg); color: #fff; background: linear-gradient(145deg, #0b7d76, #075d59); box-shadow: 0 25px 55px rgba(7, 93, 89, .25); }
.hero-panel::before, .hero-panel::after { position: absolute; border: 1px solid rgba(255, 255, 255, .15); border-radius: 50%; content: ""; }
.hero-panel::before { width: 260px; height: 260px; right: -110px; top: -95px; }
.hero-panel::after { width: 190px; height: 190px; right: -58px; top: -60px; }
.hero-panel-top { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 12px; color: rgba(255, 255, 255, .72); font-size: .74rem; font-weight: 750; }
.panel-chip { padding: 5px 9px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; }
.hero-number { position: relative; z-index: 1; margin-top: 65px; font-size: 7.5rem; line-height: .8; }
.hero-panel > p { position: relative; z-index: 1; margin: 12px 0 0; color: rgba(255, 255, 255, .8); font-size: .93rem; }
.hero-rule { position: relative; z-index: 1; height: 1px; margin: 30px 0 20px; background: rgba(255,255,255,.2); }
.hero-mini-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hero-mini-grid strong, .hero-mini-grid span { display: block; }
.hero-mini-grid strong { margin-bottom: 4px; color: rgba(255,255,255,.63); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.hero-mini-grid span { font-size: .82rem; }

.catalog-section { padding: 100px 0 116px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.result-summary { margin: 0 0 4px; color: var(--muted); font-size: .86rem; font-weight: 700; }
.filters { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(160px, .65fr) minmax(160px, .65fr) auto; align-items: end; gap: 13px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 9px 25px rgba(18, 54, 58, .04); }
.field { min-width: 0; }
.field label { display: block; margin: 0 0 7px; color: var(--muted); font-size: .71rem; font-weight: 800; }
.input-wrap { position: relative; }
.input-wrap > span { position: absolute; top: 50%; left: 14px; color: var(--teal); font-size: 1.35rem; line-height: 1; transform: translateY(-55%); pointer-events: none; }
input[type="search"], select { width: 100%; min-height: 47px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fbfdfc; }
input[type="search"] { padding: 0 14px 0 40px; }
select { padding: 0 35px 0 13px; }
input[type="search"]:focus, select:focus { border-color: var(--teal); outline: 3px solid rgba(11, 125, 118, .12); }
.clear-button { min-height: 47px; padding: 0 9px; border: 0; color: var(--teal); background: transparent; font-size: .78rem; font-weight: 800; }
.clear-button:hover { color: var(--teal-dark); text-decoration: underline; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-height: 30px; margin: 15px 2px 19px; color: var(--muted); font-size: .77rem; }
.filter-chip { padding: 5px 9px; border-radius: 999px; color: var(--teal-dark); background: var(--teal-soft); font-weight: 750; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 7px 18px rgba(18, 54, 58, .035); transition: transform .2s, box-shadow .2s, border-color .2s; }
.product-card:hover { border-color: #b8d8d3; box-shadow: var(--shadow); transform: translateY(-3px); }
.product-visual { position: relative; display: flex; min-height: 145px; align-items: center; justify-content: center; overflow: hidden; isolation: isolate; background: linear-gradient(135deg, #eff8f6, #fff8f2); }
.product-visual::before, .product-visual::after { position: absolute; border: 1px solid rgba(11, 125, 118, .14); border-radius: 50%; content: ""; }
.product-visual::before { width: 150px; height: 150px; top: -70px; right: -45px; }
.product-visual::after { width: 92px; height: 92px; bottom: -54px; left: -28px; border-color: rgba(242, 140, 82, .22); }
.product-mark { position: relative; z-index: 1; width: 64px; height: 64px; border: 1px solid rgba(11,125,118,.25); border-radius: 21px; color: var(--teal); background: rgba(255,255,255,.75); font-size: 1.1rem; box-shadow: 0 10px 25px rgba(11,125,118,.10); }
.product-photo { position: absolute; z-index: 1; inset: 14px 14px 23px; width: calc(100% - 28px); height: calc(100% - 37px); object-fit: contain; object-position: center; mix-blend-mode: multiply; }
.product-visual.has-image .product-mark { display: none; }
.product-code { position: absolute; z-index: 2; top: 12px; left: 14px; color: var(--teal-dark); font-size: .69rem; font-weight: 850; letter-spacing: .08em; }
.image-placeholder { position: absolute; z-index: 1; right: 12px; bottom: 11px; display: none; color: var(--muted); font-size: .64rem; font-weight: 700; }
.product-visual.image-missing .image-placeholder { display: block; }
.product-visual.image-missing .product-photo { display: none; }
.product-content { display: flex; flex: 1; flex-direction: column; padding: 18px; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 11px; }
.code-badge, .category-badge { display: inline-flex; width: fit-content; align-items: center; border-radius: 999px; font-size: .66rem; font-weight: 850; letter-spacing: .04em; }
.code-badge { padding: 5px 8px; color: var(--teal-dark); background: var(--teal-soft); }
.category-badge { max-width: 58%; overflow: hidden; padding: 5px 8px; color: #a35a2d; background: var(--orange-soft); text-overflow: ellipsis; white-space: nowrap; }
.product-content h3 { min-height: 2.7em; margin-bottom: 8px; font-size: 1.04rem; line-height: 1.22; letter-spacing: -.025em; }
.product-description { min-height: 3.1em; margin-bottom: 16px; color: var(--muted); font-size: .81rem; line-height: 1.45; }
.product-specs { display: grid; gap: 7px; margin: 0 0 17px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-specs div { display: flex; justify-content: space-between; gap: 12px; }
.product-specs dt { color: var(--muted); font-size: .7rem; }
.product-specs dd { margin: 0; color: var(--ink); font-size: .72rem; font-weight: 750; text-align: right; }
.quantity-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.quantity-row label { max-width: 53%; color: var(--muted); font-size: .72rem; font-weight: 750; line-height: 1.25; }
.quantity-control, .cart-item-quantity { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfc; }
.quantity-button { display: grid; width: 31px; height: 31px; place-items: center; border: 0; color: var(--teal-dark); background: transparent; font-size: 1.15rem; font-weight: 800; }
.quantity-button:hover { background: var(--teal-soft); }
.quantity-input { width: 40px; height: 31px; padding: 0; border: 0; border-right: 1px solid var(--line); border-left: 1px solid var(--line); color: var(--ink); background: transparent; font-size: .8rem; font-weight: 800; text-align: center; }
.quantity-input:focus { outline: 0; background: var(--teal-soft); }
.quantity-input::-webkit-inner-spin-button, .quantity-input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.quantity-input { appearance: textfield; -moz-appearance: textfield; }
.quantity-status { min-height: 1.25em; margin: 9px 0 0; color: var(--teal); font-size: .7rem; font-weight: 750; }
.quantity-status.is-error { color: #b64a35; }
.empty-state { padding: 70px 20px; border: 1px dashed #b9cfcb; border-radius: var(--radius-md); text-align: center; background: rgba(255,255,255,.55); }
.empty-icon { display: grid; width: 48px; height: 48px; margin: 0 auto 15px; place-items: center; border-radius: 50%; color: var(--teal); background: var(--teal-soft); font-size: 1.5rem; }
.empty-state h3 { margin-bottom: 7px; }
.empty-state p { margin-bottom: 18px; color: var(--muted); }

.how-section { padding: 92px 0; color: #fff; background: var(--ink); }
.how-section .eyebrow { color: #77d4c5; }
.how-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; }
.how-section h2 { max-width: 430px; }
.section-intro { max-width: 450px; margin: 22px 0 0; color: #a9bbc5; font-size: .94rem; }
.steps-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.steps-list li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.15); }
.steps-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.15); }
.steps-list li > span { color: #77d4c5; font-size: .78rem; font-weight: 850; letter-spacing: .08em; }
.steps-list strong { display: block; margin-bottom: 4px; font-size: 1.05rem; }
.steps-list p { margin: 0; color: #a9bbc5; font-size: .84rem; }

.data-section { padding: 74px 0; }
.data-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 30px 34px; border: 1px solid #cbe4df; border-radius: var(--radius-md); background: linear-gradient(120deg, var(--teal-soft), #fff); }
.data-card h2 { font-size: clamp(1.55rem, 2.7vw, 2.35rem); }
.data-card p:not(.eyebrow) { max-width: 650px; margin: 10px 0 0; color: var(--muted); font-size: .87rem; }
code { padding: 2px 5px; border-radius: 5px; color: var(--teal-dark); background: rgba(11,125,118,.09); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84em; }
.site-footer { padding: 32px 0; color: #a9bbc5; background: #102331; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner strong { color: #fff; }
.footer-inner p { margin: 3px 0 0; font-size: .76rem; }
.footer-inner > p { margin: 0; text-align: right; }

.cart-dialog { width: min(680px, calc(100% - 28px)); max-height: min(820px, calc(100% - 28px)); padding: 0; overflow: auto; border: 0; border-radius: 24px; color: var(--ink); background: var(--surface); box-shadow: 0 30px 100px rgba(4, 27, 35, .32); }
.cart-dialog::backdrop { background: rgba(10, 30, 39, .62); backdrop-filter: blur(4px); }
.dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 27px 28px 20px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: 2rem; }
.icon-button { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: var(--surface); font-size: 1.35rem; line-height: 1; }
.icon-button:hover { color: var(--ink); border-color: var(--teal); }
.cart-summary { display: flex; gap: 22px; padding: 16px 28px; color: var(--muted); background: #f7fbfa; font-size: .78rem; }
.cart-summary strong { color: var(--teal-dark); font-size: 1rem; }
.cart-list { padding: 5px 28px; }
.cart-item { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item-info { min-width: 0; }
.cart-item-info .code-badge { margin-bottom: 5px; }
.cart-item-info strong, .cart-item-info small { display: block; }
.cart-item-info strong { overflow: hidden; font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.cart-item-info small { margin-top: 3px; color: var(--muted); font-size: .72rem; }
.cart-item-quantity { flex: 0 0 auto; }
.cart-item-quantity span { min-width: 35px; text-align: center; font-size: .8rem; font-weight: 800; }
.cart-empty { padding: 34px 28px; text-align: center; color: var(--muted); }
.cart-empty span { display: block; margin-bottom: 8px; color: var(--teal); font-size: 1.8rem; }
.cart-empty p { margin: 0; font-size: .86rem; }
.cart-message-preview { margin: 18px 28px 0; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdfc; }
.preview-label { margin: 0 0 8px; color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.cart-message-preview pre { max-height: 145px; margin: 0; overflow: auto; color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .73rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.contact-warning { margin: 16px 28px 0; padding: 12px 14px; border: 1px solid #f2c9a9; border-radius: 11px; color: #8b4a22; background: #fff6ef; font-size: .77rem; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 9px; padding: 20px 28px 10px; }
.dialog-actions .primary-button { margin-left: auto; }
.dialog-footnote { margin: 0; padding: 0 28px 25px; color: var(--muted); font-size: .7rem; }
.toast { position: fixed; z-index: 50; right: 20px; bottom: 20px; max-width: min(360px, calc(100% - 40px)); padding: 12px 16px; border-radius: 10px; color: #fff; background: var(--ink); box-shadow: var(--shadow); font-size: .8rem; font-weight: 700; }

@media (max-width: 980px) {
  .hero-grid { gap: 42px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: 1.2fr 1fr 1fr; }
  .clear-button { grid-column: 1 / -1; justify-self: start; min-height: auto; padding: 0; }
  .how-grid { gap: 55px; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, var(--max-width)); }
  .header-inner { min-height: 68px; gap: 12px; }
  .main-nav { display: none; }
  .cart-button { margin-left: auto; padding: 0 10px; font-size: .75rem; }
  .brand strong { font-size: .86rem; }
  .brand small { font-size: .65rem; }
  .hero { padding: 64px 0 60px; }
  .hero-grid, .how-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.7rem, 14vw, 4.2rem); }
  .hero-text { font-size: .96rem; }
  .hero-panel { min-height: 275px; }
  .hero-number { margin-top: 48px; font-size: 6rem; }
  .catalog-section, .how-section { padding: 70px 0; }
  .section-heading { display: block; margin-bottom: 25px; }
  .result-summary { margin-top: 12px; }
  .filters { grid-template-columns: 1fr; padding: 14px; }
  .clear-button { grid-column: auto; margin-top: -2px; }
  .product-grid { grid-template-columns: 1fr; gap: 14px; }
  .product-visual { min-height: 125px; }
  .how-grid { gap: 35px; }
  .data-section { padding: 54px 0; }
  .data-card { display: block; padding: 24px; }
  .data-card .secondary-button { margin-top: 20px; }
  .footer-inner { display: block; }
  .footer-inner > p { margin-top: 15px; text-align: left; }
  .dialog-header, .cart-summary, .cart-list, .dialog-footnote { padding-left: 19px; padding-right: 19px; }
  .dialog-actions { padding-left: 19px; padding-right: 19px; }
  .dialog-actions .primary-button { width: 100%; margin-left: 0; }
  .dialog-actions .secondary-button { flex: 1; }
  .cart-message-preview, .contact-warning { margin-left: 19px; margin-right: 19px; }
  .cart-item { align-items: start; }
}

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