* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background: #f9f5f2;
    color: #2d2a2a;
    font-size: 16px;
    line-height: 1.5;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 100;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    gap: 10px;
    flex-wrap: wrap;
}
.logo {
    font-size: 28px;
    font-weight: 600;
    color: #c68e6e;
    text-decoration: none;
    flex-shrink: 0;
}
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    gap: 5px;
    cursor: pointer;
}
.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #5a4a42;
}
.nav {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
.nav a, .dropbtn {
    text-decoration: none;
    color: #5a4a42;
    font-weight: 500;
    white-space: nowrap;
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
}
.nav a:hover, .dropbtn:hover {
    color: #c68e6e;
}
.phone {
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 200;
    border-radius: 12px;
    overflow: hidden;
    right: 0;
}
.dropdown-content a {
    color: #5a4a42;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}
.dropdown-content a:hover {
    background-color: #f0e4dc;
    color: #c68e6e;
}

/* === МОБИЛЬНЫЕ И ПЛАНШЕТЫ (≤ 992px) === */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }
    .nav {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 15px;
        padding: 15px 0;
    }
    .nav.active {
        display: flex;
    }
    .nav a, .dropdown {
        white-space: normal;
        width: 100%;
    }
    .phone {
        display: none;
    }
    .header-inner {
        flex-wrap: wrap;
    }
    .dropdown {
        display: block;
        width: 100%;
    }
    .dropbtn {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }
    .dropdown-content {
        position: static;
        box-shadow: none;
        background: transparent;
        display: none;
        width: 100%;
    }
    .dropdown-content a {
        padding: 10px 0;
        text-align: center;
        white-space: normal;
    }
    .dropdown.active .dropdown-content {
        display: block;
    }
}

/* === ДЕСКТОП (≥ 993px) === */
@media (min-width: 993px) {
    .header-inner {
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    .nav {
        display: flex;
        flex: 1 1 auto;
        justify-content: flex-start;
        gap: 20px;
        overflow-x: auto;
        white-space: nowrap;
    }
    .phone {
        display: block;
        flex-shrink: 0;
        margin-left: 15px;
    }
    /* Hover для десктопа */
    .dropdown:hover .dropdown-content {
        display: block;
    }
}

/* ГЕРОЙ И ЗАГОЛОВКИ – адаптив без принудительного nowrap */
.hero {
    background: linear-gradient(135deg, #fae6dd, #ffece3);
    border-radius: 32px;
    padding: 50px 40px;
    margin: 30px 0;
    text-align: center;
}
.hero h1 {
    font-size: 42px;
    color: #7a4c3c;
    margin-bottom: 20px;
    word-break: break-word;
}
@media (max-width: 992px) {
    .hero h1 {
        font-size: 32px;
    }
}
@media (max-width: 768px) {
    .hero h1 {
        font-size: 28px;
    }
}
@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }
}
.hero p {
    font-size: 18px;
    margin: 20px 0;
}
@media (max-width: 768px) {
    .hero p {
        font-size: 16px;
    }
}
.btn {
    background: #c68e6e;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 16px;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}
.btn:hover {
    background: #a66e4e;
}
@media (max-width: 768px) {
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* КАРТОЧКИ УСЛУГ И МАСТЕРОВ */
.services-grid, .masters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}
@media (max-width: 768px) {
    .services-grid, .masters-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
.card {
    background: #fff;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: .2s;
}
.card:hover {
    transform: translateY(-5px);
}
.card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 20px;
    background: #edd9cf;
}
.price {
    font-weight: bold;
    font-size: 22px;
    color: #c68e6e;
    margin: 10px 0;
}

/* ФОРМЫ */
.booking-form, .auth-form {
    background: #fff;
    border-radius: 32px;
    padding: 30px;
    max-width: 600px;
    margin: 30px auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
@media (max-width: 768px) {
    .booking-form, .auth-form {
        padding: 20px;
        width: calc(100% - 20px);
    }
}
.form-row {
    margin-bottom: 20px;
}
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #5a4a42;
}
input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0cfc6;
    border-radius: 30px;
    font-size: 16px;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #c68e6e;
    box-shadow: 0 0 0 3px rgba(198,142,110,0.2);
}
@media (max-width: 480px) {
    input, select, textarea {
        padding: 10px;
        font-size: 14px;
    }
}
.error-text {
    color: #d9534f;
    font-size: 13px;
    margin-top: 5px;
}
.btn-submit {
    width: 100%;
    background: #c68e6e;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: bold;
}
.form-note {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #8b766b;
}
.remember {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}
.remember input {
    width: auto;
}
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}
.btn-back, .btn-logout {
    background: #f0e4dc;
    color: #5a4a42;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    flex: 1;
}
.btn-submit {
    flex: 2;
}
@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
        gap: 12px;
    }
    .btn-back, .btn-submit, .btn-logout {
        width: 100%;
        flex: none;
    }
}

/* ФУТЕР */
footer {
    background: #2e241f;
    color: #e2cbbd;
    margin-top: 60px;
    padding: 40px 0 20px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}
.footer-col {
    flex: 1;
    min-width: 180px;
}
.footer-col a {
    color: #e2cbbd;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}
.footer-col a:hover {
    color: #c68e6e;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #4a3a32;
}
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* МЕЛКИЕ ЭКРАНЫ */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    body {
        font-size: 14px;
    }
    .logo {
        font-size: 24px;
    }
}
