:root {
  --plum: #4e1d4c;
  --plum-deep: #281429;
  --plum-darker: #1b101d;
  --buff: #ebd3a2;
  --cream: #fbf6eb;
  --paper: #fffaf2;
  --ink: #301f30;
  --muted: #6d5b69;
  --line: #e6d9cb;
  --soft: #efe5d6;
  --rust: #a45234;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: wait; opacity: .58; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p { line-height: 1.55; }
button { color: inherit; }
.site-header { border-bottom: 1px solid var(--line); background: var(--cream); }
.header-inner {
  max-width: 1440px; min-height: 74px; margin: 0 auto; padding: 0 44px; display: grid;
  grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start; white-space: nowrap;
  color: var(--plum); font: 700 31px/.95 var(--serif); letter-spacing: -.025em;
}
.brand-icon, .avatar {
  display: grid; place-items: center; border-radius: 50%; width: 34px; height: 34px;
  font: 500 16px var(--sans); background: var(--plum); color: var(--buff);
}
.tabs { display: flex; gap: 32px; height: 74px; }
.tabs a { display: grid; align-items: center; padding: 0 3px; color: var(--muted); font-weight: 500; position: relative; }
.tabs a[aria-current="page"] { color: var(--plum); font-weight: 700; }
.tabs a[aria-current="page"]::after { content: ''; position: absolute; inset: auto 0 0; height: 2px; background: var(--plum); }
.profile { display: inline-flex; align-items: center; gap: 9px; justify-self: end; font-size: .87rem; font-weight: 600; }
.avatar { width: 31px; height: 31px; color: var(--plum); background: var(--soft); font-size: .8rem; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 28px 44px 40px; min-height: 72vh; }
.hero {
  border-radius: 16px; overflow: hidden; min-height: 306px; isolation: isolate; position: relative;
  display: flex; align-items: center; background: var(--plum-deep); color: var(--cream);
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(90deg, #241226 0%, #2b142b 24%, #2b142beb 39%, #23132458 66%, #180b1880),
    url('https://images.unsplash.com/photo-1739799120521-c5f44a9335a3?auto=format&fit=crop&w=1700&q=84');
  background-repeat: no-repeat; background-size: cover; background-position: center, center 54%;
}
.hero-body { padding: 33px 46px 36px; max-width: 680px; }
.hero h1 { font: 600 clamp(60px, 7vw, 102px)/.85 var(--serif); margin: 0 0 17px; letter-spacing: -.06em; }
.hero h1 em { color: var(--buff); font-weight: 600; }
.hero p { color: #f6ead9; max-width: 360px; margin: 0 0 20px; font-size: .93rem; }
.hero .button { background: var(--buff); color: var(--plum-deep); border-color: var(--buff); }
.hero .button:hover { background: #f6e4bc; }
.atlas { margin-top: 31px; scroll-margin-top: 18px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 16px; }
.section-head h2, .page-title {
  margin: 0; font: 700 clamp(42px, 5vw, 65px)/.9 var(--serif); letter-spacing: -.045em; color: var(--plum);
}
.section-head p { margin: 5px 0 0; color: var(--muted); }
.control-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 14px; }
.collection-list { display: flex; flex-wrap: wrap; gap: 7px; }
.chip, .button, .icon-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 41px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--paper); padding: 8px 13px; font-weight: 600;
}
.chip { border-radius: 30px; min-height: 37px; padding-inline: 15px; font-size: .85rem; white-space: nowrap; }
.chip[aria-pressed="true"], .button.primary { color: var(--cream); background: var(--plum); border-color: var(--plum); }
.button:hover, .icon-button:hover, .chip:hover { border-color: var(--plum); }
.button.primary:hover, .chip[aria-pressed="true"]:hover { background: #63265f; }
.button.small { min-height: 34px; font-size: .82rem; padding: 6px 10px; }
.button.ghost, .icon-button.ghost { background: transparent; }
.button.danger { color: #8d342a; border-color: #d8afa7; }
.button.danger:hover { background: #f4e1de; border-color: #8d342a; }
.icon-button { width: 40px; padding: 0; flex: 0 0 auto; font-size: 1.15rem; }
.icon-button[aria-pressed="true"] { color: var(--plum); background: var(--buff); border-color: transparent; }
.filter-layout { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.search { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 180px; }
.search input { width: 100%; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  min-height: 40px; padding: 8px 12px;
}
input::placeholder, textarea::placeholder { color: #796776; }
textarea { resize: vertical; }
.explorer { display: grid; grid-template-columns: minmax(310px, .77fr) minmax(0, 1.23fr); gap: 19px; margin-top: 13px; }
.bar-list {
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper); max-height: 555px; min-height: 180px;
  overflow: auto; scrollbar-width: thin; scrollbar-color: #c4a78d transparent;
}
.bar-row {
  padding: 12px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px;
  border-bottom: 1px solid var(--line); align-items: start;
}
.bar-row:last-child { border-bottom: 0; }
.bar-row:hover { background: #f7efe1; }
.bar-open {
  display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 13px; align-items: center;
  width: 100%; border: 0; text-align: left; padding: 0; background: transparent; cursor: pointer; min-width: 0;
}
.thumb {
  min-height: 87px; height: 100%; align-self: stretch; position: relative; overflow: hidden; border-radius: 7px;
  display: grid; place-items: center; background: #442041; color: var(--buff); font: 600 46px/1 var(--serif);
}
.thumb::before {
  content: ''; position: absolute; inset: 7px; border: 1px solid currentColor; border-radius: 3px; opacity: .26;
}
.thumb.wine { background: #7a493e; color: #f5dab4; }
.thumb.beer { background: #a16b40; color: #fff0ce; }
.thumb.tincture { background: #5d5940; color: #f5e3af; }
.thumb img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.thumb img[hidden], .detail-photo[hidden] { display: none; }
.row-copy { min-width: 0; }
.row-name { display: block; font: 700 27px/.95 var(--serif); letter-spacing: -.025em; margin: 4px 0; }
.row-meta, .count, .subtle { color: var(--muted); font-size: .82rem; }
.row-meta { display: block; overflow-wrap: anywhere; }
.labels { display: flex; gap: 4px; flex-wrap: wrap; }
.label {
  padding: 3px 7px; border-radius: 4px; font-size: .68rem; font-weight: 700; letter-spacing: .01em;
  background: #eee1cf; color: #634628; white-space: nowrap;
}
.label.secret { background: #eee0ec; color: var(--plum); }
.label.new { background: #eadfce; color: #724625; }
.label.visited { background: #e5eadc; color: #485136; }
.label.verify { background: #f5eddf; color: #735735; }
.label.closed { background: #f0dedb; color: #8d342a; }
.row-actions { display: grid; justify-items: end; gap: 7px; }
.row-actions .icon-button { height: 34px; min-height: 34px; width: 34px; background: transparent; }
.row-actions .icon-button[aria-pressed="true"] { background: var(--buff); }
.rating { color: var(--plum); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.yandex-rating { color: #963627; }
.yandex-reviews { display: block; width: 100%; min-height: 500px; border: 1px solid var(--line); border-radius: 9px; }
.menu-preview { margin: 14px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; }
.menu-preview h3, .menu-preview p { margin: 0; }
.menu-preview ul { list-style: none; padding: 0; margin: 7px 0; }
.menu-preview li { display: flex; gap: 10px; justify-content: space-between; padding: 4px 0; }
.menu-preview li span:nth-child(2) { flex-shrink: 0; }
.rating-details { margin: 5px 0 8px; }
.rating-details summary { cursor: pointer; color: var(--plum); }
.map-shell { position: relative; overflow: hidden; border: 1px solid var(--line); background: #ebe4d7; border-radius: 12px; min-width: 0; }
#map-canvas { height: 555px; z-index: 0; font-family: var(--sans); }
#map-canvas:focus-visible { outline-offset: -3px; }
.leaflet-tile-pane { filter: saturate(.56) sepia(.16); }
.yandex-map .leaflet-tile-pane { filter: none; }
.yandex-logo { position: absolute; z-index: 1; bottom: 0; left: 0; display: none; }
.yandex-logo img { display: block; width: 76px; height: auto; }
.yandex-map .yandex-logo { display: block; }
.yandex-map .map-label { display: none; }
.map-pin {
  border: 2px solid var(--paper); border-radius: 50%; color: var(--paper); box-shadow: 0 2px 5px #2d1a2b50;
  background: var(--plum); display: grid; place-items: center; font-size: 14px; line-height: 1; font-weight: 700;
}
.map-pin.is-secret { background: #32162f; color: var(--buff); }
.map-pin.is-visited { background: #596248; }
.map-label {
  position: absolute; top: 12px; right: 12px; z-index: 1; padding: 7px 11px; color: var(--plum);
  border: 1px solid var(--line); border-radius: 6px; background: var(--paper); font-size: .76rem;
  font-weight: 600; pointer-events: none;
}
.leaflet-popup-content { font: 14px/1.4 var(--sans); }
.leaflet-popup-content .button { margin-top: 7px; }
.empty { padding: 25px; color: var(--muted); }
.empty p:last-child { margin-bottom: 0; }
.loading { padding: 55px 0; }
.loading h1 { font: 700 64px/1 var(--serif); margin: 0 0 12px; color: var(--plum); }
.site-footer {
  border-top: 1px solid var(--line); min-height: 65px; padding: 17px 44px; display: flex; flex-wrap: wrap;
  gap: 13px 24px; justify-content: center; align-items: center; color: var(--muted); font-size: .82rem;
}
.site-footer a:hover, .text-link:hover { text-decoration: underline; }
.page-head {
  margin: 10px 0 25px; display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.page-head p { margin: 8px 0 0; color: var(--muted); max-width: 620px; }
.panel {
  padding: 21px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper);
  min-width: 0;
}
.panel h2 { font: 700 35px/.95 var(--serif); color: var(--plum); margin: 0 0 12px; }
.panel h3 { font: 700 25px/1 var(--serif); margin: 0 0 6px; }
.panel p:last-child { margin-bottom: 0; }
.columns { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; align-items: start; }
.stack { display: grid; gap: 12px; }
.line-item { padding: 11px 0; border-bottom: 1px solid var(--line); }
.line-item:last-child { padding-bottom: 0; border-bottom: 0; }
.line-item p { margin: 5px 0; overflow-wrap: anywhere; }
.line-item > .button { margin-top: 7px; }
.pill-count { margin-left: 4px; opacity: .9; font-size: .74rem; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 7px 0 0; }
.outings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(350px,100%),1fr)); gap: 12px; }
.outings-grid h2 { font-size: 31px; margin-bottom: 5px; }
.stop { display: grid; grid-template-columns: 1fr auto; gap: 7px; padding: 8px 0; align-items: start; border-bottom: 1px solid var(--line); }
.stop:last-child { border-bottom: 0; }
.stop button.text-link { text-align: left; }
.form { display: grid; gap: 13px; }
.form label, .form legend { color: var(--plum-deep); font-weight: 600; }
.form label { display: grid; gap: 6px; min-width: 0; }
.form .inline-label { display: flex; align-items: center; gap: 6px; }
.form input, .form select, .form textarea { min-width: 0; width: 100%; }
.form input:is([type=checkbox],[type=radio]) { width: auto; accent-color: var(--plum); }
.form fieldset { min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 8px; margin: 0; }
.form .hint { font-size: .8rem; font-weight: 400; color: var(--muted); }
.form-error { margin: 0; color: #9e3629; font-size: .86rem; }
.form-error:empty { display: none; }
.stop-picker { display: grid; gap: 5px; max-height: 210px; overflow: auto; }
.text-link { color: var(--plum); padding: 0; border: 0; background: transparent; font-weight: 650; }
.agent-intro { padding: 22px; border-radius: 12px; color: var(--cream); background: var(--plum); }
.agent-intro label { color: var(--cream); }
.agent-intro textarea { min-height: 91px; }
.agent-intro .button { background: var(--buff); border-color: var(--buff); color: var(--plum-deep); justify-self: start; }
.agent-intro .form-error { color: #ffd9cb; }
.agent-result {
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.agent-result:last-child { border-bottom: 0; }
.agent-result p { margin: 4px 0; }
.group-stat { font: 700 42px/1 var(--serif); color: var(--plum); }
dialog {
  width: min(700px, calc(100% - 28px)); max-height: calc(100% - 28px); color: var(--ink);
  border: 1px solid var(--line); padding: 0; border-radius: 14px; background: var(--paper);
}
dialog::backdrop { background: #201120a8; }
.dialog-shell { position: relative; padding: 25px; }
.dialog-close { position: absolute; right: 13px; top: 13px; z-index: 1; font-size: 1.5rem; }
.dialog-title { padding-right: 34px; color: var(--plum); font: 700 43px/.9 var(--serif); margin: 0 0 9px; }
.detail-photo {
  display: block; width: 100%; height: min(32vh, 250px); margin: 13px 0; object-fit: cover; border-radius: 9px;
}
.detail-list { display: grid; grid-template-columns: minmax(112px, .4fr) minmax(0,1fr); margin: 14px 0; gap: 7px 12px; }
.detail-list dt { color: var(--muted); font-size: .88rem; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
.entry { background: #f0e5ef; color: var(--plum-deep); border-radius: 8px; padding: 13px; margin: 14px 0; }
.entry p { margin: 4px 0 0; }
.score-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 9px; }
.score-row .score-options { display: flex; gap: 4px; }
.score-options label { display: block; position: relative; }
.score-options label span { display: grid; place-items: center; border-radius: 5px; width: 34px; height: 35px; border: 1px solid var(--line); cursor: pointer; }
.score-options input { position: absolute; opacity: 0; }
.score-options input:checked + span { background: var(--plum); color: var(--cream); border-color: var(--plum); }
.score-options input:focus-visible + span { outline: 2px solid var(--rust); outline-offset: 2px; }
#toast {
  position: fixed; z-index: 3; right: 16px; bottom: 16px; max-width: min(390px, calc(100vw - 32px));
  background: var(--plum-deep); color: var(--cream); padding: 11px 15px; border-radius: 7px; box-shadow: 0 3px 16px #29122a35;
}
#toast:empty { display: none; }
.only-mobile { display: none; }
@media (max-width: 950px) {
  .header-inner, .wrap { padding-inline: 25px; }
  .explorer { grid-template-columns: minmax(275px,.86fr) minmax(0,1fr); gap: 12px; }
  .bar-open { grid-template-columns: 66px minmax(0,1fr); gap: 9px; }
  .thumb { min-height: 71px; }
  .row-name { font-size: 24px; }
  .hero-body { padding-left: 34px; }
}
@media (max-width: 670px) {
  .header-inner { padding: 0 13px; grid-template-columns: 1fr auto; grid-template-rows: 55px 38px; gap: 0; }
  .brand { font-size: 27px; }
  .brand-icon { width: 30px; height: 30px; font-size: 14px; }
  .profile { grid-area: 1/2; }
  .tabs { grid-area: 2/1/3/3; height: 38px; gap: 27px; }
  .tabs a { font-size: .88rem; }
  .wrap { padding: 13px 12px 30px; }
  .hero { min-height: 265px; border-radius: 11px; }
  .hero-body { padding: 25px 19px; }
  .hero h1 { font-size: clamp(55px, 11.5vw, 76px); }
  .hero::before {
    background-image: linear-gradient(90deg, #241226f5, #2b142bb5 63%, #1b0d1e65),
      url('https://images.unsplash.com/photo-1739799120521-c5f44a9335a3?auto=format&fit=crop&w=780&q=80');
  }
  .atlas { margin-top: 23px; }
  .section-head { gap: 8px; align-items: start; margin-bottom: 12px; }
  .section-head h2 { font-size: 40px; }
  .collection-list { gap: 5px; }
  .chip { font-size: .78rem; padding-inline: 9px; min-height: 34px; }
  .filter-layout { gap: 6px; }
  .filter-layout .search { flex-basis: 100%; }
  .filter-layout select { max-width: 48%; font-size: .8rem; }
  .explorer, .columns { grid-template-columns: 1fr; }
  .explorer[data-view="list"] .map-shell, .explorer[data-view="map"] .bar-list { display: none; }
  #map-canvas { height: max(300px, 56vh); }
  .bar-list { max-height: none; }
  .bar-open { grid-template-columns: 77px minmax(0,1fr); }
  .only-mobile { display: inline-flex; }
  .panel, .dialog-shell { padding: 17px; }
  .dialog-title { font-size: 37px; }
  .detail-list { grid-template-columns: minmax(95px,.5fr) minmax(0,1fr); font-size: .92rem; }
  .site-footer { padding-inline: 16px; gap: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
