:root {
  --color-bg: #f4f1eb;
  --color-surface: #ffffff;
  --color-surface-muted: #ebe6dc;
  --color-text: #1f2a2e;
  --color-muted: #647174;
  --color-primary: #1f6f5b;
  --color-primary-dark: #155041;
  --color-accent: #d8943c;
  --color-border: #d9d2c6;
  --shadow-soft: 0 20px 60px rgba(31, 42, 46, 0.12);
  --shadow-card: 0 12px 34px rgba(31, 42, 46, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(216, 148, 60, 0.16), transparent 34rem),
    linear-gradient(180deg, #faf7f0 0%, var(--color-bg) 100%);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

table {
  width: 100%;
  border-collapse: collapse;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: calc(var(--max-width) + 48px);
  margin: 0 auto;
  padding: 18px 24px;
  background: rgba(250, 247, 240, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(217, 210, 198, 0.7);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo__mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--color-primary);
  border-radius: 12px;
}

.logo__text {
  font-size: 1.05rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--color-muted);
  font-size: 0.96rem;
}

.site-nav a,
.header-phone,
.site-footer a,
.contact-card a {
  transition: color 0.2s ease;
}

.site-nav a:hover,
.header-phone:hover,
.site-footer a:hover,
.contact-card a:hover {
  color: var(--color-primary);
}

.header-phone {
  font-weight: 700;
  color: var(--color-primary-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--color-text);
  border-radius: 999px;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 78px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 8vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.hero__lead,
.section__heading p,
.contacts__content p {
  color: var(--color-muted);
  font-size: 1.08rem;
}

.hero__lead {
  max-width: 620px;
  margin-bottom: 30px;
}

.hero__actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

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

.button--primary {
  color: #fff;
  background: var(--color-primary);
  box-shadow: 0 12px 24px rgba(31, 111, 91, 0.22);
}

.button--primary:hover {
  background: var(--color-primary-dark);
}

.button--secondary {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.75);
  border-color: var(--color-border);
}

.button--secondary:hover {
  box-shadow: var(--shadow-card);
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0;
  margin: 36px 0 0;
  list-style: none;
}

.hero__facts li {
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(217, 210, 198, 0.7);
  border-radius: var(--radius-md);
}

.hero__facts strong,
.hero__facts span {
  display: block;
}

.hero__facts strong {
  font-size: 1.15rem;
}

.hero__facts span {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.hero__card {
  position: relative;
  padding: 16px;
  background: linear-gradient(145deg, var(--color-surface) 0%, #eee8dc 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero__card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 12px);
}

.hero__badge {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: grid;
  gap: 2px;
  min-width: 132px;
  padding: 18px;
  color: #fff;
  background: var(--color-primary);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.hero__badge span {
  font-size: 0.82rem;
  opacity: 0.8;
}

.hero__badge strong {
  font-size: 1.45rem;
  line-height: 1;
}

.section__heading {
  max-width: 760px;
  margin-bottom: 42px;
}

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

.feature-card,
.product-card,
.price-table-wrap,
.contact-card,
.gallery-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(217, 210, 198, 0.75);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.feature-card {
  padding: 26px;
}

.feature-card__icon {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--color-accent);
  font-weight: 900;
}

.feature-card p,
.product-card p,
.product-card li,
.note {
  color: var(--color-muted);
}

.product-list {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr 0.95fr;
  gap: 18px;
}

.product-card {
  padding: 30px;
}

.product-card--accent {
  color: #fff;
  background:
    linear-gradient(rgba(31, 111, 91, 0.92), rgba(31, 111, 91, 0.92)),
    radial-gradient(circle at top right, rgba(216, 148, 60, 0.42), transparent 20rem);
  border-color: rgba(31, 111, 91, 0.4);
}

.product-card--accent p,
.product-card--accent li {
  color: rgba(255, 255, 255, 0.82);
}

.product-card ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  margin: 20px 0 0;
}

.price-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

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

.price-table-wrap {
  overflow: hidden;
}

.price-table-wrap h3 {
  padding: 24px 26px 0;
}

.price-table th,
.price-table td {
  padding: 16px 18px;
  text-align: left;
  border-top: 1px solid var(--color-border);
}

.price-table th {
  color: var(--color-primary-dark);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(235, 230, 220, 0.62);
}

.price-table td:last-child {
  white-space: nowrap;
  font-weight: 800;
}

.note {
  margin: 18px 0 0;
  padding: 18px 22px;
  background: rgba(216, 148, 60, 0.12);
  border: 1px solid rgba(216, 148, 60, 0.28);
  border-radius: var(--radius-md);
}

.gallery-groups {
  display: grid;
  gap: 48px;
}

.gallery-group__title {
  margin: 0 0 20px;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

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

.gallery-card {
  overflow: hidden;
  margin: 0;
}

.gallery-card__image,
.gallery-card img {
  display: grid;
  min-height: 220px;
  place-items: center;
  color: rgba(31, 42, 46, 0.58);
  font-weight: 900;
  background:
    linear-gradient(135deg, rgba(31, 111, 91, 0.18), rgba(216, 148, 60, 0.2)),
    repeating-linear-gradient(
      -45deg,
      rgba(31, 42, 46, 0.06) 0,
      rgba(31, 42, 46, 0.06) 8px,
      transparent 8px,
      transparent 18px
    );
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-card figcaption {
  padding: 16px 18px 18px;
  font-weight: 800;
}

.groundwater__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
}

.groundwater__media {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(217, 210, 198, 0.75);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.groundwater__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 12px);
}

.groundwater__content h2 {
  margin-bottom: 16px;
}

.groundwater__content p {
  color: var(--color-muted);
}

.groundwater__list {
  display: grid;
  gap: 10px;
  margin: 20px 0 28px;
  padding-left: 20px;
  color: var(--color-muted);
}

.groundwater__list li::marker {
  color: var(--color-primary);
}

.contacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  align-items: stretch;
}

.contacts__content {
  padding: 42px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(31, 111, 91, 0.96), rgba(21, 80, 65, 0.96)),
    radial-gradient(circle at top right, rgba(216, 148, 60, 0.45), transparent 22rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.contacts__content .eyebrow,
.contacts__content p {
  color: rgba(255, 255, 255, 0.82);
}

.contacts__content .button--secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 34px;
  font-style: normal;
}

.contact-card strong {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.contact-card a {
  color: var(--color-primary-dark);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 46px;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-header {
    gap: 16px;
  }

  .header-phone {
    display: none;
  }

  .hero,
  .contacts,
  .groundwater__layout {
    grid-template-columns: 1fr;
  }

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

  .cards-grid,
  .product-list,
  .price-layout,
  .price-layout--three,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card--accent {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 14px 18px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 72px 18px auto;
    display: grid;
    gap: 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

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

  .site-nav a:hover {
    background: var(--color-surface-muted);
  }

  .section {
    padding: 68px 18px;
  }

  .hero__facts,
  .cards-grid,
  .product-list,
  .price-layout,
  .price-layout--three,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero__card {
    padding: 22px;
  }

  .hero__badge {
    right: 18px;
    bottom: 18px;
  }

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

  .price-table {
    min-width: 560px;
  }

  .contacts__content,
  .contact-card {
    padding: 28px;
  }

  .contact-actions .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    padding-inline: 18px;
  }
}

@media (max-width: 480px) {
  .logo__text {
    display: none;
  }

  h1 {
    font-size: clamp(2.25rem, 14vw, 3.2rem);
  }

  .button {
    width: 100%;
  }
}
