* {
  box-sizing: border-box;
}

:root {
  --contacts-bg: #03050b;
  --contacts-panel: rgba(7, 10, 20, 0.68);
  --contacts-border: rgba(255, 255, 255, 0.14);
  --contacts-border-soft: rgba(255, 255, 255, 0.09);
  --contacts-text: #ffffff;
  --contacts-muted: rgba(255, 255, 255, 0.72);
  --contacts-dim: rgba(255, 255, 255, 0.54);
  --contacts-blue: #43a3ff;
  --contacts-pink: #ff149d;
}

@font-face {
  font-family: kamerik-3d;
  src: url(../fonts/kamerik205-heavy.woff2);
  font-weight: 900;
}

html {
  min-height: 100%;
  background: var(--contacts-bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--contacts-text);
  background: var(--contacts-bg);
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 4, 10, 0.52) 0%, rgba(2, 4, 10, 0.64) 52%, rgba(2, 4, 10, 0.94) 100%),
    rgba(8, 12, 24, 0.16);
  backdrop-filter: blur(4px) saturate(118%);
}

.contacts-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 112px 24px 56px;
}

.contacts-hero,
.contacts-grid,
.contacts-actions {
  width: min(1120px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.contacts-hero {
  margin-bottom: 24px;
}

.contacts-hero-glass {
  padding: 44px;
  border: 1px solid var(--contacts-border);
  border-radius: 18px;
  background: rgba(8, 12, 24, 0.56);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px) saturate(140%);
}

.contacts-kicker {
  margin: 0 0 10px;
  color: var(--contacts-muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contacts-hero h1 {
  margin: 0;
  color: var(--contacts-blue);
  font-family: kamerik-3d, Arial, sans-serif;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.95;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.58);
}

.contacts-hero p:last-child {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
  line-height: 1.55;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-card {
  min-height: 238px;
  padding: 24px;
  border: 1px solid var(--contacts-border);
  border-radius: 16px;
  background: var(--contacts-panel);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px) saturate(135%);
}

.contact-card-wide {
  grid-column: 1 / -1;
  min-height: 0;
}

.contact-label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border: 1px solid rgba(67, 163, 255, 0.22);
  border-radius: 999px;
  color: var(--contacts-blue);
  background: rgba(67, 163, 255, 0.1);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-card h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.45rem;
  line-height: 1.2;
}

.contact-card p {
  max-width: 520px;
  margin: 0 0 22px;
  color: var(--contacts-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.contacts-page a {
  color: var(--contacts-blue);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.contacts-page a:hover {
  color: var(--contacts-pink);
}

.contact-card > a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(67, 163, 255, 0.26);
  border-radius: 10px;
  background: rgba(67, 163, 255, 0.08);
  font-weight: 900;
}

.contact-card > a:hover {
  border-color: rgba(255, 20, 157, 0.44);
  background: rgba(255, 20, 157, 0.08);
}

.email-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.email-list a {
  display: grid;
  gap: 6px;
  min-height: 82px;
  padding: 16px;
  border: 1px solid var(--contacts-border-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.email-list a span {
  color: var(--contacts-dim);
  font-size: 0.86rem;
  font-weight: 800;
}

.email-list a:hover {
  color: #fff;
  border-color: rgba(67, 163, 255, 0.42);
  background: rgba(255, 255, 255, 0.075);
}

.contacts-actions {
  display: flex;
  margin-top: 24px;
}

.contacts-page .back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(67, 163, 255, 0.28);
  border-radius: 12px;
  color: #fff;
  background: rgba(7, 10, 20, 0.68);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px) saturate(130%);
  font-weight: 800;
  line-height: 1;
}

.contacts-page .back-link:hover {
  color: #fff;
  border-color: rgba(67, 163, 255, 0.62);
  background: rgba(10, 16, 30, 0.78);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.3),
    0 0 26px rgba(67, 163, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

@media (max-width: 760px) {
  .contacts-page {
    padding: 92px 14px 38px;
  }

  .contacts-hero-glass,
  .contact-card {
    padding: 22px;
    border-radius: 14px;
  }

  .contacts-grid,
  .email-list {
    grid-template-columns: 1fr;
  }

  .contacts-hero p:last-child {
    font-size: 1rem;
  }

  .contacts-actions,
  .contacts-page .back-link {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .contacts-hero h1 {
    font-size: 2.75rem;
  }
}
