/* Epil: акции студий — страница /akcii/, блок «Акции студии», окно «Забрать акцию». Палитра проекта. */
.epil-promos,
.epil-promo,
.epil-promo-modal {
    --pr-accent: #d86eec;
    --pr-accent-dark: #b44fc9;
    --pr-accent-soft: #fbeefe;
    --pr-hot: #ef4444;
    --pr-text: var(--e-global-color-lcolor1, #374b5c);
    --pr-muted: var(--e-global-color-lcolor2, #73818c);
    --pr-line: var(--e-global-color-lcolor3, #d5e3ee);
    --pr-soft: var(--e-global-color-lcolor4, #f2f4f8);
    --pr-star: #ffb800;
    color: var(--pr-text);
}

.epil-promos [hidden],
.epil-promo[hidden],
.epil-promo-modal [hidden] {
    display: none !important;
}

/* ===== Страница ===== */
.epil-promos {
    display: grid;
    gap: 20px;
    box-sizing: border-box;
    width: 100%;
    max-width: 1232px;
    margin: 32px auto 64px;
    padding: 0 16px;
}

.epil-promos__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 32px;
}

html body .epil-promos__title {
    margin: 0 0 8px;
    font-family: var(--epil-font-heading, inherit);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
}

.epil-promos__lead {
    max-width: 640px;
    margin: 0;
    color: var(--pr-muted);
    font-size: 16px;
    line-height: 1.55;
}

.epil-promos__sort {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--pr-muted);
    font-size: 13px;
}

html body .epil-promos__sort select {
    height: 40px;
    padding: 0 32px 0 12px;
    border: 1px solid var(--pr-line);
    border-radius: 10px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23374b5c' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 10px center / 14px;
    color: var(--pr-text);
    font-size: 14px;
    font-weight: 600;
    appearance: none;
}

.epil-promos__zones {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.epil-promos__zones::-webkit-scrollbar {
    display: none;
}

html body .epil-promos__zone {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--pr-line);
    border-radius: 999px;
    background: #fff;
    color: var(--pr-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.epil-promos__zone em {
    color: var(--pr-muted);
    font-size: 12px;
    font-style: normal;
}

html body .epil-promos__zone.is-active,
html body .epil-promos__zone:hover {
    border-color: var(--pr-accent);
    background: var(--pr-accent-soft);
    color: var(--pr-accent-dark);
}

.epil-promos__studio-filter {
    margin: 0;
    color: var(--pr-muted);
}

html body .epil-promos__studio-filter a {
    color: var(--pr-accent-dark);
    font-weight: 600;
}

.epil-promos__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.epil-promos__empty {
    margin: 0;
    padding: 32px 20px;
    border-radius: 20px;
    background: #fff;
    text-align: center;
}

.epil-promos__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 22px 26px;
    border: 1.5px dashed var(--pr-accent);
    border-radius: 20px;
    background: var(--pr-accent-soft);
}

.epil-promos__cta div {
    display: grid;
    gap: 4px;
}

.epil-promos__cta span {
    color: var(--pr-muted);
}

/* ===== Карточка акции ===== */
.epil-promo {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
    transition: box-shadow .2s ease, transform .2s ease;
}

.epil-promo:hover {
    box-shadow: 0 16px 36px rgba(15, 23, 42, .12);
    transform: translateY(-2px);
}

.epil-promo.is-sold-out {
    opacity: .7;
}

.epil-promo__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pr-accent-soft), #ecd5f7);
}

.epil-promo__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.epil-promo__discount {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--pr-hot);
    box-shadow: 0 6px 16px rgba(239, 68, 68, .35);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.epil-promo__timer {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, .72);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

html body .epil-promo__play {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px 0 8px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .2);
    color: var(--pr-text);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.epil-promo__play svg {
    width: 16px;
    height: 16px;
    color: var(--pr-accent-dark);
}

.epil-promo__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px 18px;
}

.epil-promo__zone {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--pr-accent-soft);
    color: var(--pr-accent-dark);
    font-size: 12px;
    font-weight: 700;
}

html body .epil-promo__title {
    margin: 0;
    font-family: var(--epil-font-heading, inherit);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
}

.epil-promo__prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin: 0;
}

.epil-promo__prices b {
    color: var(--pr-hot);
    font-size: 20px;
    font-weight: 800;
}

.epil-promo__prices s {
    color: var(--pr-muted);
    font-size: 14px;
}

.epil-promo__condition {
    margin: 0;
    color: var(--pr-muted);
    font-size: 13px;
    line-height: 1.45;
}

html body .epil-promo__studio {
    display: grid;
    gap: 2px;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--pr-soft);
    color: var(--pr-text);
    text-decoration: none;
}

.epil-promo__studio-name {
    font-weight: 700;
}

html body .epil-promo__studio:hover .epil-promo__studio-name {
    color: var(--pr-accent-dark);
}

.epil-promo__studio-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
}

.epil-promo__studio-rating svg {
    width: 14px;
    height: 14px;
    fill: var(--pr-star);
}

.epil-promo__studio-rating em,
.epil-promo__studio-address {
    color: var(--pr-muted);
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
}

.epil-promo__left {
    margin: 0;
    color: var(--pr-hot);
    font-size: 13px;
}

.epil-promo__actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
}

html body .epil-promo__btn {
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 16px;
    border: 1.5px solid var(--pr-accent);
    border-radius: 12px;
    background: #fff;
    color: var(--pr-accent-dark);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

html body .epil-promo__btn--primary {
    background: var(--pr-accent);
    color: #fff;
}

html body .epil-promo__btn--primary:hover {
    background: var(--pr-accent-dark);
    color: #fff;
}

html body .epil-promo__btn--outline:hover {
    background: var(--pr-accent-soft);
}

html body .epil-promo__btn--icon {
    flex: 0 0 44px;
    padding: 0;
    border-color: var(--pr-line);
}

.epil-promo__btn--icon svg {
    width: 20px;
    height: 20px;
}

.epil-promo__btn--icon.is-telegram {
    color: #229ed9;
}

.epil-promo__btn--icon.is-whatsapp {
    color: #25d366;
}

html body .epil-promo__btn--disabled {
    border-color: var(--pr-line);
    background: var(--pr-soft);
    color: var(--pr-muted);
    cursor: default;
}

/* Компактная карточка — на странице студии */
.epil-promo--compact .epil-promo__media {
    aspect-ratio: 16 / 8;
}

.epil-studio-promos {
    display: grid;
    gap: 12px;
}

html body .epil-studio-promos__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-family: var(--epil-font-heading, inherit);
    font-size: 18px;
    font-weight: 800;
}

.epil-studio-promos__title span {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--pr-hot, #ef4444);
    color: #fff;
    font-size: 12px;
}

/* ===== Окно ===== */
.epil-promo-modal {
    position: fixed;
    inset: 0;
    z-index: 100020;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, .55);
}

.epil-promo-modal.is-open {
    display: flex;
}

html.epil-promo-lock,
html.epil-promo-lock body {
    overflow: hidden;
}

.epil-promo-modal__box {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 28px 24px 24px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .35);
}

html body .epil-promo-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--pr-soft);
    color: var(--pr-text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.epil-promo-modal__form {
    display: grid;
    gap: 12px;
}

.epil-promo-modal__title {
    margin: 0 32px 0 0;
    font-family: var(--epil-font-heading, inherit);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
}

.epil-promo-modal__studio {
    margin: -6px 0 4px;
    color: var(--pr-muted);
}

.epil-promo-modal__form label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}

html body .epil-promo-modal__form input[name=name],
html body .epil-promo-modal__form input[name=phone] {
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--pr-line);
    border-radius: 12px;
    font-size: 16px;
}

html body .epil-promo-modal__form label.epil-promo-modal__consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--pr-muted);
    font-weight: 400;
}

html body .epil-promo-modal__consent a {
    color: var(--pr-accent-dark);
}

.epil-promo-modal__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.epil-promo-modal__error {
    margin: 0;
    color: var(--pr-hot);
    font-size: 13px;
    font-weight: 600;
}

.epil-promo-modal__note {
    margin: 0;
    color: var(--pr-muted);
    font-size: 12px;
    text-align: center;
}

.epil-promo-modal__done {
    display: grid;
    gap: 14px;
    text-align: center;
}

.epil-promo-modal__ok {
    margin: 0;
    font-family: var(--epil-font-heading, inherit);
    font-size: 24px;
    font-weight: 800;
}

.epil-promo-modal__coupon {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 16px;
    border: 2px dashed var(--pr-accent);
    border-radius: 16px;
    background: var(--pr-accent-soft);
}

.epil-promo-modal__coupon span {
    color: var(--pr-muted);
    font-size: 13px;
}

.epil-promo-modal__coupon b {
    color: var(--pr-accent-dark);
    font-size: 28px;
    letter-spacing: .08em;
}

.epil-promo-modal__hint {
    margin: 0;
    color: var(--pr-muted);
    line-height: 1.5;
}

.epil-promo-modal__actions {
    display: grid;
    gap: 8px;
}

.epil-promo-modal__media {
    display: flex;
    justify-content: center;
    min-height: 200px;
}

@media (max-width: 767px) {
    html body .epil-promos__title {
        font-size: 26px;
    }

    .epil-promos__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .epil-promo-modal {
        align-items: flex-end;
        padding: 0;
    }

    .epil-promo-modal__box {
        max-width: none;
        border-radius: 20px 20px 0 0;
    }
}
