* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f7f7f7;
    color: #222;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px; /* чтобы не прилипало на мобилках */
}



/* ----- header ----- */

.header {
    background: #00679c;
}

.nav {
    display: flex;
    justify-content: space-between;
    padding: 20px 40px;
}

.nav a {
    margin-right: 15px;
    text-decoration: none;
    color: #ffffff;
    font-size: medium;
    font-weight: 500;
    font-size: 18px;
}

/* Контейнер навигации */
.nav-right { 
    position: relative;
    display: flex;
    align-items: center;    /* выравнивание по вертикали */
    gap: 20px;              /* расстояние между вложенными блоками */
}  


.lang-select {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    transition: background 0.3s ease;
}

.lang-select:hover {
    background: rgba(255,255,255,0.2);
}

/* Флаг текущего языка */
.current-flag {
    width: 30px;
    height: 18px;
    object-fit: cover;
}

/* Меню языков */
.lang-dropdown {
    position: absolute;
    top: 120%;
    left: 0;
    background: #fff;
    color: #333;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    list-style: none;
    padding: 5px 0;
    margin: 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px); 
    transition: all 0.25s ease;
    z-index: 100;
}

/* Пункты меню с флагами */
.lang-dropdown li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lang-dropdown li:hover {
    background: #f0f0f0;
}

/* Показ меню при наведении */
.lang-select:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Флаги в списке */
.lang-dropdown li img {
    width: 30px;
    height: 18px;
    object-fit: cover;
}

.lang-dropdown li span {
    display: inline-block;
    vertical-align: center;
    font-size: 14px;
    font-weight: 500;
}

/* Иконка пользователя */
.nav-right .login {
    color: #ffffff;
    font-size: large;
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.nav-right .login:hover {
    background: rgba(255,255,255,0.1);
}

/* Иконка */
.nav-right .login i {
    font-size: 22px;
    vertical-align: middle;
}

.nav-right .login .title {
    display: flex;
}

.nav-right .login .title i {
    margin-right: 10px;
}

/* Меню */
.nav-right .login-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    background-color: #fff;
    padding: 5px 0;
    margin: 0;
    min-width: 160px;
    list-style: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    text-align: center;
}

/* Появление меню */
.nav-right .login:hover .login-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Пункты меню */
.nav-right .login-dropdown li {
    margin: 0;
}

.nav-right .login-dropdown li a {
    display: block;
    width: 100%;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Hover эффект пунктов */
.nav-right .login-dropdown li a:hover {
    background-color: #f5f5f5;
    color: #000;
}

/* Опционально: маленький стрелочный индикатор */
.nav-right .login-dropdown::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 15px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
}


.hero {
    position: relative;
    min-height: 70vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 

    text-align: center;
    padding: 40px 20px;
    color: #ffffff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45); /* степень затемнения */
}

.hero > * {
    position: relative;
    z-index: 1;
}

.logo img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* ----- header ----- */


/* ----- Описание ----- */

.content {
    margin: 20px auto;
    padding: 40px 40px;
    background-color: #ffff;
    border-radius: 10px;
}

.section-block {
    margin-bottom: 40px;
    font-size: large;
}

.section-block h2 {
    margin-bottom: 15px;
    color: #00679c;
    text-align: center;
}

.section-block p {
    line-height: 1.7;
}

.section-block:last-child h2{
    text-align: left;
}

.tasks-list {
    padding-left: 20px;
    line-height: 1.7;
}

/* ----- Описание ----- */


/* ----- Лицензии ----- */

.main-section {
    margin-top: 10px;
    padding: 10px;
    text-align: center;
    color: #00679c;
}

.main-section h2 {
    margin-bottom: 10px;
}

.licenses-slider {
    padding: 30px 0;
}

.card {
    background: #ffffff;
    overflow: hidden;   
    box-shadow: 0 0px 20px rgba(0,0,0,0.12);
}

.card .image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

.card .text {
    padding: 15px;
    text-align: center;
    background-color: #00679c;
}

.card .text a {
    text-decoration: none;
    font-weight: 600;
    color: #ffffff;
}

/* стрелки */
.swiper-button-next,
.swiper-button-prev {
    color: #0b5f8a;
}

/* ----- Лицензии ----- */


/* ----- Образовательная программа ----- */

.table-section {
    margin: 60px 0;
}

.table-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #0b5f8a;
    font-weight: 600;
}

/* обёртка таблицы */
.table-section table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* шапка */
.table-section thead {
    background: #0b5f8a;
    color: #fff;
}

.table-section th {
    border-left: 2px solid rgba(255, 255, 255, 0.601); /* мягкая линия вместо чёрной */
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 14px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 20px;
}

/* строки */
.table-section td {
    border-left: 1px solid rgba(0, 0, 0, 0.29); /* мягкая линия вместо чёрной */
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 14px 12px;
    text-align: center;
    border-bottom: 1px solid #e6e6e6;
    font-size: 20px;
}

/* зебра */
.table-section tbody tr:nth-child(even) {
    background: #f8fafc;
}

/* hover */
.table-section tbody tr:hover {
    background: #eef5fb;
    transition: background 0.2s ease;
}

/* колонка с названием программы */
.table-section td:nth-child(3) {
    text-align: left;
    font-weight: 500;
}

/* последняя строка без бордера */
.table-section tbody tr:last-child td {
    border-bottom: none;
}


/* ----- Образовательная программа ----- */


/* ----- Подвал сайта ----- */
.footer {
    background: #0b3c5d;
    color: #fff;
    padding: 50px 0;
    font-size: 15px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0px 100px 0px 100px;
    gap: 40px;
    text-align: center;
}

.footer-col  {
    text-decoration: none;
}

.footer-col h4 {
    margin-bottom: 18px;
    font-size: 20px;
    font-weight: 600;
}


.footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #eaeaea;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-link i {
    font-size: 18px;
}

.footer-link:hover {
    color: #ffffff;
}

/* Соцсети */
.socials {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 10px;
}

.socials a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.socials a:hover {
    background: #fff;
    color: #0b3c5d;
    transform: translateY(-3px);
}

/* ----- Подвал сайта ----- */


.edu-title {
    text-align: center;
    margin: 0px;
    padding: 0px;
}

.edu-title h2 {
    color: #00679c;
}

/* ----------------- Адаптив + гамбургер ----------------- */
@media (max-width: 480px) {

    /* Контейнеры */
    .container {
        padding: 0 15px;
    }

    /* Header */
    .nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
    }

    /* Скрываем обычную навигацию и добавляем гамбургер */
    .nav-left {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #00679c;
        position: absolute;
        top: 65px; /* под header */
        left: 0;
        z-index: 99;
        top: 50px;
    }

    .nav-left a {
        margin: 10px 0;
        padding: 10px 20px;
        font-size: 16px;
        color: #fff;
        border-top: 1px solid rgba(255,255,255,0.2);
    }

    /* Гамбургер-иконка */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 25px;
        height: 20px;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        height: 3px;
        background: #fff;
        border-radius: 2px;
    }

    /* Hero */
    .hero {
        min-height: 50vh;
        padding: 20px 15px;
    }

    .hero h1 {
        font-size: 22px;
        line-height: 1.3;
    }

    .logo img {
        width: 120px;
        height: 120px;
        margin-bottom: 10px;
    }

    /* Контент описание */
    .content {
        padding: 20px 15px;
    }

    .section-block h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .section-block p,
    .tasks-list li {
        font-size: 16px;
    }

    /* Лицензии: слайдер уменьшить высоту карточек */
    .card .image img {
        height: 250px;
    }

    /* Таблица: горизонтальный скролл */
    .table-section table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .table-section th,
    .table-section td {
        font-size: 14px;
        padding: 10px;
    }

    /* Footer: колонки под друг другом */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
}

/* Для маленьких экранов <480px */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 18px;
    }

    .nav-right .login .title p,
    .nav-left a {
        font-size: 14px;
    }

    .lang-select {
        padding: 3px 6px;
    }

    .section-block h2 {
        font-size: 18px;
    }

    .section-block p,
    .tasks-list li {
        font-size: 14px;
    }

    .logo img {
        width: 100px;
        height: 100px;
    }

    .card .image img {
        height: 200px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}


/* ---------- Адаптив для таблицы образовательных программ ---------- */
@media (max-width: 768px) {
    .table-section table,
    .table-section thead,
    .table-section tbody,
    .table-section th,
    .table-section td,
    .table-section tr {
        display: block;
    }

    .table-section thead tr {
        display: none; /* скрываем шапку таблицы */
    }

    .table-section tbody tr {
        margin-bottom: 20px;
        background: #fff;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    .table-section td {
        text-align: right;
        padding: 10px 10px;
        position: relative;
        font-size: 14px;
        border: none;
        display: flex;
        justify-content: space-between;
    }

    .table-section td::before {
        content: attr(data-label);
        font-weight: 600;
        text-align: left;
        color: #0b5f8a;
    }
}
