*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --border: #2a2a2a;
  --text: #f5f5f5;
  --muted: #888;
  --accent: #ffffff;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Montserrat", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 48px 48px 24px;
}

.header {
  display: flex;
  justify-content: center;
  margin-bottom: 44px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  border: 2px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.brand-name {
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main {
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(340px, 420px);
  gap: 48px 64px;
  align-items: start;
  justify-content: start;
}

.hero {
  width: 100%;
  max-width: 680px;
}

.courier-btn {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.courier-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.courier-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.courier-img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.contacts {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  width: 100%;
  min-height: 320px;
}

.contacts-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.links-list:empty + .links-empty {
  display: block;
}

.links-empty {
  display: none;
  font-size: 1rem;
  color: var(--muted);
}

.contact-link {
  display: block;
  padding: 20px 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.12rem;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.contact-link:hover {
  background: #1a1a1a;
  border-color: #444;
  transform: translateX(4px);
}

.contact-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 960px) {
  .page {
    padding: 56px 20px 40px;
  }

  .main {
    grid-template-columns: 1fr;
    gap: 32px;
    justify-content: stretch;
  }

  .hero {
    max-width: none;
  }

  .contacts {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .contacts {
    order: 2;
  }

  .hero {
    order: 1;
  }
}
