@font-face {
  font-family: 'Instrument Serif';
  src: url('assets/instrument-serif.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('assets/montserrat-cyrillic.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  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/montserrat-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  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 {
  --paper: #F7F7F5;
  --ink: #161617;
  --muted-ink: #4b4945;
  --accent: #5547bc;
  --menu-accent: #875517;
  --gutter: clamp(.625rem, 2.45vw, 2.5rem);
  --ui-font: 'Helvetica Neue', Arial, sans-serif;
  font-family: var(--ui-font);
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
button, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

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

.hero {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(min-content, 1fr) auto minmax(6rem, 1fr);
  min-height: 31rem;
  overflow: hidden;
  isolation: isolate;
  background: #1c1816;
  color: var(--paper);
}

.hero-media, .hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 53%;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce), (prefers-reduced-data: reduce) {
  .hero-video { display: none; }
}
.hero-shade { background: linear-gradient(180deg, #08070a38, #08070a68 48%, #08070a4f 72%, #08070a81); }

.demo {
  --accent: var(--menu-accent);
  position: relative;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-self: start;
  margin: 0 0 2.5rem;
  padding: clamp(.875rem, 1.6vw, 1.5rem);
  border: 1px solid #f7f7f558;
  border-radius: 1.25rem;
  background: rgb(247 247 245 / 58%);
  color: var(--ink);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.demo-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .875rem; }
.demo-heading h2 { margin: 0; font-size: clamp(1.125rem, 1.7vw, 1.625rem); font-weight: 650; letter-spacing: -.035em; line-height: 1.15; }
.demo-modes { display: flex; flex: none; gap: .125rem; }
.demo-modes a { --mode-bg: var(--paper); position: relative; isolation: isolate; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); }
.demo-modes a::before { content: ''; position: absolute; inset: .3rem; z-index: -1; border: 1px solid #16161755; border-radius: 50%; background: var(--mode-bg); }
.demo-anchor { position: absolute; top: 0; }
:is(#demo-email, .demo-status):target ~ .demo-heading .mode-email { --mode-bg: var(--menu-accent); color: var(--paper); }
.demo-modes a.mode-telegram { --mode-bg: var(--menu-accent); color: var(--paper); }
:is(#demo-email, .demo-status):target ~ .demo-heading .mode-telegram { --mode-bg: var(--paper); color: var(--ink); }
.demo-form, .demo-status { display: none; }
:is(#demo-email, .demo-status):target ~ .demo-telegram { display: none; }
:is(#demo-email, .demo-status):target ~ .demo-form, .demo-status:target { display: block; }
.mode-icon { position: relative; display: block; }
.mode-icon-telegram { width: 1.05rem; height: 1rem; }
.mode-icon-telegram::before, .mode-icon-telegram::after { content: ''; position: absolute; inset: 0; background: currentColor; }
.mode-icon-telegram::before {
  clip-path: polygon(evenodd, 0 37%, 100% 0, 79% 100%, 51% 77%, 37% 91%, 29% 62%, 0 49%, 0 37%, 13% 43%, 36% 54%, 43% 74%, 50% 67%, 74% 87%, 91% 12%, 13% 43%);
}
.mode-icon-telegram::after { clip-path: polygon(32% 56%, 80% 24%, 51% 75%, 44% 70%, 63% 41%, 37% 64%); }
.mode-icon-mail { width: 1rem; height: .75rem; border: 1.5px solid currentColor; border-radius: .14rem; }
.mode-icon-mail::after { content: ''; position: absolute; left: 50%; top: -.02rem; width: .45rem; height: .45rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateX(-50%) scaleY(.75) rotate(45deg); }

.demo-field {
  display: flex;
  align-items: center;
  gap: .375rem;
  padding: .3125rem;
  border: 1px solid #524d46;
  border-radius: 1.75rem;
  background: rgb(255 253 246 / 74%);
}

.demo-field:focus-within { box-shadow: 0 0 0 2px var(--accent); border-color: transparent; }
.demo-field textarea {
  flex: 1;
  min-width: 0;
  min-height: 1.5em;
  max-height: 5.5rem;
  padding: 0 .625rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  line-height: 1.5;
  field-sizing: content;
  resize: vertical;
}
.demo-field textarea::placeholder { color: #625e57; opacity: 1; }
.demo-submit { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0 1.2rem; border: 0; border-radius: 2rem; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; white-space: nowrap; }
.demo-submit.demo-telegram { align-self: stretch; justify-content: flex-end; }
.demo-submit:hover { background: var(--menu-accent); }
.demo-file { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.demo-file:hover { background: rgb(22 22 23 / 10%); }
.demo-audio { display: block; max-width: 100%; margin: .45rem .625rem 0; padding: 0; border: 0; background: transparent; color: var(--muted-ink); font: .8125rem/1.35 var(--ui-font); cursor: pointer; }
.demo-audio::file-selector-button { display: none; }
.demo-audio:focus-visible { outline-offset: 2px; }
.demo-clip { position: relative; width: .68rem; height: 1.15rem; border: 1.5px solid currentColor; border-top-color: transparent; border-radius: .4rem; transform: rotate(42deg); }
.demo-clip::after { content: ''; position: absolute; inset: -.13rem .12rem .12rem; border: 1.5px solid currentColor; border-bottom-color: transparent; border-radius: .3rem; }
.demo-status { order: 1; scroll-margin-block-start: 10rem; margin: .75rem 0 0; color: var(--ink); font-size: .875rem; line-height: 1.35; }
.demo-status a { color: inherit; }

.hero-title {
  position: relative;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .4rem;
  margin: 0;
  padding: 0 var(--gutter);
  color: var(--paper);
  text-shadow: 0 2px 26px #09090b66;
}
.hero-word, .page-title {
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-weight: 400;
}
.hero-word {
  justify-self: start;
  font-size: min(13.25vw, 15rem);
  line-height: .82;
  letter-spacing: -.025em;
}
.hero-word:last-child { justify-self: end; letter-spacing: .01em; }
.hero-label-labe, .hero-label-lab, .hero-label-la, .hero-label-b { position: relative; }
.hero-label-labe { inset-inline-start: min(3.5px, .02333em); }
.hero-label-lab { inset-inline-start: min(5px, .032em); }
.hero-label-la { inset-inline-start: max(-.5px, -.0032em); }
.hero-label-b { inset-inline-start: min(1px, .0065em); }
.hero-mark { padding-left: .4em; color: #fffdf7; font-family: var(--ui-font); font-size: clamp(.86rem, 1.7vw, 1.54rem); font-weight: 700; letter-spacing: .4em; white-space: nowrap; }

.site-footer { padding: 0 var(--gutter) env(safe-area-inset-bottom); background: var(--paper); }
.footer-nav { display: flex; justify-content: space-between; gap: .4rem 1rem; align-items: center; min-height: 3.45rem; font-size: clamp(.75rem, 1.26vw, 1.075rem); font-weight: 550; letter-spacing: .12em; line-height: 1.2; text-transform: uppercase; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.footer-nav a:active { color: var(--menu-accent); }
.footer-nav a:is([aria-current='page'], [aria-current='true']) { color: var(--menu-accent); font-weight: 800; }
.footer-nav [aria-disabled='true'] { color: var(--muted-ink); }

.contacts-content { max-width: 82rem; margin: clamp(1.25rem, 4svh, 2.75rem) auto 0; font-family: var(--ui-font); text-align: left; }
.contacts-content a, .about-contacts a { color: inherit; text-decoration: none; }
.contacts-content a:hover, .about-contacts a:hover { color: var(--menu-accent); }

.contacts-primary { margin: 0; padding-block: clamp(1.5rem, 3.5vw, 3.25rem); border-block: 1px solid var(--ink); }
.contacts-primary dt, .contacts-details h2 { margin: 0 0 .85rem; color: var(--muted-ink); font-size: clamp(.9375rem, 1.35vw, 1.125rem); line-height: 1.35; font-weight: 400; }
.contacts-primary dd { margin: 0; font-size: clamp(1.4rem, 3.6vw, 3.75rem); font-weight: 650; line-height: 1.06; letter-spacing: -.052em; overflow-wrap: anywhere; }

.contacts-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); margin-top: clamp(1.75rem, 3.5vw, 3.25rem); }
.contacts-details section { padding-inline: clamp(1rem, 3vw, 2.5rem); }
.contacts-details section:first-child { padding-left: 0; }
.contacts-details section:last-child { padding-right: 0; }
.contacts-details section + section { border-left: 1px solid #16161738; }
.contacts-details a { font-size: clamp(1.05rem, 1.7vw, 1.4rem); font-weight: 650; letter-spacing: -.025em; line-height: 1.25; overflow-wrap: anywhere; }
.contacts-page .site-footer, .title-page .site-footer { border-top: 1px solid var(--ink); }

.title-main { flex: 1; padding: clamp(1rem, calc(24svh - 6.6rem), 5rem) var(--gutter) clamp(.75rem, 2svh, 1.5rem); font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif; text-align: center; }
.page-title { margin: 0; font-size: clamp(2.5rem, 6.8vw, 7rem); font-weight: 700; line-height: .98; letter-spacing: -.025em; text-wrap: balance; }
.page-subtitle { max-width: 60rem; margin: clamp(.55rem, 1.55svh, 1rem) auto 0; font-size: clamp(.9375rem, 1.85vw, 1.5rem); line-height: 1.25; text-wrap: balance; }
.title-divider { max-width: 82rem; margin: clamp(1.25rem, 4svh, 2.75rem) auto 0; border: 0; border-top: 1px solid var(--ink); }
.booking-content { max-width: 82rem; margin-inline: auto; padding-top: clamp(.65rem, 1.8svh, 1.125rem); text-align: left; }
.booking-content > h2 { margin: 0 0 clamp(.6rem, 1.7svh, .95rem); font-size: clamp(1.125rem, 2vw, 1.625rem); font-weight: 600; line-height: 1.25; }

.about-grid {
  --about-gap: clamp(1.5rem, 4vw, 4rem);
  display: grid;
  grid-template-areas: "contacts story";
  grid-template-columns: minmax(12rem, 1fr) minmax(min(36rem, 100% - 12rem - var(--about-gap)), 1fr);
  gap: var(--about-gap);
  max-width: 82rem;
  margin-inline: auto;
  padding-top: clamp(1.25rem, 3.5svh, 2.25rem);
  font-size: clamp(.875rem, 1.2vw, .9375rem);
  line-height: 1.55;
  text-align: left;
}
.about-story { grid-area: story; }
.about-contact-section { grid-area: contacts; }
.about-grid h2 { margin: 0 0 1em; font-size: clamp(1.125rem, 1.8vw, 1.5rem); font-weight: 700; line-height: 1.25; }
.about-grid p { margin: 0; }
.about-grid p + p { margin-top: 1em; }
.about-contacts { display: grid; gap: 1.45em; margin: 0; }
.about-contacts dt { font-weight: 700; }
.about-contacts dd { margin: 0; overflow-wrap: anywhere; }

.booking-roster { margin: clamp(.75rem, 2.1svh, 1.45rem) 0 0; font-size: clamp(.9375rem, 1.5vw, 1.125rem); line-height: 1.55; }
.booking-roster span { white-space: nowrap; }
.about-story p, .artist-biography p, .booking-roster, .demo-status {
  text-align: justify;
  text-align-last: start;
}

.booking-case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 1.5rem); }
.booking-case { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: clamp(9rem, 30svh, 16rem); padding: clamp(.875rem, 2.7svh, 2rem); background: var(--ink); color: var(--paper); }
.booking-case-rain { --case-image: url('assets/booking-tri-dnya-dozhdya.webp'); }
.booking-case-pussykiller { --case-image: url('assets/booking-pussykiller.webp'); --case-position: 56% center; }
.booking-case::before {
  content: '';
  position: absolute;
  inset: 0 0 0 36%;
  z-index: -1;
  background-image:
    var(--case-fade, linear-gradient(90deg, var(--ink), rgb(22 22 23 / 48%) 20%, transparent 36%)),
    linear-gradient(180deg, rgb(15 16 19 / 22%), transparent 38%, rgb(15 16 19 / 20%)),
    var(--case-image, none);
  background-position: var(--case-position, 39% center);
  background-size: cover;
}
.booking-case h3 { margin: 0; font-size: clamp(1.05rem, 2vw, 1.625rem); font-weight: 600; line-height: 1.25; }
.booking-result { margin: clamp(.5rem, 1.5svh, 1rem) 0 0; font-size: clamp(.875rem, 1.5vw, 1.125rem); line-height: 1.35; }
.booking-result span { display: block; }
.booking-result strong { margin-inline-start: .045em; font-family: var(--ui-font); font-size: clamp(3.5rem, min(8vw, 14svh), 7.5rem); font-weight: 400; font-variant-numeric: lining-nums proportional-nums; line-height: .95; letter-spacing: -.04em; }

@media (min-width: 42.01rem) and (min-height: 36rem) {
  .about-story p { font-size: clamp(1em, min(1.48vw, 2.45svh), 1.03125rem); }
}

@media (max-width: 42rem) {
  .contacts-details { grid-template-columns: 1fr; gap: 1.4rem; }
  .contacts-details section { padding-inline: 0; }
  .contacts-details section + section { padding-top: 1.15rem; border-top: 1px solid #16161738; border-left: 0; }
  .title-main { padding-block: clamp(.875rem, 3svh, 1.5rem) .75rem; }
  .page-title { font-size: min(8.65vw, 3rem); line-height: 1.05; }
  .page-subtitle {
    margin-top: .5rem;
    font-size: clamp(9.5px, calc(9.5px + (100vw - 390px) * .0275), 10.6px);
    letter-spacing: -.015em;
  }
  .title-divider { margin-top: clamp(.875rem, 2.5svh, 1.5rem); }
  .about-grid {
    grid-template-areas: "story" "contacts";
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding-top: 1rem;
    font-size: .8125rem;
    line-height: 1.45;
  }
  .about-grid h2 { margin-bottom: .45em; font-size: 1.0625rem; }
  .about-grid p + p { margin-top: .65em; }
  .about-story p { font-size: clamp(1em, min(3.55vw, 2.25svh), .90625rem); }
  .about-contact-section { margin-top: clamp(0px, calc((100svh - 704px) * .6), 1.5rem); }
  .about-contacts { gap: .55em; }
  .booking-case-grid { grid-template-columns: minmax(0, 1fr); }
  .booking-case { min-height: clamp(9rem, 18svh, 11rem); padding: .875rem; }
  .booking-case::before {
    --case-fade: linear-gradient(90deg, var(--ink), rgb(22 22 23 / 78%) 38%, transparent 76%);
    inset-inline-start: 0;
    background-position: center, center, right center;
    background-repeat: no-repeat;
    background-size: cover, cover, contain;
  }
  .booking-case h3 { font-size: clamp(.9rem, 3.25vw, 1.1rem); }
  .booking-result strong { font-size: clamp(3.125rem, 10.8vw, 4.25rem); }
}

@media (max-width: 34rem) {
  .hero { min-height: 29rem; }
  .demo { margin-bottom: 2rem; }
  .demo-submit { padding-inline: .7rem; font-size: .875rem; }
  .demo-field textarea { padding-inline: .5rem .25rem; }
  .hero-title { gap: .25rem; }
  .hero-word { font-size: 12.6vw; }
  .hero-mark { letter-spacing: .26em; }
  .footer-nav { font-size: .73rem; gap: .5rem; }
}

@media (max-height: 35rem) {
  .hero { min-height: min(31rem, calc(100svh - 3.45rem)); }
}
@media (max-height: 27rem) and (orientation: landscape) {
  .hero { grid-template-rows: minmax(min-content, 1fr) auto clamp(1.5rem, 15svh, 6rem); }
  .demo { margin-bottom: clamp(.65rem, 3svh, 2.5rem); }
}

@media (max-width: 22rem) {
  .booking-roster { font-size: .875rem; line-height: 1.45; }
  .booking-result strong { font-size: 2.625rem; }
}

@media (max-width: 42rem) and (max-height: 38rem) {
  .title-main { padding-block: .75rem .5rem; }
  .title-divider { margin-top: .65rem; }
  .about-grid { font-size: .78rem; }
  .footer-nav { min-height: 2.75rem; }
}

@media (max-width: 42rem) and (max-height: 44rem) {
  .about-grid { gap: .75rem; padding-top: .625rem; line-height: 1.38; }
  .about-grid p + p { margin-top: .5em; }
  .about-contacts > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .125rem .5rem; }
  .booking-content > h2 { font-size: 1rem; }
  .booking-case { min-height: clamp(6.5rem, 18svh, 8rem); padding: .625rem; }
  .booking-roster { font-size: .875rem; line-height: 1.35; }
}

@media (min-width: 42.01rem) and (max-height: 27rem) {
  .title-main { padding-block: .65rem .5rem; }
  .page-title { font-size: clamp(1.75rem, 8.5svh, 3rem); }
  .page-subtitle { margin-top: .25rem; font-size: clamp(.75rem, 3.8svh, 1rem); }
  .title-divider { margin-top: .5rem; }
  .about-grid { padding-top: .6rem; font-size: .8125rem; line-height: 1.35; }
  .about-grid h2 { margin-bottom: .3rem; font-size: 1rem; }
  .about-grid p + p { margin-top: .45em; }
  .booking-case { min-height: min(28svh, 8rem); padding: .5rem; }
  .booking-result { margin-top: .25rem; }
  .booking-result strong { font-size: 2.7rem; }
  .booking-roster { font-size: .85rem; line-height: 1.35; }
  .footer-nav { min-height: 2.75rem; }
}
