/* FS Popup Menu Styles */
.fs-popup-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.fs-popup-menu.active {
    display: block;
}

.fs-popup-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.fs-popup-menu-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: fsPopupSlideIn 0.4s ease-out;
}

@keyframes fsPopupSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -55%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.fs-popup-menu-header {
    background: linear-gradient(333deg, rgba(253, 192, 193, 1) 10%, rgba(192, 80, 97, 1) 100%); 
    color: white;
    padding: 25px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.fs-popup-menu-header h3 {
    margin: 0;
    color: white;
    font-family: 'Montserrat';
    font-size: 35px;
    font-weight: 100;
    letter-spacing: 0.5px;
}

.fs-popup-menu-close {
    background: rgba(255, 255, 255, 0.2)  !important;
    border: none;
    color: white;
    font-family: 'Montserrat';
    font-size: 62px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    font-weight: 100;
}


.fs-popup-menu-close:hover {
   background: rgba(255, 255, 255, 0.3) !important; 
}

 

/* Desktop layout for header-top */
@media (min-width: 769px) {
    .fs-popup-menu-header-top {
        display: flex;
        align-items: center;
        gap: 20px;
    }
}

.fs-popup-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px 35px;
    background-color: #f9fafc;
}

.fs-popup-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.fs-popup-menu-list > li {
    margin-bottom: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eef2f7;
}

.fs-popup-menu-list > li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.fs-popup-menu-list > li > a {
    display: block;
    margin: 0 auto;
    padding: 15px 15px;
    font-size: 18px;
    font-family: 'Montserrat';
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.5px;
    color: white;
    text-decoration: none;
    background: linear-gradient(333deg, rgba(253, 192, 193, 1) 10%, rgba(192, 80, 97, 1) 100%); 
    border-bottom: 2px;
    transition: all 0.3s;
    position: relative;
    padding-right: 50px;
}

/*
.fs-popup-menu-list > li > a:after {
    content: '›';
    position: absolute;
    right: 25px;
    color: #C05061;
    font-size: 24px;
    font-weight: 700;
    transition: transform 0.3s;
}*/

.fs-popup-menu-list > li > a:hover {
    color: #C05061;
    background: linear-gradient(to right, #edf2f7, #ffffff);
}

.fs-popup-menu-list > li > a:hover:after {
    transform: translateX(5px);
}

.fs-popup-menu-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 15px 25px 20px;
    border-top: 1px solid #f0f0f0;
    background-color: white;
}

.fs-popup-menu-list .sub-menu li {
    margin-bottom: 4px;
    position: relative;
    padding-left: 18px;
}

.fs-popup-menu-list .sub-menu li:last-child {
    margin-bottom: 0;
}

.fs-popup-menu-list .sub-menu li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    background-color: #C05061;
    border-radius: 50%;
}

.fs-popup-menu-list .sub-menu a {
    display: block;
    padding: 8px 0;
    font-size: 15px;
    color: #4a5568;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    line-height: 1.3;
    letter-spacing: -0.5px;
    font-family: 'Montserrat';
    font-weight: 500;
}

.fs-popup-menu-list .sub-menu a:hover {
    color: #C05061;
    padding-left: 8px;
}

/* Стили для иконок меню */
.fs-menu-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fs-menu-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
    opacity: 0.8;
}

.fs-popup-menu-list .sub-menu .fs-menu-icon-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fs-popup-menu-list .sub-menu .fs-menu-icon {
    width: 16px;
    height: 16px;
}

/* Состояние, когда открыто меню */
body.fs-popup-menu-open {
    overflow: hidden;
}

/* Адаптивность */
@media (max-width: 768px) {
    .fs-popup-menu-container {
        width: 95%;
        max-height: 90vh;
        border-radius: 12px;
    }
    
    .fs-popup-menu-header {
        padding: 20px 25px;
    }
    
    .fs-popup-menu-header h3 {
        font-size: 22px;
        font-weight: 200;
    }
    
    .fs-popup-menu-content {
        padding: 10px 15px;
    }
    
    .fs-popup-menu-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .fs-popup-menu-list > li > a {
        padding: 18px 20px 18px 20px;
        font-size: 16px;
        padding-right: 45px;
    }
    
    .fs-popup-menu-list > li > a:after {
        right: 20px;
        font-size: 22px;
    }
    
    .fs-popup-menu-list .sub-menu {
        padding: 12px 20px 15px;
    }
    
    .fs-popup-menu-list .sub-menu a {
        font-size: 14px;
        padding: 8px 0;
    }
    
    .fs-menu-icon {
        width: 18px;
        height: 18px;
    }
    
     .fs-popup-menu-list .sub-menu .fs-menu-icon {
         width: 14px;
         height: 14px;
     }
     
     /* Mobile header layout */
     .fs-popup-menu-header {
         flex-direction: column;
         align-items: flex-start;
     }
     
     .fs-popup-menu-header h3 {
         order: 2;
         margin-top: 15px;
     }
     
     .fs-popup-menu-header-top {
         order: 1;
         width: 100%;
         display: flex;
         justify-content: flex-start;
     }
     
     .fs-popup-menu-header-links {
         width: 100%;
         justify-content: flex-start;
     }
     
     .fs-popup-menu-close {
         position: absolute;
         top: 15px;
         right: 15px;
         width: 35px;
         height: 35px;
         font-size: 43px;
         margin: 0;
         z-index: 10;
      }
}

/* Анимация для кнопки меню */
.footer-menu, #footer-menu {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-menu .brz-btn {
    transition: all 0.3s;
    cursor: pointer;
}

.footer-menu .brz-btn:hover {
    background-color: #667eea;
    color: white;
    transform: scale(1.05);
}

/* Подсветка якоря при переходе */
.fs-anchor-highlight {
    animation: fsAnchorHighlight 2s ease;
    position: relative;
}

@keyframes fsAnchorHighlight {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

/* Альтернативная подсветка для текстовых элементов */
.fs-anchor-highlight:not([class*="block"]):not([class*="section"]) {
    background-color: rgba(102, 126, 234, 0.1) !important;
    border-left: 4px solid #667eea !important;
    padding-left: 15px !important;
    transition: all 0.3s ease;
}

/* Стили для ссылок в шапке меню */
.fs-popup-menu-header-links {
    display: flex;
    gap: 20px;
}

.fs-header-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.fs-header-link:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

 /* Стили для иконки Telegram */
 .fs-telegram-icon {
     width: 16px;
     height: 16px;
     vertical-align: middle;
     margin-right: 6px;
     filter: brightness(0) saturate(100%) invert(34%) sepia(49%) saturate(1482%) hue-rotate(310deg) brightness(91%) contrast(91%);
 }

 /* Стили для иконки Home */
 .fs-home-icon {
     width: 16px;
     height: 16px;
     vertical-align: middle;
     margin-right: 6px;
     filter: brightness(0) saturate(100%) invert(34%) sepia(49%) saturate(1482%) hue-rotate(310deg) brightness(91%) contrast(91%);
 }

/* Адаптивность для ссылок в шапке */
@media (max-width: 768px) {
    .fs-popup-menu-header-links {
        gap: 10px;
    }
    .fs-header-link {
        font-size: 12px;
        padding: 4px 8px;
    }
    .fs-telegram-icon {
        width: 14px;
        height: 14px;
        margin-right: 4px;
    }
    .fs-home-icon {
        width: 14px;
        height: 14px;
        margin-right: 4px;
    }
}

/* ============================================
   FS Site Menu Styles (for open website pages)
   ============================================ */

/* Wrapper for relative positioning */
.fs-site-menu-wrapper {
    position: relative;
}

/* Button Trigger */
.fs-site-menu-trigger {
    position: fixed;
    top: 50px;
    right: 50px;
    z-index: 9998;
    cursor: pointer;
    background: #fff;
    border-radius: 4px;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* Align with content container on larger screens */
@media (min-width: 1200px) {
    .fs-site-menu-trigger {
        right: calc(50% - 585px - 50px); /* 1170px container center + 30px offset */
    }
}

.fs-site-menu-trigger:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Hamburger Icon */
.fs-hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fs-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #C05061;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Menu Overlay */
.fs-site-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.fs-site-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Menu Container */
.fs-site-menu-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.fs-site-menu-container.active {
    transform: translateX(0);
}

/* Menu Header */
.fs-site-menu-header {
    padding: 5px 10px 5px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

.fs-site-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.fs-site-menu-close:hover {
    background: #f5f5f5;
    color: #333;
}

/* Menu Content */
.fs-site-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Navigation */
.fs-site-menu-navigation {
margin: -20px 0px -30px 0px;
}


.fs-site-menu-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fs-site-menu-navigation li {
    margin-bottom: 0px;
}

.fs-site-menu-navigation a {
    font-family: Montserrat;
    display: block;
    padding: 12px 5px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.fs-site-menu-navigation a:hover {
    background: #C05061;
    color: white;
}

/* Nested submenus */
.fs-site-menu-navigation ul ul {
    margin-left: 20px;
    margin-top: 5px;
    margin-bottom: 5px;
    border-left: 2px solid #eee;
    padding-left: 10px;
}

.fs-site-menu-navigation ul ul li {
/*    margin-bottom: 8px; */
}

.fs-site-menu-navigation ul ul a {
    padding: 8px 12px;
    font-size: 0.95em;
    color: #666;
}

.fs-site-menu-navigation ul ul a:hover {
    background: #C05061;
    color: white;
}

/* Horizontal divider for menu items */
.fs-menu-divider {
    border-bottom: 1px solid #eee;
    list-style: none;
    height: 1px;
    min-height: 1px;
    overflow: hidden;
}

.fs-menu-divider a {
    display: none !important;
}

.fs-menu-divider:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Automatic dividers between all menu items */
.fs-menu-with-dividers .fs-site-menu-navigation li:not(:last-child) {
    border-bottom: 1px solid #eee;
  /*  padding-bottom: 10px;
    margin-bottom: 10px; */
}

.fs-menu-with-dividers .fs-site-menu-navigation ul ul li:not(:last-child) {
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

/* Contacts Section */
.fs-site-social-section {
    margin-top: 30px;
    padding: 10px 0px 0px 5px;
    border-top: 1px solid #eee;
    text-align: left;
}

.fs-contacts-title {
    font-weight: 300;
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.fs-social-icons-row {
    display: flex;
    justify-content: left;
    gap: 20px;
    margin-bottom: 0px;
}

.fs-social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: transparent;
    transition: all 0.3s ease;
}

.fs-social-icon-link:hover {
    background-color: rgba(192, 80, 97, 0.1);
    transform: translateY(-2px);
}

.fs-social-icon-img {
    width: 40px;
    height: 40px;
    filter: brightness(0) saturate(100%) invert(34%) sepia(49%) saturate(1482%) hue-rotate(310deg) brightness(91%) contrast(91%);
    transition: all 0.3s ease;
}

.fs-social-icon-link:hover .fs-social-icon-img {
     filter: brightness(0) saturate(100%) invert(34%) sepia(49%) saturate(1482%) hue-rotate(310deg) brightness(91%) contrast(91%);
}

.fs-contact-email {
    font-family: Montserrat;
    margin-top: 10px;
}

.fs-email-link {
    color: #C05061;
    text-decoration: none;
    font-size: 0.95em;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.fs-email-link:hover {
    color: #a03c4d;
    border-bottom-color: #C05061;
}

/* No Menu Message */
.fs-site-menu-no-menu {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Scroll Behavior */
.fs-site-menu-trigger.fs-hidden {
    transform: translateY(-100px);
    opacity: 0;
    pointer-events: none;
}

/* General scroll hide class for footer menu */
.fs-scroll-hidden {
    transform: translateY(-100px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger animation state */
.fs-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.fs-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.fs-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Button size for touch */
    .fs-site-menu-trigger {
        padding: 15px;
        top: 15px;
        right: 15px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(5px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .fs-site-menu-trigger:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
    }
    
    .fs-hamburger {
        width: 28px;
        height: 21px;
    }
    
    .fs-hamburger span {
        background: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    }
    
    /* Full-width menu on mobile */
    .fs-site-menu-container {
        width: 100%;
    }
    
    /* Larger touch targets */
    .fs-site-menu-navigation a {
        font-family: Montserrat;
        font-size: 20px;
        padding: 16px 5px;
        min-height: 20px; /* Minimum touch target size */
    }
   
    .fs-site-menu-navigation ul ul a {
         font-size:  1.1em !important;  
    }
    
    /* Adjust close button */
    .fs-site-menu-close {
        width: 44px;
        height: 44px;
        font-size: 28px;
    }
    
    /* Contacts section on mobile */
    .fs-site-social-section {
        margin-top: 25px;
        padding: 15px 0px 0px 5px;
    }
    
    .fs-contacts-title {
        font-family: Montserrat;
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .fs-social-icons-row {
        gap: 15px;
        margin-bottom: 12px;
    }
    
    .fs-social-icon-link {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
    }
    
    .fs-social-icon-img {
        width: 40px;
        height: 40px;
    }
    
    .fs-email-link {
        font-size: 0.9em;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .fs-site-menu-container {
        width: 350px;
    }
}