@import url('https://fonts.googleapis.com/css2?family=Plaster&family=Rubik+80s+Fade&family=Alumni+Sans+SC&display=swap');

/* Root variables: Defines the global color scheme, fonts, and cursor for the entire site */
:root {
    --logo_font: 'Plaster', system-ui, sans-serif;
    --accent_font: 'Rubik 80s Fade', system-ui, sans-serif;
    --basics_font: 'Alumni Sans SC', system-ui, sans-serif;
    --date_font: 'Alumni Sans SC', system-ui, sans-serif;

    --logo_color: rgba(255, 255, 255, 0.85);
    --accent_color: rgba(255, 255, 255, 0.9);
    --basics_color: rgba(255, 255, 255, 0.75);
    --date_color: rgba(255, 255, 255, 0.5);

    --radiation_cursor: url("media/cursor.png") 0 0, auto;
}

/* Scroll settings: Enables smooth snap scrolling between sections for the main container */
html, body {
    height: 100%;
    margin: 0;
    scroll-behavior: smooth;
    overflow-y: auto;
}

main {
    height: 100vh;
    scroll-snap-type: y mandatory;
    overflow-y: auto;
}

.section {
    scroll-snap-align: start;
    min-height: 100vh;
}

.footer {
    scroll-snap-align: start;
    min-height: 100vh;
}

/* Universal reset */
* {
    margin: 0;
    padding: 0;
}

/* Fixed logo section: Styles for logos that remain in place during scroll, with a mix-blend-mode effect */
.fixed-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    isolation: isolate;
    mix-blend-mode: difference;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow: hidden;
}

/* Right fixed logo: Positioned on the right side, used as a menu trigger */
.fixed-logo.right-logo {
    left: auto;
    right: 20px;
    top: 20px;
    cursor: pointer;
}

.fixed-logo.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fixed-logo svg {
    display: block;
    overflow: hidden;
}

.section {
    position: relative;
    min-height: 100vh;
}

/* Noise overlay: Adds a subtle animated noise effect over each section */
.section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url(media/noise.gif) repeat;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

/* Section content layout: Flex container for image and text blocks within a section */
.section-content {
    width: 100%;
    max-width: 1200px;
    padding: 0 80px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.section-image-placeholder {
    flex: 1;
    max-width:600px;
    aspect-ratio: 16 / 9;
    background-color: #bfbfbf;
    border: 2px dashed rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.section-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-text-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 20px;
    height: 100%;
}

/* Hero sections: Full-screen banners with background images and overlays */
.main__hero,
.main__hero2,
.main__hero3,
.main__hero4,
.main__hero5 {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.main__hero {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
        url(media/hero_banner.png) center/cover no-repeat;
}

.main__hero2 {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
        url(media/hero2_banner.png) center/cover no-repeat;
}

.main__hero3 {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
        url(media/hero3_banner.png) center/cover no-repeat;
}

.main__hero4 {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
        url(media/hero4_banner.png) center/cover no-repeat;
}

.main__hero5 {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
        url(media/hero5_banner.png) center/cover no-repeat;
}

.main__hero-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 1000px;
    padding: 0 50px;
    position: relative;
}

.hero-main-block {
    display: flex;
    flex-direction: column;
    position: relative;
}

.hero-title-block {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
    margin-bottom: 30px;
    position: relative;
}

.main__hero-h1 {
    font-family: var(--accent_font);
    color: var(--accent_color);
    font-size: 56px;
    line-height: 1;
    letter-spacing: 2px;
    white-space: nowrap;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.hero-text-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 100%;
}

.hero-text-line {
    font-family: var(--basics_font);
    color: var(--basics_color);
    font-size: 20px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: 0.5px;
    word-break: break-word;
    display: block;
    text-align: left;
}

.hero-date-block {
    display: flex;
    justify-content: flex-end;
    width: auto;
    position: relative;
    left: -140px;
    top: -10px;
}

.hero-date {
    font-family: var(--date_font);
    color: var(--date_color);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 4px;
}


.hero-button-wrapper{
    margin-left: 35px;
}

.hero-button-wrapper,
.hero-button-wrapper2 {
    display: flex;
    align-items: center;
}

/* Button style 1: Square button with a sliding red background on hover */
.button {
    font-family: var(--basics_font);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 22px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    width: 168px;
    height: 168px;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: transparent;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease;
}

.button .button-text {
    position: relative;
    z-index: 2;
}

.button::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0;
    background-color: #ad1717;
    z-index: 1;
    transition: height 0.4s ease;
}

.button:hover::before {
    height: 100%;
}

.button:hover {
    border-color: transparent;
}

/* Button style 2: Taller version of the button for hero sections */
.button2 {
    font-family: var(--basics_font);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 22px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    width: 168px;
    height: 258px;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: transparent;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease;
}

.button2 .button-text {
    position: relative;
    z-index: 2;
}

.button2::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0;
    background-color: #ad1717;
    z-index: 1;
    transition: height 0.4s ease;
}

.button2:hover::before {
    height: 100%;
}

.button2:hover {
    border-color: transparent;
}

/* Light section type 1: Light grey background for narrative sections */
.main__section--type1 {
    background-color: #dedede;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title {
    font-family: var(--accent_font);
    font-size: 42px;
    letter-spacing: 2px;
    color: #111;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

.section-subtitle {
    font-family: var(--basics_font);
    font-size: 22px;
    color: #333;
    max-width: 420px;
    line-height: 1.3;
}

.new-section-text {
    font-family: var(--basics_font);
    font-size: 25px;
    color: var(--basics_color);
    max-width: 700px;
    line-height: 1.3;
}

.old-sections * {
    display: none;
    width: 0px;
    height: 0px;
}

/* Dark section type 2: Black background with white text for contrast */
.main__section--type2 {
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-image-placeholder.dark {
    background-color: #2a2a2a;
    border: 2px dashed rgba(255, 255, 255, 0.15);
}

.dark-block {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    height: 100%;
}

.dark-title {
    color: #ffffff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
    font-family: var(--accent_font);
    font-size: 42px;
    letter-spacing: 2px;
}

.dark-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--basics_font);
    font-size: 22px;
    max-width: 400px;
    line-height: 1.3;
}

.clickable-link {
    color: #dedede;
    background-color: #6c1b1b;
    transition: 0.3s;
    text-decoration: none;
    cursor: pointer;
}

.clickable-link:hover {
    background-color: #bd2121;
}

/* Footer section: Dark background with navigation grid and action buttons */
.footer {
    min-height: 100vh;
    scroll-snap-align: start;
    background-color: #0d0d0d;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 80px;
    box-sizing: border-box;
}

.site-footer {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 80px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-self: stretch;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-nav {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(6, max-content);
    grid-template-rows: repeat(6, auto);
    column-gap: 30px;
    row-gap: 6px;
    grid-auto-flow: column;
}

.footer-nav a {
    font-family: var(--basics_font);
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: 0.1s ease;
    white-space: nowrap;
}

.footer-nav a span {
    color: var(--accent_color);
    display: inline;
}

.footer-nav a:hover {
    color: rgba(255,255,255,0.95);
}

.footer-right {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 168px);
    grid-template-rows: repeat(2, 168px);
    gap: 14px;
}

.footer-button {
    width: 168px;
    height: 168px;
}

/* General modal window styles: Shared styles for all popup modals */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
}

.modal-content {
    position: relative;
    background-color: #1a1a1a;
    margin: 5% auto;
    padding: 30px;
    width: 90%;
    max-width: 1000px;
    border: 2px solid #ad1717;
    box-shadow: 0 0 40px rgba(173, 23, 23, 0.4);
    animation: modalFadeIn 0.2s ease;
    box-sizing: border-box;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #ffffff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.1s ease;
    line-height: 1;
    z-index: 10001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(173, 23, 23, 0.8);
    border-radius: 50%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
    color: #ffffff;
    background-color: #ad1717;
    transform: scale(1.1) rotate(90deg);
}

.modal-body {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.modal-image {
    flex: 0 0 400px;
    height: 300px;
    background-color: #2a2a2a;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 4px;
}

.modal-text {
    flex: 1;
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

.modal-text h2 {
    font-family: var(--accent_font);
    font-size: 42px;
    margin-bottom: 25px;
    color: #ffffff;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-text p {
    font-family: var(--basics_font);
    font-size: 20px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
    font-weight: 400;
}

.modal-text p:last-child {
    margin-bottom: 0;
}

.modal-text .modal-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    border-left: 3px solid #ad1717;
    padding-left: 20px;
    margin-top: 20px;
}
/* Image view modal: Special modal for viewing enlarged images with a caption */
.image-view-modal .modal-content {
    background-color: rgba(0, 0, 0, 0.95);
    border: 2px solid #ad1717;
    max-width: 90vw;
    width: auto;
    padding: 20px;
}

.image-modal-body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-modal-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.image-modal-caption {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 8px 16px;
    font-family: var(--basics_font);
    font-size: 16px;
    border-left: 3px solid #ad1717;
    border-radius: 0 4px 4px 0;
    max-width: 60%;
    text-align: right;
    pointer-events: none;
    backdrop-filter: blur(5px);
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#hidden-content-modal {
    display: none !important;
}

.section-image-placeholder img {
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.section-image-placeholder img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Gallery modal styles: Grid layout for displaying multiple images */
.gallery-modal-content {
    max-width: 1200px;
    width: 95%;
}

.gallery-modal-body {
    flex-direction: column;
    gap: 20px;
    max-height: 80vh;
    overflow-y: auto;
    padding-right: 10px;
}

.gallery-modal-title {
    font-family: var(--accent_font);
    font-size: 42px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 10px 0;
}

.gallery-item {
    background-color: #2a2a2a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(173, 23, 23, 0.3);
    border-color: #ad1717;
}

.gallery-item-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #3a3a3a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 2px solid #ad1717;
}

.gallery-item-caption {
    font-family: var(--basics_font);
    font-size: 18px;
    color: #ffffff;
    padding: 12px 15px;
    text-align: center;
    letter-spacing: 1px;
    background: rgba(0,0,0,0.3);
}

/* Info modal styles: For displaying text-heavy content like sources and contacts */
.info-modal-content {
    max-width: 800px;
}

.info-modal-body {
    flex-direction: column;
    gap: 30px;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 15px;
}

.info-modal-title {
    font-family: var(--accent_font);
    font-size: 42px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 2px;
    position: sticky;
    top: 0;
    background-color: #1a1a1a;
    padding-bottom: 15px;
    z-index: 5;
    border-bottom: 2px solid #ad1717;
}

.info-modal-text {
    font-family: var(--basics_font);
    color: rgba(255, 255, 255, 0.95);
    font-size: 22px;
    line-height: 1.5;
}

.info-modal-text p {
    margin-bottom: 25px;
}

.info-modal-text h3 {
    font-family: var(--accent_font);
    font-size: 32px;
    color: #ad1717;
    margin: 30px 0 15px 0;
    letter-spacing: 1px;
}

.info-modal-text h3:first-of-type {
    margin-top: 0;
}

.info-modal-text ul, .info-modal-text ol {
    margin: 10px 0 20px 30px;
}

.info-modal-text li {
    margin-bottom: 8px;
}

.info-modal-text a {
    color: #ad1717;
    text-decoration: underline;
    transition: color 0.3s;
}

.info-modal-text a:hover {
    color: #e02b2b;
}

/* Content modal styles: For the table of contents with navigation links */
.content-modal-content {
    max-width: 600px;
}

.content-modal-body {
    flex-direction: column;
    gap: 20px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 20px;
}

.content-modal-data {
    width: 100%;
}

.content-title {
    font-family: var(--accent_font);
    font-size: 42px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 2px;
    border-bottom: 2px solid #ad1717;
    padding-bottom: 15px;
}

.content-links-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

.content-links-list a {
    font-family: var(--basics_font);
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 8px 12px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    display: block;
}

.content-links-list a:hover {
    color: #ffffff;
    background-color: rgba(173, 23, 23, 0.2);
    border-left-color: #ad1717;
    padding-left: 20px;
}

.content-links-list a span {
    color: #ad1717;
    font-weight: bold;
    margin-right: 8px;
    display: inline-block;
    min-width: 30px;
}

.content-telegram-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.telegram-button-data {
    font-family: var(--basics_font);
    font-size: 24px;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 30px;
    border: 1px solid #ad1717;
    background-color: rgba(173, 23, 23, 0.2);
    transition: all 0.15s ease;
    display: inline-block;
    letter-spacing: 2px;
}

.telegram-button-data:hover {
    background-color: #ad1717;
}

/* Scrollbar styles: Custom scrollbar for modal content */
.gallery-modal-body::-webkit-scrollbar,
.info-modal-body::-webkit-scrollbar,
.content-modal-body::-webkit-scrollbar {
    width: 8px;
}

.gallery-modal-body::-webkit-scrollbar-track,
.info-modal-body::-webkit-scrollbar-track,
.content-modal-body::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 4px;
}

.gallery-modal-body::-webkit-scrollbar-thumb,
.info-modal-body::-webkit-scrollbar-thumb,
.content-modal-body::-webkit-scrollbar-thumb {
    background: #ad1717;
    border-radius: 4px;
}

.gallery-modal-body::-webkit-scrollbar-thumb:hover,
.info-modal-body::-webkit-scrollbar-thumb:hover,
.content-modal-body::-webkit-scrollbar-thumb:hover {
    background: #e02b2b;
}

/* Responsive design: Adjustments for tablet and mobile viewports */
@media screen and (max-width: 1024px) {

    .section-content {
        flex-direction: column !important;
        padding: 40px 20px !important;
        gap: 30px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .fixed-logo {
        top: 10px !important;
        left: 10px !important;
        transform: scale(0.7) !important;
        transform-origin: top left !important;
    }

    .fixed-logo.right-logo {
        left: auto !important;
        right: 20px !important;
        top: 10px !important;
        transform: scale(0.7) !important;
        transform-origin: top right !important;
        mix-blend-mode: difference;
        cursor: pointer;
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
    }

    .fixed-logo.right-logo:hover {
        transform: scale(0.75) !important;
    }

    .fixed-logo.right-logo.hidden {
        opacity: 0;
        visibility: hidden;
    }

    .section-text-block,
    .dark-block,
    .light-block {
        align-items: flex-start !important;
        text-align: left !important;
        width: 100% !important;
    }

    .section-image-placeholder {
        max-width: 100% !important;
        width: 100% !important;
        order: -1 !important;
    }

    .section-title, .dark-title, .light-title {
        font-size: 36px !important;
        width: 100% !important;
    }
    .section-subtitle, .dark-subtitle, .light-subtitle,
    .new-section-text {
        font-size: 20px !important;
        max-width: 100% !important;
    }

    .main__hero-content {
        flex-direction: column !important;
        gap: 30px !important;
        padding: 20px !important;
        text-align: center !important;
    }

    .hero-main-block {
        width: 100% !important;
    }

    .hero-title-block {
        justify-content: center !important;
    }

    .main__hero-h1 {
        font-size: 42px !important;
        white-space: normal !important;
        text-align: center !important;
    }

    .new-section-text {
        text-align: center !important;
    }

    .hero-button-wrapper2 {
        margin-left: 0 !important;
        justify-content: center !important;
    }

    .button, .button2 {
        max-width: 100% !important;
    }

    .footer {
        padding: 40px 20px 80px 20px !important;
        min-height: auto !important;
    }

    .site-footer {
        flex-direction: column !important;
        gap: 40px !important;
    }

    .footer-left {
        gap: 25px !important;
        width: 100% !important;
    }

    .footer-logo {
        transform: scale(0.8) !important;
        transform-origin: left center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .footer-logo svg {
        margin: 0 auto !important;
    }

    .footer-logo img {
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    .footer-nav {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 16px !important;
        width: 100% !important;
        margin: 20px 0 !important;
    }

    .footer-nav a {
        font-family: var(--basics_font) !important;
        font-size: 24px !important;
        color: rgba(255, 255, 255, 0.9) !important;
        text-decoration: none !important;
        letter-spacing: 0.5px !important;
        transition: 0.1s ease !important;
        text-align: center !important;
        white-space: normal !important;
        padding: 12px 20px !important;
        display: inline-block !important;
        width: auto !important;
        min-width: 200px !important;
        border-bottom: 1px solid rgba(173, 23, 23, 0.3) !important;
    }

    .footer-nav a span {
        color: #ad1717 !important;
        display: inline !important;
        font-weight: bold !important;
    }

    .footer-nav a:hover {
        color: #ffffff !important;
        background-color: rgba(173, 23, 23, 0.2) !important;
        border-radius: 4px !important;
    }

    .footer-right {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    .footer-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
    }

    .footer-button {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        max-width: 220px !important;
        font-size: 20px !important;
        margin: 0 auto !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    }

    .modal-content {
        margin: 10% 20px !important;
        padding: 20px !important;
        width: auto !important;
        max-width: calc(100% - 40px) !important;
        left: 0 !important;
        right: 0 !important;
        box-sizing: border-box !important;
    }

    .modal-body {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .modal-image {
        flex: none !important;
        width: 100% !important;
        height: 200px !important;
    }

    .modal-text h2 {
        font-size: 32px !important;
        margin-bottom: 15px !important;
    }

    .modal-close {
        right: 10px !important;
        top: 10px !important;
        width: 44px !important;
        height: 44px !important;
        font-size: 36px !important;
        background-color: rgba(173, 23, 23, 0.9) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        gap: 15px !important;
    }

    .gallery-modal-title {
        font-size: 32px !important;
        padding-right: 40px !important;
    }

    .info-modal-title {
        font-size: 32px !important;
        padding-right: 40px !important;
    }
    
    .content-modal-content {
        max-width: 90% !important;
    }
    
    .content-title {
        font-size: 32px !important;
        padding-right: 40px !important;
        margin-bottom: 20px !important;
    }
    
    .content-links-list {
        gap: 6px !important;
        margin-bottom: 20px !important;
    }
    
    .content-links-list a {
        font-size: 16px !important;
        padding: 6px 10px !important;
    }
    
    .content-links-list a span {
        min-width: 25px !important;
        font-size: 14px !important;
    }
    
    .telegram-button-data {
        font-size: 20px !important;
        padding: 10px 20px !important;
    }
    
    .content-modal-body {
        padding: 15px !important;
        max-height: 80vh !important;
    }

    @media screen and (min-width: 768px) and (max-width: 1024px) {
        .footer-grid {
            max-width: 400px !important;
        }
        .footer-button {
            max-width: 250px !important;
        }
    }
}

@media screen and (max-width: 600px) {
    .main__hero-h1 {
        font-size: 32px !important;
    }

    .section-title, .dark-title, .light-title {
        font-size: 28px !important;
    }

    .section-subtitle, .dark-subtitle, .light-subtitle,
    .new-section-text {
        font-size: 18px !important;
    }

    .footer-nav a {
        font-size: 22px !important;
        padding: 10px 15px !important;
        min-width: 180px !important;
    }

    .footer-button {
        max-width: 180px !important;
        font-size: 18px !important;
    }

    .modal-image {
        height: 150px !important;
    }

    .modal-text h2 {
        font-size: 28px !important;
    }

    .modal-close {
        width: 40px !important;
        height: 40px !important;
        font-size: 32px !important;
    }
    
    .content-title {
        font-size: 28px !important;
    }
    
    .content-links-list a {
        font-size: 14px !important;
        padding: 5px 8px !important;
    }
    
    .content-links-list a span {
        min-width: 22px !important;
        font-size: 12px !important;
    }
    
    .telegram-button-data {
        font-size: 18px !important;
        padding: 8px 16px !important;
    }
}

/* Mobile content modal: Enhanced styles for the table of contents on small screens */
@media screen and (max-width: 768px) {
    .content-modal-content .content-links-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
    }
    
    .content-modal-content .content-links-list a {
        font-size: 22px !important;
        padding: 15px 20px !important;
        text-align: center;
        border-left: none;
        border-bottom: 2px solid rgba(173, 23, 23, 0.3);
        width: 100%;
        box-sizing: border-box;
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 8px;
        margin: 0;
        line-height: 1.4;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .content-modal-content .content-links-list a span {
        font-size: 20px !important;
        margin-right: 12px;
        min-width: 35px;
    }
    
    .content-modal-content .content-links-list a:hover,
    .content-modal-content .content-links-list a:active {
        background-color: rgba(173, 23, 23, 0.3);
        border-bottom-color: #ad1717;
        padding-left: 20px !important;
    }
    
    .content-modal-content .content-title {
        font-size: 36px !important;
        margin-bottom: 25px;
    }
    
    .content-modal-content .telegram-button-data {
        font-size: 24px !important;
        padding: 15px 30px !important;
        min-height: 70px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
        border-width: 2px;
    }
    
    .content-modal-content .content-telegram-wrapper {
        width: 100%;
        margin-top: 25px;
        padding-top: 20px;
    }
    
    .content-modal-content .content-modal-body {
        padding: 15px 15px 25px 15px;
    }
}

/* Extra small devices: Further adjustments for very narrow viewports */
@media screen and (max-width: 480px) {
    .content-modal-content .content-links-list a {
        font-size: 20px !important;
        padding: 14px 15px !important;
        min-height: 55px;
    }
    
    .content-modal-content .content-links-list a span {
        font-size: 18px !important;
        min-width: 32px;
    }
    
    .content-modal-content .content-title {
        font-size: 32px !important;
    }
    
    .content-modal-content .telegram-button-data {
        font-size: 22px !important;
        padding: 14px 20px !important;
        min-height: 65px;
    }
}

@media screen and (max-width: 768px) {
    html, body {
        scroll-behavior: auto !important;
    }

    main {
        scroll-snap-type: none !important;
    }
}
