.hero {
    margin-top: 100px;
}

.hero__background {
    background-color: var(--color-accent);
    border-radius: 100%;
    height: 1080px;
    box-shadow: inset 0 0 10px var(--color-bg);
    margin-bottom: 250px;
}

.hero__text {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    text-align: center;
    color: var(--color-bg);
    padding-top: 62px;
}

.hero__text h1 {
    font-size: 94px;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 36px;
    margin-bottom: 26px;
}

.hero__text span {
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
}

.hero__text p {
    margin: 0 auto;
    font-size: 20px;
    max-width: 550px;
}

.hero__tv {
    display: flex;
    margin: 100px auto 0 auto;
    position: relative;
}

.tv-frame {
    position: absolute;
    left: 294px;
    top: 0;
    z-index: 2;
    transform: rotate(5deg);
}

.tv-picture {
    position: absolute;
    left: 10%;
    top: 11.1%;
    z-index: -1;
    width: 71.7%;
    height: 60.5%;
    overflow: hidden;
}

.tv-picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.tv-switch {
    position: absolute;
    top: 100px;
    right: 120px;
    z-index: 1;
}

.switch-mobile {
    display: none;
    position: absolute;
    top: 100px;
    right: 120px;
    z-index: 1;
}

@media (max-width: 1350px) {
    .tv-switch {
        right: 60px;
    }
}

@media (max-width: 1280px) {
    .hero__background {
        height: 900px;
        margin-bottom: 180px;
    }

    .hero__text {
        max-width: 1080px;
        text-align: center;
        margin: 0 auto;
    }

    .hero__text h1 { font-size: 74px; }

    .hero__tv {
        margin-top: unset;
    }

    .tv-frame {
        transform: rotate(5deg) scale(0.8);
        left: 224px;
    }
}

@media (max-width: 1150px) {
    .hero__background {
        height: 800px;
        margin-bottom: 140px;
    }

    .hero__text {
        max-width: 456px;
    }

    .hero__text h1   { font-size: 48px; }
    .hero__text span { font-size: 18px; }
    .hero__text p    { font-size: 18px; }

    .tv-frame {
        transform: rotate(5deg) scale(0.7);
        left: 184px;
    }

    .tv-switch {
        top: 140px;
    }
}

@media (max-width: 1080px) {
    .hero__background {
        height: 760px;
        margin-bottom: 120px;
    }

    .tv-frame {
        left: 124px;
    }
}

@media (max-width: 1000px) {
    .hero__background {
        height: 700px;
        margin-bottom: 50px;
    }

    .tv-frame {
        left: 84px;
    }

    .tv-switch {
        display: none;
    }

    .switch-mobile {
        display: block;
        top: 80px;
        right: 220px;
    }

    .way {
        margin-top: 300px;
    }
}

@media (max-width: 900px) {
    .hero__background {
        height: 660px;
    }

    .tv-frame {
        left: 44px;
    }

    .switch-mobile {
        right: 120px;
    }
}

@media (max-width: 850px) {
    .hero__background {
        height: 620px;
        margin-bottom: 40px;
    }

    .tv-frame {
        left: 4px;
    }

    .switch-mobile {
        top: 60px;
    }

    .way {
        margin-top: 350px;
    }
}

@media (max-width: 768px) {
    .hero {
        margin-top: 72px;
    }

    .hero__background {
        height: 580px;
        margin-bottom: 60px;
    }

    .hero__text {
        padding-top: 40px;
    }

    .hero__text h1 {
        font-size: 38px;
        margin-top: 20px;
        margin-bottom: 16px;
    }

    .hero__text span { font-size: 12px; }

    .hero__text p {
        font-size: 13px;
        max-width: 360px;
    }

    .way {
        margin-top: 250px;
    }
}

@media (max-width: 700px) {
    .tv-frame {
        left: 0;
    }

    .tv-picture {
        left: 38px;
        top: 38px;
        max-width: 500px;
    }
}

@media (max-width: 630px) {
    .tv-picture {
        max-width: 435px;
    }

    .switch-mobile {
        top: 40px;
    }
}

@media (max-width: 550px) {
    .tv-picture {
        max-width: 385px;
    }

    .switch-mobile {
        top: 40px;
        right: 92px;
    }

    .way {
        margin-top: 100px;
    }
}

@media (max-width: 500px) {
    .tv-picture {
        max-width: 305px;
    }

    .switch-mobile {
        top: 15px;
        right: 92px;
    }

    .way {
        margin-top: 25px;
    }
}

.way {
    padding-block: 80px;
}

.way__content {
    display: grid;
    grid-template-columns:
        minmax(0, 260px)
        1fr
        minmax(0, 260px)
        1fr
        minmax(0, 260px);
    justify-content: center;
    min-height: 380px;
}

.way__item:nth-child(1) { align-self: start; }
.way__item:nth-child(3) { align-self: end; }
.way__item:nth-child(5) { align-self: start; }

.way__item:nth-child(2),
.way__item:nth-child(4) {
    align-self: stretch;
    display: flex;
    align-items: stretch;
}

.way__item:nth-child(2) svg,
.way__item:nth-child(4) svg {
    display: block;
    width: 100%;
    height: 100%;
    flex: 1;
}

.way__svg {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    padding: 8px 0;
}

.way__text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.way__title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--color-text);
}

.way__description {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-text-muted);
}

.way__item {
    opacity: 0;
    will-change: opacity, transform;
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.way__item:nth-child(1) { transform: translateX(-28px); transition-delay: 0s; }
.way__item:nth-child(2) { transform: none; transition-delay: 0.18s; }
.way__item:nth-child(3) { transform: translateY(28px); transition-delay: 0.32s; }
.way__item:nth-child(4) { transform: none; transition-delay: 0.46s; }
.way__item:nth-child(5) { transform: translateX(28px); transition-delay: 0.6s; }

.way__item.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 767px) {
    .way {
        padding-block: 48px;
    }

    .way__content {
        grid-template-columns: 1fr auto 1fr;
        grid-template-rows: 1fr 1fr;
        min-height: 0;
        gap: 0;
    }

    .way__item:nth-child(1) { grid-column: 1; grid-row: 1; align-self: end; padding-bottom: 16px; }
    .way__item:nth-child(2) { grid-column: 2; grid-row: 1; align-self: stretch; width: 80px; }
    .way__item:nth-child(3) { grid-column: 3; grid-row: 1 / 3; align-self: center; }
    .way__item:nth-child(4) { grid-column: 2; grid-row: 2; align-self: stretch; width: 80px; }
    .way__item:nth-child(5) { grid-column: 1; grid-row: 2; align-self: start; padding-top: 16px; }

    .way__item:nth-child(2) svg,
    .way__item:nth-child(4) svg {
        width: 80px;
        height: 100%;
    }

    .way__item:nth-child(2) svg {
        transform: rotate(180deg);
    }

    .way__svg svg {
        width: 64px;
        height: auto;
    }

    .way__svg { gap: 10px; }
    .way__title { font-size: 14px; }
    .way__description { font-size: 11px; }

    .way__item:nth-child(1) { transform: translateX(-20px); }
    .way__item:nth-child(3) { transform: translateX(20px); }
    .way__item:nth-child(5) { transform: translateX(-20px); }
    .way__item:nth-child(2),
    .way__item:nth-child(4) { transform: none; }
}

.afisha {
    padding-block: 80px;
    margin-bottom: 100px;
}

.afisha .container {
    position: relative;
}

.afisha__item {
    position: absolute;
    left: 0;
    right: 0;
    border-radius: 20px;
    overflow: hidden;
    transform-origin: top center;
    will-change: transform, top;
}

.afisha__item.is-animated {
    transition:
        top 0.52s cubic-bezier(0.33, 1, 0.68, 1),
        transform 0.52s cubic-bezier(0.33, 1, 0.68, 1),
        box-shadow 0.52s ease;
}

.afisha__item svg {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 767px) {
    .afisha {
        padding-block: 48px;
        margin-bottom: 50px;
    }
}
