/* Стили для шапки сайта */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed !important;
    top: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1000 !important;
    padding: 0;
    transition: all 0.3s ease;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: calc(100vw - 40px);
    max-width: 1200px;
}

.header .container {
    padding: 0 2rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

/* Логотип */
.header-logo {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #191925;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-svg {
    height: 32px;
    width: auto;
    transition: opacity 0.3s ease;
}

/* Навигация */
.header-nav {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #FF1515;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF1515;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Кнопка связаться */
.contact-btn {
    background: #FF1515;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(255, 21, 21, 0.2);
}

.contact-btn:hover {
    background: #FF1515;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 21, 21, 0.3);
}

/* Стили для мобильной кнопки контакта */
.mobile-contact-item {
    display: none !important;
}

.mobile-contact-btn {
    width: 100%;
    margin-top: 1rem;
}

/* Мобильное меню */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: #191925;
    border-radius: 1px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Мобильное меню - стили для активного состояния */
.header-nav.mobile-active {
    display: flex !important;
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 10px !important;
    right: 10px !important;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    z-index: 999 !important;
}

.header-nav.mobile-active .nav-list {
    flex-direction: column;
    width: 100%;
    padding: 0 2rem;
    gap: 0.5rem;
    align-items: center;
}

.header-nav.mobile-active .nav-link {
    padding: 0.75rem 1rem;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: 100%;
}

.header-nav.mobile-active .nav-link:hover {
    background-color: rgba(255, 21, 21, 0.05);
    color: #FF1515;
}

.header-nav.mobile-active .mobile-contact-btn {
    width: 100%;
    margin-top: 0;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    background: none;
    color: #FF1515;
    border: none;
    text-decoration: underline;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: none;
}

.header-nav.mobile-active .mobile-contact-btn:hover {
    text-decoration: none;
}

/* Анимация бургер меню */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(3px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -6px);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .header {
        width: calc(100vw - 60px);
        top: 15px !important;
    }
    
    .nav-list {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 900px) {
    .header {
        width: calc(100vw - 50px);
        top: 12px !important;
    }
    
    .nav-list {
        gap: 1.2rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
    
    .contact-btn {
        padding: 0.65rem 1.3rem;
        font-size: 0.85rem;
    }
    
    .header-logo .logo-svg {
        height: 30px;
    }
}

@media (max-width: 768px) {
    .header {
        top: 15px !important;
        width: calc(100vw - 30px);
        border-radius: 12px;
    }
    
    .header .container {
        padding: 0 1rem;
    }
    
    .header-content {
        padding: 0.8rem 0;
    }
    
    .header-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Скрываем основную кнопку на мобильных */
    .contact-btn:not(.mobile-contact-btn) {
        display: none !important;
    }
    
    /* Показываем мобильную кнопку в меню */
    .mobile-contact-item {
        display: block !important;
    }
    
    .header-logo .logo-svg {
        height: 26px;
    }
}

@media (max-width: 640px) {
    .header {
        top: 12px !important;
        width: calc(100vw - 25px);
    }
    
    .header .container {
        padding: 0 0.8rem;
    }
    
    /* Скрываем основную кнопку на мобильных */
    .contact-btn:not(.mobile-contact-btn) {
        display: none !important;
    }
    
    /* Показываем мобильную кнопку в меню */
    .mobile-contact-item {
        display: block !important;
    }
    
    .header-logo .logo-svg {
        height: 24px;
    }
}

@media (max-width: 480px) {
    .header {
        top: 10px !important;
        width: calc(100vw - 20px);
        border-radius: 10px;
    }
    
    .header .container {
        padding: 0 0.75rem;
    }
    
    .header-content {
        padding: 0.6rem 0;
    }
    
    .header-logo .logo-svg {
        height: 22px;
    }
    
    /* Скрываем основную кнопку на мобильных */
    .contact-btn:not(.mobile-contact-btn) {
        display: none !important;
    }
    
    /* Показываем мобильную кнопку в меню */
    .mobile-contact-item {
        display: block !important;
    }
    
    .mobile-menu-btn {
        padding: 0.4rem;
    }
    
    .mobile-menu-btn span {
        width: 22px;
        height: 2px;
    }
}

@media (max-width: 360px) {
    .header {
        top: 8px !important;
        width: calc(100vw - 16px);
        border-radius: 8px;
    }
    
    .header .container {
        padding: 0 0.5rem;
    }
    
    .header-content {
        padding: 0.5rem 0;
    }
    
    .header-logo .logo-svg {
        height: 20px;
    }
    
    /* Скрываем основную кнопку на мобильных */
    .contact-btn:not(.mobile-contact-btn) {
        display: none !important;
    }
    
    /* Показываем мобильную кнопку в меню */
    .mobile-contact-item {
        display: block !important;
    }
    
    .mobile-menu-btn {
        padding: 0.3rem;
    }
    
    .mobile-menu-btn span {
        width: 20px;
        height: 2px;
    }
}

/* Стили для модального окна */
.modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from { 
        transform: translateY(0);
        opacity: 1;
    }
    to { 
        transform: translateY(-50px);
        opacity: 0;
    }
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(-50px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #191925;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: #f1f5f9;
    color: #191925;
}

.modal-body {
    padding: 2rem;
}

.modal-description {
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-form .form-group {
    display: flex;
    flex-direction: column;
}

.modal-form input,
.modal-form textarea {
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.modal-form input[type="tel"] {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.modal-form input:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: #FF1515;
    box-shadow: 0 0 0 3px rgba(255, 21, 21, 0.1);
}

.modal-form textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-submit-btn {
    background: #FF1515;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.modal-submit-btn:hover {
    background: #FF1515;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 21, 21, 0.3);
}

.modal-submit-btn:active {
    transform: translateY(0);
}

.privacy-notice {
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.privacy-link {
    color: #FF1515;
    text-decoration: none;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: #FF1515;
    text-decoration: underline;
}

/* Мобильные стили для модального окна */
@media (max-width: 640px) {
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-header {
        padding-bottom: 1rem;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    .modal-form {
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .modal-header,
    .modal-body {
        padding: 1.25rem;
    }
    
    .modal-title {
        font-size: 1.125rem;
    }
} 


