/* ==========================================================================
   Hondol Solar — hondolsolar.com
   Hand-authored token system. No CDN, no webfont service, no tracking.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens */
:root {
  /* brand palette, sampled from the Hondol logo and the factory photography */
  --brand:            #0b3b5c;
  --brand-700:        #0f4a72;
  --brand-600:        #14608f;
  --brand-500:        #1b78ad;
  --brand-300:        #6fb2d4;
  --brand-100:        #e3f0f8;
  --brand-50:         #f2f8fc;

  --accent:           #e8811a;
  --accent-600:       #cf6f0d;
  --accent-100:       #fdf0e0;

  --leaf:             #55a522;
  --sky:              #2fa9d4;

  --ink:              #10161d;
  --ink-2:            #31404e;
  --ink-3:            #5b6b7a;
  --ink-4:            #8595a3;
  --line:             #dde4ea;
  --line-2:           #eaeff3;
  --surface:          #ffffff;
  --surface-2:        #f5f8fa;
  --surface-3:        #eef3f7;
  --dark:             #08293f;
  --dark-2:           #061f30;

  --ok:               #1f8a4c;
  --warn:             #b7791f;

  /* type */
  --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue",
               Arial, "Noto Sans", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --fs-xs:      0.75rem;
  --fs-sm:      0.8125rem;
  --fs-base:    0.9375rem;
  --fs-md:      1.0625rem;
  --fs-lg:      1.25rem;
  --fs-xl:      1.5rem;
  --fs-2xl:     1.875rem;
  --fs-3xl:     2.375rem;
  --fs-4xl:     3rem;
  --lh-tight:   1.18;
  --lh-snug:    1.35;
  --lh-body:    1.68;
  --tracking:   -0.011em;

  /* space + shape */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.5rem;
  --sp-6:  2rem;
  --sp-7:  3rem;
  --sp-8:  4rem;
  --sp-9:  5.5rem;
  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  14px;
  --radius-pill: 999px;
  --container:  1240px;
  --container-narrow: 860px;
  --header-h:   74px;

  --shadow-sm: 0 1px 2px rgba(11, 59, 92, .07), 0 1px 3px rgba(11, 59, 92, .06);
  --shadow:    0 4px 14px rgba(11, 59, 92, .09);
  --shadow-lg: 0 18px 48px rgba(8, 41, 63, .18);
  --ring:      0 0 0 3px rgba(27, 120, 173, .32);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur:  .22s;
}

/* ------------------------------------------------------------- baseline */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  letter-spacing: var(--tracking);
  color: var(--ink-2);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  margin: 0 0 var(--sp-4);
  color: var(--ink);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p  { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.15rem; }
li { margin-bottom: var(--sp-2); }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
small { font-size: var(--fs-sm); }
strong { color: var(--ink); font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }

a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--accent-600); text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm);
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-5); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding: var(--sp-8) 0; }
.section--tight { padding: var(--sp-7) 0; }
.section--tint { background: var(--surface-2); }
.section--tint-2 { background: var(--brand-50); }
.section--dark { background: var(--dark); color: #c7d8e4; }
.section--dark h2, .section--dark h3 { color: #fff; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff;
  padding: var(--sp-3) var(--sp-4); z-index: 200;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------------ utilities */
.eyebrow {
  display: inline-block; font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand-600);
  margin-bottom: var(--sp-3);
}
.section--dark .eyebrow { color: var(--brand-300); }
.lede { font-size: var(--fs-md); color: var(--ink-3); max-width: 68ch; }
.section-head { max-width: 74ch; margin-bottom: var(--sp-6); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.muted { color: var(--ink-3); }
.tiny { font-size: var(--fs-sm); color: var(--ink-3); }
.hide-sm { display: none; }

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: .72rem 1.35rem; border-radius: var(--radius-pill);
  font-size: var(--fs-base); font-weight: 650; line-height: 1;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-600); color: #fff; }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-700); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--brand-500); color: var(--brand-600); }
.btn--onphoto { border-color: rgba(255,255,255,.7); color: #fff; background: rgba(8,41,63,.22); }
.btn--onphoto:hover { background: #fff; color: var(--brand); border-color: #fff; }
.btn--sm { padding: .5rem 1rem; font-size: var(--fs-sm); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* --------------------------------------------------------------- topbar */
.topbar {
  background: var(--dark); color: #a9c2d2; font-size: var(--fs-sm);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.topbar .container { display: flex; justify-content: space-between; gap: var(--sp-4);
  align-items: center; min-height: 38px; }
.topbar a { color: #cfe2ee; }
.topbar a:hover { color: #fff; }
.topbar__meta { display: flex; gap: var(--sp-4); align-items: center; }

/* --------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--surface);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.site-header > .container {
  display: flex; align-items: center; gap: var(--sp-4); min-height: var(--header-h);
}
.brand { flex: none; display: flex; align-items: center; }
.brand img { height: 42px; width: auto; }
.nav-toggle {
  margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.nav { display: none; }
.nav__item { position: relative; display: block; }
.nav__link {
  display: flex; align-items: center; gap: 5px; padding: var(--sp-3) 0;
  color: var(--ink); font-weight: 600; font-size: var(--fs-base);
}
.nav__link:hover { color: var(--brand-600); text-decoration: none; }
.nav__caret { width: 10px; height: 10px; opacity: .55; }
.header-cta { display: none; }

/* ------------------------------------------------------------ mega menu */
.mega {
  display: none; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.mega-grid { display: grid; gap: 0; }
.mega-col { padding: var(--sp-5); border-bottom: 1px solid var(--line-2); min-width: 0; }
.mega-col:last-child { border-bottom: 0; }
.mega-col__head {
  display: block; font-size: var(--fs-base); font-weight: 700; color: var(--ink);
  margin-bottom: var(--sp-1);
}
.mega-col__note { font-size: var(--fs-sm); color: var(--ink-3); margin-bottom: var(--sp-3); }
.mega-list { list-style: none; margin: 0; padding: 0; }
.mega-list li { margin: 0; }
.mega-list a {
  display: block; padding: 5px 0; font-size: var(--fs-sm); color: var(--ink-2);
  overflow-wrap: anywhere;
}
.mega-list a:hover { color: var(--brand-600); }
.mega-list__count { color: var(--ink-4); font-size: var(--fs-xs); }
.mega-feature { display: flex; gap: var(--sp-3); align-items: center; margin-top: var(--sp-4);
  padding-top: var(--sp-4); border-top: 1px solid var(--line-2); }
.mega-feature img {
  width: 76px; height: 58px; object-fit: cover; border-radius: var(--radius-sm);
  border: 1px solid var(--line); flex: none; background: var(--surface-2);
}
.mega-feature__text { font-size: var(--fs-sm); line-height: 1.45; }
.mega-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2);
  margin-top: var(--sp-4); }
.mega-thumbs a { display: block; }
.mega-thumbs img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface-2);
}

/* ----------------------------------------------------------------- hero */
.hero { position: relative; background: var(--dark); overflow: hidden; }
.hero__slides { position: relative; }
.hero__slide {
  position: relative; display: none; min-height: 440px;
}
.hero__slide.is-active { display: block; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6, 31, 48, .86) 0%, rgba(6, 31, 48, .66) 42%,
                              rgba(6, 31, 48, .30) 72%, rgba(6, 31, 48, .44) 100%);
}
.hero__inner {
  position: relative; z-index: 2; padding: var(--sp-8) 0 var(--sp-9);
  max-width: 44rem; color: #e7f1f7;
}
.hero__kicker {
  display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: #fff; background: rgba(232, 129, 26, .92);
  padding: 5px 12px; border-radius: var(--radius-pill); margin-bottom: var(--sp-4);
}
/* Only the first slide carries the document H1; the others repeat its styling on a <p>
   so the page still presents exactly one top-level heading to a crawler. */
.hero h1, .hero__title {
  color: #fff; font-size: var(--fs-2xl); margin: 0 0 var(--sp-4); font-weight: 700;
  line-height: var(--lh-tight); letter-spacing: -0.02em;
}
.hero__sub { font-size: var(--fs-md); color: #cfe0ec; margin-bottom: var(--sp-5); max-width: 40rem; }
.hero__dots {
  position: absolute; left: 0; right: 0; bottom: var(--sp-5); z-index: 3;
  display: flex; gap: var(--sp-2); justify-content: center;
}
.hero__dot {
  width: 34px; height: 4px; border: 0; padding: 0; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .38); cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.hero__dot.is-active { background: var(--accent); }
.hero-strip { background: var(--dark-2); color: #b7cdda; }
.hero-strip .container { display: grid; grid-template-columns: 1fr; gap: var(--sp-4);
  padding-top: var(--sp-5); padding-bottom: var(--sp-5); }
.hero-strip__item strong { display: block; color: #fff; font-size: var(--fs-xl); line-height: 1.1; }
.hero-strip__item span { font-size: var(--fs-sm); }

/* --------------------------------------------------------------- pageheader */
.pagehead { position: relative; background: var(--dark); color: #dceaf3; overflow: hidden; }
.pagehead__media { position: absolute; inset: 0; }
.pagehead__media img { width: 100%; height: 100%; object-fit: cover; }
.pagehead__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(6, 31, 48, .9) 0%, rgba(6, 31, 48, .68) 55%,
                              rgba(6, 31, 48, .42) 100%);
}
.pagehead__inner { position: relative; z-index: 2; padding: var(--sp-7) 0; max-width: 50rem; }
.pagehead h1 { color: #fff; }
.pagehead .lede { color: #cadcea; }

/* ---------------------------------------------------------- breadcrumbs */
.crumbs { background: var(--surface-2); border-bottom: 1px solid var(--line); }
.crumbs ol {
  list-style: none; margin: 0; padding: var(--sp-3) 0; display: flex; flex-wrap: wrap;
  gap: var(--sp-2); font-size: var(--fs-sm); color: var(--ink-3);
}
.crumbs li { margin: 0; display: flex; gap: var(--sp-2); align-items: center; }
.crumbs li + li::before { content: "/"; color: var(--ink-4); }

/* ---------------------------------------------------------------- cards */
.grid { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); }
.grid--gallery { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }

.card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.card:hover { border-color: var(--brand-300); box-shadow: var(--shadow); transform: translateY(-2px); }
.card__media { background: var(--surface-3); }
.card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card__body { padding: var(--sp-4) var(--sp-5) var(--sp-5); display: flex; flex-direction: column;
  flex: 1 1 auto; }
.card__kicker { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand-600); margin-bottom: var(--sp-2); }
.card__title { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--brand-600); text-decoration: none; }
.card__text { font-size: var(--fs-sm); color: var(--ink-3); margin-bottom: var(--sp-4); }
.card__foot { margin-top: auto; font-size: var(--fs-sm); font-weight: 650; color: var(--brand-600); }
.card__code {
  display: inline-block; font-family: var(--font-mono); font-size: var(--fs-xs);
  background: var(--brand-100); color: var(--brand-700); padding: 2px 8px;
  border-radius: var(--radius-sm); margin-bottom: var(--sp-2);
}

.tile {
  position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 230px; color: #fff; background: var(--dark);
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 31, 48, .15) 30%, rgba(6, 31, 48, .88) 100%);
}
.tile__body { position: relative; z-index: 2; padding: var(--sp-5); display: flex;
  flex-direction: column; justify-content: flex-end; min-height: 230px; }
.tile h3 { color: #fff; margin-bottom: var(--sp-2); }
.tile p { font-size: var(--fs-sm); color: #d3e3ee; margin: 0; }
.tile:hover { text-decoration: none; }
.tile:hover h3 { color: var(--accent); }

/* --------------------------------------------------------------- panels */
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--sp-5);
}
.panel--tint { background: var(--brand-50); border-color: #d5e6f1; }
.panel--accent { background: var(--accent-100); border-color: #f4dcbe; }
.split { display: grid; gap: var(--sp-6); grid-template-columns: 1fr; align-items: center; }
/* grid and flex children default to min-width:auto, which lets a wide spec table push the
   whole page sideways instead of scrolling inside its own .table-wrap */
.split > *, .grid > *, .cta-band__grid > *, .footer-grid > * { min-width: 0; }
.split__media img { border-radius: var(--radius-lg); width: 100%; }
.stack > * + * { margin-top: var(--sp-5); }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 1.9rem; margin-bottom: var(--sp-3); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 7px;
  border-left: 2.5px solid var(--leaf); border-bottom: 2.5px solid var(--leaf);
  transform: rotate(-45deg);
}
.section--dark .checks li::before { border-color: var(--brand-300); }

.why { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-4);
  grid-template-columns: 1fr; }
.why li { margin: 0; padding: var(--sp-4) var(--sp-5); background: var(--surface-2);
  border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }
.why b { display: block; color: var(--ink); margin-bottom: var(--sp-1); }
.why span { font-size: var(--fs-sm); color: var(--ink-3); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.stats div { padding: var(--sp-4); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); }
.stats strong { display: block; font-size: var(--fs-xl); color: var(--brand); line-height: 1.1;
  margin-bottom: var(--sp-1); }
.stats span { font-size: var(--fs-sm); color: var(--ink-3); }

.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 var(--sp-5) var(--sp-5); margin: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: .5em; width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent); border: 2px solid var(--surface);
}
.timeline b { display: block; color: var(--brand-600); font-size: var(--fs-sm); }

/* --------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 420px; }
caption { text-align: left; padding: var(--sp-3) var(--sp-4); font-weight: 650; color: var(--ink);
  background: var(--surface-2); border-bottom: 1px solid var(--line); }
th, td { padding: var(--sp-3) var(--sp-4); text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line-2); }
th { width: 28%; min-width: 118px; color: var(--ink); font-weight: 650;
  background: var(--surface-2); white-space: normal; }
td { min-width: 130px; }
tr:last-child th, tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------- gallery */
.gallery a { display: block; }
.gallery a:hover img { border-color: var(--brand-500); }
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
}
.gallery--doc img { object-fit: contain; aspect-ratio: 3 / 4; background: var(--surface);
  padding: var(--sp-2); }
.logo-wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4);
  align-items: center; }
.logo-wall img {
  width: 100%; height: 54px; object-fit: contain; filter: grayscale(1); opacity: .62;
  transition: filter var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.logo-wall img:hover { filter: none; opacity: 1; }

/* ------------------------------------------------------------- product */
.product-hero { display: grid; gap: var(--sp-6); grid-template-columns: 1fr; }
.product-gallery__main img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--surface-2);
}
.product-gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2); margin-top: var(--sp-2); }
.product-gallery__thumbs button { padding: 0; border: 0; background: none; cursor: pointer;
  display: block; }
.product-gallery__thumbs button:hover img { border-color: var(--brand-500); }
.product-gallery__thumbs img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface-2); }
.spec-note { font-size: var(--fs-sm); color: var(--ink-3); margin-top: var(--sp-3); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: var(--sp-4) 0; font-weight: 650; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; gap: var(--sp-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: var(--fs-lg); line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { padding-bottom: var(--sp-4); margin: 0; color: var(--ink-3); }

/* ------------------------------------------------------------- article */
.article { font-size: var(--fs-md); }
.article h2 { font-size: var(--fs-xl); margin-top: var(--sp-6); }
.article p { max-width: 72ch; }
.article__meta { font-size: var(--fs-sm); color: var(--ink-3); margin-bottom: var(--sp-5); }

/* ---------------------------------------------------------------- CTA */
.cta-band { background: linear-gradient(120deg, var(--brand) 0%, var(--brand-600) 100%);
  color: #dceaf4; }
.cta-band h2 { color: #fff; }
.cta-band .container { padding-top: var(--sp-7); padding-bottom: var(--sp-7); }
.cta-band__grid { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; align-items: center; }

/* ------------------------------------------------------- floating contact */
.floating {
  position: fixed; right: 14px; bottom: 78px; z-index: 120;
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.floating a {
  display: flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 50%; background: var(--brand); color: #fff; box-shadow: var(--shadow-lg);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.floating a:hover { background: var(--accent); transform: scale(1.06); text-decoration: none; }
.floating a svg { width: 24px; height: 24px; }
.floating a.is-accent { background: var(--accent); }
.floating a.is-accent:hover { background: var(--brand); }

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--dark); color: #9fb8c8; font-size: var(--fs-sm);
  padding-top: var(--sp-7); }
.site-footer h4 { color: #fff; font-size: var(--fs-base); margin-bottom: var(--sp-3); }
.site-footer a { color: #bcd3e1; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--sp-2); }
.footer-grid { display: grid; gap: var(--sp-6); grid-template-columns: 1fr; }
.footer-brand img { height: 40px; width: auto; margin-bottom: var(--sp-4); }
.footer-bottom {
  margin-top: var(--sp-6); padding: var(--sp-4) 0; border-top: 1px solid rgba(255, 255, 255, .09);
  display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between;
  font-size: var(--fs-xs); color: #7f9aab;
}
.footer-addr { font-style: normal; line-height: 1.6; }

/* ----------------------------------------------------------------- 404 */
.err { text-align: center; padding: var(--sp-9) 0; }
.err__code { font-size: 4rem; font-weight: 800; color: var(--brand-300); line-height: 1; }

/* =========================================================== responsive */
@media (min-width: 480px) {
  .grid--gallery { grid-template-columns: repeat(3, 1fr); }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .hero-strip .container { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 640px) {
  :root { --fs-3xl: 2.625rem; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .hero h1, .hero__title { font-size: var(--fs-3xl); }
  .hide-sm { display: inline; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 860px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--gallery { grid-template-columns: repeat(4, 1fr); }
  .logo-wall { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide { grid-template-columns: 1.15fr .85fr; }
  .product-hero { grid-template-columns: 1.05fr 1fr; align-items: start; }
  .cta-band__grid { grid-template-columns: 1.4fr 1fr; }
  .hero-strip .container { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .err__code { font-size: 6rem; }
}

@media (min-width: 1024px) {
  :root { --fs-4xl: 3.25rem; }
  .section { padding: var(--sp-9) 0; }
  .hero__slide { min-height: 560px; }
  .hero h1, .hero__title { font-size: var(--fs-4xl); }
  .hero__inner { padding: var(--sp-9) 0 calc(var(--sp-9) + var(--sp-5)); }
  .pagehead__inner { padding: var(--sp-8) 0; }

  .nav-toggle { display: none; }
  .nav {
    display: flex; align-items: center; gap: var(--sp-5); margin-left: auto;
    flex-wrap: nowrap;
  }
  .nav__item { display: flex; align-items: center; }
  .nav__link { padding: calc((var(--header-h) - 22px) / 2) 0; white-space: nowrap; }
  .header-cta { display: inline-flex; margin-left: var(--sp-5); }

  /* The panel is anchored to the header container, not to the nav item it hangs off —
     centring on the item pushes a 1180px panel past the right edge of a 1280px window. */
  .site-header > .container { position: relative; }
  .nav__item { position: static; }
  .mega {
    display: block; position: absolute; top: calc(var(--header-h) - 6px);
    left: var(--sp-5); right: var(--sp-5); width: auto; transform: translateY(8px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  }
  .nav__item:hover > .mega, .nav__item:focus-within > .mega {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
  }
  .mega--narrow { left: auto; width: min(660px, calc(100vw - 4 * var(--sp-5))); }
  .mega-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mega--narrow .mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega-col { border-bottom: 0; border-right: 1px solid var(--line-2);
    max-height: 70vh; overflow-y: auto; }
  .mega-col:last-child { border-right: 0; }
}

@media (min-width: 1200px) {
  .nav { gap: var(--sp-6); }
  .grid--gallery { gap: var(--sp-4); }
}

/* mobile: the sticky floating button must clear thumb reach zones */
@media (max-width: 1023px) {
  .nav.is-open {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); padding: var(--sp-3) var(--sp-5) var(--sp-5);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open .nav__link { border-bottom: 1px solid var(--line-2); }
  .nav.is-open .mega { display: block; border: 0; box-shadow: none; border-radius: 0; }
  .nav.is-open .mega-col { padding: var(--sp-3) 0 var(--sp-4); }
  .nav.is-open .mega-thumbs, .nav.is-open .mega-feature { display: none; }
  .floating { bottom: 16px; right: 12px; }
  .floating a { width: 48px; height: 48px; }
}

@media (max-width: 520px) {
  :root { --fs-2xl: 1.6rem; --fs-3xl: 1.9rem; }
  .container { padding: 0 var(--sp-4); }
  .topbar__meta { gap: var(--sp-3); }
  .hero__slide { min-height: 420px; }
  .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .card:hover, .btn:hover, .floating a:hover { transform: none; }
}

@media print {
  .topbar, .site-header, .floating, .cta-band, .site-footer { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .hero__media::after, .pagehead__media::after { background: none; }
}

/* --- language switcher + RTL (added by msbuild.py) --- */
.langsw{position:relative;display:inline-block;margin-inline-start:.75rem;font-size:.875rem}
.langsw__btn{display:inline-flex;align-items:center;gap:.35rem;padding:.4rem .7rem;border:1px solid currentColor;
  border-radius:999px;background:transparent;color:inherit;cursor:pointer;font:inherit;line-height:1}
.langsw__btn::after{content:"";width:.4em;height:.4em;border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;transform:rotate(45deg);margin-block-end:.15em}
.langsw__menu{position:absolute;inset-inline-end:0;top:calc(100% + .4rem);z-index:120;min-width:11rem;margin:0;padding:.3rem;
  list-style:none;border-radius:.6rem;background:#fff;box-shadow:0 12px 32px rgba(0,0,0,.18);display:none}
.langsw:hover .langsw__menu,.langsw:focus-within .langsw__menu,
.langsw__btn[aria-expanded="true"]+.langsw__menu{display:block}
.langsw__menu a{display:block;padding:.45rem .7rem;border-radius:.4rem;color:#111;text-decoration:none;white-space:nowrap}
.langsw__menu a:hover,.langsw__menu a:focus-visible{background:rgba(0,0,0,.06)}
.langsw__menu a[aria-current="true"]{font-weight:700}
@media (max-width:768px){.langsw{margin-inline-start:.4rem}.langsw__menu{inset-inline-end:auto;inset-inline-start:0}}
[dir="rtl"] body{text-align:right}
[dir="rtl"] .breadcrumbs,[dir="rtl"] .nav,[dir="rtl"] .hero__actions{flex-direction:row-reverse}
[dir="rtl"] ul,[dir="rtl"] ol{padding-inline-start:1.25rem;padding-inline-end:0}
[dir="rtl"] table{direction:rtl}
:lang(ja),:lang(ko){line-height:1.85;word-break:normal;overflow-wrap:anywhere}
:lang(ar){line-height:2;letter-spacing:0}
:lang(ru),:lang(de){overflow-wrap:break-word;hyphens:auto}


/* cify-nav-bullets-fix-20260924 */
nav ul, .nav ul, .nav-list, .nav-ul, .nav__list, ul.nav { list-style: none; }
nav li, .nav li, .nav-list > li, .nav-ul > li, .nav__list > li, ul.nav > li { list-style: none; }
.nav__item, .site-header, .header { overflow: visible; }

/* cify-langsw-ml-fix-20260925 */
.langsw{position:relative;flex:0 0 auto;z-index:300}
.langsw__menu{list-style:none;padding-left:0;z-index:300!important;inset-inline-end:0;inset-inline-start:auto}
.langsw__menu::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:.6rem}
.langsw.is-open .langsw__menu,.langsw__btn[aria-expanded="true"]+.langsw__menu{opacity:1!important;visibility:visible!important;transform:none!important;display:block}
[dir="rtl"] .langsw__menu{inset-inline-end:0;inset-inline-start:auto}

/* cify-rtl-skiplink-fix-20260925 */
[dir="rtl"] .skip-link:not(:focus),[dir="rtl"] .skip:not(:focus),[dir="rtl"] .sr-only,[dir="rtl"] .visually-hidden{left:auto!important;right:-9999px!important}

/* cify-langsw-float-20260925: switcher sat outside the header row (wrapped under logo, menu clipped) -> floating pill bottom-left */
html body .langsw{position:fixed!important;left:16px!important;right:auto!important;bottom:16px!important;top:auto!important;margin:0!important;z-index:9990!important;display:inline-block!important;font-size:13px}
html body .langsw .langsw__btn{display:inline-flex;align-items:center;gap:.35rem;padding:.45rem .9rem;border-radius:999px;background:#111;color:#fff;border:1px solid rgba(255,255,255,.25);box-shadow:0 6px 20px rgba(0,0,0,.25);cursor:pointer;font-weight:600;line-height:1.2}
html body .langsw .langsw__menu{position:absolute!important;top:auto!important;bottom:100%!important;left:0!important;right:auto!important;margin:0 0 8px!important;min-width:11rem;max-height:70vh;overflow:auto;background:#fff;border:1px solid #e3e6ea;border-radius:10px;box-shadow:0 14px 38px rgba(0,0,0,.18);padding:6px 0;list-style:none}
html body .langsw .langsw__menu::before{top:100%!important;bottom:auto!important;height:10px!important;content:"";position:absolute;left:0;right:0}
html body .langsw .langsw__menu li{list-style:none;margin:0}
html body .langsw .langsw__menu a{display:block;padding:.45em 1em;color:#172130;white-space:nowrap;text-decoration:none}
html body .langsw .langsw__menu a:hover{background:#f3f5f7}
