/* ==================== Раздел «Промокоды» sib.fm ==================== */
:root {
    --pk-primary: #46748A;
    --pk-primary-dark: #3C6478;
    --pk-btn: #4E7D91;
    --pk-navy: #16283A;
    --pk-soft: #F1F7FA;
    --pk-hl: #E7F1F6;
    --pk-promo-bg: #E3EFF5;
    --pk-promo-border: #93B2C1;
    --pk-muted: #7E93A0;
    --pk-border: #E5EDF1;
}

* { box-sizing: border-box; }

.pk-body {
    margin: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--pk-navy);
    background: #FFFFFF;
    -webkit-font-smoothing: antialiased;
}

.pk-body a { text-decoration: none; }

.pk-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Хедер ---------- */
.pk-header {
    background: var(--pk-primary);
    color: #FFFFFF;
}
.pk-header__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 78px;
}
.pk-logo { display: flex; align-items: center; }
.pk-logo img { height: 34px; width: auto; display: block; }

.pk-badge {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid rgba(255, 255, 255, .8);
    border-radius: 999px;
    padding: 7px 18px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pk-nav {
    display: flex;
    align-items: center;
    gap: 38px;
    margin-left: 18px;
}
.pk-nav__link {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    opacity: .95;
}
.pk-nav__link:hover { opacity: 1; }
.pk-caret { flex: none; opacity: .85; }

.pk-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FFFFFF;
    border-radius: 999px;
    height: 46px;
    padding: 0 20px;
    width: 320px;
    color: var(--pk-muted);
}
.pk-search__ico { flex: none; }
.pk-search input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 16px;
    font-family: inherit;
    color: var(--pk-navy);
}

.pk-burger, .pk-search-ico-btn { display: none; }
.pk-burger {
    background: transparent;
    border: none;
    width: 34px;
    height: 34px;
    padding: 6px 4px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}
.pk-burger span { display: block; height: 2.5px; background: #FFFFFF; border-radius: 2px; }
.pk-search-ico-btn {
    margin-left: auto;
    background: transparent;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    padding: 6px;
}

/* ---------- Герой ---------- */
.pk-main { padding-bottom: 60px; }
.pk-hero {
    position: relative;
    padding: 48px 0 36px;
}
.pk-hero__title {
    margin: 0;
    font-size: 56px;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -.01em;
    max-width: 80%;
}
.pk-br-m { display: none; }
.pk-hero__tag {
    position: absolute;
    right: 6px;
    top: 40px;
    width: 145px;
}
.pk-hero__tag img { width: 100%; height: auto; display: block; }

/* ---------- Баннеры ---------- */
.pk-banners {
    position: relative;
    margin-top: 8px;
}
.pk-banners__viewport {
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 3 / 1;
}
.pk-banners__track {
    display: flex;
    height: 100%;
    transition: transform .45s ease;
    touch-action: pan-y;
    user-select: none;
    cursor: grab;
}
.pk-banners__track:active { cursor: grabbing; }
.pk-banner {
    min-width: 100%;
    height: 100%;
    display: block;
}
.pk-banner picture { display: block; width: 100%; height: 100%; }
.pk-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 24px;
}
.pk-banners__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    background: #FFFFFF;
    color: var(--pk-primary);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(22, 40, 58, .18);
    z-index: 2;
}
.pk-banners__arrow--prev { left: -18px; }
.pk-banners__arrow--next { right: -18px; }
.pk-banners__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}
.pk-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: none;
    background: #CBD9E1;
    cursor: pointer;
    padding: 0;
}
.pk-dot.is-active { background: var(--pk-primary); }

/* ---------- Блок «Редакция рекомендует» ---------- */
.pk-reco {
    background: var(--pk-soft);
    border-radius: 28px;
    padding: 34px 40px 40px;
    margin-top: 36px;
}
.pk-reco__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}
.pk-reco__title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 30px;
    font-weight: 700;
}
.pk-reco__ico { width: 30px; height: 30px; flex: none; }
.pk-reco__all {
    color: var(--pk-primary);
    font-size: 19px;
    font-weight: 600;
    white-space: nowrap;
}
.pk-reco__all span { margin-left: 4px; }
.pk-reco__all--bottom { display: none; }

.pk-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.pk-empty { color: var(--pk-muted); font-size: 18px; padding: 20px 0; }

.pk-card {
    background: #FFFFFF;
    border: 1px solid var(--pk-border);
    border-radius: 20px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: box-shadow .2s ease, transform .2s ease;
}
.pk-card:hover { box-shadow: 0 10px 26px rgba(22, 40, 58, .10); transform: translateY(-2px); }
.pk-card__top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-height: 66px;
    margin-bottom: 8px;
}
.pk-card__img {
    width: 93px;
    height: 63px;
    flex: none;
    border-radius: 14px;
    background: #EEF3F6;
    overflow: hidden;
}
.pk-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pk-card__name {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.17;
    color: #000;
    padding-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pk-card__disc { margin: 12px 0 12px; }
.pk-card__disc span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 49px;
    background: linear-gradient(137.92deg, #D0E5EF 12.17%, #FFFFFF 53.51%, #CFE4EE 99.43%);
    border-radius: 12px;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 44px;
    line-height: 1.26;
    font-weight: 700;
    color: #000;
}
.pk-card__desc {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.05;
    color: #000;
    margin-bottom: 16px;
    flex-grow: 1;
}
.pk-card__btn {
    background: var(--pk-btn);
    color: #FFFFFF;
    border: none;
    border-radius: 14px;
    padding: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    transition: background .2s ease;
}
.pk-card__btn:hover { background: var(--pk-primary-dark); }

/* ---------- Модалка карточки ---------- */
.pk-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pk-modal[hidden] { display: none; }
.pk-modal__backdrop { position: absolute; inset: 0; background: rgba(12, 24, 36, .55); }
.pk-modal__card {
    position: relative;
    background: #FFFFFF;
    border-radius: 24px;
    width: 100%;
    max-width: 1044px;
    padding: 36px 34px 32px;
    box-shadow: 0 30px 80px rgba(12, 24, 36, .35);
    max-height: 92vh;
    overflow: auto;
}
.pk-modal__close {
    position: absolute;
    top: 36px;
    right: 32px;
    background: transparent;
    border: none;
    font-size: 30px;
    line-height: 1;
    color: #9AAAB4;
    cursor: pointer;
}
.pk-modal__card > :not(.pk-modal__close) { max-width: 904px; }
.pk-modal__top { display: flex; align-items: center; gap: 20px; }
.pk-modal__img { width: 284px; height: 122px; flex: none; border-radius: 16px; background: #EEF3F6; overflow: hidden; }
.pk-modal__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pk-modal__name { font-size: 32px; font-weight: 800; line-height: 1.1; }
.pk-modal__cat { font-size: 18px; color: var(--pk-muted); margin-top: 4px; }
.pk-modal__disc { font-size: 54px; font-weight: 800; letter-spacing: -.02em; margin-top: 22px; }
.pk-modal__desc { font-size: 24px; font-weight: 600; margin: 4px 0 24px; }
.pk-modal__hr { border: none; border-top: 1px solid var(--pk-border); margin: 8px 0 22px; }
.pk-modal__label { font-size: 18px; color: var(--pk-navy); font-weight: 600; margin-bottom: 12px; }
.pk-barcode__img { display: block; max-width: 100%; height: auto; margin: 4px 0 0; }
.pk-barcode__note { margin-top: 14px; font-size: 16px; line-height: 1.35; color: var(--pk-primary); font-weight: 500; }

.pk-promo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 34px;
    min-height: 74px;
}
.pk-promo__shape { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.pk-promo__code { position: relative; z-index: 1; font-size: 40px; font-weight: 700; letter-spacing: .04em; }
.pk-promo__copy {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    border: 1.5px solid var(--pk-primary);
    color: var(--pk-primary);
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 17px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
}
.pk-promo__copy.is-done { border-color: #4CA36B; color: #4CA36B; }
.pk-promo__hint { font-size: 15px; color: var(--pk-primary); opacity: .85; margin-top: 12px; }

.pk-modal__go {
    display: block;
    text-align: center;
    background: var(--pk-primary);
    color: #FFFFFF;
    border-radius: 14px;
    padding: 18px;
    font-size: 22px;
    font-weight: 600;
    margin-top: 22px;
}
.pk-modal__go:hover { background: var(--pk-primary-dark); }
.pk-modal__go span + span { margin-left: 8px; }
.pk-modal__until {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--pk-primary);
    font-size: 16px;
    font-weight: 600;
    margin-top: 18px;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1000px) {
    .pk-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .pk-nav {
        position: absolute;
        left: 0; right: 0;
        top: 78px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: var(--pk-primary-dark);
        margin: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
        z-index: 40;
    }
    .pk-nav.is-open { max-height: 260px; }
    .pk-nav__link { width: 100%; padding: 14px 24px; font-size: 17px; }
    .pk-header { position: relative; }
    .pk-header__inner { gap: 14px; }
    .pk-search { display: none; }
    .pk-burger { display: flex; }
    .pk-search-ico-btn { display: block; }
    .pk-badge { padding: 6px 14px; font-size: 12px; }
    .pk-logo img { height: 30px; }
}

@media (max-width: 760px) {
    .pk-container { padding: 0 16px; }
    .pk-hero { padding: 28px 0 22px; }
    .pk-br-m { display: inline; }
    .pk-hero__title { font-size: 26px; }
    .pk-hero__tag { width: 72px; top: 16px; right: 2px; }
    .pk-banners__arrow { display: none; }
    .pk-reco { padding: 22px 16px 32px; border-radius: 0; margin: 26px -16px 0; }
    .pk-reco__head { margin-bottom: 16px; }
    .pk-reco__title { font-size: 24px; }
    .pk-reco__all { font-size: 16px; }
    .pk-reco__all--top { display: none; }
    .pk-reco__all--bottom { display: flex; justify-content: flex-end; margin-top: 20px; }
    .pk-cards { grid-template-columns: 1fr; gap: 16px; }

    .pk-card {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas: "top top" "disc desc" "btn btn";
        align-items: center;
        column-gap: 14px;
        row-gap: 12px;
    }
    .pk-card__top { grid-area: top; margin-bottom: 0; }
    .pk-card__disc { grid-area: disc; margin: 0; }
    .pk-card__desc { grid-area: desc; margin: 0; font-size: 14px; }
    .pk-card__btn { grid-area: btn; padding: 11px; font-size: 15px; border-radius: 22px; }

    .pk-modal__card { padding: 24px; }
    .pk-modal__top { padding-right: 50px; }
    .pk-modal__img { width: 104px; height: 70px; }
    .pk-modal__name { font-size: 24px; }
    .pk-modal__disc { font-size: 40px; margin-top: 16px; }
    .pk-modal__desc { font-size: 16px; }
    .pk-promo { padding: 12px 24px; gap: 10px; min-height: 62px; }
    .pk-promo__code { font-size: 24px; }
    .pk-promo__copy { padding: 9px 12px; font-size: 14px; }
    .pk-modal__go { font-size: 19px; padding: 16px; }
}

/* Временно скрыто на странице промокодов (кнопка «Все предложения» и поиск) */
.pk-reco__all--top, .pk-reco__all--bottom { display: none !important; }
.pk-search, .pk-search-ico-btn { display: none !important; }
