@import url('normalize.css');

/* Header Base */
.header {
    font-family: 'Manrope', sans-serif;
    background: rgba(0, 0, 0, 0.25);
    /* Прозрачный фон с затемнением */
    backdrop-filter: blur(12px);
    /* Эффект матового стекла/зеркала */
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    /* Белый текст */
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
    /* Тонкая полоска снизу */
    transition: transform 0.4s ease, background 0.4s ease;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1920px;
    margin: 0 auto;
    padding: 15px 30px;
    height: 90px;
    box-sizing: border-box;
}

/* Logo */
.header__brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.header__brand svg {
    height: 75%;
    width: auto;
    /* Убеждаемся, что цвет берется от родителя */
    fill: currentColor;
    stroke: currentColor;
}

/* Navigation */
.header__nav {
    display: flex;
    gap: 40px;
    flex-grow: 1;
    justify-content: flex-end;
    margin-right: 40px;
}

.header__link {
    text-decoration: none;
    color: transparent;
    /* Text is handled by pseudo-elements */
    font-weight: 500;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0.05em;
    position: relative;
    display: inline-block;
    overflow: hidden;
    line-height: 1.2;
}

.header__link::before,
.header__link::after {
    content: attr(data-text);
    position: absolute;
    width: 100%;
    left: 0;
    transition: transform 0.3s ease;
}

.header__link::before {
    top: 0;
    color: #ffffff;
    transform: translateY(0);
}

.header__link::after {
    top: 100%;
    color: rgba(255, 255, 255, 0.7);
    transform: translateY(0);
}

.header__link:hover::before {
    transform: translateY(-100%);
}

.header__link:hover::after {
    transform: translateY(-100%);
}

.header__link:hover::after {
    width: 100%;
}

/* Controls (Right side) */
.header__controls {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header__phone {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
}

/* Social Icons */
.header__socials {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-icon {
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: color 0.3s ease, transform 0.2s;
}

.social-icon:hover {
    transform: translateY(-2px);
}

.social-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Hover colors for social icons */
.social-icon--wa:hover {
    color: #25D366;
    /* WhatsApp Green */
}

.social-icon--ig:hover {
    color: #E1306C;
    /* Instagram Pink */
}

.social-icon--fb:hover {
    color: #1877F2;
    /* Facebook Blue */
}

.social-icon--yt:hover {
    color: #FF0000;
    /* YouTube Red */
}

.social-icon svg {
    width: 100%;
    height: 100%;
}

/* Mobile Call Icon */
.header__mobile-call {
    display: none;
    color: #ffffff;
    width: 24px;
    height: 24px;
}

/* Burger Button */
.header__burger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Removed fixed width/height to let SVG dictate or fit content */
    padding: 0;
    color: #ffffff;
}

.header__burger-btn svg {
    display: block;
}

/* Legacy styles removed or hidden if necessary, but we replaced the HTML so .burger-line is gone from DOM. 
   We can remove the CSS rule for .burger-line or just leave it unused. 
   I will replace the whole block effectively. */


/* --- Mobile Menu Overlay --- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background-color: var(--color-bg-light-grey);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    color: #000;
    /* Внутри мобильного меню текст темный */
}

.mobile-menu.is-open {
    transform: translateX(0);
}

.mobile-menu__header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.mobile-menu__close {
    background: none;
    border: none;
    cursor: pointer;
    color: #000;
    padding: 5px;
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.mobile-menu__nav a {
    text-decoration: none;
    color: #000;
    font-size: 24px;
    font-weight: 500;
}

.mobile-menu__footer {
    border-top: 1px solid #ccc;
    padding-top: 20px;
}

.mobile-menu__phone {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    margin-bottom: 5px;
}

.mobile-menu__subtext {
    font-size: 12px;
    color: #666;
}

.mobile-menu__address {
    margin-top: 15px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 20px;
    font-weight: 400;
}

.mobile-menu__address a {
    transition: opacity 0.3s ease;
}

.mobile-menu__address a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.mobile-menu__socials {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.mobile-menu__socials .social-icon {
    color: #333;
    /* Dark color for light background */
    width: 32px;
    height: 32px;
    transition: color 0.3s ease, transform 0.2s;
}

.mobile-menu__socials .social-icon:hover {
    transform: translateY(-2px);
}

.mobile-menu__socials .social-icon--wa:hover {
    color: #25D366;
}

.mobile-menu__socials .social-icon--ig:hover {
    color: #E1306C;
}

.mobile-menu__socials .social-icon--fb:hover {
    color: #1877F2;
}

.mobile-menu__socials .social-icon--yt:hover {
    color: #FF0000;
}

/* --- Media Queries --- */

@media (max-width: 1100px) {

    /* Скрываем десктопное меню, телефон и соцсети */
    .header__nav,
    .header__phone,
    .header__socials {
        display: none;
    }

    /* Показываем мобильную трубку */
    .header__mobile-call {
        display: block;
    }

    .header__container {
        padding: 15px 20px;
        height: 70px;
    }
}

/* Состояния хедера */
.header.header--solid {
    background: #1f1f1f;
    /* Возвращаем непрозрачный фон */
    backdrop-filter: none;
}

.header.header--hidden {
    transform: translateY(-100%);
}

/* Language Selector */
.header__lang {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-select {
    appearance: none;
    /* Убираем стандартную стрелочку браузера для кастомизации при желании, но пока оставим простую стилизацию */
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 6px 30px 6px 10px;
    /* Больше отступа справа для своей стрелочки */
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    text-transform: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 14px;
}

.lang-select:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.lang-select:focus {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.lang-select option {
    background-color: #1f1f1f;
    color: #ffffff;
    padding: 10px;
}