@font-face {
  font-family: "Bigilla";
  src: url("Bigilla-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: "Bigilla";
  src: url("Bigilla.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Felidae";
  src: url("Felidae.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Buka";
  src: url("Buka.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Comfortaa";
  src: url("Comfortaa.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Romanc";
  src: url("Romanc.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Romanus";
  src: url("Romanus.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Trop";
  src: url("Trop.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Dream";
  src: url("Dream.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
}

:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  background: #0f0f0f;
  font-family: "Dream", "Bigilla", Georgia, "Times New Roman", serif;
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  padding: 0;
  overflow: hidden;
}

.photo {
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  object-fit: cover;
  object-position: center center;
}

picture {
  display: block;
  width: 100%;
  height: 100%;
}

.content {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: min(92vw, 64rem);
  margin: 0 auto;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.brand {
  position: absolute;
  top: clamp(1.5rem, 6vh, 4rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(31vw, 7rem);
  margin-bottom: 0;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.details {
  position: absolute;
  top: 56%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  width: min(92vw, 64rem);
}

.line {
  margin: 0 0 clamp(0.65rem, 2.1vw, 1.15rem);
  font-size: clamp(1.2rem, 3.1vw, 2.45rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.line-emphasis {
  font-size: clamp(1.45rem, 3.6vw, 2.85rem);
}

.page-ru .line,
.page-ru .line-emphasis,
.page-ru .line-phone,
.page-ru .line-email {
  font-family: "Dream", "Bigilla", Georgia, "Times New Roman", serif;
}

.page-ru .line-phone,
.page-ru .line-email,
.page-ru .language-link {
  font-family: "Dream", "Bigilla", Georgia, "Times New Roman", serif;
}

.line-spacer {
  margin: 0;
  font-size: clamp(0.6rem, 1.2vw, 1rem);
  line-height: 0.75;
}

.phone,
.site-link {
  color: inherit;
  text-decoration: none;
}

.line-email,
.line-email .site-link {
  text-transform: none;
}

.language-switcher {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(1rem, 3vh, 2rem);
  transform: translateX(-50%);
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.language-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: "Dream", "Bigilla", Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0.08em;
  font-size: clamp(1.5rem, 2vw, 2rem);
  text-decoration: none;
  filter: saturate(0.75);
  transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}

.language-link:hover,
.language-link:focus-visible {
  transform: translateY(-1px);
  filter: saturate(1);
}

.language-link.is-active {
  filter: saturate(1);
  opacity: 1;
}

.phone:hover,
.phone:focus-visible,
.site-link:hover,
.site-link:focus-visible {
  opacity: 0.88;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 768px) {
  html,
  body,
  .page,
  picture,
  .photo {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    touch-action: none;
  }

  .content {
    width: min(92vw, 30rem);
  }

  .brand {
    top: max(calc(env(safe-area-inset-top) + 1rem), 1.5rem);
    width: min(30vw, 5rem);
  }

  .details {
    top: 53%;
    width: min(92vw, 30rem);
  }

  .line-phone {
    margin-top: clamp(0.85rem, 2.8vh, 1.4rem);
    font-size: clamp(1.7rem, 5.2vw, 2.4rem);
  }

  .language-switcher {
    position: fixed;
    z-index: 5;
    width: min(92vw, 30rem);
    justify-content: center;
    padding: 0.2rem 0.8rem;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 999px;
    bottom: max(1.25rem, calc(env(safe-area-inset-bottom) + 0.75rem));
  }

  .line {
    letter-spacing: 0.1em;
  }
}
