* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Inter, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #082047 !important;
    background-color: #f6f6f6;
    box-sizing: border-box;
}
.main-header {
    position: relative;
    background: white;
    box-shadow: 0px 1px 40px rgba(63, 125, 168, 0.10);
    padding: 9px 0;
    font-size: 14px;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    max-width: 1366px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-nav-page {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo img {
    max-height: 56px;
    width: 313px;
}

.logo-mobile svg {
    height: 50px;
}

ul {
    list-style: none;
}

.main-nav ul {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: center;
    width: 552px;
}

.main-nav li a, .contact li a {
    text-decoration: none;
    color: #3F7EAB;
    font-size: 14px !important;
}

.main-nav a:hover, .contact-ul a:hover {
    color: #51AADE;
}
.link-login {
    padding:  5px 10px;
    border: 1px solid #3F7EAB;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}
.link-login:hover {
    background-color: #3F7EAB;
    cursor: pointer;
}
.link-login:hover a {
    color: white;
}

.contact-ul {
    display: flex;
    margin: 0;
    padding: 0;
    gap: 20px;
    align-items: center;
}
.email {
    display: flex;
    align-items: center;
}

.email svg {
    max-height: 38px;
    width: auto;
    display: block;
}

/* Стили для поиска */
.search-form-loupe {
    position: relative;
    display: inline-block;
    width: 40px;
    transition: width 0.4s ease;
    overflow: hidden;
    vertical-align: middle;
}

.search-form {
    position: relative;
    display: inline-block;
    width: auto;
}

.search-form .search-field {
    height: 30px;
    border-radius: 5px !important;
    border-color: #3F7EAB !important;
    background: white;
    font-size: 14px;
    box-sizing: border-box;
    color: #3F7EAB !important;
    padding: 0 40px 0 12px;
    width: 200px;
    min-width: 200px;
    transition: all 0.3s ease;
}

.search-form .search-field:focus {
    outline: none;
    border-color: #2c5d80 !important;
    box-shadow: 0 0 5px rgba(63, 126, 171, 0.3);
}

.search-form .search-submit {
    display: none !important;
}

.search-form::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%233F7EAB" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>') no-repeat center;
    background-size: contain;
    pointer-events: none;
    z-index: 2;
}

.search-form:focus-within::after {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232c5d80" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>');
}

@media (max-width: 767px) {
    .search-form-loupe:focus-within {
        width: 200px;
    }
}

.desktop-only { display: flex; }
.mobile-only { display: none; }
.logo-mobile { display: none; }

.mobile-menu {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 15px 20px rgba(63, 125, 168, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    z-index: 999;
    display: none;
}

@media (max-width: 980px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: flex; align-items: center; gap: 12px; }
    .mobile-menu { display: block; }
    .logo-desktop { display: none; }
    .logo-mobile { display: block; }
    .logo-mobile img { max-height: 48px; width: auto; }
    .header-inner { padding: 0 20px; }

    .burger {
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        display: flex;
        flex-direction: column;
        gap: 5px;
        z-index: 1001;
    }
    .burger span {
        width: 24px;
        height: 2px;
        background: #3F7EAB;
        border-radius: 1px;
        transition: all 0.3s ease;
    }

    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .mobile-menu.open {
        padding: 20px 16px;
        max-height: 500px;
    }

    .mobile-nav ul {
        flex-direction: column;
        gap: 16px;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .mobile-nav a {
        color: #3F7EAB;
        text-decoration: none;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 0;
    }
    .mobile-nav a:hover { color: #51AADE; }
    .mobile-nav .contact-item {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #eee;
    }
    .mobile-nav .email svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }
}

.accessibility-toggle {
    font-size: 20px;
    color: #3F7EAB;
    cursor: pointer;
    padding: 0;
}