@font-face {
  font-family: 'Bebas';
  src: url(../fonts/BebasNeue_bold.ttf) format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Bebasregular';
  src: url(../fonts/bebasneueregular.ttf) format('truetype');
  font-display: swap;
}

/* ============================================================================
 * AQUATEC J6 — Inner page "sizes"
 * Auto-generated by aquatec-hero-generator.sh
 * Hero Canon: v1.2 (Session 24)
 * Gradient: #1f3a5c (dark, left) -> #4a7ba6 (light, right)
 * ============================================================================ */

/* ---- [01] BASE ---- */

/* ---- [02] HIDE legacy artifacts ---- */
body:has(#corner) .mod-breadcrumbs__wrapper { display: none !important; }
body.aquatec-site #youtube_reviews { display: none !important; }

/* ============================================================================
   [03] HERO #corner V2 (canon v1.2)
   ============================================================================ */

body:has(#corner) .aeo-summary { display: none; }
body:has(#corner) .inner-banner { display: none; }

#corner {
  --corner-skew: clamp(45px, 6.7vw, 100px);
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: calc(-1 * var(--aq-header-h, 80px));
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><defs><linearGradient id='g' x1='0' x2='1'><stop offset='0' stop-color='%231f3a5c'/><stop offset='1' stop-color='%234a7ba6'/></linearGradient></defs><polygon points='0,0 100,0 100,85 0,100' fill='url(%23g)'/></svg>") no-repeat center / 100% 100%;
  overflow: visible;
  isolation: isolate;
}

#corner > div {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) 1fr;
  column-gap: 56px;
  align-items: center;
  max-width: var(--aq-container, 1366px);
  margin: 0 auto;
  padding: calc(var(--aq-header-h, 80px) - 48px) 24px 77px;
  min-height: clamp(420px, 52vh, 580px);
}

#corner img.hero__image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 500px;
  object-fit: contain;
  margin: 0 auto;
  background: transparent;
  filter: drop-shadow(0 22px 32px rgba(0, 0, 0, 0.28));
  animation: hero-image-float 4s ease-in-out infinite;
  will-change: transform;
}

@keyframes hero-image-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  #corner img.hero__image { animation: none !important; }
}

#h1_anim {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

#h1_anim h1 {
  margin: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 3.0vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.5px;
  color: #fff;
  text-wrap: pretty;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#h1_anim p {
  margin: 0;
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  max-width: 60ch;
}

#h1_anim .get_in_touch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #fff;
  background: var(--aq-orange, #f58025);
  padding: 16px 40px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow:
    0 10px 24px -8px rgba(196, 87, 8, 0.45),
    0 4px 10px -2px rgba(0, 0, 0, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

#h1_anim .get_in_touch::after {
  content: '→';
  font-size: 18px;
  transition: transform 0.25s ease;
}

#h1_anim .get_in_touch:hover {
  background: #ff8c2e;
  transform: translateY(-2px);
  box-shadow:
    0 14px 32px -8px rgba(196, 87, 8, 0.55),
    0 6px 14px -2px rgba(0, 0, 0, 0.22);
}

#h1_anim .get_in_touch:hover::after {
  transform: translateX(4px);
}

@media (max-width: 1199px) {
  #corner { --corner-skew: clamp(34px, 5.3vw, 67px); }
  #corner > div {
    grid-template-columns: 1fr;
    row-gap: 36px;
    padding: calc(var(--aq-header-h, 80px) + 0px) 20px 72px;
    min-height: auto;
    text-align: center;
  }
  #corner img.hero__image {
    max-width: 425px;
    margin: 0 auto;
  }
  #h1_anim { align-items: center; }
  #h1_anim p { max-width: 100%; text-align: center; }
  #h1_anim p br.desktop { display: none; }
}

@media (max-width: 602px) {
  #corner { --corner-skew: clamp(25px, 5vw, 46px); }
  #h1_anim h1 { font-size: clamp(24px, 7.5vw, 38px); }
  #corner img.hero__image {
    max-width: 300px;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.25));
    animation-duration: 5s;
  }
  @keyframes hero-image-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
  }
}

/* ============================================================================
   [04] HERO TOP FORCE — header transparent, body gradient match
   ============================================================================ */

body.aquatec-site.inner:has(#corner) #site-header:not(.scrolled),
body.aquatec-site.inner:has(#corner) #site-header:not(.scrolled) .site-header__inner {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

body.aquatec-site.inner:has(#corner) {
  background: linear-gradient(to right, #1f3a5c 0%, #4a7ba6 100%) !important;
  background-color: #1f3a5c !important;
}

body.aquatec-site.inner:has(#corner) #main,
body.aquatec-site.inner:has(#corner) main.site-main,
body.aquatec-site.inner:has(#corner) .com-content-article,
body.aquatec-site.inner:has(#corner) .com-content-article > .item-page {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.aquatec-site.inner:has(#corner) #corner {
  margin-top: calc(-1 * var(--aq-header-h, 80px)) !important;
}

/* ============================================================================
   [09] HERO SHADOW (skew drop-shadow + overflow:visible parents)
   ============================================================================ */

:root {
  --aq-skew-shadow: drop-shadow(0 14px 12px rgba(0, 0, 0, 0.32));
  --aq-skew-shadow-mobile: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25));
}

#corner { filter: var(--aq-skew-shadow); }

@media (max-width: 768px) {
  #corner { filter: var(--aq-skew-shadow-mobile); }
}

html, body { overflow-x: clip; }

body:has(#corner) main,
body:has(#corner) .com-content-article,
body:has(#corner) .com-content-article__body,
body:has(#corner) .item-page,
body:has(#corner) #center {
  overflow: visible !important;
}


/* ============================================================
 * [10] PAGE SECTIONS START — /sizes (Sess 29, 18.05.2026)
 * ============================================================ */

/* [11] .sizes-section base layout */
.aquatec-site .sizes-section {
  max-width: var(--aq-container, 1366px);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 100px) clamp(20px, 4vw, 40px);
  text-align: center;
  position: relative;
}
.aquatec-site .sizes-section__lead {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 400;
  color: var(--aq-text-muted, #6b7c8c);
  max-width: 72ch;
  margin: 0 auto clamp(36px, 4.5vw, 56px);
  line-height: 1.6;
}

/* ============================================================ */
/* [12] H2-CANON — awk-extracted 1:1 з aquatec-aka.css [06]      */
/* (whitelist замінено на /sizes IDs)                            */
/* ============================================================ */

/* [06] H2-CANON — секційні заголовки Phase B+ inner-сторінок   */
/* (whitelisted IDs додаються по мірі ітерацій 4-14)            */
/* ============================================================ */

.aquatec-site.inner :where(#sizes-viz-section, #sizes-home, #sizes-big, #mount-steps, #mount-anim, #extension, #callback_form) > h2 {
  display: block;
  width: 100%;
  margin: 0 auto 20px !important;
  padding: clamp(28px, 4vw, 56px) 24px 0 !important;
  font-family: Bebas, 'Bebas Neue', sans-serif !important;
  font-weight: 500 !important;
  font-size: 48px !important;
  line-height: 60px !important;
  letter-spacing: 0 !important;
  text-transform: uppercase;
  text-align: center !important;
  text-wrap: balance;
  color: var(--aq-h2-color, #1b2935) !important;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.15) !important;
  max-width: var(--aq-container, 1366px);
  background: transparent !important;
}

@media (max-width: 602px) {
  .aquatec-site.inner :where(#sizes-viz-section, #sizes-home, #sizes-big, #mount-steps, #mount-anim, #extension, #callback_form) > h2 {
    font-size: 32px !important;
    line-height: 36px !important;
    margin-bottom: 5px !important;
  }
}

@media (min-width: 603px) and (max-width: 1199px) {
  .aquatec-site.inner :where(#sizes-viz-section, #sizes-home, #sizes-big, #mount-steps, #mount-anim, #extension, #callback_form) > h2 {
    font-size: 36px !important;
    line-height: 48px !important;
  }
}

.aquatec-site.inner :where(#sizes-viz-section, #sizes-home, #sizes-big, #mount-steps, #mount-anim, #extension, #callback_form) > h2 > hr {
  display: block !important;
  width: 60px !important;
  height: 4px !important;
  margin: 0 auto 24px !important;
  border: 0 !important;
  border-radius: 2px !important;
  background: var(--aq-orange, #f58025) !important;
  opacity: 1 !important;
}

/* Dark theme variant */
[data-theme="dark"] {
  --aq-h2-color: #fff;
  --aq-bg: #0f1a26;
}

/* ================================================================ */


/* [13] sizes-table — responsive grid */
.aquatec-site .sizes-table {
  display: grid;
  background: var(--aq-card-bg, #fff);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 38px -14px rgba(0,0,0,0.18);
  max-width: 100%;
  margin: 0 auto;
  font-family: 'Manrope', sans-serif;
}
.aquatec-site .sizes-table--small {
  grid-template-columns: 1.3fr 0.85fr 1fr 1fr 0.85fr 0.85fr 1.5fr 1.1fr;
}
.aquatec-site .sizes-table--big {
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr 0.9fr 0.9fr;
}
.aquatec-site .sizes-table__row { display: contents; }
.aquatec-site .sizes-table__cell {
  padding: 16px 12px;
  font-size: 14.5px;
  color: var(--aq-text, #1b2935);
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.aquatec-site .sizes-table__row--head .sizes-table__cell {
  background: var(--aq-blue-hero, #276cba);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12.5px;
  letter-spacing: 0.4px;
  border-bottom: none;
  padding: 18px 10px;
  min-height: 64px;
}
.aquatec-site .sizes-table__row:not(.sizes-table__row--head) .sizes-table__cell {
  cursor: pointer;
}
.aquatec-site .sizes-table__row:not(.sizes-table__row--head):hover .sizes-table__cell {
  background: rgba(39, 108, 186, 0.04);
}
.aquatec-site .sizes-table__row.active-row .sizes-table__cell {
  background: rgba(245, 128, 37, 0.08) !important;
}
.aquatec-site .sizes-table__row:not(.sizes-table__row--head) .sizes-table__cell:first-child {
  font-weight: 700;
  color: var(--aq-blue-hero, #276cba);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aquatec-site .sizes-table__row.active-row .sizes-table__model-text {
  font-weight: 800;
  color: var(--aq-orange, #f58025);
}
.aquatec-site .sizes-table__interactive-icon {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  vertical-align: middle;
}
.aquatec-site .sizes-table__svg-icon {
  width: 16px;
  height: 16px;
  fill: #94a3b8;
  transition: fill 0.25s ease, transform 0.25s ease;
}
.aquatec-site .sizes-table__row:not(.sizes-table__row--head):hover .sizes-table__svg-icon {
  fill: var(--aq-blue-hero, #276cba);
  transform: scale(1.1);
}
.aquatec-site .sizes-table__row.active-row .sizes-table__svg-icon {
  fill: var(--aq-orange, #f58025);
  transform: scale(1.15);
}
.aquatec-site .sizes-table__hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px 0;
  font-size: 14.5px;
  color: var(--aq-text-muted, #6b7c8c);
  font-weight: 500;
  line-height: 1.4;
}
.aquatec-site .sizes-table__hint-icon {
  width: 18px;
  height: 18px;
  fill: var(--aq-blue-hero, #276cba);
  flex-shrink: 0;
}

/* Mobile stack */
@media (max-width: 900px) {
  .aquatec-site .sizes-table {
    grid-template-columns: 1fr !important;
    border-radius: 12px;
  }
  .aquatec-site .sizes-table__row {
    display: block;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(0,0,0,0.10);
  }
  .aquatec-site .sizes-table__row--head { display: none; }
  .aquatec-site .sizes-table__cell {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    padding: 8px 0;
    border-bottom: none;
    text-align: left;
    justify-content: start;
    gap: 12px;
  }
  .aquatec-site .sizes-table__cell::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--aq-text-muted, #6b7c8c);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }
  .aquatec-site .sizes-table__row:not(.sizes-table__row--head) .sizes-table__cell:first-child {
    font-size: 22px;
    margin-bottom: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    display: block;
    text-align: center;
  }
  .aquatec-site .sizes-table__row:not(.sizes-table__row--head) .sizes-table__cell:first-child::before {
    display: none;
  }
}

/* [14] sizes-scheme + legend */
.aquatec-site .sizes-scheme {
  margin: clamp(40px, 5vw, 60px) auto 0;
  max-width: 880px;
  text-align: center;
}
.aquatec-site .sizes-scheme img {
  width: 100%;
  height: auto;
  max-width: 600px;
  margin: 0 auto;
  filter: drop-shadow(0 16px 26px rgba(0,0,0,0.18));
  display: block;
}
.aquatec-site .sizes-scheme--big img { max-width: 760px; }
.aquatec-site .sizes-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 28px;
  margin: 26px auto 0;
  padding: 0;
}
.aquatec-site .sizes-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: var(--aq-text, #1b2935);
}
.aquatec-site .sizes-legend__item img {
  width: 26px;
  height: auto;
  filter: none;
  margin: 0;
}
.aquatec-site .sizes-legend__item span { white-space: nowrap; }

/* [15] mount-grid — 14 numbered cards */
.aquatec-site .mount-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: clamp(20px, 3vw, 40px) auto 0;
  max-width: 1200px;
}
.aquatec-site .mount-card {
  position: relative;
  background: var(--aq-card-bg, #fff);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 28px -10px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  transition: transform .35s cubic-bezier(.34,1.35,.64,1), box-shadow .35s ease;
}
@media (hover: hover) {
  .aquatec-site .mount-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 44px -12px rgba(0,0,0,0.28);
  }
  .aquatec-site .mount-card:hover .mount-card__img img { transform: scale(1.06); }
}
.aquatec-site .mount-card__num {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  background: var(--aq-orange, #f58025);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas', 'Bebas Neue', sans-serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0;
  box-shadow: 0 8px 16px -4px rgba(245,128,37,0.5);
}
.aquatec-site .mount-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--aq-bg, #f7f9fc);
}
.aquatec-site .mount-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s ease;
}
.aquatec-site .mount-card__desc {
  padding: 16px 18px 22px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--aq-text, #1b2935);
  text-align: left;
  font-weight: 300;
}
@media (max-width: 480px) {
  .aquatec-site .mount-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* [16] mount-anim — video player */
.aquatec-site .mount-anim__player {
  max-width: 920px;
  margin: clamp(20px, 3vw, 40px) auto 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.32);
  background: #000;
}
.aquatec-site .mount-anim__video {
  width: 100%;
  height: auto;
  display: block;
}

/* [17] extension — 2-col videos */
.aquatec-site .extension-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: clamp(20px, 3vw, 40px) auto 0;
  max-width: 1200px;
}
.aquatec-site .extension-video {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 38px -14px rgba(0,0,0,0.28);
  background: #000;
}
.aquatec-site .extension-video video {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 768px) {
  .aquatec-site .extension-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* [18] callback_form — HR-CTA banner */
.aquatec-site .sizes-section--cta {
  background: linear-gradient(180deg, var(--aq-bg, #f7f9fc) 0%, rgba(31, 58, 92, 0.04) 100%);
  padding-bottom: clamp(80px, 10vw, 140px);
}
.aquatec-site .hr-cta__buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: clamp(30px, 4vw, 50px) auto 0;
}
.aquatec-site .hr-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.4px;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.aquatec-site .hr-cta__btn--orange {
  background: var(--aq-orange, #f58025);
  color: #fff;
  box-shadow: 0 12px 28px -8px rgba(245,128,37,0.55), 0 4px 10px -2px rgba(0,0,0,0.18);
}
.aquatec-site .hr-cta__btn--orange:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -8px rgba(245,128,37,0.65), 0 6px 14px -2px rgba(0,0,0,0.22);
}
.aquatec-site .hr-cta__btn--white {
  background: var(--aq-card-bg, #fff);
  color: var(--aq-text, #1b2935);
  border: 2px solid rgba(31, 58, 92, 0.18);
}
.aquatec-site .hr-cta__btn--white:hover {
  transform: translateY(-3px);
  border-color: var(--aq-blue-hero, #276cba);
  color: var(--aq-blue-hero, #276cba);
  box-shadow: 0 12px 28px -8px rgba(39,108,186,0.25);
}
@media (max-width: 480px) {
  .aquatec-site .hr-cta__btn { width: 100%; justify-content: center; padding: 16px 24px; font-size: 14px; }
}

/* ============================================================
 * [N] DARK THEME — auto-flip + targeted
 * ============================================================ */
html[data-theme="dark"] body.aquatec-site .sizes-table {
  background: var(--aq-card-bg) !important;
  box-shadow: 0 18px 38px -14px rgba(0,0,0,0.45) !important;
}
html[data-theme="dark"] body.aquatec-site .sizes-table__cell {
  color: var(--aq-text) !important;
  border-bottom-color: rgba(255,255,255,0.08) !important;
}
html[data-theme="dark"] body.aquatec-site .sizes-table__row--head .sizes-table__cell {
  background: rgba(39, 108, 186, 0.42) !important;
  color: #fff !important;
}
html[data-theme="dark"] body.aquatec-site .sizes-table__row:not(.sizes-table__row--head) .sizes-table__cell:first-child {
  color: #4aa0e6 !important;
}
html[data-theme="dark"] body.aquatec-site .sizes-table__row.active-row .sizes-table__cell {
  background: rgba(245, 128, 37, 0.12) !important;
}
html[data-theme="dark"] body.aquatec-site .sizes-legend__item {
  color: var(--aq-text) !important;
}
html[data-theme="dark"] body.aquatec-site .mount-card {
  background: var(--aq-card-bg) !important;
  box-shadow: 0 12px 28px -10px rgba(0,0,0,0.45) !important;
}
html[data-theme="dark"] body.aquatec-site .mount-card__desc { color: var(--aq-text) !important; }
html[data-theme="dark"] body.aquatec-site .mount-card__img { background: var(--aq-bg) !important; }
html[data-theme="dark"] body.aquatec-site .extension-video,
html[data-theme="dark"] body.aquatec-site .mount-anim__player {
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.55) !important;
}
html[data-theme="dark"] body.aquatec-site .sizes-section--cta {
  background: linear-gradient(180deg, var(--aq-bg) 0%, rgba(31, 58, 92, 0.18) 100%) !important;
}
html[data-theme="dark"] body.aquatec-site .hr-cta__btn--white {
  background: var(--aq-card-bg) !important;
  color: var(--aq-text) !important;
  border-color: rgba(255,255,255,0.15) !important;
}
html[data-theme="dark"] body.aquatec-site .hr-cta__btn--white:hover {
  border-color: #4aa0e6 !important;
  color: #4aa0e6 !important;
}

/* ============================================================
 * [R] prefers-reduced-motion
 * ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .aquatec-site .mount-card,
  .aquatec-site .mount-card__img img,
  .aquatec-site .hr-cta__btn,
  .aquatec-site .sizes-table__cell { transition: none !important; }
  .aquatec-site .mount-card:hover,
  .aquatec-site .hr-cta__btn:hover { transform: none !important; }
  .aquatec-site .mount-card:hover .mount-card__img img { transform: none !important; }
}

/* END /sizes page sections */

/* ============================================================
 * [P10] GLOBAL DARK THEME — main + body backgrounds
 * (Canon з Handoff #28 §1.4 specificity fix)
 * ============================================================ */
html[data-theme="dark"] body.aquatec-site main,
html[data-theme="dark"] body.aquatec-site.inner .site-main,
html[data-theme="dark"] body.aquatec-site.inner main.container {
  background-color: var(--aq-bg, #262e3a) !important;
  color: var(--aq-text, #e8edf3) !important;
}
html[data-theme="dark"] body.aquatec-site.inner {
  background-color: var(--aq-bg, #262e3a) !important;
}
html[data-theme="dark"] body.aquatec-site .sizes-section {
  background-color: var(--aq-bg, #262e3a) !important;
}
html[data-theme="dark"] body.aquatec-site.inner :where(
  #sizes-viz-section, #sizes-home, #sizes-big, #mount-steps, #mount-anim, #extension
) > h2 {
  color: var(--aq-text, #e8edf3) !important;
}
html[data-theme="dark"] body.aquatec-site .sizes-section__lead {
  color: var(--aq-text-muted, #a3b2c2) !important;
}

/* ============================================================
 * [P11] Reduce vertical padding (no big white gaps між секціями)
 * ============================================================ */
.aquatec-site .sizes-section {
  padding: clamp(36px, 4vw, 64px) clamp(20px, 4vw, 40px) !important;
}

/* End [P10-P11] */

/* ============================================================
 * [P20] BANNER sections — full-bleed gradient + large arrows
 * (Phase 2: на проді секція з моделью на синьому/сірому фоні)
 * ============================================================ */

.aquatec-site .sizes-banner {
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  background: linear-gradient(135deg, #1f3a5c 0%, #4a7ba6 100%) !important;
  color: #fff;
  padding: 20px clamp(20px, 4vw, 40px) 25px !important;
  margin-top: 24px !important;
  box-shadow: inset 0 -24px 36px -24px rgba(0,0,0,0.4),
              0 18px 38px -14px rgba(0,0,0,0.28);
  overflow: hidden;
}

.aquatec-site .sizes-banner__inner {
  max-width: var(--aq-container, 1366px);
  margin: 0 auto;
}

.aquatec-site .sizes-banner__figure {
  display: grid !important;
  grid-template-columns: 1.4fr 0.9fr !important;
  gap: clamp(40px, 5vw, 80px) !important;
  align-items: center !important;
}

/* Styled dynamic desktop banner title */
.aquatec-site .sizes-banner__title {
  color: #fff !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: clamp(26px, 2.8vw, 38px) !important;
  text-align: center !important;
  margin-bottom: 15px !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  font-weight: bold !important;
}

/* Style for active selected row in desktop tables */
.aquatec-site .sizes-table__row.active-row {
  background: rgba(31, 58, 92, 0.12) !important;
  font-weight: bold !important;
}

.aquatec-site .sizes-desktop-svg-wrapper {
  max-width: 700px !important;
  width: 100% !important;
  margin: 0 auto !important;
  display: block !important;
}

.aquatec-site .sizes-banner--big .sizes-desktop-svg-wrapper {
  max-width: 1100px !important;
}

.aquatec-site .sizes-banner__model {
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 24px 36px rgba(0,0,0,0.4));
}

.aquatec-site .sizes-banner__legend {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 0;
}

.aquatec-site .sizes-banner .sizes-legend__item {
  display: grid !important;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 18px;
  color: #fff !important;
  font-family: 'Manrope', sans-serif;
  font-size: 19px;
  font-weight: 500;
}

.aquatec-site .sizes-banner .sizes-legend__item img {
  width: 64px;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35));
  margin: 0;
}

.aquatec-site .sizes-banner .sizes-legend__item span {
  white-space: nowrap;
}

/* Big variant: single col, model centered + 1.5x larger, legend row під */
.aquatec-site .sizes-banner--big .sizes-banner__figure {
  grid-template-columns: 1fr;
  gap: clamp(36px, 4vw, 60px);
}

.aquatec-site .sizes-banner--big .sizes-banner__model {
  max-width: 1140px;
}

.aquatec-site .sizes-banner--big .sizes-banner__legend {
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 50px;
}

.aquatec-site .sizes-banner--big .sizes-legend__item {
  grid-template-columns: 80px 1fr;
  font-size: 22px;
  gap: 16px;
}

.aquatec-site .sizes-banner--big .sizes-legend__item img {
  width: 80px;
}

/* Mobile (≤900px): stack figure */
@media (max-width: 900px) {
  .aquatec-site .sizes-banner__figure {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .aquatec-site .sizes-banner__legend {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
  }
  .aquatec-site .sizes-banner .sizes-legend__item {
    grid-template-columns: 44px 1fr;
    font-size: 15px;
    gap: 10px;
  }
  .aquatec-site .sizes-banner .sizes-legend__item img {
    width: 44px;
  }
  .aquatec-site .sizes-banner--big .sizes-legend__item {
    grid-template-columns: 56px 1fr;
    font-size: 16px;
  }
  .aquatec-site .sizes-banner--big .sizes-legend__item img {
    width: 56px;
  }
}

/* Dark theme: banner — brand gradient (+ flip) */
html[data-theme="dark"] body.aquatec-site .sizes-banner {
  background: linear-gradient(135deg, #1f3a5c 0%, #4a7ba6 100%) !important;
  color: #fff !important;
}
html[data-theme="dark"] body.aquatec-site .sizes-banner .sizes-legend__item {
  color: #fff !important;
}

/* Hide legacy .sizes-scheme (deprecated by .sizes-banner) */
.aquatec-site .sizes-scheme { display: none !important; }

/* End [P20] BANNER */

/* ============================================================
 * [P21] BANNER refinements (Vasyl feedback patch)
 * - sizes-home: model 1.5x bigger (700px), legend tight icon+text, center
 * - sizes-big: compact (40-60px padding), model 900px, tight gap між model і legend
 * ============================================================ */

/* sizes-home: figure tight-center */
.aquatec-site .sizes-banner__figure {
  grid-template-columns: auto auto !important;
  gap: clamp(30px, 3vw, 50px) !important;
  justify-content: center !important;
  align-items: center !important;
}

.aquatec-site .sizes-banner__model {
  max-width: 700px !important;
}

/* Legend item: flex з close gap, left-align text */
.aquatec-site .sizes-banner .sizes-legend__item {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  grid-template-columns: unset !important;
  justify-content: flex-start !important;
}

.aquatec-site .sizes-banner .sizes-legend__item img {
  flex-shrink: 0;
}

.aquatec-site .sizes-banner .sizes-legend__item span {
  text-align: left !important;
}

/* sizes-big: компактна полоса, model менший, legend під моделью впритул */
.aquatec-site .sizes-banner--big {
  padding: 20px clamp(20px, 4vw, 40px) 25px !important;
}

.aquatec-site .sizes-banner--big .sizes-banner__figure {
  gap: clamp(16px, 2vw, 28px) !important;
}

.aquatec-site .sizes-banner--big .sizes-banner__model {
  max-width: 900px !important;
}

.aquatec-site .sizes-banner--big .sizes-banner__legend {
  gap: 30px !important;
}

.aquatec-site .sizes-banner--big .sizes-legend__item {
  gap: 12px !important;
}

/* Mobile (≤900px): stack figure */
@media (max-width: 900px) {
  .aquatec-site .sizes-banner__figure {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .aquatec-site .sizes-banner__model {
    max-width: 100% !important;
  }
  .aquatec-site .sizes-banner__legend {
    flex-direction: row !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
  }
}

/* End [P21] */

/* ============================================================
 * [P21] BANNER refinements (Vasyl feedback patch)
 * - sizes-home: model 1.5x bigger (700px), legend tight icon+text, center
 * - sizes-big: compact (40-60px padding), model 900px, tight gap між model і legend
 * ============================================================ */

/* sizes-home: figure tight-center */
.aquatec-site .sizes-banner__figure {
  grid-template-columns: auto auto !important;
  gap: clamp(30px, 3vw, 50px) !important;
  justify-content: center !important;
  align-items: center !important;
}

.aquatec-site .sizes-banner__model {
  max-width: 700px !important;
}

/* Legend item: flex з close gap, left-align text */
.aquatec-site .sizes-banner .sizes-legend__item {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  grid-template-columns: unset !important;
  justify-content: flex-start !important;
}

.aquatec-site .sizes-banner .sizes-legend__item img {
  flex-shrink: 0;
}

.aquatec-site .sizes-banner .sizes-legend__item span {
  text-align: left !important;
}

/* sizes-big: компактна полоса, model менший, legend під моделью впритул */
.aquatec-site .sizes-banner--big {
  padding: 20px clamp(20px, 4vw, 40px) 25px !important;
}

.aquatec-site .sizes-banner--big .sizes-banner__figure {
  gap: clamp(16px, 2vw, 28px) !important;
}

.aquatec-site .sizes-banner--big .sizes-banner__model {
  max-width: 900px !important;
}

.aquatec-site .sizes-banner--big .sizes-banner__legend {
  gap: 30px !important;
}

.aquatec-site .sizes-banner--big .sizes-legend__item {
  gap: 12px !important;
}

/* Mobile (≤900px): stack figure */
@media (max-width: 900px) {
  .aquatec-site .sizes-banner__figure {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .aquatec-site .sizes-banner__model {
    max-width: 100% !important;
  }
  .aquatec-site .sizes-banner__legend {
    flex-direction: row !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
  }
}

/* End [P21] */

/* ============================================================
 * [P22] sizes-big banner — relayout як sizes-home
 * Model лівoруч (~2x bigger), legend column праворуч
 * ============================================================ */
.aquatec-site .sizes-banner--big .sizes-banner__figure {
  grid-template-columns: auto auto !important;
  gap: clamp(30px, 3vw, 50px) !important;
  justify-content: center !important;
  align-items: center !important;
}

.aquatec-site .sizes-banner--big .sizes-banner__model {
  max-width: 1200px !important;
}

.aquatec-site .sizes-banner--big .sizes-banner__legend {
  flex-direction: column !important;
  gap: 28px !important;
}

.aquatec-site .sizes-banner--big .sizes-legend__item {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  justify-content: flex-start !important;
  font-size: 22px;
}

.aquatec-site .sizes-banner--big .sizes-legend__item img {
  width: 80px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .aquatec-site .sizes-banner--big .sizes-banner__figure {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .aquatec-site .sizes-banner--big .sizes-banner__legend {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 18px !important;
  }
  .aquatec-site .sizes-banner--big .sizes-legend__item {
    font-size: 15px !important;
  }
  .aquatec-site .sizes-banner--big .sizes-legend__item img {
    width: 50px !important;
  }
}

/* ============================================================
 * [P23] MOUNT-STEPS MODAL — click card → fullscreen viewer
 * ============================================================ */

.aquatec-site .mount-card {
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(245,128,37,0.2);
}

dialog.mount-modal {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  outline: none;
  margin: auto;
}

dialog.mount-modal::backdrop {
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mount-modal[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 24px;
  box-sizing: border-box;
}

.mount-modal__content {
  position: relative;
  background: var(--aq-card-bg, #fff);
  border-radius: 18px;
  overflow: hidden;
  max-width: min(80vw, 1200px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 60px -16px rgba(0,0,0,0.6);
}

.mount-modal__num {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 5;
  width: 60px;
  height: 60px;
  background: var(--aq-orange, #f58025);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas', 'Bebas Neue', sans-serif;
  font-weight: 500;
  font-size: 32px;
  box-shadow: 0 8px 18px -4px rgba(245,128,37,0.6);
}

.mount-modal__img {
  width: 100%;
  max-height: 72vh;
  height: auto;
  object-fit: contain;
  display: block;
  background: var(--aq-bg, #f7f9fc);
}

.mount-modal__caption {
  padding: 22px 28px;
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--aq-text, #1b2935);
  text-align: center;
  font-weight: 400;
  background: var(--aq-card-bg, #fff);
}

.mount-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,0.65);
  border: none;
  border-radius: 50%;
  font-size: 32px;
  font-weight: 300;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: background .2s ease, transform .25s ease;
  box-shadow: 0 8px 18px -4px rgba(0,0,0,0.4);
}

.mount-modal__close:hover {
  background: var(--aq-orange, #f58025);
  transform: rotate(90deg);
}

.mount-modal__nav {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--aq-orange, #f58025);
  color: #fff;
  border: none;
  font-family: 'Bebas', 'Bebas Neue', sans-serif;
  font-size: 48px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px -6px rgba(245,128,37,0.6);
  transition: background .25s ease, color .25s ease, transform .25s ease;
  flex-shrink: 0;
  padding: 0;
}

.mount-modal__nav:hover {
  background: #fff;
  color: var(--aq-orange, #f58025);
  transform: scale(1.1);
}

.mount-modal__nav:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 768px) {
  .mount-modal[open] {
    flex-direction: column;
    gap: 16px;
    padding: 12px;
  }
  .mount-modal__content {
    max-width: 95vw;
    max-height: 78vh;
  }
  .mount-modal__nav {
    width: 52px;
    height: 52px;
    font-size: 36px;
  }
}

html[data-theme="dark"] body.aquatec-site dialog.mount-modal::backdrop {
  background: rgba(0,0,0,0.92);
}

@media (prefers-reduced-motion: reduce) {
  .mount-modal__close,
  .mount-modal__nav { transition: none !important; }
  .mount-modal__close:hover,
  .mount-modal__nav:hover { transform: none !important; }
}

/* End [P22-P23] */

/* ============================================================
 * [P24] Modal: image fit-to-content (без white letterbox для wide imgs)
 *       sizes-big: slim banner (50% less vertical padding)
 * ============================================================ */

/* Modal content shrinks to image natural width */
.aquatec-site .mount-modal__content {
  width: fit-content !important;
  max-width: min(82vw, 1200px) !important;
}

.aquatec-site .mount-modal__img {
  width: auto !important;
  max-width: 100% !important;
  max-height: 72vh !important;
  background: transparent !important;
  display: block !important;
  margin: 0 auto !important;
}

/* Sizes-big banner: slim (50% менше vertical padding) */
.aquatec-site .sizes-banner--big {
  padding: 20px clamp(20px, 4vw, 40px) 25px !important;
}

.aquatec-site .sizes-banner--big .sizes-banner__figure {
  gap: clamp(24px, 2.5vw, 40px) !important;
  align-items: center !important;
}

/* Mobile fallback для modal */
@media (max-width: 768px) {
  .aquatec-site .mount-modal__content {
    width: 95vw !important;
    max-width: 95vw !important;
  }
  .aquatec-site .mount-modal__img {
    max-height: 60vh !important;
  }
}

/* End [P24] */

/* ============================================================
 * [P25] sizes-banner--grey — для mount-anim секції
 * (canon banner з сірим градієнтом замість синього)
 * ============================================================ */

.aquatec-site .sizes-banner--grey {
  background: linear-gradient(135deg, #5a6878 0%, #3d4a55 100%);
}

html[data-theme="dark"] body.aquatec-site .sizes-banner--grey {
  background: linear-gradient(135deg, #5a6878 0%, #3d4a55 100%) !important;
}

/* Center video всередині grey banner */
.aquatec-site .sizes-banner--grey .sizes-banner__inner {
  display: flex;
  justify-content: center;
}

.aquatec-site .sizes-banner--grey .mount-anim__player {
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.5);
  background: #000;
}

/* End [P25] */

/* ============================================================
 * [P26] Reduce vertical gaps + hide blue band перед footer
 * ============================================================ */

/* -30% padding-top для #sizes-big (Vasyl request) */
.aquatec-site #sizes-big {
  padding-top: clamp(25px, 2.8vw, 45px) !important;
}

/* -30% padding-top для #mount-steps */
.aquatec-site #mount-steps {
  padding-top: clamp(25px, 2.8vw, 45px) !important;
}

/* -40% gap між mount-steps і mount-anim */
.aquatec-site #mount-anim {
  padding-top: clamp(22px, 2.4vw, 38px) !important;
}

/* -40% padding-bottom для mount-steps (інший бік того ж розриву) */
.aquatec-site #mount-steps {
  padding-bottom: clamp(22px, 2.4vw, 38px) !important;
}

/* Hide possible blue band перед footer
 * (clients-marquee / aquatec_because — leftovers from AKA scoped CSS) */
body.aquatec-site.inner .aq-clients-band,
body.aquatec-site.inner #aquatec_because,
body.aquatec-site.inner #with_aquatec_you_get,
body.aquatec-site.inner #aquatec_world,
body.aquatec-site.inner .aq-footer-pre,
body.aquatec-site.inner .aq-newsletter,
body.aquatec-site.inner .moduletable.aq-band,
body.aquatec-site.inner #mod-aq-clients-marquee {
  display: none !important;
}

/* End [P26] */

/* ============================================================
 * [P27] body bg — gradient ТІЛЬКИ на 100vh (1:1 canon з aquatec-big-los.css [245-251])
 * Fix: блакитна смуга перед footer (body gradient розтягнутий на повну висоту)
 * ============================================================ */
body.aquatec-site.inner:has(#corner) {
  background-color: var(--aq-bg, #f7f9fc) !important;
  background-image: linear-gradient(to right, #1f3a5c 0%, #4a7ba6 100%) !important;
  background-size: 100% 100vh !important;
  background-repeat: no-repeat !important;
  background-position: 0 0 !important;
}

html[data-theme="dark"] body.aquatec-site.inner:has(#corner) {
  background-color: var(--aq-bg, #262e3a) !important;
}

/* End [P27] */

/* ============================================================
   [12] SIZES INSTALLATION VISUALIZER — (Sess 30)
   ============================================================ */

.viz-container {
  display: grid;
  grid-template-columns: minmax(320px, 400px) 1fr;
  gap: 40px;
  text-align: left;
  margin-top: 48px;
  align-items: stretch;
}

.viz-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.02);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.viz-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.viz-form-group label {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #1e293b;
}

.viz-select-wrapper {
  position: relative;
  width: 100%;
}

.viz-select {
  width: 100% !important;
  padding: 12px 16px !important;
  font-family: 'Manrope', system-ui, sans-serif !important;
  font-size: 16px !important;
  font-weight: 800 !important; /* Bold/heavy text for creative prominence */
  color: #1f3a5c !important; /* High contrast brand deep blue */
  background-color: #f1f5f9 !important; /* Standout background color */
  border: 2px solid #1f3a5c !important; /* Solid brand blue border */
  border-radius: 8px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  box-shadow: 0 4px 10px rgba(31, 58, 92, 0.08) !important;
}

.viz-select:focus {
  outline: none !important;
  border-color: #f58025 !important; /* Highlight on brand orange */
  background-color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(245, 128, 37, 0.15) !important;
}

.viz-select option {
  font-weight: 800 !important;
  color: #1f3a5c !important;
  background-color: #ffffff !important;
}

.viz-select-wrapper::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #64748b;
  pointer-events: none;
}

.viz-range-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.viz-range {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.viz-range::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  background: #e2e8f0;
  border-radius: 3px;
}

.viz-range::-webkit-slider-thumb {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: var(--aq-orange, #f58025);
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -7px;
  box-shadow: 0 2px 6px rgba(245, 128, 37, 0.4);
  transition: transform 0.1s;
}

.viz-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.viz-number-input {
  width: 90px;
  padding: 10px 12px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  text-align: center;
}

.viz-number-input:focus {
  outline: none;
  border-color: var(--aq-blue, #1f3a5c);
  background-color: #fff;
}

.viz-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.viz-result-item {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
}

.viz-result-label {
  font-size: 10.5px;
  line-height: 1.35;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.viz-result-value {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--aq-blue, #1f3a5c);
  margin-top: auto;
}

.viz-result-item:nth-child(2) .viz-result-value {
  color: var(--aq-blue, #1f3a5c);
}

.viz-result-item:nth-child(3) .viz-result-value {
  color: var(--aq-orange, #f58025);
}

.viz-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.viz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.viz-btn--primary {
  background: var(--aq-blue, #1f3a5c);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(31, 58, 92, 0.2);
}

.viz-btn--primary:hover {
  background: #2c4f7a;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(31, 58, 92, 0.3);
}

.viz-btn--secondary {
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.viz-btn--secondary:hover {
  background: #f8fafc;
  color: #1e293b;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.viz-btn-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.viz-warning {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: #b45309;
  line-height: 1.5;
}

.viz-preview {
  flex: 1;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 580px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.viz-preview svg {
  width: 100%;
  height: 100%;
  max-height: 770px;
  display: block;
}

/* Dark mode overrides */
html[data-theme="dark"] .viz-controls {
  background: #1e293b;
  border-color: rgba(71, 85, 105, 0.5);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

html[data-theme="dark"] .viz-form-group label {
  color: #f1f5f9;
}

html[data-theme="dark"] .viz-select {
  background-color: #0f172a !important;
  border-color: #3b82f6 !important; /* Bright blue border in dark mode */
  color: #38bdf8 !important; /* Bright blue text */
}

html[data-theme="dark"] .viz-select option {
  background-color: #1e293b !important;
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .viz-select:focus {
  border-color: var(--aq-orange, #f58025) !important;
}

html[data-theme="dark"] .viz-number-input {
  background-color: #0f172a;
  border-color: #475569;
  color: #e2e8f0;
}

html[data-theme="dark"] .viz-number-input:focus {
  border-color: var(--aq-orange, #f58025);
}

html[data-theme="dark"] .viz-results .viz-result-item {
  background: #0f172a;
  border-color: rgba(71, 85, 105, 0.3);
}

html[data-theme="dark"] .viz-result-label {
  color: #94a3b8;
}

html[data-theme="dark"] .viz-result-value {
  color: #38bdf8;
}

html[data-theme="dark"] .viz-btn--primary {
  background: var(--aq-orange, #f58025);
  box-shadow: 0 4px 12px rgba(245, 128, 37, 0.2);
}

html[data-theme="dark"] .viz-btn--primary:hover {
  background: #ff8c2e;
  box-shadow: 0 6px 16px rgba(245, 128, 37, 0.3);
}

html[data-theme="dark"] .viz-btn--secondary {
  background: #334155;
  color: #cbd5e1;
  border-color: #475569;
}

html[data-theme="dark"] .viz-btn--secondary:hover {
  background: #475569;
  color: #f1f5f9;
}

html[data-theme="dark"] .viz-preview {
  background: #0f172a;
  border-color: rgba(71, 85, 105, 0.5);
}

/* Print optimizations */
@media print {
  body * {
    visibility: hidden;
  }
  #sizes-viz-section, #sizes-viz-section * {
    visibility: visible;
  }
  #sizes-viz-section {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 0;
    margin: 0;
  }
  .viz-controls {
    box-shadow: none;
    border: none;
    padding: 0;
    width: 100%;
  }
  .viz-actions {
    display: none;
  }
  .viz-container {
    display: block;
  }
  .viz-preview {
    margin-top: 20px;
    border: none;
    background: transparent;
  }
}

@media (max-width: 991px) {
  .viz-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .viz-controls {
    max-width: 100%;
  }
  .viz-preview {
    min-height: auto !important; /* Avoid vertical gaps around the SVG */
  }
  .viz-preview svg {
    height: auto !important;
  }
}

@media (max-width: 768px) {
  .viz-preview {
    min-height: auto !important;
    padding: 16px;
  }
  .viz-preview svg {
    height: auto !important;
  }
}

@media (max-width: 480px) {
  /* Section padding optimization */
  .aquatec-site .sizes-section {
    padding: 24px 12px !important;
  }
  
  /* Container layout compacting */
  .viz-container {
    gap: 20px;
    margin-top: 24px;
  }
  
  /* Controls card adjustments */
  .viz-controls {
    padding: 20px;
    gap: 16px;
    border-radius: 12px;
  }
  
  .viz-form-group {
    gap: 6px;
  }
  
  .viz-form-group label {
    font-size: 14px;
  }
  
  .viz-select {
    padding: 10px 14px;
    font-size: 14px;
  }
  
  /* Range slider and number input adjustments */
  .viz-range-wrapper {
    gap: 12px;
  }
  
  .viz-range {
    height: 5px;
  }
  
  .viz-range::-webkit-slider-runnable-track {
    height: 5px;
  }
  
  .viz-range::-webkit-slider-thumb {
    height: 18px;
    width: 18px;
    margin-top: -6.5px;
  }
  
  .viz-number-input {
    width: 75px;
    padding: 8px 10px;
    font-size: 14px;
  }
  
  /* Results card adjustments to prevent wrapping and truncation */
  .viz-results {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
  }
  
  .viz-result-item {
    padding: 10px 8px;
    gap: 4px;
    border-radius: 8px;
  }
  
  .viz-result-label {
    font-size: 9.5px;
    line-height: 1.25;
    letter-spacing: 0.2px;
  }
  
  .viz-result-value {
    font-size: 16px;
    white-space: nowrap; /* Prevent line wrapping */
  }
  
  /* Actions and Buttons */
  .viz-actions {
    gap: 8px;
    margin-top: 4px;
  }
  
  .viz-btn {
    padding: 12px 18px;
    font-size: 14px;
    border-radius: 24px;
    gap: 8px;
  }
  
  .viz-btn-icon {
    width: 18px;
    height: 18px;
  }
  
  /* Preview area */
  .viz-preview {
    padding: 10px;
    border-radius: 12px;
  }
}

@media (max-width: 360px) {
  /* Ultra-narrow outer screens like Galaxy Fold 6/7 */
  .aquatec-site .sizes-section {
    padding: 16px 8px !important;
  }
  
  .viz-container {
    gap: 12px;
    margin-top: 16px;
  }
  
  .viz-controls {
    padding: 12px;
    gap: 12px;
    border-radius: 8px;
  }
  
  .viz-form-group label {
    font-size: 13px;
  }
  
  .viz-select {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .viz-range-wrapper {
    gap: 8px;
  }
  
  .viz-range {
    height: 4px;
  }
  
  .viz-range::-webkit-slider-runnable-track {
    height: 4px;
  }
  
  .viz-range::-webkit-slider-thumb {
    height: 16px;
    width: 16px;
    margin-top: -6px;
  }
  
  .viz-number-input {
    width: 62px;
    padding: 6px;
    font-size: 13px;
  }
  
  .viz-results {
    gap: 6px;
  }
  
  .viz-result-item {
    padding: 8px 6px;
    gap: 2px;
  }
  
  .viz-result-label {
    font-size: 8.5px;
    line-height: 1.2;
    letter-spacing: 0;
  }
  
  .viz-result-value {
    font-size: 14px;
    white-space: nowrap; /* Prevent line wrapping */
  }
  
  .viz-btn {
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 20px;
    gap: 6px;
  }
  
  .viz-btn-icon {
    width: 16px;
    height: 16px;
  }
  
  .viz-preview {
    padding: 6px;
    border-radius: 8px;
  }
}




/* ============================================================================
 * MOBILE INTERACTIVE SIZES WIDGET (ATVFL6 - ATVFL20)
 * ============================================================================ */

.sizes-desktop-only {
  display: block;
}
.sizes-interactive-mob,
.sizes-interactive-mob-big {
  display: none;
}

@media (max-width: 900px) {
  .sizes-desktop-only {
    display: none !important;
  }
  .sizes-interactive-mob,
  .sizes-interactive-mob-big {
    display: block !important;
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Manrope', sans-serif;
  }
  .sizes-mob-tabs-wrapper {
    margin-bottom: 20px;
    padding: 4px 0;
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .sizes-mob-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 6px;
    background: rgba(31, 58, 92, 0.05);
    border-radius: 14px;
    border: 1px solid rgba(31, 58, 92, 0.08);
    width: 100%;
    max-width: 440px;
    box-sizing: border-box;
  }
  .sizes-mob-tab {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent;
    border: none;
    padding: 8px 4px;
    font-size: 11px;
    font-weight: 700;
    color: #4a5568;
    border-radius: 10px;
    cursor: pointer;
    white-space: normal !important;
    line-height: 1.2 !important;
    text-align: center;
    transition: all 0.25s ease;
  }
  .sizes-mob-tab.active {
    background: #276cba;
    color: #fff;
    box-shadow: 0 4px 10px rgba(39, 108, 186, 0.25);
  }
  
  .sizes-mob-card {
    background: var(--aq-card-bg, #fff);
    border-radius: 20px;
    box-shadow: 0 12px 32px -10px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 16px;
  }
  
  .sizes-mob-visualizer {
    background: radial-gradient(circle at 50% 50%, #f8fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.04);
  }
  
  .sizes-mob-svg-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    display: block;
  }
  .sizes-mob-svg-container svg {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .sizes-mob-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Compact 3-column grid for maximum height reduction */
    gap: 6px;
    padding: 6px 0 0;
  }
  
  .sizes-mob-spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px 4px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.02);
    box-sizing: border-box;
  }
  
  /* Make the first item (Capacity) stand out and span 3 columns horizontally */
  .sizes-mob-spec-item:first-child {
    grid-column: span 3;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
  }
  
  .sizes-mob-spec-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
    min-height: 22px;
    justify-content: center;
    text-align: center;
  }
  
  .sizes-mob-spec-item:first-child .sizes-mob-spec-label {
    flex-direction: row;
    margin-bottom: 0;
    min-height: auto;
    gap: 6px;
  }
  
  .sizes-mob-spec-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  
  .sizes-mob-spec-value {
    font-size: 11px;
    font-weight: 800;
    color: #111827;
    text-align: center;
  }

  .sizes-mob-spec-item:first-child .sizes-mob-spec-value {
    font-size: 12px;
  }
  
  /* Color indicator bullets */
  .dot-green { background-color: #2e7d32; border: 2px solid #e8f5e9; }
  .dot-red { background-color: #d32f2f; border: 2px solid #ffebee; }
  .dot-orange { background-color: #ef6c00; border: 2px solid #fff3e0; }
  .dot-blue { background-color: #1565c0; border: 2px solid #e3f2fd; }
  .dot-grey { background-color: #757575; border: 2px solid #f5f5f5; }
  .dot-pipe { background-color: #3e2723; border: 2px solid #efebe9; }
  .dot-purple { background-color: #7c3aed; border: 2px solid #f3e8ff; }
  
  /* Dark Mode Adjustments */
  html[data-theme="dark"] .sizes-mob-card {
    background: #141d26 !important;
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 0 12px 32px -10px rgba(0,0,0,0.4) !important;
  }
  html[data-theme="dark"] .sizes-mob-visualizer {
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%) !important;
    border-color: rgba(255,255,255,0.05) !important;
  }
  html[data-theme="dark"] .sizes-mob-tabs {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
  }
  html[data-theme="dark"] .sizes-mob-tab {
    color: #94a3b8 !important;
  }
  html[data-theme="dark"] .sizes-mob-tab.active {
    background: #3b82f6 !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3) !important;
  }
  html[data-theme="dark"] .sizes-mob-spec-item {
    background: #1e293b !important;
    border-color: rgba(255,255,255,0.04) !important;
  }
  html[data-theme="dark"] .sizes-mob-spec-label {
    color: #cbd5e1 !important;
  }
  html[data-theme="dark"] .sizes-mob-spec-value {
    color: #f8fafc !important;
  }
}

.sizes-mob-visualizer,
.sizes-mob-svg-container,
.sizes-mob-svg-container svg,
#sizes-mob-svg-container-big svg,
.viz-preview,
#viz-svg-container,
#viz-svg-container svg {
  color-scheme: light !important;
  color-scheme: only light !important;
}

/* Mobile responsive specifications card (widths <= 900px) */
#viz-mobile-specs-container {
  display: none;
}

@media (max-width: 900px) {
  #viz-mobile-specs-container {
    display: block;
    width: 100%;
    margin-top: 24px;
  }
  
  .viz-mob-specs-card {
    background: var(--aq-card-bg, #ffffff);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    font-family: 'Manrope', system-ui, sans-serif;
    text-align: left;
  }

  /* Header */
  .viz-mob-specs-card__header {
    font-size: 15px;
    font-weight: 800;
    color: var(--aq-blue, #1f3a5c);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--aq-orange, #f58025);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .viz-mob-specs-card__model-tag {
    background: var(--aq-orange, #f58025);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(245, 128, 37, 0.2);
    display: inline-block;
  }

  /* 3x2 Grid for Technical Specs */
  .viz-mob-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
  }

  .viz-mob-spec-card {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
  }

  .viz-mob-spec-card__label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
    line-height: 1.3;
    margin-bottom: 6px;
    min-height: 26px; /* Ensures alignment even with wrapping text */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .viz-mob-spec-card__value {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
  }

  /* Color Accent Values */
  .viz-mob-color-orange {
    color: var(--aq-orange, #f58025) !important;
  }

  .viz-mob-color-green {
    color: #16a34a !important;
  }

  .viz-mob-color-blue {
    color: var(--aq-blue, #1f3a5c) !important;
  }

  /* Soil Volumes Section */
  .viz-mob-volumes-container {
    background: #fbf7f4;
    border: 1px solid #e2d8ce;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
  }

  .viz-mob-volumes-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #8c7d70;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    text-align: center;
  }

  .viz-mob-volumes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .viz-mob-volume-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .viz-mob-volume-item__label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #8c7d70;
    letter-spacing: 0.5px;
    line-height: 1.3;
    margin-bottom: 6px;
    min-height: 26px; /* Alignment */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .viz-mob-volume-item__value {
    font-size: 17px;
    font-weight: 800;
  }

  .viz-mob-vol-color-gray {
    color: #475569 !important;
  }

  .viz-mob-vol-color-green {
    color: #16a34a !important;
  }

  .viz-mob-vol-color-yellow {
    color: #ca8a04 !important;
  }

  /* Footnote styling */
  .viz-mob-footnote {
    font-size: 11px;
    line-height: 1.5;
    color: #8c7d70;
    text-align: center;
    margin-top: 16px;
    padding: 0 4px;
  }

  /* Dark mode styling overrides */
  html[data-theme="dark"] .viz-mob-specs-card {
    background: var(--aq-card-bg, #1e293b) !important;
    border-color: rgba(71, 85, 105, 0.5) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3) !important;
  }

  html[data-theme="dark"] .viz-mob-specs-card__header {
    color: #f1f5f9 !important;
  }

  html[data-theme="dark"] .viz-mob-spec-card {
    background: #0f172a !important;
    border-color: rgba(71, 85, 105, 0.3) !important;
  }

  html[data-theme="dark"] .viz-mob-spec-card__label {
    color: #94a3b8 !important;
  }

  html[data-theme="dark"] .viz-mob-color-blue {
    color: #38bdf8 !important;
  }

  html[data-theme="dark"] .viz-mob-volumes-container {
    background: #1e1b18 !important; /* Dark brown tint */
    border-color: #4a3e35 !important;
  }

  html[data-theme="dark"] .viz-mob-volumes-title {
    color: #bfaea0 !important;
  }

  html[data-theme="dark"] .viz-mob-volume-item__label {
    color: #bfaea0 !important;
  }

  html[data-theme="dark"] .viz-mob-vol-color-gray {
    color: #cbd5e1 !important;
  }

  html[data-theme="dark"] .viz-mob-footnote {
    color: #bfaea0 !important;
  }

  /* Responsive queries for narrow viewports */
  @media (max-width: 480px) {
    .viz-mob-specs-card {
      padding: 16px;
    }
    .viz-mob-specs-grid, .viz-mob-volumes-grid {
      gap: 8px;
    }
    .viz-mob-spec-card {
      padding: 10px 6px;
    }
    .viz-mob-spec-card__label, .viz-mob-volume-item__label {
      font-size: 8.5px;
      min-height: 22px;
    }
    .viz-mob-spec-card__value, .viz-mob-volume-item__value {
      font-size: 13.5px;
    }
    .viz-mob-specs-card__header {
      font-size: 12px;
    }
    .viz-mob-specs-card__model-tag {
      font-size: 11px;
      padding: 3px 6px;
    }
  }

  @media (max-width: 320px) {
    .viz-mob-specs-card {
      padding: 12px 8px;
    }
    .viz-mob-specs-grid, .viz-mob-volumes-grid {
      gap: 4px;
    }
    .viz-mob-spec-card {
      padding: 8px 4px;
    }
    .viz-mob-spec-card__label, .viz-mob-volume-item__label {
      font-size: 8px;
      min-height: 20px;
    }
    .viz-mob-spec-card__value, .viz-mob-volume-item__value {
      font-size: 11.5px;
    }
    .viz-mob-specs-card__header {
      font-size: 10.5px;
    }
    .viz-mob-specs-card__model-tag {
      font-size: 10px;
      padding: 2px 4px;
    }
  }
}


