:root {
  --bg: #f7f4ee;
  --paper: #ffffff;
  --ink: #1d2521;
  --muted: #66716c;
  --line: #e4ded3;
  --green: #2f6f55;
  --green-dark: #1d513e;
  --clay: #b55f3f;
  --sand: #dbc8aa;
  --blue: #346c8c;
  --shadow: 0 18px 50px rgba(42, 48, 44, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 14px;
  left: 50%;
  width: min(1160px, calc(100% - 28px));
  height: 68px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 45px rgba(21, 37, 31, 0.12);
  backdrop-filter: blur(18px);
}

.brand,
.header-call,
.button,
.contact-panel a,
.contact-panel span {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 205px;
}

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

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

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

.nav {
  display: flex;
  gap: 24px;
  color: #34423b;
  font-size: 15px;
}

.nav a:hover {
  color: var(--green);
}

.header-call {
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
  font-weight: 700;
}

.header-call svg,
.button svg,
.rating-line svg,
.contact-panel svg,
.notice-inner svg,
.guide-card svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: end;
  overflow: hidden;
  color: white;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(14, 28, 22, 0.72), rgba(14, 28, 22, 0.24) 55%, rgba(14, 28, 22, 0.08)),
    url("assets/hero-paving.png") center/cover;
  transform: scale(1.03);
}

.hero-shade {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.3));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 150px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 46px;
  align-items: end;
}

.hero-copy {
  max-width: 760px;
}

.rating-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.rating-line span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

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

h1 {
  max-width: 820px;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 650px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

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

.button {
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--green);
  color: white;
}

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

.button.light {
  background: white;
  color: var(--ink);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.44);
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.hero-facts {
  display: grid;
  gap: 10px;
}

.hero-facts div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.hero-facts b {
  display: block;
  font-size: 28px;
  line-height: 1.1;
}

.hero-facts span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
}

.section,
.notice-band {
  position: relative;
}

.section {
  padding: 82px 0;
}

.section-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.notice-band {
  background: #fff9ed;
  border-bottom: 1px solid var(--line);
}

.notice-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #5c4a27;
}

.notice-inner svg {
  color: var(--clay);
}

.intro {
  padding-bottom: 46px;
}

.intro-grid,
.contacts-grid,
.drainage-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: 54px;
  align-items: start;
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  max-width: 800px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  font-size: 20px;
  line-height: 1.2;
}

.intro-points {
  display: grid;
  gap: 12px;
  color: #35413c;
  font-size: 18px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 26px;
}

.section-heading p {
  max-width: 370px;
  color: var(--muted);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: #43504a;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.filter.active,
.filter:hover {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

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

.catalog-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 26px;
}

.catalog-more[hidden] {
  display: none;
}

.catalog-more span {
  color: var(--muted);
  font-size: 14px;
}

.product-card,
.guide-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(42, 48, 44, 0.07);
  overflow: hidden;
}

.product-card {
  display: grid;
  grid-template-rows: 210px 1fr;
}

.product-card[hidden] {
  display: none;
}

.product-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: #e9e3d8;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.product-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.product-title {
  min-width: 0;
  font-size: 19px;
  font-weight: 850;
  line-height: 1.18;
}

.product-price {
  white-space: nowrap;
  color: var(--green);
  font-weight: 900;
  font-size: 20px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.product-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f2eee6;
  color: #56625d;
  font-size: 13px;
  font-weight: 700;
}

.product-note {
  margin-top: auto;
  color: var(--muted);
  font-size: 14px;
}

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

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

.guide-card {
  padding: 24px;
}

.guide-card svg {
  width: 34px;
  height: 34px;
  color: var(--blue);
  margin-bottom: 22px;
}

.guide-card p {
  margin-top: 12px;
  color: var(--muted);
}

.works-section {
  background: #fbfaf7;
}

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

.works-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eee8dd;
  box-shadow: 0 10px 24px rgba(42, 48, 44, 0.08);
}

.drainage-section {
  background: #eef5f2;
}

.drainage-layout p {
  max-width: 640px;
  margin: 18px 0 26px;
  color: #53635d;
  font-size: 18px;
}

.drainage-list {
  display: grid;
  gap: 10px;
}

.drainage-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  padding: 0 18px;
  border: 1px solid #d5e1dc;
  border-radius: var(--radius);
  background: white;
}

.drainage-list b {
  color: var(--green);
  white-space: nowrap;
}

.contact-panel {
  display: grid;
  gap: 10px;
}

.contact-panel a,
.contact-panel span {
  gap: 12px;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 8px 22px rgba(42, 48, 44, 0.06);
}

.contact-panel svg {
  color: var(--green);
}

.contacts p {
  max-width: 560px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
}

.footer {
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  gap: 10px;
}

.float-button {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(21, 37, 31, 0.24);
}

.float-button svg {
  width: 22px;
  height: 22px;
}

.float-button.call {
  background: var(--green);
  color: white;
}

.float-button.top {
  background: white;
  color: var(--ink);
}

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

@media (max-width: 980px) {
  .site-header {
    height: auto;
    align-items: start;
  }

  .nav {
    display: none;
  }

  .hero-inner,
  .intro-grid,
  .contacts-grid,
  .drainage-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 28px;
  }

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

  .product-grid,
  .guide-grid,
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    top: 8px;
    width: calc(100% - 16px);
    padding: 8px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .header-call {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .header-call span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .hero {
    min-height: 96vh;
  }

  .hero-inner,
  .section-inner {
    width: min(100% - 28px, 1160px);
  }

  .hero-inner {
    padding-top: 116px;
    padding-bottom: 30px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .hero-actions .button {
    flex: 1 1 150px;
  }

  .catalog-more {
    display: grid;
    justify-items: center;
  }

  .hero-facts,
  .product-grid,
  .guide-grid,
  .works-grid {
    grid-template-columns: 1fr;
  }

  .hero-facts div {
    padding: 14px;
  }

  .section {
    padding: 58px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 12px;
  }

  .product-card {
    grid-template-rows: 190px 1fr;
  }

  .product-image {
    height: 190px;
  }

  .footer-inner {
    display: grid;
  }

  .floating-actions {
    right: 12px;
    bottom: 12px;
  }

  .float-button {
    width: 48px;
    height: 48px;
  }
}
