/* ==========================================================================
   URAL OPEN CUP 2027 — CONTACTS PAGE STYLES
   Editorial Brutalism: Dark Cover -> Light Paper Chapters (#eeece7, #f7f6f2) -> Dark Anchor
   ========================================================================== */

.contacts-main {
  padding: 0;
  background: #eeece7;
  color: #181818;
}

.contacts-main > .wrap {
  max-width: none;
  padding: 0;
}

.contacts-page {
  --cnt-paper: #eeece7;
  --cnt-paper-soft: #f7f6f2;
  --cnt-card: #ffffff;
  --cnt-ink: #181818;
  --cnt-muted: #585753;
  --cnt-line: #d2cfc7;
  --cnt-red: #d52225;
  --cnt-gold: #f5d548;
  --cnt-dark: #000000;
  --cnt-dark-panel: #0a0a0e;
}

/* --------------------------------------------------------------------------
   01. COVER / HERO (DARK)
   -------------------------------------------------------------------------- */
.cnt-cover {
  position: relative;
  background: var(--cnt-dark);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  padding-block: clamp(52px, 6vw, 76px) clamp(44px, 5vw, 64px);
}

.cnt-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(213, 34, 37, 0.04) 0%, transparent 60%);
  background-size: 24px 24px, 100% 100%;
  pointer-events: none;
}

.cnt-cover-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  position: relative;
  z-index: 1;
}

.cnt-cover-copy {
  max-width: 720px;
}

.cnt-overline,
.cnt-sec-kicker,
.metric-tag,
.cnt-card-kicker,
.venue-day,
.cnt-badge-static,
.cnt-card-btn,
.cnt-venue-btn,
.cnt-card-index {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cnt-overline {
  display: block;
  color: var(--cnt-red);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 16px;
}

#contacts-title {
  font-size: clamp(3.2rem, 7.8vw, 7.2rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.07em;
  margin: 0 0 20px;
  color: #ffffff;
}

#contacts-title span {
  color: var(--cnt-red);
}

.cnt-lead {
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  line-height: 1.5;
  color: #c7c5c2;
  margin: 0;
}

.cnt-cover-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.btn-cnt-primary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 18px 22px;
  background: var(--cnt-red);
  color: #ffffff !important;
  text-decoration: none !important;
  border: 2px solid var(--cnt-red);
  box-shadow: 0 8px 28px rgba(213, 34, 37, 0.32);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn-cnt-primary:hover {
  background: #ffffff;
  color: #000000 !important;
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn-cnt-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.92;
  letter-spacing: 0.06em;
}

.btn-cnt-text {
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.btn-cnt-sub {
  font-size: 0.76rem;
  opacity: 0.82;
}

.btn-cnt-secondary {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono, monospace);
  font-size: 0.76rem;
  font-weight: 700;
  color: #a4a29e !important;
  text-decoration: none !important;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.16s ease;
}

.btn-cnt-secondary:hover {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   02. KEY METRICS BAND (DARK)
   -------------------------------------------------------------------------- */
.cnt-metrics-band {
  background: var(--cnt-dark-panel);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 22px;
}

.cnt-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.cnt-metric-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 16px;
  border-left: 2px solid rgba(255, 255, 255, 0.16);
}

.cnt-metric-card:first-child {
  border-left-color: var(--cnt-red);
}

.metric-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--cnt-red);
}

.metric-value {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-note {
  font-size: 0.78rem;
  color: #8c8985;
}

/* --------------------------------------------------------------------------
   03. LIGHT PAPER SECTION — OFFICIAL CHANNELS (#eeece7)
   -------------------------------------------------------------------------- */
.cnt-paper-section {
  padding-block: clamp(64px, 8vw, 104px);
  background-color: var(--cnt-paper);
  background-image: linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 100% 116px;
  border-bottom: 1px solid var(--cnt-line);
}

.cnt-section-head {
  max-width: 680px;
  margin-bottom: 36px;
}

.cnt-sec-kicker {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--cnt-red);
  margin-bottom: 12px;
}

.cnt-section-head h2,
.cnt-bottom-copy h2 {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 0 0 12px;
  color: var(--cnt-ink);
}

.cnt-section-head h2 span {
  color: var(--cnt-red);
}

.cnt-section-head p {
  color: var(--cnt-muted);
  font-size: 1.05rem;
  margin: 0;
}

/* 3-Column Aligned Cards Grid */
.cnt-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cnt-card {
  background: var(--cnt-card);
  border: 1px solid var(--cnt-line);
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 270px;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.cnt-card:hover {
  border-color: var(--cnt-ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

.cnt-card-top {
  display: flex;
  flex-direction: column;
}

.cnt-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cnt-card-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--cnt-red);
}

.cnt-card-index {
  font-size: 0.74rem;
  font-weight: 700;
  color: #aba79f;
}

.cnt-card h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  color: var(--cnt-ink);
  word-break: break-all;
}

.cnt-card-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--cnt-muted);
  margin: 0;
}

.cnt-card-foot {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid #eeece7;
}

.cnt-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.cnt-btn-ink {
  background: var(--cnt-ink);
  color: #ffffff !important;
}

.cnt-btn-ink:hover {
  background: var(--cnt-red);
}

.cnt-btn-red {
  background: var(--cnt-red);
  color: #ffffff !important;
}

.cnt-btn-red:hover {
  background: var(--cnt-ink);
}

.cnt-btn-dark {
  background: var(--cnt-ink);
  color: var(--cnt-gold) !important;
}

.cnt-btn-dark:hover {
  background: #000000;
  color: #ffffff !important;
}

.cnt-badge-static {
  display: inline-block;
  padding: 6px 12px;
  background: #f0eee9;
  border: 1px solid #dedbd4;
  color: #78756f;
  font-size: 0.68rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   04. LIGHT SOFT PAPER SECTION — VENUES (#f7f6f2)
   -------------------------------------------------------------------------- */
.cnt-venues-section {
  padding-block: clamp(60px, 7vw, 96px);
  background: var(--cnt-paper-soft);
  border-bottom: 1px solid var(--cnt-line);
}

.cnt-venues-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cnt-venue-card {
  background: var(--cnt-card);
  border: 1px solid var(--cnt-line);
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.cnt-venue-card:hover {
  border-color: var(--cnt-ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.cnt-venue-card-top {
  display: flex;
  flex-direction: column;
}

.venue-day {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--cnt-red);
  margin-bottom: 8px;
  display: block;
}

.cnt-venue-card h4 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
  color: var(--cnt-ink);
}

.venue-addr {
  font-size: 0.88rem;
  color: #8c7210;
  font-weight: 600;
  margin: 0 0 10px;
}

.venue-info {
  font-size: 0.86rem;
  line-height: 1.48;
  color: var(--cnt-muted);
  margin: 0;
}

.venue-card-foot {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #eeece7;
}

.cnt-venue-btn {
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cnt-ink) !important;
  text-decoration: none !important;
  border-bottom: 1px solid var(--cnt-ink);
  padding-bottom: 2px;
  transition: all 0.15s ease;
}

.cnt-venue-btn:hover {
  color: var(--cnt-red) !important;
  border-color: var(--cnt-red);
}

/* --------------------------------------------------------------------------
   05. BOTTOM CTA (DARK ANCHOR)
   -------------------------------------------------------------------------- */
.cnt-bottom-cta {
  padding-block: clamp(52px, 6vw, 80px);
  background: var(--cnt-dark);
  color: #ffffff;
}

.cnt-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}

.cnt-bottom-copy {
  max-width: 600px;
}

.cnt-bottom-copy h2 {
  color: #ffffff;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  margin-top: 10px;
}

.cnt-bottom-copy p {
  color: #a09d98;
  font-size: 1rem;
  margin: 0;
}

.cnt-bottom-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 280px;
}

/* --------------------------------------------------------------------------
   06. RESPONSIVE QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1040px) {
  .cnt-cover-inner {
    grid-template-columns: 1fr;
  }
  .cnt-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cnt-cards-grid,
  .cnt-venues-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .cnt-metrics-grid {
    grid-template-columns: 1fr;
  }
  .cnt-cards-grid,
  .cnt-venues-grid {
    grid-template-columns: 1fr;
  }
  .cnt-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cnt-bottom-actions {
    width: 100%;
  }
}
