.coloring-landing-body {
  --editorial-shadow: 0 28px 90px #5d3e8b24;
}

.coloring-landing {
  overflow: clip;
}

.coloring-landing section {
  padding-block: clamp(58px, 8vw, 112px);
}

.coloring-landing h1,
.coloring-landing h2,
.coloring-landing h3,
.coloring-landing p {
  text-wrap: pretty;
}

.coloring-landing h2 {
  margin: 10px 0 16px;
  font-size: clamp(2.15rem, 5.2vw, 4.8rem);
  line-height: .95;
  letter-spacing: -.055em;
}

.coloring-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6849d7;
  font-size: .76rem;
  font-weight: 1000;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.coloring-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7bbd, #8b65ff);
}

.coloring-section-heading {
  max-width: 850px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.coloring-section-heading.compact {
  max-width: 680px;
}

.coloring-section-heading > p,
.coloring-how .coloring-section-heading > p,
.paper-story-copy p,
.color-code p,
.binding-note p,
.coloring-final p {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.72;
}

.editorial-cart {
  display: inline-flex;
}

/* Hero */
.coloring-hero {
  min-height: calc(100vh - var(--cw-header-height, 76px));
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  align-items: center;
  gap: clamp(36px, 6vw, 86px);
  position: relative;
}

.coloring-hero::before {
  content: "";
  position: absolute;
  width: min(56vw, 720px);
  aspect-ratio: 1;
  right: -22%;
  top: 2%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, #8ed8ff73 0 18%, #8b65ff2d 38%, transparent 70%);
  filter: blur(12px);
  animation: coloringAura 9s ease-in-out infinite alternate;
}

.coloring-hero h1 {
  margin: 20px 0 24px;
  max-width: 820px;
  font-size: clamp(3.4rem, 7.4vw, 7.6rem);
  line-height: .84;
  letter-spacing: -.075em;
  text-transform: none;
}

.coloring-hero h1 span {
  display: block;
  margin-top: .12em;
  color: #7654e7;
  font-size: .54em;
  line-height: 1;
  letter-spacing: -.045em;
}

.coloring-hero-lead {
  max-width: 720px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  line-height: 1.65;
}

.coloring-hero-art {
  min-height: 560px;
  position: relative;
  perspective: 1200px;
}

.coloring-paper {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(82%, 430px);
  aspect-ratio: 1 / 1.414;
  border: 1px solid #21143c18;
  border-radius: 20px;
  background: #fffdf8;
  box-shadow: 0 26px 70px #4d347440;
  transform-origin: center;
}

.coloring-paper-back {
  transform: translate(-57%, -47%) rotate(-11deg);
  background: linear-gradient(145deg, #f9eeff, #fff8e7);
}

.coloring-paper-middle {
  transform: translate(-44%, -51%) rotate(7deg);
  background: linear-gradient(145deg, #e9f7ff, #fff);
}

.coloring-paper-front {
  overflow: hidden;
  transform: translate(-50%, -50%) rotate(-2deg);
  background:
    radial-gradient(circle at 20% 22%, transparent 0 34px, #35254b20 35px 37px, transparent 38px),
    radial-gradient(circle at 72% 28%, transparent 0 54px, #35254b22 55px 58px, transparent 59px),
    radial-gradient(circle at 45% 72%, transparent 0 82px, #35254b1f 83px 86px, transparent 87px),
    linear-gradient(28deg, transparent 47%, #35254b1d 48% 49%, transparent 50%),
    linear-gradient(114deg, transparent 45%, #35254b1d 46% 47%, transparent 48%),
    #fffefa;
}

.coloring-paper-front::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50% 44% 48% 38%;
  border: 2px solid #33234520;
  transform: rotate(18deg);
}

.symbol {
  position: absolute;
  z-index: 2;
  color: #2d2340a8;
  font-weight: 900;
}

.symbol.s1 { left: 24%; top: 20%; }
.symbol.s2 { right: 22%; top: 31%; }
.symbol.s3 { left: 42%; top: 48%; }
.symbol.s4 { right: 28%; bottom: 24%; }
.symbol.s5 { left: 22%; bottom: 17%; }

.coloring-hero-note {
  position: absolute;
  right: 2%;
  bottom: 8%;
  z-index: 4;
  padding: 12px 16px;
  border: 1px solid #ffffffcc;
  border-radius: 14px;
  background: #ffffffcf;
  box-shadow: 0 16px 40px #5a3c7d24;
  color: #6849d7;
  font-weight: 1000;
  transform: rotate(3deg);
  backdrop-filter: blur(12px);
}

/* Author craft */
.coloring-craft {
  position: relative;
}

.coloring-craft::before {
  content: "";
  position: absolute;
  inset: 10% -12vw;
  z-index: -1;
  background: linear-gradient(105deg, #ff7bbd13, #8b65ff1c 48%, #8ed8ff17);
  transform: rotate(-1.5deg);
}

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

.craft-flow article,
.material-card,
.kit-grid article,
.scheme-step,
.coloring-product-card,
.faq-list details {
  border: 1px solid #ffffffd8;
  background: #ffffffc6;
  box-shadow: var(--editorial-shadow);
  backdrop-filter: blur(18px);
}

.craft-flow article {
  min-height: 230px;
  padding: 24px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.craft-flow article::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -34px;
  bottom: -38px;
  border-radius: 50%;
  background: radial-gradient(circle, #8b65ff28, transparent 68%);
}

.craft-flow article > span {
  display: block;
  margin-bottom: 42px;
  color: #8b65ff70;
  font-size: 2rem;
  font-weight: 1000;
}

.craft-flow b,
.material-card b,
.kit-grid b,
.scheme-step b {
  display: block;
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.craft-flow p,
.material-card p,
.kit-grid p,
.scheme-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* Scheme */
.scheme-demo {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 18px;
}

.scheme-step {
  padding: 28px;
  border-radius: 28px;
  text-align: center;
}

.scheme-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border: 2px dashed #8b65ff5c;
  border-radius: 24px;
  color: #6849d7;
  background: #fff;
  font-size: 2rem;
  transform: rotate(-3deg);
}

.scheme-icon.swatch {
  border-style: solid;
  background: linear-gradient(135deg, #ff7bbd, #8b65ff 50%, #8ed8ff);
}

.scheme-icon.filled {
  color: #fff;
  border-style: solid;
  background: linear-gradient(135deg, #82f3cc, #8b65ff);
}

.scheme-arrow {
  align-self: center;
  color: #8b65ff7a;
  font-size: 2rem;
  font-weight: 1000;
}

/* Materials */
.material-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.material-card {
  min-height: 250px;
  padding: 22px;
  border-radius: 24px;
  position: relative;
}

.material-card > span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  border-radius: 16px;
  background: #8b65ff15;
  color: #6849d7;
  font-size: 1.6rem;
}

.material-card em {
  display: inline-block;
  margin: 2px 0 14px;
  font-size: .74rem;
  font-style: normal;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.material-card.best { background: linear-gradient(160deg, #ffffffdd, #82f3cc2f); }
.material-card.best em { color: #19755b; }
.material-card.yes em { color: #6849d7; }
.material-card.no { background: linear-gradient(160deg, #ffffffdd, #ff7b8e16); }
.material-card.no em { color: #a53b4b; }
.material-card.warn em { color: #936a16; }

/* Paper */
.paper-story {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(30px, 7vw, 100px);
}

.paper-number {
  position: relative;
  color: #7654e7;
  font-size: clamp(8rem, 23vw, 18rem);
  font-weight: 1000;
  line-height: .72;
  letter-spacing: -.11em;
  text-shadow: 0 24px 70px #8b65ff38;
}

.paper-number::after {
  content: "г/м²";
  position: absolute;
  right: 2%;
  bottom: -18%;
  padding: 8px 12px;
  border-radius: 12px;
  background: #82f3cc;
  color: var(--ink);
  font-size: .9rem;
  letter-spacing: 0;
  transform: rotate(-4deg);
}

.paper-story-copy {
  max-width: 720px;
}

.paper-story-copy h2 {
  max-width: 650px;
}

/* Color code */
.color-code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .75fr);
  align-items: center;
  gap: clamp(30px, 6vw, 80px);
}

.color-code h2 {
  max-width: 650px;
}

.color-ribbon {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 260px;
  position: relative;
}

.color-ribbon span {
  width: 88px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-left: -14px;
  border: 6px solid #fff;
  border-radius: 28px;
  background: var(--tone);
  box-shadow: 0 18px 42px #3d2a5d2c;
  color: #21143cd1;
  font-weight: 1000;
  transform: rotate(var(--tilt, -8deg));
}

.color-ribbon span:nth-child(2) { --tilt: 7deg; transform: translateY(-24px) rotate(var(--tilt)); }
.color-ribbon span:nth-child(3) { --tilt: -3deg; transform: translateY(18px) rotate(var(--tilt)); }
.color-ribbon span:nth-child(4) { --tilt: 8deg; transform: translateY(-14px) rotate(var(--tilt)); }
.color-ribbon span:nth-child(5) { --tilt: -6deg; }

/* Kit */
.kit-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.kit-grid article {
  grid-column: span 2;
  min-height: 220px;
  padding: 24px;
  border-radius: 24px;
}

.kit-grid article:nth-child(4) { grid-column: 2 / span 2; }
.kit-grid article:nth-child(5) { grid-column: 4 / span 2; }

.kit-mark {
  display: inline-flex;
  margin-bottom: 42px;
  color: #ff7bbd;
  font-weight: 1000;
  letter-spacing: .1em;
}

/* Binding */
.binding-note {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(34px, 7vw, 100px);
  padding-inline: clamp(22px, 4vw, 52px);
  border: 1px solid #ffffffd9;
  border-radius: 36px;
  background: linear-gradient(135deg, #ffffffc7, #f1e8ffb8 55%, #e9f8ffb5);
  box-shadow: var(--editorial-shadow);
  backdrop-filter: blur(18px);
}

.binding-visual {
  width: min(100%, 360px);
  aspect-ratio: 1.3;
  margin: auto;
  position: relative;
  perspective: 900px;
}

.binding-visual span {
  position: absolute;
  inset: 10% 8%;
  border: 1px solid #21143c20;
  border-radius: 12px 24px 24px 12px;
  background: #fffdf8;
  box-shadow: 0 20px 50px #50357329;
  transform-origin: left center;
}

.binding-visual span:nth-child(1) { transform: rotateY(-14deg) translateX(-8%); }
.binding-visual span:nth-child(2) { transform: rotateY(-4deg) translateX(0); }
.binding-visual span:nth-child(3) { transform: rotateY(8deg) translateX(8%); }
.binding-visual i {
  position: absolute;
  left: 16%;
  top: 13%;
  bottom: 13%;
  width: 7px;
  border-radius: 999px;
  background: repeating-linear-gradient(180deg, #8b65ff 0 8px, transparent 8px 16px);
  opacity: .6;
}

/* Products */
.coloring-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.coloring-product-card {
  display: grid;
  grid-template-columns: minmax(180px, .85fr) minmax(0, 1.15fr);
  overflow: hidden;
  border-radius: 30px;
}

.coloring-product-image {
  min-height: 340px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fff, #f5edff);
}

.coloring-product-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.coloring-product-placeholder {
  color: #8b65ff;
  font-size: 4rem;
  font-weight: 1000;
}

.coloring-product-copy {
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.coloring-product-copy > span {
  color: #6849d7;
  font-size: .78rem;
  font-weight: 1000;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.coloring-product-copy h3 {
  margin: 12px 0;
  font-size: clamp(1.55rem, 2.8vw, 2.5rem);
  line-height: 1;
  letter-spacing: -.04em;
}

.coloring-product-copy > p {
  flex: 1;
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.55;
}

.coloring-product-copy > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.coloring-product-copy strong {
  font-size: 1.4rem;
  white-space: nowrap;
}

.coloring-products-empty {
  grid-column: 1 / -1;
  padding: 36px;
  border-radius: 28px;
  background: #ffffffbd;
  text-align: center;
}

/* FAQ */
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.faq-list details {
  padding: 0 22px;
  border-radius: 20px;
}

.faq-list summary {
  padding: 22px 0;
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin: -4px 0 22px;
  color: var(--muted);
  line-height: 1.6;
}

/* Finale */
.coloring-final {
  margin-bottom: clamp(60px, 9vw, 110px);
  padding-inline: clamp(26px, 7vw, 90px);
  border-radius: 38px;
  background:
    radial-gradient(circle at 15% 30%, #ff7bbd2e, transparent 32%),
    radial-gradient(circle at 84% 24%, #8ed8ff36, transparent 34%),
    linear-gradient(135deg, #ffffffd6, #f5edffcd);
  box-shadow: var(--editorial-shadow);
  text-align: center;
}

.coloring-final h2 {
  max-width: 850px;
  margin-inline: auto;
}

.coloring-final p {
  max-width: 680px;
  margin: 0 auto 26px;
}

/* Reveal enhancement: content remains visible without JS. */
.editorial-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1);
}

.editorial-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes coloringAura {
  from { transform: translate3d(0, -10px, 0) scale(.96); }
  to { transform: translate3d(-24px, 24px, 0) scale(1.04); }
}

@media (max-width: 1050px) {
  .material-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .craft-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coloring-product-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .coloring-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 46px;
  }

  .coloring-hero-art { min-height: 460px; }
  .coloring-hero h1 { font-size: clamp(3.2rem, 14vw, 6.3rem); }
  .paper-story,
  .color-code,
  .binding-note { grid-template-columns: 1fr; }
  .scheme-demo { grid-template-columns: 1fr; }
  .scheme-arrow { transform: rotate(90deg); justify-self: center; }
  .kit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kit-grid article,
  .kit-grid article:nth-child(4),
  .kit-grid article:nth-child(5) { grid-column: auto; }
  .kit-grid article:last-child { grid-column: 1 / -1; }
  .faq-list { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .coloring-landing section { padding-block: 52px; }
  .coloring-hero-art { min-height: 390px; }
  .coloring-hero-note { right: 0; bottom: 4%; font-size: .82rem; }
  .craft-flow,
  .material-grid,
  .kit-grid { grid-template-columns: 1fr; }
  .kit-grid article:last-child { grid-column: auto; }
  .paper-number { font-size: 10rem; }
  .color-ribbon { transform: scale(.82); margin-inline: -12%; }
  .coloring-product-card { grid-template-columns: 1fr; }
  .coloring-product-image { min-height: 300px; }
  .coloring-product-copy > div { align-items: stretch; flex-direction: column; }
  .coloring-product-copy .btn { text-align: center; }
  .binding-note { border-radius: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .coloring-hero::before { animation: none; }
  .editorial-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
}
