/**
 * @file: landing_2.css
 * @description: Премиум стили для визитной карточки компании с 3D эффектами
 * @dependencies: Inter font, Bootstrap Icons
 * @created: 2024-12-25
 */

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --primary-red: #ee3831;
    --primary-red-dark: #d32f2a;
    --primary-red-light: #ff5722;
    --dark-bg: #0a0a0a;
    --dark-surface: #1a1a1a;
    --dark-surface-alt: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #ee3831 0%, #ff5722 100%);
    --gradient-glass: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    --gradient-dark: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    --gradient-text: linear-gradient(135deg, #ee3831 0%, #ff5722 100%);

    /* Shadows */
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.37);
    --shadow-primary: 0 20px 40px rgba(238, 56, 49, 0.3);
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.5);

    /* Animation */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Spacing */
    --section-padding: 6rem 0;
    --container-max-width: 1200px;
    --border-radius: 16px;
    --border-radius-lg: 24px;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
        sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

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

.loading-animation {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading-logo {
    width: 60px;
    height: auto;
    opacity: 0.8;
}

.loading-bar {
    width: 180px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loading-progress {
    height: 100%;
    background: var(--gradient-primary);
    width: 0;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* ===== BACKGROUND ELEMENTS ===== */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(
            rgba(238, 56, 49, 0.1) 1px,
            transparent 1px
        ),
        linear-gradient(90deg, rgba(238, 56, 49, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(
        circle,
        rgba(238, 56, 49, 0.4) 0%,
        transparent 70%
    );
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle,
        rgba(255, 87, 34, 0.3) 0%,
        transparent 70%
    );
    bottom: 20%;
    left: 10%;
    animation-delay: 4s;
}

@keyframes gridMove {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(50px) translateY(50px);
    }
}

@keyframes orbFloat {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

/* ===== GLASS MORPHISM ===== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-glass);
}

/* ===== NAVIGATION ===== */
.nav-glass {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100%;
    padding: 1rem 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: var(--transition-smooth);
    box-sizing: border-box;
    overflow: hidden;
}

.nav-container {
    max-width: var(--container-max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(238, 56, 49, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(238, 56, 49, 0.4);
}

/* ===== HERO SECTION ===== */
.hero-premium {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 0 4rem;
}

.hero-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(238, 56, 49, 0.1);
    border: 1px solid rgba(238, 56, 49, 0.3);
    border-radius: 50px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.badge-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-red);
    position: relative;
    z-index: 2;
}

.badge-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(238, 56, 49, 0.2),
        transparent
    );
    animation: badgeGlow 3s ease-in-out infinite;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-line {
    display: block;
    animation: slideInRight 0.8s ease-out forwards;
    opacity: 0;
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}
.title-line:nth-child(2) {
    animation-delay: 0.4s;
}
.title-line:nth-child(3) {
    animation-delay: 0.6s;
}

.title-line.highlight {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 500px;
    line-height: 1.6;
    animation: fadeIn 1s ease-out 0.8s both;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out 1s both;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    flex: 1;
    min-width: 120px;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(238, 56, 49, 0.1);
    border-color: rgba(238, 56, 49, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
    display: block;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    animation: fadeIn 1s ease-out 1.2s both;
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 50px rgba(238, 56, 49, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(20px);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--primary-red);
    transform: translateY(-3px);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: var(--transition-smooth);
}

.btn-primary:hover .btn-glow {
    left: 100%;
}

/* ===== 3D VISUAL ===== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    animation: fadeIn 1s ease-out 1.4s both;
}

.visual-3d {
    position: relative;
    width: 300px;
    height: 300px;
}

.cube-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    transform-style: preserve-3d;
    animation: cubeRotate 20s linear infinite;
}

.cube {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.face {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--glass-bg);
    border: 2px solid var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-red);
    backdrop-filter: blur(20px);
}

.face.front {
    transform: rotateY(0deg) translateZ(75px);
}
.face.back {
    transform: rotateY(180deg) translateZ(75px);
}
.face.right {
    transform: rotateY(90deg) translateZ(75px);
}
.face.left {
    transform: rotateY(-90deg) translateZ(75px);
}
.face.top {
    transform: rotateX(90deg) translateZ(75px);
}
.face.bottom {
    transform: rotateX(-90deg) translateZ(75px);
}

@keyframes cubeRotate {
    0% {
        transform: translate(-50%, -50%) rotateX(0) rotateY(0);
    }
    100% {
        transform: translate(-50%, -50%) rotateX(360deg) rotateY(360deg);
    }
}

/* ===== SECTIONS ===== */
.section-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--section-padding);
    padding-left: 2rem;
    padding-right: 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(238, 56, 49, 0.1);
    color: var(--primary-red);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid rgba(238, 56, 49, 0.3);
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== ABOUT SECTION ===== */
.about-premium {
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(20px);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.company-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-block h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.info-block p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.advantages-3d {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

.advantage-card {
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.advantage-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    background: rgba(238, 56, 49, 0.1);
    border-color: rgba(238, 56, 49, 0.3);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.advantage-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

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

/* ===== SERVICES SECTION ===== */
.services-premium {
    padding: var(--section-padding);
}

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

.service-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    transition: var(--transition-smooth);
    overflow: hidden;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(238, 56, 49, 0.05);
    border-color: rgba(238, 56, 49, 0.3);
    box-shadow: 0 20px 40px rgba(238, 56, 49, 0.2);
}

.service-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-smooth);
}

.service-card:hover .service-background {
    opacity: 0.03;
}

.service-content {
    position: relative;
    z-index: 2;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotateY(10deg);
    box-shadow: 0 10px 30px rgba(238, 56, 49, 0.4);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.feature-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(238, 56, 49, 0.1);
    color: var(--primary-red);
    border: 1px solid rgba(238, 56, 49, 0.3);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ===== CONTACT SECTION ===== */
.contact-premium {
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(20px);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
}

.contact-item:hover {
    transform: translateX(10px);
    background: rgba(238, 56, 49, 0.1);
    border-color: rgba(238, 56, 49, 0.3);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.contact-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.contact-value {
    color: var(--text-primary);
    font-weight: 500;
}

.contact-value a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-link.whatsapp:hover {
    background: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.3);
    color: #25d366;
}

.social-link.telegram:hover {
    background: rgba(0, 136, 204, 0.1);
    border-color: rgba(0, 136, 204, 0.3);
    color: #0088cc;
}

/* ===== CTA FORM ===== */
.cta-card {
    padding: 3rem;
}

.cta-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-smooth);
    backdrop-filter: blur(20px);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-red);
    background: rgba(238, 56, 49, 0.05);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
}

.form-input:focus + .input-border {
    width: 100%;
}

/* ===== FOOTER ===== */
.footer-premium {
    padding: 2rem 0;
    background: rgba(10, 10, 10, 0.8);
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
}

.footer-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-text p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--primary-red);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes badgeGlow {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-container,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-visual {
        order: -1;
        margin-bottom: 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .hero-premium {
        padding: 6rem 0 3rem;
    }

    .cube-container {
        width: 120px;
        height: 120px;
    }

    .face {
        width: 120px;
        height: 120px;
        font-size: 1.5rem;
    }

    .face.front {
        transform: rotateY(0deg) translateZ(60px);
    }
    .face.back {
        transform: rotateY(180deg) translateZ(60px);
    }
    .face.right {
        transform: rotateY(90deg) translateZ(60px);
    }
    .face.left {
        transform: rotateY(-90deg) translateZ(60px);
    }
    .face.top {
        transform: rotateX(90deg) translateZ(60px);
    }
    .face.bottom {
        transform: rotateX(-90deg) translateZ(60px);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
    }

    .nav-container {
        padding: 0 0.75rem;
    }

    .section-container,
    .footer-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .advantages-3d {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .social-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-premium {
        padding: 4rem 0 2rem;
        min-height: auto;
    }

    .nav-glass {
        padding: 0.75rem 0;
    }

    .nav-logo img {
        height: 32px;
    }

    .contact-methods {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .contact-item {
        padding: 1.25rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .company-info {
        gap: 1.5rem;
    }

    .info-block h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 2rem 0;
        --border-radius: 12px;
        --border-radius-lg: 16px;
    }

    body {
        font-size: 14px;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .section-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .nav-container {
        padding: 0 0.5rem;
        max-width: calc(100vw - 1rem);
    }

    .nav-glass {
        width: 100vw;
        max-width: 100%;
        left: 0;
        right: 0;
    }

    .nav-cta span {
        display: none;
    }

    .nav-cta {
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
    }

    .btn-primary,
    .btn-secondary {
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        min-height: 48px;
    }

    .service-card,
    .advantage-card {
        padding: 1.5rem;
    }

    .contact-item {
        padding: 1rem;
        flex-direction: row;
        text-align: left;
        gap: 1rem;
    }

    .cta-card {
        padding: 1.5rem;
    }

    .hero-stats {
        gap: 0.75rem;
    }

    .stat-card {
        padding: 0.6rem;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.45rem;
    }

    .cube-container {
        width: 100px;
        height: 100px;
    }

    .face {
        width: 100px;
        height: 100px;
        font-size: 1.2rem;
    }

    .face.front {
        transform: rotateY(0deg) translateZ(50px);
    }
    .face.back {
        transform: rotateY(180deg) translateZ(50px);
    }
    .face.right {
        transform: rotateY(90deg) translateZ(50px);
    }
    .face.left {
        transform: rotateY(-90deg) translateZ(50px);
    }
    .face.top {
        transform: rotateX(90deg) translateZ(50px);
    }
    .face.bottom {
        transform: rotateX(-90deg) translateZ(50px);
    }

    .visual-3d {
        width: 200px;
        height: 200px;
    }

    .section-container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .hero-premium {
        padding: 3rem 0 1.5rem;
    }

    .hero-container {
        gap: 2rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .about-grid,
    .contact-grid {
        gap: 2rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 1.2rem;
    }

    .form-input {
        padding: 0.875rem;
    }

    .cta-content h3 {
        font-size: 1.3rem;
    }

    .nav-glass {
        padding: 0.5rem 0;
    }

    .loading-logo {
        width: 60px;
    }

    .loading-bar {
        width: 150px;
    }

    /* Улучшения для мобильного touch */
    .btn-primary,
    .btn-secondary,
    .social-link,
    .nav-cta,
    .contact-item {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    /* Скрыть 3D эффекты на очень маленьких экранах для производительности */
    .gradient-orb {
        display: none;
    }

    .grid-overlay {
        opacity: 0.3;
    }

    /* Упрощение анимаций для мобильных */
    .cube-container {
        animation-duration: 30s;
    }

    .hero-badge .badge-glow {
        animation: none;
    }
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}

.visible {
    opacity: 1 !important;
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ МОБИЛЬНЫЕ ИСПРАВЛЕНИЯ ===== */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .nav-container {
        padding: 0 0.25rem;
        max-width: calc(100vw - 0.5rem);
    }

    .nav-glass {
        width: 100vw;
        max-width: 100%;
    }

    .section-container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .services-grid {
        gap: 1rem;
    }

    .service-card,
    .advantage-card,
    .cta-card {
        padding: 1rem;
    }
}

/* ===== ИСПРАВЛЕНИЯ ДЛЯ ЛАНДШАФТНОЙ ОРИЕНТАЦИИ ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-premium {
        min-height: auto;
        padding: 2rem 0;
    }

    .visual-3d {
        width: 150px;
        height: 150px;
    }

    .cube-container {
        width: 80px;
        height: 80px;
    }

    .face {
        width: 80px;
        height: 80px;
        font-size: 1rem;
    }

    .face.front {
        transform: rotateY(0deg) translateZ(40px);
    }
    .face.back {
        transform: rotateY(180deg) translateZ(40px);
    }
    .face.right {
        transform: rotateY(90deg) translateZ(40px);
    }
    .face.left {
        transform: rotateY(-90deg) translateZ(40px);
    }
    .face.top {
        transform: rotateX(90deg) translateZ(40px);
    }
    .face.bottom {
        transform: rotateX(-90deg) translateZ(40px);
    }
}

/* ===== УЛУЧШЕНИЕ ПРОИЗВОДИТЕЛЬНОСТИ НА МОБИЛЬНЫХ ===== */
@media (max-width: 768px) {
    .bg-elements {
        will-change: auto;
    }

    .gradient-orb {
        animation-duration: 12s;
        filter: blur(40px);
    }

    .grid-overlay {
        background-size: 30px 30px;
    }

    /* Упрощение 3D эффектов для производительности */
    .service-card,
    .advantage-card {
        transform: none !important;
        transition: background 0.2s ease, border-color 0.2s ease;
    }

    .service-card:hover,
    .advantage-card:hover {
        transform: none !important;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .cube-container {
        animation: none;
    }

    .grid-overlay {
        animation: none;
    }

    .gradient-orb {
        animation: none;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .nav-glass,
    .bg-elements,
    .loading-screen {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .section-container {
        max-width: none;
        padding: 1rem 0;
    }
}
