/* Ресет и бейс стайлы */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    scroll-behavior: smooth;
}
/* Рутки */
:root {
    /* Основные цвета */
    --color-primary: #4CAF50;      /* Основной зеленый цвет */
    --color-secondary: #2c3e50;    /* Темно-синий */
    --color-accent: #34495e;       /* Акцентный синий */
    
    /* Текстовые цвета */
    --color-text-primary: #2c3e50; /* Основной текст */
    --color-text-light: #ffffff;   /* Светлый текст */
    --color-text-muted: #95a5a6;   /* Приглушенный текст */
    
    /* Фоновые цвета */
    --color-bg-primary: #ffffff;   /* Основной фон */
    --color-bg-secondary: #f8f9fa; /* Вторичный фон */
    --color-bg-dark: #1a2b3c;      /* Темный фон */
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, var(--color-secondary), var(--color-bg-dark));
    
    /* Границы */
    --color-border: #e2e8f0;
    
    /* Шрифты */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    position: relative;
    font-size: 16px;
    letter-spacing: 0.3px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-text h2 {
    font-size: 36px;
    margin-bottom: 25px;
    color: var(--color-bg-dark);
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
    position: relative;
    padding-bottom: 15px;
}

.service-text p {
    font-size: 1.1rem;
    color: var(--color-text-primary);
    opacity: 0.9;
    margin-bottom: 2rem;
}

.features li {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 48%, var(--color-text-muted) 49%, var(--color-text-muted) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, var(--color-text-muted) 49%, var(--color-text-muted) 51%, transparent 52%);
    background-size: 60px 60px;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Стайлы хедера */
.header {
    background: var(--gradient-primary);
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    max-width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    color: var(--color-primary);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    position: relative;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: logoGlow 2s ease-in-out infinite;
    margin: 0;
}

.logo h1 i {
    font-size: 32px;
    color: var(--color-primary);
    animation: logoGlow 2s ease-in-out infinite;
}

.logo h1 span {
    font-weight: 600;
    opacity: 0.9;
    margin-left: 5px;
    color: var(--color-primary);
}

.nav {
    display: flex;
    align-items: center;
    margin-left: 2rem;
}

.nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.nav-list li a {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    white-space: nowrap;
}

.nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--color-text-light), var(--color-primary));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--color-text-light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Херо секция */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    padding: 120px 0 60px;
    overflow: hidden;
    margin-bottom: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.hero-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.hero-background video.mobile-video {
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 43, 60, 0.85), rgba(44, 62, 80, 0.85));
    z-index: -1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
    padding: 40px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 40px;
}

.hero-title .line {
    display: block;
    position: relative;
    overflow: hidden;
}

.hero-title .line:first-child {
    color: var(--color-text-light);
}

.hero-title .line:last-child {
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 50px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
    min-width: 200px;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 32px;
    color: var(--color-primary);
}

.feature span {
    font-size: 16px;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    background-size: 200% 200%;
    color: var(--color-text-light);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: transparent;
    border-color: var(--color-primary);
}

.secondary-button {
    display: inline-block;
    padding: 16px 40px;
    background: transparent;
    color: var(--color-text-light);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--color-text-light);
}

.secondary-button:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--color-text-light);
    opacity: 0.7;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
    width: 100%;
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    max-width: 200px;
}

.hero-scroll:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%) scale(1.05);
}

.hero-scroll span {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    width: 100%;
}

.hero-scroll i {
    font-size: 20px;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.hero-scroll:hover i {
    transform: translateY(5px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, 0);
    }
    40% {
        transform: translate(-50%, -10px);
    }
    60% {
        transform: translate(-50%, -5px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Сервис секции */ 
.service-section {
    padding: 120px 0;
    background-color: var(--color-bg-primary);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.service-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 48%, var(--color-text-muted) 49%, var(--color-text-muted) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, var(--color-text-muted) 49%, var(--color-text-muted) 51%, transparent 52%);
    background-size: 30px 30px;
    opacity: 0.03;
    pointer-events: none;
}

.service-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 4px;
    background: linear-gradient(to right, 
        transparent,
        var(--color-bg-dark),
        var(--color-secondary),
        var(--color-bg-dark),
        transparent
    );
    border-radius: 2px;
    opacity: 0.1;
}

.service-section:nth-child(even) {
    background-color: var(--color-bg-primary);
}

.service-section:nth-child(even)::after {
    background: linear-gradient(to right, 
        transparent,
        var(--color-secondary),
        var(--color-bg-dark),
        var(--color-secondary),
        transparent
    );
}

.service-section:last-child::after {
    display: none;
}

.service-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    animation: scaleIn 0.8s ease-out;
}

.service-content.reverse {
    flex-direction: row-reverse;
}

.service-text {
    flex: 1;
    position: relative;
    z-index: 2;
    animation: slideInLeft 0.8s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.service-text-content {
    margin-bottom: 20px;
}

.service-text h2 {
    font-size: 36px;
    margin-bottom: 25px;
    color: var(--color-bg-dark);
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
    position: relative;
    padding-bottom: 15px;
}

.service-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--color-accent), var(--color-bg-dark));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.service-text h2:hover::after {
    width: 100px;
}

.service-text p {
    font-size: 16px;
    margin-bottom: 30px;
    color: var(--color-text-primary);
    line-height: 1.8;
}

.learn-more-button {
    align-self: flex-end;
    padding: 10px 20px;
    font-size: 14px;
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.learn-more-button:hover {
    transform: translateY(-2px);
    background: var(--color-accent);
    color: var(--color-text-light);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.service-section.animate-left .service-text .learn-more-button {
    align-self: flex-start;
}

/* Расположение кнопки в реверсивных блоках */
.service-content.reverse .service-text .learn-more-button {
    align-self: flex-start;
}

.features {
    list-style: none;
    background: rgba(255, 255, 255, 0.8);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

.features li {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.features li:last-child {
    margin-bottom: 0;
}

.features li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(var(--color-accent), 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.features li:hover::before {
    transform: translateX(100%);
}

.features i {
    color: var(--color-text-light);
    font-size: 20px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-accent));
    padding: 12px;
    border-radius: 50%;
    min-width: 45px;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features li:hover i {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(45deg, var(--color-accent), var(--color-primary));
}

.service-image {
    flex: 1;
    text-align: center;
    background: #ddd9d9;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInRight 0.8s ease-out;
}

.service-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-image:hover img {
    transform: scale(1.05);
}

.service-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.service-image:hover {
    transform: translateY(-5px);
}

.service-image i {
    font-size: 90px;
    background: linear-gradient(45deg, var(--color-bg-dark), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 1;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Footer */
.footer {
    background: var(--gradient-primary);
    color: var(--color-text-light);
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, 
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: logoGlow 2s ease-in-out infinite;
}

.footer-logo i {
    font-size: 32px;
    color: var(--color-primary);
    animation: logoGlow 2s ease-in-out infinite;
}

.footer p {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--color-text-light);
    cursor: pointer;
}

.footer-contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
    color: var(--color-text-light);
    text-decoration: none;
}

.footer-contact-item:active {
    transform: translateX(2px);
    background: rgba(255, 255, 255, 0.2);
}

.footer-contact-item i {
    font-size: 20px;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.footer-contact-item:hover i {
    transform: scale(1.1);
}

.footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.8;
}

/* Скролл к верху, кнопка */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-accent));
    color: var(--color-text-light);
    border: 2px solid var(--color-text-light);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    background: linear-gradient(45deg, var(--color-accent)), var(--color-primary);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-section {
    animation: fadeIn 1s ease-out;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background-color: var(--color-bg-primary);
    margin: 50px auto;
    padding: 40px;
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2;
}

.close-modal:hover {
    color: var(--color-bg-dark);
}

.modal-content h2 {
    margin-top: 30px;
}

.consultation-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text-primary);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: var(--color-bg-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-bg-dark);
    box-shadow: 0 0 0 3px rgba(26, 43, 60, 0.1);
}

.submit-button {
    width: 100%;
    padding: 15px;
    background: var(--gradient-primary);
    color: var(--color-text-light);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Респонсив дизайн */
@media (max-width: 1400px) {
    .header .container {
        padding: 0 1.5rem;
    }

    .nav {
        margin-left: 1.5rem;
    }

    .nav-list {
        gap: 1.5rem;
    }

    .nav-list li a {
        font-size: 0.95rem;
    }
}

@media (max-width: 1200px) {
    .header .container {
        padding: 0 1rem;
    }

    .nav {
        margin-left: 1rem;
    }

    .nav-list {
        gap: 1.25rem;
    }

    .nav-list li a {
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 56px;
    }

    .hero-content {
        max-width: 700px;
    }

    .hero-features {    
        gap: 30px;
    }

    .service-section {
        padding: 100px 0;
    }

    .service-content {
        gap: 40px;
    }

    .service-text h2 {
        font-size: 34px;
    }

    .service-image img {
        height: 320px;
    }
}

@media (max-width: 1089px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--gradient-primary);
        padding: 6rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-list li a {
        font-size: 1.1rem;
        display: block;
        padding: 0.5rem 0;
    }

    .burger-menu {
        display: flex;
    }

    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .header .container {
        padding: 0 1rem;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .header {
        padding: 10px 0;
    }

    .header .container {
        padding: 0 15px;
    }

    .burger-menu {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--gradient-primary);
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 15px;
    }

    .nav a {
        display: block;
        padding: 12px 0;
        font-size: 16px;
        text-align: center;
    }

    .burger-menu.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .logo h1 {
        font-size: 24px;
    }

    .logo h1 i {
        font-size: 28px;
    }

    .logo h1 i::before {
        width: 42px;
        height: 42px;
    }

    .logo h1 i::after {
        width: 52px;
        height: 52px;
    }

    .hero {
        min-height: 100vh;
        height: auto;
        padding: 120px 0 60px;
    }

    .hero-content {
        padding: 30px;
        margin: 0 20px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 40px;
    }

    .hero-features {
        gap: 20px;
    }

    .feature {
        min-width: 180px;
        padding: 20px;
    }

    .service-section {
        padding: 80px 0;
    }

    .service-content {
        gap: 40px;
    }

    .service-text-content {
        gap: 25px;
    }

    .service-text h2 {
        margin-bottom: 20px;
    }

    .service-text p {
        margin-bottom: 25px;
    }

    .features {
        gap: 15px;
        margin-bottom: 30px;
    }

    .features li {
        padding: 12px;
    }

    .service-image img {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }

    .header {
        padding: 8px 0;
    }

    .header .container {
        padding: 0 15px;
    }

    .burger-menu {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--gradient-primary);
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 15px;
    }

    .nav a {
        display: block;
        padding: 12px 0;
        font-size: 16px;
        text-align: center;
    }

    .burger-menu.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .logo h1 {
        font-size: 24px;
    }

    .logo h1 i {
        font-size: 28px;
    }

    .logo h1 i::before {
        width: 42px;
        height: 42px;
    }

    .logo h1 i::after {
        width: 52px;
        height: 52px;
    }

    .hero {
        padding: 100px 0 40px;
    }

    .hero-content {
        padding: 25px;
    }

    .hero-title {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
    }

    .feature {
        width: 100%;
        max-width: 300px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .cta-button,
    .secondary-button {
        width: 100%;
        text-align: center;
        padding: 14px 30px;
        font-size: 14px;
    }

    .service-section {
        padding: 80px 0;
    }

    .service-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .service-content.reverse {
        flex-direction: column;
    }

    .service-text h2 {
        font-size: 1.8rem;
        text-align: center;
    }

    .service-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .service-text p {
        font-size: 0.95rem;
        text-align: center;
    }

    .service-image {
        padding: 15px;
    }

    .service-image img {
        height: 250px;
    }

    .features {
        padding: 15px;
    }

    .features li {
        justify-content: flex-start;
        padding: 10px;
        gap: 12px;
    }

    .features li::before {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 35px;
        min-height: 35px;
        font-size: 16px;
        margin: 0;
        flex-shrink: 0;
    }

    .features li span {
        text-align: left;
    }

    .footer .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-contact-item {
        justify-content: center;
    }

    .footer-logo {
        text-align: center;
    }

    .modal-content {
        margin: 20px;
        padding: 30px 20px;
    }

    .service-section::after {
        width: 80px;
        height: 3px;
    }

    .service-text {
        align-items: center;
    }

    .learn-more-button {
        align-self: center;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .header {
        padding: 10px 0;
    }

    .logo h1 {
        font-size: 22px;
    }

    .logo h1 i {
        font-size: 24px;
    }

    .logo h1 i::before {
        width: 36px;
        height: 36px;
    }

    .logo h1 i::after {
        width: 46px;
        height: 46px;
    }

    .hero {
        padding: 80px 0 30px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .hero-features {
        gap: 12px;
        margin-bottom: 25px;
    }

    .feature {
        padding: 10px;
    }

    .feature i {
        font-size: 22px;
    }

    .feature span {
        font-size: 13px;
    }

    .cta-button,
    .secondary-button {
        padding: 12px 25px;
        font-size: 13px;
    }

    .service-section {
        padding: 60px 0;
    }

    .service-text h2 {
        font-size: 1.6rem;
    }

    .service-text p {
        font-size: 0.9rem;
    }

    .service-image {
        padding: 10px;
    }

    .service-image img {
        height: 200px;
    }

    .features {
        padding: 12px;
    }

    .features li {
        padding: 10px;
        gap: 10px;
    }

    .features li::before {
        min-width: 30px;
        min-height: 30px;
        font-size: 14px;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .footer-logo {
        font-size: 28px;
    }

    .footer-contact-item {
        padding: 8px;
    }

    .footer-contact-item p {
        font-size: 14px;
    }

    .modal-content {
        margin: 15px;
        padding: 20px 15px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
        padding: 10px;
    }

    .submit-button {
        padding: 12px;
    }

    .service-section::after {
        width: 60px;
        height: 2px;
    }
}

@media (max-width: 360px) {
    .logo h1 {
        font-size: 20px;
    }

    .logo h1 i {
        font-size: 24px;
    }

    .logo h1 i::before {
        width: 36px;
        height: 36px;
    }

    .logo h1 i::after {
        width: 46px;
        height: 46px;
    }

    .hero {
        padding: 70px 0 20px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .feature {
        padding: 8px;
    }

    .feature i {
        font-size: 20px;
    }

    .feature span {
        font-size: 12px;
    }

    .service-text h2 {
        font-size: 22px;
    }

    .service-text p {
        font-size: 13px;
    }

    .service-image img {
        height: 180px;
    }

    .features li {
        padding: 6px;
        gap: 8px;
    }

    .features li::before {
        min-width: 28px;
        min-height: 28px;
        font-size: 13px;
    }

    .footer-logo {
        font-size: 24px;
    }

    .footer-contact-item p {
        font-size: 13px;
    }
}

/* Добавляем поддержку больших экранов */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-title {
        font-size: 72px;
    }

    .hero-subtitle {
        font-size: 24px;
    }

    .service-text h2 {
        font-size: 42px;
    }

    .service-image img {
        height: 400px;
    }

    .features li {
        font-size: 18px;
    }

    .features i {
        min-width: 50px;
        min-height: 50px;
        font-size: 22px;
    }
}

/* Микроанимации */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Применяем анимации к элементам */
.service-section {
    animation: fadeInUp 0.8s ease-out;
}

.service-content {
    animation: scaleIn 0.8s ease-out;
}

.service-text {
    animation: slideInLeft 0.8s ease-out;
}

.service-image {
    animation: slideInRight 0.8s ease-out;
}

/* Улучшенные hover-эффекты */
.service-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--color-bg-dark), var(--color-secondary));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.service-text h2:hover::after {
    width: 100px;
}

.features {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.features li {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.features li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.features li:hover::before {
    transform: translateX(100%);
}

.features i {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features li:hover i {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Анимации появления при прокрутке */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.service-section {
    opacity: 0;
    visibility: hidden;
}

.service-section.animate-left {
    animation: slideInFromLeft 0.8s ease-out forwards;
    visibility: visible;
}

.service-section.animate-right {
    animation: slideInFromRight 0.8s ease-out forwards;
    visibility: visible;
}

/* Отключаем начальные анимации для мобильных устройств */
@media (max-width: 768px) {
    .service-section {
        opacity: 1;
        visibility: visible;
        animation: none !important;
    }
}

body.modal-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width);
}

.form-note {
    font-size: 14px;
    color: var(--color-text-primary);
    margin-bottom: 20px;
    opacity: 0.8;
}

.required {
    color: #E74C3C;
    font-weight: bold;
    margin-left: 2px;
}

/* Стили для первой секции услуг */
#video-surveillance {
    position: relative;
    z-index: 1;
}

#video-surveillance::before {
    display: none;
}

#video-surveillance .service-content {
    transform: none;
    opacity: 1;
    animation: none;
    background: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
}

/* Адаптивность для логотипа */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .logo h1 {
        font-size: 20px;
    }
}

/* Стили для логотипа в футере */
.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: logoGlow 2s ease-in-out infinite;
}

.footer-logo i {
    font-size: 32px;
    color: var(--color-primary);
    animation: logoGlow 2s ease-in-out infinite;
}

@keyframes logoGlow {
    0% {
        opacity: 1;
        filter: brightness(1) drop-shadow(0 0 0 var(--color-primary));
    }
    50% {
        opacity: 0.7;
        filter: brightness(1.3) drop-shadow(0 0 10px var(--color-primary));
    }
    100% {
        opacity: 1;
        filter: brightness(1) drop-shadow(0 0 0 var(--color-primary));
    }
}

/* Стили для уведомлений */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    font-size: 14px;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: var(--color-primary);
}

.notification.error {
    background: #e74c3c;
}

.notification.info {
    background: var(--color-accent);
}

/* Стили для заголовка секции услуг */
.services-header {
    padding: 80px 0 40px;
    background-color: var(--color-bg-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.services-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 48%, var(--color-text-muted) 49%, var(--color-text-muted) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, var(--color-text-muted) 49%, var(--color-text-muted) 51%, transparent 52%);
    background-size: 30px 30px;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.services-header .container {
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 42px;
    color: var(--color-text-primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--color-primary), var(--color-accent));
    border-radius: 3px;
}

.section-description {
    font-size: 18px;
    color: var(--color-text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Адаптивность для заголовка секции */
@media (max-width: 768px) {
    .services-header {
        padding: 60px 0 30px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-description {
        font-size: 16px;
        padding: 0 20px;
    }
}

@media (max-width: 576px) {
    .services-header {
        padding: 40px 0 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-description {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .hero-background video.desktop-video {
        display: none;
    }
    
    .hero-background video.mobile-video {
        display: block;
    }
}
