:root {
  color-scheme: dark;
  font-family: "Yanone Kaffeesatz", "Arial Narrow", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100svh;
  overflow: hidden;
  background: #5b665b;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.age-gate {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  background-image: url("images/house-wine-entrance-ro.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

html[data-language="ru"] .age-gate {
  background-image: url("images/house-wine-entrance-ru.jpg");
}

.brand {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  display: block;
  width: clamp(180px, 11vw, 228px);
  transform: translateX(-50%);
  line-height: 0;
}

.brand img {
  width: 100%;
  height: auto;
}

.language-switcher {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  color: rgb(255 255 255 / 75%);
  background: rgb(26 20 17 / 52%);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .12em;
}

.language-switcher__button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.language-switcher__button[aria-pressed="true"] {
  color: #fff;
  font-weight: 600;
}

.age-card {
  position: absolute;
  z-index: 2;
  top: 30%;
  left: 50%;
  width: min(560px, calc(100vw - 40px));
  padding: 19px 36px 22px;
  transform: translateX(-50%);
  color: #fff;
  background: rgb(29 24 22 / 63%);
  backdrop-filter: blur(1px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.age-card h1 {
  margin: 0 0 12px;
  font-size: clamp(27px, 1.78vw, 36px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: .018em;
}

.enter-button {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: clamp(25px, 1.62vw, 33px);
  font-weight: 500;
  letter-spacing: .045em;
  line-height: 1.15;
  cursor: pointer;
}

.enter-button__arrows {
  letter-spacing: .12em;
  transition: transform 180ms ease;
}

.enter-button:hover .enter-button__arrows,
.enter-button:focus-visible .enter-button__arrows {
  transform: translateX(5px);
}

.enter-button:focus-visible,
.language-switcher__button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

html.age-confirmed .age-card {
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
}

.noscript-message {
  position: fixed;
  z-index: 5;
  right: 16px;
  bottom: 16px;
  left: 16px;
  margin: 0;
  padding: 12px 16px;
  color: #fff;
  background: #33201c;
  text-align: center;
}

@media (max-width: 700px) {
  .age-gate {
    background-position: center;
    background-size: cover;
  }

  .brand {
    width: 190px;
  }

  .language-switcher {
    top: 70px;
    right: 12px;
  }

  .age-card {
    top: 34%;
    width: calc(100vw - 28px);
    padding: 20px 22px 22px;
  }

  .age-card h1 {
    font-size: clamp(28px, 8vw, 35px);
    line-height: 1.1;
  }

  .enter-button {
    font-size: 29px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
