@charset "utf-8";
/* CSS Document */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #0b0c10;
    color: #e5e5e5;
    overflow-x: hidden;
    line-height: 1.7;
}

/* Главный 3D-фокус: превращен в интерактивный холст */
.fixed-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
    background-color: #07080a;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Физическая карта с аппаратным ускорением */
.map-canvas {
    height: 100vh;
    width: auto;
    max-width: none;
    object-fit: contain;
    transform-origin: center center;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.1s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    touch-action: none !important;
}

    .map-canvas:active {
        cursor: grabbing;
    }

/* Базовый светлый оверлей (активен при старте) */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient( to bottom, rgba(11, 12, 16, 0.0) 0%, rgba(11, 12, 16, 0.15) 40%, rgba(11, 12, 16, 0.75) 75%, rgba(11, 12, 16, 0.98) 100% );
    z-index: 2;
    pointer-events: none; /* Пропускает тачи сквозь оверлей к карте */
}

/* Второй, темный оверлей (включается при скролле) */
.overlay-dark {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient( to bottom, rgba(11, 12, 16, 0.75) 0%, rgba(11, 12, 16, 0.55) 40%, rgba(11, 12, 16, 0.85) 75%, rgba(11, 12, 16, 0.98) 100% );
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

    .overlay-dark.scrolled {
        opacity: 1;
    }

/* Панель управления фоновой картой */
.map-controls {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10;
    display: flex;
    gap: 12px;
    transition: opacity 0.3s ease;
}

.control-btn {
    background: rgba(18, 20, 24, 0.85);
    border: 1px solid #2d3135;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #babcbe;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .control-btn:hover {
        color: #4fe3b6;
        border-color: #4fe3b6;
        background: rgba(18, 20, 24, 0.95);
    }

/* Классы для анимации скрытия интерфейса ради просмотра фоновой карты */
.content-container, .overlay, .map-controls:not(.active-view) {
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.hide-content {
    opacity: 0 !important;
    pointer-events: none;
}

.content-container {
    position: relative;
    z-index: 3;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

    /* Элегантный стиль для ссылок внутри текста */
    .content-container a {
        color: #4fe3b6;
        text-decoration: none;
        border-bottom: 1px solid rgba(79, 227, 182, 0.3);
        padding-bottom: 1px;
        transition: all 0.2s ease;
    }

        .content-container a:hover {
            color: #ffffff;
            border-bottom: 1px solid #4fe3b6;
            background: rgba(79, 227, 182, 0.05);
        }

/* Контейнер первого экрана */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between !important;
    padding-top: 110px;             /* Увеличили отступ сверху, чтобы заголовок ушел ниже кнопок */
    padding-bottom: 8vh;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

/* Весь заголовок — белый */
.hero-title {
    width: 100%;
    margin-top: 0;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 800;
    color: #ffffff;                 /* Основной текст белый */
    line-height: 1.15;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: left;
    word-break: break-word;
    /* Легкая темная подложка-тень для идеальной читаемости на фоне неба */
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

/* Нижний блок с текстом */
.hero-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: auto;
}

/* Подзаголовок (THEWORLDONLY ATLAS) — тоже белый */
.hero-title .sub-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;                 /* Убрали синий, теперь чистый белый */
    letter-spacing: 3px;
    margin-bottom: 8px;
    opacity: 0.8;                   /* Легкая прозрачность, чтобы отличаться от главного H1 */
}

.project-meta {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #4fe3b6;
    margin-bottom: 15px;
    font-weight: 600;
}

.lead-text {
    font-size: 1.35rem;
    color: #ffffff;
    font-weight: 400;
    text-shadow: 0 2px 15px rgba(0,0,0,0.9);
    line-height: 1.5;
}

/* Индикатор скролла */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 45px;
    opacity: 0.75;
    transition: opacity 0.3s ease, transform 0.3s ease;
    animation: pulseFade 2.5s infinite ease-in-out;
}

    .scroll-indicator:hover {
        opacity: 1;
        transform: translateY(2px);
    }

.mouse-icon {
    width: 22px;
    height: 38px;
    border: 2px solid #4fe3b6;
    border-radius: 11px;
    position: relative;
    display: block;
    box-shadow: 0 2px 8px rgba(11, 12, 16, 0.8), inset 0 1px 4px rgba(11, 12, 16, 0.5);
}

    .mouse-icon .wheel {
        width: 4px;
        height: 7px;
        background-color: #4fe3b6;
        border-radius: 2px;
        position: absolute;
        top: 6px;
        left: 50%;
        transform: translateX(-50%);
        animation: scrollWheel 1.6s infinite ease-in-out;
        box-shadow: 0 1px 3px rgba(11, 12, 16, 0.8);
    }

.scroll-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #ffffff;
    margin-top: 14px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(11, 12, 16, 0.9), 0 2px 8px rgba(11, 12, 16, 0.6);
}

@keyframes scrollWheel {
    0% {
        top: 6px;
        opacity: 1;
    }

    50% {
        top: 14px;
        opacity: 0.3;
    }

    100% {
        top: 6px;
        opacity: 1;
    }
}

@keyframes pulseFade {
    0%, 100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.data-section {
    padding: 60px 0 100px 0;
}

h2 {
    font-size: 2.2rem;
    color: #ffffff;
    margin-top: 70px;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

p {
    font-size: 1.1rem;
    color: #babcbe;
    margin-bottom: 25px;
}

/* Стили для журнальных 3D-врезок */
.graphic-vignette {
    width: 100%;
    margin: 45px 0;
    background: rgba(18, 20, 24, 0.8);
    border: 1px solid #22252a;
    border-radius: 4px;
    padding: 12px;
}

.vignette-image-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #141619;
    border: 1px solid #22252a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

    .vignette-image-box img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.vignette-actions {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 12, 16, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vignette-image-box:hover .vignette-actions {
    opacity: 1;
}

.action-icon-btn {
    background: rgba(18, 20, 24, 0.9);
    border: 1px solid #3a3f44;
    color: #e5e5e5;
    width: 48px;
    height: 48px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

    .action-icon-btn:hover {
        color: #4fe3b6;
        border-color: #4fe3b6;
        transform: translateY(-2px);
    }

.vignette-caption {
    font-size: 0.85rem;
    color: #888d93;
    margin-top: 12px;
    padding: 0 8px;
    line-height: 1.4;
    border-left: 2px solid #4fe3b6;
}

/* Инфографический блок таблицы CO2 */
.co2-ranking-container {
    width: 100%;
    margin: 40px 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ranking-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.search-box input {
    width: 280px;
    padding: 10px 16px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.2s;
}

    .search-box input:focus {
        outline: none;
        border-color: #555;
    }

.ranking-tabs {
    display: flex;
    gap: 4px;
    background: #1e1e1e;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
}

.tab-btn {
    background: transparent;
    border: none;
    color: #888;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

    .tab-btn:hover {
        color: #fff;
    }

    .tab-btn.active {
        background: #2a2a2a;
        color: #fff;
    }

.table-responsive {
    overflow-x: auto;
    border: 1px solid #222;
    border-radius: 8px;
    background: #111;
}

.co2-data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 15px;
}

    .co2-data-table th,
    .co2-data-table td {
        padding: 14px 20px;
        border-bottom: none !important;
    }

    .co2-data-table th {
        background: #161616;
        color: #aaa;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-weight: 600;
        border-bottom: 1px solid #222 !important;
    }

.col-country {
    width: 35%;
}

.col-bar {
    width: 65%;
}

.country-code {
    color: #555;
    font-size: 12px;
    margin-left: 6px;
    font-weight: normal;
}

.bar-container {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    height: 24px;
    background: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
}

.bar-value {
    height: 100%;
    background: linear-gradient(90deg, #444, #888);
    transition: width 0.4s ease-out;
}

.co2-number {
    position: absolute;
    left: 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.co2-data-table tbody tr:hover {
    background: #151515;
}

.stats-row-container {
    border-bottom: 1px solid #333 !important;
}

/* Action Box & Form Layout */
.action-box {
    background: rgba(18, 20, 24, 0.9);
    border: 1px solid #25282e;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 6px;
    padding: 50px 40px;
    margin-top: 90px;
    text-align: center;
}

.action-box h3 {
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 700;
}

.action-box form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.email-input,
.message-input,
.action-box form .btn {
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
}

.email-input,
.message-input {
    padding: 14px 18px;
    background: #0b0c10;
    border: 1px solid #3a3f44;
    color: #fff;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.email-input:focus,
.message-input:focus {
    border-color: #4fe3b6;
}

.message-input {
    resize: vertical;
    min-height: 90px;
}

.btn {
    padding: 14px 35px;
    background: #4fe3b6;
    color: #0b0c10;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}

/* Системное модальное окно (Лайтбокс) */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 8, 10, 0.95);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 40px;
    touch-action: none !important;
    user-select: none;
    -webkit-user-select: none;
}

    .lightbox.active {
        opacity: 1;
        pointer-events: auto;
    }

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: 1px solid #22252a;
    border-radius: 4px;
    touch-action: none !important;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
    transition: none; /* Мгновенная реакция на тач без задержки */
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: #babcbe;
    cursor: pointer;
    z-index: 101;
    touch-action: auto;
    transition: color 0.2s;
}

    .lightbox-close:hover {
        color: #4fe3b6;
    }

footer {
    margin-top: 120px;
    padding: 40px 0;
    border-top: 1px solid #1f2226;
    text-align: center;
    font-size: 0.85rem;
    color: #585c60;
}

    footer a {
        color: #4fe3b6;
        text-decoration: none;
    }
.map-disclaimer {
    font-size: 0.75rem;
    color: #71787e;
    line-height: 1.4;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
}

/* ==========================================================================
   ИДЕАЛЬНАЯ МОБИЛЬНАЯ АДАПТАЦИЯ (Smartphones & Tablets <= 768px)
   ========================================================================== */

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .content-container {
        padding: 0 16px;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .map-controls {
        top: 12px;
        right: 12px;
        left: 12px;
        width: calc(100% - 24px);
    }

    .control-btn {
        flex: 1;
        justify-content: center;
        padding: 12px 8px;
        font-size: 0.75rem;
        min-height: 44px;
    }


	
.hero-section {
        padding-top: 130px;         /* Даем ещё больше места под плавающие мобильные кнопки */
        padding-bottom: 4vh;
    }

    .hero-title {
        font-size: 1.4rem;          /* Компактный шрифт под 360-390px */
        line-height: 1.25;
    }

    .hero-title .sub-title {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .project-meta {
        font-size: 0.75rem;
        letter-spacing: 2px;
        margin-bottom: 10px;
    }

    .lead-text {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .data-section {
        padding: 30px 0 60px 0;
    }

    h2 {
        font-size: 1.5rem;
        margin-top: 40px;
        margin-bottom: 18px;
        line-height: 1.3;
    }

    p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .graphic-vignette {
        margin: 30px 0;
        padding: 8px;
    }

    .vignette-actions {
        opacity: 1;
        background: linear-gradient(to top, rgba(11, 12, 16, 0.8), transparent);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        justify-content: flex-end;
        padding: 10px;
        align-items: flex-end;
    }

    .action-icon-btn {
        background: rgba(18, 20, 24, 0.95);
        width: 44px;
        height: 44px;
        border-color: #3a3f44;
    }

    .co2-ranking-container {
        margin: 25px 0;
    }

    .ranking-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .search-box input {
        width: 100%;
        height: 44px;
        font-size: 16px;
    }

    .ranking-tabs {
        width: 100%;
        justify-content: space-between;
    }

    .tab-btn {
        flex: 1;
        text-align: center;
        padding: 10px 4px;
        font-size: 0.75rem;
        min-height: 40px;
    }

    .co2-data-table th,
    .co2-data-table td {
        padding: 10px 8px;
    }

    .col-country {
        width: 40%;
        font-size: 0.85rem;
    }

    .col-bar {
        width: 60%;
    }

    .bar-container {
        height: 20px;
    }

    .co2-number {
        font-size: 11px;
        left: 6px;
    }

    .action-box {
        padding: 30px 16px;
        margin-top: 50px;
    }

        .action-box h3 {
            font-size: 1.3rem;
        }
/* Точечные адаптивные правки формы для мобилок */
    .action-box form {
        gap: 12px;
    }

    .email-input {
        height: 48px;
    }

    .action-box form .btn {
        height: 48px;
        margin-top: 0;
    }

    .lightbox {
        padding: 12px;
    }

    .lightbox-close {
        position: absolute;
        top: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(18, 20, 24, 0.8);
        border-radius: 50%;
    }

    .fixed-background {
        pointer-events: auto;
    }

    .map-canvas {
        height: 100vh;
    }
}

/* Глобальное отключение системных конфликтов жестов для модального окна и карты */
.lightbox, .lightbox-img, #map-container, #map-img {
    touch-action: none !important;
    -webkit-user-select: none;
    user-select: none;
}