body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #333;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: #4c84fd;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.logo {
    width: 160px;
    height: auto;
}

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

header nav a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
}

header nav a:hover {
    text-decoration: underline;
}

.btn-login {
    color: #4c84fd;
    background: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    padding: 7px 18px;
    border-radius: 6px;
    transition: background 0.2s;
}

.btn-login:hover {
    background: #e8f0ff;
}

.answer a,
.course__buy a,
.form__submit input[type="submit"] {
    background: #4c84fd;
    color: #fff;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
    border: none;
}

.answer a:hover,
.course__buy a:hover,
.form__submit input[type="submit"]:hover {
    background: #1040b0;
}

.advantage,
.select__course,
.review,
.teacher {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.banner {
    background: #f0f4ff;
    padding: 60px 20px;
    text-align: center;
}

.banner h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}

section {
    padding: 50px 20px;
}

section:nth-child(even) {
    background: #f9f9f9;
}

section h2 {
    font-size: 1.6rem;
    margin-bottom: 30px;
    text-align: center;
}

.advantages__cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.advantage {
    flex: 1 1 200px;
    padding: 12px;
}

.advantage h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.select__courses {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.select__course {
    flex: 1 1 300px;
    padding: 25px;
}

.select__course h3 { margin-bottom: 8px; }

.select__course p {
    margin-bottom: 10px;
    color: #555;
}

.select__course a { color: #1a56db; }

.select__course img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 16px;
}

.about__text p {
    margin-bottom: 12px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.reviews .content {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.review {
    flex: 1 1 280px;
    padding: 20px;
}

.feedback {
    background: #1f2937;
    color: #fff;
}

form#feedbackForm {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 600px;
    margin: 0 auto;
}

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

.form__contact h2 {
    text-align: left;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.4;
}

.form__contact h3 {
    font-size: 1rem;
    color: #9ca3af;
    margin-bottom: 16px;
    font-weight: normal;
}

.form__contact a h3 {
    color: #4c84fd;
    font-size: 1.4rem;
    font-weight: bold;
}

.form__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form__contact input,
.form__contact select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #374151;
    border-radius: 6px;
    font-size: 15px;
    background: #374151;
    color: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.form__contact input::placeholder { color: #9ca3af; }

.form__contact input:focus,
.form__contact select:focus {
    border-color: #4c84fd;
}

.form__contact select option { background: #1f2937; }

.input--error { border-color: #e53e3e !important; }

.form__error {
    color: #fc8181;
    font-size: 0.8rem;
    min-height: 1em;
}

.form__submit {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form__checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form__checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #4c84fd;
    cursor: pointer;
}

.form__checkbox label {
    font-size: 0.85rem;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1.4;
}

.form__submit input[type="submit"] {
    width: 100%;
    padding: 14px;
    font-size: 15px;
}

.map iframe {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    margin-top: 10px;
}

.answer {
    text-align: center;
    padding: 100px 20px;
}

.answer h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.answer h3 {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

.answer a {
    display: inline-block;
    padding: 12px 28px;
}

.pricing { padding: 50px 0; }

.pricing__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.pricing__table th,
.pricing__table td {
    padding: 14px 16px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.pricing__table thead {
    background: #4c84fd;
    color: #fff;
}

.pricing__table tbody tr:nth-child(even) { background: #f5f8ff; }
.pricing__table tbody tr:hover { background: #e8efff; }

footer {
    background: #1f2937;
    color: #fff;
    margin-top: auto;
    padding: 40px 20px 20px;
}

.footer__main {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.footer__info p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #ccc;
}

.footer__social a {
    color: #ccc;
    text-decoration: none;
    margin-right: 15px;
}

.footer__social a:hover { color: #fff; }

.footer__social img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    vertical-align: middle;
    filter: brightness(0.8);
    transition: filter 0.2s;
}

.footer__social a:hover img { filter: brightness(1.2); }

.footer__menu nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer__menu nav a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.footer__menu nav a:hover { color: #fff; }

.footer__add {
    border-top: 1px solid #374151;
    padding-top: 15px;
    font-size: 0.85rem;
}

.footer__add a {
    color: #9ca3af;
    text-decoration: none;
    margin-right: 20px;
}

.footer__add a:hover { color: #fff; }

/* ─── Преподаватели ──────────────────────────────── */

.teachers .content {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.teacher {
    flex: 1 1 250px;
    max-width: 300px;
    padding: 20px;
    text-align: center;
    margin: 0;
}

.teacher img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 4px;
}

.teacher figcaption {
    color: #333;
    font-size: 0.95rem;
    font-weight: bold;
    margin-top: 10px;
}

.courses .content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.course {
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.course__descript {
    display: flex;
    flex: 1;
}

.course__descript img {
    width: 280px;
    min-width: 280px;
    min-height: 220px;
    object-fit: cover;
    flex-shrink: 0;
}

.course__descript__text {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.course__descript__text h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-align: left;
}

.course__descript__text p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.course__buy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px;
    background: #f5f8ff;
    border-left: 1px solid #e0e0e0;
    min-width: 260px;
    max-width: 280px;
}

.course__buy__wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.course__buy__wrap__modules ul,
.course__buy__wrap__price ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course__buy__wrap__modules ul li {
    padding: 4px 0;
    font-size: 0.9rem;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

.course__buy__wrap__price ul li {
    padding: 3px 0;
    font-size: 1rem;
    color: #555;
}

.course__buy__wrap__price ul li:first-child {
    font-weight: bold;
    color: #333;
}

.course__buy a {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 0.9rem;
}

.admin { padding: 40px 0; }

.admin__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin__table th,
.admin__table td {
    border: 1px solid #ddd;
    padding: 10px 14px;
    text-align: left;
}

.admin__table th { background: #222; color: #fff; }
.admin__table tr:nth-child(even) { background: #f9f9f9; }
.admin__table a { color: #222; }

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    background: #e8f4fd;
    color: #1a6fa8;
}

.admin__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin__header h2 { margin: 0; }

.btn-logout {
    font-size: 13px;
    color: #888;
    text-decoration: none;
    border: 1px solid #ddd;
    padding: 7px 16px;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-logout:hover { border-color: #c0392b; color: #c0392b; }

.btn-delete {
    background: none;
    border: 1px solid #e0a0a0;
    color: #c0392b;
    cursor: pointer;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-delete:hover { background: #c0392b; color: #fff; border-color: #c0392b; }

.admin__table-wrap { overflow-x: auto; }

.login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 20px;
}

.login__form {
    background: #fff;
    padding: 40px;
    width: 340px;
    box-shadow: 0 2px 16px rgba(0,0,0,.1);
    border-radius: 8px;
    box-sizing: border-box;
}

.login__form h2 { margin-bottom: 24px; text-align: center; }

.login__form input[type=text],
.login__form input[type=password] {
    width: 100%;
    padding: 10px;
    margin-bottom: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.login__form input[type=submit] {
    width: 100%;
    background: #4c84fd;
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.login__form input[type=submit]:hover { background: #1040b0; }

.login__error {
    color: #c0392b;
    font-size: 14px;
    margin-bottom: 12px;
    text-align: center;
}

@media (max-width: 900px) {
    .course { flex-direction: column; }

    .course__descript { flex-direction: column; }

    .course__descript img {
        width: 100%;
        min-width: 0;
        min-height: 200px;
        height: 220px;
    }

    .course__buy {
        min-width: 0;
        max-width: 100%;
        border-left: none;
        border-top: 1px solid #e0e0e0;
    }

    .footer__main { gap: 24px; }
}

@media (max-width: 640px) {
    header {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }

    header nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 16px;
    }

    header nav a { font-size: 14px; }
    .logo { width: 120px; }
    .banner { padding: 36px 16px; }
    .banner h1 { font-size: 1.4rem; }
    section { padding: 32px 16px; }
    section h2 { font-size: 1.3rem; }

    .advantages__cards { flex-direction: column; }
    .advantage { flex: none; }
    .select__courses { flex-direction: column; }
    .select__course { flex: none; }
    .reviews .content { flex-direction: column; }
    .review { flex: none; }

    .teachers .content {
        flex-direction: column;
        align-items: center;
    }

    .teacher { flex: none; width: 100%; max-width: 100%; }
    .map iframe { height: 260px; }
    .pricing { overflow-x: auto; }
    .answer { padding: 60px 16px; }
    .answer h2 { font-size: 1.5rem; }

    .footer__main { flex-direction: column; gap: 20px; }

    .footer__info,
    .footer__social,
    .footer__menu { width: 100%; }

    .admin { padding: 24px 0; }
    .admin__header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .admin__table { font-size: 12px; }
    .admin__table th,
    .admin__table td { padding: 7px 10px; }

    .login__form { width: 100%; padding: 28px 20px; }
}

@media (max-width: 400px) {
    .banner h1 { font-size: 1.15rem; }

    form#feedbackForm { gap: 20px; }

    .form__submit input[type="submit"] {
        font-size: 13px;
        padding: 12px 8px;
    }
}
