/* --- Variables & Reset --- */
:root {
    --bg-dark: #07090F;
    --text-main: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.6);
    --cyan: #00E5FF;
    --cyan-glow: rgba(0, 229, 255, 0.5);
    --yellow: #DFFF00;
    --yellow-glow: rgba(223, 255, 0, 0.5);
    --glass-bg: rgba(20, 23, 33, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

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

/* --- Background Glows --- */
.glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    pointer-events: none;
}

.glow-cyan {
    top: -10%;
    left: 20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, rgba(0, 229, 255, 0) 70%);
}

.glow-yellow {
    bottom: 10%;
    right: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(223, 255, 0, 0.1) 0%, rgba(223, 255, 0, 0) 70%);
}

/* --- Utilities & Glassmorphism --- */
.accent-cyan {
    color: var(--cyan);
}

.accent-yellow {
    color: var(--yellow);
}

.w-100 {
    width: 100%;
}

.mt-2 {
    margin-top: 2rem;
}

.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Typography elements */
.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Buttons --- */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
}

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

.btn-outline:hover {
    background: rgba(0, 229, 255, 0.1);
    box-shadow: 0 0 15px var(--cyan-glow);
}

.btn-primary {
    background: linear-gradient(45deg, var(--cyan), #00b3cc);
    color: #000;
}

.btn-primary:hover {
    box-shadow: 0 0 20px var(--cyan-glow);
    transform: translateY(-2px);
}

.btn-3d {
    border-bottom: 4px solid #0099ab;
}

.btn-3d:active {
    transform: translateY(2px);
    border-bottom: 0px solid #0099ab;
    margin-top: 4px;
}

.btn-huge {
    font-size: 1.5rem;
    padding: 1.5rem 3rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pulse-glow {
    animation: pulse 2s infinite;
}

/* --- Intro Splash Screen --- */
.intro-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #07090F;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-in-out;
}

.intro-splash.fade-out {
    opacity: 0;
    pointer-events: none;
}

.intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.skip-btn {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 10000;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
    transform: translateY(-100%);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.dropdown-active, .top-contact-bar.dropdown-active {
    transform: translateY(0) !important;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 3px;
}

.main-nav a {
    color: var(--text-main);
    text-decoration: none;
    margin: 0 1.5rem;
    font-weight: 400;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--cyan);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.lang-flags {
    display: flex;
    gap: 1.5rem;
}

.flag-icon {
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.flag-icon:hover {
    transform: scale(1.3);
    filter: drop-shadow(0 0 8px var(--cyan));
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--text-main);
    transition: 0.3s;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
}

.hero-content {
    max-width: 600px;
    z-index: 10;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 80%;
}

/* 3D Scene / Zero Gravity Objects */
.hero-3d-scene {
    position: relative;
    width: 500px;
    height: 500px;
    perspective: 1000px;
}

.floating-obj {
    position: absolute;
    animation: float infinite cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.obj-breaker {
    top: 10%;
    right: 20%;
    width: 150px;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.3));
}

.obj-cables {
    bottom: 20%;
    left: 10%;
    width: 250px;
    transform: rotate3d(1, 1, 0, 30deg);
}

.obj-panel {
    top: 40%;
    right: -10%;
    width: 200px;
    height: 150px;
    border-radius: 15px;
    padding: 20px;
    transform: rotate(-10deg) rotateX(15deg);
    box-shadow: 0 0 30px var(--cyan-glow);
}

.panel-ui .panel-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 15px var(--cyan);
    margin-bottom: 20px;
}

.panel-line {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    margin-bottom: 15px;
}

.panel-line.short {
    width: 60%;
}


/* --- Pricing Section --- */
.pricing {
    padding: 6rem 10%;
}

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

.price-card {
    padding: 3rem 2rem;
    border-radius: 20px;
    position: relative;
    transition: transform 0.1s;
    /* smooth catchup for js tilt */
    transform-style: preserve-3d;
}

.price-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transform: translateZ(30px);
}

.price-card .price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--cyan);
    margin-bottom: 2rem;
    transform: translateZ(50px);
}

.price-card .period {
    font-size: 1rem;
    color: var(--text-muted);
}

.price-card .features {
    list-style: none;
    margin-bottom: 2.5rem;
    transform: translateZ(20px);
}

.price-card .features li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.price-card .features li::before {
    content: "⚡";
    position: absolute;
    left: 0;
    color: var(--yellow);
    font-size: 0.8rem;
    top: 3px;
}

.price-card.highlight {
    border: 1px solid rgba(0, 229, 255, 0.4);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.1);
}

.badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--cyan);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    transform: translateZ(40px);
}

/* --- Portfolio Section --- */
.portfolio {
    padding: 6rem 10%;
    position: relative;
}

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

.portfolio-item {
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(50px);
}

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

.img-placeholder {
    height: 250px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 229, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid var(--glass-border);
}

.item-info {
    padding: 1.5rem;
}

.item-info h4 {
    color: var(--yellow);
    font-size: 1.3rem;
}

.item-info p {
    color: var(--text-muted);
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}


/* --- CTA Section --- */
.cta-section {
    padding: 6rem 10%;
    display: flex;
    justify-content: center;
}

.cta-container {
    padding: 5rem;
    border-radius: 30px;
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.cta-container h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-container p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* --- Footer --- */
.footer {
    padding: 3rem 10%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 3rem;
}

.footer p {
    color: var(--text-muted);
    margin-top: 1rem;
}

/* --- Animations --- */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(0, 229, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0);
    }
}

/* --- Responsive Layout (Mobile First adjustments, mainly downscaling) --- */
@media (max-width: 968px) {
    .header {
        padding: 0 20px;
    }

    .main-nav {
        display: none;
        /* simple mobile version */
    }

    .hamburger {
        display: flex;
    }

    .header-actions .btn {
        display: none;
    }

    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 100px 20px 50px;
    }

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

    .hero-subtitle {
        margin: 1.5rem auto;
    }

    .hero-3d-scene {
        margin-top: 3rem;
        transform: scale(0.6);
    }

    .pricing,
    .portfolio,
    .cta-section {
        padding: 4rem 20px;
    }

    .cta-container {
        padding: 3rem 20px;
    }

    .cta-container h2 {
        font-size: 2rem;
    }
}.objects-section {
    padding: 40px 20px;
    text-align: center;
}

.pdf-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; /* Позволяет блокам переноситься на мобильных */
}

.pdf-card {
    position: relative;
    width: 300px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 234, 255, 0.3);
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.pdf-card img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.7);
    transition: 0.3s;
}

.pdf-label {
    display: block;
    padding: 15px;
    color: #fff;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.8);
}

/* Эффект при наведении */
.pdf-card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: #00eaff;
    box-shadow: 0 20px 40px rgba(0, 234, 255, 0.3);
}

.pdf-card:hover img {
    filter: brightness(1);
}

.pdf-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #00eaff;
    border: 2px solid #00eaff;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: 0.3s;
    z-index: 2;
    border-radius: 5px;
}

.pdf-card:hover .pdf-overlay {
    opacity: 1;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .pdf-card {
        width: 100%; /* На мобилках на всю ширину */
        max-width: 350px;
    }
    
    .pdf-overlay {
        opacity: 1; /* На тачскринах лучше сразу показать надпись */
        background: rgba(0, 0, 0, 0.4);
    }
/* Контейнер для галереи */
.gallery-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

/* Стили превью */
.gallery-item {
    flex: 1 1 300px; /* Средний размер — 300px, тянется до 100% на мобильных */
    max-width: 450px;
}

.preview-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid rgba(0, 234, 255, 0.3); /* Твой фирменный синий */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: block;
}

.preview-img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(0, 234, 255, 0.5);
}

/* Стили полноэкранного режима (Lightbox) */
.lightbox {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 9999;
    width: 100%;
    height: 100%;
    text-align: center;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    margin-top: 5%;
    border: 3px solid #fff;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

/* Показываем картинку при клике (использование якоря #) */
.lightbox:target {
    display: block;
    outline: none;
}

/* Кнопка закрытия (весь фон — это ссылка для выхода) */
.lightbox:target::after {
    content: "✕ Кликните в любое место, чтобы закрыть";
    display: block;
    color: #fff;
    padding-top: 20px;
    font-family: Arial, sans-serif;
    font-size: 14px;
}