/* ==========================================================================
Общие стили
========================================================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 0;
    background-color: rgb(24, 17, 27);
    color: #e0dfdc;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2 {
    text-align: center;
    color: #ecbdbd;
    margin: 0.5em 0;
}

p {
    text-indent: 20px;
    margin: 0.5em 0;
}

/* ==========================================================================
Шапка сайта (Header)
========================================================================== */
.header {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5));
    padding: 15px;
    text-align: center;
    font-size: clamp(18px, 5vw, 22px);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #a19079;
    position: relative;
}

.header-logo {
    position: absolute;
    top: 10px;
    left: 20px;
}

.header-logo-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    vertical-align: middle;
}

/* ==========================================================================
Навигация (Navigation)
========================================================================== */
.nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background: rgba(20, 20, 20, 0.85);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.nav a {
    color: #d4c2a8;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    -webkit-transition: background 0.3s;
    transition: background 0.3s;
    font-weight: bold;
    font-size: clamp(14px, 4vw, 16px);
}

.nav a:hover {
    background: #a19079;
    color: #fff;
}

/* ==========================================================================
Основной контент (Content)
========================================================================== */
.content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 15px;
    background: rgba(15, 15, 15, 0.8);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

/* ==========================================================================
Вступительная секция (Intro)
========================================================================== */
.intro {
    background: url('bg-main.jpg') no-repeat center center/cover;
    min-height: 50vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    color: #fff;
    -webkit-transition: background 0.5s ease-in-out;
    transition: background 0.5s ease-in-out;
}

.intro-conteiner {
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    max-width: 90%;
}

.intro-conteiner h1 {
    font-size: clamp(24px, 6vw, 32px);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.intro-conteiner h2 {
    font-size: clamp(18px, 5vw, 24px);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* ==========================================================================
Секция с информацией (Info Block)
========================================================================== */
.info-block {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    border-radius: 10px;
    background: rgba(15, 15, 15, 0.8);
    border: 2px solid #d2b48c;
    margin: 20px auto;
    max-width: 1200px;
    overflow: hidden;
}

.image-side, .video-container {
    width: 100%;
    min-height: 200px;
}

.image-side img {
    width: 100%;
    height: auto;
    -o-object-fit: cover;
    object-fit: cover;
    display: block;
}

.text-side {
    padding: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

.text-side h2 {
    font-size: clamp(20px, 5vw, 24px);
    margin-bottom: 10px;
    border-bottom: 1px solid #a19079;
    padding-bottom: 8px;
}

.text-side h1 {
    font-family: 'Garamond', 'Times New Roman', serif;
    font-size: clamp(22px, 6vw, 28px);
    color: #5a3e1b;
    border-bottom: 1px solid #d2b48c;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.text-side p {
    font-size: clamp(14px, 4vw, 16px);
}

.text-side button {
    background-color: #320b86;
    color: #e0dfdc;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    -webkit-transition: background-color 0.3s;
    transition: background-color 0.3s;
}

.text-side button:hover {
    background-color: #4b1ca9;
}

.text-side blockquote {
    font-style: italic;
    color: #c9b8a8;
    border-left: 4px solid #a19079;
    padding-left: 10px;
    margin: 1em 0;
    background: rgba(60, 50, 70, 0.3);
}

.video-container iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    border: 5px solid #444;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
Карта
========================================================================== */
#map {
    height: 400px;
    width: 100%;
    z-index: 0;
}

/* ==========================================================================
Футер
========================================================================== */
.footer__desc-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.footer__about, .footer__links, .footer__social {
    width: 100%;
    margin-bottom: 20px;
}

.footer h4 {
    color: #676770;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.footer__desc li {
    position: relative;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #D5D5E0;
}

.footer__desc li a {
    color: #668CAD;
    font-size: 14px;
    text-decoration: none;
}
.footer__desc li a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer__social img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

.footer__copy {
    text-align: center;
    padding: 10px 0;
    background: #383838;
    color: #9E9E9E;
    font-size: 14px;
}

/* ==========================================================================
Кнопка прокрутки вверх
========================================================================== */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 1000;
    font-size: 20px;
    line-height: 40px;
    text-align: center;
    -webkit-transition: opacity 0.3s;
    transition: opacity 0.3s;
}

.scroll-top.show {
    display: block;
    opacity: 1;
}

/* ==========================================================================
Медиа-запросы для мобильных устройств
========================================================================== */
@media (min-width: 768px) {
    .info-block {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
        -webkit-box-align: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
    }

    .image-side, .video-container, .text-side {
        -webkit-box-flex: 1;
        -ms-flex: 1;
        flex: 1;
        min-width: 0;
    }

    .footer__desc-container {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }

    .footer__about, .footer__links, .footer__social {
        width: 30%;
        margin-bottom: 0;
    }

    .intro {
        min-height: 80vh;
    }

    .header {
        padding: 20px;
        font-size: 26px;
    }

    .nav a {
        padding: 10px 20px;
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .intro-conteiner h1 {
        font-size: clamp(20px, 8vw, 28px);
    }

    .intro-conteiner h2 {
        font-size: clamp(16px, 6vw, 20px);
    }

    .text-side h1, .text-side h2 {
        font-size: clamp(18px, 6vw, 22px);
    }

    .nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 200px;
        height: 100%;
        background: rgba(20, 20, 20, 0.95);
        flex-direction: column;
        padding: 20px;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav.active {
        display: flex;
        transform: translateX(0);
    }

    .nav a {
        width: 100%;
        text-align: center;
        padding: 10px;
        font-size: 14px;
        color: #d4c2a8;
        border-bottom: 1px solid #a19079;
    }

    .nav a:hover {
        background: #a19079;
        color: #fff;
    }

    .hamburger {
        display: block;
        position: fixed;
        top: 15px;
        right: 15px;
        width: 30px;
        height: 20px;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 3px;
        background: #d4c2a8;
        margin-bottom: 5px;
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    #map {
        height: 300px;
    }

    .header-logo-image {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 12px;
    }

    .header {
        font-size: clamp(16px, 4vw, 18px);
        padding: 10px;
    }

    .header-logo-image {
        width: 25px;
        height: 25px;
    }

    .nav {
        width: 160px;
    }

    .nav a {
        font-size: 12px;
        padding: 8px;
    }

    .hamburger {
        width: 25px;
        height: 18px;
    }

    .hamburger span {
        height: 2px;
        margin-bottom: 4px;
    }

    .intro-conteiner h1 {
        font-size: clamp(18px, 7vw, 24px);
    }

    .intro-conteiner h2 {
        font-size: clamp(14px, 5vw, 18px);
    }

    .text-side h1, .text-side h2 {
        font-size: clamp(16px, 5vw, 20px);
    }

    .text-side p {
        font-size: clamp(12px, 3vw, 14px);
    }

    .text-side button {
        padding: 8px 15px;
        font-size: 14px;
    }

    #map {
        height: 250px;
    }

    .footer h4 {
        font-size: 14px;
    }

    .footer__desc li a {
        font-size: 12px;
    }

    .footer__social img {
        width: 18px;
        height: 18px;
    }

    .footer__copy {
        font-size: 12px;
    }

    .scroll-top {
        width: 35px;
        height: 35px;
        font-size: 18px;
        line-height: 35px;
    }
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not ((-webkit-backdrop-filter: blur(2px)) or (backdrop-filter: blur(2px))) {
    .info-block {
        background: rgba(15, 15, 15, 0.9);
    }
}