/* Header Styles */
header {
    background: #09237C;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 10px;
    z-index: 250;
    border-radius: 0 0 45px 45px;
    margin: 0 20px;
    margin-top: -1px;
    transition: box-shadow 0.3s ease, border-radius 0.3s ease;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

@media (max-width: 1100px) {
    header {
        margin: 0 20px;
        margin-top: -1px;
    }
}

@media (max-width: 768px) {
    header {
        margin: 0 10px;
        margin-top: 0;
        top: 10px;
        position: sticky;
        width: auto;
        left: auto;
        right: auto;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

@media (max-width: 380px) {
    header {
        margin: 0 10px;
        margin-top: -1px;
    }
    
    header .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .header-logo-image-left {
        height: 40px;
    }
}

header.header-rounded-top {
    border-radius: 45px;
    top: 10px !important;
}

@media (max-width: 767px) {
    header {
        border-radius: 45px;
        top: 10px !important;
        margin-top: 0;
    }
    
    header.header-rounded-top {
        top: 10px !important;
    }
}

header .container {
    padding-left: 30px !important;
    padding-right: 30px !important;
    max-width: 100%;
    position: relative;
}

@media (max-width: 1100px) {
    header .container {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }
}

@media (max-width: 768px) {
    header .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}


.header-main {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.625rem 0;
    gap: 2rem;
    position: relative;
    min-height: 6.5rem;
}

@media (max-width: 768px) {
    .header-main {
        padding: 1rem 0;
        justify-content: space-between;
        min-height: 4.5rem;
    }
}


.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease, left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 0 0 auto;
    position: absolute;
    left: 0;
    transform: translateY(-5px);
}

/* Сдвиг логотипа при активном поиске на широких экранах (выше 1400px) */
@media (min-width: 1401px) {
    .header-main.search-active .header-logo {
        left: -320px;
    }
}

@media (max-width: 1400px) {
    .header-main {
        justify-content: center;
        min-height: 5rem;
    }
    
    .header-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%) translateY(-5px);
        margin: 0;
        transition: transform 0.3s ease, left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Сдвиг логотипа при активном поиске на узких экранах (1400px и ниже) */
    .header-main.search-active .header-logo {
        left: calc(50% - 320px);
        transform: translateX(0) translateY(-5px);
    }
    
    .header-menu-toggle {
        position: absolute !important;
        left: 0 !important;
        top: 50% !important;
        transform: translateY(calc(-50% + 3px)) !important;
        z-index: 10;
        order: 0;
    }
}

/* Возврат логотипа в центр при скрытии иконок (950px и ниже) */
@media (max-width: 950px) {
    .header-logo {
        left: 50% !important;
        transform: translateX(-50%) translateY(-5px) !important;
    }
}

.header-logo-image-left {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: height 0.3s ease;
}

@media (max-width: 768px) {
    .header-logo-image-left {
        height: 41px;
    }
}

.header-nav {
    display: none;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    max-width: 100%;
    padding: 0 200px;
    box-sizing: border-box;
    margin-left: 55px;
}

@media (min-width: 1024px) {
    .header-nav {
        display: flex;
    }
}

@media (max-width: 1400px) {
    .header-nav {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        position: absolute;
        width: 0;
        height: 0;
        overflow: hidden;
    }
}

.header-nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.25rem;
    padding: 0.5rem 0.75rem;
    transition: color 0.2s;
}

.header-nav-link:hover {
    color: white;
}

/* Dropdown Menu */
.header-nav-item-dropdown {
    position: relative;
}

.header-nav-link-dropdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-arrow {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
}

.header-nav-item-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.header-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 2px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 30px 30px 45px 45px;
    width: 100%;
    min-height: 280px;
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15), 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

header .container .header-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-dropdown-item {
    display: block;
    padding: 0.625rem 2rem;
    color: var(--secondary-900);
    text-decoration: none;
    font-size: 1.0625rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s, border-radius 0.2s;
    border-radius: 0;
}

.header-dropdown-item {
    margin: 0.25rem 0.5rem;
    border-radius: 15px;
}

.header-dropdown-item:hover {
    background-color: var(--secondary-100);
    color: #17255F;
    border-radius: 15px;
}

.header-dropdown-item:nth-last-child(1),
.header-dropdown-item:nth-last-child(2) {
    margin-bottom: 0;
}

/* Стили для последних элементов только в меню "Экспертизы" (первое меню) */
.header-dropdown-menu:not(.header-dropdown-menu-company):not(.header-dropdown-menu-evaluation) .header-dropdown-item:nth-last-child(1) {
    border-radius: 0 0 45px 0;
    margin-right: 0;
}

.header-dropdown-menu:not(.header-dropdown-menu-company):not(.header-dropdown-menu-evaluation) .header-dropdown-item:nth-last-child(1):hover {
    border-radius: 0 0 45px 0;
}

.header-dropdown-menu:not(.header-dropdown-menu-company):not(.header-dropdown-menu-evaluation) .header-dropdown-item:nth-last-child(2) {
    border-radius: 0 0 0 45px;
    margin-left: 0.5rem; /* Возвращаем отступ для выравнивания */
}

.header-dropdown-menu:not(.header-dropdown-menu-company):not(.header-dropdown-menu-evaluation) .header-dropdown-item:nth-last-child(2):hover {
    border-radius: 0 0 0 45px;
}

/* Убираем отступы margin-left для предпоследних элементов в меню "Компания" и "Оценка" */
.header-dropdown-menu-company .header-dropdown-item:nth-last-child(2),
.header-dropdown-menu-evaluation .header-dropdown-item:nth-last-child(2) {
    margin-left: 0.5rem;
}

.header-dropdown-menu-company .header-dropdown-item:nth-last-child(1),
.header-dropdown-menu-evaluation .header-dropdown-item:nth-last-child(1) {
    margin-right: 0.5rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 0 0 auto;
    position: absolute;
    right: 0;
}

@media (max-width: 950px) {
    .header-actions {
        display: none;
    }
}

/* Search Field */
.header-search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-icon {
    position: relative;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.header-search-field {
    position: absolute;
    right: 0;
    top: 1px;
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    z-index: 5;
}

.header-search-field.active {
    width: 300px;
    opacity: 1;
}

.header-search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: background 0.3s ease;
}

.header-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.header-search-input:focus {
    background: rgba(255, 255, 255, 0.25);
}

.header-nav-link-hideable {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.header-nav-item-hideable {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.header-action {
    position: relative;
    padding: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s;
}

.header-action:hover {
    color: white;
}

.header-action svg {
    width: 1.75rem;
    height: 1.75rem;
}

.header-cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff6b6b;
    color: white;
    font-size: 0.75rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.header-menu-toggle {
    display: none;
    padding: 0.65rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: color 0.3s ease;
    flex: 0 0 auto;
    order: -1;
    position: relative;
    z-index: 300;
    width: 20px;
    height: 20px;
    transform: rotate(0deg);
    transition: transform 0.5s ease-in-out, color 0.3s ease;
}

.header-menu-toggle.active {
    z-index: 302 !important;
}

@media (max-width: 1400px) {
    .header-menu-toggle {
        display: block;
    }
}

.header-menu-toggle:hover {
    color: white;
}

.header-menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: currentColor;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

.header-menu-toggle span:nth-child(1) {
    top: 0px;
}

.header-menu-toggle span:nth-child(2) {
    top: 8px;
}

.header-menu-toggle.active span:nth-child(1) {
    top: 4px;
    transform: rotate(45deg);
}

.header-menu-toggle.active span:nth-child(2) {
    top: 4px;
    transform: rotate(-45deg);
}

/* Mobile Menu */
.header-mobile-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    background: white;
    z-index: 240;
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s 0.5s;
    padding-top: 80px;
    visibility: hidden;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-radius: 0;
    box-sizing: border-box;
}

.header-mobile-menu.active {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s;
}

/* Фиксировать хедер при открытом сайдбаре, чтобы он не скроллился */
body.mobile-menu-open header {
    position: fixed !important;
    top: 10px !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    margin: 0 !important;
    z-index: 251 !important;
}

/* Mobile Top Info */
.header-mobile-top-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}

.header-mobile-top-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1e293b;
    font-size: 0.9375rem;
}

.header-mobile-top-info-item svg {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    stroke: #64748b;
}

.header-mobile-top-info-item a {
    color: #17255F;
    text-decoration: none;
    transition: color 0.2s;
}

.header-mobile-top-info-item a:hover {
    color: #1e40af;
    text-decoration: underline;
}

.header-mobile-top-info-item span {
    color: #64748b;
}

/* Mobile City Selector */
.header-mobile-city-selector {
    position: relative;
    margin-top: 0.5rem;
}

.header-mobile-city-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    color: #1e293b;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.header-mobile-city-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.header-mobile-city-name {
    flex: 1;
    text-align: left;
}

.header-mobile-city-arrow {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.header-mobile-city-selector.active .header-mobile-city-arrow {
    transform: rotate(180deg);
}

.header-mobile-city-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10;
}

.header-mobile-city-selector.active .header-mobile-city-dropdown {
    max-height: 300px;
    opacity: 1;
    visibility: visible;
    padding: 0.5rem 0;
}

.header-mobile-city-dropdown-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    color: #1e293b;
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.header-mobile-city-dropdown-item:hover {
    background-color: #f1f5f9;
    color: #17255F;
}

.header-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 1.5rem 1.5rem 2rem 1.5rem;
    max-width: 100%;
    width: 100%;
}

@media (max-width: 768px) {
    .header-mobile-nav {
        padding-top: 55px;
    }
}

.header-mobile-nav-link {
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
    padding: 1rem 0;
    transition: color 0.2s;
}

.header-mobile-nav-link:hover {
    color: #17255F;
}

/* Mobile Dropdown Styles */
.header-mobile-nav-item-dropdown {
    position: relative;
}

.header-mobile-nav-link-dropdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.mobile-dropdown-arrow {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.header-mobile-nav-item-dropdown.active .mobile-dropdown-arrow {
    transform: rotate(180deg);
}

.header-mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    background: rgba(239, 243, 247, 0.8);
    border-radius: 18px;
    margin: 0.5rem 0;
}

.header-mobile-nav-item-dropdown.active .header-mobile-dropdown-menu {
    max-height: 2000px;
    padding: 0.5rem 0;
}

.header-mobile-dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem 0.75rem 2.5rem;
    color: #64748b;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
    border-radius: 0;
}

.header-mobile-dropdown-item:hover {
    background-color: rgba(241, 245, 249, 0.8);
    color: #17255F;
}

.header-mobile-dropdown-item.active {
    color: #17255F;
    font-weight: 600;
}

.header-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 2rem;
}

.header-mobile-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
    padding: 1rem 0;
    transition: color 0.2s;
}

.header-mobile-action:hover {
    color: #17255F;
}

.header-mobile-action svg {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    stroke: #1e293b;
    transition: stroke 0.2s;
}

.header-mobile-action:hover svg {
    stroke: #17255F;
}

.header-mobile-action span {
    font-size: 1.125rem;
}

/* Mobile Search Container */
.header-mobile-search-container {
    position: relative;
    width: 100%;
}

.header-mobile-search-icon {
    position: relative;
    z-index: 10;
}

.header-mobile-search-icon .search-icon {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.header-mobile-search-container.active .header-mobile-search-icon .search-icon {
    opacity: 0;
    visibility: hidden;
}

.header-mobile-search-icon .search-text {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.header-mobile-search-container.active .search-text {
    opacity: 0;
    visibility: hidden;
}

.header-mobile-search-field {
    position: absolute;
    right: 0;
    top: 0;
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-mobile-search-field.active {
    width: 100%;
    opacity: 1;
}

.header-mobile-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    background: white;
    color: #1e293b;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.header-mobile-search-input::placeholder {
    color: #94a3b8;
}

.header-mobile-search-input:focus {
    border-color: #17255F;
}

.header-mobile-search-submit {
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #17255F;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.header-mobile-search-submit:hover {
    background: #1e3a8a;
}

.header-mobile-search-submit svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: white;
}

body.menu-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .header-menu-toggle.active {
        z-index: 302;
    }
    
    .header-menu-toggle {
        z-index: 302;
        width: 16px !important;
        height: 16px !important;
    }
    
    .header-menu-toggle span {
        height: 2px !important;
    }
    
    .header-menu-toggle span:nth-child(2) {
        top: 7px !important;
    }
    
    .header-menu-toggle.active span:nth-child(1),
    .header-menu-toggle.active span:nth-child(2) {
        top: 3.5px !important;
    }
}

/* Скрыть чат и счетчик при открытом мобильном меню */
body.mobile-menu-open .chat-button,
body.mobile-menu-open .deals-counter {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* City Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 30px;
    padding: 1.5rem;
    max-width: 28rem;
    width: 100%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.modal-close:hover {
    color: #1e293b;
    transform: rotate(90deg);
}

.modal-close svg {
    width: 23px;
    height: 23px;
    stroke: currentColor;
    stroke-width: 2;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-city-btn {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: none;
    background: none;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 1rem;
}

.modal-city-btn:hover {
    background-color: var(--secondary-100);
}

/* Contacts Modal */
.contacts-modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.contacts-modal-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0;
}

.contact-card {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e5e7eb;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-city {
    font-size: 1.25rem;
    font-weight: 700;
    color: #17255F;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-phone {
    font-size: 1.125rem;
    font-weight: 600;
    color: #17255F;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-phone:hover {
    color: #1e40af;
    text-decoration: underline;
}

.contact-address {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.contact-hours {
    font-size: 0.9375rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

.contact-email {
    font-size: 0.9375rem;
    color: #17255F;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-email:hover {
    color: #1e40af;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contacts-modal-content {
        max-width: 95vw;
        margin: 1rem;
    }
    
    .contacts-modal-body {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-card {
        padding: 1.25rem;
    }
}

/* Login Modal - Glassmorphism */
.login-modal {
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.6);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.login-modal.active {
    display: flex;
}

body.login-modal-open {
    overflow: hidden;
}

body.login-modal-open .hero-video video {
    pointer-events: none !important;
}

body.login-modal-open main {
    pointer-events: none;
}

body.login-modal-open main * {
    pointer-events: none;
}

.login-modal.active ~ * {
    pointer-events: none;
}

.login-modal.active * {
    pointer-events: auto;
}

.login-container-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.login-container-glass {
    position: relative;
    width: 33.3rem;
    max-width: 100%;
    font-family: 'Onset', 'Inter', system-ui, -apple-system, sans-serif;
}

.login-form-container {
    border: 1px solid hsla(0, 0%, 65%, 0.158);
    box-shadow: 0 0 36px 1px rgba(0, 0, 0, 0.2);
    border-radius: 2.5rem;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    z-index: 99;
    padding: 2rem;
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Onset', 'Inter', system-ui, -apple-system, sans-serif;
}

.illustration {
    position: absolute;
    top: calc(-14% + 10px);
    right: -2px;
    width: 70%;
    z-index: 2;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.login-title {
    font-size: 2.5rem;
    margin: 0 0 2rem 0;
    text-align: center;
    color: #17255F;
    font-weight: 700;
    position: relative;
    z-index: 3;
}

.login-container-glass form {
    position: relative;
}

.login-container-glass form .input-wrapper {
    position: relative;
    margin: 1.5rem 0;
}

/* Border layer behind illustration */
.login-container-glass form .input-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid #354584;
    border-radius: 1rem;
    z-index: 1;
    pointer-events: none;
    transition: all 0.3s ease;
}

.login-container-glass form input {
    display: block;
    padding: 18px;
    width: 100%;
    margin: 0;
    color: #1e293b;
    outline: none;
    background-color: transparent;
    border: none;
    border-radius: 1rem;
    font-weight: 500;
    letter-spacing: 0.8px;
    font-size: 15px;
    backdrop-filter: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.login-container-glass form input::placeholder {
    color: #64748b;
}

.login-container-glass form input:focus {
    background-color: transparent;
    transform: scale(1);
}

.login-container-glass form .input-wrapper:focus-within::before {
    border-color: #17255F;
    box-shadow: 0 0 16px 1px rgba(23, 37, 95, 0.2);
}

.login-container-glass form button {
    background-color: #17255F;
    color: #ffffff;
    display: block;
    padding: 18px;
    border-radius: 1rem;
    outline: none;
    font-size: 18px;
    letter-spacing: 1.5px;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: all 0.1s ease-in-out;
    border: none;
}

.login-container-glass form button:hover {
    box-shadow: 0 0 10px 1px rgba(23, 37, 95, 0.15);
    transform: scale(1.02);
    background-color: #1e3a8a;
}

.login-modal .circle {
    width: 12rem;
    height: 12rem;
    background: #17255F;
    border-radius: 50%;
    position: absolute;
    opacity: 0;
    z-index: -1;
    animation: circleFadeIn 0.8s ease-out 0.3s forwards;
}

@keyframes circleFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.5;
    }
}

.login-modal .circle-one {
    top: 0;
    left: 0;
    transform: translate(-30%, -30%);
}

.login-modal .circle-two {
    bottom: 0;
    right: 0;
    transform: translate(30%, 30%);
    animation-delay: 0.4s;
}

.login-info-text {
    margin: 1.5rem 0 0 0;
    text-align: center;
    color: #64748b;
    font-size: 0.9375rem;
    line-height: 1.6;
    padding: 0 0.5rem;
}

.login-modal .opacity {
    opacity: 0.8;
}

.login-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 100;
}

@keyframes wobble {
    0% {
        transform: scale(1.025);
    }
    25% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.025);
    }
    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .login-container-glass {
        width: 100%;
        max-width: 22.2rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .login-title {
        font-size: 2rem;
    }
}