/* ==========================================================================
   Modal Age Check Lang Demo
   Мультиязычная standalone-модалка проверки возраста поверх index.html.
   ========================================================================== */

.modal-age-lang-page-body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  height: 100%;
  overflow: hidden;
}

html.is-age-gate-open,
body.is-age-gate-open {
  overflow: hidden;
}

a {
  text-decoration: none;
}

.btn {
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.btn-dark {
  background: #164075;
  border-color: #164075;
}

.btn-dark:hover {
  background: #1d518f;
  border-color: #1d518f;
}

.modal-age-lang-page-body,
.modal-age-lang-demo-page {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.modal-age-lang-demo-page {
  position: relative;
}

.modal-age-lang-page-frame {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.modal-age-lang-page-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;
}

.modal-age-lang-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  padding: 32px 0;
  background: linear-gradient(180deg, rgba(24, 41, 66, 0.9) 0%, rgba(35, 61, 96, 0.92) 100%);
  backdrop-filter: blur(16px) saturate(0.85);
  -webkit-backdrop-filter: blur(16px) saturate(0.85);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-age-lang-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-age-lang-check-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 28px;
  border-radius: 14px;
  background: #fff;
  text-align: center;
  box-shadow: 0 24px 56px rgba(11, 27, 45, 0.24);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 500px;
}

.modal-age-lang-logo {
  width: 220px;
  height: auto;
  display: block;
}

.modal-age-lang-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #164075;
}

.modal-age-lang-panels {
  width: 100%;
}

.modal-age-lang-panel {
  display: none;
  width: 100%;
}

.modal-age-lang-panel.is-active {
  display: block;
}

.modal-age-lang-title-wrap,
.modal-age-lang-description-wrap {
  width: 100%;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.modal-age-lang-title-wrap {
  margin-top: 0;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 148px;
}

.modal-age-lang-description-wrap {
  margin-top: 0;
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 72px;
}

.modal-age-lang-check-card h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4.4vw, 46px);
  font-weight: 800;
  color: #182942;
  line-height: 1.08;
  text-align: left;
  text-wrap: balance;
}

.modal-age-lang-check-card p {
  width: 100%;
  max-width: none;
  margin: 0 0 24px;
  color: #526784;
  text-align: left;
  text-wrap: pretty;
}

.modal-age-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 16px;
  padding: 6px;
  border: 1px solid #d7dfeb;
  border-radius: 999px;
  background: #f6f8fb;
}

.modal-age-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #526784;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-age-lang-btn.is-active {
  background: #164075;
  color: #fff;
}

.modal-age-lang-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
  align-items: center;
  min-height: 48px;
  margin-top: auto;
}

.modal-age-lang-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
}

.modal-age-lang-actions .btn:first-child {
  width: 220px;
}

.modal-age-lang-actions .btn:last-child {
  width: 150px;
}

@media (max-width: 767.98px) {
  .modal-age-lang-page-body,
  .modal-age-lang-demo-page {
    height: 100dvh;
    min-height: 100dvh;
  }

  .modal-age-lang-overlay {
    align-items: flex-start;
    padding: 20px 0;
  }

  .modal-age-lang-check-card {
    padding: 32px 20px;
    min-height: auto;
  }

  .modal-age-lang-switcher {
    width: 100%;
    justify-content: center;
  }

  .modal-age-lang-btn {
    min-width: 0;
    flex: 1 1 0;
  }

  .modal-age-lang-title-wrap {
    margin-bottom: 4px;
    min-height: 0;
  }

  .modal-age-lang-description-wrap {
    margin-bottom: 12px;
    min-height: 0;
  }

  .modal-age-lang-actions .btn {
    width: min(100%, 220px);
    min-width: 0;
  }
}
