@font-face {
  font-family: Ticky Sans;
  src: url(/NotoSans-Regular.ttf) format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Ticky Sans;
  src: url(/NotoSans-Bold.ttf) format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Ticky Serif;
  src: url(/NotoSerif-Bold.ttf) format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #f8f5ef;
  --surface: #fffdf8;
  --ink: #211b19;
  --muted: #675952;
  --wine: #5a1520;
  --dark-wine: #390a13;
  --pink: #f4ded9;
  --line: #ded2ca;
  --accent: #bd2c1f;
  color-scheme: light;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 Ticky Sans, system-ui, sans-serif; }
a { color: var(--wine); text-underline-offset: .25em; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1232px, calc(100% - 88px)); margin-inline: auto; }

.mast {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}
.mast nav { display: flex; gap: clamp(14px, 3vw, 38px); font-size: .92rem; font-weight: 700; }
.mast a { text-decoration: none; }
.mast nav a:hover { color: var(--accent); }
.mast > :last-child { justify-self: end; }
.wordmark { width: fit-content; display: block; }
.wordmark img { width: 106px; height: auto; }
.to-ticket { white-space: nowrap; }

.hero {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(32px, 4.3vw, 58px) 0 22px;
}
.hero-copy { padding-block: 6px; }
.eyebrow { display: block; margin: 0 0 12px; color: var(--wine); font-size: .73rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.signal { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: var(--accent); }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.04; color: var(--ink); }
h1 { font-size: clamp(3.35rem, 5.9vw, 5.6rem); letter-spacing: -.075em; }
h1 em { display: inline-block; color: var(--wine); font-family: Ticky Serif, Georgia, serif; font-style: normal; font-size: .97em; letter-spacing: -.068em; }
h2 { font-size: clamp(2.25rem, 5vw, 4rem); letter-spacing: -.077em; }
h3 { font-size: clamp(1.17rem, 2.5vw, 1.55rem); letter-spacing: -.045em; }
.hero-description { max-width: 25rem; margin: 22px 0 25px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.16rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; }

.button, .chips button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 48px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: linear-gradient(168deg, #742934, var(--wine) 65%, var(--dark-wine));
  box-shadow: inset 0 1px #ffffff27, 0 3px 0 var(--dark-wine), 0 6px 13px #390a1319;
  color: #fff9f3;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.button:hover, .chips button:hover { transform: translateY(-2px); }
.button:active, .chips button:active { transform: translateY(1px); }
.button:disabled, .chips button:disabled { transform: none; }
.button-icon, .action-arrow::after {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--dark-wine);
  font: 1rem/1 system-ui, sans-serif;
  transition: transform .2s ease;
}
.action-arrow::after { content: '→'; }
.button:hover .button-icon, .action-arrow:hover::after { transform: translateX(2px); }
.outline, .chips button[aria-pressed="false"] { background: var(--surface); border-color: var(--line); color: var(--wine); box-shadow: 0 2px 4px #390a1309; }
.outline:hover, .chips button[aria-pressed="false"]:hover { background: #f4e8e2; border-color: #c9a6a0; }
.icon-only { min-width: 44px; min-height: 44px; padding: 5px; border-radius: 50%; font: 1.18rem/1 system-ui, sans-serif; }
.text-link { display: inline-flex; align-items: center; gap: 7px; padding-block: 8px; font-size: .9rem; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link span { transition: transform .18s ease; }
.text-link:hover span { transform: translateX(3px); }

.cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  border-radius: clamp(20px, 2.6vw, 33px);
  background: #4c1b1c;
  box-shadow: 0 16px 32px #2f161325;
}
.cover-photo { display: block; position: relative; overflow: hidden; aspect-ratio: 1.42; }
.cover-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 52% 51%; }
.cover-photo:focus-visible { outline-offset: -5px; }

.photo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.photo-link { display: block; min-width: 0; overflow: hidden; border-radius: 18px; background: var(--surface); text-decoration: none; color: var(--ink); }
.film-frame { display: block; position: relative; overflow: hidden; aspect-ratio: 1.3; background: var(--dark-wine); }
.film-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-night img { object-position: 48% 63%; }
.film-link-label { display: flex; justify-content: space-between; padding: 10px 14px; font-weight: 700; }
.photo-link:hover .film-link-label { color: var(--wine); }
.card a:hover img { transform: scale(1.045); }

#afisha { padding: clamp(44px, 7vw, 86px) 0 clamp(44px, 6vw, 76px); scroll-margin-top: 12px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.city { width: clamp(118px, 17vw, 190px); }
.demo, .feedback, .footer { color: var(--muted); font-size: .85rem; }
.demo { margin: 9px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 17px; }
.chips button { min-height: 40px; padding: 8px 15px; border-radius: 999px; font-size: .84rem; box-shadow: none; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px)/3); gap: 16px; overflow-x: auto; padding-block: 4px 10px; scroll-padding-inline: 0; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; scrollbar-width: thin; }
.card { min-width: 0; overflow: hidden; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.card:focus-within { outline: 2px solid var(--accent); outline-offset: -2px; }
.card a { display: block; height: 100%; color: inherit; text-decoration: none; }
.card a:hover h3 { color: var(--wine); text-decoration: underline; }
.card-media { overflow: hidden; background: var(--pink); }
.card img { width: 100%; aspect-ratio: 1.65; object-fit: cover; transition: transform .4s ease; }
.card-content { position: relative; padding: 17px 47px 18px 17px; }
.card-content .eyebrow { margin-bottom: 6px; font-size: .65rem; }
.card-content p:last-of-type { margin: 7px 0 0; color: var(--muted); font-size: .87rem; }
.card-content .button-icon { position: absolute; right: 12px; bottom: 14px; }
.rail-actions { display: flex; justify-content: end; gap: 8px; margin-top: 10px; }
.empty { padding: 22px; border: 1px dashed var(--line); border-radius: 20px; }

.panel { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(20px, 6vw, 80px); margin-bottom: 18px; padding: clamp(24px, 5.1vw, 64px); border: 1px solid var(--line); border-radius: 26px; scroll-margin-top: 16px; }
.newsletter { background: #f0e1db; }
.newsletter-photo { width: 100%; max-width: 340px; aspect-ratio: 1.3; border-radius: 13px; }
.organizers { background: var(--surface); align-items: start; row-gap: 24px; }
.organizer-intro .button { margin-top: 10px; }
.organizer-benefits { list-style: none; margin: 0; padding: 0; }
.organizer-benefits li { display: grid; gap: 4px; border-block-start: 1px solid var(--line); padding-block: 12px; }
.organizer-benefits li:last-child { border-block-end: 1px solid var(--line); }
.organizer-benefits span { color: var(--muted); }
.organizer-inquiry { grid-column: 1 / -1; }
.organizer-inquiry summary { cursor: pointer; }
.organizer-inquiry form { max-width: 560px; margin-top: 18px; }
.panel p:not(.eyebrow), .ticket-page p { color: var(--muted); }
form { display: grid; gap: 13px; align-content: start; }
form button { justify-self: start; }
label { display: grid; gap: 6px; color: var(--wine); font-size: .86rem; font-weight: 700; }
input:not([type=checkbox]), select, textarea { width: 100%; min-height: 45px; padding: 8px 11px; border: 1px solid #bdaba2; border-radius: 10px; background: var(--surface); color: var(--ink); font-size: .95rem; }
textarea { resize: vertical; }
.consent { display: flex; align-items: center; gap: 8px; min-height: 38px; }
.consent input { accent-color: var(--wine); width: 18px; height: 18px; }
.feedback { min-height: 1.3em; margin: 0; }
.busy { position: relative; overflow: hidden; }
.busy::after { position: absolute; inset: auto 0 0; width: auto; height: 3px; border-radius: 0; background: #f4ae91; content: ''; transform-origin: left; animation: progress .43s both; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 44px; padding-block: 22px; border-top: 1px solid var(--line); }
.footer .wordmark img { width: 78px; }
dialog { width: min(620px, calc(100% - 24px)); max-height: calc(100% - 26px); padding: clamp(16px, 4vw, 28px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 20px 90px #1a050e50; }
dialog::backdrop { background: #1f0b16a8; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.dialog-head .eyebrow { margin: 0; }
dialog img { width: 100%; aspect-ratio: 2.25; margin-bottom: 18px; border-radius: 12px; object-fit: cover; }
dialog h2 { font-size: clamp(1.9rem, 5.5vw, 3.1rem); }
.dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ticket-page { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: clamp(25px, 7vw, 86px); padding-block: clamp(40px, 7vw, 110px); }
.ticket-page h1 { font-size: clamp(2.8rem, 6vw, 4.7rem); }
.ticket-page > img { width: 100%; height: auto; border-radius: 25px; }
.skip { position: absolute; z-index: 3; transform: translateY(-150%); padding: 8px; background: #fff; }
.skip:focus { transform: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(100%); }
[hidden] { display: none !important; }

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 48px); }
  .hero { gap: 26px; }
}
@media (max-width: 760px) {
  .mast { gap: 14px; min-height: 72px; }
  .wordmark img { width: 84px; }
  .hero, .panel, .ticket-page { grid-template-columns: 1fr; }
  .hero { gap: 23px; padding-top: 28px; }
  .hero h1 { font-size: clamp(3.25rem, 9.5vw, 5rem); }
  .hero-description { margin: 17px 0 19px; }
  .cover-photo { aspect-ratio: 1.53; }
  .rail { grid-auto-columns: calc((100% - 16px)/2); }
  .ticket-page > img { max-height: 290px; object-fit: cover; }
}
@media (max-width: 535px) {
  .wrap { width: calc(100% - 32px); }
  .mast { grid-template-columns: 1fr auto; gap: 5px 8px; padding-block: 10px 0; }
  .mast nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: 9px; font-size: .85rem; }
  .mast nav a { display: inline-block; padding: 8px 0 10px; }
  .mast .to-ticket { min-height: 40px; padding: 5px 8px 5px 12px; font-size: .76rem; }
  .mast .button-icon { width: 24px; height: 24px; }
  .hero-actions { column-gap: 13px; }
  .photo-pair { gap: 8px; }
  .photo-link { border-radius: 15px; }
  .photo-arrow { display: none; }
  .photo-caption { right: 9px; }
  .photo-caption .eyebrow { font-size: .57rem; letter-spacing: .04em; }
  .section-head { align-items: start; }
  .rail { grid-auto-columns: min(82%, 320px); }
  .panel { border-radius: 20px; }
  .footer .wordmark { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

.confirmation-copy { white-space: pre-wrap; overflow-wrap: anywhere; }
