*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #2D4739;
  --green-dark: #1A3C34;
  --pink: #F9C8CC;
  --pink-light: #FDE2E4;
  --white: #FFFFFF;
  --grey-bg: #F8F8F8;
  --text: #333333;
  --text-muted: #666666;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(45, 71, 57, 0.08);

  /* Order modal — перевизначте для кожного сайту */
  --om-primary: var(--green);
  --om-primary-hover: var(--green-dark);
  --om-accent: var(--pink);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--green-dark);
  text-align: center;
  margin-bottom: 3rem;
}

.section-title--left {
  text-align: left;
  margin-bottom: 1.25rem;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

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

.btn--primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: 0;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 64%, rgba(248, 248, 248, 0.82) 64% 100%),
    linear-gradient(90deg, var(--pink-light) 0%, rgba(253, 226, 228, 0.98) 43%, rgba(253, 226, 228, 0.66) 62%, rgba(248, 248, 248, 0.9) 100%);
  z-index: 0;
}

.hero__bg::before {
  content: '';
  position: absolute;
  top: -18%;
  right: 28%;
  width: 38%;
  height: 74%;
  background: linear-gradient(160deg, var(--pink) 0%, var(--pink-light) 100%);
  transform: rotate(-8deg);
  border-radius: 40% 60% 50% 50%;
  opacity: 0.38;
}

.hero__visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: min(58vw, 760px);
  height: auto;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}

.hero__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(253, 226, 228, 0.84) 0%, rgba(253, 226, 228, 0.4) 18%, rgba(253, 226, 228, 0) 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 72%, rgba(248, 248, 248, 0.66) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.48fr) minmax(0, 0.52fr);
  align-items: center;
  min-height: 520px;
  padding-block: 4rem 5rem;
}

.hero__content {
  max-width: 560px;
}

.hero__tag {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--green-dark);
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero__price {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 1.5rem;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Features */
.features {
  padding: 5rem 0;
  background: var(--white);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.feature {
  text-align: center;
}

.feature__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1.5rem;
  color: var(--green-dark);
}

.feature__icon svg {
  width: 100%;
  height: 100%;
}

.feature__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}

.feature__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* How it works */
.how-it-works {
  padding: 5rem 0;
  background: var(--grey-bg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step__image {
  width: 100%;
  max-width: 220px;
  margin: 0 auto 1.25rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--grey-bg);
}

.step__image--contain {
  max-width: 168px;
  height: 148px;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

.step__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}

.step__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 280px;
  margin-inline: auto;
}

/* Design detail */
.design-detail {
  padding: 5rem 0;
  background: var(--white);
}

.design-detail__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.design-detail__image {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--green);
}

.design-detail__text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
  border: 0;
}

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

.color-option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.875rem 0.5rem 0.5rem;
  border: 1px solid var(--line, rgba(0, 0, 0, 0.1));
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.color-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.color-option:has(input:checked) {
  border-color: var(--green-dark);
  background: rgba(45, 71, 57, 0.06);
}

.color-option__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green-dark);
}

.swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.color-option:has(input:checked) .swatch {
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--green-dark);
}

.swatch--green { background: var(--green); }
.swatch--pink { background: var(--pink); }
.swatch--white { background: var(--white); }

/* Lifestyle */
.lifestyle {
  padding: 5rem 0;
  background: var(--grey-bg);
}

.lifestyle__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.lifestyle__image {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 1rem;
  background: var(--pink-light);
}

.lifestyle__caption {
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-align: center;
}

/* Specs */
.specs {
  padding: 5rem 0;
  background: var(--white);
}

.specs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  list-style: none;
}

.spec {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--grey-bg);
  border-radius: var(--radius);
}

.spec__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: var(--green);
}

.spec__icon svg {
  width: 100%;
  height: 100%;
}

.spec__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.spec__value {
  font-size: 0.9375rem;
  color: var(--text);
}

/* Footer CTA */
.footer-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--pink-light) 0%, var(--pink) 100%);
}

.footer-cta__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.footer-cta__image {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  aspect-ratio: 7 / 6;
  object-fit: cover;
  background: var(--pink);
}

.footer-cta__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.footer-cta__subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-cta__price {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 900px) {
  .design-detail__inner,
  .footer-cta__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0 4rem;
  }

  .hero__visual {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    z-index: 2;
    width: min(100% - 48px, 640px);
    height: auto;
    aspect-ratio: 12 / 7;
    margin: 0 auto 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 52px rgba(45, 71, 57, 0.14);
  }

  .hero__visual::before {
    display: none;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 0;
    text-align: center;
  }

  .hero__content {
    max-width: 620px;
    margin-inline: auto;
  }

  .hero__image {
    object-position: center;
  }

  .section-title--left {
    text-align: center;
  }

  .color-swatches {
    justify-content: center;
  }

  .footer-cta__image {
    margin-inline: auto;
  }

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

  .steps {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-inline: auto;
  }

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

@media (max-width: 560px) {
  .features__grid,
  .lifestyle__grid,
  .specs__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 1.5rem 0 3rem;
  }

  .hero__visual {
    width: min(100% - 32px, 520px);
    margin-bottom: 1.75rem;
  }

  .hero__title {
    font-size: clamp(2rem, 11vw, 2.65rem);
  }
}
