﻿.game-field h1,
.game-field h2,
.game-field h3 {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.document-note {
    margin: 40px auto;
    max-width: 800px;
    padding: 20px 30px;
    background-color: #f4f4f4;
    border-left: 6px solid #d32f2f;
    font-family: "Segoe UI", sans-serif;
    color: #333;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

    .document-note h3 {
        margin-top: 0;
        text-align: left;
    }

.note-block {
    margin: 40px auto;
    max-width: 800px;
    padding: 20px 30px;
    background-color: #f8f9fa;
    border-left: 6px solid #2196F3;
    font-family: "Segoe UI", sans-serif;
    color: #333;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    border-radius: 4px;
}

    .note-block h4 {
        margin-top: 0;
        margin-bottom: 15px;
        text-align: left;
        color: #1976D2;
    }

@media (max-width: 768px) {
    .document-note {
        margin: 20px 10px;
        padding: 15px 20px;
    }

    .note-block {
        margin: 20px 10px;
        padding: 15px 20px;
    }
}

.ucc-appendix-container {
    max-width: 1200px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #2c3e50;
}

.ucc-appendix-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #0039A6;
}

    .ucc-appendix-header h2 {
        color: #2c3e50;
        font-size: 2.2em;
        margin-bottom: 10px;
    }

    .ucc-appendix-header .ucc-subtitle {
        font-style: italic;
        color: #7f8c8d;
        font-size: 1.1em;
    }

.ucc-context-intro {
    background: linear-gradient(135deg, #f8f9fa 0%, #ebf1ff 100%);
    border-left: 4px solid #0039A6;
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
    font-size: 1.05em;
}

/* Photo documents 4×4 grid */
.ucc-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 40px 0;
}

.ucc-doc-card {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    aspect-ratio: 1;
}

    .ucc-doc-card:hover {
        transform: translateY(-8px);
        border-color: #0039A6;
        box-shadow: 0 8px 25px rgba(0,57,166,0.3);
    }

/*    .ucc-doc-card img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }*/

    .ucc-doc-card img {
        object-fit: contain;
        aspect-ratio: 1 / 1;
        width: 100%;
        height: auto;
        background-color: #f5f5f5; /* фон для пустых полей */
        border-radius: 6px; /* мягкие углы */
    }

.ucc-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: white;
    padding: 15px 10px 10px;
    font-size: 0.85em;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

/* Placeholder cards */
.ucc-placeholder-card {
    background: #f0f0f0;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9em;
    text-align: center;
    padding: 10px;
}

/* Lightbox */
.ucc-lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow-y: auto;
}

.ucc-lightbox-content {
    position: relative;
    margin: 2% auto;
    padding: 0;
    width: 95%;
    max-width: 1000px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.ucc-lightbox-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    background: rgba(0,0,0,0.7);
    border: none;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

    .ucc-lightbox-close:hover {
        background: rgba(0,0,0,0.9);
    }

.ucc-lightbox-image {
    max-width: 800px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.ucc-lightbox-description {
    padding: 25px 30px;
    background: #f8f9fa;
    border-top: 3px solid #0039A6;
}

    .ucc-lightbox-description h4 {
        margin: 0 0 15px 0;
        color: #0039A6;
        font-size: 1.4em;
        border-bottom: 2px solid #dee2e6;
        padding-bottom: 10px;
    }

    .ucc-lightbox-description p {
        margin: 12px 0;
        line-height: 1.6;
    }

.ucc-historical-note {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

    .ucc-historical-note::before {
        content: "📚 ";
        font-weight: bold;
    }

.ucc-technical-note {
    background: #e8f5e8;
    border-left: 4px solid #4caf50;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

    .ucc-technical-note::before {
        content: "⚙️ ";
        font-weight: bold;
    }

.ucc-context-note {
    background: #e3f2fd;
    border-left: 4px solid #0039A6;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    font-style: italic;
}

    .ucc-context-note::before {
        content: "📋 ";
        font-weight: bold;
    }

/* Responsive */
@media (max-width: 1024px) {
    .ucc-photo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}


@media (max-width: 768px) {
    .ucc-photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .ucc-lightbox-content {
        width: 98%;
        margin: 1% auto;
    }

    .ucc-lightbox-description {
        padding: 20px 15px;
    }

    .ucc-appendix-container {
        margin: 20px 10px;
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .ucc-photo-grid {
        grid-template-columns: 1fr;
    }
}

/* Tooltip wrapper */
.tooltip {
    position: relative; /* needed for absolute positioning of tooltip text */
    cursor: help; /* cursor changes to indicate info/help */
    color: #ddd; /* light text color */
}

    /* Tooltip text (hidden by default) */
    .tooltip .tooltip-text {
        visibility: hidden; /* hidden until hover */
        width: 260px; /* width of tooltip box */
        background-color: #222; /* dark background */
        color: #fff; /* white text */
        text-align: left; /* align text neatly */
        border-radius: 6px; /* rounded corners */
        padding: 8px; /* spacing inside tooltip */
        position: absolute; /* positioned relative to .tooltip */
        z-index: 1; /* sit on top of other content */
        bottom: 125%; /* place tooltip above the text */
        left: 50%; /* centered horizontally */
        transform: translateX(-50%); /* exact centering */
        opacity: 0; /* invisible */
        transition: opacity 0.3s; /* smooth fade-in */
        font-size: 0.85em; /* slightly smaller font */
        line-height: 1.4;
    }

        /* Small arrow under tooltip */
        .tooltip .tooltip-text::after {
            content: "";
            position: absolute;
            top: 100%; /* at the bottom of tooltip */
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: #222 transparent transparent transparent;
        }

    /* Show tooltip when hovering */
    .tooltip:hover .tooltip-text {
        visibility: visible;
        opacity: 1;
    }

figure figcaption {
    color: #000; /* black color instead of gray */
    font-size: 1em; /* normal text size */
    font-style: italic; /* can keep italic if desired */
    text-align: center; /* centered under the image */
    margin-top: 6px; /* small top margin */
}

    /* Tooltip color fix in figcaption */
    figure figcaption .tooltip {
        color: #000;
    }

/*------------------------------------------*/
/* ========== SECOND GALLERY: ENGINEERING POETRY ========== */

.engineering-poetry-container {
    max-width: 1400px;
    margin: 60px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #2c3e50;
}

.engineering-poetry-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 25px;
    border-bottom: 3px solid #34495e;
}

    .engineering-poetry-header h2 {
        color: #2c3e50;
        font-size: 2.4em;
        margin-bottom: 15px;
        font-weight: 300;
    }

.engineering-poetry-subtitle {
    font-style: italic;
    color: #7f8c8d;
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto;
}

/* 6×10 grid for landscapes */
.engineering-poetry-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin: 40px 0;
}

.engineering-poetry-card {
    position: relative;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    aspect-ratio: 4/3;
    background: #f8f9fa;
}

    .engineering-poetry-card:hover {
        transform: translateY(-4px);
        border-color: #34495e;
        box-shadow: 0 6px 20px rgba(52,73,94,0.25);
    }

    .engineering-poetry-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.engineering-poetry-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: white;
    padding: 12px 8px 8px;
    font-size: 0.75em;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* Lightbox for second gallery */
.engineering-poetry-lightbox {
    display: none;
    position: fixed;
    z-index: 2100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.92);
    overflow-y: auto;
}

.engineering-poetry-lightbox-content {
    position: relative;
    margin: 2% auto;
    padding: 0;
    width: 95%;
    max-width: 1000px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.engineering-poetry-lightbox-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    background: rgba(0,0,0,0.8);
    border: none;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2101;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

    .engineering-poetry-lightbox-close:hover {
        background: rgba(0,0,0,0.95);
    }

.engineering-poetry-lightbox-image {
    max-width: 900px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.engineering-poetry-lightbox-description {
    padding: 20px 25px;
    background: #f8f9fa;
    border-top: 3px solid #34495e;
}

    .engineering-poetry-lightbox-description h4 {
        margin: 0 0 12px 0;
        color: #34495e;
        font-size: 1.3em;
        border-bottom: 2px solid #dee2e6;
        padding-bottom: 8px;
    }

    .engineering-poetry-lightbox-description p {
        margin: 10px 0;
        line-height: 1.5;
        font-size: 0.95em;
    }

/* Responsive for second gallery */
@media (max-width: 1200px) {
    .engineering-poetry-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 7px;
    }
}

@media (max-width: 1024px) {
    .engineering-poetry-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
}

@media (max-width: 768px) {
    .engineering-poetry-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }

    .engineering-poetry-container {
        margin: 30px 10px;
        padding: 25px 15px;
    }

    .engineering-poetry-lightbox-content {
        width: 98%;
        margin: 1% auto;
    }

    .engineering-poetry-lightbox-description {
        padding: 15px 12px;
    }
}

@media (max-width: 480px) {
    .engineering-poetry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


.poster-download-section {
    margin-top: 20px;
    text-align: center;
}


.download-poster-btn {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    color: #b8860b; /* Dark gold */
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
}

    .download-poster-btn:hover {
        background: rgba(255, 255, 255, 0.15);
        color: #ffd700; /* Bright gold on hover */
    }

/* --- Pragmatic CTA Block --- */
.pragmatic-cta-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin: 48px auto;
    max-width: 980px;
    border-left: 4px solid #0d6efd;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pragmatic-cta-title {
    color: #1a2b5c;
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 24px;
    line-height: 1.3;
}

.pragmatic-cta-paragraph {
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333;
}

.pragmatic-cta-details-box {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.pragmatic-cta-details-title {
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a2b5c;
    font-size: 1.1rem;
}

.pragmatic-cta-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
    text-align: left;
}

.pragmatic-cta-details-item {
    display: flex;
    align-items: flex-start;
}

.pragmatic-cta-details-checkmark {
    color: #198754;
    font-weight: bold;
    margin-right: 8px;
}

.pragmatic-cta-quote {
    margin: 8px 0 16px;
    font-weight: 600;
    color: #1a2b5c;
    text-align: center;
}

.pragmatic-cta-offer {
    background: #fff8e6;
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid #ffc107;
    margin-bottom: 16px;
    font-style: italic;
}

.pragmatic-cta-button {
    background: #0d6efd;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
    transition: background 0.3s;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.2);
    text-align: center;
    text-decoration: none;
}

    .pragmatic-cta-button:hover {
        background: #0b5ed7;
    }

.pragmatic-cta-note {
    text-align: center;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 12px;
    margin-bottom: 0;
}
/*=====================================================*/

/* === UCC Manifesto CTA === */
.ucc-manifesto {
    margin: 4rem auto;
    padding: 2.5rem;
    max-width: 980px;
    border-top: 2px solid #333;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ucc-manifesto__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 1.5rem 0;
    line-height: 1.3;
}

.ucc-manifesto__lead,
.ucc-manifesto__text {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.ucc-manifesto__card {
    background: #ffffff;
    border: 2px solid #d1d5db;
    padding: 2.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.ucc-manifesto__card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 1.5rem 0;
}

.ucc-manifesto__card-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 2rem;
}

.ucc-manifesto__btn {
    display: inline-block;
    background-color: #b71c1c;
    color: #fff;
    padding: 1.2rem 3rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.3rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 4px 8px rgba(183, 28, 28, 0.3);
}

    .ucc-manifesto__btn:hover,
    .ucc-manifesto__btn:focus {
        transform: translateY(-2px);
        background-color: #9a1717;
        box-shadow: 0 6px 12px rgba(183, 28, 28, 0.35);
    }

.ucc-manifesto__hint {
    font-size: 0.9rem;
    color: #718096;
    margin-top: 1.5rem;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .ucc-manifesto {
        padding: 1.5rem;
        margin: 2rem 10px;
    }

    .ucc-manifesto__title {
        font-size: 2rem;
    }

    .ucc-manifesto__lead,
    .ucc-manifesto__text {
        font-size: 1.1rem;
    }
}

.pragmatic-cta-offer {
    padding: 1em 1.5em; /* Увеличит отступы вокруг текста. Можно подобрать значения по вкусу. */
    font-style: italic; /* Сделает текст курсивным, придавая ему вид цитаты или вывода. */
}