:root {
    --bg-color: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --card-bg: rgba(255, 255, 255, 0.7);
    --border: rgba(0, 0, 0, 0.08);
    --logo-size: 56px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.abstract-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #e0e7ff 0%, rgba(255, 255, 255, 0) 70%);
    top: -10%;
    right: -10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #dbeafe 0%, rgba(255, 255, 255, 0) 70%);
    bottom: 10%;
    left: -10%;
    animation-delay: -5s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #f3e8ff 0%, rgba(255, 255, 255, 0) 70%);
    top: 40%;
    right: 20%;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Стек технологий */
.tech-stack-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tech-stack-header h2 {
    margin-bottom: 20px;
}

.tech-stack-header p {
    max-width: 650px;
    margin: 0 auto;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.tech-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
}

.tech-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: background 0.3s ease, transform 0.3s ease;
}

.tech-card:hover .tech-icon {
    background: var(--accent);
    color: white;
    transform: scale(1.05);
}

.tech-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.tech-content {
    flex: 1;
    min-width: 0;
}

.tech-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.tech-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Навигация */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 12px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    z-index: 102;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.75;
}

.logo-img {
    width: var(--logo-size);
    height: var(--logo-size);
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
    transform: rotate(-8deg) scale(1.06);
}

.logo {
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Гамбургер меню */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 102;
    padding: 5px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Кнопка закрытия меню */
.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 105;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-menu:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.close-menu svg {
    width: 40px;
    height: 40px;
    stroke: var(--text-primary);
    stroke-width: 3;
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 101;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: var(--accent);
}

.mobile-menu .logo-link {
    position: absolute;
    top: 22px;
    left: 5%;
    z-index: 106;
}

/* Выпадающее меню навигации */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-toggle .arrow {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    z-index: 101;
    margin-top: 15px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
    background: rgba(37, 99, 235, 0.05);
    color: var(--accent);
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Общие стили секций */
section {
    padding: 120px 5%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h2 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 40px;
    letter-spacing: -1px;
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
}

/* Hero */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
}

.hero-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -1.5px;
    margin-bottom: 30px;
    color: var(--text-primary);
}

/* Карусель */
.swiper {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 60px;
}

.swiper-slide {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    height: 320px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s, border-color 0.3s;
}

.swiper-slide:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.slide-icon {
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.slide-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.slide-title {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.slide-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.swiper-pagination-bullet-active {
    background: var(--accent) !important;
}

/* Продукт */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-right-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
    gap: 15px;
    width: 100%;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.product-download {
    width: 100%;
    display: flex;
    justify-content: center;
}

.feature-list {
    list-style: none;
    margin-top: 30px;
}

.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.feature-list li::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
}

/* Форма */
.form-container {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 50px;
    backdrop-filter: blur(10px);
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

input,
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.5);
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.captcha-group {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.02);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.captcha-question {
    font-weight: 600;
    font-size: 1.1rem;
    user-select: none;
}

.captcha-input {
    width: 80px;
    text-align: center;
}

button[type="submit"] {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

button[type="submit"]:hover {
    background: var(--accent-hover);
}

button[type="submit"]:active {
    transform: scale(0.98);
}

.success-message {
    display: none;
    text-align: center;
    padding: 40px;
}

.success-message h3 {
    color: var(--accent);
    margin-bottom: 15px;
}

/* Выпадающее меню скачивания */
.download-dropdown-container {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.download-btn.dropdown-toggle {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    text-decoration: none;
}

.download-btn.dropdown-toggle:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.download-btn.dropdown-toggle:active {
    transform: translateY(0);
}

.download-btn .dropdown-arrow {
    transition: transform 0.3s ease;
    stroke: currentColor;
}

.download-dropdown-container.is-open .download-btn .dropdown-arrow {
    transform: rotate(180deg);
}

.download-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    list-style: none;
    margin: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.download-dropdown-container.is-open .download-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.download-menu li {
    margin: 0;
}

.download-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.download-link:hover {
    background: rgba(37, 99, 235, 0.05);
}

.download-link .os-icon {
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.download-link:hover .os-icon {
    color: var(--accent);
}

.platform-info {
    display: flex;
    flex-direction: column;
}

.platform-info strong {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.platform-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Реквизиты и Футер */
.requisites {
    min-height: auto;
    padding: 80px 5%;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.req-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.req-item h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.req-item p {
    font-size: 0.95rem;
    color: var(--text-primary);
    max-width: 100%;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.scroll-top-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-3px);
}

.scroll-top-btn svg {
    width: 20px;
    height: 20px;
}

/* Галерея продукта */
.product-gallery-swiper {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.product-gallery-swiper .swiper-slide {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    height: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: transparent;
}

.gallery-img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    animation: logoFloat 6s ease-in-out infinite;
}

.gallery-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
    max-width: 100%;
    max-height: 100%;
}

.product-gallery-swiper .custom-gallery-nav {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.product-gallery-swiper .custom-gallery-nav::after {
    font-size: 20px;
    font-weight: bold;
}

.product-gallery-swiper .custom-gallery-nav:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.1);
    border-color: var(--accent);
}

@media (max-width: 480px) {
    .product-gallery-swiper .custom-gallery-nav {
        display: none;
    }

    .product-gallery-swiper {
        max-width: 350px;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    :root {
        --logo-size: 42px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .logo-img {
        width: 32px;
        height: 32px;
    }

    .logo {
        font-size: 1.15rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-info {
        order: 1;
    }

    .product-right-column {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 0;
    }

    .product-gallery-swiper {
        max-width: 400px;
    }

    .download-btn.dropdown-toggle {
        width: auto;
        display: inline-flex;
    }

    .download-menu {
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        width: 90vw;
        max-width: 320px;
    }

    .download-dropdown-container.is-open .download-menu {
        transform: translateX(-50%) translateY(0);
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .form-container {
        padding: 30px 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .close-menu {
        top: 20px;
        right: 20px;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .tech-card {
        padding: 20px;
    }

    .tech-stack-header {
        margin-bottom: 40px;
    }

    #tech-stack {
        padding: 80px 5%;
        min-height: auto;
    }
}