:root {
  --teal: #074d57;
  --teal-dark: #063f47;
  --ink: #202934;
  --muted: #76828e;
  --paper: #fbfcfb;
  --soft: #f2f5f5;
  --line: #cbd8de;
  --line-soft: #e3e9eb;
  --white: #ffffff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 400; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.topbar { min-height: 112px; display: flex; align-items: center; justify-content: space-between; padding: 20px clamp(24px, 4vw, 66px); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 15; backdrop-filter: blur(14px); }
.brand { color: var(--teal); text-decoration: none; }
.brand-name { display: flex; align-items: baseline; font-size: clamp(42px, 4.2vw, 62px); line-height: 1; letter-spacing: -.055em; white-space: nowrap; }
.brand-name span { font-weight: 300; }
.brand-name strong { font-weight: 500; }
.cart-jump { border: 1px solid var(--teal); background: transparent; color: var(--teal); padding: 13px 18px; font-size: 16px; border-radius: 2px; }
.cart-jump:hover { background: var(--teal); color: #fff; }
.cart-jump span { display: inline-grid; place-items: center; min-width: 23px; height: 23px; padding: 0 6px; margin-left: 8px; border-radius: 50px; background: var(--teal); color: #fff; font-size: 12px; font-weight: 700; }
.cart-jump:hover span { background: #fff; color: var(--teal); }
.intro { padding: 26px clamp(24px, 4vw, 66px); background: #fff; border-bottom: 1px solid var(--line-soft); }
.limits { display: flex; flex-wrap: wrap; gap: 16px 48px; color: var(--teal); font-size: 15px; }
.limits span { position: relative; padding-left: 18px; }
.limits span::before { content: ""; position: absolute; width: 7px; height: 7px; left: 0; top: .48em; border: 1px solid var(--teal); border-radius: 50%; }
.shop-layout { width: min(1450px, 100%); margin: 0 auto; padding: 48px clamp(24px, 4vw, 66px) 110px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(30px, 4vw, 68px); align-items: start; }
.catalog-panel { min-width: 0; }
.search-card { position: relative; z-index: 5; padding: 0 0 36px; border-bottom: 1px solid var(--line-soft); }
.search-card > label { display: block; color: var(--teal); font-size: 17px; margin-bottom: 12px; }
.search-field { min-height: 70px; display: flex; align-items: center; gap: 8px; padding: 0 20px; background: #fff; border: 1px solid var(--line); border-radius: 2px; }
.search-field:focus-within { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.search-field svg { width: 23px; height: 23px; fill: none; stroke: var(--teal); stroke-width: 1.5; }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 18px 10px; background: transparent; color: var(--ink); font-size: clamp(20px, 2.2vw, 30px); font-weight: 300; }
.search-field input::placeholder { color: #8792a4; }
.search-field button { display: none; border: 0; background: transparent; color: var(--muted); font-size: 28px; }
.suggestions { display: none; position: absolute; left: 0; right: 0; top: 108px; max-height: 360px; overflow-y: auto; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(7,77,87,.12); }
.suggestions.open { display: block; }
.suggestion { width: 100%; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 18px; border: 0; border-bottom: 1px solid var(--line-soft); background: #fff; color: var(--ink); text-align: left; }
.suggestion:hover, .suggestion:focus { background: #f3f7f7; outline: none; }
.suggestion span { min-width: 0; }
.suggestion strong, .suggestion small { display: block; }
.suggestion strong { font-size: 15px; font-weight: 500; }
.suggestion small { margin-top: 4px; color: var(--muted); }
.suggestion b { flex: none; color: var(--teal); font-size: 13px; font-weight: 500; }
.suggestion.is-unavailable { background: #f1f3f3; color: #8d979c; }
.suggestion.is-unavailable b { color: #8d979c; }
.filters { margin-top: 16px; }
.filters select { min-width: 230px; max-width: 100%; border: 0; border-bottom: 1px solid var(--teal); background: transparent; color: var(--teal); padding: 10px 28px 10px 0; border-radius: 0; }
.results-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; padding: 44px 0 22px; }
.results-head h1 { margin: 0; color: var(--teal); font-size: clamp(33px, 4vw, 52px); line-height: 1.05; font-weight: 300; letter-spacing: -.03em; }
.results-head > p { margin: 0 0 6px; color: var(--muted); white-space: nowrap; }
.product-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.product-card { min-height: 182px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 30px; align-content: center; padding: 27px 0; border-bottom: 1px solid var(--line-soft); background: transparent; position: relative; }
.product-card h3 { margin: 5px 0; color: var(--ink); font-size: clamp(22px, 2.2vw, 32px); line-height: 1.15; font-weight: 400; letter-spacing: -.02em; }
.product-card .factory { margin: 0; color: var(--muted); font-size: 14px; }
.card-top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { border: 1px solid var(--line); padding: 5px 8px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .11em; }
.badge.new { border-color: var(--teal); color: var(--teal); }
.badge.unavailable { border-color: #aeb7bb; color: #7d898e; background: #e7ebec; }
.code { color: var(--muted); font-size: 12px; letter-spacing: .05em; }
.card-bottom { grid-column: 2; grid-row: 2 / 4; min-width: 190px; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 17px; }
.price { text-align: right; }
.price strong, .price small { display: block; }
.price strong { color: var(--teal); font-size: 21px; font-weight: 500; }
.price small { margin-top: 3px; color: var(--muted); }
.choose-button { min-width: 148px; border: 1px solid var(--teal); background: transparent; color: var(--teal); padding: 11px 16px; border-radius: 2px; }
.choose-button:hover { background: var(--teal); color: #fff; }
.choose-button:disabled { border-color: #adb6ba; color: #7f8a8f; cursor: default; }
.product-card.is-unavailable { margin: 0 -18px; padding-left: 18px; padding-right: 18px; background: #f0f2f2; color: #8d969a; filter: saturate(.18); }
.product-card.is-unavailable h3, .product-card.is-unavailable .price strong { color: #7f898d; }
.product-card.is-unavailable .factory, .product-card.is-unavailable .code, .product-card.is-unavailable .price small { color: #929b9f; }
.more-button { display: block; margin: 28px auto 0; border: 0; border-bottom: 1px solid var(--teal); background: transparent; color: var(--teal); padding: 8px 0; }
.no-results { padding: 56px 0; color: var(--muted); }
.no-results strong { display: block; margin-bottom: 8px; color: var(--teal); font-size: 24px; font-weight: 400; }
.cart-panel { position: sticky; top: 142px; min-height: 470px; max-height: calc(100vh - 165px); display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); background: #fff; }
.cart-head { display: flex; justify-content: space-between; align-items: start; }
.cart-head h2, .dialog h2 { margin: 0; color: var(--teal); font-size: 36px; line-height: 1; font-weight: 300; }
.cart-head button, .dialog-close { display: none; border: 0; background: transparent; color: var(--teal); font-size: 28px; }
.cart-items { margin-top: 18px; overflow-y: auto; }
.cart-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.cart-item h4 { margin: 0; font-size: 15px; font-weight: 500; }
.cart-item p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.cart-item strong { color: var(--teal); font-size: 14px; }
.remove-item { grid-column: 2; border: 0; background: transparent; color: var(--muted); padding: 0; font-size: 12px; }
.empty-cart { flex: 1; display: grid; place-content: center; text-align: center; color: var(--muted); }
.empty-cart span { color: var(--line); font-size: 70px; font-weight: 200; }
.empty-cart p { max-width: 220px; line-height: 1.5; }
.cart-summary { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.cart-summary > div { display: flex; justify-content: space-between; margin-bottom: 10px; }
.cart-summary .total { margin-top: 13px; color: var(--teal); font-size: 20px; }
.minimum { display: block !important; padding: 11px 12px; background: var(--soft); color: var(--muted); font-size: 12px; line-height: 1.45; }
.minimum.ok { color: var(--teal); background: #e7f0ef; }
.primary-button { width: 100%; margin-top: 13px; border: 1px solid var(--teal); background: var(--teal); color: #fff; padding: 14px 18px; border-radius: 2px; font-weight: 500; }
.primary-button:hover { background: var(--teal-dark); }
.primary-button:disabled { border-color: #b4bec1; background: #b4bec1; cursor: default; }
footer { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px clamp(24px, 4vw, 66px); background: var(--teal); color: #fff; font-size: 15px; }
footer span:first-child { font-size: 27px; font-weight: 300; }
.dialog { width: min(700px, calc(100vw - 24px)); max-width: none; border: 0; padding: 0; background: transparent; }
.dialog::backdrop { background: rgba(3,35,40,.55); backdrop-filter: blur(5px); }
.dialog-shell { position: relative; padding: clamp(28px, 5vw, 48px); background: #fff; border: 1px solid var(--line); }
.dialog-close { display: block; position: absolute; top: 16px; right: 20px; }
.dialog h2 { margin-bottom: 28px; }
.eyebrow { margin: 0 0 11px; color: var(--teal); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
.detail-head { padding-right: 35px; }
.detail-head h2 { margin: 14px 0 8px; color: var(--teal); font-size: clamp(34px, 5vw, 54px); font-weight: 300; line-height: 1.05; }
.detail-meta { color: var(--muted); line-height: 1.65; }
.detail-price { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin: 27px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-price strong { color: var(--teal); font-size: 23px; }
.volume-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.volume-row label, .form-grid label { color: var(--ink); font-size: 13px; font-weight: 500; }
.volume-row input, .form-grid input, .form-grid textarea, #orderText { width: 100%; margin-top: 7px; border: 1px solid var(--line); background: #fff; padding: 13px; border-radius: 2px; resize: vertical; }
.calculated { padding: 14px; background: var(--soft); }
.calculated span { display: block; color: var(--muted); font-size: 12px; }
.calculated strong { display: block; margin-top: 4px; color: var(--teal); font-size: 24px; }
.stock-note { margin: 16px 0 0; padding: 14px; background: #eef1f1; color: #7f8a8f; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .wide { grid-column: 1 / -1; }
.privacy-note, .copy-status { min-height: 17px; margin: 12px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.copy-status { color: var(--teal); }
@media (max-width: 1000px) {
  .shop-layout { grid-template-columns: 1fr; }
  .cart-panel { position: fixed; inset: auto 0 0; z-index: 30; max-height: 82vh; border: 0; border-top: 1px solid var(--line); transform: translateY(105%); transition: transform .28s ease; box-shadow: 0 -18px 50px rgba(4,49,55,.15); }
  .cart-panel.open { transform: translateY(0); }
  .cart-head button { display: block; }
}
@media (max-width: 650px) {
  .topbar { min-height: 86px; padding: 16px 18px; }
  .brand-name { font-size: 39px; }
  .cart-jump { padding: 10px 12px; font-size: 14px; }
  .intro { padding: 19px 18px; }
  .limits { gap: 10px; flex-direction: column; font-size: 13px; }
  .shop-layout { padding: 30px 18px 80px; }
  .search-field { min-height: 60px; padding: 0 14px; }
  .search-field input { font-size: 19px; }
  .suggestions { top: 98px; }
  .results-head { align-items: start; flex-direction: column; gap: 8px; }
  .product-card { grid-template-columns: 1fr; padding: 23px 0; }
  .card-bottom { grid-column: 1; grid-row: auto; min-width: 0; flex-direction: row; align-items: end; justify-content: space-between; margin-top: 13px; }
  .price { text-align: left; }
  .product-card.is-unavailable { margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
  .form-grid, .volume-row { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
