:root {
  --cream: #f3eee2;
  --cream-soft: #f8f3e8;
  --white: #fffaf0;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: 95px;
}

body {
  background-color: var(--cream);
  background-image: none;
}

.site-gradients {
  position: absolute;
  inset: 76px 0 auto;
  z-index: 0;
  width: 100%;
  height: 4650px;
  overflow: hidden;
  pointer-events: none;
}

.site-gradients img {
  position: absolute;
  width: min(78vw, 1000px);
  height: auto;
  pointer-events: none;
}

.site-gradient-yellow {
  top: 210px;
  left: -360px;
}

.site-gradient-blue {
  top: 2050px;
  right: -360px;
}

.header {
  background: rgba(243, 238, 226, .93);
}

.section {
  padding-top: 78px;
  padding-bottom: 78px;
}

.section[id] {
  scroll-margin-top: 94px;
}

.hero {
  min-height: 650px;
  gap: 38px;
  padding-top: 46px;
  padding-bottom: 62px;
}

.hero-art {
  min-height: 570px;
  border-radius: 38% 38% 34px 34px;
  background: var(--blue);
  box-shadow: 0 25px 70px rgba(42, 54, 37, .14);
}

.hero-art::before {
  display: none;
}

.hero-art::after {
  display: none;
}

.hero-product {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;
  border-radius: inherit;
  box-shadow: none;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.hero-note {
  z-index: 2;
  top: 24px;
  right: 24px;
  background: rgba(243, 238, 226, .94);
  backdrop-filter: blur(8px);
  transform: rotate(2deg);
}

.hero-stamp {
  position: absolute;
  left: 25px;
  bottom: 25px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  border: 2px solid rgba(32, 35, 29, .2);
  border-radius: 50%;
  background: var(--yellow);
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  transform: rotate(-8deg);
}

.intro {
  padding-bottom: 34px;
}

.intro::before {
  content: "≈";
  position: absolute;
  top: 20px;
  left: 4%;
  color: rgba(112, 124, 75, .12);
  font-size: 90px;
  line-height: 1;
  transform: rotate(-12deg);
}

.product-card,
.steps li {
  background: var(--white);
}

.products {
  position: relative;
  padding-bottom: 72px;
}

.products::after {
  content: "";
  position: absolute;
  right: -5vw;
  bottom: 15px;
  width: 180px;
  height: 55px;
  opacity: .14;
  border: 2px solid rgba(112, 124, 75, .2);
  border-radius: 999px;
  background: rgba(112, 124, 75, .06);
  transform: rotate(-8deg);
  pointer-events: none;
}

.about {
  padding-top: 68px;
  padding-bottom: 68px;
}

.about-copy {
  padding: 22px 0;
}

.principles {
  padding-bottom: 72px;
}

.delivery {
  position: relative;
  overflow: hidden;
  background: #c1e0df;
}

.delivery-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.delivery > :not(.delivery-gradient) {
  position: relative;
  z-index: 1;
}

.delivery-grid article {
  background: var(--cream-soft);
}

.questions details {
  overflow: hidden;
  padding: 0 5px;
}

.questions summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 0;
  list-style: none;
}

.questions summary::-webkit-details-marker {
  display: none;
}

.questions summary span {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(112, 124, 75, .13);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), background .3s ease;
}

.questions summary span::before,
.questions summary span::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 10px;
  width: 14px;
  height: 2px;
  background: var(--green);
}

.questions summary span::after {
  transform: rotate(90deg);
}

.questions details[open] summary span {
  background: var(--yellow);
  transform: rotate(45deg);
}

.questions .answer {
  overflow: hidden;
}

.questions .answer p {
  margin: 0;
  padding: 0 55px 23px 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .8s cubic-bezier(.22, 1, .36, 1),
    transform .8s cubic-bezier(.22, 1, .36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card.reveal:nth-child(2),
.principles > div.reveal:nth-child(2),
.steps li.reveal:nth-child(2) {
  transition-delay: .08s;
}

.product-card.reveal:nth-child(3),
.principles > div.reveal:nth-child(3),
.steps li.reveal:nth-child(3) {
  transition-delay: .16s;
}

.steps li.reveal:nth-child(4) {
  transition-delay: .24s;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .questions summary span { transition: none; }
}

@media (max-width: 900px) {
  .hero-art { min-height: 540px; }
}

@media (max-width: 620px) {
  .section { padding-top: 55px; padding-bottom: 55px; }
  .hero { padding-top: 34px; padding-bottom: 48px; }
  .hero-art { min-height: 430px; }
  .hero-product { width: 100%; height: 100%; }
  .hero-note { max-width: 180px; }
  .hero-stamp { width: 78px; height: 78px; font-size: 10px; }
  .questions .answer p { padding-right: 12px; }
}

/* Структура по ТЗ и счётчики товаров */
.advantages-intro {
  padding-bottom: 22px;
}

.advantages {
  padding-top: 0;
  padding-bottom: 66px;
}

.product-quantity,
.cart-quantity {
  display: inline-grid;
  grid-template-columns: 38px 38px 38px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(72, 82, 56, .24);
  border-radius: 999px;
  background: var(--cream-soft);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.product-quantity.has-items {
  border-color: var(--green);
  background: var(--yellow);
  box-shadow: 0 8px 20px rgba(76, 82, 48, .12);
}

.product-quantity button,
.cart-quantity button {
  width: 38px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 21px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.product-quantity button:hover,
.cart-quantity button:hover {
  background: rgba(255, 255, 255, .38);
}

.product-quantity button:active,
.cart-quantity button:active {
  transform: scale(.9);
}

.product-quantity span,
.cart-quantity strong {
  display: grid;
  place-items: center;
  min-width: 38px;
  font-size: 14px;
  font-weight: 800;
}

.cart-item {
  grid-template-columns: 62px 1fr auto;
}

.cart-quantity {
  grid-template-columns: 32px 30px 32px;
  background: var(--white);
}

.cart-quantity button {
  width: 32px;
  height: 36px;
}

.cart-quantity strong {
  min-width: 30px;
}

/* Галерея настоящего продукта */
.product-story {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 52px;
  align-items: center;
  padding-top: 58px;
  padding-bottom: 76px;
}

.product-story-copy h2 {
  margin: 0 0 24px;
  font-size: clamp(40px, 5vw, 68px);
}

.product-story-copy > p:not(.eyebrow) {
  color: #5e6359;
  font-size: 18px;
}

.product-story-copy small {
  display: block;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #74776f;
}

.product-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 255px 255px;
  gap: 12px;
}

.product-gallery figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 24px;
  background: var(--white);
}

.product-gallery .gallery-main {
  grid-row: 1 / 3;
}

.product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 10px 13px;
  border-radius: 13px;
  background: rgba(243, 238, 226, .9);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
}

/* Вопросы выровнены относительно всей высоты блока */
.faq {
  align-items: center;
}

.faq .questions {
  align-self: center;
  width: 100%;
}

/* Отзывы — места только под реальные материалы */
.reviews {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 50px;
  align-items: end;
  padding-top: 72px;
  padding-bottom: 72px;
}

.reviews h2 {
  margin: 0 0 22px;
  font-size: clamp(40px, 5vw, 68px);
}

.reviews-head > p:last-child {
  max-width: 480px;
  color: #62675d;
}

.review-placeholders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.review-placeholders article {
  min-height: 260px;
  padding: 22px;
  border: 1px dashed rgba(72, 82, 56, .38);
  border-radius: 22px;
  background: rgba(255, 250, 240, .62);
}

.review-placeholders span {
  color: var(--green2);
  font-size: 12px;
  font-weight: 800;
}

.review-placeholders b {
  display: block;
  margin-top: 80px;
  font-family: "Montserrat Alternates", sans-serif;
}

.review-placeholders p {
  color: #71756c;
  font-size: 13px;
}

.joke-banner {
  display: grid;
  grid-template-columns: 1fr .8fr;
  align-items: center;
  min-height: 500px;
  margin-top: 30px;
  margin-bottom: 30px;
  padding: 56px 70px 0;
  overflow: hidden;
  border-radius: 38px;
  position: relative;
  background: var(--blue);
}

.joke-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.joke-banner > :not(.joke-gradient) {
  position: relative;
  z-index: 1;
}

.joke-copy {
  align-self: center;
  padding-bottom: 56px;
}

.joke-copy h2 {
  margin: 0 0 22px;
  font-size: clamp(48px, 6vw, 78px);
}

.joke-copy > p:not(.eyebrow) {
  max-width: 590px;
  margin-bottom: 28px;
  color: #4d5850;
  font-size: 18px;
}

.joke-banner > img:not(.joke-gradient) {
  align-self: end;
  width: min(100%, 510px);
  max-height: 520px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 22px 26px rgba(41, 53, 37, .18));
}

.final-cta > p:not(.eyebrow) {
  margin: -8px auto 28px;
  color: rgba(255, 255, 255, .76);
}

@media (max-width: 900px) {
  .product-story,
  .reviews,
  .joke-banner {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    grid-template-rows: 300px 220px;
  }

  .joke-banner {
    padding: 50px 50px 0;
  }

  .joke-banner > img {
    justify-self: center;
    max-height: 440px;
  }
}

@media (max-width: 620px) {
  .product-bottom {
    align-items: flex-end;
    gap: 12px;
  }

  .product-quantity {
    grid-template-columns: 34px 32px 34px;
  }

  .product-quantity button {
    width: 34px;
  }

  .product-quantity span {
    min-width: 32px;
  }

  .product-story {
    gap: 28px;
  }

  .product-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 360px 250px 250px;
  }

  .product-gallery .gallery-main {
    grid-row: auto;
  }

  .review-placeholders {
    grid-template-columns: 1fr;
  }

  .review-placeholders article {
    min-height: 180px;
  }

  .review-placeholders b {
    margin-top: 45px;
  }

  .joke-banner {
    width: calc(100% - 24px);
    padding: 38px 24px 0;
    border-radius: 28px;
  }

  .joke-copy {
    padding-bottom: 20px;
  }

  .joke-copy h2 {
    font-size: 44px;
  }
}

/* Более плотная композиция */
.header {
  height: 76px;
}

.section {
  padding-top: 54px;
  padding-bottom: 54px;
}

.hero {
  min-height: 570px;
  padding-top: 32px;
  padding-bottom: 44px;
}

.hero-art {
  min-height: 500px;
}

.hero-lead {
  margin-top: 20px;
  margin-bottom: 24px;
}

.trust-list {
  margin-top: 24px;
}

.ticker {
  padding-top: 13px;
  padding-bottom: 13px;
}

.advantages-intro {
  padding-top: 48px;
  padding-bottom: 14px;
}

.advantages {
  padding-bottom: 45px;
}

.principles > div {
  padding-top: 18px;
  padding-bottom: 10px;
}

.principles h3 {
  margin-top: 19px;
}

.products {
  padding-bottom: 48px;
}

.product-image {
  height: 315px;
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-carousel {
  isolation: isolate;
  touch-action: pan-y;
  outline: none;
}

.carousel-track,
.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.025);
  transition: opacity .45s ease, transform .65s cubic-bezier(.22, 1, .36, 1);
}

.carousel-slide[src*="artur-autograph"] {
  object-fit: contain;
  background: #e9e2d4;
}

.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.product-number,
.product-carousel .badge,
.carousel-controls {
  z-index: 2;
}

.carousel-controls {
  position: absolute;
  left: 50%;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  transform: translateX(-50%);
  padding: 6px 8px;
  border: 1px solid rgba(32, 35, 29, .08);
  border-radius: 999px;
  background: rgba(250, 247, 237, .9);
  box-shadow: 0 8px 20px rgba(31, 38, 28, .14);
  backdrop-filter: blur(10px);
}

.carousel-controls > button {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.carousel-controls > button:hover {
  background: var(--green2);
  transform: scale(1.06);
}

.carousel-dots {
  display: flex;
  gap: 5px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(72, 82, 56, .25);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.carousel-dots button.is-active {
  width: 20px;
  border-radius: 999px;
  background: var(--green);
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 21px;
}

.product-body > p:not(.product-size) {
  min-height: 58px;
  margin-top: 7px;
  margin-bottom: 10px;
}

.box-contents {
  display: grid;
  gap: 6px;
  margin: 8px 0 15px;
  padding: 0;
  color: #555b50;
  font-size: 13.5px;
  line-height: 1.4;
  list-style: none;
}

.box-contents li {
  position: relative;
  padding-left: 17px;
}

.box-contents li::before {
  content: "";
  position: absolute;
  top: .58em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
}

.product-body .box-gift {
  min-height: 0;
  margin: auto 0 0;
  padding: 11px 13px;
  border-radius: 14px;
  background: rgba(244, 197, 90, .22);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 800;
}

.product-bottom {
  margin-top: 15px;
}

.product-story {
  gap: 38px;
  padding-top: 42px;
  padding-bottom: 52px;
}

.product-gallery {
  grid-template-rows: 220px 220px;
}

.about {
  gap: 38px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.about-art {
  height: 550px;
}

.big-copy {
  margin-top: 20px;
  margin-bottom: 20px;
}

.delivery {
  padding-top: 58px;
  padding-bottom: 58px;
}

.delivery-head {
  margin-bottom: 28px;
}

.delivery-grid article {
  padding: 28px;
}

.delivery h3 {
  margin-top: 22px;
}

.steps > ol {
  margin-top: 30px;
}

.steps li {
  min-height: 175px;
  padding: 21px;
}

.steps li b {
  margin-top: 38px;
}

.reviews {
  padding-top: 52px;
  padding-bottom: 52px;
}

.review-placeholders article {
  min-height: 205px;
}

.review-placeholders b {
  margin-top: 44px;
}

.joke-banner {
  min-height: 420px;
  margin-top: 18px;
  margin-bottom: 18px;
  padding-top: 42px;
}

.joke-banner > img {
  max-height: 440px;
}

.faq {
  gap: 38px;
}

.faq img {
  max-height: 360px;
  margin-top: 24px;
}

.questions summary {
  padding-top: 19px;
  padding-bottom: 19px;
}

.requisites {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 38px;
  align-items: start;
  padding-top: 55px;
  padding-bottom: 55px;
}

.requisites h2 {
  max-width: 480px;
  font-size: clamp(39px, 4.7vw, 64px);
}

.requisites-head > p:last-child {
  max-width: 460px;
  color: #62675c;
}

.requisites-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(41, 55, 36, .07);
}

.requisites-primary {
  display: grid;
  gap: 5px;
  padding: 24px 26px;
  background: var(--green);
  color: #fff;
}

.requisites-primary span {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.requisites-primary strong {
  margin-bottom: 9px;
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 21px;
}

.requisites-primary a {
  width: fit-content;
  border-bottom: 1px solid rgba(255, 255, 255, .38);
}

.requisites dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 8px 26px 20px;
}

.requisites dl div {
  padding: 15px 12px 10px 0;
  border-bottom: 1px solid var(--line);
}

.requisites dt {
  color: #74796f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.requisites dd {
  overflow-wrap: anywhere;
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.final-cta {
  padding-top: 68px;
  padding-bottom: 68px;
}

/* Декоративные боковые иллюстрации */
.site-decor {
  position: absolute;
  inset: 76px 0 auto;
  height: 4650px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

main,
.ticker,
footer {
  position: relative;
  z-index: 1;
}

.site-decor img {
  position: absolute;
  object-fit: contain;
  filter: saturate(.82) drop-shadow(0 14px 18px rgba(57, 66, 44, .1));
  opacity: .2;
  will-change: transform;
}

.decor-fish-school {
  top: 850px;
  left: max(-155px, calc((100vw - 1540px) / 2));
  width: 280px;
  animation: schoolDrift 8s ease-in-out infinite;
}

.decor-fish-splash {
  top: 2770px;
  right: max(-105px, calc((100vw - 1480px) / 2));
  width: 270px;
  animation: splashBob 6.5s ease-in-out infinite;
}

/* Статичный PNG персонажа становится «живым» без тяжёлого видео */
.joke-banner > img {
  transform-origin: 52% 100%;
  animation: arthurFloat 4.8s ease-in-out infinite;
  transition: filter .35s ease;
}

.joke-banner:hover > img {
  filter: drop-shadow(0 26px 30px rgba(41, 53, 37, .25));
}

@keyframes schoolDrift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-7deg); }
  50% { transform: translate3d(18px, -20px, 0) rotate(-2deg); }
}

@keyframes splashBob {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(5deg); }
  50% { transform: translate3d(-10px, -18px, 0) rotate(1deg); }
}

@keyframes arthurFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-.5deg); }
  50% { transform: translate3d(0, -10px, 0) rotate(.8deg); }
}

@media (max-width: 1180px) {
  .site-decor img {
    opacity: .1;
  }

  .decor-fish-school {
    left: -175px;
  }

  .decor-fish-splash {
    right: -165px;
  }
}

@media (max-width: 900px) {
  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero-art {
    min-height: 500px;
  }

  .site-decor {
    display: none;
  }

  .product-gallery {
    grid-template-rows: 270px 190px;
  }

  .requisites {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .section {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .hero {
    padding-top: 28px;
    padding-bottom: 38px;
  }

  .hero-art {
    min-height: 405px;
  }

  .product-image {
    height: 300px;
  }

  .requisites dl {
    grid-template-columns: 1fr;
  }

  .requisites-card,
  .requisites-primary {
    border-radius: 22px;
  }

  .product-gallery {
    grid-template-rows: 330px 225px 225px;
  }

  .about-art {
    height: 455px;
  }

  .joke-banner {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .decor-fish-school,
  .decor-fish-splash,
  .joke-banner > img {
    animation: none;
  }

  .carousel-slide,
  .carousel-controls > button,
  .carousel-dots button {
    transition: none;
  }
}
