:root {
  --black: #070707;
  --ink: #181818;
  --gray-900: #242424;
  --gray-700: #4a4a4a;
  --gray-500: #737373;
  --gray-300: #d4d4d4;
  --gray-200: #e8e8e8;
  --gray-100: #f5f5f5;
  --white: #ffffff;
  --teal: #36b3a8;
  --teal-dark: #23877f;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--gray-200);
  backdrop-filter: blur(14px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--black);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--teal);
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  border-radius: 6px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--black);
}

.section-band,
.section,
.split-section,
.contact-band {
  padding: clamp(56px, 8vw, 108px) clamp(20px, 5vw, 72px);
}

#catalog,
#product-template,
#wordpress,
#contact {
  scroll-margin-top: 88px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.74fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
  min-height: calc(100vh - 72px);
  color: var(--black);
  background:
    linear-gradient(90deg, var(--white), rgba(245, 245, 245, 0.94)),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0, rgba(0, 0, 0, 0.05) 1px, transparent 1px, transparent 58px);
}

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

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

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

h1 {
  margin: 0 0 22px;
  max-width: 870px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 16px;
  color: var(--black);
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  color: var(--black);
  font-size: 21px;
  line-height: 1.2;
}

.lead {
  max-width: 760px;
  margin: 0;
  color: var(--gray-700);
  font-size: clamp(18px, 2vw, 23px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid var(--black);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

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

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

.button.secondary {
  background: transparent;
  color: var(--black);
}

.button.secondary:hover {
  background: var(--gray-100);
}

.hero-media {
  min-height: 520px;
  display: grid;
  place-items: center;
  padding: 34px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-media img {
  max-height: 430px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.16));
}

.section {
  background: var(--white);
}

.section:nth-of-type(odd) {
  background: var(--gray-100);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--gray-700);
  font-size: 18px;
}

.section-heading.compact {
  margin-bottom: 28px;
}

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

.category-grid article,
.implementation-grid article,
.sitemap-grid article,
.feature-list article {
  padding: 26px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
}

.category-grid span {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.category-grid p,
.implementation-grid p,
.feature-list p,
.product-card p,
.sitemap-grid li {
  margin: 0;
  color: var(--gray-700);
}

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

.product-card {
  display: grid;
  grid-template-rows: 230px 1fr;
  min-height: 468px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
}

.product-card img {
  width: 100%;
  height: 100%;
  padding: 24px;
  object-fit: contain;
  background: linear-gradient(180deg, var(--gray-100), var(--white));
}

.product-card div {
  padding: 22px;
}

.product-card a {
  display: inline-block;
  margin-top: 14px;
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: none;
  border-bottom: 2px solid var(--teal);
}

.tag {
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 24px;
  background: var(--black);
  color: var(--white);
}

.panel {
  padding: clamp(30px, 5vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.panel h2,
.panel h3 {
  color: var(--white);
}

.panel p {
  color: var(--gray-300);
}

.split-section .eyebrow {
  color: var(--teal);
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-list article {
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--white);
  color: var(--black);
}

.feature-list article h3 {
  color: var(--black);
}

.sitemap-grid ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.sitemap-grid li {
  margin-bottom: 6px;
}

.wordpress-section {
  background: var(--white);
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  background: var(--gray-100);
  color: var(--black);
  border-top: 1px solid var(--gray-200);
}

.contact-band p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--gray-700);
  font-size: 18px;
}

.contact-actions {
  justify-content: flex-end;
  margin: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 72px);
  background: var(--black);
  color: var(--gray-300);
}

.site-footer img {
  width: 150px;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
}

@media (max-width: 1040px) {
  .hero,
  .split-section,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .implementation-grid,
  .sitemap-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 66px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 66px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

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

  .site-nav a::after {
    display: none;
  }

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

  h1 {
    font-size: 40px;
  }

  .category-grid,
  .implementation-grid,
  .sitemap-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 340px;
    padding: 18px;
  }

  .hero-media img {
    max-height: 280px;
  }

  .product-card {
    grid-template-rows: 200px 1fr;
    min-height: 0;
  }

  .site-footer {
    display: block;
  }

  .site-footer p {
    margin-top: 16px;
  }
}
