@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Manrope:wght@200..800&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    overflow-x: hidden;

}

img {
    width: 100%;
    max-width: 100%;
    height: auto;
}

main {
    margin-top: -50px;
    padding: 100px 0 50px;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(195deg,
            #E26900 1%,
            #FCB66B 15%,
            #F69400 29%,
            #F06605 75%,
            #F04E08 100%);

    background-repeat: no-repeat;
    background-size: cover;
}

.js-particles {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
}

/* .animated-particle {
    width: 12px;
    height: 12px;
    position: absolute;
    animation: rotate ease infinite;
    transition: filter .3s ease-in-out
} */

.animated-particle {
    width: 12px;
    height: 12px;
    position: absolute;
    pointer-events: none;

    animation: particle-float 6s ease-in-out infinite;
    will-change: transform;
}

.animated-particle .particle-svg {
    display: block;
    width: 100%;
    height: 100%;
    animation: particle-rotate 10s linear infinite;
    transform-origin: 50% 50%;
}



.animated-particle img {
    max-width: 100%;
}

.container-420 {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
    z-index: 2;
}

.section-title {
    margin: 0;
    font-size: 35px;
    font-weight: 800;
    line-height: 115%;
    color: #fff;
}

.section-text {
    margin: 0;
}

.img {
    display: grid;
    place-items: center;
}

.img>* {
    grid-area: 1 / -1;
}

.action {
    display: block;
    max-width: 288px;
    margin: auto;
    padding: 16px 24px;
    text-decoration: none;
    text-transform: uppercase;
    color: #000;
    font-size: 16px;
    font-weight: bold;
    line-height: 136%;
    letter-spacing: 0.02em;
    text-align: center;
    background-color: #fff;
    border-radius: 12px;
    outline-offset: 2px;
    outline-color: #fff;
    transition: box-shadow .3s ease-in-out, transform .3s ease-in-out;
}

.js-learn-more {
    background-color: #FF4E04;
    color: #fff;
}

.action:hover {
    color: #000;
    transform: scale(1.02);
    box-shadow: 0 2px 15px rgba(0 0 0 / 0.5);
}

.action:active {
    color: #000;
    transform: scale(.99);
    box-shadow: 0 2px 5px rgba(0 0 0 / 0.6);
}

.js-learn-more:active,
.js-learn-more:hover{
    color: #fff;
}

.action[data-disabled="true"] {
    pointer-events: none;
    filter: grayscale(1);
}

.hero {
    margin-bottom: 100px;
}

.hero .landing-logo {
    display: block;
    width: 92px;
    margin-bottom: 20px;
}

.hero .section-text {
    margin-bottom: 10px;
    color: #fff;
    width: 370px;
}

.hero .img {
    max-width: 100vw;
    margin: 0 -16px 10px;
}

/* ============================ how */
.how {
    margin-bottom: 100px;
}

.how .top {
    margin-bottom: 100px;
}

.how .descr-container-420 {
    padding: 20px;
    border-radius: 10px;
    background: rgba(139, 37, 0, 0.76);
    color: #fff;
}

.how .top .descr-container-420:not(:last-of-type) {
    margin-bottom: 15px;
}

.how .top .descr-container-420:last-of-type {
    margin-bottom: 20px;
}

.how .descr-container-420 :where(h3, p) {
    margin: 0;
}

.how .descr-container-420 h3 {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 800;
    line-height: 22px;
    text-align: left;
}

.how .descr-container-420 h3.decorated::before {
    content: "";
    display: inline-flex;
    margin-right: 10px;
    vertical-align: super;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: start;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
}


.how .descr-container-420 h3.ticket::before {
    background-image: url('./assets/images/ticket.png');
}

.how .descr-container-420 h3.youtube::before {
    background-image: url('./assets/images/youtube.png');
}

.how .descr-container-420 p {
    font-size: 16px;
    font-weight: 500;
    line-height: 130%;
}

.how .descr-container-420 p:not(:last-of-type) {
    margin-bottom: 1em;
}

.how .bottom {
    display: grid;
    gap: 15px;
}

.how .bottom .descr-container-420.form-container-420 {
    padding: 0;
    background-color: #fff;
}

.action.rules {
    margin: 24px 0 0 0;
    background-color: #F04D08;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #fff;
}

/* ======================================== faq */

.faq ul.faq-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* .opened  */
.faq-list li {
    background-color: #502908;
    color: #fff;
    border-radius: 10px
}

.faq-list li:not(:last-of-type) {
    margin-bottom: 20px;
}

.faq-list li button {
    padding: 20px 23px;
    width: 100%;
    font-family: inherit;
    font-size: 15px;
    line-height: 122%;
    border-radius: 10px;
    background-color: #A33A00;
    color: #fff;
    border: none;
    outline-color: #fff;
    outline-offset: 3px;
    text-align: left;
    cursor: pointer;
    display: flex;
    gap: 64px;
    align-items: center;
    perspective: 1000px;
}

.faq-list li button::after {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url("https://static.sz.kz/landings/420-iPhone15Pro/assets/images/Vector.png");
    background-repeat: no-repeat;
    background-size: 16px 8px;
    background-position: 50% 50%;
    vertical-align: middle;
    margin-left: auto;
    transform-style: preserve-3d;
    transition: transform .3s ease-in-out;
}

.faq-list li .panel {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    font-size: 16px;
    line-height: 130%;
    transition: max-height .5s ease-in-out, padding .5s ease-in-out;
}

.faq-list li .panel p {
    margin: 0;
    font-size: 16px;
    line-height: 130%;
}

.faq-list li .panel p:not(:last-of-type) {
    margin-bottom: 1em;
}

.faq-list li.opened .panel {
    padding: 20px;
}

.faq-list li.opened button::after {
    transform: rotateX(180deg)
}


.faq-list :where(ul, ol) {
    margin: 0;
    padding: 0;
    list-style: none;
}

.faq-list {
    counter-reset: inner-list-items;
}

.faq-list ol>li {
    counter-increment: inner-list-items;
    display: flex;
}

.faq-list ol>li::before {
    content: counter(inner-list-items)'.';
    font-size: inherit;
    color: #fff;
    font-weight: 700;
    margin-right: 14px;
}

.faq-list ol ul {
    margin-top: 0.5em;
}

.faq-list ol ul>li {
    position: relative;
}

.faq-list ol ul>li::before {
    content: "";
    position: absolute;
    left: -37px;
    top: 0;
    bottom: 0;
    margin: auto 0;
    width: 25px;
    height: 25px;
    background-repeat: no-repeat;
    background-size: 25px;
    background-position: left center;
    background-image: url("https://static.sz.kz/landings/420-iPhone15Pro/assets/images/star.png");
    ;
}

/* =================================== winners */


.row {
    padding-inline: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr) 66px;
    font-size: 12px;
    font-weight: 400;
    line-height: 120%;
    text-align: left;
}

.row .cell {
    margin-left: -2px;
}

.row.table-header .cell {
    color: #fff;
}

.row.table-header .cell:not(:last-of-type) {
    padding-left: 12px;
    color: #8B2500;
}

.row:not(:last-child) {
    margin-bottom: 10px;
}

.row.content .cell {
    padding: 18px 0 18px 12px;
}

.row.content .cell:first-of-type {
    border-radius: 10px 0 0 10px;
}

.row.content .cell:nth-last-of-type(2) {
    border-radius: 0 10px 10px 0;
}

.row.content .cell:last-of-type {
    border-radius: 10px;
    background-repeat: no-repeat;
    background-size: 34px 24px;
    background-position: 50% 50%;
    background-image: url('./assets/images/video.svg');
}

.row.content .cell:not(:nth-last-of-type(1)) {
    background-color: #8B2500;
    color: #fff;
}

.row.content .cell:last-child {
    position: relative;
    background-color: #FFA14B;
}

.row.content .cell:last-child a {
    position: absolute;
    inset: 0;
}

.row .cell:last-child {
    margin-left: 10px;
    color: #8B2500;
}

.winners-swiper {
    padding-bottom: 32px;
}

.winners-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255 255 255 /0.9);
}

@media (max-width: 819px) {
    .how .landing-logo {
        display: none;
    }
}


@media (min-width: 820px) {
    .container-420 {
        padding: 0 18px;
    }

    .animated-particle {
        width: 28px;
        height: 28px;
    }

    main {
        margin-top: -72px;
        padding: 150px 0 80px;
         background: linear-gradient(195deg,
            #E26900 1%,
            #FCB66B 22%,
            #F69400 29%,
            #F06605 75%,
            #F04E08 100%);
    }

    .section-title {
        margin-bottom: 30px;
        font-size: 60px;
    }

    .hero .landing-logo {
        width: 170px;
        margin-bottom: 40px;
    }

    .hero .section-text {
        margin-bottom: 20px;
        font-size: 28px;
        width: 700px;
    }

    /* ============================ how */

    .how .descr-container-420 {
        padding: 24px;
    }

    .how .top .descr-container-420:not(:last-of-type) {
        margin-bottom: 20px;
    }

    .how .top .descr-container-420:last-of-type {
        margin-bottom: 30px;
    }

    .how .descr-container-420 h3 {
        margin-bottom: 18px;
        font-size: 30px;
        line-height: 110%;
    }

    .how .descr-container-420 h3.decorated::before {
        margin-right: 20px;
        width: 40px;
        height: 40px;
    }

    .how .descr-container-420 p {
        font-size: 20px;
    }

    .how .bottom {
        gap: 20px;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            'form announce'
            'rules rules';
    }

    .form-container-420 {
        grid-area: form;
    }

    .logo-container-420 {
        grid-area: announce;
        display: flex;
        flex-direction: column;
    }

    .logo-container-420 p:first-of-type {
        margin-top: auto;
    }

    .rules-container-420 {
        grid-area: rules;
    }

    .how .landing-logo {
        display: block;
        width: 168px;
        margin-bottom: 24px;
    }

    /* ======================================== faq */
    .faq-list li button {
        font-size: 20px;
    }

    .faq-list li .panel {
        font-size: 20px;
    }

    .faq-list li .panel p {
        font-size: 20px;
    }

    /* ========================================= winners */
    .row.table-header .cell:not(:last-of-type) {
        padding-left: 40px;
    }

    .row {
        display: grid;
        grid-template-columns: repeat(3, 1fr) 76px;
        font-size: 20px;
    }

    .row.content .cell {
        padding: 18px 0 18px 40px;
    }
}

@media (min-width: 1024px) {
    main {
        padding-top: 230px;
    }
}

@keyframes particle-float {
    0% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-16px) translateX(10px);
    }

    100% {
        transform: translateY(0) translateX(0);
    }
}

@keyframes particle-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}