/* otelichno — стили. Минимализм: белый фон, чёрный текст, много воздуха, крупные скругления. */
:root {
  --bg: #fff; --fg: #0d0d0d; --muted: #6e6e73; --line: #e7e7e9; --soft: #f5f5f6; --soft2: #ececee;
  --good: #0b7a57; --good-bg: #e6f4ee; --warn: #8a5a00; --warn-bg: #fff4d6; --bad: #b3261e; --bad-bg: #fdeceb; --info-bg: #f1f3f8;
  --accent: #ee4b14;
  --r: 14px; --r-lg: 22px; --pill: 999px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 var(--font); color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
a { color: inherit; text-decoration: underline; text-decoration-color: #c9c9cd; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; font-weight: 600; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { margin: 0 0 12px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.pad-xl { padding-top: 56px; padding-bottom: 72px; }
.pad-top { padding-top: 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.good { color: var(--good); }
.mt { margin-top: 36px; margin-bottom: 14px; }
.r { text-align: right; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }
.code { font-family: var(--mono); letter-spacing: 0.04em; }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.meta { font-size: 13px; color: var(--muted); letter-spacing: 0.01em; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: var(--pill); border: 1px solid transparent; font: 500 15px/1 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, opacity .15s, border-color .15s; }
.btn-dark { background: var(--fg); color: #fff; }
.btn-dark:hover { background: #2b2b2b; }
.btn-soft { background: var(--soft); color: var(--fg); }
.btn-soft:hover { background: var(--soft2); }
.btn-light { background: #fff; color: var(--fg); }
.btn-text { background: none; color: var(--fg); padding: 0 12px; }
.btn-text:hover { background: var(--soft); }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--fg); text-decoration: underline; text-decoration-color: #c9c9cd; text-underline-offset: 3px; cursor: pointer; margin-left: 10px; }
.link.danger, .danger { color: var(--bad); }

/* Шапка */
.hdr { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; }
.hdr-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--fg); flex: none; }
.logo-svg { height: 40px; width: auto; display: block; overflow: visible; }
.ftr .logo-svg { height: 34px; }
.cert .logo-svg { height: 38px; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { padding: 8px 12px; border-radius: var(--pill); text-decoration: none; font-size: 15px; color: #3b3b3f; }
.nav a:hover, .nav a.on { background: var(--soft); color: var(--fg); }
.hdr-r { display: flex; align-items: center; gap: 6px; }
.burger { display: none; width: 40px; height: 40px; border: 0; background: var(--soft); border-radius: 50%; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 16px; height: 1.5px; background: var(--fg); }

a.only-narrow, .only-narrow { display: none !important; }
.nav-btn { background: none; border: 0; font: inherit; font-size: 15px; padding: 8px 12px; color: #3b3b3f; cursor: pointer; text-align: left; width: 100%; }
.filters-check, .filters-toggle { display: none; }

/* Сообщения */
.flash { margin: 12px 0; padding: 12px 16px; border-radius: var(--r); font-size: 15px; background: var(--info-bg); }
.flash-ok { background: var(--good-bg); color: #075c41; }
.flash-error { background: var(--bad-bg); color: var(--bad); }
.flash-warn { background: var(--warn-bg); color: var(--warn); }
.flash-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.flash-link { display: block; text-decoration: none; font-weight: 500; }
.badge { display: inline-block; padding: 3px 10px; border-radius: var(--pill); font-size: 12px; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.badge-good { background: var(--good-bg); color: var(--good); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-gray { background: var(--soft2); color: #55555a; }
.disc { display: inline-block; background: var(--fg); color: #fff; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: var(--pill); }

/* Главная */
.hero { padding: 72px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(38px, 6.4vw, 76px); letter-spacing: -0.04em; line-height: 1.02; font-weight: 600; margin-bottom: 22px; }
.hero .lead { margin: 0 auto 36px; }
.search { display: flex; align-items: stretch; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 6px; box-shadow: 0 12px 40px rgba(0, 0, 0, .07); max-width: 900px; margin: 0 auto; text-align: left; }
.search-f { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 6px 18px; border-right: 1px solid var(--line); min-width: 0; border-radius: 20px; }
.search-f:first-child { flex: 1.5; }
.search-f:focus-within { background: var(--soft); }
.search-f span { font-size: 12px; color: var(--muted); }
.search-f input, .search-f select { border: 0; outline: 0; background: none; font: 500 16px var(--font); color: var(--fg); padding: 2px 0; width: 100%; appearance: none; }
.search-f:nth-last-of-type(1) { border-right: 0; }
.search .btn { margin-left: 6px; border-radius: 22px; height: auto; min-height: 52px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }
.chips a { padding: 8px 16px; border-radius: var(--pill); background: var(--soft); text-decoration: none; font-size: 14px; }
.chips a:hover { background: var(--soft2); }
.chips .chip-dark { background: var(--fg); color: #fff; }
.sec { padding-top: 56px; }
.sec:last-of-type { padding-bottom: 72px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sec-h h2 { font-size: 28px; }
.sec-h a { font-size: 15px; text-decoration: none; color: var(--muted); }
.sec-h a:hover { color: var(--fg); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hcard { text-decoration: none; display: block; }
.hcard-img { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--soft); }
.hcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hcard:hover img { transform: scale(1.03); }
.hcard-img .disc { position: absolute; top: 14px; left: 14px; }
.hcard-b { padding: 14px 4px 0; }
.hcard-b h3 { margin: 4px 0 2px; }
.hcard-price { margin-top: 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); }
.hcard-price b { font-size: 18px; color: var(--fg); }
.hcard-price s, .hrow-price s, .offer-p s { color: #9a9aa0; margin-left: 8px; font-size: 14px; }
.cities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.city { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 4; text-decoration: none; color: #fff; }
.city img { width: 100%; height: 100%; object-fit: cover; }
.city div { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); display: flex; flex-direction: column; }
.city b { font-size: 18px; letter-spacing: -0.01em; }
.city span { font-size: 13px; opacity: .9; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps > div { background: var(--soft); border-radius: var(--r-lg); padding: 24px; }
.steps i { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; background: var(--fg); color: #fff; align-items: center; justify-content: center; font-style: normal; font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.steps b { display: block; font-size: 18px; letter-spacing: -0.01em; margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; font-size: 15px; }
.steps-col { grid-template-columns: 1fr; margin: 28px 0 40px; }
.steps-col > div { display: grid; grid-template-columns: 48px 1fr; column-gap: 4px; }
.steps-col i { grid-row: span 2; margin: 0; }
.cta { background: var(--fg); color: #fff; border-radius: 28px; padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { font-size: 30px; margin-bottom: 8px; }
.cta p { margin: 0; color: #b9b9be; max-width: 520px; }

/* Каталог */
.cat { display: grid; grid-template-columns: 264px 1fr; gap: 32px; padding-top: 28px; padding-bottom: 72px; align-items: start; }
.filters { position: sticky; top: 84px; background: var(--soft); border-radius: var(--r-lg); padding: 20px; }
.filters-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.filters-h a { font-size: 13px; color: var(--muted); }
.fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.fld > span { font-size: 13px; color: var(--muted); }
.fld small { font-size: 12px; color: var(--muted); }
.fld input, .fld select, .fld textarea, .mod-reject input, .user-form select { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: 15px var(--font); color: var(--fg); outline: 0; transition: border-color .15s, box-shadow .15s; }
.fld textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .mod-reject input:focus { border-color: var(--fg); box-shadow: 0 0 0 3px rgba(13, 13, 13, .08); }
.fld input:disabled { background: var(--soft); color: var(--muted); }
.checks { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.checks label, .check { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.checks-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.check { font-size: 14px; margin-bottom: 16px; }
input[type=checkbox], input[type=radio] { accent-color: var(--fg); width: 16px; height: 16px; margin: 3px 0 0; flex: none; }
.cat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.cat-head h1 { font-size: 28px; margin-bottom: 4px; }
.sort select { height: 40px; padding: 0 14px; border-radius: var(--pill); border: 1px solid var(--line); background: #fff; font: 14px var(--font); }
.hrow { display: grid; grid-template-columns: 260px 1fr 210px; gap: 20px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; margin-bottom: 14px; transition: box-shadow .2s, border-color .2s; }
.hrow:hover { border-color: #d4d4d8; box-shadow: 0 10px 30px rgba(0, 0, 0, .06); }
.hrow-img { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--soft); }
.hrow-img img { width: 100%; height: 100%; object-fit: cover; }
.hrow-img .disc { position: absolute; top: 10px; left: 10px; }
.hrow-main { padding: 8px 0; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hrow-main h3 { font-size: 20px; margin: 2px 0; }
.hrow-n { margin-top: auto; font-size: 13px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tags span { font-size: 12px; padding: 4px 10px; border-radius: var(--pill); background: var(--soft); color: #3b3b3f; }
.hrow-price { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; padding: 8px 8px 8px 20px; border-left: 1px solid var(--line); text-align: right; gap: 2px; }
.hrow-price b { font-size: 26px; letter-spacing: -0.02em; line-height: 1.1; }
.hrow-price s { margin: 0; }
.save { font-size: 13px; color: var(--good); font-weight: 500; margin-bottom: 12px; }

/* Отель */
.hotel { padding-top: 20px; padding-bottom: 72px; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.hotel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 20px; }
.hotel-head h1 { margin: 6px 0; }
.hotel-disc { text-align: right; white-space: nowrap; }
.hotel-disc b { display: block; font-size: 34px; letter-spacing: -0.03em; line-height: 1; }
.hotel-disc span { font-size: 13px; color: var(--muted); }
.gallery { display: grid; gap: 8px; border-radius: var(--r-lg); overflow: hidden; height: 440px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery a { overflow: hidden; background: var(--soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery a:first-child { grid-row: span 2; }
.gallery.g1 { grid-template-columns: 1fr; height: 440px; }
.gallery.g1 img { object-position: 50% 30%; }
.gallery.g2 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; }
.gallery.g2 a:first-child { grid-row: auto; }
.gallery.g3 { grid-template-columns: 2fr 1fr; }
.gallery.g4 { grid-template-columns: 2fr 1fr 1fr; }
.gallery.g4 a:nth-child(2) { grid-column: span 2; }
.hotel-cols { display: grid; grid-template-columns: 1fr 380px; gap: 48px; margin-top: 36px; align-items: start; }
.hotel-main section { margin-bottom: 36px; }
.hotel-main h2 { margin-bottom: 12px; }
.text { font-size: 17px; line-height: 1.6; color: #2a2a2e; }
ol.text { padding-left: 22px; margin: 0; }
ol.text li { margin-bottom: 6px; }
.amen { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.amen li { padding: 12px 14px; background: var(--soft); border-radius: 12px; font-size: 15px; }
.note { margin-top: 16px; padding: 16px 18px; background: var(--soft); border-radius: var(--r); font-size: 15px; }
.note p { margin: 4px 0 0; color: #3b3b3f; }
.buy { position: sticky; top: 84px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: 0 16px 44px rgba(0, 0, 0, .06); }
.buy h2 { margin-bottom: 14px; }
.offers { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.offer { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); }
.offer.off { background: #fafafa; }
.offer.off .offer-t, .offer.off .offer-p { opacity: .5; }
.offer-b { flex: 1; min-width: 0; }
.offer-t { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.offer-p { margin: 2px 0 4px; }
.offer-p b { font-size: 22px; letter-spacing: -0.02em; }
.hot { color: var(--bad); font-weight: 500; }
.buy .muted.small.center { margin: 12px 0 0; }

/* Карта */
.map { position: relative; z-index: 0; isolation: isolate; width: 100%; border-radius: var(--r-lg); overflow: hidden; background: var(--soft); border: 1px solid var(--line); font-family: var(--font); }
.map-catalog { height: calc(100vh - 250px); min-height: 480px; }
.map-home { height: 480px; }
.map-hotel { height: 300px; }
.map-note { margin: 10px 2px 0; }
.map .leaflet-control-attribution { font-size: 11px; background: rgba(255, 255, 255, .85); border-radius: 8px 0 0 0; padding: 2px 8px; }
.map .leaflet-control-attribution a { color: inherit; }
.map .leaflet-bar { border: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); border-radius: 12px; overflow: hidden; }
.map .leaflet-bar a { width: 36px; height: 36px; line-height: 36px; color: var(--fg); text-decoration: none; border-color: var(--line); }
.map-pin span { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); margin-top: -8px; padding: 5px 11px; border-radius: var(--pill); background: var(--fg); color: #fff; border: 2px solid #fff; font: 600 13px/1.3 var(--font); white-space: nowrap; box-shadow: 0 3px 10px rgba(0, 0, 0, .28); cursor: pointer; transition: background .15s; }
.map-pin span::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 10px; height: 10px; background: inherit; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateX(-50%) rotate(45deg); }
.map-pin:hover span, .map-pin:focus span { background: var(--accent); }
.map-cluster { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--fg); color: #fff; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .28); font: 600 14px var(--font); }
.map-cluster:hover { background: var(--accent); }
.map-dot { border-radius: 50%; background: var(--accent); border: 4px solid #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.map .leaflet-popup-content-wrapper { border-radius: 18px; padding: 0; overflow: hidden; box-shadow: 0 12px 36px rgba(0, 0, 0, .22); }
.map .leaflet-popup-content { margin: 0; width: 240px !important; font: 14px/1.4 var(--font); }
.map .leaflet-popup-close-button { top: 6px; right: 6px; width: 26px; height: 26px; line-height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--fg); font-size: 18px; text-decoration: none; }
.map-card { display: block; color: var(--fg) !important; text-decoration: none; }
.map-card img { width: 100%; height: 120px; object-fit: cover; }
.map-card-b { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.map-card-b b { font-size: 16px; letter-spacing: -0.01em; }
.map-card-meta, .map-card-place, .map-card-hint { font-size: 12px; color: var(--muted); }
.map-card-price { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.map-card-new { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.map-card-price s { color: #9a9aa0; font-size: 13px; }
.map-card-price i { font-style: normal; font-size: 12px; font-weight: 600; background: var(--fg); color: #fff; border-radius: var(--pill); padding: 1px 8px; }
.map-card-btn { margin-top: 10px; display: flex; align-items: center; justify-content: center; height: 36px; border-radius: var(--pill); background: var(--fg); color: #fff; font-weight: 500; }
.cat-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.view-toggle { display: inline-flex; background: var(--soft); border-radius: var(--pill); padding: 3px; }
.view-toggle a { padding: 7px 14px; border-radius: var(--pill); font-size: 14px; text-decoration: none; color: var(--muted); white-space: nowrap; }
.view-toggle a.on { background: #fff; color: var(--fg); font-weight: 500; box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.geo-status { margin: 0 0 10px; padding: 10px 14px; background: var(--soft); border-radius: 12px; font-size: 14px; }

/* Корзина и количество */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cart-btn { position: relative; gap: 6px; padding: 0 14px; }
.cart-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.cart-btn i { font-style: normal; font-size: 12px; font-weight: 600; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--pill); background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.btn-off { opacity: .4; pointer-events: none; }
.disc-sm { font-size: 12px; padding: 2px 8px; }
.warn-text { color: var(--bad); font-size: 14px; }
.offer-stock { font-size: 13px; font-weight: 500; margin-top: 6px; color: var(--good); }
.offer-stock.hot { color: var(--bad); }
.offer.off .offer-stock { color: var(--muted); }
.offer-stock a { color: var(--fg); font-weight: 400; }
.offer-add { display: flex; gap: 8px; margin-top: 10px; }
.offer-add .btn { flex: 1; }
.qty input { width: 72px; height: 40px; border: 1px solid var(--line); border-radius: var(--pill); text-align: center; font: 500 15px var(--font); outline: 0; }
.qty input:focus { border-color: var(--fg); }
.cart { display: flex; flex-direction: column; gap: 12px; }
.cart-row { display: grid; grid-template-columns: 120px 1fr auto auto; gap: 18px; align-items: center; padding: 12px 20px 12px 12px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.cart-row.off { background: #fafafa; }
.cart-row.off .cart-img { opacity: .5; }
.cart-img img { width: 120px; height: 90px; object-fit: cover; border-radius: 14px; }
.cart-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cart-name { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; }
.cart-qty { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stepper { display: inline-flex; align-items: center; background: var(--soft); border-radius: var(--pill); padding: 3px; }
.stepper button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fff; font: 500 18px/1 var(--font); cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.stepper button[disabled] { opacity: .35; cursor: not-allowed; }
.stepper span { min-width: 40px; text-align: center; font-weight: 600; }
.cart-total { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 110px; }
.cart-total b { font-size: 19px; letter-spacing: -0.02em; }
.cart-total s { color: #9a9aa0; font-size: 13px; }
.cart-total .link { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.cart-sum h2, .summary > h2 { margin-bottom: 4px; }
.cart-sum .btn { margin-top: 16px; }
.cart-sum .warn-text { margin: 14px 0 0; }
.sum-lines { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 4px; }
.sum-lines > div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.sum-lines > div > span:last-child { white-space: nowrap; font-weight: 500; }

/* Вход по телефону */
.auth-lead { color: var(--muted); text-align: center; margin: -12px 0 24px; }
.phone-input, .code-digits { height: 56px !important; font-size: 22px !important; text-align: center; letter-spacing: .02em; }
.code-digits { font-family: var(--mono) !important; font-size: 30px !important; letter-spacing: .5em !important; padding-left: .5em !important; }
.auth-again { margin: 18px 0 6px; }
.auth-again .link { margin: 0; }

/* Формы и карточки */
.card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin-bottom: 20px; background: #fff; }
.card > h2 { margin-bottom: 16px; }
.card > h3 { margin: 24px 0 12px; }
.form .btn { margin-top: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.auth { max-width: 420px; margin: 0 auto; padding: 56px 24px 72px; }
.auth h1 { text-align: center; margin-bottom: 28px; }
.auth .muted.center { margin-top: 20px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--soft); border-radius: var(--pill); padding: 4px; margin-bottom: 20px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 9px 8px; border-radius: var(--pill); font-size: 14px; font-weight: 500; color: var(--muted); }
.seg input:checked + span { background: #fff; color: var(--fg); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.demo-box { margin-top: 28px; padding: 18px; border: 1px dashed #cfcfd4; border-radius: var(--r); }
.demo-box p { margin: 4px 0 12px; }
.demo-logins { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-logins button { border: 0; background: var(--soft); border-radius: var(--pill); padding: 8px 14px; font: 500 14px var(--font); cursor: pointer; }
.demo-logins button:hover { background: var(--soft2); }

/* Оформление и заказ */
.checkout { padding-top: 20px; padding-bottom: 72px; }
.checkout h1 { margin-bottom: 24px; }
.checkout-cols { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.summary { position: sticky; top: 84px; }
.summary img { border-radius: 14px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; margin-bottom: 14px; }
.summary h3 { margin: 4px 0 2px; }
dl { margin: 16px 0 0; }
.summary dl > div, .kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; font-weight: 500; }
.summary .total { font-size: 20px; }
.summary .total dt { color: var(--fg); font-weight: 600; }
.summary .total dd { font-weight: 600; }
.kv { margin: 0; }
.kv > div:first-child { border-top: 0; padding-top: 0; }
.kv > div:last-child { padding-bottom: 0; }
.pay-demo { text-align: center; padding: 40px 32px; }
.pay-demo h1 { font-size: 56px; margin: 16px 0 6px; letter-spacing: -0.04em; }
.pay-demo p { max-width: 520px; margin-left: auto; margin-right: auto; }
.pay-demo-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.order-head { text-align: center; margin-bottom: 28px; }
.order-head h1 { margin: 14px 0 10px; }
.cert-mini { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--fg); color: #fff; border-radius: var(--r-lg); padding: 24px 28px; margin-bottom: 20px; flex-wrap: wrap; }
.cert-mini div { display: flex; flex-direction: column; gap: 2px; }
.cert-mini .muted { color: #a9a9ae; }
.cert-mini b { font-size: 28px; }
.cert-mini .btn { background: #fff; color: var(--fg); }
.order-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Сертификат */
.cert-actions { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.cert { border-radius: 28px; padding: 40px; background: linear-gradient(135deg, #f7f1ea 0%, #eef2f7 55%, #e6f0ee 100%); border: 1px solid var(--line); }
.cert-off { filter: grayscale(1); opacity: .75; }
.cert header { display: flex; justify-content: space-between; align-items: center; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 44px; }
.cert-nominal small { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cert-nominal b { display: block; font-size: clamp(48px, 9vw, 84px); letter-spacing: -0.045em; line-height: 1; margin: 6px 0 22px; font-weight: 600; }
.cert h2 { font-size: 26px; margin-bottom: 4px; }
.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin: 32px 0; padding: 24px 0; border-top: 1px solid rgba(0, 0, 0, .1); border-bottom: 1px solid rgba(0, 0, 0, .1); }
.cert-grid small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.cert-grid b { font-size: 18px; font-weight: 600; }
.cert-grid .code { font-size: 22px; }
.cert-terms { font-size: 14px; color: #3b3b3f; }
.cert-terms p { margin: 6px 0 0; }

/* Кабинеты */
.cab { display: grid; grid-template-columns: 232px 1fr; gap: 40px; padding-top: 32px; padding-bottom: 72px; align-items: start; }
.cab-nav { position: sticky; top: 84px; }
.cab-role { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cab-user { font-weight: 600; margin: 2px 0 16px; overflow: hidden; text-overflow: ellipsis; }
.cab-nav nav { display: flex; flex-direction: column; gap: 2px; }
.cab-nav a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 10px; text-decoration: none; font-size: 15px; color: #3b3b3f; }
.cab-nav a:hover { background: var(--soft); }
.cab-nav a.on { background: var(--soft); color: var(--fg); font-weight: 500; }
.cab-nav i { font-style: normal; font-size: 12px; background: var(--fg); color: #fff; border-radius: var(--pill); padding: 1px 8px; }
.cab-main { min-width: 0; }
.cab-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.cab-head h1 { font-size: 30px; }
.cab-main > h2 { margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--soft); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.stat span { font-size: 13px; color: var(--muted); }
.stat b { font-size: 28px; letter-spacing: -0.03em; line-height: 1.1; }
.stat small { font-size: 13px; color: var(--muted); }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; transition: border-color .15s; }
.tile:hover { border-color: var(--fg); }
.tile b { font-size: 18px; letter-spacing: -0.01em; }
.tile span { color: var(--muted); font-size: 15px; }
.empty { text-align: center; padding: 48px 24px; background: var(--soft); border-radius: var(--r-lg); margin-bottom: 20px; }
.empty b { font-size: 18px; }
.empty p { color: var(--muted); margin: 6px 0 16px; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 14px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafafa; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th.r, .tbl td.r { text-align: right; }
.tbl a { text-decoration: none; font-weight: 500; }
.tbl a:hover { text-decoration: underline; }
.edit-row td { background: #fafafa; white-space: normal; }
.tbl-offers th, .tbl-offers td { padding: 12px 10px; white-space: nowrap; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 7px 14px; border-radius: var(--pill); background: var(--soft); text-decoration: none; font-size: 14px; }
.tabs a.on { background: var(--fg); color: #fff; }
.certs { display: flex; flex-direction: column; gap: 12px; }
.cert-row { display: grid; grid-template-columns: 170px 1fr auto; gap: 20px; align-items: center; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; transition: border-color .15s; }
.cert-row:hover { border-color: var(--fg); }
.cert-row.off { background: #fafafa; color: var(--muted); }
.cert-row-n { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.cert-row-n b { font-size: 26px; letter-spacing: -0.03em; line-height: 1; }
.cert-row-m, .cert-row-c { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cert-row-c { align-items: flex-end; }
.cert-row-c .code { font-size: 16px; font-weight: 600; }
.mlist { display: flex; flex-direction: column; gap: 10px; }
.mrow { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding: 10px 16px 10px 10px; border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; }
.mrow:hover { border-color: var(--fg); }
.mrow img { width: 96px; height: 72px; object-fit: cover; border-radius: 12px; }
.mrow-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.status-box { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; background: var(--soft); border-color: transparent; }
.status-box p { margin: 8px 0 0; max-width: 520px; color: #3b3b3f; font-size: 15px; }
.status-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.status-box .btn-soft, .flash .btn-soft { background: #fff; }
.tbl .code { white-space: nowrap; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.photo { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--soft); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo form button { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.photo-add { display: flex; align-items: center; justify-content: center; border: 1px dashed #c4c4ca; background: #fff; cursor: pointer; font-size: 14px; color: var(--muted); }
.photo-add:hover { border-color: var(--fg); color: var(--fg); }
.photo-add input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.photo-add.busy { opacity: .5; pointer-events: none; }
.offer-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: end; }
.offer-form .fld { margin: 0; }
.offer-form .wide { grid-column: span 3; }
.offer-form .full { grid-column: 1 / -1; }
.offer-form textarea { font-family: var(--mono); font-size: 14px; }
.cert-num { font-size: 15px !important; font-weight: 500 !important; }
.offer-form-btns { display: flex; }
.offer-form-btns .btn { height: 44px; width: 100%; }
.edit-row form + form { margin-top: 10px; }
.edit-row .link { margin-left: 0; }
.danger-zone { text-align: right; }
.redeem { display: flex; gap: 12px; align-items: flex-end; }
.redeem .fld { flex: 1; margin: 0; }
.redeem .btn { height: 52px; }
.code-input { font-family: var(--mono) !important; font-size: 20px !important; letter-spacing: .08em; text-transform: uppercase; height: 52px !important; }
.code-input-free { font-family: var(--mono) !important; font-size: 20px !important; letter-spacing: .04em; height: 52px !important; }
.redeem-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.redeem-top div { display: flex; flex-direction: column; }
.big { font-size: 40px; letter-spacing: -0.03em; line-height: 1.1; }
.redeem-result .form { margin-top: 20px; }
.mod { display: grid; grid-template-columns: 180px 1fr; gap: 20px; }
.mod > img { width: 180px; height: 135px; object-fit: cover; border-radius: 14px; }
.mod-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mod-b > b { font-size: 18px; }
.mod-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.mod-reject { display: flex; gap: 8px; margin-top: 8px; }
.mod-reject input { flex: 1; height: 40px; }
.user-form { display: inline-flex !important; gap: 6px; align-items: center; }
.user-form select { height: 32px; width: auto; padding: 0 8px; font-size: 13px; border-radius: 8px; }

/* Текстовые страницы */
.prose h1 { margin-bottom: 16px; }
.prose h2 { margin: 36px 0 12px; }
.prose p { font-size: 17px; line-height: 1.6; }
.prose details { border-top: 1px solid var(--line); padding: 16px 0; }
.prose details:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.prose summary { cursor: pointer; font-weight: 500; font-size: 17px; }
.prose details p { margin: 10px 0 0; color: #3b3b3f; }

/* Подвал */
.ftr { border-top: 1px solid var(--line); padding: 44px 0 28px; font-size: 14px; color: var(--muted); }
.ftr-in { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 32px; }
.ftr-brand p { max-width: 320px; margin-top: 12px; }
.ftr .logo { color: var(--fg); }
.ftr-col { display: flex; flex-direction: column; gap: 8px; }
.ftr-col b { color: var(--fg); font-weight: 500; margin-bottom: 4px; }
.ftr-col a { text-decoration: none; }
.ftr-col a:hover { color: var(--fg); }
.ftr-legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }

/* Планшеты и телефоны */
@media (max-width: 1000px) {
  .grid3 { grid-template-columns: repeat(2, 1fr); }
  .cities { grid-template-columns: repeat(2, 1fr); }
  .cat, .hotel-cols, .checkout-cols, .cab { grid-template-columns: 1fr; gap: 24px; }
  .filters, .buy, .summary, .cab-nav { position: static; }
  .hotel-cols .buy { order: -1; }
  .hotel-cols { margin-top: 24px; }
  .cab-nav nav { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .cab-nav a { white-space: nowrap; gap: 6px; }
  .hrow { grid-template-columns: 200px 1fr; }
  .hrow-price { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding: 12px 4px 4px; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
  .save { margin: 0; }
  .ftr-in { grid-template-columns: 1fr 1fr; }
  .offer-form { grid-template-columns: 1fr 1fr; }
  .offer-form .wide { grid-column: span 2; }
}
@media (max-width: 700px) {
  .wrap { padding: 0 16px; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .burger { display: flex; }
  .hdr-in { gap: 12px; justify-content: space-between; }
  .only-wide { display: none !important; }
  a.only-narrow, .only-narrow { display: block !important; }
  .btn .only-narrow { display: inline !important; }
  .hdr-r .btn { height: 36px; padding: 0 14px; font-size: 14px; }
  .hdr .logo-svg { height: 34px; }
  .hdr-r .btn-text { background: var(--soft); }
  .hero h1 br { display: none; }
  .filters { padding: 0; background: none; }
  .filters-toggle { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: var(--pill); background: var(--soft); font-weight: 500; font-size: 15px; cursor: pointer; }
  .filters form { display: none; background: var(--soft); border-radius: var(--r-lg); padding: 20px; margin-top: 10px; }
  .filters-check:checked ~ form { display: block; }
  .cat { padding-top: 16px; gap: 16px; }
  .hero { padding: 40px 0 24px; }
  .search { flex-direction: column; border-radius: 22px; }
  .search-f { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; border-radius: 0; }
  .search .btn { margin: 6px 0 0; }
  .grid3, .steps, .cols2, .row2, .amen, .checks-3 { grid-template-columns: 1fr; }
  .hrow { grid-template-columns: 1fr; }
  .gallery, .gallery.g2, .gallery.g3, .gallery.g4 { grid-template-columns: 1fr 1fr; height: 300px; }
  .gallery a:first-child { grid-column: span 2; grid-row: auto; }
  .gallery.g4 a:nth-child(2) { grid-column: auto; }
  .gallery a:nth-child(n + 4) { display: none; }
  .gallery.g1, .gallery.g2 { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .gallery.g1 a, .gallery.g2 a { aspect-ratio: 4 / 3; }
  .gallery.g1 a:first-child, .gallery.g2 a:first-child { grid-column: auto; }
  .hotel-head { flex-direction: column; align-items: flex-start; }
  .hotel-disc { text-align: left; }
  .cta { padding: 28px; }
  .cert { padding: 24px; }
  .cert-row { grid-template-columns: 1fr; gap: 10px; }
  .cart-row { grid-template-columns: 84px 1fr; padding: 12px; }
  .cart-img img { width: 84px; height: 64px; }
  .cart-qty { grid-column: 1 / -1; flex-direction: row; gap: 12px; }
  .cart-total { grid-column: 1 / -1; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 10px; min-width: 0; }
  .cart-total .link { margin: 0 0 0 auto; }
  .cart-btn { padding: 0 10px; }
  .cert-row-c { align-items: flex-start; }
  .mod { grid-template-columns: 1fr; }
  .mod > img { width: 100%; height: 180px; }
  .redeem { flex-direction: column; align-items: stretch; }
  .ftr-in { grid-template-columns: 1fr; }
  .cat-head { flex-direction: column; align-items: flex-start; }
  .map-catalog { height: 70vh; min-height: 380px; }
  .map-home { height: 380px; }
  .map-hotel { height: 240px; }
}

/* Печать сертификата */
@media print {
  .hdr, .ftr, .noprint, .flash { display: none !important; }
  body { min-height: 0; }
  .pad-xl { padding: 0; }
  .cert { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
