/* Reset and base styles  */
* {
    padding: 0px;
    margin: 0px;
    border: none;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Links */

a,
a:link,
a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Common */

aside,
nav,
footer,
header,
section,
main {
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    font-size: inherit;
    font-weight: inherit;
}

ul,
ul li {
    list-style: none;
}

img {
    vertical-align: top;
}

img,
svg {
    max-width: 100%;
    height: auto;
}

address {
    font-style: normal;
}

/* Form */

input,
textarea,
button,
select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background-color: transparent;
}

input::-ms-clear {
    display: none;
}

button,
input[type='submit'] {
    display: inline-block;
    box-shadow: none;
    background-color: transparent;
    background: none;
    cursor: pointer;
}

input:focus,
input:active,
button:focus,
button:active {
    outline: none;
}

button::-moz-focus-inner {
    padding: 0;
    border: 0;
}

label {
    cursor: pointer;
}

legend {
    display: block;
}

input[type='file'] {
    max-width: 100%;
}

@font-face {
    font-family: 'Tinkoff Sans';
    src: url('../fonts/TinkoffSans-Regular.woff2') format('woff2'),
        url('../fonts/TinkoffSans-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tinkoff Sans';
    src: url('../fonts/TinkoffSans-Medium.woff2') format('woff2'),
        url('../fonts/TinkoffSans-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
:root {
    --color-primary: #b4ece3;
    --color-secondary: #7f7bc5;
    --color-bgblack: #585858;
    --color-text: #171717;
    --background-color: #e5f8f6;
    --font-size-base: 22px;
    --font-size-lg: 29px;
}

body {
    font-family: 'Tinkoff Sans';
    background-color: var(--background-color);
}
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 10px;
}
.container-min {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 10px;
}
p {
    font-size: 20px;
    color: var(--color-text);
}
.text {
    font-size: 20px;
    color: var(--color-text);
}
.eva-header {
    background-color: var(--background-color);
}
.header-container {
    display: flex;
    padding-top: 20px;
    padding-bottom: 20px;
    align-items: center;
}
.logo {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}
.logo-container img {
    max-width: 100px;
    width: 100%;
    height: 50px;
    object-position: center;
    object-fit: contain;
}

.logo-description {
    display: block;
    font-size: 18px;
    line-height: 114%;
    color: var(--color-secondary);
}

.menu-icon {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 3;
}

.menu-icon span {
    width: 28px;
    height: 3px;
    background: var(--color-primary);
    margin: 4px 0;
    transition: 0.3s ease;
}

/* Меню по умолчанию скрыто */
.menu {
    display: none;
    position: absolute;
    top: 121px;
    right: 0;
    background: white;
    width: 100%;
    padding: 24px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 200;
    text-align: center;
}
.menu ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.menu ul a {
    font-size: 20px;
    color: var(--color-primary);
}
/* Активное меню */
.menu.active {
    display: block;
}

/* Анимация крестика */
.menu-icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-icon.active span:nth-child(2) {
    opacity: 0;
}

.menu-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(10px, -10px);
}
.lang_ul {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 25px;
    border-top: solid 1px #7f7bc5;
    padding: 20px 0;
    border-bottom: solid 1px #7f7bc5;
}
.lang_ul a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-size: 25px;
    color: #9f9f9f;
}
.lang_ul a:hover {
    color: #000;
}
.image-slider {
    width: 100%;
    border-radius: 10px;
}
h1 {
    font-size: var(--font-size-lg);
    color: var(--color-text);
    line-height: 130%;
    margin-bottom: 25px;
    font-weight: 500;
}
h2 {
    font-size: var(--font-size-lg);
    color: var(--color-text);
    line-height: 130%;
    text-align: left;
    margin-bottom: 25px;
    font-weight: 500;
}

span.purple {
    color: var(--color-secondary);
}

.mt-60 {
    margin-top: 40px;
}
.item-advanages {
    margin-top: 25px;
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
}

.item-advanages__box {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
    font-size: 22px;
}

.box-black {
    color: #333;
}

.btn {
    color: white;
    display: inline-flex; /* для центрирования по вертикали */
    height: 55px;
    font-size: 22px;
    border-radius: 50px;
    background-color: var(--color-secondary);
    font-weight: 600;
    text-decoration: none;
    align-items: center; /* центр по вертикали */
    justify-content: center; /* центр по горизонтали */
    gap: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    padding: 0 40px;
    margin: 40px auto 0 auto; /* центрирование */
}

.btn::after {
    content: '➔';
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn:hover {
    background: linear-gradient(180deg, var(--color-primary), var(--color-primary));
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.25);
    font-weight: 500;
    color: #fff;
}

.btn:hover::after {
    transform: translateX(4px);
}

/* На маленьких экранах уменьшаем размер текста и паддинги */
@media (max-width: 480px) {
    .btn {
        font-size: 18px;
        padding: 0 24px;
        height: 48px;
    }

    .btn::after {
        font-size: 16px;
    }
}

.content-section {
    margin-top: 60px;
}
.list_ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.list_ul li {
    display: flex;
    flex-direction: row;
    gap: 15px;
    font-size: 20px;
    color: var(--color-text);
    align-items: flex-start;
}
.list_ul li img {
    margin-top: 5px;
}
.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding-top: 25px;
}

.step {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: center;
}

.step-number {
    position: absolute;
    top: -24px;
    left: 30px;
    transform: translateX(-50%);
    background-color: #444;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    padding: 7px 18px;
    font-size: 27px;
}

.step p {
    margin-top: 20px;
    font-size: 21px;
    line-height: 1.4;
    color: #333;
}
.wite-container {
    width: 100%;
}
.two-columns {
    padding: 35px 24px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}
.text a {
    color: #0066ae;
    text-decoration: underline;
}
.box-black p {
    color: #333;
}
.container-white {
    padding: 35px 24px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}
.contacts-ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 20px;
    color: var(--color-text);
    align-items: flex-start;
}

.contact-content {
    font-size: 14px;
}
.contact-content p {
    font-size: inherit;
}

.column-contacts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
footer {
    padding-bottom: 30px;
}
.active a {
    color: var(--color-secondary);
}
/* Попап — центр экрана */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 700px;
    width: 90%;
    background: white;
    border: 1px solid #b3b3b3;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    border-radius: 10px;
}

/* Скрытие */
.popup.hidden {
    display: none;
}

/* Контейнер */
.popup-inner {
    position: relative;
}

/* Кнопка закрытия */
.popup-close {
    position: absolute;
    top: -31px;
    right: -15px;
    font-size: 34px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

/* Кнопка закрытия */
.popup-close-2 {
    position: absolute;
    top: -31px;
    right: -15px;
    font-size: 34px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

/* Поля формы */
.popup form label {
    display: block;
    margin-bottom: 30px;
    font-size: 19px;
    font-weight: 400;
    color: #222;
}

.popup form input,
.popup form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 14px;
    box-sizing: border-box;
    margin-top: 5px;
}

/* Отступы между checkbox/fieldset */
.popup form fieldset {
    border: none;
    margin: 0;
    padding: 0;
    margin-bottom: 15px;
}

.popup form fieldset legend {
    font-weight: bold;
    margin-bottom: 5px;
}

.popup form fieldset label {
    display: block;
    margin-bottom: 5px;
}

/* Кнопка отправки */
.popup form button[type='submit'] {
    background-color: #ffdd2d;
    color: #1e1e1e;
    border: 1px solid #ffdd2d;
    padding: 12px 24px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.2s ease;
    display: inline-block;
}

.popup form button[type='submit'] :hover {
    background-color: #ffcc00;
}
.form-error {
    color: red;
    font-size: 14px;
}

.disable {
    background-color: #d4d4d4 !important;
    border: 1px solid #d4d4d4 !important;
}

.learn-section .learn-content {
    margin-bottom: 20px;
    margin-top: 20px;
}

.learn-section .learn-content p::before {
    content: '✓ ';
    color: var(--color-secondary);
}

.learn-content {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    line-height: 200%;
}
.learn-content strong {
    font-weight: 500;
}

.teacher-section h2 {
    margin-bottom: 20px;
}
.teacher-section .learn-content {
    margin-top: 20px;
}

.teacher-slider {
    margin-top: 24px;
}
.teacher-slider .swiper-slide {
    height: unset;
}

.teacher-slide__inner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
}

.teacher-slide__img {
    width: 100%;
    display: block;
    border-radius: 16px;
    /* height: 600px; */
    object-fit: cover;
}

.teacher-slide__inner::before {
    content: '';
    width: 100%;
    height: 45%;
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(transparent, #7f7bc5 80%);
    border-radius: 0 0 16px 16px;
}

.teacher-slide__text {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    color: #fff;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 24px;
    text-align: center;
}

.teacher-slider .swiper-pagination {
    position: relative;
    left: unset;
    bottom: unset;
    top: unset;
    right: unset;
    margin-top: 20px;
    --swiper-pagination-color: var(--color-secondary);
}

.how-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.how-list li {
    border-radius: 24px;
    background-color: white;
    padding: 24px 12px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.how-list .step_name {
    color: var(--color-secondary);
    font-weight: 500;
    font-size: 24px;
}

.how-list .step_text {
    color: var(--color-text);
}

.need-section .learn-content p {
    font-size: 24px;
}

.btns-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.btns-col .btn {
    margin: 0 !important;
}

.learn-btns {
    margin-top: 24px;
}

.btn--full {
    width: 100%;
}

/* Стили для кнопки */
.btn {
    position: relative;
    overflow: hidden;
    font-weight: 500;
    transition: 0.4s;
}

/* Стили для создания блика на кнопке */
.btn:before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100%;
    background-image: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 30%,
        /* Прозрачность начала блика */ rgba(255, 255, 255, 0.8),
        /* Цвет блика */ rgba(255, 255, 255, 0) 70% /* Прозрачность конца блика */
    );
    top: 0;
    left: -100px;
    animation: shine 2s infinite linear; /* Анимация блика */
}

/* Ключевые кадры для анимации блика */
@keyframes shine {
    0% {
        left: -100px; /* Начальная позиция блика (левая сторона кнопки) */
    }
    20% {
        left: 100%; /* Позиция блика в конце (правая сторона кнопки) */
    }
    100% {
        left: 100%; /* Завершение анимации */
    }
}

/* Контейнер для кнопок */
.learn .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
/* Убираем центрирование кнопок */
.learn .btn {
    margin-left: 0 !important;
    margin-right: auto !important;
}
@media (min-width: 980px) {
    p {
        font-size: 23px;
        color: var(--color-text);
    }
    .logo-container img {
        max-width: 200px;
        width: 100%;
        height: 50px;
    }
    .learn {
        margin-top: 25px;
    }
    .logo-description {
        display: block;
        font-size: 25px;
        line-height: 114%;
    }
    .menu {
        top: 123px;
    }
    .menu ul a {
        font-size: 24px;
        color: var(--color-primary);
    }
    .lang_ul {
        margin-top: 45px;
    }
    .image-slider {
        border-radius: 20px;
    }
    .mt-60 {
        margin-top: 60px;
    }
    h1 {
        font-size: 37px;
    }
    h2 {
        font-size: 37px;
    }
    .item-advanages {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .item-advanages__box p {
        font-size: 24px;
    }
    .btn {
        width: fit-content;
        padding: 14px 45px;
        margin: 0 auto;
        margin-top: 40px !important;
    }

    .teacher-slide__img {
        height: auto;
    }

    .teacher-slide__text {
        font-size: 24px;
    }

    .how-list .step_name {
        font-size: 28px;
    }

    .how-list .step_text {
        font-size: 26px;
    }

    /* Стили для второй кнопки */
    .btn-second {
        margin-bottom: 20px !important;
        margin-top: 40px !important;
    }
    .content-section {
        margin-top: 100px;
    }
    .list_ul li {
        font-size: 23px;
        line-height: 135%;
    }
    .steps {
        display: grid;
        gap: 20px;
        padding-top: 40px;
        grid-template-columns: repeat(4, 1fr);
    }
    .step {
        padding: 10px;
    }
    .step p {
        margin-top: 30px;
        margin-bottom: 10px;
    }
    .two-columns {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        align-items: end;
        padding: 35px 24px;
    }
    .column-contacts {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    footer {
        padding-bottom: 60px;
    }
}
@media (min-width: 870px) {
    .item-advanages {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 420px) {
    .logo-description {
        font-size: 22px;
    }
}
@media (max-width: 360px) {
    .lang_ul a img {
        max-width: 30px;
    }
    .lang_ul a {
        font-size: 22px;
    }
    .item-advanages__box {
        font-size: 19px;
    }
    h1 {
        font-size: 25px;
    }
    h2 {
        font-size: 25px;
    }
}
