/* Лендинг «Алексей Ракша в Ереване». Каркас взят с лендинга Парфёнова.
   Палитра снята с афиши: чёрный фон, оранжевый акцент. Тёмная тема единственная:
   афиша чёрная по краям, на тёмной странице она продолжается без шва. */

/* Montserrat и Playfair Display — свободная лицензия OFL, файлы с fontsource.
   Playfair — временная замена серифу с афиши, пока дизайнер не назовёт точный шрифт. */
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../assets/fonts/playfair-display-cyrillic-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../assets/fonts/playfair-display-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #000000;
  --paper: #141312;
  --ink: #F2F0ED;
  --ink-soft: #CFCAC3;
  --muted: #9C968E;
  --line: #2C2926;
  --accent: #D56C14;        /* оранжевый с афиши, 5,9:1 на чёрном */
  --accent-bright: #F08A2E;

  --display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --text: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --gutter: 20px;
  --wide: 1200px;
  --measure: 40rem;

  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-bright); }

h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.75rem, 6vw, 2.375rem);
  line-height: 1.12;
  margin: 0 0 18px;
  color: var(--accent);
}

strong { font-weight: 700; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Афиша --- */

.hero__poster {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
}

/* --- Билеты --- */

.tickets {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 28px var(--gutter) 0;
}

.tickets--bottom { padding-top: 8px; padding-bottom: 8px; }

.tickets__title {
  font-size: 1.75rem;
  margin: 0 0 16px;
  text-align: center;
}

.tickets__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.ticket {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 16px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

/* Касса пока одна — держим карточку по центру, а не растягиваем на всю сетку. */
.ticket:only-child {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 600px;
  justify-self: center;
}

.ticket:hover,
.ticket:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(213, 108, 20, .18);
}

.ticket:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Лого касс нарисованы под светлый фон, поэтому лежат на белой плашке. */
.ticket__logo {
  flex: 0 0 auto;
  width: 92px;
  height: 52px;
  border-radius: 4px;
  background: #fff no-repeat center / 76px auto;
}

.ticket__logo--tkt { background-image: url("../assets/logo/tkt.svg"); }
.ticket__logo--potalonu { background-image: url("../assets/logo/potalonu.svg"); }

.ticket__text { display: block; min-width: 0; }

.ticket__label {
  display: block;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--accent-bright);
}

.ticket__note {
  display: block;
  margin-top: 2px;
  font-size: .875rem;
  color: var(--muted);
}

.pays {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.pay {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: .75rem;
  line-height: 1.35;
  color: var(--ink-soft);
  white-space: nowrap;
}

.pay--tg::before {
  content: "";
  width: 13px;
  height: 13px;
  margin-right: 5px;
  background: url("../assets/logo/telegram.svg") no-repeat center / contain;
}

.facts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: .9375rem;
  color: var(--ink-soft);
  text-align: center;
}

/* --- Описание --- */

.about {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 40px var(--gutter) 8px;
}

.lead {
  max-width: var(--measure);
  margin: 0 0 40px;
  font-size: 1.1875rem;
  line-height: 1.6;
}

.block {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.block__text > p {
  max-width: var(--measure);
  margin: 0 0 1.1em;
}

.block__text > p:last-child { margin-bottom: 0; }

/* --- Вопросы и ответы --- */

.faq {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 8px var(--gutter) 32px;
}

.faq__title {
  font-size: 1.75rem;
  margin: 0 0 16px;
  text-align: center;
}

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

.faq__item summary {
  position: relative;
  padding: 16px 32px 16px 0;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
}

.faq__item[open] summary::after { content: "–"; }

.faq__item p {
  margin: 0 0 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* --- Подвал --- */

.footer {
  margin-top: 32px;
  padding: 36px var(--gutter) 48px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer__logo {
  width: 120px;
  margin: 0 auto 10px;
}

.footer__org {
  margin: 0;
  font-size: .875rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__org a { color: inherit; }

.footer__tg {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  color: var(--accent-bright);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.footer__links {
  margin: 12px 0 4px;
  font-size: .9rem;
}

.footer__links a,
.footer__alt { color: var(--muted); }

.footer__links a:hover { color: var(--ink); }

.footer__alt {
  margin: 4px 0 0;
  font-size: .85rem;
}

/* --- Служебные страницы: политика, условия, 404 --- */

.doc { max-width: 720px; margin: 0 auto; padding: 40px 20px 64px; line-height: 1.6; }
.doc h1 { font-family: var(--display); font-weight: 400; font-size: 1.9rem; margin: 0 0 8px; color: var(--accent); }
.doc h2 { font-size: 1.25rem; margin: 28px 0 10px; color: var(--ink); }
.doc p, .doc li { margin: 0 0 12px; }
.doc ul { padding-left: 22px; }
.doc__date { color: var(--muted); font-size: .95rem; }
.doc__back { display: inline-block; margin-top: 28px; font-weight: 600; text-decoration: none; }

.nf { max-width: 640px; margin: 0 auto; padding: 64px 20px; text-align: center; }
.nf__code { font-family: var(--display); font-size: 4rem; line-height: 1; color: var(--accent); margin: 0 0 12px; }
.nf__title { font-family: var(--display); font-weight: 400; font-size: 1.6rem; margin: 0 0 12px; }
.nf__text { margin: 0 0 28px; line-height: 1.5; }
.nf__btn {
  display: inline-block;
  padding: 16px 28px;
  border-radius: 6px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  text-decoration: none;
}
.nf__btn:hover { background: var(--accent-bright); }

/* --- Планшет и шире --- */

@media (min-width: 760px) {
  :root { --gutter: 32px; }

  body { font-size: 18px; }

  /* Место под широкую афишу держим и в браузерах, которые не читают размеры у <source>. */
  .hero__poster { aspect-ratio: 1200 / 621; }

  .tickets { padding-top: 36px; }

  .tickets__grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .ticket { min-height: 104px; padding: 20px 24px; gap: 18px; }
  .ticket__logo { width: 108px; height: 60px; background-size: 88px auto; }
  .ticket__label { font-size: 1.125rem; }

  .pays { gap: 6px; margin-top: 10px; }
  .pay { font-size: .8125rem; padding: 3px 9px; }

  .facts {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 0;
    margin-top: 26px;
  }

  .facts li + li::before {
    content: "·";
    margin: 0 10px;
    color: var(--muted);
  }

  /* Картинок сбоку, как у Парфёнова, нет — текст держим колонкой по центру. */
  .about { padding-top: 56px; max-width: calc(var(--measure) + 2 * var(--gutter)); }

  .lead {
    font-size: 1.375rem;
    line-height: 1.55;
    margin-bottom: 52px;
  }

  .block { padding: 44px 0; }
}

@media (min-width: 1100px) {
  .tickets__grid { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  /* Касса пока одна — держим карточку по центру, а не растягиваем на всю сетку. */
.ticket:only-child {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 600px;
  justify-self: center;
}

.ticket:hover, .ticket:focus-visible { transform: none; }
}
