/* ═══════════════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════════════ */

/* ── Hero ── */
.contact-hero {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: var(--sp-16) 0 var(--sp-12);
  text-align: center;
}


.contact-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: var(--sp-4);
}

.contact-hero__sub {
  color: var(--c-text-2);
  font-size: 1.0625rem;
  max-width: 48ch;
  margin: 0 auto;
}

/* ── Grid layout ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--sp-10);
  padding: var(--sp-16) 0 var(--sp-20);
  align-items: start;
}

/* ── Contact cards ── */
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.contact-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  transition: border-color var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              transform var(--t-base) var(--ease-out);
}

.contact-card:hover {
  border-color: var(--c-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.contact-card--featured {
  border-color: var(--c-teal);
  box-shadow: 0 0 0 1px var(--c-teal), var(--shadow-md);
}

.contact-card--featured:hover {
  box-shadow: 0 0 0 1px var(--c-teal), var(--shadow-lg);
}

.contact-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--c-teal-light);
  color: var(--c-teal);
}

.contact-card__body { flex: 1; min-width: 0; }

.contact-card__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: var(--sp-1);
}

.contact-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: var(--sp-1);
  font-family: var(--font-mono);
  letter-spacing: 0;
}

.contact-card__desc {
  font-size: 0.875rem;
  color: var(--c-muted);
}

.contact-card__action {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.5rem 1.125rem;
  border-radius: var(--r-full);
  background: var(--c-teal-light);
  color: var(--c-teal);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}

.contact-card__action:hover {
  background: var(--c-teal);
  color: #0a2222;
  box-shadow: 0 4px 16px rgba(46,204,204,.3);
}

/* ── Right column ── */
.contact-right {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

/* ── Community block ── */
.community-block {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
}

.community-block__header {
  margin-bottom: var(--sp-6);
}

.community-block__header h2 {
  font-size: 1.25rem;
  margin-bottom: var(--sp-2);
}

.community-block__header p {
  font-size: 0.9rem;
  color: var(--c-text-2);
}

.community-btn-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.community-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  text-decoration: none;
  border: 1.5px solid var(--c-border);
  transition: all var(--t-base) var(--ease-out);
}

.community-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.community-btn--telegram {
  background: rgba(0, 136, 204, 0.08);
  border-color: rgba(0, 136, 204, 0.25);
}
.community-btn--telegram:hover {
  background: rgba(0, 136, 204, 0.15);
  border-color: rgba(0, 136, 204, 0.5);
}

.community-btn--discord {
  background: rgba(88, 101, 242, 0.08);
  border-color: rgba(88, 101, 242, 0.25);
}
.community-btn--discord:hover {
  background: rgba(88, 101, 242, 0.15);
  border-color: rgba(88, 101, 242, 0.5);
}

.community-btn__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.community-btn--telegram .community-btn__icon {
  background: #0088cc;
  color: #fff;
}

.community-btn--discord .community-btn__icon {
  background: #5865f2;
  color: #fff;
}

.community-btn__icon svg { width: 20px; height: 20px; }

.community-btn__text { flex: 1; }

.community-btn__text strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 2px;
}

.community-btn__text span {
  font-size: 0.8rem;
  color: var(--c-muted);
}

.community-btn__arrow {
  color: var(--c-muted);
  flex-shrink: 0;
}

/* ── Office hours ── */
.office-block {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-8);
}

.office-block h3 {
  font-size: 1rem;
  margin-bottom: var(--sp-5);
}

.office-hours {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.office-hours__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--c-border-light);
  font-size: 0.875rem;
}

.office-hours__row:last-child { border-bottom: none; }

.office-hours__row span:first-child {
  color: var(--c-muted);
  font-weight: 500;
}

.office-hours__row span:last-child {
  color: var(--c-text-2);
  text-align: right;
}

/* ── Legal ── */
.legal-block {
  font-size: 0.8125rem;
  color: var(--c-muted);
  padding: var(--sp-2) 0;
}

.legal-block a {
  color: var(--c-teal);
  text-decoration: none;
}
.legal-block a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-card__action {
    width: 100%;
    justify-content: center;
  }
}
