* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #444444;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    line-height: 1.6;
}

/* Фиксированная шапка */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #444444;
    z-index: 1000;
    padding: 15px 20px 10px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Контент с прокруткой */
.scrollable-content {
    max-width: 1200px;
    margin: 180px auto 0 auto;
    padding: 0 20px 20px 20px;
}

.top-row {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.burger-menu {
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 10;
    order: 0;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.burger-menu:hover span {
    background-color: #E9AE67;
}

.logo-row {
    flex: 1;
    text-align: center;
    order: 1;
}

.logo-img {
    max-width: 200px;
    width: 100%;
    height: auto;
    cursor: pointer;
}

.placeholder {
    width: 30px;
    order: 2;
}

/* Профиль */
.profile-row {
    max-width: 1200px;
    margin: 0 auto 15px auto;
    background-color: #333333;
    padding: 12px 15px;
    border-radius: 12px;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-circle {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #E9AE67, #c4894a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 16px;
    font-weight: bold;
    color: #E9AE67;
}

.user-bio {
    font-size: 12px;
    color: #aaa;
}

/* Поиск */
.search-row {
    max-width: 1200px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    background-color: #333333;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border: 2px solid #E9AE67;
    background-color: #3a3a3a;
}

.search-input::placeholder {
    color: #888;
}

/* Стили для карточек */
.services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.service-card {
    background: #333333;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-image {
    width: 100%;
    height: 180px;
    background: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.service-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 18px;
    font-weight: bold;
    color: #E9AE67;
    margin-bottom: 8px;
}

.service-description {
    font-size: 13px;
    color: #ccc;
    margin-bottom: 12px;
    line-height: 1.4;
}

.service-price {
    display: inline-block;
    font-size: 18px;
    font-weight: bold;
    color: #E9AE67;
    padding: 5px 12px;
    background-color: #222222;
    border-radius: 20px;
    align-self: flex-start;
    margin-top: auto;
}

.service-card.hidden {
    display: none;
}

/* Футер */
footer {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #555;
    color: #ccc;
    margin-top: 20px;
}

/* Модальное окно бургера */
.burger-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: flex-start;
}

.burger-modal-content {
    background-color: #222;
    width: 280px;
    height: 100%;
    padding: 30px 20px;
    animation: slideInLeft 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.burger-modal-header {
    text-align: right;
    margin-bottom: 40px;
}

.close-modal {
    font-size: 36px;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #E9AE67;
}

.burger-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    border-bottom: 1px solid #444;
    padding-bottom: 20px;
}

.nav-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    text-align: left;
    padding: 12px 15px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.nav-btn:hover {
    background-color: #E9AE67;
    color: #222;
    transform: translateX(5px);
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-btn-login, .modal-btn-register, .modal-btn-logout {
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn-login {
    background-color: #E9AE67;
    color: #222;
}

.modal-btn-login:hover {
    background-color: #d4913e;
    transform: translateY(-2px);
}

.modal-btn-register {
    background-color: transparent;
    color: #E9AE67;
    border: 2px solid #E9AE67;
}

.modal-btn-register:hover {
    background-color: #E9AE67;
    color: #222;
    transform: translateY(-2px);
}

.modal-btn-logout {
    background-color: #dc3545;
    color: white;
}

.modal-btn-logout:hover {
    background-color: #b02a37;
    transform: translateY(-2px);
}

/* Адаптив */
@media (max-width: 1024px) and (min-width: 769px) {
    .services {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .fixed-header {
        padding: 10px 15px 8px 15px;
    }
    
    .scrollable-content {
        margin-top: 160px;
        padding: 0 15px 15px 15px;
    }
    
    .logo-img {
        max-width: 150px;
    }
    
    .services {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .service-image {
        height: 130px;
        font-size: 36px;
    }
    
    .service-content {
        padding: 10px;
    }
    
    .service-title {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .service-description {
        font-size: 11px;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .service-price {
        font-size: 13px;
        padding: 3px 8px;
    }
    
    .avatar-circle {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .user-name {
        font-size: 15px;
    }
    
    .user-bio {
        font-size: 11px;
    }
    
    .search-input {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .burger-modal-content {
        width: 250px;
    }
    
    .nav-btn {
        font-size: 16px;
        padding: 10px 12px;
    }
    
    .modal-btn-login, .modal-btn-register, .modal-btn-logout {
        padding: 12px 16px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .scrollable-content {
        margin-top: 145px;
    }
    
    .logo-img {
        max-width: 120px;
    }
    
    .services {
        gap: 10px;
    }
    
    .service-image {
        height: 100px;
        font-size: 28px;
    }
    
    .service-title {
        font-size: 12px;
    }
    
    .service-description {
        font-size: 10px;
        -webkit-line-clamp: 2;
    }
    
    .service-price {
        font-size: 11px;
        padding: 2px 6px;
    }
    
    .avatar-circle {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .user-name {
        font-size: 13px;
    }
    
    .user-bio {
        font-size: 10px;
    }
    
    .burger-menu {
        width: 25px;
        height: 20px;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .scrollable-content {
        margin-top: 145px;
    }
    
    .services {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .service-image {
        height: 100px;
        font-size: 32px;
    }
    
    .service-title {
        font-size: 12px;
    }
    
    .service-description {
        font-size: 10px;
        -webkit-line-clamp: 1;
    }
}

@media (min-width: 1025px) {
    .services {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}