.hero-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body { overflow-x: hidden }

.hero-media .play {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.trust-card {
  background: #ffd9d1;
  color: #161616;
}

.trust-card p strong {
  color: #ff5a3c;
  font-size: 34px;
  line-height: 1;
}

.trust-card > div {
  border-top-color: rgba(22, 22, 22, .18);
  line-height: 1.35;
}

.section-transition {
  position: relative;
  height: 120px;
  max-width: 1600px;
  margin: 28px auto 0;
  overflow: hidden;
}

.section-transition::before,
.section-transition::after {
  content: "";
  position: absolute;
  top: 48px;
  width: 48%;
  height: 1px;
  background: #d9d7d1;
}

.section-transition::before { left: 0 }
.section-transition::after { right: 0 }
.section-transition span,
.section-transition i {
  position: absolute;
  left: 50%;
  border: 1px solid #ff5a3c;
  border-radius: 50%;
  transform: translateX(-50%);
}
.section-transition span { top: 18px; width: 62px; height: 62px }
.section-transition i { top: 29px; width: 40px; height: 40px; border-color: #c09afc }
.section-transition b { position: absolute; left: 50%; top: 35px; transform: translateX(-50%); font-size: 18px; font-weight: 500 }

.memories { padding-top: 34px }
.memories h2 { margin-top: 0 }
.occasion-marquee { overflow: hidden; margin: 44px calc(50% - 50vw) 0; padding: 10px 0 22px }
.occasion-track { display: flex; gap: 14px; width: max-content; animation: occasion-scroll 58s linear infinite }
.occasion-marquee:hover .occasion-track { animation-play-state: paused }
.occasion-card { position: relative; flex: 0 0 270px; height: 390px; margin: 0; overflow: hidden; border-radius: 28px; background: #ddd }
.occasion-card.wide { flex-basis: 390px; height: 310px; margin-top: 40px }
.occasion-card.medium { flex-basis: 320px; height: 350px; margin-top: 20px }
.occasion-card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35) }
.occasion-card strong { position: absolute; inset: auto 12px 12px; padding: 14px 16px; border-radius: 16px; background: rgba(247,246,242,.92); backdrop-filter: blur(8px); color: #161616; font-size: 15px; line-height: 1.2 }
.crop-family img { object-position: 8% 76% }
.crop-wedding img { object-position: 68% 50% }
.crop-graduate img { object-position: 96% 50% }
.crop-child img { object-position: 48% 50% }
.crop-birthday img { object-position: 10% 10% }
.crop-corporate img { object-position: 88% 88% }
.crop-professional img { object-position: 82% 72% }
@keyframes occasion-scroll { to { transform: translateX(calc(-50% - 7px)) } }
@media (prefers-reduced-motion: reduce) { .occasion-track { animation: none } .occasion-marquee { overflow-x: auto } }
@media (max-width: 700px) {
  .section-transition { height: 94px }
  .occasion-card { flex-basis: 220px; height: 320px }
  .occasion-card.wide { flex-basis: 300px; height: 260px; margin-top: 30px }
  .occasion-card.medium { flex-basis: 260px; height: 290px; margin-top: 15px }
  .memories h2 { font-size: 44px }
}

/* Readability, preview modal and final phone placement */
.mini-card p,
.trust-card > div,
.messengers > p span,
.msg-button small,
.occasion-card strong,
.memory-banner-copy > p { font-size: 13px }
.mini-card.lilac > strong { font-size: 38px; white-space: nowrap }
.memories h2 { font-size: clamp(34px, 4vw, 58px); white-space: nowrap; letter-spacing: -.06em }
.memory-banner > img {
  top: auto;
  right: 28px;
  bottom: 0;
  height: 370px;
  max-width: 330px;
  transform: scaleX(-1);
  transform-origin: center bottom;
}
.video-modal[hidden] { display: none }
.video-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 5vw; background: rgba(20,16,24,.84); backdrop-filter: blur(10px) }
.video-modal video { display: block; width: min(1180px, 94vw); max-height: 84vh; border-radius: 24px; background: #000; box-shadow: 0 30px 90px rgba(0,0,0,.5) }
.modal-close { position: fixed; top: 22px; right: 28px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; color: #161616; font-size: 30px; line-height: 1; cursor: pointer }
.modal-open { overflow: hidden }

@media (max-width: 900px) {
  .memories h2 { white-space: normal }
  .memory-banner > img { right: -2%; bottom: 0; transform: scaleX(-1) }
}

/* Final offer and compact conversion banner */
.price-sticker {
  padding: .18em .36em .22em;
  border-radius: 16px 10px 17px 12px;
  background: linear-gradient(135deg, #ff735d, #ff4d33);
  color: #fff;
  font-size: .67em;
  font-weight: 700;
  transform: rotate(-3.5deg) translateY(-.08em);
  box-shadow: 0 8px 0 #ffd0c7, 0 14px 30px rgba(255,90,60,.18);
}
.mini-card > strong { margin-top: auto }
.trust-card > p { margin-top: auto }
.memory-banner {
  position: relative;
  z-index: 4;
  min-height: 270px;
  max-height: 290px;
  overflow: visible;
  display: block;
}
.memory-banner-copy { position: relative; z-index: 2; padding: 30px 42px 28px }
.memory-banner-copy > strong { font-size: clamp(30px, 3vw, 47px) }
.memory-banner-copy > p { max-width: 680px; margin: 18px 0 16px; font-size: 13px; line-height: 1.38 }
.memory-banner > img {
  position: absolute;
  z-index: 3;
  right: 34px;
  top: -78px;
  bottom: auto;
  width: auto;
  max-width: 330px;
  height: 390px;
  min-height: 0;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 18px 28px rgba(80,45,40,.22));
  pointer-events: none;
}
.memory-banner-copy { padding-right: 360px }
.banner-cta { display: flex; align-items: center; gap: 9px; margin-top: auto }
.banner-cta > b { margin-right: 6px; font-size: 14px }
.banner-msg { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 999px; background: #fff; color: #161616; text-decoration: none; font-size: 12px; font-weight: 800; box-shadow: 0 8px 20px rgba(80,40,35,.12) }
.banner-msg span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; font-size: 10px; font-weight: 800 }
.vk-white span { background: #087bf0; color: #fff }
.max-white span { background: linear-gradient(135deg,#18bbef,#7834ed); color: #fff; font-size: 17px }

@media (max-width: 900px) {
  .memory-banner { max-height: none; grid-template-columns: 1fr; padding-bottom: 245px }
  .memory-banner > img { top: auto; bottom: -8px; right: -2%; width: auto; max-width: 290px; height: 310px }
  .memory-banner-copy { padding-right: 42px }
}

@media (max-width: 700px) {
  .price-sticker { font-size: .62em }
  .memory-banner-copy { padding: 26px 22px }
  .banner-cta { align-items: stretch; flex-wrap: wrap }
  .banner-cta > b { flex: 0 0 100%; margin-bottom: 3px }
  .memory-banner > img { width: auto; max-width: 270px; right: -12% }
}

/* Offer sticker and CTA order */
.hero-copy { display: block }
.hero h1 { max-width: 1180px }
.price-sticker {
  display: inline-block;
  margin-left: 12px;
  padding: .14em .28em .18em;
  border-radius: 12px;
  background: #ff5a3c;
  color: #161616;
  font-size: .55em;
  line-height: 1;
  letter-spacing: -.04em;
  white-space: nowrap;
  transform: rotate(-3deg) translateY(-.12em);
  box-shadow: 0 7px 0 rgba(255,90,60,.16);
}
.messengers { grid-template-columns: 320px 300px minmax(0, 1fr) }
.messengers > p { grid-column: auto; padding-left: 28px }
.messengers > p strong { font-size: clamp(19px, 1.7vw, 26px); line-height: 1.05; letter-spacing: -.035em }
.messengers > p span { font-size: 12px; margin-top: 7px }

/* Updated second-screen message */
.memories h2 { font-size: clamp(40px, 5.2vw, 82px) }
.memory-banner { min-height: 330px; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr) }
.memory-banner-copy { padding: clamp(28px, 3.3vw, 48px) }
.memory-banner-copy > strong { font-size: clamp(32px, 3.45vw, 54px) }
.memory-banner-copy > p { margin-top: auto; font-size: 14px; line-height: 1.45 }
.memory-banner > img { min-height: 330px; max-height: 380px; object-position: center 42% }

@media (max-width: 1000px) {
  .messengers { grid-template-columns: 1fr 1fr }
  .messengers > p { grid-column: 1 / -1; grid-row: 2 }
}

@media (max-width: 700px) {
  .price-sticker { margin: 12px 0 0 4px; transform: rotate(-2deg) }
  .messengers { grid-template-columns: 1fr }
  .messengers > p { grid-column: auto; grid-row: auto }
  .memory-banner { min-height: 0 }
  .memory-banner > img { min-height: 280px; max-height: 330px }
}

/* Compact first screen */
.site-header { height: 50px; padding-top: 0; padding-bottom: 0 }
.hero { padding-top: 18px; padding-bottom: 16px }
.hero-copy { margin-top: 0; margin-bottom: 22px }
.hero h1 { font-size: clamp(44px, 5.6vw, 84px); line-height: .9 }
.hero-grid { min-height: 245px }
.messengers { margin-top: 8px }
.msg-button { min-height: 62px }
.messengers > p { min-height: 62px }

/* Wave transition and alternate section background */
.section-transition { height: 118px; max-width: none; margin: 0; overflow: hidden }
.section-transition::before,
.section-transition::after,
.section-transition span,
.section-transition i,
.section-transition b { display: none }
.section-transition svg { display: block; width: 100%; height: 100% }
.section-transition path { fill: #eee8ff }
.memories { background: #eee8ff; box-shadow: 0 0 0 100vmax #eee8ff; clip-path: inset(0 -100vmax); padding-top: 18px; padding-bottom: 90px }
.memories h2 { margin-bottom: 30px }
.occasion-marquee { margin-top: 28px }
.occasion-card img { transform: none; object-position: center; transition: transform .7s ease }
.occasion-card:hover img { transform: scale(1.035) }

/* Editorial memory banner */
.memory-banner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); min-height: 430px; margin-top: 54px; border-radius: 34px; overflow: hidden; background: #ff684e; color: #161616 }
.memory-banner-copy { display: flex; flex-direction: column; padding: clamp(30px, 4vw, 64px) }
.memory-banner-copy > span { display: block; margin-bottom: 25px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase }
.memory-banner-copy > strong { max-width: 820px; font-size: clamp(34px, 4.1vw, 66px); line-height: .98; letter-spacing: -.055em; font-weight: 600 }
.memory-banner-copy > p { max-width: 700px; margin: auto 0 0; font-size: 15px; line-height: 1.55 }
.memory-banner > img { width: 100%; height: 100%; min-height: 430px; object-fit: cover }

@media (max-width: 900px) {
  .site-header { height: 56px }
  .hero-grid { min-height: 250px }
  .memory-banner { grid-template-columns: 1fr }
  .memory-banner > img { min-height: 300px; max-height: 420px }
  .memory-banner-copy > p { margin-top: 42px }
}

@media (max-width: 700px) {
  .hero { padding-top: 30px }
  .hero h1 { font-size: 44px }
  .section-transition { height: 84px }
  .memories { padding-top: 12px }
  .memory-banner { margin-top: 38px; border-radius: 26px }
  .memory-banner-copy { padding: 28px 22px 32px }
  .memory-banner-copy > strong { font-size: 34px }
}
