:root {
    --ink: #ffffff;
    --ink-dim: rgba(255, 255, 255, 0.74);
    --ink-faint: rgba(255, 255, 255, 0.5);
    --pink: #ff6ec7;
    --violet: #7b5cff;
    --cyan: #38e8d6;
    --glass: rgba(255, 255, 255, 0.09);
    --glass-line: rgba(255, 255, 255, 0.18);
}

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }

body {
    min-height: 100dvh;
    color: var(--ink);
    background: #120a2e;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.85;
    z-index: 0;
    pointer-events: none;
    animation: float 14s ease-in-out infinite;
}
.b1 { width: 46vw; height: 46vw; max-width: 520px; max-height: 520px; background: #ff5fa2; top: -12vh; left: -8vw; }
.b2 { width: 50vw; height: 50vw; max-width: 560px; max-height: 560px; background: #6b4dff; bottom: -16vh; right: -10vw; animation-delay: -5s; }
.b3 { width: 36vw; height: 36vw; max-width: 420px; max-height: 420px; background: #18c8ff; top: 40%; left: 45%; opacity: 0.55; animation-delay: -9s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(4%, -5%) scale(1.08); }
}

.wrap {
    position: relative;
    z-index: 1;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px 16px;
}

.glass {
    width: 100%;
    max-width: 520px;
    background: var(--glass);
    border: 1px solid var(--glass-line);
    border-radius: 28px;
    padding: clamp(20px, 4vw, 32px);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    box-shadow: 0 30px 80px rgba(20, 6, 50, 0.55), inset 0 1px 0 rgba(255,255,255,0.22);
    text-align: center;
}

.hot {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 110, 199, 0.2);
    border: 1px solid rgba(255, 110, 199, 0.45);
    color: #ffd6ef;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

h1 {
    margin: 14px 0 0;
    font-size: clamp(26px, 6.4vw, 40px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.grad {
    background: linear-gradient(100deg, #ff8fd0 0%, #b69bff 50%, #6ee7ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    margin: 10px auto 0;
    max-width: 430px;
    color: var(--ink-dim);
    font-size: 14px;
    line-height: 1.55;
}

.slider {
    position: relative;
    margin: 18px 0 0;
}

.viewport {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--glass-line);
    background: rgba(0, 0, 0, 0.25);
}

.track {
    display: flex;
    will-change: transform;
    transition: transform 0.45s cubic-bezier(0.4, 0.05, 0.2, 1);
}
.track.no-anim { transition: none; }

.slide {
    position: relative;
    flex: 0 0 100%;
    margin: 0;
}

.slide img {
    width: 100%;
    height: clamp(170px, 26vh, 250px);
    object-fit: cover;
    object-position: center 42%;
    display: block;
    background: rgba(255, 255, 255, 0.05);
}

.cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 16px 13px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
    background: linear-gradient(180deg, transparent 0%, rgba(13, 5, 35, 0.55) 45%, rgba(13, 5, 35, 0.9) 100%);
}
.cap-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}
.cap-row b {
    font-size: clamp(16px, 4.4vw, 19px);
    font-weight: 800;
    letter-spacing: -0.01em;
}
.cap-row i {
    font-style: normal;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-dim);
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.14);
}
.cap-spec {
    font-size: 12.5px;
    color: var(--ink-dim);
}
.cap-price {
    margin-top: 4px;
    font-size: clamp(17px, 4.6vw, 21px);
    font-weight: 800;
    background: linear-gradient(100deg, #ff8fd0, #b69bff 55%, #6ee7ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav {
    position: absolute;
    top: calc(50% - 26px);
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--glass-line);
    border-radius: 50%;
    background: rgba(13, 5, 35, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.12s ease;
}
.nav svg { width: 18px; height: 18px; }
.nav.prev { left: 10px; }
.nav.next { right: 10px; }
.nav:hover { background: rgba(255, 110, 199, 0.55); }
.nav:active { transform: translateY(-50%) scale(0.92); }
.nav:focus-visible { outline: 2px solid #ff9fde; outline-offset: 2px; }

.dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 12px;
}
.dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}
.dot.active {
    width: 22px;
    border-radius: 4px;
    background: linear-gradient(100deg, #ff6ec7, #7b5cff);
}
.dot:focus-visible { outline: 2px solid #ff9fde; outline-offset: 3px; }

/* Блок преимуществ — показывается только на десктопе вместо слайдера */
.perks {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
}
.perk {
    padding: 9px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-line);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

/* Десктоп: прячем слайдер, показываем преимущества */
@media (min-width: 768px) {
    .slider { display: none; }
    .perks { display: flex; }
}

.btns {
    margin-top: 20px;
    display: grid;
    gap: 12px;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    height: 58px;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.14s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.pill svg { width: 21px; height: 21px; flex: 0 0 auto; }
.pill:active { transform: scale(0.985); }

/* Основная кнопка — Перейти в Макс */
.pill-primary {
    background: linear-gradient(100deg, #ff6ec7 0%, #7b5cff 100%);
    color: #fff;
    box-shadow: 0 14px 34px rgba(255, 110, 199, 0.4);
}
.pill-primary:hover { box-shadow: 0 18px 44px rgba(255, 110, 199, 0.55); transform: translateY(-2px); }

/* Второстепенная кнопка — Перейти в Телеграм */
.pill-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: var(--glass-line);
}
.pill-secondary:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-2px); }

.pill:focus-visible { outline: 2px solid #ff9fde; outline-offset: 3px; }

.hint {
    margin: 12px 0 0;
    color: var(--ink-faint);
    font-size: 12px;
}

.legal {
    width: 100%;
    max-width: 540px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    color: var(--ink-faint);
    font-size: 11px;
    line-height: 1.5;
}
.legal .org { color: var(--ink-dim); font-weight: 600; }
.legal .disc { font-size: 10px; opacity: 0.8; margin-top: 2px; }
.legal a {
    color: #ffb3e3;
    text-decoration: none;
    margin: 4px auto 0;
    width: fit-content;
}
.legal a:hover { text-decoration: underline; }

@media (max-width: 420px) {
    .glass { border-radius: 22px; padding: 20px 16px; }
    .pill { height: 54px; font-size: 15px; }
    .nav { width: 34px; height: 34px; }
}

/* Короткие экраны: ужимаем кадр и отступы, чтобы помещалось без прокрутки */
@media (max-height: 780px) {
    .slide img { height: clamp(150px, 20vh, 200px); }
    .wrap { gap: 12px; padding: 16px; }
    h1 { margin-top: 10px; }
    .slider { margin-top: 14px; }
    .btns { margin-top: 16px; }
}
@media (max-height: 640px) {
    .slide img { height: 140px; }
    .lead { display: none; }
    .pill { height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
    .blob { animation: none; }
    *, *::before, *::after { transition-duration: 0.01ms !important; }
}
