/* Studio Nina — first-visit country / language gate */
.language-gate {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(28, 25, 23, 0.58);
  backdrop-filter: blur(8px);
}

.language-gate.is-open {
  display: flex;
}

.language-gate__dialog {
  width: min(460px, calc(100vw - 48px));
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  background: #f8f5f2;
  color: #322d29;
  border-radius: 0;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
}

.language-gate__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 48px 38px;
  text-align: center;
  font-family: "Poppins", system-ui, sans-serif;
}

.language-gate__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 30px;
}

.language-gate__monogram {
  display: block;
  width: 60px;
  height: 36px;
  margin: 0 auto 10px;
}

.language-gate__monogram-mark {
  fill: none;
  stroke: #a8927a;
  stroke-width: 2.2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.language-gate__brand {
  display: block;
  color: #a8927a;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1.2;
}

.language-gate__eyebrow {
  margin: 0 0 18px;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.language-gate__text {
  margin: 0 0 34px;
  max-width: 420px;
  font-size: 0.8125rem;
  line-height: 1.75;
  font-weight: 400;
  color: #9a9a9a;
}

.language-gate__field {
  width: 100%;
  margin: 0 0 24px;
  text-align: left;
}

.language-gate__label {
  display: block;
  margin: 0 0 10px;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.language-gate__select {
  width: 100%;
  height: 46px;
  padding: 0 40px 0 16px;
  border: 1px solid #d1d1d1;
  border-radius: 0;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%239a9a9a' stroke-width='1.2' d='M1 1l4 4 4-4'/%3E%3C/svg%3E") right 16px center no-repeat;
  color: #9a9a9a;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 400;
  appearance: none;
  cursor: pointer;
}

.language-gate__select:focus {
  outline: none;
  border-color: #9a9a9a;
}

.language-gate__select option {
  color: #322d29;
}

.language-gate__select optgroup {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.language-gate__select option:disabled {
  color: #b5aea7;
  font-weight: 400;
}

.language-gate__languages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.language-gate__lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid #d1d1d1;
  border-radius: 0;
  background: #fff;
  color: #9c948c;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.language-gate__lang-btn:hover,
.language-gate__lang-btn:focus {
  border-color: #9a9a9a;
  color: #322d29;
  outline: none;
}

.language-gate__lang-btn.is-active {
  border-color: #332b25;
  background: #332b25;
  color: #fff;
}

.language-gate__lang-btn.is-active:hover,
.language-gate__lang-btn.is-active:focus {
  color: #fff;
}

.language-gate__continue {
  width: 100%;
  min-height: 50px;
  margin-top: 10px;
  padding: 0 20px;
  border: 0;
  border-radius: 0;
  background: #332b25;
  color: #fff;
  font-family: inherit;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}

.language-gate__continue:hover,
.language-gate__continue:focus {
  background: #1f1c19;
  outline: none;
}

.language-gate__continue:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.language-gate__skip {
  display: inline-block;
  margin-top: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9a9a9a;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.language-gate__skip:hover,
.language-gate__skip:focus {
  color: #322d29;
  outline: none;
}

html.language-gate-active {
  overflow: hidden;
}

@media (max-width: 640px) {
  .language-gate {
    padding: 16px;
  }

  .language-gate__dialog {
    width: min(460px, calc(100vw - 32px));
  }

  .language-gate__body {
    padding: 36px 26px 30px;
  }

  .language-gate__languages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
