/* ============================================================
   СоЗдание — мастер-шоу Ксении Сыч
   Постерная эстетика: акцидентный жёлтый [k] + чёрный,
   крупная типографика, жёсткие тени, рукописные пометки.
   ============================================================ */

:root {
  --yellow: #feff0e;
  --yellow-deep: #f0e900;
  --black: #111110;
  --ink: #1c1b18;
  --ink-soft: #4c4a42;
  --paper: #f7f5ec;
  --white: #fffef6;
  --border: 3px solid var(--black);
  --shadow-hard: 8px 8px 0 var(--black);
  --shadow-soft: 5px 5px 0 rgba(17, 17, 16, .85);
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Golos Text", system-ui, sans-serif;
  --font-hand: "Caveat", cursive;
  --topbar-h: 64px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

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

h1, h2, h3 { margin: 0; line-height: 1.15; }

p { margin: 0 0 1em; }

a { color: inherit; }

section { scroll-margin-top: calc(var(--topbar-h) + 20px); }

.container {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--black);
  color: var(--yellow);
  padding: 10px 18px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px dashed var(--black);
  outline-offset: 3px;
}
.section-dark :focus-visible,
.topbar :focus-visible,
.footer :focus-visible {
  outline-color: var(--yellow);
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  text-align: center;
  padding: 14px 26px;
  border: var(--border);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn-big { padding: 18px 32px; font-size: 16px; }
.btn-small { padding: 9px 18px; font-size: 13px; }

.btn-black {
  background: var(--black);
  color: var(--yellow);
  box-shadow: var(--shadow-hard);
}
.btn-black:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--black);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
  box-shadow: 6px 6px 0 rgba(254, 255, 14, .28);
}
.btn-yellow:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(254, 255, 14, .28);
}

.btn-ghost {
  background: transparent;
  color: var(--black);
}
.btn-ghost:hover { background: var(--black); color: var(--yellow); }

.btn-ghost-dark {
  background: transparent;
  color: var(--black);
  box-shadow: var(--shadow-soft);
}
.btn-ghost-dark:hover {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 rgba(17, 17, 16, .85);
}

/* ---------- Шапка ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--topbar-h);
  padding-inline: clamp(16px, 3vw, 36px);
  background: var(--black);
  color: var(--white);
  border-bottom: 3px solid var(--yellow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .06em;
}

.brand-mark {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  background: var(--yellow);
  color: var(--black);
  padding: 4px 9px 7px;
  transform: rotate(-4deg);
}

.nav {
  display: flex;
  gap: clamp(14px, 2.4vw, 30px);
  margin-inline: auto;
}

.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--white);
  padding-block: 4px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--yellow); border-bottom-color: var(--yellow); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-left: auto;
  background: none;
  border: 2px solid var(--yellow);
  cursor: pointer;
}
.burger span {
  display: block;
  height: 3px;
  background: var(--yellow);
  transition: transform .2s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Хиро ---------- */

.hero {
  position: relative;
  background: var(--yellow);
  color: var(--black);
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(17, 17, 16, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 16, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 40%, transparent 100%);
}

.hero-inner {
  position: relative;
  max-width: 1160px;
  margin-inline: auto;
  padding: clamp(56px, 10vh, 120px) clamp(20px, 4vw, 48px) clamp(48px, 8vh, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "overline overline"
    "title    title"
    "body     figure";
  column-gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.hero-overline { grid-area: overline; }
.hero-title { grid-area: title; }
.hero-body { grid-area: body; }

.hero-figure {
  grid-area: figure;
  margin: 0;
  width: clamp(190px, 19vw, 250px);
  transform: rotate(3deg);
  justify-self: end;
  align-self: start;
  margin-top: 8px;
}

.hero-figure img {
  border: var(--border);
  box-shadow: var(--shadow-hard);
  background: var(--paper);
}

.hero-figure figcaption {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.1;
  margin-top: 12px;
  margin-left: 48px;
  transform: rotate(-3deg);
}

.hero-figure figcaption::before {
  content: "↖ ";
}

.hero-overline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(13px, 1.6vw, 17px);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 9.5vw, 128px);
  line-height: .95;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin-bottom: 28px;
  max-width: 12ch;
}

.t-outline {
  color: transparent;
  -webkit-text-stroke: 3px var(--black);
  paint-order: stroke;
}

.t-solid { color: var(--black); }

.hero-note {
  position: absolute;
  top: -.55em;
  right: max(0px, calc(100% - 9.5ch));
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 34px);
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  transform: rotate(-6deg);
  white-space: nowrap;
}

.hero-sub {
  max-width: 560px;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 500;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-chips li {
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  background: var(--paper);
  border: 2px solid var(--black);
  border-radius: 999px;
}

/* ---------- Бегущая строка ---------- */

.marquee {
  position: relative;
  background: var(--black);
  color: var(--yellow);
  overflow: hidden;
  padding-block: 12px;
  border-top: var(--border);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Общее для секций ---------- */

section { padding-block: clamp(64px, 10vw, 120px); }
.hero { padding-block: 0; }

.section-dark {
  background: var(--black);
  color: var(--paper);
}

.section-overline {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 26px;
  color: var(--ink-soft);
  margin-bottom: 6px;
  transform: rotate(-1.5deg);
  display: inline-block;
}
.section-dark .section-overline { color: var(--yellow); }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4.6vw, 52px);
  text-transform: uppercase;
  margin-bottom: 24px;
  max-width: 20ch;
}

.section-lead {
  max-width: 640px;
  font-size: clamp(17px, 1.9vw, 20px);
  margin-bottom: 44px;
}

/* ---------- О Ксении ---------- */

.about-layout {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.about-photo {
  margin: 0;
  transform: rotate(-2deg);
  border: 4px solid var(--paper);
  box-shadow: 12px 12px 0 var(--yellow);
  position: sticky;
  top: calc(var(--topbar-h) + 24px);
  transition: transform .2s ease, box-shadow .2s ease;
}

.about-photo:hover {
  transform: rotate(0deg);
  box-shadow: 16px 16px 0 var(--yellow);
}

.about-photo-link {
  display: block;
  position: relative;
}

.about-photo-play {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: transparent;
}

.about-photo-play::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 76px;
  height: 76px;
  background: var(--yellow);
  border: var(--border);
  border-radius: 50%;
  box-shadow: 4px 4px 0 rgba(17, 17, 16, .5);
  transition: transform .2s ease;
}

.about-photo-play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  translate: calc(-50% + 4px) -50%;
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent var(--black);
}

.about-photo-link:hover .about-photo-play::before { transform: scale(1.1); }

.about-photo figcaption {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 20px;
  color: var(--black);
  background: var(--paper);
  padding: 8px 14px;
}

.about-role {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(15px, 1.7vw, 18px);
  color: var(--yellow);
  margin-bottom: 20px;
}

.about-quote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 6px solid var(--yellow);
  background: rgba(254, 255, 14, .07);
  font-size: clamp(17px, 1.9vw, 20px);
  font-weight: 500;
}
.about-quote p { margin: 0; }

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  padding: 10px 18px;
  border: 2px solid var(--paper);
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.pill svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.pill:hover { background: var(--yellow); color: var(--black); border-color: var(--yellow); }

/* ---------- Программа ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.card {
  position: relative;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow-hard);
  padding: 28px 26px 22px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.card:hover {
  transform: translate(4px, 4px);
  box-shadow: 4px 4px 0 var(--black);
}

.card-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  display: inline-block;
  background: var(--black);
  color: var(--yellow);
  padding: 5px 12px;
  margin-bottom: 18px;
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  margin-bottom: 12px;
}

.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }

.card-accent { background: var(--yellow); }
.card-accent p { color: var(--ink); }

.program-outro {
  max-width: 720px;
  margin: 56px auto 0;
  text-align: center;
  font-size: clamp(18px, 2.2vw, 23px);
  font-weight: 500;
}
.program-outro strong { background: var(--yellow); padding: 2px 8px; }

.outro-final {
  display: block;
  width: fit-content;
  margin: 18px auto 0;
}

.hl-so { color: var(--yellow); }

/* ---------- Формат ---------- */

.format-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: 56px;
}

.fact { border-top: 3px solid var(--yellow); padding-top: 18px; }

.fact-big {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 1;
  color: var(--yellow);
  display: block;
  margin-bottom: 10px;
}

.fact p { margin: 0; color: rgba(247, 245, 236, .8); }

.gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--yellow) rgba(247, 245, 236, .15);
}

.gallery figure {
  margin: 0;
  flex: 0 0 auto;
  scroll-snap-align: start;
  border: 3px solid var(--paper);
}

.gallery img {
  height: clamp(240px, 36vw, 360px);
  width: auto;
}

.format-cheer {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--yellow);
  text-align: right;
  margin: 24px 0 0;
  transform: rotate(-2deg);
}

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

.price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 420px));
  justify-content: center;
  gap: clamp(24px, 4vw, 40px);
  margin-bottom: 40px;
}

.price-card {
  position: relative;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow-hard);
  padding: 36px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price-featured { background: var(--yellow); transform: rotate(1.2deg); }
.price-featured:hover { transform: rotate(0deg); }

.price-card h3 {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 30px;
}

.price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.1;
  margin: 0;
}

.price-desc { color: var(--ink-soft); margin: 0 0 20px; font-weight: 500; }

.price-card .btn { margin-top: auto; }

.badge {
  position: absolute;
  top: -16px;
  right: -12px;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 20px;
  background: var(--black);
  color: var(--yellow);
  padding: 6px 16px;
  transform: rotate(4deg);
}

.tickets-note {
  text-align: center;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 48px;
}

.waitlist {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: var(--border);
  background: var(--white);
  box-shadow: var(--shadow-hard);
  padding: 28px 32px;
  max-width: 860px;
  margin-inline: auto;
}

.waitlist p { margin: 0; max-width: 520px; }

/* ---------- FAQ ---------- */

.faq {
  background: var(--yellow);
  background-image:
    linear-gradient(rgba(17, 17, 16, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 16, .06) 1px, transparent 1px);
  background-size: 56px 56px;
}

.faq-list {
  max-width: 860px;
  display: grid;
  gap: 16px;
}

.faq details {
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow-soft);
  transition: box-shadow .15s ease, transform .15s ease;
}

.faq details[open] {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(17, 17, 16, .85);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(15px, 1.8vw, 18px);
  padding: 20px 24px;
}

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

.faq summary::after {
  content: "+";
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
  transition: rotate .2s ease;
}

.faq details[open] summary::after { rotate: 45deg; }

.faq details p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- Где ---------- */

.location-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.location-addr {
  font-style: normal;
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.5;
  margin-bottom: 28px;
  color: rgba(247, 245, 236, .85);
}

.location-art {
  position: relative;
  text-align: center;
  padding: 24px;
}

.location-pin {
  font-size: clamp(96px, 12vw, 160px);
  line-height: 1;
  color: var(--yellow);
  display: block;
}

.location-doodle {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 24px;
  color: var(--yellow);
  display: inline-block;
  transform: rotate(-4deg);
  margin-top: 12px;
}

/* ---------- Контакты ---------- */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
  margin-bottom: 48px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow-soft);
  padding: 24px 22px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.contact-card:hover {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 rgba(17, 17, 16, .85);
  background: var(--yellow);
}

.contact-icon svg { width: 28px; height: 28px; fill: var(--black); margin-bottom: 10px; }

.contact-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }

.contact-value { font-family: var(--font-display); font-weight: 600; font-size: 17px; }

.phones {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 28px;
  border-top: 3px solid var(--black);
  padding-top: 24px;
}

.phones p { margin: 0; font-weight: 600; }
.phones a { text-decoration: none; font-weight: 500; }
.phones a:hover { background: var(--yellow); }

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

.footer {
  background: var(--black);
  color: var(--paper);
  border-top: 4px solid var(--yellow);
  padding-block: 48px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.footer-inner p { margin: 0; max-width: 480px; flex: 1 1 280px; }

/* ---------- Появление при скролле ---------- */

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes rise-in {
      from { opacity: 0; transform: translateY(28px); }
    }
    .reveal {
      animation: rise-in .8s ease backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

/* ---------- Адаптив ---------- */

@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-photo {
    position: static;
    max-width: 380px;
    margin-inline: auto;
  }
  .location-layout { grid-template-columns: 1fr; }
  .location-art { display: none; }
  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-areas: "overline" "title" "body" "figure";
  }
  .hero-figure {
    justify-self: start;
    width: min(240px, 60vw);
    margin-top: 24px;
  }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    inset: var(--topbar-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--black);
    border-bottom: 3px solid var(--yellow);
    padding: 8px 0 16px;
    transform: translateY(-130%);
    transition: transform .25s ease;
    z-index: 40;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 24px; font-size: 17px; border-bottom: none; }
  .burger { display: flex; }
  .topbar-cta { margin-left: auto; }
  .topbar { gap: 12px; }
  .hero-note { display: none; }
  .waitlist { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .topbar-cta { display: none; }
  .brand-name { font-size: 13px; }
}
