/* ==========================================================================
   Konok — стили
   Цвета: озеро (Иссык-Куль), войлок ширдака, солнце флага, снег.
   ========================================================================== */
/* Шрифт Golos Text (свой хостинг — быстрее и без Google) */
@font-face { font-family: 'Golos Text'; font-style: normal; font-display: swap; font-weight: 400 900; src: url(../vendor/fonts/golos-text-cyrillic-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-display: swap; font-weight: 400 900; src: url(../vendor/fonts/golos-text-cyrillic-wght-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-display: swap; font-weight: 400 900; src: url(../vendor/fonts/golos-text-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --ink: #13222E;
  --ink-2: #33444F;
  --muted: #5F6F7A;
  --line: #DCE4E8;
  --line-2: #EDF2F4;
  --snow: #F4F7F8;
  --card: #FFFFFF;
  --lake: #0A5F6B;
  --lake-2: #0D7C89;
  --lake-deep: #073B44;
  --lake-tint: #E3F1F2;
  --felt: #C23A22;
  --felt-2: #A72F1A;
  --sun: #F0B429;
  --sun-tint: #FFF4D9;
  --ok: #1F7A4A;
  --ok-tint: #E2F4E9;
  --warn: #9A6200;
  --warn-tint: #FFF2D6;
  --bad: #B3261E;
  --bad-tint: #FCE8E6;
  --r-lg: 18px;
  --r: 12px;
  --r-sm: 8px;
  --shadow: 0 1px 2px rgba(19, 34, 46, .06), 0 6px 20px rgba(19, 34, 46, .07);
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --topbar-h: 64px;
  --tabbar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--snow);
  padding-bottom: var(--tabbar-h);
}
img { max-width: 100%; display: block; }
a { color: var(--lake); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; }
p { margin: 0 0 1em; }
code { background: var(--line-2); padding: 1px 6px; border-radius: 5px; font-size: .9em; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 560px; }
.mid { max-width: 880px; }
.h1 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; letter-spacing: -.02em; }
.h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; letter-spacing: -.01em; }
.h3 { font-size: 19px; font-weight: 650; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.center { text-align: center; }
.mt0 { margin-top: 0 } .mb0 { margin-bottom: 0 } .mt { margin-top: 24px } .mb { margin-bottom: 24px }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); font-weight: 600; font-size: 15px;
  text-decoration: none !important; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { border-color: #b9c7cd; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--felt); border-color: var(--felt); color: #fff; }
.btn-primary:hover { background: var(--felt-2); border-color: var(--felt-2); }
.btn-lake { background: var(--lake); border-color: var(--lake); color: #fff; }
.btn-lake:hover { background: var(--lake-deep); border-color: var(--lake-deep); }
.btn-ghost { background: transparent; }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-danger { color: var(--bad); border-color: #efc2be; background: #fff; }
.btn-danger:hover { background: var(--bad-tint); border-color: var(--bad); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 17px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--lake); font-weight: 600; }

/* ---------- Формы ---------- */
input, select, textarea {
  font: inherit; color: var(--ink);
  width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--lake-2); outline: 3px solid rgba(13, 124, 137, .16); outline-offset: 0; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; min-height: 0; accent-color: var(--lake); margin: 0; flex: none; }
.form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.form label > input, .form label > select, .form label > textarea { margin-top: 6px; font-weight: 400; font-size: 16px; }
.form .hint { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 4px; }
.form .check, label.check { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 14px; }
.err { color: var(--bad); font-size: 13px; font-weight: 500; }
.phone-field { position: relative; }

/* ---------- Блоки ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; margin-bottom: 18px; }
.panel > :last-child { margin-bottom: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h2, .panel-head h3 { margin: 0; }
.note { padding: 14px 16px; border-radius: var(--r); margin-bottom: 16px; background: var(--lake-tint); color: var(--lake-deep); }
.note.ok { background: var(--ok-tint); color: var(--ok); }
.note.bad { background: var(--bad-tint); color: var(--bad); }
.note.warn { background: var(--warn-tint); color: var(--warn); }
.note b { font-weight: 650; }
.note > :last-child { margin-bottom: 0; }
.checklist { list-style: none; padding: 0; margin: 0 0 12px; }
.checklist li { padding: 4px 0; }
.checklist .ok { color: var(--ok); } .checklist .bad { color: var(--bad); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.pill.ok, .pill.st-active, .pill.st-confirmed, .pill.st-verified, .pill.st-approved { background: var(--ok-tint); color: var(--ok); }
.pill.warn, .pill.st-pending { background: var(--warn-tint); color: var(--warn); }
.pill.bad, .pill.st-rejected, .pill.st-declined { background: var(--bad-tint); color: var(--bad); }
.pill.st-draft, .pill.st-hidden, .pill.st-cancelled, .pill.st-expired, .pill.st-none { background: var(--line-2); color: var(--muted); }
.pill.lake { background: var(--lake-tint); color: var(--lake); }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--felt); color: #fff; font-size: 12px; line-height: 20px; text-align: center; font-weight: 700; }

/* ---------- Шапка ---------- */
.topbar { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.topbar-in { height: var(--topbar-h); display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 800; font-size: 23px; letter-spacing: -.03em; text-decoration: none !important; }
.logo-sm { font-size: 19px; }
.topnav { display: flex; gap: 4px; }
.topnav a { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 550; font-size: 15px; text-decoration: none; }
.topnav a:hover { background: var(--line-2); }
.topnav a.on { color: var(--lake); background: var(--lake-tint); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.langs { display: flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; margin-right: 6px; }
.langs a, .langs span { padding: 4px 9px; font-size: 13px; font-weight: 650; color: var(--muted); text-decoration: none; }
.langs a.on { background: var(--ink); color: #fff; }
.langs .soon { color: #b3bfc6; cursor: help; }
.iconbtn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; color: var(--ink-2); }
.iconbtn:hover { background: var(--line-2); }
.iconbtn .dot, .tabbar .dot { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--felt); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 700; }
.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 6px 4px 4px; border-radius: 999px; border: 1px solid var(--line); }
.usermenu summary::-webkit-details-marker { display: none; }
.ava { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--lake); color: #fff; font-weight: 700; font-size: 14px; flex: none; }
.uname { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14px; padding-right: 6px; }
.usermenu .menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px; }
.usermenu .menu a, .usermenu .menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; color: var(--ink); background: none; border: 0; font-size: 15px; text-decoration: none; }
.usermenu .menu a:hover, .usermenu .menu button:hover { background: var(--line-2); }

.flashes { padding-top: 14px; }
.flash { padding: 12px 16px; border-radius: var(--r); margin-bottom: 8px; background: var(--ok-tint); color: var(--ok); font-weight: 550; }
.flash.bad { background: var(--bad-tint); color: var(--bad); }
.flash.info { background: var(--lake-tint); color: var(--lake-deep); }
.flash.warn { background: var(--warn-tint); color: var(--warn); }

/* ---------- Главная: hero ---------- */
.hero { position: relative; background: var(--lake-deep); color: #fff; overflow: hidden; }
.hero-in { position: relative; z-index: 2; padding: 56px 16px 190px; }
.hero h1 { font-size: clamp(34px, 6vw, 68px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; max-width: 15ch; margin-bottom: 18px; }
.hero p.lead { font-size: clamp(16px, 1.8vw, 20px); color: #cfe6e8; max-width: 46ch; margin-bottom: 0; }
.hero-ridge { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; width: 100%; height: auto; }
.hero-sun { position: absolute; right: 9%; top: 46px; width: 120px; height: 120px; border-radius: 50%; background: var(--sun); opacity: .95; z-index: 1; }

.searchbox-wrap { position: relative; z-index: 5; margin-top: -92px; }
.searchbox {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr .8fr auto; gap: 0;
  background: #fff; border-radius: var(--r-lg); box-shadow: 0 10px 40px rgba(7, 59, 68, .22);
  padding: 8px; border: 1px solid var(--line);
}
.sb-field { position: relative; padding: 8px 14px; border-right: 1px solid var(--line-2); min-width: 0; }
.sb-field:nth-last-child(2) { border-right: 0; }
.sb-field label { display: block; font-size: 12.5px; font-weight: 650; color: var(--muted); margin-bottom: 2px; }
.sb-field input, .sb-field select { border: 0; padding: 0; min-height: 30px; font-size: 16px; font-weight: 550; background: transparent; outline: none; }
.sb-field input:focus, .sb-field select:focus { outline: none; }
.searchbox .btn-primary { min-height: 60px; border-radius: 12px; padding: 0 28px; font-size: 17px; }

/* Подсказки «Куда» */
.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 50; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px; max-height: 360px; overflow-y: auto; min-width: 280px; }
.ac-item { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; cursor: pointer; color: var(--ink); }
.ac-item:hover, .ac-item.on { background: var(--lake-tint); }
.ac-item .ac-ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--line-2); flex: none; font-size: 15px; }
.ac-item b { font-weight: 600; display: block; line-height: 1.25; }
.ac-item small { color: var(--muted); font-size: 13px; }

/* ---------- Секции главной ---------- */
.section { padding: 56px 0 8px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }

.places { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.place {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 132px; padding: 16px; border-radius: var(--r-lg); color: #fff; overflow: hidden;
  text-decoration: none !important; background: var(--lake);
}
.place::before { content: ""; position: absolute; inset: auto -20% -38% -20%; height: 75%; background: rgba(255, 255, 255, .08); border-radius: 50% 50% 0 0; }
.place b { position: relative; font-size: 19px; font-weight: 700; line-height: 1.15; }
.place span { position: relative; font-size: 14px; opacity: .85; }
.place:hover { filter: brightness(1.07); }
.place.c1 { background: #0A5F6B; } .place.c2 { background: #2F5D8A; } .place.c3 { background: #7A4B2A; }
.place.c4 { background: #3E6B3A; } .place.c5 { background: #8C2F1F; } .place.c6 { background: #4B4E7A; }

.regions-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.regions-row::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 550; font-size: 14.5px; text-decoration: none !important; white-space: nowrap; }
.chip:hover { border-color: var(--lake-2); color: var(--lake); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip small { color: var(--muted); margin-left: 4px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { padding: 22px; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sun); color: var(--ink); font-weight: 800; margin-bottom: 14px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; }

.hostband { margin: 56px 0; border-radius: 24px; background: var(--ink); color: #fff; padding: 40px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.hostband h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.hostband p { color: #c2ccd2; }
.hostband ol { margin: 0; padding-left: 20px; color: #dce3e7; }
.hostband ol li { margin-bottom: 8px; }
.ornament { position: absolute; right: -40px; bottom: -40px; width: 220px; opacity: .14; }

/* ---------- Карточки объектов ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px 18px; }
.card { position: relative; display: block; color: var(--ink); text-decoration: none !important; }
.card-img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--line-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-type { position: absolute; left: 10px; top: 10px; background: rgba(255, 255, 255, .94); color: var(--ink); padding: 3px 9px; border-radius: 7px; font-size: 12.5px; font-weight: 650; }
.fav { position: absolute; right: 8px; top: 8px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--ink); z-index: 2; }
.fav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.fav.on { color: var(--felt); }
.fav.on svg { fill: var(--felt); }
.card-body { padding: 10px 2px 0; }
.card-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.card-place { font-weight: 650; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rating { display: inline-flex; align-items: center; gap: 3px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.rating::before { content: "★"; color: var(--sun); font-size: 15px; }
.card-title { color: var(--muted); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 1px 0 4px; }
.price { font-weight: 700; font-size: 16px; }
.price small { font-weight: 400; color: var(--muted); font-size: 14px; }
.card.is-hover .card-img { box-shadow: 0 0 0 3px var(--lake-2); }

.empty { text-align: center; padding: 48px 20px; background: #fff; border: 1px dashed var(--line); border-radius: var(--r-lg); }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--muted); }

/* ---------- Поиск ---------- */
body.page-search { --search-top: calc(var(--topbar-h) + 0px); }
.search-bar { position: sticky; top: var(--topbar-h); z-index: 900; background: #fff; border-bottom: 1px solid var(--line); }
.search-bar-in { display: flex; gap: 8px; align-items: center; padding: 10px 16px; max-width: none; }
.search-bar .sb-where { position: relative; flex: 1.6; min-width: 160px; }
.search-bar input, .search-bar select { min-height: 42px; padding: 8px 12px; font-size: 15px; }
.search-bar .sb-date { flex: .9; min-width: 128px; }
.search-bar .sb-guests { flex: .6; min-width: 96px; }
.search-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 44%); min-height: calc(100vh - var(--topbar-h) - 63px); }
.results { padding: 18px 20px 40px; min-width: 0; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.results-head h1 { font-size: 20px; margin: 0; font-weight: 700; }
.results-head select { width: auto; min-height: 38px; padding: 6px 10px; font-size: 14px; }
.results .cards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.map-pane { position: sticky; top: calc(var(--topbar-h) + 63px); height: calc(100vh - var(--topbar-h) - 63px); border-left: 1px solid var(--line); }
#map { width: 100%; height: 100%; background: #dfe9ec; }
.map-redo { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 500; background: #fff; border-radius: 999px; box-shadow: var(--shadow); padding: 8px 14px; font-size: 14px; font-weight: 600; display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.map-toggle { display: none; }
.filters-btn .count { background: var(--lake); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 12px; }
.loading-bar { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--lake-2), transparent); background-size: 50% 100%; animation: lb 1s linear infinite; z-index: 600; }
@keyframes lb { from { background-position: -50% 0; } to { background-position: 150% 0; } }

/* Ценники на карте */
.pin { background: none; border: 0; }
.pin span {
  display: inline-block; transform: translate(-50%, -50%); padding: 4px 9px; border-radius: 999px;
  background: #fff; color: var(--ink); font: 700 13px/1.2 var(--font); white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 0 0 1px rgba(0, 0, 0, .06); transition: transform .1s;
}
.pin.on span, .pin:hover span { background: var(--ink); color: #fff; transform: translate(-50%, -50%) scale(1.08); }
.pin.visited span { background: #E6EBEE; }
.cluster { background: none; }
.cluster span { display: grid; place-items: center; width: 40px; height: 40px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--lake); color: #fff; font: 700 14px var(--font); box-shadow: 0 0 0 5px rgba(10, 95, 107, .25); }
.leaflet-popup-content { margin: 0; width: 240px !important; }
.leaflet-popup-content-wrapper { padding: 0; border-radius: 12px; overflow: hidden; }
.map-pop img { width: 100%; height: 140px; object-fit: cover; }
.map-pop div { padding: 10px 12px; font-family: var(--font); }
.map-pop b { display: block; font-size: 14px; color: var(--ink); }
.map-pop small { color: var(--muted); }
.leaflet-container { font-family: var(--font); }

/* Панель фильтров (выезжает) */
.sheet { position: fixed; inset: 0; z-index: 2000; display: none; }
.sheet.open { display: block; }
.sheet-bg { position: absolute; inset: 0; background: rgba(19, 34, 46, .45); }
.sheet-body { position: absolute; right: 0; top: 0; bottom: 0; width: min(440px, 100%); background: #fff; display: flex; flex-direction: column; animation: slidein .2s ease-out; }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; font-size: 19px; }
.sheet-scroll { flex: 1; overflow-y: auto; padding: 18px 20px; }
.sheet-foot { display: flex; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }
.fgroup { margin-bottom: 22px; }
.fgroup > b { display: block; margin-bottom: 10px; font-size: 15px; }
.typegrid { display: flex; flex-wrap: wrap; gap: 8px; }
.typegrid label { cursor: pointer; }
.typegrid input { position: absolute; opacity: 0; pointer-events: none; }
.typegrid span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; font-weight: 550; }
.typegrid input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.typegrid input:focus-visible + span { outline: 3px solid var(--sun); }
.amen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.amen-grid label { display: flex; gap: 8px; align-items: center; font-size: 14.5px; cursor: pointer; }

/* ---------- Страница объекта ---------- */
.lst-head { padding: 22px 0 14px; }
.lst-head h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 750; letter-spacing: -.015em; margin-bottom: 6px; }
.lst-meta { display: flex; gap: 6px 16px; flex-wrap: wrap; align-items: center; color: var(--ink-2); font-size: 15px; }
.lst-meta .rating { font-size: 15px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: min(460px, 52vw); border-radius: var(--r-lg); overflow: hidden; position: relative; }
.gallery a { display: block; overflow: hidden; background: var(--line-2); }
.gallery a:first-child { grid-row: 1 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: filter .2s; }
.gallery a:hover img { filter: brightness(.92); }
.gallery.n1 { grid-template-columns: 1fr; }
.gallery.n2 { grid-template-columns: 1fr 1fr; }
.gallery.n2 a:first-child, .gallery.n1 a:first-child { grid-row: 1 / 3; }
.gallery.n3 { grid-template-columns: 2fr 1fr; }
.gallery-all { position: absolute; right: 14px; bottom: 14px; }
.lst-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; padding: 28px 0 56px; }
.lst-section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.lst-section:first-child { padding-top: 0; }
.lst-section h2 { font-size: 21px; font-weight: 700; margin-bottom: 14px; }
.facts { display: flex; gap: 10px; flex-wrap: wrap; }
.fact { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font-size: 15px; }
.fact b { font-weight: 700; }
.desc { white-space: pre-line; max-width: 68ch; }
.amen-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; list-style: none; padding: 0; margin: 0; }
.amen-list li { display: flex; gap: 10px; align-items: center; }
.amen-list .e { width: 28px; text-align: center; font-size: 18px; }
#lmap { height: 340px; border-radius: var(--r-lg); overflow: hidden; z-index: 1; }
.hostcard { display: flex; gap: 14px; align-items: center; }
.hostcard .ava { width: 54px; height: 54px; font-size: 22px; }
.verified { color: var(--ok); font-weight: 600; font-size: 14px; display: inline-flex; gap: 5px; align-items: center; }

.bookbox { position: sticky; top: calc(var(--topbar-h) + 18px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
.bookbox .bb-price { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.bookbox .bb-price small { font-size: 15px; font-weight: 400; color: var(--muted); }
.bb-dates { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r); margin: 14px 0 10px; overflow: hidden; }
.bb-dates button { background: #fff; border: 0; text-align: left; padding: 10px 12px; min-height: 58px; }
.bb-dates button + button { border-left: 1px solid var(--line); }
.bb-dates small { display: block; font-size: 12px; font-weight: 650; color: var(--muted); }
.bb-dates span { font-weight: 600; }
.bb-dates button.on { box-shadow: inset 0 0 0 2px var(--ink); border-radius: var(--r); }
.bb-sum { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.bb-sum .row { justify-content: space-between; }
.bb-total { font-weight: 800; font-size: 18px; }
.contacts { display: grid; gap: 8px; }
.contact { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none !important; background: #fff; }
.contact:hover { border-color: var(--lake-2); }
.contact i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-style: normal; flex: none; }
.contact small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.c-wa i { background: #25D366; } .c-tg i { background: #2AABEE; } .c-ph i { background: var(--lake); }
.locked { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r); background: var(--line-2); color: var(--ink-2); font-size: 14.5px; }
.locked svg { flex: none; margin-top: 2px; }
.mobile-book { display: none; }

/* Календарь */
.cal { user-select: none; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-head b { font-weight: 700; }
.cal-nav { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; }
.cal-nav[disabled] { opacity: .3; }
.cal-months { display: grid; grid-template-columns: 1fr; gap: 20px; }
.cal-month h4 { text-align: center; font-size: 15px; margin: 0 0 8px; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; }
.cal-grid .dow { text-align: center; font-size: 12px; color: var(--muted); font-weight: 600; padding: 4px 0; }
.cal-day { aspect-ratio: 1; border: 0; background: none; font-size: 14px; font-weight: 550; color: var(--ink); border-radius: 50%; position: relative; }
.cal-day:hover:not([disabled]) { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cal-day[disabled] { color: #b8c3c9; text-decoration: line-through; cursor: not-allowed; }
.cal-day.past[disabled] { text-decoration: none; }
.cal-day.in { background: var(--lake-tint); border-radius: 0; }
.cal-day.start, .cal-day.end { background: var(--ink); color: #fff; border-radius: 50%; }
.cal-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 14px; }
.cal-pop { position: absolute; left: -10px; right: -10px; top: 0; z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 16px; }

/* Отзывы */
.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; }
.review-head { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.review-head .ava { width: 38px; height: 38px; background: var(--ink-2); }
.review p { margin: 0; color: var(--ink-2); }
.stars { color: var(--sun); letter-spacing: 1px; }
.reply { margin-top: 8px; padding: 10px 12px; background: var(--line-2); border-radius: var(--r-sm); font-size: 14.5px; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 30px; color: #cfd8dc; cursor: pointer; line-height: 1; margin: 0 !important; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--sun); }

/* Лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(8, 14, 18, .96); display: none; }
.lightbox.open { display: block; }
.lb-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { flex: 0 0 100%; height: 100%; display: grid; place-items: center; scroll-snap-align: center; padding: 56px 0; }
.lb-slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-close, .lb-prev, .lb-next { position: absolute; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 22px; display: grid; place-items: center; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 14px; top: 50%; } .lb-next { right: 14px; top: 50%; }
.lb-count { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; }

/* ---------- Кабинеты ---------- */
.page-head { padding: 26px 0 18px; }
.page-head h1 { margin: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 12px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-color: var(--ink); }
.tabs a .badge { margin-left: 4px; }

.bk { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 16px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 12px; align-items: start; }
.bk-img { aspect-ratio: 4/3; border-radius: var(--r-sm); overflow: hidden; background: var(--line-2); }
.bk-img img { width: 100%; height: 100%; object-fit: cover; }
.bk h3 { font-size: 17px; margin: 0 0 4px; }
.bk h3 a { color: var(--ink); }
.bk-dates { font-weight: 600; }
.bk-side { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; text-align: right; }
.bk-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.bk .contacts { margin-top: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.bk-msg { margin-top: 8px; padding: 10px 12px; background: var(--line-2); border-radius: var(--r-sm); font-size: 14.5px; white-space: pre-line; }
.decline-form { margin-top: 10px; display: none; gap: 8px; }
.decline-form.open { display: flex; }

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 650; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fbfcfc; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .thumb { width: 72px; height: 54px; border-radius: 6px; object-fit: cover; background: var(--line-2); }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.mylist { display: grid; gap: 12px; }
.myitem { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 16px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); align-items: center; }
.myitem img { width: 120px; height: 90px; object-fit: cover; border-radius: var(--r-sm); background: var(--line-2); }
.myitem h3 { font-size: 17px; margin: 0 0 4px; }
.myitem .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; text-decoration: none !important; color: var(--ink); }
.stat b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; }
.stat.hot { border-color: var(--sun); background: var(--sun-tint); }

/* Шаги верификации / формы объекта */
.form-steps { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.form-steps a { padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.form-steps a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.docs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.doc-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; aspect-ratio: 4/3; border: 2px dashed #c5d2d8; border-radius: var(--r); background: #fbfdfd; padding: 12px; cursor: pointer; overflow: hidden; font-weight: 600; font-size: 14.5px; color: var(--ink-2); margin: 0 !important; }
.doc-drop:hover { border-color: var(--lake-2); }
.doc-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.doc-drop img.preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.doc-drop .ico { font-size: 30px; }
.doc-drop small { font-weight: 400; color: var(--muted); }
.doc-drop.has { border-style: solid; border-color: var(--ok); }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ph { position: relative; aspect-ratio: 4/3; border-radius: var(--r-sm); overflow: hidden; background: var(--line-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph .cover-tag { position: absolute; left: 6px; top: 6px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 650; padding: 2px 8px; border-radius: 6px; }
.ph .ph-tools { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 4px; }
.ph .ph-tools button { width: 32px; height: 32px; border-radius: 8px; border: 0; background: rgba(255, 255, 255, .94); font-size: 15px; display: grid; place-items: center; }
.ph .bar { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .6); overflow: hidden; }
.ph .bar i { display: block; height: 100%; width: 0; background: var(--lake-2); transition: width .2s; }
.ph.uploading img { opacity: .55; }
.ph.failed { outline: 2px solid var(--bad); }
.ph-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; aspect-ratio: 4/3; border: 2px dashed #c5d2d8; border-radius: var(--r-sm); cursor: pointer; color: var(--lake); font-weight: 650; font-size: 14px; text-align: center; padding: 8px; position: relative; }
.ph-add:hover { border-color: var(--lake-2); background: var(--lake-tint); }
.ph-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ph-add span { font-size: 28px; line-height: 1; }
#pickmap { height: 340px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); z-index: 1; }

.blocked-list { list-style: none; padding: 0; margin: 0 0 12px; }
.blocked-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); }

/* Уведомления */
.notes-list { list-style: none; padding: 0; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.notes-list li { padding: 14px 18px; border-bottom: 1px solid var(--line-2); display: flex; gap: 12px; align-items: flex-start; }
.notes-list li:last-child { border-bottom: 0; }
.notes-list li.unread { background: #F2FAFA; }
.notes-list li.unread::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--felt); margin-top: 8px; flex: none; }
.notes-list a { color: var(--ink); }

/* Авторизация */
.auth { max-width: 420px; margin: 40px auto 60px; }
.auth .panel { padding: 28px; }
.auth h1 { font-size: 26px; font-weight: 750; }

/* ---------- Админка ---------- */
.admin-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 24px 16px 60px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--topbar-h) + 20px); align-self: start; }
.admin-nav a { padding: 10px 12px; border-radius: 9px; color: var(--ink-2); font-weight: 600; display: flex; justify-content: space-between; text-decoration: none; }
.admin-nav a:hover { background: var(--line-2); }
.admin-nav a.on { background: var(--ink); color: #fff; }
.verify-docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.verify-docs figure { margin: 0; }
.verify-docs a { display: block; border-radius: var(--r); overflow: hidden; background: #000; }
.verify-docs img { width: 100%; height: 260px; object-fit: contain; }
.verify-docs figcaption { font-size: 14px; font-weight: 600; margin-top: 6px; color: var(--muted); }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 550; }
#admmap { height: 300px; border-radius: var(--r); border: 1px solid var(--line); }

.pager { display: flex; gap: 4px; justify-content: center; margin: 24px 0; flex-wrap: wrap; }
.pager a, .pager b, .pager i { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; font-style: normal; }
.pager a { background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.pager b { background: var(--ink); color: #fff; }

/* ---------- Подвал и нижнее меню ---------- */
.footer { border-top: 1px solid var(--line); background: #fff; margin-top: 40px; }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 24px; padding: 32px 16px; align-items: start; }
.footer nav { display: flex; flex-direction: column; gap: 8px; }
.footer nav a { color: var(--ink-2); }
.footer p { max-width: 40ch; margin-top: 10px; }
.page-search .footer { display: none; }

.tabbar { display: none; }

/* Справка */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.prose li { margin-bottom: 6px; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1100px) {
  .lst-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
  .search-layout { grid-template-columns: minmax(0, 1fr) 40%; }
}

@media (max-width: 900px) {
  :root { --tabbar-h: 62px; --topbar-h: 58px; }
  .topnav, .uname, .topbar-right .iconbtn, .topbar-right .btn-ghost { display: none; }
  .usermenu summary { border: 0; padding: 0; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: #fff; border-top: 1px solid var(--line);
  }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 11.5px; font-weight: 600; text-decoration: none; }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a.on { color: var(--lake); }
  .tabbar .dot { top: 6px; right: calc(50% - 22px); }

  .hero-in { padding: 36px 16px 120px; }
  .hero-sun { width: 70px; height: 70px; top: 26px; right: 7%; }
  .searchbox { grid-template-columns: 1fr 1fr; padding: 6px; }
  .sb-field { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .sb-field.sb-where { grid-column: 1 / -1; }
  .sb-field.sb-guests { grid-column: 1 / -1; }
  .searchbox .btn-primary { grid-column: 1 / -1; margin-top: 6px; min-height: 52px; }
  .steps { grid-template-columns: 1fr; }
  .hostband { grid-template-columns: 1fr; padding: 28px 22px; margin: 40px 0; }

  .search-bar-in { flex-wrap: wrap; padding: 8px 12px; }
  .search-bar .sb-where { flex: 1 1 100%; }
  .search-bar .sb-date { flex: 1 1 30%; }
  .search-bar .sb-guests { flex: 1 1 20%; }
  .search-bar .sb-submit { display: none; }
  .search-layout { display: block; }
  .results { padding: 14px 12px 90px; }
  .map-pane { position: fixed; inset: var(--topbar-h) 0 var(--tabbar-h) 0; height: auto; z-index: 950; display: none; border: 0; }
  body.show-map .map-pane { display: block; }
  .map-toggle { display: inline-flex; position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + 14px); z-index: 1200; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); border-radius: 999px; background: var(--ink); color: #fff; border: 0; }

  .lst-grid { grid-template-columns: 1fr; gap: 0; padding-bottom: 90px; }
  .bookbox { position: static; box-shadow: none; }
  .gallery { display: flex; height: auto; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 0; margin: 0 -16px; gap: 0; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery a { flex: 0 0 100%; aspect-ratio: 4/3; scroll-snap-align: start; }
  .gallery-all { display: none; }
  .gallery-count { position: absolute; right: 12px; bottom: 12px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; padding: 2px 9px; border-radius: 7px; }
  .mobile-book {
    display: flex; position: fixed; left: 0; right: 0; bottom: var(--tabbar-h); z-index: 1400; background: #fff; border-top: 1px solid var(--line);
    padding: 10px 16px; align-items: center; justify-content: space-between; gap: 12px;
  }
  .mobile-book b { font-size: 18px; }
  .reviews { grid-template-columns: 1fr; }

  .admin-layout { grid-template-columns: 1fr; }
  .admin-nav { position: static; flex-direction: row; overflow-x: auto; }
  .admin-nav a { white-space: nowrap; }
  .footer-in { grid-template-columns: 1fr; }
}

@media (min-width: 901px) { .gallery-count { display: none; } }

@media (max-width: 640px) {
  .hero-sun { display: none; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr; gap: 26px; }
  .results .cards { grid-template-columns: 1fr; }
  .places { grid-template-columns: 1fr 1fr; }
  .place { min-height: 108px; }
  .amen-list, .amen-grid { grid-template-columns: 1fr; }
  .bk { grid-template-columns: 88px minmax(0, 1fr); }
  .bk-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
  .myitem { grid-template-columns: 88px minmax(0, 1fr); }
  .myitem img { width: 88px; height: 66px; }
  .myitem .actions { grid-column: 1 / -1; justify-content: flex-start; }
  .docs-grid, .verify-docs { grid-template-columns: 1fr; }
  .panel { padding: 18px; border-radius: var(--r); }
  .kv { grid-template-columns: 1fr; }
  .kv dd { margin-bottom: 8px; }
  .section { padding-top: 40px; }
  .langs { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Галерея: раскладка по количеству фото, кнопка «Сохранить» */
.gallery.n2 a { grid-row: 1 / 3; }
.gallery.n4 a:nth-child(4) { grid-column: 2 / 4; }
@media (min-width: 901px) { .gallery a.gx { display: none; } }
.save-btn svg { fill: none; stroke: currentColor; stroke-width: 2; }
.save-btn.on { color: var(--felt); }
.save-btn.on svg { fill: var(--felt); }

/* ==========================================================================
   Впечатления и семья
   ========================================================================== */
.card-exp { font-size: 13.5px; color: var(--lake); font-weight: 600; margin: -1px 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Редактор */
.xlist { display: grid; gap: 10px; margin-bottom: 12px; }
.xitem { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; background: #fbfdfd; }
.xitem-row { display: flex; gap: 12px; align-items: center; }
.xphoto { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; background: var(--line-2); }
.xphoto.round { border-radius: 50%; }
.xemoji { display: grid; place-items: center; font-size: 30px; }
.xtools { display: flex; gap: 2px; flex: none; }
.xtools .btn { min-height: 32px; padding: 0 9px; }
.xedit summary, .xadd summary { cursor: pointer; list-style: none; }
.xedit summary { color: var(--lake); font-weight: 600; font-size: 14px; margin-top: 6px; }
.xedit summary::-webkit-details-marker, .xadd summary::-webkit-details-marker { display: none; }
.xadd[open] summary { margin-bottom: 12px; }
.xform { padding-top: 12px; }

/* Страница дома: семья */
.family-story { white-space: pre-line; max-width: 68ch; }
.langs-line { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 16px; }
.person { display: flex; gap: 12px; align-items: flex-start; }
.person img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; background: var(--line-2); }
.person b { display: block; }
.person .role { color: var(--lake); font-size: 14px; font-weight: 600; }
.person p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }

/* Страница дома: впечатления */
.exps { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.exp { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.exp-img { aspect-ratio: 16 / 10; background: var(--sun-tint); display: grid; place-items: center; font-size: 46px; }
.exp-img img { width: 100%; height: 100%; object-fit: cover; }
.exp-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.exp-cat { font-size: 13px; font-weight: 600; color: var(--lake); }
.exp-body h3 { font-size: 16.5px; margin: 0; }
.exp-body p { font-size: 14px; color: var(--ink-2); margin: 0; white-space: pre-line; }
.exp-meta { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 650; }
.exp-meta span { color: var(--muted); font-weight: 400; }

/* Выбор впечатлений при брони */
.bb-exps { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.bb-exps > b { display: block; font-size: 14px; margin-bottom: 8px; }
.bb-exp { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; font-size: 14.5px !important; margin-bottom: 8px !important; cursor: pointer; }
.bb-exp input { margin-top: 2px; }
.bb-exp small { display: block; color: var(--muted); }
.bk-extras { margin-top: 6px; font-size: 14px; color: var(--ink-2); }

/* Поиск: быстрые фильтры впечатлений */
.exp-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: none; }
.exp-chips::-webkit-scrollbar { display: none; }
.exp-chips label { flex: none; cursor: pointer; }
.exp-chips input { position: absolute; opacity: 0; pointer-events: none; }
.exp-chips span { display: inline-block; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 550; white-space: nowrap; }
.exp-chips input:checked + span { background: var(--lake); border-color: var(--lake); color: #fff; }
.exp-chips input:focus-visible + span { outline: 3px solid var(--sun); }

/* Главная: впечатления */
.exp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.exp-tile { display: flex; gap: 12px; align-items: center; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); text-decoration: none !important; }
.exp-tile:hover { border-color: var(--lake-2); }
.exp-tile i { font-style: normal; font-size: 28px; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--sun-tint); flex: none; }
.exp-tile b { display: block; font-size: 15px; line-height: 1.25; }
.exp-tile small { color: var(--muted); }
@media (max-width: 640px) { .exp-tiles { grid-template-columns: 1fr 1fr; } .exp-tile { padding: 10px; gap: 8px; } .exp-tile i { width: 38px; height: 38px; font-size: 22px; } }
.ava-img { object-fit: cover; padding: 0; }
