/* Акция «PRO на 10 дней за 1 ₽»: лендинг /akciya/, слайд в герое главной,
   левая часть попапа регистрации и плашка в кабинете.
   Основа — классы главной (index.css), здесь только то, чего там нет. */

/* ── Лендинг: картинка героя ─────────────────────────────── */
.trial-visual {
    position: relative;
    width: 100%;
    max-width: 560px;
    justify-self: center;
    aspect-ratio: 1 / 1;
    background: #FFCD4D;
    border-radius: 24px;
    overflow: hidden;
}

/* Кадр целиком, без вырезания: фон FLUX и есть фон панели */
.trial-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Наклейка слева: справа сверху у осьминога колпак */
.trial-sticker {
    position: absolute;
    top: 6%;
    left: 6%;
    width: clamp(96px, 22%, 128px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: #0F172A;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: rotate(-8deg);
    line-height: 1.1;
}

.trial-sticker b {
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.trial-sticker span {
    font-size: 12px;
    font-weight: 600;
    color: #FFCD4D;
    margin-top: 4px;
}

/* ── Лендинг: обещания под кнопкой ───────────────────────── */
.trial-promises {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 560px;
}

.trial-promises li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.45;
    color: #475569;
}

.trial-promises b { color: #0F172A; font-weight: 600; }

.trial-promises svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    fill: none;
    stroke: #2D5A66;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.trial-start-note b { color: #0F172A; font-weight: 600; }

/* ── Лендинг: блок подключения ───────────────────────────── */
.trial-start {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 64px);
    background: #F1F5F9;
    border-radius: 24px;
    padding: clamp(24px, 4vw, 48px);
    max-width: 1360px;
}

.trial-terms {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
}

.trial-terms li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 15px;
    line-height: 1.4;
}

.trial-terms li:last-child { border-bottom: none; }
.trial-terms span { color: #64748B; }
.trial-terms b { color: #0F172A; font-weight: 600; text-align: right; }

.trial-start-action {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    background: #FFFFFF;
    border-radius: 20px;
    padding: clamp(20px, 3vw, 32px);
}

.trial-start-action .consent-section { margin-bottom: 20px; }
.trial-start-action .plan-cta-btn { width: 100%; }

.trial-start-note {
    font-size: 13px;
    line-height: 1.5;
    color: #64748B;
    margin: 0;
}

.cta-link { color: #7FB3C4; text-decoration: underline; }
.cta-link:hover { color: #FFFFFF; }

@media (max-width: 1024px) {
    .trial-start { grid-template-columns: 1fr; }
    .trial-visual { max-width: 440px; }
}

@media (max-width: 560px) {
    .trial-terms li { flex-direction: column; gap: 2px; }
    .trial-terms b { text-align: left; }
}

/* ── Главная: герой слайдером ────────────────────────────── */
.hero-slides {
    display: grid;
    max-width: 1360px;
}

.hero-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease;
}

.hero-slider-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-slider-dot {
    width: 28px;
    height: 6px;
    border: none;
    border-radius: 3px;
    padding: 0;
    background: #E2E8F0;
    cursor: pointer;
    transition: background 0.2s ease, width 0.2s ease;
}

.hero-slider-dot.is-active { width: 44px; background: #0F172A; }
.hero-slider-dot:focus-visible { outline: 2px solid #4A90A4; outline-offset: 3px; }

.hero-slider-arrow {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #F1F5F9;
    color: #0F172A;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.hero-slider-arrow:hover { background: #E2E8F0; }
.hero-slider-arrow:focus-visible { outline: 2px solid #4A90A4; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    .hero-slide, .hero-slide.is-active { transition: none; }
}

/* ── Попап регистрации: левая часть с акцией ─────────────── */
/* base-page.css задаёт попапу всё через !important, поэтому и здесь так */
.signup-popup-left.signup-popup-left--promo {
    background: #FFCD4D !important;
    color: #0F172A !important;
    width: 280px !important;
    min-width: 280px !important;
    justify-content: flex-start !important;
    padding: 32px 24px 0 !important;
    gap: 8px !important;
}

.signup-popup-left--promo .sp-promo-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0F172A;
    opacity: 0.7;
    margin: 0;
    position: relative;
    z-index: 1;
}

.signup-popup-left.signup-popup-left--promo h3 {
    color: #0F172A !important;
    font-size: 30px !important;
    font-weight: 800 !important;
    line-height: 1.02 !important;
    letter-spacing: -0.03em !important;
}

.signup-popup-left.signup-popup-left--promo p {
    color: #0F172A !important;
    font-size: 13px !important;
    opacity: 0.8;
}

/* Осьминог «выглядывает из-за двери»: ровный левый край прижат к кромке панели */
.signup-popup-left--promo .sp-promo-img {
    margin-top: auto;
    margin-left: -24px;
    align-self: flex-start;
    width: 230px;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 640px) {
    .signup-popup-left.signup-popup-left--promo { display: none !important; }
}

/* ── Плашка в кабинете ───────────────────────────────────── */
.trial-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #FFCD4D;
    border-radius: 16px;
    padding: 8px 16px 0 0;
    margin: 16px clamp(16px, 2.6vw, 40px) 4px;
    color: #0F172A;
    overflow: hidden;
}

.trial-banner[hidden] { display: none; }

/* Тот же осьминог из-за края, что и в попапе */
.trial-banner img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    object-position: left bottom;
    flex-shrink: 0;
    align-self: flex-end;
}

.trial-banner-text, .trial-banner-btn, .trial-banner-close { margin-bottom: 8px; }

.trial-banner-text { flex: 1; min-width: 0; }
.trial-banner-text b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.trial-banner-text span { display: block; font-size: 13px; opacity: 0.8; margin-top: 2px; }

.trial-banner-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 10px;
    background: #0F172A;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.trial-banner-btn:hover { background: #1E293B; color: #FFFFFF; text-decoration: none; }

.trial-banner-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #0F172A;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
}

.trial-banner-close:hover { opacity: 1; background: rgba(15, 23, 42, 0.06); }

@media (max-width: 640px) {
    .trial-banner { flex-wrap: wrap; }
    .trial-banner img { width: 48px; height: 48px; }
    .trial-banner-btn { order: 3; width: 100%; justify-content: center; }
}
