.booking-open{overflow:hidden}
.booking-dialog{width:min(540px,calc(100% - 32px));max-height:calc(100dvh - 32px);border:0;border-radius:12px;padding:0;background:var(--cream);color:var(--ink);overflow:auto;box-shadow:0 24px 90px #0005}
.booking-dialog::backdrop{background:#10251cd9}
.booking-dialog .booking-content{padding:28px}
.booking-dialog .booking-close{position:sticky;top:12px;float:right;margin:12px 12px -56px 0;width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:var(--cream);color:var(--green);font-size:28px;cursor:pointer;z-index:1}
.booking-dialog h2{font-size:34px;line-height:1.16;margin:12px 32px 12px 0}
.booking-dialog .booking-description{font-size:15px;color:var(--muted);margin-bottom:24px}
.booking-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}
.booking-dialog .field label{font-size:14px}
.booking-dialog .field input{height:42px;font-size:16px;min-width:0;max-width:100%}
.booking-dialog .field{min-width:0}
.booking-dialog .check{align-items:flex-start;gap:12px;line-height:1.5;margin:14px 0;font-size:14px;cursor:pointer}
.booking-dialog input[type=checkbox]{width:22px;height:22px;flex-shrink:0;accent-color:var(--green);margin:0}
.booking-dialog input:disabled{background:#e5e6df;color:#777}
.booking-dialog .btn{min-height:50px;width:100%;font-size:16px;border-radius:999px}
.booking-dialog .consent-copy{font-size:12px;color:var(--muted);margin:8px 0 20px}
.booking-dialog .consent-copy a{text-decoration:underline}
.booking-status{font-size:14px;color:#8c2d24;margin-top:14px}
.booking-dialog .booking-telegram{display:flex;align-items:center;justify-content:center;gap:14px;padding:13px 20px;margin-top:24px;border:1px solid var(--green);border-radius:999px;font-size:14px;line-height:1.4}
.booking-telegram svg{width:44px;height:44px;flex-shrink:0;color:#229ed9}
.booking-telegram strong{display:block;font-weight:400;color:var(--green);text-decoration:underline;margin-top:5px}
.booking-confirmation{text-align:center;padding:20px 0}
.booking-confirmation .success-mark{display:grid;place-items:center;width:68px;height:68px;border-radius:50%;background:#dce6d5;color:var(--green);font-size:34px;margin:0 auto 22px}
.booking-confirmation h3{font-size:36px;margin-bottom:16px}
.booking-confirmation p{font-size:16px;color:var(--muted);margin-bottom:20px}
.booking-dialog [hidden]{display:none!important}
@media(max-width:540px){.booking-dialog{width:100%;max-width:100%;max-height:100dvh;min-height:100dvh;margin:0;border-radius:0}.booking-dialog .booking-content{padding:28px 20px calc(28px + env(safe-area-inset-bottom))}.booking-dialog h2{font-size:30px}.booking-fields{gap:14px 10px}.booking-fields.contact-fields{grid-template-columns:1fr}.booking-dialog .booking-close{top:10px}.booking-confirmation{padding-top:52px}}

.exit-prompt{box-sizing:border-box;width:min(460px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:44px 32px 32px;border:1px solid #c5aa7a;border-radius:20px;background:#eee7da;color:#1d3d2b;text-align:center;box-shadow:0 20px 70px #10281940}
.exit-prompt::backdrop{background:#102418a6}
.exit-close{position:absolute;right:12px;top:12px;width:36px;height:36px;border:1px solid #d5cbb9;border-radius:50%;background:#faf7f0;color:#1d3d2b;font-size:25px;cursor:pointer}
.exit-eyebrow{text-transform:uppercase;letter-spacing:3px;font-size:10px;margin:0 0 18px}
.exit-accent{width:44px;height:1px;background:#b69a68;margin:0 auto 24px}
.exit-prompt h2{font-family:Georgia,serif;font-weight:400;font-size:38px;line-height:1.15;margin:0 0 22px}
.exit-description{font-size:15px;line-height:1.6;margin:0 0 26px}
.exit-primary{display:flex;align-items:center;justify-content:center;gap:20px;width:100%;min-height:50px;border:0;border-radius:30px;background:#1d3d2b;color:#faf7f0;font:inherit;cursor:pointer}
.exit-continue{display:block;margin:20px auto 0;padding:6px;border:0;border-bottom:1px solid #b69a68;background:transparent;color:#1d3d2b;font:inherit;font-size:13px;cursor:pointer}
.exit-prompt button:focus-visible{outline:3px solid #b69a68;outline-offset:3px}
@media(max-width:480px){.exit-prompt{padding:42px 22px 26px}.exit-prompt h2{font-size:32px}}
html.exit-open{overflow:hidden}
/* Мобильные окна остаются компактными, длинная форма прокручивается внутри. */
@media(max-width:540px){
 .booking-dialog{width:calc(100% - 32px);max-width:340px;min-height:0;max-height:calc(100dvh - 32px);margin:auto;border-radius:14px}
 .booking-dialog .booking-content{padding:18px 12px 14px}
 .booking-dialog h2{font-size:23px;margin:7px 28px 8px 0}
 .booking-dialog .eyebrow{font-size:10px;letter-spacing:1.5px}
 .booking-dialog .booking-description{font-size:12px;line-height:1.35;margin-bottom:10px}
 .booking-fields,.booking-fields.contact-fields{gap:8px;margin-bottom:8px}
 .booking-dialog .field label{font-size:12px;margin-bottom:3px}
 .booking-dialog .field input{height:36px;padding:4px 6px;font-size:16px}
 .booking-dialog .check{font-size:12px;gap:8px;line-height:1.35;margin:8px 0}
 .booking-dialog input[type=checkbox]{width:17px;height:17px}
 .booking-dialog .btn{min-height:44px;font-size:14px;padding:11px 16px}
 .booking-dialog .consent-copy{font-size:11px;line-height:1.4;margin:5px 0 9px}
 .booking-dialog .booking-close{width:36px;height:36px;font-size:23px;top:8px;margin:8px 8px -44px 0}
 .booking-confirmation{padding:24px 0 8px}.booking-confirmation h3{font-size:28px}
 .booking-confirmation .success-mark{width:48px;height:48px;font-size:26px;margin-bottom:14px}
 .booking-dialog .booking-telegram{margin-top:16px;padding-top:14px;font-size:12px}
 .exit-prompt{padding:36px 20px 22px}.exit-prompt h2{font-size:29px;margin-bottom:16px}
 .exit-eyebrow{margin-bottom:12px}.exit-accent{margin-bottom:18px}.exit-description{font-size:14px;margin-bottom:20px}
 .exit-primary{min-height:44px;font-size:14px}
}
.action-arrow{width:18px;height:18px;flex:0 0 18px}
@media(min-width:360px) and (max-width:540px){.booking-fields.contact-fields{grid-template-columns:1fr 1fr}}

@media(max-width:540px){.booking-dialog form>.note{font-size:11px;margin-top:8px!important}.booking-status:empty{margin:0}}

/* Код страны виден постоянно, посетитель вводит десять цифр номера. */
.phone-field{display:flex;align-items:center;background:white;border:1px solid var(--line);border-radius:3px;overflow:hidden;color:var(--ink)}
.phone-field>span{padding-left:12px;flex-shrink:0}
.booking-dialog .phone-field input{border:0;min-width:0;padding-left:8px}
.phone-field:focus-within{outline:2px solid var(--green);outline-offset:2px}

/* Одна рамка вокруг телефона: внутренняя обводка обрезалась и выглядела полоской. */
.booking-dialog .phone-field input:focus,.booking-dialog .phone-field input:focus-visible{outline:none;box-shadow:none}
.field input,.field select,.phone-field{border-radius:14px}
.booking-dialog .phone-field input{flex:1;width:0;border-radius:0;background:transparent}
.booking-dialog .phone-field{border-radius:14px}
.search .field,.booking-fields>*{min-width:0}
.field input[type=date]{display:block;box-sizing:border-box;min-width:0;width:100%;max-width:100%;appearance:none;-webkit-appearance:none}
.field input[type=date]::-webkit-date-and-time-value{min-width:0;text-align:left}
@media(max-width:540px){
 .booking-fields.contact-fields{grid-template-columns:1fr}
 .booking-dialog .field input[type=date],.search .field input[type=date]{height:36px;min-height:36px;padding:4px 6px;font-size:16px}
}

/* Одинаковые зоны касания общей формы на главной и внутренних страницах. */
#booking-dialog .field input,#booking-dialog .field input[type=date]{height:44px;min-height:44px}
#booking-dialog .check{display:flex;align-items:center;min-height:44px}
#booking-dialog .booking-close{width:44px;height:44px;min-height:44px;margin-bottom:-52px}
#booking-dialog .btn{width:100%;min-height:44px}
/* Кнопка использует существующую SVG-стрелку без декоративного дубля. */
#booking-dialog .btn::after{content:none;display:none}
#booking-dialog .booking-status a{display:inline-flex;align-items:center;min-height:44px;color:var(--green);text-decoration:underline;text-underline-offset:3px}

/* Крупные отметки общей формы: нажатие на подпись тоже переключает состояние. */
#booking-dialog .check{min-height:44px;gap:12px;align-items:center;touch-action:manipulation}
#booking-dialog input[type="checkbox"]{appearance:none;-webkit-appearance:none;box-sizing:border-box;display:block;width:26px;height:26px;min-width:26px;min-height:26px;flex:0 0 26px;margin:0;border:2px solid #8a978a;border-radius:6px;background-color:#fffdf8;background-position:center;background-repeat:no-repeat;background-size:19px 19px;cursor:pointer;transition:border-color 80ms ease,background-color 80ms ease}
#booking-dialog input[type="checkbox"]:checked{border-color:var(--green,#1f3d2b);background-color:#e7efdf;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m5 12 4.5 4.5L19 7' stroke='%231f3d2b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
#booking-dialog input[type="checkbox"]:focus-visible{outline:3px solid var(--bronze,#b58a4b);outline-offset:4px}
#booking-dialog input[type="checkbox"]:disabled{opacity:.5;cursor:not-allowed}
#booking-dialog .check a{color:inherit;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
@media(hover:hover){#booking-dialog .check:hover input[type="checkbox"]:not(:disabled){border-color:var(--green,#1f3d2b)}}
@media(prefers-reduced-motion:reduce){#booking-dialog input[type="checkbox"]{transition:none}}
@media(forced-colors:active){#booking-dialog input[type="checkbox"]{appearance:auto;-webkit-appearance:checkbox;accent-color:Highlight;background-image:none}}
