/* Сброс отступов и полей из header.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    width: 100%;
    overflow-x: hidden; /* Предотвращаем горизонтальный скролл */
}

body {
    padding-top: 30px; /* Отступ для фиксированного header */
    background-color: #f8f9fa;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Основной контейнер для header из header.css */
#header {
    width: 100%;
    background: linear-gradient(135deg, #0f2027 0%, #1a2a3a 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Уменьшил padding для мобильных */
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0; /* Уменьшил padding */
    width: 100%;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
    z-index: 1001; /* Повышаем z-index чтобы логотип был выше меню на мобильных */
}

.logo i {
    margin-right: 10px;
    font-size: 2.2rem;
    color: #27ae60; /* Зеленый цвет для логотипа */
    text-shadow: 0 0 8px rgba(39, 174, 96, 0.4);
}

.logo:hover {
    color: #27ae60; /* Зеленый при наведении */
    transform: scale(1.05);
}

/* Навигация для десктопов */
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #ecf0f1;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
    display: block;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #27ae60, #2ecc71); /* Зеленый градиент */
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover {
    color: #27ae60; /* Зеленый при наведении */
}

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

.nav-links a.active {
    color: #27ae60; /* Зеленый для активной страницы */
    font-weight: 600;
}

.nav-links a.active:after {
    width: 100%;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}

/* Кнопка мобильного меню */
.mobile-menu {
    display: none;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
    background-color: rgba(39, 174, 96, 0.1);
    border-radius: 5px;
    z-index: 1001; /* Повышаем z-index чтобы кнопка была выше меню на мобильных */
}

.mobile-menu:hover {
    color: #27ae60;
    background-color: rgba(39, 174, 96, 0.2);
    transform: rotate(90deg);
}

/* Мобильное меню - скрыто по умолчанию */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .navbar {
        padding: 12px 0;
    }
    
    .mobile-menu {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, #0f2027 0%, #1a2a3a 100%);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 80px 0 40px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        margin: 15px 0;
        width: 80%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 12px 20px;
        border-radius: 8px;
        background-color: rgba(255, 255, 255, 0.05);
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background-color: rgba(39, 174, 96, 0.15);
        color: #27ae60;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(39, 174, 96, 0.2);
    }

    .nav-links a:after {
        display: none;
    }

    .nav-links a.active {
        background-color: rgba(39, 174, 96, 0.2);
        color: #2ecc71;
        box-shadow: 0 5px 15px rgba(39, 174, 96, 0.25);
    }

    .logo {
        font-size: 1.6rem;
    }

    .logo i {
        font-size: 2rem;
    }
}

/* Контент для демонстрации из header.css */
.content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
    flex: 1;
    width: 100%;
}

.content h1 {
    color: #1a2a3a;
    margin-bottom: 20px;
    font-size: 2.5rem;
    padding-bottom: 15px;
    border-bottom: 3px solid #27ae60;
    display: inline-block;
}

.content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555;
}

.content .demo-box {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-top: 30px;
    border-left: 5px solid #27ae60;
}

.content .demo-box h2 {
    color: #1a2a3a;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.content .demo-box h2 i {
    color: #27ae60;
    margin-right: 10px;
}

.device-demo {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 40px;
    gap: 30px;
}

.device {
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 300px;
    transition: all 0.3s ease;
    border-top: 4px solid #27ae60;
}

.device:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(39, 174, 96, 0.15);
}

.device h3 {
    color: #1a2a3a;
    margin-bottom: 15px;
}

.device i {
    font-size: 3.5rem;
    color: #27ae60;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.instructions {
    background-color: rgba(39, 174, 96, 0.08);
    border-left: 4px solid #27ae60;
    padding: 25px;
    margin-top: 30px;
    border-radius: 0 8px 8px 0;
}

.instructions h3 {
    color: #1a2a3a;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.instructions h3 i {
    color: #27ae60;
    margin-right: 10px;
}

/* Зеленые акценты в тексте */
.green-accent {
    color: #27ae60;
    font-weight: 600;
}

.green-button {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.3);
}

.green-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(39, 174, 96, 0.4);
}

/* Дополнительные исправления для адаптивности из header.css */
@media screen and (max-width: 480px) {
    .content {
        padding: 0 10px;
    }
    
    .content h1 {
        font-size: 2rem;
    }
    
    .device {
        width: 100%;
        max-width: 300px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .logo i {
        font-size: 1.8rem;
    }
}

/* Hero секция из hero.css */
.hero-block {
    width: 100%;
    min-height: 90vh;
    background: 
        radial-gradient(circle at 20% 50%, rgba(39, 174, 96, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 80% 20%, rgba(41, 128, 185, 0.1) 0%, transparent 20%),
        linear-gradient(135deg, #0c1b25 0%, #152533 50%, #1a2a3a 100%);
    display: flex;
    align-items: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-block .container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-block .hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
}

.hero-block .hero-text {
    flex: 1;
    min-width: 300px;
    color: #fff;
}

.hero-block .hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    background: linear-gradient(90deg, #27ae60, #2ecc71, #27ae60);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-block .hero-description {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 40px;
    color: #d1e0eb;
    max-width: 95%;
}

.hero-block .hero-social {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 40px;
}

.hero-block .hero-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.hero-block .hero-social a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: #27ae60;
}

.hero-block .hero-social a:nth-child(1):hover { background: #E4405F; }
.hero-block .hero-social a:nth-child(2):hover { background: #0088cc; }
.hero-block .hero-social a:nth-child(3):hover { background: #4285F4; }
.hero-block .hero-social a:nth-child(4):hover { background: #7360F2; }
.hero-block .hero-social a:nth-child(5):hover { background: #25D366; }
.hero-block .hero-social a:nth-child(6):hover { background: #27ae60; }

/* Изображение */
.hero-block .hero-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.hero-block .image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-10deg);
    transition: transform 0.5s ease;
}

.hero-block .image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-block .image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.hero-block .image-wrapper:hover img {
    transform: scale(1.05);
}

/* Декоративные элементы CSS */
.hero-block::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(39, 174, 96, 0.08) 0%, transparent 70%);
    top: 10%;
    left: 5%;
    z-index: 1;
    animation: float 20s infinite ease-in-out;
}

.hero-block::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.06) 0%, transparent 70%);
    bottom: 10%;
    right: 5%;
    z-index: 1;
    animation: float 25s infinite ease-in-out reverse;
}

/* 3D элементы из CSS */
.hero-block .cube {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(39, 174, 96, 0.2);
    transform: rotate(15deg);
    animation: rotateCube 20s linear infinite;
    z-index: 1;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.hero-block .cube:nth-child(1) {
    top: 20%;
    left: 10%;
    width: 40px;
    height: 40px;
    animation-delay: 0s;
}

.hero-block .cube:nth-child(2) {
    bottom: 30%;
    right: 15%;
    width: 50px;
    height: 50px;
    animation-delay: -5s;
}

.hero-block .cube:nth-child(3) {
    top: 50%;
    left: 5%;
    width: 30px;
    height: 30px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(30px) rotate(240deg); }
}

@keyframes rotateCube {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Адаптивность для hero */
@media (max-width: 1100px) {
    .hero-block .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-block .hero-description {
        font-size: 1.15rem;
    }
}

@media (max-width: 900px) {
    .hero-block {
        padding: 60px 0;
    }
    
    .hero-block .hero-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-block .hero-text {
        order: 1;
    }
    
    .hero-block .hero-image {
        order: 2;
        max-width: 80%;
    }
    
    .hero-block .hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-block .hero-social {
        justify-content: center;
    }
    
    .hero-block .image-wrapper {
        transform: perspective(1000px) rotateY(0deg);
    }
}

@media (max-width: 600px) {
    .hero-block .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-block .hero-description {
        font-size: 1.05rem;
    }
    
    .hero-block .hero-social a {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
    
    .hero-block .hero-image {
        max-width: 95%;
    }
    
    .hero-block .cube {
        display: none;
    }
}

@media (max-width: 400px) {
    .hero-block .hero-title {
        font-size: 2rem;
    }
    
    .hero-block .hero-social a {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

/* Footer секция из footer.css */
.main-footer {
    width: 100%;
    background: linear-gradient(135deg, #0c1b25 0%, #152533 50%, #1a2a3a 100%);
    color: #ecf0f1;
    padding: 70px 0 20px;
    position: relative;
    overflow: hidden;
    border-top: 5px solid #27ae60;
}

.main-footer::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(39, 174, 96, 0.05) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    z-index: 1;
}

.main-footer::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.05) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
    z-index: 1;
}

.main-footer .container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.main-footer .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.main-footer .footer-column {
    padding: 0 15px;
}

.main-footer .footer-column h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.main-footer .footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    border-radius: 2px;
}

.main-footer .footer-column p {
    font-size: 1rem;
    line-height: 1.7;
    color: #b0b7c3;
    margin-bottom: 25px;
}

/* Стили для социальных иконок */
.main-footer .social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.main-footer .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.main-footer .social-links a:hover {
    background: rgba(39, 174, 96, 0.8);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(39, 174, 96, 0.3);
    border-color: #27ae60;
}

/* Стили для списка контактов и ссылок */
.main-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-footer .footer-links li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    color: #b0b7c3;
    font-size: 1rem;
    line-height: 1.6;
}

.main-footer .footer-links li i {
    color: #27ae60;
    margin-right: 12px;
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.main-footer .footer-links li a {
    color: #b0b7c3;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    width: 100%;
}

.main-footer .footer-links li a:hover {
    color: #27ae60;
    transform: translateX(5px);
}

.main-footer .footer-links li a i {
    color: #27ae60;
    margin-right: 12px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.main-footer .footer-links li a:hover i {
    transform: rotate(90deg);
}

/* Стили для блока копирайта */
.main-footer .copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    color: #8a94a6;
}

/* Декоративные элементы */
.main-footer .decor-cube {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(39, 174, 96, 0.05);
    border: 1px solid rgba(39, 174, 96, 0.1);
    z-index: 1;
    transform: rotate(15deg);
    animation: rotate-cube 30s infinite linear;
}

.main-footer .decor-cube:nth-child(1) {
    top: 15%;
    left: 5%;
    width: 40px;
    height: 40px;
    animation-delay: 0s;
}

.main-footer .decor-cube:nth-child(2) {
    bottom: 20%;
    right: 8%;
    width: 50px;
    height: 50px;
    animation-delay: -10s;
}

@keyframes rotate-cube {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Адаптивность для footer */
@media (max-width: 992px) {
    .main-footer .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .main-footer {
        padding: 60px 0 20px;
    }
    
    .main-footer .footer-column h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .main-footer .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .main-footer {
        padding: 50px 0 20px;
    }
    
    .main-footer .footer-column {
        padding: 0;
    }
    
    .main-footer .footer-column h3 {
        font-size: 1.3rem;
    }
    
    .main-footer .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .main-footer .decor-cube {
        display: none;
    }
}

@media (max-width: 480px) {
    .main-footer {
        padding: 40px 0 20px;
    }
    
    .main-footer .footer-column h3 {
        font-size: 1.2rem;
    }
    
    .main-footer .footer-column p {
        font-size: 0.95rem;
    }
    
    .main-footer .footer-links li {
        font-size: 0.95rem;
    }
    
    .main-footer .social-links {
        gap: 12px;
    }
    
    .main-footer .social-links a {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}