:root {
  --navy: #06265e;
  --navy-deep: #031c4b;
  --aqua: #31b9d2;
  --aqua-deep: #0c9dc5;
  --text: #08265e;
  --muted: #5d697c;
  --line: #dce3ea;
  --offwhite: #f7f9fb;
  --white: #ffffff;
  --shadow: 0 14px 40px rgba(3, 28, 75, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 72px)); margin: 0 auto; }
.hidden { position: absolute; left: -10000px; }

.site-header {
  background: #fff;
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(6, 38, 94, 0.07);
}
.header-inner {
  min-height: 122px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand img { width: 340px; height: auto; }
.header-phone {
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .02em;
  color: var(--navy);
}
.header-phone:hover { color: var(--aqua-deep); }

.hero {
  min-height: 500px;
  position: relative;
  display: flex;
  align-items: center;
  background: url("assets/pool-hero.png") center 58% / cover no-repeat;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 26, 69, .60) 0%, rgba(3, 26, 69, .25) 44%, rgba(3, 26, 69, 0) 75%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 58px 0 62px;
}
.hero h1 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(44px, 5.5vw, 76px);
  line-height: .98;
  text-transform: uppercase;
  letter-spacing: .015em;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.accent-line,
.section-line,
.footer-line {
  display: block;
  width: 86px;
  height: 4px;
  background: var(--aqua);
}
.accent-line { margin: 24px 0 24px; }
.hero p {
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
  font-weight: 500;
}

.contact-section {
  background: var(--offwhite);
  padding: 56px 0 68px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.card {
  background: white;
  border-radius: 16px;
  padding: 38px 46px 40px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(6, 38, 94, .035);
}
.card h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(26px, 2.4vw, 34px);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .01em;
}
.section-line { width: 72px; height: 3px; margin: 15px 0 28px; }
.intro {
  font-size: 16px;
  line-height: 1.55;
  max-width: 420px;
  margin: 0 0 28px;
  color: var(--navy);
}
form { display: grid; }
form label {
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--navy);
}
form input, form textarea {
  width: 100%;
  border: 1px solid #cfd7e1;
  border-radius: 5px;
  background: #fff;
  color: #24324a;
  font: inherit;
  font-size: 15px;
  padding: 14px 15px;
  margin: 0 0 22px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
form textarea { resize: vertical; min-height: 142px; }
form input:focus, form textarea:focus {
  border-color: var(--aqua-deep);
  box-shadow: 0 0 0 3px rgba(49, 185, 210, .14);
}
form button {
  appearance: none;
  border: 0;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--aqua-deep), var(--aqua));
  color: white;
  min-height: 52px;
  padding: 12px 20px;
  text-transform: uppercase;
  font: 700 16px/1 "Montserrat", Arial, sans-serif;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
form button:hover { filter: brightness(.96); transform: translateY(-1px); }

.info-card { min-height: 100%; }
.info-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 22px;
  align-items: center;
  padding: 34px 0;
}
.icon-circle {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aqua), var(--aqua-deep));
}
.icon-circle svg { width: 34px; height: 34px; fill: white; }
.info-row h3 {
  margin: 0 0 12px;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 800;
}
.info-row a {
  text-decoration: none;
  font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.35;
  color: var(--navy);
  word-break: break-word;
}
.info-row a:hover { color: var(--aqua-deep); }
.divider { height: 1px; background: var(--line); }

.site-footer {
  color: white;
  background: linear-gradient(120deg, #031c4b 0%, #06265e 72%, #06477a 100%);
}
.footer-main {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 45px 0 40px;
}
.footer-logo { width: 360px; max-width: 80vw; }
.footer-line { margin: 13px 0 17px; width: 52px; height: 3px; }
.footer-main p { margin: 0; font-size: 15px; line-height: 1.55; }
.footer-bottom {
  min-height: 58px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px 20px;
  background: linear-gradient(90deg, #10a8ce, #18b7d6);
}
.footer-bottom p { margin: 0; font-size: 14px; }

.thank-you-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--offwhite);
  padding: 30px;
}
.thank-you-box {
  width: min(640px, 100%);
  background: white;
  padding: 48px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-align: center;
}
.thank-you-box img { width: 330px; margin: 0 auto 32px; }
.thank-you-box h1 { margin: 0 0 14px; color: var(--navy); text-transform: uppercase; }
.thank-you-box p { line-height: 1.6; margin: 0 0 28px; }
.thank-you-box a { display: inline-block; padding: 14px 22px; background: var(--navy); color: white; text-decoration: none; border-radius: 5px; font-weight: 700; }

@media (max-width: 840px) {
  .shell { width: min(100% - 36px, 720px); }
  .header-inner { min-height: 92px; }
  .brand img { width: 270px; }
  .header-phone { display: none; }
  .hero { min-height: 520px; background-position: 64% center; align-items: flex-end; }
  .hero-overlay { background: linear-gradient(90deg, rgba(3,26,69,.70), rgba(3,26,69,.25)), linear-gradient(0deg, rgba(3,26,69,.30), transparent 55%); }
  .hero-content { padding: 60px 0 54px; }
  .contact-grid { grid-template-columns: 1fr; }
  .card { padding: 34px 30px 36px; }
  .info-card { min-height: 0; }
}

@media (max-width: 520px) {
  .shell { width: calc(100% - 30px); }
  .header-inner { min-height: 78px; justify-content: center; }
  .brand img { width: 235px; }
  .hero { min-height: 470px; background-position: 67% center; }
  .hero h1 { font-size: 43px; }
  .hero p { font-size: 17px; }
  .contact-section { padding: 30px 0 38px; }
  .contact-grid { gap: 20px; }
  .card { border-radius: 12px; padding: 28px 22px 30px; }
  .info-row { grid-template-columns: 56px 1fr; gap: 16px; padding: 25px 0; }
  .icon-circle { width: 56px; height: 56px; }
  .icon-circle svg { width: 26px; height: 26px; }
  .info-row a { font-size: 17px; }
  .footer-main { min-height: 220px; }
  .footer-logo { width: 290px; }
}
