﻿* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.maintenance-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f4f7f5;
  background:
    radial-gradient(circle at 50% 22%, rgba(0, 0, 0, 0.84), transparent 36%),
    radial-gradient(circle at 12% 88%, rgba(65, 255, 93, 0.18), transparent 34%),
    radial-gradient(circle at 88% 88%, rgba(65, 255, 93, 0.16), transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(102, 232, 77, 0.12), transparent 38%),
    linear-gradient(180deg, #05090b 0%, #071014 58%, #06100d 100%);
  display: flex;
  flex-direction: column;
}

body.maintenance-page::before,
body.maintenance-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(90deg, rgba(102,232,77,0.18) 1px, transparent 1px),
    linear-gradient(rgba(102,232,77,0.12) 1px, transparent 1px);
  background-size: 120px 120px;
  -webkit-mask-image: radial-gradient(circle at center, transparent 0%, black 70%);
  mask-image: radial-gradient(circle at center, transparent 0%, black 70%);
}

.site-header {
  height: 76px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo {
  display: block;
  max-height: 46px;
  max-width: 180px;
  object-fit: contain;
}

.header-gear {
  width: 46px;
  height: 46px;
  border: 1.5px solid #66e84d;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #66e84d;
  box-shadow: 0 0 22px rgba(102, 232, 77, 0.18);
}

.header-gear svg {
  width: 24px;
  height: 24px;
  display: block;
}

.language-switch,
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #dce5e1;
  font-size: 20px;
  letter-spacing: 0.06em;
}

.lang-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #dce5e1;
  cursor: pointer;
  font: inherit;
  padding: 4px;
}

.lang-button.is-active {
  color: #66e84d;
}

.lang-separator {
  color: rgba(255, 255, 255, 0.5);
}

.maintenance-main {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vh, 48px) 24px;
  position: relative;
  z-index: 1;
}

.maintenance-card {
  width: min(720px, 100%);
  text-align: center;
}

.maintenance-logo-wrap {
  width: min(180px, 42vw);
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.maintenance-logo-wrap::before {
  content: "";
  position: absolute;
  inset: -24px;
  border-radius: 22px;
  background: radial-gradient(circle, rgba(5, 9, 11, 0.98) 0%, rgba(5, 9, 11, 0.84) 56%, rgba(5, 9, 11, 0) 82%);
  z-index: -1;
  pointer-events: none;
}

.maintenance-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 130px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 18px rgba(0, 0, 0, 0.65))
    drop-shadow(0 0 10px rgba(102, 232, 77, 0.10));
  border-radius: 10px;
}

.maintenance-icon {
  width: 82px;
  height: 82px;
  margin: 0 auto 28px;
  border: 2px solid #66e84d;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #66e84d;
  box-shadow: 0 0 30px rgba(102, 232, 77, 0.22);
}

.maintenance-icon svg {
  width: 38px;
  height: 38px;
  display: block;
}

.maintenance-title {
  margin: 0;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #f4f7f5;
}

.maintenance-title span {
  color: #66e84d;
}

.maintenance-subtitle {
  max-width: 680px;
  margin: 24px auto 0;
  color: #c5ceca;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.5;
}

.maintenance-status {
  margin: 26px auto 0;
  color: #dce5e1;
  font-size: clamp(15px, 1.4vw, 18px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.maintenance-status::before {
  content: "✓";
  width: 24px;
  height: 24px;
  border: 2px solid #66e84d;
  border-radius: 999px;
  color: #66e84d;
  display: inline-grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
}

.cta-group {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  min-width: 230px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, #87f263 0%, #58d93f 100%);
  color: #061008;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-secondary {
  background: rgba(5, 9, 11, 0.42);
  color: #f4f7f5;
  border: 1px solid #66e84d;
}

.site-footer {
  min-height: 72px;
  padding: 18px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  color: #b7c0bd;
  font-size: 15px;
  position: relative;
  z-index: 2;
}

.site-footer a {
  color: #b7c0bd;
  text-decoration: none;
}

.site-footer a:hover {
  color: #66e84d;
}

.footer-dot {
  color: rgba(255, 255, 255, 0.35);
}

@media (min-width: 1024px) and (min-height: 720px) {
  body.maintenance-page {
    overflow-y: hidden;
  }
}

@media (max-height: 760px) and (min-width: 900px) {
  .site-header {
    height: 68px;
  }

  .maintenance-main {
    padding: 20px 24px;
  }

  .maintenance-logo-wrap {
    width: min(148px, 34vw);
    margin-bottom: 20px;
  }

  .maintenance-logo {
    max-height: 104px;
  }

  .maintenance-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
  }

  .maintenance-icon svg {
    width: 34px;
    height: 34px;
  }

  .maintenance-title {
    font-size: clamp(38px, 4.5vw, 56px);
  }

  .maintenance-subtitle {
    margin-top: 18px;
    font-size: 18px;
  }

  .maintenance-status {
    margin-top: 20px;
  }

  .cta-group {
    margin-top: 24px;
  }

  .btn {
    min-height: 52px;
  }

  .site-footer {
    min-height: 60px;
    padding: 14px 24px;
  }
}

@media (max-width: 720px) {
  .site-header {
    height: 68px;
    padding: 0 20px;
  }

  .site-logo {
    max-height: 38px;
    max-width: 150px;
  }

  .header-gear {
    width: 38px;
    height: 38px;
  }

  .header-gear svg {
    width: 20px;
    height: 20px;
  }

  .language-switch,
  .lang-toggle {
    font-size: 16px;
    gap: 8px;
  }

  .maintenance-main {
    padding: 28px 20px 38px;
  }

  .maintenance-logo-wrap {
    width: min(150px, 48vw);
    margin-bottom: 24px;
  }

  .maintenance-logo-wrap::before {
    inset: -14px;
    border-radius: 18px;
  }

  .maintenance-logo {
    max-height: 110px;
  }

  .maintenance-icon {
    width: 74px;
    height: 74px;
    margin-bottom: 22px;
  }

  .maintenance-icon svg {
    width: 35px;
    height: 35px;
  }

  .maintenance-title {
    letter-spacing: -0.035em;
  }

  .cta-group {
    gap: 14px;
    margin-top: 24px;
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    min-width: 0;
    max-width: 360px;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    text-align: center;
    min-height: 64px;
    padding: 14px 18px;
  }

  .footer-dot {
    display: none;
  }
}
