:root {
  --color-ink: #090f2d;
  --color-muted: #5f6170;
  --color-paper: #f7f3ec;
  --color-surface: #fffaf2;
  --color-line: #dfd5c7;
  --color-accent: #4c3b8f;
  --color-accent-dark: #090f2d;
  --color-warm: #f4c51d;
  --color-fire: #f04a22;
  --color-green: #28a35a;
  --shadow-soft: 0 18px 50px rgb(9 15 45 / 0.12);
  --page: min(1180px, calc(100vw - 32px));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-size: 16px;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

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

.skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--color-ink);
  color: white;
}

.site-header,
.site-footer,
.section,
.collection-main,
.product-main {
  width: var(--page);
  margin-inline: auto;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 18px 0;
}

.site-header__brand {
  display: grid;
  gap: 0;
  font-weight: 760;
  text-decoration: none;
  letter-spacing: 0;
  line-height: 1.02;
}

.brand-word {
  color: var(--color-ink);
  font-size: 1.45em;
  font-weight: 860;
  letter-spacing: 0.08em;
}

.site-header__nav,
.site-header__actions,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.site-header__nav a,
.site-header__actions a,
.site-footer a {
  color: var(--color-muted);
  text-decoration: none;
}

.hero-configurator {
  position: relative;
  overflow: hidden;
  min-height: min(760px, calc(100vh - 82px));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: stretch;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  background:
    linear-gradient(90deg, rgb(255 255 255 / 0), rgb(255 255 255 / 0.68)),
    var(--color-paper);
}

.paint-splash {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  filter: saturate(1.08);
  opacity: 0.85;
}

.paint-splash::before,
.paint-splash::after {
  content: "";
  position: absolute;
  border-radius: 48% 52% 41% 59% / 61% 39% 61% 39%;
}

.paint-splash--warm {
  width: 420px;
  height: 300px;
  left: 45%;
  top: 6%;
  background:
    radial-gradient(circle at 24% 58%, var(--color-green) 0 12%, transparent 13%),
    radial-gradient(circle at 48% 20%, var(--color-warm) 0 20%, transparent 21%),
    radial-gradient(circle at 67% 38%, #f8991d 0 24%, transparent 25%),
    radial-gradient(circle at 80% 18%, var(--color-fire) 0 14%, transparent 15%);
}

.paint-splash--warm::before {
  inset: 62px 40px auto auto;
  width: 210px;
  height: 110px;
  background: #f4c51d;
}

.paint-splash--cool {
  width: 520px;
  height: 360px;
  right: -110px;
  bottom: -70px;
  background:
    radial-gradient(circle at 24% 48%, #d4cce8 0 20%, transparent 21%),
    radial-gradient(circle at 45% 38%, #5c4da0 0 28%, transparent 29%),
    radial-gradient(circle at 72% 44%, #2f245c 0 24%, transparent 25%),
    radial-gradient(circle at 52% 68%, #8b4da0 0 16%, transparent 17%);
}

.paint-splash--cool::before {
  inset: 82px auto auto 96px;
  width: 260px;
  height: 170px;
  background: #5c4da0;
  opacity: 0.62;
}

.paint-splash--cool::after {
  left: 230px;
  top: 230px;
  width: 10px;
  height: 180px;
  background: #5c4da0;
  border-radius: 999px;
}

.hero-configurator__media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.hero-configurator__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 78px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
  max-width: 9.5em;
}

h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.4vw, 3.25rem);
}

.hero-configurator__content > p:not(.eyebrow),
.section__header p,
.editorial-band p,
.product-main .rte {
  color: var(--color-muted);
  max-width: 62ch;
}

.configurator-card,
.product-configurator {
  margin-top: 28px;
  padding: 18px;
  background: rgb(255 255 255 / 0.92);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-soft);
}

fieldset {
  min-width: 0;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 8px;
  font-weight: 720;
}

label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0 12px 10px 0;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--color-accent);
}

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

.configurator-card__grid label {
  display: grid;
  gap: 8px;
}

.configurator-card__result {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 18px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--color-accent-dark);
  background: var(--color-accent-dark);
  color: white;
  text-decoration: none;
  font-weight: 720;
  cursor: pointer;
}

.button[disabled],
.button.is-disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

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

.trust-bar {
  width: var(--page);
  margin: 28px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-line);
  border: 1px solid var(--color-line);
}

.trust-bar > div {
  background: var(--color-surface);
  padding: 18px;
}

.trust-bar span {
  display: block;
  color: var(--color-muted);
}

.section {
  padding: 64px 0;
}

.section__header {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.collection-tiles,
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.collection-tiles a,
.product-card,
.cart-line,
.contact-cta,
.newsletter {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
}

.collection-tiles a {
  min-height: 130px;
  display: flex;
  align-items: end;
  padding: 18px;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 760;
  position: relative;
  overflow: hidden;
}

.collection-tiles a::before {
  content: "";
  position: absolute;
  width: 96px;
  height: 70px;
  right: -14px;
  top: -16px;
  border-radius: 45% 55% 62% 38% / 52% 44% 56% 48%;
  background: var(--color-warm);
  opacity: 0.22;
}

.collection-tiles a:nth-child(2)::before,
.collection-tiles a:nth-child(5)::before {
  background: var(--color-accent);
}

.collection-tiles a:nth-child(3)::before,
.collection-tiles a:nth-child(6)::before {
  background: var(--color-green);
}

.editorial-band {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: clamp(24px, 6vw, 80px);
  align-items: center;
}

.editorial-band img,
.product-media img,
.product-card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-main {
  padding: 44px 0 72px;
}

.product-main__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.product-main__price {
  margin: 18px 0;
  font-size: 1.35rem;
  font-weight: 760;
}

.product-card__content {
  padding: 16px;
}

.product-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.product-card a {
  text-decoration: none;
}

.collection-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0;
  padding: 12px 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  color: var(--color-muted);
}

.breadcrumbs {
  margin-bottom: 22px;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  text-decoration: none;
}

.faq details {
  border-top: 1px solid var(--color-line);
  padding: 18px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 760;
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 24px;
  align-items: end;
  padding: 28px;
}

.newsletter h2,
.newsletter p {
  grid-column: 1 / -1;
}

.newsletter form {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.newsletter input,
.search-main input {
  min-height: 44px;
  border: 1px solid var(--color-line);
  background: white;
  padding: 10px 12px;
  flex: 1;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 0;
  border-top: 1px solid var(--color-line);
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  margin-bottom: 10px;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  margin: 22px 0;
  font-size: 1.2rem;
}

@media (max-width: 880px) {
  .site-header,
  .site-footer,
  .newsletter form,
  .collection-toolbar {
    display: grid;
  }

  .hero-configurator,
  .product-main__grid,
  .editorial-band,
  .trust-bar,
  .collection-tiles,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-configurator__media img {
    min-height: 320px;
  }

  .configurator-card__grid {
    grid-template-columns: 1fr;
  }
}
