:root {
  color-scheme: light;
  --ink: #10242b;
  --muted: #5e747c;
  --line: #d7e5e5;
  --sea: #00a7b5;
  --sea-dark: #00707f;
  --coral: #ff775f;
  --sun: #f6b84b;
  --foam: #f4fbfa;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(14, 57, 66, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--foam);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  min-width: max-content;
}

.brand img {
  display: block;
  width: 168px;
  height: 82px;
  object-fit: contain;
  filter: contrast(1.16) saturate(1.12) drop-shadow(0 8px 14px rgba(5, 33, 41, 0.16));
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  color: #24434c;
  font-size: 14px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 8px;
  background: #061f27;
  cursor: pointer;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 99px;
  background: #ffffff;
}

.nav-cta {
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--white);
  background: var(--sea-dark);
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 126px clamp(18px, 4vw, 56px) 36px;
}

.hero-slider,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slider {
  overflow: hidden;
}

.hero-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 900ms ease,
    transform 5200ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 33, 41, 0.82), rgba(5, 33, 41, 0.36) 45%, rgba(5, 33, 41, 0.06)),
    linear-gradient(0deg, rgba(5, 33, 41, 0.46), rgba(5, 33, 41, 0.06) 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd16f;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-content > p:not(.eyebrow) {
  width: min(620px, 100%);
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: #04242c;
  background: #ffffff;
}

.button.secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.12);
}

.hero-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(820px, 100%);
  margin-top: 56px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.hero-dots {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 4vw, 56px);
  bottom: 40px;
  display: flex;
  gap: 9px;
}

.hero-dots span {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  transition:
    width 260ms ease,
    background 260ms ease;
}

.hero-dots span.is-active {
  width: 30px;
  background: #ffffff;
}

.hero-strip div {
  padding: 18px;
  color: var(--white);
}

.hero-strip div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.32);
}

.hero-strip strong,
.hero-strip span {
  display: block;
}

.hero-strip strong {
  font-size: clamp(20px, 3vw, 30px);
}

.hero-strip span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

main > section:not(.hero) {
  padding: 82px clamp(18px, 4vw, 56px);
}

.intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 6vw, 84px);
  align-items: center;
  background: #ffffff;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: 0;
}

.intro > p,
.quote p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 680px;
}

.models-section {
  background: #e9f6f5;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.model-card {
  display: flex;
  min-height: 438px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 38px rgba(14, 57, 66, 0.08);
}

.model-card header {
  padding: 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--sea-dark), var(--sea));
}

.model-card:nth-child(2) header {
  background: linear-gradient(135deg, #155f8f, #22bdd4);
}

.model-card:nth-child(3) header {
  background: linear-gradient(135deg, #1b806a, #8bd28c);
}

.model-card:nth-child(4) header {
  background: linear-gradient(135deg, #514673, var(--coral));
}

.model-card h3 {
  margin-bottom: 8px;
  font-size: 26px;
}

.model-card header p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.5;
}

.price-list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
}

.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  background: #ffffff;
  font-size: 14px;
}

.price-list span {
  color: var(--muted);
}

.price-list strong {
  white-space: nowrap;
}

.model-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  color: var(--muted);
  font-size: 13px;
}

.model-foot span,
.model-foot strong {
  display: block;
}

.model-foot strong {
  margin-top: 3px;
  color: var(--ink);
}

.model-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.detail-button,
.pdf-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.detail-button {
  background: var(--coral);
  box-shadow: 0 10px 24px rgba(255, 119, 95, 0.26);
}

.detail-button:hover,
.detail-button:focus-visible {
  background: #e75e48;
}

.pdf-button {
  background: var(--sea-dark);
  box-shadow: 0 10px 24px rgba(0, 112, 127, 0.2);
}

.pdf-button:hover,
.pdf-button:focus-visible {
  background: #055f6d;
}

.detail-modal {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 33, 41, 0.72);
  backdrop-filter: blur(10px);
}

.detail-modal.is-open {
  display: flex;
}

.detail-dialog {
  width: min(1100px, 100%);
  max-height: min(88vh, 900px);
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.detail-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.detail-dialog-head h2 {
  font-size: clamp(20px, 3vw, 30px);
}

.detail-dialog-head button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: var(--sea-dark);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.detail-image-wrap {
  position: relative;
  display: block;
  width: 100%;
  max-height: calc(88vh - 75px);
  overflow: auto;
  border: 0;
  padding: 0;
  background: #f8fefe;
  cursor: zoom-in;
}

.detail-image-wrap img {
  display: block;
  width: 100%;
  max-height: calc(88vh - 75px);
  object-fit: contain;
  transition: width 240ms ease, max-height 240ms ease;
}

.zoom-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  color: #ffffff;
  background: rgba(5, 33, 41, 0.44);
  pointer-events: none;
  transition: opacity 180ms ease;
}

.zoom-hint strong {
  display: block;
  margin-top: 10px;
  font-size: 18px;
  letter-spacing: 0;
}

.zoom-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 42px;
  line-height: 1;
}

.detail-image-wrap:hover .zoom-hint,
.detail-image-wrap:focus-visible .zoom-hint {
  opacity: 1;
}

.detail-dialog.is-zoomed {
  width: min(96vw, 1320px);
}

.detail-dialog.is-zoomed .detail-image-wrap {
  cursor: zoom-out;
}

.detail-dialog.is-zoomed .detail-image-wrap img {
  width: min(1600px, 180vw);
  max-width: none;
  max-height: none;
}

.detail-dialog.is-zoomed .zoom-hint {
  display: none;
}

.equipment {
  background: #ffffff;
}

.equipment-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: start;
}

.equipment-total {
  position: sticky;
  top: 96px;
  padding: 28px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, #063642, #00a7b5 72%, #ffd16f);
  box-shadow: var(--shadow);
}

.equipment-total span {
  display: block;
  margin-bottom: 12px;
  font-weight: 800;
}

.equipment-total strong {
  display: block;
  font-size: 54px;
  line-height: 1;
}

.equipment-total p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.equipment-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.equipment-item {
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbffff;
}

.equipment-item span {
  display: block;
  color: var(--sea-dark);
  font-size: 12px;
  font-weight: 800;
}

.equipment-item strong {
  display: block;
  margin-top: 10px;
  font-size: 18px;
}

.equipment-item em {
  display: block;
  margin-top: 12px;
  color: var(--coral);
  font-style: normal;
  font-weight: 800;
}

.conditions {
  background: #0d2830;
  color: #ffffff;
}

.conditions .section-heading p {
  color: #ffd16f;
}

.condition-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.condition-grid article {
  min-height: 234px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.condition-grid span {
  color: #ffd16f;
  font-weight: 800;
}

.condition-grid h3 {
  margin: 34px 0 10px;
  font-size: 22px;
}

.condition-grid p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.6;
}

.quote {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: clamp(24px, 6vw, 82px);
  align-items: center;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 119, 95, 0.2), transparent 30%),
    #ffffff;
}

.content-page {
  padding-top: 114px;
  background: #ffffff;
}

.page-hero {
  padding: 92px clamp(18px, 4vw, 56px);
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(5, 33, 41, 0.86), rgba(5, 33, 41, 0.56)),
    url("/assets/hero-pool-4.png") center/cover;
}

.page-hero h1 {
  max-width: 850px;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.7;
}

.text-section,
.feature-grid,
.product-list,
.product-sections {
  padding: 70px clamp(18px, 4vw, 56px);
}

.text-section {
  max-width: 980px;
}

.text-section p,
.feature-grid p,
.product-sections p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.feature-grid,
.product-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  background: #f4fbfa;
}

.feature-grid article,
.product-sections article,
.product-list a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(14, 57, 66, 0.08);
}

.feature-grid h2,
.product-sections h2 {
  margin-bottom: 14px;
  font-size: 26px;
}

.product-list {
  display: grid;
  gap: 14px;
  background: #f4fbfa;
}

.product-list a {
  display: block;
  color: var(--sea-dark);
  font-size: 22px;
  font-weight: 800;
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 70px clamp(18px, 4vw, 56px);
  background: #f4fbfa;
}

.calculator-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(14, 57, 66, 0.08);
}

.calculator-card h2 {
  font-size: 28px;
}

.calculator-form {
  display: grid;
  gap: 12px;
}

.calculator-form label {
  display: grid;
  gap: 7px;
  color: #31515a;
  font-size: 13px;
  font-weight: 800;
}

.calculator-form input,
.calculator-form select {
  min-height: 46px;
}

.calculator-form button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: var(--sea-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.calculator-result {
  display: grid;
  gap: 8px;
  margin-top: auto;
  border-radius: 8px;
  padding: 16px;
  color: var(--muted);
  background: #f8fefe;
  line-height: 1.5;
}

.calculator-result strong,
.calculator-result span {
  display: block;
}

.calculator-result strong {
  color: var(--ink);
}

.calculator-result.is-success {
  border: 1px solid rgba(24, 115, 92, 0.24);
  color: #18735c;
  background: #effbf5;
}

.calculator-result.is-error {
  border: 1px solid rgba(185, 68, 53, 0.24);
  color: #b94435;
  background: #fff4f1;
}

.single-calculator {
  display: grid;
  justify-items: center;
  padding: 70px clamp(18px, 4vw, 56px);
  background: #f4fbfa;
}

.calculator-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  margin-top: 28px;
}

.calculator-shortcuts a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  padding: 0 18px;
  color: #ffffff;
  background: rgba(0, 112, 127, 0.82);
  backdrop-filter: blur(10px);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 112, 127, 0.18);
}

.calculator-shortcuts a:hover,
.calculator-shortcuts a:focus-visible {
  background: #055f6d;
}

.single-calculator .calculator-card {
  width: min(720px, 100%);
}

.calculator-link-card {
  color: inherit;
  text-decoration: none;
}

.calculator-link-card p {
  color: var(--muted);
  line-height: 1.65;
}

.calculator-link-card strong {
  margin-top: auto;
  color: var(--sea-dark);
}

.quote form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fefe;
  box-shadow: 0 18px 44px rgba(14, 57, 66, 0.1);
}

label {
  display: grid;
  gap: 8px;
  color: #31515a;
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #c7dddd;
  border-radius: 8px;
  padding: 0 13px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

textarea {
  min-height: 92px;
  padding-top: 12px;
  resize: vertical;
}

form button {
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: var(--coral);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.form-status.is-success {
  color: #18735c;
}

.form-status.is-error {
  color: #b94435;
}

footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: #5e747c;
  background: #f4fbfa;
  font-size: 13px;
}

footer p {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.fluidra-footer-logo {
  display: inline-block;
  width: 118px;
  height: auto;
  object-fit: contain;
}

.fluidra-powered {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}

.fluidra-powered strong {
  color: #143d8f;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

@media (max-width: 1120px) {
  .model-grid,
  .condition-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .equipment-layout,
  .quote,
  .calculator-grid,
  .feature-grid,
  .product-sections {
    grid-template-columns: 1fr;
  }

  .equipment-total {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: fixed;
    align-items: center;
    flex-wrap: nowrap;
    background: rgba(255, 255, 255, 0.94);
  }

  .menu-toggle {
    display: inline-flex;
  }

  nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 18px;
    right: 18px;
    z-index: 30;
    width: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(14, 57, 66, 0.28);
  }

  .site-header.nav-open nav {
    display: flex;
  }

  nav a {
    min-height: 42px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    padding: 0 12px;
    color: var(--ink);
    background: #eef8f7;
    font-size: 15px;
  }

  .nav-cta {
    justify-content: center;
    color: #ffffff;
    background: var(--sea-dark);
  }

  .brand img {
    width: 138px;
    height: 70px;
  }

  .hero {
    min-height: 820px;
    padding-top: 108px;
  }

  .content-page {
    padding-top: 0;
  }

  .calculator-shortcuts a {
    width: 100%;
  }

  .hero-strip,
  .intro,
  .model-grid,
  .equipment-list,
  .condition-grid {
    grid-template-columns: 1fr;
  }

  .model-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .model-actions,
  .detail-button,
  .pdf-button {
    width: 100%;
  }

  .detail-modal {
    padding: 12px;
  }

  .hero-dots {
    right: auto;
    left: 18px;
    bottom: 22px;
  }

  .hero-strip div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.32);
    border-left: 0;
  }

  .section-heading {
    display: block;
  }

  footer {
    display: grid;
  }
}
