/* Header */
.announce { background: var(--red); color: var(--white); font-weight: 600; font-size: .92rem; text-align: center; padding: 7px var(--gutter); }

.site-head { position: sticky; top: 0; z-index: 20; background: var(--white); }
.site-head::after { content: ''; display: block; height: 5px; background: linear-gradient(90deg, var(--green) 0 50%, var(--blue) 50% 85%, var(--red) 85%); border-bottom: 2px solid var(--white); box-sizing: content-box; }
.head-row { display: flex; align-items: center; gap: 12px 24px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 2px; color: var(--ink); text-decoration: none; font-weight: 800; font-stretch: 112%; font-size: 1.14rem; letter-spacing: -.01em; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 26px); margin-left: auto; }
.site-nav a { color: var(--ink); font-weight: 600; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-color: var(--blue); }
.basket-link { display: inline-flex; align-items: center; gap: 7px; }
.basket-count { display: inline-grid; place-items: center; min-width: 23px; height: 23px; padding: 0 6px; border-radius: 12px; background: var(--green); color: var(--white); font-size: .8rem; font-weight: 700; }
.basket-count[data-n="0"] { background: var(--surface); color: var(--muted); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--blue); color: var(--white); }
.hero-copy { padding-block: clamp(52px, 8vw, 104px) clamp(36px, 5vw, 56px); }
.hero h1 { font-size: clamp(2.6rem, 7.2vw, 5.6rem); font-weight: 800; font-stretch: 118%; max-width: 13ch; }
.hero p { margin-top: 20px; max-width: 46ch; font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: #dbe6f7; }
.hero .btn { margin-top: 30px; background: var(--white); color: var(--ink); border-color: var(--white); }
.hero .btn:hover { background: #dbe6f7; border-color: #dbe6f7; }
.hero :focus-visible { outline-color: var(--white); }
.hero-line { position: relative; display: flex; justify-content: flex-end; height: clamp(104px, 15vw, 196px); }
.hero-train { flex: none; height: 100%; width: auto; max-width: none; margin-right: clamp(-40px, 2vw, 40px); animation: arrive 2.2s cubic-bezier(.14, .74, .2, 1) both; }
@keyframes arrive { from { transform: translateX(-42vw); } to { transform: none; } }
.rail { height: 18px; background:
  linear-gradient(var(--white) 0 3px, transparent 3px),
  repeating-linear-gradient(90deg, #06306f 0 12px, transparent 12px 30px),
  var(--blue-dark); }

/* The route: categories as stops on a line. */
.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--stops, 5), 1fr); position: relative; }
.route::before { content: ''; position: absolute; left: 0; right: 0; top: 9px; height: 5px; background: var(--green); }
.route li { position: relative; padding-top: 34px; padding-right: 12px; }
.route li::before { content: ''; position: absolute; top: 0; left: 0; width: 23px; height: 23px; border-radius: 50%; background: var(--white); border: 5px solid var(--green); transition: border-color .15s; }
.route a { display: block; color: var(--ink); text-decoration: none; font-weight: 700; font-stretch: 106%; line-height: 1.25; }
.route a:hover { color: var(--blue); text-decoration: underline; }
.route li:has(a:hover)::before { border-color: var(--red); }
.route span { display: block; margin-top: 3px; font-size: .88rem; font-weight: 400; font-stretch: 100%; color: var(--muted); }

/* Progress through ordering uses the same line. */
.route.progress { --stops: 3; max-width: 560px; margin-bottom: 34px; }
.route.progress::before { background: var(--line); }
.route.progress li { font-weight: 600; color: var(--muted); }
.route.progress li::before { border-color: var(--line); }
.route.progress li.done, .route.progress li.now { color: var(--ink); }
.route.progress li.done::before { background: var(--green); border-color: var(--green); }
.route.progress li.now::before { border-color: var(--red); }

/* Page sections */
.section { padding-block: clamp(40px, 6vw, 72px); }
.section.tint { background: var(--surface); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.page-title { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: 26px; }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 256px), 1fr)); gap: 26px 22px; }
.card > a { display: block; color: inherit; text-decoration: none; height: 100%; }
.card-img { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.section.tint .card-img { background: var(--white); }
.card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.card a:hover img { transform: scale(1.03); }
.card-img .tag { position: absolute; top: 10px; left: 10px; }
.card-meta { margin-top: 11px; font-size: .86rem; color: var(--muted); }
.card h3 { margin-top: 2px; font-size: 1.1rem; font-weight: 700; font-stretch: 104%; line-height: 1.22; letter-spacing: 0; }
.card a:hover h3 { color: var(--blue); text-decoration: underline; }
.card .price { margin-top: 7px; }
.card .signal { margin-top: 5px; font-size: .86rem; }
.price { font-weight: 750; font-size: 1.12rem; font-variant-numeric: tabular-nums; }
.price del { margin-left: 7px; font-weight: 400; font-size: .9em; color: var(--muted); }
.price.is-offer { color: var(--red-dark); }

/* Shop filters */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { padding: 6px 13px; border: 1.5px solid var(--line); border-radius: 20px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.chip:hover { border-color: var(--blue); }
.chip[aria-current="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.selects { display: flex; gap: 10px; margin-left: auto; }
.selects select { width: auto; min-height: 38px; padding: 5px 9px; }

/* Product page */
.crumb { margin-bottom: 18px; font-size: .92rem; }
.product { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.gallery-main { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumbs button { width: 76px; height: 58px; padding: 0; background: var(--surface); border: 2px solid transparent; border-radius: 4px; cursor: pointer; overflow: hidden; }
.thumbs button[aria-current="true"] { border-color: var(--blue); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.product .price { margin-top: 14px; font-size: 1.7rem; }
.offer-note { margin-top: 6px; color: var(--red-dark); font-weight: 600; font-size: .94rem; }
.status-block { margin-top: 16px; padding-block: 14px; border-block: 1px solid var(--line); }
.status-block p { margin-top: 2px; color: var(--muted); font-size: .94rem; }
.buy { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.buy .btn { flex: 1 1 200px; }
.stepper { display: inline-flex; border: 1.5px solid #aab6c2; border-radius: var(--radius); }
.stepper button { width: 42px; border: 0; background: none; cursor: pointer; font-size: 1.2rem; font-weight: 600; }
.stepper button:hover { background: var(--surface); }
.stepper input { width: 50px; min-height: 43px; padding: 0; border: 0; text-align: center; appearance: textfield; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { display: none; }
.added { margin-top: 12px; color: var(--green); font-weight: 600; }
.description { margin-top: 22px; white-space: pre-line; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 5px 20px; margin: 22px 0 0; font-size: .95rem; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 500; }

/* Basket and checkout */
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px 18px; align-items: center; padding-block: 16px; border-bottom: 1px solid var(--line); }
.line-img { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--surface); border-radius: 4px; overflow: hidden; }
.line-img img { width: 100%; height: 100%; object-fit: contain; }
.line-img .sil { width: 80%; }
.line h3 { font-size: 1.04rem; font-stretch: 102%; letter-spacing: 0; font-weight: 700; line-height: 1.25; }
.line h3 a { color: inherit; text-decoration: none; }
.line h3 a:hover { text-decoration: underline; }
.line p { font-size: .9rem; color: var(--muted); }
.line-end { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.line-total { min-width: 72px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.linkish { padding: 0; border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .88rem; }
.linkish:hover { color: var(--red-dark); }
.summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.summary-total { font-size: 1.4rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.summary small { display: block; font-size: .9rem; font-weight: 400; color: var(--muted); }

.checkout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid .full { grid-column: 1 / -1; }
.trap { position: absolute; left: -9999px; }
.side { padding: 20px; background: var(--surface); border-radius: var(--radius); }
.side h2 { font-size: 1.15rem; margin-bottom: 12px; }
.side-line { display: flex; justify-content: space-between; gap: 14px; padding-block: 6px; font-size: .95rem; }
.side-line b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.side-total { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 1.1rem; font-weight: 750; }
.side p.note { margin-top: 14px; font-size: .9rem; color: var(--muted); }
.ref { display: inline-block; margin-block: 14px; padding: 8px 14px; background: var(--ink); color: var(--white); font-weight: 700; font-stretch: 108%; font-size: 1.25rem; letter-spacing: .04em; border-radius: 4px; }

.pay-note { margin-top: 10px; font-size: .9rem; color: var(--muted); text-align: right; }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 12px; border-top: 5px solid var(--c, var(--green)); }
.steps li:nth-child(2) { --c: var(--blue); }
.steps li:nth-child(3) { --c: var(--red); }
.steps h3 { font-size: 1.15rem; letter-spacing: 0; }
.steps h3::before { content: counter(s) '. '; }
.steps p { margin-top: 6px; color: var(--muted); }

.prose { max-width: 66ch; }
.prose h2 { margin-top: 34px; margin-bottom: 8px; font-size: 1.35rem; }
.prose p { margin-bottom: 12px; white-space: pre-line; }
.empty { padding: clamp(30px, 6vw, 60px) 20px; text-align: center; background: var(--surface); border-radius: var(--radius); }
.empty h2 { font-size: 1.4rem; }
.empty p { margin-top: 8px; color: var(--muted); }
.empty .btn { margin-top: 16px; }
.loading { min-height: 50vh; display: grid; place-items: center; color: var(--muted); }

/* Footer */
.site-foot { background: var(--ink); color: #cdd8e8; font-size: .94rem; }
.site-foot::before { content: ''; display: block; height: 5px; background: linear-gradient(90deg, var(--red) 0 15%, var(--blue) 15% 50%, var(--green) 50%); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; padding-block: 28px; }
.site-foot a { color: var(--white); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
#foot-contact:empty { display: none; }
.site-foot :focus-visible { outline-color: var(--white); }

@media (max-width: 860px) {
  .product, .checkout { grid-template-columns: minmax(0, 1fr); }
  .selects { margin-left: 0; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
  .site-nav a[href="/about"] { display: none; } /* Still linked from the footer. */
}

@media (max-width: 640px) {
  .logo { font-size: 1rem; }
  .logo-mark { width: 28px; height: 20px; }
  .site-nav { gap: 13px; font-size: .94rem; }
  .head-row { gap: 10px; }
  .route { grid-template-columns: 1fr; gap: 0; }
  .route::before { left: 9px; right: auto; top: 0; bottom: 0; width: 5px; height: auto; }
  .route li { padding: 10px 0 10px 38px; }
  .route li::before { top: 11px; }
  .route.progress { grid-template-columns: repeat(3, 1fr); }
  .route.progress::before { left: 0; right: 0; top: 9px; bottom: auto; width: auto; height: 5px; }
  .route.progress li { padding: 32px 8px 0 0; font-size: .86rem; }
  .route.progress li::before { top: 0; }
  .line { grid-template-columns: 70px minmax(0, 1fr); }
  .pay-note { text-align: left; }
  .line-end { grid-column: 1 / -1; justify-content: space-between; }
  .form-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .card h3 { font-size: 1rem; }
}
