:root {
  --ink: #162124;
  --muted: #627176;
  --line: #dce5e6;
  --surface: #f7faf9;
  --white: #ffffff;
  --teal: #0b7f86;
  --teal-dark: #075b62;
  --coral: #ef7b54;
  --sun: #f5c84c;
  --shadow: 0 18px 48px rgba(16, 33, 36, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  max-width: 100%;
}

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

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

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--teal);
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
}

.nav a:hover,
.header-phone:hover {
  color: var(--teal);
}

.header-phone {
  min-width: max-content;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  background: #122326;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 22, 24, 0.88), rgba(11, 22, 24, 0.56) 42%, rgba(11, 22, 24, 0.1) 76%),
    linear-gradient(0deg, rgba(11, 22, 24, 0.55), rgba(11, 22, 24, 0) 34%);
}

.hero-content {
  position: relative;
  display: flex;
  min-height: 88vh;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 112px 0 54px;
  color: var(--white);
  flex-direction: column;
  justify-content: center;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

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

h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 23px);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #102124;
  background: var(--sun);
}

.button.primary:hover {
  background: #ffd867;
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 180px));
  gap: 10px;
  margin: 48px 0 0;
}

.hero-facts div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-facts dt {
  font-size: 22px;
  font-weight: 900;
}

.hero-facts dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1fr);
  gap: 36px;
  align-items: start;
}

.intro > p {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
}

.section-head {
  display: flex;
  max-width: 840px;
  margin-bottom: 32px;
  flex-direction: column;
}

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

.service-card,
.price-grid article {
  min-height: 240px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-card p,
.price-grid p,
.estimate p,
.steps p,
.cta p {
  margin: 0;
  color: var(--muted);
}

.service-icon {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border: 9px solid var(--teal);
  border-top-color: var(--sun);
  border-radius: 8px;
}

.service-icon.ceiling {
  border-color: var(--coral);
  border-bottom-color: var(--teal);
}

.service-icon.bath {
  border-color: var(--sun);
  border-left-color: var(--teal);
}

.service-icon.clean {
  border-color: var(--teal-dark);
  border-right-color: var(--coral);
}

.band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band-inner {
  display: grid;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.9fr);
  gap: 42px;
  align-items: center;
}

.band-inner img,
.work-figure img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--teal);
  content: "";
}

.check-list li::after {
  position: absolute;
  left: 6px;
  top: 4px;
  width: 5px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg);
}

.calc-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 420px);
  gap: 20px;
  align-items: stretch;
}

.calc-panel,
.estimate {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.calc-panel {
  display: grid;
  gap: 24px;
}

.calc-panel label {
  display: grid;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--teal);
}

.toggle-row {
  grid-template-columns: 24px 1fr;
  align-items: center;
}

.toggle-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--teal);
}

.estimate {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  color: var(--white);
  background: var(--teal-dark);
}

.estimate span {
  color: rgba(255, 255, 255, 0.72);
}

.estimate strong {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.estimate p {
  color: rgba(255, 255, 255, 0.78);
}

.estimate .button {
  align-self: flex-start;
}

.price-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-grid article {
  min-height: 210px;
}

.price-grid span {
  color: var(--teal);
  font-weight: 900;
}

.price-grid strong {
  display: block;
  margin: 16px 0 12px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1;
}

.work-figure {
  margin: 0;
}

.work-figure figcaption {
  max-width: 760px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.steps span {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--coral);
  font-weight: 900;
}

.steps strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.cta {
  display: grid;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 78px;
  padding: 42px;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 24px;
  align-items: center;
  border-radius: 8px;
  color: var(--white);
  background: #17282c;
}

.cta h2 {
  max-width: 760px;
}

.cta p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.78);
}

.avito-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  color: var(--white);
  font-weight: 800;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(16px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .header-phone {
    position: absolute;
    right: 16px;
    top: 22px;
  }

  .hero,
  .hero-content {
    min-height: 760px;
  }

  .intro,
  .band-inner,
  .calc-layout,
  .cta {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  .header-phone {
    position: static;
  }

  .hero,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    justify-content: flex-end;
    padding-top: 76px;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(11, 22, 24, 0.9), rgba(11, 22, 24, 0.18) 74%),
      linear-gradient(90deg, rgba(11, 22, 24, 0.55), rgba(11, 22, 24, 0.05));
  }

  .hero-facts,
  .service-grid,
  .price-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .section,
  .band-inner {
    padding: 58px 0;
  }

  .service-card,
  .price-grid article {
    min-height: auto;
  }

  .cta {
    padding: 28px;
  }

  .footer {
    flex-direction: column;
  }
}
