:root {
  --ink: #141716;
  --muted: #68716c;
  --paper: #f4f2eb;
  --white: #ffffff;
  --green: #174d38;
  --green-dark: #0f2d23;
  --orange: #ed7a16;
  --yellow: #ffd31a;
  --line: #d9ddd4;
  --shadow: 0 22px 70px rgba(18, 23, 20, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
}

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

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

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

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  padding: 8px 10px 8px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 48px rgba(20, 23, 22, 0.18);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  place-items: center;
  min-height: 48px;
}

.brand img {
  width: 136px;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 6px;
  color: #26302a;
  font-size: 14px;
  font-weight: 850;
}

.main-nav a:hover {
  background: #edf0e8;
}

.menu-toggle {
  display: none;
}

.hero-slider {
  min-height: 760px;
  background: var(--green-dark);
}

.hero-slide {
  position: relative;
  min-height: 760px;
  background-image: var(--slide-image);
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 22, 17, 0.9) 0%, rgba(10, 22, 17, 0.68) 45%, rgba(10, 22, 17, 0.08) 86%),
    linear-gradient(0deg, rgba(10, 22, 17, 0.65) 0%, rgba(10, 22, 17, 0.05) 45%);
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 190px 0 120px;
  color: var(--white);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-inner p:not(.eyebrow) {
  max-width: 660px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--orange);
  color: var(--white);
}

.btn.secondary {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn.dark {
  background: var(--green);
  color: var(--white);
}

.btn.outline {
  border-color: rgba(20, 23, 22, 0.18);
  color: var(--ink);
}

.quick-info {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1180px, calc(100% - 32px));
  margin: -72px auto 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.quick-info div {
  min-height: 112px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.quick-info div:last-child {
  border-right: 0;
}

.quick-info span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-info strong {
  display: block;
  font-size: 18px;
  line-height: 1.35;
}

.quick-info strong + strong {
  margin-top: 6px;
}

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

.section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-head > p:not(.eyebrow),
.about-copy > p:not(.eyebrow),
.contacts > div > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

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

.work-card {
  display: grid;
  grid-template-rows: 300px 1fr;
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  scroll-margin-top: 110px;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-body {
  display: grid;
  align-content: start;
  padding: 28px;
}

h3 {
  margin-bottom: 20px;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: 0;
}

.price-rows {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.price-rows p {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  align-items: start;
  margin: 0;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfaf5;
}

.price-rows p:nth-child(even) {
  background: #f1f0e9;
}

.price-rows p:last-child {
  border-bottom: 0;
}

.price-rows span {
  display: block;
  color: var(--muted);
  min-width: 0;
  line-height: 1.35;
}

.price-rows strong {
  display: block;
  line-height: 1.45;
  white-space: normal;
}

.work-body small {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.pool-card {
  grid-column: span 2;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  grid-template-rows: auto;
}

.gallery-section {
  padding-top: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  background: var(--ink);
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0.86fr;
  gap: 50px;
  align-items: start;
}

.numbers {
  display: grid;
  gap: 10px;
}

.numbers div {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  min-height: 118px;
  padding: 24px;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
}

.numbers strong {
  color: var(--yellow);
  font-size: 50px;
  line-height: 1;
}

.numbers span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 850;
}

.contacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 90px;
  padding: clamp(34px, 5vw, 56px);
  border-radius: 8px;
  background: var(--yellow);
  box-shadow: var(--shadow);
}

.contacts h2 {
  max-width: 680px;
}

.floating-actions {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 60;
  display: grid;
  gap: 10px;
}

.float-btn {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 14px 34px rgba(20, 23, 22, 0.22);
  transition: transform 180ms ease, background 180ms ease;
}

.float-btn:hover {
  transform: translateY(-2px);
}

.float-btn.phone {
  background: var(--orange);
}

.float-btn.up {
  background: var(--green);
}

.footer {
  display: grid;
  gap: 12px;
  padding: 48px 16px;
  text-align: center;
  background: var(--ink);
  color: var(--white);
}

.footer img {
  width: 140px;
  margin: 0 auto 8px;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--white);
}

.footer p {
  margin-bottom: 0;
}

.footer small {
  color: rgba(255, 255, 255, 0.54);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .menu-toggle {
    display: inline-grid;
    justify-self: end;
    gap: 6px;
    width: 46px;
    height: 46px;
    padding: 13px 10px;
    border: 0;
    border-radius: 6px;
    background: var(--green);
  }

  .menu-toggle span {
    display: block;
    height: 2px;
    background: var(--white);
  }

  .main-nav {
    display: none;
  }

  .main-nav.is-open {
    display: grid;
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 4px;
    padding-top: 8px;
  }

  .main-nav.is-open a {
    background: #edf0e8;
  }

  .quick-info,
  .work-grid,
  .about,
  .contacts {
    grid-template-columns: 1fr;
  }

  .quick-info {
    margin-top: -44px;
  }

  .quick-info div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-info div:last-child {
    border-bottom: 0;
  }

  .pool-card {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .brand img {
    width: 122px;
  }

  .hero-slider,
  .hero-slide {
    min-height: 690px;
  }

  .hero-inner {
    width: calc(100% - 28px);
    padding: 128px 0 90px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 32px;
  }

  .btn {
    width: 100%;
  }

  .quick-info {
    width: calc(100% - 28px);
    margin-top: 0;
  }

  .section {
    width: calc(100% - 28px);
    padding: 72px 0;
  }

  .work-card {
    grid-template-rows: 230px 1fr;
  }

  .work-body {
    padding: 22px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery img {
    height: 230px;
  }

  .numbers div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contacts {
    width: calc(100% - 28px);
    margin-bottom: 64px;
  }

  .floating-actions {
    right: 14px;
    bottom: 16px;
  }

  .float-btn {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }
}
