@font-face {
  font-family: 'Teachers';
  src: url('../fonts/Teachers-Regular.ttf')
       format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
font-family: 'Teachers';
:root {
    --background-color: #F8F9FA;
    --text-color: #1A202C;
    --btn-color: linear-gradient(270deg, rgba(138, 43, 226, 0.85) 0%, rgba(30, 144, 255, 0.75) 100%);
    --accent-color: #87CEEB;
    --shadow-color: #718096;
    --footer-bg: #F0F8FF;
    --footer-text: #8A2BE2;
    --line-color: #4682B4;
    --light-black: rgba(26, 32, 44, 1);
}

body {
    background: linear-gradient(0deg,rgba(248, 249, 250, 1) 0%, rgba(240, 248, 255, 0.8) 80%, rgba(248, 249, 250, 1) 100%);
    color: var(--text-color);
    font-family: "Teachers", sans-serif;
}

*,
*::after,
*::before {
    box-sizing: border-box;
    border: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: .3s;

    &:hover {
        color: var(--footer-text);
    }
}

.container {
    max-width: 1140px;
    margin: 0 auto;
}

.header__block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 48px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

nav ul {
    display: flex;
    gap: 56px;
}

.burger {
    display: none;
    flex-direction: column;
    align-items: end;
    gap: 5px;
    width: 20px;
    cursor: pointer;
    z-index: 10001;

    span {
        background-color: var(--light-black);
        height: 3px;
        border-radius: 20px;
        transition: .3s;

        &:nth-child(1) {
            width: 12px;
        }

        &:nth-child(2) {
            width: 100%;
        }

        &:nth-child(3) {
            width: 7px;
        }
    }
}

/* Promo */

.promo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 72px;
}

.promo h2 {
    font-family: 'Teachers';
    font-weight: 700;
    font-style: Bold;
    font-size: 64px;
    text-align: center;
}

.promo p {
    font-family: 'Teachers';
    font-weight: 500;
    font-size: 24px;
    line-height: 160%;
    text-align: center;
}

.promo__img, .promo__label {
    max-width: 100%;

    img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

.promo__label {
    transform: translatey(-3rem);
}


/* offers */
.offer {
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.offer h2 {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    font-family: 'Teachers';
    margin-bottom: 32px;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin-top: 50px;
}

.offer__card {
    padding: 20px;
    border-radius: 12px;
    background-color: #fff;
    width: 100%;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

  

    .offer__card-btn {
        margin-top: 15px;
        animation: pulse 2s infinite;
    }

    .offer__card-btn:hover {
        animation: none;
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow:
            0 4px 15px rgba(138, 43, 226, 0.3),
            0 2px 8px rgba(30, 144, 255, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow:
            0 6px 20px rgba(138, 43, 226, 0.4),
            0 4px 12px rgba(30, 144, 255, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

.offer__card-img {
    background-color: rgba(0, 0, 85, 1);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    height: 120px;
    margin-bottom: 12px;

    img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

.offer__card-offer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;

    div {
        display: flex;
        align-items: center;
        gap: 8px;
        font-family: 'Teachers';
        font-size: 28px;
        font-weight: 700;
    }

    .offer__card-currency {
        width: 44px;
        height: 44px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 100%;
        background: var(--btn-color);
        font-weight: 400;
        color: #fff;
    }
}

.offer__card-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Teachers';
    font-weight: 400;
    font-size: 24px;
    margin-bottom: 12px;

    p:nth-child(2) {
        font-weight: 700;
    }
}

.offer__card-overview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(132, 132, 132, 1);
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 12px;
}

.offer__card-btn {
    background: linear-gradient(135deg, #8A2BE2 0%, #1E90FF 50%, #00BFFF 100%);
    padding: 20px 0;
    width: 100%;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 3px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 15px rgba(138, 43, 226, 0.3),
        0 2px 8px rgba(30, 144, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);

    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            rgba(255, 255, 255, 0.2),
            transparent);
        transition: left 0.6s ease;
        z-index: 1;
    }

    &::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%,
            rgba(0, 0, 0, 0.1) 100%);
        border-radius: 47px;
        z-index: 1;
    }

    a {
        display: block;
        color: #fff;
        font-weight: 800;
        font-size: 18px;
        width: 100%;
        position: relative;
        z-index: 2;
        text-shadow:
            0 2px 4px rgba(0, 0, 0, 0.3),
            0 1px 2px rgba(0, 0, 0, 0.2);
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    &:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow:
            0 12px 40px rgba(138, 43, 226, 0.5),
            0 8px 20px rgba(30, 144, 255, 0.4),
            0 4px 12px rgba(0, 191, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.5);
        background: linear-gradient(135deg, #9932CC 0%, #4169E1 50%, #00CED1 100%);

        &::before {
            left: 100%;
        }
    }

    &:active {
        transform: translateY(-2px) scale(1.01);
        box-shadow:
            0 8px 25px rgba(138, 43, 226, 0.4),
            0 4px 15px rgba(30, 144, 255, 0.3);
        transition: all 0.1s ease;
    }
}


/* footer */

footer {
    background: var(--footer-bg);
    padding: 40px 0 24px 0;
}

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

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

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

.footer__images {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 14px;
}

.footer__top__left img {
    max-width: 180px;
}

.footer__top__middle {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__top__middle h3 {
    font-family: 'Teachers';
    font-weight: 400;
    font-size: 20px;
    line-height: 130%;
    color: var(--footer-text);
}

.footer__top__middle p {
    font-family: 'Teachers';
    font-weight: 400;
    font-size: 14px;
    line-height: 130%;
}

.footer__top__right ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__top__right ul li {
    white-space: nowrap;
    font-family: 'Teachers';
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    
    &:hover {
        color: var(--footer-text);
    }
}

.line {
    width: 100%;
    height: 1px;
    background: var(--line-color);
}

.footer__bottom p {
    font-family: 'Teachers';
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
}

@media (max-width: 1200px) {
    .footer__block {
        padding: 0 16px;
    }
}

@media (max-width: 768px) {
    /* Header */
    .header {
        position: relative;

        h1 {
            font-size: 18px;
        }

        .header__block {
            padding: 24px 20px; 
        }

        .header__nav {
            position: absolute;
            left: 0;
            width: 100%;
            top: -100vh;
            z-index: 1000;
            background-color: var(--accent-color);
            padding: 60px 20px 20px;
            transition: .3s;

            ul {
                flex-direction: column;
                gap: 20px;
            }
        }

        .burger {
            display: flex;
        }
    }

    .header--active {
        .header__nav {
            top: 0;
        }

        .burger {
            span {
                &:nth-child(1) {
                    width: 100%;
                    transform: rotate(60deg) translate(8px, 2px)
                }

                &:nth-child(2) {
                    opacity: 0;
                }

                &:nth-child(3) {
                    width: 100%;
                    transform: rotate(-60deg) translate(8px, -2px)
                }
            }
        }
    }


    /* promo */
    .promo__label {
        transform: translateY(-1.5rem);
        overflow: hidden;

        img {
            min-width: 750px;
            
        }
    }


    /* Offers */
    .offer h2 {
        font-size: 40px;
    }

    .offers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .offer__card {
        margin-top: 0;
        aspect-ratio: auto;
    }

@media (min-width: 768px) and (max-width: 1023px) {
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .offer__card {
        aspect-ratio: 1;
    }
}

@media (min-width: 1024px) {
    .offers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .offer__card {
        aspect-ratio: 1;
    }
}


    

    /* Footer */
    .footer__top {
        flex-direction: column;
        gap: 24px;
    }

    .footer__images {
        flex-direction: row;

        img {
            max-width: 150px;
        }
    }

    .footer__top__right ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* Policy Pages */

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--text-color);
    padding: 40px 20px;
}

.policy-content h2 {
    color: var(--footer-text);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    margin-top: 32px;
    font-family: 'Teachers';
}

.policy-content h2:first-child {
    margin-top: 0;
}

.policy-content p {
    margin-bottom: 16px;
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.7;
}

.policy-content ul {
    margin: 16px 0;
    padding-left: 24px;
    list-style-type: disc;
}

.policy-content ul li {
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.7;
}

.policy-note {
    background: linear-gradient(135deg, #fef7f7 0%, #fff9f9 100%);
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 12px;
    padding: 24px;
    margin: 40px 0;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.1);
}

.policy-note h3 {
    color: var(--footer-text);
    margin-bottom: 12px;
    font-size: 20px;
    font-family: 'Teachers';
    font-weight: 600;
}

.policy-note p {
    margin: 0;
    color: var(--text-color);
    font-size: 15px;
}

.policy-note p + p {
    margin-top: 12px;
}

@media (max-width: 768px) {
    .policy-content {
        padding: 24px 16px;
    }

    .policy-content h2 {
        font-size: 24px;
    }

    .policy-content p,
    .policy-content ul li {
        font-size: 15px;
    }

    .policy-note {
        padding: 20px;
    }

    .policy-note h3 {
        font-size: 18px;
    }
}

/* Age Verification Popup */

.age-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.age-popup.active {
    opacity: 1;
    visibility: visible;
}

.age-popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(68, 3, 92, 0.5);
}

.age-popup__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(270deg, rgba(138, 43, 226, 1) 0%, rgba(30, 144, 255, 1) 100%);
    padding: 48px 40px;
    border-radius: 16px;
    max-width: 580px;
    width: 90%;
    text-align: center;
}

.age-popup__title {
    font-family: 'Teachers';
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.age-popup__text {
    font-family: 'Teachers';
    font-size: 18px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.5;
}

.age-popup__error {
    font-family: 'Teachers';
    font-size: 16px;
    font-weight: 400;
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    border: 2px solid #ff4444;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
    display: none;
}

.age-popup__error.active {
    display: block;
}

.age-popup__buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.age-popup__btn {
    font-family: 'Teachers';
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    outline: none;
}

.age-popup__btn--no {
    width: 251px;
    height: 64px;
    border: 2px solid #fff;
    background: transparent;
    border-radius: 35px;
    padding: 16px 56px;
}

.age-popup__btn--no:hover {
    background: rgba(255, 255, 255, 0.1);
}

.age-popup__btn--yes {
    width: 251px;
    height: 64px;
    background: #fff;
    border-radius: 35px;
    padding: 16px 56px;
    color: var(--text-color);
}

.age-popup__btn--yes:hover {
    background: var(--accent-color);
}

@media (max-width: 768px) {
    .age-popup__content {
        padding: 32px 24px;
    }

    .age-popup__title {
        font-size: 24px;
    }

    .age-popup__text {
        font-size: 16px;
    }

    .age-popup__buttons {
        gap: 12px;
    }

    .age-popup__btn--no,
    .age-popup__btn--yes {
        width: auto;
        min-width: 200px;
    }
}