:root {
  color-scheme: light;
  --ink: #071c32;
  --muted: #4b6375;
  --paper: #f4f8fa;
  --line: #d3e0e7;
  --accent: #5ce2df;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 92px; }
body, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.wrap { width: min(1220px, calc(100% - 64px)); margin-inline: auto; }
header { position: sticky; top: 0; z-index: 2; background: #fff; border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.brand-logo { display: block; flex: none; width: 85px; }
.brand-logo img { display: block; width: 100%; height: auto; }
.brand-wordmark { font-size: 1rem; letter-spacing: .07em; }
header nav { display: flex; align-items: center; gap: clamp(10px, 3vw, 28px); }
header nav a { font-weight: 650; }
.hero { color: white; background: radial-gradient(ellipse at 80% 0%, #164356, #081d34 62%); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 76px); align-items: center; padding-block: clamp(35px, 6vw, 84px); }
h1 { font-size: clamp(2.65rem, 6vw, 5.7rem); line-height: 1.02; letter-spacing: -.065em; overflow-wrap: anywhere; }
h1 em { font: inherit; color: var(--accent); }
.hero p { color: #cee1ea; margin-block: 20px 26px; max-width: 38ch; line-height: 1.6; }
.hero-visual { overflow: hidden; border: 1px solid #376477; border-radius: 24px; background: #102d42; }
.hero-visual img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.primary { display: inline-flex; min-height: 44px; align-items: center; border: 1px solid transparent; background: var(--accent); color: var(--ink); border-radius: 10px; padding: 10px 18px; font-weight: 750; }
.primary:hover { background: #a0f1ef; }
.catalog { padding-block: clamp(32px, 6vw, 72px); }
h2 { font-size: clamp(1.9rem, 4vw, 3.05rem); letter-spacing: -.045em; }
.catalog-tools { display: grid; grid-template-columns: 1fr minmax(120px, 200px); gap: 14px; margin-block: 22px 14px; }
label { display: grid; gap: 6px; font-weight: 650; }
input, select, textarea { width: 100%; min-height: 44px; border: 1px solid #9db2bf; background: white; color: var(--ink); border-radius: 9px; padding: 9px 12px; }
.catalog-tools input, .catalog-tools select { margin-top: 6px; }
#language { width: auto; max-width: min(39vw, 156px); }
#results { margin-block: 14px 16px; color: var(--muted); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
article { display: flex; flex-direction: column; min-width: 0; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: white; }
article h3 { font-size: 1.16rem; overflow-wrap: anywhere; }
article p { color: var(--muted); line-height: 1.45; margin-bottom: 6px; }
.product-photo { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 9px; background: #102c42; margin-bottom: 4px; }
article button, footer button, .close { min-height: 42px; border: 1px solid var(--line); background: white; border-radius: 9px; color: var(--ink); padding: 8px 12px; font-weight: 650; }
article button { margin-top: auto; align-self: flex-start; }
article button:hover, footer button:hover, .close:hover { background: #e3f8f7; border-color: #a0ccce; }
footer { background: white; border-top: 1px solid var(--line); }
dialog { width: min(92vw, 500px); max-height: 90dvh; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); padding: 24px; }
dialog::backdrop { background: #04182eaa; }
dialog h2 { padding-inline-end: 44px; }
dialog p { margin-block: 8px 14px; line-height: 1.5; }
.close { position: absolute; inset-inline-end: 12px; top: 12px; font-size: 1.25rem; }
form { display: grid; gap: 12px; }
form button { justify-self: start; }
#feedback:empty { display: none; }
:focus-visible { outline: 3px solid #087f87; outline-offset: 3px; }
[dir=rtl] h1, [dir=rtl] h2 { letter-spacing: normal; }
@media (max-width: 990px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .bar { gap: 8px; }
  .brand-logo { width: 70px; }
  .catalog-tools { grid-template-columns: minmax(0, 1fr) minmax(92px, 35%); gap: 8px; }
  .grid { gap: 8px; }
  article { padding: 8px; }
  article h3 { font-size: 1rem; }
}

header .bar { flex-wrap: wrap; }
.site-nav { justify-content: center; flex: 1 1 auto; flex-wrap: wrap; }
.site-nav a { padding-block: 7px; }
.site-nav a[aria-current="page"] { border-bottom: 2px solid #167d81; }
.footer-nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.info-page { padding-block: clamp(42px, 9vw, 110px); min-height: 54vh; }
.info-page h1 { font-size: clamp(2.35rem, 6vw, 5rem); }
.info-page p { color: var(--muted); max-width: 62ch; line-height: 1.65; margin-block: 18px 24px; }
.info-split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: center; }
.info-split img { width: min(100%, 320px); height: auto; }
.faq-list { display: grid; gap: 12px; max-width: 720px; margin-block: 24px; }
.faq-list details { padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.faq-list summary { font-weight: 700; cursor: pointer; }
.faq-list p { margin-block: 8px 0; }
@media (max-width: 720px) {
  header { position: static; }
  header .site-nav { order: 3; justify-content: space-between; flex-basis: 100%; padding-bottom: 8px; column-gap: 10px; }
  .info-split { grid-template-columns: 1fr; }
  .info-split img { max-width: 210px; }
}
article .card-price { color: var(--ink); font-weight: 750; font-variant-numeric: tabular-nums; }
article h3 a:hover, .cart-row a:hover { text-decoration: underline; }
#material { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(18px, 5vw, 64px); align-items: center; margin-top: 24px; }
#material h2 { font-size: 1.2rem; letter-spacing: 0; }
.detail-photo { display: block; width: 100%; max-height: 490px; object-fit: contain; border-radius: 16px; background: #102c42; }
.info-page .detail-price { color: var(--ink); font-size: 1.5rem; font-weight: 800; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.secondary-button { border: 1px solid var(--line); background: white; border-radius: 9px; padding: 8px 12px; color: var(--ink); min-height: 44px; }
.cart-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px max-content max-content; align-items: center; gap: 12px; max-width: 720px; padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 610px) {
  #material { grid-template-columns: 1fr; }
  .detail-photo { max-height: 360px; }
  .cart-row { grid-template-columns: minmax(0, 1fr) 64px; }
  .cart-row button { justify-self: start; }
}
.card-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: auto; }
.availability-label { font-size: .94rem; font-weight: 650; }
.material-specs { display: grid; gap: 8px; margin-block: 12px 18px; }
.material-specs > div { padding: 9px 11px; border: 1px solid var(--line); background: white; border-radius: 8px; }
.material-specs dt { font-weight: 700; }
.material-specs dd { color: var(--muted); margin: 4px 0 0; }
#material-extra { display: grid; gap: 16px; margin-top: 28px; }
.material-section { padding: 18px; border: 1px solid var(--line); background: white; border-radius: 14px; }
.material-section h2 { font-size: 1.25rem; letter-spacing: 0; }
.material-section p { margin-block: 7px 0; }
.material-section details { margin-top: 12px; }
.material-section summary { cursor: pointer; font-weight: 650; }
.related-items { padding: 0; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.related-items a { display: inline-block; padding: 8px 12px; border-radius: 8px; background: var(--paper); }
.related-items a:hover { text-decoration: underline; }
.pack-select { width: min(100%, 230px); margin-block: 0 14px; }
@media (min-width: 991px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
