:root {
  color-scheme: light;
  --ink: #13223c;
  --muted: #596b83;
  --blue: #1b57d4;
  --deep: #123c9a;
  --line: #dbe5f2;
  --paper: #f5f8fd;
  --white: #fff;
  --radius: 20px;
  --shadow: 0 18px 46px rgb(23 59 109 / 11%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; line-height: 1.5; }
a { color: var(--blue); text-underline-offset: .19em; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #1a70f2; outline-offset: 3px; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -.045em; line-height: 1.08; }
h1 { font-size: clamp(2.35rem, 5vw, 4.05rem); }
h2 { font-size: clamp(1.65rem, 3.1vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p + p { margin-top: .7rem; }
.shell { width: min(1256px, calc(100% - 72px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; left: 1rem; top: -5rem; background: white; padding: .7rem; }
.skip-link:focus { top: 1rem; }
.site-header { background: var(--white); border-bottom: 1px solid #e9eef6; }
.head-inner { min-height: 75px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.wordmark { display: inline-flex; align-items: baseline; color: var(--ink); font-size: 1.65rem; font-weight: 900; letter-spacing: -.08em; text-decoration: none; width: max-content; line-height: 1; }
.wordmark span { color: var(--blue); }
.main-nav { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.7rem); }
.main-nav a, .head-phone a { color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 650; }
.main-nav a:hover, .main-nav [aria-current] { color: var(--blue); }
.main-nav-icon, .mobile-telegram-slot { display: none; }
.head-phone { justify-self: end; }
.head-phone a { display: flex; align-items: center; gap: .65rem; white-space: nowrap; border: 1px solid var(--line); border-radius: 100px; padding: .65rem .93rem; }

.hero { position: relative; isolation: isolate; margin-top: 24px; min-height: clamp(370px, 34vw, 465px); display: flex; align-items: center; border-radius: 30px; overflow: hidden; background: #174196; color: var(--white); }
.hero-pict { position: absolute; z-index: -2; inset: 0 0 0 37%; }
.hero-pict img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 46%; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #133782 0%, #1946a6 36%, #1946a6f2 41%, #153b8c8c 52%, transparent 72%); }
.hero-copy { padding: 50px clamp(34px, 6vw, 75px) 78px; }
.hero-kicker { display: inline-flex; align-items: center; gap: .52rem; padding: .45rem .78rem; margin-bottom: 1.2rem; border: 1px solid rgb(255 255 255 / 27%); border-radius: 100px; background: rgb(255 255 255 / 10%); font-size: .86rem; font-weight: 650; }
.hero h1 { font-size: clamp(2.7rem, 5.1vw, 4.65rem); letter-spacing: -.064em; line-height: .99; }
.hero p { margin-top: 1.25rem; max-width: 25rem; color: #e7efff; font-size: clamp(1rem, 1.6vw, 1.18rem); }
.home-with-map .hero { min-height: clamp(300px, 26vw, 350px); }
.home-with-map .hero-copy { padding-block: 30px 68px; }
.search-box { position: relative; z-index: 1; margin: -50px clamp(20px, 4vw, 57px) 0; padding: 15px 16px 12px; border: 1px solid #e9eef6; background: var(--white); border-radius: 22px; box-shadow: var(--shadow); }
.stay-fields { display: grid; grid-template-columns: 1.05fr 1.05fr .92fr auto; gap: 8px; align-items: stretch; }
.stay-field { display: flex; align-items: center; text-align: left; gap: .8rem; padding: .61rem .8rem; min-width: 0; min-height: 66px; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; background: #f9fbff; }
.stay-field:hover, .stay-field:focus-within { border-color: #85aaf3; background: #f3f7ff; }
.stay-field > span { min-width: 0; flex: 1; }
.stay-field b { display: block; font-size: .81rem; font-weight: 650; color: var(--muted); }
.stay-field [data-value] { display: block; font-weight: 700; font-size: .96rem; white-space: nowrap; }
.stay-field select { display: block; width: 100%; border: 0; border-radius: .25rem; background: transparent; color: var(--ink); padding: 0 3px 0 0; font-weight: 700; font-size: .96rem; }
.stay-meta { display: flex; justify-content: space-between; align-items: center; gap: 4px 12px; flex-wrap: wrap; margin: 10px 4px 1px; font-size: .81rem; color: var(--muted); }
.stay-meta span:first-child { display: inline-flex; align-items: center; gap: .35rem; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: .45rem; min-height: 46px; padding: .68rem 1.1rem; border: 1px solid transparent; border-radius: 12px; text-decoration: none; text-align: center; line-height: 1.22; font-weight: 730; }
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: var(--deep); }
.btn:disabled { opacity: .58; }
.btn-outline { background: var(--white); color: var(--blue); border-color: #cbdcf7; }
.btn-outline:hover { background: #f0f6ff; }
.btn-small { min-height: 38px; padding: .56rem .83rem; font-size: .88rem; }
.search-button { min-width: 198px; }
.full { width: 100%; }
.form-error { color: #a3372b; font-size: .92rem; }
.stay-form .form-error { margin: .35rem .25rem 0; }
.icon { flex: 0 0 auto; display: inline-block; position: relative; width: 18px; height: 18px; color: var(--blue); }
.i-calendar { border: 1.7px solid currentColor; border-radius: 3px; background: linear-gradient(currentColor, currentColor) 0 4px / 100% 1.5px no-repeat; }
.i-calendar::before, .i-calendar::after { content: ""; position: absolute; top: -3px; width: 1.7px; height: 5px; border-radius: 2px; background: currentColor; }
.i-calendar::before { left: 3px; }.i-calendar::after { right: 3px; }
.i-guest::before { content: ""; position: absolute; width: 7px; height: 7px; left: 5.5px; top: 0; border: 1.7px solid currentColor; border-radius: 50%; }
.i-guest::after { content: ""; position: absolute; bottom: 0; left: 1px; width: 16px; height: 8px; border: 1.7px solid currentColor; border-radius: 9px 9px 3px 3px; }
.i-info { width: 14px; height: 14px; border: 1px solid currentColor; border-radius: 50%; font-style: normal; text-align: center; font-weight: 800; font-size: .64rem; line-height: 12px; }
.i-info::before { content: "i"; }
.i-pin { width: 13px; height: 13px; border: 1.6px solid currentColor; border-radius: 52% 52% 52% 8%; transform: rotate(-45deg); color: inherit; }
.i-pin::before { content: ""; position: absolute; width: 4px; height: 4px; border: 1px solid currentColor; border-radius: 50%; top: 3px; left: 3px; }
.i-phone { width: 14px; height: 16px; border-left: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; border-radius: 3px 0 5px 12px; transform: rotate(-20deg) scale(.85); }
.i-phone::before, .i-phone::after { content: ""; position: absolute; width: 5px; height: 6px; border: 1.5px solid currentColor; border-radius: 2px; }
.i-phone::before { left: 0; top: 0; }.i-phone::after { bottom: -1px; right: 0; transform: rotate(90deg); }
.i-envelope { width: 15px; height: 11px; border: 1.4px solid currentColor; border-radius: 2px; overflow: hidden; }
.i-envelope::before { content: ""; position: absolute; top: -4px; left: 50%; width: 9px; height: 9px; border: solid currentColor; border-width: 0 1.4px 1.4px 0; transform: translateX(-50%) rotate(45deg); }
.i-telegram { background: currentColor; width: 31px; height: 28px; clip-path: polygon(0 40%, 100% 2%, 80% 98%, 50% 74%, 37% 88%, 41% 60%, 81% 24%, 31% 56%); color: white; }
.i-image { width: 15px; height: 12px; border: 1.4px solid currentColor; border-radius: 3px; background: linear-gradient(135deg, transparent 57%, currentColor 58%, currentColor 65%, transparent 66%); }
.i-image::before { content: ""; position: absolute; background: currentColor; width: 3px; height: 3px; border-radius: 50%; top: 2px; left: 2px; }

.catalog { padding: 42px 0 64px; }
.catalog-results { scroll-margin-top: 20px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 13px; margin-bottom: 19px; }
.section-heading p { margin-top: .42rem; color: var(--muted); }
.home-with-map .catalog { padding-top: 20px; }
.catalog-map { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(270px, 1fr); margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.map-canvas { height: clamp(360px, 36vw, 460px); background: #e8eff3; isolation: isolate; }
.map-canvas iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-sidebar { display: flex; flex-direction: column; gap: .6rem; min-width: 0; max-height: clamp(360px, 36vw, 460px); padding: 16px; }
.map-sidebar h3 { font-size: 1.09rem; }
.map-addresses { display: grid; gap: .35rem; }
.map-addresses button { display: flex; align-items: center; justify-content: space-between; gap: .65rem; min-height: 42px; width: 100%; padding: .42rem .62rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); text-align: left; font-size: .9rem; }
.map-addresses button[aria-pressed="true"] { border-color: #b9d2ff; background: #eef4ff; color: #1746a4; }
.map-addresses strong { min-width: 1.65rem; padding: .12rem .42rem; border-radius: 100px; background: #e0edff; color: #1746a4; text-align: center; }
.map-listing { display: grid; gap: .4rem; min-height: 0; overflow: auto; }
.map-listing > p { color: var(--muted); font-size: .88rem; }
.map-apartment { display: flex; align-items: center; gap: .6rem; padding: .35rem; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; }
.map-apartment:hover { border-color: #b9d2ff; color: var(--blue); }
.map-apartment:focus-visible { outline-offset: -3px; }
.map-apartment img { flex: 0 0 auto; border-radius: 7px; object-fit: cover; }
.map-apartment strong, .map-apartment small { display: block; }
.map-apartment strong { font-size: .9rem; line-height: 1.25; }
.map-apartment small { color: var(--muted); font-size: .82rem; }
.map-apartment .map-apartment-price { margin-top: .16rem; color: #1746a4; font-weight: 650; }
.mode-pill { display: inline-flex; align-items: center; gap: .39rem; width: fit-content; border: 1px solid #d3e0f5; max-width: 100%; border-radius: 100px; background: #f0f6ff; padding: .3rem .65rem; font-size: .82rem; font-weight: 700; color: #234f9d; }
.mode-pill span { width: .38rem; height: .38rem; border-radius: 50%; background: #477cdd; }
.catalog-layout { display: grid; grid-template-columns: minmax(0, 2.19fr) minmax(230px, 1fr); gap: 18px; align-items: start; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.apartment-card { background: var(--white); border: 1px solid #e0e9f5; border-radius: var(--radius); overflow: hidden; }
.photo-surface { position: relative; display: grid; place-items: center; overflow: hidden; background: #e7effb; isolation: isolate; }
.photo-surface.warm { background: #eee9e4; }
.photo-surface img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.card-photo { aspect-ratio: 1.64; text-decoration: none; }
.photo-art { position: absolute; z-index: -1; inset: 0; overflow: hidden; }
.photo-art > span { position: absolute; display: block; width: 45%; aspect-ratio: .88; border-radius: 45% 45% 0 0; top: 15%; left: 13%; border: 1px solid rgb(89 134 194 / 22%); background: linear-gradient(140deg, #ffffff65, #bdcfea62); }
.photo-art > span:nth-child(2) { width: 39%; top: 30%; left: 35%; transform: rotate(-16deg); }
.photo-art > span:nth-child(3) { width: 31%; top: 11%; left: 60%; transform: rotate(24deg); }
.warm .photo-art > span { border-color: #b590772e; background: linear-gradient(135deg, #fcf6ec9e, #d9bba766); }
.photo-slot { display: inline-flex; align-items: center; gap: .4rem; color: #244468; background: #ffffffef; border-radius: 100px; padding: .42rem .68rem; font-size: .8rem; font-weight: 660; }
.demo-tag { position: absolute; left: 11px; top: 11px; padding: .25rem .48rem; background: #fff; color: #314766; border-radius: 7px; font-size: .76rem; font-weight: 680; }
.card-content { padding: 15px; }
.card-content h3 a { color: var(--ink); text-decoration: none; }
.card-content h3 a:hover { color: var(--blue); }
.card-content p, .listing-status { color: var(--muted); font-size: .91rem; }
.card-content p { margin-top: .52rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: 14px; padding-top: 13px; border-top: 1px solid #e9eff8; font-size: .86rem; color: var(--muted); }
.card-foot .btn { flex-shrink: 0; margin-inline-start: auto; }
.card-price strong { color: var(--ink); font-size: 1.38rem; letter-spacing: -.035em; white-space: nowrap; }
.card-price small { display: block; font-size: inherit; }
.card-occupied { color: #93432d; font-weight: 650; }
.telegram-banner { display: grid; grid-template-columns: auto minmax(0, 1fr); align-self: start; align-items: center; gap: 10px 12px; border-radius: var(--radius); padding: 16px; background: radial-gradient(ellipse at 100% 0%, #4b83e9, transparent 63%), linear-gradient(145deg, #204cb6, #112f82); color: var(--white); }
.telegram-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #ffffff29; }
.telegram-mark .icon { width: 18px; height: 17px; }
.telegram-banner h3 { font-size: clamp(1.12rem, 1.65vw, 1.45rem); }
.telegram-banner p { margin-top: .24rem; color: #ecf3ff; font-size: .92rem; font-weight: 650; }
.telegram-link { grid-column: 2; justify-self: start; background: var(--white); color: #1c4ca9; min-height: 38px; padding: .5rem .75rem; font-size: .85rem; }
.telegram-link:hover { background: #e1edff; }
.empty { grid-column: 1 / -1; border: 1px dashed var(--line); background: white; padding: 1.5rem; border-radius: var(--radius); }
.empty p { margin: .55rem 0; }

.site-footer { background: var(--white); border-top: 1px solid #e4edf8; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr; gap: 25px; padding: 32px 0; }
.footer-grid p { color: var(--muted); margin-top: .62rem; }
.footer-links { display: grid; gap: .37rem; justify-items: start; }
.footer-links a { color: var(--muted); font-size: .91rem; text-decoration: none; }
.footer-links a:hover { color: var(--blue); text-decoration: underline; }
.footer-contact { display: inline-flex; align-items: center; gap: .5rem; max-width: 100%; }
.footer-contact span { overflow-wrap: anywhere; }
.footer-contact .i-telegram { width: 15px; height: 14px; color: var(--blue); }
.footer-end { display: flex; justify-content: space-between; gap: 10px; padding: 15px 0 21px; border-top: 1px solid #e4edf8; color: var(--muted); font-size: .84rem; }

.inner-page { padding: 34px 0 65px; min-height: 56vh; }
.back-link { display: inline-block; margin-bottom: .9rem; font-size: .93rem; font-weight: 650; }
.text-page > h1 { margin-bottom: 1.35rem; }
.text-page > h2 { margin: 1.9rem 0 .85rem; }
.page-lead { color: var(--muted); font-size: 1.15rem; margin-bottom: 1.2rem; }
.promo-form { display: grid; gap: .45rem; margin-top: 1rem; }
.promo-form label { font-weight: 650; }
.promo-fields { display: flex; align-items: center; gap: .5rem; }
.promo-fields input { min-width: 0; flex: 1; width: 100%; min-height: 38px; padding: .42rem .58rem; border: 1px solid var(--line); border-radius: 9px; }
.promo-fields button { flex-shrink: 0; }
.promo-remove { justify-self: start; border: 0; padding: 0; background: none; color: var(--blue); font-size: .86rem; text-decoration: underline; }
.promo-feedback { font-size: .86rem; }
.promo-feedback:empty { display: none; }
.price-lines .promo-discount, .promo-discount dd { color: #146744; }
.panel { background: white; padding: clamp(16px, 3vw, 27px); border: 1px solid var(--line); border-radius: var(--radius); }
.panel h2 { font-size: clamp(1.32rem, 2.5vw, 1.75rem); margin-bottom: .65rem; }
.contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 1rem 0; }
.contact-grid > .panel { display: flex; flex-direction: column; gap: .65rem; }
.contact-grid h2 { margin-bottom: 0; }
.contact-grid p { margin-top: auto; overflow-wrap: anywhere; }
.reviews-back { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); text-decoration: none; }
.reviews-back:hover { color: var(--blue); }
.reviews-back span { font-size: 1.12rem; line-height: 1; }
.reviews-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1.4rem;
  margin-bottom: 18px; padding: clamp(19px, 3.35vw, 40px);
  border: 1px solid #dce7f6; border-radius: 24px;
  background: linear-gradient(112deg, #fff 39%, #edf4ff);
}
.reviews-header h1 { font-size: clamp(2.1rem, 4.5vw, 3.55rem); line-height: 1.05; }
.reviews-rating { display: flex; align-items: center; flex-wrap: wrap; gap: .42rem .66rem; margin-top: .84rem; }
.reviews-rating strong { font-size: .97rem; font-weight: 680; }
.reviews-stars { padding: .37rem .55rem; border: 1px solid #fae7bd; border-radius: 9px; background: #fff5df; color: #9e5905; font-size: 1.05rem; letter-spacing: .09em; line-height: 1; }
.reviews-channel {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .65rem;
  min-height: 54px; width: max-content; max-width: 275px; padding: .48rem .68rem;
  border: 1px solid #cbdcf5; border-radius: 14px; background: var(--white);
  color: var(--deep); box-shadow: 0 4px 12px rgb(27 71 144 / 7%);
  font-size: .91rem; font-weight: 700; line-height: 1.25; text-decoration: none;
}
.reviews-channel:hover { border-color: #9bbaf1; background: #f9fbff; }
.reviews-channel-label > span { white-space: nowrap; }
.reviews-channel-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #e9f2ff; }
.reviews-channel-icon .icon { width: 17px; height: 16px; color: var(--blue); }
.reviews-channel-arrow { color: #5274a8; font-size: 1rem; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 16px; }
.review-card { position: relative; min-width: 0; aspect-ratio: 1.57; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.review-card:hover { border-color: #8cb2f3; box-shadow: 0 4px 14px #21478218; }
.review-card img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 9px; object-fit: contain; }
.review-zoom { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--blue); font-size: 1.12rem; line-height: 1; }
.review-quote blockquote { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.review-video { margin: 0; padding: .6rem; }
.review-video video { display: block; width: 100%; height: clamp(12rem, 40vw, 16rem); background: var(--ink); border-radius: 10px; }
.review-video figcaption { margin: .5rem .15rem .12rem; font-weight: 650; }
.prose { max-width: 800px; }
.prose section { margin-top: 1.55rem; }
.prose section:first-child { margin-top: 0; }
.prose p + p { margin-top: .65rem; }
.booking-rules ul { margin: 0; padding-inline-start: 1.25rem; }
.booking-rules li + li { margin-top: .65rem; }
.rules-confirmation { margin-top: 1.4rem; padding: .9rem 1rem; border-radius: 12px; background: #eef4ff; }
.requisites { margin: 0; }
.requisites > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: .25rem 1rem; padding: .7rem 0; }
.requisites > div + div { border-top: 1px solid var(--line); }
.requisites dt { font-weight: 700; }
.requisites dd { margin: 0; overflow-wrap: anywhere; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: clamp(240px, 33vw, 420px); border-radius: 22px; overflow: hidden; }
.gallery-single { display: block; }
.gallery-tile { min-width: 0; width: 100%; height: 100%; border: 0; }
.gallery-tile:first-child { grid-row: span 2; }
.gallery-tile:hover .photo-slot { background: #fff; }
.gallery-tile:focus-visible { outline-offset: -4px; }
.gallery-more { position: absolute; inset: 0; display: grid; place-content: center; gap: 2px; background: rgb(14 24 42 / 65%); color: #fff; text-align: center; pointer-events: none; }
.gallery-more strong { font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1; }
.gallery-more > span { font-size: .85rem; font-weight: 650; }
.gallery-tile:hover .gallery-more { background: rgb(14 24 42 / 75%); }
.gallery-dialog, .calendar-dialog { max-width: calc(100% - 24px); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: white; box-shadow: var(--shadow); }
dialog::backdrop { background: #0b1d3e91; }
.gallery-dialog { width: 760px; padding: 16px; }
.gallery-head, .calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: .8rem; }
.gallery-head h2, .calendar-head h2 { font-size: 1.3rem; }
.gallery-full { min-height: 220px; aspect-ratio: 1.65; border-radius: 12px; }
.gallery-full img { object-fit: contain; }
.review-dialog .gallery-full { display: block; min-height: 0; max-height: 68dvh; aspect-ratio: auto; overflow: auto; }
.review-dialog .gallery-full img { position: static; display: block; width: auto; max-width: 100%; height: auto; margin-inline: auto; }
.gallery-controls { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: .65rem; }
.icon-button { display: inline-grid; flex: 0 0 auto; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); font-size: 1.55rem; line-height: 1; }
.icon-button:hover:not(:disabled) { background: #ebf3ff; }
.icon-button:disabled { opacity: .4; }
.calendar-dialog { width: 380px; padding: 15px; }
.calendar-navigation { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: .65rem; text-transform: capitalize; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.week-day { color: var(--muted); font-size: .8rem; }
.day { border: 0; background: white; color: var(--ink); font-weight: 680; border-radius: 8px; min-height: 38px; padding: 0; }
.day:hover:not(:disabled), .day.in-range { background: #e7f0fe; }
.day.selected { background: var(--blue); color: #fff; }
.day:disabled { background: #f5f7fb; color: #6d7d94; text-decoration: line-through; }
.with-nightly-prices .day { display: grid; align-content: center; gap: 1px; min-height: 48px; }
.day small { display: block; font-size: .67rem; font-weight: 600; white-space: nowrap; }
.calendar-help { margin-top: .65rem; color: var(--muted); font-size: .87rem; }

.property-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(315px, 1fr); align-items: start; gap: clamp(16px, 3vw, 36px); margin-top: 22px; }
.property-details { display: grid; gap: 22px; min-width: 0; }
.property-details section:not(.panel) { padding: 12px 0; }
.property-details h2 { font-size: 1.65rem; margin-bottom: .45rem; }
.property-details p, .muted { color: var(--muted); }
.property-description { white-space: pre-line; }
.tags { display: flex; flex-wrap: wrap; list-style: none; padding: 0; gap: 8px; }
.tags li { padding: .35rem .65rem; border-radius: 9px; border: 1px solid var(--line); background: #f9fbff; }
.house-rules { display: grid; gap: .6rem; margin: .8rem 0 0; }
.house-rules dt { font-weight: 700; }
.house-rules dd { margin: .12rem 0 0; color: var(--muted); }
.quote-panel { position: sticky; top: 14px; min-width: 0; }
.quote-panel [data-open-guest] { width: 100%; }
.stay-compact .stay-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stay-compact .guest-field, .stay-compact .search-button { grid-column: 1 / -1; }
.stay-compact .search-button { min-width: 0; }
.stay-compact .stay-field { gap: .47rem; padding: .55rem .63rem; }
#quote-result { margin-top: 1rem; }
.live-stay-total { padding-block: .3rem .5rem; }
.live-stay-total strong { display: block; font-size: 1.7rem; }
.live-stay-total small { color: var(--muted); }
.price-lines { margin: .8rem 0; }
.price-lines div { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; padding: .38rem 0; }
.price-lines div:first-child { font-weight: 780; font-size: 1.15rem; padding-bottom: .65rem; border-bottom: 1px solid var(--line); }
.price-lines dd { margin: 0; font-weight: 720; white-space: nowrap; }
.support { margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.support p { font-size: .9rem; color: var(--muted); }
.support div { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .35rem; }
.support a { font-size: .92rem; font-weight: 650; }
.guest-stay { font-weight: 650; }
.guest-test-note { color: var(--muted); margin: .3rem 0 1rem; font-size: .9rem; }
.guest-form, .admin-order form, .admin-controls form { display: grid; gap: 12px; }
.guest-form label:not(.check), .admin-order label:not(.check), .admin-controls label:not(.check) { display: grid; gap: 4px; font-weight: 650; font-size: .92rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.guest-form input:not([type="checkbox"]), .guest-form select, .admin-order input:not([type="checkbox"]), .admin-controls input:not([type="checkbox"]), .admin-controls select { width: 100%; min-height: 42px; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; background: #f9fbff; padding: .45rem .62rem; }
.guest-form small { color: var(--muted); font-size: .85rem; }
.check { display: flex; align-items: flex-start; gap: .5rem; font-size: .91rem; }
input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--blue); flex: 0 0 auto; }
.mobile-quote { display: none; }
.booking-panel { max-width: 645px; }
.checkout-dialog { width: min(390px, calc(100% - 32px)); }
.checkout-dialog progress, .booking-panel progress { display: block; width: 100%; height: 8px; margin-top: .9rem; accent-color: var(--blue); }
.checkout-dialog .checkout-actions { margin-bottom: 0; }
.booking-copy { display: block; width: 100%; min-height: 11rem; margin-top: .75rem; padding: .65rem; font: inherit; }
[data-copy-result]:empty { display: none; }
.booking-top, .timer { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: .45rem 1rem; margin-bottom: .7rem; }
.booking-panel .mode-pill { margin-bottom: .6rem; }
.booking-panel .booking-top .mode-pill { margin: 0; }
.booking-number { margin: .55rem 0; font-weight: 690; color: var(--muted); }
.status-badge { display: inline-flex; border-radius: 7px; padding: .25rem .53rem; font-size: .85rem; font-weight: 720; background: #eef4ff; color: #285198; }
.status-confirmed, .status-reserved { color: #146744; background: #e8f8ef; }
.status-expired, .status-review, .status-cancelled { color: #93432d; background: #fff0e8; }
.timer { padding: .55rem .7rem; border-radius: 9px; background: #eef4ff; }
.timer strong { font-variant-numeric: tabular-nums; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .85rem 0; }
.admin-visits { margin-bottom: 1rem; }
.visit-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: .65rem; margin: .85rem 0; }
.visit-counts div { padding: .7rem .85rem; border-radius: 9px; background: #eef4ff; }
.visit-counts dt { font-size: .9rem; color: var(--muted); }
.visit-counts dd { margin: 0; font-size: clamp(1.6rem, 4vw, 2.25rem); font-weight: 750; font-variant-numeric: tabular-nums; }
.admin-order { margin-bottom: .8rem; }
.admin-order form { grid-template-columns: minmax(0, 360px); margin: .75rem 0; }
.admin-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; align-items: start; }
.mail-item { margin-bottom: .5rem; }
.mail-item pre { white-space: pre-wrap; font: inherit; overflow-wrap: anywhere; }
summary { cursor: pointer; font-weight: 700; }
@media (max-width: 960px) {
  .shell { width: calc(100% - 42px); }
  .catalog-layout { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .telegram-banner { grid-template-columns: auto minmax(0, 1fr) auto; }
  .telegram-link { grid-column: 3; }
  .hero-copy { padding-left: 38px; }
  .hero::after { background: linear-gradient(90deg, #133782 0%, #1946a6 37%, #1946a6f2 42%, #153b8c76 61%, transparent 88%); }
}
@media (max-width: 680px) {
  :root { --mobile-nav-height: 65px; --mobile-nav-offset: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0px)); }
  body { padding-bottom: var(--mobile-nav-offset); }
  .shell { width: calc(100% - 28px); }
  .head-inner { display: flex; flex-wrap: wrap; min-height: auto; gap: 12px 9px; justify-content: space-between; padding-block: 10px; }
  .wordmark { font-size: 1.42rem; }
  .head-phone a { font-size: .83rem; padding: .42rem .55rem; gap: .36rem; }
  .main-nav {
    position: fixed; z-index: 5; inset: auto 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px; height: var(--mobile-nav-offset); padding: 4px max(6px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(6px, env(safe-area-inset-left));
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -3px 18px #142d5419;
  }
  .main-nav a { display: grid; min-width: 0; justify-items: center; align-content: center; gap: 2px; color: var(--muted); font-size: .75rem; border-radius: 10px; }
  .main-nav-icon { display: grid; width: 42px; height: 28px; place-items: center; border-radius: 10px; }
  .main-nav-icon .icon { color: currentColor; }
  .main-nav [aria-current], .main-nav [data-mobile-current] { color: var(--blue); }
  .main-nav [aria-current] .main-nav-icon, .main-nav [data-mobile-current] .main-nav-icon { --nav-icon-surface: #e7f0ff; background: var(--nav-icon-surface); }
  .i-nav-home { width: 20px; height: 20px; background: currentColor; clip-path: polygon(50% 3%, 99% 43%, 88% 55%, 82% 50%, 82% 96%, 18% 96%, 18% 50%, 12% 55%, 1% 43%); }
  .i-nav-home::after { content: ''; position: absolute; width: 5px; height: 7px; left: 7.5px; bottom: 0; border-radius: 1px 1px 0 0; background: var(--nav-icon-surface, #fff); }
  .i-nav-star { width: 20px; height: 20px; background: currentColor; clip-path: polygon(50% 0%, 65% 32%, 100% 38%, 75% 63%, 80% 100%, 50% 82%, 20% 100%, 25% 63%, 0 38%, 35% 32%); }
  .hero { min-height: 390px; margin-top: 12px; border-radius: 21px; align-items: flex-end; }
  .hero-pict { inset: 0 0 18%; }
  .hero-pict img { object-position: 70% 43%; }
  .hero::after { background: linear-gradient(0deg, #0d2b68 0%, #0c285f 30%, #0a2145cf 58%, #10285243 82%, transparent 100%); }
  .hero-copy { padding: 96px 20px 62px; }
  .hero-kicker { margin-bottom: .7rem; color: #fff; background: #0b234de8; border-color: #d1e3ff72; font-size: .83rem; font-weight: 740; }
  .hero h1 { font-size: clamp(2.11rem, 9.4vw, 3.8rem); text-shadow: 0 2px 12px #06173488; }
  .hero p { margin-top: .65rem; max-width: 19rem; }
  .search-box { margin: -37px 8px 0; padding: 10px; border-radius: 17px; }
  .home-with-map .hero { min-height: 248px; }
  .home-with-map .hero-copy { padding-block: 28px 52px; }
  .home-with-map .catalog { padding-top: 14px; }
  .stay-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .stay-field { padding: .45rem .49rem; gap: .42rem; min-height: 55px; }
  .stay-field [data-value] { font-size: .86rem; }
  .stay-field .icon { transform: scale(.85); }
  .guest-field { grid-column: 1 / -1; }
  .search-button { grid-column: 1 / -1; min-width: 0; }
  .catalog { padding-top: 28px; padding-bottom: 39px; }
  .card-grid { gap: 12px; }
  .card-foot { flex-wrap: wrap; }
  .catalog-layout { gap: 13px; }
  .catalog-map { grid-template-columns: minmax(0, 1fr); margin-bottom: 13px; }
  .map-canvas { position: relative; height: clamp(255px, 65vw, 350px); }
  .map-canvas[data-map-locked] iframe { pointer-events: none; }
  .map-touch-activate { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; border: 0; padding: 14px; background: transparent; color: #fff; touch-action: pan-y pinch-zoom; }
  .map-touch-activate span { padding: 9px 12px; border-radius: 11px; background: #142b52ed; box-shadow: 0 3px 14px #0b1d3e38; font-size: .85rem; font-weight: 700; }
  .map-touch-zoom { display: grid; gap: 5px; position: absolute; z-index: 2; inset: 10px auto auto 10px; }
  .map-touch-zoom .icon-button, .map-touch-exit { min-height: 44px; box-shadow: 0 2px 10px #0b1d3e28; }
  .map-touch-zoom .icon-button { width: 44px; }
  .map-touch-exit { position: absolute; z-index: 2; inset: 10px auto auto 10px; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-size: .82rem; font-weight: 700; }
  .map-sidebar { max-height: none; padding: 12px; }
  .map-listing { overflow: visible; }
  .catalog-layout > .telegram-banner { display: none; }
  .mobile-telegram-slot { display: block; margin-bottom: 19px; }
  .mobile-telegram-slot .telegram-banner { grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; padding: 11px; border-radius: 15px; }
  .mobile-telegram-slot .telegram-mark { width: 34px; height: 34px; }
  .mobile-telegram-slot h3 { font-size: .95rem; }
  .mobile-telegram-slot p { margin-top: .23rem; font-size: .78rem; }
  .mobile-telegram-slot .telegram-link { grid-column: 3; min-height: 44px; padding-inline: .6rem; font-size: .78rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 15px; padding: 22px 0; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .inner-page { padding: 23px 0 48px; }
  .reviews-header { align-items: flex-start; flex-direction: column; gap: .92rem; margin-bottom: 13px; border-radius: 18px; }
  .reviews-header h1 { font-size: clamp(1.75rem, 7.8vw, 2.7rem); }
  .reviews-rating { gap: .35rem .48rem; }
  .reviews-rating strong { font-size: .88rem; }
  .reviews-stars { padding: .35rem .45rem; font-size: .92rem; }
  .reviews-channel { max-width: 100%; }
  .contact-grid, .property-layout { grid-template-columns: minmax(0, 1fr); }
  .quote-panel { grid-row: 1; position: static; }
  .quote-panel [data-open-guest] { display: none; }
  .property-page { padding-bottom: 79px; }
  .mobile-quote { display: flex; position: fixed; z-index: 4; bottom: var(--mobile-nav-offset); inset-inline: 0; padding: 8px 14px; background: white; box-shadow: 0 -4px 22px #16345c25; align-items: center; justify-content: space-between; gap: .5rem; }
  .mobile-quote strong { font-size: 1.2rem; }
  .mobile-quote small { display: block; color: var(--muted); }
  .guest-panel { scroll-margin-top: .6rem; }
  .guest-form input, .guest-form select { font-size: 1rem; }
  .admin-controls { grid-template-columns: 1fr; }
  body:has(.gallery-dialog:not(.review-dialog)[open]) { overflow: hidden; }
  .gallery-dialog:not(.review-dialog)[open] {
    position: fixed; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px;
    width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; border-radius: 0;
    padding: max(12px, env(safe-area-inset-top)) env(safe-area-inset-right) max(12px, env(safe-area-inset-bottom)) env(safe-area-inset-left);
    overflow: hidden; background: #0b1529; color: #fff;
  }
  .gallery-dialog:not(.review-dialog) .gallery-head { margin: 0; padding-inline: 14px; }
  .gallery-dialog:not(.review-dialog) [data-gallery-close] { width: 46px; height: 46px; background: #ffffff15; border-color: #ffffff34; color: #fff; }
  .gallery-dialog:not(.review-dialog) .gallery-full { min-height: 0; aspect-ratio: auto; border-radius: 0; background: #0b1529; touch-action: pan-y pinch-zoom; }
  .gallery-dialog:not(.review-dialog) .gallery-controls { margin: 0; min-height: 24px; font-size: .9rem; }
  .gallery-dialog:not(.review-dialog) .gallery-controls button { display: none; }
}
@media (max-width: 445px) {
  .requisites > div { grid-template-columns: minmax(0, 1fr); }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .reviews-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery { height: 260px; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 75px; }
  .gallery-tile:first-child { grid-row: 1; grid-column: span 2; }
  .gallery-tile:not(:first-child) .photo-slot { font-size: .69rem; padding: .25rem .4rem; }
}
