* { box-sizing: border-box; margin: 0; padding: 0; }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

:root {
  --bg: #e3e3e3;
  --card: #e8e8e8;
  --card-border: #d5d5d5;
  --button-muted-hover: #cfcfcf;
  --button-text-on-dark: #fff;
  --reserved-button-bg: #111;
  --text: #424242;
  --text-strong: #2d2d2d;
  --muted: #5f5f5f;
  --accent: #B21F1F;
  --accent-hover: #FFE135;
  --button-radius: 14px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 3.5rem 1rem;
}

.card {
  position: relative;
  width: min(92vw, 760px);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: clamp(2rem, 3vw, 3.25rem);
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.logo {
  width: min(72%, 360px);
  height: auto;
  object-fit: contain;
  margin: 0 auto 1.75rem;
}

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 3rem;
  color: #fff;
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: var(--button-radius);
  font: inherit;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  padding: .82rem 1.05rem;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.button:hover,
.button:focus-visible,
.button.is-active {
  color: var(--accent);
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 2px solid var(--text-strong);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .85);
}

.primary-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  margin: 0 auto 1.15rem;
  max-width: 660px;
}

.primary-action {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  width: 100%;
  color: var(--accent);
  background: transparent;
  border: 2px solid transparent;
  border-radius: var(--button-radius);
  font: inherit;
  font-size: clamp(.78rem, 1.7vw, .98rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  padding: .66rem .7rem;
  white-space: nowrap;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.primary-action:hover,
.primary-action:focus-visible {
  color: var(--accent-hover);
  background: var(--button-muted-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

.primary-action.is-active {
  color: var(--button-text-on-dark);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.primary-action:focus-visible {
  outline: 2px solid var(--text-strong);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .85);
}

.dynamic-panel {
  max-width: 620px;
  margin: 0 auto 1.35rem;
  overflow: hidden;
}

.panel-content[hidden] {
  display: none;
}

.panel-content {
  background: rgba(255, 255, 255, .38);
  border: 1px solid rgba(178, 31, 31, .18);
  border-radius: 18px;
  padding: clamp(1.1rem, 3vw, 1.6rem);
}

.panel-content p {
  font-size: clamp(1rem, 2.2vw, 1.24rem);
  line-height: 1.65;
  letter-spacing: -.01em;
  margin-bottom: 1rem;
}

.panel-content p:last-child {
  margin-bottom: 0;
}

.panel-content strong {
  color: var(--text-strong);
  font-weight: 700;
}

.coming-soon p {
  color: var(--accent);
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.coming-soon {
  display: grid;
  gap: 1rem;
}

.team-banner-image {
  width: 100%;
  border-radius: 12px;
}

.reserved-area {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}

.reserved-link {
  width: 100%;
  color: var(--button-text-on-dark);
  background: var(--reserved-button-bg);
  border-color: var(--reserved-button-bg);
}

.social {
  display: grid;
  grid-template-columns: 1fr;
  gap: .52rem;
  margin: 1.2rem auto 1.35rem;
  max-width: 320px;
}

.social-link,
.write-link,
.reserved-link {
  width: 100%;
  min-height: 2.25rem;
  font-size: .78rem;
  gap: .42rem;
  padding: .5rem .7rem;
}

.social-link .icon {
  width: 1rem;
  height: 1rem;
}

.icon {
  position: relative;
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  color: currentColor;
}

.icon-telegram::before {
  content: '';
  position: absolute;
  inset: .12rem .04rem .12rem .08rem;
  background: currentColor;
  clip-path: polygon(0 42%, 100% 0, 78% 100%, 52% 66%, 30% 86%, 36% 58%);
}

.icon-instagram {
  border: 2px solid currentColor;
  border-radius: .38rem;
}

.icon-instagram::before {
  content: '';
  position: absolute;
  width: .42rem;
  height: .42rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.icon-instagram::after {
  content: '';
  position: absolute;
  width: .18rem;
  height: .18rem;
  border-radius: 50%;
  background: currentColor;
  top: .23rem;
  right: .23rem;
}

.icon-facebook::before {
  content: 'f';
  position: absolute;
  inset: -.2rem 0 0;
  font-size: 1.85rem;
  font-weight: 700;
  font-family: Arial, sans-serif;
  line-height: 1.35rem;
  text-transform: none;
}

.icon-eventbrite::before {
  content: 'E';
  position: absolute;
  inset: 0;
  border: 2px solid currentColor;
  border-radius: .32rem;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-youtube::before {
  content: '';
  position: absolute;
  inset: .12rem 0;
  border-radius: .32rem;
  border: 2px solid currentColor;
}

.icon-youtube::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: .45rem;
  height: .52rem;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translate(-38%, -50%);
}

.contact-cta {
  max-width: 430px;
  margin: 0 auto 1.35rem;
}

.contact-cta p {
  color: var(--text-strong);
  font-size: clamp(1rem, 2.7vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: .85rem;
}

.smallprint,
.copyright {
  color: var(--muted);
}

.smallprint {
  font-size: clamp(.75rem, 2vw, 1rem);
  margin-top: .35rem;
}

.copyright {
  font-size: clamp(.9rem, 2.2vw, 1.1rem);
  margin-top: .7rem;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .card {
    border-radius: 18px;
    padding: clamp(1.1rem, 5vw, 2rem);
  }

  .primary-actions {
    gap: .35rem;
  }

  .primary-action {
    min-height: 2.2rem;
    font-size: clamp(.5rem, 2.5vw, .82rem);
    letter-spacing: .01em;
    padding: .45rem .16rem;
  }

  .reserved-area {
    grid-template-columns: 1fr;
  }

  .panel-content p { font-size: 1rem; }
}
