:root {
  --beer-1: #f7d04b;
  --beer-2: #f2b42e;
  --beer-3: #eaa11a;
  --foam: #fff8ee;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #000;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
}

.beer {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(1400px 900px at 50% 35%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, var(--beer-1) 0%, var(--beer-2) 40%, var(--beer-3) 100%);
}

.beer {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 14px 16px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.site-header.is-scrolled .nav {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.nav__brand {
  color: rgba(40, 22, 0, 0.92);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__link {
  color: rgba(40, 22, 0, 0.88);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 180ms ease, color 180ms ease;
}

.nav__link:hover {
  background: rgba(255, 255, 255, 0.22);
}

.nav__link.is-active {
  background: rgba(255, 255, 255, 0.35);
  color: rgba(25, 14, 0, 0.95);
}

.page {
  position: relative;
  z-index: 1;
}

.site-footer {
  padding: 24px 16px 32px;
  display: flex;
  justify-content: center;
}

.site-footer__inner {
  width: min(860px, calc(100vw - 32px));
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-footer__link {
  color: rgba(40, 22, 0, 0.92);
  text-decoration: none;
  font-weight: 650;
}

.site-footer__link:hover {
  text-decoration: underline;
}

.site-footer__sep {
  color: rgba(40, 22, 0, 0.6);
}

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 50;
}

.modal.is-open {
  display: block;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.modal__dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(820px, calc(100vw - 32px));
  max-height: min(78vh, 720px);
  overflow: auto;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: rgba(40, 22, 0, 0.92);
}

.modal__header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 10px;
  background: rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.modal__title {
  margin: 0;
  font-size: 18px;
}

.modal__close {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  width: 40px;
  height: 40px;
  font-size: 24px;
  line-height: 40px;
  text-align: center;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(40, 22, 0, 0.92);
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal__body {
  padding: 14px 16px 18px;
}

.section {
  min-height: 100vh;
  padding: 110px 16px 64px;
  display: grid;
  place-items: center;
}

.section {
  scroll-margin-top: 110px;
}

.card {
  width: min(860px, calc(100vw - 32px));
  padding: 26px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(40, 22, 0, 0.92);
}

.card h1,
.card h2 {
  margin: 0;
}

.form {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.form__row {
  display: grid;
  gap: 6px;
}

.form__label {
  font-weight: 650;
  font-size: 14px;
  color: rgba(40, 22, 0, 0.92);
}

.form__input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.16);
  color: rgba(25, 14, 0, 0.95);
  padding: 12px 12px;
  outline: none;
}

.form__input:focus {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}

.form__textarea {
  resize: vertical;
  min-height: 140px;
}

.form__error {
  min-height: 18px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(130, 16, 16, 0.95);
}

.form__captcha {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.form__captcha-question {
  font-weight: 650;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.form__captcha-input {
  width: 120px;
}

.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 750;
  color: rgba(25, 14, 0, 0.95);
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: transform 120ms ease, background 180ms ease;
}

.button:hover {
  background: rgba(255, 255, 255, 0.4);
}

.button:active {
  transform: translateY(1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.form__status {
  min-height: 20px;
  font-weight: 650;
}

.form__status[data-tone='success'] {
  color: rgba(12, 92, 24, 0.95);
}

.form__status[data-tone='error'] {
  color: rgba(130, 16, 16, 0.95);
}

.form__status[data-tone='info'] {
  color: rgba(40, 22, 0, 0.88);
}

.foam {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(180deg, #ffffff 0%, var(--foam) 55%, rgba(255, 248, 238, 0) 100%);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.08));
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  z-index: 3;
}

.bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 2;
}

.bubble {
  position: absolute;
  bottom: -60px;
  border-radius: 9999px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.05) 55%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  opacity: 0.65;
  will-change: transform, opacity;
  animation-name: rise;
  animation-timing-function: linear;
  animation-iteration-count: 1;
}

html {
  scroll-behavior: smooth;
}

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

@keyframes rise {
  0% {
    transform: translate3d(var(--drift-start, 0px), 0, 0) scale(var(--scale, 1));
    opacity: 0;
  }
  10% {
    opacity: var(--opacity, 0.65);
  }
  100% {
    transform: translate3d(var(--drift-end, 0px), calc(-1 * var(--travel, 110vh)), 0) scale(var(--scale, 1));
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bubble {
    animation: none;
    display: none;
  }
}
