/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #333;
    line-height: 1.6;
    padding-top: 0; /* Убираем отступ, который может добавить панель */
}

.header {
    background: white;
    padding: 20px 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100; /* Уменьшаем z-index, чтобы панель администратора могла быть поверх */
    transition: all 0.3s ease;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 1.8rem;
    color: #2a5298;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1e3c72;
}

.logo-text span {
    color: #4CAF50;
}

.nav {
    display: flex;
    gap: 25px;
}

.nav a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

.nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: #2a5298;
    transition: width 0.3s;
}

.nav a:hover {
    color: #2a5298;
}

.nav a:hover:after {
    width: 100%;
}

.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.hero {
    margin-bottom: 50px;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1e3c72;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 30px;
}

.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.feature-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    width: 365px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #2a5298;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #2a5298;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #1e3c72;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
}

.calculator-container {
    background: white;
    border-radius: 12px;
    padding: 25px 0 25px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    max-width: 1200px;
    margin: 50px auto;
    border: 1px solid #eee;
    animation: fadeIn 1.2s ease;
}

.calculator-title {
    text-align: center;
    font-size: 1.8rem;
    color: #1e3c72;
    margin-bottom: 25px;
}

.benefits {
    margin: 60px 0;
    animation: fadeInUp 1.2s ease;
}

.benefits h2 {
    font-size: 2rem;
    color: #1e3c72;
    margin-bottom: 40px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 1.5rem;
    color: #4CAF50;
    margin-top: 3px;
}

.benefit-content h3 {
    font-size: 1.2rem;
    color: #1e3c72;
    margin-bottom: 8px;
}

.footer {
    background: white;
    padding: 40px 5% 25px;
    margin-top: 80px;
    border-top: 1px solid #eee;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 18px;
    color: #1e3c72;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #2a5298;
}

.contact-info p {
    margin-bottom: 8px;
    color: #666;
}

.copyright {
    text-align: center;
    padding-top: 25px;
    margin-top: 25px;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .nav {
        gap: 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
    .nav a {
        font-size: 0.8rem;
}