/* KC Solar — Apple-style layout: thin glass nav, full-bleed hero tiles, 12px tile grid, pill buttons */

:root {
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --bg: #fff;
  --bg-alt: #f5f5f7;
  --line: #d2d2d7;
  --dark: #000;
  --dark-2: #1d1d1f;
  --on-dark: #f5f5f7;
  --on-dark-2: #a1a1a6;
  --accent: #0a78c2;          /* blue from the KC gear logo */
  --accent-hover: #0866a6;
  --accent-on-dark: #2fa6f0;
  --line-green: #06c755;
  --danger: #d70015;
  --wall: #c4dbe3;            /* wall colour behind the shop's set photos */
  --radius: 18px;
  --nav-h: 48px;
  --page: 980px;
  --gutter: 22px;
  --font: "Inter", "Noto Sans Thai", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(.28, .11, .32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 64px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
html:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(var(--page), 100% - var(--gutter) * 2); margin-inline: auto; }
.muted { color: var(--text-2); }
.chev::after { content: " ›"; }

/* ---------- Global nav ---------- */
.gnav { position: sticky; top: 0; z-index: 100; height: var(--nav-h); }
/* Glass lives on ::before: backdrop-filter on .gnav itself would make the fixed mobile menu size to the 48px bar instead of the screen */
.gnav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(250, 250, 252, .8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.gnav-inner {
  max-width: 1024px; height: 100%; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 12px;
}
.gnav-logo { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 15px; white-space: nowrap; }
.gnav-logo:hover { text-decoration: none; }
.gnav-logo img { width: 26px; height: 26px; }
.gnav-links {
  list-style: none; margin: 0 auto; padding: 0;
  display: flex; flex: 1; justify-content: space-between; max-width: 680px;
}
.gnav-links a {
  display: block; padding: 0 8px; line-height: var(--nav-h);
  font-size: 13px; color: rgba(0, 0, 0, .8); transition: color .2s;
}
.gnav-links a:hover { color: #000; text-decoration: none; }
.gnav-links a[aria-current="page"] { color: #000; font-weight: 600; }
.gnav-chat {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 980px;
  background: var(--line-green); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.gnav-chat:hover { text-decoration: none; filter: brightness(.95); }
.gnav-chat svg { width: 16px; height: 16px; }
.gnav-toggle { display: none; margin-left: auto; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; position: relative; }
.gnav-toggle span { position: absolute; left: 12px; width: 17px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease), top .3s var(--ease); }
.gnav-toggle span:first-child { top: 16px; }
.gnav-toggle span:last-child { top: 23px; }
.gnav[data-open] .gnav-toggle span:first-child { top: 20px; transform: rotate(45deg); }
.gnav[data-open] .gnav-toggle span:last-child { top: 20px; transform: rotate(-45deg); }

@media (max-width: 833px) {
  .gnav-toggle { display: block; }
  .gnav-chat { order: 2; }
  .gnav-toggle { order: 3; margin-left: 0; }
  .gnav-logo { margin-right: auto; }
  .gnav-links {
    position: fixed; inset: var(--nav-h) 0 0; z-index: 99;
    flex-direction: column; justify-content: flex-start; max-width: none; margin: 0;
    padding: 20px 40px; background: #fafafc;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .gnav[data-open] .gnav-links { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .gnav-links a { font-size: 26px; font-weight: 600; line-height: 1.3; padding: 10px 0; color: var(--text); }
  body.nav-open { overflow: hidden; }
}

/* ---------- Ribbon ---------- */
.ribbon { background: var(--bg-alt); text-align: center; padding: 14px var(--gutter); font-size: 14px; line-height: 1.5; }
.ribbon a { white-space: nowrap; }

/* ---------- Buttons ---------- */
.ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 20px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 22px; border-radius: 980px;
  font-size: 17px; line-height: 1.2; font-weight: 400; cursor: pointer;
  border: 1px solid var(--accent); transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--accent); }
.btn-secondary:hover { background: var(--accent); color: #fff; }
.btn-line { background: var(--line-green); border-color: var(--line-green); color: #fff; }
.btn-line:hover { filter: brightness(.95); }
.btn-sm { min-height: 34px; padding: 6px 15px; font-size: 14px; }
.btn-block { width: 100%; }
.on-dark .btn-secondary { color: var(--accent-on-dark); border-color: var(--accent-on-dark); }
.on-dark .btn-secondary:hover { background: var(--accent-on-dark); color: #000; }
.link-more { font-size: 17px; }

/* ---------- Hero tiles ---------- */
.stack { display: grid; gap: 12px; }
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 56px var(--gutter) 0; background: var(--bg-alt);
}
.tile-hero { min-height: 700px; }
.tile-white { background: var(--bg); }
.tile-wall { background: var(--wall); }
.tile-wall .eyebrow, .tile-wall .btn-secondary { color: #065a91; border-color: #065a91; }
.tile-wall .price-line { color: #3f4f57; }
.tile-wall .btn-secondary:hover { background: #065a91; color: #fff; }
.tile-dark, .on-dark { background: var(--dark); color: var(--on-dark); }
.on-dark a:not(.btn) { color: var(--accent-on-dark); }
.eyebrow { font-size: 17px; font-weight: 600; color: var(--accent); margin-bottom: 6px; }
.on-dark .eyebrow { color: var(--accent-on-dark); }
.tile h1, .tile h2 { font-size: 56px; line-height: 1.12; font-weight: 600; letter-spacing: -.01em; }
.tile .sub { font-size: 28px; line-height: 1.3; font-weight: 400; margin-top: 8px; }
.tile .price-line { font-size: 17px; color: var(--text-2); margin-top: 10px; }
.on-dark .price-line, .tile-dark .price-line { color: var(--on-dark-2); }
.tile-media { margin-top: auto; width: 100%; display: flex; justify-content: center; }

.hero-set img {
  height: 500px; width: auto; margin-top: 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%, #000 76%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 24%, #000 76%, transparent 100%);
}
.hero-panels img { height: 430px; width: auto; margin: 36px 0 -40px; filter: drop-shadow(0 30px 60px rgba(47, 166, 240, .25)); }

.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 12px; }
.tile-grid .tile { min-height: 580px; padding-top: 52px; }
.tile-grid h2 { font-size: 40px; }
.tile-grid .sub { font-size: 21px; }
.tile-grid .tile-img { max-height: 300px; width: auto; margin: 24px auto 0; }

.pair { display: flex; align-items: flex-end; justify-content: center; gap: 10px; padding-bottom: 36px; }
.pair img { height: 260px; width: auto; margin: 0; mix-blend-mode: multiply; }
.pair img + img { height: 240px; }

.tile-photo { color: #fff; justify-content: flex-start; }
.tile-photo > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; transition: transform 1.2s var(--ease); }
.tile-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .66) 42%, rgba(0, 0, 0, .1) 78%); }
.tile-photo h2, .tile-photo .sub { text-shadow: 0 1px 12px rgba(0, 0, 0, .4); }
.tile-photo:hover > img { transform: scale(1.03); }
.tile-photo .sub { color: rgba(255, 255, 255, .9); }
.tile-photo .btn-secondary { color: #fff; border-color: #fff; }
.tile-photo .btn-secondary:hover { background: #fff; color: var(--text); }

.glow { position: absolute; inset: auto -20% -40% -20%; height: 80%; z-index: -1; background: radial-gradient(closest-side, rgba(10, 120, 194, .55), transparent); filter: blur(30px); }
.gradient-text {
  background: linear-gradient(90deg, #2fa6f0 0%, #7dd3fc 45%, #c4cdd6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px 0 44px; padding: 0; list-style: none; }
.chips li { padding: 6px 14px; border-radius: 980px; border: 1px solid rgba(255, 255, 255, .22); font-size: 14px; color: var(--on-dark-2); }

.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 480px; margin: auto auto 44px; padding-top: 28px; }
.mosaic img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }
.mosaic img:nth-child(2) { transform: translateY(-16px); }

.big-logo { width: 180px; height: auto; margin: 32px auto 48px; }

/* ---------- Section heads ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section-title { font-size: 40px; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
.section-title .muted { color: var(--text-3); }
.section-lead { font-size: 21px; line-height: 1.45; color: var(--text-2); max-width: 680px; margin-top: 10px; }
.on-dark .section-lead { color: var(--on-dark-2); }

/* ---------- Shelf (horizontal cards) ---------- */
.shelf-track {
  display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 8px max(var(--gutter), (100% - var(--page)) / 2) 36px;
  scroll-padding-inline: max(var(--gutter), (100% - var(--page)) / 2);
  margin: 0; list-style: none;
}
.shelf-track::-webkit-scrollbar { display: none; }
.shelf-track > li { flex: 0 0 300px; scroll-snap-align: start; }
.shelf-nav { display: flex; gap: 12px; }
.shelf-nav button {
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(210, 210, 215, .64); color: rgba(0, 0, 0, .56); font-size: 20px; line-height: 1;
  transition: background .2s, opacity .2s;
}
.shelf-nav button:hover:not(:disabled) { background: rgba(223, 223, 227, .9); color: #000; }
.shelf-nav button:disabled { opacity: .35; cursor: default; }

/* ---------- Product cards ---------- */
.card {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, .08);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.card:hover { box-shadow: 2px 4px 16px rgba(0, 0, 0, .16); transform: scale(1.012); }
.card-media { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 20px; background: #fff; }
.card-media img { max-height: 100%; width: auto; object-fit: contain; }
.card-media.is-photo { padding: 0; background: var(--wall); }
.card-media.is-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-media.is-pair img { max-width: 48%; height: 82%; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 22px 22px; }
.card-code { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--accent); text-transform: uppercase; }
.card-name { font-size: 21px; line-height: 1.3; font-weight: 600; margin-top: 4px; }
.card-short { font-size: 14px; color: var(--text-2); margin-top: 6px; }
.card-price { font-size: 17px; margin-top: auto; padding-top: 14px; }
.card-price strong { font-size: 21px; font-weight: 600; }
.card-price .ask { color: var(--text-2); }
.card-warranty { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tag { font-size: 12px; padding: 3px 9px; border-radius: 980px; background: var(--bg-alt); color: var(--text-2); }
.card-actions { display: flex; gap: 10px; margin-top: 16px; }
.card-open { position: absolute; inset: 0; z-index: 1; border: 0; background: none; cursor: pointer; border-radius: var(--radius); }
.card-actions { position: relative; z-index: 2; }

/* ---------- Products page ---------- */
.page-alt { background: var(--bg-alt); }
.store-head { padding: 64px 0 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.store-head h1 { font-size: 56px; line-height: 1.1; font-weight: 600; letter-spacing: -.01em; max-width: 640px; }
.store-head h1 .muted { color: var(--text-3); }
.store-help { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.45; }
.store-help img { width: 40px; height: 40px; }

.catnav { position: sticky; top: var(--nav-h); z-index: 50; background: rgba(245, 245, 247, .86); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.catnav ul { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; list-style: none; margin: 0 auto; padding: 10px max(var(--gutter), (100% - var(--page)) / 2); }
.catnav ul::-webkit-scrollbar { display: none; }
.catnav a {
  display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 96px; padding: 8px 6px;
  border-radius: 14px; color: var(--text); font-size: 13px; line-height: 1.3; text-align: center;
}
.catnav a:hover { text-decoration: none; background: rgba(0, 0, 0, .04); }
.catnav a.is-active { color: var(--accent); font-weight: 600; }
.catnav img { height: 54px; width: 54px; object-fit: contain; }
.catnav img.is-photo { object-fit: cover; border-radius: 10px; }

.cat-section { padding: 52px 0 12px; }
.cat-section .section-title { font-size: 32px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 20px; margin-top: 24px; }
.footnote { font-size: 12px; line-height: 1.6; color: var(--text-2); margin-top: 18px; }

.compare { margin-top: 26px; }
.compare summary { cursor: pointer; color: var(--accent); font-size: 17px; list-style: none; }
.compare summary::-webkit-details-marker { display: none; }
.compare summary::after { content: " +"; }
.compare[open] summary::after { content: " −"; }
.table-wrap { overflow-x: auto; margin-top: 16px; border-radius: var(--radius); background: #fff; box-shadow: 2px 4px 12px rgba(0, 0, 0, .06); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #ececf0; white-space: nowrap; }
th { font-weight: 600; color: var(--text-2); font-size: 12px; }
td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* ---------- Dialogs ---------- */
dialog { border: 0; padding: 0; color: var(--text); background: #fff; }
dialog::backdrop { background: rgba(0, 0, 0, .48); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet { width: min(880px, 100% - 32px); max-height: calc(100% - 48px); border-radius: 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.sheet[open] { animation: sheet-in .35s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.sheet-close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, .06); color: var(--text); font-size: 20px; line-height: 1;
}
.sheet-close:hover { background: rgba(0, 0, 0, .1); }
/* Stays on screen while a long product sheet scrolls; the negative margin keeps it from pushing the content down */
.sheet .sheet-close { position: sticky; display: block; margin: 14px 14px -50px auto; background: rgba(236, 236, 240, .92); }
.sheet .sheet-close:hover { background: rgba(224, 224, 228, .96); }
.sheet-body { display: grid; grid-template-columns: 1fr 1fr; }
.sheet-media { display: flex; align-items: center; justify-content: center; gap: 8px; background: #fff; padding: 32px; min-height: 360px; }
.sheet-media.is-photo { padding: 0; background: var(--wall); }
.sheet-media.is-photo img { width: 100%; height: 100%; object-fit: cover; }
.sheet-media img { max-height: 380px; width: auto; }
.sheet-media.is-pair img { max-width: 48%; }
.sheet-info { padding: 40px 36px 32px; display: flex; flex-direction: column; }
.sheet-info h2 { font-size: 32px; line-height: 1.2; font-weight: 600; margin-top: 4px; }
.sheet-price { font-size: 24px; font-weight: 600; margin-top: 12px; }
.sheet-note { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.specs { margin: 22px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 15px; }
.specs dt { color: var(--text-2); }
.specs dd { margin: 0; font-weight: 500; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 26px; }

.lightbox { width: min(1100px, 100% - 32px); max-height: calc(100% - 32px); background: #000; color: #fff; border-radius: 18px; overflow: hidden; }
.lightbox img { max-height: calc(100vh - 140px); width: auto; max-width: 100%; margin: 0 auto; }
.lightbox figcaption { padding: 14px 64px 18px; text-align: center; font-size: 14px; color: var(--on-dark-2); }
.lightbox figcaption strong { color: #fff; font-weight: 600; margin-right: 6px; }
.lightbox .sheet-close { background: rgba(255, 255, 255, .14); color: #fff; }
.lb-prev, .lb-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 24px;
}
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255, 255, 255, .28); }

/* ---------- About page ---------- */
.about-hero { text-align: center; padding: 96px 0 72px; }
.about-hero img { width: 112px; margin: 0 auto 22px; }
.about-hero h1 { font-size: 64px; line-height: 1.1; font-weight: 700; letter-spacing: -.015em; }
.about-hero .sub { font-size: 28px; margin-top: 10px; }
.about-hero p.lead { font-size: 21px; line-height: 1.6; color: var(--text-2); max-width: 720px; margin: 22px auto 0; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value { background: #fff; border-radius: var(--radius); padding: 28px 24px; }
.value svg { width: 36px; height: 36px; color: var(--accent); }
.value h3 { font-size: 19px; line-height: 1.35; font-weight: 600; margin-top: 16px; }
.value p { font-size: 15px; color: var(--text-2); margin-top: 6px; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { border-radius: var(--radius); padding: 30px 28px; background: var(--bg-alt); }
.service .num { font-size: 14px; font-weight: 600; color: var(--accent); }
.service h3 { font-size: 21px; font-weight: 600; margin-top: 8px; }
.service p { font-size: 15px; color: var(--text-2); margin-top: 6px; }

.brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; font-size: 26px; font-weight: 700; letter-spacing: -.01em; color: var(--text-3); }

.filters { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 980px; background: #e8e8ed; }
.filters button { border: 0; background: none; padding: 7px 16px; border-radius: 980px; font-size: 14px; cursor: pointer; color: var(--text); }
.filters button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px 16px; margin-top: 28px; }
.gallery figure { margin: 0; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 14px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-more { display: flex; justify-content: center; margin-top: 28px; }
.gallery button:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: 13px; color: var(--text-2); padding: 8px 2px 0; }
.empty-note { border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--text-2); margin-top: 28px; }

.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.contact {
  display: flex; flex-direction: column; gap: 6px; padding: 26px 22px;
  border-radius: var(--radius); background: #fff; color: var(--text); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.contact:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
.contact svg { width: 30px; height: 30px; color: var(--accent); }
.contact.is-line svg { color: var(--line-green); }
.contact span { font-size: 14px; color: var(--text-2); margin-top: 8px; }
.contact strong { font-size: 19px; font-weight: 600; }

/* ---------- Training page ---------- */
.train-hero { text-align: center; padding: 104px var(--gutter) 0; position: relative; overflow: hidden; isolation: isolate; }
.train-hero h1 { font-size: 72px; line-height: 1.08; font-weight: 700; letter-spacing: -.015em; }
.train-hero .sub { font-size: 28px; margin-top: 14px; color: var(--on-dark); }
.train-hero p.lead { font-size: 19px; color: var(--on-dark-2); max-width: 640px; margin: 18px auto 0; }
.train-hero .ctas { margin-bottom: 0; }
.train-row { display: flex; justify-content: center; align-items: flex-end; gap: 16px; margin-top: 56px; }
.train-row img {
  width: 220px; height: 300px; object-fit: cover; border-radius: 18px 18px 0 0;
  -webkit-mask-image: linear-gradient(#000 50%, transparent); mask-image: linear-gradient(#000 50%, transparent);
}
.train-row img:nth-child(2) { height: 350px; }

.notice { display: flex; gap: 10px; align-items: flex-start; background: #fff8e1; color: #6b4e00; border-radius: 14px; padding: 14px 18px; font-size: 14px; margin-top: 20px; }
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.course { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); padding: 30px 28px; box-shadow: 2px 4px 12px rgba(0, 0, 0, .06); }
.course .level { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 980px; background: #e6f2fb; color: var(--accent); }
.course h3 { font-size: 22px; line-height: 1.3; font-weight: 600; margin-top: 14px; }
.course p { font-size: 15px; color: var(--text-2); margin-top: 8px; }
.course ul { margin: 16px 0 0; padding: 0; list-style: none; font-size: 15px; }
.course li { padding: 8px 0 8px 24px; border-top: 1px solid #ececf0; position: relative; }
.course li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.course .meta { margin-top: auto; padding-top: 18px; font-size: 14px; color: var(--text-2); display: grid; gap: 2px; }
.course .btn { margin-top: 18px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { padding-top: 18px; border-top: 2px solid var(--text); }
.step::before { counter-increment: step; content: "0" counter(step); font-size: 14px; font-weight: 600; color: var(--accent); }
.step h3 { font-size: 21px; font-weight: 600; margin-top: 6px; }
.step p { font-size: 15px; color: var(--text-2); margin-top: 6px; }

.form-card { background: #fff; border-radius: 24px; padding: 44px; box-shadow: 2px 4px 12px rgba(0, 0, 0, .06); max-width: 760px; margin: 28px auto 0; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .full { grid-column: 1 / -1; }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--text);
  padding: 26px 16px 8px; min-height: 56px;
  border: 1px solid var(--text-3); border-radius: 12px; background: #fff;
  transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 110px; resize: vertical; }
.field select { padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center; }
.field label {
  position: absolute; left: 17px; top: 16px; font-size: 17px; color: var(--text-2);
  pointer-events: none; transition: top .15s, font-size .15s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { top: 7px; font-size: 12px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(10, 120, 194, .16); }
.field.invalid input, .field.invalid select { border-color: var(--danger); background-color: #fff5f6; }
.err { display: none; font-size: 12px; color: var(--danger); margin: 6px 4px 0; }
.field.invalid .err, .check.invalid + .err { display: block; }
.check + .err { margin: -8px 0 0 32px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.check.invalid { color: var(--danger); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-actions small { font-size: 12px; color: var(--text-2); flex: 1; min-width: 220px; }
.done { text-align: center; padding: 12px 0; }
.done svg { width: 56px; height: 56px; color: #1e9e4a; margin: 0 auto 14px; }
.done h3 { font-size: 28px; font-weight: 600; }
.done p { color: var(--text-2); margin-top: 8px; }
.done pre { white-space: pre-wrap; text-align: left; font: inherit; font-size: 14px; background: var(--bg-alt); border-radius: 12px; padding: 14px 18px; margin: 18px 0 0; }
.done .ctas { margin-top: 18px; }

/* ---------- Why us strip ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.why svg { width: 44px; height: 44px; color: var(--accent); margin: 0 auto; }
.why h3 { font-size: 19px; font-weight: 600; margin-top: 14px; }
.why p { font-size: 15px; color: var(--text-2); margin-top: 6px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); color: var(--text-2); font-size: 12px; line-height: 1.55; }
.footer a { color: #424245; }
.footer-notes { padding: 18px 0 14px; border-bottom: 1px solid var(--line); }
.footer-notes ol { margin: 0; padding-left: 18px; }
.footer-notes li + li { margin-top: 6px; }
.footer-dir { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 22px 0; }
.footer-dir h3 { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.footer-dir ul { list-style: none; margin: 0; padding: 0; }
.footer-dir li + li { margin-top: 6px; }
.footer-shop { padding: 14px 0; border-top: 1px solid var(--line); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 12px 0 24px; border-top: 1px solid var(--line); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1068px) {
  .tile h1, .tile h2 { font-size: 48px; }
  .tile-grid h2 { font-size: 34px; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .courses { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 833px) {
  .tile-grid { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .sheet-body { grid-template-columns: 1fr; }
  .sheet-media { min-height: 0; max-height: 46vh; }
  .sheet-media.is-photo img { max-height: 46vh; }
  .sheet-media img { max-height: 38vh; }
  .sheet-info { padding: 26px 24px 24px; }
}
@media (max-width: 734px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .tile { padding-top: 44px; }
  .tile-hero { min-height: 560px; }
  .tile h1, .tile h2 { font-size: 38px; }
  .tile .sub { font-size: 21px; }
  .tile-grid { padding: 0; }
  .tile-grid .tile { min-height: 500px; }
  .tile-grid h2 { font-size: 30px; }
  .tile-grid .sub { font-size: 18px; }
  .hero-set img { height: 360px; }
  .hero-panels img { height: 320px; }
  .pair img { height: 200px; }
  .pair img + img { height: 184px; }
  .section { padding: 60px 0; }
  .section-title { font-size: 30px; }
  .section-lead { font-size: 18px; }
  .store-head { padding-top: 40px; }
  .store-head h1 { font-size: 36px; }
  .shelf-track > li { flex-basis: 78%; }
  .shelf-nav { display: none; }
  .pgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 14px 10px; }
  .card-body { padding: 14px 14px 16px; }
  .card-name { font-size: 16px; }
  .card-short { font-size: 13px; }
  .card-price strong { font-size: 17px; }
  .card-media { padding: 12px; }
  .card-actions { flex-direction: column; gap: 8px; }
  .card-actions .btn { width: 100%; }
  .catnav a { min-width: 78px; font-size: 12px; }
  .catnav img { width: 44px; height: 44px; }
  .about-hero { padding: 64px 0 48px; }
  .about-hero h1 { font-size: 40px; }
  .about-hero .sub { font-size: 21px; }
  .about-hero p.lead { font-size: 17px; }
  .values, .services, .contact-grid, .courses, .steps, .why { grid-template-columns: 1fr; }
  .brands { font-size: 20px; gap: 10px 28px; }
  .train-hero { padding-top: 72px; }
  .train-hero h1 { font-size: 44px; }
  .train-hero .sub { font-size: 21px; }
  .train-row { gap: 10px; margin-top: 40px; }
  .train-row img { width: 30%; height: 190px; }
  .train-row img:nth-child(2) { height: 230px; }
  .form-card { padding: 26px 18px; border-radius: 18px; }
  .form { grid-template-columns: 1fr; }
  .footer-dir { grid-template-columns: 1fr 1fr; }
  .sheet { width: 100%; max-width: 100%; max-height: 92vh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .lightbox figcaption { padding: 12px 16px 16px; }
}
