/* Экстремально креативный дизайн 2024 */
:root {
    --primary-color: #1a1a1a;
    --accent-color: #ff4444;
    --text-color: #333;
    --text-secondary: #666;
    --background: #ffffff;
    --surface: #f8f9fa;
    --border: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.06);
    --shadow-hover: rgba(0, 0, 0, 0.12);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --max-width: 1200px;
    --font-size-h1: clamp(2.5rem, 8vw, 4rem);
    --font-size-h2: clamp(1.8rem, 5vw, 2.5rem);
    --z-fixed: 1000;
    --z-modal: 2000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background);
    overflow-x: hidden;
    cursor: none;
    width: 100vw;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Мобильное меню скрыто на десктопе */
.mobile-menu {
    display: none;
}

/* Интерактивный курсор */
.custom-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    top: 0;
    left: 0;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    transition: all 0s ease;
    mix-blend-mode: difference;
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    transition: all 0.01 s ease;
    opacity: 0.5;
}

.cursor-ring.active {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0.8;
}

/* Floating элементы */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.1), rgba(26, 26, 26, 0.1));
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 20%;
    animation-delay: -5s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 20%;
    animation-delay: -10s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    top: 40%;
    right: 10%;
    animation-delay: -15s;
}

.shape-5 {
    width: 40px;
    height: 40px;
    bottom: 20%;
    right: 40%;
    animation-delay: -8s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(-40px) rotate(180deg); }
    75% { transform: translateY(-20px) rotate(270deg); }
}

/* Креативная навигация */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    width: 80px;
    height: 100vh;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    z-index: var(--z-fixed);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md) 0;
    border-left: 1px solid rgba(255, 68, 68, 0.2);
}

.navbar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(255, 68, 68, 0.8), transparent);
    border-radius: 0 3px 3px 0;
    opacity: 0.8;
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 0.4; 
        transform: translateY(-50%) scaleY(0.8);
        width: 3px;
    }
    50% { 
        opacity: 1; 
        transform: translateY(-50%) scaleY(1.2);
        width: 4px;
    }
}

.navbar:hover {
    width: 250px;
    background: rgba(26, 26, 26, 0.98);
    border-left: 1px solid rgba(255, 68, 68, 0.4);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.navbar:hover::before {
    opacity: 0;
    animation: none;
}

/* Добавляем subtle подсказку для hover */
.navbar::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 30%;
    width: 1px;
    height: 40%;
    background: linear-gradient(to bottom, 
        transparent, 
        rgba(255, 68, 68, 0.3), 
        rgba(255, 68, 68, 0.6), 
        rgba(255, 68, 68, 0.3), 
        transparent
    );
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.navbar:hover::after {
    opacity: 0;
}

.nav-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    align-items: center;
}

.nav-logo {
    margin-bottom: var(--spacing-lg);
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    transition: var(--transition);
}

.navbar:hover .nav-logo {
    margin-bottom: var(--spacing-xl);
}

.nav-logo .logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.navbar:hover .nav-logo .logo {
    transform: scale(1.1) rotate(5deg);
}

.logo-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 68, 68, 0.3), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
}

.navbar:hover .nav-logo .logo-glow {
    opacity: 1;
    transform: scale(1.3);
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    width: 100%;
    flex: 1;
    align-items: center;
    padding: 0 10px;
}

.navbar:hover .nav-menu {
    padding: 0 var(--spacing-sm);
}

/* Стили для скроллбара в навигации */
.nav-menu::-webkit-scrollbar {
    width: 4px;
}

.nav-menu::-webkit-scrollbar-track {
    background: transparent;
}

.nav-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 68, 68, 0.3);
    border-radius: 2px;
}

.nav-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 68, 68, 0.5);
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    padding: var(--spacing-sm);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    opacity: 0;
    animation: fadeInNavLink 0.6s ease-out forwards;
}

.navbar:hover .nav-link {
    width: 220px;
    height: 80px;
    justify-content: flex-start;
    border-radius: var(--border-radius);
}

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

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

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-color), transparent);
    transform: scale(0);
    transition: var(--transition);
    border-radius: var(--border-radius);
    z-index: -1;
}

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

.nav-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    opacity: 0;
    max-width: 0;
    transition: all 0.3s ease;
}

.navbar:hover .nav-content {
    opacity: 1;
    max-width: 180px;
    transition-delay: 0.1s;
}

.nav-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.2;
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portfolio{
    overflow: hidden;
}

.nav-link:hover .nav-text {
    color: var(--accent-color);
}

.nav-link.active {
    /* background: rgba(255, 68, 68, 0.15);
    box-shadow: inset 0 0 0 2px rgba(255, 68, 68, 0.5); */
    /* width: 100%;
    justify-content: space-evenly; */
    /* border-radius: 5px; */
}

.nav-link.active .nav-text {
    color: var(--accent-color);
}

.navbar:hover .nav-link.active .nav-subtitle {
    color: rgba(255, 68, 68, 0.8);
    opacity: 1;
    /* max-height: 20px; */
    transform: translateY(0);
}

.nav-link.active .home-icon::before, .nav-link.active .home-icon::after {
    background: var(--accent-color);
}

.nav-link.active .about-icon::before {
    border-color: var(--accent-color);
}

.nav-link.active .about-icon::after {
    background: var(--accent-color);
    box-shadow: 0 3px 0 var(--accent-color);
}

.nav-link.active .portfolio-icon::before {
    border-color: var(--accent-color);
}

.nav-link.active .portfolio-icon::after {
    background: var(--accent-color);
}

.nav-link.active .reviews-icon::before {
    border-bottom-color: var(--accent-color);
}

.nav-link.active .reviews-icon::after {
    background: var(--accent-color);
}

.nav-link.active .contacts-icon::before {
    border-color: var(--accent-color);
}

.nav-link.active .contacts-icon::after {
    background: var(--accent-color);
}
    

.nav-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    font-weight: 400;
    line-height: 1.1;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
}

.navbar:hover .nav-subtitle {
    opacity: 1;
    max-height: 20px;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.navbar:hover .nav-link:hover .nav-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.nav-icon {
    width: 36px;
    height: 36px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}

.navbar:hover .nav-icon {
    width: 32px;
    height: 32px;
}

.nav-link:hover .nav-icon {
    transform: scale(1.2);
}

/* Креативные иконки */
.home-icon::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 19px;
    background: white;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: 6px;
    left: 7px;
    transition: all 0.3s ease;
}

.home-icon::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: white;
    bottom: 6px;
    left: 11px;
    transition: all 0.3s ease;
}

/* Адаптация иконок при hover navbar */
.navbar:hover .home-icon::before {
    width: 18px;
    height: 16px;
    top: 5px;
    left: 7px;
}

.navbar:hover .home-icon::after {
    width: 12px;
    height: 12px;
    bottom: 5px;
    left: 10px;
}

.about-icon::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid white;
    border-radius: 4px;
    top: 4px;
    left: 6px;
    transition: all 0.3s ease;
}

.about-icon::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 2px;
    background: white;
    top: 12px;
    left: 11px;
    box-shadow: 0 4px 0 white;
    transition: all 0.3s ease;
}

.navbar:hover .about-icon::before {
    width: 20px;
    height: 20px;
    top: 4px;
    left: 6px;
}

.navbar:hover .about-icon::after {
    width: 12px;
    top: 10px;
    left: 10px;
    box-shadow: 0 3px 0 white;
}

.portfolio-icon::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 20px;
    border: 2px solid white;
    border-radius: 4px;
    top: 6px;
    left: 6px;
    transition: all 0.3s ease;
}

.portfolio-icon::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 12px;
    background: white;
    bottom: 10px;
    left: 10px;
    transition: all 0.3s ease;
}

.navbar:hover .portfolio-icon::before {
    width: 20px;
    height: 16px;
    top: 6px;
    left: 6px;
}

.navbar:hover .portfolio-icon::after {
    width: 12px;
    height: 10px;
    bottom: 8px;
    left: 10px;
}

.reviews-icon::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 16px solid white;
    top: 6px;
    left: 6px;
    transition: all 0.3s ease;
}

.reviews-icon::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    top: 14px;
    left: 14px;
    transition: all 0.3s ease;
}

.navbar:hover .reviews-icon::before {
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 14px solid white;
    top: 6px;
    left: 6px;
}

.navbar:hover .reviews-icon::after {
    width: 6px;
    height: 6px;
    top: 12px;
    left: 13px;
}

.contacts-icon::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2px solid white;
    border-radius: 50%;
    top: 5px;
    left: 7px;
    transition: all 0.3s ease;
}

.contacts-icon::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    top: 10px;
    left: 12px;
    transition: all 0.3s ease;
}

.navbar:hover .contacts-icon::before {
    width: 18px;
    height: 18px;
    top: 5px;
    left: 7px;
}

.navbar:hover .contacts-icon::after {
    width: 8px;
    height: 8px;
    top: 10px;
    left: 12px;
}

.nav-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    width: 50px;
    height: 50px;
    background: rgba(255, 68, 68, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 3px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.nav-toggle:hover {
    background: rgba(255, 68, 68, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 68, 68, 0.4);
}

.nav-toggle.active {
    background: rgba(255, 68, 68, 1);
    transform: rotate(90deg);
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 4px auto;
    transition: var(--transition);
    border-radius: 2px;
    position: relative;
}

.hamburger-line:first-child {
    margin-top: 0;
}

.hamburger-line:last-child {
    margin-bottom: 0;
}

.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Основной контент */
main {
    margin-right: 80px;
}

/* Креативный герой */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    overflow: hidden;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 68, 68, 0.1), transparent),
                radial-gradient(circle at 70% 70%, rgba(26, 26, 26, 0.05), transparent);
    animation: bgShift 10s infinite alternate;
}

@keyframes bgShift {
    0% { transform: translateX(-20px) translateY(-20px); }
    100% { transform: translateX(20px) translateY(20px); }
}

.hero-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: var(--spacing-xl) 0;
}

.logo-container {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.hero-logo {
    height: 120px;
    width: auto;
    opacity: 0;
    animation: logoAppear 1s ease-out 0.2s forwards;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

.logo-reflection {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) scaleY(-1);
    width: 120px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), transparent);
    opacity: 0.3;
    border-radius: 50%;
    filter: blur(10px);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: var(--font-size-h1);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    position: relative;
}

.text-morph {
    display: inline-block;
    opacity: 0;
    animation: textMorph 1s ease-out 0.4s forwards;
}

.title-decoration {
    position: absolute;
    /* bottom: -20px; */
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    animation: decorationGrow 0.8s ease-out 1.2s forwards;
    transform-origin: center;
    scale: 0;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    position: relative;
}

.typing-text {
    opacity: 0;
    animation: typing 1s ease-out 0.6s forwards;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards;
}

.morphing-btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--accent-color);
    color: white;
    min-width: 150px;
}

.morphing-btn::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: var(--transition);
}

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

.morphing-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 68, 68, 0.4);
}

.morphing-btn.secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.morphing-btn.secondary:hover {
    background: var(--accent-color);
    color: white;
}

.btn-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    opacity: 0;
    animation: particle 2s infinite;
}

@keyframes particle {
    0% { opacity: 0; transform: translate(0, 0) scale(0); }
    50% { opacity: 1; transform: translate(20px, -20px) scale(1); }
    100% { opacity: 0; transform: translate(40px, -40px) scale(0); }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-wheel {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-secondary);
    border-radius: 25px;
    position: relative;
}

.scroll-wheel::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 10px;
    background: var(--text-secondary);
    border-radius: 2px;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(20px); opacity: 0; }
}

/* Анимации */
@keyframes logoAppear {
    0% { opacity: 0; transform: translateY(-30px) scale(0.8); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes textMorph {
    0% { opacity: 0; transform: translateY(-20px) rotateX(-90deg); }
    100% { opacity: 1; transform: translateY(0) rotateX(0deg); }
}

@keyframes decorationGrow {
    0% { scale: 0; }
    100% { scale: 1; }
}

@keyframes typing {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

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

/* Диагональные секции */
.section-diagonal {
    position: relative;
    margin: var(--spacing-xl) 0;
    transform: skewY(2deg);
    padding: var(--spacing-xl) 0;
}

.section-diagonal .container {
    transform: skewY(-2deg);
}

.section-diagonal.about {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.section-diagonal.reviews {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.section-bg-pattern {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,68,68,0.1)"/></svg>');
    background-size: 50px 50px;
    opacity: 0.5;
}

/* Обычные секции */
section:not(.section-diagonal) {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: var(--font-size-h2);
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.title-text {
    position: relative;
    z-index: 1;
}

.title-underline {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* CSS для остальных секций */

/* О компании */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    margin-top: var(--spacing-lg);
}

.about-text {
    position: relative;
}

.about-highlight {
    position: absolute;
    top: -60px;
    right: -30%;
    width: 200px;
    height: 200px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: var(--transition);
}

.about-highlight:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 30px 60px rgba(255, 68, 68, 0.2);
}

.highlight-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.1), transparent);
    border-radius: 50%;
}

.years {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.experience {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.highlight-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0;
    animation: highlightParticle 3s infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 30%;
    right: 20%;
    animation-delay: 1s;
}

.particle:nth-child(3) {
    bottom: 20%;
    left: 30%;
    animation-delay: 2s;
}

@keyframes highlightParticle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

.text-reveal {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.advantages {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.advantage-item {
    position: relative;
    padding: var(--spacing-md);
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    overflow: hidden;
}

.advantage-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(255, 68, 68, 0.15);
}

.advantage-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.advantage-item:hover::before {
    transform: scaleX(1);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 68, 68, 0.1), transparent);
    opacity: 0;
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.advantage-item:hover .card-glow {
    opacity: 1;
}

.advantage-icon {
    width: 60px;
    height: 60px;
    margin-bottom: var(--spacing-sm);
    position: relative;
    border-radius: 50%;
    background: rgba(255, 68, 68, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.advantage-item:hover .advantage-icon {
    transform: scale(1.2);
    background: rgba(255, 68, 68, 0.2);
}

.icon-shape {
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    border-radius: 50%;
    position: relative;
    transition: var(--transition);
}

.quality-icon .icon-shape {
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.time-icon .icon-shape {
    border-radius: 50%;
}

.time-icon .icon-shape::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 15px;
    background: white;
    transform: translate(-50%, -50%);
    border-radius: 1px;
}

.time-icon .icon-shape::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    background: white;
    transform: translate(-50%, -50%);
    border-radius: 1px;
}

.price-icon .icon-shape {
    clip-path: polygon(0% 0%, 100% 0%, 85% 50%, 100% 100%, 0% 100%, 15% 50%);
}

.partner-icon .icon-shape {
    clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);
}

.advantage-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

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

.about-image {
    position: relative;
    z-index: 1;
}

.image-frame {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.image-frame:hover {
    transform: scale(1.05);
    box-shadow: 0 30px 60px rgba(255, 68, 68, 0.2);
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.1), transparent);
    opacity: 0;
    transition: var(--transition);
}

.image-frame:hover .image-overlay {
    opacity: 1;
}

/* Портфолио фильтры */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-lg) 0;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 68, 68, 0.3);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    background: rgba(255, 68, 68, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 68, 68, 0.3);
}

/* Портфолио слайдер */
.portfolio-slider {
    position: relative;
    max-width: 1200px;
    margin: var(--spacing-lg) auto 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Прогресс-бар */
.slider-progress {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.progress-bar {
    width: 100px;
    height: 4px;
    background: rgba(255, 68, 68, 0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent-color);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.progress-timer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.timer-text {
    position: absolute;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 2;
}

.timer-circle {
    position: absolute;
    width: 40px;
    height: 40px;
}

.progress-circle {
    stroke-dasharray: 113;
    stroke-dashoffset: 113;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dashoffset 0.1s linear;
}

.portfolio-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.portfolio-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.portfolio-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.slide-image {
    flex: 1;
    max-width: 50%;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.slide-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-slide:hover .slide-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.2), rgba(26, 26, 26, 0.1));
    opacity: 0;
    transition: var(--transition);
}

.portfolio-slide:hover .image-overlay {
    opacity: 1;
}

/* Галерея в слайде */
.slide-gallery {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-slide:hover .slide-gallery {
    opacity: 1;
}

.gallery-thumbnails {
    display: flex;
    gap: 3px;
}

.gallery-thumbnails img {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 2px solid white;
    object-fit: cover;
}

.gallery-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.gallery-btn:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.slide-content {
    flex: 1;
    padding: var(--spacing-md);
}

/* Заголовок проекта */
.project-header {
    margin-bottom: var(--spacing-md);
}

.project-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.project-badges {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    flex-wrap: wrap;
}

.project-type {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

.project-type.tender {
    background: rgba(255, 68, 68, 0.1);
    color: var(--accent-color);
}

.project-type.corporate {
    background: rgba(68, 147, 255, 0.1);
    color: #4493ff;
}

.project-type.diplomatic {
    background: rgba(147, 68, 255, 0.1);
    color: #9344ff;
}

.project-year {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

/* Детали проекта */
.project-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm);
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.detail-value {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.detail-value.success {
    color: #28a745;
}

.detail-value.in-progress {
    color: #ffc107;
}

/* Кнопки действий */
.project-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.action-btn {
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn.primary {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 68, 68, 0.3);
}

.action-btn.primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 68, 68, 0.4);
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.action-btn.secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.action-btn.contact {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.action-btn.contact:hover {
    background: linear-gradient(45deg, #218838, #1c7a6b);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.slider-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--spacing-lg);
    padding: 0 var(--spacing-md);
}

.nav-btn {
    background: rgba(255, 68, 68, 0.1);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.5rem;
    font-weight: bold;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 68, 68, 0.3);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.slider-dots {
    display: flex;
    gap: var(--spacing-sm);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 68, 68, 0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.dot:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

/* Модальные окна */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: var(--transition);
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    max-width: 90vw;
    max-height: 90vh;
    width: 1000px;
    position: relative;
    overflow: hidden;
    transform: scale(0.9);
    transition: var(--transition);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10001;
    transition: var(--transition);
}

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

.modal-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.modal-badges {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.modal-body {
    padding: var(--spacing-lg);
    max-height: 60vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.modal-gallery .main-image {
    width: 100%;
    height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.modal-gallery .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-gallery .gallery-thumbnails {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.modal-gallery .gallery-thumbnails img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 2px solid transparent;
    object-fit: cover;
    cursor: pointer;
    transition: var(--transition);
}

.modal-gallery .gallery-thumbnails img:hover {
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.modal-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.modal-description p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.modal-details {
    margin-bottom: var(--spacing-md);
}

.modal-timeline {
    margin-bottom: var(--spacing-md);
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-md);
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
}

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

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

.timeline-item .timeline-date {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 500;
}

.modal-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border);
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-end;
}

.modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-btn.primary {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 68, 68, 0.3);
}

.modal-btn.primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 68, 68, 0.4);
}

.modal-btn.secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-color);
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.modal-btn.secondary:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Отзывы */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.review-card {
    position: relative;
    background: white;
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    overflow: hidden;
}

.review-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(255, 68, 68, 0.15);
}

.card-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
}

.quote-mark {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 68, 68, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.quote-mark::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.review-content {
    margin-bottom: var(--spacing-md);
    padding-left: 60px;
}

.review-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
}

.review-client strong {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.review-client span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.letter-badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.card-pattern {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at center, rgba(255, 68, 68, 0.1), transparent);
    border-radius: 50%;
    transform: translate(50%, 50%);
}

/* Контакты */
.contacts-departments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.department-card {
    background: white;
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.department-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(255, 68, 68, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.department-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 68, 68, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.department-card:hover .department-icon {
    background: rgba(255, 68, 68, 0.2);
    transform: scale(1.1);
}

.tender-icon .icon-shape {
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

.corporate-icon .icon-shape {
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    clip-path: polygon(0 0, 100% 0, 100% 75%, 75% 100%, 25% 100%, 0 75%);
}

.department-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

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

.department-contacts {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(255, 68, 68, 0.05);
}

.contact-item strong {
    color: var(--primary-color);
    font-weight: 600;
    min-width: 80px;
}

.contact-item a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-messengers {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.messenger-btn {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

.messenger-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.messenger-btn.whatsapp {
    background: #25d366;
}

.messenger-btn.telegram {
    background: #0088cc;
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.contacts-info {
    background: white;
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.info-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
}

.contacts-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.contact-details {
    margin-bottom: var(--spacing-md);
}

.contact-details .contact-item {
    display: block;
    margin-bottom: var(--spacing-sm);
}

.contact-details strong {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

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

.company-info {
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border);
}

.company-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
}

.bank-details {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border);
}

.bank-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.bank-details p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-form {
    background: white;
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.form-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
}

.contact-form h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.floating-label {
    position: relative;
    margin-bottom: var(--spacing-md);
}

.floating-label input,
.floating-label textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: transparent;
    position: relative;
    z-index: 1;
    font-family: inherit;
}

.floating-label textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
    overflow-y: auto;
}

.floating-label input:focus,
.floating-label textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.floating-label label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1rem;
    transition: var(--transition);
    pointer-events: none;
    /* background: white; */
    padding: 0 8px;
    z-index: 2;
}

.floating-label textarea + label {
    top: 20px;
    transform: translateY(0);
}

.floating-label input:focus + label,
.floating-label input:valid + label,
.floating-label textarea:focus + label,
.floating-label textarea:valid + label {
    top: 0;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 0.8rem;
}

.input-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.floating-label input:focus ~ .input-underline,
.floating-label textarea:focus ~ .input-underline {
    transform: scaleX(1);
}

.contact-form button {
    width: 100%;
    padding: 1rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.contact-form button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 68, 68, 0.3);
}

/* Интерактивные элементы */
.interactive-card {
    transition: var(--transition);
}

.interactive-card:hover {
    transform: translateY(-5px);
}

.floating-element {
    animation: floatElement 6s ease-in-out infinite;
}

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

/* Responsive Design */

/* Крупные десктопы */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-content {
        max-width: 1000px;
    }
    
    .about-content {
        grid-template-columns: 2.5fr 1fr;
        gap: var(--spacing-xl);
    }
    
    .advantages {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-slider {
        max-width: 1400px;
        padding: var(--spacing-lg);
    }
    
    .portfolio-slide {
        gap: var(--spacing-xl);
        padding: var(--spacing-xl);
    }
    
    .slide-image {
        max-width: 55%;
    }
    
    .slide-image img {
        height: 400px;
    }
    
    .slide-content h3 {
        font-size: 2rem;
    }
    
    .navbar {
        width: 90px;
    }
    
    .navbar:hover {
        width: 280px;
        background: rgba(26, 26, 26, 0.98);
        border-left: 1px solid rgba(255, 68, 68, 0.4);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }
    
    main {
        margin-right: 90px;
    }
    
    .nav-link {
        width: 100%;
        height: 65px;
    }
    
    .navbar:hover .nav-link {
        height: 85px;
    }
    
    .nav-text {
        font-size: 1rem;
    }
    
    .nav-subtitle {
        font-size: 0.75rem;
    }
}

/* Стандартные десктопы */
@media (max-width: 1399px) and (min-width: 1200px) {
    .navbar {
        width: 75px;
    }
    
    .navbar:hover {
        width: 230px;
        background: rgba(26, 26, 26, 0.98);
        border-left: 1px solid rgba(255, 68, 68, 0.4);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }
    
    main {
        margin-right: 75px;
    }
}

/* Планшеты и маленькие ноутбуки */
@media (max-width: 1199px) {
    .nav-toggle {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    /* Скрываем старую навигацию */
    .navbar {
        display: none;
    }
    
    /* Стильное мобильное меню */
    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(20px);
        z-index: 9999;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid rgba(255, 68, 68, 0.2);
        overflow-y: auto;
    }
    
    .mobile-menu.active {
        right: 0;
    }
    
    .mobile-nav-header {
        padding: 30px 20px 20px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 20px;
    }
    
    .mobile-logo {
        width: 60px;
        height: 60px;
        object-fit: contain;
        filter: brightness(0) invert(1);
        border-radius: 50%;
        padding: 10px;
        background: rgba(255, 68, 68, 0.1);
        border: 2px solid rgba(255, 68, 68, 0.3);
    }
    
    .mobile-nav-list {
        list-style: none;
        padding: 0;
        margin: 0;
        padding: 0 15px;
    }
    
    .mobile-nav-item {
        margin-bottom: 8px;
    }
    
    .mobile-nav-link {
        display: flex;
        align-items: center;
        padding: 18px 20px;
        color: white;
        text-decoration: none;
        border-radius: var(--border-radius);
        transition: all 0.3s ease;
        position: relative;
        gap: 15px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(45deg, var(--accent-color), transparent);
        transform: scale(0);
        transition: var(--transition);
        border-radius: var(--border-radius);
        z-index: -1;
    }
    
    .mobile-nav-link:hover::before,
    .mobile-nav-link.active::before {
        transform: scale(1);
    }
    
    .mobile-nav-link:hover,
    .mobile-nav-link.active {
        background: rgba(255, 68, 68, 0.1);
        border-color: rgba(255, 68, 68, 0.4);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(255, 68, 68, 0.2);
    }
    
    .mobile-nav-link .nav-icon {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }
    
    /* Оптимизированные иконки для мобильного меню */
    .mobile-menu .home-icon::before {
        width: 20px;
        height: 17px;
        top: 8px;
        left: 8px;
    }
    
    .mobile-menu .home-icon::after {
        width: 12px;
        height: 12px;
        bottom: 8px;
        left: 12px;
    }
    
    .mobile-menu .about-icon::before {
        width: 22px;
        height: 22px;
        top: 5px;
        left: 7px;
        border-width: 2px;
    }
    
    .mobile-menu .about-icon::after {
        width: 12px;
        height: 2px;
        top: 13px;
        left: 12px;
        box-shadow: 0 4px 0 white;
    }
    
    .mobile-menu .portfolio-icon::before {
        width: 22px;
        height: 18px;
        top: 7px;
        left: 7px;
        border-width: 2px;
    }
    
    .mobile-menu .portfolio-icon::after {
        width: 14px;
        height: 10px;
        bottom: 11px;
        left: 11px;
    }
    
    .mobile-menu .reviews-icon::before {
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 14px solid white;
        top: 8px;
        left: 8px;
    }
    
    .mobile-menu .reviews-icon::after {
        width: 6px;
        height: 6px;
        top: 16px;
        left: 15px;
    }
    
    .mobile-menu .contacts-icon::before {
        width: 20px;
        height: 20px;
        top: 6px;
        left: 8px;
        border-width: 2px;
    }
    
    .mobile-menu .contacts-icon::after {
        width: 10px;
        height: 10px;
        top: 11px;
        left: 13px;
    }
    
    .mobile-nav-content {
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    
    .mobile-nav-text {
        color: white;
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 2px;
        transition: var(--transition);
    }
    
    .mobile-nav-subtitle {
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.75rem;
        font-weight: 400;
        transition: var(--transition);
    }
    
    .mobile-nav-link:hover .mobile-nav-text {
        color: var(--accent-color);
    }
    
    .mobile-nav-link.active .mobile-nav-text {
        color: white !important;
        font-weight: 700 !important;
    }
    
    .mobile-nav-link:hover .mobile-nav-subtitle {
        color: rgba(255, 68, 68, 0.8) !important;
    }
    
    .mobile-nav-link.active .mobile-nav-subtitle {
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    /* Hover состояния иконок для мобильного меню */
    .mobile-nav-link:hover .home-icon::before, 
    .mobile-nav-link:hover .home-icon::after {
        background: var(--accent-color);
    }
    
    .mobile-nav-link:hover .about-icon::before {
        border-color: var(--accent-color);
    }
    
    .mobile-nav-link:hover .about-icon::after {
        background: var(--accent-color);
        box-shadow: 0 4px 0 var(--accent-color);
    }
    
    .mobile-nav-link:hover .portfolio-icon::before {
        border-color: var(--accent-color);
    }
    
    .mobile-nav-link:hover .portfolio-icon::after {
        background: var(--accent-color);
    }
    
    .mobile-nav-link:hover .reviews-icon::before {
        border-bottom-color: var(--accent-color);
        border-left-color: transparent;
        border-right-color: transparent;
    }
    
    .mobile-nav-link:hover .reviews-icon::after {
        background: var(--accent-color);
    }
    
    .mobile-nav-link:hover .contacts-icon::before {
        border-color: var(--accent-color);
    }
    
    .mobile-nav-link:hover .contacts-icon::after {
        background: var(--accent-color);
    }
    
    /* Активные состояния иконок - белые на красном фоне */
    .mobile-nav-link.active .home-icon::before, 
    .mobile-nav-link.active .home-icon::after {
        background: white !important;
    }
    
    .mobile-nav-link.active .about-icon::before {
        border-color: white !important;
    }
    
    .mobile-nav-link.active .about-icon::after {
        background: white !important;
        box-shadow: 0 4px 0 white !important;
    }
    
    .mobile-nav-link.active .portfolio-icon::before {
        border-color: white !important;
    }
    
    .mobile-nav-link.active .portfolio-icon::after {
        background: white !important;
    }
    
    .mobile-nav-link.active .reviews-icon::before {
        border-bottom-color: white !important;
        border-left-color: transparent !important;
        border-right-color: transparent !important;
    }
    
    .mobile-nav-link.active .reviews-icon::after {
        background: white !important;
    }
    
    .mobile-nav-link.active .contacts-icon::before {
        border-color: white !important;
    }
    
    .mobile-nav-link.active .contacts-icon::after {
        background: white !important;
    }
    
    main {
        margin-right: 0;
    }
    
    .hero-content {
        max-width: 700px;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .about-highlight {
        position: relative;
        top: 0;
        right: 0;
        margin: 0 auto var(--spacing-lg);
        width: 180px;
        height: 180px;
    }
    
    .contacts-content {
        grid-template-columns: 1fr;
    }
    
    .section-diagonal {
        transform: skewY(1.5deg);
    }
    
    .section-diagonal .container {
        transform: skewY(-1.5deg);
    }
}

/* Планшеты портретные */
@media (max-width: 991px) {
    .slider-progress{
        display: none;
    }
    .advantages {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .portfolio-filters {
        gap: var(--spacing-xs);
        margin: var(--spacing-md) 0;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .portfolio-slider {
        padding: var(--spacing-md);
    }
    
    .slider-progress {
        top: 10px;
        right: 10px;
        gap: var(--spacing-xs);
    }
    
    .progress-bar {
        width: 80px;
        height: 3px;
    }
    
    .timer-circle svg {
        width: 35px;
        height: 35px;
    }
    
    .timer-text {
        font-size: 0.8rem;
    }
    
    .portfolio-slide {
        flex-direction: column;
        gap: var(--spacing-md);
        padding: var(--spacing-md);
    }
    
    .slide-image {
        max-width: 100%;
        order: 1;
    }
    
    .slide-image img {
        height: 250px;
    }
    
    .slide-content {
        order: 2;
        text-align: center;
        padding: var(--spacing-sm);
    }
    
    .project-header h3 {
        font-size: 1.5rem;
    }
    
    .project-badges {
        justify-content: center;
    }
    
    .project-details {
        grid-template-columns: 1fr;
    }
    
    .project-actions {
        justify-content: center;
    }
    
    .action-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .modal-gallery .main-image {
        height: 200px;
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contacts-departments {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-logo {
        height: 100px;
    }
    
    .hero h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
}

/* Большие мобильные устройства */
@media (max-width: 767px) {
    .nav-toggle {
        display: flex !important;
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .hamburger-line {
        width: 20px;
        height: 2px;
    }
    
    .nav-link {
        width: 90%;
        height: 70px;
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-xs);
        opacity: 1;
        animation: none;
    }
    
    /* На мобильных всегда показываем подзаголовки */
    .nav-subtitle {
        opacity: 1;
        max-height: 20px;
        transform: translateY(0);
    }
    
    /* На мобильных всегда показываем nav-content */
    .nav-content {
        opacity: 1 !important;
        max-width: none !important;
        transition-delay: 0s !important;
    }
    
    .nav-text {
        font-size: 0.9rem;
    }
    
    .nav-subtitle {
        font-size: 0.7rem;
    }
    
    .nav-icon {
        width: 28px;
        height: 28px;
    }
    
    /* Адаптация иконок для мобильных */
    .home-icon::before {
        width: 18px;
        height: 15px;
        top: 4px;
        left: 5px;
    }
    
    .home-icon::after {
        width: 12px;
        height: 12px;
        bottom: 4px;
        left: 8px;
    }
    
    .about-icon::before {
        width: 20px;
        height: 20px;
        top: 2px;
        left: 4px;
    }
    
    .about-icon::after {
        width: 12px;
        top: 8px;
        left: 8px;
        box-shadow: 0 3px 0 white;
    }
    
    .portfolio-icon::before {
        width: 20px;
        height: 16px;
        top: 4px;
        left: 4px;
    }
    
    .portfolio-icon::after {
        width: 12px;
        height: 10px;
        bottom: 6px;
        left: 8px;
    }
    
    .reviews-icon::before {
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 12px solid white;
        top: 4px;
        left: 6px;
    }
    
    .reviews-icon::after {
        width: 6px;
        height: 6px;
        top: 10px;
        left: 11px;
    }
    
    .contacts-icon::before {
        width: 18px;
        height: 18px;
        top: 3px;
        left: 5px;
    }
    
    .contacts-icon::after {
        width: 8px;
        height: 8px;
        top: 8px;
        left: 10px;
    }
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-content {
        padding: var(--spacing-md);
        text-align: center;
    }
    
    .hero-logo {
        height: 80px;
    }
    
    .hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }
    
    .morphing-btn {
        width: 100%;
        max-width: 280px;
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .advantages {
        grid-template-columns: 1fr;
    }
    
    .advantage-item {
        padding: var(--spacing-sm);
    }
    
    .advantage-icon {
        width: 50px;
        height: 50px;
    }
    
    .portfolio-filters {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-xs);
        margin: var(--spacing-sm) 0;
    }
    
    .filter-btn {
        padding: 6px 14px;
        font-size: 0.7rem;
        min-width: 120px;
    }
    
    .portfolio-slider {
        padding: var(--spacing-sm);
    }
    
    .slider-progress {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: var(--spacing-sm);
        justify-content: center;
    }
    
    .progress-bar {
        width: 60px;
        height: 2px;
    }
    
    .timer-circle svg {
        width: 30px;
        height: 30px;
    }
    
    .timer-text {
        font-size: 0.7rem;
    }
    
    .portfolio-slide {
        flex-direction: column;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm);
    }
    
    .slide-image {
        max-width: 100%;
        order: 1;
    }
    
    .slide-image img {
        height: 200px;
    }
    
    .slide-gallery {
        position: static;
        justify-content: center;
        margin-top: var(--spacing-xs);
        opacity: 1;
    }
    
    .gallery-thumbnails img {
        width: 25px;
        height: 25px;
    }
    
    .gallery-btn {
        width: 25px;
        height: 25px;
        font-size: 0.7rem;
    }
    
    .slide-content {
        order: 2;
        text-align: center;
        padding: var(--spacing-xs);
    }
    
    .project-header h3 {
        font-size: 1.3rem;
    }
    
    .project-type {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .project-year {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .project-description {
        font-size: 0.9rem;
    }
    
    .project-details {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
        padding: var(--spacing-xs);
    }
    
    .detail-label {
        font-size: 0.7rem;
    }
    
    .detail-value {
        font-size: 0.9rem;
    }
    
    .project-actions {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-xs);
    }
    
    .action-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        min-width: 120px;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .modal-content {
        width: 95vw;
        height: 90vh;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm);
    }
    
    .modal-gallery .main-image {
        height: 180px;
    }
    
    .modal-gallery .gallery-thumbnails img {
        width: 40px;
        height: 40px;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .modal-btn {
        width: 100%;
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .review-card {
        padding: var(--spacing-md);
    }
    
    .quote-mark {
        width: 30px;
        height: 30px;
        top: 15px;
        left: 15px;
        font-size: 1.2rem;
    }
    
    .review-content {
        padding-left: 45px;
    }
    
    .contacts-departments {
        grid-template-columns: 1fr;
    }
    
    .department-card {
        padding: var(--spacing-md);
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .department-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-messengers {
        justify-content: center;
    }
    
    .contacts-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .floating-label input,
    .floating-label textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .floating-label label {
        font-size: 0.9rem;
        left: 12px;
    }
    
    .section-diagonal {
        transform: skewY(1deg);
    }
    
    .section-diagonal .container {
        transform: skewY(-1deg);
    }
    
    .section-title {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
        margin-bottom: var(--spacing-md);
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    body {
        cursor: default;
    }
    
    .custom-cursor {
        display: none;
    }
}

/* Стандартные мобильные устройства */
@media (max-width: 575px) {
    .nav-toggle {
        display: flex !important;
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .hamburger-line {
        width: 18px;
        height: 2px;
        margin: 3px 0;
    }
    
    .nav-link {
        width: 85%;
        height: 60px;
        padding: var(--spacing-xs);
    }
    
    /* На мобильных всегда показываем подзаголовки */
    .nav-subtitle {
        opacity: 1;
        max-height: 20px;
        transform: translateY(0);
    }
    
    /* На мобильных всегда показываем nav-content */
    .nav-content {
        opacity: 1 !important;
        max-width: none !important;
        transition-delay: 0s !important;
    }
    
    .nav-text {
        font-size: 0.8rem;
    }
    
    .nav-subtitle {
        font-size: 0.6rem;
    }
    
    .nav-icon {
        width: 24px;
        height: 24px;
    }
    
    /* Адаптация иконок для стандартных мобильных */
    .home-icon::before {
        width: 16px;
        height: 13px;
        top: 3px;
        left: 4px;
    }
    
    .home-icon::after {
        width: 10px;
        height: 10px;
        bottom: 3px;
        left: 7px;
    }
    
    .about-icon::before {
        width: 18px;
        height: 18px;
        top: 1px;
        left: 3px;
    }
    
    .about-icon::after {
        width: 10px;
        top: 7px;
        left: 7px;
        box-shadow: 0 2px 0 white;
    }
    
    .portfolio-icon::before {
        width: 18px;
        height: 14px;
        top: 3px;
        left: 3px;
    }
    
    .portfolio-icon::after {
        width: 10px;
        height: 8px;
        bottom: 5px;
        left: 7px;
    }
    
    .reviews-icon::before {
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-bottom: 10px solid white;
        top: 3px;
        left: 6px;
    }
    
    .reviews-icon::after {
        width: 5px;
        height: 5px;
        top: 8px;
        left: 9px;
    }
    
    .contacts-icon::before {
        width: 16px;
        height: 16px;
        top: 2px;
        left: 4px;
    }
    
    .contacts-icon::after {
        width: 6px;
        height: 6px;
        top: 7px;
        left: 9px;
    }
    .hero-content {
        padding: var(--spacing-sm);
    }
    
    .hero-logo {
        height: 60px;
    }
    
    .hero h1 {
        font-size: clamp(1.5rem, 10vw, 2rem);
        margin-bottom: var(--spacing-xs);
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-description {
        font-size: 0.8rem;
        margin-bottom: var(--spacing-md);
    }
    
    .about-highlight {
        width: 150px;
        height: 150px;
    }
    
    .years {
        font-size: 2.5rem;
    }
    
    .experience {
        font-size: 0.7rem;
    }
    
    .advantage-item {
        padding: var(--spacing-xs);
    }
    
    .advantage-icon {
        width: 40px;
        height: 40px;
    }
    
    .advantage-content h4 {
        font-size: 1rem;
    }
    
    .advantage-content p {
        font-size: 0.8rem;
    }
    
    .portfolio-slider {
        padding: var(--spacing-xs);
    }
    
    .portfolio-slide {
        flex-direction: column;
        gap: var(--spacing-xs);
        padding: var(--spacing-xs);
    }
    
    .slide-image img {
        height: 150px;
    }
    
    .slide-content {
        padding: var(--spacing-xs);
    }
    
    .slide-content h3 {
        font-size: 1.1rem;
    }
    
    .project-description {
        font-size: 0.8rem;
    }
    
    .nav-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .review-card {
        padding: var(--spacing-sm);
    }
    
    .review-content p {
        font-size: 0.9rem;
    }
    
    .department-card {
        padding: var(--spacing-sm);
    }
    
    .department-header h3 {
        font-size: 1.1rem;
    }
    
    .department-header p {
        font-size: 0.8rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
    
    .contact-item strong {
        min-width: auto;
    }
    
    .floating-label input,
    .floating-label textarea {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    .floating-label label {
        font-size: 0.8rem;
        left: 10px;
    }
    
    .floating-label textarea {
        min-height: 100px;
    }
    
    .contact-form button {
        padding: 0.8rem;
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: clamp(1.2rem, 8vw, 1.5rem);
    }
    
    .section-subtitle {
        font-size: 0.8rem;
    }
    
    .bank-details h4 {
        font-size: 1rem;
    }
    
    .bank-details p {
        font-size: 0.8rem;
    }
}

/* Очень маленькие устройства */
@media (max-width: 375px) {
    .nav-toggle {
        display: flex !important;
        top: 8px;
        right: 8px;
        width: 35px;
        height: 35px;
    }
    
    .hamburger-line {
        width: 16px;
        height: 2px;
        margin: 2px 0;
    }
    
    .nav-link {
        width: 80%;
        height: 55px;
        padding: var(--spacing-xs);
    }
    
    /* На мобильных всегда показываем подзаголовки */
    .nav-subtitle {
        opacity: 1;
        max-height: 20px;
        transform: translateY(0);
    }
    
    /* На мобильных всегда показываем nav-content */
    .nav-content {
        opacity: 1 !important;
        max-width: none !important;
        transition-delay: 0s !important;
    }
    
    .nav-text {
        font-size: 0.7rem;
    }
    
    .nav-subtitle {
        font-size: 0.55rem;
    }
    
    .nav-icon {
        width: 20px;
        height: 20px;
    }
    
    /* Адаптация иконок для маленьких экранов */
    .home-icon::before {
        width: 14px;
        height: 11px;
        top: 2px;
        left: 3px;
    }
    
    .home-icon::after {
        width: 8px;
        height: 8px;
        bottom: 2px;
        left: 6px;
    }
    
    .about-icon::before {
        width: 16px;
        height: 16px;
        top: 1px;
        left: 2px;
    }
    
    .about-icon::after {
        width: 8px;
        top: 6px;
        left: 6px;
        box-shadow: 0 2px 0 white;
    }
    
    .portfolio-icon::before {
        width: 16px;
        height: 12px;
        top: 2px;
        left: 2px;
    }
    
    .portfolio-icon::after {
        width: 8px;
        height: 6px;
        bottom: 4px;
        left: 6px;
    }
    
    .reviews-icon::before {
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-bottom: 8px solid white;
        top: 2px;
        left: 5px;
    }
    
    .reviews-icon::after {
        width: 4px;
        height: 4px;
        top: 6px;
        left: 8px;
    }
    
    .contacts-icon::before {
        width: 14px;
        height: 14px;
        top: 1px;
        left: 3px;
    }
    
    .contacts-icon::after {
        width: 6px;
        height: 6px;
        top: 6px;
        left: 7px;
    }
    
    /* Скрываем подзаголовки на очень маленьких экранах */
    @media (max-width: 320px) {
        .nav-subtitle {
            display: none !important;
            opacity: 0 !important;
            max-height: 0 !important;
        }
        
        .nav-link {
            height: 45px !important;
        }
        
        .navbar:hover .nav-link {
            height: 45px !important;
        }
    }
    .hero-logo {
        height: 50px;
    }
    
    .hero h1 {
        font-size: clamp(1.3rem, 12vw, 1.8rem);
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
    }
    
    .hero-description {
        font-size: 0.7rem;
    }
    
    .about-highlight {
        width: 120px;
        height: 120px;
    }
    
    .years {
        font-size: 2rem;
    }
    
    .experience {
        font-size: 0.6rem;
    }
    
    .advantage-item {
        padding: var(--spacing-xs);
    }
    
    .advantage-icon {
        width: 35px;
        height: 35px;
    }
    
    .portfolio-filters {
        flex-direction: column;
        gap: 4px;
        margin: var(--spacing-xs) 0;
    }
    
    .filter-btn {
        padding: 4px 10px;
        font-size: 0.6rem;
        min-width: 100px;
    }
    
    .slider-progress {
        justify-content: center;
        gap: 4px;
    }
    
    .progress-bar {
        width: 50px;
        height: 2px;
    }
    
    .timer-circle svg {
        width: 25px;
        height: 25px;
    }
    
    .timer-text {
        font-size: 0.6rem;
    }
    
    .slide-image img {
        height: 120px;
    }
    
    .slide-gallery {
        margin-top: 4px;
        gap: 3px;
    }
    
    .gallery-thumbnails img {
        width: 20px;
        height: 20px;
    }
    
    .gallery-btn {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }
    
    .project-header h3 {
        font-size: 1.1rem;
    }
    
    .project-type {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
    
    .project-year {
        font-size: 0.6rem;
        padding: 2px 4px;
    }
    
    .project-description {
        font-size: 0.8rem;
    }
    
    .detail-label {
        font-size: 0.6rem;
    }
    
    .detail-value {
        font-size: 0.8rem;
    }
    
    .action-btn {
        padding: 6px 12px;
        font-size: 0.7rem;
        min-width: 100px;
    }
    
    .nav-btn {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .dot {
        width: 6px;
        height: 6px;
    }
    
    .modal-content {
        width: 98vw;
        height: 95vh;
    }
    
    .modal-body {
        padding: var(--spacing-xs);
    }
    
    .modal-gallery .main-image {
        height: 150px;
    }
    
    .modal-gallery .gallery-thumbnails img {
        width: 30px;
        height: 30px;
    }
    
    .modal-btn {
        padding: 8px;
        font-size: 0.8rem;
    }
    
    .review-content p {
        font-size: 0.8rem;
    }
    
    .floating-label input,
    .floating-label textarea {
        padding: 6px 8px;
        font-size: 0.7rem;
    }
    
    .floating-label label {
        font-size: 0.7rem;
        left: 8px;
    }
    
    .floating-label textarea {
        min-height: 80px;
    }
    
    .contact-form button {
        padding: 0.6rem;
        font-size: 0.7rem;
    }
    
    .bank-details h4 {
        font-size: 0.9rem;
    }
    
    .bank-details p {
        font-size: 0.7rem;
        line-height: 1.5;
    }
    
    .company-info p {
        font-size: 0.7rem;
    }
}

/* Улучшения для touch устройств */
@media (hover: none) and (pointer: coarse) {
    .interactive-card:hover {
        transform: none;
    }
    
    .morphing-btn:hover {
        transform: none;
    }
    
    .advantage-item:hover {
        transform: none;
    }
    
    .portfolio-slide:hover {
        transform: none;
    }
    
    .action-btn:hover {
        transform: none;
    }
    
    .filter-btn:hover {
        transform: none;
    }
    
    .gallery-btn:hover {
        transform: none;
    }
    
    .modal-close:hover {
        transform: none;
    }
    
    .modal-btn:hover {
        transform: none;
    }
    
    .review-card:hover {
        transform: none;
    }
    
    .department-card:hover {
        transform: none;
    }
    
    /* На touch устройствах всегда показываем подзаголовки */
    .nav-subtitle {
        opacity: 1 !important;
        max-height: 20px !important;
        transform: translateY(0) !important;
        transition-delay: 0s !important;
    }
    
    /* На touch устройствах всегда показываем nav-content */
    .nav-content {
        opacity: 1 !important;
        max-width: none !important;
        transition-delay: 0s !important;
    }
    
    /* Скрываем пульсирующую подсказку на touch устройствах */
    .navbar::before {
        display: none;
    }
    
    .nav-link {
        height: 70px !important;
    }
    
    /* Увеличиваем области нажатия */
    .nav-link {
        padding: var(--spacing-md);
    }
    
    .morphing-btn {
        padding: 1rem 2rem;
        min-height: 44px;
    }
    
    .messenger-btn {
        padding: 10px 20px;
        min-height: 44px;
    }
    
    .contact-form button {
        min-height: 44px;
    }
}

/* Режим с пониженным движением */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-shape {
        animation: none;
    }
    
    .custom-cursor {
        display: none;
    }
    
    .scroll-wheel::before {
        animation: none;
    }
    
    .nav-link {
        opacity: 1;
        animation: none;
        height: 70px;
    }
    
    .nav-subtitle {
        opacity: 1;
        max-height: 20px;
        transform: translateY(0);
        transition-delay: 0s;
    }
    
    .nav-content {
        opacity: 1;
        max-width: none;
        transition-delay: 0s;
    }
    
    .navbar::before {
        display: none;
    }
}

/* Видимость кнопки меню на мобильных устройствах */
@media screen and (max-width: 1200px) {
    .nav-toggle {
        display: flex;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 100000;
        width: 50px;
        height: 50px;
        background: rgba(26, 26, 26, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        cursor: pointer;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
    }
    
    .nav-menu {
        padding: 0 var(--spacing-md);
        overflow-y: auto;
        max-height: calc(100vh - 120px);
    }
    
    .nav-toggle:hover {
        background: rgba(255, 68, 68, 0.9);
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    }
    
    .hamburger-line {
        display: block;
        width: 20px;
        height: 2px;
        background: rgba(255, 255, 255, 0.9);
        margin: 3px 0;
        border-radius: 1px;
        transition: all 0.3s ease;
    }
    
    .nav-toggle.active {
        background: rgba(255, 68, 68, 0.9);
    }
    
    .nav-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* Для маленьких экранов */
@media (max-width: 600px) {
    .nav-toggle {
        top: 15px;
        right: 15px;
        width: 48px;
        height: 48px;
        border-radius: 10px;
    }
    
    .hamburger-line {
        width: 18px;
    }
}

@media (max-width: 400px) {
    .nav-toggle {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        border-radius: 8px;
    }
    
    .hamburger-line {
        width: 16px;
        height: 2px;
        margin: 2px 0;
    }
} 

/* Упрощённый вариант портфолио */
.project-description,
.project-details,
.project-actions,
.slide-gallery,
.modal-overlay,
.gallery-btn {
    display: none !important;
}

.project-client {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
}

.project-year {
    display: none !important;
}

/* Скрываем фильтры портфолио */
.portfolio-filters { display:none !important; }

/* Компактные размеры слайдов (десктоп) */
@media (min-width: 992px) {
  .portfolio-slider { max-width: 900px; padding: var(--spacing-sm); }
  .portfolio-slide { padding: var(--spacing-sm); gap: var(--spacing-md); }
  .slide-image { max-width: 40%; }
  .slide-image img { height: 220px; }
  .project-header h3 { font-size: 1.4rem; }
  .project-type { font-size: 0.75rem; padding: 3px 10px; }
  .project-client { font-size: 0.9rem; }
  .nav-btn { width: 40px; height: 40px; }
}

/* Дополнительное сжатие расстояний (десктоп) */
@media (min-width: 992px) {
  .portfolio-slider { margin: var(--spacing-md) auto 0; }
  .portfolio-slide { gap: var(--spacing-sm); }
  .slider-navigation { margin-top: var(--spacing-sm); }
}

@media (min-width: 992px) {
  .portfolio-slide { gap: var(--spacing-lg); }
}

/* === Portfolio slider gap fix === */
.portfolio-track{display:flex;gap:24px;}
.portfolio-slide{flex:0 0 calc(100% - 24px);}

.slide-image img{display:block;}