/* TICKET_ORIGINAL_SELECTORS_V2 */

  :root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, system-ui, sans-serif;
  }

  .std-section,
  .std-section * {
    font-family: var(--font-sans) !important;
    color: #111;
  }

  .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 16px;
  }

  .cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin-bottom: 30px;
  }

  .card {
    flex: 0 1 332px;
    max-width: calc(100% - 20px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    padding: 14px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
    margin: 0;
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
  }

  .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .08);
  }

  .media {
    position: relative;
    margin-bottom: 12px;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 220px;
    background-size: cover;
    background-position: center;
    isolation: isolate;
    will-change: transform;
  }

  .media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: inherit;
    background-position: inherit;
    transition: transform .5s ease;
    z-index: 0;
    pointer-events: none;
  }

  .card:hover .media::before {
    transform: scale(1.05);
  }

  .media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .38);
    opacity: 0;
    transition: opacity .18s ease;
    z-index: 1;
    pointer-events: none;
  }

  .btn-ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 40px;
    padding: 0 18px;
    border: 2px solid currentColor;
    border-radius: var(--border-radius);
    background: transparent;
    color: currentColor;
    font: 500 15px/1 var(--font-sans);
    letter-spacing: .01em;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .28s ease, background .22s ease, color .22s ease;
  }

  .btn-ghost--full {
    width: 100%;
  }

  .btn-ghost--dark {
    color: #111;
  }

  .btn-ghost--dark:hover {
    background: rgba(0, 0, 0, .06);
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12), 0 0 0 2px rgba(0, 0, 0, .09);
  }

  .btn-ghost--dark:active {
    transform: scale(.95);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .12);
  }

  .btn-ghost--dark::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -70%;
    width: 240%;
    height: 140%;
    background: linear-gradient(
      115deg,
      transparent 0%,
      rgba(0, 0, 0, .18) 45%,
      rgba(0, 0, 0, .35) 50%,
      rgba(0, 0, 0, .18) 55%,
      transparent 100%
    );
    transform: translateX(-10%);
    opacity: 0;
    pointer-events: none;
    border-radius: inherit;
    transition: transform .8s ease, opacity .55s ease-in-out;
  }

  .btn-ghost--dark:hover::before {
    transform: translateX(110%);
    opacity: 1;
    transition: transform .8s ease, opacity .25s ease-in-out;
  }

  .btn-ghost::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    pointer-events: none;
    box-shadow: inset 0 0 0 0 rgba(0, 0, 0, 0);
    transition: box-shadow .28s ease;
  }

  .btn-ghost--dark:hover::after {
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .12);
  }

  .about-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(.98);
    opacity: 0;
    transition: opacity .18s ease, transform .18s ease, box-shadow .4s ease-in-out, background .25s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 22px;
    font: 600 13px/1 var(--font-sans);
    color: #fff;
    background: transparent;
    border: 2px solid currentColor;
    border-radius: var(--border-radius);
    cursor: pointer;
    z-index: 2;
    letter-spacing: .01em;
    overflow: hidden;
  }

  .std-section .about-btn {
    color: #fff;
  }

  .about-btn:hover {
    background: rgba(255, 255, 255, .15);
    transform: translate(-50%, -50%) scale(1.01);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .30), 0 0 0 2px rgba(255, 255, 255, .25);
  }

  .about-btn:active {
    transform: translate(-50%, -50%) scale(.985);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  }

  .about-btn:focus-visible,
  .modal-close:focus-visible,
  .btn-ghost:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
    border-radius: var(--border-radius);
  }

  .media[data-overlay="1"].show-overlay::after,
  .media[data-overlay="1"]:hover::after,
  .media[data-overlay="1"]:focus-within::after {
    opacity: 1;
  }

  .media[data-overlay="1"].show-overlay .about-btn,
  .media[data-overlay="1"]:hover .about-btn,
  .media[data-overlay="1"]:focus-within .about-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  .corner-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    border-radius: var(--border-radius);
    background: #00A163;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    z-index: 3;
    white-space: nowrap;
    max-width: calc(100% - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .std-section .corner-badge {
    color: #fff;
  }

  .meta {
    text-align: center;
    margin-bottom: 9px;
  }

  .title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
  }

  .addr {
    font-size: 14px;
    font-weight: 400;
    color: #444;
  }

  /* Заголовки блоков */

  .std-section .ticket-section-title {
    margin: 10px 0 20px;
    text-align: left;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    line-height: 1.2;
  }

  /* Экскурсии */

  .excursions-section {
    scroll-margin-top: 160px;
  }

  .excursions-section .cards-row {
    align-items: stretch;
  }

  .excursion-card {
    padding: 14px;
    justify-content: flex-start;
  }

  .excursion-card .media {
    flex-shrink: 0;
  }

  .excursion-card .meta {
    margin-bottom: 24px;
    padding: 8px 4px 0;
  }

  .excursion-card .title {
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 1.4;
  }

  .excursion-card .excursion-venue {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.5;
  }

  .excursion-card .addr {
    display: block;
    line-height: 1.5;
  }

  .excursion-card .excursion-capacity {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
  }

  .excursion-card .js-buy {
    margin-top: auto;
  }

  /* Модалка «О музее» */

  .modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 9990;
    transition: opacity .25s ease;
  }

  .modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  .modal {
    width: min(560px, 92vw);
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    padding: 20px;
    transform: translateY(20px) scale(.97);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
    max-height: 90vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-backdrop.active .modal {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .modal-title {
    font-size: 16px;
    font-weight: 600;
  }

  .modal-content {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #333;
    margin-top: 8px;
    text-indent: 1.25em;
  }

  .modal-close {
    background: transparent;
    border: none;
    font: 600 15px var(--font-sans);
    color: #000;
    cursor: pointer;
  }

  .modal-content > div:first-child {
    text-indent: 0;
  }

  .modal-content strong {
    font-weight: 600;
  }

  /* Модалка покупки билетов и экскурсий */

  .tickets-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 9990;
    transition: opacity .25s ease;
  }

  .tickets-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  .modal-backdrop[hidden],
  .tickets-backdrop[hidden] {
    display: none;
  }

  .tickets-modal {
    width: min(920px, 96vw);
    height: min(85vh, 860px);
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(.97);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
  }

  .tickets-backdrop.active .tickets-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  .tickets-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
  }

  .tickets-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
  }

  .tickets-bar .modal-close {
    flex-shrink: 0;
  }

  .tickets-body {
    flex: 1;
    min-height: 0;
  }

  .tickets-frame {
    width: 100%;
    height: 100%;
  }

  @media (max-width: 600px) {
    .std-section .ticket-section-title {
      margin-top: 0;
    }

    .tickets-bar {
      padding: 12px;
    }

    .tickets-title {
      font-size: 14px;
    }
  }

/* The existing booking form and documents previously inherited this sizing. */
.ticket-sales { --ts-radius: var(--border-radius, 8px); }
.ticket-sales .ticket-booking,
.ticket-sales .ticket-booking *,
.ticket-sales .ticket-booking *::before,
.ticket-sales .ticket-booking *::after,
.ticket-sales .ticket-sales__documents,
.ticket-sales .ticket-sales__documents *,
.ticket-sales .ticket-sales__documents *::before,
.ticket-sales .ticket-sales__documents *::after { box-sizing: border-box; }
.ticket-sales .ticket-sales__message { padding: 16px; }
.ticket-sales .ticket-sales__widget iframe { display: block; width: 100%; height: 100%; border: 0; }
.ticket-sales .ticket-sales__button:disabled { cursor: default; opacity: .5; }
.ticket-sales .ticket-sales__documents > .ticket-sales__heading { margin: 0 0 20px; font-size: clamp(24px, 3vw, 32px); font-weight: 600; line-height: 1.2; color: #111; }
.ticket-sales .heading-footer { padding-bottom: 12px; border-bottom: 1px solid #4a4a4a; margin-top: 0; }

/* TICKET_DOCUMENTS_V1 */
.ticket-sales .ticket-sales__documents { margin: 40px 0 10px; }
.ticket-sales .ticket-sales__document-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ticket-sales .ticket-sales__document { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 10px 20px; border: 1px solid #ddd; border-radius: var(--ts-radius, 20px); background: #fff; color: #111; text-decoration: none; transition: border-color .18s ease, background .18s ease; }
.ticket-sales .ticket-sales__document-icon { flex: 0 0 28px; display: flex; }
.ticket-sales .ticket-sales__document-info { flex: 1; min-width: 0; }
.ticket-sales .ticket-sales__document-title { display: block; font-size: 16px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.ticket-sales .ticket-sales__document-format { display: block; margin-top: 5px; font-size: 13px; line-height: 1.4; color: #666; }
.ticket-sales .ticket-sales__document-arrow { flex: 0 0 auto; font-size: 24px; }
@media (hover: hover) and (pointer: fine) { .ticket-sales .ticket-sales__document:hover { border-color: #111; background: #fafafa; } }
@media (max-width: 600px) { .ticket-sales .ticket-sales__document-list { grid-template-columns: minmax(0, 1fr); } .ticket-sales .ticket-sales__document { padding: 16px; } }
