/* ================= ВКЛАДКА «СВЯЗЬ С НАМИ» ================= */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.contact-card {
  position: relative;
  min-height: 230px;
  padding: 24px 26px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-card:hover { transform: translate3d(0, -4px, 0); }

/* Фирменные глубокие оттенки в ночной теме */
.contact-card.c-gmail {
  background: linear-gradient(155deg, rgba(234, 67, 53, 0.14) 0%, rgba(22, 12, 20, 0.94) 100%);
  border-color: rgba(234, 67, 53, 0.28);
}
.contact-card.c-vk {
  background: linear-gradient(155deg, rgba(0, 119, 255, 0.15) 0%, rgba(12, 18, 34, 0.94) 100%);
  border-color: rgba(0, 119, 255, 0.3);
}
.contact-card.c-tg {
  background: linear-gradient(155deg, rgba(42, 171, 238, 0.15) 0%, rgba(11, 22, 34, 0.94) 100%);
  border-color: rgba(42, 171, 238, 0.3);
}

/* Фирменные пастельно-насыщенные оттенки в утренней теме (ничего не сливается с белым) */
body.theme-morning .contact-card.c-gmail {
  background: linear-gradient(155deg, #fff5f5 0%, #ffe4e6 100%);
  border-color: rgba(225, 29, 72, 0.3);
  box-shadow: 0 10px 26px rgba(225, 29, 72, 0.1);
}
body.theme-morning .contact-card.c-vk {
  background: linear-gradient(155deg, #f0f7ff 0%, #dbeafe 100%);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.1);
}
body.theme-morning .contact-card.c-tg {
  background: linear-gradient(155deg, #f0f9ff 0%, #e0f2fe 100%);
  border-color: rgba(2, 132, 199, 0.3);
  box-shadow: 0 10px 26px rgba(2, 132, 199, 0.1);
}

.contact-card.c-gmail:hover { border-color: #ea4335; }
.contact-card.c-vk:hover    { border-color: #0077ff; }
.contact-card.c-tg:hover    { border-color: #2aabee; }

.contact-icon-wrap {
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.c-gmail .contact-icon-wrap { background: rgba(234, 67, 53, 0.16); border: 1px solid rgba(234, 67, 53, 0.42); color: #ff7b72; }
.c-vk .contact-icon-wrap    { background: rgba(0, 119, 255, 0.16); border: 1px solid rgba(0, 119, 255, 0.42); color: #58a6ff; }
.c-tg .contact-icon-wrap    { background: rgba(42, 171, 238, 0.16); border: 1px solid rgba(42, 171, 238, 0.42); color: #56ccf2; }

body.theme-morning .c-gmail .contact-icon-wrap { background: #fee2e2; color: #dc2626; border-color: rgba(220, 38, 38, 0.35); }
body.theme-morning .c-vk .contact-icon-wrap    { background: #dbeafe; color: #1d4ed8; border-color: rgba(29, 78, 216, 0.35); }
body.theme-morning .c-tg .contact-icon-wrap    { background: #e0f2fe; color: #0284c7; border-color: rgba(2, 132, 199, 0.35); }

.contact-label {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px;
}

.contact-handle {
  display: inline-block; font-size: 1.05rem; font-weight: 700;
  color: var(--text); text-decoration: none; word-break: break-all;
  transition: color 0.25s ease;
}
.c-gmail .contact-handle:hover { color: #ef4444; }
.c-vk .contact-handle:hover    { color: #2563eb; }
.c-tg .contact-handle:hover    { color: #0284c7; }

.contact-write-btn {
  margin-top: 20px; width: 100%; padding: 11px 18px; border-radius: 12px;
  font-family: inherit; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em;
  color: #fff; text-decoration: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
}
.contact-write-btn:hover { transform: translate3d(0, -2px, 0); filter: brightness(1.08); }

.c-gmail .contact-write-btn {
  background: linear-gradient(135deg, #ea4335 0%, #c62828 100%);
  border: 1px solid rgba(255, 138, 128, 0.45);
  box-shadow: 0 6px 18px rgba(234, 67, 53, 0.28);
}
.c-vk .contact-write-btn {
  background: linear-gradient(135deg, #0077ff 0%, #1d4ed8 100%);
  border: 1px solid rgba(96, 165, 250, 0.45);
  box-shadow: 0 6px 18px rgba(0, 119, 255, 0.28);
}
.c-tg .contact-write-btn {
  background: linear-gradient(135deg, #2aabee 0%, #0284c7 100%);
  border: 1px solid rgba(103, 212, 255, 0.45);
  box-shadow: 0 6px 18px rgba(42, 171, 238, 0.28);
}

@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
