/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Навигационное меню */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo img {
    height: 40px;
    width: auto;
    max-width: 200px;
}

.logo:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: white;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
}

/* Баннер */
.banner {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.3) 100%), url('img/banner-servers-light.jpg') center/cover no-repeat;
    color: white;
    padding: 120px 20px;
    text-align: center;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(30px); }
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 800;
    animation: slideDown 0.8s ease-out;
}

.banner-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 300;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Секция услуг */
.services-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.services-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2d3748;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.service-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    opacity: 0.3;
    margin-bottom: 10px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2d3748;
    font-weight: 700;
}

.service-card p {
    color: #718096;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Секция преимуществ */
.why-dspace {
    padding: 80px 0;
    background: white;
}

.why-dspace h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #2d3748;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: #718096;
    font-size: 1.1rem;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f6 100%);
    padding: 40px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: #2d3748;
}

.feature-card:hover h3 {
    color: white;
}

.feature-card p {
    color: #718096;
    line-height: 1.8;
    margin-bottom: 15px;
}

.feature-card:hover p {
    color: rgba(255, 255, 255, 0.95);
}

.feature-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.feature-card:hover .feature-link {
    color: white;
}

/* CTA секция */
.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    border-radius: 12px;
    margin: 60px 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Основное содержимое */
.content {
    padding: 40px 0;
    margin-bottom: 40px;
}

.content h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #2d3748;
    font-weight: 700;
}

.content h2 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 15px;
    font-weight: 700;
}

/* О нас - стили */
.about-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f6 100%);
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.about-section p {
    color: #4a5568;
    line-height: 1.9;
    font-size: 1rem;
}

.about-list {
    list-style: none;
    margin-top: 20px;
}

.about-list li {
    padding: 12px 0 12px 30px;
    position: relative;
    color: #4a5568;
}

.about-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Команда */
.team {
    margin-top: 60px;
}

.team h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #2d3748;
    font-weight: 700;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.member {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid #667eea;
}

.member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.member-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.member h3 {
    color: #2d3748;
    margin-bottom: 8px;
    font-weight: 700;
}

.member p {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 8px;
}

.member span {
    color: #718096;
    font-size: 0.9rem;
    display: block;
}

/* Контакты */
.contacts-section {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contacts-section h2 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 700;
}

.contacts-section .section-subtitle {
    color: #4a5568;
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-form {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Форма */
.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #a0aec0;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2d3748;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0aec0;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Подвал */
.footer {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: #cbd5e0;
    padding: 50px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: #667eea;
}

.footer-section p {
    color: #cbd5e0;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0aec0;
}

/* Адаптивный дизайн */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .banner-content h1 {
        font-size: 2rem;
    }

    .banner-content p {
        font-size: 1rem;
    }

    .banner {
        padding: 60px 20px;
    }

    .services-section h2,
    .why-dspace h2,
    .cta-section h2 {
        font-size: 1.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .team-members {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .content h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

    .nav-menu {
        gap: 0.8rem;
    }

    .banner-content h1 {
        font-size: 1.5rem;
    }

    .services-section h2,
    .why-dspace h2 {
        font-size: 1.5rem;
    }

    .service-card,
    .feature-card {
        padding: 20px;
    }

    .team-members {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: 40px 20px;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .service-detail-card {
        padding: 20px;
    }

    .service-detail-card h2 {
        font-size: 1.2rem;
    }

    .service-detail-card .service-detail-icon {
        font-size: 2rem;
    }

    .contacts-section {
        padding: 40px 20px;
    }

    .contacts-section h2 {
        font-size: 1.5rem;
    }

    .contact-form {
        padding: 20px;
    }
}

/* Стили для страницы услуг */
.services-detail-section {
    padding: 60px 0;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.service-detail-card {
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    border-left: 4px solid transparent;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transition: all 0.3s ease;
    border-left-color: #667eea;
}

.service-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.service-detail-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.service-detail-card h2 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 700;
}

.service-detail-card p {
    color: #555;
    line-height: 1.8;
