/* ==========================
   VARIABLES
========================== */
:root {
    --orange: #f47c20;
    --dark: #222;
    --white: #ffffff;
    --light: #f9f9f9;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

/* ==========================
   RESET & BASE
========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
}

a, button {
    transition: all 0.3s ease;
}

button:hover, a:hover {
    transform: translateY(-2px);
}

/* ==========================
   CONTAINER
========================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Основной блок main оранжевый */
main.section {
    background-color: white; /* фон для всего main */
    padding: 60px 20px;      /* отступы сверху/снизу и по бокам */
    display: flex;
    justify-content: center; /* центрирование контейнера по горизонтали */
}

main.section .container {
    background-color: transparent; /* контейнер не перекрывает фон */
    max-width: 900px;             /* ограничиваем ширину текста */
    width: 100%;                  /* адаптивность */
    margin: 0 auto;
    padding: 60px 0;              /* внутренние отступы контейнера */
    color: black;                 /* текст черным */
}

/* Чтобы заголовки были контрастными */
main.section h2, main.section h3, main.section p, main.section li {
    color: black;
}

main.section h2,
main.section h3 {
    text-align: center;       /* горизонтальное центрирование */
    margin: 20px 0;           /* вертикальные отступы сверху/снизу */
    color: black;      /* чтобы заголовки были видны на оранжевом фоне */
}
/* ==========================
   HEADER
========================== */
.header {
    position: fixed;
    width: 100%;
    top: 0;

    /* Прозрачный белый фон с градиентом сверху вниз */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(242, 242, 242, 0.95));

    /* Размытие фона */
    backdrop-filter: blur(10px);

    /* Лёгкая тень снизу */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);

    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    font-weight: 700;
    font-size: 22px;
    color: var(--orange);
    text-decoration: none;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #FFA500; /* если хочешь оранжевый фон */
}

header .logo img {
    height: 60px;
    width: auto;
}

/* ================= NAVIGATION ================= */

.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav a, button {
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.5px;
}


.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--orange);
}


/* ================= LANGUAGE SWITCH ================= */

.lang-switch {
    display: flex;
    border: 1px solid var(--orange);
    border-radius: 30px;
    overflow: hidden;
}

.lang-switch button {
    padding: 6px 14px;
    border: none;
    background: var(--white);
    cursor: pointer;
    font-weight: 600;
    color: var(--orange);
    transition: 0.3s;
}

.lang-switch button.active {
    background: var(--orange);
    color: var(--white);
}
/* ==========================
   BURGER MENU
========================== */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    width: 26px;
    height: 3px;
    background: var(--orange);
    display: block;
}


/* ==========================
   BUTTONS
========================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--white);
    color: var(--orange);
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
}

.btn:hover {
    background: var(--dark);
    color: var(--white);
}

/* ==========================
   FOOTER
========================== */
.footer {
    background: #111;
    color: #fff;
    padding: 60px 8% 30px;
    font-family: var(--font-body);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    margin-bottom: 15px;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    color: #fff;
    font-size: 22px;
}

.footer-socials a:hover {
    color: var(--orange);
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: right;
}

.footer-right a {
    color: #fff;
    text-decoration: none;
}

.footer-right a:hover {
    color: var(--orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--orange);
}

.footer-copy {
    font-size: 14px;
    opacity: 0.7;
}

/* ==========================
   SOCIAL LINKS CENTER
========================== */
.social-links {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-links a {
    color: #fff;
}

/* ==========================
   MODALS
========================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10000;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 50px 40px;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-body h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 25px;
    text-align: center;
}

.modal-body pre {
    white-space: pre-wrap;
    font-family: var(--font-body);
    line-height: 1.7;
    font-size: 15px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--orange);
}

/* ==========================
   MAP WRAPPER
========================== */
.map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 30px;
}

/* ==========================
   RESPONSIVE
========================== */
@media (max-width:768px) {

    .burger {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 25px 0;
        display: none;
        background: var(--white);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        gap: 20px;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
    }

    .footer-left, .footer-right {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

html, body {
    height: 100%; /* чтобы flex работал на весь экран */
    margin: 0;
}

body {
    display: flex;
    flex-direction: column; /* колонки сверху вниз */
    min-height: 100vh;       /* минимум на всю высоту экрана */
}

main.section {
    flex: 1; /* main занимает всё свободное пространство между header и footer */
}