:root {
  --teal: #009098;
  --teal-dark: #00777d;
  --orange: #f36910;
  --peach: #ffbc7d;
  --text: #54595f;
  --ink: #22282d;
  --line: #e6e8eb;
  --max: 1140px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background: #fff;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--orange); }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.topbar {
  background: var(--teal);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  min-height: 42px;
  align-items: center;
}
.topbar a { color: #fff; }
.topbar span { white-space: nowrap; }

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 20px;
}
.logo img { height: 58px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav > li { position: relative; }
.nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 0;
  display: inline-block;
}
.nav a:hover, .nav a.active { color: var(--orange); }
.nav > li > a { box-shadow: inset 0 -2px 0 transparent; }
.nav > li:hover > a, .nav > li > a.active { box-shadow: inset 0 -2px 0 var(--orange); }
.sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  padding: 8px 0;
  list-style: none;
  margin: 0;
}
.nav > li:hover .sub, .nav > li:focus-within .sub { display: block; }
.sub a { display: block; padding: 8px 16px; font-weight: 500; }
.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  width: 44px;
  height: 44px;
  border-radius: 4px;
}
.menu-btn span { display: block; height: 2px; margin: 5px 10px; background: var(--ink); }

.hero {
  min-height: 460px;
  display: flex;
  align-items: center;
  background: #12383a center/cover no-repeat;
  color: #fff;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,40,42,.78), rgba(0,144,152,.45));
}
.hero .wrap { position: relative; padding: 70px 0; }
.hero h1 {
  margin: 0 0 10px;
  font-size: 56px;
  line-height: 1.1;
  font-weight: 700;
}
.hero p { margin: 0; max-width: 640px; font-size: 20px; font-weight: 500; }

.block { padding: 72px 0; }
.block.peach { background: #fff6ee; }
.block.soft { background: #f6f7f8; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.photo {
  min-height: 320px;
  background: #ddd center/cover no-repeat;
  border-radius: 2px;
}
h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 14px; }
h3 { font-size: 28px; font-weight: 700; }
.more {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  color: var(--orange);
}

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.step {
  background: #fff;
  border-top: 4px solid var(--teal);
  padding: 18px 16px 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,.04);
}
.step strong { display: block; color: var(--teal); font-size: 13px; letter-spacing: .04em; }

.cost {
  background: var(--teal);
  color: #fff;
  padding: 64px 0;
}
.cost h2, .cost p { color: #fff; }
.cost-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.cost h2 { font-size: 34px; margin-bottom: 8px; }
.tool {
  background: #fff;
  color: var(--text);
  padding: 22px;
  border-radius: 4px;
}
.tool label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.tool select, .tool button {
  width: 100%;
  font: inherit;
  margin-top: 6px;
}
.tool select { padding: 10px; border: 1px solid var(--line); background: #fff; }
.tool button, .phone-btn {
  background: var(--orange);
  color: #fff;
  border: 0;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}
.tool button:hover, .phone-btn:hover { background: #d85a0c; color: #fff; }
#cost-out { min-height: 3.2em; margin: 12px 0 0; font-weight: 600; color: var(--ink); }
.phone-line { margin-top: 22px; font-size: 18px; }
.phone-line a { color: #fff; font-size: 32px; font-weight: 700; }

.site-footer { background: #23282d; color: #d5d8dc; padding: 48px 0 18px; font-size: 14px; }
.foot {
  display: grid;
  grid-template-columns: 1.3fr .8fr .9fr;
  gap: 30px;
}
.site-footer h3 { color: #fff; font-size: 18px; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 14px; font-size: 13px; }

.legal { padding: 56px 0 80px; }
.legal h1 { font-size: 40px; }
.legal h2 { font-size: 22px; margin-top: 28px; }

.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}
.cookie p { margin: 0; font-size: 14px; }
.cookie button { background: var(--teal); color: #fff; border: 0; padding: 10px 16px; font-weight: 700; cursor: pointer; }

.calc-wrap { background: #f4f7f8; padding: 64px 0 72px; }
.calc-wrap h2 { font-size: 34px; }
.calc-lead { max-width: 720px; }
.calc { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.stepbar { display: flex; gap: 8px; list-style: none; margin: 0 0 18px; padding: 0; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: #8b939a; }
.stepbar .is-on { color: var(--teal); }
.q { margin: 16px 0 8px; font-weight: 700; color: var(--ink); }
.picks, .split-picks { display: flex; flex-wrap: wrap; gap: 12px; }
.split-picks { align-items: flex-start; }
.pick {
  position: relative;
  width: 132px;
  min-height: 118px;
  border: 1px solid #d5dde2;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  background: #fff;
}
.pick input { position: absolute; opacity: 0; }
.pick:has(input:checked) { border-color: var(--teal); background: #e7f6f6; box-shadow: inset 0 0 0 1px var(--teal); }
.ico {
  width: 72px; height: 64px;
  background: url("/assets/img/icons.jpg") no-repeat;
  background-size: 400% 400%;
}
.i-wc { background-position: 0 0; }
.i-sink { background-position: 33.333% 0; }
.i-shower { background-position: 66.666% 0; }
.i-tub { background-position: 100% 0; }
.i-wtile { background-position: 0 33.333%; }
.i-ftile { background-position: 33.333% 33.333%; }
.i-vanity { background-position: 66.666% 33.333%; }
.i-mcab { background-position: 100% 33.333%; }
.i-mirror { background-position: 0 66.666%; }
.i-norad { background-position: 33.333% 66.666%; }
.i-rad { background-position: 66.666% 66.666%; }
.i-towel { background-position: 100% 66.666%; }
.i-valve { background-position: 0 100%; }
.i-paint { background-position: 33.333% 100%; }
.i-rain { background-position: 66.666% 100%; }
.i-screen { background-position: 100% 100%; }
.slider { display: block; margin: 14px 0; font-weight: 700; color: var(--ink); }
.slider input { width: 100%; margin-top: 6px; accent-color: var(--teal); }
.slider output { font-weight: 600; color: var(--text); }
.pricebox {
  margin-top: 18px;
  border: 1px solid #d6dde2;
  border-left: 4px solid var(--teal);
  background: #f6f9fb;
  border-radius: 8px;
  padding: 14px 16px;
  font-weight: 700;
  color: var(--ink);
}
.pricebox strong { display: block; font-size: 28px; }
.calc-nav { display: flex; gap: 10px; margin-top: 14px; }
.calc-nav button {
  background: var(--teal);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
}
.phone-link { color: var(--teal); font-size: 28px; font-weight: 700; }

@media (max-width: 900px) {
  .topbar { display: none; }
  .menu-btn { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
  }
  .nav.open { display: flex; }
  .sub { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 8px 12px; }
  .hero h1 { font-size: 38px; }
  .split, .split.reverse, .cost-grid, .steps, .foot { grid-template-columns: 1fr; direction: ltr; }
  .photo { min-height: 220px; }
  .cookie { flex-direction: column; align-items: stretch; }
}
