/* Определение шрифта */
@font-face {
    font-family: Nexa;
    src: url('../../font/Nexa-Heavy.ttf');
}

/* Базовые стили для body */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1a0033, #000033);
    position: relative;
    overflow-x: hidden !important;
    font-family: 'Nexa', sans-serif;
    transition: opacity 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

@media (max-width: 768px) {
    main {
        padding: 20px;
        padding-top: 70px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .content-wrapper {
        flex-direction: column;
        align-items: center;
        position: static;
        min-height: auto;
        padding: 0;
        gap: 15px;
    }
}

body {
    -webkit-overflow-scrolling: auto; /* Замени на auto или убери */
}

body {
    overflow-x: hidden !important;
    touch-action: pan-y !important;
}

body.menu-open {
    overflow: hidden;
}

body.menu-open>*:not(header) {
    opacity: 0;
    pointer-events: none;
}

/* Контейнеры */
.content-wrapper,
.second-content,
.third-content,
main {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Стили для хедера */
header {
    position: relative;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    max-width: 1600px;
    margin: 0 auto;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    margin-left: 0px;
}

header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: none;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    background: rgba(32, 0, 83, 0.97);
}

.logo-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.navbar {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.nav-list li a {
    color: #FFF;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.nav-list li a:hover {
    transform: translateY(-2px);
    color: #9F7FF3;
}

.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger-menu span {
    width: 30px;
    height: 3px;
    background-color: #FFF;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.burger-menu.toggle span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.burger-menu.toggle span:nth-child(2) {
    opacity: 0;
}

.burger-menu.toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Стили для основного контента */
main {
    position: relative;
    z-index: 2;
    padding: 40px 0 0 40px;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    min-height: calc(100vh - 100px);
    width: 100%;
}

.text-content {
    max-width: 50%;
    z-index: 2;
}

.headline {
    margin: 0 0 20px;
    text-align: left;
}

.headline-main {
    color: #FFF;
    font-size: 68px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 5px 30px rgba(255, 255, 255, 0.3);
    opacity: 1 !important;
    display: block !important;
}

.headline-sub {
    color: #9F7FF3;
    font-size: 67px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1.2;
    -webkit-text-stroke: 1px #9F7FF3;
    text-shadow: 0 5px 25px rgba(159, 127, 243, 0.8);
    margin: 0;
    opacity: 1 !important;
    display: block !important;
}

.welcome-text {
    color: #FFF;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.5;
    margin: 20px 0;
    max-width: 100%;
    opacity: 1 !important;
    display: block !important;
}

.about-btn {
    display: inline-block;
    background: #FFF;
    color: #000;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s;
    position: relative;
    overflow: hidden;
    opacity: 1 !important;
}

.about-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(159, 127, 243, 0.8);
    opacity: 1;
}

.scissors {
    position: relative;
    width: 45%;
    max-width: 670px !important;
    z-index: 1;
    margin-top: -4rem;
    margin-right: 7rem;
}

.course-section {
    position: relative;
    width: 40%;
    height: 400px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 27.143px;
    box-shadow: 0px 3.878px 41.684px 0px rgba(0, 0, 0, 0.80);
    backdrop-filter: blur(98.39351654052734px);
    overflow: hidden;
    z-index: 2;
    opacity: 1 !important;
    display: block !important;
    margin-top: 40px;
}

.course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button-second {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #FF69B4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.play-button-second::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid #FFF;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.course-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #FFF;
    text-align: left;
}

.course-text h3 {
    font-size: 20px;
    margin: 0;
}

.course-text h4 {
    font-size: 16px;
    margin: 5px 0 0;
    font-weight: 500;
}

/* Стили для второго блока */
.second-section {
    position: relative;
    width: 100%;
    padding: 60px 40px;
    z-index: 1;
    min-height: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.second-overlay {
    display: none;
}

.second-content {
    position: relative;
    z-index: 2;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.text-content-second {
    max-width: 50%;
    z-index: 2;
    text-align: left;
}

.headline-second {
    margin: 0 0 20px;
    text-align: left;
}

.headline-main-second {
    color: #FFF;
    font-size: 48px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: normal;
    letter-spacing: 0.24px;
    margin: 0;
    text-shadow: 0px 4.892px 34.242px rgba(255, 255, 255, 0.33);
    opacity: 1 !important;
    display: block !important;
    max-width: 80%;
}

.headline-sub-second {
    color: #9F7FF3;
    font-size: 67.688px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: normal;
    letter-spacing: 3.723px;
    margin: 0;
    -webkit-text-stroke-width: 2.45px;
    -webkit-text-stroke-color: #9F7FF3;
    opacity: 1 !important;
    display: block !important;
    max-width: 80%;
}

.blog-btn {
    display: inline-block;
    background: #FFF;
    color: #000;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s;
    position: relative;
    overflow: hidden;
    margin: 20px 0;
    opacity: 1 !important;
    display: inline-block !important;
}

.blog-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(159, 127, 243, 0.8);
    opacity: 1;
}

.blog-text {
    color: #FFF;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0 0 20px;
    text-align: left;
    opacity: 1 !important;
    display: block !important;
}

.info-card {
    position: relative;
    width: 40%;
    height: 300px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 27.143px;
    box-shadow: 0px 3.878px 41.684px 0px rgba(0, 0, 0, 0.80);
    backdrop-filter: blur(98.39351654052734px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 2;
    opacity: 1 !important;
    margin-top: 40px;
}

.info-text {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: #FFF;
    text-align: left;
    font-size: 16px;
    line-height: 1.5;
    padding-right: 20px;
    width: 70%;
    height: 80%;
    display: flex;
    align-items: center;
}

/* Стили для третьего блока */
.third-section {
    position: relative;
    width: 100%;
    padding: 60px 40px;
    z-index: 1;
    min-height: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.third-content {
    position: relative;
    z-index: 2;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.third-overlay {
    display: none;
}

.text-content-third {
    max-width: 50%;
    z-index: 2;
    text-align: left;
}

.headline-third {
    margin: 0 0 20px;
    text-align: left;
}

.headline-main-third {
    color: #FFF;
    font-size: 68px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 5px 30px rgba(255, 255, 255, 0.3);
    opacity: 1 !important;
    display: block !important;
    max-width: 80%;
}

.contact-btn {
    display: inline-block;
    background: #FFF;
    color: #000;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s;
    position: relative;
    overflow: hidden;
    margin: 20px 0;
    opacity: 1 !important;
    display: inline-block !important;
}

.contact-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(159, 127, 243, 0.8);
    opacity: 1;
}

.additional-info {
    color: #FFF;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0 0 20px;
    text-align: left;
    opacity: 1 !important;
    display: block !important;
}

.offer-card {
    position: relative;
    width: 40%;
    height: 300px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 27.143px;
    box-shadow: 0px 3.878px 41.684px 0px rgba(0, 0, 0, 0.80);
    backdrop-filter: blur(98.39351654052734px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 2;
    opacity: 1 !important;
    margin-top: 40px;
}

.play-button-third {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #FF69B4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.play-button-third::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid #FFF;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.offer-text {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: #FFF;
    text-align: left;
    font-size: 16px;
    line-height: 1.5;
    padding-right: 20px;
    width: 70%;
    height: 80%;
    display: flex;
    align-items: center;
}

.offer-text ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offer-text li {
    margin-bottom: 10px;
}

.third-image {
    position: relative;
    width: 30% !important;
    max-width: 700px;
    z-index: 1;
    border-radius: 10px;
    overflow: hidden;
    opacity: 1 !important;
    margin-top: 20px;
}

/* Стили для футера */
footer {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 40px;
    background: rgba(0, 0, 33, 0.8);
    color: #FFF;
    text-align: center;
    margin-top: auto;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
}

.footer-content p {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: #FFF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-links a:hover {
    transform: translateY(-2px);
    color: #9F7FF3;
}

/* Стили для login-nav */
.login-nav {
    background-color: rgb(67, 1, 121);
    border-radius: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    color: pink;
    padding: 10px 20px;
    margin-left: auto;
    white-space: nowrap;
}

.login-nav li a {
    color: #FFF;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.login-nav li a:hover {
    transform: translateY(-2px);
    color: #9F7FF3;
}

/* Стили для иконки корзины */
.cart-icon {
    position: relative;
    color: #FFF;
    font-size: 30px;
    cursor: pointer;
    margin-left: auto;
    margin-right: 20px;
    padding: 10px 20px;
    background: rgba(159, 127, 243, 0.8);
    border-radius: 10px;
    transition: opacity 0.3s;
}

.cart-icon:hover {
    opacity: 0.8;
}

header.fixed .cart-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    top: auto;
    left: auto;
    margin-left: 0;
    z-index: 1000;
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff4444;
    color: #FFF;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

/* Стили для модального окна корзины */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.cart-modal.active {
    display: flex;
}

.cart-content {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    color: #FFF;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Стили для всплывающего уведомления */
.crypto-popup {
    position: fixed;
    bottom: -100px;
    right: 20px;
    width: 300px;
    background: rgba(159, 127, 243, 0.95);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: bottom 0.5s ease-in-out;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.crypto-popup.active {
    bottom: 20px;
}

/* Общие стили для кнопок */
.about-btn,
.blog-btn,
.contact-btn,
.crypto-more-btn {
    display: inline-block;
    background: #FFF;
    color: #000;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s;
    position: relative;
    overflow: hidden;
}

.about-btn:hover,
.blog-btn:hover,
.contact-btn:hover,
.crypto-more-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(159, 127, 243, 0.8);
    opacity: 1;
}

.about-btn::after,
.blog-btn::after,
.contact-btn::after,
.crypto-more-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(159, 127, 243, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.about-btn:hover::after,
.blog-btn:hover::after,
.contact-btn:hover::after,
.crypto-more-btn:hover::after {
    width: 300px;
    height: 300px;
}

.about-btn span,
.blog-btn span,
.contact-btn span,
.crypto-more-btn span {
    position: relative;
    z-index: 1;
}

/* Эффект наклона для карточек */
.course-section,
.info-card,
.offer-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-section:hover,
.info-card:hover,
.offer-card:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 10px 40px rgba(159, 127, 243, 0.5);
}

/* Анимация кнопок воспроизведения */
.play-button-second,
.play-button-third {
    transition: transform 0.3s ease, background 0.3s ease;
}

.play-button-second:hover,
.play-button-third:hover {
    transform: scale(1.1);
    background: rgba(255, 105, 180, 0.9);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.play-button-second,
.play-button-third {
    animation: pulse 2s infinite;
}

/* Анимация появления */
.headline-main,
.headline-sub,
.welcome-text,
.blog-text,
.additional-info {
    opacity: 1 !important;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: block !important;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

.headline-sub,
.headline-sub-second {
    transition-delay: 0.2s;
}

/* Адаптивность для больших экранов (1920px и выше) */
@media (min-width: 1920px) {

    .content-wrapper,
    .second-content,
    .third-content,
    main,
    header,
    footer {
        max-width: 1800px;
    }

    .headline-main {
        font-size: 80px;
    }

    .headline-sub {
        font-size: 78px;
    }

    .welcome-text {
        font-size: 24px;
    }

    .scissors {
        width: 50%;
        max-width: 800px;
    }

    .course-section {
        width: 45%;
        height: 500px;
    }

    .headline-main-second {
        font-size: 60px;
    }

    .headline-sub-second {
        font-size: 80px;
    }

    .info-card {
        width: 45%;
        height: 400px;
    }

    .headline-main-third {
        font-size: 80px;
    }

    .offer-card {
        width: 45%;
        height: 400px;
    }

    .third-image {
        width: 50%;
        max-width: 900px;
    }

    .cart-icon {
        margin-right: 40px;
    }
}

/* Адаптивность для средних экранов (768px–1200px) */
@media (min-width: 769px) and (max-width: 1200px) {

    .content-wrapper,
    .second-content,
    .third-content,
    main,
    header,
    footer {
        max-width: 100%;
        padding-left: 30px;
        padding-right: 30px;
    }

    .text-content,
    .text-content-second,
    .text-content-third {
        max-width: 100%;
    }

    .headline-main {
        font-size: 56px;
    }

    .headline-sub {
        font-size: 54px;
    }

    .welcome-text {
        font-size: 16px;
    }

    .scissors {
        width: 100%;
        max-width: 500px;
    }

    .course-section {
        width: 100%;
        height: 350px;
    }

    .headline-main-second {
        font-size: 40px;
    }

    .headline-sub-second {
        font-size: 56px;
    }

    .info-card {
        width: 100%;
        height: 250px;
    }

    .headline-main-third {
        font-size: 56px;
    }

    .offer-card {
        width: 100%;
        height: 250px;
    }

    .third-image {
        width: 100%;
        max-width: 500px;
    }

    .cart-icon {
        margin-left: 10rem;
    }
}

/* Адаптивность для мобильных устройств (768px и меньше) */
@media (max-width: 768px) {
    header {
        padding: 20px;
        background: rgba(32, 0, 83, 0.97) !important;
        flex-wrap: wrap;
        justify-content: space-between;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    header.fixed {
        padding: 10px;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        background: rgba(32, 0, 83, 0.97) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        padding: 35px 0 !important;
        opacity: 0;
        transform: translateY(-100%);
        transition: transform 0.5s ease-in-out, opacity 0.3s ease-in-out;
        z-index: 2000;
        justify-content: flex-start;
        align-items: center;
        overflow-y: auto;
        overscroll-behavior-y: contain;

        height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        padding-top: env(safe-area-inset-top);
        /* Отступ сверху для Dynamic Island */
        padding-bottom: env(safe-area-inset-bottom);
        /* Отступ снизу */
        -webkit-overflow-scrolling: touch;
    }

    .nav-list.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-list li {
        margin: 10px 0;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    }

    .nav-list.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-list.active li:nth-child(1) {
        transition-delay: 0s;
    }

    .nav-list.active li:nth-child(2) {
        transition-delay: 0.1s;
    }

    .nav-list.active li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-list.active li:nth-child(4) {
        transition-delay: 0.3s;
    }

    .nav-list.active li:nth-child(5) {
        transition-delay: 0.4s;
    }

    .nav-list.active li:nth-child(6) {
        transition-delay: 0.5s;
    }

    .nav-list.active li:nth-child(7) {
        transition-delay: 0.6s;
    }

    .nav-list.active li:nth-child(8) {
        transition-delay: 0.7s;
    }

    .nav-list.active li a {
        display: block;
        padding: 10px 20px;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    .burger-menu {
        display: flex;
        z-index: 2100;
    }

    .login-nav {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        padding: 5px 10px;
        gap: 10px;
        margin-left: 0;
        max-width: 250px;
        width: auto;
        background-color: rgb(67, 1, 121);
        border-radius: 15px;
        position: relative;
        margin: 0 auto;
    }

    header.fixed .login-nav {
        max-width: 200px;
        padding: 5px 8px;
        font-size: 12px;
    }

    .login-nav li {
        font-size: 14px;
        text-align: center;
        white-space: normal;
        overflow-wrap: break-word;
        overflow: visible;
    }

    .login-nav li a {
        font-size: 14px;
        padding: 5px;
        white-space: normal;
        overflow-wrap: break-word;
    }

    header.fixed .login-nav li,
    header.fixed .login-nav li a {
        font-size: 12px;
    }

    .cart-icon {
        margin-right: 10px;
        padding: 10px;
        font-size: 24px;
        margin-left: auto;
    }

    header.fixed .cart-icon {
        font-size: 36px;
        padding: 15px;
        border-radius: 15px;
    }

    .cart-modal.active {
        display: flex;
        align-items: flex-end;
    }

    .cart-content {
        width: 100%;
        max-width: none;
        padding: 15px;
        border-radius: 20px 20px 0 0;
        max-height: 80vh;
        overflow-y: auto;
    }

    main {
        padding: 20px;
        padding-top: 70px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .content-wrapper {
        flex-direction: column;
        align-items: center;
        position: static;
        min-height: auto;
        padding: 0;
        gap: 15px;
    }

    .text-content,
    .text-content-second,
    .text-content-third {
        max-width: 100%;
        text-align: center;
    }

    .headline-main {
        font-size: 36px;
        line-height: 1.1;
    }

    .headline-sub {
        font-size: 32px;
        line-height: 1.1;
        -webkit-text-stroke: 0.5px #9F7FF3;
    }

    .welcome-text {
        font-size: 14px;
        margin: 15px 0;
    }

    .about-btn,
    .blog-btn,
    .contact-btn {
        padding: 12px 25px;
        font-size: 14px;
    }

    .scissors {
        width: 100%;
        max-width: 300px;
        margin: 15px auto;
        display: block;
    }

    .course-section {
        width: 100%;
        height: 250px;
        margin-top: 20px;
        border-radius: 20px;
    }

    .course-text h3 {
        font-size: 18px;
    }

    .course-text h4 {
        font-size: 14px;
    }

    .play-button-second {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

    .play-button-second::after {
        border-left: 15px solid #FFF;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
    }

    .second-section {
        padding: 30px 20px;
        min-height: auto;
        display: block;
    }

    .second-content {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .headline-main-second {
        font-size: 28px;
        line-height: 1.2;
        max-width: 100%;
    }

    .headline-sub-second {
        font-size: 32px;
        line-height: 1.2;
        -webkit-text-stroke-width: 1px;
        letter-spacing: 2px;
        max-width: 100%;
    }

    .blog-text {
        font-size: 16px;
        margin: 10px 0;
        text-align: center;
    }

    .info-card {
        width: 100%;
        height: 220px;
        margin-top: 20px;
        border-radius: 20px;
    }

    .info-text {
        font-size: 14px;
        padding: 15px;
        width: 85%;
    }

    .third-section {
        padding: 30px 20px;
        min-height: auto;
        display: block;
    }

    .third-content {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .headline-main-third {
        font-size: 36px;
        line-height: 1.1;
        max-width: 100%;
    }

    .additional-info {
        font-size: 16px;
        margin: 10px 0;
    }

    .offer-card {
        width: 100%;
        height: 260px;
        margin-top: 20px;
        border-radius: 20px;
    }

    .offer-text {
        font-size: 14px;
        padding: 15px;
        width: 85%;
    }

    .offer-text li {
        margin-bottom: 8px;
    }

    .play-button-third {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }

    .play-button-third::after {
        border-left: 15px solid #FFF;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
    }

    .third-image {
        width: 100% !important;
        max-width: 400px;
        margin: 20px auto;
        display: block;
    }

    .crypto-popup {
        width: 40%;
        max-width: 180px;
        right: 10px;
        padding: 5px;
        color: white;
    }

    .crypto-more-btn {
        padding: 10px !important;
        width: 50%;
        text-align: center;
    }

    footer {
        padding: 20px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .footer-links a {
        font-size: 12px;
    }
}

/* Дополнительная оптимизация для очень маленьких экранов (480px и меньше) */
@media (max-width: 480px) {
    .headline-main {
        font-size: 28px;
    }

    .headline-sub {
        font-size: 26px;
    }

    .welcome-text {
        font-size: 12px;
    }

    .about-btn,
    .blog-btn,
    .contact-btn {
        padding: 10px 20px;
        font-size: 12px;
    }

    .scissors {
        width: 100%;
        max-width: 250px;
    }

    .course-section {
        height: 200px;
    }

    .course-text h3 {
        font-size: 16px;
    }

    .course-text h4 {
        font-size: 12px;
    }

    .headline-main-second {
        font-size: 24px;
    }

    .headline-sub-second {
        font-size: 26px;
    }

    .info-card {
        height: 200px;
    }

    .info-text {
        font-size: 12px;
    }

    .headline-main-third {
        font-size: 28px;
    }

    .offer-card {
        height: 240px;
    }

    .offer-text {
        font-size: 12px;
    }

    .third-image {
        width: 100%;
        max-width: 300px;
    }
}

/* Поддержка ультрашироких экранов (2560px и выше) */
@media (min-width: 2560px) {

    .content-wrapper,
    .second-content,
    .third-content,
    main,
    header,
    footer {
        max-width: 2000px;
    }

    .headline-main {
        font-size: 100px;
    }

    .headline-sub {
        font-size: 98px;
    }

    .welcome-text {
        font-size: 28px;
    }

    .scissors {
        width: 50%;
        max-width: 1000px;
    }

    .course-section {
        width: 45%;
        height: 600px;
    }

    .headline-main-second {
        font-size: 72px;
    }

    .headline-sub-second {
        font-size: 96px;
    }

    .info-card {
        width: 45%;
        height: 500px;
    }

    .headline-main-third {
        font-size: 100px;
    }

    .offer-card {
        width: 45%;
        height: 500px;
    }

    .third-image {
        width: 50%;
        max-width: 1100px;
    }
}

/* Стили для авторизации и регистрации */
.auth-section {
    position: relative;
    z-index: 2;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-wrapper {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.auth-headline {
    margin: 0 0 30px;
    text-align: center;
}

.auth-headline .headline-main {
    color: #FFF;
    font-size: 48px;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

.auth-headline .headline-sub {
    color: #9F7FF3;
    font-size: 32px;
    font-weight: 500;
    text-transform: uppercase;
    -webkit-text-stroke: 1px #9F7FF3;
    text-shadow: 0 5px 20px rgba(159, 127, 243, 0.8);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-input {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 15px;
    border-radius: 5px;
    color: #FFF;
    font-size: 16px;
    font-family: 'Nexa', sans-serif;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.auth-input:focus {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(159, 127, 243, 0.5);
}

.auth-btn {
    background: #FFF;
    color: #000;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.auth-btn:hover {
    opacity: 0.8;
}

.auth-text {
    color: #FFF;
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
}

.auth-text a {
    color: #9F7FF3;
    text-decoration: none;
    font-weight: 900;
    transition: opacity 0.3s;
}

.auth-text a:hover {
    opacity: 0.8;
}

/* Адаптивность */
@media (max-width: 768px) {
    .auth-section {
        padding: 20px;
    }

    .auth-wrapper {
        padding: 20px;
    }

    .auth-headline .headline-main {
        font-size: 36px;
    }

    .auth-headline .headline-sub {
        font-size: 24px;
    }

    .auth-input {
        padding: 12px;
        font-size: 14px;
    }

    .auth-btn {
        padding: 12px;
        font-size: 14px;
    }
}

/* Стили для всплывающего сообщения об ошибке */
.flash-message {
    padding: 10px;
    margin: 10px 0;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 5px;
    text-align: center;
}

/* Стили для спиннера загрузки */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 33, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #9F7FF3;
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Убираем text-shadow для iOS (Safari) */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    /* Уточняем, что это для iOS */
    @supports (-webkit-touch-callout: none) {

        .headline-main,
        .headline-sub,
        .headline-main-second,
        .headline-sub-second,
        .headline-main-third {
            text-shadow: none !important;
        }
    }
}