
/* =========================================================
   ЧАСТЬ 1. САМОЛЁТИК, ГАМБУРГЕР, МОБИЛЬНОЕ МЕНЮ
   ========================================================= */

.plane-follower {
    position: fixed;
    width: 32px;
    height: 32px;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease-out;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23FF6F00" d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(0 2px 4px rgba(128, 128, 128, 0.5));
    display: none;
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

.plane-trail {
    position: fixed;
    width: 6px;
    height: 6px;
    pointer-events: none;
    z-index: 9998;
    background: #ADC9D6;
    border-radius: 50%;
    opacity: 0;
    animation: trailFade 1.5s ease-out forwards;
    will-change: transform, opacity;
}

@keyframes trailFade {
    0%   { opacity: 0.8; transform: scale(1); }
    100% { opacity: 0;   transform: scale(0.2); }
}

@media (min-width: 1025px) {
    .plane-follower { display: block; }
}

.hamburger {
    position: fixed;
    top: 20px;
    right: 20px;
    display: none;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.hamburger::before { display: none; }

.hamburger span {
    display: block;
    height: 3px;
    width: 24px;
    background-color: #59879C;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    position: absolute;
    left: 13px;
}

.hamburger span:nth-child(1) { top: 18px; }
.hamburger span:nth-child(2) { top: 24px; }
.hamburger span:nth-child(3) { top: 30px; }

.hamburger.active span { background-color: #FF6F00; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg); top: 24px; }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scale(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg); top: 24px; }

.nav-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(89, 135, 156, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    font-family: 'Raleway', sans-serif;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.nav-mobile.active { right: 0; }

.nav-mobile a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 22px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    padding: 15px 0;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    border: none;
    border-radius: 0;
    width: auto;
    text-shadow: none;
}

.nav-mobile a:hover,
.nav-mobile a.active {
    color: #FF6F00;
    background: transparent;
    box-shadow: none;
}

.social-icons {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.social-icons a {
    display: inline-flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    border-radius: 0;
}

.social-icons a:hover {
    transform: scale(1.1);
    background: transparent;
}

.social-icons svg {
    width: 30px;
    height: 30px;
    fill: #FFFFFF;
    transition: fill 0.3s ease;
}

.social-icons a:hover svg { fill: #FF6F00; }

.overlay { display: none; }

@media screen and (max-width: 768px) {
    .hamburger { display: flex; }
}

.t-smooth-scroll-mobile { -webkit-overflow-scrolling: touch; }
html { scroll-behavior: auto; }
.t-records { overflow-anchor: none; }

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .plane-follower,
    .plane-trail {
        display: none !important;
    }
}

@media (max-width: 768px) { html { scroll-behavior: auto; } }
@media (min-width: 769px) { html { scroll-behavior: smooth; } }

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .t-rec { image-rendering: -webkit-optimize-contrast; }
}

/* =========================================================
   ЧАСТЬ 2. ФОРМА, МОДАЛКА, ПОЛЯ, КНОПКИ
   ========================================================= */

body, html {
    margin: 0 !important;
    padding: 0 !important;
}

.t-records, [data-tilda-project-id], #allrecords {
    padding: 0 !important;
    margin: 0 !important;
}

.booking-button-wrapper {
    display: inline-block;
    position: relative;
    z-index: 1000;
}

.booking-button {
    width: 235px;
    height: 34px;
    background: #FF6F00;
    border-radius: 17px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 0 20px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3),
                inset 0 2px 4px rgba(255,255,255,0.4),
                inset 0 -2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s cubic-bezier(0.25,0.46,0.45,0.94);
    margin: 0;
    box-sizing: border-box;
}

.booking-button::before {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border: 2px solid #FF6F00;
    border-radius: 21px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.booking-button:hover::before {
    opacity: 1;
    top: -6px; left: -6px; right: -6px; bottom: -6px;
    border-radius: 23px;
}

.booking-button:hover {
    background: #E65C00;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4),
                inset 0 2px 4px rgba(255,255,255,0.4),
                inset 0 -2px 4px rgba(0,0,0,0.2);
}

.booking-button:active {
    transform: translateY(4px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2),
                inset 0 4px 8px rgba(0,0,0,0.3),
                inset 0 -1px 2px rgba(255,255,255,0.1);
    background: #B34700;
}

.booking-button:active::before { opacity: 0; }

.button-text {
    color: white;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(255,255,255,0.3),
                 0 -1px 1px rgba(0,0,0,0.2);
}

.circle-arrow {
    width: 26px;
    height: 26px;
    background: #ADC9D6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.2),
                inset 0 -2px 4px rgba(255,255,255,0.3),
                0 2px 4px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.arrow {
    width: 14px;
    height: 10px;
    transform: rotate(45deg);
    position: relative;
}

.arrow::before {
    content: '';
    position: absolute;
    top: 50%; left: 0;
    width: 10px; height: 3.5px;
    background: white;
    border-radius: 1.8px;
    transform: translateY(-50%);
}

.arrow::after {
    content: '';
    position: absolute;
    top: 50%; right: 0;
    width: 0; height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid white;
    transform: translateY(-50%);
}

.booking-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 100000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-items: center;
    justify-content: center;
}

.booking-modal.active { display: flex; }

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 25px 20px 20px 20px;
    width: 100%;
    max-width: 380px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.5s ease;
    z-index: 100001;
    box-sizing: border-box;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 12px; right: 12px;
    width: 26px;
    height: 26px;
    background: #ADC9D6;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: white;
    transition: all 0.3s ease;
    z-index: 100002;
}

.modal-close:hover {
    background: #9BB5C2;
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
    padding-right: 30px;
}

.modal-title {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #FF6F00;
    margin: 0 0 6px 0;
    text-transform: uppercase;
    line-height: 1.2;
}

.modal-subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    color: #979797;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
}

.booking-form { display: flex; flex-direction: column; }
.form-group { margin-bottom: 14px; }
.form-group:last-child { margin-bottom: 0; }

.form-label {
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #FF6F00;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin-bottom: 6px;
    display: block;
}

.form-input, .form-select, .form-textarea {
    font-family: 'Raleway', sans-serif;
    padding: 10px 12px;
    border: 2px solid #ADC9D6;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #333;
    width: 100%;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    line-height: 1.4;
    height: 40px;
    min-height: 40px;
    display: block;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #FF6F00;
    box-shadow: 0 0 0 2px rgba(255,111,0,0.1);
}

.form-select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ADC9D6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    padding-right: 35px;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.4;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
}

.dates-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.submit-button {
    font-family: 'Raleway', sans-serif;
    background: linear-gradient(135deg, #FF6F00 0%, #E65C00 100%);
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    box-shadow: 0 4px 10px rgba(255,111,0,0.3);
    width: 100%;
    line-height: 1.2;
    height: 42px;
    display: block;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255,111,0,0.4);
    background: linear-gradient(135deg, #E65C00 0%, #CC5200 100%);
}

.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: #333;
    user-select: none;
}

.privacy-checkbox input[type="checkbox"] {
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    margin: 2px 8px 0 0 !important;
    vertical-align: top !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    opacity: 1 !important;
    position: static !important;
}

.privacy-checkbox .checkbox-text {
    display: inline;
    vertical-align: top;
    line-height: 1.4;
    flex: 1;
}

.privacy-link {
    color: #FF6F00 !important;
    text-decoration: underline !important;
    cursor: pointer;
    transition: color 0.3s;
    font-weight: 500;
    display: inline !important;
    white-space: nowrap;
}

.privacy-link:hover {
    color: #e65c00 !important;
    text-decoration: none !important;
}

.form-success {
    display: none;
    text-align: center;
    padding: 30px 15px;
}

.success-icon {
    font-size: 40px;
    color: #FF6F00;
    margin-bottom: 15px;
}

.success-title {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #FF6F00;
    margin-bottom: 10px;
    line-height: 1.2;
}

.success-message {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    color: #979797;
    line-height: 1.4;
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 30px 15px;
}

.spinner {
    border: 3px solid rgba(255, 111, 0, 0.3);
    border-radius: 50%;
    border-top: 3px solid #FF6F00;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    display: none;
    text-align: center;
    padding: 15px;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 0, 0, 0.2);
    margin-top: 10px;
}

.error-text {
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    color: #ff4444;
    font-weight: 500;
    line-height: 1.4;
}

/* =========================================================
   ЧАСТЬ 3. КАЛЕНДАРЬ — ЭЛЕГАНТНЫЕ КНОПКИ И ЯРКИЕ СТРЕЛКИ
   ========================================================= */

.availability-calendar {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #ADC9D6;
}

.calendar-mini {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 8px;
    width: 100%;
}

.calendar-day-mini {
    padding: 3px 1px;
    text-align: center;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 500;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
}

.calendar-day-mini.header {
    background: #ADC9D6;
    color: white;
    font-weight: bold;
    font-size: 8px;
}

.calendar-day-mini.available {
    background: #ADC9D6;
    color: white;
}

.calendar-day-mini.booked {
    background: #FF6F00;
    color: white;
    font-weight: bold;
}

.calendar-day-mini.other-month {
    color: #ccc;
    background: #f5f5f5;
}

.calendar-day-mini.past-day {
    background-color: #CCCCCC !important;
    color: #888888 !important;
    cursor: not-allowed !important;
}

.calendar-day-mini.past-day.booked {
    background-color: #AAAAAA !important;
    color: #666666 !important;
}

.calendar-day-mini.past-day.available {
    background-color: #CCCCCC !important;
    color: #888888 !important;
}

/* Навигация календаря */
.calendar-navigation {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    gap: 8px !important;
    margin: 0 0 10px 0 !important;
    position: relative;
    z-index: 1000;
}

/* Элегантные кнопки со стрелками */
.calendar-nav-btn {
    flex: 0 0 auto !important;
    margin: 0 !important;
    width: 44px !important;
    height: 36px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    padding: 0 !important;
    background: linear-gradient(180deg, #B8D2DE 0%, #A3BFCB 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    font-family: 'Raleway', sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow:
        0 3px 8px rgba(89, 135, 156, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -2px 3px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
    position: relative;
    z-index: 1001;
    overflow: hidden;
}

/* Общая подсветка-блик сверху */
.calendar-nav-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 100%);
    border-radius: 10px 10px 0 0;
    pointer-events: none;
}

/* Стрелка чуть сдвигается при наведении */
.calendar-nav-btn:first-of-type:hover {
    background: linear-gradient(180deg, #FF8A2B 0%, #E65C00 100%) !important;
    transform: translateX(-2px) scale(1.05) !important;
    box-shadow:
        0 5px 14px rgba(230, 92, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -2px 3px rgba(0, 0, 0, 0.12) !important;
}

.calendar-nav-btn:last-of-type:hover {
    background: linear-gradient(180deg, #FF8A2B 0%, #E65C00 100%) !important;
    transform: translateX(2px) scale(1.05) !important;
    box-shadow:
        0 5px 14px rgba(230, 92, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -2px 3px rgba(0, 0, 0, 0.12) !important;
}

.calendar-nav-btn:active {
    transform: translateY(1px) scale(0.97) !important;
    box-shadow:
        0 1px 3px rgba(89, 135, 156, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

/* Название месяца */
.calendar-month {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    color: #FF6F00;
    font-size: 12px;
    text-align: center;
    line-height: 1.2;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.5px;
}

.calendar-has-bookings {
    font-family: 'Raleway', sans-serif;
    font-size: 9px;
    color: #979797;
    text-align: center;
    line-height: 1.2;
    min-height: 10px;
}

/* Легенда */
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 8px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.legend-available { background: #ADC9D6; }
.legend-booked    { background: #FF6F00; }

.legend-custom {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 8px;
    flex-wrap: wrap;
}

#rec1589983391 {
    display: none;
    visibility: hidden;
    opacity: 0;
    height: 0;
    width: 0;
    position: absolute;
    left: -9999px;
    top: -9999px;
    pointer-events: none;
    z-index: -9999;
    overflow: hidden;
}

#rec1589983391 * {
    display: none;
    visibility: hidden;
    opacity: 0;
    height: 0;
    width: 0;
    pointer-events: none;
}

#bookingModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: none !important;
    z-index: 100000 !important;
}

#bookingModal.active {
    display: flex !important;
}

.modal-content {
    box-sizing: border-box !important;
    position: relative !important;
    transition: none !important;
}

/* =========================================================
   ЧАСТЬ 4. АДАПТИВНОСТЬ
   ========================================================= */

/* Планшеты горизонтально */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .modal-content {
        max-width: 450px !important;
        padding: 20px 25px !important;
    }
    .modal-title { font-size: 20px !important; }
    .modal-subtitle { font-size: 12px !important; }
    .form-group { margin-bottom: 16px !important; }
    .form-input, .form-select, .form-textarea {
        padding: 12px 14px !important;
        height: 44px !important;
        min-height: 44px !important;
        font-size: 15px !important;
    }
    .form-textarea { min-height: 90px !important; }
    .submit-button {
        padding: 14px 20px !important;
        height: 46px !important;
        min-height: 46px !important;
        font-size: 15px !important;
    }
    .privacy-checkbox { font-size: 13px !important; }
}

/* Планшеты вертикально и средние экраны — щель 769-1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .booking-modal,
    #bookingModal {
        padding: 25px !important;
        align-items: flex-start !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .modal-content {
        max-width: 420px !important;
        margin: 0 auto !important;
    }
}

/* Мобильные и планшеты в портрете */
@media (max-width: 768px) {
    .booking-modal,
    #bookingModal {
        padding: 15px !important;
        align-items: flex-start !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .modal-content {
        padding: 20px 18px 18px 18px !important;
        max-width: calc(100vw - 30px) !important;
        margin: 15px auto !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
        border-radius: 10px !important;
    }
    .modal-header {
        margin-bottom: 18px !important;
        padding-right: 25px !important;
    }
    .modal-title { font-size: 17px !important; margin-bottom: 6px !important; }
    .modal-subtitle { font-size: 11px !important; line-height: 1.3 !important; }
    .form-group { margin-bottom: 14px !important; }
    .form-label { font-size: 11px !important; margin-bottom: 6px !important; }
    .form-input, .form-select, .form-textarea {
        padding: 11px 13px !important;
        font-size: 15px !important;
        height: 42px !important;
        min-height: 42px !important;
        line-height: 1.4 !important;
        -webkit-appearance: none !important;
        border-radius: 6px !important;
    }
    .form-textarea {
        min-height: 80px !important;
        height: auto !important;
        padding-top: 11px !important;
        padding-bottom: 11px !important;
    }
    .dates-row { gap: 10px !important; margin-bottom: 14px !important; }
    .submit-button {
        padding: 13px 18px !important;
        font-size: 14px !important;
        border-radius: 50px !important;
        line-height: 1.2 !important;
        height: 44px !important;
        min-height: 44px !important;
        margin-top: 8px !important;
    }
    .privacy-checkbox {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }
    .privacy-checkbox input[type="checkbox"] {
        width: 16px !important;
        height: 16px !important;
        margin: 2px 8px 0 0 !important;
    }
    .privacy-link {
        white-space: normal !important;
        word-break: break-word !important;
    }
    .availability-calendar {
        margin: 14px 0 !important;
        padding: 10px !important;
    }
    .calendar-navigation {
        margin-bottom: 10px !important;
        padding: 0 !important;
        width: 100% !important;
        gap: 6px !important;
    }
    .calendar-nav-btn {
        width: 42px !important;
        height: 36px !important;
        min-width: 42px !important;
        max-width: 42px !important;
        font-size: 20px !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .calendar-month {
        font-size: 13px !important;
        padding: 0 4px !important;
        min-width: 0 !important;
    }
    .calendar-mini {
        gap: 2px !important;
        width: 100% !important;
        overflow: hidden !important;
    }
    .calendar-day-mini {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        font-size: 11px !important;
        line-height: 36px !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }
    .calendar-day-mini.header {
        font-size: 9px !important;
        height: 30px !important;
        line-height: 30px !important;
    }
    .calendar-legend,
    .legend-custom {
        font-size: 9px !important;
        gap: 8px !important;
        margin-top: 8px !important;
    }
    input[type="date"] {
        min-height: 42px !important;
        font-size: 15px !important;
    }
    .form-success { padding: 25px 15px !important; }
    .success-icon { font-size: 35px !important; margin-bottom: 12px !important; }
    .success-title { font-size: 17px !important; margin-bottom: 10px !important; }
    .success-message { font-size: 12px !important; line-height: 1.4 !important; }
    .loading-spinner { padding: 25px 15px !important; }
    .spinner {
        width: 35px !important;
        height: 35px !important;
        margin-bottom: 12px !important;
    }
}

/* Маленькие телефоны */
@media (max-width: 480px) {
    .modal-content {
        padding: 18px 15px 15px 15px !important;
        max-width: calc(100vw - 20px) !important;
    }
    .form-group { margin-bottom: 12px !important; }
    .form-input, .form-select, .form-textarea {
        padding: 10px 12px !important;
        font-size: 14px !important;
        height: 40px !important;
        min-height: 40px !important;
    }
    .form-textarea { min-height: 70px !important; }
    .calendar-nav-btn {
        width: 40px !important;
        height: 34px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        font-size: 19px !important;
    }
    .calendar-month {
        font-size: 12px !important;
    }
    .calendar-day-mini {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        font-size: 10px !important;
        line-height: 32px !important;
    }
    .calendar-legend,
    .legend-custom { font-size: 8px !important; gap: 6px !important; }
    .privacy-checkbox { font-size: 11px !important; line-height: 1.3 !important; }
}

@supports (-webkit-touch-callout: none) {
    input[type="text"],
    input[type="tel"],
    input[type="date"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* =========================================================
   ЧАСТЬ 5. ФИНАЛЬНЫЕ ТОЧЕЧНЫЕ ФИКСЫ
   ========================================================= */

/* Крестик закрытия — строго круглый */
.modal-close {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Кнопка «Отправить заявку» — фиксированный размер */
.submit-button {
    display: block !important;
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 12px 18px !important;
    margin: 8px 0 0 0 !important;
    box-sizing: border-box !important;
    border-radius: 50px !important;
    line-height: 1.2 !important;
}

/* Модалка всегда доступна для скролла */
.booking-modal,
#bookingModal {
    align-items: flex-start !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

.modal-content {
    margin: auto !important;
    max-height: none !important;
}

@media (max-width: 1024px) {
    .booking-modal,
    #bookingModal {
        align-items: flex-start !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
}
</style>