:root {
  --bg: #fbefe2;
  --ink: #122d23;
  --ink-soft: #2f4338;
  --accent: #b71923;
  --accent-2: #1e583c;
  --promo-green: #008a27;
  --card: #fff7ef;
  --card-2: #f4e7d9;
  --line: #6341222b;
  --line-1: #cfb79d;
  --line-2: #25533d;
  --line-3: #a02028;
  --shadow: 0 8px 22px #5b331b15;
  --maxw: 1110px;
}

body {
  background-image: linear-gradient(to bottom, transparent 90%, var(--bg) 100%),
    url("../img/christmas-top-wide-opt.webp"), url("../img/christmas-bottom.webp");
  background-position: center top, center top, center bottom;
  background-size: 100% 50vw, 100% auto, 100% auto;
}

.wrap {
  padding-inline: clamp(14px, 3vw, 30px);
}

header {
  min-height: 60px;
  padding: 3px 0 12px;
}

.logo > div:last-child {
  font-size: .82rem;
}

.logo-badge {
  background: transparent;
  box-shadow: none;
}

header .btn,
.hero .btn,
.order-btn {
  border-radius: 999px;
}

.btn {
  background: linear-gradient(180deg, #d32831, #a80b17);
  box-shadow: 0 4px 10px #890b1926;
}

.btn.secondary {
  background: #fff6e9bd;
  box-shadow: none;
  border: 1px solid #846a55;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  grid-template-areas: "copy video";
  align-items: center;
  gap: clamp(20px, 3vw, 38px);
  padding-block: clamp(18px, 3vw, 36px) 26px;
}

.hero-copy {
  grid-area: copy;
  display: grid;
  gap: 10px;
  text-align: center;
}

.hero .hero-title,
.hero .hero-left {
  grid-area: auto;
  width: auto;
  max-width: none;
  justify-self: stretch;
  text-align: center;
}

.hero-title h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(29px, 3.6vw, 50px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.hero-title h1 .accent {
  font-style: italic;
}

.hero .hero-desc {
  max-width: 44ch;
  margin: 0 auto;
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  text-align: center;
}

.hero-price,
.price-box .price-row {
  font-family: Georgia, "Times New Roman", serif;
  font-variant-numeric: lining-nums tabular-nums;
}

.hero-price {
  font-size: clamp(.95rem, 1.8vw, 1.25rem);
  margin: 0;
}

.hero .cta-row {
  width: min(100%, 380px);
  margin: 18px auto 0;
  display: grid;
  gap: 18px;
}

.hero .btn {
  width: 100%;
  min-height: 43px;
  padding: 9px 16px;
  font-size: 1rem;
}

.hero .hero-video {
  width: 100%;
  max-width: none;
}

.hero .video-card {
  border: 2px solid #d5a64f;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 15px 34px #43200532;
}

.hero .play-btn {
  width: clamp(40px, 5vw, 64px);
  height: clamp(40px, 5vw, 64px);
  border: 2px solid #fff8e8;
  background: #28190db5;
}

.hero .play-tri {
  border-left-color: #fff8e8;
  border-left-width: 15px;
  border-top-width: 9px;
  border-bottom-width: 9px;
}

section,
#reviews {
  padding-block: 14px;
}

.section-title {
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  letter-spacing: -.025em;
}

.section-title .leaf {
  background: transparent;
  box-shadow: none;
}

.steps {
  gap: 12px;
}

.step {
  background: #fff8efed;
  padding: 12px 14px;
}

.step .icon {
  width: 43px;
  height: 43px;
  border: 0;
  background: transparent;
  margin-bottom: 4px;
}

.step .icon svg {
  width: 100%;
  height: 100%;
}

.reaction-banner {
  margin: 11px 0 4px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.reaction-banner :is(picture, img) {
  border-radius: inherit;
}

.reaction-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.price-box {
  padding: clamp(16px, 2.5vw, 28px);
  gap: 14px;
  background: #e4ebd5;
  background-image: linear-gradient(110deg, #e4ebd529, #e4ebd55c 22%, #e4ebd55c 80%, transparent),
    url("../img/christmas-price-desktop.webp");
  background-position: center;
  background-size: cover;
}

.qa {
  background: #fffaf3;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: none;
}

.qa button {
  min-height: 30px;
  gap: 12px;
}

.carousel {
  gap: 12px;
  touch-action: auto;
}

.review-item {
  flex: 0 0 calc((100% - 48px) / 5);
  min-width: 0;
  aspect-ratio: 9 / 16;
}

.review-item img,
.review-item video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #241b17;
}

.carousel-arrow {
  width: 36px;
  height: 36px;
}

.carousel-arrow .arrow-ico {
  width: 23px;
  height: 23px;
}

.carousel-arrow.left { left: 5px; }
.carousel-arrow.right { right: 5px; }

footer {
  margin-top: 18px;
  padding-bottom: clamp(60px, 10vw, 140px);
}

@media (max-width: 900px) {
  body {
    background-image: linear-gradient(to bottom, transparent 90%, var(--bg) 100%),
      url("../img/christmas-top-mobile.webp"), url("../img/christmas-bottom.webp");
    background-size: 100% calc(100vw * 1.5), 100% auto, 100% auto;
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .review-item {
    flex-basis: calc((100% - 24px) / 3);
  }
}

@media (max-width: 640px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "video";
    gap: 18px;
    padding-top: 12px;
  }

  .logo {
    gap: 3px;
  }

  .logo-badge {
    width: 31px;
  }

  .logo > div:last-child {
    font-size: .72rem;
  }

  header {
    min-height: 56px;
    padding: 0 25px;
  }

  header .btn {
    font-size: .85rem;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .step {
    display: grid;
    grid-template-columns: 43px minmax(0, 1fr);
    gap: 3px 10px;
    align-items: center;
    text-align: left;
  }

  .step .icon {
    grid-row: span 2;
    margin: 0;
  }

  .step h3 {
    margin: 0;
  }

  .review-item {
    flex-basis: calc((100% - 12px) / 2.25);
  }

  .price-left {
    flex-basis: auto;
  }
}

/* Різдвяні кнопки дій і попапи */
.btn.festive-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 11px 21px;
  border-radius: 999px;
  font-size: clamp(1rem, 2.1vw, 1.16rem);
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
}

.festive-action::before {
  content: "";
  flex: 0 0 23px;
  height: 23px;
  background: currentColor;
  mask: var(--action-icon) center / contain no-repeat;
}

.festive-action--gift {
  --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h18v5H3zM5 13v8h14v-8M12 8v13M12 8H8.6a2.4 2.4 0 1 1 2.3-3.1L12 8Zm0 0h3.4a2.4 2.4 0 1 0-2.3-3.1L12 8Z'/%3E%3C/svg%3E");
  box-shadow: 0 6px 15px #9c101e3d, inset 0 1px #ffe1ae66;
}

.festive-action--play {
  --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='black' stroke-width='1.8'/%3E%3Cpath d='M9.5 7.8v8.4l7-4.2z'/%3E%3C/svg%3E");
}

.hero .btn.festive-action--gift {
  min-height: 56px;
}

:is(.festive-action, .modal-close, .seg-btn, .photo-drop):focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.modal {
  min-width: 0;
  padding: clamp(10px, 3vw, 36px);
  background: #21160de0;
}

.modal .modal-card,
#storiesModal .modal-card {
  flex: 0 1 auto;
  min-width: 0;
  background: #fff7ed !important;
  border: 1px solid #bc8f55;
  border-radius: 20px;
  box-shadow: 0 24px 65px #23110673;
}

.modal .modal-body {
  padding: clamp(15px, 3.1vw, 26px);
}

.modal .modal-card h3 {
  padding-right: 46px;
  color: var(--accent);
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  line-height: 1.15;
}

.modal .modal-close {
  display: grid;
  place-items: center;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: #f5e5d2;
  border: 1px solid #dcc1a1;
  color: var(--ink);
  font-size: 0;
}

.modal .modal-close::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m4 4 8 8m0-8-8 8'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}

.modal .modal-close:hover {
  background: #edd5b8;
}

#videoModal .modal-card > h3 {
  margin: 17px 0 12px;
}

#btnOrderPopup {
  display: flex;
  width: min(100%, 260px);
  margin-inline: auto;
  margin-bottom: 16px;
}

.modal :is(.child-card, .email-card) {
  background: #f7eadb;
  border-color: #d9c0a4;
}

.modal .photo-drop {
  background-color: #fffaf1;
  border-color: #9b7147;
  color: var(--ink);
}

.modal .photo-drop:is(:hover, :focus-visible) {
  background-color: #fff3df;
  border-color: var(--accent);
}

.modal :is(.inp, .sel, .listbox) {
  background-color: #fffdf8;
  color: var(--ink);
  border-color: #ceb89c;
}

.modal :is(.inp, .sel, .listbox):focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 2px #1e583c24;
}

.modal .seg-btn {
  min-height: 42px;
  background: #fff9ee;
}

.modal .seg-btn.is-active {
  background: #fae3df;
  border-color: var(--accent);
  color: #86121c;
}

#storiesModal .order-body {
  padding: 20px 20px 0;
}

#storiesModal .order-body2 {
  padding: 0 20px 20px;
}

#storiesModal .modal-card {
  background:
    linear-gradient(#06152b28, #06152b65),
    #102648 url("../img/t_bg-opt.webp") center top / cover no-repeat !important;
}

#storiesModal .modal-text {
  background: #06152b70;
}

#storiesModal h3 {
  padding: 0;
  color: #ffe5ae;
  text-shadow: 0 2px 6px #061428;
}

#storiesModal p,
#storiesModal .upsell-item__desc {
  color: #fff8ec;
  text-shadow: 0 1px 4px #061428;
}

#storiesModal .upsell-item {
  background: #071a35b0;
  border-color: #ecd09e6b;
  box-shadow: none;
}

#storiesModal :is(.upsell-opt, .upsell-skip) {
  color: var(--ink);
  background: #fff0d8ed;
  border-color: #dec093;
  box-shadow: none;
}

#storiesSkipBtn {
  min-height: 48px;
  min-width: min(180px, 100%);
}

#storiesSkipBtn:disabled::after {
  animation: none;
  content: none;
}

#storiesModal :is(.upsell-opt, .upsell-skip).is-active {
  color: #fff;
  background: #25553c;
  border-color: #25553c;
}

@media (max-width: 480px) {
  .modal .modal-card,
  #storiesModal .modal-card {
    border-radius: 15px;
  }

  .modal .order-submit-row .festive-action {
    width: 100%;
  }
}

.btn.festive-action--gift {
  position: relative;
}

.btn.festive-action--gift::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 44% 28%, #fff9dc 0 1.5px, transparent 4px),
    radial-gradient(circle at 65% 65%, #ffe3a0 0 1px, transparent 3px),
    radial-gradient(circle at 28% 67%, #fff9dc 0 1px, transparent 3px),
    linear-gradient(105deg, transparent 22%, #ffe09f66 50%, transparent 80%);
  background-repeat: no-repeat;
  background-size: 48% 100%;
  animation: festive-order-sweep 3s ease-out infinite;
}

@keyframes festive-order-sweep {
  0% { background-position: -110% 0; opacity: 0; }
  5% { opacity: 1; }
  25% { background-position: 210% 0; opacity: 0; }
  100% { background-position: 210% 0; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .btn.festive-action--gift::after {
    animation: none;
    content: none;
  }
}

#customVideo .festive-action--chat,
#about .festive-action--send {
  min-width: min(230px, 100%);
  min-height: 52px;
  padding: 11px 21px;
  border-radius: 999px;
  font-size: clamp(1rem, 2.1vw, 1.16rem);
}

.festive-action--chat {
  --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5a7 7 0 0 1-7 7H8l-4 2v-9a7 7 0 0 1 7-7h2a7 7 0 0 1 7 7Z'/%3E%3Cpath d='M8.5 10h7m-7 4h4'/%3E%3C/svg%3E");
}

.festive-action--send {
  --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21 3-6.5 18-3.5-8-8-3.5L21 3ZM11 13l5-5'/%3E%3C/svg%3E");
}

/* Перехоплюємо натискання по обрізаному відгуку над відеоконтролами. */
.review-item {
  position: relative;
}

.review-item.is-partial::after {
  content: "";
  position: absolute;
  inset: 0;
  cursor: pointer;
}

@media (max-width: 640px) {
  body {
    background-image: linear-gradient(to bottom, transparent 32%, var(--bg) 55%),
      url("../img/christmas-top-mobile-snow.webp"), url("../img/christmas-bottom.webp");
    background-size: 100% 100vw, 100% auto, 100% auto;
  }

  .hero-price .new {
    font-size: clamp(2rem, 9.6vw, 2.8rem);
    line-height: 1.05;
  }

  .hero-price .old {
    font-size: clamp(1.25rem, 5.7vw, 1.6rem);
  }
}

@media (max-width: 640px) {
  .price-box {
    background-image: linear-gradient(110deg, #e4ebd54d, transparent 78%),
      url("../img/christmas-price-mobile.webp");
    background-position: center bottom;
  }

  .price-box .price-right {
    max-width: 100%;
  }

  .price-box .price-row {
    flex-wrap: wrap;
    row-gap: 6px;
  }
}

@media (min-width: 901px) {
  .price-box {
    padding-inline: clamp(54px, 6vw, 90px);
  }
}


.section-title {
  gap: clamp(10px, 1.4vw, 16px);
  margin-bottom: clamp(12px, 1.6vw, 18px);
  font-size: clamp(1.3rem, 3.15vw, 2.15rem);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -.035em;
  color: #173529;
  text-wrap: balance;
}

.section-title--callout {
  margin-bottom: 8px;
  font-size: clamp(1.18rem, 2.7vw, 1.55rem);
}

.section-icon {
  display: block;
  flex: 0 0 auto;
  width: clamp(44px, 5.2vw, 62px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.section-title > span:last-child {
  min-width: 0;
}

header :is(#btnMyVideos, #btnMyVideosLink) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.my-videos-icon {
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
}

.logo-badge--camera {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: none;
  border-radius: 0;
}

@media (max-width: 640px) {
  .logo-badge--camera {
    width: 36px;
    height: 36px;
  }

  .hero-title h1 {
    font-size: clamp(25px, 7.4vw, 34px);
    width: 75%;
    margin: auto;
  }
}

#top.wrap {
  padding-top: 15px;
}

@media (640px < width <= 900px) {
  #top.wrap { padding-inline: 7vw; }
}
@media (900px < width < 1150px) {
  #top.wrap { padding-inline: 13vw; }
}

@media (min-width: 1150px) {
  #top.wrap { max-width: 1210px; }
}

header {
  min-height: 56px;
  padding-top: 2px;
}

.logo-badge--camera {
  filter: drop-shadow(1px 0 #fffaf1) drop-shadow(-1px 0 #fffaf1)
    drop-shadow(0 1px #fffaf1) drop-shadow(0 -1px #fffaf1)
    drop-shadow(0 2px 2px #fffdf6bb);
}

#orderModal .seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.seg-icon {
  flex: none;
  width: 17px;
  height: 17px;
}

/* Снігові шапки трохи заходять на початок заокруглень. */
#top main :is(.step, .price-box, .why-inner, .card, .qa, .hero-video, .reaction-banner) {
  --snow-cap: url("../img/snow-cap-1.webp");
  --snow-height: 23px;
  --snow-radius: 18px;
  position: relative;
}

#top main :is(.price-box, .why-inner, .card, .hero-video) {
  --snow-height: clamp(25px, 2.6vw, 33px);
}

#top main :is(.price-box, .step:nth-child(2)) {
  --snow-cap: url("../img/snow-cap-2.webp");
}

#top main :is(.why-inner, .card, .step:nth-child(3)) {
  --snow-cap: url("../img/snow-cap-3.webp");
}

#top main .reaction-banner {
  --snow-cap: url("../img/snow-cap-2.webp");
  --snow-height: clamp(22px, 2.3vw, 29px);
}

#top main .hero-video {
  --snow-radius: 20px;
  --snow-cap: url("../img/snow-cap-4.webp");
}

#top main :is(.qa, .about-card) {
  --snow-cap: url("../img/snow-cap-5.webp");
}

#about .about-card {
  display: flow-root;
  overflow: visible;
}

#top main .qa {
  --snow-radius: 11px;
  --snow-height: 13px;
}

#top main .qa:nth-child(even) {
  --snow-cap: url("../img/snow-cap-1.webp");
}

#top main :is(.step, .price-box, .why-inner, .card, .qa, .hero-video, .reaction-banner, .review-item)::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -4px;
  inset-inline: max(4px, calc(var(--snow-radius) - 10px));
  height: var(--snow-height);
  transform: translateY(-64%);
  background: var(--snow-cap) center / 100% 100% no-repeat;
  pointer-events: none;
}

@media (width > 900px) {
  #top main :is(.step, .price-box, .why-inner, .card, .qa, .hero-video, .reaction-banner, .review-item)::before {
    top: -7px;
  }
}

#top main :is(.qa, .review-item, .hero-video)::before {
  top: -2px;
}

.btn.festive-action {
  --button-snow-cap: url("../img/snow-cap-5.webp");
  --button-snow-depth: 13px;
  --button-snow-inset: 15px;
  position: relative;
}

.festive-action .button-snow-cap {
  position: absolute;
  z-index: 2;
  top: -2px;
  inset-inline: var(--button-snow-inset);
  height: var(--button-snow-depth);
  transform: translateY(-68%);
  background: var(--button-snow-cap) center / 100% 100% no-repeat;
  pointer-events: none;
}

#top main .hero .festive-action {
  --button-snow-depth: 16px;
  --button-snow-inset: 15px;
}

#top main .festive-action--play {
  --button-snow-cap: url("../img/snow-cap-3.webp");
}

#top main .festive-action--chat {
  --button-snow-cap: url("../img/snow-cap-1.webp");
}

#reviews .carousel {
  padding-top: 19px;
}

#reviews .review-item {
  --snow-height: 21px;
  --snow-radius: 14px;
  --snow-cap: url("../img/snow-cap-1.webp");
  overflow: visible;
}

#reviews .review-item :is(img, video) {
  border-radius: inherit;
}

#reviews .review-item:nth-child(5n + 2) { --snow-cap: url("../img/snow-cap-2.webp"); }
#reviews .review-item:nth-child(5n + 3) { --snow-cap: url("../img/snow-cap-3.webp"); }
#reviews .review-item:nth-child(5n + 4) { --snow-cap: url("../img/snow-cap-4.webp"); }
#reviews .review-item:nth-child(5n + 5) { --snow-cap: url("../img/snow-cap-5.webp"); }

@media (max-width: 640px) {
  .hero {
    row-gap: 36px;
  }

  .hero .hero-left {
    margin-top: 10px;
  }
}

header .logo > div:last-child {
  -webkit-text-stroke: 2px #fff8ed;
  paint-order: stroke fill;
  text-shadow: 0 1px 3px #fffdf4cc;
}

#reviews .carousel-arrow {
  border: 1.5px solid #855d39;
  border-radius: 50%;
  background: #fff8ec;
  box-shadow: 0 2px 8px #25180938;
}

#reviews .carousel-arrow:disabled {
  display: none;
}

#reviews .carousel-arrow:not(:disabled) {
  opacity: 1 !important; /* JS задає окрему прозорість для стану на краю. */
}

#reviews .carousel-arrow .arrow-ico {
  stroke: #173529;
}

#reviews .carousel-arrow:focus-visible {
  outline: 2px solid #173529;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .card:has(> #btnOrderMiddle) > div {
    flex-basis: 100%;
  }

  #btnOrderMiddle {
    width: min(100%, 239px);
    margin-inline: auto;
  }
}

/* Зайчик і лисичка визирають з краю екрана. */
body > #holiday-bunny {
  position: fixed;
  z-index: 3;
  right: 0;
  --bunny-width: calc(min(clamp(256px, 28vw, 416px), 100svh - 16px) * .8);
  bottom: clamp(8px, var(--bunny-bottom, 12svh), max(8px, 100svh - var(--bunny-width) - 8px));
  width: calc(var(--bunny-width) * 350 / 452);
  overflow: hidden;
  pointer-events: none;
}

#holiday-bunny :is(img, canvas) {
  display: block;
  width: 100%;
  height: auto;
}

body > #holiday-bunny[data-side="left"] {
  right: auto;
  left: 0;
  transform: scaleX(-1);
}

body:has(.modal:is(.open, [aria-hidden="false"])) > #holiday-bunny {
  display: none;
}

@media (max-width: 640px) {
  body > #holiday-bunny {
    --bunny-width: calc(min(216px, 100svh - 16px) * .8);
  }
}

@media (max-width: 640px) {
  #btnWatch::after {
    content: "";
    position: absolute;
    top: calc(50% - 10px);
    left: 50%;
    width: calc(100vw - 16px);
    height: 34vw;
    transform: translate(-50%, -50%);
    background: url("../img/christmas-top-mobile-snow.webp") center calc(100% + 5vw) / 100% auto no-repeat;
    mask-image: linear-gradient(90deg, #000 12%, transparent 19% 81%, #000 88%),
      linear-gradient(transparent, #000 14% 84%, transparent);
    mask-composite: intersect;
    pointer-events: none;
  }
}

.footer-to-up {
  overflow: visible;
}

.footer-to-up a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 7px 14px;
  border: 1px solid #98734d;
  border-radius: 999px;
  background: #fff7ed;
  color: #173529;
}

.footer-to-up a::after {
  content: "";
  width: 17px;
  height: 17px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 16V4m-5 5 5-5 5 5'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: back-to-top-pulse 2s ease-in-out infinite;
}

.footer-to-up a:focus-visible {
  outline: 2px solid #173529;
  outline-offset: 3px;
}

@keyframes back-to-top-pulse {
  0%, 65%, 100% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-2px) scale(1.17); }
}

@media (prefers-reduced-motion: reduce) {
  .footer-to-up a::after {
    animation: none;
  }
}

@media (max-width: 640px) {
  .footer-to-up {
    display: flex;
    justify-content: center;
  }

  .footer-to-up a {
    width: min(100%, 220px);
    justify-content: center;
  }
}

.extra-photos {
  margin: 8px 0 14px;
}

.extra-photos summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  list-style: none;
  cursor: pointer;
}

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

.extra-photos-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #d6bb99;
  border-radius: 10px;
  background: #fff8ed;
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
}

.extra-photos-toggle svg { flex: none; }

.extra-photos-limit {
  color: var(--ink-soft);
  font-size: .88rem;
  line-height: 1.3;
}

.extra-photos[open] summary {
  margin-bottom: 10px;
}

.extra-photos .photo-drop {
  min-height: 100px;
}
.extra-photos .photo-ico {
  width: 48px;
  height: 48px;
}

.hero-price--crossed {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.hero-price--crossed::after {
  content: "";
  position: absolute;
  inset: 5% -4px;
  pointer-events: none;
  background:
    linear-gradient(to top right, transparent calc(50% - 1px), var(--promo-green) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(to bottom right, transparent calc(50% - 1px), var(--promo-green) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));
}

.hero-price--blogger {
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-price--blogger .new,
.hero-price__label {
  color: var(--promo-green);
}

.hero-price__label {
  margin-top: 4px;
  font: 600 .95rem/1.3 system-ui, sans-serif;
  text-align: center;
}

.hero-promo {
  width: min(100%, 340px);
  margin: 4px auto 0;
  color: var(--ink-soft);
  text-align: center;
  font-size: .9rem;
}

.hero-promo summary,
.hero-promo__remove {
  display: inline-block;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.hero-promo__remove {
  border: 0;
  background: none;
  padding: 2px 6px;
  color: inherit;
  font: inherit;
}

.hero-promo__form {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.hero-promo__form input,
.hero-promo__form button {
  border: 1px solid var(--line-1);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  padding: 8px 10px;
  font: inherit;
}

.hero-promo__form input {
  flex: 1;
  min-width: 0;
  font-size: 1rem;
}

.hero-promo__form button {
  cursor: pointer;
  font-weight: 600;
}

.hero-promo__error {
  margin: 6px 0 0;
  color: var(--accent);
}
