* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

body {
    font-family: "Coolvetica", Arial, sans-serif;
    background: #ffffff;
    padding-top: 130px;
}

::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
body {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
    box-sizing: border-box;
}

@font-face {
    font-family: "Coolvetica";
    src: url("../fonts/Coolvetica.ttf") format("truetype");
    font-display: swap;
}
@font-face {
    font-family: "Czizh";
    src: url("../fonts/Czizh.ttf") format("truetype");
    font-display: swap;
}

/* ===== ТОП-БАР ===== */
.top-bar {
    background: #AA4E65;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    z-index: 1000;
    transition: transform 0.3s ease;
    border-bottom: 2px solid #F5CDD3;
    font-family: "Coolvetica";
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 30px;
}

.top-bar-left, .top-bar-right {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.top-urgent {
    display: flex;
    align-items: center;
    background: #5B2B37;
    color: white;
    text-decoration: none;
    padding: 0 19px;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 50px;
    gap: 8px;
    font-size: 18px;
    font-family: "Coolvetica";
    cursor: pointer;
    border: none;
}
.top-urgent:hover {
    background: #F5CDD3;
    color: #5B2B37;
}
.top-phone {
    font-family: "Coolvetica";
    font-size: 18px;
    color: white;
    white-space: nowrap;
}
.top-callback {
    color: #F5CDD3;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: "Coolvetica";
    font-size: 18px;
    white-space: nowrap;
    cursor: pointer;
    background: none;
    border: none;
}
.top-callback:hover {
    color: white;
}
.top-bar.hidden {
    transform: translateY(-100%);
}

/* ===== ХЕДЕР ===== */
.header {
    background: #ffffff;
    padding: 25px 0;
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(170, 78, 101, 0.3);
    transition: top 0.3s ease;
}
.top-bar.hidden ~ .header {
    top: 0;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    width: 160px;
    display: block;
    flex-shrink: 0;
}
.logo-link {
    display: block;
    line-height: 0;
}

/* ========================================================== */
/* ===== БУРГЕР-КНОПКА ===== */
/* ========================================================== */
.burger-btn {
    display: none !important;  /* СКРЫТА НА ДЕСКТОПЕ */
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: #AA4E65;
    border: none;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    z-index: 99999;
    position: relative;
    margin-left: auto;
    box-shadow: 0 4px 15px rgba(170, 78, 101, 0.3);
    flex-shrink: 0;
}

.burger-btn span {
    display: block;
    width: 24px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

/* ===== ОВЕРЛЕЙ ===== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1999;
}
.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== МЕНЮ ===== */
.menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 1;
    margin-left: 40px;
    gap: 20px;
}
.menu a {
    padding: 10px 30px;
    height: 45px;
    min-width: 120px;
    border: 3px solid #aa4e65;
    border-radius: 90px;
    background: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: all 0.35s ease;
    box-shadow: 0 2px 8px rgba(170, 78, 101, 0.1);
    position: relative;
}
.menu a span {
    color: #aa4e65;
    font-size: 19px;
    font-family: "Coolvetica", Arial, sans-serif;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}
.menu a:hover {
    background: #aa4e65;
    transform: scale(1.05);
}
.menu a:hover span {
    color: white;
}
.menu a.active {
    background: #aa4e65;
}
.menu a.active span {
    color: white;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4d4d;
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    font-family: "Coolvetica";
}
.menu-link {
    position: relative;
}

/* ===== МОДАЛКИ ===== */
.profile-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
.profile-modal.active {
    display: flex;
}
.modal-content {
    background: white;
    width: 90%;
    max-width: 550px;
    border-radius: 32px;
    padding: 35px;
    position: relative;
    border: 3px solid #F5CDD3;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}
.modal-content h3 {
    font-family: "Czizh", cursive;
    color: #AA4E65;
    font-size: 28px;
    font-weight: normal;
    margin-bottom: 25px;
    text-align: center;
}
.close-modal {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 32px;
    cursor: pointer;
    color: #AA4E65;
    background: none;
    border: none;
    transition: transform 0.2s;
}
.close-modal:hover {
    transform: scale(1.1);
}
.modal-form .form-group {
    margin-bottom: 22px;
}
.modal-form label {
    display: block;
    font-family: "Coolvetica", sans-serif;
    color: #5B2B37;
    margin-bottom: 8px;
    font-size: 16px;
}
.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #F0E0DC;
    border-radius: 14px;
    font-family: "Coolvetica", sans-serif;
    font-size: 15px;
    transition: all 0.3s;
}
.modal-form input:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: #AA4E65;
}
.save-btn {
    width: 100%;
    padding: 14px;
    background: #AA4E65;
    color: white;
    border: none;
    border-radius: 50px;
    font-family: "Coolvetica", sans-serif;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}
.save-btn:hover {
    background: #8a3e52;
    transform: scale(1.02);
}
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
}
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
}

/* ========================================================== */
/* ===== АДАПТИВ ===== */
/* ========================================================== */

@media (max-width: 1024px) {
    body {
        padding-top: 0 !important;
    }
    .top-bar {
        position: relative;
        height: auto;
        min-height: auto;
        z-index: 100;
    }
    .top-bar .container {
        flex-direction: column;
        padding: 10px 15px;
        height: auto;
        gap: 8px;
    }
    .top-bar-left, .top-bar-right {
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
    }
    .top-urgent {
        height: 38px;
        font-size: 14px;
        padding: 0 15px;
    }
    .top-phone, .top-callback {
        font-size: 14px;
    }
    .header {
        position: relative;
        top: 0 !important;
        padding: 12px 0;
        z-index: 200;
    }
    .logo {
        width: 110px;
    }
    
    /* ===== БУРГЕР-КНОПКА ПОЯВЛЯЕТСЯ ===== */
    .burger-btn {
        display: flex !important;
    }
    
    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100%;
        background: white;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 150px 20px 40px !important;
        gap: 15px;
        transition: right 0.3s ease;
        z-index: 2050;
        margin-left: 0;
        box-shadow: -5px 0 20px rgba(0,0,0,0.15);
    }
    .menu.active {
        right: 0;
    }
    .menu a {
        width: 100%;
        max-width: none;
        min-width: auto;
        height: 50px;
        margin: 0;
        padding: 0 20px !important;
        justify-content: center;
    }
    .menu a span {
        font-size: 18px;
    }
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        padding: 8px 12px;
        gap: 6px;
    }
    .top-address, .top-hours {
        font-size: 11px;
    }
    .top-urgent {
        font-size: 12px;
        height: 34px;
        padding: 0 12px;
    }
    .top-phone, .top-callback {
        font-size: 12px;
    }
    .logo {
        width: 90px;
    }
    .burger-btn {
        width: 38px !important;
        height: 38px !important;
        padding: 8px !important;
        border-radius: 8px !important;
    }
    .burger-btn span {
        width: 20px !important;
        height: 2.5px !important;
    }
    .menu {
        width: 260px;
        padding-top: 130px !important;
    }
    .menu a {
        height: 45px;
    }
    .menu a span {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .top-address, .top-hours {
        font-size: 10px;
    }
    .top-urgent {
        font-size: 11px;
        padding: 0 10px;
        height: 32px;
    }
    .top-phone, .top-callback {
        font-size: 11px;
    }
    .logo {
        width: 80px;
    }
    .burger-btn {
        width: 34px !important;
        height: 34px !important;
        padding: 6px !important;
        border-radius: 6px !important;
    }
    .burger-btn span {
        width: 18px !important;
        height: 2.5px !important;
    }
    .menu {
        width: 100%;
        padding-top: 120px !important;
    }
    .menu a {
        height: 44px;
    }
    .modal-content {
        padding: 25px;
        width: 95%;
    }
    .modal-content h3 {
        font-size: 24px;
    }
}