:root {
    --bg: #0d0a08;
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.72);
    --stroke: rgba(255, 255, 255, 0.18);

    --accent-1: #ff9c2f;
    --accent-2: #ff6a00;
    --accent-3: #ffd57a;

    --timer-base: #ac09e6;

    --radius: 22px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}
body {
    margin: 0;
    color: var(--text);
    font-family:
        "Montserrat",
        ui-sans-serif,
        -apple-system,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    background: #000 url("img/background.webp") center/cover no-repeat fixed;
    overflow-x: hidden;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}
.screen {
    padding: 14px 0 28px;
}

/* HEADER (компактный) */
.dm-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    justify-content: center;
}
.dm-logo {
    width: 96px;
    height: auto;
    flex: 0 0 auto;
    display: block;
}
.dm-header__text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dm-brand {
    margin: 0;
    font-family: "Russo One", "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 56px;
    letter-spacing: 0.05em;
}
.dm-tag {
    margin: 0;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #ffd599;
    font-weight: 800;
    background: rgb(255 213 153);
    color: #111;
    font-size: 16px;
    text-align: center;
}

/* TITLES */
.title-xl {
    text-align: center;
    font-family: "Russo One", "Montserrat", sans-serif;
    font-weight: 400;
    font-size: clamp(22px, 5vw, 48px);
    max-width: 900px;
    margin: 16px auto;
    text-align: end;
}

@media (max-width: 1000px) {
    .title-xl {
        text-align: center;
        font-family: "Russo One", "Montserrat", sans-serif;
        font-weight: 400;
        font-size: 22px;
        max-width: 900px;
        margin: 0 auto;
        text-align: center;
        width: 100%;
    }
}

.accent {
    color: #ff9719;
}

/* HERO: машина по центру, фичи слева */
.hero-wrap {
    position: relative;
    min-height: 520px;
}
.tap-area {
    width: min(900px, 100%);
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}
.tap-btn {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}
.tap-car {
    width: 75%;
    height: auto;
    display: block;
    transition: transform 0.12s ease;
    margin: 0 auto;
}

@media (max-width: 1000px) {
    .tap-car {
        width: 85%;
    }
}

.tap-btn:active .tap-car {
    transform: scale(0.985);
}

/* Прогресс-бар для тапов (5 сегментов) */
.tap-progress {
    width: min(520px, 90%);
    margin: 10px auto 0;
}

@media (max-width: 1000px) {
    .tap-progress {
              margin: 8px auto 12px;
    }
}

.tap-progress ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 26px; /* чёрные промежутки как в примере */
}
.tap-progress li {
    position: relative;
    height: 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(230, 209, 247, 0.95), rgba(220, 198, 244, 0.85));
    overflow: hidden;
}



@media (max-width: 1000px) {
.tap-progress li {
    height: 8px;
    }
}



.tap-progress li .fill {
    position: absolute;
    inset: 0;
    width: 0%;
    background: linear-gradient(90deg, #ff8a00 0%, #ff4c00 22%, #ff62c9 70%, #d8b9ff 100%);
    transition: width 0.22s ease;
}
.tap-progress li.active .fill {
    width: 100%;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}



.features--left {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: min(360px, 38vw);
    gap: 38px;
}
.feature {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgb(255 173 0);
    border: 1px solid var(--stroke);
}

@media (max-width: 991px) {
.feature {
      padding: 2px 12px;
}}


.card--lights {
    position: relative;
}
.card--lights::before {
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    top: -18px;
    height: 28px;
    background: url("img/lights.png") center top / contain repeat-x;
    pointer-events: none;
    background-size: auto;
}
.feature__label {
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    font-size: 20px;
    font-weight: 700;
}

@media (max-width: 1000px) {
    .feature__label {
       font-size: 16px;
        text-align: center;
        text-transform: math-auto;
        position: relative;
        top: 4px;
    }
}

.feature__value {
    margin: 0;
    font-weight: 900;
    font-size: 40px;
    -webkit-text-fill-color: #0000;
    background: linear-gradient(100deg, #fc0505, #2e0101);
    background-clip: text;
}

@media (max-width: 1000px) {
    .feature__value {
        font-size: 28px;
        text-align: center;
    }
}

.feature__value--big {
    font-size: 40px;
    -webkit-text-fill-color: #0000;
    background: linear-gradient(100deg, #fc0505, #2e0101);
    background-clip: text;
}

@media (max-width: 1000px) {
    .feature__value--big {
        font-size: 25px;
        text-align: center;
    }
}

/* OFFER (экран 2) */
.offer-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 18px;
    align-items: start;
}
.advantages {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.advantages picture {
    display: block;
}
.advantages img {
    width: 100%;
    height: auto;
    display: block;
}

.offer-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

@media (max-width: 1000px) {
    .offer-body {
        padding: 0 12px;
    }
}

.info {
    width: 100%;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--stroke);
    position: relative;
}
.info::before {
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    top: -18px;
    height: 28px;
    background: url("img/lights.png") center top / contain repeat-x;
}
.info-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

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

.pay-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    opacity: 0.95;
}
.pay-row img {
    width: 40px;
    height: auto;
}

.countdown {
    width: 100%;
    max-width: 680px;
    background: #ffffff87;
    padding: 16px;
    border: 2px solid #ffad00;
    border-radius: 20px;
}
.countdown__label {
    text-align: center;
    margin: 0 0 6px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgb(0 0 0);
    font-size: 15px;
    font-weight: 700;
}
.timer {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 6px 0 10px;
    flex-wrap: wrap;
}
.time-unit {
    min-width: 110px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--stroke);
}


@media (max-width: 720px) {
   .time-unit {
        min-width: 100px;
    }}

.time-value {
    font-family: "Russo One", "Montserrat", sans-serif;
    font-size: clamp(36px, 7vw, 62px);
    text-align: center;
    line-height: 1;
    color: transparent;
    background: linear-gradient(90deg, var(--timer-base), #f36aff, var(--timer-base));
    -webkit-background-clip: text;
    background-clip: text;
}




.time-label {
    text-align: center;
    margin-top: 6px;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgb(0 0 0);
    font-size: 15px;
    font-weight: 700;
}

@media (max-width: 720px) {
  .time-label{
           font-size: 10px;
    }}
    
.progress {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--stroke);
    border-radius: 999px;
    overflow: hidden;
    display: none;
}
.progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #7b4bff, #9a6aff, var(--accent-1));
    transition: width 1s linear;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
    .hero-wrap {
        min-height: unset;
        display: flex;
        flex-direction: column-reverse;
    }
    .features--left {
        position: static;
        transform: none;
        width: 100%;
        max-width: 520px;
        margin: 0 auto 14px;
        padding: 0 16px;
        gap: 10px;
    }
    .offer-grid {
        grid-template-columns: 1fr;
    }
}

/* Мобильная версия преимуществ: в ряд + замена картинок */
@media (max-width: 720px) {
    .advantages {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }
    .advantages img {
      
        height: auto;
    }
}

.tap-car {
    animation: shadow-pulse 2s infinite;
    cursor: pointer;
}

@keyframes shadow-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgb(255 173 0 / 14%);
        border-radius: 100%;
    }
    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(0, 150, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 150, 255, 0);
    }
}

@media (max-width: 991px) {
    .dm-header {
        max-width: 100%;
        padding: 8px;
    }
}

@media (max-width: 991px) {
    .dm-brand {
        font-size: 26px;
        text-align: center;
    }
}



/* чтобы монетки/блики позиционировались относительно кнопки */
.tap-btn{
  position: relative;
  overflow: visible;
}

/* Монетки */
.coin-pop{
  position:absolute;
  left: calc(50% + var(--sx, 0px));
  top:  calc(58% + var(--sy, 0px));
  width: var(--size, 46px);
  height: var(--size, 46px);
  transform: translate(-50%, -50%) scale(.6);
  pointer-events:none;
  will-change: transform, opacity, filter;
  filter: drop-shadow(0 12px 16px rgba(0,0,0,.45));
  animation: coin-fly-rich var(--dur, 900ms) cubic-bezier(.2,.9,.2,1) var(--delay, 0ms) forwards;
}

@keyframes coin-fly-rich{
  0%{
    opacity: 0;
    transform: translate(-50%, -50%) translate(0, 10px) scale(.55) rotate(0deg);
    filter: blur(.15px) brightness(1.05);
  }
  12%{ opacity: 1; }
  55%{
    opacity: 1;
    transform: translate(-50%, -50%)
      translate(calc(var(--dx, 0px) * .6), calc(var(--dy, -200px) * .6))
      scale(var(--scale, 1))
      rotate(calc(var(--rot, 720deg) * .6));
    filter: blur(.25px) brightness(1.12);
  }
  100%{
    opacity: 0;
    transform: translate(-50%, -50%)
      translate(var(--dx, 0px), var(--dy, -200px))
      scale(calc(var(--scale, 1) * .95))
      rotate(var(--rot, 720deg));
    filter: blur(.6px) brightness(1.18);
  }
}

/* Блики (sparkles) */
.spark-pop{
  position:absolute;
  left: calc(50% + var(--sx, 0px));
  top:  calc(58% + var(--sy, 0px));
  width: var(--s, 10px);
  height: var(--s, 10px);
  transform: translate(-50%, -50%);
  border-radius: 999px;
  pointer-events:none;
  will-change: transform, opacity, filter;
  background: radial-gradient(circle at 30% 30%, #fff, rgba(255,255,255,.35) 40%, rgba(255,255,255,0) 70%);
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.25));
  animation: spark-burst var(--dur, 520ms) ease-out var(--delay, 0ms) forwards;
}

@keyframes spark-burst{
  0%{ opacity: 0; transform: translate(-50%, -50%) scale(.5); }
  15%{ opacity: .95; }
  100%{
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--dx, 0px), var(--dy, -90px)) scale(1.2);
  }
}

/* На случай reduced motion */
@media (prefers-reduced-motion: reduce){
  .coin-pop, .spark-pop{ animation: none !important; display:none !important; }
}


@media (max-width: 991px){
body {
       background: #000 url(img/background.webp) center / cover no-repeat fixed;
    overflow-x: hidden;
    background-position: 10% 10%;
}}