@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Onest';
  font-style: normal;
  src: url('../fonts/Onest-Regular.woff2') format('woff2');
}

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

:root {
  color-scheme: dark;
  --header-height: 126px;
  --header-height-scrolled: 85px;
  --page-padding: clamp(1rem, 5vw, 5rem);
  --transparent-section-padding-y: clamp(4.5rem, 5vw, 6rem);
  --section-arrow-space: 3.75rem;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  position: relative;
  margin: 0;
  z-index: 0;
  overflow-x: hidden;
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;

  background-color: rgba(0, 0, 0, 0.89);
  background-image: url("../images/background_pattern.webp");
  background-repeat: repeat;
  background-position: top left;
  background-size: clamp(400px, 50vw, 430px) auto;
  background-blend-mode: darken;
}

body,
button,
input,
textarea,
select {
  color: #fff;
}

a {
  color: inherit;
}

img,
iframe {
  display: block;
  max-width: 100%;
}

.section,
.festival-footer {
  scroll-margin-top: var(--header-height-scrolled);
}

.section {
  position: relative;
  width: 100%;
  padding:
    clamp(4rem, 8vw, 8rem)
    var(--page-padding);
  background-color: transparent;
}

.section--dark {
  background-color: #101010;
}

h1,
h2,
h3,
p,
li {
  color: #fff;
}

h2 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 4rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 2rem);
}

p,
li {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.65;
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;

  height: var(--header-height);
  padding: 18px var(--page-padding);

  display: flex;
  align-items: center;

  background-color: transparent;
  box-shadow: none;

  transition:
    height 220ms ease,
    padding 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.site-header.is-scrolled {
  height: var(--header-height-scrolled);
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: rgba(0, 0, 0, 0.94);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.site-logo {
  display: block;
  width: clamp(220px, 18vw, 330px);
  text-decoration: none;
  transition:
    width 220ms ease,
    transform 180ms ease;
}

.site-logo:hover,
.site-logo:focus-visible {
  transform: scale(1.025);
}

.site-logo:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

.site-logo img {
  width: 100%;
  height: auto;
}

.site-header.is-scrolled .site-logo {
  width: clamp(170px, 14vw, 240px);
}

.hero {
  position: relative;
  isolation: isolate;

  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;

  padding:
    clamp(8rem, 16vh, 11rem)
    var(--page-padding)
    calc(clamp(3rem, 8vh, 6rem) + var(--section-arrow-space));

  display: grid;
  place-items: center;

  color: #fff;
  background-color: #07151d;
  background-image: url("../images/hero.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 12, 20, 0.12),
    rgba(0, 8, 14, 0.34)
  );
}

.hero__content {
  width: min(100%, 1100px);
  text-align: center;
}

.hero__date {
  margin: 0;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 60px;
  font-weight: 700;
  line-height: 0.5;
  letter-spacing: normal;
  overflow-wrap: anywhere;
}

.hero__place {
  margin:
    clamp(1.3rem, 3vw, 2.5rem)
    0
    clamp(2rem, 4vw, 3rem);
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-weight: 400;
  line-height: 1.3;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.hero-button {
  min-width: 70px;
  min-height: 20px;
  padding: 0.8rem 1.4rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 2px solid #fff;
  border-radius: 0;

  color: #fff;
  background-color: transparent;

  font-size: 1rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;

  transition:
    background-color 180ms ease,
    border-color 180ms ease;
}

.hero-button:hover,
.hero-button:focus-visible {
  background-color: #000;
  border-color: #000;
}

.section-arrow,
.back-to-top {
  width: 42px;
  height: 42px;
  padding: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 0;

  color: #fff;
  background: rgba(10, 10, 10, 0.46);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);

  cursor: pointer;

  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
}

.section-arrow svg,
.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.section-arrow {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
}

.section-arrow:hover,
.section-arrow:focus-visible {
  border-color: rgba(255, 255, 255, 0.95);
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateX(-50%) translateY(2px);
}

.section-arrow:focus-visible,
.back-to-top:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.back-to-top {
  position: fixed;
  z-index: 1200;
  right: clamp(1rem, 2vw, 1.5rem);
  bottom: clamp(1rem, 2vw, 1.5rem);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
}

.back-to-top.is-visible {
  opacity: 0.9;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.95);
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.lineup {
  min-height: auto;
  padding:
    var(--transparent-section-padding-y)
    var(--page-padding)
    calc(var(--transparent-section-padding-y) + var(--section-arrow-space));

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(4rem, 4.5vw, 5.5rem);

  text-align: center;
}

.lineup__block {
  width: min(100%, 1500px);
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lineup__title {
  margin: 0;
  color: #ddd;
  font-family: "Onest", sans-serif;
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 600;
  line-height: 1.1;
}

.lineup__time {
  margin: 0.45rem 0 clamp(2.4rem, 4vw, 4rem);
  color: #ddd;
  font-family: "Onest", sans-serif;
  font-size: clamp(1.55rem, 2.15vw, 2.15rem);
  font-weight: 600;
  line-height: 1.1;
}

.lineup__performers {
  --lineup-name-gap: 1.2em;

  width: 100%;
  margin: 0;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  column-gap: var(--lineup-name-gap);
  row-gap: 0;

  color: #ddd;
  font-family: "Onest", sans-serif;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.lineup__entry {
  position: relative;
  flex: 0 0 auto;
  white-space: nowrap;
}

.lineup__entry--separated::before {
  content: "⋆";
  position: absolute;
  top: 0;
  left: calc(var(--lineup-name-gap) / -2);
  line-height: inherit;
  transform: translateX(-50%);
  pointer-events: none;
}

.transport {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 3vw, 4rem);
  align-items: center;

  padding:
    clamp(3rem, 3vw, 3.5rem)
    clamp(4rem, 5vw, 6rem)
    calc(clamp(4rem, 4vw, 4.75rem) + var(--section-arrow-space));
}

.transport iframe {
  width: min(100%, 600px);
  max-width: 600px;
  max-height: 600px;
  height: auto;
  min-height: 0;
  aspect-ratio: 1 / 1;
  justify-self: center;
  border: 0;
}

.transport__content {
  width: 100%;
  max-width: 720px;
  justify-self: center;
  color: #ddd;
  font-family: "Onest", sans-serif;
}

.transport__title {
  margin: 0 0 clamp(2.5rem, 2.7vw, 3.25rem);
  color: #ddd;
  font-family: inherit;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.15;
}

.transport__group + .transport__group {
  margin-top: clamp(2.25rem, 2.4vw, 2.75rem);
}

.transport__subtitle {
  margin: 0 0 clamp(1rem, 1.25vw, 1.5rem);
  color: #ddd;
  font-family: inherit;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.transport__text {
  margin: 0;
  color: #ddd;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
}

.transport__text--lines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.transport__link {
  color: #00b8b0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.transport__link:hover,
.transport__link:focus-visible {
  color: #25d0c8;
}

.transport__link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.crew {
  padding:
    var(--transparent-section-padding-y)
    var(--page-padding)
    calc(var(--transparent-section-padding-y) + var(--section-arrow-space));
  text-align: center;
}

.crew__title {
  margin: 0 0 clamp(3.5rem, 5vw, 5rem);
  color: #ddd;
  font-family: "Onest", sans-serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.15;
}

.crew__inner {
  width: min(100%, 800px);
  margin: 0 auto;
}

.crew__photo {
  width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: cover;
}

.crew__names {
  width: min(100%, 620px);
  margin: clamp(2rem, 3vw, 2.75rem) auto 0;
  padding: 0;
  list-style: none;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 5rem);
  row-gap: 0.35rem;

  color: #ddd;
  font-family: "Inter", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}

.crew__names li {
  margin: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
}

.festival-footer {
  position: relative;
  isolation: isolate;

  min-height: clamp(500px, 65svh, 720px);
  padding:
    clamp(4rem, 8vh, 6rem)
    clamp(1rem, 6vw, 7rem)
    calc(clamp(4rem, 8vh, 6rem) + var(--section-arrow-space));

  display: grid;
  place-items: center;

  color: #fff;
  background-color: #000;
  background-image: url("../images/footer.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.festival-footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.festival-footer__content {
  width: min(100%, 1450px);
  margin: 0 auto;
  text-align: center;
  font-family: "Onest", sans-serif;
}

.festival-footer__title {
  margin: 0 0 clamp(1.7rem, 2.5vw, 2.4rem);
  color: #fff;
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.festival-footer__text {
  margin: 0;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  text-align: center;
  text-wrap: pretty;
}

.contacts {
  padding:
    clamp(1.5rem, 1vw, 2.25rem)
    var(--page-padding);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contacts__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.4rem, 0.8vw, 0.75rem);
}

.contacts__link {
  width: clamp(34px, 2.8vw, 44px);
  aspect-ratio: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

.contacts__link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contacts__link:hover,
.contacts__link:focus-visible {
  transform: scale(1.08);
  opacity: 0.82;
}

.contacts__link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

@media (max-width: 700px) {
  :root {
    --header-height: 94px;
    --header-height-scrolled: 66px;
  }

  body {
    background-size: 140px auto;
  }

  .site-header {
    padding: 12px 1rem;
  }

  .site-header.is-scrolled {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .site-logo {
    width: min(210px, 65vw);
  }

  .site-header.is-scrolled .site-logo {
    width: min(165px, 52vw);
  }

  .hero {
    padding: 7rem 1rem calc(3rem + var(--section-arrow-space));
    background-position: center;
  }

  .hero__date {
    font-size: clamp(1.8rem, 9vw, 2.4rem);
    white-space: nowrap;
    overflow-wrap: normal;
    line-height: 1;
  }

  .hero__place {
    font-size: clamp(1.15rem, 5vw, 1.6rem);
  }

  .hero-button {
    min-height: 52px;
  }

  .section {
    padding: 4rem 1rem;
  }

  .lineup {
    min-height: auto;
    padding: 4rem 1rem calc(4rem + var(--section-arrow-space));
    justify-content: flex-start;
    gap: clamp(6rem, 20vw, 8rem);
  }

  .lineup__title {
    font-size: clamp(1.25rem, 6.5vw, 1.7rem);
  }

  .lineup__time {
    margin-top: 0.35rem;
    margin-bottom: 2rem;
    font-size: clamp(1.3rem, 7vw, 1.8rem);
  }

  .lineup__performers {
    font-size: clamp(1rem, 4.8vw, 1.3rem);
    line-height: 1.5;
  }

  .transport {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    padding: 4rem 1rem calc(4rem + var(--section-arrow-space));
  }

  .transport iframe {
    width: min(100%, 520px);
    max-width: 520px;
    max-height: 520px;
    min-height: 0;
    justify-self: center;
  }

  .transport__content {
    max-width: none;
  }

  .transport__title {
    margin-bottom: 2.25rem;
    font-size: clamp(2rem, 10vw, 2.5rem);
  }

  .transport__group + .transport__group {
    margin-top: 2.25rem;
  }

  .transport__subtitle {
    margin-bottom: 1rem;
    font-size: clamp(1.35rem, 7vw, 1.65rem);
  }

  .transport__text {
    font-size: 1rem;
    line-height: 1.65;
  }

  .crew {
    padding: 4rem 1rem calc(4rem + var(--section-arrow-space));
  }

  .crew__title {
    margin-bottom: 2.75rem;
    font-size: clamp(1.5rem, 8vw, 1.8rem);
  }

  .crew__inner {
    width: 100%;
  }

  .crew__names {
    width: 100%;
    margin-top: 1.75rem;
    column-gap: 1.25rem;
    row-gap: 0.45rem;
    font-size: clamp(0.9rem, 4vw, 1rem);
  }

  .festival-footer {
    min-height: 70svh;
    padding: 4rem 1.25rem calc(4rem + var(--section-arrow-space));
  }

  .festival-footer__content {
    width: min(100%, 42rem);
  }

  .festival-footer__title {
    margin-bottom: 1.5rem;
    font-size: clamp(1.35rem, 6vw, 1.65rem);
  }

  .festival-footer__text {
    font-size: clamp(0.95rem, 4.3vw, 1.05rem);
    line-height: 1.65;
    text-wrap: pretty;
  }

  .contacts {
    padding: 1.5rem 1rem;
  }

  .contacts__links {
    gap: 0.65rem;
  }

  .contacts__link {
    width: 34px;
  }

  .section-arrow,
  .back-to-top {
    width: 38px;
    height: 38px;
  }

  .section-arrow {
    bottom: 1rem;
  }

  .section-arrow svg,
  .back-to-top svg {
    width: 18px;
    height: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header,
  .site-logo,
  .hero-button,
  .section-arrow,
  .back-to-top {
    transition: none;
  }
}
