/* ===== СТИЛИ ТОЛЬКО ДЛЯ ТЕЛЕФОНОВ ===== */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 10px 0;
    }
    
    .desktop-menu {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 18px;
        cursor: pointer;
        z-index: 1001;
    }
    
    .mobile-menu-toggle span {
        display: block !important;
        width: 100%;
        height: 2.5px;
        background: white;
        border-radius: 3px;
        transition: all 0.3s;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -5px);
    }
    
    .mobile-menu {
        display: block !important;
        position: fixed;
        top: 0;
        right: -280px;
        width: 250px;
        height: 100vh;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 70px 15px 30px;
        box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    }
    
    .mobile-menu.active {
        right: 0 !important;
    }
    
    .mobile-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-menu li {
        margin-bottom: 12px;
    }
    
    .mobile-menu a {
        color: white;
        text-decoration: none;
        font-size: 15px;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 8px;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 998;
    }
    
    .page {
        padding-top: 60px;
    }
    
    .container {
        padding: 20px 12px;
    }
    
    .page-header {
        padding: 30px 12px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 28px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .about-info-card {
        padding: 25px;
    }
    
    .about-info-card h2 {
        font-size: 24px;
    }
    
    .rules-list {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
        padding: 10px;
    }
    
    .gallery-overlay span {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .contacts-enhanced {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contacts-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .services-tags {
        gap: 8px;
    }
    
    .service-tag {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-col h4 {
        justify-content: center;
    }
}

/* Мобильные стили для страницы записи */
@media screen and (max-width: 768px) {
    .booking-filters {
        gap: 6px;
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .booking-row {
        flex-wrap: wrap;
    }
    
    .booking-time {
        width: 100%;
        text-align: left;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .booking-cell {
        width: 100%;
        text-align: left;
    }
    
    .booking-legend {
        gap: 15px;
    }
    
    .booking-action p {
        font-size: 16px;
    }
    
    .btn-large {
        padding: 12px 30px;
        font-size: 16px;
    }
}
/* ===== МОБИЛЬНЫЕ СТИЛИ ДЛЯ КАЛЕНДАРЯ ===== */
@media screen and (max-width: 768px) {
    .calendar-days {
        gap: 4px;
    }
    
    .calendar-day {
        font-size: 12px;
        border-radius: 8px;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 8px;
    }
    
    .time-slot {
        padding: 10px 3px;
        font-size: 12px;
    }
    
    .booking-legend {
        gap: 12px;
        padding: 15px;
    }
    
    .legend-item {
        font-size: 11px;
        gap: 6px;
    }
    
    .legend-color {
        width: 20px;
        height: 20px;
    }
    
    .selected-datetime {
        font-size: 14px;
        padding: 12px;
    }
    
    .month-navigation {
        padding: 10px 15px;
    }
    
    .month-nav-btn {
        width: 35px;
        height: 35px;
    }
    
    #current-month-display {
        font-size: 16px;
    }
    
    .calendar-weekdays div {
        font-size: 11px;
    }
}
/* ===== MOBILE SITE FIX ===== */
@media (max-width: 768px) {

    body {
        font-size: 14px;
    }

    .container {
        padding: 10px;
    }

    .nav {
        flex-direction: column;
    }

    .hero {
        text-align: center;
        padding: 20px 10px;
    }

    .hero h1 {
        font-size: 22px;
    }

    .services-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .product-card {
        width: 100%;
    }

    .booking-form {
        padding: 10px;
    }

    input,
    select,
    button {
        width: 100%;
        font-size: 14px;
    }

    .time-slots {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }

    .contacts {
        flex-direction: column;
    }

    iframe {
        width: 100%;
        height: 250px;
    }
}
/* ===== FIX SITE MOBILE ===== */
@media screen and (max-width: 768px) {
    html, body {
        width: 100%;
        overflow-x: hidden;
    }

    body {
        font-size: 14px;
    }

    .navbar {
        width: 100%;
    }

    .nav-container {
        padding: 12px 16px;
        min-height: 68px;
    }

    .logo {
        font-size: 20px;
    }

    .logo-subtitle {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex !important;
        position: relative;
        z-index: 1102;
    }

    .mobile-menu {
        display: block !important;
        position: fixed;
        top: 0;
        right: -100%;
        width: 82vw;
        max-width: 320px;
        height: 100vh;
        padding: 84px 18px 24px;
        overflow-y: auto;
        z-index: 1101;
    }

    .mobile-menu.active {
        right: 0 !important;
    }

    body.menu-open::after {
        z-index: 1099;
    }

    .page {
        padding-top: 72px;
    }

    .page-header {
        width: 100%;
        margin-bottom: 20px;
        padding: 34px 0 28px;
    }

    .page-header .container {
        padding: 0 16px;
    }

    .page-header h1 {
        font-size: 24px;
        line-height: 1.2;
    }

    .page-header p {
        font-size: 15px;
        line-height: 1.5;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 16px;
    }

    .booking-container {
        grid-template-columns: 1fr !important;
        gap: 16px;
        margin-bottom: 18px;
    }

    .booking-form,
    .booking-schedule {
        width: 100%;
        padding: 18px;
        border-radius: 18px;
    }

    .booking-form h2,
    .booking-schedule h2 {
        font-size: 18px;
        margin-bottom: 18px;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .form-control {
        width: 100%;
        min-height: 48px;
        padding: 12px 14px;
        font-size: 16px;
    }

    .captcha-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .captcha-question {
        width: 100%;
        text-align: center;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #submit-booking,
    .btn-block {
        width: 100%;
        min-height: 50px;
        font-size: 16px;
    }

    .month-navigation {
        padding: 10px 12px;
        gap: 8px;
    }

    .month-nav-btn {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
    }

    #current-month-display {
        font-size: 16px;
        text-align: center;
    }

    .booking-calendar {
        overflow: hidden;
    }

    .calendar-weekdays,
    .calendar-days {
        gap: 4px;
    }

    .calendar-weekdays div {
        font-size: 10px;
    }

    .calendar-day {
        min-height: 44px;
        padding: 6px 2px;
        font-size: 12px;
        border-radius: 10px;
    }

    .time-slots-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px;
        padding: 0;
    }

    .time-slot {
        min-height: 42px;
        font-size: 13px;
        padding: 10px 6px;
    }

    .selected-datetime {
        font-size: 14px;
        padding: 12px;
        margin: 12px 0;
    }

    .booking-legend {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 12px;
        padding: 16px;
    }

    .legend-item {
        font-size: 12px;
    }
}
/* ===== FINAL MOBILE FIX ===== */
@media screen and (max-width: 768px) {
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    * {
        box-sizing: border-box;
    }

    .container,
    .page,
    .page-content,
    .booking-page,
    .booking-container,
    .booking-form,
    .booking-schedule,
    .form-group,
    .form-control,
    input,
    select,
    textarea,
    button {
        max-width: 100%;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .page-header {
        overflow: hidden;
    }

    .booking-container {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .booking-form,
    .booking-schedule {
        width: 100%;
        min-width: 0;
        padding: 16px;
        overflow: hidden;
    }

    .form-group {
        width: 100%;
        min-width: 0;
    }

    .form-control,
    input,
    select,
    textarea {
        width: 100%;
        min-width: 0;
        padding: 12px 14px;
        font-size: 16px;
    }

    .captcha-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .captcha-question,
    .captcha-input {
        width: 100%;
        min-width: 0;
    }

    .time-slots-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px;
    }

    .time-slot {
        width: 100%;
        min-width: 0;
        white-space: normal;
    }

    .booking-legend {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 12px;
    }

    /* мобильное меню */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 82vw;
        max-width: 320px;
        height: 100vh;
        z-index: 2001;
        overflow-y: auto;
    }

    .mobile-menu.active {
        right: 0 !important;
    }

    .mobile-menu-toggle {
        position: relative;
        z-index: 2002;
    }

    /* затемнение, но не блокирует меню */
    body.menu-open::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(15, 18, 35, 0.38);
        z-index: 1999;
        pointer-events: none;
    }

    /* если у тебя есть старый overlay-элемент */
    .menu-overlay,
    .mobile-overlay,
    .nav-overlay {
        display: none !important;
    }
}
.mobile-menu {
    z-index: 9999 !important;
}

.mobile-menu-toggle {
    z-index: 10000 !important;
}


/* УБИРАЕМ ЗАТЕМНЕНИЕ МЕНЮ */
body.menu-open::after {
    display: none !important;
}
