:root {
  color-scheme: dark;
  --accent: #fdb813;
  --accent-soft: rgba(253, 184, 19, 0.2);
  --surface: rgba(7, 7, 7, 0.42);
  --surface-strong: rgba(6, 6, 6, 0.78);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.8);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background: #050505;
  color: var(--text);
}

.p6-body {
  min-height: 100vh;
}

.p6-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background-color: #060606;
  background-image: var(--desktop-bg);
  background-position: center center;
  background-size: cover;
}

.p6-shell-static::before,
.p6-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(253, 184, 19, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.72) 100%);
}

.p6-video-layer,
.p6-overlay,
.p6-content {
  position: relative;
  z-index: 1;
}

.p6-video-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.p6-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p6-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
}

.p6-content {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 56px 0 36px;
}

.p6-content-compact {
  justify-content: center;
}

.p6-logo-link {
  display: inline-flex;
  max-width: 430px;
}

.p6-logo {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.45));
}

.p6-hero {
  text-align: center;
}

.p6-hero h1 {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.44);
}

.p6-hero strong {
  color: var(--accent);
  margin: 0 6px;
}

.p6-country-grid {
  width: min(820px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.p6-country-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 18px 18px;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.62), rgba(8, 8, 8, 0.32));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.p6-country-card:hover {
  transform: translateY(-4px);
  border-color: rgba(253, 184, 19, 0.6);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.52);
}

.p6-country-card img {
  width: min(100%, 180px);
  height: auto;
  display: block;
}

.p6-country-card span {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.p6-country-card[hidden] {
  display: none;
}

.p6-promo {
  width: min(1020px, 100%);
}

.p6-promo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.p6-footer {
  width: 100%;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.p6-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.p6-footer-links a {
  position: relative;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.p6-footer-links a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%);
}

.p6-copyright {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.p6-copyright img {
  width: 28px;
  height: auto;
  flex: 0 0 auto;
}

.p6-not-found {
  width: min(460px, 100%);
  padding: 42px 34px;
  text-align: center;
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.p6-not-found h1 {
  margin: 0 0 10px;
  font-size: clamp(58px, 10vw, 90px);
  color: var(--accent);
}

.p6-not-found p {
  margin: 0 0 22px;
  color: var(--muted);
}

.p6-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd15a 0%, #fdb813 100%);
  color: #171717;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 880px) {
  .p6-content {
    width: min(100% - 28px, 720px);
    gap: 22px;
    padding: 32px 0 24px;
  }

  .p6-country-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p6-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .p6-copyright {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 600px) {
  .p6-shell {
    background-image: var(--mobile-bg);
  }

  .p6-video-layer {
    display: none;
  }

  .p6-overlay {
    background: rgba(0, 0, 0, 0.48);
  }

  .p6-country-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .p6-country-card {
    padding: 18px 14px 16px;
    border-radius: 16px;
  }

  .p6-country-card img {
    width: min(100%, 170px);
  }

  .p6-country-card span {
    font-size: 18px;
  }

  .p6-footer-links {
    gap: 8px 12px;
  }

  .p6-footer-links a {
    font-size: 13px;
  }

  .p6-footer-links a:not(:last-child)::after {
    display: none;
  }
}
