/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Учитываем высоту фиксированного хедера */
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    overflow-x: hidden;
    background: #000000;
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 85, 247, 0.5) rgba(0, 0, 0, 0.3);
}

.container {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Анимированный фон */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/img/background.png') center center/cover no-repeat;
    opacity: 0;
    animation: backgroundFadeIn 3s ease-in-out forwards;
    z-index: 0;
}

@keyframes backgroundFadeIn {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }
    50% {
        opacity: 1.3;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Хедер */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    animation: slideDown 1s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.1);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

/* Скрываем иконки в десктопном меню */
.nav-link i {
    display: none;
}

.nav-link:hover {
    color: #a855f7;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #a855f7;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #a855f7;
}

.nav-link.active::after {
    width: 100%;
}

.phone-section {
    display: flex;
    align-items: center;
}

.phone-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.phone-link:hover {
    color: #a855f7;
    transform: scale(1.05);
}

/* Главная секция */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 0 0 0;
    position: relative;
    animation: fadeInUp 1s ease-out 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Улучшенная анимация появления элементов */
.animate-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-element.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Специальная анимация для карточек */
.feature-card.animate-element,
.benefit-card.animate-element,
.application-item.animate-element {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-card.animate-element.animate-in,
.benefit-card.animate-element.animate-in,
.application-item.animate-element.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    flex: 1;
    justify-items: end;
    justify-content: end;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffffff, #a855f7);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    color: #cbd5e0;
    margin-bottom: 30px;
    line-height: 1.8;
}

.download-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.download-btn i {
    font-size: 1.2rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-logo-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-logo {
    width: 160px;
    height: 160px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
    z-index: 2;
    position: relative;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.app-background {
    position: absolute;
    top: 10;
    left: 10;
    width: 90%;
    height: 90%;
    background: linear-gradient(135deg, #667eea07 0%, #764ba207 100%);
    border-radius: 20%;
    animation: pulse 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

/* Блок "О нас" */
.about-section {
    padding: 60px 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    margin-top: 20px;
    width: 100%;
    border-radius: 20px;

}

.about-content {
    max-width: 100%;
    margin: 0 auto;
}

.about-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.about-icon {
    font-size: 2.5rem;
    color: #a855f7;
    display: flex;
    align-items: center;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #ffffff, #a855f7);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-text {
    text-align: center;
}

.about-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #e2e8f0;
    margin-bottom: 40px;
}

.clients-section {
    margin: 40px 0;
}

.clients-title {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 30px;
    font-weight: 600;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.client-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.client-item:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-3px);
}

.client-item i {
    font-size: 1.5rem;
    color: #a855f7;
}

.client-item span {
    color: #e2e8f0;
    font-weight: 500;
}

.about-goal {
    font-size: 2.2rem;
    color: #ffffff;
    line-height: 1.6;
}

.about-goal strong {
    color: #a855f7;
}

/* Секция возможностей - новая сетка */
.features-section {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #ffffff, #a855f7);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease-out;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(102, 126, 234, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.3);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 2.5rem;
    color: #a855f7;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon i {
    transform: scale(1.2);
    color: #ffffff;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: #cbd5e0;
    line-height: 1.6;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

/* Блок сравнения */
.comparison-section {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    opacity: 1 !important;
}

.comparison-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
    opacity: 1 !important;
}

.comparison-old, .comparison-new {
    padding: 40px;
    border-radius: 20px;
    position: relative;
    opacity: 1 !important;
}

.comparison-old {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
    opacity: 1 !important;
}

.comparison-new {
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid rgba(34, 197, 94, 0.3);
    opacity: 1 !important;
}

.comparison-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.comparison-icon i {
    font-size: 3rem;
    padding: 20px;
    border-radius: 50%;
}

.comparison-icon.old i {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.2);
}

.comparison-icon.new i {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.2);
}

.comparison-old h3, .comparison-new h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    color: #ffffff;
}

.problems-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.problem-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 10px;
}

.problem-item i {
    color: #ef4444;
    font-size: 1.2rem;
}

.problem-item span {
    color: #e2e8f0;
    flex: 1;
}

.advantages-grid {
    display: grid;
    gap: 30px;
}

.advantage-block {
    padding: 25px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.advantage-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.advantage-icon i {
    font-size: 2rem;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.2);
    padding: 15px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    text-align: center;
}

.advantage-block h4 {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 15px;
    text-align: center;
}

.advantage-block ul {
    list-style: none;
    padding: 0;
}

.advantage-block li {
    color: #e2e8f0;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.advantage-block li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
}

.comparison-conclusion {
    margin-top: 60px;
    text-align: center;
    padding: 40px;
    background: rgba(168, 85, 247, 0.1);
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
}

.comparison-conclusion h3 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.conclusion-quote {
    font-size: 1.5rem;
    color: #a855f7;
    font-weight: 600;
    font-style: italic;
}

/* Блок решений для УК */
.solutions-section {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    opacity: 1 !important;
}

.solutions-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 1 !important;
}

.solutions-icon {
    font-size: 3rem;
    color: #a855f7;
    margin-bottom: 20px;
    opacity: 1 !important;
}

.solutions-intro {
    margin-bottom: 60px;
    text-align: center;
    opacity: 1 !important;
}

.solutions-description {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #e2e8f0;
    max-width: 1000px;
    margin: 0 auto;
    opacity: 1 !important;
}

.benefits-title, .applications-title {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 600;
    opacity: 1 !important;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
    opacity: 1 !important;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s ease;
    opacity: 1 !important;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 15px 30px rgba(168, 85, 247, 0.2);
}

.benefit-icon {
    margin-bottom: 20px;
}

.benefit-icon i {
    font-size: 2.5rem;
    color: #a855f7;
}

.benefit-card h4 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
}

.benefit-card p {
    color: #cbd5e0;
    line-height: 1.6;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.application-item {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.application-item:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateX(10px);
}

.application-icon {
    flex-shrink: 0;
}

.application-icon i {
    font-size: 2rem;
    color: #a855f7;
    background: rgba(168, 85, 247, 0.2);
    padding: 15px;
    border-radius: 12px;
}

.application-content h4 {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 600;
}

.application-content p {
    color: #cbd5e0;
    line-height: 1.6;
}

.solutions-cta {
    text-align: center;
    padding: 60px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(102, 126, 234, 0.2));
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 25px;
}

.cta-title {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-question {
    font-size: 1.4rem;
    color: #e2e8f0;
    margin-bottom: 40px;
    font-style: italic;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 35px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    min-width: 180px;
    justify-content: center;
}

.cta-btn.primary {
    background: linear-gradient(135deg, #a855f7, #667eea);
    color: white;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.6);
}

.cta-btn.secondary {
    background: transparent;
    color: #a855f7;
    border: 2px solid #a855f7;
}

.cta-btn.secondary:hover {
    background: #a855f7;
    color: white;
    transform: translateY(-3px);
}

/* Футер */
.footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 60px 0 20px;
    animation: fadeInUp 1.5s ease-out 1.5s both;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #a855f7;
}

.footer-column p {
    color: #d1d5db;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-column a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #a855f7;
}

.footer-docs {
    margin-bottom: 40px;
}

.footer-docs h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #a855f7;
    text-align: center;
}

.docs-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.docs-list li {
    margin-bottom: 10px;
}

.docs-list a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.4;
}

.docs-list a:hover {
    color: #a855f7;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #a855f7, transparent);
    margin: 30px 0;
}

.footer-copyright {
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Кастомный скроллбар для Webkit браузеров */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #a855f7, #667eea);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #9333ea, #5b21b6);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

/* Стили мобильного меню */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 10001;
}

.hamburger-line {
    display: block;
    height: 3px;
    width: 100%;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Мобильная навигация */
.mobile-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(168, 85, 247, 0.3);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.mobile-nav.nav-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 10001;
    pointer-events: auto;
}

.mobile-nav .nav-link i {
    display: block;
    font-size: 1.2rem;
    color: #a855f7;
    min-width: 20px;
    transition: all 0.3s ease;
}

.mobile-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.1), transparent);
    transition: left 0.5s ease;
}

.mobile-nav .nav-link:hover::before {
    left: 100%;
}

.mobile-nav .nav-link:hover {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    padding-left: 40px;
}

.mobile-nav .nav-link:hover i {
    color: #ffffff;
    transform: scale(1.1);
}

.mobile-nav .nav-link:last-child {
    border-bottom: none;
}

/* Блокировка скролла когда меню открыто */
.menu-open {
    overflow: hidden;
}

/* Затемнение фона при открытом меню */
.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
    pointer-events: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Адаптивный дизайн */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }

    .mobile-menu-toggle {
        display: flex;
    }
    .app-logo-container{
        display: none;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .phone-section {
        display: none;
    }

    /* Отключаем анимацию на мобилках для всех элементов кроме hero */
    .animate-element:not(.hero-content) {
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: none !important;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .download-buttons {
        justify-content: center;
    }

    .app-logo-container {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    .app-logo {
        width: 140px;
        height: 140px;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Адаптивность для блока "О нас" */
    .about-header {
        flex-direction: column;
        gap: 15px;
    }

    .about-title {
        font-size: 2rem;
        text-align: center;
    }

    .about-icon {
        font-size: 2rem;
    }

    .about-description {
        font-size: 1.1rem;
    }

    .clients-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .client-item {
        padding: 15px;
    }

    /* Адаптивность для сетки возможностей */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .feature-icon i {
        font-size: 2rem;
    }

    /* Адаптивность для блока сравнения */
    .comparison-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .comparison-old, .comparison-new {
        padding: 25px;
    }

    .comparison-old h3, .comparison-new h3 {
        font-size: 1.5rem;
    }

    .advantage-block {
        padding: 20px;
    }

    .advantage-block h4 {
        font-size: 1.2rem;
    }

    .comparison-conclusion h3 {
        font-size: 1.6rem;
    }

    .conclusion-quote {
        font-size: 1.2rem;
    }

    /* Адаптивность для блока решений УК */
    .solutions-description {
        font-size: 1.1rem;
    }

    .benefits-title, .applications-title {
        font-size: 1.6rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .applications-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .application-item {
        padding: 20px;
    }

    .solutions-cta {
        padding: 40px 20px;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .cta-question {
        font-size: 1.2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .docs-list {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 95%;
        padding: 0 10px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .download-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .phone-link {
        font-size: 0.9rem;
    }

    /* Мобильная адаптация новых блоков */
    .about-section {
        padding: 40px 0;
    }

    .about-header {
        flex-direction: column;
        gap: 10px;
    }

    .about-title {
        font-size: 1.8rem;
    }

    .about-icon {
        font-size: 1.8rem;
    }

    .about-description {
        font-size: 1rem;
    }

    .clients-title {
        font-size: 1.3rem;
    }

    .client-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .features-section {
        padding: 60px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .comparison-section {
        padding: 60px 0;
    }

    .comparison-old, .comparison-new {
        padding: 20px;
    }

    .comparison-icon i {
        font-size: 2.5rem;
        padding: 15px;
    }

    .solutions-section {
        padding: 60px 0;
    }

    .solutions-icon {
        font-size: 2.5rem;
    }

    .benefits-grid, .applications-grid {
        gap: 15px;
    }

    .benefit-card, .application-item {
        padding: 20px;
    }

    .application-item {
        flex-direction: column;
        text-align: center;
    }

    .solutions-cta {
        padding: 30px 15px;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-question {
        font-size: 1.1rem;
    }

    .cta-btn {
        padding: 15px 25px;
        font-size: 1rem;
        min-width: 160px;
    }

    /* Дополнительные стили для app-logo на маленьких экранах */
    .app-logo-container {
        width: 180px;
        height: 180px;
        margin: 0 auto;
    }

    .app-logo {
        width: 120px;
        height: 120px;
    }
}

/* Стили для страницы документации */
.docs-section {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.docs-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out;
}

.docs-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.docs-subtitle {
    font-size: 1.2rem;
    color: #d1d5db;
    max-width: 600px;
    margin: 0 auto;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.doc-card {
    background: rgba(168, 85, 247, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.doc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.1), transparent);
    transition: left 0.5s ease;
}

.doc-card:hover::before {
    left: 100%;
}

.doc-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.4);
}

.doc-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(168, 85, 247, 0.3);
}

.doc-icon i {
    font-size: 1.8rem;
    color: white;
}

.doc-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.doc-content p {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.doc-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a855f7;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 20px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.doc-link:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.3);
}

.doc-link i {
    font-size: 0.9rem;
}

/* Адаптивность для документации */
@media (max-width: 768px) {
    .docs-title {
        font-size: 2.5rem;
    }
    
    .docs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .doc-card {
        padding: 25px;
    }
    
    .doc-icon {
        width: 50px;
        height: 50px;
    }
    
    .doc-icon i {
        font-size: 1.5rem;
    }
} 