#hotels-app button,#hotels-app a,#hotels-app input,#hotels-app select{touch-action:manipulation}
#hotels-app button:disabled{opacity:.55;cursor:wait}
#hotels-app button{min-height:44px}
#hotels-app a{text-underline-offset:4px}
#hotels-app p{line-height:1.6}
#hotels-app .first-screen{height:calc(100svh - 74px);min-height:0;display:grid;grid-template-columns:1fr 1fr;position:relative}
#hotels-app .hero-copy{display:flex;flex-direction:column;justify-content:center;padding:clamp(20px,4vw,64px);padding-right:25px}
#hotels-app .eyebrow{text-transform:uppercase;font:500 12px var(--mono);letter-spacing:.15em;margin-bottom:22px;color:var(--sea)}
#hotels-app .hero-copy h1{font-size:clamp(34px,min(5.7vw,8vh),90px);font-weight:700;line-height:1.03;letter-spacing:-.045em}
#hotels-app .hero-copy h1 em{font-style:normal;color:var(--sea)}
#hotels-app .hero-copy>p{max-width:460px;margin:20px 0;font-size:clamp(15px,1.35vw,19px);color:var(--mute)}
#hotels-app .hero-visual{position:relative;overflow:hidden;margin:18px 18px 18px 0;border-radius:8px 80px 8px 8px;background:#d1e4e3}
#hotels-app .hero-visual img{width:100%;height:100%;object-fit:cover}
#hotels-app .visual-label{position:absolute;bottom:24px;left:24px;right:24px;padding:20px;background:#fffcf7ed;border-radius:6px;display:flex;justify-content:space-between;gap:10px;font-size:14px}
#hotels-app .visual-label b{font-family:var(--display);font-size:20px}
#hotels-app .hero-search-form{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-width:560px;margin-top:12px}
#hotels-app .hero-search-form .wide{grid-column:1/-1}
#hotels-app .field{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:12px;font-weight:500}
#hotels-app .field input,#hotels-app .field select{width:100%;min-width:0;height:46px;border:1px solid #d7d0c5;border-radius:8px;background:white;padding:10px 12px;font-size:15px;outline-offset:2px}
#hotels-app .hero-search-form button{height:48px;margin-top:2px}
#hotels-app .guest-line{display:grid;grid-template-columns:.65fr 1.35fr;gap:10px}
#hotels-app .extra-search{font-size:12px}
#hotels-app .extra-search summary{cursor:pointer}
#hotels-app .extra-search .field{margin-top:6px}
#hotels-app .sandbox{font:500 11px var(--mono);color:var(--mute);margin-top:12px!important}
#hotels-app .page-shell{max-width:1280px;margin:auto;padding:32px 4vw 64px}
#hotels-app .page-top{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:25px 0 32px}
#hotels-app .page-top h1{font-size:clamp(30px,4vw,56px)}
#hotels-app .page-top p{margin-top:12px;color:var(--mute)}
#hotels-app .catalog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
#hotels-app .hotel-card{border-bottom:1px solid #d8d0c4;padding-bottom:22px;min-width:0}
#hotels-app .hotel-card>a{display:block;text-decoration:none}
#hotels-app .card-photo{aspect-ratio:1.48;overflow:hidden;border-radius:7px;background:#e6e7df;position:relative}
#hotels-app .card-photo img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
#hotels-app .hotel-card:hover img{transform:scale(1.035)}
#hotels-app .rating{position:absolute;bottom:12px;left:12px;background:var(--paper);border-radius:4px;padding:4px 8px;font:500 12px var(--mono)}
#hotels-app .stars{color:#9d6411;font-size:13px;letter-spacing:.12em;margin:15px 0 7px}
#hotels-app .hotel-card h2{font-size:21px;line-height:1.25;min-height:2.5em}
#hotels-app .card-bottom{margin-top:14px;display:flex;align-items:end;justify-content:space-between;gap:12px}
#hotels-app .price{font:500 20px var(--mono);letter-spacing:-.04em;white-space:nowrap}
#hotels-app .price small{font:400 13px var(--body);letter-spacing:0}
#hotels-app .taxes{font-size:13px;color:var(--mute);margin-top:6px}
#hotels-app .arrow{font-size:25px}
#hotels-app .status-box{padding:32px;border:1px dashed #c7bcae;border-radius:10px;background:#fff8e9;margin:24px 0;overflow-wrap:anywhere}
#hotels-app .status-box h2{margin-bottom:12px}
#hotels-app .error{border-color:#b15c49;color:#7d3525}
#hotels-app .loading{padding:70px 0;text-align:center;color:var(--mute)}
#hotels-app .loading:before{content:'';display:block;width:30px;height:30px;margin:0 auto 20px;border:3px solid #e0d6c7;border-top-color:var(--sea);border-radius:50%;animation:spin 1s infinite linear}
@keyframes spin{to{transform:rotate(360deg)}}
#hotels-app .back{font-size:14px}
#hotels-app .gallery{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px;height:340px;margin-bottom:32px}
#hotels-app .gallery button{border:0;padding:0;background:#d9e4df;border-radius:8px;overflow:hidden;cursor:zoom-in}
#hotels-app .gallery img{width:100%;height:100%;object-fit:cover}
#hotels-app .hotel-info{display:grid;grid-template-columns:1.5fr 1fr;gap:50px;margin-bottom:45px}
#hotels-app .hotel-info h2{font-size:25px;margin-bottom:20px}
#hotels-app .description{color:var(--mute);white-space:pre-line}
#hotels-app .amenities{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
#hotels-app .amenities span{border:1px solid var(--line);padding:7px 11px;border-radius:30px;font-size:13px}
#hotels-app .rates-title{margin:26px 0}
#hotels-app .rate-row{display:grid;grid-template-columns:1.1fr 1.5fr 1fr;gap:24px;padding:25px 0;border-top:1px solid #ddd3c6}
#hotels-app .rate-row h3{font-size:19px;margin-bottom:9px}
#hotels-app .rate-row ul{padding-left:18px;margin:8px 0;font-size:13px;color:var(--mute)}
#hotels-app .rate-price{text-align:right}
#hotels-app .rate-price button{margin-top:13px}
#hotels-app .cancel-rule{font-size:13px}
#hotels-app .board{font-size:14px;color:var(--sea)}
#hotels-app .checkout-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:start}
#hotels-app .checkout-panel{padding:28px;background:#fff;border:1px solid var(--line);border-radius:12px}
#hotels-app .checkout-panel h2{margin-bottom:24px}
#hotels-app .guest-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}
#hotels-app .guest-form .full{grid-column:1/-1}
#hotels-app .check{display:flex;gap:10px;align-items:flex-start;font-size:13px}
#hotels-app .check input{margin-top:5px;min-width:18px;height:18px}
#hotels-app .summary-ticket{background:#f4ead8;border-radius:12px;padding:28px;position:sticky;top:24px}
#hotels-app .summary-ticket h2{font-size:25px;line-height:1.2;margin-bottom:15px}
#hotels-app .summary-ticket .price{margin:22px 0}
#hotels-app .summary-ticket hr{border:0;border-top:1px dashed #b4a58d;margin:20px 0}
#hotels-app .terms{font-size:12px;max-height:180px;overflow:auto;margin-top:15px}
#hotels-app .confirmation{max-width:760px;margin:50px auto}
#hotels-app .confirmation h1{font-size:clamp(32px,5vw,58px);margin:15px 0}
#hotels-app .success-mark{display:grid;place-items:center;width:60px;height:60px;background:var(--sea);color:white;border-radius:50%;font-size:30px;margin-bottom:25px}
#hotels-app .confirmation .summary-ticket{margin:32px 0}
#hotels-app .pager{display:flex;justify-content:center;gap:20px;margin-top:35px}
#hotels-app dialog{max-width:92vw;border:0;padding:12px;border-radius:12px;background:var(--paper)}
#hotels-app dialog::backdrop{background:#07111ddd}
#hotels-app dialog img{max-height:78svh;object-fit:contain}
#hotels-app dialog button{float:right}
#hotels-app .more-rates{margin-top:20px}
#hotels-app #payment{min-height:340px;margin-top:22px}
#hotels-app .pending{color:var(--sun-ink)}
@media(min-width:701px) and (max-height:680px){#hotels-app .hero-copy{padding-top:14px;padding-bottom:14px}
#hotels-app .hero-copy h1{font-size:clamp(32px,5vw,54px)}
#hotels-app .hero-copy>p{margin:10px 0;font-size:14px}
#hotels-app .eyebrow{margin-bottom:10px}
#hotels-app .hero-search-form{gap:6px}
#hotels-app .field input,#hotels-app .field select{height:38px;padding:6px 10px}
#hotels-app .hero-search-form button{height:40px;min-height:40px}
#hotels-app .sandbox{margin-top:6px!important}
#hotels-app .extra-search{display:none}
}
@media(max-width:700px){#hotels-app .first-screen{height:calc(100svh - 62px);display:block;min-height:0}
#hotels-app .hero-copy{height:100%;padding:clamp(16px,3vh,28px) 20px;justify-content:center;position:relative;z-index:2;background:linear-gradient(100deg,#fffcf7fc,#fffcf7eb)}
#hotels-app .hero-visual{position:absolute;inset:0;margin:0;border-radius:0;z-index:0}
#hotels-app .visual-label{display:none}
#hotels-app .eyebrow{font-size:10px;margin-bottom:16px}
#hotels-app .hero-copy h1{font-size:clamp(36px,6.4vh,53px);max-width:340px}
#hotels-app .hero-copy>p{font-size:15px;max-width:310px;margin:14px 0}
#hotels-app .hero-search-form{margin-top:9px;gap:9px}
#hotels-app .field input,#hotels-app .field select{height:44px;font-size:14px}
#hotels-app .extra-search{font-size:11px}
#hotels-app .sandbox{font-size:10px}
#hotels-app .page-shell{padding:23px 20px 45px}
#hotels-app .page-top{align-items:start;margin:22px 0}
#hotels-app .page-top h1{font-size:32px}
#hotels-app .catalog-grid{grid-template-columns:1fr;gap:27px}
#hotels-app .hotel-card h2{min-height:0}
#hotels-app .gallery{height:260px;grid-template-columns:2fr 1fr;gap:7px}
#hotels-app .gallery button:last-child{display:none}
#hotels-app .hotel-info{grid-template-columns:1fr;gap:20px}
#hotels-app .rate-row{grid-template-columns:1fr;gap:13px;padding:22px 0}
#hotels-app .rate-price{text-align:left;display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;align-items:center}
#hotels-app .rate-price button{margin-top:0}
#hotels-app .rate-price .taxes{width:100%}
#hotels-app .checkout-grid{grid-template-columns:1fr;gap:22px}
#hotels-app .summary-ticket{position:static;padding:22px;order:-1}
#hotels-app .checkout-panel{padding:20px}
#hotels-app .guest-form{grid-template-columns:1fr}
#hotels-app .guest-form .full{grid-column:auto}
#hotels-app .confirmation{margin:24px auto}
#hotels-app .page-top .btn{font-size:13px;padding:10px 14px}
#hotels-app .status-box{padding:20px}
}
@media(prefers-reduced-motion:reduce){#hotels-app *,#hotels-app *:before{animation:none!important;transition:none!important}
}
@media(min-width:701px) and (max-height:560px){#hotels-app .hero-copy h1{font-size:clamp(30px,4.6vw,48px)}
#hotels-app .hero-copy>p{margin:6px 0}
#hotels-app .eyebrow{margin-bottom:6px}
}

/* Общая шапка сайта фиксированная: высота берётся из его переменных. */
.hotels-page #main{padding-top:calc(var(--head-h) + var(--bar-h))}
#hotels-app .first-screen{height:calc(100svh - var(--head-h) - var(--bar-h));overflow:clip}
#hotels-app{--paper:#fffcf7;--line:#e7dfd3;background:var(--paper)}
#hotels-app .hero-copy h1{margin:0}
@media(max-width:760px){#hotels-app .first-screen{height:calc(100svh - var(--head-h) - var(--bar-h) - 64px)}}

/* Контейнер Stripe сохраняет ширину до события ready. */
#hotels-app #payment-panel{min-width:0;scroll-margin-top:85px}
#hotels-app .hotels-payment-form,#hotels-app #hotels-payment-element{width:100%;min-width:0}
#hotels-app .hotels-payment-form>.lp-submit-button{margin-top:20px}
