
body {
  font-family: 'El Messiri', sans-serif; /* Основной шрифт */
    margin: 0;
    padding: 0;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
	    box-sizing: border-box;
}
.header {
    padding: 20px 0;
    overflow: hidden;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    height: 120px;
    vertical-align: middle;
}
a.login-btn {
    border: 1px solid black;
    padding: 10px 15px;
    border-radius: 10px;
}
.nav {
    display: flex;
    align-items: center;
    gap: 25px;
}
.nav a {
    color: black;
    margin-left: 20px;
    text-decoration: none;
}
.hero {
    background: #f7f7f7a1;
    text-align: left;
    padding: 60px 20px;
}
.hero h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}
.btn {
    background-color: #f67b2d;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
}
.features {
    background: #fff;
    padding: 40px 0;
}
.feature-list {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}
.feature {
    text-align: center;
    width: 30%;
}
.feature img {
    max-width: 70%;
}
.login-btn {
    background: #f67b2d;
    color: white!important;
    border: none!important;
    padding: 12px 25px!important;
    margin-left: 15px;
    transition: all 0.3s;
}
.tests-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.tests-blocks .test {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.footer {
    background: #f67b2d;
    text-align: center;
    padding: 20px;
    color: white;
}
/* Основные акценты */
:root {
    --main-orange: #F67B2D;
    --dark-blue: #2A4365;
    --accent-gradient: linear-gradient(135deg, #F67B2D 0%, #FF9F4D 100%);
}

/* Навигация */
.nav a {
    color: var(--dark-blue);
    position: relative;
    padding: 10px 15px;
    transition: all 0.3s;
}

.nav a:hover {
    color: var(--main-orange);
}

.nav a:not(.login-btn):hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--main-orange);
    border-radius: 2px;
}

/* Активный пункт меню */
.nav a.active {
    font-weight: 700;
    color: var(--main-orange);
}

/* Блоки тестов */
.test {
    background: white;
    border: 2px solid var(--dark-blue);
    border-radius: 20px;
    padding: 25px;
    position: relative;
    overflow: hidden;
	text-align: center;
}

.test::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 5px;
}

.subject-icon {
    width: 80px;
    height: 80px;
    background: #FFF5EF;
    border-radius: 50%;
    margin: 0 auto 20px;
    padding: 15px;
}

.subject {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin: 15px 0;
}

.class-number {
    font-family: 'El Messiri', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--main-orange);
    display: block;
    line-height: 1;
}

/* Декоративные элементы */
.decor-line {
    height: 4px;
    background: var(--accent-gradient);
    width: 100px;
    margin: 20px 0;
}

/* Ховер-эффекты */
.test:hover {
    box-shadow: 0 10px 30px rgba(246, 123, 45, 0.15);
    transform: translateY(-5px);
}

/* Адаптивная сетка */
.tests-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

/* Кнопка входа */
.login-btn {
    background: var(--accent-gradient);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: transform 0.3s;
}

.login-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(246, 123, 45, 0.3);
}

.image img {
    max-width: 80%;
}
/* Стили для гамбургера */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark-blue);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Мобильное меню */
@media (max-width: 991px) {
    .hamburger {
        display: block;
    }
    
    .nav {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: white;
        flex-direction: column;
        padding: 80px 20px 20px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease-in-out;
        z-index: 999;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav a {
        margin: 10px 0;
        padding: 12px;
        border-radius: 8px;
        background: #f8f8f8;
    }
    
    .nav a.login-btn {
        margin: 20px 0 0;
        text-align: center;
    }
    
    /* Анимация гамбургера */
    .hamburger.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* Затемнение фона */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 998;
}

@media (max-width: 768px) {
    .menu-overlay.active {
        display: block;
    }
}

/* Мобильная версия */
@media (max-width: 991px) {
    .container {
        padding: 0 15px;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 25px 25px;
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav a {
        width: 100%;
        margin: 0;
        padding: 15px;
        border-radius: 8px;
        text-align: center;
        background: #f8f8f8;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .nav {
        max-width: 280px;
        padding: 60px 15px 15px;
    }
}