/* ================= PROGRAM PAGES ================= */
@view-transition { navigation: auto; }

.pg { background: var(--bg) }
:where(.pg) section { padding: 0 }

/* ---- header ---- */
.pg-hdr-l { display: flex; align-items: center; gap: 12px }
.pg-back {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-content: center;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    transition: background .25s, transform .25s var(--ease)
}
.pg-back svg { width: 16px; height: 16px }
.pg-back:hover { background: rgba(255, 255, 255, .24) }
.pg-back:active { transform: scale(.92) }
.menu-open .pg-back { opacity: 0; pointer-events: none }

.pg-menu-progs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px }
.pg-menu-progs a {
    height: 38px;
    padding: 0 16px;
    border-radius: 99px;
    border: 1px solid var(--line-2);
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em
}
.pg-menu-progs a[aria-current] { background: var(--acid); color: var(--acid-ink); border-color: var(--acid) }

/* ---- fixed background preview ---- */
.pg-bg {
    position: fixed;
    inset: 0;
    height: 100lvh;
    z-index: 0;
    overflow: hidden;
    background: #000
}
.pg-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 20%;
    transform-origin: 50% 30%;
    will-change: transform, opacity
}
.pg-bg::after { /* затемнение снизу + затемнение при прокрутке */
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,.45) 0, rgba(0,0,0,0) 16%, rgba(0,0,0,0) 30%, rgba(10,10,10,.72) 52%, rgba(10,10,10,.9) 72%, var(--bg) 100%),
        rgba(10, 10, 10, var(--dark, 0));
    pointer-events: none
}

main#top { position: relative; z-index: 1 }
.pg .hdr, .pg .hdr.scrolled { background: none; transition: none }
.pg .hdr::before {
    content: "";
    position: absolute;
    inset: 0 0 -22px 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(10,10,10,.96) 0, rgba(10,10,10,.88) 65%, rgba(10,10,10,0) 100%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none
}
.pg .hdr.scrolled::before { opacity: 1 }
@media (max-width: 1079px) {
    /* мобайл: плашка темнеет синхронно с затемнением превью, без резкого включения */
    .pg .hdr::before, .pg .hdr.scrolled::before { opacity: var(--hs, 0); transition: none }
}


/* ---- hero ---- */
.pg-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 110px var(--pad) 44px !important;
    text-align: center
}
.pg-hero-in { will-change: transform, opacity }
.pg-kicker {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--acid);
    margin-bottom: 14px
}
.pg-kicker span { text-transform: none; letter-spacing: 0 }
.pg-title {
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(64px, 20vw, 150px);
    line-height: .86;
    letter-spacing: -.055em;
    text-transform: uppercase
}
.pg-sub {
    margin-top: 12px;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(22px, 6.4vw, 30px);
    line-height: 1.1;
    letter-spacing: -.02em;
    color: #fff
}
.pg-desc {
    margin: 18px auto 0;
    max-width: 34ch;
    font-size: 15px;
    line-height: 1.55;
    color: #e2e2e0
}
.pg-buy { margin-top: 26px; min-width: 220px }

/* ---- sheet with content ---- */
.pg-sheet {
    position: relative;
    background: var(--bg);
    padding: 8px var(--pad) 0
}
.pg-sheet::before { /* мягкий переход фото → тёмный, как в истории */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 60px;
    background: linear-gradient(180deg, rgba(10,10,10,0), var(--bg));
    pointer-events: none
}
.pg-sheet .ftr { margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)) }

.pg-h2 {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(30px, 8.4vw, 44px);
    line-height: 1;
    letter-spacing: -.035em;
    color: #fff;
    margin-bottom: 18px
}

/* includes */
.pg-inc {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 24px 20px 10px
}
.pg-inc-t {
    font-family: var(--display);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -.01em;
    color: var(--muted);
    margin-bottom: 10px
}
.pg-inc-list { list-style: none }
.pg-inc-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid var(--line)
}
.pg-inc-list li:first-child { border-top: 0 }
.pg-num {
    flex: 0 0 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-content: center;
    background: rgba(200, 240, 60, .14);
    box-shadow: inset 0 0 0 1px rgba(200, 240, 60, .22);
    color: var(--acid);
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums
}
.pg-inc-list p { font-size: 15px; font-weight: 600; line-height: 1.35; color: #fff }

/* info */
.pg-infos { margin-top: 56px }
.pg-info-grid { display: grid; gap: 10px }
.pg-info {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 20px 20px 22px
}
.pg-info-i {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 11px;
    font-weight: 700;
    color: var(--acid);
    font-variant-numeric: tabular-nums
}
.pg-info h3 {
    font-family: var(--display);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -.015em;
    color: #fff;
    padding-right: 30px;
    margin-bottom: 8px
}
/*.pg-info h3::before {*/
/*    content: "";*/
/*    display: block;*/
/*    width: 22px;*/
/*    height: 3px;*/
/*    border-radius: 3px;*/
/*    background: var(--acid);*/
/*    margin-bottom: 14px*/
/*}*/
.pg-info-t { font-size: 14px; line-height: 1.6; color: #bdbdbb }
.pg-info-t ol { margin: 10px 0 0 18px; display: grid; gap: 4px }
.pg-info-t li::marker { color: var(--acid); font-weight: 700 }

/* tariffs */
.pg-tariffs { margin-top: 64px; scroll-margin-top: 84px }
.pg-tariff-grid { display: grid; gap: 10px }
.pg-tariff {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 22px 20px 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 16px 12px
}
.pg-tariff .btn-acid { grid-column: 1 / -1; height: 50px }
.pg-tariff.hot { border-color: rgba(200, 240, 60, .55); box-shadow: 0 0 0 1px rgba(200, 240, 60, .15), 0 24px 60px -30px rgba(200, 240, 60, .45) }
.pg-tariff:not(.hot) .btn-acid { background: #fff; color: #0a0a0a }
.pg-badge {
    position: absolute;
    top: -11px;
    left: 20px;
    height: 22px;
    padding: 0 10px;
    border-radius: 99px;
    background: var(--acid);
    color: var(--acid-ink);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center
}
.pg-t-term { font-size: 16px; font-weight: 700; color: #fff }
.pg-t-price {
    font-family: var(--display);
    font-weight: 800;
    font-size: 36px;
    line-height: 1;
    letter-spacing: -.035em;
    text-align: right
}
.pg-t-price span { font-size: .5em; margin-left: 3px; color: var(--muted) }

/* others */
.pg-others { margin-top: 64px }
.pg-other-grid { display: grid; gap: 10px }
.pg-other {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px 10px 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    transition: border-color .25s, transform .4s var(--ease)
}
.pg-other img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; object-position: 50% 20% }
.pg-other-cap { display: flex; flex-direction: column; flex: 1; min-width: 0 }
.pg-other-cap b { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; line-height: 1.05 }
.pg-other-cap i { font-style: normal; font-size: 13px; color: var(--acid); font-weight: 600; margin-top: 3px }
.pg-other-go {
    flex: 0 0 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    display: grid;
    place-content: center;
    transition: background .25s, color .25s, border-color .25s
}
.pg-other-go svg { width: 16px; height: 16px }
.pg-other:hover { border-color: var(--line-2) }
.pg-other:hover .pg-other-go { background: var(--acid); color: var(--acid-ink); border-color: var(--acid) }

.pg-home {
    margin-top: 28px;
    height: 56px;
    border-radius: 99px;
    border: 1px solid var(--line-2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
    transition: border-color .25s, color .25s
}
.pg-home svg { width: 16px; height: 16px }
.pg-home:hover { border-color: var(--acid); color: var(--acid) }

/* toast */
.pg-toast {
    position: fixed;
    left: 50%;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 70;
    transform: translate(-50%, calc(100% + 60px));
    visibility: hidden;
    width: max-content;
    max-width: calc(100% - 40px);
    text-align: center;
    padding: 14px 18px;
    border-radius: 16px;
    background: #fff;
    color: #0a0a0a;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    transition: transform .5s var(--ease), visibility .5s
}
.pg-toast.on { transform: translate(-50%, 0); visibility: visible }

/* ---- tablet ---- */
@media (min-width: 720px) {
    .pg-sheet > *:not(.ftr) { max-width: 680px; margin-left: auto; margin-right: auto }
    .pg-info-grid { grid-template-columns: 1fr 1fr }
    .pg-other-grid { grid-template-columns: 1fr 1fr }
}

/* ---- desktop: фото слева «в рамке», контент справа ---- */
@media (min-width: 1080px) {
    .pg { --col: min(46vw, 720px) }
    .pg-bg {
        inset: 16px auto 16px 16px;
        width: calc(var(--col) - 16px);
        height: auto;
        border-radius: var(--r-lg);
        border: 1px solid var(--line)
    }
    .pg-bg img { height: 116%; object-position: 50% 15% }
    .pg-bg::after {
        background:
            linear-gradient(180deg, rgba(0,0,0,.5) 0, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 60%, rgba(0,0,0,.55) 100%),
            rgba(10, 10, 10, var(--dark, 0))
    }
    .hdr { padding-left: 40px; padding-right: 40px }
    .pg .hdr::before { left: var(--col) }
    main#top { margin-left: var(--col) }
    .pg-hero {
        min-height: 100vh;
        text-align: left;
        justify-content: center;
        padding: 120px 64px 80px !important
    }
    .pg-title { font-size: clamp(96px, 9.4vw, 168px) }
    .pg-sub { font-size: 34px }
    .pg-desc { margin-left: 0; font-size: 17px; max-width: 30ch }
    .pg-sheet { padding: 0 64px }
    .pg-sheet::before { display: none }
    .pg-sheet > *:not(.ftr) { max-width: 760px; margin-left: 0 }
    .pg-sheet .ftr { margin-left: -64px; margin-right: -64px; padding-left: 64px; padding-right: 64px }
    .pg-inc { padding: 32px 32px 16px }
    .pg-inc-list { columns: 1 }
    .pg-tariff-grid { grid-template-columns: repeat(3, 1fr); gap: 14px }
    .pg-tariff { grid-template-columns: 1fr; align-items: start; padding: 26px 22px 22px; gap: 10px }
    .pg-t-price { text-align: left; font-size: 40px; margin-bottom: 14px }
    .pg-tariff { transition: transform .45s var(--ease), border-color .3s }
    .pg-tariff:hover { transform: translateY(-6px) }
    .pg-other:hover { transform: translateY(-3px) }
    .pg-home { max-width: 320px }
}

/* ---- page transitions (Chrome / Safari 18+) ---- */
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: cubic-bezier(.16, 1, .3, 1) }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s }

@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
}
