:root {
  --ink: #102436;
  --muted: #5f7484;
  --ocean: #0477bf;
  --ocean-dark: #035f99;
  --aqua: #10b8c9;
  --foam: #e9fbff;
  --mist: #f6fcff;
  --line: #d7edf4;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(6, 80, 119, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(16, 184, 201, 0.18), transparent 28%),
    linear-gradient(180deg, #effbff 0%, #ffffff 42%, #f7fdff 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1,
h2,
h3,
p,
li,
td,
th,
label,
span,
strong {
  overflow-wrap: anywhere;
}

img,
svg {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(215, 237, 244, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.18rem;
  line-height: 1.1;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  background: linear-gradient(145deg, var(--ocean), var(--aqua));
  border-radius: 50% 50% 48% 52% / 56% 54% 46% 44%;
  box-shadow: 0 10px 25px rgba(4, 119, 191, 0.22);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ocean-dark);
  background: var(--foam);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  min-height: 42px;
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 42px;
  padding: 64px clamp(18px, 5vw, 72px) 48px;
}

.hero h1,
.page-hero h1,
.blog-article h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p,
.page-hero p {
  max-width: 740px;
  color: var(--muted);
  font-size: 1.12rem;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--ocean);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-actions,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--ocean), var(--aqua));
  box-shadow: 0 14px 28px rgba(4, 119, 191, 0.22);
}

.button.secondary {
  color: var(--ocean-dark);
  background: var(--white);
  border: 1px solid var(--line);
}

.button.full {
  width: 100%;
}

.water-orbit {
  min-height: 440px;
  display: grid;
  place-items: center;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.42)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='700' viewBox='0 0 900 700'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' x2='1' y1='0' y2='1'%3E%3Cstop stop-color='%230477bf'/%3E%3Cstop offset='1' stop-color='%2310b8c9'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23a)' fill-opacity='.92' d='M448 46c88 102 202 222 202 363 0 142-91 236-202 236s-202-94-202-236C246 268 360 148 448 46Z'/%3E%3Cpath fill='%23fff' fill-opacity='.42' d='M329 334c29-118 107-183 158-240-117 66-201 178-202 301 0 63 27 124 67 159-35-71-43-140-23-220Z'/%3E%3Ccircle cx='585' cy='238' r='42' fill='%23fff' fill-opacity='.35'/%3E%3C/svg%3E") center / contain no-repeat;
  box-shadow: var(--shadow);
}

.water-meter {
  width: min(72%, 360px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  background: rgba(4, 119, 191, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.water-meter span {
  display: block;
  font-size: clamp(3rem, 7vw, 5.4rem);
  font-weight: 800;
  line-height: 1;
}

.water-meter small {
  display: block;
  max-width: 160px;
  margin-inline: auto;
  font-weight: 700;
}

.calculator-shell,
.info-band,
.content-article,
.guide-grid,
.split-section,
.values,
.contact-grid,
.blog-article {
  width: min(1160px, calc(100% - 36px));
  margin-inline: auto;
}

.calculator-shell {
  padding: 60px 0 36px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 26px;
}

.section-heading h2,
.info-band h2,
.content-article h2,
.guide-card h2,
.split-section h2,
.values h2,
.contact-panel h2,
.blog-article h2 {
  margin: 0 0 12px;
  line-height: 1.12;
}

.section-heading p,
.content-article p,
.blog-article p,
.guide-card p,
.split-section p,
.values p,
.contact-panel p {
  color: var(--muted);
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 24px;
  align-items: stretch;
}

.calculator-card,
.result-card,
.guide-card,
.contact-form,
.contact-panel,
.values article {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.calculator-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 24px;
}

.field-group {
  display: grid;
  gap: 8px;
  margin: 0;
  border: 0;
  padding: 0;
}

.field-group label,
.field-group legend,
.contact-form label {
  font-weight: 800;
  color: var(--ink);
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--aqua);
  box-shadow: 0 0 0 4px rgba(16, 184, 201, 0.16);
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 8px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.segmented input {
  position: absolute;
  opacity: 0;
}

.segmented span {
  display: grid;
  min-height: 48px;
  place-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.segmented input:checked + span {
  color: var(--white);
  border-color: var(--ocean);
  background: var(--ocean);
}

.result-card {
  padding: 26px;
  background:
    linear-gradient(160deg, rgba(4, 119, 191, 0.96), rgba(16, 184, 201, 0.9)),
    var(--ocean);
  color: var(--white);
}

.result-card .eyebrow,
.result-card small,
.result-card .note {
  color: rgba(255, 255, 255, 0.78);
}

.result-top strong {
  display: block;
  font-size: clamp(3.5rem, 8vw, 5.7rem);
  line-height: 1;
  margin-bottom: 10px;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0;
}

.result-stats div {
  padding: 14px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.result-stats span {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  font-weight: 800;
}

.progress-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 76%;
  border-radius: inherit;
  background: var(--white);
}

.schedule {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.schedule li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.info-band {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 26px;
  align-items: start;
  margin-top: 34px;
  padding: 34px;
  border-radius: 8px;
  background: var(--foam);
  border: 1px solid var(--line);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--ocean-dark);
  background: #dff7fc;
}

.content-article,
.blog-article {
  margin-top: 42px;
  padding: clamp(24px, 4vw, 46px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.page-main {
  padding: 58px 0 70px;
}

.page-hero {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto 34px;
  padding: clamp(36px, 6vw, 76px);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.76)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='500' viewBox='0 0 1200 500'%3E%3Cpath fill='%2310b8c9' fill-opacity='.18' d='M0 333c139-63 240-60 381-10s270 72 438-12 273-73 381-12v201H0Z'/%3E%3Cpath fill='%230477bf' fill-opacity='.15' d='M0 374c121-39 250-34 388 14s260 37 406-33 279-79 406-29v174H0Z'/%3E%3C/svg%3E") center / cover no-repeat;
  border: 1px solid var(--line);
}

.page-hero.compact h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

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

.guide-card,
.values article {
  padding: 24px;
}

.split-section,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.split-section > div {
  padding: 30px;
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.values {
  margin-top: 22px;
  grid-template-columns: repeat(3, 1fr);
}

.blog-article {
  max-width: 900px;
}

.blog-article h1 {
  font-size: clamp(2.2rem, 5vw, 4.7rem);
}

.lead {
  font-size: 1.18rem;
}

.formula-box {
  display: grid;
  gap: 6px;
  margin: 24px 0;
  padding: 20px;
  color: var(--ocean-dark);
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-list {
  padding-left: 20px;
  color: var(--muted);
}

.check-list li + li {
  margin-top: 8px;
}

.contact-form,
.contact-panel {
  padding: 26px;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.form-status {
  margin: 0;
  min-height: 24px;
  color: var(--ocean-dark);
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: #062335;
}

.site-footer strong,
.site-footer a {
  color: var(--white);
}

.site-footer p {
  margin: 6px 0 0;
}

@media (max-width: 920px) {
  .hero,
  .calculator-grid,
  .info-band,
  .split-section,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 64px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    border-radius: 8px;
    padding: 13px 14px;
  }

  .hero {
    gap: 24px;
    padding: 34px 16px 28px;
  }

  .hero h1,
  .page-hero h1,
  .blog-article h1 {
    font-size: clamp(2.2rem, 14vw, 3.4rem);
    line-height: 1.02;
  }

  .hero p,
  .page-hero p,
  .lead {
    font-size: 1rem;
  }

  .hero-actions,
  .site-footer nav {
    width: 100%;
  }

  .hero-actions .button {
    flex: 1 1 150px;
  }

  .water-orbit {
    min-height: 260px;
    border-radius: 8px;
  }

  .water-meter {
    width: min(64%, 240px);
  }

  .calculator-shell {
    width: calc(100% - 24px);
    padding-top: 34px;
  }

  .section-heading {
    margin-bottom: 18px;
  }

  .calculator-card,
  .guide-grid,
  .values {
    grid-template-columns: 1fr;
  }

  .calculator-card,
  .result-card,
  .content-article,
  .blog-article,
  .contact-form,
  .contact-panel,
  .guide-card,
  .values article {
    padding: 18px;
  }

  .input-row {
    grid-template-columns: minmax(0, 1fr) 82px;
  }

  .segmented,
  .result-stats {
    grid-template-columns: 1fr;
  }

  .segmented span {
    min-height: 44px;
  }

  .result-top strong {
    font-size: clamp(3rem, 20vw, 4.2rem);
  }

  .info-band,
  .content-article,
  .guide-grid,
  .split-section,
  .values,
  .contact-grid,
  .blog-article,
  .page-hero {
    width: calc(100% - 24px);
  }

  .info-band,
  .page-hero {
    padding: 20px;
  }

  th,
  td {
    padding: 12px;
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .page-main {
    padding: 28px 0 44px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 16px;
  }

  .site-footer nav a {
    padding: 4px 0;
  }
}

@media (max-width: 420px) {
  .brand {
    max-width: 230px;
    font-size: 0.95rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .nav-toggle {
    padding-inline: 12px;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    display: grid;
  }

  .water-orbit {
    min-height: 220px;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  .schedule li {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}
