:root {
    --primary: #88BDBC;     /* Бирюзовый */
    --secondary: #254E58;   /* Темно-бирюзовый */
    --dark: #112D32;        /* Очень темный бирюзовый */
    --light: #F5F5F5;       /* Светлый текст */
    --accent: #4F4A41;      /* Коричневый акцент */
    --light-accent: #6E6658; /* Светло-коричневый */
    --text-dark: #333333;   /* Темный текст */
    --gray: #757575;        /* Серый для дополнительного текста */
    --partners-bg: #112D32; /* Фон для партнеров - темно-бирюзовый */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: rgba(17, 45, 50, 0.9); /* Темно-бирюзовый с прозрачностью */
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(17, 45, 50, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--light);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--primary);
    margin-right: 5px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 40px;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    cursor: pointer;
}

.mobile-menu div {
    width: 25px;
    height: 3px;
    background-color: var(--light);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    background:
            linear-gradient(135deg,
            rgba(106, 159, 158, 0.85),
            rgba(17, 48, 58, 0.9),
            rgba(0, 0, 0, 0.7)),
            url('Meta-3D-logo.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0) 0%, rgba(17, 45, 50, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease forwards;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s 0.2s ease forwards;
    opacity: 0;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s 0.4s ease forwards;
    opacity: 0;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--dark);
    box-shadow: 0 5px 15px rgba(136, 189, 188, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--light);
    border: 2px solid var(--light);
}

.btn-primary:hover {
    background-color: #79aeac; /* Чуть темнее основного */
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(136, 189, 188, 0.5);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--dark);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.section-header p {
    color: var(--gray);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: linear-gradient(145deg, #17343a, #1d424a);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 50%;
    margin-bottom: 25px;
    font-size: 32px;
    color: var(--light);
    box-shadow: 0 10px 20px rgba(37, 78, 88, 0.3);
}

.service-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.service-card a i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.service-card:hover a {
    color: var(--secondary);
}

.service-card:hover a i {
    transform: translateX(5px);
}

/* Partners Section */
.partners {
    padding: 60px 0;
    background-color: var(--partners-bg);
    position: relative;
    overflow: hidden;
}

.partners-slider {
    display: flex;
    width: calc(200px * 12);
    animation: slide 20s linear infinite;
}

.partner-logo {
    width: 200px;
    height: 80px;
    margin: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.partner-logo img {
    max-width: 80%;
    max-height: 80%;
    filter: grayscale(100%) brightness(150%);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.partner-logo:hover img {
    filter: grayscale(0%);
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 6));
    }
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: #17343a; /* Чуть светлее чем темный основной */
    position: relative;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary);
    z-index: 0;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #bbb;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 16px;
    color: var(--gray);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--dark);
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    padding-right: 20px;
}

.contact-info h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.contact-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.contact-info p {
    margin-bottom: 30px;
    line-height: 1.8;
    color: #bbb;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 20px;
    color: var(--light);
    box-shadow: 0 5px 15px rgba(37, 78, 88, 0.3);
}

.contact-text h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-text p, .contact-text a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.social-link {
    width: 45px;
    height: 45px;
    background-color: #1d424a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--light);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(37, 78, 88, 0.3);
}

.contact-form {
    background: linear-gradient(145deg, #17343a, #1d424a);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: none;
    background-color: #1a3943;
    color: var(--light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary);
    background-color: #20434d;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border: none;
    color: var(--light);
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(37, 78, 88, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 78, 88, 0.5);
}

/* Footer */
footer {
    background-color: #091c20;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--light);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--primary);
}

.footer-info p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-heading {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links a i {
    margin-right: 8px;
    font-size: 14px;
    color: var(--primary);
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.copyright {
    text-align: center;
    color: var(--gray);
    padding-top: 20px;
    border-top: 1px solid #1a3943;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #091c20;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), var(--secondary));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--secondary), var(--primary));
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        height: 100vh;
        top: 0;
        background-color: #112D32;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease;
        z-index: 1000;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .mobile-menu {
        display: block;
        z-index: 1001;
    }

    .mobile-menu.active div:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-menu.active div:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu.active div:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .nav-active {
        transform: translateX(0%);
    }

    .hero h1 {
        font-size: 40px;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image {
        margin-bottom: 40px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}





/* Исправление для сервисных карточек */
.service-card {
    /* Изменяем градиент на более контрастный */
    background: #173e47;
    border: 1px solid rgba(136, 189, 188, 0.2);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(136, 189, 188, 0.2), rgba(37, 78, 88, 0.2));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(136, 189, 188, 0.5);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #88BDBC, #5a9b9a);
    border-radius: 50%;
    margin-bottom: 25px;
    font-size: 32px;
    color: #173e47;
    box-shadow: 0 10px 20px rgba(37, 78, 88, 0.3);
}

/* Улучшение контраста текста в карточках */
.service-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #f5f5f5;
}

.service-card p {
    color: #b4b4b4;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-card a {
    color: #88BDBC;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

/* Стилизация контактной формы для лучшего соответствия дизайну */
.contact-form {
    background: #173e47;
    border: 1px solid rgba(136, 189, 188, 0.2);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(136, 189, 188, 0.2);
    background-color: #112D32;
    color: var(--light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #88BDBC;
    box-shadow: 0 0 0 2px rgba(136, 189, 188, 0.3);
    background-color: #143741;
}

.submit-btn {
    background: #88BDBC;
    border: none;
    color: #112D32;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(37, 78, 88, 0.3);
}

.submit-btn:hover {
    background: #5a9b9a;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 78, 88, 0.5);
}

/* Улучшение стиля контактных иконок */
.contact-icon {
    width: 50px;
    height: 50px;
    background: #88BDBC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 20px;
    color: #112D32;
    box-shadow: 0 5px 15px rgba(37, 78, 88, 0.3);
}

.social-link {
    width: 45px;
    height: 45px;
    background-color: #173e47;
    border: 1px solid rgba(136, 189, 188, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--light);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #88BDBC;
    color: #112D32;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(37, 78, 88, 0.3);
}