:root {
    /* Цвета */
    --primary: #4A90E2;
    --primary-light: #A4C8E1;
    --primary-dark: #003D66;
    --accent: #FF7D47;
    --accent-light: #FFA07D;
    --accent-dark: #D45C2F;
    --text: #333333;
    --text-light: #555555;
    --background: #F4F4F4;
    --card-bg: #FFFFFF;
    --border: #E2E8F0;
    --success: #48BB78;
    --warning: #ED8936;
    --error: #F56565;

    /* Тени */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);

    /* Анимации */
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Размеры */
    --base-font-size: 16px;
    --scale-factor: 1;
}

/* Адаптивные размеры */
@media (min-width: 1600px) { :root { --scale-factor: 1.1; } }
@media (min-width: 1920px) { :root { --scale-factor: 1.2; } }
@media (min-width: 2560px) { :root { --scale-factor: 1.4; } }

/* Базовые стили */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--base-font-size);
}

body {
    font-family: 'Manrope', sans-serif;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--background);
    overflow-x: hidden;
    font-size: calc(1rem * var(--scale-factor));
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 calc(20px * var(--scale-factor));
    width: 100%;
}

/* Кнопки */
/* Базовые стили для всех кнопок */
.btn, .cta-button, .service-more, .submit-btn, .mobile-nav-link[data-modal] {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, box-shadow;
    border: none;
    outline: none;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Эффект для всех кнопок при наведении */
.btn:hover, .cta-button:hover, .service-more:hover, .submit-btn:hover,
.mobile-nav-link[data-modal]:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.cta-button.secondary {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-button.secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
}
/* Эффект для всех кнопок при нажатии */
.btn:active, .cta-button:active, .service-more:active, .submit-btn:active,
.mobile-nav-link[data-modal]:active {
    transform: translateY(1px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* Основные кнопки (оранжевые) */
.btn--primary, .cta-button, .submit-btn, .service-more {
    background: linear-gradient(135deg, #FF7D47 0%, #FF5A1F 100%);
    color: white;
    border-radius: 50px;
    padding: 14px 30px;
    box-shadow: 0 8px 15px rgba(255, 107, 53, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Эффект свечения для основных кнопок */
.btn--primary:hover, .cta-button:hover, .submit-btn:hover, .service-more:hover {
    box-shadow: 0 12px 25px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, #FF8D5C 0%, #FF6B35 100%);
}

/* Вторичные кнопки (прозрачные/белые) */
.btn--secondary, .mobile-nav-link[data-modal] {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 14px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Эффект для вторичных кнопок */
.btn--secondary:hover, .mobile-nav-link[data-modal]:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Кнопка телефона */
.phone-button {
    background: linear-gradient(135deg, #4A90E2 0%, #2D5F9E 100%);
    color: white;
    border-radius: 50px;
    padding: 14px 30px;
    box-shadow: 0 8px 15px rgba(74, 144, 226, 0.3);
}

.phone-button:hover {
    background: linear-gradient(135deg, #5B9EED 0%, #3D6FB8 100%);
    box-shadow: 0 12px 25px rgba(74, 144, 226, 0.4);
}

/* Анимация волны при клике */
.btn--primary::after, .btn--secondary::after, .cta-button::after,
.service-more::after, .submit-btn::after, .phone-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.btn--primary:focus:not(:active)::after,
.btn--secondary:focus:not(:active)::after,
.cta-button:focus:not(:active)::after,
.service-more:focus:not(:active)::after,
.submit-btn:focus:not(:active)::after,
.phone-button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Иконки в кнопках */
.btn i, .cta-button i, .service-more i, .submit-btn i,
.mobile-nav-link[data-modal] i {
    transition: transform 0.3s ease;
}

.btn:hover i, .cta-button:hover i, .service-more:hover i,
.submit-btn:hover i, .mobile-nav-link[data-modal]:hover i {
    transform: translateX(3px);
}

/* Большие кнопки */
.btn--lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* Кнопки в мобильном меню */
.mobile-nav-link[data-modal] {
    width: 100%;
    justify-content: flex-start;
    padding: 15px 20px;
    margin: 5px 0;
    border-radius: 8px;
}

.mobile-nav-link[data-modal] i {
    width: 24px;
    text-align: center;
    font-size: 1.2rem;
}

/* Кнопка закрытия модального окна */
.modal-close {
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-light);
}

.modal-close:hover {
    background: var(--accent);
    color: white;
    transform: rotate(90deg) scale(1.1);
}

/* Кнопка в успешном состоянии */
.submit-success .close-btn {
    background: var(--accent);
    color: white;
    transition: all 0.3s ease;
}

.submit-success .close-btn:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 107, 53, 0.3);
}

/* Шапка */
.header {
    position: relative;
    background-color: #2D3748;
    color: white;
    overflow: hidden;
    padding-bottom: calc(120px * var(--scale-factor));
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 95%);
}


.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at 75% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
    z-index: 0;
    animation: float 15s infinite alternate ease-in-out;
}

.header-top {
    padding: calc(12px * var(--scale-factor)) 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(calc(8px * var(--scale-factor)));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}
.header-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(74,144,226,0.1) 0%, rgba(255,125,71,0.1) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.header-top:hover::before {
    opacity: 1;
}

.header-contacts {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: calc(10px * var(--scale-factor));
}
.contacts-group {
    display: flex;
    align-items: center;
    gap: calc(10px * var(--scale-factor));
    flex-wrap: wrap;
}
.header-request-button {
    margin-right:15px; 
    background: linear-gradient(135deg, rgba(255,125,71,0.2) 0%, rgba(74,144,226,0.2) 100%);
   
    transition: opacity 0.3s ease;

}


.contact-info {
    display: flex;
    align-items: center;
    gap: calc(10px * var(--scale-factor));
    padding: calc(8px * var(--scale-factor)) calc(15px * var(--scale-factor));
    border-radius: calc(8px * var(--scale-factor));
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,125,71,0.2) 0%, rgba(74,144,226,0.2) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-info:hover {
    transform: translateY(calc(-2px * var(--scale-factor)));
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.contact-info:hover::before {
    opacity: 1;
}

.contact-info i {
    color: var(--accent);
    font-size: calc(1.1em * var(--scale-factor));
    transition: all 0.3s ease;
}

.contact-info:hover i {
    color: white;
    transform: scale(1.15);
}

.contact-text {
    font-size: calc(0.95rem * var(--scale-factor));
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.contact-info:hover .contact-text {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Кнопка заявки в контактах */
.contact-cta {
    display: inline-flex;
    align-items: center;
    gap: calc(8px * var(--scale-factor));
    padding: calc(10px * var(--scale-factor)) calc(20px * var(--scale-factor));
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    font-weight: 600;
    border-radius: calc(8px * var(--scale-factor));
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(255, 125, 71, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
    margin-left: calc(15px * var(--scale-factor)); /* Добавляем отступ слева */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Добавляем границу как у контактов */

}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-cta:hover {
    transform: translateY(calc(-3px * var(--scale-factor)));
    box-shadow: 0 8px 25px rgba(255, 125, 71, 0.4);
}

.contact-cta:hover::before {
    opacity: 1;
}

.contact-cta i {
    transition: transform 0.3s ease;
}

.contact-cta:hover i {
    transform: translateX(calc(3px * var(--scale-factor)));
}

.contact-cta .btn-text {
    position: relative;
    z-index: 1;
}

.header-main {
    padding: calc(25px * var(--scale-factor)) 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: calc(100px * var(--scale-factor));
}

.logo-container {
    position: absolute;
    right: calc(40px * var(--scale-factor));
    top: 50%;
    transform: translateY(-50%);
    height: 100%;
    display: flex;
    align-items: center;
}

.logo-img {
    height: calc(250px * var(--scale-factor));
    width: calc(250px * var(--scale-factor));
    animation: logoAppear 2.5s ease-out forwards;
    position: relative;
    object-fit: contain;
}

.logo-img::after {
    content: '';
    position: absolute;
    bottom: calc(-10px * var(--scale-factor));
    left: 0;
    right: 0;
    height: calc(20px * var(--scale-factor));
    background: radial-gradient(ellipse at center,
                rgba(255,255,255,0.8) 0%,
                rgba(255,255,255,0) 70%);
    filter: blur(calc(5px * var(--scale-factor)));
    z-index: -1;
    opacity: 0.7;
}

/* Навигация */
.main-nav {
    display: flex;
    align-items: center;
    gap: calc(8px * var(--scale-factor));
    background: rgba(255, 255, 255, 0.08);
    padding: calc(8px * var(--scale-factor));
    border-radius: calc(50px * var(--scale-factor));
    backdrop-filter: blur(calc(12px * var(--scale-factor)));
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.main-nav:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.nav-link {
    color: white;
    font-weight: 600;
    font-size: calc(1rem * var(--scale-factor));
    padding: calc(10px * var(--scale-factor)) calc(20px * var(--scale-factor));
    border-radius: calc(30px * var(--scale-factor));
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    border-radius: calc(30px * var(--scale-factor));
    opacity: 0.9;
}

.nav-link:hover {
    color: white;
    transform: translateY(calc(-2px * var(--scale-factor)));
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Специальная кнопка заявки */
.nav-cta {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    font-weight: 700;
    padding: calc(12px * var(--scale-factor)) calc(25px * var(--scale-factor));
    border-radius: calc(30px * var(--scale-factor));
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: calc(8px * var(--scale-factor));
}

.nav-cta:hover {
    transform: translateY(calc(-3px * var(--scale-factor)));
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
}

.nav-cta i {
    transition: transform 0.3s ease;
}

.nav-cta:hover i {
    transform: translateX(calc(3px * var(--scale-factor)));
}
/* Анимация появления ссылок */
.main-nav.active .nav-link {
    animation: fadeInUp 0.5s ease forwards;
}
/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #2D3748;
    z-index: 1000;
    transition: all 0.4s ease;
    overflow-y: auto;
    padding: 20px;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
}

.mobile-menu-close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-nav-link {
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
}

.mobile-menu-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Кнопка меню */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: flex;
    }
}

@media (max-width: 768px) {
    .mobile-menu {
        width: 85%;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 90%;
        padding: 15px;
    }

    .mobile-nav-link {
        padding: 10px 12px;
        font-size: 15px;
    }
}

/* Анимации для мобильного меню */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* Герой */
.hero {
    max-width: 1400px;
    margin: calc(40px * var(--scale-factor)) auto 0;
    padding: 0 calc(40px * var(--scale-factor));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(60px * var(--scale-factor));
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: calc(600px * var(--scale-factor));
    padding-top: calc(40px * var(--scale-factor));
}

.hero-title {
    font-size: calc(3.2rem * var(--scale-factor));
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 calc(25px * var(--scale-factor));
    letter-spacing: calc(-0.03em * var(--scale-factor));
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: white;
}

.hero-subtitle {
    font-size: calc(1.3rem * var(--scale-factor));
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 calc(40px * var(--scale-factor));
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: calc(20px * var(--scale-factor));
    flex-wrap: wrap;
}

/* Секции */
.section-header {
    text-align: center;
    margin-bottom: calc(60px * var(--scale-factor));
    max-width: calc(800px * var(--scale-factor));
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: calc(20px * var(--scale-factor));
    position: relative;
    letter-spacing: calc(1px * var(--scale-factor));
    text-transform: uppercase;
    font-size: calc(0.9rem * var(--scale-factor));
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: calc(-8px * var(--scale-factor));
    left: 50%;
    transform: translateX(-50%);
    width: calc(60px * var(--scale-factor));
    height: calc(3px * var(--scale-factor));
    background-color: var(--accent);
    border-radius: calc(3px * var(--scale-factor));
}

.section-title {
    font-size: calc(2.8rem * var(--scale-factor));
    font-weight: 800;
    margin: 0 0 calc(25px * var(--scale-factor));
    color: var(--primary);
    line-height: 1.2;
    letter-spacing: calc(-0.03em * var(--scale-factor));
}

.section-description {
    color: var(--text-light);
    font-size: calc(1.2rem * var(--scale-factor));
    line-height: 1.8;
    margin: 0;
}

/* Карточки */
.card {
    background-color: var(--card-bg);
    border-radius: calc(16px * var(--scale-factor));
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05); /* Четкая граница */
}

.card:hover {
    transform: translateY(calc(-5px * var(--scale-factor)));
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}
/* Карточки услуг */
/* Стили для секции услуг */
.services {
    max-width: 1400px;
    margin: 0 auto calc(60px * var(--scale-factor));
    padding: 0 calc(40px * var(--scale-factor));
    position: relative;
}
/* Стили для чекбокса политики конфиденциальности */
.form-group input[type="checkbox"] {
    /* Скрываем стандартный чекбокс */
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.form-group label[for="privacy-policy"] {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: calc(0.9rem * var(--scale-factor));
    color: var(--text-light);
    line-height: 1.5;
    transition: color 0.3s ease;
    position: relative;
    padding-left: calc(30px * var(--scale-factor));
    margin-top: calc(10px * var(--scale-factor));
}

/* Кастомный чекбокс */
.form-group label[for="privacy-policy"]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: calc(20px * var(--scale-factor));
    height: calc(20px * var(--scale-factor));
    border: 2px solid var(--primary-light);
    border-radius: calc(4px * var(--scale-factor));
    background-color: white;
    transition: all 0.3s ease;
}

/* Галочка (скрыта по умолчанию) */
.form-group label[for="privacy-policy"]::after {
    content: '';
    position: absolute;
    left: calc(7px * var(--scale-factor));
    top: calc(4px * var(--scale-factor));
    width: calc(6px * var(--scale-factor));
    height: calc(12px * var(--scale-factor));
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Состояние checked */
.form-group input[type="checkbox"]:checked + label[for="privacy-policy"]::before {
    background-color: var(--accent);
    border-color: var(--accent);
}

.form-group input[type="checkbox"]:checked + label[for="privacy-policy"]::after {
    opacity: 1;
}

/* Ховер эффекты */
.form-group label[for="privacy-policy"]:hover {
    color: var(--text);
}

.form-group label[for="privacy-policy"]:hover::before {
    border-color: var(--primary);
}

/* Ссылка на политику */
.form-group label[for="privacy-policy"] a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: calc(4px * var(--scale-factor));
    position: relative;
}

.form-group label[for="privacy-policy"] a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.form-group label[for="privacy-policy"] a:hover {
    color: var(--accent-dark);
}

.form-group label[for="privacy-policy"] a:hover::after {
    width: 100%;
}

/* Сообщение об ошибке */
.form-group .error-message {
    display: none;
    color: var(--error);
    font-size: calc(0.8rem * var(--scale-factor));
    margin-top: calc(5px * var(--scale-factor));
}

.form-group input[type="checkbox"]:invalid ~ .error-message {
    display: block;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /*grid-template-columns: repeat(auto-fit, minmax(calc(300px * var(--scale-factor)), 1fr));*/
    gap: calc(30px * var(--scale-factor));
}

.service-card {
    position: relative;
    height: calc(450px * var(--scale-factor));
    background: white;
    border-radius: calc(16px * var(--scale-factor));
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    padding: calc(50px * var(--scale-factor)) calc(40px * var(--scale-factor));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05); /* Четкая граница */
}

/* Передняя сторона карточки */
.service-card-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--card-bg);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1; /* Передняя сторона выше задней */
}

/* Задняя сторона карточки */
.service-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--primary);
    color: white;
    padding: calc(20px * var(--scale-factor));
    border-radius: calc(16px * var(--scale-factor));
    opacity: 0; /* Скрываем заднюю сторону */
    visibility: hidden; /* Убираем из потока */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 0; /* Задняя сторона ниже передней */
}

/* Ховер эффект */
.service-card:hover {
    background: var(--primary-light); /* Меняем цвет карточки */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15); /* Добавляем тень */
    border-color: rgba(255, 255, 255, 0.2);
}

.service-card:hover .service-card-front {
    opacity: 0; /* Скрываем переднюю сторону */
    visibility: hidden; /* Убираем из потока */
}

.service-card:hover .service-card-back {
    opacity: 1; /* Показываем заднюю сторону */
    visibility: visible; /* Делаем видимой */
}

/* Стили для текста и списков */
.service-card h3 {
    color: white; /* Белый цвет заголовков */
    font-size: calc(1.5rem * var(--scale-factor));
    margin-bottom: calc(15px * var(--scale-factor));
    font-weight: 700;
}

.service-card p {
    color: var(--text-light);
    margin: 0 0 calc(20px * var(--scale-factor));
    line-height: 1.6;
    font-size: calc(1rem * var(--scale-factor));
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    width: 100%;
}

.service-card ul li {
    position: relative;
    padding-left: calc(25px * var(--scale-factor));
    margin-bottom: calc(10px * var(--scale-factor));
    font-size: calc(1rem * var(--scale-factor));
    color: white;
}

.service-card ul li::before {
    content: '';
    display: inline-block;
    width: calc(6px * var(--scale-factor));
    height: calc(6px * var(--scale-factor));
    background-color: var(--accent);
    border-radius: 50%;
    margin-right: calc(12px * var(--scale-factor));
    flex-shrink: 0;
}


/* Кнопка внутри карточки */
.service-more {
    display: inline-block;
    padding: calc(12px * var(--scale-factor)) calc(25px * var(--scale-factor));
    background: var(--accent);
    color: white;
    border-radius: calc(50px * var(--scale-factor));
    text-decoration: none;
    font-size: calc(1rem * var(--scale-factor));
    transition: var(--transition);
    text-align: center;
    width: 100%; /* Кнопка занимает всю ширину */
}

.service-more:hover {
    background: var(--accent-light);
    transform: translateY(calc(-3px * var(--scale-factor)));
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Иконка */
.service-icon {
    width: calc(80px * var(--scale-factor));
    height: calc(80px * var(--scale-factor));
    margin: 0 auto calc(20px * var(--scale-factor));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.1);
    transition: var(--transition);
}

.service-icon img {
    width: calc(50px * var(--scale-factor));
    height: calc(50px * var(--scale-factor));
    object-fit: contain;
}

/* Анимация для стрелки */
.service-arrow {
    margin-top: calc(10px * var(--scale-factor));
    font-size: calc(1.2rem * var(--scale-factor));
    color: var(--primary);
    transition: transform 0.3s ease;
}

.service-card:hover .service-arrow {
    transform: translateX(calc(5px * var(--scale-factor))); /* Двигаем стрелку вправо */
}

/* Адаптивность карточек */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

   
    .service-card {
        height: auto;
        min-height: 350px;
        perspective: 1000px;
        position: relative;
        overflow: hidden;
        background: transparent !important; /* Убираем фон у родителя */
        padding: 0 !important; /* Убираем внутренние отступы */
        margin: 0; /* Убираем внешние отступы */
        border: none !important; /* Убираем границы */
    }
    .service-card-inner {
        width: 100%;
        height: 100%;
        position: relative;
        transform-style: preserve-3d;
        transition: transform 0.6s;
    }

    .service-card.active .service-card-inner {
        transform: rotateY(180deg);
    }
    
    .service-card:hover .service-card-inner {
        transform: none; /* Отключаем hover на мобильных */
    }
    
     .service-card-front,
    .service-card-back {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        margin: 0;
        padding: 20px;
        box-sizing: border-box;
        border-radius: 16px;
    }
    
    
    .service-card-front {
        background: var(--card-bg);
        transform: rotateY(0deg);
        z-index: 2;
    }

    .service-card-back {
        background: var(--primary);
        transform: rotateY(180deg);
        z-index: 1;
        color: white;
    }

    /* Отключаем hover-эффекты на мобильных */
    .service-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    .service-card:hover .service-card-inner {
        transform: rotateY(180deg);
    }

    .service-card-back h3 {
        font-size: 1.4rem; /* Уменьшаем размер заголовка */
        margin-bottom: 15px;
    }

    .service-card-back ul {
        width: 100%;
        padding: 0 15px; /* Добавляем отступы для списка */
    }
    
    .service-card-back ul li {
        font-size: 0.9rem; /* Уменьшаем размер текста */
        margin-bottom: 8px;
        padding-left: 20px;
    }
    
    .service-card-back ul li::before {
        width: 5px;
        height: 5px;
        margin-right: 8px;
    }
    .service-more {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-top: 15px;
    }
}

@media (min-width: 1600px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .service-card {
        height: calc(500px * var(--scale-factor)); /* Увеличиваем высоту карточек */
    }

    .advantage-card {
        height: calc(400px * var(--scale-factor)); /* Увеличиваем высоту карточек */
    }
}

@media (min-width: 1920px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .service-card {
        height: calc(550px * var(--scale-factor)); /* Еще больше увеличиваем высоту */
    }
}

/* Преимущества */
.advantages {
    max-width: 1400px;
    margin: 0 auto calc(80px * var(--scale-factor));
    padding: 0 calc(40px * var(--scale-factor));
    position: relative;
}

.advantage-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Гибкие колонки */
    gap: 30px;
    width: 100%;
}

.advantage-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    /* Делаем карточку квадратной */
    aspect-ratio: 1/1;
    padding: 20px;

    /* Растягиваем содержимое */
    height: 100%;
    width: 100%;
}


.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 140, 90, 0.2) 100%);
    border-radius: 20px;
    color: var(--accent);
    font-size: 2rem;
    transition: var(--transition);
}

.advantage-card:hover .advantage-icon {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}


.advantage-card h3 {
    font-size: 1.4rem;
    margin: 0 0 20px;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.advantage-card h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 3px;
}


.advantage-card p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.8;
    font-size: 1.05rem;
}
/* CTA (Call to Action) */
.cta-section {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    padding: calc(100px * var(--scale-factor)) 0;
    margin-bottom: calc(100px * var(--scale-factor));
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
}


.cta-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 calc(40px * var(--scale-factor));
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: calc(40px * var(--scale-factor));
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: calc(2.5rem * var(--scale-factor));
    margin: 0 0 calc(20px * var(--scale-factor));
    line-height: 1.3;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: calc(1.2rem * var(--scale-factor));
    line-height: 1.8;
    margin: 0;
}

.cta-actions {
    display: flex;
    gap: calc(20px * var(--scale-factor));
    flex-wrap: wrap;
}

/* Статистика */
.stats-section {
    background-color: var(--primary-light);
    padding: calc(80px * var(--scale-factor)) 0;
    margin-bottom: calc(100px * var(--scale-factor));
}

.stats-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 calc(40px * var(--scale-factor));
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(calc(200px * var(--scale-factor)), 1fr));
    gap: calc(40px * var(--scale-factor));
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: calc(3.5rem * var(--scale-factor));
    font-weight: 800;
    color: white;
    margin-bottom: calc(10px * var(--scale-factor));
}

.stat-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: calc(1.1rem * var(--scale-factor));
    line-height: 1.6;
}

/* Подвал */
.footer {
    background-color: #2D3748;
    color: white;
    padding: calc(80px * var(--scale-factor)) 0 calc(20px * var(--scale-factor));
    position: relative;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(calc(250px * var(--scale-factor)), 1fr));
    gap: calc(30px * var(--scale-factor));
    margin-bottom: calc(30px * var(--scale-factor));
}

.footer-about {
    max-width: calc(350px * var(--scale-factor));
}

.footer-about-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0 0 calc(15px * var(--scale-factor));
    font-size: calc(0.95rem * var(--scale-factor));
}

.footer-social {
    display: flex;
    gap: calc(15px * var(--scale-factor));
}

.social-link {
    width: calc(40px * var(--scale-factor));
    height: calc(40px * var(--scale-factor));
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: calc(1rem * var(--scale-factor));
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(calc(-5px * var(--scale-factor)));
    box-shadow: 0 8px 15px rgba(255, 107, 53, 0.3);
}

.footer-links h3 {
    font-size: calc(1.1rem * var(--scale-factor));
    color: white;
    margin: 0 0 calc(15px * var(--scale-factor));
    position: relative;
    padding-bottom: calc(10px * var(--scale-factor));
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(35px * var(--scale-factor));
    height: calc(2px * var(--scale-factor));
    background-color: var(--accent);
    border-radius: calc(2px * var(--scale-factor));
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: calc(12px * var(--scale-factor));
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: inline-block;
    padding: calc(3px * var(--scale-factor)) 0;
    font-size: calc(1rem * var(--scale-factor));
}

.footer-links a:hover {
    color: white;
    transform: translateX(calc(5px * var(--scale-factor)));
}

.footer-contacts .contact-item {
    display: flex;
    align-items: flex-start;
    gap: calc(15px * var(--scale-factor));
    margin-bottom: calc(15px * var(--scale-factor));
    color: rgba(255, 255, 255, 0.7);
    font-size: calc(1rem * var(--scale-factor));
}

.footer-contacts .contact-item i {
    color: var(--accent);
    font-size: calc(1.1rem * var(--scale-factor));
    margin-top: calc(3px * var(--scale-factor));
}

.footer-contacts .contact-item a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: calc(30px * var(--scale-factor)) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: calc(20px * var(--scale-factor));
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: calc(0.85rem * var(--scale-factor));
}

.footer-legal {
    display: flex;
    gap: calc(20px * var(--scale-factor));
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    font-size: calc(0.85rem * var(--scale-factor));
    transition: var(--transition);
}

.footer-legal a:hover {
    color: white;
    text-decoration: underline;
}

.licenses-links {
    display: flex;
    flex-direction: column;
    margin-top: calc(10px * var(--scale-factor));
    color: rgba(255, 255, 255, 0.7);
    font-size: calc(0.9rem * var(--scale-factor));
    margin-right: 40px; /* Занимает всю доступную ширину */
}
.licenses-list {
    display: flex;
    flex-direction: column;
    gap: calc(5px * var(--scale-factor));
    margin-top: calc(5px * var(--scale-factor)); /* Небольшой отступ сверху */
    padding-left: 15px; /* Отступ слева для выравнивания с другими элементами */
}

.licenses-list a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
    font-size: calc(0.9rem * var(--scale-factor));
    display: block;
    padding: 2px 0;
    text-decoration: none;
    position: relative;
}


.licenses-links a:hover {
    color: #4a90e2;
    text-decoration: underline;
}
/* Модальные окна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    width: 90%;
    max-width: calc(500px * var(--scale-factor));
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: calc(16px * var(--scale-factor));
    padding: calc(40px * var(--scale-factor));
    position: relative;
    box-shadow: var(--shadow-xl);
}

.modal-close {
    position: absolute;
    top: calc(20px * var(--scale-factor));
    right: calc(20px * var(--scale-factor));
    width: calc(40px * var(--scale-factor));
    height: calc(40px * var(--scale-factor));
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    color: var(--text-light);
    font-size: calc(1.2rem * var(--scale-factor));
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background-color: var(--accent);
    color: white;
}

.modal-title {
    font-size: calc(1.8rem * var(--scale-factor));
    color: var(--primary);
    margin: 0 0 calc(25px * var(--scale-factor));
    text-align: center;
}

.modal-subtitle {
    color: var(--text-light);
    margin-bottom: calc(25px * var(--scale-factor));
    font-size: calc(0.95rem * var(--scale-factor));
    text-align: center;
}

.modal-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: calc(20px * var(--scale-factor));
}

.form-group label {
    display: block;
    margin-bottom: calc(8px * var(--scale-factor));
    font-weight: 500;
    color: var(--text);
    font-size: calc(0.9rem * var(--scale-factor));
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: calc(12px * var(--scale-factor)) calc(15px * var(--scale-factor));
    border: 1px solid #e0e0e0;
    border-radius: calc(8px * var(--scale-factor));
    font-family: inherit;
    font-size: calc(0.95rem * var(--scale-factor));
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 calc(2px * var(--scale-factor)) rgba(0, 123, 255, 0.1);
}

.form-group textarea {
    min-height: calc(100px * var(--scale-factor));
    resize: vertical;
}

.field-hint {
    font-size: calc(0.8rem * var(--scale-factor));
    color: var(--text-light);
    margin-top: calc(5px * var(--scale-factor));
    font-style: italic;
    opacity: 0.8;
}

.submit-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: calc(14px * var(--scale-factor)) calc(25px * var(--scale-factor));
    border-radius: calc(8px * var(--scale-factor));
    font-weight: 600;
    font-size: calc(1rem * var(--scale-factor));
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin: calc(10px * var(--scale-factor)) 0;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.submit-btn:hover {
    background-color: var(--accent-light);
    transform: translateY(calc(-2px * var(--scale-factor)));
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.form-note {
    font-size: calc(0.8rem * var(--scale-factor));
    color: var(--text-light);
    text-align: center;
    margin-top: calc(10px * var(--scale-factor));
}

.submit-success {
    display: none;
    text-align: center;
    padding: calc(20px * var(--scale-factor)) 0;
}

.submit-success .success-icon {
    font-size: calc(3rem * var(--scale-factor));
    color: var(--success);
    margin-bottom: calc(15px * var(--scale-factor));
    animation: bounceIn 0.6s ease;
}

.submit-success h3 {
    font-size: calc(1.3rem * var(--scale-factor));
    margin-bottom: calc(10px * var(--scale-factor));
    color: var(--primary);
}

.submit-success p {
    color: var(--text-light);
    margin-bottom: calc(20px * var(--scale-factor));
    font-size: calc(1rem * var(--scale-factor));
}

.submit-success .close-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: calc(10px * var(--scale-factor)) calc(20px * var(--scale-factor));
    border-radius: calc(6px * var(--scale-factor));
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
    font-size: calc(1rem * var(--scale-factor));
}

.submit-success .close-btn:hover {
    background: var(--accent-light);
    transform: translateY(calc(-2px * var(--scale-factor)));
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* Анимации */
@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(calc(-20px * var(--scale-factor))) rotate(2deg); }
}

@keyframes logoAppear {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(calc(20px * var(--scale-factor))); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(calc(1.05 * var(--scale-factor))); }
    100% { transform: scale(1); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(calc(1.1 * var(--scale-factor))); opacity: 1; }
    100% { transform: scale(1); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes slideOut {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}
/* Адаптивность */
@media (max-width: 1600px) {
    :root {
        --scale-factor: 1.1;
    }
}

@media (max-width: 1440px) {
    .hero-title {
        font-size: calc(2.8rem * var(--scale-factor));
    }
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
.advantage-cards {
        grid-template-columns: repeat(3, 1fr); /* 3 карточки в ряду для широких экранов */
    }
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding-top: 60px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .cta-container {
        flex-direction: column;
        text-align: center;
    }

    .cta-actions {
        justify-content: center;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1024px) {
    :root {
        --scale-factor: 1;
    }

    .header {
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
        padding-bottom: 80px;
    }

    .header-contacts {
        justify-content: center;
        gap: 15px;
    }

    .header-top {
        padding: 10px 0;
    }
.logo{
    display:none;
    }
    .header-main{
    display:none;
    }
    .header-main {
        justify-content: flex-end;
        padding: 15px 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding-top: 60px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .cta-container {
        flex-direction: column;
        text-align: center;
    }

    .cta-actions {
        justify-content: center;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --base-font-size: 15px;
    }

    .header {
        clip-path: polygon(0 0, 100% 0, 100% 97%, 0 100%);
        padding-bottom: 60px;
    }

    .header-top {
        display: none;
    }

    .header-main {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .hero {
        order: -1;
        padding-top: 70px;
        clip-path: none;
        padding-bottom: 40px;
    }

    .hero-title {
        font-size: 1.8rem;
    }
 .services-grid {
        grid-template-columns: 1fr; /* На мобильных устройствах по одной карточке в строке */
    }
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero-button {
        width: 100%;
        justify-content: center;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 1.6rem;
    }

     .advantage-cards {
        grid-template-columns: 1fr;
    }

    .advantage-card {
        max-width: 300px; /* Ограничиваем ширину на мобильных */
        margin: 0 auto; /* Центрируем */
    }

    .stats-container {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .cta-section {
        padding: 60px 0;
        margin-bottom: 60px;
    }

    .cta-actions {
        flex-direction: column;
        gap: 10px;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }
    .logo{
    display:none;
    }
    .header-main{
    display:none;
    }
     .footer-container,
    .svn-hero-content,
    .svn-components,
    .cta-content,
    .svn-price-factors {
        padding: 0 20px;
    }
    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-about {
        max-width: 100%;
    }

    .mobile-menu-btn {
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 101;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        padding: 8px;
    }

    .mobile-menu-btn span {
        display: block;
        width: 22px;
        height: 2px;
        background: white;
        transition: all 0.3s ease;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
}

@media (max-width: 576px) {
    .header-contacts .contact-info {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .header-request-button {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .section-subtitle {
        font-size: 0.8rem;
    }

    .service-card {
        padding: 30px 20px;
    }

    .service-card h3 {
        font-size: 1.4rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }
    .logo{
    display:none;
    }
    .header-main{
    display:none;
    }
}

@media (max-width: 480px) {
    :root {
        --base-font-size: 14px;
    }

    .container {
        padding: 0 15px;
    }

    .header {
        clip-path: polygon(0 0, 100% 0, 100% 98%, 0 100%);
    }

    .header-contacts {
        flex-direction: column;
        align-items: center;
    }

    .contacts-group {
        justify-content: center;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .service-card {
        min-height: 300px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .service-icon img {
        width: 30px;
        height: 30px;
    }
.logo{
    display:none;
    }
    .header-main{
    display:none;
    }
    .modal-content {
        padding: 25px 15px;
    }
}

@media (max-width: 375px) {
    .hero-title {
        font-size: 1.4rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-button {
        padding: 12px 20px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .footer-links h3 {
        font-size: 1rem;
    }

    .footer-links a {
        font-size: 0.9rem;
    }
}

@media (max-width: 320px) {
    .hero-title {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .service-card {
        padding: 25px 15px;
    }

    .footer-about-text {
        font-size: 0.85rem;
    }
}