/* Design System Variables */
:root {
    --bg-color: #000000;
    --surface-color: rgba(255, 255, 255, 0.03);
    --surface-high: rgba(255, 255, 255, 0.07);
    --primary-gold: #C5A87C;
    --primary-gold-bright: #E6D2B5;
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;

    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

/* Навигация (Tabs) */
.top-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    /* Полупрозрачный черный */
    backdrop-filter: blur(10px);
    /* Матовое стекло */
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    /* Logo on top, tabs below */
    justify-content: center;
    align-items: center;
    padding: 0.5rem 2rem;
    /* Reduced padding to make header smaller */
    gap: 0.5rem;
    /* Reduced gap between logo and tabs */
}

@media (min-width: 992px) {
    .nav-container {
        gap: 0.8rem;
        /* Slightly larger gap on desktop but still compact */
    }
}

.logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 200px;
    /* Prevent collapse */
    flex-shrink: 0;
}

.heartbeat-line {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 30px;
    pointer-events: none;
    z-index: -1;
    overflow: visible;
}

.heartbeat-line.left {
    right: 50%;
    margin-right: 120px;
    width: calc(50vw - 120px);
}

.heartbeat-line.right {
    left: 50%;
    margin-left: 120px;
    width: calc(50vw - 120px);
}

.pulse-path {
    fill: none;
    stroke: var(--primary-gold);
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: heartbeat 3s linear infinite;
    filter: drop-shadow(0 0 5px var(--primary-gold));
    opacity: 0.8;
}

@keyframes heartbeat {
    0% {
        stroke-dashoffset: 1000;
    }

    100% {
        stroke-dashoffset: -1000;
    }
}

.logo-image {
    max-height: 50px;
    /* Reduced logo size to save vertical space */
    width: auto;
    min-width: 150px;
    /* Prevent collapse */
    object-fit: contain;
    position: relative;
    z-index: 2;
}


.nav-tabs {
    display: flex;
    width: 100%;
    /* Ensure it spans the container and doesn't collapse */
    gap: 1.5rem;
    white-space: nowrap;
    justify-content: center;
    flex-wrap: wrap;
    /* Allow wrapping on desktop */
}

/* Кнопка мобильного меню (3 точки) */
.mobile-menu-btn {
    display: none;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    padding: 15px;
    /* Увеличил зону клика */
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    /* Убирает синюю подсветку при тапе на iOS */
}

.mobile-menu-btn span {
    width: 6px;
    height: 6px;
    background-color: var(--primary-gold-bright);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px var(--primary-gold);
}

.mobile-menu-btn:active span {
    transform: scale(1.3);
    background-color: #fff;
    box-shadow: 0 0 15px #fff;
}

/* Мобильная адаптация навигации (выезжающее меню) */
@media (max-width: 900px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-tabs {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, rgba(15, 15, 15, 0.98) 0%, rgba(5, 5, 5, 0.98) 100%);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center !important;
        align-items: center;
        gap: 0.8rem;
        transition: right 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 999;
        flex-wrap: nowrap !important;
        padding-top: 4rem;
        padding-bottom: 2rem;
    }

    .nav-tabs.open {
        right: 0;
    }

    .tab-btn {
        font-size: 1.4rem;
        font-weight: 600;
        width: 85%;
        text-align: center;
        padding: 1rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(197, 168, 124, 0.05);
        text-transform: uppercase;
        letter-spacing: 3px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .tab-btn::after {
        display: none !important;
    }

    .tab-btn.active {
        background: rgba(197, 168, 124, 0.15);
        border: 1px solid rgba(197, 168, 124, 0.4);
        color: var(--primary-gold-bright);
        box-shadow: 0 5px 20px rgba(197, 168, 124, 0.2);
    }

    .heartbeat-line {
        display: block !important;
    }

    .heartbeat-line.left {
        width: calc(50vw - 60px) !important;
        margin-right: 60px !important;
    }

    .heartbeat-line.right {
        width: calc(50vw - 60px) !important;
        margin-left: 60px !important;
    }

    .logo-wrapper {
        min-width: auto !important;
    }

    .logo-image {
        max-height: 45px !important;
        min-width: 0 !important;
    }

    .nav-container {
        padding: 0.5rem 0 0 0 !important;
        /* Убираем боковые пэддинги контейнера, чтобы скролл касался краев экрана */
    }
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-style: preserve-3d;
}


.tab-btn:hover {
    color: var(--text-primary);
    transform: perspective(500px) translateZ(10px) scale(1.05);
    text-shadow: 0 5px 15px rgba(197, 168, 124, 0.3);
}

.tab-btn.active {
    color: var(--primary-gold-bright);
    text-shadow: 0 0 20px rgba(197, 168, 124, 0.6);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    transition: width 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 0 10px var(--primary-gold);
}

.tab-btn.active::after {
    width: 100%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 10px var(--primary-gold);
    }

    50% {
        opacity: 0.7;
        box-shadow: 0 0 20px var(--primary-gold);
    }
}

/* Контент вкладок */
.tab-content {
    display: none;
    padding-top: 0;
    /* Убрано, чтобы фон залезал под прозрачную шапку */
    animation: fadeIn 0.4s ease-out;
}

.tab-padding-top {
    padding-top: 130px;
    /* Reduced to match slimmer header */
}


.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 120px;
    /* Опускаем контент ниже шапки */
    /* Изображение карьера с темным наложением */
    background-image: url('../assets/images/Основная страница.PNG');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 1));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    padding: 0 2rem;
}

.hero-canvas-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), 0 0 60px rgba(197, 168, 124, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #C5A87C 50%, #ffffff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 1100px;

    /* 3D Entry with depth */
    opacity: 0;
    transform: perspective(2000px) translateZ(-400px) rotateX(25deg) rotateY(-10deg) scale(0.8);
    animation: heroReveal3D 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards, shimmer 4s ease-in-out infinite;
    animation-delay: 0.3s, 2s;
    filter: blur(10px);
}

@keyframes heroReveal3D {
    0% {
        opacity: 0;
        transform: perspective(2000px) translateZ(-400px) rotateX(25deg) rotateY(-10deg) scale(0.8);
        filter: blur(10px);
    }

    60% {
        opacity: 0.8;
        transform: perspective(2000px) translateZ(20px) rotateX(-2deg) rotateY(2deg) scale(1.02);
        filter: blur(2px);
    }

    100% {
        opacity: 1;
        transform: perspective(2000px) translateZ(0) rotateX(0) rotateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes shimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}


.hero-subtitle {
    font-size: 1.1rem;
    color: var(--primary-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 3rem;
    display: block;

    /* 3D floating animation */
    opacity: 0;
    transform: perspective(1000px) translateY(50px) translateZ(-100px);
    animation: floatIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards, float 3s ease-in-out infinite;
    animation-delay: 0.8s, 2.3s;
    text-shadow: 0 5px 20px rgba(197, 168, 124, 0.5), 0 0 40px rgba(197, 168, 124, 0.3);
}

@keyframes floatIn {
    to {
        opacity: 1;
        transform: perspective(1000px) translateY(0) translateZ(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: perspective(1000px) translateY(0) translateZ(0);
    }

    50% {
        transform: perspective(1000px) translateY(-10px) translateZ(10px);
    }
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: var(--primary-gold);
    color: #000;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 1px solid var(--primary-gold);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    position: relative;
    z-index: 20;
    overflow: hidden;

    /* 3D button entry */
    opacity: 0;
    transform: perspective(1000px) translateZ(-200px) rotateX(45deg) scale(0.5);
    animation: buttonReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1.2s;
}

@keyframes buttonReveal {
    to {
        opacity: 1;
        transform: perspective(1000px) translateZ(0) rotateX(0) scale(1);
    }
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    border-radius: 50%;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--primary-gold);
    box-shadow: 0 15px 50px rgba(197, 168, 124, 0.4), 0 0 60px rgba(197, 168, 124, 0.2);
    transform: perspective(1000px) translateY(-8px) translateZ(20px) rotateX(-5deg);
}

.cta-button:active {
    transform: perspective(1000px) translateY(-2px) translateZ(10px) scale(0.98);
}

/* Секция: О нас (Команда) */
.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #C5A87C 50%, #ffffff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite;
    text-shadow: 0 5px 20px rgba(197, 168, 124, 0.3);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.section-header h2:hover {
    transform: perspective(1000px) translateZ(20px) scale(1.02);
}

.overline {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.goal-text {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    color: var(--text-primary);
}

/* Макет с интерактивным 3D Canvas */
.text-with-canvas {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.text-with-canvas .text-content {
    flex: 1;
}

.text-with-canvas .canvas-container {
    flex: 1;
    height: 400px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(197, 168, 124, 0.05) 0%, transparent 70%);
}

.canvas-container canvas {
    display: block;
    width: 100%;
    height: 100%;
    outline: none;
}

/* Секция: Экспертиза */
.expertise-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.expertise-card {
    background-color: var(--surface-color);
    padding: 2.5rem 2rem;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.expertise-card:hover {
    background-color: var(--surface-high);
    border-color: rgba(197, 168, 124, 0.3);
    transform: translateY(-5px);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(197, 168, 124, 0.2), rgba(197, 168, 124, 0.05));
    border-radius: 0;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(197, 168, 124, 0.3);
}

.expertise-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Секция: Эффективность решения */
.effectiveness-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.effectiveness-header {
    margin-bottom: 1.5rem;
    text-align: left;
}

.effectiveness-header .hero-subtitle {
    margin-bottom: 1rem;
}

.effectiveness-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    max-width: 800px;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

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

.eff-card {
    background-color: var(--surface-color);
    backdrop-filter: blur(12px);
    padding: 2.5rem 2rem;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);

    /* Начальное состояние для анимации */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;

    display: flex;
    flex-direction: column;
}

/* Center the 7th card explicitly */
@media (min-width: 900px) {
    .effectiveness-grid {
        justify-content: center;
    }
}

.centered-last-card {
    grid-column: 1 / -1;
    margin: 0 auto;
    width: 100%;
    max-width: 400px;
}

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

.eff-card.visible:hover {
    transform: translateY(-5px);
    background-color: var(--surface-high);
    border-color: rgba(197, 168, 124, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.eff-icon {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-gold);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.eff-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.eff-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.eff-card ul {
    list-style-type: none;
    margin-left: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.eff-card ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
}

.eff-card ul li::before {
    content: '•';
    color: var(--primary-gold);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.eff-card .highlight {
    color: var(--primary-gold-bright);
    font-weight: 600;
}

/* Секция: Миссия */
.mission-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(197, 168, 124, 0.05) 100%);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--primary-gold);
}

.mission-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-gold-bright);
}

.mission-card p {
    font-size: 1.2rem;
    max-width: 800px;
}

/* Галерея команды (портреты) */
.team-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

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

.img-wrapper {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    background-color: var(--surface-color);
}

.img-wrapper:hover {
    border-color: var(--primary-gold);
    box-shadow: 0 10px 30px rgba(197, 168, 124, 0.15);
    transform: translateY(-5px);
}

.team-member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(20%) contrast(1.1);
    /* Slight filter for industrial look */
    transition: filter 0.3s ease;
}

.img-wrapper:hover .team-member-img {
    filter: grayscale(0%) contrast(1.1);
}

.team-member-name {
    color: var(--primary-gold-bright);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Стили для Цифрового Двойника */
.digital-twin-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.dt-animation-container {
    width: 100%;
    height: 600px;
    background-color: #000000;
    background-image: url('../assets/images/digital_twin_bg_1776450260892.png');
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(197, 168, 124, 0.3);
    position: relative;
    margin-bottom: 3rem;
    overflow: hidden;
    border-radius: 12px;
}

.dt-map {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.svg-truck-container {
    position: absolute;
    width: 40px;
    height: 60px;
    top: 10%;
    left: -10%;
    transform-origin: center center;
    animation: driveIntoQuarry 20s linear infinite;
    z-index: 10;
    opacity: 0;
}

.svg-truck {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(197, 168, 124, 0.8));
}

.truck-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-gold-bright);
    font-size: 0.75rem;
    font-weight: bold;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.8);
    padding: 3px 6px;
    border-radius: 3px;
    border: 1px solid var(--primary-gold);
}

@keyframes driveIntoQuarry {
    0% {
        left: -10%;
        top: 20%;
        transform: rotate(90deg) scale(1);
        opacity: 0;
    }

    5% {
        left: 5%;
        top: 20%;
        transform: rotate(90deg) scale(1);
        opacity: 1;
    }

    20% {
        left: 30%;
        top: 25%;
        transform: rotate(110deg) scale(0.9);
    }

    40% {
        left: 60%;
        top: 40%;
        transform: rotate(135deg) scale(0.8);
    }

    50% {
        left: 70%;
        top: 60%;
        transform: rotate(180deg) scale(0.7);
    }

    60% {
        left: 60%;
        top: 80%;
        transform: rotate(240deg) scale(0.6);
    }

    75% {
        left: 35%;
        top: 75%;
        transform: rotate(290deg) scale(0.5);
    }

    85% {
        left: 30%;
        top: 55%;
        transform: rotate(340deg) scale(0.4);
    }

    95% {
        left: 45%;
        top: 45%;
        transform: rotate(390deg) scale(0.3);
        opacity: 1;
    }

    100% {
        left: 48%;
        top: 48%;
        transform: rotate(390deg) scale(0.2);
        opacity: 0;
    }
}

/* Radar scan effect */
.radar-scan {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(197, 168, 124, 0.15);
    box-shadow: inset 0 0 50px rgba(197, 168, 124, 0.05);
    pointer-events: none;
    z-index: 5;
}

.radar-scan::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 50%;
    background: conic-gradient(from 0deg, transparent 70%, rgba(197, 168, 124, 0.4) 100%);
    transform-origin: 0 0;
    animation: radarSpin 4s linear infinite;
}

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

    to {
        transform: rotate(360deg);
    }
}

/* Vertical Scan Line Animation */
.scan-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: #4A90E2;
    box-shadow: 0 0 15px 5px rgba(74, 144, 226, 0.6), 0 0 30px 10px rgba(74, 144, 226, 0.3);
    z-index: 1;
    animation: verticalScan 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes verticalScan {
    0% {
        top: -5%;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        top: 105%;
        opacity: 0;
    }
}

.dt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.dt-card {
    background-color: var(--surface-color);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dt-card h3 {
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.dt-card h4 {
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.dt-card p,
.dt-card ul {
    color: var(--text-secondary);
    line-height: 1.6;
}

.dt-card ul {
    padding-left: 1.5rem;
}

.dt-card ul li {
    margin-bottom: 0.5rem;
}

.full-width {
    grid-column: 1 / -1;
}

/* Таблица */
.dt-table-container {
    margin-bottom: 3rem;
}

.table-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 1rem;
    min-width: 400px;
}

.styled-table thead tr {
    background-color: rgba(197, 168, 124, 0.1);
    color: var(--primary-gold);
    text-align: left;
}

.styled-table th,
.styled-table td {
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.styled-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background-color: var(--surface-color);
}

/* Контакты */
.contacts-section {
    display: flex;
    justify-content: center;
    padding-top: 2rem;
}

.contacts-card {
    background-color: var(--surface-color);
    padding: 2rem;
    border: 1px solid rgba(197, 168, 124, 0.2);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.contacts-logo {
    max-height: 100px;
    margin-bottom: 2rem;
}

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.contact-info a {
    color: var(--primary-gold-bright);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--primary-gold);
}

/* Секция: Уникальные преимущества */
.advantages-section {
    background-color: #000;
    padding-bottom: 8rem;
}

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

.adv-card {
    background-color: var(--surface-color);
    padding: 3rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.adv-card:hover {
    background-color: var(--surface-high);
    border-color: rgba(197, 168, 124, 0.3);
    transform: translateY(-10px);
}

.adv-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 1.5rem;
    color: var(--primary-gold);
}

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

.adv-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.adv-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.adv-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.adv-card:hover .adv-link {
    color: var(--primary-gold);
}

/* ГАРАНТИРОВАННАЯ ВИДИМОСТЬ КАРТОЧЕК */
.effectiveness-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    margin-top: 40px !important;
    visibility: visible !important;
    opacity: 1 !important;
    justify-content: center !important;
}

.eff-card {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid #C5A87C !important;
    padding: 25px !important;
    border-radius: 15px !important;
    width: 350px !important;
    min-height: 200px !important;
    color: #ffffff !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.eff-card h3 {
    color: #C5A87C !important;
    margin-bottom: 15px !important;
    font-size: 1.2rem !important;
}

.eff-card p,
.eff-card li {
    color: #eeeeee !important;
    font-size: 1rem !important;
}

.eff-icon {
    color: rgba(197, 168, 124, 0.4) !important;
    font-size: 2.5rem !important;
}

/* Временные секции */
.placeholder-section {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    color: var(--text-secondary);
}

.placeholder-section h2 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Футер сайта */
.site-footer {
    background-color: #000000;
    border-top: 1px solid rgba(197, 168, 124, 0.2);
    padding: 2rem 0 0 0;
    margin-top: 2rem;
    color: var(--text-secondary);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(197, 168, 124, 0.3));
}

.footer-desc {
    max-width: 400px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.site-footer h4 {
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a,
.footer-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--primary-gold);
}

.footer-contact p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Roadmap Table Styles */
/* Excel-like Roadmap Styles */
.roadmap-wrapper {
    width: 100%;
    overflow-x: auto;
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-top: 2rem;
}

.excel-roadmap {
    border-collapse: collapse;
    width: 100%;
    min-width: 2500px;
    /* Force horizontal scroll for detail */
    table-layout: fixed;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.excel-roadmap th,
.excel-roadmap td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 4px;
    text-align: center;
    vertical-align: middle;
    word-wrap: break-word;
}

.excel-roadmap thead tr:first-child th {
    height: 40px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
}

/* Phase Colors */
.phase-1 {
    background: rgba(255, 102, 0, 0.25);
    color: #ffcc80 !important;
}

.phase-2 {
    background: rgba(156, 39, 176, 0.25);
    color: #e1bee7 !important;
}

.phase-3 {
    background: rgba(33, 150, 243, 0.25);
    color: #bbdefb !important;
}

.phase-4 {
    background: rgba(76, 175, 80, 0.25);
    color: #c8e6c9 !important;
}

.phase-5 {
    background: rgba(197, 168, 124, 0.25);
    color: var(--primary-gold-bright) !important;
}

/* Sub-headers */
.year-row {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
}

.quarter-row {
    background: rgba(255, 255, 255, 0.03);
}

.month-row {
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.7rem;
}

/* Task Blocks */
.task-block {
    background: rgba(197, 168, 124, 0.1);
    color: #fff;
    font-weight: 500;
    border: 1px solid var(--primary-gold) !important;
    text-align: left !important;
    padding: 10px !important;
    border-radius: 4px;
}

.task-blue {
    background: rgba(33, 150, 243, 0.15);
    border-color: #2196F3 !important;
}

.task-purple {
    background: rgba(156, 39, 176, 0.15);
    border-color: #9C27B0 !important;
}

.task-green {
    background: rgba(76, 175, 80, 0.15);
    border-color: #4CAF50 !important;
}

.task-orange {
    background: rgba(255, 102, 0, 0.15);
    border-color: #FF6600 !important;
}

.excel-roadmap tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.roadmap-container {
    padding-bottom: 2rem;
}



/* Practice Tab Styles */
.benchmarks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

/* Центрируем 4-ю карточку (PMBOK), когда колонок 3 */
@media (min-width: 993px) {
    .benchmarks-grid .benchmark-card:last-child:nth-child(4) {
        grid-column: 2;
    }
}

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

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

.benchmark-card {
    background: var(--surface-color);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.benchmark-card:hover {
    background: var(--surface-high);
    border-color: var(--primary-gold);
    transform: translateY(-5px);
}

.bench-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.bench-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-gold-bright);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.bench-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.trends-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.trend-card {
    flex: 1;
    min-width: 220px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(212, 175, 55, 0.05) 100%);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 3px solid var(--primary-gold);
    transition: all 0.3s ease;
}

.trend-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.trend-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.trend-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

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

.selection-item {
    display: flex;
    gap: 1.5rem;
    background: var(--surface-color);
    padding: 1.5rem;
    border-left: 2px solid var(--primary-gold);
    border-radius: 4px;
}

.check-icon {
    font-size: 1.5rem;
}

.selection-text strong {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-gold-bright);
    margin-bottom: 0.5rem;
}

.selection-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.footnote {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1.5rem;
    border-left: 2px solid var(--primary-gold);
    padding-left: 1rem;
}

.status-badge {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.status-badge.positive {
    color: #4ade80;
}



/* Enhanced card hover for 3D feel */
.eff-card,
.expertise-card,
.benchmark-card,
.trend-card,
.selection-item {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    transform-style: preserve-3d;
    position: relative;
}

.eff-card::before,
.expertise-card::before,
.benchmark-card::before,
.trend-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(197, 168, 124, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    border-radius: inherit;
}

.eff-card:hover::before,
.expertise-card:hover::before,
.benchmark-card:hover::before,
.trend-card:hover::before {
    opacity: 1;
}

.eff-card:hover,
.expertise-card:hover,
.benchmark-card:hover,
.trend-card:hover {
    transform: perspective(1500px) translateY(-15px) translateZ(30px) rotateX(5deg) rotateY(-5deg) scale(1.03) !important;
    box-shadow: -15px 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(197, 168, 124, 0.4), inset 0 0 20px rgba(197, 168, 124, 0.1) !important;
}

.eff-card h3,
.expertise-card h3,
.benchmark-card h3,
.trend-card h3 {
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.eff-card:hover h3,
.expertise-card:hover h3,
.benchmark-card:hover h3,
.trend-card:hover h3 {
    transform: translateZ(20px);
    text-shadow: 0 5px 15px rgba(197, 168, 124, 0.5);
}





.footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

.footer-desc {
    margin: 0 auto;
}

/* Parallax 3D effect for hero background */
.hero-section {
    transform-style: preserve-3d;
}

.hero-overlay {
    transform: translateZ(-50px) scale(1.05);
}

.hero-content {
    transform: translateZ(50px);
}

/* Floating particles effect */
@keyframes particleFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }

    25% {
        transform: translate(10px, -20px) rotate(90deg);
        opacity: 0.6;
    }

    50% {
        transform: translate(-5px, -40px) rotate(180deg);
        opacity: 0.3;
    }

    75% {
        transform: translate(-15px, -20px) rotate(270deg);
        opacity: 0.6;
    }
}

/* Text glitch effect for emphasis */
@keyframes glitch {

    0%,
    100% {
        transform: translate(0);
        text-shadow: 0 0 20px rgba(197, 168, 124, 0.5);
    }

    20% {
        transform: translate(-2px, 2px);
        text-shadow: 2px 0 rgba(197, 168, 124, 0.7), -2px 0 rgba(255, 255, 255, 0.3);
    }

    40% {
        transform: translate(-2px, -2px);
        text-shadow: -2px 0 rgba(197, 168, 124, 0.7), 2px 0 rgba(255, 255, 255, 0.3);
    }

    60% {
        transform: translate(2px, 2px);
        text-shadow: 0 2px rgba(197, 168, 124, 0.7), 0 -2px rgba(255, 255, 255, 0.3);
    }

    80% {
        transform: translate(2px, -2px);
        text-shadow: 0 -2px rgba(197, 168, 124, 0.7), 0 2px rgba(255, 255, 255, 0.3);
    }
}

.eff-icon {
    animation: glitch 5s ease-in-out infinite;
}

/* Holographic effect for cards */
.eff-card,
.expertise-card {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.03) 0%,
            rgba(197, 168, 124, 0.05) 25%,
            rgba(255, 255, 255, 0.03) 50%,
            rgba(197, 168, 124, 0.05) 75%,
            rgba(255, 255, 255, 0.03) 100%);
    background-size: 400% 400%;
}

.eff-card:hover,
.expertise-card:hover {
    animation: holographic 3s ease infinite;
}

@keyframes holographic {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Particles background */
.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

.tab-content {
    position: relative;
}

.tab-content>* {
    position: relative;
    z-index: 1;
}

/* Morphing text effect */
.morph-text {
    display: inline-block;
    will-change: transform, opacity;
}

/* Liquid button effect */
.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        height 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
    opacity: 0.3;
}

.cta-button:hover::after {
    width: 400px;
    height: 400px;
}

/* Stagger animation classes */
.stagger-item {
    opacity: 0;
    transform: translateY(50px);
}

/* Magnetic hover effect */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Text split animation */
.split-text {
    display: inline-block;
    overflow: hidden;
}

.split-text .char {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reveal animation for images */
.reveal-image {
    position: relative;
    overflow: hidden;
}

.reveal-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gold);
    transform: translateX(-100%);
}

/* Smooth scroll indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gold), var(--primary-gold-bright));
    z-index: 9999;
    transform-origin: left;
    box-shadow: 0 0 20px var(--primary-gold);
}

/* Glowing border effect */
@keyframes glowBorder {

    0%,
    100% {
        box-shadow: 0 0 5px var(--primary-gold),
            0 0 10px var(--primary-gold),
            0 0 20px var(--primary-gold);
    }

    50% {
        box-shadow: 0 0 10px var(--primary-gold),
            0 0 20px var(--primary-gold),
            0 0 40px var(--primary-gold),
            0 0 60px var(--primary-gold);
    }
}

.glow-border {
    animation: glowBorder 3s ease-in-out infinite;
}

/* Ripple effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(197, 168, 124, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:hover::before {
    width: 500px;
    height: 500px;
}

/* Risk badges */
.risk-badge {
    display: inline-block;
    padding: 0.2rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.risk-badge.high {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.risk-badge.medium {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid #fbbf24;
}

.risk-badge.low {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid #22c55e;
}

/* Risks table styling */
.risks-table tbody tr {
    transition: all 0.3s ease;
}

.risks-table tbody tr:hover {
    background-color: rgba(197, 168, 124, 0.1);
    transform: scale(1.01);
}

/* Playbook steps */
.playbook-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.playbook-step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 4px solid var(--primary-gold);
    transition: all 0.3s ease;
}

.playbook-step:hover {
    transform: translateX(10px);
    background: rgba(197, 168, 124, 0.1);
    box-shadow: 0 5px 20px rgba(197, 168, 124, 0.2);
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-bright));
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    box-shadow: 0 5px 15px rgba(197, 168, 124, 0.4);
}

.step-content h4 {
    color: var(--primary-gold-bright);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive playbook */
@media (max-width: 768px) {
    .playbook-step {
        flex-direction: column;
        gap: 1rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* SVG Icon styling */
.card-icon-svg {
    width: 48px;
    height: 48px;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(197, 168, 124, 0.5));
    transition: all 0.3s ease;
}

.eff-card:hover .card-icon-svg,
.benchmark-card:hover .card-icon-svg {
    transform: scale(1.2) rotateY(180deg);
    filter: drop-shadow(0 0 20px rgba(197, 168, 124, 0.8));
}

/* --- Mobile Optimizations (Antigravity) --- */
@media (max-width: 768px) {

    /* Fixed Navigation for Mobile */
    .top-nav {
        padding: 0.5rem 0;
        background: rgba(0, 0, 0, 0.95) !important;
        /* Higher opacity for mobile */
        backdrop-filter: blur(10px);
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-tabs {
        width: 100%;
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding: 0.5rem 1rem 1rem 1rem;
        gap: 0.8rem;
        justify-content: center;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Hide scrollbar for clean look */
    }

    .nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        flex-shrink: 0;
        text-align: center;
        border-radius: 8px;
    }

    /* Hero & Text with Canvas */
    .hero-title {
        font-size: 1.5rem !important;
        line-height: 1.3;
    }

    .text-with-canvas {
        flex-direction: column !important;
    }

    .text-content {
        width: 100% !important;
    }

    .canvas-container {
        width: 100% !important;
        height: 200px !important;
        margin-top: 1rem;
    }

    /* Implementation Tab Table Hint */
    .roadmap-wrapper {
        position: relative;
    }

    .roadmap-wrapper::before {
        content: '← Листайте таблицу вправо →';
        display: block;
        text-align: center;
        font-size: 0.7rem;
        color: var(--primary-gold);
        padding: 0.5rem;
        background: rgba(0, 0, 0, 0.3);
        border-bottom: 1px solid rgba(197, 168, 124, 0.2);
    }

    /* Global Mobile Layout Fixes - Prevent Horizontal Overflow */
    html,
    body {
        width: 100vw;
        overflow-x: hidden !important;
        position: relative;
        background-color: #000000 !important;
    }

    /* Padding adjustments */
    .tab-padding-top {
        padding-top: 160px;
        /* Reduced to match slimmer header */
    }

    /* Global Mobile Typography - Prevents text from bleeding off screen */
    h1,
    .hero-title {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto;
    }

    /* WebKit Bug Fix: background-clip text can disappear on iOS when combined with flex/wrap. Use solid color. */
    h2,
    .section-header h2,
    .expertise-section h2,
    .mission-card h2,
    .effectiveness-header h2 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto;
        margin-bottom: 1rem !important;
        background: none !important;
        -webkit-background-clip: border-box !important;
        background-clip: border-box !important;
        -webkit-text-fill-color: var(--primary-gold-bright) !important;
        color: var(--primary-gold-bright) !important;
        text-shadow: none !important;
    }

    h3,
    .eff-card h3,
    .card-content h3 {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        text-align: center !important;
    }

    .goal-text,
    .eff-card p,
    .mission-card p,
    .step-content p,
    .text-content p {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        word-wrap: break-word !important;
        text-align: center !important;
    }

    .text-content, .section-header {
        text-align: center !important;
    }

    .eff-card {
        text-align: center !important;
        align-items: center !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .eff-card ul {
        text-align: left !important;
        display: inline-block;
        margin: 0 auto;
        padding-left: 0;
    }

    .eff-card ul li {
        text-align: left !important;
        padding-left: 1.2rem;
    }

    /* Container padding for mobile to prevent edge hugging */
    .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
        width: 100vw !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* Fix Canvas size on mobile */
    .text-with-canvas {
        flex-direction: column !important;
        gap: 1.5rem !important;
        width: 100% !important;
    }

    .text-content {
        width: 100% !important;
        flex: none !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .canvas-container {
        width: 100% !important;
        height: 250px !important;
        flex: none !important;
        margin-top: 1rem !important;
    }

    /* Global table scroll for mobile */
    .table-scroll-wrapper,
    .roadmap-wrapper {
        width: calc(100% + 3rem) !important;
        /* Make it full width ignoring container padding */
        margin-left: -1.5rem !important;
        /* Pull left to edge */
        margin-right: -1.5rem !important;
        /* Pull right to edge */
        padding-left: 1.5rem;
        /* Add inner padding instead */
        padding-right: 1.5rem;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 2rem !important;
        box-sizing: border-box;
    }
    .dt-table-container {
        margin-bottom: 2rem !important;
    }

    .styled-table {
        min-width: 500px; /* Ensure table requires scrolling instead of squishing text */
        font-size: 0.85rem;
    }

    .styled-table th, .styled-table td {
        padding: 10px 12px;
    }
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}
.status-badge.positive {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

/* Удаление всех иконок (нейросетевых и прочих векторных/эмодзи) со всего сайта */
.bench-icon,
.trend-icon,
.card-icon-svg,
.card-icon,
.adv-icon,
.check-icon {
    display: none !important;
}

/* --- FOOTER STYLING --- */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 4rem;
    position: relative;
    z-index: 10;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 800px;
}

.footer-logo {
    height: 70px;
    margin-bottom: 0;
    opacity: 0.9;
}

.footer-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: left;
    margin: 0;
}

.footer-links {
    width: 100%;
}

.footer-links h4 {
    display: none;
    /* Убираем заголовок "НАВИГАЦИЯ" как просили на аудио */
}

.footer-contact h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2rem;
}

.footer-links a,
.footer-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #ffffff;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.footer-bottom {
    border-top: 1px solid rgba(197, 168, 124, 0.1);
    padding: 2rem 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin: 0;
}

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
    }

    .footer-desc {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-links ul {
        align-items: center;
    }

    .footer-links a:hover,
    .footer-contact a:hover {
        transform: translateY(-2px);
    }
}


@media (max-width: 480px) {
    .hero-title {
        font-size: 1.2rem !important;
    }

    .logo-image {
        height: 30px;
    }
}


/* =========================================
   IMPLEMENTATION TIMELINE & ACCORDION
   ========================================= */

/* Timeline Navigation */
.timeline-nav-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 2rem auto 4rem auto;
    max-width: 800px;
    padding: 0 1rem;
}

.timeline-line {
    position: absolute;
    top: 15px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: rgba(197, 168, 124, 0.3);
    z-index: 1;
}

.timeline-point {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-align: center;
}

.timeline-point:hover {
    transform: translateY(-5px);
}

.timeline-dot {
    width: 30px;
    height: 30px;
    background: #000000;
    border: 3px solid rgba(197, 168, 124, 0.5);
    border-radius: 50%;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.timeline-point.active .timeline-dot,
.timeline-point:hover .timeline-dot {
    background: var(--primary-gold);
    border-color: #fff;
    box-shadow: 0 0 15px var(--primary-gold);
}

.timeline-label {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.timeline-point.active .timeline-label,
.timeline-point:hover .timeline-label {
    color: var(--primary-gold-bright);
}

@media (max-width: 600px) {
    .timeline-nav-container {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20px;
        margin-top: 1rem;
    }

    .timeline-line {
        top: 20px;
        bottom: 20px;
        left: 33px;
        width: 3px;
        height: auto;
        right: auto;
    }

    .timeline-point {
        flex-direction: row;
        margin-bottom: 2rem;
    }

    .timeline-dot {
        margin-bottom: 0;
        margin-right: 1rem;
    }

    .timeline-label {
        text-align: left;
    }
}

/* Accordion */
.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(197, 168, 124, 0.2);
    border-radius: 8px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s ease;
}

.accordion-item:hover {
    border-color: rgba(197, 168, 124, 0.5);
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.accordion-header:hover,
.accordion-header.active {
    background: rgba(197, 168, 124, 0.1);
}

.accordion-icon {
    font-size: 1.5rem;
    color: var(--primary-gold);
    transition: transform 0.3s ease;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.4s ease;
    padding: 0 1.5rem;
    opacity: 0;
}

.accordion-body ul {
    list-style: none;
    padding-left: 1.5rem;
}

.accordion-body ul li {
    position: relative;
    margin-bottom: 0.5rem;
}

.accordion-body ul li::before {
    content: "▹";
    position: absolute;
    left: -1.5rem;
    color: var(--primary-gold);
}

/* Checkpoints */
.checkpoint-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.checkpoint-item {
    display: flex;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.02);
    padding: 1.2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-red);
    transition: transform 0.3s ease;
}

.checkpoint-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.05);
}

.cp-marker {
    width: 16px;
    height: 16px;
    background: var(--accent-red);
    border-radius: 50%;
    margin-right: 1.5rem;
    margin-top: 4px;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

.cp-content strong {
    color: #fff;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.3rem;
}

.cp-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* ==========================================================================
   CYBERPUNK DIGITAL TWIN DASHBOARD
   ========================================================================== */
.cyber-dashboard-section {
    padding: 2rem 0 1rem;
    color: #e0e0e0;
}

.cyber-dashboard {
    position: relative;
    width: 100%;
    height: 700px;
    background: #0a0a0a;
    border: 1px solid rgba(197, 168, 124, 0.2);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 50px rgba(197, 168, 124, 0.03);
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    margin-bottom: 1rem;
}

/* Метрики в углах */
.cyber-metric {
    position: absolute;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(197, 168, 124, 0.2);
    padding: 10px 15px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.cyber-metric.top-left {
    top: 20px;
    left: 20px;
    border-left: 3px solid #C5A87C;
}

.cyber-metric.top-right {
    top: 20px;
    right: 20px;
    border-right: 3px solid rgba(255, 255, 255, 0.4);
    text-align: right;
}

.cyber-metric.bottom-left {
    bottom: 20px;
    left: 20px;
    border-left: 3px solid #C5A87C;
}

.cyber-metric.bottom-right {
    bottom: 20px;
    right: 20px;
    border-right: 3px solid #ff3333;
    text-align: right;
}

.metric-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(197, 168, 124, 0.2);
}

/* Центральная карта */
.cyber-map-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cyber-map-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(197, 168, 124, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(197, 168, 124, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    opacity: 0.5;
    transform: perspective(1000px) rotateX(45deg) scale(1.5);
    transform-origin: top center;
}

/* Маршруты SVG */
.cyber-routes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.route-planned {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 3;
    stroke-dasharray: 10 10;
    opacity: 0.6;
}

.route-ai {
    fill: none;
    stroke: #C5A87C;
    stroke-width: 4;
    stroke-dasharray: 15 15;
    animation: dashAnim 2s linear infinite;
    filter: drop-shadow(0 0 8px rgba(197, 168, 124, 0.6));
    display: none;
    /* Скрыто по умолчанию */
}

@keyframes dashAnim {
    to {
        stroke-dashoffset: -30;
    }
}

/* Техника и геозоны */
.cyber-entity {
    position: absolute;
    z-index: 5;
    cursor: pointer;
    transform: translate(-50%, -50%);
}

.entity-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    position: relative;
    box-shadow: 0 0 10px #fff;
}

.entity-dot.accent {
    background: #C5A87C;
    box-shadow: 0 0 15px #C5A87C;
}

.entity-dot.light {
    background: #e0e0e0;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.entity-icon {
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(197, 168, 124, 0.5);
}

.pulse {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    border-radius: 50%;
    border: 2px solid inherit;
    animation: pulseRing 2s infinite ease-out;
}

.entity-dot.accent .pulse {
    border-color: #C5A87C;
}

.entity-dot.light .pulse {
    border-color: rgba(255, 255, 255, 0.5);
}

@keyframes pulseRing {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* HUD-плашки (Всплывающие) */
.cyber-hud {
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: max-content;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(197, 168, 124, 0.3);
    border-radius: 6px;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8), 0 0 15px rgba(197, 168, 124, 0.1);
    pointer-events: none;
    z-index: 100;
}

.cyber-entity:hover .cyber-hud {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.cyber-hud.right {
    left: 150%;
    bottom: 50%;
    transform: translateY(50%) translateX(-10px);
}

.cyber-entity:hover .cyber-hud.right {
    transform: translateY(50%) translateX(0);
}

.hud-header {
    background: rgba(197, 168, 124, 0.15);
    border-bottom: 1px solid rgba(197, 168, 124, 0.3);
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
}

.hud-body {
    padding: 10px 12px;
    font-size: 0.85rem;
    line-height: 1.6;
}

.hud-body p {
    margin: 0 0 4px 0;
    color: #aaa;
}

.hud-body p span {
    color: #fff;
    font-weight: 500;
}

.text-accent {
    color: #C5A87C !important;
    text-shadow: 0 0 8px rgba(197, 168, 124, 0.4);
}

.text-light {
    color: #e0e0e0 !important;
}

.text-red {
    color: #ff3333 !important;
    text-shadow: 0 0 8px rgba(255, 51, 51, 0.4);
}

.hud-icon {
    display: inline-block;
    width: 20px;
    text-align: center;
}

/* Геозоны */
.cyber-zone {
    position: absolute;
    border: 2px dashed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 3;
    pointer-events: none;
    transform: translate(-50%, -50%);
    text-align: center;
    overflow: hidden;
}

.cyber-zone::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
    z-index: -1;
}

.risk-zone {
    border-color: #ff3333;
    background: rgba(255, 51, 51, 0.1);
    color: #ff3333;
    box-shadow: inset 0 0 20px rgba(255, 51, 51, 0.2);
    transition: all 0.3s ease;
}

.risk-zone::before {
    background-image: repeating-linear-gradient(to right, #ff3333 0, #ff3333 2px, transparent 2px, transparent 10px);
}

.gold-zone {
    border-color: #C5A87C;
    background: rgba(197, 168, 124, 0.1);
    color: #C5A87C;
}

.gold-zone::before {
    background-image: repeating-linear-gradient(to right, #C5A87C 0, #C5A87C 2px, transparent 2px, transparent 10px);
}

.active-glitch {
    border-color: #ff3333 !important;
    background: rgba(255, 51, 51, 0.25) !important;
    color: #ffffff !important;
    text-shadow: 0 0 10px #ff3333;
    animation: dangerPulse 0.8s infinite alternate;
    z-index: 10 !important;
}

@keyframes dangerPulse {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 15px rgba(255, 51, 51, 0.4);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 0 0 40px rgba(255, 51, 51, 0.9), inset 0 0 30px rgba(255, 51, 51, 0.6);
        border-color: #ff0000 !important;
    }
}

/* AI Engine Panel */
.cyber-ai-panel {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    background: rgba(10, 15, 20, 0.85);
    border: 1px solid rgba(197, 168, 124, 0.3);
    border-radius: 8px;
    padding: 20px;
    backdrop-filter: blur(10px);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(197, 168, 124, 0.05);
}

.cyber-ai-panel h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #fff;
    border-bottom: 1px solid rgba(197, 168, 124, 0.2);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.ai-status {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
}

.ai-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.ai-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ccc;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: left;
}

.ai-btn:hover {
    background: rgba(197, 168, 124, 0.1);
    color: #fff;
    border-color: rgba(197, 168, 124, 0.3);
}

.ai-btn.active {
    background: rgba(197, 168, 124, 0.15);
    border-color: #C5A87C;
    color: #C5A87C;
    box-shadow: inset 0 0 10px rgba(197, 168, 124, 0.2);
}

.ai-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.ai-result-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 8px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.ai-result-item span {
    color: #aaa;
}

.ai-result-item strong {
    color: #fff;
}

.ai-log {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    color: #C5A87C;
    background: #050505;
    border: 1px solid rgba(197, 168, 124, 0.15);
    padding: 10px;
    border-radius: 4px;
    height: 60px;
    overflow-y: hidden;
    line-height: 1.4;
}

/* Архитектура внизу */
.cyber-architecture {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    margin-top: 2rem;
    padding-bottom: 1rem;
    width: 100%;
}

.arch-node {
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 0;
    min-width: 180px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    position: relative;
}

.arch-node::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(197, 168, 124, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    border-radius: inherit;
}

.arch-node:hover::before {
    opacity: 1;
}

.arch-node:hover {
    background: var(--surface-high);
    border-color: var(--primary-gold);
    transform: perspective(1500px) translateY(-15px) translateZ(30px) rotateX(5deg) rotateY(-5deg) scale(1.03) !important;
    box-shadow: -15px 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(197, 168, 124, 0.4), inset 0 0 20px rgba(197, 168, 124, 0.1) !important;
}

.arch-node strong {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.arch-node:hover strong {
    color: var(--primary-gold);
    transform: translateZ(20px);
}

.arch-node small {
    color: #aaa;
    font-size: 0.85rem;
    line-height: 1.4;
}

.arch-arrow {
    flex: 0 0 40px;
    width: 40px;
    height: 2px;
    background: #C5A87C;
    position: relative;
    opacity: 0.8;
}

.arch-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    border-left: 8px solid #C5A87C;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

@media (max-width: 1024px) {
    .cyber-ai-panel {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        margin: 20px auto;
    }

    .cyber-dashboard {
        height: auto;
        min-height: 600px;
    }
}

/* Стили для таблиц */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    color: #ddd;
    text-align: left;
}

.styled-table th {
    padding: 15px 20px;
    background: rgba(197, 168, 124, 0.1);
    color: #C5A87C;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(197, 168, 124, 0.3);
}

.styled-table td {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.styled-table tbody tr:hover td {
    background: rgba(197, 168, 124, 0.05);
}

.styled-table .highlight {
    color: #fff;
    font-weight: 600;
}

@media (max-width: 768px) {
    .cyber-metric {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin: 0 0 10px 0 !important;
        width: 100% !important;
        flex: none !important;
        min-width: 0 !important;
        border: 1px solid rgba(197, 168, 124, 0.3) !important;
        z-index: 10;
        box-sizing: border-box;
    }

    .cyber-metric .metric-label {
        font-size: 0.75rem;
        white-space: normal;
    }

    .cyber-metric .metric-value {
        font-size: 1.2rem;
    }

    .cyber-dashboard {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: auto !important;
        min-height: 0;
        padding: 15px;
        gap: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    #danger-zone-element {
        top: 25vh !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 80% !important;
        max-width: 250px !important;
    }

    .gold-zone {
        top: 5vh !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 80% !important;
        max-width: 250px !important;
    }

    .cyber-map-container {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        padding-top: 50vh !important;
        /* Резервируем место под абсолютную карту */
        min-height: 0 !important;
    }

    #cyber-3d-map,
    .cyber-map-grid {
        height: 50vh !important;
    }

    .cyber-ai-panel {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        right: auto !important;
        transform: none !important;
        width: 100% !important;
        margin: 20px 0 0 0 !important;
        z-index: 10;
    }

    #btn-err {
        bottom: auto !important;
        top: calc(50vh - 70px) !important;
        /* Кнопка располагается внизу самой 3D карты */
    }

    .cyber-architecture {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
        margin-top: 2rem;
    }

    .arch-node {
        min-width: 140px;
        flex: 1 1 40%;
        padding: 15px 10px;
    }

    .arch-arrow {
        display: none;
    }

    .cyber-entity {
        transform: scale(0.8) translate(-50%, -50%);
        /* make dots a bit smaller to fit */
    }

    /* Общая адаптация: Контейнеры и отступы */
    .container {
        padding: 1.5rem 1rem !important;
    }

    .hero-section {
        padding-top: 80px !important;
        min-height: 80vh !important;
    }

    .tab-padding-top {
        padding-top: 80px !important;
    }

    /* Общая адаптация: Шрифты */
    h1,
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    h2,
    .section-header h2 {
        font-size: 1.6rem !important;
        word-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 1.2rem !important;
    }

    /* Общая адаптация: Карточки */
    .eff-card,
    .expertise-card,
    .risk-card,
    .data-card,
    .table-scroll-wrapper {
        padding: 1.5rem !important;
    }

    /* Макеты с canvas (текст + холст) */
    .text-with-canvas {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .text-with-canvas .text-content,
    .text-with-canvas .canvas-container {
        width: 100% !important;
        padding-right: 0 !important;
    }

    /* Сетки */
    .effectiveness-grid,
    .risks-matrix,
    .data-metrics,
    .data-grid,
    .expertise-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Подвал */
    .footer-content {
        flex-direction: column !important;
        text-align: center;
        gap: 1rem;
    }

    /* Таблицы */
    .styled-table th,
    .styled-table td {
        padding: 10px !important;
        font-size: 0.85rem !important;
    }
}/* Appended from index.html (tooltips and tornado bar) */
.tooltip-row { position: relative; cursor: pointer; transition: background 0.3s; }
.tooltip-row:hover { background: rgba(197, 168, 124, 0.05); }
.tooltip-text-box { 
    visibility: hidden; 
    width: 380px; 
    background-color: #121212; 
    color: #fff; 
    text-align: left; 
    border-radius: 8px; 
    padding: 20px; 
    border: 1px solid var(--primary-gold);
    position: absolute; 
    z-index: 100; 
    top: auto;
    margin-top: -20px;
    margin-left: 20px;
    opacity: 0; 
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.9);
    font-size: 0.9rem;
    line-height: 1.5;
    pointer-events: none;
}
.tooltip-row:hover .tooltip-text-box { visibility: visible; opacity: 1; transform: translateY(0); }
.tooltip-text-box strong { display:block; margin-bottom: 8px; color: var(--primary-gold-bright); font-size: 1.1rem; border-bottom: 1px solid rgba(197, 168, 124, 0.3); padding-bottom: 5px;}
.tooltip-text-box .tooltip-sub { display:block; margin-top:10px; font-size:0.8rem; color:var(--text-secondary); font-style:italic; }

.capex-bar-container { background:rgba(255,255,255,0.1); border-radius:10px; width:100%; height:12px; margin-top:5px; overflow:hidden; }
.capex-bar-fill { height:100%; border-radius:10px; background:linear-gradient(90deg, var(--primary-gold), var(--primary-gold-bright)); transition: width 1s ease-out; }

.tornado-bar-wrapper { display:flex; width:100%; height:18px; line-height:18px; border-radius:4px; overflow:hidden; position:relative; background:rgba(0,0,0,0.3);}
.tornado-bar-neg { background:#ff6b6b; text-align:left; padding-left:5px; color:#fff; font-size:0.75rem; white-space:nowrap;}
.tornado-bar-pos { background:#4cd137; text-align:right; padding-right:5px; color:#fff; font-size:0.75rem; white-space:nowrap;}
