/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #c2352b; /* красный для hover/акцентов */
    --primary-dark: #a02b24;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --dark-bg: #0f172a;
    --dark-surface: #1e293b;
    --dark-surface-light: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #475569;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
    /* Градиент (везде): синий → красный → жёлтый */
    --gradient: linear-gradient(135deg, #245fbf 0%, #c2352b 50%, #caa61a 100%);
    /* Тёмный фон-градиент оставляем нейтральным */
    --gradient-dark: linear-gradient(135deg, var(--dark-surface), var(--dark-surface-light));
    --navbar-height: 80px; /* единая высота фиксированной шапки */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid transparent;
    background-image: linear-gradient(rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98)),
                      linear-gradient(90deg, 
                        transparent 0%, 
                        rgba(99, 102, 241, 0.3) 25%, 
                        rgba(99, 102, 241, 0.5) 50%, 
                        rgba(99, 102, 241, 0.3) 75%, 
                        transparent 100%);
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.6s ease;
}

.navbar:hover::before {
    left: 100%;
}

/* Единый отступ под фиксированной навигацией (высота навбара 80px) */
body {
    padding-top: var(--navbar-height);
}

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

@media (min-width: 769px) {
    /* Возвращаем небольшое смещение логотипа только на десктопе */
    .nav-logo img { margin-top: -12px; }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--navbar-height);
    position: relative;
    gap: 1rem;
}


.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
}

/* Глобально выравниваем ссылки логотипа по центру, чтобы не прыгали на мобилках */
.nav-logo-link { 
    display: inline-flex; 
    align-items: center; 
    line-height: 1;
    height: 100%;
}

.nav-logo img {
    margin-top: 0;
}

.nav-logo:hover {
    transform: translateX(5px);
}

.logo-img {
    height: 65px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.3));
    position: relative;
    display: block;
}

.logo-img::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.logo-img:hover {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 4px 16px rgba(99, 102, 241, 0.5));
}

.logo-img:hover::before {
    opacity: 1;
}

.logo-css::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: logoShine 3s ease-in-out infinite;
}

.logo-css:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

@keyframes logoShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
    100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
}

.nav-logo h2 {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
    line-height: 1.2;
}

.nav-logo h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-logo:hover h2::after {
    width: 100%;
}

/* Поиск */
.search-container {
    display: flex;
    align-items: center;
    margin: 0 1rem;
    height: 100%;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    width: 280px;
    height: 40px;
}

.search-box:focus-within {
    background: rgba(30, 41, 59, 0.9);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(194, 53, 43, 0.3);
}

.search-input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    flex: 1;
    padding: 0;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    padding: 0 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-surface);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
    margin-top: -1px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(99, 102, 241, 0.1);
    padding-left: 1.5rem;
}

.search-result-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.search-result-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

.search-no-results {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-muted);
}

/* Мобильный поиск в меню */
.mobile-search {
    display: none;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.nav-menu.active .mobile-search {
    display: block;
}

.mobile-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.mobile-search-box:focus-within {
    background: rgba(99, 102, 241, 0.2);
    box-shadow: 0 0 15px rgba(194, 53, 43, 0.4);
}

.mobile-search-input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    flex: 1;
    padding: 0;
}

.mobile-search-input::placeholder {
    color: var(--text-muted);
}

.mobile-search-btn {
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-btn:active {
    transform: scale(0.95);
}

.mobile-search-results {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    background: var(--dark-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
    margin-top: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.mobile-search-results.active {
    display: block;
}

.mobile-search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.mobile-search-result-item:last-child {
    border-bottom: none;
}

.mobile-search-result-item:active {
    background: rgba(99, 102, 241, 0.15);
}

.mobile-search-result-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

.mobile-search-result-desc {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.3;
}

@media (max-width: 1024px) {
    .search-box {
        width: 220px;
    }
}

@media (max-width: 768px) {
    .search-container {
        display: none;
    }
    
    .mobile-search {
        display: none;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu.active .mobile-search {
        display: block;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    height: 100%;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
    line-height: 1;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover::after {
    width: calc(100% - 32px);
}

.nav-link.active {
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(16, 185, 129, 0.15));
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.nav-link.active::after {
    width: calc(100% - 32px);
}

.nav-link.active::before {
    opacity: 1;
}

.hamburger {
    display: none;
    margin-right: 8px;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.hamburger:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.05);
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: #ffffff !important;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    content: "" !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3) !important;
}

.hamburger:hover .bar {
    background: var(--primary-color);
}

/* Главная секция */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-surface) 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-bottom: 0;
}

/* (удалено) плавающие квадраты в герое */

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23334155" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
    opacity: 0.1;
    animation: gridMove 10s linear infinite;
    will-change: background-position;
}

@keyframes gridMove {
    0% {
        background-position: 0% 0%;
        transform: translate(0, 0);
    }
    100% {
        background-position: 10% 10%;
        transform: translate(10px, 10px);
    }
}


.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: slideInLeft 1s ease-out both;
}

.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: slideInLeft 1s ease-out 0.3s both;
}

.hero-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 1rem;
    animation: slideInLeft 1s ease-out 0.6s both;
}
.hero-buttons .btn-span-2 { grid-column: 1 / -1; }
@media (max-width: 720px) { .hero-buttons { grid-template-columns: 1fr; } }

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    min-height: 52px;
    font-size: 1rem;
}

.btn i { margin-right: 0.5rem; }

/* Контакты: крупные CTA */
.contact-actions .btn {
    padding: 16px 40px;
    font-size: 1.05rem;
    min-width: 240px;
}

.contact-card .btn { width: 100%; margin-top: auto; }

/* Специальные стили для ссылок-кнопок */
a.btn {
    text-decoration: none;
    color: inherit;
}

a.btn:hover {
    text-decoration: none;
    color: inherit;
}

a.btn:visited {
    text-decoration: none;
    color: inherit;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

/* Градиент для активного пункта меню */
.nav-link.active,
.nav-link:focus-visible {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Градиентная окантовка карточек при наведении/фокусе */
.catalog-item:hover,
.catalog-item:focus-visible,
.service-card:hover,
.service-card:focus-visible,
.gate-item:hover,
.gate-item:focus-visible,
.portfolio-item:hover,
.portfolio-item:focus-visible,
.benefit-item:hover,
.benefit-item:focus-visible,
.contact-item:hover,
.contact-item:focus-visible {
    background: linear-gradient(var(--dark-surface), var(--dark-surface)) padding-box,
                var(--gradient) border-box;
    border: 1px solid transparent;
    box-shadow: var(--shadow-lg);
}

/* Плавный акцент под заголовками секций */
.section-header h2::after {
    content: '';
    display: block;
    height: 3px;
    width: 80px;
    border-radius: 3px;
    margin: 12px auto 0;
    background: var(--gradient);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(3px);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow);
}

.btn-secondary {
    position: relative;
    background: linear-gradient(var(--dark-surface), var(--dark-surface)) padding-box,
                var(--gradient) border-box;
    border: 2px solid transparent;
    color: var(--text-primary);
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 240ms ease;
    z-index: -1;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    cursor: pointer;
}

.btn-secondary:hover::before {
    opacity: 1;
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.hero-image {
    position: relative;
    animation: slideInRight 1s ease-out;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.floating-card {
    position: relative;
    background: var(--dark-surface);
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
    width: 200px;
    z-index: 2;
    margin: 0.5rem 0;
}

/* Градиент только на иконке во floating-card (жёлтый → красный → синий) */
.floating-card i {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-size: 1.75rem;
    line-height: 1;
    display: inline-block;
}

.floating-card:hover i {
    filter: brightness(1.1);
}

.floating-card:nth-child(1) {
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    animation-delay: 2s;
    z-index: 3;
}

.floating-card:nth-child(3) {
    animation-delay: 4s;
    z-index: 1;
}

.floating-card:nth-child(4) {
    animation-delay: 6s;
    z-index: 2;
}

.floating-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.floating-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.floating-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Секции */
section {
    padding: 3.5rem 0;
    position: relative;
    z-index: 5;
}

/* Гарантированно убираем внешний отступ у первого блока после шапки */
.navbar + section { margin-top: 0 !important; }

/* Отступ для контента под навигацией */
body {
    padding-top: var(--navbar-height);
}

section:first-of-type { padding-top: 0; }

@media (max-width: 768px) {
    section {
        padding: 2.5rem 0;
    }
    section:first-of-type { padding-top: 0.5rem; }
}


.section-header {
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.section-header.animate {
    animation: fadeInUp 0.8s ease-out forwards;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Чтобы заголовки и первые секции не попадали под фикс‑шапку */
.section-header,
h1,
h2 { scroll-margin-top: var(--navbar-height); }

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* О нас */
.about {
    background: var(--dark-bg);
    position: relative;
    z-index: 10;
    margin-top: 0;
}


.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 3;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--dark-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }

.stat-item h4 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container {
    width: 300px;
    height: 300px;
    background: var(--gradient-dark);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    padding: 2rem;
    opacity: 0;
    transform: scale(0.8);
    animation: scaleIn 0.8s ease-out 0.3s forwards;
}

.about-logo {
    width: 100%;
    height: auto;
    max-width: 800px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    animation: logoFloat 6s ease-in-out infinite, fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.about-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

.about-logo-css::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: logoShine 3s ease-in-out infinite;
}

.about-logo-css:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.4);
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: var(--gradient-dark);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-color);
    box-shadow: var(--shadow);
}

/* Каталог услуг */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.catalog-item {
    background: var(--dark-surface);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.catalog-item.animate {
    animation: fadeInUp 0.6s ease-out forwards;
}

.catalog-item:nth-child(1) { animation-delay: 0.1s; }
.catalog-item:nth-child(2) { animation-delay: 0.2s; }
.catalog-item:nth-child(3) { animation-delay: 0.3s; }
.catalog-item:nth-child(4) { animation-delay: 0.4s; }
.catalog-item:nth-child(5) { animation-delay: 0.5s; }
.catalog-item:nth-child(6) { animation-delay: 0.6s; }
.catalog-item:nth-child(7) { animation-delay: 0.7s; }
.catalog-item:nth-child(8) { animation-delay: 0.8s; }

.catalog-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.catalog-item:hover::before {
    left: 100%;
}

.catalog-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    text-decoration: none;
    color: inherit;
}

.catalog-item:visited {
    color: inherit;
    text-decoration: none;
}

.catalog-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.catalog-image {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
}

.catalog-item h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 600;
    position: relative;
    z-index: 1;
    margin: 0;
}

.catalog-item h3::after {
    content: '→';
    margin-left: 0.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.catalog-item:hover h3::after {
    opacity: 1;
    transform: translateX(3px);
}

.services-benefits {
    background: var(--dark-bg);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.services-benefits.animate {
    animation: fadeInUp 0.8s ease-out forwards;
}


.benefits-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.benefits-list li {
    color: var(--text-secondary);
    padding: 1.5rem;
    background: var(--dark-surface);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    position: relative;
    padding-left: 2.5rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 80px;
}

.benefits-list li:nth-child(1) { animation-delay: 0.6s; }
.benefits-list li:nth-child(2) { animation-delay: 0.7s; }
.benefits-list li:nth-child(3) { animation-delay: 0.8s; }
.benefits-list li:nth-child(4) { animation-delay: 0.9s; }
.benefits-list li:nth-child(5) { animation-delay: 1.0s; }
.benefits-list li:nth-child(6) { animation-delay: 1.1s; }
.benefits-list li:nth-child(7) { animation-delay: 1.2s; }
.benefits-list li:nth-child(8) { animation-delay: 1.3s; }
.benefits-list li:nth-child(9) { animation-delay: 1.4s; }

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%) scale(0);
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 1;
    animation: scaleIn 0.3s ease-out forwards;
}

.benefits-list li:nth-child(1)::before { animation-delay: 0.8s; }
.benefits-list li:nth-child(2)::before { animation-delay: 0.9s; }
.benefits-list li:nth-child(3)::before { animation-delay: 1.0s; }
.benefits-list li:nth-child(4)::before { animation-delay: 1.1s; }
.benefits-list li:nth-child(5)::before { animation-delay: 1.2s; }
.benefits-list li:nth-child(6)::before { animation-delay: 1.3s; }
.benefits-list li:nth-child(7)::before { animation-delay: 1.4s; }
.benefits-list li:nth-child(8)::before { animation-delay: 1.5s; }
.benefits-list li:nth-child(9)::before { animation-delay: 1.6s; }

.benefits-list li:hover {
    background: var(--dark-surface-light);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Услуги */
.services {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-surface) 100%);
    position: relative;
    z-index: 5;
}

@media (max-width: 768px) {
    /* Принудительно такой же фон, как на остальных страницах */
    .services { background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-surface) 100%) !important; }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--dark-surface);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Портфолио */
.portfolio {
    background: var(--dark-bg);
}

/* Галерея работ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--dark-surface);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }
.gallery-item:nth-child(9) { animation-delay: 0.9s; }
.gallery-item:nth-child(10) { animation-delay: 1.0s; }
.gallery-item:nth-child(11) { animation-delay: 1.1s; }
.gallery-item:nth-child(12) { animation-delay: 1.2s; }

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.gallery-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.gallery-overlay p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.gallery-image .image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.5);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.filter-btn:nth-child(1) { animation-delay: 0.1s; }
.filter-btn:nth-child(2) { animation-delay: 0.2s; }
.filter-btn:nth-child(3) { animation-delay: 0.3s; }
.filter-btn:nth-child(4) { animation-delay: 0.4s; }
.filter-btn:nth-child(5) { animation-delay: 0.5s; }
.filter-btn:nth-child(6) { animation-delay: 0.6s; }

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }
.portfolio-item:nth-child(4) { animation-delay: 0.4s; }
.portfolio-item:nth-child(5) { animation-delay: 0.5s; }
.portfolio-item:nth-child(6) { animation-delay: 0.6s; }


.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-image .image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 2rem;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.portfolio-overlay p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Контакты */
.contact {
    background: var(--dark-bg);
}

/* Декор фона контактов */
.contact::before,
.contact::after {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: 0;
}
.contact::before {
    inset: -20% -10% auto -10%;
    height: 60%;
    background: radial-gradient(380px 280px at 20% 30%, rgba(36,95,191,0.12), transparent 60%),
                radial-gradient(300px 220px at 80% 10%, rgba(194,53,43,0.10), transparent 60%);
}
.contact::after {
    inset: auto -10% -20% -10%;
    height: 50%;
    background: radial-gradient(320px 260px at 70% 80%, rgba(202,166,26,0.10), transparent 60%);
}

/* Новая простая страница контактов */
.contact-hero {
    text-align: center;
    margin-bottom: 2.5rem;
}
.contact-hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.contact-hero p {
    color: var(--text-secondary);
    margin: 0 auto 1rem;
    max-width: 720px;
}
.contact-hero,
.contact-card,
.contact-why,
.contact-bullets li,
.info-row {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeInUp 0.6s ease-out forwards;
}
.contact-hero { animation-delay: 0.05s; }
.contact-card:nth-child(1) { animation-delay: 0.15s; }
.contact-card:nth-child(2) { animation-delay: 0.25s; }
.contact-card:nth-child(3) { animation-delay: 0.35s; }
.contact-card:nth-child(4) { animation-delay: 0.45s; }

/* Contact right column: prettier info rows */
.contact-info-brief { display: flex; flex-direction: column; gap: 14px; }
.info-row { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; background: rgba(255,255,255,0.02); border-radius: 14px; border: 1px solid rgba(255,255,255,0.06); box-shadow: 0 6px 20px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.04); overflow: hidden; }
.dark .info-row { background: rgba(0,0,0,0.2); }
.info-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--gradient); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.info-main { display: flex; flex-direction: column; gap: 4px; }
.info-title { font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.75); letter-spacing: 0.02em; }
.info-value { font-size: 1rem; font-weight: 600; color: var(--text-color); }
.info-actions { display: flex; gap: 8px; }

/* Ghost buttons for compact actions */
.btn-ghost { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; min-width: auto; height: 38px; font-size: 0.95rem; border-radius: 10px; border: 1px solid transparent; background: linear-gradient(var(--dark-bg), var(--dark-bg)) padding-box, var(--gradient) border-box; color: var(--text-color); transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease; }
.btn-ghost:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,0.2); color: #fff; background: linear-gradient(rgba(255,255,255,0.02), rgba(255,255,255,0.02)) padding-box, var(--gradient) border-box; }
.btn-ghost:active { transform: translateY(0); }

/* Contact map prettier */
.contact-map { margin-top: 24px; padding: 0; border-radius: 16px; background: var(--dark-surface); border: 1px solid var(--border-color); }
.contact-map .map-header { font-weight: 700; margin-bottom: 10px; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact-map .map-placeholder { background: transparent; border: 0; border-radius: inherit; padding: 0; overflow: hidden; height: 420px; }
.contact-map .map-placeholder iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 0; opacity: 0; transform: translateY(8px) scale(0.98); animation: mapReveal 0.6s ease-out 0.05s forwards; }
.contact-map .map-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 12px 12px; padding: 10px 14px; border: 1px solid var(--border-color); border-radius: 10px; color: var(--text-color); background: var(--dark-surface); text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease; }
.contact-map .map-link:hover { transform: translateY(-1px); border-color: var(--primary-color); box-shadow: 0 10px 24px rgba(0,0,0,0.2); background: rgba(255,255,255,0.03); color: #fff; }
.contact-map .map-link:active { transform: translateY(0); }
@keyframes mapReveal { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.contact-map .map-placeholder a { color: var(--primary-color); text-decoration: underline; }

/* When to call section */
.contact-why { margin-top: 28px; }
.contact-why h4 { margin-bottom: 14px; }
.when-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 720px) { .when-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .when-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (min-width: 1280px) { .when-grid { grid-template-columns: 1fr 1fr 1fr 1fr; } }
.when-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--dark-surface); border: 1px solid var(--border-color); transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.when-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gradient); opacity: 0.9; border-radius: 12px 0 0 12px; }
.when-icon { flex: 0 0 32px; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gradient); color: #fff; font-size: 14px; box-shadow: 0 6px 16px rgba(0,0,0,0.16); }
.when-text { line-height: 1.4; color: var(--text-primary); font-weight: 600; }
.when-item:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,0.16); border-color: var(--primary-color); }

/* FAQ section improved */
.contact-faq { margin-top: 28px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { position: relative; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); overflow: hidden; transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease; }
.faq-item[open] { border-color: rgba(255,255,255,0.14); box-shadow: 0 12px 28px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.05); }
.faq-item summary { list-style: none; cursor: pointer; padding: 14px 16px; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; transition: color 0.2s ease; }
.faq-item summary::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gradient); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.faq-item[open] summary::before { transform: scaleX(1); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 0.9rem; color: rgba(255,255,255,0.7); transition: transform 0.25s ease; }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-a { height: 0; overflow: hidden; transition: height 0.35s ease; padding: 0 16px; }
.faq-a .faq-content { opacity: 0; transform: translateY(-4px); transition: opacity 0.25s ease, transform 0.25s ease; padding: 12px 0 14px 0; color: rgba(255,255,255,0.85); }
.faq-item[open] .faq-a .faq-content { opacity: 1; transform: translateY(0); }
/* Быстрое затухание при закрытии */
.faq-item[data-closing="1"] .faq-a .faq-content { opacity: 0; transform: translateY(-4px); transition: opacity 0.18s ease-in, transform 0.18s ease-in; }
.faq-item[open] .faq-a .faq-content { opacity: 1; transform: translateY(0); }
.contact-why { animation-delay: 0.25s; }
.contact-bullets li:nth-child(1) { animation-delay: 0.15s; }
.contact-bullets li:nth-child(2) { animation-delay: 0.25s; }
.contact-bullets li:nth-child(3) { animation-delay: 0.35s; }
.contact-bullets li:nth-child(4) { animation-delay: 0.45s; }
.info-row:nth-child(1) { animation-delay: 0.15s; }
.info-row:nth-child(2) { animation-delay: 0.25s; }
.info-row:nth-child(3) { animation-delay: 0.35s; }
.info-row:nth-child(4) { animation-delay: 0.45s; }
.contact-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin: 1rem 0 0.5rem;
}
.contact-actions .btn {
    position: relative;
}
.contact-actions .btn::after {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 120%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transform: skewX(-12deg);
    transition: left 0.6s ease;
    pointer-events: none;
}
.contact-actions .btn:hover::after { left: 120%; }
.contact-hours {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-simple {
    display: grid;
    gap: 2rem;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
}
.contact-right { display: grid; gap: 1rem; align-content: start; }
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}
.contact-card {
    background: var(--dark-surface);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120px 120px at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.06), transparent 60%);
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
}
.contact-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}
.contact-card:hover::before { opacity: 1; }
.contact-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.75rem;
    border-radius: 14px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
}
.contact-icon::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.1), transparent);
}
.contact-card h3 {
    margin: 0.5rem 0 0.35rem;
}
.contact-card p {
    color: var(--text-secondary);
    margin: 0 0 0.85rem;
}

.contact-why h4 {
    text-align: center;
    margin-bottom: 0.75rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.contact-bullets {
    list-style: none;
    display: grid;
    gap: 0.5rem;
    padding: 0;
    margin: 0 auto;
    max-width: 720px;
}
.contact-bullets li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--dark-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}
.contact-bullets li::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    border-radius: 12px 0 0 12px;
    background: var(--gradient);
    opacity: 0.6;
}
.contact-bullets i { color: var(--primary-color); }
.contact-bullets li:hover {
    transform: translateX(4px);
    border-color: var(--primary-color);
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

.contact-info-brief {
    display: grid;
    gap: 0.5rem;
    max-width: 720px;
    margin: 0;
}
.info-row {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: flex-start;
    background: var(--dark-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}
.info-row::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--border-color);
    border-radius: 12px 0 0 12px;
    opacity: 1;
}
.info-row span { color: var(--text-secondary); display: flex; align-items: center; gap: 0.5rem; }
.info-row .link { color: var(--text-primary); text-decoration: none; }
.info-row:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

@media (max-width: 560px) {
    .contact-actions { flex-direction: column; }
    .contact-grid { grid-template-columns: 1fr; }
    .info-row { flex-direction: column; gap: 0.25rem; align-items: flex-start; }
}

/* FAQ */
.contact-faq { max-width: 900px; margin: 0 auto; }
.contact-faq h4 {
    text-align: center;
    margin: 0.5rem 0 0.75rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.faq-item {
    background: var(--dark-surface);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item[open] { border-color: var(--primary-color); box-shadow: var(--shadow); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    color: var(--text-primary);
    font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-a { color: var(--text-secondary); padding-top: 0.5rem; }

/* Map placeholder */
.contact-map {
    background: var(--dark-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-height: 260px;
    display: block;
    overflow: hidden;
}
.map-placeholder { color: var(--text-secondary); text-align: left; padding: 0; }
.map-placeholder a { color: var(--primary-color); text-decoration: none; }

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--dark-surface);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
    transition: all 0.3s ease;
}

/* Резервный вариант - если анимация не работает */
.contact-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.2s; }
.contact-item:nth-child(3) { animation-delay: 0.3s; }
.contact-item:nth-child(4) { animation-delay: 0.4s; }
.contact-item:nth-child(5) { animation-delay: 0.5s; }

/* Дополнительная анимация для контактных элементов */
.contact-item.animate {
    animation: fadeInUp 0.6s ease-out forwards;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
    text-align: center;
}

.contact-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-secondary);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.contact-form {
    background: var(--dark-surface);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.contact-form h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.contact-form h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.form-group:nth-child(1) { animation-delay: 0.4s; }
.form-group:nth-child(2) { animation-delay: 0.5s; }
.form-group:nth-child(3) { animation-delay: 0.6s; }
.form-group:nth-child(4) { animation-delay: 0.7s; }
.form-group:nth-child(5) { animation-delay: 0.8s; }
.form-group:nth-child(6) { animation-delay: 0.9s; }
.form-group:nth-child(7) { animation-delay: 1.0s; }
.form-group:nth-child(8) { animation-delay: 1.1s; }
.form-group:nth-child(9) { animation-delay: 1.2s; }
.form-group:nth-child(10) { animation-delay: 1.3s; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Радио кнопки */
.radio-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    background: var(--dark-bg);
    padding: 0.5rem;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.radio-group:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.1);
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.radio-label:hover {
    color: var(--text-primary);
}

.radio-label input[type="radio"]:checked + .radio-custom + span {
    color: var(--primary-color);
    font-weight: 600;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: var(--primary-color);
    background: var(--primary-color);
    transform: scale(1.05);
    transition: all 0.2s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    transition: all 0.2s ease;
}

/* Чекбокс */
.checkbox-group {
    margin-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Стили для переключения полей клиентов */
.client-fields {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-out;
    will-change: opacity, transform;
}

.client-fields.active {
    opacity: 1;
    transform: translateY(0);
}

.client-fields .form-group {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s ease-out;
    will-change: opacity, transform;
}

.client-fields.active .form-group {
    opacity: 1;
    transform: translateY(0);
}

/* Скрываем поля по умолчанию, чтобы они не мелькали */
.client-fields:not(.active) {
    display: none;
}

/* Стили для динамических полей услуг */
.service-fields {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-out;
    will-change: opacity, transform;
    margin-bottom: 1.5rem;
}

.service-fields.active {
    opacity: 1;
    transform: translateY(0);
}

.service-fields .form-group {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s ease-out;
    will-change: opacity, transform;
}

.service-fields.active .form-group {
    opacity: 1;
    transform: translateY(0);
}

.service-fields .form-group:nth-child(1) { transition-delay: 0.1s; }
.service-fields .form-group:nth-child(2) { transition-delay: 0.2s; }
.service-fields .form-group:nth-child(3) { transition-delay: 0.3s; }
.service-fields .form-group:nth-child(4) { transition-delay: 0.4s; }
.service-fields .form-group:nth-child(5) { transition-delay: 0.5s; }

.service-fields h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease-out;
}

.service-fields.active h4 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.05s;
}

/* Убираем задержки - все поля появляются одновременно */

@keyframes fadeInFromInvisibility {
    0% {
        opacity: 0;
        transform: translateX(40px) scale(0.9);
        filter: blur(2px);
    }
    50% {
        opacity: 0.7;
        transform: translateX(20px) scale(0.95);
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}

/* Анимация для заголовка */
.fields-title {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease-out;
}

.client-fields.active .fields-title {
    opacity: 1;
    transform: translateY(0);
}

@keyframes titleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
        filter: blur(2px);
    }
    50% {
        opacity: 0.8;
        transform: translateY(5px) scale(1.02);
        filter: blur(0.5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Стили для валидации формы */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
    animation: shake 0.6s ease-in-out;
}

.form-group.error label {
    color: #ef4444 !important;
}

.form-group.error .error-message {
    display: block;
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    animation: fadeInError 0.3s ease-out;
}

.error-message {
    display: none;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes fadeInError {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для успешной отправки */
.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

.form-group.success label {
    color: #10b981 !important;
}

/* Анимации для модального окна */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes scaleIn {
    0% { 
        opacity: 0;
        transform: scale(0.8);
    }
    100% { 
        opacity: 1;
        transform: scale(1);
    }
}

.fields-title {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.fields-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient);
    border-radius: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* Категории ворот */
.gate-category {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
    position: relative;
    padding-bottom: 1rem;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

/* Сетка ворот */
.gates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.gate-item {
    background: var(--dark-surface);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gate-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.gate-item:hover::before {
    left: 100%;
}

.gate-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.gate-image {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    position: relative;
    z-index: 1;
}

.gate-item h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.gate-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.gate-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.gate-features li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
}

.gate-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-item {
    background: var(--dark-surface);
    padding: 2rem;
    border-radius: 12px;
    text-align: left;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.benefit-item h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.benefit-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Реквизиты */
.requisites {
    background: var(--dark-bg);
    padding: 5rem 0;
}

.requisites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.requisites-item {
    background: var(--dark-surface);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out forwards;
}

.requisites-item.animate {
    animation: fadeInUp 0.6s ease-out forwards;
}

.requisites-item:nth-child(1) { animation-delay: 0.1s; }
.requisites-item:nth-child(2) { animation-delay: 0.2s; }
.requisites-item:nth-child(3) { animation-delay: 0.3s; }
.requisites-item:nth-child(4) { animation-delay: 0.4s; }
.requisites-item:nth-child(5) { animation-delay: 0.5s; }
.requisites-item:nth-child(6) { animation-delay: 0.6s; }
.requisites-item:nth-child(7) { animation-delay: 0.7s; }
.requisites-item:nth-child(8) { animation-delay: 0.8s; }
.requisites-item:nth-child(9) { animation-delay: 0.9s; }
.requisites-item:nth-child(10) { animation-delay: 1.0s; }
.requisites-item:nth-child(11) { animation-delay: 1.1s; }

.requisites-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.requisites-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.requisites-item:hover::before {
    left: 100%;
}

.requisites-item::after {
    content: '📋';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.2rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.requisites-item:hover::after {
    opacity: 1;
    transform: scale(1.2);
}

.copy-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-notification.show {
    transform: translateX(0);
}

.copy-notification i {
    font-size: 1.1rem;
}

.requisites-item h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.requisites-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Футер */
.footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-surface) 100%);
    border-top: 2px solid transparent;
    /* Такой же градиент, как в шапке, на бордере футера */
    background-image: linear-gradient(var(--dark-bg), var(--dark-surface)), var(--gradient);
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    padding: 4rem 0 1rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.03), transparent 50%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.footer-logo img {
    margin-top: -12px;
}

.footer-logo:hover {
    transform: translateX(5px);
}

.footer-logo-img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.3));
    transition: all 0.3s ease;
    position: relative;
}

.footer-logo-img::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.footer-logo-img:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 4px 16px rgba(99, 102, 241, 0.5));
}

.footer-logo-img:hover::before {
    opacity: 1;
}

.footer-section h3,
.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

.footer-logo h3 {
    margin: 0;
    /* Такой же градиент текста, как в шапке */
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-logo:hover h3 {
    filter: brightness(1.2);
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.footer-section ul li a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-section ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.phone-link, .email-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.phone-link:hover, .email-link:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

.phone-link::before {
    content: '📞';
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.phone-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

.email-link::before {
    content: '📧';
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.email-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

.contact-time {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--dark-surface), var(--dark-surface-light));
    border: 2px solid transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-links a::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: var(--gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    color: white;
    transform: translateY(-5px) scale(1.1);
}

.social-links a:hover::before {
    opacity: 1;
}

.social-links a:hover::after {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg, 
        transparent 0%, 
        rgba(99, 102, 241, 0.3) 25%, 
        rgba(99, 102, 241, 0.5) 50%, 
        rgba(99, 102, 241, 0.3) 75%, 
        transparent 100%
    ) 1;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-bottom p:hover {
    color: var(--text-secondary);
}

/* Анимации */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Стили для политики конфиденциальности */
.privacy-content {
    padding: 4rem 0;
    background: var(--dark-bg);
}

.privacy-text {
    max-width: 800px;
    margin: 0 auto;
    background: var(--dark-surface);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.privacy-text h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.privacy-text h2:first-of-type {
    margin-top: 0;
}

.privacy-text p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.privacy-text ul {
    color: var(--text-light);
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.privacy-text li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.privacy-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.last-updated {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--dark-bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.contact-info {
    background: var(--dark-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid var(--border-color);
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent-color);
}

.privacy-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.privacy-btn {
    margin-top: 1rem;
    padding: 10px 24px;
    font-size: 0.9rem;
    border: 2px solid transparent;
    background: linear-gradient(var(--dark-surface), var(--dark-surface)) padding-box,
                var(--gradient) border-box;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.privacy-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.privacy-btn:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    /* Сохраняем градиентную рамку на ховере */
    background: linear-gradient(var(--dark-surface), var(--dark-surface)) padding-box,
                var(--gradient) border-box;
    border-color: transparent;
}

.privacy-btn:hover::before {
    opacity: 1;
}

/* Адаптивность */
@media (max-width: 768px) {
    :root { --mobile-navbar-height: 70px; --navbar-height: 70px; }
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: 0;
        top: var(--mobile-navbar-height);
        margin-top: -6px; /* плотнее к шапке */
        height: auto;
        max-height: calc(100vh - var(--mobile-navbar-height) - 24px);
        flex-direction: column;
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
        backdrop-filter: blur(15px);
        width: 100%;
        text-align: center;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        box-shadow: var(--shadow);
        padding: 1rem 0 1.25rem;
        gap: 0.5rem;
        border-bottom: 2px solid var(--primary-color);
        z-index: 1002;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-100%);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
        border-top: 0;
    }

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

    /* Жёсткая синхронизация для about/contact (поведение как на главной) */
    /* unified menu styles apply globally; no per-page overrides */

    .nav-menu li {
        margin: 0.5rem 0;
    }
    /* Выровнять логотип и заголовок по центру на мобилках */
    .nav-logo-link { display: inline-flex; align-items: center; }
    .nav-logo img { margin-top: 0; }
    /* Чуть отступить бургер от правого края */
    .hamburger { margin-right: 8px; }
    /* Фикс: уезжает кнопка меню и заголовок на мобилках */
    .nav-container {
        padding-left: 12px;
        padding-right: 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    .nav-logo {
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - 56px);
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    .nav-logo h2 {
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .hamburger {
        flex: 0 0 44px !important;
        margin-left: 0;
        margin-right: 0;
    }
    /* Автоматическое выравнивание бургера справа без сдвига макета */
    .nav-container .hamburger {
        position: absolute !important;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1003 !important; /* выше меню (1002) и оверлея (999) */
        pointer-events: auto;
    }
    /* Резервируем место справа, чтобы заголовок не наезжал на бургер */
    .nav-logo { padding-right: 56px; }
    
    .nav-link {
        justify-content: center;
        margin: 0 1rem;
    }

    /* Не прячем первый заголовок под фиксированной навигацией */
    #services,
    .services,
    #about,
    #contact {
        padding-top: 120px !important;
    }
    /* На страницах О нас и Контакты убираем фиксированную шапку и лишний отступ */
    /* no per-page navbar overrides */
    /* Универсально: любой первый секционный блок после навигации */
    /* remove global padding hacks and keep default spacing */

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

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

    /* Удалено - теперь используются улучшенные стили ниже */

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .floating-card {
        position: relative;
        margin: 1rem 0;
        width: 100%;
        max-width: 300px;
        margin: 1rem auto;
    }

    .floating-card:nth-child(1),
    .floating-card:nth-child(2),
    .floating-card:nth-child(3),
    .floating-card:nth-child(4) {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        z-index: auto;
    }

    .nav-logo {
        gap: 0.35rem;
    }
    
    .nav-logo img {
        margin-top: -12px;
    }

    .logo-img {
        height: 50px;
    }

    .nav-logo h2 {
        font-size: 1.2rem;
        position: relative;
    }

    .nav-logo h2::after {
        display: none;
    }

    .logo-container {
        width: 250px;
        height: 250px;
        padding: 1.5rem;
    }

    .about-logo {
        max-width: 800px;
    }

    .about::after {
        background-size: 150px 75px;
    }

    .particle {
        display: none;
    }

    /* Усиленные разделители для мобильных */
    section:not(:first-child)::before {
        height: 2px;
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(99, 102, 241, 0.5) 20%, 
            rgba(16, 185, 129, 0.5) 50%, 
            rgba(245, 158, 11, 0.5) 80%, 
            transparent 100%
        );
    }

    section:not(:first-child)::after {
        width: 150px;
        height: 6px;
        top: -3px;
    }

    .privacy-text {
        padding: 2rem;
        margin: 0 1rem;
    }

    .privacy-text h2 {
        font-size: 1.3rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }

    .privacy-btn {
        width: 100%;
        max-width: 300px;
        margin-top: 0.5rem;
    }
    
    .footer {
        padding: 3rem 0 1rem;
    }
    
    .footer-content {
        gap: 2rem;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
    }
}

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

    .section-header h2 {
        font-size: 2rem;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .gallery-overlay {
        padding: 1.5rem 1rem 1rem;
    }
    
    .gallery-overlay h3 {
        font-size: 1.1rem;
    }
    
    .gallery-overlay p {
        font-size: 0.85rem;
    }

    .benefits-list {
        grid-template-columns: 1fr;
    }

    .services-benefits {
        padding: 2rem;
    }

    .gates-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Скрытие элементов при фильтрации */

/* Анимация появления элементов */
.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Новые стили для улучшенной секции "О нас" */
.about-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.about-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.about-text {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease-out 0.6s forwards;
}

.about-section {
    margin-bottom: 3rem;
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.about-section:nth-child(1) { animation-delay: 0.8s; }
.about-section:nth-child(2) { animation-delay: 1.0s; }

.section-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.section-icon i {
    font-size: 1.5rem;
    color: white;
}

.section-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--dark-surface);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.6s ease-out forwards;
}

.benefit-item:nth-child(1) { animation-delay: 1.2s; }
.benefit-item:nth-child(2) { animation-delay: 1.3s; }
.benefit-item:nth-child(3) { animation-delay: 1.4s; }
.benefit-item:nth-child(4) { animation-delay: 1.5s; }
.benefit-item:nth-child(5) { animation-delay: 1.6s; }
.benefit-item:nth-child(6) { animation-delay: 1.7s; }
.benefit-item:nth-child(7) { animation-delay: 1.8s; }
.benefit-item:nth-child(8) { animation-delay: 1.9s; }

.benefit-item:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

.benefit-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.benefit-item span {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.5;
}

.about-visual {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.8s ease-out 0.6s forwards;
}

.logo-section {
    text-align: center;
    margin-bottom: 3rem;
}

.logo-section .logo-container {
    position: relative;
    width: min(520px, 90vw);
    height: min(520px, 90vw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 20px;
    border: none;
    box-shadow: none;
    opacity: 0;
    transform: scale(0.8);
    animation: scaleIn 0.8s ease-out 1.0s forwards;
    overflow: visible;
}

.logo-glow {
    position: absolute;
    top: calc(50% - 103px);
    left: calc(50% - 144px);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--primary-color), transparent);
    border-radius: 50%;
    opacity: 0.6;
    animation: pulse 3s ease-in-out infinite;
    z-index: -1;
    filter: blur(10px);
}

.logo-section .about-logo {
    width: min(520px, 90vw) !important;
    height: auto !important;
    filter: none !important;
    animation: logoFloat 6s ease-in-out infinite !important;
    z-index: 1;
    position: relative;
    display: block !important;
    opacity: 1 !important;
    margin: 0 auto;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.05); opacity: 0.3; }
}

.stats-section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 1.2s forwards;
}

.stats-section h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--dark-surface);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.stat-item:nth-child(1) { animation-delay: 1.4s; }
.stat-item:nth-child(2) { animation-delay: 1.5s; }
.stat-item:nth-child(3) { animation-delay: 1.6s; }

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    color: white;
    font-size: 1.2rem;
}

.stat-content {
    flex: 1;
}

.stat-number {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

/* Адаптивность для новых стилей */
@media (max-width: 768px) {
    .about-title {
        font-size: 2rem;
    }
    
    .about-subtitle {
        font-size: 1rem;
    }
    
    .about-section {
        flex-direction: column;
        text-align: center;
    }
    
    .section-icon {
        margin: 0 auto;
    }
    
    .logo-container {
        width: 200px;
        height: 200px;
    }
    
    .about-logo {
        width: 120px;
        height: 120px;
    }
    
    .stats-grid {
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

/* ============================================
   УЛУЧШЕННАЯ МОБИЛЬНАЯ ВЕРСИЯ ДЛЯ ТЕЛЕФОНОВ
   ============================================ */

/* Базовые улучшения для всех мобильных */
@media (max-width: 767px) {
    /* Поддержка безопасных зон для iPhone с вырезом */
    :root {
        --safe-area-inset-top: env(safe-area-inset-top, 0px);
        --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
        --safe-area-inset-left: env(safe-area-inset-left, 0px);
        --safe-area-inset-right: env(safe-area-inset-right, 0px);
    }
    
    /* Улучшенная типографика и безопасные зоны */
    body {
        padding-top: calc(var(--navbar-height) + var(--safe-area-inset-top));
        padding-bottom: var(--safe-area-inset-bottom);
        padding-left: var(--safe-area-inset-left);
        padding-right: var(--safe-area-inset-right);
        font-size: 16px;
        line-height: 1.6;
        -webkit-text-size-adjust: 100%;
        -webkit-font-smoothing: antialiased;
    }
    
    /* Улучшенная навигация */
    .navbar {
        height: calc(var(--mobile-navbar-height) + var(--safe-area-inset-top));
        padding: 0;
        padding-top: var(--safe-area-inset-top);
    }
    
    .nav-container {
        height: var(--mobile-navbar-height);
        padding: 0 calc(15px + var(--safe-area-inset-right)) 0 calc(15px + var(--safe-area-inset-left));
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-logo {
        gap: 0.5rem;
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - 56px);
        display: flex;
        align-items: center;
    }
    
    .logo-img {
        height: 45px;
        width: auto;
        margin-top: 0;
    }
    
    .nav-logo h2 {
        font-size: 1.1rem;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Улучшенное мобильное меню */
    .hamburger {
        width: 44px !important;
        height: 44px !important;
        padding: 12px !important;
        border-radius: 10px !important;
        background: rgba(99, 102, 241, 0.1) !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        z-index: 1001 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        cursor: pointer !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        min-height: 44px !important;
        min-width: 44px !important;
        margin-right: 8px;
    }
    
    .hamburger.active {
        background: rgba(99, 102, 241, 0.25) !important;
    }
    
    .hamburger:hover,
    .hamburger:active {
        background: rgba(99, 102, 241, 0.2) !important;
        /* сохраняем вертикальное центрирование при нажатии */
        transform: translateY(-50%) scale(0.95) !important;
    }
    
    .hamburger .bar {
        width: 24px !important;
        height: 3px !important;
        margin: 4px 0 !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        border-radius: 2px !important;
        background: #ffffff !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        z-index: 1 !important;
        content: "" !important;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3) !important;
        border: 1px solid #ffffff !important;
        min-height: 3px !important;
        min-width: 24px !important;
        transform-origin: center !important;
        will-change: transform, opacity !important;
        pointer-events: none !important;
    }
    
    /* Дополнительные правила для гарантии видимости */
    .hamburger span.bar {
        background: #ffffff !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: 24px !important;
        height: 3px !important;
        margin: 4px 0 !important;
        border-radius: 2px !important;
        border: 1px solid #ffffff !important;
    }
    
    /* Анимация превращения hamburger в крестик */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg) !important;
        background: #ffffff !important;
        opacity: 1 !important;
        z-index: 2 !important;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0 !important;
        transform: scale(0) !important;
        z-index: 0 !important;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-14px) rotate(-45deg) !important;
        background: #ffffff !important;
        opacity: 1 !important;
        z-index: 2 !important;
    }
    
    .nav-menu {
        top: calc(80px + var(--safe-area-inset-top));
        padding: 1.5rem 0;
        padding-bottom: calc(1.5rem + var(--safe-area-inset-bottom));
        gap: 0.25rem;
        max-height: calc(100vh - 70px - var(--safe-area-inset-top));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1000;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }
    
    /* Затемнение фона при открытом меню - создаем через JavaScript */
    
    .nav-menu li {
        margin: 0.25rem 0;
    }
    
    .nav-link {
        padding: 14px 20px;
        font-size: 1rem;
        font-weight: 500;
        margin: 0 1rem;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
    }
    
    /* Улучшенная главная секция для мобильных */
    .hero {
        min-height: calc(100vh - 70px);
        padding: 1.5rem 0 3rem;
        background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-surface) 100%);
        position: relative;
        overflow: hidden;
    }
    
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                    radial-gradient(circle at 70% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
        z-index: 1;
    }
    
    .hero-container {
        padding: 0 15px;
        gap: 2.5rem;
        position: relative;
        z-index: 2;
        max-width: 100%;
    }
    
    .hero-content {
        text-align: center;
        order: 1;
    }
    
    .hero-title {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
        padding: 0 !important;
        font-weight: 700;
        color: var(--text-primary);
    }
    
    .hero-title .highlight {
        background: var(--gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        display: inline-block;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 2rem !important;
        padding: 0 !important;
        color: var(--text-secondary);
        max-width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100% !important;
        padding: 0 !important;
        margin-bottom: 2rem;
    }
    
    .btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px 24px !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        min-height: 52px !important;
        border-radius: 12px !important;
        touch-action: manipulation;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.5s ease;
    }
    
    .btn:hover::before {
        left: 100%;
    }
    
    .btn-primary {
        background: var(--gradient);
        border: none;
        color: white;
        box-shadow: var(--shadow);
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }
    
    .btn-secondary {
        background: linear-gradient(var(--dark-surface), var(--dark-surface)) padding-box,
                    var(--gradient) border-box;
        border: 2px solid transparent;
        color: var(--text-primary);
    }
    
    .btn-secondary:hover {
        transform: translateY(-2px);
    }
    
    .hero-image {
        order: 2;
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100%;
    }
    
    .floating-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1.5rem !important;
        margin: 0 !important;
        border-radius: 16px !important;
        background: var(--dark-surface) !important;
        border: 1px solid var(--border-color) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        overflow: hidden;
    }
    
    .floating-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--gradient);
    }
    
    .floating-card:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
        border-color: var(--primary-color) !important;
    }
    
    .floating-card i {
        font-size: 2rem !important;
        color: var(--primary-color) !important;
        margin-bottom: 0.75rem !important;
        display: block;
    }
    
    .floating-card h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
        color: var(--text-primary) !important;
        font-weight: 600;
    }
    
    .floating-card p {
        font-size: 0.9rem !important;
        color: var(--text-secondary) !important;
        margin: 0 !important;
        line-height: 1.4;
    }
    
    /* Убираем анимации на мобильных - контент должен быть виден сразу */
    .hero .hero-title,
    .hero .hero-subtitle,
    .hero .hero-buttons,
    .hero .floating-card {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    
    /* Улучшенные секции */
    section {
        padding: 2.5rem 0;
        padding-left: var(--safe-area-inset-left);
        padding-right: var(--safe-area-inset-right);
    }
    
    /* Специальные стили для секций на главной странице */
    .about {
        padding: 2rem 0 !important;
        background: var(--dark-bg) !important;
    }
    
    .services {
        padding: 2rem 0 !important;
        background: var(--dark-surface) !important;
    }
    
    .contact {
        padding: 2rem 0 !important;
        background: var(--dark-bg) !important;
    }
    
    .section-header {
        padding: 0 !important;
        margin-bottom: 2rem !important;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    .section-header p {
        font-size: 0.95rem;
        padding: 0 1rem;
    }
    
    /* Улучшенный контейнер */
    .container {
        padding: 0 calc(15px + var(--safe-area-inset-left)) 0 calc(15px + var(--safe-area-inset-right));
    }
    
    /* Улучшенные карточки каталога */
    .catalog-grid {
        gap: 1.25rem;
        grid-template-columns: 1fr;
    }
    
    .catalog-item {
        padding: 1.75rem 1.5rem;
        border-radius: 16px;
        min-height: 180px;
        transition: all 0.3s ease !important;
    }
    
    .catalog-image {
        width: 70px;
        height: 70px;
        margin-bottom: 1.25rem;
        font-size: 1.75rem;
    }
    
    .catalog-item h3 {
        font-size: 1.15rem;
        line-height: 1.4;
    }
    
    /* Улучшенные карточки услуг для главной страницы */
    .service-card {
        padding: 1.75rem 1.5rem !important;
        border-radius: 16px !important;
        margin-bottom: 1rem !important;
        background: var(--dark-surface) !important;
        border: 1px solid var(--border-color) !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    .service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--gradient);
    }
    
    .service-card:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
        border-color: var(--primary-color) !important;
    }
    
    .service-icon {
        width: 70px !important;
        height: 70px !important;
        font-size: 1.75rem !important;
        margin-bottom: 1.25rem !important;
        background: var(--gradient) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: white !important;
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3) !important;
    }
    
    .service-card h3 {
        font-size: 1.2rem !important;
        margin-bottom: 0.75rem !important;
        color: var(--text-primary) !important;
        font-weight: 600 !important;
    }
    
    .service-card p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        color: var(--text-secondary) !important;
        margin: 0 !important;
    }
    
    /* Улучшенные преимущества на главной странице */
    .services-benefits {
        padding: 2rem 1.5rem !important;
        border-radius: 16px !important;
        margin: 2rem 0 !important;
        background: var(--dark-bg) !important;
        border: 1px solid var(--border-color) !important;
    }
    
    .services-benefits h3 {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem !important;
        text-align: center !important;
        color: var(--primary-color) !important;
    }
    
    .benefits-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.875rem !important;
        grid-template-columns: 1fr !important;
    }
    
    .benefits-list li {
        padding: 1rem !important;
        padding-left: 2.5rem !important;
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        border-radius: 12px !important;
        background: var(--dark-surface) !important;
        border: 1px solid var(--border-color) !important;
        position: relative !important;
        transition: all 0.3s ease !important;
    }
    
    .benefits-list li::before {
        left: 1rem !important;
        font-size: 1.1rem !important;
        color: var(--primary-color) !important;
    }
    
    .benefits-list li:hover {
        transform: translateX(5px) !important;
        border-color: var(--primary-color) !important;
    }
    
    /* Улучшенные карточки ворот */
    .gates-grid {
        gap: 1.25rem;
    }
    
    .gate-item {
        padding: 1.75rem 1.5rem;
        border-radius: 16px;
        transition: all 0.3s ease !important;
    }
    
    .gate-image {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }
    
    .gate-item h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .gate-item p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    
    .gate-features {
        margin-bottom: 1.5rem;
    }
    
    .gate-features li {
        font-size: 0.9rem;
        padding: 0.4rem 0;
        padding-left: 1.5rem;
    }
    
    /* Улучшенные преимущества */
    .benefits-list {
        gap: 0.875rem;
        grid-template-columns: 1fr;
    }
    
    .benefits-list li {
        padding: 1.25rem 1rem;
        padding-left: 2.75rem;
        font-size: 0.95rem;
        line-height: 1.6;
        border-radius: 12px;
        min-height: auto;
    }
    
    .benefits-list li::before {
        left: 1rem;
        font-size: 1.1rem;
    }
    
    .services-benefits {
        padding: 2rem 1.5rem;
        border-radius: 16px;
        margin: 2rem 0;
    }
    
    .services-benefits h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    /* Улучшенные формы */
    .contact-form {
        padding: 1.75rem 1.25rem;
        border-radius: 16px;
    }
    
    .contact-form h3 {
        font-size: 1.35rem;
        margin-bottom: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        font-weight: 500;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: 10px;
        min-height: 48px;
        -webkit-appearance: none;
        appearance: none;
    }
    
    .form-row {
        gap: 0.875rem;
    }
    
    .radio-group {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .radio-label {
        padding: 12px;
        font-size: 0.95rem;
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .checkbox-label {
        font-size: 0.9rem;
        padding: 0.5rem 0;
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    /* Улучшенные контакты для главной страницы */
    .contact-item {
        padding: 1.5rem 1.25rem !important;
        border-radius: 16px !important;
        gap: 1rem !important;
        background: var(--dark-surface) !important;
        border: 1px solid var(--border-color) !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    .contact-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    }
    
    .contact-item:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
        border-color: var(--primary-color) !important;
    }
    
    .contact-item i {
        font-size: 1.35rem !important;
        width: 35px !important;
        flex-shrink: 0 !important;
        color: var(--primary-color) !important;
    }
    
    .contact-item h4 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
        color: var(--text-primary) !important;
        font-weight: 600 !important;
    }
    
    .contact-item p {
        font-size: 0.95rem !important;
        color: var(--text-secondary) !important;
        margin: 0 !important;
    }
    
    /* Улучшенная форма контактов */
    .contact-form {
        padding: 1.75rem 1.25rem !important;
        border-radius: 16px !important;
        background: var(--dark-surface) !important;
        border: 1px solid var(--border-color) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    }
    
    .contact-form h3 {
        font-size: 1.35rem !important;
        margin-bottom: 1.5rem !important;
        color: var(--text-primary) !important;
        text-align: center !important;
    }
    
    /* Улучшенный футер */
    .footer {
        padding: 3rem 0 calc(1.5rem + var(--safe-area-inset-bottom));
        padding-left: var(--safe-area-inset-left);
        padding-right: var(--safe-area-inset-right);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 15px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer-section ul li {
        margin-bottom: 0.5rem;
    }
    
    .footer-section ul li a {
        font-size: 0.9rem;
        padding: 0.5rem 0;
        display: inline-block;
    }
    
    .footer-logo {
        justify-content: center;
        margin-bottom: 1.25rem;
    }
    
    .footer-logo-img {
        height: 50px;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        padding: 1.5rem 15px 0;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .privacy-btn {
        width: 100%;
        max-width: 100%;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    /* Улучшенные реквизиты */
    .requisites-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .requisites-item {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
        min-height: auto;
    }
    
    .requisites-item h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .requisites-item p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    /* Улучшенные категории */
    .category-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
    }
    
    /* О нас - полная переработка для мобильных */
    .about {
        padding: 2rem 0 !important;
    }
    
    .about .container {
        padding: 0 15px;
    }
    
    .about-title {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.75rem !important;
        text-align: center;
    }
    
    .about-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 2rem !important;
        padding: 0 !important;
        text-align: center;
        line-height: 1.6;
    }
    
    .about-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 2.5rem !important;
        grid-template-columns: 1fr !important;
    }
    
    .about-text {
        order: 1;
        width: 100%;
    }
    
    .about-section {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
        margin-bottom: 2rem !important;
        padding: 1.5rem 1rem;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .section-icon {
        width: 60px !important;
        height: 60px !important;
        margin: 0 auto 1rem !important;
        flex-shrink: 0;
    }
    
    .section-icon i {
        font-size: 1.5rem !important;
    }
    
    .section-content {
        width: 100%;
        text-align: center;
    }
    
    .section-content h3 {
        font-size: 1.25rem !important;
        margin-bottom: 1rem !important;
        text-align: center;
        color: var(--primary-color);
    }
    
    .section-content p {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
        text-align: left;
        margin-bottom: 1.5rem;
        color: var(--text-secondary);
    }
    
    .benefits-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.875rem !important;
        grid-template-columns: 1fr !important;
        margin-top: 1rem;
        text-align: left;
    }
    
    .benefit-item {
        padding: 1rem !important;
        gap: 0.875rem !important;
        text-align: left !important;
        border-radius: 12px !important;
        background: var(--dark-surface);
        border: 1px solid var(--border-color);
        margin: 0 !important;
        width: 100% !important;
        transition: all 0.3s ease;
    }
    
    .benefit-item:hover {
        transform: translateX(5px);
        border-color: var(--primary-color);
    }
    
    .benefit-item i {
        font-size: 1.1rem !important;
        width: 22px !important;
        flex-shrink: 0 !important;
        color: var(--primary-color);
    }
    
    .benefit-item span {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        color: var(--text-secondary);
    }
    
    .about-visual {
        order: 2;
        width: 100%;
        margin-top: 1rem;
    }
    
    .logo-section {
        margin-bottom: 2rem !important;
        padding: 0;
    }
    
    .logo-container {
        width: min(340px, 92vw) !important;
        height: min(340px, 92vw) !important;
        padding: 1rem !important;
        margin: 0 auto;
    }
    
    .logo-glow {
        display: none;
    }
    
    .about-logo {
        width: min(300px, 85vw) !important;
        height: auto !important;
        max-width: none !important;
        margin: 0 auto;
        display: block;
    }
    
    .stats-section {
        width: 100%;
        margin-top: 2rem;
    }
    
    .stats-section h3 {
        font-size: 1.25rem !important;
        margin-bottom: 1.5rem !important;
        text-align: center;
        color: var(--primary-color);
    }
    
    .stats-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        grid-template-columns: 1fr !important;
    }
    
    .stat-item {
        padding: 1.25rem 1rem !important;
        border-radius: 16px !important;
        gap: 1rem !important;
        flex-direction: row !important;
        text-align: left !important;
        width: 100%;
        background: var(--dark-surface);
        border: 1px solid var(--border-color);
    }
    
    .stat-icon {
        width: 50px !important;
        height: 50px !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
    }
    
    .stat-icon i {
        font-size: 1.2rem !important;
    }
    
    .stat-content {
        flex: 1;
        text-align: left;
    }
    
    .stat-number {
        font-size: 1.75rem !important;
        margin-bottom: 0.25rem !important;
        line-height: 1.2;
    }
    
    .stat-content p {
        font-size: 0.85rem !important;
        margin: 0 !important;
        color: var(--text-secondary);
    }
    
    /* Улучшенные стили для текста на странице О нас */
    .about-text h3 {
        font-size: 1.5rem !important;
    }
    
    .about-text p {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
    }
    
    /* Убираем большие отступы */
    .about::after,
    .about::before {
        display: none;
    }
    
    /* Улучшенная секция header для страницы О нас */
    #about .section-header {
        margin-bottom: 2rem;
    }
    
    #about {
        padding-top: calc(70px + 1rem) !important;
        padding-bottom: 2rem !important;
    }
    
    /* Исправление для десктопа - нормальный отступ сверху */
    @media (min-width: 768px) {
        #about {
            padding-top: 100px !important;
        }
    }
    
    /* Убираем все анимации на мобильных - контент должен быть виден сразу */
    .hero .section-header,
    .hero .about-section,
    .hero .benefit-item,
    .hero .about-visual,
    .hero .logo-section .logo-container,
    .hero .about-logo,
    .hero .stats-section,
    .hero .stat-item {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    
    /* Улучшения для отображения иконок и текста */
    .stat-item {
        display: flex !important;
        align-items: center !important;
    }
    
    .stat-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    /* Центрирование логотипа */
    .logo-section .logo-container {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Портфолио - улучшения */
    .portfolio-filter {
        flex-wrap: wrap;
        gap: 0.75rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        border-radius: 20px;
        min-height: 40px;
    }
    
    .portfolio-grid {
        gap: 1.25rem;
    }
    
    .portfolio-item {
        border-radius: 16px;
    }
    
    .portfolio-image {
        height: 220px;
    }
    
    .portfolio-overlay {
        padding: 1.5rem;
    }
    
    .portfolio-overlay h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .portfolio-overlay p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    /* Улучшения для секций с изображениями (рольставни, автоматика и т.д.) */
    .gate-section {
        padding: 1.75rem 1.25rem !important;
        margin-bottom: 2rem !important;
        border-radius: 16px;
    }
    
    .gate-section h3 {
        font-size: 1.35rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .gate-section > div[style*="grid-template-columns: 450px 1fr"] {
        display: block !important;
    }
    
    .gate-section > div[style*="grid-template-columns: 450px 1fr"] > div:first-child {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 200px !important;
        margin-bottom: 1.5rem;
    }
    
    .gate-section > div[style*="grid-template-columns: 450px 1fr"] > div:first-child img {
        border-radius: 12px;
    }
    
    .gate-section h4 {
        font-size: 1.15rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .gate-section p {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Улучшения для дверей и платформ */
    .doors-grid,
    .platforms-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }
    
    .door-card,
    .platform-card {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
    }
    
    .door-image,
    .platform-image {
        height: 180px;
        border-radius: 12px;
        margin-bottom: 1.25rem;
    }
    
    .door-content h3,
    .platform-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .door-description,
    .platform-description {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    
    /* Кнопка прокрутки вверх */
    .scroll-to-top-btn,
    button[style*="scroll"] {
        width: 50px !important;
        height: 50px !important;
        bottom: calc(20px + var(--safe-area-inset-bottom)) !important;
        right: calc(15px + var(--safe-area-inset-right)) !important;
        font-size: 1.1rem !important;
    }
    
    /* Улучшения для карточек услуг на странице ремонта */
    .repair-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .repair-card {
        padding: 2rem 1.5rem !important;
        border-radius: 20px;
    }
    
    .repair-icon {
        width: 80px !important;
        height: 80px !important;
        font-size: 2rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .repair-card h3 {
        font-size: 1.4rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .repair-services li {
        font-size: 0.95rem !important;
        padding: 0.6rem 0 !important;
        padding-left: 2rem !important;
    }
    
    .repair-price {
        font-size: 1.5rem !important;
        padding: 0.875rem 1.75rem !important;
        margin-top: 1.5rem;
    }
    
    .work-process {
        padding: 2.5rem 1.5rem !important;
        border-radius: 20px;
        margin: 3rem 0;
    }
    
    .work-process h3 {
        font-size: 1.75rem !important;
        margin-bottom: 2.5rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .step {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .step-number {
        width: 55px;
        height: 55px;
        font-size: 1.35rem;
    }
    
    .step-content h4 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .step-content p {
        font-size: 0.95rem;
    }
    
    /* Улучшения для больших кнопок на странице услуг */
    .section-header .btn-large {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1.25rem 2rem !important;
        font-size: 1rem !important;
        border-radius: 50px !important;
        margin-bottom: 1rem;
    }
    
    /* Улучшения для карточек аксессуаров */
    .remotes-grid,
    .devices-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }
    
    .remote-card,
    .device-card {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
    }
    
    .remote-image,
    .device-image {
        height: 180px;
        border-radius: 12px;
        margin-bottom: 1.25rem;
    }
    
        /* Оптимизация тач-интерфейса */
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    a, button, .btn, .nav-link, .catalog-item, .gate-item, .service-card {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
        cursor: pointer;
    }
    
    input, textarea, select {
        -webkit-user-select: text;
        user-select: text;
    }
    
    /* Улучшенная прокрутка */
    body {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Улучшение производительности на мобильных */
    .catalog-item,
    .gate-item,
    .service-card,
    .portfolio-item {
        will-change: transform;
        transform: translateZ(0);
        backface-visibility: hidden;
    }
    
    /* Оптимизация для очень маленьких экранов */
    @media (max-width: 360px) {
        .hero-title {
            font-size: 1.75rem;
        }
        
        .section-header h2 {
            font-size: 1.5rem;
        }
        
        .btn {
            padding: 14px 20px;
            font-size: 0.95rem;
        }
        
        .container {
            padding: 0 12px;
        }
        
        .nav-logo h2 {
            font-size: 1rem;
        }
        
        .logo-img {
            height: 40px;
        }
        
        /* Дополнительные улучшения для страницы О нас на маленьких экранах */
        .about-title {
            font-size: 1.35rem !important;
        }
        
        .about-subtitle {
            font-size: 0.9rem !important;
        }
        
        .section-content h3 {
            font-size: 1.15rem !important;
        }
        
        .section-content p {
            font-size: 0.9rem !important;
        }
        
        .benefit-item {
            padding: 0.875rem 0.75rem !important;
        }
        
        .benefit-item span {
            font-size: 0.85rem !important;
        }
        
        .logo-container {
            width: 150px !important;
            height: 150px !important;
        }
        
        .about-logo {
            width: 130px !important;
            max-width: 130px !important;
        }
        
        .stat-item {
            padding: 1rem 0.875rem !important;
        }
        
        .stat-icon {
            width: 45px !important;
            height: 45px !important;
        }
        
        .stat-number {
            font-size: 1.5rem !important;
        }
        
        /* Дополнительные улучшения для главной страницы на маленьких экранах */
        .hero-title {
            font-size: 1.5rem !important;
        }
        
        .hero-subtitle {
            font-size: 0.9rem !important;
        }
        
        .floating-card {
            padding: 1.25rem 1rem !important;
        }
        
        .floating-card i {
            font-size: 1.5rem !important;
        }
        
        .floating-card h3 {
            font-size: 1rem !important;
        }
        
        .floating-card p {
            font-size: 0.85rem !important;
        }
        
        .service-card {
            padding: 1.5rem 1.25rem !important;
        }
        
        .service-icon {
            width: 60px !important;
            height: 60px !important;
            font-size: 1.5rem !important;
        }
        
        .service-card h3 {
            font-size: 1.1rem !important;
        }
        
        .service-card p {
            font-size: 0.9rem !important;
        }
        
        .contact-item {
            padding: 1.25rem 1rem !important;
        }
        
        .contact-item i {
            font-size: 1.2rem !important;
            width: 30px !important;
        }
        
        .contact-item h4 {
            font-size: 1rem !important;
        }
        
        .contact-item p {
            font-size: 0.9rem !important;
        }
    }
    
    /* Улучшение для пейзажной ориентации */
    @media (max-width: 767px) and (orientation: landscape) {
        .hero {
            min-height: auto;
            padding: 2rem 0;
        }
        
        .floating-card {
            display: none;
        }
        
        .navbar {
            height: 60px;
        }
        
        .nav-container {
            height: 60px;
        }
        
        .nav-menu {
            top: 60px;
        }
    }
    
    /* Улучшенная прокрутка для iOS */
    @supports (-webkit-overflow-scrolling: touch) {
        .nav-menu,
        .portfolio-grid,
        .catalog-grid,
        .services-grid,
        .contact-content {
            -webkit-overflow-scrolling: touch;
        }
    }
    
    /* Предотвращение масштабирования при двойном тапе на iOS */
    html {
        touch-action: manipulation;
    }
    
    /* Улучшенная производительность на мобильных */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }
    
    /* Улучшенные анимации для мобильных - оптимизация производительности */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
    
    /* Футер без анимаций */
}

/* Cookie уведомление */
.cookie-banner {
    position: fixed;
    bottom: -300px;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
    border-top: 2px solid var(--border-color);
    padding: 1.5rem 2rem;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-banner::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    opacity: 0.6;
    z-index: -1;
    filter: blur(4px);
}

/* Particles фон для cookie баннера */
.cookie-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.cookie-particle {
    position: absolute;
    background: radial-gradient(circle, rgba(194, 53, 43, 0.8), transparent);
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100%) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100%) translateX(var(--tx)) scale(1);
        opacity: 0;
    }
}

.cookie-particle:nth-child(1) { left: 10%; width: 4px; height: 4px; animation-duration: 8s; animation-delay: 0s; --tx: 20px; }
.cookie-particle:nth-child(2) { left: 20%; width: 6px; height: 6px; animation-duration: 10s; animation-delay: 1s; --tx: -30px; }
.cookie-particle:nth-child(3) { left: 30%; width: 3px; height: 3px; animation-duration: 7s; animation-delay: 2s; --tx: 15px; }
.cookie-particle:nth-child(4) { left: 40%; width: 5px; height: 5px; animation-duration: 9s; animation-delay: 0.5s; --tx: -20px; }
.cookie-particle:nth-child(5) { left: 50%; width: 4px; height: 4px; animation-duration: 11s; animation-delay: 1.5s; --tx: 25px; }
.cookie-particle:nth-child(6) { left: 60%; width: 6px; height: 6px; animation-duration: 8s; animation-delay: 2.5s; --tx: -15px; }
.cookie-particle:nth-child(7) { left: 70%; width: 3px; height: 3px; animation-duration: 10s; animation-delay: 0.8s; --tx: 30px; }
.cookie-particle:nth-child(8) { left: 80%; width: 5px; height: 5px; animation-duration: 9s; animation-delay: 1.8s; --tx: -25px; }
.cookie-particle:nth-child(9) { left: 90%; width: 4px; height: 4px; animation-duration: 7s; animation-delay: 2.2s; --tx: 20px; }
.cookie-particle:nth-child(10) { left: 15%; width: 6px; height: 6px; animation-duration: 12s; animation-delay: 3s; --tx: -35px; }
.cookie-particle:nth-child(11) { left: 25%; width: 3px; height: 3px; animation-duration: 8s; animation-delay: 0.3s; --tx: 18px; }
.cookie-particle:nth-child(12) { left: 35%; width: 5px; height: 5px; animation-duration: 10s; animation-delay: 1.2s; --tx: -22px; }
.cookie-particle:nth-child(13) { left: 45%; width: 4px; height: 4px; animation-duration: 9s; animation-delay: 2.8s; --tx: 28px; }
.cookie-particle:nth-child(14) { left: 55%; width: 6px; height: 6px; animation-duration: 11s; animation-delay: 0.6s; --tx: -18px; }
.cookie-particle:nth-child(15) { left: 65%; width: 3px; height: 3px; animation-duration: 7s; animation-delay: 1.9s; --tx: 32px; }
.cookie-particle:nth-child(16) { left: 75%; width: 5px; height: 5px; animation-duration: 10s; animation-delay: 2.6s; --tx: -28px; }
.cookie-particle:nth-child(17) { left: 85%; width: 4px; height: 4px; animation-duration: 8s; animation-delay: 0.9s; --tx: 22px; }
.cookie-particle:nth-child(18) { left: 95%; width: 6px; height: 6px; animation-duration: 12s; animation-delay: 3.2s; --tx: -30px; }
.cookie-particle:nth-child(19) { left: 5%; width: 3px; height: 3px; animation-duration: 9s; animation-delay: 1.4s; --tx: 26px; }
.cookie-particle:nth-child(20) { left: 95%; width: 5px; height: 5px; animation-duration: 11s; animation-delay: 2.4s; --tx: -24px; }

.cookie-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.cookie-icon {
    font-size: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
    animation: cookieBounce 2s ease-in-out infinite;
}

@keyframes cookieBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(-5deg); }
    75% { transform: translateY(-5px) rotate(5deg); }
}

.cookie-text {
    flex: 1;
}

.cookie-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.cookie-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.cookie-text a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.cookie-text a:hover {
    text-decoration: underline;
    filter: brightness(1.2);
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(194, 53, 43, 0.3);
    position: relative;
    overflow: hidden;
}

.cookie-btn-accept::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cookie-btn-accept:hover::before {
    left: 100%;
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(194, 53, 43, 0.4);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.cookie-btn-decline:hover {
    background: var(--dark-surface-light);
    border-color: var(--primary-color);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Мобильная адаптация cookie баннера */
@media (max-width: 968px) {
    .cookie-banner-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: stretch;
    }
    
    .cookie-btn {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 1.25rem 1.5rem;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .cookie-icon {
        font-size: 2.5rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 1rem 1.25rem;
    }
    
    .cookie-text h4 {
        font-size: 1rem;
    }
    
    .cookie-text p {
        font-size: 0.85rem;
    }
    
    .cookie-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Калькулятор стоимости */
.price-calculator {
    background: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-surface-light) 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.price-calculator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    opacity: 0.8;
}

.calculator-header {
    text-align: center;
    margin-bottom: 2rem;
}

.calculator-header i {
    font-size: 3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: block;
}

.calculator-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.calculator-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.calculator-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.calc-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calc-group label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.calc-dimensions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.calc-input {
    padding: 12px 16px;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.calc-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(194, 53, 43, 0.1);
}

.calc-input:hover {
    border-color: var(--primary-color);
}

.calc-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.calc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0.75rem;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.calc-checkbox-label:hover {
    border-color: var(--primary-color);
    background: var(--dark-surface-light);
}

.calc-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.calc-btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 14px 24px;
    font-size: 1.05rem;
}

.calc-result {
    margin-top: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    animation: slideInUp 0.5s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.result-header i {
    font-size: 1.5rem;
    color: #10b981;
}

.result-header h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 0;
}

.result-price {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.2;
}

.result-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.breakdown-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.result-details {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    line-height: 1.6;
}

.result-note {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid #f59e0b;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.result-note i {
    color: #f59e0b;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.result-note p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.result-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.result-actions .btn {
    width: 100%;
}

/* Адаптация калькулятора для мобильных */
@media (max-width: 768px) {
    .price-calculator {
        padding: 1.5rem;
    }
    
    .calculator-header h3 {
        font-size: 1.5rem;
    }
    
    .calculator-header i {
        font-size: 2.5rem;
    }
    
    .calc-dimensions {
        grid-template-columns: 1fr;
    }
    
    .result-price {
        font-size: 2.25rem;
    }
    
    .result-actions {
        grid-template-columns: 1fr;
    }
}

/* Дополнительные улучшения для средних экранов (планшеты) */
@media (min-width: 481px) and (max-width: 767px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .gates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .section-header h2 {
        font-size: 1.85rem;
    }
}


/* ===== AUTH СТРАНИЦА ===== */
.auth-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-surface) 100%);
  padding: 2rem 0;
}

.auth-container {
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

.auth-form {
  background: var(--dark-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  animation: slideInUp 0.5s ease;
}

.auth-form.hidden {
  display: none;
}

.auth-form h1 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.auth-form .form-group {
  margin-bottom: 1.5rem;
}

.auth-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.auth-form input,
.auth-form select {
  width: 100%;
  padding: 0.75rem;
  background: var(--dark-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.auth-form input:focus,
.auth-form select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(194, 53, 43, 0.3);
}

.auth-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.auth-form button {
  width: 100%;
  margin-top: 1rem;
}

.auth-toggle {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-secondary);
}

.auth-toggle a {
  color: var(--primary-color);
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
}

.auth-toggle a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .auth-form {
    padding: 1.5rem;
  }
  
  .auth-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* ===== ЛИЧНЫЙ КАБИНЕТ ===== */
.cabinet-hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-surface) 100%);
  padding: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cabinet-wrapper {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.cabinet-sidebar {
  background: var(--dark-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.user-card {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.user-avatar {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  color: white;
}

.user-card h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.user-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.cabinet-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cabinet-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.cabinet-menu-item:hover,
.cabinet-menu-item.active {
  background: rgba(194, 53, 43, 0.1);
  color: var(--primary-color);
}

.cabinet-content {
  background: var(--dark-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
}

.cabinet-tab {
  display: none;
  animation: fadeIn 0.3s ease;
}

.cabinet-tab.active {
  display: block;
}

.cabinet-tab h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.cabinet-form {
  max-width: 600px;
}

.cabinet-form .form-group {
  margin-bottom: 1.5rem;
}

.cabinet-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.cabinet-form input,
.cabinet-form select,
.cabinet-form textarea {
  width: 100%;
  padding: 0.75rem;
  background: var(--dark-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.cabinet-form input:focus,
.cabinet-form select:focus,
.cabinet-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(194, 53, 43, 0.3);
}

.cabinet-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cabinet-form button {
  margin-top: 1rem;
}

/* Заказы */
.orders-list {
  display: grid;
  gap: 1.5rem;
}

.order-card {
  background: var(--dark-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.order-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(194, 53, 43, 0.2);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.order-header h3 {
  color: var(--text-primary);
  margin: 0;
}

.order-status {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-new {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.status-in_progress {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.status-completed {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.status-cancelled {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.order-details {
  margin-bottom: 1rem;
}

.order-details p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.order-details strong {
  color: var(--text-primary);
}

.order-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.order-actions .btn {
  flex: 1;
  padding: 0.75rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .cabinet-wrapper {
    grid-template-columns: 1fr;
  }
  
  .cabinet-sidebar {
    position: static;
  }
  
  .cabinet-form .form-row {
    grid-template-columns: 1fr;
  }
  
  .order-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .order-actions {
    flex-direction: column;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


/* Contact Form Styles */
.contact-form-section {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem 0;
}

.contact-form-section h3 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  font-size: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

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

  .contact-form-section {
    padding: 1.5rem;
  }
}


/* Auth buttons in navbar */
.nav-auth,
.nav-cabinet {
  margin-left: auto;
}

.nav-auth .nav-link,
.nav-cabinet .nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-auth .nav-link:hover,
.nav-cabinet .nav-link:hover {
  color: var(--primary-color);
  background: rgba(59, 130, 246, 0.1);
}

@media (max-width: 768px) {
  .nav-auth,
  .nav-cabinet {
    margin-left: 0;
    margin-top: 1rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
  }

  .nav-auth .nav-link,
  .nav-cabinet .nav-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
  }
}


/* Cabinet Mobile Styles */
@media (max-width: 768px) {
  .cabinet-wrapper {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cabinet-sidebar {
    position: static;
    top: auto;
  }

  .cabinet-hero {
    padding: 1rem 0;
  }
}


/* Cabinet Tab Animation */
.cabinet-tab {
  display: none;
  opacity: 0;
  transform: translateY(10px);
}

.cabinet-tab.active {
  display: block;
  animation: tabFadeIn 0.6s ease-out forwards;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cabinet Menu Item Active Animation */
.cabinet-menu-item {
  position: relative;
  transition: all 0.3s ease;
}

.cabinet-menu-item.active {
  transition: all 0.3s ease;
}



/* Modal Styles */
#orderModal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

#orderModal.active {
  display: flex !important;
  animation: modalBackdropIn 0.3s ease-out;
}

#orderModal > div {
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes modalBackdropIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#orderModal h3 {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.5rem;
}

#orderModal label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

#orderModal input,
#orderModal select,
#orderModal textarea {
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

#orderModal input:focus,
#orderModal select:focus,
#orderModal textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(194, 53, 43, 0.1);
  transform: translateY(-2px);
}

#orderModal small {
  font-size: 0.85rem;
  opacity: 0.8;
}

#orderModal .btn {
  transition: all 0.3s ease;
  font-weight: 600;
}

#orderModal .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#orderModal .btn-primary {
  background: var(--gradient);
  border: none;
}

#orderModal .btn-outline {
  border: 2px solid var(--border-color);
  color: var(--text-primary);
}

#orderModal .btn-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Close button animation */
#orderModal button[onclick="closeOrderModal()"] {
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

#orderModal button[onclick="closeOrderModal()"]:hover {
  background: rgba(194, 53, 43, 0.1);
  color: var(--primary-color);
  transform: rotate(90deg);
}


/* Admin Panel Mobile Styles */
@media (max-width: 768px) {
  /* Modal */
  #orderModal {
    padding: 0;
    align-items: flex-end;
  }

  #orderModal.active {
    display: flex !important;
  }

  #orderModal > div {
    max-width: 100%;
    width: 100%;
    max-height: 95vh;
    border-radius: 16px 16px 0 0;
    margin-top: auto;
    animation: modalSlideInMobile 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow-y: auto;
  }

  @keyframes modalSlideInMobile {
    from {
      opacity: 0;
      transform: translateY(100%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  #orderModal > div {
    padding: 1.5rem;
  }

  #orderModal h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  #orderModal form {
    gap: 1rem;
  }

  #orderModal input,
  #orderModal select,
  #orderModal textarea {
    padding: 0.75rem;
    font-size: 16px;
    border-radius: 8px;
  }

  #orderModal .btn {
    padding: 0.75rem;
    font-size: 0.95rem;
    min-height: 44px;
  }

  /* Admin Stats Grid */
  .admin-stats-grid {
    grid-template-columns: 1fr !important;
  }

  /* Cabinet wrapper */
  .cabinet-wrapper {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cabinet-sidebar {
    position: static;
    top: auto;
    border-radius: 12px;
    margin-bottom: 1rem;
  }

  .cabinet-content {
    border-radius: 12px;
    padding: 1.5rem;
  }

  .cabinet-tab h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  /* Table Responsive */
  #usersList table {
    font-size: 0.85rem;
    width: 100%;
  }

  #usersList thead {
    display: none;
  }

  #usersList tbody tr {
    display: block;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--dark-bg);
  }

  #usersList td {
    display: block;
    padding: 0.5rem 0;
    text-align: left;
  }

  #usersList td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }

  #usersList .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    width: 100%;
    margin-top: 0.5rem;
  }

  /* Admin Lists */
  #adminsList,
  #adminOrdersList,
  #pageStatsList {
    max-height: 400px;
    overflow-y: auto;
  }

  /* Form Grid */
  #orderModal form > div {
    grid-template-columns: 1fr !important;
  }

  /* File drop zone */
  #fileDropZone {
    padding: 1rem;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #fileDropZone div {
    font-size: 0.9rem;
  }

  #fileDropZone div > div:first-child {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  #orderModal > div {
    padding: 1rem;
    max-height: 90vh;
  }

  #orderModal h3 {
    font-size: 1.1rem;
  }

  #orderModal p {
    font-size: 0.85rem;
  }

  #orderModal label {
    font-size: 0.9rem;
  }

  #orderModal input,
  #orderModal select,
  #orderModal textarea {
    padding: 0.65rem;
    font-size: 16px;
  }

  .cabinet-content {
    padding: 1rem;
  }

  .cabinet-tab h2 {
    font-size: 1.25rem;
  }

  .cabinet-form .form-row {
    grid-template-columns: 1fr;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  #usersList tbody tr {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }

  #usersList td {
    padding: 0.4rem 0;
    font-size: 0.85rem;
  }

  .btn {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  #orderModal > div {
    border-radius: 12px 12px 0 0;
  }

  #orderModal > div {
    padding: 1rem;
  }

  #orderModal h3 {
    font-size: 1.1rem;
  }

  #orderModal p {
    font-size: 0.85rem;
  }

  #orderModal label {
    font-size: 0.9rem;
  }

  #orderModal input,
  #orderModal select,
  #orderModal textarea {
    font-size: 16px;
  }

  #fileDropZone {
    padding: 1rem;
  }

  #fileDropZone div {
    font-size: 1.5rem;
  }

  #orderModal .btn {
    padding: 0.6rem;
    font-size: 0.9rem;
  }

  /* Close button */
  #orderModal button[onclick="closeOrderModal()"] {
    width: 28px;
    height: 28px;
    font-size: 1.3rem;
  }
}
