:root {
  --ink: #141414;
  --muted: #5e5e5e;
  --line: #e7e7e7;
  --chip: #f3f3f3;
  --chip-line: #e4e4e4;
  --paper: #fff;
  --soft: #fafafa;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

.vitrine {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
}

.vitrine img { max-width: 100%; display: block; }

.vitrine a { color: inherit; }

.vitrine a.book,
.vitrine a.book:hover { color: #fff; }

.vitrine button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 50;
}

.skip:focus { top: 8px; }

.top {
  border-bottom: 1px solid var(--line);
}

.top-inner,
.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  flex-wrap: nowrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #c4a574;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.vitrine a.logo,
.vitrine a.logo:hover { color: #c4a574; }

.place-mark {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-img {
  height: 46px;
  width: auto;
  flex: 0 0 auto;
  display: block;
}

.logo-city { font-weight: 700; }

.top-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

main { padding: 28px 0 12px; }

.vitrine h1 {
  margin: 0 0 8px;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.lead {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
}

.cut-line {
  margin: 0 0 16px;
  max-width: 42rem;
  color: #222;
}

.strip {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  margin: 0 0 8px;
  padding: 8px 0 10px;
  border-bottom: 1px solid var(--line);
}

.strip-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.cut,
.filters {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.cut button,
.filters button,
.filters-toggle,
.menu-btn,
.menu-panel button,
.empty button {
  border: 1px solid transparent;
  background: var(--chip);
  border-radius: 12px;
  min-height: 40px;
  padding: 0 12px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.cut button span {
  font-weight: 600;
  opacity: 0.6;
  margin-left: 4px;
}

.cut button[aria-pressed="true"],
.filters button[aria-pressed="true"],
.menu-btn[aria-pressed="true"],
.menu-panel button[aria-pressed="true"],
.filters-toggle[aria-pressed="true"],
.filters-toggle[aria-expanded="true"] {
  background: var(--ink);
  color: #fff;
}

.cut button[aria-pressed="true"] span { opacity: 0.78; }

.vitrine .menu-btn,
.vitrine .filters-toggle {
  font-size: 14px;
  font-weight: 700;
}

.menu-panel {
  position: absolute;
  top: calc(100% + 4px);
  z-index: 21;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(20, 20, 20, 0.08);
}

.menu-panel[hidden] { display: none !important; }

.menu-panel button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  line-height: 1;
}

.menu-panel button span { font-weight: 400; }

.menu-panel button strong { font-weight: 800; }

.filters-toggle { display: none; }

#filter-body { display: contents; }

.filter-slot { display: contents; }

#menu-places,
#menu-want {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  max-height: min(320px, 60vh);
  overflow: auto;
}

#menu-places button,
#menu-want button { width: auto; }

#filter-body .menu-panel {
  position: static;
  top: auto;
  left: auto !important;
  width: 100% !important;
  margin: 0;
  padding: 4px 0 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#filter-body #menu-move,
#filter-body #menu-party,
#filter-body #menu-places,
#filter-body #menu-want {
  flex-direction: row;
  flex-wrap: wrap;
}

#filter-body #menu-move button,
#filter-body #menu-party button,
#filter-body #menu-places button,
#filter-body #menu-want button { width: auto; }

.count {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 16px;
}

.grid:not(.is-ready) .card:nth-child(n + 41) { display: none; }

.more-row {
  display: flex;
  justify-content: center;
  margin: 4px 0 8px;
}

.more-row[hidden] { display: none !important; }

.more-row button {
  border: 1px solid transparent;
  background: var(--chip);
  border-radius: 12px;
  min-height: 40px;
  padding: 0 16px;
  font-weight: 700;
  font-size: 14px;
}

.grid[hidden],
.empty[hidden],
.card[hidden] { display: none !important; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: none;
  overflow: hidden;
  background: #fff;
}

.card-link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  z-index: 0;
  color: inherit;
  text-decoration: none;
}

.card-link:hover h2,
.card-link:hover h3 { text-decoration: underline; text-underline-offset: 2px; }

.card-link:focus-visible { outline-offset: -3px; }

.card-photo {
  position: relative;
  display: block;
  border-radius: 0;
  overflow: hidden;
  background: var(--soft);
  aspect-ratio: 3 / 2;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  left: 10px;
  top: 10px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.samarkand .card h3 {
  font-weight: 500;
  line-height: 1.25;
}

.samarkand .card .rate {
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
  font-weight: 600;
}

.samarkand .card .rate .guide-photo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.samarkand .card .rate .guide-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  white-space: nowrap;
}

.samarkand .card .rate .star,
.samarkand .card .rate .rate-num { flex: 0 0 auto; }

.samarkand .card .rate-count { font-weight: 500; }

.samarkand .card .meta { font-weight: 400; }

.samarkand .card .see {
  font-weight: 500;
  line-height: 1.3;
}

.samarkand .card .card-body { gap: 4px; }

.samarkand .card .card-photo {
  aspect-ratio: 11 / 8;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.samarkand .card .price .ruble { color: #0f766e; }

.samarkand .card .marks {
  position: absolute;
  z-index: 1;
  left: 8px;
  bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: calc(100% - 16px);
}

.samarkand .card .mark {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  padding: 10px 12px 12px;
}

.vitrine h2,
.vitrine h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.vitrine h2 a,
.vitrine h3 a {
  text-decoration: none;
}

.vitrine h2 a:hover,
.vitrine h3 a:hover { text-decoration: underline; }

.meta,
.tickets {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.see {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.buy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.price {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.ad-mark {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.price .dollar,
.compare-price .dollar {
  color: var(--ink);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.price .ruble,
.compare-price .ruble {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.was {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.discount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 4px;
  border-radius: 5px;
  background: #ff3b30;
  color: #141414;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.book {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}

.book:hover { background: #2a2a2a; }

.empty {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 20px;
  background: var(--soft);
}

.empty p {
  margin: 0 0 12px;
  font-weight: 700;
}

.fine,
.foot {
  color: var(--muted);
  font-size: 13px;
}

.pay-note {
  margin: 18px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.fine { margin: 12px 0 0; max-width: 46rem; }

.foot {
  border-top: 1px solid var(--line);
  padding: 20px 0 36px;
  margin-top: 28px;
}

.foot p { margin: 0 0 8px; }

.foot a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.foot details { margin-top: 8px; }

.foot summary { cursor: pointer; font-weight: 700; color: var(--ink); }

.vitrine :focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.cmp {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 3px 8px 3px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.cmp input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.cmp-tick {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: #fff;
}

.cmp input:checked + .cmp-tick {
  background: var(--ink);
  box-shadow: inset 0 0 0 2px #fff;
}

.cmp input:focus-visible + .cmp-tick { outline: 2px solid var(--ink); outline-offset: 2px; }

.cmp:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }

.compare {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

.compare[hidden] { display: none !important; }

.compare-panel {
  position: absolute;
  inset: 0;
  z-index: 41;
  pointer-events: auto;
}

.compare-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 0;
  min-height: 0;
  background: rgba(20, 20, 20, 0.36);
  cursor: pointer;
}

.compare-sheet {
  position: absolute;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  width: min(640px, calc(100% - 24px));
  max-height: min(70vh, 720px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 10px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: none;
}

.compare-top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  margin: 0 -10px;
  padding: 6px 14px 6px;
  background: #fff;
}

.compare-heading {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.vitrine .compare-grip {
  align-self: center;
  width: 64px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  min-height: 0;
  padding: 9px 0;
  cursor: pointer;
}

.vitrine .compare-grip::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  margin: 0 auto;
  border-radius: 999px;
  background: #c8c8c8;
}

.vitrine .compare-grip:hover::before { background: var(--ink); }

.vitrine .compare-grip:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.compare-bar {
  position: fixed;
  z-index: 42;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  pointer-events: auto;
}

.vitrine .compare-fab {
  position: static;
  transform: none;
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
}

.vitrine .compare-clear {
  width: 44px;
  height: 44px;
  margin-left: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  min-height: 0;
  padding: 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.compare-fab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.compare-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 10px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}

.compare-name {
  margin: 0;
  padding-right: 28px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.compare-hours,
.compare-size {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.compare-see {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.compare-price {
  margin: 2px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
}

.compare-delta {
  margin: 4px 0 0;
  width: fit-content;
  max-width: 100%;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.compare-delta-value {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 10px;
  border: 1px solid #e7c7a8;
  border-radius: 16px;
  background: #fff6ee;
  color: #9a4b12;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.compare-more {
  align-self: flex-end;
  margin-top: 4px;
  border: 1px solid transparent;
  background: var(--chip);
  border-radius: 12px;
  min-height: 32px;
  padding: 6px 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.compare-more:hover { background: #e7e7e7; }

.compare-more:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.vitrine .compare-drop {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  min-height: 0;
  padding: 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.vitrine .compare-drop:hover { color: var(--ink); }

@media (min-width: 720px) {
  .grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 980px) {
  .grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (min-width: 1180px) {
  .grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

@media (max-width: 719px) {
  .top-inner,
  .wrap { width: min(1180px, calc(100% - 28px)); }
  main { padding-top: 14px; }
  .lead { font-size: 16px; }
  .cut-line { font-size: 15px; margin-bottom: 12px; }
  .card-photo { aspect-ratio: 16 / 9; }
  .samarkand .card .card-photo { aspect-ratio: 13 / 8; }
  .count { margin-bottom: 10px; }
  .strip-row { overflow: visible; }
  .filters-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  #filter-body { display: none; }
  #filter-body.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 22;
    max-height: min(70vh, 560px);
    overflow: auto;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(20, 20, 20, 0.08);
  }
  #filter-body.is-open .cut,
  #filter-body.is-open .filters { flex-wrap: wrap; }
  #filter-body.is-open .filters {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  #filter-body.is-open .filter-slot {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  #menu-places,
  #menu-want {
    left: 0;
    right: 0;
    width: auto;
    z-index: 24;
  }
}

.buy > .book {
  border: 0;
  width: 100%;
}

button.book:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

button.book:disabled:hover { background: var(--ink); }

.rate {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.rate .star {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  display: block;
  fill: #c4a574;
}

.rate-count {
  font-weight: 600;
  color: var(--muted);
}

.home-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vitrine .faq {
  margin: 28px 0 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 46rem;
}

.vitrine .faq h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.vitrine .faq h3 {
  margin: 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.vitrine .faq h3[role="button"] {
  position: relative;
  padding: 13px 28px 13px 0;
  cursor: pointer;
}

.vitrine .faq h3[role="button"]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.vitrine .faq h3[role="button"]::before,
.vitrine .faq h3[role="button"]::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  transform: translateY(-50%);
}

.vitrine .faq h3[role="button"]::after {
  transform: translateY(-50%) rotate(90deg);
}

.vitrine .faq h3[role="button"][aria-expanded="true"]::after {
  content: none;
}

.vitrine .faq p {
  margin: 0;
  padding: 0 28px 14px 0;
  color: #222;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}

.policy h2 {
  margin: 22px 0 8px;
  font-size: 18px;
}

.policy p { max-width: 40rem; }

.cookie-bar {
  position: fixed;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 12px;
  background: #fff;
  border-top: 2px solid #0f766e;
  box-shadow: 0 -2px 8px rgba(20, 20, 20, 0.04);
}

.cookie-bar[hidden] { display: none !important; }

.cookie-bar p {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.vitrine .cookie-bar a {
  color: #0f766e;
  font-weight: 700;
  text-underline-offset: 2px;
}

.vitrine .cookie-ok {
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  min-height: 26px;
  padding: 2px 10px;
  background: #0f766e;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.vitrine .cookie-ok:hover { background: #0d655e; }

body.has-cookie { padding-bottom: var(--cookie-h, 36px); }

body.has-cookie .compare-bar {
  bottom: calc(8px + var(--cookie-h, 36px));
}

body.has-cookie .compare-sheet {
  bottom: calc(64px + var(--cookie-h, 36px));
}

@media (min-width: 720px) {
  .cookie-bar p { white-space: nowrap; }
}
