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

html, body {
  height: 100%;
  overflow: hidden;
  font-family: system-ui, -apple-system, sans-serif;
  background: #0d1117;
  color: #fff;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
}

.bg-dots {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(80, 100, 140, 0.18) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 0;
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 26px;
}

nav img { height: 28px; display: block; }

.lang-group {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 3px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.4);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  padding: 5px 13px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  user-select: none;
  -webkit-user-select: none;
}

.lang-btn:hover { color: rgba(255,255,255,0.75); background: rgba(255,255,255,0.06); }

.badge {
  background: rgba(180, 30, 30, 0.15);
  border: 1px solid rgba(200, 40, 40, 0.25);
  color: #e06060;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 6px;
}

.wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 16px;
}

.card {
  background: rgba(16, 22, 36, 0.95);
  border: 1px solid rgba(220, 50, 50, 0.2);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  padding: 34px 38px 28px;
  width: 100%;
  max-width: 560px;
  text-align: center;
  position: relative;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: cardUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.card::before {
  content: '';
  position: absolute;
  top: -1px; left: 18%; right: 18%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #cc2222, #ff4444, #cc2222, transparent);
  border-radius: 999px;
}

.card-logo { display: flex; justify-content: flex-start; margin-bottom: 24px; }
.card-logo img { height: 44px; display: block; }

h1 {
  font-size: clamp(22px, 4.5vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #f0f0f0;
}

h1 .red {
  color: #e03333;
  position: relative;
  display: inline-block;
}

h1 .red::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: #cc2222;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: lineGrow 0.5s 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

p.sub {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  line-height: 1.75;
  max-width: 390px;
  margin: 0 auto 24px;
}

.btn-mail {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(180, 30, 30, 0.15);
  border: 1px solid rgba(200, 40, 40, 0.3);
  color: #e88;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 26px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
  margin-bottom: 26px;
}

.btn-mail:hover {
  background: rgba(200, 40, 40, 0.22);
  border-color: rgba(220, 60, 60, 0.45);
  color: #ffaaaa;
  transform: translateY(-1px);
}

.btn-mail:active { transform: scale(0.98); }
.btn-mail svg { width: 13px; height: 13px; flex-shrink: 0; stroke: currentColor; }

.social-text { font-size: 11px; color: rgba(255,255,255,0.2); margin-bottom: 12px; }

.socials { display: flex; justify-content: center; gap: 7px; flex-wrap: wrap; }

.soc {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: all 0.15s;
}

.soc:hover {
  background: rgba(180, 30, 30, 0.15);
  color: #e06060;
  border-color: rgba(200, 40, 40, 0.3);
  transform: translateY(-2px);
}

.soc:active { transform: scale(0.95); }
.soc svg { width: 15px; height: 15px; fill: currentColor; }

.card-footer {
  width: 100%;
  max-width: 560px;
  background: rgba(12, 17, 28, 0.97);
  border: 1px solid rgba(220, 50, 50, 0.15);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-radius: 0 0 16px 16px;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  animation: cardUp 0.55s 0.06s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.footer-links { display: flex; align-items: center; gap: 8px; }

.footer-links a {
  font-size: 11px;
  color: rgba(255,255,255,0.18);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: rgba(220, 80, 80, 0.7); }

.footer-links .dot {
  font-size: 11px;
  color: rgba(255,255,255,0.12);
  user-select: none;
}

.footer-copy { font-size: 11px; color: rgba(255,255,255,0.12); }

.modal-bg {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s;
  padding: 20px;
}

.modal-bg.show { opacity: 1; pointer-events: all; }

.modal {
  background: #0f1624;
  border: 1px solid rgba(200, 40, 40, 0.2);
  border-radius: 14px;
  padding: 28px;
  max-width: 320px; width: 100%;
  text-align: center;
  transform: translateY(10px) scale(0.97);
  transition: transform 0.18s;
  position: relative;
}

.modal::before {
  content: '';
  position: absolute;
  top: -1px; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #cc2222, transparent);
  border-radius: 999px;
}

.modal-bg.show .modal { transform: translateY(0) scale(1); }

.modal-icon {
  width: 36px; height: 36px;
  background: rgba(180, 30, 30, 0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}

.modal-icon svg { width: 16px; height: 16px; fill: #cc4444; }
.modal-icon.yellow { background: rgba(200, 150, 0, 0.12); }
.modal-icon.yellow svg { fill: #cc9900; }

.modal h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: #f0f0f0; }
.modal p { font-size: 12px; color: rgba(255,255,255,0.38); line-height: 1.65; margin-bottom: 20px; }
.modal p strong { color: rgba(255,255,255,0.68); font-weight: 500; }

.modal-actions { display: flex; gap: 8px; }

.modal-actions button {
  flex: 1; padding: 9px;
  border-radius: 7px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.15s; border: none;
}

.btn-cancel {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.08) !important;
}

.btn-cancel:hover { background: rgba(255,255,255,0.09); color: #fff; }
.btn-go { background: #cc2222; color: #fff; }
.btn-go:hover { background: #aa1818; }

@keyframes cardUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes lineGrow { to { transform: scaleX(1); } }

@media (max-width: 420px) {
  nav { padding: 14px 16px; }
  .card { padding: 24px 18px 22px; }
  .card-logo img { height: 36px; }
  h1 { font-size: 20px; }
  p.sub { font-size: 12px; }
  .card-footer { padding: 11px 14px; }
}

@media (max-height: 640px) {
  .card { padding: 22px 28px 20px; }
  .card-logo { margin-bottom: 16px; }
  p.sub { margin-bottom: 18px; }
  .btn-mail { margin-bottom: 18px; }
  h1 { font-size: 22px; }
}