/* Общие стили */
body {
    font-family: 'Open Sans', Arial, sans-serif;
    margin: 0;
    background-color: #fff;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Шапка сайта */
header {
    background: linear-gradient(to right, #a28fce, #79b8be);
    color: #fff;
    padding: 15px 0;
    border-bottom: 4px solid #8fc8ce;
    position: relative;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}

.logo img {
    max-height: 60px;
}

/* Навигация - десктоп */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

nav li {
    margin-left: 20px;
}

nav a {
    text-decoration: none;
    color: #3d405b;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #3d405b;
}

.reg {
    margin-left: 20px;
}

/* Кнопки навигации */
.nav-button {
    color: #3d405b;
    text-decoration: none;
    font-size: 18px;
    border: none;
    background: none;
    font-family: 'Open Sans', sans-serif;
    position: relative;
    padding: 0;
    font-weight: 600;
}

.nav-button::before,
.nav-button::after {
    content: '';
    width: 0;
    height: 2px;
    background: #7e6aac;
    display: block;
    transition: 0.5s;
    position: absolute;
}

.nav-button::before {
    top: -5px;
    right: 0;
}

.nav-button::after {
    bottom: -5px;
    left: 0;
}

.nav-button:hover::before {
    width: 100%;
}

.nav-button:hover::after {
    width: 100%;
}

/* Кнопка регистрации */
.registration-button {
    background-color: #ffffff;
    color: black;
    border-radius: 10em;
    font-size: 16px;
    padding: 0.6em 1.2em;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    border: 2px solid black;
    box-shadow: 0 0 0 0 black;
    text-decoration: none;
    display: inline-block;
    line-height: 1;
    font-weight: 600;
}

.registration-button:hover {
    transform: translateY(-4px) translateX(-2px);
    box-shadow: 2px 5px 0 0 black;
    color: rgb(0, 0, 0);
}

.registration-button:active {
    transform: translateY(2px) translateX(1px);
    box-shadow: 0 0 0 0 black;
}

/* Основной контент */
.main-info {
    text-align: center;
    padding: 50px 20px;
    background-color: #8fc8ce;
}

.main-info h1 {
    font-size: 2em;
    color: #3d405b;
    margin-bottom: 15px;
    font-weight: 700;
}

.main-info p {
    font-size: 1em;
    color: #3d405b;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Карточки информации */
.info-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 30px 20px;
}

.card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    width: 100%;
    max-width: 250px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.card img {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.2em;
    color: #444;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.9em;
    color: #666;
    margin: 0;
}

/* Популярные курсы */
.popular-courses {
    padding: 40px 20px;
    text-align: center;
    background-color: #f9f9f9;
}

.popular-courses h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #333;
}

.popular-courses p {
    font-size: 1em;
    color: #777;
    margin-bottom: 30px;
    line-height: 1.6;
}

.course-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.course-card {
    width: 100%;
    max-width: 300px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.course-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

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

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #5cb85c;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: 600;
}

.course-card h3 {
    font-size: 1.2em;
    color: #333;
    padding: 15px;
    text-align: left;
    margin: 0;
}

.course-card p {
    font-size: 0.9em;
    color: #777;
    padding: 0 15px 15px;
    text-align: left;
    margin: 0;
    line-height: 1.5;
}

.course-info {
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    margin-bottom: 15px;
    color: #999;
    font-size: 0.9em;
}

.course-info i {
    margin-right: 5px;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-top: 1px solid #eee;
}

.price {
    font-size: 1.1em;
    color: #000000;
    font-weight: bold;
}

.button {
    background-color: #a28fce;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.3s ease;
    font-size: 0.9em;
}

.button i {
    margin-right: 5px;
    font-size: 0.9em;
}

.button:hover {
    background-color: #7e6aac;
}

.all-courses-button {
    display: inline-block;
    margin-top: 20px;
    background-color: transparent;
    color: #a28fce;
    border: 1px solid #a28fce;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.all-courses-button:hover {
    background-color: #a28fce;
    color: #fff;
}

/* Футер */
.website-footer {
    background: linear-gradient(to right, #a28fce, #79b8be);
    color: white;
    padding: 40px 0;
    font-family: 'Open Sans', sans-serif;
}

.website-footer .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.website-footer .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

.website-footer .footer-content > div {
    width: 100%;
    margin-bottom: 30px;
}

.website-footer h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 600;
}

.website-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.website-footer li {
    margin-bottom: 10px;
}

.website-footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9em;
}

.website-footer a:hover {
    color: #ddd;
}

.website-footer .social-icon {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.website-footer .footer-bottom {
    text-align: center;
    font-size: 0.8em;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Бургер-меню */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 100;
}

.burger-line {
    width: 100%;
    height: 3px;
    background-color: #3d405b;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Анимация бургер-меню */
.burger-menu.active .burger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Мобильное меню */
.nav-list {
    transition: right 0.3s ease;
}

/* Мобильные стили */
@media (max-width: 768px) {
    /* Шапка */
    header {
        padding: 10px 0;
    }
    
    .logo img {
        max-height: 50px;
    }
    
    /* Бургер-меню */
    .burger-menu {
        display: flex;
    }
    
    /* Навигация */
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: linear-gradient(to bottom, #a28fce, #79b8be);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        transition: right 0.3s ease;
        z-index: 99;
    }
    
    nav ul.active {
        right: 0;
    }
    
    nav li {
        margin: 15px 0;
        margin-left: 0;
    }
    
    .reg {
        margin-left: 0;
        margin-top: 20px;
    }
    
    .nav-button {
        font-size: 1.2em;
    }
    
    .registration-button {
        font-size: 1em;
    }
    
    /* Основной контент */
    .main-info h1 {
        font-size: 1.6em;
    }
    
    .main-info p {
        font-size: 0.9em;
    }
    
    /* Карточки */
    .info-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .card {
        max-width: 100%;
    }
    
    /* Футер */
    .website-footer .footer-content > div {
        width: 100%;
        margin-bottom: 25px;
    }
    
    .website-footer h3 {
        font-size: 1.2em;
    }
}

/* Исправление для мобильной версии (info-cards) */
@media (max-width: 768px) {
    .info-cards {
        width: 100%;
        padding: 20px 0;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    .card {
        max-width: calc(100% - 40px);
        margin: 0 auto 15px;
        box-sizing: border-box;
    }
}

/* Дополнительно для очень узких экранов (344px и меньше) */
@media (max-width: 344px) {
    .card {
        max-width: calc(100% - 20px);
        padding: 15px 10px;
    }
    
    .card h3 {
        font-size: 1em;
    }
    
    .card p {
        font-size: 0.8em;
    }
}

@media (min-width: 1025px) {
    /* Десктоп стили */
    .website-footer .footer-content > div {
        width: 30%;
    }
}


