* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    background: linear-gradient(145deg, #cfe6f5 0%, #aacce8 100%);
    color: #023b66;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Контейнер-обёртка */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ========= ШАПКА (сине-голубая, стиль Израиля) ========= */
.site-header {
    background: linear-gradient(90deg, #0c2e4e 0%, #1a5a7e 100%);
    box-shadow: 0 8px 20px rgba(0, 20, 40, 0.3);
    border-bottom: 3px solid #ffde9c;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
}

/* Логотип слева (300x184) */
.logo-area {
    flex: 0 0 auto;
}

.logo-img {
    width: 300px;
    height: 184px;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
    background: #ffffff10;
    border-radius: 16px;
}

.logo-img:hover {
    transform: scale(1.01);
}

/* Меню по центру */
.nav-center {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    padding: 10px 32px;
    border-radius: 60px;
    border: 1px solid rgba(255, 245, 200, 0.5);
}

.main-nav a {
    color: #f0f9ff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 6px 0;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover {
    color: #ffeaac;
    border-bottom-color: #ffde9c;
    transform: translateY(-2px);
}

/* Блок с формой (логин + пароль + кнопка входа + кнопка регистрации) */
.auth-forms {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 48px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(255, 248, 210, 0.7);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auth-forms input {
    background: white;
    border: none;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 0.9rem;
    outline: none;
    width: 130px;
    transition: 0.2s;
    color: #023b66;
    font-weight: 500;
}

.auth-forms input:focus {
    box-shadow: 0 0 0 2px #ffde9c;
    width: 145px;
}

/* стили для двух кнопок */
.btn-login {
    background: #ffcd7e;
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: bold;
    color: #023b66;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.btn-register {
    background: #eef5ff;
    border: 1.5px solid #ffde9c;
    padding: 7px 18px;
    border-radius: 40px;
    font-weight: bold;
    color: #02457a;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    background: #ffffffdd;
}

.btn-login:hover {
    background: #ffbc4a;
    transform: scale(0.97);
}

.btn-register:hover {
    background: #ffffff;
    border-color: #ffcd7e;
    transform: scale(0.97);
}

/* ========= ОСНОВНАЯ ЗОНА ========= */
.main-content {
    flex: 1;
    padding: 40px 0 60px;
}

/* навигационные ссылки (Курс Ю.И.Костенко - 1 урок - Тренировка 1) */
.lesson-nav {
    background: #eef5fc;
    padding: 14px 28px;
    border-radius: 56px;
    margin-bottom: 36px;
    display: inline-block;
    width: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #c2def5;
}

.lesson-nav a {
    color: #0f5b8c;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s;
}

.lesson-nav a:hover {
    color: #022b44;
    text-decoration: underline;
}

.lesson-nav span {
    margin: 0 8px;
    color: #2c7cb6;
    font-weight: 600;
}

/* главный карточный блок с текстом */
.hero-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(3px);
    border-radius: 52px;
    padding: 44px 40px;
    margin-top: 8px;
    box-shadow: 0 20px 35px -10px rgba(0, 35, 70, 0.3);
    border: 1px solid #ffffffcc;
}

.hero-card h1 {
    font-size: 2.2rem;
    color: #034b77;
    margin-bottom: 20px;
    border-left: 8px solid #1e88e5;
    padding-left: 28px;
    font-weight: 700;
}

.greeting-text {
    font-size: 1.28rem;
    line-height: 1.55;
    color: #05445e;
    background: #e3f2fd;
    padding: 28px 32px;
    border-radius: 40px;
    margin-top: 16px;
    font-weight: 500;
    box-shadow: inset 0 0 0 1px #cbe5fe, 0 6px 12px -6px rgba(0,0,0,0.1);
}

.greeting-text p {
    margin-bottom: 16px;
}

.greeting-text p:last-child {
    margin-bottom: 0;
}

/* декоративный блок в израильском стиле */
.israel-decor {
    display: flex;
    gap: 18px;
    margin-top: 32px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.badge {
    background: #003cff18;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #003f6f;
    backdrop-filter: blur(2px);
    border: 0.5px solid white;
}

/* три информационных блока под основным текстом */
.info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 48px;
    justify-content: space-between;
}

.info-card {
    flex: 1;
    background: linear-gradient(135deg, #e3f0fc, #cde4f5);
    border-radius: 36px;
    padding: 28px 22px;
    transition: all 0.2s;
    border: 1px solid rgba(255,255,240,0.8);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.info-card h3 {
    color: #01579b;
    margin-bottom: 14px;
    font-size: 1.4rem;
    border-left: 4px solid #ffde9c;
    padding-left: 14px;
}

.info-card p {
    color: #014175;
    line-height: 1.45;
}

/* футер */
.site-footer {
    background: #0a3853;
    color: #cce7f5;
    text-align: center;
    padding: 24px 0;
    font-size: 0.85rem;
    border-top: 2px solid #ffde9c;
    margin-top: auto;
}

/* адаптивность */
@media (max-width: 1000px) {
    .header-grid {
        flex-direction: column;
        align-items: stretch;
    }
    .logo-area {
        display: flex;
        justify-content: center;
    }
    .nav-center {
        order: 2;
    }
    .auth-forms {
        order: 3;
        justify-content: center;
        margin-top: 5px;
    }
    .main-nav {
        justify-content: center;
        gap: 20px;
    }
    .lesson-nav {
        display: block;
        text-align: center;
    }
}

@media (max-width: 680px) {
    .auth-forms input {
        width: 110px;
    }
    .logo-img {
        width: 240px;
        height: 148px;
    }
    .hero-card {
        padding: 28px 20px;
    }
    .greeting-text {
        font-size: 1.1rem;
        padding: 20px;
    }
    .info-card {
        min-width: 220px;
    }
}

/* анимация появления плавная */
.fade-in {
    animation: fadeUp 0.5s ease-out;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* для кнопок убираем стандартное поведение формы (нет js, но они просто как элементы) */
button {
    font-family: inherit;
}