@font-face {
    font-family: 'Michroma';
    src: url('assets/fonts/Michroma.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --primary-color: #003d82;
    --accent-color: #ffb703;
    --text-dark: #1d1d1f;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-gray: #f5f5f7;
    --border-color: #d2d2d7;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --font-brand: 'Michroma', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}

/* Dark theme variables */

html {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: clip;
    width: 100%;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Общие правила для изображений */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Предотвращение горизонтальной прокрутки */
* {
    max-width: 100%;
}

section {
    width: 100%;
    box-sizing: border-box;
}

main {
    width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 44px;
    width: 100%;
    box-sizing: border-box;
}

/* HEADER - Apple Style */
.site-header {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    margin: 0;
    width: fit-content;
    max-width: calc(100% - 40px);
    min-width: min(600px, 95vw);
    background: linear-gradient(to right, rgba(0, 61, 130, 0.8) 0%, rgba(26, 26, 26, 0.8) 50%, rgba(0, 0, 0, 0.8) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.site-header .container {
    position: relative;
    padding: 12px 32px;
    width: 100%;
}

.site-header.scrolled {
    position: fixed;
    top: 20px;
    background: transparent;
}

.site-header.scrolled .container {
    background: linear-gradient(to right, rgba(245, 245, 247, 0.95) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(245, 245, 247, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.site-header.scrolled .logo-text-header,
.site-header.scrolled .nav-link,
.site-header.scrolled .header-phone .phone-link,
.site-header.scrolled .menu-toggle-line {
    color: #000000 !important;
}

.site-header.scrolled .menu-toggle-line {
    background: #000000 !important;
}

.site-header.scrolled .dropdown-menu {
    background: linear-gradient(to right, rgba(245, 245, 247, 0.95) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(245, 245, 247, 0.95) 100%) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.site-header.scrolled .dropdown-link {
    color: #000000 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.site-header.scrolled .dropdown-link:hover {
    color: var(--primary-color) !important;
    background: rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(8px, 1.5vw, 16px);
    padding: 0;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    flex-wrap: nowrap;
    min-width: 0;
}

.header-nav {
    display: flex !important;
    align-items: center;
    gap: clamp(12px, 2vw, 32px);
    flex-wrap: nowrap;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 1;
    min-width: 0;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo img {
    height: 44px;
    width: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-logo:hover img {
    transform: scale(1.05);
}

.logo-text-header {
    font-family: var(--font-brand);
    font-size: clamp(12px, 1.8vw, 18px);
    font-weight: 400;
    color: #ffffff !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Адаптивный размер логотипа на мобильных - автоматически уменьшается при нехватке места */
@media (max-width: 768px) {
    .logo-text-header {
        font-size: clamp(14px, 3.5vw, 24px) !important;
        font-weight: 500 !important;
        letter-spacing: clamp(0.02em, 0.1vw, 0.04em) !important;
        max-width: calc(100vw - 120px) !important; /* Оставляем место для меню и телефона */
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
}

.header-phone {
    display: flex;
    align-items: center;
}

.header-phone .phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(12px, 1.5vw, 17px);
    font-weight: 400;
    color: #ffffff !important;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.header-phone .phone-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

/* На мобильных показываем только красивую иконку телефона в цвете хедера */
@media (max-width: 768px) {
    /* Скрываем номер телефона */
    .header-phone .phone-number {
        display: none !important;
    }
    
    /* Показываем иконку телефона вместо эмодзи */
    .header-phone .phone-icon {
        display: inline-block !important;
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        opacity: 1 !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        margin-right: 0 !important;
    }
    
    /* Убираем псевдоэлемент с эмодзи */
    .header-phone .phone-link::before {
        display: none !important;
    }
    
    /* Настраиваем ссылку для отображения только иконки - адаптивный размер */
    .header-phone .phone-link {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: clamp(28px, 6vw, 32px) !important;
        height: clamp(28px, 6vw, 32px) !important;
        min-width: clamp(28px, 6vw, 32px) !important;
        padding: 0 !important;
        border-radius: clamp(6px, 1.5vw, 8px) !important;
        background: rgba(255, 255, 255, 0.1) !important;
        transition: all 0.3s ease !important;
        flex-shrink: 0 !important;
    }
    
    .header-phone .phone-link:hover {
        background: rgba(255, 255, 255, 0.2) !important;
        transform: scale(1.05) !important;
    }
    
    /* Адаптивный размер иконки телефона */
    .header-phone .phone-icon {
        width: clamp(14px, 3vw, 16px) !important;
        height: clamp(14px, 3vw, 16px) !important;
        min-width: clamp(14px, 3vw, 16px) !important;
    }
    
    /* Для scrolled хедера - черная иконка */
    .site-header.scrolled .header-phone .phone-icon {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000000'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") !important;
    }
    
    .site-header.scrolled .header-phone .phone-link {
        background: rgba(0, 0, 0, 0.05) !important;
    }
    
    .site-header.scrolled .header-phone .phone-link:hover {
        background: rgba(0, 0, 0, 0.1) !important;
    }
}

.header-phone .phone-number {
    font-size: clamp(11px, 1.3vw, 15px);
}

.header-phone .phone-link:hover .phone-icon {
    opacity: 1;
}

.header-phone .phone-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.site-header.scrolled .header-phone .phone-link:hover {
    color: var(--primary-color) !important;
}

.site-header.scrolled .header-phone .phone-link {
    color: #000000 !important;
}

.site-header.scrolled .header-phone .phone-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000000'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
    opacity: 0.85;
}

.site-header.scrolled .header-phone .phone-link:hover .phone-icon {
    opacity: 1;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 32px);
    flex-shrink: 1;
    min-width: 0;
}

.nav-link {
    font-size: clamp(10px, 1.2vw, 14px);
    font-weight: 400;
    color: #ffffff !important;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.site-header.scrolled .nav-link:hover {
    color: var(--primary-color) !important;
}

.site-header.scrolled .nav-link {
    color: #000000 !important;
}

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

.header-phone {
    display: flex;
    align-items: center;
}

.header-phone .phone-link {
    font-size: 17px;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Switcher - In Header */
.language-switcher-header {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 14px;
}

.language-switcher-btn-compact {
    width: auto;
    height: 34px;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: flex-start;
    background: rgba(255, 255, 255, 0.18);
    border: 1.5px solid rgba(255, 255, 255, 0.38);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px 13px 5px 9px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    white-space: nowrap;
}

.language-switcher-btn-compact::before {
    content: attr(data-flag);
    position: static;
    font-size: 18px;
    opacity: 1;
    pointer-events: none;
    transform: none;
    line-height: 1;
    display: inline-block;
    flex-shrink: 0;
}

.language-switcher-btn-compact:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.site-header.scrolled .language-switcher-btn-compact {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.site-header.scrolled .language-switcher-btn-compact::before {
    opacity: 1;
}

.site-header.scrolled .language-switcher-btn-compact:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.language-switcher-header.active .language-switcher-btn-compact {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
}

.site-header.scrolled .language-switcher-header.active .language-switcher-btn-compact {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.3);
}

.language-name-compact {
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    display: block;
    position: relative;
    z-index: 1;
    letter-spacing: 0.3px;
}

.language-dropdown-compact {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    min-width: 80px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 4px;
}

.language-switcher-header.active .language-dropdown-compact {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option-compact {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    padding: 8px 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    min-width: 80px;
}

.language-option-compact:hover {
    background: rgba(255, 255, 255, 0.12);
}

.language-option-compact .language-name-compact {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Dropdown Menu Language Section */
.dropdown-language-section {
    padding: 16px 20px;
}

.dropdown-language-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.site-header.scrolled .dropdown-language-label {
    color: rgba(0, 0, 0, 0.6);
}

.dropdown-language-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dropdown-language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.dropdown-language-option:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.site-header.scrolled .dropdown-language-option {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #000000;
}

.site-header.scrolled .dropdown-language-option:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

/* Responsive Language Switcher */
@media (max-width: 768px) {
    .site-header {
        min-width: auto;
    }
    
    .language-switcher-header {
        display: flex;
        margin-left: 8px;
    }

    .language-switcher-btn-compact {
        height: 30px;
        padding: 4px 10px 4px 7px;
        gap: 4px;
    }

    .language-switcher-btn-compact::before {
        font-size: 16px;
    }

    .language-name-compact {
        font-size: 10px;
    }

    .language-dropdown-compact {
        min-width: 72px;
    }

    .language-option-compact {
        padding: 6px 4px;
        min-width: 64px;
    }

    .language-option-compact .language-name-compact {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .language-switcher-btn-compact {
        width: 24px;
        height: 24px;
    }
    
    .language-switcher-btn-compact::before {
        font-size: 16px;
    }
    
    .language-name-compact {
        font-size: 9px;
    }
}


.logo-link {
    text-decoration: none;
    color: inherit;
}

/* Menu Toggle Button */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    margin-right: 16px;
    flex-shrink: 0;
}

/* Убеждаемся, что меню-бургер всегда виден в хедере на мобильных */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex !important;
        order: -1;
        width: clamp(18px, 4vw, 22px) !important;
        height: clamp(14px, 3vw, 16px) !important;
        flex-shrink: 0 !important;
    }
    
    .menu-toggle-line {
        height: clamp(1.2px, 0.3vw, 1.5px) !important;
    }
    
    .header-inner {
        display: flex;
        align-items: center;
        min-width: 0 !important; /* Позволяет элементам сжиматься */
    }
}

.menu-toggle-line {
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}


.menu-toggle.active .menu-toggle-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .menu-toggle-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active .menu-toggle-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    margin-top: 0;
    background: linear-gradient(to right, rgba(0, 61, 130, 0.8) 0%, rgba(26, 26, 26, 0.8) 50%, rgba(0, 0, 0, 0.8) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 20px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 1001;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
}


.dropdown-menu.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    max-height: 500px !important;
    pointer-events: auto !important;
    display: block !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.dropdown-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 20px 32px;
    column-gap: 40px;
}

.dropdown-link {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 400;
    color: #ffffff !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.2s ease, padding-left 0.2s ease;
}


.dropdown-link:hover {
    color: #ffffff !important;
    padding-left: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-link:last-child {
    border-bottom: none;
}

.dropdown-divider {
    grid-column: 1 / -1;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 8px 0;
}

.dropdown-phone {
    font-weight: 600;
    font-size: 18px;
    grid-column: 1 / -1;
}

.dropdown-save-contact {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
    border: none;
    background: rgba(0, 61, 130, 0.3) !important;
    cursor: pointer;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dropdown-link-icon {
    margin-right: 10px;
    font-size: 20px;
    display: inline-block;
}

.dropdown-save-contact:hover {
    background: rgba(0, 61, 130, 0.5) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: #ffffff !important;
}

.site-header.scrolled .dropdown-save-contact {
    background: rgba(0, 61, 130, 0.1) !important;
    color: #000000 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.site-header.scrolled .dropdown-save-contact:hover {
    background: rgba(0, 61, 130, 0.2) !important;
    color: #000000 !important;
}

/* Адаптивные стили для планшетов и ноутбуков */
@media (min-width: 769px) and (max-width: 1400px) {
    .header-nav {
        gap: clamp(8px, 1.5vw, 20px);
    }
    
    .nav-link {
        font-size: clamp(9px, 1vw, 12px);
    }
    
    .logo-text-header {
        font-size: clamp(11px, 1.5vw, 16px);
    }
    
    .header-phone .phone-link {
        gap: clamp(6px, 0.8vw, 8px);
    }
    
    .header-phone .phone-icon {
        width: clamp(14px, 1.4vw, 18px);
        height: clamp(14px, 1.4vw, 18px);
        min-width: clamp(14px, 1.4vw, 18px);
    }
    
    .header-phone .phone-number {
        font-size: clamp(10px, 1.2vw, 14px);
    }
    
    .header-inner {
        gap: clamp(6px, 1.2vw, 12px);
    }
    
    .site-header .container {
        padding: clamp(8px, 1.2vw, 12px) clamp(16px, 2vw, 32px);
    }
    
    /* Уменьшение изображения телефона на ноутбуках для предотвращения наложения на хедер */
    .hero-section {
        padding-top: clamp(140px, 18vh, 160px);
    }
    
    .hero-phone-image {
        max-width: clamp(276px, 28.75vw, 368px) !important;
    }
    
    .hero-phone-3d {
        margin-top: clamp(20px, 3vh, 40px);
    }
}

@media (min-width: 1401px) and (max-width: 1600px) {
    .nav-link {
        font-size: clamp(11px, 1.1vw, 13px);
    }
    
    .header-nav {
        gap: clamp(16px, 1.8vw, 28px);
    }
    
    /* Небольшое уменьшение изображения телефона для средних ноутбуков */
    .hero-section {
        padding-top: clamp(130px, 16vh, 150px);
    }
    
    .hero-phone-image {
        max-width: clamp(300px, 28vw, 340px) !important;
    }
    
    .hero-phone-3d {
        margin-top: clamp(15px, 2vh, 30px);
    }
}

@media (max-width: 968px) {
    .header-nav {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .dropdown-nav {
        grid-template-columns: 1fr;
        column-gap: 0;
        padding: 16px 24px;
    }
    
    .dropdown-divider {
        margin: 12px 0;
    }
    
    .dropdown-link {
        padding: 14px 0;
    }
}

@media (max-width: 768px) {
    .site-header {
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 40px);
        max-width: none;
        margin: 0;
        border-radius: 28px;
        background: linear-gradient(to right, rgba(0, 61, 130, 0.9) 0%, rgba(26, 26, 26, 0.9) 50%, rgba(0, 0, 0, 0.9) 100%);
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .site-header.scrolled {
        position: fixed;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 40px);
        max-width: none;
        margin: 0;
        border-radius: 28px;
        background: transparent;
        box-shadow: none;
    }

    .site-header .container {
        padding: 8px clamp(12px, 3vw, 16px) !important;
        max-width: none;
        width: 100%;
        background: transparent;
        border: none;
        border-radius: 28px;
        box-shadow: none;
        overflow: visible !important;
    }
    
    /* Располагаем элементы хедера: меню слева, логотип по центру, телефон справа */
    .site-header .header-inner {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        position: relative !important;
        gap: 0 !important;
    }
    
    /* Кнопка меню слева до конца */
    .site-header .menu-toggle {
        order: 1 !important;
        margin-right: auto !important;
        margin-left: 0 !important;
        flex-shrink: 0 !important;
    }
    
    /* Логотип по центру - адаптивный размер */
    .site-header .header-logo {
        order: 2 !important;
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
        flex-shrink: 1 !important; /* Может сжиматься при нехватке места */
        z-index: 1 !important;
        max-width: calc(100vw - 140px) !important; /* Оставляем место для меню и телефона */
        min-width: 0 !important;
    }
    
    .site-header .logo-text-header {
        font-size: clamp(14px, 3.5vw, 24px) !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    /* Телефон справа до конца */
    .site-header .header-right {
        order: 3 !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        flex-shrink: 0 !important;
    }
    
    /* Скрываем навигацию на мобильных */
    .site-header .header-nav {
        display: none !important;
    }
    
    .site-header.scrolled .container {
        padding: 8px clamp(12px, 3vw, 16px) !important;
        max-width: none;
        width: 100%;
        background: linear-gradient(to right, rgba(245, 245, 247, 0.95) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(245, 245, 247, 0.95) 100%);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-radius: 28px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
        overflow: visible !important;
    }
    
    /* Дополнительное уменьшение для очень маленьких экранов */
    @media (max-width: 360px) {
        .logo-text-header {
            font-size: clamp(12px, 3vw, 20px) !important;
        }
        
        .menu-toggle {
            width: clamp(16px, 3.5vw, 20px) !important;
            height: clamp(12px, 2.5vw, 14px) !important;
        }
        
        .header-phone .phone-link {
            width: clamp(26px, 5.5vw, 30px) !important;
            height: clamp(26px, 5.5vw, 30px) !important;
            min-width: clamp(26px, 5.5vw, 30px) !important;
        }
        
        .header-phone .phone-icon {
            width: clamp(12px, 2.5vw, 14px) !important;
            height: clamp(12px, 2.5vw, 14px) !important;
            min-width: clamp(12px, 2.5vw, 14px) !important;
        }
        
        .site-header .container {
            padding: 6px clamp(10px, 2.5vw, 14px) !important;
        }
    }

    /* Делим шапку и контент на мобильных */
    main {
        padding-top: 12px;
    }

    /* Увеличиваем непрозрачность мобильного меню для читабельности */
    .dropdown-menu {
        background: linear-gradient(to right, rgba(0, 61, 130, 0.95) 0%, rgba(26, 26, 26, 0.95) 50%, rgba(0, 0, 0, 0.95) 100%);
        box-shadow:
            0 10px 32px rgba(0, 0, 0, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Плавная анимация открытия/закрытия меню на мобильных */
    .dropdown-menu.active {
        transform: translateY(0) !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .site-header.scrolled .logo-text-header,
    .site-header.scrolled .nav-link,
    .site-header.scrolled .header-phone .phone-link {
        color: #ffffff !important;
    }

    /* Иконка меню черная при скролле для видимости на светлом фоне */
    .site-header.scrolled .menu-toggle-line {
        background: #000000 !important;
        color: #000000 !important;
    }

    .site-header.scrolled .dropdown-menu {
        background: linear-gradient(to right, rgba(0, 61, 130, 0.95) 0%, rgba(26, 26, 26, 0.95) 50%, rgba(0, 0, 0, 0.95) 100%) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    }

    .site-header.scrolled .dropdown-link {
        color: #ffffff !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}

/* Theme Toggle Button - iOS Style */

/* BUTTONS - Apple Style */
.btn {
    padding: 12px 22px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 400;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(to right, rgba(0, 61, 130, 0.8) 0%, rgba(26, 26, 26, 0.8) 50%, rgba(0, 0, 0, 0.8) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-outline {
    background: linear-gradient(to right, rgba(0, 61, 130, 0.8) 0%, rgba(26, 26, 26, 0.8) 50%, rgba(0, 0, 0, 0.8) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-calculate {
    background: linear-gradient(to right, rgba(0, 61, 130, 0.8) 0%, rgba(26, 26, 26, 0.8) 50%, rgba(0, 0, 0, 0.8) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-showroom {
    background: linear-gradient(to right, rgba(128, 128, 128, 0.6) 0%, rgba(100, 100, 100, 0.6) 50%, rgba(80, 80, 80, 0.6) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    box-shadow: none;
    transition: all 0.3s ease;
    font-size: 18px;
    padding: 14px 28px;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-showroom:hover {
    background: linear-gradient(to right, rgba(0, 61, 130, 0.8) 0%, rgba(26, 26, 26, 0.8) 50%, rgba(0, 0, 0, 0.8) 100%);
    transform: translateY(-2px);
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.18);
}

/* HERO SECTION - Apple Style with Animations */
.hero-section {
    padding: 100px 0 100px;
    padding-top: 120px;
    background: linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(11, 116, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 183, 3, 0.05) 0%, transparent 50%);
    text-align: center;
    position: relative;
    overflow: visible;
    min-height: 100vh;
}

.hero-section.functionality-hero {
    position: relative;
    background: #0a0e27;
    background-image: url('images/оФОРМЛЕНИЕ НОВОЕ/IMG_0566.JPEG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
}

/* Размытый слой фона */
.hero-section.functionality-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/оФОРМЛЕНИЕ НОВОЕ/IMG_0566.JPEG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: blur(8px);
    transform: scale(1.1);
    z-index: 0;
}

/* Затемнение */
.hero-section.functionality-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(80px, 80px);
    }
}

@keyframes patternShift {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 200px 200px;
    }
}

.hero-section.functionality-hero {
    display: flex;
    align-items: center;
}

.hero-background-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 0%, rgba(11, 116, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.functionality-hero .hero-background-gradient {
    background: transparent !important;
    z-index: 1;
}

/* Плавающие частицы для умного дома */
.functionality-hero .hero-background-gradient::before {
    display: none;
    animation: particlesFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes particlesFloat {
    0%, 100% {
        background-position: 0% 0%, 50% 50%, 100% 100%, 30% 70%, 70% 30%, 20% 80%;
        opacity: 0.6;
    }
    25% {
        background-position: 10% 10%, 60% 60%, 90% 90%, 40% 80%, 80% 40%, 30% 90%;
        opacity: 0.8;
    }
    50% {
        background-position: 20% 20%, 70% 70%, 80% 80%, 50% 90%, 90% 50%, 40% 100%;
        opacity: 0.7;
    }
    75% {
        background-position: 15% 15%, 65% 65%, 85% 85%, 45% 85%, 85% 45%, 35% 95%;
        opacity: 0.9;
    }
}

/* Линии связей между устройствами */
.functionality-hero .hero-background-gradient::after {
    display: none;
}

@keyframes connectionsPulse {
    0%, 100% {
        background-position: 0% 0%, 100% 100%, 50% 50%;
        opacity: 0.3;
    }
    50% {
        background-position: 50% 50%, 50% 50%, 50% 50%;
        opacity: 0.6;
    }
}

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

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

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    opacity: 1;
    transform: translateX(0);
    padding-left: 0;
}

.hero-badge {
    font-size: 19px;
    color: #000000;
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: 0.011em;
    opacity: 1;
    text-shadow: none;
}

.hero-title {
    font-family: var(--font-brand);
    font-size: 70px;
    font-weight: 400;
    line-height: 1.05;
    color: #000000;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateX(-100px);
    animation: slideInFromLeft 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    text-shadow: none;
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-subtitle {
    font-size: 22px;
    line-height: 1.14286;
    font-weight: 400;
    color: #000000;
    margin-bottom: 40px;
    letter-spacing: 0.007em;
    opacity: 1;
    text-shadow: none;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
    opacity: 1;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 60px;
    opacity: 1;
}

/* Phone in Hero - Simple Appearance */
.hero-phone-3d {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(60px);
    animation: phoneAppearFromBottom 0.8s ease-out 0.3s forwards;
}

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

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

.phone-hand-animation {
    position: absolute;
    bottom: -80px;
    right: -40px;
    width: 200px;
    height: 300px;
    pointer-events: none;
    z-index: 10;
    animation: handFloat 3s ease-in-out infinite;
}

@keyframes handFloat {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.hand-svg {
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.hand-path {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}


.phone-3d-container {
    position: relative;
    transition: transform 0.2s ease;
}

.hero-phone-3d:hover .phone-3d-container {
    transform: scale(1.02);
}

.hero-phone-image {
    width: 100%;
    max-width: 414px;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: none;
    object-fit: contain;
    background: transparent;
}

.phone-3d-frame {
    width: 320px;
    height: 640px;
    background: linear-gradient(135deg, #1d1d1f 0%, #2d2d2f 50%, #1d1d1f 100%);
    border-radius: 52px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.phone-3d-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    border-radius: 52px;
}

.phone-3d-frame::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 20px;
    background: #1d1d1f;
    border-radius: 0 0 12px 12px;
    z-index: 10;
}

/* iPhone Frame Styles */
.iphone-frame-wrapper {
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    overflow: visible;
}


.iphone-frame-wrapper::before {
    display: none;
}

.iphone-frame-image {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    max-width: 400px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

.iphone-screen-content {
    position: absolute;
    top: 4.5%;
    left: 4%;
    width: 92%;
    height: 91%;
    z-index: 2;
    overflow: hidden;
    border-radius: 0;
    background: #000;
    transform: scale(1.01);
}

.iphone-screen-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center top;
    display: block;
    margin: 0;
    padding: 0;
    transform: scale(1.02);
}

.phone-3d-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.phone-app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #ffffff;
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
}

.phone-app-content {
    padding: 20px;
    height: calc(100% - 50px);
    overflow-y: auto;
}

.phone-room-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.phone-room {
    background: #f5f5f7;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.phone-room.active {
    background: #f0f7ff;
    border-color: var(--primary-color);
}

.phone-room-name {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.phone-room-temp {
    font-size: 32px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.phone-room-status {
    font-size: 13px;
    color: #86868b;
}

.phone-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.phone-control-btn {
    flex: 1;
    background: #f5f5f7;
    border-radius: 12px;
    padding: 12px;
    font-size: 12px;
    text-align: center;
    color: #86868b;
    transition: all 0.3s;
}

.phone-control-btn.active {
    background: var(--primary-color);
    color: white;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(100px) rotateY(-20deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
    }
}

.hero-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
    padding: 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-feature-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 40px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-text {
    flex: 1;
}

.feature-title {
    font-size: 19px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.022em;
}

.feature-desc {
    font-size: 17px;
    color: #86868b;
    line-height: 1.47059;
}

/* SECTION TITLES - Apple Style */
.section-title {
    font-family: var(--font-brand);
    font-size: 48px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.03em;
    color: var(--text-dark);
    margin-bottom: 60px;
    text-align: center;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-intro {
    font-size: 18px;
    text-align: center;
    color: #86868b;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.3;
    font-weight: 400;
    letter-spacing: 0.011em;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-intro.visible {
    opacity: 1;
    transform: translateY(0);
}

/* QUASAR NAME SECTION - Gargantua Style */
.quasar-name-section {
    padding: 120px 0;
    background: #000000;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.quasar-name-section::before {
    display: none;
}

.quasar-name-section::after {
    display: none;
}

@keyframes constellationTwinkle {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    25% {
        opacity: 0.9;
        transform: scale(1.03);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.01);
    }
    75% {
        opacity: 0.95;
        transform: scale(1.04);
    }
}

.quasar-name-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.quasar-text-side {
    padding-left: 60px;
    padding-right: 40px;
    z-index: 2;
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
}

.quasar-main-title {
    font-family: var(--font-brand);
    font-size: 48px;
    font-weight: 400;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.quasar-definition-block {
    margin-bottom: 20px;
}

.quasar-definition-text {
    font-size: 17px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.quasar-philosophy-block {
    margin-top: 20px;
}

.quasar-philosophy-text {
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.quasar-philosophy-text strong {
    color: #ffaa00;
    font-weight: 600;
}

.quasar-connection-block {
    margin-top: 24px;
    padding: 24px;
    background: linear-gradient(to right, rgba(0, 61, 130, 0.25) 0%, rgba(5, 5, 5, 0.3) 50%, rgba(0, 0, 0, 0.25) 100%);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 3px solid rgba(255, 170, 0, 0.6);
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.quasar-connection-text {
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    margin: 0;
}

.quasar-connection-text strong {
    color: #ffaa00;
    font-weight: 600;
}

.smart-home-devices-orbit {
    transform-origin: 500px 500px;
    position: relative;
}

.smart-home-devices-orbit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(3px 3px at 20% 30%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(2px 2px at 40% 50%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 60% 20%, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(3px 3px at 80% 70%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(2px 2px at 30% 80%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 70% 40%, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(3px 3px at 10% 60%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(2px 2px at 90% 30%, rgba(255, 255, 255, 0.3), transparent);
    background-size: 100% 100%;
    animation: constellationPulse 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
    opacity: 0.7;
}

@keyframes constellationPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

.device-orbit {
    transform-origin: 500px 500px;
}

.device-orbit {
    cursor: pointer;
}

.device-circle {
    transition: all 0.3s ease;
    animation: starPulse 3s ease-in-out infinite;
}

@keyframes starPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(255, 170, 0, 0.4));
    }
    25% {
        opacity: 0.7;
        transform: scale(1.08);
        filter: drop-shadow(0 0 12px rgba(255, 170, 0, 0.7));
    }
    50% {
        opacity: 0.9;
        transform: scale(1.12);
        filter: drop-shadow(0 0 18px rgba(255, 170, 0, 0.9));
    }
    75% {
        opacity: 0.6;
        transform: scale(1.05);
        filter: drop-shadow(0 0 10px rgba(255, 170, 0, 0.6));
    }
}

.device-icon {
    pointer-events: none;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(255, 170, 0, 0.5));
    animation: iconPulse 2.5s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        opacity: 0.85;
        transform: scale(1);
        filter: drop-shadow(0 0 12px rgba(255, 170, 0, 0.6));
    }
    25% {
        opacity: 0.95;
        transform: scale(1.05);
        filter: drop-shadow(0 0 16px rgba(255, 170, 0, 0.8));
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
        filter: drop-shadow(0 0 22px rgba(255, 170, 0, 1));
    }
    75% {
        opacity: 0.9;
        transform: scale(1.03);
        filter: drop-shadow(0 0 14px rgba(255, 170, 0, 0.7));
    }
}

.device-orbit:hover .device-circle {
    fill: rgba(255, 170, 0, 0.25);
    stroke-width: 4;
    stroke: #ffaa00;
    filter: drop-shadow(0 0 20px rgba(255, 170, 0, 0.9));
    r: 75;
}

.device-orbit:hover .device-icon {
    font-size: 56;
    filter: drop-shadow(0 0 15px rgba(255, 170, 0, 0.8));
}

.device-halo {
    pointer-events: none;
    filter: drop-shadow(0 0 20px rgba(255, 170, 0, 0.6));
}

.pulse-line {
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(255, 170, 0, 0.8));
}

.connection-line {
    opacity: 0.5;
    transition: opacity 0.3s ease;
    filter: drop-shadow(0 0 3px rgba(255, 170, 0, 0.5));
}

.gargantua-container:hover .connection-line {
    opacity: 0.7;
    stroke-width: 3;
}

.energy-particle {
    filter: drop-shadow(0 0 6px rgba(255, 170, 0, 0.8));
}

.connection-line-1,
.connection-line-2,
.connection-line-3,
.connection-line-4,
.connection-line-5,
.connection-line-6 {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.gargantua-container:hover .connection-line-1,
.gargantua-container:hover .connection-line-2,
.gargantua-container:hover .connection-line-3,
.gargantua-container:hover .connection-line-4,
.gargantua-container:hover .connection-line-5,
.gargantua-container:hover .connection-line-6 {
    opacity: 0.5;
    stroke: rgba(255, 170, 0, 0.4);
}

.quasar-visual-side {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.quasar-visual-side::before {
    display: none;
}

.quasar-visual-side::after {
    display: none;
}

@keyframes starFieldPulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
}

.gargantua-container {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1;
    position: relative;
    z-index: 1;
}

.gargantua-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 40px rgba(255, 170, 0, 0.3));
    position: relative;
    z-index: 1;
}

.lensing-ring {
    animation: lensingPulse 4s ease-in-out infinite;
}

@keyframes lensingPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.black-hole {
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.8));
}

.accretion-disk-outer,
.accretion-disk-inner {
    transform-origin: 500px 500px;
}

@keyframes rotateOuterDisk {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes rotateInnerDisk {
    from { transform: rotate(0deg); }
    to   { transform: rotate(-360deg); }
}

/* Принудительное включение CSS анимаций для Safari iOS */
.accretion-disk-outer ellipse,
.accretion-disk-outer {
    animation: rotateOuterDisk 20s linear infinite;
    -webkit-animation: rotateOuterDisk 20s linear infinite;
    will-change: transform;
    transform-origin: 500px 500px;
}

.accretion-disk-inner ellipse,
.accretion-disk-inner {
    animation: rotateInnerDisk 12s linear infinite;
    -webkit-animation: rotateInnerDisk 12s linear infinite;
    will-change: transform;
    transform-origin: 500px 500px;
}

.black-hole-core {
    animation: blackHoleRotate 8s linear infinite, blackHolePulse 2s ease-in-out infinite;
    -webkit-animation: blackHoleRotate 8s linear infinite, blackHolePulse 2s ease-in-out infinite;
    will-change: transform;
    transform-origin: 500px 500px;
}

@keyframes blackHoleRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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


/* Keyframes для анимации устройств на орбите */
@keyframes deviceOrbit1 {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

@keyframes deviceOrbit2 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes deviceOrbit3 {
    from { transform: rotate(-45deg); }
    to { transform: rotate(315deg); }
}

@keyframes deviceOrbit4 {
    from { transform: rotate(-90deg); }
    to { transform: rotate(270deg); }
}

@keyframes deviceOrbit5 {
    from { transform: rotate(-135deg); }
    to { transform: rotate(-495deg); }
}

@keyframes deviceOrbit6 {
    from { transform: rotate(180deg); }
    to { transform: rotate(-180deg); }
}

@keyframes deviceOrbit7 {
    from { transform: rotate(135deg); }
    to { transform: rotate(495deg); }
}

/* Webkit префиксы для iOS */
@-webkit-keyframes rotateOuterDisk {
    from { -webkit-transform: rotate(0deg); }
    to { -webkit-transform: rotate(360deg); }
}

@-webkit-keyframes rotateInnerDisk {
    from { -webkit-transform: rotate(0deg); }
    to { -webkit-transform: rotate(-360deg); }
}

@-webkit-keyframes deviceOrbit1 {
    from { -webkit-transform: rotate(45deg); }
    to { -webkit-transform: rotate(405deg); }
}

@-webkit-keyframes deviceOrbit2 {
    from { -webkit-transform: rotate(0deg); }
    to { -webkit-transform: rotate(360deg); }
}

@-webkit-keyframes deviceOrbit3 {
    from { -webkit-transform: rotate(-45deg); }
    to { -webkit-transform: rotate(315deg); }
}

@-webkit-keyframes deviceOrbit4 {
    from { -webkit-transform: rotate(-90deg); }
    to { -webkit-transform: rotate(270deg); }
}

@-webkit-keyframes deviceOrbit5 {
    from { -webkit-transform: rotate(-135deg); }
    to { -webkit-transform: rotate(-495deg); }
}

@-webkit-keyframes deviceOrbit6 {
    from { -webkit-transform: rotate(180deg); }
    to { -webkit-transform: rotate(-180deg); }
}

@-webkit-keyframes deviceOrbit7 {
    from { -webkit-transform: rotate(135deg); }
    to { -webkit-transform: rotate(495deg); }
}

@media (max-width: 1200px) {
    .quasar-name-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .quasar-visual-side {
        order: -1;
    }
    
    .gargantua-container {
        max-width: 500px;
    }
    
    .quasar-text-side {
        padding-left: 40px;
        padding-right: 40px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .quasar-name-section {
        padding: 80px 0;
    }
    
    .quasar-name-section .container {
        padding: 0 20px;
    }
    
    .quasar-text-side {
        padding-left: 20px;
        padding-right: 20px;
        margin-left: 0;
        text-align: left;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .quasar-main-title {
        font-size: 40px;
        text-align: left;
    }
    
    .quasar-definition-text,
    .quasar-philosophy-text,
    .quasar-connection-text {
        text-align: left;
    }
    
    .gargantua-container {
        max-width: 100%;
    }
}

/* WHAT IS SECTION */
.what-is-section {
    padding: 180px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
    position: relative;
    overflow: hidden;
}

.what-is-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(11, 116, 255, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(0, 212, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.what-is-section.visible::after {
    opacity: 1;
}

.what-is-section::before {
    display: none;
}

.what-is-section .container {
    position: relative;
    z-index: 2;
}

.what-is-content {
    display: grid;
    grid-template-columns: minmax(260px, 520px) 1fr;
    grid-template-areas: "logo text";
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.what-is-content.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.person-info {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.what-is-content.visible .person-info {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.2s;
}

.person-name {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.009em;
}

.person-role {
    font-size: 17px;
    color: #86868b;
    line-height: 1.47059;
}

.quote-text {
    font-size: 20px;
    line-height: 1.5;
    color: #1d1d1f;
    font-weight: 400;
    letter-spacing: 0.01em;
    opacity: 0;
    transform: translateY(30px) translateX(20px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.what-is-content.visible .quote-text {
    opacity: 1;
    transform: translateY(0) translateX(0);
    transition-delay: 0.5s;
}

.quote-text strong {
    position: relative;
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.what-is-content.visible .quote-text strong {
    opacity: 1;
    transform: translateY(0);
}

.what-is-content.visible .quote-text strong:nth-of-type(1) {
    transition-delay: 0.8s;
}

.what-is-content.visible .quote-text strong:nth-of-type(2) {
    transition-delay: 1s;
}

.what-is-content.visible .quote-text strong:nth-of-type(3) {
    transition-delay: 1.2s;
}

.what-is-image {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateX(-60px) rotateY(-15deg) scale(0.8);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    grid-area: logo;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.what-is-image img {
    max-width: 520px;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.8s ease;
    filter: blur(5px);
}

.what-is-content.visible .what-is-image {
    opacity: 1;
    transform: translateX(0) rotateY(0deg) scale(1);
}

.what-is-content.visible .what-is-image img {
    filter: blur(0);
    animation: imageGlow 2s ease-out 0.5s;
}

@keyframes imageGlow {
    0% {
        filter: drop-shadow(0 0 0 rgba(11, 116, 255, 0));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(11, 116, 255, 0.4));
    }
    100% {
        filter: drop-shadow(0 0 0 rgba(11, 116, 255, 0));
    }
}

/* Текст справа, логотип слева */
.what-is-text {
    grid-area: text;
}

.what-is-text .quote-text {
    color: #1d1d1f;
    background: transparent;
    padding: 20px 0;
    border-radius: 0;
    backdrop-filter: none;
    border: none;
    outline: none;
    box-shadow: none;
}

@media (max-width: 900px) {
    .what-is-content {
        grid-template-columns: 1fr;
        grid-template-areas:
            "logo"
            "text";
        text-align: center;
        gap: 30px;
    }

    .what-is-text .quote-text {
        padding: 16px 24px;
        background: transparent;
        max-width: 85%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .what-is-image img {
        max-width: 173px !important;
        width: auto;
        height: auto;
    }
    
    .what-is-text .quote-text {
        max-width: 85%;
        margin: 0 auto;
        padding-left: 32px;
        padding-right: 32px;
    }
}

/* UNIQUE APPROACH SECTION */
.unique-approach-section {
    padding: 180px 0 60px 0;
    background: var(--bg-gray);
    position: relative;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.approach-card {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.8) 0%, rgba(245, 245, 247, 0.8) 50%, rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 48px;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
}

.approach-card.active {
    background: #000000;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.approach-card.active .approach-title {
    color: #ffffff;
}

.approach-card.active .approach-text {
    color: #ffffff;
}

.approach-card.active .approach-icon {
    color: #ffffff;
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.approach-card.active .approach-link {
    color: #ffffff;
    opacity: 0.9;
}

.approach-card.active .approach-link:hover {
    opacity: 1;
    color: #ffffff;
}

@media (max-width: 1200px) {
    .approach-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-features {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
        margin-top: 40px;
        padding: 0 4px;
        box-sizing: border-box;
    }
    
    .hero-feature-item {
        flex-direction: column;
        text-align: center;
        padding: 12px 6px;
        min-height: auto;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .hero-feature-item .feature-icon {
        font-size: clamp(22px, 4.5vw, 30px);
        margin-bottom: 6px;
        flex-shrink: 0;
    }
    
    .hero-feature-item .feature-title {
        font-size: clamp(14px, 3.5vw, 16px);
        margin-bottom: 4px;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .hero-feature-item .feature-desc {
        font-size: clamp(13px, 3.2vw, 14px);
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .hero-feature-item .feature-text {
        width: 100%;
        box-sizing: border-box;
    }
    
    .approach-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    
    .approach-card {
        padding: 20px 16px;
        min-height: 120px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 12px;
    }
    
    .approach-icon {
        font-size: 36px !important;
        margin-bottom: 9px !important;
    }
    
    .approach-title {
        font-size: 16px !important;
        margin-bottom: 0;
        text-align: center;
    }
    
    .approach-text {
        display: none;
    }
    
    .approach-link {
        position: absolute;
        right: 16px;
        bottom: 16px;
        font-size: 12px;
        opacity: 0.7;
        color: #86868b;
        display: block; /* Показываем на mobile */
    }
    
    .approach-card.active {
        background: #000000 !important;
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        box-shadow: 
            0 12px 40px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    .approach-card.active .approach-title {
        color: #ffffff !important;
    }
    
    .approach-card.active .approach-icon {
        color: #ffffff !important;
        opacity: 1 !important;
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    }
    
    .approach-card.active .approach-link {
        color: #ffffff !important;
        opacity: 0.9;
    }
}

.approach-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

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

.approach-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.approach-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.approach-card.active:hover {
    box-shadow: 
        0 16px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.approach-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.approach-card:hover::after {
    width: 100%;
}

.approach-icon {
    font-size: 48px;
    margin-bottom: 20px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.approach-card:hover .approach-icon {
    opacity: 1;
    transform: scale(1.1);
    color: var(--primary-color);
}

.approach-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.009em;
}

.approach-link {
    position: absolute;
    right: 16px;
    bottom: 16px;
    font-size: 13px;
    font-weight: 500;
    color: #86868b;
    text-decoration: none;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s ease, color 0.2s ease;
    display: none; /* Скрыто на desktop */
}

.approach-link:hover {
    opacity: 1;
    color: #6e6e73;
}

.approach-text {
    font-size: 15px;
    line-height: 1.5;
    color: #86868b;
    font-weight: 400;
}

/* APPROACH MODAL (Mobile) */
.approach-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.approach-modal.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.approach-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.approach-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: calc(100vw - 32px);
    max-width: 500px;
    max-height: calc(100vh - 80px);
    background: linear-gradient(to right, rgba(245, 245, 247, 0.95) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(245, 245, 247, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 32px 24px;
    overflow-y: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.approach-modal.active .approach-modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.approach-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 28px;
    color: #86868b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 1;
}

.approach-modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

.approach-modal-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.approach-modal-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: -0.009em;
}

.approach-modal-text {
    font-size: 17px;
    line-height: 1.47059;
    color: var(--text-dark);
    font-weight: 400;
    text-align: center;
}

.approach-modal-text strong {
    font-weight: 600;
}

@media (max-width: 768px) {
    .approach-modal-content {
        width: calc(100vw - 24px);
        padding: 28px 20px;
        max-height: calc(100vh - 60px);
        background: #000000 !important;
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        box-shadow: 
            0 12px 40px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    .approach-modal-title {
        font-size: 24px;
        color: #ffffff !important;
    }
    
    .approach-modal-text {
        font-size: 16px;
        color: #ffffff !important;
    }
    
    .approach-modal-text strong {
        color: #ffffff !important;
    }
    
    .approach-modal-icon {
        color: #ffffff !important;
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    }
    
    .approach-modal-close {
        color: #ffffff !important;
    }
    
    .approach-modal-close:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
    }
}

/* CAPABILITIES SECTION */
.capabilities-section {
    padding: 60px 0 180px 0;
    background: #f5f5f7;
    position: relative;
}

/* Capabilities section with background image */
.capabilities-bg-image {
    background-image: url('images/оФОРМЛЕНИЕ НОВОЕ/IMG_0566.JPEG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    padding: 120px 0 180px 0;
}

.capabilities-bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.capabilities-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.capabilities-bg-image .container {
    position: relative;
    z-index: 2;
}

.capabilities-bg-image .section-title,
.capabilities-bg-image .section-intro {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.capabilities-bg-image .section-intro {
    opacity: 0.95;
}

.capabilities-bg-image .capability-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.capabilities-bg-image .capability-card:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-8px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

.smart-home-visual {
    margin: 60px 0;
    text-align: center;
}

.smart-home-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: block;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.smart-home-image:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 1200px) {
    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    
    .capability-icon {
        width: 36px !important;
        height: 36px !important;
        margin-bottom: 9px !important;
    }
    
    .capability-card {
        padding: 20px 16px;
        min-height: 120px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .capability-title {
        font-size: 18px !important;
        margin-bottom: 0;
        text-align: center;
    }
    
    .capability-intro {
        display: none;
    }
    
    .capability-details {
        display: none !important;
    }
    
    .capability-link {
        position: static !important;
        margin-top: 12px !important;
        font-size: 12px !important;
        opacity: 0.7 !important;
        color: #86868b !important;
        text-align: center !important;
        display: block !important; /* Показываем на mobile */
    }
    
    .capability-card.active {
        background: #000000 !important;
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        box-shadow: 
            0 12px 40px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    .capability-card.active .capability-title {
        color: #ffffff !important;
    }
    
    .capability-card.active .capability-icon {
        color: #ffffff !important;
        opacity: 1 !important;
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    }
    
    .capability-card.active .capability-icon svg {
        stroke: #ffffff !important;
    }
    
    .capability-card.active .capability-icon svg path {
        stroke: #ffffff !important;
    }
    
    .capability-card.active .capability-link {
        color: #ffffff !important;
        opacity: 0.9;
    }
    
    /* На мобильных устройствах не показываем активное состояние карточек */
    .capability-card.active .capability-details {
        display: none !important;
    }
}

.capability-card {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.8) 0%, rgba(245, 245, 247, 0.8) 50%, rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 48px;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.capability-card.active {
    background: #000000;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.capability-card.active .capability-title,
.capability-card.active .capability-intro,
.capability-card.active .capability-intro strong {
    color: #ffffff;
}

.capability-card.active .capability-icon {
    color: #ffffff;
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.capability-card.active .capability-icon svg {
    stroke: #ffffff;
    fill: none;
}

.capability-card.active .capability-icon svg path {
    stroke: #ffffff;
}

.capability-card.active .capability-details {
    color: #ffffff !important;
}

.capability-card.active .capability-details ul li {
    color: #ffffff !important;
    font-weight: 500;
}

.capability-card.active .capability-details li::before {
    color: #ffaa00 !important;
    font-weight: bold;
    filter: drop-shadow(0 1px 3px rgba(255, 170, 0, 0.3));
}

.capability-card.active .capability-more {
    color: #ffffff;
}

.capability-card.active .capability-more::after {
    color: #ffffff;
}

.capability-click-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    opacity: 1;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    pointer-events: none;
    animation: clickPulse 2s ease-in-out infinite;
}

.capability-card.active .capability-click-indicator {
    opacity: 0;
    transform: scale(0);
}

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

.capability-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.capability-card:hover::after {
    width: 100%;
}

.capability-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.capability-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.capability-card.active:hover {
    box-shadow: 
        0 16px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.capability-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    color: var(--primary-color);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.capability-icon svg {
    width: 100%;
    height: 100%;
}

.capability-card:hover .capability-icon {
    opacity: 1;
    transform: scale(1.1);
    color: var(--primary-color);
}

.capability-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: -0.009em;
    transition: color 0.3s ease;
}

.capability-intro {
    font-size: 16px;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 24px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.capability-link {
    position: absolute;
    right: 16px;
    bottom: 16px;
    font-size: 13px;
    font-weight: 500;
    color: #86868b;
    text-decoration: none;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s ease, color 0.2s ease;
    display: none; /* Скрыто на desktop */
}

.capability-link:hover {
    opacity: 1;
    color: #6e6e73;
}

.capability-card.active .capability-link {
    color: #ffffff;
    opacity: 0.9;
}

.capability-card.active .capability-link:hover {
    opacity: 1;
    color: #ffffff;
}

.capability-intro strong {
    transition: color 0.3s ease;
}

.capability-more {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 17px;
    font-weight: 400;
    cursor: pointer;
    padding: 0;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.capability-card.active .capability-more {
    color: #ffffff;
}

.capability-more::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.capability-more:hover::after {
    transform: translateX(4px);
}

.capability-details {
    display: none;
    margin-top: 24px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.capability-card.active .capability-details {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.capability-details ul {
    list-style: none;
    padding: 0;
}

.capability-details li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    font-size: 15px;
    color: #86868b;
    line-height: 1.35;
    transition: color 0.3s ease;
}

.capability-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 24px;
}

/* CAPABILITY MODAL (Mobile) */
.capability-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.capability-modal.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.capability-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.capability-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: calc(100vw - 32px);
    max-width: 500px;
    max-height: calc(100vh - 80px);
    background: linear-gradient(to right, rgba(245, 245, 247, 0.95) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(245, 245, 247, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 32px 24px;
    overflow-y: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.capability-modal.active .capability-modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.capability-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 28px;
    color: #86868b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 1;
}

.capability-modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

.capability-modal-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.capability-modal-icon svg {
    width: 100%;
    height: 100%;
}

.capability-modal-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: -0.009em;
}

.capability-modal-intro {
    font-size: 17px;
    line-height: 1.47059;
    color: var(--text-dark);
    margin-bottom: 24px;
    font-weight: 400;
    text-align: center;
}

.capability-modal-intro strong {
    font-weight: 600;
}

.capability-modal-details {
    margin-top: 24px;
}

.capability-modal-details ul {
    list-style: none;
    padding: 0;
}

.capability-modal-details li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    font-size: 17px;
    color: #86868b;
    line-height: 1.47059;
}

.capability-modal-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 24px;
}

@media (max-width: 768px) {
    .capability-modal-content {
        width: calc(100vw - 24px);
        padding: 28px 20px;
        max-height: calc(100vh - 60px);
        background: #000000 !important;
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        box-shadow: 
            0 12px 40px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    .capability-modal-title {
        font-size: 24px;
        color: #ffffff !important;
    }
    
    .capability-modal-intro {
        font-size: 16px;
        color: #ffffff !important;
    }
    
    .capability-modal-intro strong {
        color: #ffffff !important;
    }
    
    .capability-modal-icon {
        color: #ffffff !important;
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    }
    
    .capability-modal-icon svg {
        stroke: #ffffff !important;
    }
    
    .capability-modal-icon svg path {
        stroke: #ffffff !important;
    }
    
    .capability-modal-close {
        color: #ffffff !important;
    }
    
    .capability-modal-close:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
    }
    
    .capability-modal-details li {
        color: #ffffff !important;
        font-weight: 500;
    }
    
    .capability-modal-details li::before {
        color: #ffaa00 !important;
        font-weight: bold;
        filter: drop-shadow(0 1px 3px rgba(255, 170, 0, 0.3));
    }
}

/* SCENARIOS SECTION */
.scenarios-section {
    padding: 100px 0;
    background: var(--bg-gray);
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 968px) {
    .scenarios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.scenarios-section {
    padding: 100px 0;
}

.scenario-card {
    background: var(--bg-light);
    padding: 32px;
    border-radius: 20px;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(40px);
    position: relative;
}

.scenario-card.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.scenario-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: -0.009em;
}

.scenario-text {
    font-size: 17px;
    line-height: 1.47059;
    color: var(--text-dark);
    font-weight: 400;
}

/* CONTROL SECTION */
.control-section {
    padding: 180px 0;
    background: var(--bg-light);
}

.control-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 968px) {
    .control-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.control-item {
    background: var(--bg-light);
    padding: 48px;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(40px) rotateX(10deg);
    transform-style: preserve-3d;
}

.control-item.visible {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

.control-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px) rotateX(0deg);
}

.control-icon {
    font-size: 64px;
    margin-bottom: 32px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.control-item:hover .control-icon {
    transform: scale(1.15) rotateY(10deg);
}

.control-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: -0.009em;
}

.control-text {
    font-size: 17px;
    line-height: 1.47059;
    color: var(--text-dark);
    margin-bottom: 16px;
    font-weight: 400;
}

.app-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.app-badge {
    padding: 10px 20px;
    background: var(--bg-gray);
    border-radius: 980px;
    font-size: 15px;
    text-decoration: none;
    color: var(--text-dark);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: 400;
}

.app-badge:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: scale(1.05);
}

.voice-assistant {
    font-size: 19px;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 24px;
}

/* APP DEMO SECTION */
.app-demo-section {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Новая сетка телефонов */
.app-phones-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.app-phone-item {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: phoneItemAppear 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.app-phone-item:nth-child(1) { animation-delay: 0.1s; }
.app-phone-item:nth-child(2) { animation-delay: 0.3s; }
.app-phone-item:nth-child(3) { animation-delay: 0.5s; }

@keyframes phoneItemAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-phone-wrapper {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 20px;
    margin-bottom: 32px;
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.app-phone-item:hover .app-phone-wrapper {
    transform: translateY(-8px);
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.1);
}

.app-phone-image {
    width: 100%;
    height: auto;
    max-width: 300px;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

.app-phone-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.009em;
}

.app-phone-description {
    font-size: 16px;
    line-height: 1.6;
    color: #86868b;
    margin: 0;
}

/* Адаптивность для app-phones-grid */
@media (max-width: 1024px) {
    .app-phones-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
    
    .app-phone-wrapper {
        padding: 30px 16px;
        min-height: 400px;
    }
    
    .app-phone-image {
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .app-phones-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 60px;
    }
    
    .app-phone-wrapper {
        padding: 40px 20px;
        min-height: 450px;
    }
    
    .app-phone-image {
        max-width: 280px;
    }
    
    .app-phone-title {
        font-size: 22px;
    }
    
    .app-phone-description {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .app-phones-grid {
        gap: 32px;
        margin-top: 40px;
    }
    
    .app-phone-wrapper {
        padding: 30px 16px;
        min-height: 400px;
    }
    
    .app-phone-image {
        max-width: 240px;
    }
    
    .app-phone-title {
        font-size: 20px;
    }
    
    .app-phone-description {
        font-size: 14px;
    }
}

.app-demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-top: 80px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-demo-section .section-title.visible ~ .app-demo-container {
    opacity: 1;
    transform: translateY(0);
}

.app-demo-main {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-phone-frame {
    width: 320px;
    height: 640px;
    background: linear-gradient(135deg, #1d1d1f 0%, #2d2d2f 100%);
    border-radius: 48px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    transform: perspective(1000px) rotateY(-8deg) rotateX(8deg);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-demo-container.visible .app-phone-frame {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.app-phone-frame:hover {
    transform: perspective(1000px) rotateY(2deg) rotateX(-2deg) scale(1.02);
}

.app-phone-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background: #1d1d1f;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

.app-phone-screen {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
}

.app-screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #ffffff;
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
}

.app-status-icons {
    display: flex;
    gap: 6px;
    font-size: 12px;
}

.app-content {
    padding: 20px;
    height: calc(100% - 60px);
    overflow-y: auto;
}

.app-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 17px;
    font-weight: 600;
    color: #1d1d1f;
}

.app-panel-title {
    font-size: 19px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 20px;
    text-align: center;
}

.app-auto-section {
    background: #f5f5f7;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
}

.app-auto-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
}

.app-toggle {
    width: 44px;
    height: 26px;
    background: #d2d2d7;
    border-radius: 13px;
    margin-left: auto;
    position: relative;
    transition: background 0.3s;
}

.app-toggle.active {
    background: var(--primary-color);
}

.app-toggle.active::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    top: 2px;
    right: 2px;
    transition: transform 0.3s;
}

.app-room-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.app-room-card {
    background: #f5f5f7;
    border-radius: 16px;
    padding: 20px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.app-room-card.active {
    border-color: var(--primary-color);
    background: #f0f7ff;
}

.app-room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 17px;
    font-weight: 600;
    color: #1d1d1f;
}

.app-room-status {
    font-size: 13px;
    color: #86868b;
    margin-bottom: 16px;
}

.app-room-status.heating {
    color: #ff9500;
    font-weight: 600;
}

.app-temp-gauge {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.app-temp-circle {
    width: 120px;
    height: 120px;
    border: 8px solid #e5e5e7;
    border-top-color: #ff9500;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s;
}

.app-room-card.active .app-temp-circle {
    animation: rotate 3s linear infinite;
    border-top-color: #ff9500;
    border-right-color: #ff9500;
}

.app-temp-circle.heating {
    border-top-color: #ff9500;
    border-right-color: #ff9500;
}

.app-temp-value {
    font-size: 32px;
    font-weight: 600;
    color: #1d1d1f;
}

.app-target-temp {
    text-align: center;
    font-size: 15px;
    color: #86868b;
    margin-bottom: 16px;
}

.app-room-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 12px;
}

.app-control-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #d2d2d7;
    background: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.app-control-btn:hover {
    background: var(--bg-gray);
    transform: scale(1.1);
}

.app-room-mode {
    text-align: center;
    font-size: 14px;
    color: #86868b;
}

.app-features-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.app-feature-item {
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-demo-container.visible .app-feature-item {
    opacity: 1;
    transform: translateX(0);
}

.app-demo-container.visible .app-feature-item:nth-child(1) { transition-delay: 0.2s; }
.app-demo-container.visible .app-feature-item:nth-child(2) { transition-delay: 0.4s; }
.app-demo-container.visible .app-feature-item:nth-child(3) { transition-delay: 0.6s; }
.app-demo-container.visible .app-feature-item:nth-child(4) { transition-delay: 0.8s; }

.app-feature-icon {
    font-size: 48px;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gray);
    border-radius: 16px;
    transition: transform 0.3s;
}

.app-feature-item:hover .app-feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.app-feature-content {
    flex: 1;
}

.app-feature-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.009em;
}

.app-feature-desc {
    font-size: 17px;
    line-height: 1.47059;
    color: #86868b;
    font-weight: 400;
}

.app-screens-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 100px;
}

.app-screen-item {
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-screen-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.app-screen-preview {
    background: var(--bg-gray);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.app-screenshot-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.app-screen-item:hover .app-screen-preview {
    transform: translateY(-12px) scale(1.02);
}

.app-screen-item:hover .app-screenshot-img {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.app-screen-mini {
    width: 200px;
    height: 360px;
    background: #ffffff;
    border-radius: 32px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e5e7;
}

.app-mini-header {
    font-size: 17px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 20px;
    text-align: center;
}

.app-mini-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.app-mini-card {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 16px;
    font-size: 13px;
    color: #1d1d1f;
    text-align: center;
}

.app-mini-modes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-mini-mode {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 12px;
    font-size: 13px;
    color: #86868b;
    text-align: center;
}

.app-mini-mode.active {
    background: var(--primary-color);
    color: white;
}

.app-screen-mini.consumption .app-mini-section {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.app-mini-title {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.app-mini-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.app-mini-graph {
    height: 40px;
    background: linear-gradient(90deg, var(--primary-color) 0%, rgba(11, 116, 255, 0.3) 100%);
    border-radius: 8px;
}

.app-mini-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-mini-stat {
    font-size: 13px;
    color: #86868b;
    padding: 8px;
    background: #f5f5f7;
    border-radius: 8px;
}

.app-screen-mini.devices .app-mini-device {
    background: #e8f5e9;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.app-mini-device-icon {
    font-size: 24px;
}

.app-mini-device-name {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
}

.app-mini-thermostat {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
}

.app-mini-temp {
    font-size: 32px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.app-mini-target {
    font-size: 15px;
    color: #86868b;
}

.app-mini-quick {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-mini-quick-btn {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 12px;
    font-size: 13px;
    color: #86868b;
    text-align: center;
}

.app-mini-quick-btn.active {
    background: var(--primary-color);
    color: white;
}

.app-screen-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.009em;
}

.app-screen-desc {
    font-size: 17px;
    line-height: 1.47059;
    color: #86868b;
    font-weight: 400;
}

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

/* TECHNICAL SECTION */
/* CROSS-PLATFORM SECTION */
.cross-platform-section {
    padding: 180px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
    position: relative;
    overflow: hidden;
}

.cross-platform-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 61, 130, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(11, 116, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.devices-showcase {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 60px;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.device-item {
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    animation: deviceAppear 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

@keyframes deviceAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.device-laptop {
    flex: 0 0 400px;
}

.device-phone {
    flex: 0 0 280px;
}

.device-watch {
    flex: 0 0 200px;
    background: transparent;
}

.device-watch .device-frame-wrapper {
    background: transparent !important;
}

.device-watch .device-frame-image {
    background: transparent !important;
}

.device-frame-wrapper {
    position: relative;
    margin-bottom: 24px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.device-watch .device-frame-wrapper {
    background: transparent;
}

.device-item:hover .device-frame-wrapper {
    transform: translateY(-10px) scale(1.02);
}

.device-frame-image {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    background: transparent;
}

.device-watch .device-frame-image {
    background: transparent;
    mix-blend-mode: normal;
}

.device-screen-content {
    display: none;
}

.device-screen-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

.device-screen-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.device-laptop .device-screen-content {
    top: 8%;
    left: 8%;
    right: 8%;
    bottom: 20%;
    border-radius: 4px;
}

.device-phone .device-screen-content {
    top: 12%;
    left: 8%;
    right: 8%;
    bottom: 12%;
    border-radius: 32px;
}

.device-watch .device-screen-content {
    top: 18%;
    left: 12%;
    right: 12%;
    bottom: 18%;
    border-radius: 50%;
}

.device-name {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.009em;
}

.device-description {
    font-size: 16px;
    color: #86868b;
    line-height: 1.5;
}

.cross-platform-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 100px;
    position: relative;
    z-index: 1;
}

.benefit-item {
    text-align: center;
    padding: 40px 24px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    animation: benefitAppear 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.benefit-item:nth-child(1) { animation-delay: 0.7s; }
.benefit-item:nth-child(2) { animation-delay: 0.9s; }
.benefit-item:nth-child(3) { animation-delay: 1.1s; }

@keyframes benefitAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.benefit-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
}

.benefit-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.009em;
}

.benefit-text {
    font-size: 16px;
    color: #86868b;
    line-height: 1.5;
}

@media (max-width: 1200px) {
    .devices-showcase {
        gap: 40px;
    }
    
    .device-laptop {
        flex: 0 0 320px;
    }
    
    .device-phone {
        flex: 0 0 240px;
    }
    
    .device-watch {
        flex: 0 0 160px;
    }
    
    .cross-platform-benefits {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .cross-platform-section {
        padding: 100px 0;
    }
    
    .devices-showcase {
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }
    
    .device-laptop,
    .device-phone,
    .device-watch {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
    }
    
    .cross-platform-benefits {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 60px;
    }
    
    .benefit-item {
        padding: 32px 20px;
    }
}

/* INTEGRATIONS BLOCK */
.integrations-block {
    margin-top: 120px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.integrations-title {
    font-family: var(--font-brand);
    font-size: 42px;
    font-weight: 400;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 24px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.integrations-subtitle {
    font-size: 19px;
    line-height: 1.5;
    color: #86868b;
    max-width: 800px;
    margin: 0 auto 60px;
    font-weight: 400;
}

/* Unified Platforms Grid - объединенная сетка для устройств и интеграций */
.unified-platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.platform-card {
    background: #ffffff;
    padding: 40px 32px;
    border-radius: 24px;
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: platformCardAppear 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

@keyframes platformCardAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.platform-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 61, 130, 0.2);
}

.platform-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #f5f5f7 0%, #ffffff 100%);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.platform-card:hover .platform-icon-wrapper {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(0, 61, 130, 0.05) 0%, rgba(11, 116, 255, 0.05) 100%);
}

.platform-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    line-height: 1;
}

.platform-icon.device-icon {
    font-size: 48px;
}

.platform-icon.integration-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.platform-name {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.009em;
}

.platform-description {
    font-size: 15px;
    color: #86868b;
    line-height: 1.6;
    margin: 0;
}

.platforms-note {
    margin-top: 60px;
    padding: 24px 32px;
    background: rgba(0, 61, 130, 0.03);
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
    text-align: center;
    position: relative;
    z-index: 1;
}

.platforms-note-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
    opacity: 0.9;
}

/* Responsive для unified-platforms-grid */
@media (max-width: 1024px) {
    .unified-platforms-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .unified-platforms-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 60px;
    }
    
    .platform-card {
        padding: 32px 24px;
    }
    
    .platform-icon-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .platform-icon {
        width: 40px;
        height: 40px;
        font-size: 40px;
    }
    
    .platform-name {
        font-size: 20px;
    }
    
    .platform-description {
        font-size: 14px;
    }
    
    .platforms-note {
        margin-top: 40px;
        padding: 20px 24px;
    }
    
    .platforms-note-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .unified-platforms-grid {
        gap: 20px;
        margin-top: 40px;
    }
    
    .platform-card {
        padding: 24px 20px;
    }
    
    .platform-icon-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
    }
    
    .platform-icon {
        width: 36px;
        height: 36px;
        font-size: 36px;
    }
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.integration-card {
    background: var(--bg-light);
    padding: 40px 32px;
    border-radius: 24px;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.integration-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.integration-card:nth-child(1).visible { transition-delay: 0.1s; }
.integration-card:nth-child(2).visible { transition-delay: 0.2s; }
.integration-card:nth-child(3).visible { transition-delay: 0.3s; }
.integration-card:nth-child(4).visible { transition-delay: 0.4s; }

.integration-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.integration-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.integration-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.integration-icon {
    font-size: 56px;
    margin-bottom: 24px;
    display: block;
    transition: transform 0.3s ease;
}

.integration-icon.integration-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.integration-icon.integration-logo svg {
    width: 100%;
    height: 100%;
    fill: var(--primary-color);
    transition: all 0.3s ease;
}

.integration-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: all 0.3s ease;
}

.integration-card:hover .integration-icon,
.integration-card:hover .integration-icon-wrapper img {
    transform: scale(1.1);
}

.integration-card:hover .integration-icon.integration-logo svg {
    filter: drop-shadow(0 4px 12px rgba(0, 61, 130, 0.4));
    transform: scale(1.05);
}

.integration-card:hover .integration-logo-img {
    filter: drop-shadow(0 4px 12px rgba(0, 61, 130, 0.4));
    transform: scale(1.05);
}

.integration-name {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.009em;
}

.integration-description {
    font-size: 17px;
    line-height: 1.47059;
    color: #86868b;
    font-weight: 400;
}

.integrations-note {
    background: linear-gradient(to right, rgba(0, 61, 130, 0.08) 0%, rgba(26, 26, 26, 0.05) 50%, rgba(0, 0, 0, 0.08) 100%);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: 0 auto;
}

.integrations-note-text {
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-dark);
    font-weight: 500;
    margin: 0;
}

@media (max-width: 968px) {
    .integrations-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .integration-card {
        padding: 32px 20px;
    }
    
    .integrations-title {
        font-size: 32px;
    }
    
    .integrations-subtitle {
        font-size: 17px;
        margin-bottom: 40px;
    }
    
    .integrations-block {
        margin-top: 80px;
    }
}

@media (max-width: 640px) {
    .integrations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .integration-card {
        padding: 32px 24px;
    }
    
    .integration-icon {
        font-size: 48px;
        margin-bottom: 20px;
    }
    
    .integration-icon.integration-logo {
        width: 64px;
        height: 64px;
    }
    
    .integration-name {
        font-size: 20px;
    }
    
    .integration-description {
        font-size: 16px;
    }
    
    .integrations-note {
        padding: 24px;
    }
    
    .integrations-note-text {
        font-size: 16px;
    }
}

.technical-section {
    padding: 180px 0;
    background: var(--bg-gray);
}

.technical-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
}

@media (max-width: 1200px) {
    .technical-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .technical-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
        display: grid !important;
        flex-direction: unset !important;
    }

    .technical-card {
        padding: 20px 16px;
        min-height: 120px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .technical-icon {
        font-size: 36px !important;
        margin-bottom: 9px !important;
    }

    .technical-title {
        font-size: 16px !important;
        margin-bottom: 0;
        text-align: center;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        padding: 0 4px;
    }

    .technical-text {
        display: none;
    }
    
    .technical-link {
        position: static;
        margin-top: 8px;
        font-size: 12px;
        opacity: 0.7;
        color: #86868b;
        display: block; /* Показываем на mobile */
    }
    
    .technical-card.active {
        background: #000000 !important;
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        box-shadow: 
            0 12px 40px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    .technical-card.active .technical-title {
        color: #ffffff !important;
    }
    
    .technical-card.active .technical-icon {
        color: #ffffff !important;
        opacity: 1 !important;
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    }
    
    .technical-card.active .technical-link {
        color: #ffffff !important;
        opacity: 0.9;
    }
}

.technical-card {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.8) 0%, rgba(245, 245, 247, 0.8) 50%, rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 48px;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.technical-card.active {
    background: #000000;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.technical-card.active .technical-title {
    color: #ffffff;
}

.technical-card.active .technical-text {
    color: #ffffff;
}

.technical-card.active .technical-text strong {
    color: #ffffff;
}

.technical-card.active .technical-icon {
    color: #ffffff;
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.technical-card.active .technical-link {
    color: #ffffff;
    opacity: 0.9;
}

.technical-card.active .technical-link:hover {
    opacity: 1;
    color: #ffffff;
}

.technical-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

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

.technical-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.technical-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.technical-card.active:hover {
    box-shadow: 
        0 16px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.technical-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.technical-card:hover::after {
    width: 100%;
}

.technical-icon {
    font-size: 48px;
    margin-bottom: 20px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.technical-card:hover .technical-icon {
    opacity: 1;
    transform: scale(1.1);
    color: var(--primary-color);
}

.technical-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.009em;
    line-height: 1.3;
}

.technical-text {
    font-size: 14px;
    line-height: 1.5;
    color: #86868b;
    font-weight: 400;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.technical-text .wired-label,
.technical-text .wireless-label {
    display: none;
}

.technical-link {
    position: absolute;
    right: 16px;
    bottom: 16px;
    font-size: 13px;
    font-weight: 500;
    color: #86868b;
    text-decoration: none;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s ease, color 0.2s ease;
    display: none; /* Скрыто на desktop */
}

.technical-link:hover {
    opacity: 1;
    color: #6e6e73;
}

/* TECHNICAL MODAL (Mobile) */
.technical-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.technical-modal.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.technical-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.technical-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: calc(100vw - 32px);
    max-width: 500px;
    max-height: calc(100vh - 80px);
    background: linear-gradient(to right, rgba(245, 245, 247, 0.95) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(245, 245, 247, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 32px 24px;
    overflow-y: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.technical-modal.active .technical-modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.technical-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 28px;
    color: #86868b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 1;
}

.technical-modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

.technical-modal-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.technical-modal-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: -0.009em;
}

.technical-modal-text {
    font-size: 17px;
    line-height: 1.47059;
    color: var(--text-dark);
    font-weight: 400;
    text-align: center;
}

.technical-modal-text strong {
    font-weight: 600;
}

@media (max-width: 768px) {
    .technical-modal-content {
        width: calc(100vw - 24px);
        padding: 28px 20px;
        max-height: calc(100vh - 60px);
        background: #000000 !important;
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        box-shadow: 
            0 12px 40px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    .technical-modal-title {
        font-size: 24px;
        color: #ffffff !important;
    }
    
    .technical-modal-text {
        font-size: 16px;
        color: #ffffff !important;
    }
    
    .technical-modal-text strong {
        color: #ffffff !important;
    }
    
    .technical-modal-icon {
        color: #ffffff !important;
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    }
    
    .technical-modal-close {
        color: #ffffff !important;
    }
    
    .technical-modal-close:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
    }
}

/* HOME ASSISTANT SECTION */
.home-assistant-section {
    padding: 80px 0;
    background: transparent !important;
    position: relative;
    overflow: hidden;
}

.home-assistant-section::before {
    display: none;
}

/* Compact Home Assistant Styles */
.ha-compact-header {
    text-align: center;
    margin-bottom: 60px;
}

.ha-logo-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

.ha-logo-svg-compact {
    width: 64px;
    height: 64px;
    color: #41BDF5;
    filter: drop-shadow(0 4px 12px rgba(65, 189, 245, 0.3));
}

.ha-logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.ha-badge-compact {
    font-size: 12px;
    font-weight: 600;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ha-title-compact {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
}

.ha-subtitle-compact {
    font-size: 18px;
    color: var(--text-dark);
    opacity: 0.7;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.ha-features-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.ha-feature-compact-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.ha-feature-compact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #41BDF5, #03A9F4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.ha-feature-compact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(65, 189, 245, 0.2);
}

.ha-feature-compact-card:hover::before {
    transform: scaleX(1);
}

.ha-feature-icon-compact {
    font-size: 40px;
    margin-bottom: 16px;
    display: block;
    transition: transform 0.3s ease;
}

.ha-feature-compact-card:hover .ha-feature-icon-compact {
    transform: scale(1.1) rotate(5deg);
}

.ha-feature-title-compact {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.3;
}

.ha-feature-text-compact {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    opacity: 0.7;
    margin: 0;
}

.ha-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ha-logo-container {
    text-align: center;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: haAppear 1s ease-out forwards;
}

@keyframes haAppear {
    to {
    opacity: 1;
    transform: translateY(0);
    }
}

.ha-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #03a9f4 0%, #0288d1 100%);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(3, 169, 244, 0.3);
    position: relative;
    animation: haLogoFloat 3s ease-in-out infinite;
}

@keyframes haLogoFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.ha-logo-svg {
    width: 70px;
    height: 70px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.ha-badge {
    font-size: 13px;
    font-weight: 600;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.ha-title {
    font-family: var(--font-brand);
    font-size: 48px;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #03a9f4 0%, #0288d1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ha-subtitle {
    font-size: 17px;
    color: #86868b;
    font-weight: 400;
}

.ha-features-visual {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
}

.ha-feature-visual-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    min-width: 120px;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(20px);
    animation: haFeatureAppear 0.6s ease-out forwards;
}

.ha-feature-visual-item:nth-child(1) {
    animation-delay: 0.2s;
}

.ha-feature-visual-item:nth-child(2) {
    animation-delay: 0.4s;
}

.ha-feature-visual-item:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes haFeatureAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ha-feature-visual-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(3, 169, 244, 0.2);
}

.ha-visual-icon {
    font-size: 32px;
    margin-bottom: 4px;
}

.ha-feature-visual-item span {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
    text-align: center;
}

.ha-info {
    opacity: 0;
    transform: translateX(30px);
    animation: haInfoAppear 1s ease-out 0.3s forwards;
}

.ha-info .section-intro {
    margin-bottom: 20px;
}

@keyframes haInfoAppear {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ha-advantages {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ha-advantage-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    opacity: 0;
    transform: translateX(-20px);
}

.ha-advantage-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.ha-advantage-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(3, 169, 244, 0.15);
}

.ha-advantage-icon {
    font-size: 40px;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(3, 169, 244, 0.1) 0%, rgba(2, 136, 209, 0.1) 100%);
    border-radius: 12px;
}

.ha-advantage-content {
    flex: 1;
}

.ha-advantage-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.ha-advantage-text {
    font-size: 15px;
    line-height: 1.5;
    color: #86868b;
}

.ha-cta {
    margin-top: 20px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(3, 169, 244, 0.05) 0%, rgba(2, 136, 209, 0.05) 100%);
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(3, 169, 244, 0.1);
}

.ha-cta-text {
    font-size: 17px;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 500;
}

/* RESPONSIVE HOME ASSISTANT */
@media (max-width: 968px) {
    .ha-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .ha-visual {
        order: 2;
    }

    .ha-info {
        order: 1;
    }

    .ha-title {
        font-size: 36px;
    }

    .ha-features-visual {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .ha-logo {
        width: 100px;
        height: 100px;
    }

    .ha-logo-svg {
        width: 60px;
        height: 60px;
    }

    .ha-title {
        font-size: 32px;
    }

    .ha-advantage-item {
        flex-direction: column;
        text-align: center;
    }

    .ha-advantage-icon {
        margin: 0 auto;
    }

}

/* MISSION SECTION */
.mission-section {
    padding: 180px 0;
    background: var(--bg-light);
    text-align: center;
}

.mission-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.mission-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.mission-text {
    font-size: 21px;
    line-height: 1.381;
    color: var(--text-dark);
    margin-bottom: 24px;
    font-weight: 400;
    letter-spacing: 0.011em;
    text-align: center;
}

.mission-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

.mission-list li {
    font-size: 19px;
    line-height: 1.42105;
    color: var(--text-dark);
    padding: 16px 0;
    padding-left: 48px;
    position: relative;
    font-weight: 400;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mission-content.visible .mission-list li {
    opacity: 1;
    transform: translateX(0);
}

.mission-content.visible .mission-list li:nth-child(1) { transition-delay: 0.1s; }
.mission-content.visible .mission-list li:nth-child(2) { transition-delay: 0.2s; }
.mission-content.visible .mission-list li:nth-child(3) { transition-delay: 0.3s; }
.mission-content.visible .mission-list li:nth-child(4) { transition-delay: 0.4s; }

.mission-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 16px;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 600;
}

/* SHOWROOM SECTION */
.showroom-section {
    padding: 180px 0;
    background: var(--bg-gray);
    text-align: center;
}

.showroom-description {
    font-size: 21px;
    line-height: 1.381;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto 48px;
    font-weight: 400;
    letter-spacing: 0.011em;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.showroom-description.visible {
    opacity: 1;
    transform: translateY(0);
}

.btn-showroom-section {
    margin: 60px auto 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
}

.btn-showroom-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.showroom-locations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.location-item {
    text-align: left;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(40px);
}

.location-item.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.location-city {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.009em;
}

.location-address {
    font-size: 17px;
    color: #86868b;
    margin-bottom: 16px;
    line-height: 1.47059;
}

.location-map {
    font-size: 17px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 400;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.location-map::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.location-map:hover::after {
    transform: translateX(4px);
}

/* PROJECTS SECTION */
.projects-section {
    padding: 180px 0;
    background: var(--bg-light);
}

/* OUR WORK SECTION - Collage */
.our-work-section {
    padding: 180px 0;
    background: var(--bg-light);
}

.work-collage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(5, 200px);
    gap: 20px;
    margin-top: 60px;
}

.work-collage-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f5f5f7 0%, #e5e5ea 100%);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.work-collage-item {
    cursor: pointer;
    z-index: 1;
}

.work-collage-item:hover:not(.zoomed) {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.work-collage-item:hover:not(.zoomed) img {
    transform: scale(1.08) translateZ(0);
}

.work-collage-item:hover.zoomed {
    transform: translate(-50%, -50%);
}

.work-collage-item.work-collage-large {
    grid-column: span 2;
    grid-row: span 2;
}

.work-collage-item.work-collage-wide {
    grid-column: span 2;
}

.work-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #86868b;
    font-size: 16px;
    font-weight: 500;
    background: linear-gradient(135deg, #f5f5f7 0%, #e5e5ea 100%);
    border: 2px dashed #d2d2d7;
}

.work-collage-item {
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.work-collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

/* Увеличенное состояние */
.work-collage-item.zoomed {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 90vw;
    height: 90vh;
    max-width: 1200px;
    max-height: 800px;
    z-index: 10000;
    cursor: zoom-out;
    border-radius: 16px;
    overflow: visible;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: zoomInBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes zoomInBounce {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    60% {
        transform: translate(-50%, -50%) scale(1.05);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.work-collage-item.zoomed img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    transform: translateZ(0);
    will-change: transform;
}

/* Затемнение фона при увеличении */
.work-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    cursor: zoom-out;
    animation: fadeIn 0.3s ease;
}

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

@media (max-width: 1200px) {
    .work-collage-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(6, 180px);
    }
}

@media (max-width: 768px) {
    .our-work-section {
        padding: 100px 0;
    }
    
    .our-work-section .section-title {
        white-space: nowrap;
        font-size: clamp(28px, 8vw, 40px);
    }
    
    .work-collage-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 120px;
        gap: 12px;
    }

    /* Полноширинные фотографии - новая распределение: элементы 4 и 8 */
    .work-collage-item:nth-child(4),
    .work-collage-item:nth-child(8) {
        grid-column: span 2;
        grid-row: span 1;
    }

    /* Эффект свернутости - миниатюры обрезаны */
    .work-collage-item {
        overflow: hidden;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
    }
    
    .work-collage-item:not(.zoomed) {
        clip-path: inset(0 0 0 0);
    }
    
    /* Комбинация размеров для коллажа */
    .work-collage-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
        min-height: 250px;
    }
    
    .work-collage-item:nth-child(2) {
        grid-row: span 1;
        min-height: 120px;
    }
    
    .work-collage-item:nth-child(3) {
        grid-row: span 1;
        min-height: 120px;
    }
    
    .work-collage-item:nth-child(4) {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 140px;
    }
    
    .work-collage-item:nth-child(5) {
        grid-row: span 2;
        min-height: 250px;
    }
    
    .work-collage-item:nth-child(6) {
        grid-row: span 2;
        min-height: 250px;
    }
    
    .work-collage-item:nth-child(7) {
        grid-row: span 1;
        min-height: 120px;
    }
    
    .work-collage-item:nth-child(8) {
        grid-column: span 2;
        grid-row: span 2;
        min-height: 250px;
    }
    
    .work-collage-item:nth-child(9) {
        grid-row: span 1;
        min-height: 120px;
    }
    
    .work-collage-item:nth-child(10) {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 140px;
    }
    
    /* Эффект свернутости - изображения обрезаны, показываем только часть */
    .work-collage-item:not(.zoomed) {
        position: relative;
    }
    
    .work-collage-item:not(.zoomed)::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.1) 0%,
            transparent 20%,
            transparent 80%,
            rgba(0, 0, 0, 0.15) 100%
        );
        pointer-events: none;
        z-index: 1;
        border-radius: 12px;
    }
    
    .work-collage-item:not(.zoomed) img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transform: translateZ(0);
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        will-change: transform;
    }
    
    .work-collage-item:not(.zoomed):hover img {
        transform: scale(1.05) translateZ(0);
    }
    
    /* При нажатии - легкое раскрытие */
    .work-collage-item:not(.zoomed):active {
        transform: scale(0.98);
    }
    
    .work-collage-item:not(.zoomed):active img {
        transform: scale(1.02) translateZ(0);
    }
    
    .work-collage-item:not(.zoomed):active::after {
        opacity: 0.5;
    }
    
    /* При увеличении - полное раскрытие */
    .work-collage-item.zoomed {
        grid-column: span 2 !important;
        grid-row: span 2 !important;
    }
    
.work-collage-item.zoomed img {
    transform: translateZ(0);
    object-fit: contain;
    will-change: transform;
}

.work-collage-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(to right, rgba(0, 61, 130, 0.9) 0%, rgba(26, 26, 26, 0.9) 50%, rgba(0, 0, 0, 0.9) 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.work-collage-item.zoomed .work-collage-close {
    opacity: 1;
    visibility: visible;
}

.work-collage-close:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.work-collage-close:active {
    transform: translateY(0);
}
    
    .work-placeholder {
        font-size: 14px;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--bg-light);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(40px);
    border: 0.5px solid rgba(0, 0, 0, 0.1);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px) scale(1.02);
}

.project-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-content {
    padding: 40px;
}

.project-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.009em;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tag {
    padding: 6px 14px;
    background: var(--bg-gray);
    border-radius: 980px;
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 400;
}

.project-description {
    font-size: 17px;
    color: #86868b;
    line-height: 1.47059;
}

/* FAQ SECTION */
.faq-section {
    padding: 180px 0;
    background: var(--bg-gray);
}

.faq-list {
    max-width: 1800px; /* Увеличено в 2 раза */
    margin: 0 auto;
}

.faq-item {
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
    padding: 16px 0; /* Уменьшено в 2 раза для компактности (32px -> 16px) */
        opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

.faq-item.visible {
        opacity: 1;
    transform: translateY(0);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 320px; /* Увеличено в 2 раза (160px -> 320px) */
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: -0.009em;
    line-height: 0.65; /* Уменьшено в 2 раза (1.3 -> 0.65) для компактности */
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question::after {
    content: '+';
    font-size: 448px; /* Увеличено в 2 раза (224px -> 448px) */
    color: var(--primary-color);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 300;
    line-height: 0.65; /* Уменьшено в 2 раза для компактности */
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    margin-top: 0;
    font-size: 17px; /* Уменьшено в 2 раза от предыдущего (34px -> 17px) */
    line-height: 1.4;
    color: #86868b;
    padding-top: 0;
    font-weight: 400;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding-top 0.3s ease, margin-top 0.3s ease;
}

.faq-item.active .faq-answer {
    display: block;
    max-height: 1000px; /* Увеличено для больших текстов */
    padding-top: 24px; /* Увеличено в 2 раза */
    margin-top: 24px; /* Увеличено в 2 раза */
}

/* CERTIFICATE SECTION */
.certificate-section {
    padding: 180px 0;
    background: var(--bg-light);
    text-align: left;
}

.certificate-container {
    max-width: 1000px;
    margin: 60px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.certificate-text-wrapper {
    display: flex;
    align-items: center;
}

.certificate-section .section-intro {
    text-align: left;
    margin: 0;
    line-height: 1.4;
    font-size: 19px;
    font-weight: 400;
    color: #5a5a5a;
}

.certificate-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.certificate-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    object-fit: contain;
}

.certificate-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

.cert-status-badge-large {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    padding: 8px 16px;
    background: rgba(11, 116, 255, 0.9);
    border-radius: 12px;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

.certificate-placeholder {
    background: linear-gradient(135deg, #f5f5f7 0%, #ffffff 100%);
    border: 2px dashed #d2d2d7;
    border-radius: 32px;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(40px);
}

.certificate-placeholder.visible {
    opacity: 1;
    transform: translateY(0);
}

.certificate-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(11, 116, 255, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.certificate-icon {
    font-size: 120px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
}

.certificate-text {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.certificate-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: -0.009em;
}

.certificate-desc {
    font-size: 19px;
    line-height: 1.42105;
    color: #86868b;
    margin-bottom: 40px;
    font-weight: 400;
}

.certificate-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
    background: rgba(255, 255, 255, 0.8);
    padding: 32px;
    border-radius: 20px;
}

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

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

.cert-info-label {
    font-size: 17px;
    color: #86868b;
    font-weight: 400;
}

.cert-info-value {
    font-size: 17px;
    color: var(--text-dark);
    font-weight: 600;
}

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

/* CTA SECTION */
.cta-section {
    padding: 120px 0;
    background: linear-gradient(to right, rgba(0, 61, 130, 0.95) 0%, rgba(10, 10, 10, 0.95) 50%, rgba(0, 0, 0, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(11, 116, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 36px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.022em;
    line-height: 1.07143;
}

.cta-subtitle {
    font-size: 21px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
    line-height: 1.381;
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 500;
    border-radius: 980px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 240px;
    background: #ffffff;
    color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    justify-content: center;
}

.btn-cta.btn-danger {
    background: linear-gradient(135deg, #ff4d4f 0%, #b32025 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 10px 32px rgba(255, 77, 79, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-cta.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 40px rgba(255, 77, 79, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.95);
}

.btn-telegram {
    background: #ffffff;
    color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-telegram:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.btn-cta.btn-outline {
    background: #ffffff;
    color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-cta.btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.95);
}

.btn-call-us-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 24px;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 61, 130, 0.4);
    border: none;
    cursor: pointer;
}

.btn-call-us-inline:hover {
    background: #0051d5;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 61, 130, 0.6);
}

@media (max-width: 768px) {
    .btn-call-us-inline {
        padding: 14px 24px;
        font-size: 16px;
    }
}

.btn-icon {
    font-size: 20px;
    display: inline-block;
}

/* WORK STAGES SECTION */
.work-stages-section {
    padding: 180px 0;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.stages-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-top: 60px;
}

.stages-left-column {
    position: relative;
}

.stages-title {
    margin-bottom: 60px;
    text-align: left;
}

.stages-modern-flow {
    position: relative;
    padding-left: 0;
}

/* Vertical Flow Path */
.stages-modern-flow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, 
        #8B5CF6 0%,
        #3B82F6 25%,
        #10B981 50%,
        #F59E0B 75%,
        #EC4899 100%);
    border-radius: 2px;
    z-index: 0;
}

.stage-modern-item {
    position: relative;
    margin-bottom: 80px;
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding-left: 50px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stage-modern-item.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.stage-modern-connector {
    position: absolute;
    left: -80px;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    z-index: 1;
    pointer-events: none;
}

.stage-modern-circle {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stage-modern-item:hover .stage-modern-circle {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.stage-circle-purple {
    border-color: #8B5CF6;
}

.stage-circle-blue {
    border-color: #3B82F6;
}

.stage-circle-green {
    border-color: #10B981;
}

.stage-circle-orange {
    border-color: #F59E0B;
}

.stage-circle-pink {
    border-color: #EC4899;
}

.stage-modern-step-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.stage-modern-step-number {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.stage-circle-purple .stage-modern-step-label,
.stage-circle-purple .stage-modern-step-number {
    color: #8B5CF6;
}

.stage-circle-blue .stage-modern-step-label,
.stage-circle-blue .stage-modern-step-number {
    color: #3B82F6;
}

.stage-circle-green .stage-modern-step-label,
.stage-circle-green .stage-modern-step-number {
    color: #10B981;
}

.stage-circle-orange .stage-modern-step-label,
.stage-circle-orange .stage-modern-step-number {
    color: #F59E0B;
}

.stage-circle-pink .stage-modern-step-label,
.stage-circle-pink .stage-modern-step-number {
    color: #EC4899;
}

.stage-modern-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stage-modern-item:hover .stage-modern-icon {
    transform: scale(1.1) rotate(5deg);
}

.stage-modern-item > .stage-modern-icon {
    display: none; /* Скрываем старую иконку вне content */
}

.stage-modern-item:hover .stage-modern-title-wrapper .stage-modern-icon {
    transform: scale(1.1) rotate(5deg);
}

.stage-icon-purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0.05) 100%);
    color: #8B5CF6;
}

.stage-icon-blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
    color: #3B82F6;
}

.stage-icon-green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: #10B981;
}

.stage-icon-orange {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
    color: #F59E0B;
}

.stage-icon-pink {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(236, 72, 153, 0.05) 100%);
    color: #EC4899;
}

.stage-modern-icon svg {
    width: 32px;
    height: 32px;
}

.stage-modern-content {
    flex: 1;
    padding-top: 8px;
    max-width: 85%;
    padding-right: 40px;
}

.stage-modern-title-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.stage-modern-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: 0.01em;
    line-height: 1.3;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stage-modern-title-wrapper .stage-modern-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stage-modern-item.visible .stage-modern-title-wrapper .stage-modern-icon {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.stage-modern-item:nth-child(1).visible .stage-modern-title-wrapper .stage-modern-icon {
    transition-delay: 0.4s;
}

.stage-modern-item:nth-child(2).visible .stage-modern-title-wrapper .stage-modern-icon {
    transition-delay: 0.5s;
}

.stage-modern-item:nth-child(3).visible .stage-modern-title-wrapper .stage-modern-icon {
    transition-delay: 0.6s;
}

.stage-modern-item:nth-child(4).visible .stage-modern-title-wrapper .stage-modern-icon {
    transition-delay: 0.7s;
}

.stage-modern-item:nth-child(5).visible .stage-modern-title-wrapper .stage-modern-icon {
    transition-delay: 0.8s;
}

.stage-modern-item.visible .stage-modern-title {
    opacity: 1;
    transform: translateY(0);
}

.stage-modern-item.visible .stage-modern-title {
    transition-delay: 0.3s;
}

.stage-modern-item:nth-child(1).visible .stage-modern-title {
    transition-delay: 0.4s;
}

.stage-modern-item:nth-child(2).visible .stage-modern-title {
    transition-delay: 0.5s;
}

.stage-modern-item:nth-child(3).visible .stage-modern-title {
    transition-delay: 0.6s;
}

.stage-modern-item:nth-child(4).visible .stage-modern-title {
    transition-delay: 0.7s;
}

.stage-modern-item:nth-child(5).visible .stage-modern-title {
    transition-delay: 0.8s;
}

.stage-modern-text {
    font-size: 16px;
    line-height: 1.6;
    color: #86868b;
    font-weight: 400;
    text-align: justify;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stage-modern-item.visible .stage-modern-text {
    opacity: 1;
    transform: translateY(0);
}

.stage-modern-item.visible .stage-modern-text {
    transition-delay: 0.5s;
}

.stage-modern-item:nth-child(1).visible .stage-modern-text {
    transition-delay: 0.6s;
}

.stage-modern-item:nth-child(2).visible .stage-modern-text {
    transition-delay: 0.7s;
}

.stage-modern-item:nth-child(3).visible .stage-modern-text {
    transition-delay: 0.8s;
}

.stage-modern-item:nth-child(4).visible .stage-modern-text {
    transition-delay: 0.9s;
}

.stage-modern-item:nth-child(5).visible .stage-modern-text {
    transition-delay: 1s;
}

.stages-result {
    margin-top: 60px;
    padding: 48px 40px;
    background: linear-gradient(135deg, rgba(0, 61, 130, 0.08) 0%, rgba(11, 116, 255, 0.12) 50%, rgba(138, 43, 226, 0.08) 100%);
    border-radius: 28px;
    border: 2px solid rgba(11, 116, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 61, 130, 0.12),
        0 2px 8px rgba(11, 116, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: resultAppear 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
    grid-column: 1 / -1;
    width: 100%;
}

.stages-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(11, 116, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.stages-result::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.1) 0%, transparent 70%);
    pointer-events: none;
    animation: resultShimmer 8s ease-in-out infinite;
}

.stages-result:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 48px rgba(0, 61, 130, 0.18),
        0 4px 12px rgba(11, 116, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    border-color: rgba(11, 116, 255, 0.3);
}

.stages-result-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    animation: iconPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(11, 116, 255, 0.3));
}

.stages-result-content {
    position: relative;
    z-index: 1;
}

.stages-result-badge {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 61, 130, 0.1);
    border: 1px solid rgba(11, 116, 255, 0.2);
}

.stages-result-text {
    font-size: 18px;
    line-height: 1.65;
    color: var(--text-dark);
    font-weight: 500;
    letter-spacing: -0.01em;
    text-align: center;
    max-width: 100%;
}

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

@keyframes resultShimmer {
    0%, 100% {
        transform: rotate(0deg) translate(0, 0);
        opacity: 0.1;
    }
    50% {
        transform: rotate(180deg) translate(-10%, -10%);
        opacity: 0.15;
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 4px 8px rgba(11, 116, 255, 0.3));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 6px 12px rgba(11, 116, 255, 0.5));
    }
}

/* Right Column - Showroom */
.stages-right-column {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.showroom-title-main {
    font-size: 48px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.showroom-image-container {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    margin: 24px 0;
    position: relative;
}

.showroom-image-main {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.showroom-image-placeholder-main {
    width: 100%;
    padding-top: 75%;
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 20px;
}

.showroom-image-text-main {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.showroom-image-hint-main {
    font-size: 14px;
    color: #86868b;
}

.showroom-subtitle-main {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 8px;
}

.showroom-description-main {
    font-size: 16px;
    line-height: 1.6;
    color: #86868b;
}

.btn-showroom-main {
    margin-top: 8px;
    align-self: flex-start;
}

@media (max-width: 768px) {
    .stages-right-column {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .showroom-title-main {
        text-align: center;
    }
    
    .showroom-image-container {
        margin-left: auto;
        margin-right: auto;
    }
    
    .showroom-subtitle-main {
        text-align: center;
    }
    
    .showroom-description-main {
        text-align: center;
    }
    
    .btn-showroom-main {
        align-self: center;
        margin-left: auto;
        margin-right: auto;
        width: fit-content;
        display: block;
    }
}

@media (max-width: 1200px) {
    .stages-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .stages-right-column {
        position: relative;
        top: 0;
        padding-left: 0;
        padding-right: 0;
        width: 100%;
    }

    .showroom-subtitle-main,
    .showroom-description-main {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100%;
    }
    
    .stages-result {
        padding: 40px 32px;
    }
    
    .stages-result-text {
        font-size: 16px;
    }
    
    .stages-modern-flow {
        padding-left: 60px;
    }
    
    .stage-modern-circle {
        left: 0;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 60px;
        height: 60px;
    }
    
    .stages-modern-flow::before {
        left: 0;
    }
}

@media (max-width: 768px) {
    .work-stages-section {
        padding: 100px 0;
    }
    
    .stages-modern-flow {
        padding-left: 0;
    }
    
    .stages-modern-flow::before {
        left: 10px;
        width: 3px;
    }
    
    .stage-modern-circle {
        left: 10px;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 50px;
        height: 50px;
        z-index: 2;
    }
    
    .stage-modern-content {
        max-width: 80%;
        padding-right: 30px;
        margin-left: auto;
        margin-right: 20px;
    }
    
    .stage-modern-icon {
        margin-left: 10px;
        z-index: 1;
    }
    
    .stage-modern-title-wrapper {
        gap: 12px;
        align-items: center;
        flex-wrap: nowrap;
        margin-bottom: 12px;
    }
    
    .stage-modern-title-wrapper .stage-modern-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        flex-shrink: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .stage-modern-title-wrapper .stage-modern-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .stage-modern-title {
        font-size: 18px;
        flex: 1;
        min-width: 0;
        margin: 0;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .stage-modern-text {
        text-align: left; /* На мобильных убираем justify */
    }
    
    .stage-modern-step-label {
        font-size: 8px;
    }
    
    .stages-result {
        padding: 32px 20px;
        border-radius: 20px;
        margin-top: 40px;
    }
    
    .stages-result-icon {
        font-size: 36px;
        margin-bottom: 14px;
    }
    
    .stages-result-badge {
        font-size: 11px;
        padding: 6px 12px;
        margin-bottom: 14px;
        letter-spacing: 0.12em;
    }
    
    .stages-result-text {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .stage-modern-step-number {
        font-size: 18px;
    }
    
    .stage-modern-icon {
        width: 48px;
        height: 48px;
    }
    
    .stage-modern-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .stage-modern-title {
        font-size: 20px;
    }
    
    .stage-modern-text {
        font-size: 15px;
    }
    
    .stage-modern-item {
        margin-bottom: 32px;
        gap: 16px;
        padding-left: 50px;
    }
    
    .showroom-title-main {
        font-size: 36px;
    }
}

.stages-blocks-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 80px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.stage-block {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.stage-block:nth-child(1) { animation-delay: 0.1s; }
.stage-block:nth-child(3) { animation-delay: 0.2s; }
.stage-block:nth-child(5) { animation-delay: 0.3s; }
.stage-block:nth-child(7) { animation-delay: 0.4s; }
.stage-block:nth-child(9) { animation-delay: 0.5s; }
.stage-block:nth-child(11) { animation-delay: 0.6s; }

.stage-block:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.stage-block-number {
    font-family: var(--font-brand);
    font-size: 18px;
    font-weight: 400;
    color: var(--primary-color);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    display: inline-block;
    padding: 8px 16px;
    background: rgba(11, 116, 255, 0.1);
    border-radius: 12px;
}

.stage-block-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.009em;
    line-height: 1.3;
}

.stage-block-text {
    font-size: 16px;
    line-height: 1.6;
    color: #86868b;
    font-weight: 400;
}

.stage-connector-dashed {
    width: 2px;
    height: 40px;
    margin: 20px auto;
    background: repeating-linear-gradient(
        to bottom,
        var(--primary-color) 0px,
        var(--primary-color) 8px,
        transparent 8px,
        transparent 16px
    );
    opacity: 0.5;
    position: relative;
}

.stage-connector-dashed::after {
    content: '↓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-color);
    font-size: 20px;
    background: var(--bg-gray);
    padding: 0 8px;
}

@media (max-width: 768px) {
    .stages-blocks-container {
        gap: 0;
    }
    
    .stage-block {
        padding: 32px 24px;
    }
    
    .stage-block-title {
        font-size: 20px;
    }
    
    .stage-block-text {
        font-size: 15px;
    }
    
    .stage-connector-dashed {
        height: 30px;
        margin: 15px auto;
    }
}

.stages-connector {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    z-index: 0;
    opacity: 0.3;
    transform: translateY(-50%);
    pointer-events: none;
}

.connector-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2s ease-out forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

.stages-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    z-index: 1;
    margin-bottom: 80px;
}

.stage-item {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.stage-connector-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid var(--bg-gray);
    box-shadow: 0 0 0 2px var(--primary-color);
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.stage-item:hover .stage-connector-dot {
    transform: scale(1.3);
    box-shadow: 0 0 0 4px var(--primary-color), 0 0 20px rgba(11, 116, 255, 0.4);
}

.stage-card {
    background: var(--bg-light);
    padding: 32px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 280px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.stage-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), transparent);
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

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

.stage-item:hover .stage-card::before {
    opacity: 0.1;
}

.stage-number {
    font-family: var(--font-brand);
    font-size: 14px;
    font-weight: 400;
    color: var(--primary-color);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    opacity: 0.7;
}

.stage-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    color: var(--primary-color);
    opacity: 0.8;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.stage-icon svg {
    width: 100%;
    height: 100%;
}

.stage-item:hover .stage-icon {
    opacity: 1;
    transform: scale(1.15) rotate(5deg);
}

.stage-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.009em;
    line-height: 1.3;
}

.stage-text {
    font-size: 15px;
    line-height: 1.5;
    color: #86868b;
    font-weight: 400;
}

.stages-result {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 80px;
}

.result-connector-line {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, var(--primary-color), transparent);
}

.result-card {
    background: linear-gradient(135deg, var(--primary-color), #0a5fd9);
    padding: 48px;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(11, 116, 255, 0.3);
    text-align: center;
    max-width: 800px;
    width: 100%;
    color: white;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

.result-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.result-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    color: white;
    position: relative;
    z-index: 1;
}

.result-icon svg {
    width: 100%;
    height: 100%;
}

.stages-result-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.009em;
    position: relative;
    z-index: 1;
}

.stages-result-text {
    font-size: 17px;
    line-height: 1.5;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

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

@media (max-width: 1200px) {
    .stages-timeline {
        flex-wrap: wrap;
        gap: 60px;
    }
    
    .stage-card {
        max-width: 100%;
    }
    
    .stages-connector {
        display: none;
    }
    
    .stage-connector-dot {
        display: none;
    }
}

@media (max-width: 640px) {
    .work-stages-section {
        padding: 120px 0;
    }
    
    .stages-timeline {
        flex-direction: column;
        gap: 40px;
    }
    
    .stage-item {
    width: 100%;
    }
    
    .result-card {
        padding: 32px 24px;
    }
    
    .stages-result-title {
        font-size: 24px;
    }
}

/* FOOTER SOCIAL SECTION */
.footer-social-section {
    padding: 40px 0;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.footer-social-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 24px;
    text-align: center;
    letter-spacing: -0.009em;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.3);
}

.social-icon {
    width: 32px;
    height: 32px;
    fill: var(--text-light);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

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

.social-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    text-align: center;
}

.social-link:hover .social-label {
    color: var(--text-light);
}

/* Social Icons Colors on Hover */
.social-instagram:hover .social-icon {
    fill: #E4405F;
}

.social-telegram:hover .social-icon {
    fill: #0088cc;
}

.social-vk:hover .social-icon {
    fill: #0077FF;
}

.social-tiktok:hover .social-icon {
    fill: #000000;
}

.social-facebook:hover .social-icon {
    fill: #1877F2;
}

/* SOCIAL NETWORKS SECTION */
.social-networks-section {
    padding: 100px 0;
    background: var(--bg-light);
    position: relative;
}

.social-section-title {
    font-size: 48px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.02em;
}

.social-networks-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.social-networks-chain {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.social-network-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.social-network-item:hover {
    transform: scale(1.15);
}

.social-network-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.social-network-item:hover .social-network-circle {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.social-network-icon {
    width: 36px;
    height: 36px;
    fill: var(--text-dark);
    transition: fill 0.3s ease;
}

.social-max-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.social-network-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.social-network-item:hover .social-network-label {
    opacity: 1;
}

.social-chain-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, var(--bg-gray), var(--border-color));
    margin: 0 10px;
    position: relative;
    z-index: 1;
}

.social-chain-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-color);
    transform: translateY(-50%);
}

/* Social Icons Colors on Hover */
.social-instagram:hover .social-network-circle {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #E4405F;
}

.social-instagram:hover .social-network-icon {
    fill: #ffffff;
}

.social-telegram:hover .social-network-circle {
    background: #0088cc;
    border-color: #0088cc;
}

.social-telegram:hover .social-network-icon {
    fill: #ffffff;
}

.social-vk:hover .social-network-circle {
    background: #0077FF;
    border-color: #0077FF;
}

.social-vk:hover .social-network-icon {
    fill: #ffffff;
}

.social-tiktok:hover .social-network-circle {
    background: #000000;
    border-color: #000000;
}

.social-tiktok:hover .social-network-icon {
    fill: #ffffff;
}

.social-facebook:hover .social-network-circle {
    background: #1877F2;
    border-color: #1877F2;
}

.social-facebook:hover .social-network-icon {
    fill: #ffffff;
}

.social-max:hover .social-network-circle {
    background: #0077FF;
    border-color: #0077FF;
}

.social-max:hover .social-network-icon {
    fill: #ffffff;
}

@media (max-width: 768px) {
    .social-networks-chain {
        gap: 20px;
        max-width: 100%;
    }
    
    .social-chain-line {
        display: none;
    }
    
    .social-network-item {
        flex: 0 0 calc(33.333% - 14px);
        max-width: calc(33.333% - 14px);
        min-width: 0;
    }
    
    .social-network-circle {
        width: 70px;
        height: 70px;
    }
    
    .social-network-icon {
        width: 32px;
        height: 32px;
    }
    
    .social-max-icon {
        width: 32px;
        height: 32px;
    }
    
    .social-section-title {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .social-networks-chain {
        gap: 16px;
    }
    
    .social-network-item {
        flex: 0 0 calc(33.333% - 11px);
        max-width: calc(33.333% - 11px);
    }
    
    .social-network-circle {
        width: 60px;
        height: 60px;
    }
    
    .social-network-icon {
        width: 28px;
        height: 28px;
    }
    
    .social-max-icon {
        width: 28px;
        height: 28px;
    }
    
    .social-network-label {
        font-size: 11px;
    }
    
    .social-section-title {
        font-size: 28px;
    }
}

/* MAP MODAL */
.modal-map-content {
    max-width: 900px;
    padding: 40px;
}

/* Image Fullscreen Modal */
.modal-image-fullscreen {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.modal-image-close {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 50px;
    height: 50px;
    font-size: 36px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.modal-image-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

.fullscreen-image {
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    /* Автоматическая ориентация из EXIF данных оригинальных фотографий */
    image-orientation: from-image !important;
    transform: none !important;
}

.map-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 20px;
    background: var(--bg-gray);
}

.map-container iframe {
    transform: scale(0.5);
    transform-origin: 0 0;
    width: 200% !important;
    height: 200% !important;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    background: var(--bg-gray);
    border-radius: 20px;
    overflow: hidden;
}

.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 17px;
    color: var(--text-dark);
    opacity: 0.6;
}

.map-marker-pulse {
    position: absolute;
    width: 40px;
    height: 40px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    pointer-events: none;
    display: none;
}

.map-marker-pulse::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 0;
    left: 0;
    animation: pulse 2s infinite;
    opacity: 0.6;
}

.map-marker-pulse::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.4;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .modal-map-content {
        padding: 24px;
        max-width: 100%;
    }
    
    .map-container {
        height: 400px;
    }
}

/* BLOG MODAL STYLES */
.modal-blog-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.blog-modal-header {
    padding: 40px 40px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, rgba(0, 61, 130, 0.05) 0%, rgba(11, 116, 255, 0.05) 100%);
    border-radius: 24px 24px 0 0;
}

.blog-modal-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 14px;
}

.blog-modal-date {
    color: #86868b;
    font-weight: 500;
}

.blog-modal-category {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-modal-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.02em;
}

.blog-modal-body {
    padding: 40px;
}

.blog-modal-body p {
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.blog-modal-body h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 40px;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.blog-modal-body h3:first-child {
    margin-top: 0;
}

.modal-blog-content .modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-blog-content .modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .modal-blog-content {
        max-width: 95%;
        max-height: 95vh;
    }
    
    .blog-modal-header {
        padding: 32px 24px 20px;
    }
    
    .blog-modal-title {
        font-size: 24px;
    }
    
    .blog-modal-body {
        padding: 32px 24px;
    }
    
    .blog-modal-body p {
        font-size: 16px;
    }
    
    .blog-modal-body h3 {
        font-size: 20px;
    }
    
    .modal-blog-content .modal-close {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

/* FUNCTIONALITY PAGE STYLES */
.functionality-hero {
    min-height: 60vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

.functionality-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.functionality-hero::after {
    display: none;
}

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

@keyframes patternMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(100px, 100px);
    }
}

.functionality-hero .hero-background-gradient {
    background: transparent !important;
    z-index: 1;
}

.functionality-hero .hero-title,
.functionality-hero .hero-subtitle {
    color: #000000;
    text-shadow: none;
}

.functionality-hero .hero-badge {
    color: #000000;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    padding: 0;
    text-shadow: none;
}

.functionality-content-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.functionality-intro {
    text-align: center;
    margin-bottom: 80px;
}

.functionality-intro .section-title {
    margin-bottom: 30px;
}

.functionality-intro .section-text {
    font-size: 18px;
    color: var(--text-dark);
    opacity: 0.7;
    max-width: 800px;
    margin: 0 auto;
}

.functionality-placeholder {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.placeholder-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.placeholder-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.placeholder-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.placeholder-card p {
    font-size: 16px;
    color: var(--text-dark);
    opacity: 0.7;
    line-height: 1.6;
}

/* BLOG PAGE STYLES */
.blog-hero {
    min-height: 60vh;
}

.blog-content-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.blog-intro {
    text-align: center;
    margin-bottom: 80px;
}

.blog-intro .section-title {
    margin-bottom: 30px;
}

.blog-intro .section-text {
    font-size: 18px;
    color: var(--text-dark);
    opacity: 0.7;
    max-width: 800px;
    margin: 0 auto;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.blog-post-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.blog-post-image {
    width: 100%;
    height: 200px;
    background: var(--bg-gray);
    position: relative;
    overflow: hidden;
}

.blog-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    background: linear-gradient(135deg, rgba(0, 61, 130, 0.08) 0%, rgba(11, 116, 255, 0.08) 100%);
    color: var(--text-dark);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.blog-post-card:hover .blog-image-placeholder {
    opacity: 0.8;
}

.blog-post-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-dark);
    opacity: 0.6;
}

.blog-post-category {
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.8;
}

.blog-post-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-post-excerpt {
    font-size: 16px;
    color: var(--text-dark);
    opacity: 0.7;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.blog-post-link {
    font-size: 16px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    align-self: flex-start;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    text-align: left;
}

.blog-post-link:hover {
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .functionality-content-section,
    .blog-content-section {
        padding: 60px 0;
    }
    
    .functionality-placeholder,
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .placeholder-card,
    .blog-post-card {
        padding: 30px 20px;
    }
}

/* DEVICES PAGE STYLES */
.devices-hero {
    min-height: 60vh;
}

.devices-content-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.devices-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.devices-stat-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.devices-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-dark);
    opacity: 0.7;
}

.devices-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    align-items: flex-end;
    padding: 24px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.filter-group.filter-search {
    flex: 2;
    min-width: 300px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    opacity: 0.7;
}

.filter-select,
.filter-input {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    background: #ffffff;
    color: var(--text-dark);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 61, 130, 0.1);
}

.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.device-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.device-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.device-image-wrapper {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f5f5f7 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.device-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.device-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);
}

.device-placeholder-icon {
    font-size: 64px;
    opacity: 0.3;
}

.device-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.device-header {
    margin-bottom: 12px;
}

.device-vendor {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.device-model {
    font-size: 14px;
    color: var(--text-dark);
    opacity: 0.6;
}

.device-description {
    font-size: 14px;
    color: var(--text-dark);
    opacity: 0.7;
    line-height: 1.5;
    margin-bottom: 12px;
}

.device-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.device-feature {
    font-size: 12px;
    padding: 4px 8px;
    background: var(--bg-gray);
    border-radius: 6px;
    color: var(--text-dark);
    opacity: 0.8;
}

.device-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.device-category {
    display: inline-block;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.device-category-light {
    background: #fff3cd;
    color: #856404;
}

.device-category-switch {
    background: #d1ecf1;
    color: #0c5460;
}

.device-category-sensor {
    background: #d4edda;
    color: #155724;
}

.device-category-lock {
    background: #f8d7da;
    color: #721c24;
}

.device-category-cover {
    background: #e2e3e5;
    color: #383d41;
}

.device-category-climate {
    background: #cfe2ff;
    color: #084298;
}

.device-category-other {
    background: #f5f5f5;
    color: #6c757d;
}

.device-feature-more {
    font-size: 11px;
    padding: 4px 8px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 6px;
    font-weight: 500;
}

.devices-loading,
.devices-error,
.devices-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-gray);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.devices-error {
    color: #d32f2f;
}

.error-details {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 10px;
}

.devices-empty {
    color: var(--text-dark);
    opacity: 0.6;
}

.empty-hint {
    font-size: 14px;
    margin-top: 10px;
    opacity: 0.5;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0 20px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text-dark);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.pagination-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.pagination-dots {
    padding: 10px 8px;
    color: var(--text-dark);
    opacity: 0.5;
}

.pagination-info {
    text-align: center;
    font-size: 14px;
    color: var(--text-dark);
    opacity: 0.6;
}

/* BRANDS SECTION */
.brands-section {
    padding: 100px 0;
    background: var(--bg-gray);
}

.brands-intro {
    text-align: center;
    margin-bottom: 60px;
}

.brands-intro .section-title {
    margin-bottom: 20px;
}

.brands-intro .section-text {
    font-size: 18px;
    color: var(--text-dark);
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.brand-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.brand-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.brand-icon-wrapper {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--bg-gray);
    overflow: hidden;
}

.brand-icon {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: auto;
    height: auto;
}

.brand-icon-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--bg-gray);
}

.brand-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.brand-link {
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    margin-top: auto;
}

.brand-link:hover {
    color: #0051d5;
    text-decoration: underline;
}

.brands-loading,
.brands-error,
.brands-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.brands-error {
    color: #d32f2f;
}

@media (max-width: 768px) {
    .devices-content-section {
        padding: 60px 0;
    }
    
    .devices-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .devices-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .devices-filters {
        flex-direction: column;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .brands-section {
        padding: 60px 0;
    }
    
    .brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 16px;
    }
    
    .brand-card {
        padding: 24px 16px;
        min-height: 160px;
    }
    
    .brand-icon-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 12px;
    }
    
    .brand-icon-placeholder {
        font-size: 24px;
    }
    
    .brand-name {
        font-size: 14px;
    }
}

/* FOOTER - Compact Style */
/* MODERN ANIMATIONS SECTION 2025 */
.modern-animations-section {
    position: relative;
    padding: 180px 0;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, var(--primary-color, #003d82) 100%);
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.modern-animations-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.modern-animations-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(11, 116, 255, 0.3) 0%, transparent 70%);
    animation: rotate-gradient 20s linear infinite;
}

@keyframes rotate-gradient {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.modern-animations-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.modern-animations-title {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.modern-animations-title .text-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.modern-animations-title .text-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.modern-animations-title .text-line:nth-child(1) { transition-delay: 0.2s; }
.modern-animations-title .text-line:nth-child(2) { transition-delay: 0.4s; }
.modern-animations-title .text-line:nth-child(3) { transition-delay: 0.6s; }

.modern-animations-title .highlight {
    background: linear-gradient(135deg, #0b74ff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-animations-subtitle {
    font-size: clamp(20px, 3vw, 32px);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    color: rgba(255, 255, 255, 0.9);
    max-width: 900px;
    margin: 0 auto 32px;
    font-weight: 400;
    line-height: 1.4;
}

.modern-animations-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

.modern-animations-description {
    max-width: 800px;
    margin: 0 auto 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.modern-animations-description.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1s;
}

.modern-animations-description p {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.modern-animations-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.modern-feature-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 48px 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(50px);
}

.modern-feature-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.modern-feature-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.modern-feature-icon {
    font-size: 64px;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 10px rgba(11, 116, 255, 0.3));
}

.modern-feature-item h3 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
}

.modern-feature-item p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .modern-animations-section {
        padding: 120px 0;
    }
    
    .modern-animations-features {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .modern-feature-item {
        padding: 32px 24px;
    }
}

.site-footer {
    background: var(--text-dark);
    color: var(--text-light);
    padding: 60px 0 30px;
    transition: background 0.3s ease;
}


.footer-main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
}

.footer-compact-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 60px;
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
    justify-items: center;
}

.footer-menu-column {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.footer-menu-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 16px;
    letter-spacing: -0.009em;
}

.footer-menu-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.footer-menu-links a {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
    line-height: 1.47059;
}

.footer-menu-links a:hover {
    color: var(--text-light);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-referral {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.btn-referral {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, rgba(255, 183, 3, 0.9) 0%, rgba(255, 152, 0, 0.9) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: #000000;
    border: 1px solid rgba(255, 183, 3, 0.3);
    border-radius: 980px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 32px rgba(255, 183, 3, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.btn-referral:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(255, 183, 3, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(255, 193, 7, 1) 0%, rgba(255, 152, 0, 1) 100%);
    border-color: rgba(255, 183, 3, 0.5);
}

.btn-referral .btn-icon {
    font-size: 20px;
    line-height: 1;
}

@media (max-width: 768px) {
    .btn-referral {
        padding: 12px 20px;
        font-size: 14px;
        gap: 8px;
    }
    
    .btn-referral .btn-icon {
        font-size: 18px;
    }
    
    .btn-referral span:not(.btn-icon) {
        display: inline-block;
    }
}

.footer-apps {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.app-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    text-transform: lowercase;
}

.app-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    transform: translateY(-2px);
}

.app-badge-ha {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(3, 169, 244, 0.2) 0%, rgba(2, 136, 209, 0.2) 100%);
    border: 1px solid rgba(3, 169, 244, 0.3);
}

.app-badge-ha:hover {
    background: linear-gradient(135deg, rgba(3, 169, 244, 0.3) 0%, rgba(2, 136, 209, 0.3) 100%);
    border-color: rgba(3, 169, 244, 0.5);
}

.ha-badge-icon {
    font-size: 18px;
}

.ha-badge-text {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.footer-copyright {
    text-align: center;
    width: 100%;
}

.footer-copyright p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
    font-weight: 400;
}

.footer-legal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    justify-items: center;
    max-width: 400px;
    margin: 0 auto;
}

.footer-legal a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    width: 100%;
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* MODALS */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    visibility: hidden;
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.modal.active {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

.modal-content {
    background: var(--bg-light);
    border-radius: 32px;
    padding: 60px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 1;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin: auto;
}

.modal.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

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

/* Скрытие скроллбара при открытом модальном окне */
body.modal-open {
    overflow: hidden;
    padding-right: 0;
}

html.modal-open {
    overflow: hidden;
}

/* Modal content animation optimized without will-change */

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-dark);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--bg-gray);
    transform: rotate(90deg);
}

.modal-title {
    font-size: 48px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.08349;
    letter-spacing: -0.003em;
}

.modal-text {
    font-size: 19px;
    line-height: 1.42105;
    color: var(--text-dark);
    margin-bottom: 32px;
    font-weight: 400;
}

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

.modal-form input,
.modal-form textarea {
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 17px;
    font-family: inherit;
    width: 100%;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    background: var(--bg-light);
}

.modal-form input:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(11, 116, 255, 0.1);
}

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

.modal-agreement {
    font-size: 13px;
    color: #86868b;
    line-height: 1.38462;
    margin-top: 12px;
}

/* SHOWROOM MODAL WITH IMAGE */
.modal-showroom-content {
    max-width: 1000px;
    padding: 60px;
}

.modal-showroom-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.modal-showroom-image-container {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    order: 1;
    position: relative;
    overflow: hidden;
    border-radius: 32px;
}

.modal-showroom-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 32px;
    opacity: 0.3;
}

.modal-showroom-left {
    flex: 1;
    min-width: 0;
    width: 100%;
    order: 2;
}

.modal-showroom-right {
    display: none;
}

@media (max-width: 768px) {
    /* Уменьшение размера заголовков в калькуляторе на мобильных */
    .modal-title {
        font-size: 22px !important;
        margin-bottom: 12px;
        line-height: 1.2;
    }
    
    .modal-text {
        font-size: 14px !important;
        margin-bottom: 20px;
        line-height: 1.4;
    }
    
    /* Заголовки пакетов и категорий в калькуляторе */
    .package-name {
        font-size: 18px !important;
    }
    
    .category-title {
        font-size: 16px !important;
    }
    
    .modal-showroom-content {
        padding: 40px 24px;
    }
    
    .modal-showroom-layout {
        flex-direction: column;
        gap: 24px;
    }
    
    .modal-showroom-image-container {
        width: 100%;
        aspect-ratio: 1;
        order: 1;
    }
    
    .modal-showroom-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.3;
    }
    
    .modal-showroom-left {
        order: 2;
        width: 100%;
    }
    
    .modal-showroom-right {
        display: none;
    }
    
    /* Дополнительное уменьшение для очень маленьких экранов */
    .calculator-tab {
        font-size: 14px !important;
        padding: 10px 16px !important;
    }
    
    .package-price {
        font-size: 22px !important;
    }
    
    .package-feature {
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .modal-title {
        font-size: 20px !important;
        margin-bottom: 10px;
    }
    
    .modal-text {
        font-size: 13px !important;
        margin-bottom: 16px;
    }
    
    .package-name {
        font-size: 16px !important;
    }
    
    .category-title {
        font-size: 15px !important;
    }
    
    .package-price {
        font-size: 20px !important;
    }
    
    .calculator-tab {
        font-size: 13px !important;
        padding: 8px 12px !important;
    }
    
    .modal-showroom-content {
        padding: 30px 20px;
    }
}

/* CALCULATOR MODAL */
.modal-calculator {
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
}

.calculator-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.calculator-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 17px;
    font-weight: 500;
    color: #86868b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    position: relative;
    top: 1px;
}

.calculator-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.calculator-content {
    display: none;
}

.calculator-content.active {
    display: block;
}

/* PACKAGES */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.package-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    transition: all 0.3s;
}

.package-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(11, 116, 255, 0.15);
}

.package-card.selected {
    border-color: var(--primary-color);
    background: rgba(11, 116, 255, 0.05);
    transform: scale(1.02);
}

.package-card.selected .package-select-btn {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.package-card.package-popular {
    border-color: var(--primary-color);
    border-width: 3px;
    background: linear-gradient(135deg, rgba(11, 116, 255, 0.08) 0%, rgba(11, 116, 255, 0.15) 100%);
    box-shadow: 0 4px 20px rgba(11, 116, 255, 0.25), 0 0 0 1px rgba(11, 116, 255, 0.1);
}

.package-card.package-popular:hover {
    border-color: var(--primary-color);
    border-width: 3px;
    background: linear-gradient(135deg, rgba(11, 116, 255, 0.12) 0%, rgba(11, 116, 255, 0.2) 100%);
    box-shadow: 0 8px 32px rgba(11, 116, 255, 0.35), 0 0 0 1px rgba(11, 116, 255, 0.15);
    transform: translateY(-2px);
}

.package-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.package-header {
    margin-bottom: 24px;
}

.package-name {
    font-family: var(--font-brand);
    font-size: 24px;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.package-price {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
}

.package-features {
    margin-bottom: 24px;
    min-height: 150px;
}

.package-feature {
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--bg-gray);
    line-height: 1.4;
}

.package-feature:last-child {
    border-bottom: none;
}

.package-select-btn {
    width: 100%;
}

/* CUSTOM CALCULATOR */
.custom-calculator {
    display: grid;
    grid-template-columns: 1fr; /* Как в мобильной версии - одна колонка */
    gap: 40px;
}

.functions-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 12px;
}

.function-category {
    margin-bottom: 32px;
}

.category-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.function-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-gray);
    border-radius: 12px;
    margin-bottom: 12px;
    gap: 16px;
    transition: all 0.3s;
}

.function-item:hover {
    background: rgba(11, 116, 255, 0.05);
    transform: translateX(4px);
}

.function-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.function-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.function-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    flex: 1;
}

.function-expand-btn {
    background: transparent;
    border: 1px solid #d2d2d7;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
}

.function-expand-btn:hover {
    background: rgba(0, 61, 130, 0.1);
    border-color: var(--primary-color);
}

.function-expand-btn:active {
    transform: scale(0.95);
}

.function-expand-icon {
    font-size: 12px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    display: block;
    line-height: 1;
}

.function-item-expandable.expanded .function-expand-icon {
    transform: rotate(180deg);
}

.function-item-expandable .function-header:hover .function-name {
    color: var(--primary-color);
}

.function-description-wrapper {
    transition: max-height 0.3s ease-out;
    overflow: hidden;
}

.function-description {
    display: block;
    font-size: 12px;
    color: #86868b;
    line-height: 1.5;
}

.function-price {
    font-size: 13px;
    color: #86868b;
}

.function-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.quantity-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.quantity-input {
    width: 60px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    background: white;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-dark);
}

.function-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* CALCULATOR SUMMARY */
.calculator-summary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0051d5 100%);
    border-radius: 20px;
    padding: 32px;
    color: white;
    position: static; /* Убрано sticky, так как теперь одна колонка */
    height: fit-content;
}

.summary-header {
    margin-bottom: 24px;
}

.summary-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.summary-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
}

.price-label {
    font-size: 17px;
    opacity: 0.9;
}

.price-total {
    font-size: 16px;
    font-weight: 700;
}

.summary-note {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.9;
}

.calculator-submit-btn {
    width: 100%;
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transition: all 0.3s ease;
    font-size: 14px;
    line-height: 1.4;
    white-space: normal;
    padding: 12px 16px;
    text-align: center;
}

.calculator-submit-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* CALCULATOR ACTIONS */
.calculator-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.btn-telegram-calc {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* RESPONSIVE CALCULATOR */
@media (max-width: 968px) {
    .packages-grid {
        grid-template-columns: 1fr;
    }

    .custom-calculator {
        grid-template-columns: 1fr;
    }
    
    .calculator-functions,
    #functions-list {
        padding-bottom: 200px;
    }

    .calculator-actions {
        flex-direction: column;
    }
}

/* Мобильная версия калькулятора - компактная */
@media (max-width: 768px) {
    .modal {
        padding: 20px 10px 10px 10px !important;
        align-items: flex-start !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .modal.active {
        padding-top: 20px !important;
    }
    
    .modal-calculator {
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 80px);
        margin: 0 auto !important;
        padding: 20px 16px !important;
        transform: scale(1) !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-calculator .modal-title {
        font-size: 20px !important;
        margin-bottom: 10px !important;
        line-height: 1.2;
    }
    
    .modal-calculator .modal-text {
        font-size: 13px !important;
        margin-bottom: 16px !important;
        line-height: 1.4;
    }
    
    .calculator-tabs {
        margin-bottom: 20px;
        gap: 8px;
    }
    
    .calculator-tab {
        font-size: 14px !important;
        padding: 10px 16px !important;
    }
    
    /* Компактный summary для мобильных */
    .calculator-summary {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 16px !important;
        border-radius: 16px 16px 0 0 !important;
        margin: 0 !important;
        z-index: 10001 !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2) !important;
    }
    
    .summary-header {
        margin-bottom: 8px !important;
    }
    
    .summary-title {
        font-size: 14px !important;
        margin-bottom: 8px !important;
        font-weight: 600;
    }
    
    .summary-price {
        padding: 10px 12px !important;
        border-radius: 8px;
        margin-bottom: 8px;
    }
    
    .price-label {
        font-size: 12px !important;
    }
    
    .price-total {
        font-size: 9px !important;
        font-weight: 700;
    }
    
    .summary-note {
        font-size: 11px !important;
        margin-bottom: 8px !important;
        line-height: 1.3;
    }
    
    .calculator-submit-btn {
        margin-top: 8px !important;
        padding: 10px 16px !important;
        font-size: 14px !important;
    }
    
    .functions-list {
        max-height: calc(100vh - 300px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 200px;
    }
    
    .calculator-submit-btn {
        margin-top: 16px !important;
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
    
    .calculator-actions {
        margin-top: 20px;
    }
    
    .btn-telegram-calc {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
    
    .modal-close {
        top: 12px !important;
        right: 12px !important;
        font-size: 28px !important;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Компактные блоки функционала в разделе "Собрать свой" */
    .function-item {
        padding: 10px 12px !important;
        margin-bottom: 8px !important;
        gap: 10px !important;
        border-radius: 10px;
    }
    
    .function-header {
        gap: 8px !important;
    }
    
    .function-name {
        font-size: 13px !important;
        line-height: 1.3;
    }
    
    .function-expand-btn {
        width: 24px !important;
        height: 24px !important;
    }
    
    .function-expand-icon {
        font-size: 10px !important;
    }
    
    .function-info {
        gap: 2px !important;
    }
    
    .function-checkbox {
        width: 18px !important;
        height: 18px !important;
    }
    
    .category-title {
        font-size: 14px !important;
        margin-bottom: 10px !important;
        padding: 8px 12px !important;
    }
    
    .functions-list {
        max-height: none;
        padding-right: 8px;
    }
}

@media (max-width: 480px) {
    /* Еще более компактные блоки функционала на маленьких экранах */
    .function-item {
        padding: 8px 10px !important;
        margin-bottom: 6px !important;
        gap: 8px !important;
        border-radius: 8px;
    }
    
    .function-name {
        font-size: 12px !important;
        line-height: 1.2;
    }
    
    .function-expand-btn {
        width: 22px !important;
        height: 22px !important;
    }
    
    .function-expand-icon {
        font-size: 9px !important;
    }
    
    .function-checkbox {
        width: 16px !important;
        height: 16px !important;
    }
    
    .category-title {
        font-size: 13px !important;
        margin-bottom: 8px !important;
        padding: 6px 10px !important;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 16px 8px 8px 8px !important;
        align-items: flex-start !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .modal.active {
        padding-top: 16px !important;
    }
    
    .modal-calculator {
        max-width: calc(100vw - 16px);
        max-height: calc(100vh - 60px);
        margin: 0 auto !important;
        padding: 16px 12px !important;
        transform: scale(1) !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-calculator .modal-title {
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }
    
    .modal-calculator .modal-text {
        font-size: 12px !important;
        margin-bottom: 12px !important;
    }
    
    .calculator-tabs {
        margin-bottom: 16px;
    }
    
    .calculator-tab {
        font-size: 13px !important;
        padding: 8px 12px !important;
    }
    
    .calculator-summary {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 12px !important;
        border-radius: 12px 12px 0 0 !important;
        margin: 0 !important;
        z-index: 10001 !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2) !important;
    }
    
    .summary-title {
        font-size: 13px !important;
        margin-bottom: 6px !important;
    }
    
    .summary-price {
        padding: 8px 10px !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 6px;
    }
    
    .price-label {
        font-size: 11px !important;
    }
    
    .price-total {
        font-size: 8px !important;
    }
    
    .summary-note {
        font-size: 10px !important;
        margin-bottom: 6px !important;
        line-height: 1.3;
    }
    
    .calculator-submit-btn {
        margin-top: 6px !important;
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
    
    .price-total {
        font-size: 11px !important;
    }
    
    .summary-note {
        font-size: 10px !important;
        margin-bottom: 6px;
    }
    
    .calculator-submit-btn {
        margin-top: 6px !important;
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
    
    .functions-list {
        padding-bottom: 180px;
    }
    
    .btn-telegram-calc {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
    
    .modal-close {
        top: 8px !important;
        right: 8px !important;
        font-size: 24px !important;
        width: 28px;
        height: 28px;
    }
}

.modal-close-btn {
    width: 100%;
    margin-top: 24px;
}

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

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

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

/* RESPONSIVE */

@media (max-width: 768px) {
    .container {
        padding: 0 22px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-feature-item {
        flex-direction: column;
        text-align: center;
        padding: 12px 6px;
        min-height: auto;
        box-sizing: border-box;
        overflow: hidden;
        opacity: 0;
        transform: translateY(30px);
        animation: heroFeatureAppear 0.6s ease-out forwards;
    }

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

    .site-header {
        max-width: 90%;
        width: 90%;
        top: 15px;
        left: 5%;
        right: 5%;
        transform: none;
        border-radius: 24px;
        margin: 0;
        min-width: auto;
    }
    
    .site-header.scrolled {
        top: 15px;
        transform: none;
    }

    .site-header .container {
        padding: 10px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 100%;
    }

    .header-inner {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
        width: 100%;
        max-width: 100%;
    }

    .header-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 16px;
        flex-wrap: wrap;
    }

    .header-phone {
        order: 2;
    }

    .header-buttons {
        width: 100%;
        justify-content: center;
        order: 3;
    }

    .header-phone {
        order: 2;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 21px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-content {
        text-align: center;
        align-items: center;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        justify-content: center;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-features {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
        margin-top: 40px;
        padding: 0 4px;
        box-sizing: border-box;
    }
    
    .hero-feature-item {
        flex-direction: column;
        text-align: center;
        padding: 12px 6px;
        min-height: auto;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .hero-feature-item .feature-icon {
        font-size: clamp(22px, 4.5vw, 30px);
        margin-bottom: 6px;
        flex-shrink: 0;
    }
    
    .hero-feature-item .feature-title {
        font-size: clamp(14px, 3.5vw, 16px);
        margin-bottom: 4px;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .hero-feature-item .feature-desc {
        font-size: clamp(13px, 3.2vw, 14px);
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .hero-feature-item .feature-text {
        width: 100%;
        box-sizing: border-box;
    }

    .hero-phone-3d {
        justify-content: center;
        /* Анимация появления снизу для мобильной версии */
        opacity: 0;
        transform: translateY(60px) translateX(0) !important;
        animation: phoneAppearFromBottom 0.8s ease-out 0.3s forwards;
    }

    .hero-phone-image {
        max-width: 324px;
        border-radius: 20px;
    }
    
    .iphone-screen-content {
        top: 4.5%;
        left: 4%;
        width: 92%;
        height: 91%;
        border-radius: 0;
        transform: scale(1.01);
    }
    
    .iphone-screen-image {
        object-fit: fill;
        transform: scale(1.02);
    }

    .certificate-placeholder {
        padding: 60px 40px;
        min-height: 400px;
    }
    
    .certificate-container {
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
        margin-top: 40px;
    }
    
    .certificate-image-wrapper {
        order: 1;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .certificate-text-wrapper {
        order: 2;
    }

    /* Уменьшаем фото сертификата на мобильных */
    .certificate-image {
        width: 100%;
        max-width: 180px;
        margin-left: 0;
    }
    
    .certificate-section {
        padding-top: 120px;
    }
    
    .certificate-text-wrapper {
        padding-left: 32px;
        padding-right: 8px;
        margin-top: 24px;
        max-width: 82%;
    }
    
    .certificate-section .section-intro {
        font-size: 16px;
        line-height: 1.4;
        text-align: left;
        max-width: 100%;
        font-weight: 400;
        color: #5a5a5a;
    }

    .certificate-icon {
        font-size: 80px;
    }

    .footer-main {
        flex-direction: column;
        gap: 40px;
    }

    .footer-compact-menu {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-title {
        font-size: 40px;
        margin-bottom: 40px;
    }

    .what-is-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .scenarios-grid,
    .control-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    /* approach-grid имеет свой стиль для двух столбцов в мобильной версии */
    
    /* technical-grid имеет свой стиль для двух столбцов в мобильной версии */
    
    /* capabilities-grid имеет свой стиль для двух столбцов в мобильной версии */

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .footer-actions {
        flex-direction: column;
    }

    .modal-content {
        padding: 30px 20px;
        max-width: calc(100vw - 32px);
        margin: 20px auto;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }
    
    .dropdown-menu {
        max-width: calc(100vw - 40px);
        left: 20px;
        right: 20px;
    }
    
    .dropdown-nav {
        grid-template-columns: 1fr;
        padding: 16px 20px;
    }
    
    .hero-phone-3d {
        /* Анимация появления снизу для мобильной версии */
        opacity: 0;
        transform: translateY(60px) !important;
        animation: phoneAppearFromBottom 0.8s ease-out 0.3s forwards;
    }
    
    .hero-phone-image {
        max-width: 288px;
    }
    
    .gargantua-container {
        max-width: 100%;
        padding: 20px;
    }
    
    .gargantua-svg {
        max-width: 100%;
        height: auto;
    }
    
    .certificate-image {
        max-width: 100%;
        height: auto;
    }
    
    .device-frame-image {
        max-width: 100%;
        height: auto;
    }
    
    .project-gallery-container {
        max-width: 100%;
    }
    
    .stages-modern-flow {
        padding-left: 0;
    }
    
    .stage-modern-circle {
        position: relative;
        left: 0;
    }
    
    .stages-modern-flow::before {
        display: block !important;
        left: 0;
        width: 3px;
    }
    
    .hero-phone-3d {
        /* Анимация появления снизу для мобильной версии */
        opacity: 0;
        transform: translateY(60px) !important;
        animation: phoneAppearFromBottom 0.8s ease-out 0.3s forwards;
    }
    
    .hero-phone-image {
        max-width: 225px;
    }
    
    .gargantua-container {
        max-width: 100%;
        padding: 20px;
    }
    
    .gargantua-svg {
        max-width: 100%;
        height: auto;
    }
    
    .certificate-image {
        max-width: 100%;
        height: auto;
    }
    
    .device-frame-image {
        max-width: 100%;
        height: auto;
    }
    
    .project-gallery-container {
        max-width: 100%;
    }
    
    .stages-title {
        margin-bottom: 80px !important;
        text-align: center !important;
    }
    
    .stages-modern-flow {
        padding-left: 0;
    }
    
    .stage-modern-circle {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    
    .stages-modern-flow::before {
        display: block !important;
        left: 10px;
        width: 3px;
    }
    
    .modal-content {
        padding: 30px 20px;
        max-width: calc(100vw - 32px);
        margin: 20px auto;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }
    
    .dropdown-menu {
        max-width: calc(100vw - 40px);
        left: 20px;
        right: 20px;
    }
    
    .dropdown-nav {
        grid-template-columns: 1fr;
        padding: 16px 20px;
    }
}

    .showroom-locations {
        grid-template-columns: 1fr;
    }

    .app-demo-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .app-phone-frame {
        width: 280px;
        height: 560px;
    }

    .app-screens-gallery {
        grid-template-columns: 1fr;
    }
    
    /* Уменьшаем padding секций на мобильных */
    .hero-section {
        padding: 80px 0;
        min-height: auto;
    }
    
    .quasar-name-section {
        padding: 60px 0;
    }
    
    .what-is-section {
        padding: 100px 0;
    }
    
    .unique-approach-section {
        padding: 100px 0 40px 0;
    }
    
    .capabilities-section {
        padding: 100px 0;
    }
    
    .scenarios-animated-section {
        padding: 100px 0;
    }
    
    .control-animated-section {
        padding: 100px 0;
    }
    
    .technical-section {
        padding: 100px 0;
    }
    
    /* Увеличение шрифта FAQ для мобильной версии */
    .faq-question {
        font-size: 18px !important;
        line-height: 1.4 !important;
    }
    
    .faq-question::after {
        font-size: 24px !important;
    }
    
    .mission-section {
        padding: 100px 0;
    }
    
    .certificate-section {
        padding: 100px 0;
    }
    
    .work-stages-section {
        padding: 100px 0;
    }
    
    .projects-section {
        padding: 100px 0;
    }
    
    .faq-section {
        padding: 100px 0;
    }
    
    .cta-section {
        padding: 100px 0;
    }
    
    .zigbee-section {
        padding: 100px 0;
    }
    
    .app-demo-section {
        padding: 100px 0;
    }
    

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 36px;
        line-height: 1.1;
    }

    .section-title {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-features {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .hero-feature-item {
        flex-direction: column;
        text-align: center;
        padding: 12px 8px;
        min-height: auto;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .hero-feature-item .feature-icon {
        font-size: clamp(20px, 5vw, 28px);
        margin-bottom: 6px;
        flex-shrink: 0;
    }
    
    .hero-feature-item .feature-title {
        font-size: clamp(13px, 3.3vw, 15px);
        margin-bottom: 4px;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .hero-feature-item .feature-desc {
        font-size: clamp(12px, 3vw, 13px);
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .hero-feature-item .feature-text {
        width: 100%;
        box-sizing: border-box;
    }
    
    .hero-section {
        padding: 80px 0;
        min-height: auto;
    }
    
    .quasar-name-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .quasar-text-side {
        padding-left: 20px;
        padding-right: 20px;
        margin-left: 0;
        text-align: left;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Принудительное включение CSS анимаций для Safari iOS в мобильной версии */
    .accretion-disk-outer ellipse,
    .accretion-disk-outer {
        animation: rotateOuterDisk 20s linear infinite !important;
        -webkit-animation: rotateOuterDisk 20s linear infinite !important;
        will-change: transform !important;
        transform-origin: 500px 500px !important;
    }
    
    .accretion-disk-inner ellipse,
    .accretion-disk-inner {
        animation: rotateInnerDisk 12s linear infinite !important;
        -webkit-animation: rotateInnerDisk 12s linear infinite !important;
        will-change: transform !important;
        transform-origin: 500px 500px !important;
    }
    
    .black-hole-core {
        animation: blackHoleRotate 8s linear infinite, blackHolePulse 2s ease-in-out infinite !important;
        -webkit-animation: blackHoleRotate 8s linear infinite, blackHolePulse 2s ease-in-out infinite !important;
        will-change: transform !important;
        transform-origin: 500px 500px !important;
    }
    
    .gargantua-svg {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000;
        perspective: 1000;
    }
    
    .quasar-main-title {
        font-size: 32px;
        text-align: left;
    }
    
    .quasar-definition-text,
    .quasar-philosophy-text,
    .quasar-connection-text {
        padding-left: 0;
        text-align: left;
    }
    
    .what-is-section {
        padding: 50px 0;
    }
    
    .what-is-content {
        gap: 20px;
    }
    
    .what-is-text .quote-text {
        max-width: 85%;
        margin: 0 auto;
        padding: 12px 24px;
    }
    
    .quote-text {
        font-size: 18px;
        line-height: 1.4;
    }
    
    .person-info {
        margin-bottom: 16px;
    }
    
    .mission-content {
        padding: 0;
    }
    
    .mission-text {
        font-size: 18px;
        text-align: center;
    }
    
    .work-stages-section {
        padding: 50px 0;
    }
    
    .stages-title {
        margin-bottom: 50px !important;
    }
    
    .stage-modern-item {
        margin-bottom: 24px;
        display: grid;
        grid-template-areas: 
            "circle circle"
            "icon title"
            "text text";
        grid-template-columns: auto 1fr;
        gap: 6px 10px;
        padding-left: 0;
        position: relative;
    }
    
    /* Вертикальная линия для мобильной версии */
    .stages-modern-flow::before {
        content: '';
        position: absolute;
        left: 10px;
        top: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(180deg, 
            #8B5CF6 0%,
            #3B82F6 25%,
            #10B981 50%,
            #F59E0B 75%,
            #EC4899 100%);
        border-radius: 2px;
        z-index: 0;
    }
    
    .stage-modern-circle {
        position: absolute;
        left: 10px;
        top: 50%;
        margin-bottom: 0;
        transform: translate(-50%, -50%);
        z-index: 2;
        width: 50px;
        height: 50px;
    }
    
    .stage-modern-icon {
        margin-left: 0;
        margin-bottom: 0;
        margin-right: 0;
        flex-shrink: 0;
        grid-area: icon;
        width: 50px;
        height: 50px;
        align-self: center;
    }
    
    .stage-modern-content {
        grid-area: title;
        display: block;
        width: 100%;
        padding-top: 0;
        max-width: 100%;
        padding-right: 0;
    }
    
    .stage-modern-title {
        margin-bottom: 0;
        flex: 1;
        min-width: 0;
    }
    
    .stage-modern-text {
        grid-area: text;
        width: 100%;
        margin-top: 8px;
    }
    
    .certificate-section {
        padding-top: 120px;
        padding-bottom: 100px;
    }
    
    .certificate-container {
        gap: 20px;
    }
    
    .certificate-text-wrapper {
        padding-left: 28px;
        padding-right: 8px;
        margin-top: 20px;
        max-width: 95%;
    }
    
    .certificate-section .section-intro {
        font-size: 15px;
        line-height: 1.4;
        text-align: left;
        max-width: 100%;
        font-weight: 400;
        color: #5a5a5a;
    }
    
    .projects-section {
        padding: 100px 0;
    }
    
    .capabilities-section {
        padding: 100px 0;
    }
    
    .capability-card {
        padding: 32px 24px;
    }
    
    .technical-section {
        padding: 100px 0;
    }
    
    .technical-card {
        padding: 32px 24px;
    }
    
    .zigbee-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .zigbee-mesh-network {
        height: 400px;
    }
    
    .app-demo-container {
        gap: 40px;
    }
    
    .app-phone-frame {
        width: 240px;
        height: 480px;
    }
    
    .site-header .container {
        padding: 8px 16px;
    }
    
    .logo-text-header {
        font-size: 14px;
    }
    
    .nav-link {
        font-size: 12px;
    }
    
    .header-phone .phone-link {
        font-size: 14px;
        white-space: nowrap;
    }
    
    .nav-link {
        white-space: normal;
        word-break: break-word;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 15px;
        white-space: normal;
    }
    
    .hero-cta {
        gap: 12px;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .logo-text-header {
        white-space: normal;
        word-break: break-word;
    }
    
    .our-work-section .section-title {
        white-space: nowrap;
        font-size: clamp(24px, 7vw, 36px);
    }
    
    .our-work-section .section-title br {
        display: none;
    }
    
    .certificate-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .certificate-image-wrapper {
        order: 1;
    }
    
    .certificate-card {
        order: 2;
        padding: 24px;
    }
    
    .stage-modern-item {
        flex-direction: column;
        gap: 12px;
    }
    
    .stage-modern-circle {
        position: absolute;
        left: 10px;
        top: 50%;
        width: 60px;
        height: 60px;
        transform: translate(-50%, -50%);
        z-index: 2;
    }
    
    .stage-modern-connector {
        display: none;
    }
    
    .stages-modern-flow::before {
        left: 0 !important;
    }
    
    .stage-modern-content {
        padding-top: 0;
        max-width: 80%;
        padding-right: 24px;
    }
    
    .stage-modern-title-wrapper {
        gap: 10px;
        align-items: center;
        flex-wrap: nowrap;
        margin-bottom: 12px;
    }
    
    .stage-modern-title-wrapper .stage-modern-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        flex-shrink: 0;
    }
    
    .stage-modern-title-wrapper .stage-modern-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .stage-modern-title {
        font-size: 18px;
        flex: 1;
        min-width: 0;
        margin: 0;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .stage-modern-text {
        font-size: 15px;
    }
    
    .capability-card {
        padding: 32px 20px;
    }

    .btn-showroom {
        padding: 12px 22px;
        font-size: 17px;
    }
    
    .capability-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 9px;
    }
    
    
    /* Стрелка удалена */
    
    .scenario-animated-steps {
        margin-top: 12px;
    }
    
    .scenario-animated-card.expanded .scenario-animated-steps {
        margin-top: 12px;
    }
    
    .scenario-animated-step {
        padding: 6px 0;
        font-size: 13px;
        line-height: 1.3;
    }
    
    .capability-title {
        font-size: 18px;
    }
    
    .capability-intro {
        font-size: 20px;
    }
    
    .technical-card {
        padding: 18px 14px;
    }
    
    .technical-icon {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .technical-title {
        font-size: 17px;
        margin-bottom: 8px;
    }
    
    .technical-text {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .technical-text .wired-label,
    .technical-text .wireless-label {
        display: inline-block;
        padding: 4px 10px;
        border-radius: 6px;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-right: 6px;
        vertical-align: middle;
    }
    
    .technical-text .wired-label {
        background: #ff6b00;
        color: white;
    }
    
    .technical-text .wireless-label {
        background: #007aff;
        color: white;
    }
    
    .technical-text strong {
        display: none;
    }
    
    .project-card {
        padding: 24px;
    }
    
    .faq-question {
        font-size: 18px;
        padding: 12px 20px;
        line-height: 1.4;
    }
    
    .faq-answer {
        font-size: 14px;
        line-height: 1.4;
        padding: 0 20px 16px;
    }
    
    .faq-item {
        padding: 12px 0;
    }
    
    .faq-item.active .faq-answer {
        padding-top: 10px;
        margin-top: 10px;
    }
    
    .cta-title {
        font-size: 28px;
    }
    
    .cta-subtitle {
        font-size: 17px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    .hero-phone-3d {
        /* Анимация появления снизу для мобильной версии */
        opacity: 0;
        transform: translateY(60px) !important;
        animation: phoneAppearFromBottom 0.8s ease-out 0.3s forwards;
    }
    
    .hero-phone-image {
        max-width: 297px;
    }
    
    .gargantua-container {
        max-width: 100%;
    }
    
    .gargantua-svg {
        max-width: 100%;
        height: auto;
    }
    
    .hero-side-nav {
        display: none;
    }
    
    .what-is-section {
        background-attachment: scroll;
    }
    
    .what-is-section::before {
        opacity: 0.7;
    }
    
    .section-intro {
        font-size: 20px;
    }
    
    .quote-text {
        font-size: 17px;
        line-height: 1.5;
        max-width: 85%;
        margin: 0 auto;
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .mission-text {
        font-size: 20px;
        text-align: center;
    }
    
    .control-title {
        font-size: 22px;
    }
    
    .control-text {
        font-size: 18px;
    }
    
    .approach-title {
        font-size: 18px;
    }
    
    .approach-text {
        font-size: 17px;
    }
    
    .technical-title {
        font-size: 18px;
    }
    
    .technical-text {
        font-size: 17px;
    }
    
    .project-gallery-title {
        font-size: 20px;
    }
    
    .integration-name {
        font-size: 18px;
    }
    
    .integration-description {
        font-size: 17px;
    }
    
    .benefit-title {
        font-size: 18px;
    }
    
    .benefit-text {
        font-size: 14px;
    }
    
    .device-name {
        font-size: 18px;
    }
    
    .device-description {
        font-size: 14px;
    }
    
    .social-networks-section {
        padding: 40px 0;
    }
    
    .social-section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .social-networks-chain {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .download-presentation-section {
        padding: 60px 0;
    }
    
    .download-presentation-section-title {
        font-size: 36px;
        margin-bottom: 40px;
    }
    
    .download-presentation-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .download-presentation-card {
        padding: 36px 28px;
    }
    
    .footer-main {
        flex-direction: column;
        gap: 40px;
    }

    .footer-compact-menu {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .footer-menu-column {
        text-align: center;
    }
    
    .footer-legal {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        justify-items: center !important;
        max-width: 400px !important;
        margin: 0 auto !important;
    }
    
    .footer-legal a {
        text-align: center !important;
        width: 100% !important;
    }
    
    .zigbee-visualization {
        padding: 40px 20px;
    }
    
    .zigbee-mesh-network {
        height: 400px;
    }
    
    .devices-showcase {
        flex-direction: column;
        gap: 40px;
    }
    
    .device-item {
        width: 100%;
    }
    
    .device-frame-wrapper {
        max-width: 100%;
    }
    
    .cross-platform-benefits {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .integrations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .integration-card {
        padding: 24px 20px;
    }
    
    .integrations-note {
        padding: 20px;
        font-size: 14px;
    }
    
    .projects-gallery-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .project-gallery-item {
        width: 100%;
    }
    
    /* Принудительное включение CSS анимаций для Safari iOS на очень маленьких экранах */
    .accretion-disk-outer ellipse,
    .accretion-disk-outer {
        animation: rotateOuterDisk 20s linear infinite !important;
        -webkit-animation: rotateOuterDisk 20s linear infinite !important;
    }
    
    .accretion-disk-inner ellipse,
    .accretion-disk-inner {
        animation: rotateInnerDisk 12s linear infinite !important;
        -webkit-animation: rotateInnerDisk 12s linear infinite !important;
    }
    
    .black-hole-core {
        animation: blackHoleRotate 8s linear infinite, blackHolePulse 2s ease-in-out infinite !important;
        -webkit-animation: blackHoleRotate 8s linear infinite, blackHolePulse 2s ease-in-out infinite !important;
    }
    
    .scenarios-animated-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .scenario-animated-card {
        padding: 12px 14px !important; /* Уменьшены вертикальные отступы для компактности */
    }
    
    .scenario-animated-card.expanded {
        padding-bottom: 12px !important;
    }
    
    /* Стрелка удалена */
    
    .scenario-animated-step {
        padding: 6px 0;
        font-size: 13px;
        line-height: 1.3;
    }
    
    .scenario-animated-steps {
        margin-top: 12px;
    }
    
    .scenario-animated-card.expanded .scenario-animated-steps {
        margin-top: 12px;
    }
    
    /* Увеличение шрифта FAQ для мобильной версии */
    .faq-question {
        font-size: 18px !important;
        line-height: 1.4 !important;
    }
    
    .faq-question::after {
        font-size: 24px !important;
    }
    
    .scenario-animated-text {
        font-size: 14px;
        line-height: 1.3;
    }
    
    .scenario-animated-step {
        padding: 6px 0;
        font-size: 13px;
        line-height: 1.3;
    }
}

/* Дополнительные правила для очень маленьких экранов */
@media (max-width: 375px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .quote-text {
        font-size: 16px;
        max-width: 80%;
        margin: 0 auto;
        padding-left: 28px;
        padding-right: 28px;
    }
    
    .mission-text {
        font-size: 16px;
        text-align: center;
    }
    
    .stages-right-column {
        padding-left: 0 !important;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .showroom-subtitle-main,
    .showroom-description-main {
        padding-left: 0 !important;
        text-align: center;
    }
    
    .showroom-title-main {
        text-align: center;
    }
    
    .showroom-image-container {
        margin-left: auto;
        margin-right: auto;
    }
    
    .functions-list {
        max-height: calc(100vh - 280px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .calculator-summary {
        padding: 10px 12px !important;
        border-radius: 12px 12px 0 0 !important;
    }
    
    .site-header .container {
        padding: 6px 12px;
    }
    
    .logo-text-header {
        font-size: 12px;
    }
    
    .nav-link {
        font-size: 11px;
    }
    
    .header-phone .phone-link {
        font-size: 12px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .capability-card,
    .technical-card {
        padding: 24px 16px;
    }

    .technical-link {
        display: block !important; /* Показываем на mobile */
        position: absolute;
        right: 12px;
        bottom: 12px;
        font-size: 13px;
        font-weight: 500;
        opacity: 0.9;
        color: #6e6e73;
        text-align: right;
        background: rgba(255, 255, 255, 0.9);
        padding: 6px 12px;
        border-radius: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .stage-modern-item {
        margin-bottom: 28px;
    }
    
    .stage-modern-title {
        font-size: 20px;
    }
    
    .stage-modern-text {
        font-size: 17px;
    }
    
    .certificate-card {
        padding: 20px 16px;
    }
    
    .modal-content {
        padding: 24px 16px;
    }
    
    .modal-image-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
    
    .fullscreen-image {
        max-width: 98vw;
        max-height: 98vh;
        /* Автоматическая ориентация из EXIF данных */
        image-orientation: from-image !important;
        transform: none !important;
    }
}

/* ZIGBEE TECHNOLOGY SECTION */
.zigbee-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

/* Плавающие частицы-устройства */
.zigbee-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(3px 3px at 15% 25%, rgba(66, 165, 245, 0.5), transparent),
        radial-gradient(2px 2px at 85% 35%, rgba(255, 170, 0, 0.4), transparent),
        radial-gradient(2px 2px at 25% 75%, rgba(229, 57, 53, 0.4), transparent),
        radial-gradient(3px 3px at 75% 85%, rgba(66, 165, 245, 0.3), transparent),
        radial-gradient(2px 2px at 50% 20%, rgba(255, 170, 0, 0.3), transparent),
        radial-gradient(2px 2px at 10% 60%, rgba(229, 57, 53, 0.3), transparent),
        radial-gradient(3px 3px at 90% 70%, rgba(66, 165, 245, 0.4), transparent),
        radial-gradient(2px 2px at 40% 90%, rgba(255, 170, 0, 0.3), transparent);
    background-size: 400% 400%, 350% 350%, 380% 380%, 320% 320%, 360% 360%, 340% 340%, 390% 390%, 370% 370%;
    background-position: 0% 0%, 25% 25%, 50% 50%, 75% 75%, 10% 10%, 60% 60%, 30% 30%, 80% 80%;
    animation: devicesFloat 30s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
    opacity: 0.7;
}

@keyframes devicesFloat {
    0%, 100% {
        background-position: 0% 0%, 25% 25%, 50% 50%, 75% 75%, 10% 10%, 60% 60%, 30% 30%, 80% 80%;
        opacity: 0.6;
    }
    25% {
        background-position: 5% 5%, 30% 30%, 55% 55%, 80% 80%, 15% 15%, 65% 65%, 35% 35%, 85% 85%;
        opacity: 0.8;
    }
    50% {
        background-position: 10% 10%, 35% 35%, 60% 60%, 85% 85%, 20% 20%, 70% 70%, 40% 40%, 90% 90%;
        opacity: 0.7;
    }
    75% {
        background-position: 7% 7%, 32% 32%, 57% 57%, 82% 82%, 17% 17%, 67% 67%, 37% 37%, 87% 87%;
        opacity: 0.9;
    }
}

.zigbee-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 60px;
}

.zigbee-visualization {
    position: relative;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    border-radius: 24px;
    padding: 40px 20px;
    overflow: visible;
    width: 100%;
    max-width: 100%;
}

.zigbee-mesh-network {
    width: 100%;
    height: 600px;
    max-height: 600px;
    display: block;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(245, 245, 247, 0.5) 100%);
    border-radius: 20px;
}

.zigbee-info {
    width: 100%;
}

.mesh-connection {
    animation: meshPulse 3s ease-in-out infinite;
}

@keyframes meshPulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.7;
    }
}

.zigbee-device {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.zigbee-device:hover {
    transform: scale(1.15);
}

.zigbee-device circle {
    transition: stroke-width 0.3s ease;
}

.zigbee-device:hover circle {
    stroke-width: 3.5;
}

.zigbee-coordinator circle {
    animation: coordinatorPulse 2s ease-in-out infinite;
}

@keyframes coordinatorPulse {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(229, 57, 53, 0.7));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(229, 57, 53, 1));
        transform: scale(1.02);
    }
}

.zigbee-router {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.zigbee-router:hover {
    transform: scale(1.1);
}

.zigbee-router circle {
    animation: routerGlow 3s ease-in-out infinite;
}

@keyframes routerGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(255, 170, 0, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(255, 170, 0, 0.8));
    }
}

.zigbee-end-device {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.zigbee-end-device:hover {
    transform: scale(1.15);
}

.zigbee-end-device circle {
    transition: stroke-width 0.3s ease;
}

.zigbee-end-device:hover circle {
    stroke-width: 3;
    filter: drop-shadow(0 0 8px rgba(66, 165, 245, 0.6));
}

.connection-line {
    filter: url(#connectionGlow);
}

.mesh-connection {
    transition: opacity 0.3s ease;
}

.zigbee-system-components {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 40px;
    margin-top: 60px;
    padding: 0 40px;
    flex-wrap: wrap;
}

.system-component {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
        opacity: 0;
    transform: translateY(20px);
    animation: componentAppear 0.8s ease-out forwards;
}

.system-component:nth-child(1) { animation-delay: 0.2s; }
.system-component:nth-child(2) { animation-delay: 0.4s; }
.system-component:nth-child(3) { animation-delay: 0.6s; }
.system-component:nth-child(4) { animation-delay: 0.8s; }
.system-component:nth-child(5) { animation-delay: 1s; }

@keyframes componentAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.component-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f7;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.component-icon svg {
    width: 48px;
    height: 48px;
}

.component-icon:hover {
    background: #e5e5e7;
    transform: scale(1.1);
}

.component-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.4;
}

.zigbee-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), #0051d5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(11, 116, 255, 0.3);
    z-index: 10;
    animation: hubPulse 2s ease-in-out infinite;
}

@keyframes hubPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 20px 60px rgba(11, 116, 255, 0.3);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 0 25px 80px rgba(11, 116, 255, 0.4);
    }
}

.zigbee-hub-icon {
    font-size: 48px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.zigbee-hub-label {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.zigbee-signal-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
        opacity: 0;
}

.zigbee-signal-ring.ring-1 {
    width: 200px;
    height: 200px;
    animation: signalWave 3s ease-out infinite;
}

.zigbee-signal-ring.ring-2 {
    width: 300px;
    height: 300px;
    animation: signalWave 3s ease-out infinite 0.5s;
}

.zigbee-signal-ring.ring-3 {
    width: 400px;
    height: 400px;
    animation: signalWave 3s ease-out infinite 1s;
}

@keyframes signalWave {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.zigbee-devices {
    position: absolute;
    width: 100%;
    height: 100%;
}

.zigbee-device {
    position: absolute;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    z-index: 5;
}

.zigbee-device.visible {
        opacity: 1;
    transform: scale(1);
}

.zigbee-device:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(11, 116, 255, 0.2);
}

.zigbee-device.device-1 {
    top: 15%;
    left: 20%;
    animation-delay: 0.2s;
}

.zigbee-device.device-2 {
    top: 10%;
    right: 20%;
    animation-delay: 0.3s;
}

.zigbee-device.device-3 {
    top: 50%;
    left: 15%;
    animation-delay: 0.4s;
}

.zigbee-device.device-4 {
    top: 55%;
    right: 20%;
    animation-delay: 0.5s;
}

.zigbee-device.device-5 {
    bottom: 15%;
    left: 5%;
    animation-delay: 0.6s;
}

.zigbee-device.device-6 {
    bottom: 15%;
    right: 10%;
    animation-delay: 0.7s;
}

.zigbee-device.device-7 {
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.8s;
}

.zigbee-device.device-8 {
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.9s;
}

.zigbee-device.device-9 {
    top: 70%;
    left: 25%;
    animation-delay: 1.0s;
}

.zigbee-device.device-10 {
    top: 70%;
    right: 25%;
    animation-delay: 1.1s;
}

.device-icon {
    font-size: 32px;
    margin-bottom: 4px;
}

.device-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}

.device-connection {
    position: absolute;
    width: 2px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    transform-origin: top center;
        opacity: 0;
    transition: all 0.8s ease-out;
}

.zigbee-device.visible .device-connection {
    height: 200px;
    opacity: 0.6;
    animation: connectionPulse 2s ease-in-out infinite;
}

@keyframes connectionPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
}

/* Old zigbee-network removed - using SVG now */

.zigbee-connection {
    stroke: var(--primary-color);
    stroke-width: 2;
    fill: none;
    opacity: 0;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2s ease-out forwards;
}

.zigbee-connection-hub {
    stroke: var(--primary-color);
    stroke-width: 2;
    opacity: 0.4;
}

.zigbee-connection-mesh {
    stroke: var(--primary-color);
    stroke-width: 1.5;
    opacity: 0.2;
    stroke-dasharray: 5, 5;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* Раздел о взаимодействии устройств */
.device-communication-section {
    margin: 80px 0;
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(255, 170, 0, 0.05) 0%, rgba(255, 107, 0, 0.05) 100%);
    border-radius: 24px;
}

.communication-header {
    text-align: center;
    margin-bottom: 60px;
}

.communication-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.communication-subtitle {
    font-size: 20px;
    color: var(--text-dark);
    opacity: 0.7;
}

.communication-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.communication-example {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.communication-example:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.example-icon {
    font-size: 48px;
    margin-bottom: 20px;
    text-align: center;
}

.example-content {
    flex: 1;
}

.example-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.example-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    opacity: 0.8;
}

.communication-principle {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b00 100%);
    border-radius: 24px;
    padding: 50px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 8px 40px rgba(0, 61, 130, 0.2);
}

.principle-icon {
    font-size: 64px;
    flex-shrink: 0;
}

.principle-content {
    flex: 1;
}

.principle-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff;
}

.principle-text {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
}

.principle-text strong {
    color: #ffffff;
    font-weight: 700;
}

@media (max-width: 768px) {
    .device-communication-section {
        margin: 40px 0;
        padding: 40px 20px;
    }
    
    .communication-title {
        font-size: 28px;
    }
    
    .communication-subtitle {
        font-size: 18px;
    }
    
    .communication-examples {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .communication-example {
        padding: 24px;
    }
    
    .communication-principle {
        flex-direction: column;
        padding: 30px 20px;
        text-align: center;
    }
    
    .principle-icon {
        font-size: 48px;
    }
    
    .principle-title {
        font-size: 24px;
    }
    
    .principle-text {
        font-size: 16px;
    }
}

.zigbee-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.zigbee-benefit-item {
    padding: 32px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    opacity: 0;
    transform: translateY(30px);
}

.zigbee-benefit-item.visible {
        opacity: 1;
    transform: translateY(0);
}

.zigbee-benefit-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(11, 116, 255, 0.15);
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.benefit-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.benefit-text {
    font-size: 15px;
    line-height: 1.5;
    color: #86868b;
}

/* SCENARIOS ANIMATED SECTION */
.scenarios-animated-section {
    padding: 120px 0;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.scenarios-animated-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.scenario-animated-card {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f7 100%);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    cursor: pointer;
}

.scenario-animated-card.expanded {
    padding-bottom: 40px;
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(11, 116, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    background: linear-gradient(135deg, #ffffff 0%, rgba(11, 116, 255, 0.03) 50%, #f5f5f7 100%);
    animation: scenario-expand-pulse 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scenario-expand-pulse {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
    50% {
        transform: translateY(-8px) scale(1.05);
        box-shadow: 0 16px 48px rgba(11, 116, 255, 0.2);
    }
    100% {
        transform: translateY(-12px) scale(1.02);
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.15),
            0 0 0 1px rgba(11, 116, 255, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }
}

.scenario-animated-card.expanded::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary-color, #003d82) 0%,
        rgba(11, 116, 255, 0.8) 50%,
        var(--primary-color, #003d82) 100%);
    background-size: 200% 100%;
    animation: scenario-shine-sweep 3s ease-in-out infinite;
    border-radius: 24px 24px 0 0;
}

@keyframes scenario-shine-sweep {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 0%;
    }
}

.scenario-animated-card.expanded .scenario-animated-icon {
    animation: scenario-icon-expand 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), iconFloat 3s ease-in-out infinite 0.8s;
    filter: drop-shadow(0 8px 20px rgba(11, 116, 255, 0.3));
}

@keyframes scenario-icon-expand {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.scenario-animated-card.expanded .scenario-animated-title {
    color: var(--primary-color, #003d82);
    transform: translateX(0);
    animation: scenario-title-slide 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scenario-title-slide {
    0% {
        transform: translateX(-20px);
        opacity: 0.7;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.scenario-animated-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.scenario-animated-card:hover:not(.expanded) {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.scenario-animated-icon {
    font-size: 64px;
    margin-bottom: 24px;
    display: block;
    animation: iconFloat 3s ease-in-out infinite;
}

/* В мобильной версии иконка и название на одной строке - увеличены на 20% */
@media (max-width: 768px) {
    .scenario-animated-card {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto 1fr;
        gap: 0 12px;
        align-items: start;
        padding: 12px 14px !important; /* Компактные отступы в свернутом состоянии */
        min-height: auto !important;
    }
    
    .scenario-link {
        display: block !important; /* Показываем на mobile */
        position: absolute;
        right: 12px;
        top: 12px;
        margin-top: 0;
        font-size: 12px;
        opacity: 0.7;
        color: #86868b;
        text-align: right;
    }
    
    .scenario-animated-card.expanded {
        padding: 12px 14px !important;
        padding-bottom: 12px !important;
    }
    
    .scenario-animated-icon {
        grid-column: 1;
        grid-row: 1;
        font-size: 24px !important; /* было 20px, увеличение на 20% */
        margin-bottom: 0 !important;
        margin-right: 0 !important;
        display: block !important;
        float: none !important;
        align-self: center;
    }
    
    .scenario-animated-title {
        grid-column: 2;
        grid-row: 1;
        font-size: 19.2px !important; /* было 16px, увеличение на 20% */
        margin-bottom: 0 !important;
        padding-right: 0 !important;
        align-self: center;
    }
    
    .scenario-animated-steps {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-top: 12px !important;
    }
}

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

.scenario-animated-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0;
    letter-spacing: -0.02em;
    position: relative;
    padding-right: 0;
    transition: margin-bottom 0.3s ease;
}

.scenario-animated-card.expanded .scenario-animated-title {
    margin-bottom: 0;
}

/* Стрелка удалена - оставлен только текст "нажми" */

.scenario-animated-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin-top 0.3s ease;
    opacity: 0;
    margin-top: 0;
}

/* В десктопной версии карточки раскрыты по умолчанию */
@media (min-width: 769px) {
    .scenario-animated-card {
        padding-bottom: 40px;
    }
    
    .scenario-animated-steps {
        max-height: 1000px !important;
        opacity: 1 !important;
        margin-top: 16px !important;
    }
    
    .scenario-animated-step {
        opacity: 1 !important;
        transform: translateX(0) !important;
    }
}

.scenario-animated-card.expanded .scenario-animated-steps {
    max-height: 1000px;
    opacity: 1;
    margin-top: 16px;
    animation: scenario-steps-reveal 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scenario-steps-reveal {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.scenario-animated-step {
    padding: 8px 0;
    font-size: 15px;
    color: #86868b;
    border-bottom: 1px solid #e5e5e7;
    position: relative;
    padding-left: 32px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.4;
}

.scenario-animated-card.expanded .scenario-animated-step {
    opacity: 1;
    transform: translateX(0);
}

.scenario-animated-card.expanded .scenario-animated-step:nth-child(1) {
    transition-delay: 0.1s;
}

.scenario-animated-card.expanded .scenario-animated-step:nth-child(2) {
    transition-delay: 0.2s;
}

.scenario-animated-card.expanded .scenario-animated-step:nth-child(3) {
    transition-delay: 0.3s;
}

.scenario-animated-card.expanded .scenario-animated-step:nth-child(4) {
    transition-delay: 0.4s;
}

.scenario-animated-card.expanded .scenario-animated-step:nth-child(5) {
    transition-delay: 0.5s;
}

.scenario-animated-card.expanded .scenario-animated-step::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color, #003d82);
    font-weight: 700;
    opacity: 0;
    animation: scenario-step-arrow-appear 0.4s ease-out forwards;
}

.scenario-animated-card.expanded .scenario-animated-step:nth-child(1)::before {
    animation-delay: 0.1s;
}

.scenario-animated-card.expanded .scenario-animated-step:nth-child(2)::before {
    animation-delay: 0.2s;
}

.scenario-animated-card.expanded .scenario-animated-step:nth-child(3)::before {
    animation-delay: 0.3s;
}

.scenario-animated-card.expanded .scenario-animated-step:nth-child(4)::before {
    animation-delay: 0.4s;
}

.scenario-animated-card.expanded .scenario-animated-step:nth-child(5)::before {
    animation-delay: 0.5s;
}

@keyframes scenario-step-arrow-appear {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.scenario-animated-card:hover .scenario-animated-icon {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px) scale(1.1);
    }
}

.scenario-animated-step:nth-child(1) { transition-delay: 0.1s; }
.scenario-animated-step:nth-child(2) { transition-delay: 0.2s; }
.scenario-animated-step:nth-child(3) { transition-delay: 0.3s; }
.scenario-animated-step:nth-child(4) { transition-delay: 0.4s; }
.scenario-animated-step:nth-child(5) { transition-delay: 0.5s; }

.scenario-animated-step::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 18px;
}

.scenario-animated-step:last-child {
    border-bottom: none;
}

.scenario-link {
    position: absolute;
    right: 16px;
    bottom: 16px;
    font-size: 13px;
    font-weight: 500;
    color: #86868b;
    text-decoration: none;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s ease, color 0.2s ease;
    display: none; /* Скрыто на desktop */
}

.scenario-link:hover {
    opacity: 1;
    color: #6e6e73;
}

/* CONTROL METHODS ANIMATED */
.control-animated-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
}

.control-animated-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.control-animated-item {
    text-align: center;
    padding: 28px 20px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.8) 0%, rgba(245, 245, 247, 0.8) 50%, rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.control-animated-item.active {
    background: #000000;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.control-animated-item.active .control-animated-title {
    color: #ffffff;
}

.control-animated-item.active .control-animated-text {
    color: #ffffff;
}

.control-animated-item.active .control-animated-icon {
    color: #ffffff;
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.control-animated-item.active .control-animated-link {
    color: #ffffff;
    opacity: 0.9;
}

.control-animated-item.active .control-animated-link:hover {
    opacity: 1;
    color: #ffffff;
}

.control-animated-item.visible {
    opacity: 1;
    transform: translateY(0) rotateY(0);
}

.control-animated-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

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

.control-animated-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.control-animated-item.active:hover {
    box-shadow: 
        0 16px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.control-animated-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.control-animated-item:hover::after {
    width: 100%;
}

/* .control-animated-item.visible - animation complete, no will-change needed */

.control-animated-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    transition: transform 0.5s;
    filter: grayscale(0.3);
    opacity: 0.9;
}

.control-animated-item:hover .control-animated-icon {
    transform: scale(1.2) rotate(5deg);
    animation: iconSpin 0.5s ease;
}

@keyframes iconSpin {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.3) rotate(10deg);
    }
    100% {
        transform: scale(1.2) rotate(5deg);
    }
}

.control-animated-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.control-animated-text {
    font-size: 14px;
    line-height: 1.5;
    color: #86868b;
}

.control-animated-link {
    position: absolute;
    right: 16px;
    bottom: 16px;
    font-size: 13px;
    font-weight: 500;
    color: #86868b;
    text-decoration: none;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s ease, color 0.2s ease;
    display: none; /* Скрыто на desktop */
}

.control-animated-link:hover {
    opacity: 1;
    color: #6e6e73;
}

/* CONTROL MODAL (Mobile) */
.control-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.control-modal.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.control-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.control-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: calc(100vw - 32px);
    max-width: 500px;
    max-height: calc(100vh - 80px);
    background: linear-gradient(to right, rgba(245, 245, 247, 0.95) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(245, 245, 247, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 32px 24px;
    overflow-y: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.control-modal.active .control-modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.control-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 28px;
    color: #86868b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 1;
}

.control-modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

.control-modal-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.control-modal-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: -0.009em;
}

.control-modal-text {
    font-size: 17px;
    line-height: 1.47059;
    color: var(--text-dark);
    font-weight: 400;
    text-align: center;
}

.control-modal-text strong {
    font-weight: 600;
}

@media (max-width: 768px) {
    .control-modal-content {
        width: calc(100vw - 24px);
        padding: 28px 20px;
        max-height: calc(100vh - 60px);
        background: #000000 !important;
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        box-shadow: 
            0 12px 40px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    .control-modal-title {
        font-size: 24px;
        color: #ffffff !important;
    }
    
    .control-modal-text {
        font-size: 16px;
        color: #ffffff !important;
    }
    
    .control-modal-text strong {
        color: #ffffff !important;
    }
    
    .control-modal-icon {
        color: #ffffff !important;
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    }
    
    .control-modal-close {
        color: #ffffff !important;
    }
    
    .control-modal-close:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
    }
}

/* RESPONSIVE ZIGBEE */
@media (max-width: 968px) {
    .zigbee-content {
        gap: 40px;
    }

    .zigbee-visualization {
        padding: 30px 15px;
    }

    .zigbee-mesh-network {
        height: 450px;
    }

    .zigbee-benefits {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .scenarios-animated-grid {
        grid-template-columns: 1fr;
    }

    .control-animated-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .control-animated-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    
    .control-animated-item {
        padding: 20px 16px;
        min-height: 120px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        text-align: center;
        position: relative;
        gap: 8px;
    }
    
    .control-animated-icon {
        font-size: 36px !important;
        margin-bottom: 0 !important;
        flex-shrink: 0;
        width: auto;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .control-animated-content {
        flex: 1;
        min-width: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .control-animated-title {
        font-size: 16px !important;
        margin-bottom: 0;
        text-align: center;
    }
    
    .control-animated-text {
        display: none;
    }
    
    .control-animated-link {
        position: absolute;
        left: 50%;
        bottom: 16px;
        transform: translateX(-50%);
        font-size: 12px;
        opacity: 0.7;
        color: #86868b;
        display: block; /* Показываем на mobile */
    }
    
    .control-animated-item.active {
        background: #000000 !important;
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        box-shadow: 
            0 12px 40px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    .control-animated-item.active .control-animated-title {
        color: #ffffff !important;
    }
    
    .control-animated-item.active .control-animated-icon {
        color: #ffffff !important;
        opacity: 1 !important;
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    }
    
    .control-animated-item.active .control-animated-link {
        color: #ffffff !important;
        opacity: 0.9;
    }
}

@media (max-width: 640px) {
    .zigbee-visualization {
        padding: 20px 10px;
    }

    .zigbee-mesh-network {
        height: 350px;
    }

    .zigbee-benefits {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .zigbee-device {
        width: 60px;
        height: 60px;
    }

    .device-icon {
        font-size: 24px;
    }

    .control-grid {
        grid-template-columns: 1fr;
    }
    
    /* control-animated-grid имеет свой стиль для двух столбцов в мобильной версии */
    
    .control-animated-item {
        display: flex;
        align-items: center;
        text-align: center;
        padding: 14px 16px;
        gap: 8px;
        flex-direction: column;
        justify-content: center;
    }
    
    .control-animated-icon {
        font-size: 32px;
        margin-bottom: 0;
        flex-shrink: 0;
        width: auto;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
    
    .control-animated-content {
        flex: 1;
        min-width: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .control-animated-title {
        font-size: 15px;
        margin-bottom: 4px;
        margin-top: 0;
        line-height: 1.3;
        text-align: center;
    }
    
    .control-animated-text {
        font-size: 12px;
        line-height: 1.4;
        margin: 0;
    }
}

/* LIQUID GLASS EFFECT - Apple Style */
.hero-section,
.section {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
}


/* HERO BUTTONS - GRAY STYLE */
.btn-hero {
    border: none;
}

.btn-hero.btn-primary {
    background: linear-gradient(to right, rgba(0, 61, 130, 0.8) 0%, rgba(26, 26, 26, 0.8) 50%, rgba(0, 0, 0, 0.8) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-hero.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-hero.btn-outline {
    background: linear-gradient(to right, rgba(128, 128, 128, 0.6) 0%, rgba(100, 100, 100, 0.6) 50%, rgba(80, 80, 80, 0.6) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.btn-hero.btn-outline:hover {
    background: linear-gradient(to right, rgba(0, 61, 130, 0.8) 0%, rgba(26, 26, 26, 0.8) 50%, rgba(0, 0, 0, 0.8) 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

/* CONTROL ANIMATED - SMALLER CARDS WITH AERO EFFECT */
.control-animated-item {
    padding: 28px 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 14px;
}

.control-animated-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(11, 116, 255, 0.3);
    box-shadow: 0 12px 40px rgba(11, 116, 255, 0.15);
    transform: translateY(-8px) scale(1.02);
}

.control-animated-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.control-animated-text {
    font-size: 14px;
    line-height: 1.5;
}

.control-animated-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* TECHNICAL GRID - EQUAL BLOCKS */

/* PROJECTS GALLERY */
.projects-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.project-gallery-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 32px;
    overflow: hidden;
}

.project-gallery-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 24px;
        text-align: center;
    }

.project-gallery-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
}

.project-gallery-slider {
    position: relative;
    width: 100%;
}

.project-gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-gallery-slide.active {
    position: relative;
    opacity: 1;
}

.project-gallery-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 600px;
    /* Автоматическая ориентация из EXIF данных оригинальных фотографий */
    image-orientation: from-image !important;
    /* Убираем все трансформации, чтобы ориентация из EXIF применялась корректно */
    transform: none !important;
    cursor: pointer;
    /* Убираем transition для transform, чтобы не мешать ориентации */
    transition: opacity 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.project-gallery-slide img:hover {
    /* Убираем scale на hover, чтобы не конфликтовать с ориентацией */
    opacity: 0.95;
}

/* Исправление ориентации для всех изображений в галерее и полноэкранного режима */
.project-gallery-slide img,
.fullscreen-image,
#fullscreen-image {
    /* Автоматическая ориентация из EXIF данных - браузер применит ориентацию из метаданных фото */
    image-orientation: from-image !important;
    /* Никаких трансформаций - ориентация должна применяться только из EXIF */
    transform: none !important;
    /* Убираем rotation из любых других источников */
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -ms-transform: none !important;
    -o-transform: none !important;
}

.project-gallery-placeholder {
    width: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, #f5f5f7 0%, #e5e5e7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #86868b;
}

.project-gallery-prev,
.project-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-gallery-prev {
    left: 16px;
}

.project-gallery-next {
    right: 16px;
}

.project-gallery-prev:hover,
.project-gallery-next:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-50%) scale(1.1);
}

/* TESTIMONIALS SECTION */
.testimonials-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(11, 116, 255, 0.3);
}

.testimonial-text {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 20px;
}

.testimonial-author-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.testimonial-author-project {
    font-size: 14px;
    color: #86868b;
}

/* SCENARIO ANIMATED WITH IMAGES */
.scenario-animated-image {
    width: 100%;
    height: 200px;
    border-radius: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.scenario-image-icon {
    font-size: 80px;
    opacity: 0.4;
    position: absolute;
    z-index: 1;
    filter: blur(2px);
}

.scenario-animated-card {
    position: relative;
}

/* QUASAR DEVICES - CONSTANT ROTATION */
.smart-home-devices-orbit .device-orbit {
    animation: orbitRotation 120s linear infinite;
}

.device-1 {
    animation-duration: 120s;
}

.device-2 {
    animation-duration: 135s;
    animation-delay: -15s;
}

.device-3 {
    animation-duration: 150s;
    animation-delay: -30s;
}

.device-4 {
    animation-duration: 165s;
    animation-delay: -45s;
}

.device-5 {
    animation-duration: 180s;
    animation-delay: -60s;
}

.device-6 {
    animation-duration: 195s;
    animation-delay: -75s;
}

.device-7 {
    animation-duration: 210s;
    animation-delay: -90s;
}

.device-8 {
    animation-duration: 225s;
    animation-delay: -105s;
}

.device-9 {
    animation-duration: 240s;
    animation-delay: -120s;
}

@keyframes orbitRotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ZIGBEE IMPROVEMENTS - MESH STRUCTURE */
.zigbee-section {
    position: relative;
}

.zigbee-comparison {
    margin-top: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.zigbee-comparison-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 40px;
}

.zigbee-comparison-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.zigbee-comparison-list {
    list-style: none;
    padding: 0;
}

.zigbee-comparison-compact {
    margin-top: 40px;
    display: flex;
        flex-direction: column;
        gap: 20px;
}

.zigbee-comparison-compact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.comparison-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.comparison-content {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
}

.zigbee-comparison-list li {
    padding: 12px 0;
    font-size: 16px;
    color: #86868b;
    position: relative;
    padding-left: 24px;
}

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

/* MINIMALISTIC ICONS */
.control-animated-icon,
.technical-icon,
.scenario-animated-icon {
    filter: grayscale(0.3);
    opacity: 0.9;
}

/* RESPONSIVE UPDATES */
@media (max-width: 968px) {
    .projects-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .zigbee-comparison {
        grid-template-columns: 1fr;
    }
    
    .technical-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* HERO SIDE NAVIGATION */
.hero-side-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (max-width: 768px) {
    .hero-side-nav {
        display: none;
    }
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.nav-dot:hover,
.nav-dot.active {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.3);
}

/* FOOTER CALL BUTTON */
.footer-call-button {
        text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-call-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.btn-call-us {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: #000000;
    text-decoration: none;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-call-us:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.15);
}

/* Изменение цвета при скролле (когда хедер становится светлым) */
body.scrolled .btn-call-us,
.site-header.scrolled ~ * .btn-call-us {
    background: linear-gradient(to right, rgba(245, 245, 247, 0.95) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(245, 245, 247, 0.95) 100%);
    color: #000000;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.btn-call-us-icon {
    display: none;
}

@media (max-width: 768px) {
    .social-call-button {
        bottom: 30px;
        right: 15px;
    }
    
    .btn-call-us {
        padding: 10px 16px;
        border-radius: 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        color: #ffffff;
        font-size: 13px;
        box-shadow: 
            0 4px 16px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.15);
        transition: all 0.3s ease;
    }
    
    .btn-call-us-text {
        display: inline;
    }
    
    .btn-call-us-icon {
        display: none;
    }
    
    .btn-call-us:hover {
        transform: translateY(-2px);
        box-shadow: 
            0 6px 20px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    /* При скролле - зеленый цвет для "Набрать нам" */
    body.scrolled .btn-call-us,
    .site-header.scrolled ~ * .btn-call-us {
        background: linear-gradient(135deg, #34c759 0%, #30d158 50%, #28cd41 100%);
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: 
            0 4px 16px rgba(52, 199, 89, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    
    body.scrolled .btn-call-us:hover {
        background: linear-gradient(135deg, #30d158 0%, #34c759 50%, #2dd048 100%);
        box-shadow: 
            0 6px 20px rgba(52, 199, 89, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.25);
    }
}

@media (max-width: 480px) {
    .social-call-button {
        bottom: 25px;
        right: 10px;
    }
    
    .btn-call-us {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 18px;
    }
}

/* FLOATING SAVE CONTACT BUTTON */
.floating-save-contact-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
}

.btn-save-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: #000000;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.btn-save-contact:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.15);
}

/* Изменение цвета при скролле (когда хедер становится светлым) */
body.scrolled .btn-save-contact {
    background: linear-gradient(to right, rgba(245, 245, 247, 0.95) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(245, 245, 247, 0.95) 100%);
    color: #000000;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.btn-save-contact-icon {
    font-size: 16px;
    display: inline-block;
}

.btn-save-contact-text {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .floating-save-contact-button {
        bottom: 30px;
        left: 15px;
    }
    
    .btn-save-contact {
        width: 48px;
        height: 48px;
        border-radius: 24px;
        padding: 0;
        font-size: 12px;
        justify-content: center;
        align-items: center;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 
            0 4px 16px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }
    
    .btn-save-contact-text {
        display: none;
    }
    
    .btn-save-contact-icon {
        font-size: 20px;
        margin: 0;
    }
    
    .btn-save-contact:hover {
        transform: translateY(-2px);
        box-shadow: 
            0 6px 20px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    /* При скролле - белый/светлый цвет */
    body.scrolled .btn-save-contact {
        background: rgba(255, 255, 255, 0.95);
        color: #000000;
        border-color: rgba(0, 0, 0, 0.1);
        box-shadow: 
            0 4px 16px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }
    
    body.scrolled .btn-save-contact:hover {
        background: rgba(255, 255, 255, 1);
        border-color: rgba(0, 0, 0, 0.15);
        box-shadow: 
            0 6px 20px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.95);
    }
}

@media (max-width: 480px) {
    .floating-save-contact-button {
        bottom: 25px;
        left: 10px;
    }
    
    .btn-save-contact {
        width: 44px;
        height: 44px;
        border-radius: 22px;
    }
    
    .btn-save-contact-icon {
        font-size: 18px;
    }
    
    /* При скролле - белый/светлый цвет */
    body.scrolled .btn-save-contact {
        background: rgba(255, 255, 255, 0.95);
        color: #000000;
        border-color: rgba(0, 0, 0, 0.1);
        box-shadow: 
            0 4px 16px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }
    
    body.scrolled .btn-save-contact:hover {
        background: rgba(255, 255, 255, 1);
        border-color: rgba(0, 0, 0, 0.15);
        box-shadow: 
            0 6px 20px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.95);
    }
}

/* DOWNLOAD PRESENTATION SECTION */
.download-presentation-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f5f7 0%, #ffffff 100%);
    margin-top: 60px;
}

.download-presentation-section-title {
    font-family: var(--font-brand);
    font-size: 48px;
    font-weight: 400;
    line-height: 1.1;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.download-presentation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.download-presentation-card {
    text-align: center;
    padding: 48px 40px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.8) 0%, rgba(245, 245, 247, 0.8) 50%, rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.download-presentation-card.active {
    background: #000000;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.download-presentation-card.active .presentation-card-title {
    color: #ffffff;
}

.download-presentation-card.active .presentation-card-text {
    color: #ffffff;
}

.download-presentation-card.active .presentation-card-icon {
    color: #ffffff;
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.presentation-link {
    position: absolute;
    right: 16px;
    bottom: 16px;
    font-size: 13px;
    font-weight: 500;
    color: #86868b;
    text-decoration: none;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s ease, color 0.2s ease;
    display: none; /* Скрыто на desktop */
}

.download-presentation-card.active .presentation-link {
    color: #ffffff;
    opacity: 0.9;
}

.download-presentation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

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

.download-presentation-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.download-presentation-card:hover::after {
    width: 100%;
}

.download-presentation-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.download-presentation-card.active:hover {
    box-shadow: 
        0 16px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.presentation-card-icon {
    font-size: 64px;
    margin-bottom: 24px;
    display: block;
}

.presentation-card-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.presentation-card-text {
    font-size: 17px;
    color: #86868b;
    margin-bottom: 32px;
    line-height: 1.5;
    flex: 1;
}

.btn-download-presentation,
.btn-view-presentation {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 17px;
    white-space: nowrap;
    margin-top: auto;
}

.btn-view-presentation {
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.btn-view-presentation:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 61, 130, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .download-presentation-section {
        padding: 60px 0;
    }
    
    .download-presentation-section-title {
        font-size: 36px;
        margin-bottom: 40px;
    }
    
    .download-presentation-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    
    .download-presentation-card {
        padding: 20px 16px;
        min-height: 120px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        position: relative;
    }
    
    .presentation-card-icon {
        font-size: 36px !important;
        margin-bottom: 9px !important;
    }
    
    .presentation-card-title {
        font-size: 16px !important;
        margin-bottom: 0;
        text-align: center;
    }
    
    .presentation-card-text {
        display: none;
    }
    
    .btn-download-presentation,
    .btn-view-presentation {
        display: none;
    }
    
    .presentation-link {
        position: absolute;
        right: 16px;
        bottom: 16px;
        font-size: 12px;
        opacity: 0.7;
        color: #86868b;
        display: block; /* Показываем на mobile */
    }
    
    .download-presentation-card.active {
        background: #000000 !important;
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        box-shadow: 
            0 12px 40px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    .download-presentation-card.active .presentation-card-title {
        color: #ffffff !important;
    }
    
    .download-presentation-card.active .presentation-card-icon {
        color: #ffffff !important;
        opacity: 1 !important;
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    }
    
    .download-presentation-card.active .presentation-link {
        color: #ffffff !important;
        opacity: 0.9;
    }
}

/* PRESENTATION MODAL */
.presentation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    visibility: hidden;
}

.presentation-modal.active {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

.presentation-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: -1;
}

.presentation-modal-content {
    background: #000000;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    padding: 40px 32px;
    max-width: 90%;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 1;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin: auto;
    text-align: center;
}

.presentation-modal.active .presentation-modal-content {
    transform: scale(1) !important;
}

.presentation-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.presentation-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.presentation-modal-icon {
    font-size: 64px;
    margin-bottom: 24px;
    display: block;
    color: #ffffff;
}

.presentation-modal-title {
    font-size: 32px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.presentation-modal-text {
    font-size: 19px;
    line-height: 1.5;
    color: #ffffff;
    margin-bottom: 32px;
    font-weight: 400;
    opacity: 0.9;
}

.presentation-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.presentation-modal-buttons .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
}

@media (max-width: 768px) {
    .presentation-modal-content {
        padding: 32px 24px;
        max-width: 95%;
    }
    
    .presentation-modal-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
    
    .presentation-modal-icon {
        font-size: 48px;
        margin-bottom: 20px;
    }
    
    .presentation-modal-title {
        font-size: 24px;
        margin-bottom: 16px;
    }
    
    .presentation-modal-text {
        font-size: 16px;
        margin-bottom: 24px;
    }
}

/* PROJECT MAP BUTTON */
.project-gallery-wrapper {
    display: flex;
    flex-direction: column;
}

.project-map-btn {
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    padding: 10px 20px;
    background: rgba(11, 116, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
}

.project-map-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.project-location {
    display: block;
    font-size: 14px;
    color: #86868b;
    font-weight: 400;
    margin-top: 4px;
}

/* MISSION FREEDOM */
.mission-freedom {
    margin-top: 40px;
    padding: 32px;
    background: rgba(11, 116, 255, 0.05);
    border-radius: 20px;
    border-left: 4px solid var(--primary-color);
}

.mission-freedom-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.mission-freedom-text {
    font-size: 16px;
    line-height: 1.6;
    color: #86868b;
}

/* CAPABILITY CLICK INDICATOR */

/* APP DEMO COMPACT STYLES */
.app-demo-compact {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    margin-top: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.app-phone-compact {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-phone-frame-compact {
    width: 240px;
    height: auto;
    background: transparent;
    border-radius: 40px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-phone-screenshot {
    width: 100%;
    max-width: 240px;
    height: auto;
    border-radius: 40px;
    display: block;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-phone-compact:hover .app-phone-screenshot {
    transform: scale(1.05);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

.app-phone-screen-compact {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-screen-compact-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    background: #f5f5f7;
    font-size: 14px;
    font-weight: 600;
}

.app-screen-compact-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.app-compact-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.app-compact-devices {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-compact-device {
    padding: 16px;
    background: #f5f5f7;
    border-radius: 12px;
    font-size: 16px;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.app-compact-device:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateX(8px);
}

.app-compact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.app-compact-feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.app-compact-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.app-compact-feature h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.app-compact-feature p {
    font-size: 15px;
    color: #86868b;
    line-height: 1.5;
}

@media (max-width: 968px) {
    .app-demo-compact {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .app-phone-frame-compact {
        width: 200px;
        height: auto;
    }
    
    .app-phone-screenshot {
        max-width: 200px;
    }
    
    .app-screenshot-img {
        max-width: 250px;
    }
    
    .app-screen-preview {
        min-height: 400px;
        padding: 15px;
    }
    
    .phone-hand-animation {
        display: none;
    }
}

/* FUNCTIONALITY PAGE BACKGROUND IMAGES */
.functionality-hero-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.functionality-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/оФОРМЛЕНИЕ НОВОЕ/IMG_0241.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0.3;
}

.functionality-hero-bg .container {
    position: relative;
    z-index: 2;
}

.home-assistant-bg {
    position: relative;
    background: transparent !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.home-assistant-bg::before {
    display: none;
}

.home-assistant-bg .container {
    position: relative;
    z-index: 2;
}

.zigbee-bg {
    position: relative;
    background: #0a0e27;
    background-image: 
        radial-gradient(circle at 30% 40%, rgba(66, 165, 245, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255, 170, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(229, 57, 53, 0.1) 0%, transparent 70%);
    overflow: hidden;
}

/* Радиоволны - концентрические круги */
.zigbee-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    background-image: 
        radial-gradient(circle, transparent 20%, rgba(66, 165, 245, 0.1) 21%, rgba(66, 165, 245, 0.1) 22%, transparent 23%, transparent 28%, rgba(255, 170, 0, 0.08) 29%, rgba(255, 170, 0, 0.08) 30%, transparent 31%),
        radial-gradient(circle, transparent 35%, rgba(229, 57, 53, 0.06) 36%, rgba(229, 57, 53, 0.06) 37%, transparent 38%);
    background-size: 400px 400px, 600px 600px;
    background-position: 0 0, 200px 200px;
    animation: radioWaves 8s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes radioWaves {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

/* Сеть соединений и волны сигналов */
.zigbee-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='300' height='300' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='waveGrad' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%2342a5f5' stop-opacity='0.15'/%3E%3Cstop offset='50%25' stop-color='%23ffaa00' stop-opacity='0.1'/%3E%3Cstop offset='100%25' stop-color='%23e53935' stop-opacity='0.15'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 150 Q75 100 150 150 T300 150' stroke='url(%23waveGrad)' stroke-width='1' fill='none'/%3E%3Cpath d='M0 100 Q75 50 150 100 T300 100' stroke='url(%23waveGrad)' stroke-width='0.8' fill='none'/%3E%3Cpath d='M0 200 Q75 150 150 200 T300 200' stroke='url(%23waveGrad)' stroke-width='0.8' fill='none'/%3E%3Ccircle cx='50' cy='50' r='2' fill='%2342a5f5' opacity='0.4'/%3E%3Ccircle cx='250' cy='50' r='2' fill='%23ffaa00' opacity='0.4'/%3E%3Ccircle cx='50' cy='250' r='2' fill='%23e53935' opacity='0.4'/%3E%3Ccircle cx='250' cy='250' r='2' fill='%2342a5f5' opacity='0.4'/%3E%3Ccircle cx='150' cy='150' r='2' fill='%23ffaa00' opacity='0.4'/%3E%3Cline x1='50' y1='50' x2='150' y2='150' stroke='%2342a5f5' stroke-width='0.5' opacity='0.2'/%3E%3Cline x1='250' y1='50' x2='150' y2='150' stroke='%23ffaa00' stroke-width='0.5' opacity='0.2'/%3E%3Cline x1='50' y1='250' x2='150' y2='150' stroke='%23e53935' stroke-width='0.5' opacity='0.2'/%3E%3Cline x1='250' y1='250' x2='150' y2='150' stroke='%2342a5f5' stroke-width='0.5' opacity='0.2'/%3E%3Cline x1='50' y1='50' x2='250' y2='50' stroke='%2342a5f5' stroke-width='0.3' opacity='0.15'/%3E%3Cline x1='50' y1='250' x2='250' y2='250' stroke='%23ffaa00' stroke-width='0.3' opacity='0.15'/%3E%3C/svg%3E");
    background-size: 300px 300px;
    background-position: 0 0;
    animation: meshNetwork 25s linear infinite;
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

@keyframes meshNetwork {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 300px 300px;
    }
}

.zigbee-bg .container {
    position: relative;
    z-index: 2;
}

/* Белый текст в секции Zigbee */
.zigbee-section .section-title,
.zigbee-section .section-intro {
    color: #ffffff !important;
}

/* Текст в карточках преимуществ остается темным (у них белый фон) */
.zigbee-benefit-item .benefit-title,
.zigbee-benefit-item .benefit-text {
    color: #1d1d1f;
}

/* Дополнительные пульсирующие сигналы для Zigbee */
.zigbee-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, transparent 40%, rgba(66, 165, 245, 0.08) 50%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(255, 170, 0, 0.06) 50%, transparent 60%),
        linear-gradient(90deg, transparent 45%, rgba(229, 57, 53, 0.05) 50%, transparent 55%),
        linear-gradient(0deg, transparent 45%, rgba(66, 165, 245, 0.04) 50%, transparent 55%);
    background-size: 500% 500%, 400% 400%, 300% 300%, 350% 350%;
    background-position: 0% 0%, 100% 100%, 50% 50%, 25% 75%;
    animation: signalPulse 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}

@keyframes signalPulse {
    0%, 100% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 25% 75%;
        opacity: 0.3;
    }
    25% {
        background-position: 25% 25%, 75% 75%, 50% 50%, 50% 50%;
        opacity: 0.6;
    }
    50% {
        background-position: 50% 50%, 50% 50%, 50% 50%, 50% 50%;
        opacity: 0.5;
    }
    75% {
        background-position: 75% 75%, 25% 25%, 50% 50%, 75% 25%;
        opacity: 0.7;
    }
}

.cross-platform-bg {
    position: relative;
}

.cross-platform-bg::before {
    display: none;
    z-index: 0;
    opacity: 0.1;
}

.cross-platform-bg .container {
    position: relative;
    z-index: 2;
}

.app-demo-bg {
    position: relative;
}

.app-demo-bg::before {
    display: none;
}

.app-demo-bg .container {
    position: relative;
    z-index: 2;
}

.scenarios-bg {
    position: relative;
}

.scenarios-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/оФОРМЛЕНИЕ НОВОЕ/воскресенье, 06 окт. 2024 19-19-46.PNG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0.1;
}

.scenarios-bg .container {
    position: relative;
    z-index: 2;
}

/* Улучшение визуального оформления для functionality page */
.functionality-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.home-assistant-section {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .home-assistant-section {
        padding: 60px 0;
    }
    
    .ha-compact-header {
        margin-bottom: 40px;
    }
    
    .ha-logo-compact {
        flex-direction: column;
        gap: 16px;
    }
    
    .ha-logo-text {
        align-items: center;
        text-align: center;
    }
    
    .ha-title-compact {
        font-size: 28px;
    }
    
    .ha-subtitle-compact {
        font-size: 16px;
    }
    
    .ha-features-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .ha-feature-compact-card {
        padding: 20px;
    }
    
    .ha-feature-icon-compact {
        font-size: 32px;
    }
    
    .ha-feature-title-compact {
        font-size: 16px;
    }
    
    .ha-feature-text-compact {
        font-size: 13px;
    }
    
    .ha-advantages {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .ha-advantage-item {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    
    .ha-advantage-icon {
        font-size: 32px;
        width: 50px;
        height: 50px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .ha-title-compact {
        font-size: 24px;
    }
    
    .ha-logo-svg-compact {
        width: 56px;
        height: 56px;
    }
    
    .ha-features-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .ha-feature-compact-card {
        padding: 16px;
    }
    
    .ha-feature-icon-compact {
        font-size: 28px;
    }
    
    .ha-feature-title-compact {
        font-size: 14px;
    }
    
    .ha-feature-text-compact {
        font-size: 12px;
    }
    
    .ha-advantages {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .ha-advantage-item {
        padding: 12px;
    }
    
    .ha-advantage-icon {
        font-size: 28px;
        width: 45px;
        height: 45px;
    }
}

.zigbee-section {
    padding: 180px 0;
}

.cross-platform-section {
    padding: 180px 0;
}

.app-demo-section {
    padding: 180px 0;
}

.scenarios-section {
    padding: 100px 0;
}

/* Анимации для появления секций */
.home-assistant-section,
.zigbee-section,
.cross-platform-section,
.app-demo-section,
.scenarios-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.home-assistant-section.visible,
.zigbee-section.visible,
.cross-platform-section.visible,
.app-demo-section.visible,
.scenarios-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Улучшение карточек на functionality page */
.scenario-card,
.integration-card,
.ha-advantage-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scenario-card:hover,
.integration-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Градиентные оверлеи для лучшей читаемости */
.home-assistant-bg::after {
    display: none;
}

.zigbee-bg::after,
.cross-platform-bg::after,
.app-demo-bg::after {
    display: none;
}

.scenarios-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.9) 100%);
    z-index: 1;
    pointer-events: none;
}

.home-assistant-bg .container,
.zigbee-bg .container,
.cross-platform-bg .container,
.app-demo-bg .container,
.scenarios-bg .container {
    position: relative;
    z-index: 2;
}

/* Адаптивность для страницы устройств */
@media (max-width: 768px) {
    .devices-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .device-image-wrapper {
        height: 150px;
    }
    
    .devices-filters {
        flex-direction: column;
        padding: 16px;
    }
    
    .filter-group.filter-search {
        flex: 1;
        min-width: 100%;
    }
    
    .devices-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .devices-per-page {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .device-card {
        padding: 16px;
    }
    
    .device-image-wrapper {
        height: 120px;
    }
    
    .device-placeholder-icon {
        font-size: 48px;
    }
    
    .device-vendor {
        font-size: 16px;
    }
    
    .device-model {
        font-size: 12px;
    }
    
    .device-features {
        gap: 4px;
    }
    
    .device-feature {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* ============================================
   FUNCTIONALITY DETAIL SECTIONS
   ============================================ */

.functionality-detail-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.functionality-detail-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.lighting-detail-bg {
    background: linear-gradient(180deg, #ffffff 0%, #fff9e6 100%);
}

.lighting-detail-bg::before {
    background: radial-gradient(circle at 20% 30%, rgba(255, 183, 3, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(255, 193, 7, 0.05) 0%, transparent 50%);
}

.climate-detail-bg {
    background: linear-gradient(180deg, #e3f2fd 0%, #ffffff 100%);
}

.climate-detail-bg::before {
    background: radial-gradient(circle at 20% 30%, rgba(33, 150, 243, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(66, 165, 245, 0.05) 0%, transparent 50%);
}

.security-detail-bg {
    background: linear-gradient(180deg, #fff3e0 0%, #ffffff 100%);
}

.security-detail-bg::before {
    background: radial-gradient(circle at 20% 30%, rgba(255, 152, 0, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(255, 167, 38, 0.05) 0%, transparent 50%);
}

.multimedia-detail-bg {
    background: linear-gradient(180deg, #f3e5f5 0%, #ffffff 100%);
}

.multimedia-detail-bg::before {
    background: radial-gradient(circle at 20% 30%, rgba(156, 39, 176, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(186, 104, 200, 0.05) 0%, transparent 50%);
}

.devices-detail-bg {
    background: linear-gradient(180deg, #e8f5e9 0%, #ffffff 100%);
}

.devices-detail-bg::before {
    background: radial-gradient(circle at 20% 30%, rgba(76, 175, 80, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(102, 187, 106, 0.05) 0%, transparent 50%);
}

.voice-detail-bg {
    background: linear-gradient(180deg, #e1f5fe 0%, #ffffff 100%);
}

.voice-detail-bg::before {
    background: radial-gradient(circle at 20% 30%, rgba(3, 169, 244, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(41, 182, 246, 0.05) 0%, transparent 50%);
}

.automation-detail-bg {
    background: linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%);
}

.automation-detail-bg::before {
    background: radial-gradient(circle at 20% 30%, rgba(0, 61, 130, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(11, 116, 255, 0.05) 0%, transparent 50%);
}

/* Компактная секция сценариев */
#automation-detail.functionality-detail-section {
    padding: 80px 0;
}

#automation-detail .functionality-detail-header {
    margin-bottom: 40px;
}

.functionality-detail-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.functionality-detail-icon {
    font-size: 80px;
    margin-bottom: 24px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

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

.functionality-detail-header .section-title {
    margin-bottom: 16px;
}

.functionality-detail-header .section-intro {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-dark);
    opacity: 0.8;
}

.functionality-detail-content {
    position: relative;
    z-index: 2;
    display: block !important;
    opacity: 1 !important;
    max-height: none !important;
}

.functionality-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.functionality-feature-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.functionality-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.functionality-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 61, 130, 0.1);
}

.functionality-feature-card:hover::before {
    transform: scaleX(1);
}

.functionality-feature-card .feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
    transition: transform 0.3s ease;
}

.functionality-feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.functionality-feature-card .feature-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.3;
}

.functionality-feature-card .feature-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    opacity: 0.7;
}

/* Automation Scenarios */
.automation-scenarios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.automation-scenario-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.automation-scenario-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 61, 130, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.automation-scenario-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 61, 130, 0.15);
}

.automation-scenario-card:hover::before {
    opacity: 1;
}

.scenario-icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
    transition: transform 0.3s ease;
}

.automation-scenario-card:hover .scenario-icon {
    transform: scale(1.1) rotate(3deg);
}

.scenario-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.3;
}

.scenario-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    opacity: 0.75;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .functionality-features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }
    
    .automation-scenarios {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 18px;
    }
    
    .automation-scenario-card {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .functionality-detail-section {
        padding: 80px 0;
    }
    
    .functionality-detail-header {
        margin-bottom: 60px;
    }
    
    .functionality-detail-icon {
        font-size: 64px;
    }
    
    .functionality-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .automation-scenarios {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .functionality-feature-card,
    .automation-scenario-card {
        padding: 18px;
    }
    
    .functionality-feature-card .feature-icon {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .functionality-feature-card .feature-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .functionality-feature-card .feature-text {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .automation-scenario-card .scenario-icon {
        font-size: 32px;
        margin-bottom: 10px;
    }
    
    .automation-scenario-card .scenario-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .automation-scenario-card .scenario-description {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .scenario-icon {
        font-size: 36px;
        margin-bottom: 10px;
    }
    
    .scenario-title {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .scenario-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .functionality-detail-section {
        padding: 60px 0;
    }
    
    .functionality-detail-icon {
        font-size: 56px;
    }
    
    .functionality-feature-card .feature-icon {
        font-size: 40px;
    }
    
    .functionality-feature-card .feature-title {
        font-size: 20px;
    }
    
    .scenario-title {
        font-size: 20px;
    }
    
    .scenario-description {
        font-size: 15px;
    }
}

/* ============================================
   WIRED VS WIRELESS COMPARISON SECTION
   ============================================ */

.wired-wireless-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
    position: relative;
    overflow: hidden;
}

.wired-wireless-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 183, 3, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(65, 189, 245, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.comparison-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.comparison-header .section-title {
    margin-bottom: 20px;
}

.comparison-header .section-intro {
    max-width: 900px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-dark);
    opacity: 0.8;
}

.comparison-visual {
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.comparison-diagram {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.diagram-wired,
.diagram-wireless {
    text-align: center;
}

.diagram-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.diagram-visualization {
    background: #fafafa;
    border-radius: 20px;
    padding: 30px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.diagram-visualization svg {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 500px;
}

.diagram-wireless .diagram-visualization {
    min-height: 500px;
}

.diagram-wireless .diagram-visualization svg {
    max-height: 600px;
}

.diagram-vs {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vs-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffaa00 0%, #ff6b00 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(255, 183, 3, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(255, 183, 3, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 15px 40px rgba(255, 183, 3, 0.6);
    }
}

.comparison-table {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: background 0.2s ease;
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row:hover:not(.comparison-header-row) {
    background: rgba(0, 0, 0, 0.015);
}

.comparison-header-row {
    background: #f8f8f8;
    color: #1d1d1f;
    font-weight: 600;
    font-size: 14px;
    padding: 18px 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: -0.01em;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.comparison-header-row:hover {
    background: #f8f8f8 !important;
}

.comparison-header-row .comparison-criteria,
.comparison-header-row .comparison-wired,
.comparison-header-row .comparison-wireless {
    color: #1d1d1f;
    font-weight: 600;
}

.comparison-criteria {
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 14px;
    color: #1d1d1f;
    border-right: 1px solid rgba(0, 0, 0, 0.04);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: -0.01em;
    background: transparent;
}

.criteria-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.criteria-text {
    flex: 1;
}

.comparison-wired,
.comparison-wireless {
    padding: 18px 24px;
    border-right: 1px solid rgba(0, 0, 0, 0.04);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #424242;
    letter-spacing: -0.01em;
    background: transparent;
}

.comparison-wireless {
    border-right: none;
}

.comparison-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.comparison-badge.good {
    background: #e8f5e9;
    color: #2e7d32;
}

.comparison-badge.bad {
    background: #ffebee;
    color: #c62828;
}

.comparison-badge.neutral {
    background: #fff3e0;
    color: #e65100;
}

.comparison-wired p,
.comparison-wireless p {
    font-size: 13px;
    line-height: 1.5;
    color: #424242;
    margin: 0;
    letter-spacing: -0.01em;
}

.wireless-advantages {
    position: relative;
    z-index: 2;
}

.advantages-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text-dark);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.advantage-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffaa00, #003d82);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 61, 130, 0.1);
}

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

.advantage-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 48px;
    font-weight: 700;
    color: rgba(0, 61, 130, 0.1);
    line-height: 1;
}

.advantage-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
    transition: transform 0.3s ease;
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.15) rotate(5deg);
}

.advantage-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.3;
}

.advantage-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
    opacity: 0.75;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .comparison-diagram {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .diagram-vs {
        order: 2;
    }
    
    .diagram-wireless {
        order: 3;
    }
    
    .comparison-row {
        grid-template-columns: 1fr;
    }
    
    .comparison-criteria,
    .comparison-wired,
    .comparison-wireless {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        padding: 16px 20px;
    }
    
    .comparison-header-row {
        padding: 14px 20px;
    }
    
    .comparison-wireless {
        border-bottom: none;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .wired-wireless-section {
        padding: 80px 0;
    }
    
    .comparison-header {
        margin-bottom: 60px;
    }
    
    .comparison-diagram {
        padding: 20px;
    }
    
    .diagram-title {
        font-size: 20px;
    }
    
    .vs-badge {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
    
    .comparison-criteria,
    .comparison-wired,
    .comparison-wireless {
        padding: 24px;
    }
    
    .advantages-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .advantage-card {
        padding: 32px;
    }
    
    .advantage-icon {
        font-size: 48px;
    }
}

@media (max-width: 480px) {
    .comparison-header .section-intro {
        font-size: 16px;
    }
    
    .diagram-visualization {
        padding: 20px;
        min-height: 250px;
    }
    
    .comparison-criteria {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 14px 16px;
    }
    
    .comparison-wired,
    .comparison-wireless {
        padding: 14px 16px;
    }
    
    .comparison-header-row {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .criteria-icon {
        font-size: 20px;
    }
    
    .advantage-number {
        font-size: 36px;
    }
    
    .advantage-title {
        font-size: 20px;
    }
}

/* Mobile: compact header on scroll (burger -> QC -> phone icon) */
@media (max-width: 768px) {
    /* Make the scrolled header a compact vertical widget */
    .site-header.scrolled {
        position: fixed !important;
        top: 10px !important;
        /* Slightly more to the left; respect iOS safe-area */
        left: calc(env(safe-area-inset-left, 0px) + 8px) !important;
        right: auto !important;
        width: 56px !important;
        max-width: 56px !important;
        min-width: 0 !important;
        transform: none !important;
        transform-origin: top left !important;
        border-radius: 14px !important;
        height: 96px !important;
    }

    .site-header.scrolled .container {
        padding: 6px 5px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 14px !important;
        height: 96px !important;
    }

    .site-header.scrolled .header-inner {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: space-evenly !important; /* equal spacing burger/QC/phone */
        gap: 0 !important;
        height: 100% !important;
        position: relative !important;
    }

    .site-header.scrolled .menu-toggle {
        margin-right: 0 !important;
        width: 18px !important;
        height: 14px !important;
    }
    
    /* Иконка меню черная в компактном хедере - уменьшенная */
    .site-header.scrolled .menu-toggle .menu-toggle-line {
        background: #000000 !important;
        height: 1.5px !important;
    }
    
    /* Keep burger "X" centered for the smaller compact button */
    .site-header.scrolled .menu-toggle.active .menu-toggle-line:nth-child(1) {
        transform: translateY(6px) rotate(45deg) !important;
        background: #000000 !important;
    }
    
    .site-header.scrolled .menu-toggle.active .menu-toggle-line:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg) !important;
        background: #000000 !important;
    }

    .site-header.scrolled .header-logo {
        position: static !important;
        left: auto !important;
        transform: none !important;
    }

    /* Show logo text in graphite color in scrolled state */
    .site-header.scrolled .logo-text-header {
        color: #5a5a5a !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        letter-spacing: 0.02em !important;
        line-height: 1 !important;
        visibility: visible !important;
    }

    /* Add QC below menu icon */
    .site-header.scrolled .menu-toggle::after {
        content: "QC";
        display: block;
        font-family: var(--font-brand);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #000000;
        margin-top: 4px;
        text-align: center;
    }

    .site-header.scrolled .header-right {
        margin-left: 0 !important;
        gap: 0 !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .site-header.scrolled .header-phone {
        margin-left: 0 !important;
    }

    /* Красивая иконка телефона в компактном хедере - уменьшенный размер */
    .site-header.scrolled .header-phone .phone-link {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        padding: 0 !important;
        border-radius: 7px !important;
        border: none !important;
        opacity: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(0, 0, 0, 0.05) !important;
        transition: all 0.3s ease !important;
    }
    
    .site-header.scrolled .header-phone .phone-link:hover {
        background: rgba(0, 0, 0, 0.1) !important;
        transform: scale(1.05) !important;
    }
    
    .site-header.scrolled .header-phone .phone-icon {
        display: inline-block !important;
        width: 14px !important;
        height: 14px !important;
        min-width: 14px !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000000'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        opacity: 0.85 !important;
    }
    
    .site-header.scrolled .header-phone .phone-link::before {
        display: none !important;
    }
    
    .site-header.scrolled .header-phone .phone-number {
        display: none !important;
    }

    /* Liquid glass look for compact header while scrolling (not when menu is open) */
    .site-header.scrolled:not(.menu-open) {
        background: transparent !important;
    }

    .site-header.scrolled:not(.menu-open) .container {
        /* Extra прозрачное "liquid glass", чтобы фон был хорошо виден */
        background: rgba(255, 255, 255, 0.03) !important;
        backdrop-filter: blur(14px) saturate(160%) !important;
        -webkit-backdrop-filter: blur(14px) saturate(160%) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-shadow:
            0 6px 18px rgba(0, 0, 0, 0.04),
            inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
    }

    .site-header.scrolled:not(.menu-open) .header-phone .phone-link {
        background: rgba(255, 255, 255, 0.02) !important;
        border-color: rgba(255, 255, 255, 0.06) !important;
    }

    /* When menu is opened from compact header, expand header back to normal mobile width */
    .site-header.scrolled.menu-open {
        left: 5% !important;
        right: 5% !important;
        width: 90% !important;
        max-width: 90% !important;
        height: auto !important;
        border-radius: 18px !important;
        transform: none !important;
    }

    .site-header.scrolled.menu-open .container {
        height: auto !important;
        padding: 7px 14px !important;
        border-radius: 18px !important;
    }

    .site-header.scrolled.menu-open .header-inner {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 12px !important;
        height: auto !important;
    }

    /* Restore normal logo text instead of QC in expanded state - увеличенный размер */
    .site-header.scrolled.menu-open .logo-text-header {
        font-size: 18px !important;
        font-weight: 600 !important;
        letter-spacing: 0.05em !important;
        line-height: 1.1 !important;
    }

    .site-header.scrolled.menu-open .logo-text-header::after {
        content: "" !important;
        display: none !important;
    }

    /* Put logo back to centered header position like default mobile header */
    .site-header.scrolled.menu-open .header-logo {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .site-header.scrolled.menu-open .header-right {
        margin-left: auto !important;
    }

    /* Mobile menu should open fully (full-screen) */
    .site-header {
        z-index: 1100 !important; /* keep burger accessible to close menu */
    }

    .dropdown-menu.active {
        position: fixed !important;
        top: 76px !important;
        /* Mobile menu: almost full width with small margins */
        left: 16px !important;
        right: 16px !important;
        bottom: auto !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        max-height: calc(100vh - 96px) !important;
        border-radius: 18px !important;
        padding: 16px 0 !important;
        overflow: auto !important;
        box-sizing: border-box !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
        z-index: 1090 !important;
        background: linear-gradient(to right, rgba(0, 61, 130, 0.95) 0%, rgba(26, 26, 26, 0.95) 50%, rgba(0, 0, 0, 0.95) 100%) !important;
        backdrop-filter: blur(20px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        box-shadow: 
            0 10px 32px rgba(0, 0, 0, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    /* Force same wide menu even when header is compact (scrolled) */
    .site-header.scrolled .dropdown-menu.active {
        /* Explicit width so it never gets constrained by the compact header box */
        left: 12px !important;
        right: 12px !important; /* almost edge-to-edge on scroll */
        width: auto !important;
        max-width: none !important;
        /* Light colors for scrolled state */
        background: linear-gradient(to right, rgba(245, 245, 247, 0.95) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(245, 245, 247, 0.95) 100%) !important;
        backdrop-filter: blur(20px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow:
            0 12px 40px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
        /* Ensure visibility when header is menu-open */
        z-index: 1100 !important;
        position: fixed !important;
        top: 80px !important;
    }

    /* Ensure dropdown stays visible even when header tap-reveal is active */
    .site-header.scrolled.menu-open .dropdown-menu.active {
        z-index: 1100 !important;
        position: fixed !important;
        top: 120px !important; /* Account for expanded header height */
    }

    .dropdown-menu.active .dropdown-nav {
        grid-template-columns: 1fr !important;
        column-gap: 0 !important;
        padding: 10px 22px 16px !important;
    }
}

/* REFERRAL PAGE STYLES */
.referral-hero-section {
    padding: 140px 0 100px;
    background: linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 183, 3, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 152, 0, 0.08) 0%, transparent 50%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.referral-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.referral-hero-title {
    font-family: var(--font-brand);
    font-size: 56px;
    font-weight: 400;
    line-height: 1.1;
    color: #000000;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.referral-hero-subtitle {
    font-size: 20px;
    color: #86868b;
    line-height: 1.5;
    font-weight: 400;
    max-width: 500px;
    margin: 0 auto;
}

.referral-how-section,
.referral-rewards-section,
.referral-conditions-section {
    padding: 100px 0;
    background: #ffffff;
}

.referral-cta-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%);
}

.referral-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.referral-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 32px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.referral-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 183, 3, 0.3);
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 183, 3, 0.9) 0%, rgba(255, 152, 0, 0.9) 100%);
    border-radius: 50%;
    font-size: 28px;
    font-weight: 600;
    color: #000000;
    box-shadow: 0 4px 16px rgba(255, 183, 3, 0.3);
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 22px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 12px;
    line-height: 1.3;
}

.step-description {
    font-size: 17px;
    color: #86868b;
    line-height: 1.5;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.reward-card {
    padding: 40px 32px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.reward-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(255, 183, 3, 0.2);
    border-color: rgba(255, 183, 3, 0.3);
}

.reward-icon {
    font-size: 64px;
    margin-bottom: 24px;
    display: block;
}

.reward-title {
    font-size: 24px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 16px;
}

.reward-description {
    font-size: 17px;
    color: #86868b;
    line-height: 1.5;
}

.conditions-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.condition-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 28px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.condition-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 183, 3, 0.3);
}

.condition-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 183, 3, 0.9) 0%, rgba(255, 152, 0, 0.9) 100%);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

.condition-text {
    flex: 1;
    font-size: 17px;
    line-height: 1.6;
    color: #000000;
}

.condition-text strong {
    color: #000000;
    font-weight: 600;
}

.referral-cta-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.referral-cta-title {
    font-family: var(--font-brand);
    font-size: 56px;
    font-weight: 400;
    line-height: 1.1;
    color: #000000;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.referral-cta-subtitle {
    font-size: 21px;
    color: #86868b;
    margin-bottom: 60px;
    line-height: 1.5;
}

.referral-form {
    text-align: left;
    background: rgba(255, 255, 255, 0.9);
    padding: 60px;
    border-radius: 32px;
    border: 2px solid rgba(255, 183, 3, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.referral-form input,
.referral-form textarea {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    font-size: 18px;
    font-family: inherit;
    background: #ffffff;
    color: #000000;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.referral-form input:focus,
.referral-form textarea:focus {
    outline: none;
    border-color: rgba(255, 183, 3, 0.6);
    box-shadow: 0 0 0 6px rgba(255, 183, 3, 0.15);
}

.referral-form textarea {
    min-height: 160px;
    resize: vertical;
    margin-bottom: 24px;
}

.form-agreement {
    font-size: 13px;
    color: #86868b;
    line-height: 1.5;
    margin-bottom: 24px;
}

.btn-referral-submit {
    width: 100%;
    justify-content: center;
    padding: 20px 40px;
    font-size: 20px;
    font-weight: 600;
    min-height: 64px;
}

@media (max-width: 768px) {
    .referral-hero-section {
        padding: 120px 0 60px;
    }
    
    .referral-hero-title {
        font-size: 40px;
    }
    
    .referral-hero-subtitle {
        font-size: 18px;
    }
    
    .referral-how-section,
    .referral-rewards-section,
    .referral-conditions-section,
    .referral-cta-section {
        padding: 60px 0;
    }
    
    .referral-steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .referral-step {
        padding: 24px;
        gap: 16px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .step-title {
        font-size: 20px;
    }
    
    .step-description {
        font-size: 16px;
    }
    
    .rewards-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .reward-card {
        padding: 32px 24px;
    }
    
    .reward-icon {
        font-size: 48px;
        margin-bottom: 20px;
    }
    
    .reward-title {
        font-size: 20px;
    }
    
    .reward-description {
        font-size: 16px;
    }
    
    .condition-item {
        padding: 20px;
        gap: 16px;
    }
    
    .condition-text {
        font-size: 16px;
    }
    
    .referral-cta-title {
        font-size: 40px;
    }
    
    .referral-cta-subtitle {
        font-size: 18px;
        margin-bottom: 40px;
    }
    
    .referral-form {
        padding: 40px 28px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .referral-form input,
    .referral-form textarea {
        padding: 16px 20px;
        font-size: 17px;
    }
    
    .referral-form textarea {
        min-height: 140px;
    }
    
    .btn-referral-submit {
        padding: 18px 32px;
        font-size: 18px;
        min-height: 60px;
    }
}

/* APPLE-STYLE ANIMATIONS SECTION */

.apple-style-section {
    position: relative;
    background: #f5f5f7;
    overflow: hidden;
    opacity: 1;
    transform: scale(1);
    /* Убрали начальное скрытие секции - она всегда видима */
}

/* Apple Hero */
.apple-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #000000 0%, #1a1a1a 50%, #2a2a2a 100%);
    overflow: hidden;
}

.apple-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
}

.apple-style-section.visible .apple-hero-background {
    animation: apple-bg-float 30s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes apple-bg-float {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1) translateY(0);
    }
    50% { 
        opacity: 0.88; 
        transform: scale(1.05) translateY(-8px);
    }
}

.apple-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1200px;
    padding: 0 40px;
}

.apple-hero-title {
    font-size: clamp(62px, 10.3vw, 154px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #ffffff;
    margin-bottom: 32px;
}

.apple-title-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) scale(0.96);
}

.apple-style-section.visible .apple-title-word {
    animation: apple-title-reveal 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.apple-style-section.visible .apple-title-word[data-delay="0"] { animation-delay: 0.2s; }
.apple-style-section.visible .apple-title-word[data-delay="100"] { animation-delay: 0.5s; }
.apple-style-section.visible .apple-title-word[data-delay="200"] { animation-delay: 0.8s; }

@keyframes apple-title-reveal {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.96);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-3px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.apple-hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.02em;
}

/* Apple Cards Section */
.apple-cards-section {
    padding: 180px 0;
    background: #ffffff;
}

.apple-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.apple-card {
    position: relative;
    height: 400px;
    perspective: 1000px;
    cursor: pointer;
}

.apple-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

.apple-card:hover .apple-card-inner {
    transform: rotateY(15deg) rotateX(5deg) translateZ(20px);
}

.apple-card-front,
.apple-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

.apple-card-front {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f7 100%);
}

.apple-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
}

.apple-card-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    border-radius: 24px;
}

.apple-card-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.apple-style-section.visible .apple-card-icon {
    animation: apple-icon-float 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.apple-style-section.visible .apple-card[data-card="1"] .apple-card-icon {
    animation-delay: 0s;
}

.apple-style-section.visible .apple-card[data-card="2"] .apple-card-icon {
    animation-delay: 0.4s;
}

.apple-style-section.visible .apple-card[data-card="3"] .apple-card-icon {
    animation-delay: 0.8s;
}

.apple-style-section.visible .apple-card[data-card="4"] .apple-card-icon {
    animation-delay: 1.2s;
}

@keyframes apple-icon-float {
    0%, 100% { 
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 1;
    }
    50% { 
        transform: translateY(-8px) scale(1.04) rotate(1deg);
        opacity: 0.96;
    }
}

.apple-card-title {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.apple-card-back .apple-card-title {
    color: #ffffff;
}

.apple-card-text {
    font-size: 17px;
    line-height: 1.47059;
    color: #86868b;
    text-align: center;
}

.apple-card-back .apple-card-text {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design for Apple Section */
@media (max-width: 968px) {
    .apple-cards-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .apple-style-section {
        height: 100vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    .apple-hero {
        min-height: 100vh;
        height: 100vh;
        padding: 60px 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .apple-cards-section {
        display: none; /* Скрываем карточки на мобильной, показываем только hero */
    }
    
    .apple-hero-title {
        font-size: clamp(32px, 8vw, 56px);
        margin-bottom: 20px;
    }
    
    .apple-hero-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .apple-style-section {
        height: 100vh;
    }

    .apple-hero {
        min-height: 100vh;
        height: 100vh;
        padding: 40px 20px;
    }

    .apple-hero-title {
        font-size: clamp(28px, 7vw, 48px);
        margin-bottom: 16px;
    }
}

/* FLOATING DISCOUNT BUTTON */
.floating-discount-button {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 1000;
}

.btn-discount-float {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ffb703 0%, #ffd000 50%, #ffb703 100%);
    color: #000000;
    text-decoration: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow:
        0 6px 24px rgba(255, 183, 3, 0.5),
        0 2px 8px rgba(0, 0, 0, 0.2);
    border: none;
    animation: discountPulse 2s ease-in-out infinite;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-discount-float:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 10px 32px rgba(255, 183, 3, 0.65),
        0 4px 12px rgba(0, 0, 0, 0.25);
    color: #000000;
    text-decoration: none;
}

@keyframes discountPulse {
    0%, 100% {
        box-shadow:
            0 6px 24px rgba(255, 183, 3, 0.5),
            0 2px 8px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow:
            0 8px 36px rgba(255, 183, 3, 0.8),
            0 0 20px rgba(255, 183, 3, 0.4),
            0 2px 8px rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 768px) {
    .floating-discount-button {
        bottom: 90px;
        right: 15px;
    }

    .btn-discount-float {
        padding: 10px 16px;
        font-size: 12px;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .floating-discount-button {
        bottom: 85px;
        right: 10px;
    }

    .btn-discount-float {
        padding: 9px 14px;
        font-size: 11px;
    }
}

/* ── Floating Language Switcher ── */
.lang-float {
    display: none !important;
    position: fixed;
    top: 32px;
    right: 32px;
    z-index: 10001;
    flex-direction: column;
    align-items: flex-end;
}

.lang-float-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px 10px 14px;
    background: rgba(10, 10, 20, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    cursor: pointer;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-float-btn:hover {
    background: rgba(10, 10, 20, 0.95);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.lang-float-icon {
    font-size: 17px;
    line-height: 1;
}

.lang-float-code {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.lang-float-arrow {
    width: 10px;
    height: 6px;
    opacity: 0.7;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.lang-float.lang-float-open .lang-float-arrow {
    transform: rotate(180deg);
}

.lang-float-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(15, 15, 25, 0.88);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transform-origin: top right;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
}

.lang-float.lang-float-open .lang-float-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-float-option {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    transition: all 0.18s ease;
    white-space: nowrap;
    width: 100%;
    text-align: left;
}

.lang-float-option:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.lang-float-option.lang-float-active {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.lang-float-option .lang-float-flag {
    font-size: 15px;
}

.lang-float-option .lang-float-name {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

@media (max-width: 768px) {
    .lang-float {
        top: 20px;
        right: 20px;
    }
}

/* Works catalog items */
.work-article {
    font-size: 11px;
    font-weight: 600;
    color: #0b74ff;
    background: rgba(11, 116, 255, 0.08);
    padding: 2px 7px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.work-unit-badge {
    font-size: 12px;
    font-weight: 500;
    color: #86868b;
    background: var(--bg-gray);
    border: 1px solid #e5e5e7;
    padding: 4px 10px;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.function-item-info {
    cursor: default;
}

.function-item-info .function-header {
    flex-wrap: wrap;
    gap: 8px;
}

.function-item-info .function-name {
    font-size: 14px;
}

/* Work select checkboxes */
.work-select-label {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
    margin-right: 10px;
}
.work-select-label input[type="checkbox"] {
    display: none;
}
.work-select-box {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d1d6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, background 0.15s;
    background: #fff;
    flex-shrink: 0;
}
.work-select-label:hover .work-select-box {
    border-color: #0b74ff;
}
.work-select-label input:checked + .work-select-box {
    background: #0b74ff;
    border-color: #0b74ff;
}
.work-select-label input:checked + .work-select-box::after {
    content: '✓';
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}
.function-item.work-selected {
    background: rgba(11, 116, 255, 0.05);
    border-color: rgba(11, 116, 255, 0.25) !important;
}

/* Work controls block (qty + checkbox) */
.work-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.work-qty-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}
.work-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #d1d1d6;
    border-radius: 6px;
    background: #fff;
    color: #1d1d1f;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, background 0.15s;
    padding: 0;
    flex-shrink: 0;
}
.work-qty-btn:hover {
    border-color: #0b74ff;
    color: #0b74ff;
}
.work-qty-input {
    width: 44px;
    height: 28px;
    border: 1px solid #d1d1d6;
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #1d1d1f;
    background: #fff;
    padding: 0;
    -moz-appearance: textfield;
}
.work-qty-input::-webkit-outer-spin-button,
.work-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}
.work-select-label {
    margin-right: 0;
}
.function-item-info {
    cursor: default;
}
