.black-friday {
    --bf-ink: #1e1420;
    --bf-accent: #ffac73;
    --bf-ease: cubic-bezier(.2, 0, 0, 1);
    width: min(1280px, calc(100% - 48px));
    margin: 20px auto 0;
    color: var(--bf-ink);
}

/* The rotating landing icons extend above the artwork's layout box. */
.black-friday + .main-topic { padding-block-start: max(108px, calc(55px + 3.35vw)); }

.black-friday[dir="rtl"] { direction: rtl; }
.black-friday[dir="ltr"] { direction: ltr; }
.black-friday * { direction: inherit; }

.black-friday__hero {
    --bf-progress: 0;
    --bf-play-state: running;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    grid-template-areas: "intro art" "order art";
    align-content: center;
    align-items: center;
    column-gap: 24px;
    row-gap: 24px;
    min-height: 410px;
    padding: clamp(30px, 4.5vw, 65px);
    border: 1px solid #402934;
    border-radius: 28px;
    background:
        radial-gradient(ellipse at 53% 120%, #58273b 0, transparent 53%),
        linear-gradient(145deg, #261a2a, #140f18 58%, #231215);
    box-shadow: 0 20px 46px -30px #4d1e39;
    color: #fff5ef;
}

.black-friday__hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(#fff1eb0a 1px, transparent 1px),
        linear-gradient(90deg, #fff1eb0a 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to top, #000, transparent 92%);
    content: "";
}

.black-friday__hero::after {
    position: absolute;
    z-index: -1;
    inset: -40%;
    background: linear-gradient(117deg, transparent 33%, #c54a6d1f 44%, #ff925e3b 50%, #c54a6d16 56%, transparent 67%);
    opacity: 0;
    content: "";
}

.black-friday[data-motion] .black-friday__hero::after {
    animation: bf-light-sweep 6s ease-in-out infinite var(--bf-play-state);
}

.black-friday[data-offscreen] .black-friday__hero,
.black-friday:has(.black-friday__dialog[open]) .black-friday__hero {
    --bf-play-state: paused;
}

.black-friday__intro,
.black-friday__order {
    position: relative;
    z-index: 1;
}

.black-friday__intro { grid-area: intro; }
.black-friday__order { grid-area: order; }

.black-friday__date,
.black-friday__lead,
.black-friday__timer-title,
.black-friday__dialog-header p,
.black-friday__category p,
.black-friday__exceptions p {
    text-align: start;
}

.black-friday__date {
    margin-block-end: 9px;
    color: var(--bf-accent);
    font-size: clamp(.74rem, 1.25vw, .92rem);
    font-weight: 700;
    line-height: 1.7;
}

.black-friday__intro h2 {
    margin: 0;
    color: #fff5ef;
    font-size: clamp(2rem, 4.05vw, 3.7rem);
    font-weight: 900;
    letter-spacing: normal;
    line-height: 1.22;
}

.black-friday__lead {
    margin-block-start: 12px;
    color: #e6cdd8;
    font-size: clamp(.89rem, 1.5vw, 1.15rem);
    line-height: 1.65;
}

.black-friday__percentage {
    display: inline-flex;
    align-items: baseline;
    gap: .035em;
    font: inherit;
    white-space: nowrap;
}

.black-friday__percentage > * { font: inherit; }
.black-friday__percentage bdi { direction: ltr; }

.black-friday__art {
    --bf-orbit-travel: 120px;
    grid-area: art;
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    width: min(100%, 440px);
    aspect-ratio: 1.35;
    margin-inline: auto;
}

.black-friday__orbit-field {
    position: absolute;
    z-index: -1;
    inset: -9% -8%;
    display: grid;
    place-items: center;
    transform: translateY(calc(var(--bf-progress) * var(--bf-orbit-travel))) rotate(calc(var(--bf-progress) * 36deg));
}

.black-friday__orbit-field::before {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse, #8d315c 0, #66253b 27%, #a3492338 48%, transparent 71%);
    content: "";
}

.black-friday[data-motion] .black-friday__orbit-field::before {
    animation: bf-glow 3.6s ease-in-out infinite var(--bf-play-state);
}

.black-friday__orbit {
    --bf-sweep: 28deg;
    --bf-cycle: 3.3s;
    --bf-delay: 0ms;
    position: absolute;
    width: 93%;
    aspect-ratio: 1.7;
    border: 1px solid #ed7a4a73;
    border-radius: 50%;
    box-shadow: inset 0 -10px 24px -15px #f58c4d, 0 3px 34px -17px #ff9555;
    rotate: var(--bf-angle);
    animation: bf-orbit 1.1s var(--bf-ease) var(--bf-delay) both;
}

.black-friday[data-motion] .black-friday__orbit {
    animation:
        bf-orbit 1.1s var(--bf-ease) var(--bf-delay) both,
        bf-orbit-sway var(--bf-cycle) ease-in-out calc(1.1s + var(--bf-delay)) infinite alternate var(--bf-play-state);
}

.black-friday__orbit--outer { --bf-angle: -24deg; }

.black-friday__orbit--inner {
    --bf-angle: -15deg;
    --bf-sweep: -33deg;
    --bf-cycle: 2.6s;
    --bf-delay: 140ms;
    width: 80%;
    border-color: #ffb277c2;
}

.black-friday__orbit--cross {
    --bf-angle: 22deg;
    --bf-sweep: 25deg;
    --bf-cycle: 2.9s;
    --bf-delay: 280ms;
    width: 81%;
    border-color: #df7aa463;
}

.black-friday__orbit-track {
    position: absolute;
    inset: -.5px; /* Align the ellipse with the center of the 1px ring border. */
}

.black-friday__spark {
    position: absolute;
    top: 0;
    left: 0;
    width: 7px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #ffe1bb;
    box-shadow: 0 0 18px 4px #ff8c47;
    offset-path: ellipse(50% 50% at 50% 50%);
    offset-rotate: 0deg;
}

.black-friday__spark--rose {
    width: 5px;
    background: #ffd3e8;
    box-shadow: 0 0 14px 3px #ee608e;
    offset-distance: 50%;
}

.black-friday[data-motion] .black-friday__spark {
    animation: bf-spark-lap 5.4s linear infinite var(--bf-play-state);
}

.black-friday[data-motion] .black-friday__spark--rose {
    animation-duration: 7s;
    animation-direction: reverse;
    animation-delay: -2s;
}

.black-friday__offer {
    display: grid;
    justify-items: center;
    line-height: 1;
    transform: translateY(calc(var(--bf-progress) * 49px)) scale(calc(1 + var(--bf-progress) * .19));
    animation: bf-offer 900ms var(--bf-ease) 140ms both;
}

.black-friday__offer > span {
    color: #ffc091;
    background: linear-gradient(164deg, #fff0d8 10%, #ffb37d 48%, #f47c45 84%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 18px #210a14b0);
    font-size: clamp(5.25rem, 11vw, 10.25rem);
    font-weight: 1000;
    line-height: 1.17;
    white-space: nowrap;
}

.black-friday[data-motion] .black-friday__offer > span {
    background-image: linear-gradient(116deg, #f47c45 12%, #ffb37d 33%, #fff5e4 47%, #ffc499 56%, #f47c45 78%);
    background-size: 220% 100%;
    animation:
        bf-shine 4.2s ease-in-out infinite var(--bf-play-state),
        bf-float 2.8s ease-in-out infinite var(--bf-play-state);
}

.black-friday__offer small {
    color: #ffe1bf;
    font-size: clamp(.78rem, 1.3vw, 1rem);
    font-weight: 800;
}

.black-friday__timer-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-block-end: 9px;
    color: #f1dce1;
    font-size: .84rem;
}

.black-friday__timer-title::before {
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bf-accent);
    box-shadow: 0 0 12px #ffa9638c;
    content: "";
}

.black-friday[data-motion] .black-friday__timer-title::before {
    animation: bf-glow 1.8s ease-in-out infinite var(--bf-play-state);
}

.black-friday__timer {
    display: flex;
    gap: 8px;
}

.black-friday__unit {
    display: grid;
    place-items: center;
    min-width: 68px;
    padding: 6px 10px 7px;
    border: 1px solid #ffe4e134;
    border-radius: 12px;
    background: #ffffff0c;
    color: #efdae0;
    line-height: 1.3;
}

.black-friday__unit bdi {
    min-width: 2ch;
    color: #fffaf5;
    font-size: 1.7rem;
    font-variant-numeric: tabular-nums;
    font-weight: 850;
    text-align: center;
    direction: ltr;
}

.black-friday__unit span { font-size: .71rem; }
.black-friday__unit bdi[data-tick] { animation: bf-tick 350ms var(--bf-ease); }

.black-friday__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    margin-block-start: 18px;
}

.black-friday__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 9px 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: .86rem;
    font-weight: 750;
    transition: background-color 140ms, border-color 140ms, scale 140ms var(--bf-ease);
}

.black-friday__action > span {
    font: 700 1.05rem/1 system-ui, sans-serif;
}

.black-friday__action--primary {
    background: var(--bf-accent);
    color: #2a1522;
}

.black-friday__action--details {
    border-color: #ffe4e145;
    background: transparent;
    color: #fff5ef;
    cursor: pointer;
}

.black-friday__action--primary:hover { background-color: #ffc496; }
.black-friday__action--details:hover { background-color: #ffffff12; border-color: #ffe4e188; }
.black-friday__action:active { scale: .96; }

.black-friday__action:focus-visible,
.black-friday__close:focus-visible {
    outline: 2px solid var(--bf-accent);
    outline-offset: 4px;
}

.black-friday__dialog {
    --bf-dialog-padding: clamp(16px, 4vw, 30px);
    position: fixed;
    inset: 0;
    width: min(650px, calc(100% - 24px));
    max-width: none;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid #d6987870;
    border-radius: 24px;
    background: #fffaf6;
    box-shadow: 0 28px 90px #130a19a6;
    color: var(--bf-ink);
}

.black-friday__dialog[open] {
    display: flex;
    flex-direction: column;
    animation: bf-dialog-in 300ms var(--bf-ease) both;
}

.black-friday__dialog::backdrop {
    background: #170d1baf;
    backdrop-filter: blur(5px);
    animation: bf-backdrop-in 240ms ease-out both;
}

html:has(.black-friday__dialog[open]) { overflow: hidden; }

.black-friday__dialog-header {
    position: relative;
    display: grid;
    flex: none;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: clamp(10px, 3vw, 26px);
    padding: var(--bf-dialog-padding);
    border-bottom: 1px solid #ffe4e138;
    background:
        radial-gradient(ellipse at 5% 135%, #8c3d4d 0, transparent 54%),
        radial-gradient(ellipse at 98% 0, #64344b 0, transparent 57%),
        linear-gradient(140deg, #261b2c, #20141e 68%);
    color: #fff5ef;
}

.black-friday__dialog-header form {
    position: absolute;
    inset-block-start: 10px;
    inset-inline-end: 10px;
}

.black-friday__close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #ffe4e13d;
    border-radius: 50%;
    background: #fff4ed0e;
    color: #fff5ef;
    cursor: pointer;
    transition: background-color 150ms, border-color 150ms;
}

.black-friday__close:hover {
    border-color: #ffe4e18c;
    background-color: #fff4ed24;
}

.black-friday__close span { font: 300 1.6rem/1 system-ui, sans-serif; }

.black-friday__dialog-campaign {
    margin: 0 0 5px;
    color: var(--bf-accent);
    font-size: .82rem;
    font-weight: 800;
}

.black-friday__dialog-header h3 {
    margin: 0;
    color: #fff5ef;
    font-size: clamp(1.45rem, 5.2vw, 2.35rem);
    font-weight: 900;
    line-height: 1.3;
}

.black-friday__dialog-date {
    margin: 10px 0 0;
    color: #efd0dc;
    font-size: .79rem;
    line-height: 1.7;
}

.black-friday__dialog-offer {
    display: grid;
    justify-items: center;
    gap: 2px;
    margin-block-start: 34px;
    padding: 6px 12px 8px;
    border: 1px solid #f6b28f4d;
    border-radius: 14px;
    background: #ffb0781a;
    color: #ffdfbf;
    line-height: 1.2;
}

.black-friday__dialog-offer strong {
    color: #ffc191;
    font-size: clamp(1.75rem, 6.4vw, 3.1rem);
    font-weight: 900;
    white-space: nowrap;
}

.black-friday__dialog-offer > span { font-size: .68rem; }

.black-friday__dialog-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: auto;
    padding: var(--bf-dialog-padding);
}

.black-friday__dialog[open] .black-friday__dialog-body {
    animation: bf-enter 420ms var(--bf-ease) 60ms both;
}

.black-friday__categories {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 12px;
}

.black-friday__category,
.black-friday__exceptions {
    padding: clamp(12px, 3vw, 16px);
    border: 1px solid #efdbcf;
    border-radius: 14px;
    background: #fff;
}

.black-friday__category h4,
.black-friday__exceptions h4 {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 6px;
    color: #6f322e;
    font-size: .99rem;
    font-weight: 900;
    line-height: 1.55;
}

.black-friday__category h4::before,
.black-friday__exceptions h4::before {
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #bd6548;
    content: "";
}

.black-friday__category p,
.black-friday__exceptions p {
    margin: 0;
    color: #4c3a45;
    font-size: .89rem;
    line-height: 1.85;
}

.black-friday__services {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 0;
    padding: 0;
    direction: ltr;
    list-style: none;
}

.black-friday[dir="rtl"] .black-friday__services { justify-content: flex-end; }

.black-friday__services li {
    padding: 3px 7px;
    border: 1px solid #f1dfd6;
    border-radius: 6px;
    background: #fff4ed;
    color: #632f36;
    font-size: .77rem;
    font-weight: 750;
}

.black-friday__exceptions {
    margin-block-start: 12px;
    background: #fff0e8;
}

.black-friday__dialog-actions {
    display: flex;
    justify-content: flex-end;
    margin-block-start: 14px;
}

.black-friday__dialog-actions .black-friday__action:focus-visible {
    outline-color: #9c4930;
}

.black-friday__date { animation: bf-enter 520ms var(--bf-ease) both; }
.black-friday__intro h2 { animation: bf-enter 620ms var(--bf-ease) 100ms both; }
.black-friday__lead { animation: bf-enter 620ms var(--bf-ease) 200ms both; }
.black-friday__order { animation: bf-enter 620ms var(--bf-ease) 300ms both; }
@keyframes bf-enter {
    from { opacity: 0; translate: 0 12px; filter: blur(4px); }
    to { opacity: 1; translate: 0; filter: blur(0); }
}

@keyframes bf-offer {
    from { opacity: 0; scale: .78; translate: 0 16px; }
    to { opacity: 1; scale: 1; translate: 0; }
}

@keyframes bf-orbit {
    from { opacity: 0; scale: .69; rotate: calc(var(--bf-angle) - 34deg); }
    to { opacity: 1; scale: 1; rotate: var(--bf-angle); }
}

@keyframes bf-orbit-sway {
    from { rotate: var(--bf-angle); scale: 1; }
    to { rotate: calc(var(--bf-angle) + var(--bf-sweep)); scale: 1.07; }
}

@keyframes bf-spark-lap {
    from { offset-distance: 0%; }
    to { offset-distance: 100%; }
}

@keyframes bf-light-sweep {
    0%, 100% { opacity: 0; translate: -22% 6%; }
    18%, 48% { opacity: 1; }
    65% { opacity: 0; translate: 24% -7%; }
}

@keyframes bf-shine {
    0%, 100% { background-position: 7% 50%; }
    53% { background-position: 93% 50%; }
}

@keyframes bf-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -11px; }
}

@keyframes bf-glow {
    0%, 100% { opacity: 1; scale: 1; }
    50% { opacity: .53; scale: 1.13; }
}

@keyframes bf-tick {
    from { opacity: .52; transform: perspective(110px) translateY(7px) rotateX(-52deg); }
    to { opacity: 1; transform: perspective(110px) translateY(0) rotateX(0); }
}

@keyframes bf-dialog-in {
    from { opacity: 0; translate: 0 16px; scale: .97; }
    to { opacity: 1; translate: 0; scale: 1; }
}

@keyframes bf-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 1024px) {
    .black-friday + .main-topic { padding-block-start: max(80px, calc(20px + 15.6vw)); }
}

@media (max-width: 740px) {
    .black-friday { width: calc(100% - 28px); margin-block-start: 12px; }

    .black-friday__hero {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "intro" "art" "order";
        row-gap: 12px;
        min-height: 0;
        padding: 24px clamp(14px, 5vw, 30px);
        border-radius: 22px;
    }

    .black-friday__intro h2 { font-size: clamp(1.75rem, 7.25vw, 2.8rem); }
    .black-friday__lead { margin-block-start: 6px; }
    .black-friday__art { --bf-orbit-travel: 82px; width: min(82%, 310px); aspect-ratio: 1.65; }
    .black-friday__offer > span { font-size: clamp(4.5rem, 19vw, 7.5rem); }
}

@media (max-width: 520px) {
    .black-friday__dialog { border-radius: 20px; }
    .black-friday__dialog-offer { margin-block-start: 44px; }
    .black-friday__categories { grid-template-columns: minmax(0, 1fr); }
    .black-friday__dialog-actions .black-friday__action { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html:has(.black-friday) { scroll-behavior: auto; }

    .black-friday__hero::after,
    .black-friday__dialog::backdrop,
    .black-friday *,
    .black-friday *::before,
    .black-friday *::after {
        animation: none !important;
        transition: none !important;
    }

    .black-friday__orbit-field,
    .black-friday__offer { transform: none; }
}
