/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: rgb(230, 230, 230);
    min-height: 100vh;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Хедер */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

nav a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

nav a:hover::before {
    left: 100%;
}

nav a:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Стили для десктопного меню */
.desktop-nav {
    display: flex;
}

.mobile-menu {
    display: none;
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    
    nav {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hamburger {
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
    }
    
    .mobile-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .mobile-nav.active {
        display: block;
    }
    
    .mobile-nav a {
        display: block;
        padding: 1rem;
        text-decoration: none;
        color: #4a5568;
        border-bottom: 1px solid #e2e8f0;
    }
}

/* Основной контент */
main {
    min-height: calc(100vh - 140px);
    padding: 3rem 0;
}

.hero {
    text-align: center;
    color: white;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.836);
    background: linear-gradient(45deg, #000000, #000000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #000000;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

/* Карточки */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card h3 {
    color: #4a5568;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    color: #718096;
    line-height: 1.6;
}

/* Футер */
footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 2rem 0;
    backdrop-filter: blur(10px);
    margin-top: auto; /* Это ключевое свойство */
}

footer p {
    font-size: 1rem;
    opacity: 0.8;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    nav a {
        display: block;
        width: 200px;
        text-align: center;
    }
    
    .cards {
        grid-template-columns: 1fr;
    }
}

/* Дополнительные декоративные элементы */
.decorative-circle {
    position: fixed;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: 10%;
}