body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    text-align: center;
    }
header, footer {
    background-color: white;
    padding: 15px 0;
    position: fixed; /* Фиксируем хедер */
    top: 0; /* Прижимаем к верху */
    left: 0;
    width: 100%; /* Растягиваем на всю ширину */
    z-index: 1000; /* Чтобы не перекрывался другими элементами */
    background-color: white; /* Цвет фона (по желанию) */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Тень для красивого эффекта */
}
.container {
    width: 80%;
    margin: 0 auto;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    }
.logo img{
    width: 240px;
    height: 50px;
    }
.container nav{
    margin-right:65px;
}
nav a {
    font-family: TTFirsNeue-Light;
    margin-left: 20px;
    font-weight: bold;
    color: black;
    text-decoration: none;
    }
.main {
    margin-top: 45px;
    background-color: white;
    padding: 0px 0;
    height: 905px;
    display: flex;
    justify-content: center;
    align-items: center;
    }
.main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1600px;
    }
.left {
    margin-top: -100px;
    margin-left: 140px;
    text-align: left;
    }
    
.left a{
    font-family: TTFirsNeue-Light;
    }
.left h1 {
    font-family: TTFirsNeue-Regular;
    font-size: 55px;
    font-weight: bold;
    }
.left p {
    max-width: 515px;
    font-family: TTFirsNeue-Light;
    font-size: 19px;
    margin: 10px 0;
    }
.buy-button {
    margin-top: 30px;
    display: inline-block;
    background-color: #1bcf56;
    color: white;
    font-weight: bold;
    padding: 20px 60px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 28px;
    }
.right {
        flex: 1;
        display: flex;
        justify-content: flex-end;
    }
    
.right img {
    max-width: 100%;
    height: auto;
}
.advantages {

    text-align: center;
    }
.advantages h2 {
    font-family: TTFirsNeue-DemiBold;
    font-size: 36px;
    margin-bottom: 30px;
    }
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    }
.advantage-item {
    font-family: TTFirsNeue-Regular;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    padding-top: 10px;
    border-top: 2px solid #666;
    font-size: 18px;
    }
.advantage-item svg {
    width: 24px;
    height: 24px;
    fill: #f2b636;
    }
    
.reviews {
    padding: 50px 0;
    text-align: center;
    }
.reviews h2 {
    font-family: TTFirsNeue-DemiBold;
    font-size: 36px;
    margin-bottom: 30px;
    }
.reviews-slider {
    width: 80%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    }
.reviews-slider::-webkit-scrollbar {
    height: 8px;
    background-color: #ccc;
    border-radius: 4px;
    }
.reviews-slider::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 4px;
    }
.review-item {
    flex: 0 0 auto;
    cursor: pointer;
    }
.review-item img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s;
    }
.review-item img:hover {
    transform: scale(1.05);
    }
.more-reviews {
    font-family: TTFirsNeue-Light;
    margin-top: 5px;
    font-size: 16px;
    font-weight: bold;
    }

.footer-left {
    font-weight: bold;
}
.footer-right {
    color: #e8e8e8;
    font-size: 4px;
}
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 15px 0;
}
footer a {
    font-family: TTFirsNeue-Light;
    margin: 0 15px;
    color: black;
    font-weight: bold;
    text-decoration: none;
}

footer .footer-left {
    font-family: TTFirsNeue-Light;
    position: absolute;
    left: 20px;
}
footer .footer-right {
    margin-top: 5px;
    width: 300px;
    font-family: TTFirsNeue-Light;
    position: absolute;
    right: 20px;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}
    
.modal img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
}
    
.faq {
    font-family: TTFirsNeue-Light;
    padding: 50px 0;
    text-align: center;
    }
.faq h2 {
    font-size: 36px;
    font-family: TTFirsNeue-DemiBold;
    margin-bottom: 20px;
    }
.faq-item {
    max-width: 1000px;
    width: 80%;
    margin: 0 auto 10px;
    text-align: left;
    cursor: pointer;
    padding: 5px;
    border-bottom: 2px solid #ccc;
    transition: border-color 0.3s;
    font-size: 22px;
    }

.faq-item a{
    color: #1bcf56;
    text-decoration: none;
}
.faq-item.active {
    border-color: #1bcf56;
    }
.faq-item .answer {
    display: none;
    padding-top: 10px;
    color: gray;
    cursor: default
    }
    
.footer-on-mobile{
    display:none;
}
    
@font-face {
    font-family: TTFirsNeue-Light;
    src: url(/assets/TT%20Firs%20Neue%20Trial%20Light.ttf)
    format("truetype");
    font-weight: 400;
    font-style: normal;
    }
    
@font-face {
    font-family: TTFirsNeue-Regular;
    src: url(/assets/TT%20Firs%20Neue%20Trial%20Regular.ttf)
    format("truetype");
    font-weight: 400;
    font-style: normal;
    }
    
@font-face {
    font-family: TTFirsNeue-Medium;
    src: url(/assets/TT%20Firs%20Neue%20Trial%20Medium.ttf)
    format("truetype");
    font-weight: 400;
    font-style: normal;
    }
    
@font-face {
    font-family: TTFirsNeue-DemiBold;
    src: url(/assets/TT%20Firs%20Neue%20Trial%20DemiBold.ttf)
    format("truetype");
    font-weight: 400;
    font-style: normal;
    }
    
@font-face {
    font-family: TTFirsNeue-Bold;
    src: url(/assets/TT%20Firs%20Neue%20Trial%20Bold.ttf)
    format("truetype");
    font-weight: 400;
    font-style: normal;
    }

.main_aboutus {
    background-color: white;
    padding: 50px 0;
    width: 80%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
    border-radius: 0px 0px 20px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 50px;
    }
.main_aboutus h1 {
    font-size: 36px;
    font-family: TTFirsNeue-DemiBold;
    text-align: center;
    }
.main_aboutus p {
    font-family: TTFirsNeue-Regular;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    }

@media (max-width: 768px) {
    .right {
        display: none;
    }
}

/* Обычное меню (только для ПК) */
.desktop-menu {
    display: flex;
}

.desktop-menu a {
    font-family: TTFirsNeue-Light;
    margin-left: 20px;
    font-weight: bold;
    color: black;
    text-decoration: none;
}

/* Гамбургер-кнопка (только для мобильных) */

.menu-btn {
    padding: 10px;
    display: none;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

/* Выпадающее меню для мобильных */
.mobile-menu {
    font-family: TTFirsNeue-Light;
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    width: 200px;
}

.mobile-menu a {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    text-decoration: none;
    color: black;
    display: block;
}

.mobile-menu a:hover {
    background-color: #f0f0f0;
}

/* Показываем меню при активации */
.mobile-menu.active {
    display: flex;
}

.mobile-only {
    display: none;
}

/* На мобильных скрываем обычное меню и показываем кнопку */
@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }

    .menu-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .buy-button{
        display:none;
    }
    
    .main{
        height: 690px;
    }

    .left {
        text-align: center;
        padding: 0 10px;
        margin-left: auto;
        margin-top: -60px;
    }

    .advantage-item {
        font-family: TTFirsNeue-Regular;
        display: flex;
        align-items: flex-start;
        gap: 10px;
        text-align: left;
        padding-top: 10px;
        border-top: 2px solid #666;
        font-size: 12px;
        }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
        

    .footer-left {
        display: none;
    }

    .buy-button {
        order: 2; /* Кнопка выше картинки */
        margin-bottom: 20px;
    }

    .left h1{
        font-size: 40px;
    }
    
    .right {
        display: block;
        order: 3; /* Картинка идёт после кнопки */
        margin-top: 20px;
    }
    
    .right img {
        content: url('/assets/course-mobile.png'); /* Меняет фото */
        margin-top: -60px;
        height: auto;
        max-width: 80%; /* Уменьшаем картинку */
    }

    .mobile-only {
        font-family: TTFirsNeue-Regular;
        display: inline-block;
        background-color: #1bcf56;
        color: white;
        font-weight: bold;
        padding: 15px 40px;
        text-decoration: none;
        border-radius: 5px;
        font-size: 24px;
    }

    .modal img {
        max-width: 100%;
        max-height: 100%;
        border-radius: 10px;
    }
    
    .footer-right{
        display: none;
    }
    
    .footer-on-mobile{
        margin: 0;
        background-color: #FFFFFF;
        display: block;
        font-family: TTFirsNeue-Regular;
        font-size:3px;
    }

    
    
}
