/* ============================================================
   offices.css — стили только для страницы офисов
   ============================================================ */

/* --- Переменные --- */
:root {
    --clr-primary: hsl(60, 5%, 11%);
    --clr-wood-accent: #6F4E37;
    --clr-gold: #C8A46A;
    --clr-bg-light: #F5F1EA;
    --clr-text-main: #2C2B28;
    --clr-white: #FFFFFF;

    --font-headings: 'Playfair Display', serif;
    --font-subheadings: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
}

/* --- Базовые сбросы --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /*scroll-behavior: smooth;*/
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text-main);
    background-color: var(--clr-bg-light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 70px;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 60px;
    width: 100%;
    box-sizing: border-box;
}

/* Минимальная ширина страницы — 320 пикселей */
body {
    min-width: 320px;
    overflow-x: hidden; /* скрываем горизонтальную прокрутку, если контент вылезает */
}

/* Также можно зафиксировать минимальную ширину у основного контейнера */
.container {
    min-width: 280px; /* или 320px, но с учётом padding — 280px достаточно */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}
a:hover { color: var(--clr-gold); }

ul { list-style: none; }

/* --- ХЕДЕР --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #202020;
    color: var(--clr-white);
    padding: 0;
    width: 100%;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 10px;
}

.logo {
    display: flex;
    align-items: center;
}
.logo img {
    display: block;
    max-height: 60px;   /* подстраивается под высоту хедера */
    width: auto;
    height: auto;
    padding-left: 15px;
}

.nav-links {
    display: flex;
    gap: 30px;
    font-size: 14px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switch {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.lang-switch .arrow { font-size: 10px; }

.btn {
    padding: 14px 24px;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    transition: opacity 0.3s ease;
    display: inline-block;
    text-align: center;
}
.btn:hover { opacity: 0.85; }

.btn-primary {
    background-color: var(--clr-gold);
    color: var(--clr-white);
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}
.burger-menu span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--clr-white);
}

/* ---- 1) HERO (офисы) ---- */
.hero-offices {
    position: relative;
    padding: 120px 0;
    width: 100%;
    background-image: url('images/hero-offices.jpeg');
    background-size: cover;
    background-position: center;
}
.hero-offices::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background: linear-gradient(to right, rgba(30, 30, 27, 0.85) 0%, rgba(30, 30, 27, 0.4) 50%, rgba(30, 30, 27, 0) 100%);*/
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}
.hero-offices .container {
    position: relative;
    z-index: 2;
}
.hero-offices__content {
    max-width: 600px;
    color: var(--clr-white);
}
.hero-offices__subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-gold);
    margin-bottom: 20px;
    display: block;
}
.hero-offices__title {
    font-family: var(--font-headings);
    font-size: 68px;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero-offices__desc {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}
.hero-offices__buttons {
    display: flex;
    gap: 20px;
}
.hero-offices__buttons .btn-outline {
    border: 1px solid #c9a46a;
    color: #c9a46a;
    background-color: transparent;
}
.hero-offices__buttons .btn-outline:hover {
    background-color: rgba(201, 164, 106, 0.1);
}

/* ---- ABOUT (офисы) ---- */
.block-about {
    background-color: var(--clr-bg-light);
    padding: 60px 0;
    text-align: center;
    width: 100%;
}
.block-about h2 {
    font-family: var(--font-headings);
    font-size: 36px;
    color: var(--clr-primary);
    margin-bottom: 20px;
}
.block-about p {
    font-size: 18px;
    color: var(--clr-text-main);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---- 2) REASONS (преимущества офисов) ---- */
.block-reasons {
    width: 100%;
    background-color: #202020;
    padding: 60px 0;
}
.block-reasons__header {
    margin-bottom: 30px;
}
.block-reasons__title {
    font-family: var(--font-headings);
    font-size: 36px;
    color: #ffffff;
    text-align: left;
    margin: 0;
}
.block-reasons__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.block-reasons__card {
    background-color: #202020;
    padding: 30px 20px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.block-reasons__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.block-reasons__icon svg {
    width: 40px;
    height: 40px;
    color: var(--clr-gold);
    margin-bottom: 15px;
}
.block-reasons__card h4 {
    font-family: var(--font-subheadings);
    font-size: 18px;
    font-weight: 600;
    color: var(--clr-white);
    margin-bottom: 8px;
    line-height: 1.2;
}
.block-reasons__card p {
    font-size: 13px;
    color: #aaa;
    line-height: 1.4;
    margin: 0;
}

/* ---- 3) GALLERY (офисы) ---- */
.block-gallery {
    background-color: var(--clr-bg-light);
    padding: 40px 0;
    width: 100%;
}
.block-gallery__title {
    margin-bottom: 20px !important;
}
.block-gallery__slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}
.block-gallery__track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
    /* gap задаётся через JS */
}
.block-gallery__slide {
    flex: 0 0 auto;                    /* ширина задаётся через JS */
    height: 320px;                     /* фиксированная высота */
    overflow: hidden;
    border-radius: 12px;
}
.block-gallery__slide:last-child {
    margin-right: 0;
}
.block-gallery__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;                 /* заполняет контейнер без искажений */
    display: block;
}
.block-gallery__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
    border-radius: 4px;
    transition: background 0.3s;
}
.block-gallery__btn:hover { background: rgba(0,0,0,0.8); }
.block-gallery__btn--prev { left: 15px; }
.block-gallery__btn--next { right: 15px; }

/* ---- 4) TYPES (типы офисов) ---- */
.block-types {
    background-color: var(--clr-white);
    padding: 40px 0;
    width: 100%;
}
.block-types__title {
    margin-bottom: 20px !important;
}
.block-types__row-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}
.block-types__row-bottom {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.block-types__card {
    background-color: var(--clr-bg-light);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.block-types__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.block-types__card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.block-types__info {
    padding: 20px;
}
.block-types__card h3 {
    font-family: var(--font-headings);
    font-size: 20px;
    color: var(--clr-primary);
    margin-bottom: 5px;
}
.block-types__card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}
.block-types__link {
    font-size: 14px;
    font-weight: 600;
    color: var(--clr-gold);
    text-decoration: none;
}

/* --- Горизонтальные карточки в 2 колонки --- */
.block-types__list {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}

.block-types__card {
    background-color: var(--clr-bg-light);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.block-types__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.block-types__card-inner {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 100%;
}

.block-types__image {
    flex: 0 0 50%;
    max-width: 50%;
    aspect-ratio: 4 / 3;  /* альбомная пропорция */
    overflow: hidden;
}

.block-types__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.block-types__info {
    flex: 1;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.block-types__info h3 {
    font-family: var(--font-headings);
    font-size: 24px;
    color: var(--clr-primary);
    margin-bottom: 8px;
}

.block-types__info p {
    font-size: 15px;
    color: #666;
    margin-bottom: 12px;
}

.block-types__link {
    font-size: 15px;
    font-weight: 600;
    color: var(--clr-gold);
    text-decoration: none;
    align-self: flex-start;
}

/* ---- 5) FAQ (офисы) ---- */
.block-faq {
    background-color: var(--clr-bg-light);
    padding: 40px 0;
    width: 100%;
}
.block-faq__title {
    margin-bottom: 20px !important;
}
.block-faq__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}
.block-faq__item {
    background: var(--clr-white);
    padding: 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}
.block-faq__item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.block-faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;          /* было 500 */
    color: black;              /* было var(--clr-primary) */
    font-family: var(--font-subheadings);
    font-size: 20px;
    user-select: none;
}
.block-faq__question button {
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--clr-gold);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.block-faq__answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 0 0 0;
    font-size: 18px;           /* было 14px */
    font-family: var(--font-subheadings);
    color: black;              /* было #555 */
    line-height: 1.6;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    border-top: 1px solid transparent;
    margin-top: 0;
}
.block-faq__item.active .block-faq__answer {
    max-height: 300px;
    opacity: 1;
    padding: 15px 0 5px 0;
    border-top-color: #e0ddd8;
    margin-top: 10px;
}

.block-faq__item.active .block-faq__question button {
    transform: rotate(45deg);
}

/* --- ФОРМА --- */
.form-section {
    width: 100%;
    background-color: #1E1E1B;
    background-image: url('images/form-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 40px 0;
    position: relative;
    border-top: 1px solid #444;
    border-bottom: 1px solid #444;
}
.form-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(30, 30, 27, 0.75);
    z-index: 1;
}
.form-inner-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 60px;
    box-sizing: border-box;
}

.form-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}
.form-text {
    flex: 0 0 20%;
    text-align: left;
    color: var(--clr-white);
}
.form-text h3 {
    font-family: var(--font-headings);
    font-size: 28px;
    margin-bottom: 10px;
}
.form-text p {
    font-size: 14px;
    opacity: 0.8;
}
.form-inputs-group {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}
.form-item-stacked {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 220px;
}
.form-item-stacked input {
    width: 100%;
    height: 44px;
    padding: 0 15px;
    box-sizing: border-box;
    background: var(--clr-white);
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-body);
}
.form-item-stacked .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--clr-white);
    opacity: 0.9;
}
.form-item-stacked .form-check input {
    width: auto;
    padding: 0;
    margin: 0;
    height: auto;
    accent-color: var(--clr-gold);
}
.form-inputs-group > input[type="tel"] {
    width: 220px;
    height: 44px;
    padding: 0 15px;
    box-sizing: border-box;
    background: var(--clr-white);
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-body);
}
.form-inputs-group .btn-primary {
    width: 220px;
    height: 44px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--clr-gold);
    color: #2e2b28;
    border-radius: 4px;
    border: none;
    font-family: var(--font-body);
    cursor: pointer;
    transition: opacity 0.3s ease;
}
.form-inputs-group .btn-primary:hover { opacity: 0.85; }

/* --- ФУТЕР --- */
.footer {
    background-color: #202020;
    color: var(--clr-white);
    padding: 60px 0;
    border-top: 1px solid #333;
    width: 100%;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    font-family: var(--font-headings);
    font-size: 18px;
    margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li { font-size: 14px; opacity: 0.7; }
.footer-col ul li:hover { opacity: 1; color: var(--clr-gold); }
.contact-list li { white-space: nowrap; }
.footer-desc { font-size: 12px; opacity: 0.6; line-height: 1.5; margin-top: 20px; }
.social-links { margin-top: 15px; display: flex; gap: 15px; }
.social-links a { opacity: 0.7; display: inline-flex; align-items: center; justify-content: center; }
.social-links a:hover { opacity: 1; color: var(--clr-gold); }

/* --- Иконки --- */
.icon-svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.icon-svg-sm {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- Анимация --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Заголовки секций --- */
.section-title {
    text-align: center;
    font-family: var(--font-headings);
    font-size: 36px;
    margin-bottom: 25px;
    color: var(--clr-primary);
}

/* Подсветка ошибок */
input.error {
  border-color: #e74c3c !important;
}
.form-check.error {
  outline: 2px solid #e74c3c;
  border-radius: 4px;
  padding: 4px 8px;
}


/* Скрываем <br> на десктопе */
.mobile-break {
    display: none;
}
/* Запрещаем перенос внутри "Elite Tower" */
.nowrap {
    white-space: nowrap;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .container {
        padding: 10px 30px;
    }
    .block-reasons__grid { grid-template-columns: repeat(3, 1fr); }
    .block-types__row-top { grid-template-columns: 1fr 1fr; }
    .block-types__row-bottom { grid-template-columns: 1fr 1fr; }
    .block-faq__grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .block-gallery__slide {
        height: 260px;
    }
}

/* ===== БУРГЕР-МЕНЮ ВКЛЮЧАЕТСЯ ПРИ 950px ===== */
@media (max-width: 950px) {
    .burger-menu {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 85px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: #202020; /* или var(--clr-primary) */
        padding: 20px;
        text-align: center;
        z-index: 1001;
    }
    .nav-links.active {
        display: flex;
    }

    .header .nav-actions .btn-primary {
        display: none !important;
    }

    .header-inner {
        padding: 16px 8px; /* чуть уже, чтобы хедер был шире */
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 50px;
    }
    .logo img {
        padding-left: 15px;
    }
    .container {
        padding: 0 20px;
    }
    .header-inner {
        padding: 16px 4px;
    }
    .header .nav-actions .btn-primary {
        display: none !important;
    }
    .nav-links {
        display: none;
        position: fixed;
        top: 85px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--clr-primary);
        padding: 20px;
        text-align: center;
        z-index: 1001;
    }
    .nav-links.active {
        display: flex;
    }
    .burger-menu {
        display: flex;
    }

    .hero-offices { padding: 140px 0; text-align: left;}
    .hero-offices__title { font-size: 28px; }
    .hero-offices__desc { font-size: 12px; }
    .hero-offices__buttons { max-width: 300px; margin-top: 20px; }
    .hero-offices__buttons .btn { width: 80%; box-sizing: border-box; font-size: 12px;}

    .block-about h2 {
        font-size: 20px;
    }
    .block-about p {
        font-size: 16px;
        padding: 0 15px;
    }

    .block-reasons__grid { grid-template-columns: 1fr 1fr !important; }
    .block-reasons__title { font-size: 20px; text-align: center; }
    .block-reasons__icon img { width: 50px; height: 50px; }

    .section-title { font-size: 20px; }

    .block-types__row-top { grid-template-columns: 1fr !important; }
    .block-types__row-bottom { grid-template-columns: 1fr 1fr !important; }
    .block-faq__grid {
        max-width: 100%;
        padding: 0 10px;
    }
    .block-faq__question {
        font-size: 16px;
    }
    .block-faq__answer {
        font-size: 13px;
    }

    .block-gallery__btn--prev { left: 10px; }
    .block-gallery__btn--next { right: 10px; }
    .block-gallery__slide {
        height: 200px;
    }
    .block-gallery__btn {
        padding: 8px 12px;
        font-size: 16px;
    }

    .block-types__card img { height: 160px; }

    .form-container {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    .form-text { flex: none; text-align: center; }
    .form-text h3 {
        font-size: 20px;
    }
    .form-text p {
        font-size: 12px;
    }    
    .form-inputs-group {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .form-item-stacked {
        align-items: center;
        width: 100%;
    }
    .form-item-stacked input,
    .form-inputs-group > input[type="tel"] {
        width: 100%;
    }
    .form-inputs-group .btn-primary {
        width: 100%;
        height: 44px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .form-item-stacked input,
    .form-item-stacked .btn-primary {
        width: 60%;
        max-width: 300px;
    }
    .form-inner-wrapper {
        padding: 0 20px;
    }
    .form-item-stacked input{
        font-size: 10px;
    }
    .form-check {
        justify-content: center;
    }
    .form-item-stacked .form-check {
        font-size: 12px;
    }


    .footer {
        padding: 40px 0;
    }
    .footer-logo {
        display: flex;
        justify-content: center;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    .contact-list li {
        white-space: normal;
    }
    .social-links {
        justify-content: center;
    }

    .block-types__list {
        grid-template-columns: 1fr;   /* одна колонка */
        gap: 20px;
    }

    .block-types__card-inner {
        flex-direction: column;       /* фото сверху, текст снизу */
    }

    .block-types__image {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        aspect-ratio: 16 / 9;         /* можно оставить альбомную на мобильных */
    }

    .block-types__info {
        padding: 20px;
    }

    .mobile-break {
        display: inline; /* <br> по умолчанию inline, так что работает как перенос */
    }
}

/* ===== Увеличение ширины контента на больших экранах ===== */
@media (min-width: 1600px) {
  body {
    padding-top: 60px;  
  }
    
  .container {
    max-width: 100%;
    padding: 10px 5%; /* гибкие отступы, пропорциональные ширине экрана */
  }

  /* Для hero-блоков — делаем текст шире */
  .hero-content,
  .hero-apartments__content,
  .hero-offices__content,
  .hero-coworking__content {
    max-width: 70%; /* было 600px → теперь занимает 70% от ширины контейнера */
  }

  /* Для amenity сетки — увеличиваем расстояние между элементами */
  .amenities-grid {
    gap: 30px; /* было 20px */
  }

  /* Можно также увеличить размер шрифта заголовков, если нужно */
  .hero-title,
  .hero-apartments__title,
  .hero-offices__title,
  .hero-coworking__title {
    font-size: 76px; /* было 68px */
  }
}

/* --- Поддержка prefers-reduced-motion --- */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .reveal.active {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* --- Базовые стили для плавного появления --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition-property: opacity, transform;
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* transition-duration теперь задаётся через JS */
    transition-delay: 0s;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ----- Переключатель языка (для страницы офисов) ----- */
.lang-switch {
    position: relative;
    cursor: pointer;
    user-select: none;
}
.lang-switch .lang-current {
    display: inline-block;
}
.lang-switch .arrow {
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.2s;
}
.lang-switch.open .arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #202020;
    border: 1px solid #333;
    border-radius: 4px;
    list-style: none;
    padding: 5px 0;
    margin: 5px 0 0;
    min-width: 60px;
    z-index: 1002;
}
.lang-dropdown li {
    padding: 8px 15px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 14px;
    text-align: center;
}
.lang-dropdown li:hover {
    background: #333;
}
.lang-switch.open .lang-dropdown {
    display: block;
}