/* Шоу-кейс билетов: карточки, разворот, строки и афиша */

:root {
  --tk-gold-text: linear-gradient(100deg, #7b3d0d 0%, #b1741c 52%, #d9a441 100%);
  --tk-cta: linear-gradient(96deg, #dda249 0%, #e2a052 36.7%, #f5cb8e 100%);
}

body.tickets-lab .labbar__nav a,
body.tickets-lab .labfoot a:focus-visible { border-radius: 0; }

.tk-wrap { padding-bottom: clamp(56px, 6.4vw, 96px); }

/* — заголовок, предупреждение, низ — */

.tk-head {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 3.55fr);
  gap: clamp(36px, 4.8vw, 92px);
  align-items: start;
  padding-top: clamp(48px, 6vw, 92px);
}

.tk-title {
  margin: 0;
  font-family: var(--heading);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1;
  letter-spacing: -.014em;
  color: var(--ink);
}

.tk-title__first { color: var(--violet); }

.tk-lead {
  margin: 4px 0 0;
  max-width: 40ch;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.tk-stage { margin-top: clamp(30px, 3.4vw, 44px); }

.tk-foot {
  max-width: 34ch;
  margin: clamp(36px, 4.2vw, 56px) 0 0;
  padding-top: clamp(22px, 2.6vw, 34px);
  border-top: 1px solid var(--hairline);
  font-family: var(--heading);
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.3;
  letter-spacing: -.008em;
  color: var(--ink);
}

.tk-foot a {
  color: var(--violet);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid rgba(91, 77, 174, .38);
  transition: color .2s ease, border-color .2s ease;
}

.tk-foot a:hover {
  color: var(--violet-deep, #45398f);
  border-color: currentColor;
}

.tk-foot a:focus-visible {
  outline: 1px solid var(--violet);
  outline-offset: 3px;
}

/* — общее для билета — */

.tk-name {
  margin: 0;
  font-family: var(--heading);
  font-weight: 400;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.06;
  letter-spacing: -.01em;
  color: var(--ink);
}

.tk-desc {
  margin: 10px 0 0;
  max-width: 34ch;
  min-height: 3em;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.tk-days {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 2px;
  min-height: 36px;
  margin: 18px 0 20px;
  padding: 3px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
}

.tk-days button {
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: var(--text);
  font-size: 12px;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.tk-days button[aria-pressed="true"] {
  background: var(--violet);
  color: var(--cream);
}

.tk-days button:focus-visible {
  outline: 1px solid var(--violet);
  outline-offset: 2px;
}

.tk-days--empty { visibility: hidden; }

.tk-price-row {
  display: flex;
  align-items: baseline;
  min-height: 1em;
  margin: 0;
  font-family: var(--heading);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--ink);
}

.tk-price {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.tk-price__cur {
  margin-left: .16em;
  font-family: var(--text);
  font-size: .42em;
  letter-spacing: 0;
  color: var(--ink-soft);
}

.tk-price--free { font-size: .78em; }

.tk-free-word {
  background-image: var(--tk-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.tk-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.tk-features-stack {
  display: grid;
  margin: 18px 0 0;
  border-top: 1px solid var(--hairline);
}

.tk-features {
  grid-area: 1 / 1;
  margin: 0;
  padding: 0;
  list-style: none;
  visibility: hidden;
}

.tk-features.is-active { visibility: visible; }

.tk-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}

.tk-features li:last-child { border-bottom: 0; }

.tk-cta {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  margin-top: auto;
  padding: 15px 20px 15px 24px;
  border: 1px solid rgba(23, 22, 19, .42);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color .22s ease, color .3s ease;
}

.tk-cta::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: var(--tk-cta);
  opacity: 0;
  transition: opacity .22s ease;
}

.tk-cta:hover {
  border-color: transparent;
  color: #223063;
}

.tk-cta:hover::before { opacity: 1; }

.tk-cta:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

.tk-cta__arrow { flex: 0 0 auto; font-size: 1em; line-height: 1; }

/* — 01 карточки — */

.tk-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 24px);
}

.tk-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(24px, 2.4vw, 32px);
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, .32);
}

.tk-card--main {
  background: rgba(255, 255, 255, .5);
  box-shadow: inset 0 2px 0 var(--violet);
}

.tk-card--free {
  background: linear-gradient(180deg, rgba(23, 22, 19, .045), rgba(23, 22, 19, .078));
}

.tk-card--gold {
  background: linear-gradient(158deg, #f1d7a4 0%, #f7e8c9 52%, #ecd39f 100%);
}

.tk-card .tk-price-row { font-size: clamp(38px, 4vw, 56px); }

.tk-card .tk-features-stack { margin-bottom: clamp(24px, 2.4vw, 32px); }

/* — 02 разворот — */

.tk-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(16px, 1.8vw, 24px);
  align-items: stretch;
}

.tk-feature {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(28px, 3vw, 38px);
  color: var(--cream);
  background:
    radial-gradient(56% 120% at 92% 0%, rgba(108, 90, 216, .40), rgba(108, 90, 216, 0) 62%),
    radial-gradient(50% 120% at 4% 100%, rgba(38, 154, 143, .34), rgba(38, 154, 143, 0) 64%),
    linear-gradient(96deg, #252b60 0%, #1d2c58 55%, #1d4257 100%);
}

.tk-feature .tk-name { color: var(--cream); }

.tk-feature .tk-desc { color: rgba(244, 227, 198, .72); }

.tk-feature .tk-days {
  border-color: rgba(244, 227, 198, .28);
  background: rgba(255, 255, 255, .08);
}

.tk-feature .tk-days button { color: rgba(244, 227, 198, .72); }

.tk-feature .tk-days button[aria-pressed="true"] {
  background: var(--cream);
  color: var(--violet-deep, #45398f);
}

.tk-feature .tk-days button:focus-visible { outline-color: var(--gold); }

.tk-feature .tk-price-row {
  color: var(--cream);
  font-size: clamp(44px, 4.6vw, 64px);
}

.tk-feature .tk-price__cur { color: rgba(244, 227, 198, .6); }

.tk-feature .tk-note { color: rgba(244, 227, 198, .62); }

.tk-feature .tk-features-stack { border-color: rgba(244, 227, 198, .18); }

.tk-feature .tk-features li {
  border-color: rgba(244, 227, 198, .18);
  color: var(--cream);
}

.tk-feature .tk-cta {
  border-color: rgba(244, 227, 198, .42);
  color: var(--cream);
}

.tk-feature .tk-cta:hover {
  border-color: transparent;
  color: #223063;
}

.tk-feature .tk-cta:focus-visible { outline-color: var(--gold); }

.tk-expo {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto auto;
  gap: clamp(20px, 2.4vw, 36px);
  align-items: center;
  margin-top: 0;
  margin-bottom: clamp(16px, 1.8vw, 24px);
  padding: clamp(20px, 2.4vw, 30px) clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--hairline);
  background: linear-gradient(90deg, rgba(23, 22, 19, .045), rgba(23, 22, 19, .068));
}

.tk-expo .tk-desc { margin-top: 8px; min-height: 0; }

.tk-expo__features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.tk-expo__features li {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-soft);
}

.tk-expo__features li + li::before {
  content: "·";
  margin-right: 6px;
}

.tk-expo__price {
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(34px, 3.2vw, 46px);
  line-height: .95;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.tk-expo .tk-cta {
  width: auto;
  min-width: 230px;
  margin-top: 0;
}

/* — 03 строки — */

.tk-rows { border-top: 1px solid var(--hairline); }

.tk-row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, .75fr) auto;
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  padding: clamp(22px, 2.6vw, 32px) 0;
  border-bottom: 1px solid var(--hairline);
}

.tk-row--free {
  background: linear-gradient(90deg, rgba(23, 22, 19, .038), rgba(23, 22, 19, .065));
}

.tk-row--gold {
  background: linear-gradient(90deg, rgba(241, 215, 164, .62), rgba(247, 232, 201, .38));
}

.tk-row--main {
  background: rgba(255, 255, 255, .42);
  box-shadow: inset 0 0 0 1px rgba(91, 77, 174, .32);
}

.tk-row .tk-name { font-size: clamp(22px, 2.2vw, 30px); }

.tk-row .tk-desc { margin-top: 8px; min-height: 0; }

.tk-row__features-stack {
  display: grid;
  margin: 12px 0 0;
}

.tk-row__features {
  grid-area: 1 / 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  min-height: 1.5em;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 0;
  visibility: hidden;
}

.tk-row__features.is-active { visibility: visible; }

.tk-row__features li {
  padding: 0;
  border: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-soft);
}

.tk-row__features li + li::before {
  content: "·";
  margin-right: 6px;
}

.tk-row__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.tk-row__controls .tk-days { margin: 0; }

.tk-row__price {
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(36px, 3.6vw, 50px);
  line-height: .95;
  letter-spacing: -.02em;
}

.tk-row__action { justify-self: end; }

.tk-row .tk-cta {
  width: auto;
  min-width: 200px;
}

/* — 04 акцент — */

.tk-accent {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 24px);
  align-items: stretch;
}

/* — адаптив — */

@media (max-width: 1100px) {
  .tk-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .tk-lead { justify-self: start; max-width: 46ch; }
}

@media (max-width: 1000px) {
  .tk-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .tk-card--free { grid-column: 1 / -1; }

  .tk-accent { grid-template-columns: minmax(0, 1fr); }

  .tk-split { grid-template-columns: minmax(0, 1fr); }

  .tk-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }

  .tk-row__controls {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 24px;
  }

  .tk-row--free .tk-note {
    flex-basis: 100%;
    margin-top: 0;
  }

  .tk-row__features { display: block; }

  .tk-row__features li {
    display: block;
    padding: 2px 0;
  }

  .tk-row__features li + li::before { content: none; }

  .tk-row__action { justify-self: stretch; }

  .tk-row .tk-cta {
    width: 100%;
    max-width: 420px;
  }
}

@media (max-width: 900px) {
  .tk-expo { grid-template-columns: minmax(0, 1fr); align-items: start; }

  .tk-expo__features { display: block; }

  .tk-expo__features li {
    display: block;
    padding: 2px 0;
  }

  .tk-expo__features li + li::before { content: none; }

  .tk-expo .tk-cta {
    width: 100%;
    max-width: 420px;
  }
}

@media (max-width: 700px) {
  .tk-cards { grid-template-columns: minmax(0, 1fr); }

  .tk-card--free { grid-column: auto; }

  .tk-card,
  .tk-feature,
  .tk-expo { padding: 22px; }

  .tk-name { font-size: 24px; }

  .tk-card .tk-price-row { font-size: clamp(38px, 11vw, 48px); }
}

@media (max-width: 360px) {
  .tk-card,
  .tk-feature,
  .tk-expo { padding: 18px; }

  .tk-name { font-size: 22px; }
}

@media (max-width: 720px) {
  body.tickets-lab .labbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    padding-block: 8px;
  }

  body.tickets-lab .labbar__nav {
    justify-self: stretch;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tk-cta,
  .tk-days button,
  .tk-foot a { transition: none; }
}
