.phone {
    position: relative;
    z-index: 1;
    width: 280px;
    height: 560px;
    margin: 0 auto;
    overflow: hidden;
    border: 9px solid #05080F;
    border-radius: 44px;
    background: var(--dk);
    box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08);
}

.phone__notch {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    width: 100px;
    height: 24px;
    margin: 0 auto;
    border-radius: 0 0 16px 16px;
    background: #05080F;
}

.phone__slide {
    position: absolute;
    inset: 0;
    padding: 40px 12px 12px;
    opacity: 0;
    transform: translateX(24px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.phone__slide--active {
    opacity: 1;
    transform: none;
}

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

.phone__card {
    position: relative;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(11, 20, 33, .14);
}

.phone__label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--teal);
}

.phone__title {
    margin-top: 8px;
    font-family: var(--fd);
    font-weight: 400;
    font-size: 26px;
    line-height: 1.08;
    color: var(--ink);
}

.phone__text {
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--charcoal);
}

.phone__meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.phone__pages {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--stone);
}

.phone__bar {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(32, 36, 42, .1);
}

.phone__fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--teal);
}

.phone__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.phone__dot {
    position: relative;
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .5);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
    cursor: pointer;
    transition: width .3s, background .3s;
}

.phone__dot::before {
    content: "";
    position: absolute;
    inset: -8px -4px;
}

.phone__dot:hover {
    background: rgba(255, 255, 255, .85);
}

.phone__dot--active,
.phone__dot--active:hover {
    width: 20px;
    background: #fff;
}

.guide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.guide--flip .guide__visual {
    order: -1;
}

.guide__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.guide__chip {
    padding: 8px 12px;
    border: 1px solid var(--teal-mist);
    border-radius: 999px;
    background: var(--teal-frost);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--teal-deep);
}

.guide__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.lessons {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--sh);
}

.lessons__item {
    border-top: 1px solid var(--line);
}

.lessons__item:first-child {
    border-top: 0;
}

.lessons__head {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px 20px;
    border: 0;
    background: none;
    font-family: var(--fs);
    text-align: left;
    cursor: pointer;
}

.lessons__number {
    display: grid;
    place-items: center;
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--canvas);
    font-size: 13px;
    font-weight: 700;
    color: var(--teal-deep);
    transition: background .3s, color .3s;
}

.lessons__title {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    transition: color .2s;
}

.lessons__head:hover .lessons__title {
    color: var(--teal-deep);
}

.lessons__sign {
    font-size: 20px;
    line-height: 1;
    color: var(--stone-light);
    transition: transform .3s, color .3s;
}

.lessons__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.lessons__text {
    padding: 0 20px 16px 64px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--stone);
}

.lessons__item--open .lessons__number {
    background: var(--teal);
    color: #fff;
}

.lessons__item--open .lessons__sign {
    transform: rotate(45deg);
    color: var(--teal);
}

.stages {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--sh);
}

.stages__tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.stages__tab {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--canvas);
    font-family: var(--fs);
    text-align: center;
    cursor: pointer;
    transition: background .25s, border-color .25s;
}

.stages__tab:not(.stages__tab--active):hover {
    border-color: var(--line-2);
}

.stages__when {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--stone);
    transition: color .25s;
}

.stages__name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
    transition: color .25s;
}

.stages__tab--active {
    border-color: var(--dk);
    background: var(--dk);
}

.stages__tab--active .stages__when {
    color: #BFEAE3;
}

.stages__tab--active .stages__name {
    color: #fff;
}

.stages__detail {
    display: none;
    min-height: 132px;
    padding: 20px;
    border: 1px solid var(--teal-mist);
    border-radius: var(--r-sm);
    background: var(--teal-frost);
}

.stages__detail--active {
    display: block;
}

.stages__title {
    font-family: var(--fd);
    font-weight: 400;
    font-size: 20px;
    line-height: 1.2;
    color: var(--ink);
}

.stages__text {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--charcoal);
}

.stages__check {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
}

.planner {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--sh);
}

.planner__label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.planner__total {
    font-family: var(--fs);
    font-weight: 600;
    font-size: 26px;
    white-space: nowrap;
    color: var(--teal-deep);
}

.planner__range {
    margin: 12px 0 24px;
}

.planner__split {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.planner__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 13px;
}

.planner__name {
    color: var(--stone);
}

.planner__value {
    font-weight: 700;
    color: var(--ink);
}

.planner__bar {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--line);
}

.planner__fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    transition: width .35s;
}

.planner__fill--subscription {
    background: var(--stone-light);
}

.planner__fill--ads {
    background: var(--teal);
}

.planner__fill--buffer {
    background: var(--green);
}

.planner__note {
    margin-top: 16px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--stone-light);
}

@media (max-width: 900px) {
    .guide {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .guide--flip .guide__visual {
        order: 0;
    }

    .phone {
        width: 248px;
        height: 496px;
    }

    .phone__title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .stages__tabs {
        flex-wrap: wrap;
    }

    .stages__tab {
        flex: 0 0 calc(50% - 4px);
    }
}
