/* ============================================================
   CONTACT page + Telegram FAB
   ============================================================ */

.hf-contact__hero { padding-top: 80px; padding-bottom: 100px; }
.hf-contact__hero-grid {
  display: grid;
  grid-template-columns: 1fr 540px;
  gap: 60px;
  align-items: start;
}
@media (max-width: 1100px) {
  .hf-contact__hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
.hf-contact h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 16px 0 20px;
  font-weight: 600;
  text-wrap: balance;
}
.hf-contact .lead { font-size: 17px; line-height: 1.55; max-width: 52ch; }

/* Channels */
.hf-contact__channels {
  margin-top: 32px;
  display: flex; flex-direction: column; gap: 8px;
  max-width: 480px;
}
.hf-contact__channel {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--fg-0);
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.hf-contact__channel:hover {
  border-color: color-mix(in oklab, var(--accent) 50%, var(--line));
  background: color-mix(in oklab, var(--bg-2) 90%, var(--accent) 6%);
}
.hf-contact__ic {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--accent) 10%, var(--bg-1));
  border: 1px solid color-mix(in oklab, var(--accent) 25%, var(--line));
  border-radius: var(--radius);
  color: var(--accent);
}
.hf-contact__channel-h { font-weight: 600; font-size: 15px; letter-spacing: -0.005em; }
.hf-contact__channel .small { font-size: 11px; margin-top: 2px; }
.hf-contact__arrow { color: var(--fg-2); font-size: 16px; }

/* Meta info */
.hf-contact__meta {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
  max-width: 540px;
}
.hf-contact__meta .eyebrow { margin-bottom: 6px; }
.hf-contact__meta .mono { font-size: 13px; }

/* Form */
.hf-contact__form {
  padding: 32px;
  position: sticky;
  top: 88px;
}
@media (max-width: 1100px) { .hf-contact__form { position: static; } }
.hf-contact__form-h h3 {
  margin: 8px 0 4px;
  font-size: 24px; font-weight: 600; letter-spacing: -0.01em;
}
.hf-contact__form-h .small { font-size: 12px; }

.hf-contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
@media (max-width: 540px) {
  .hf-contact__row { grid-template-columns: 1fr; }
}
.hf-contact label {
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0;
}
.hf-contact label .eyebrow { font-size: 10px; }
.hf-contact input,
.hf-contact select,
.hf-contact textarea {
  width: 100%;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--fg-0);
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.4;
  transition: border-color .12s ease, background .12s ease;
}
.hf-contact input::placeholder,
.hf-contact textarea::placeholder { color: var(--fg-2); }
.hf-contact input:focus,
.hf-contact select:focus,
.hf-contact textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: color-mix(in oklab, var(--bg-1) 88%, var(--accent) 6%);
}
.hf-contact select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-2) 50%),
                    linear-gradient(135deg, var(--fg-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 13px) center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.hf-contact textarea { resize: vertical; min-height: 120px; }
.hf-contact__textarea { margin-top: 18px; }

.hf-contact__form-foot {
  margin-top: 22px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.hf-contact__form-foot .micro { font-size: 11px; max-width: 280px; line-height: 1.5; }
.hf-contact__form-foot .btn { gap: 6px; }

/* Sent state */
.hf-contact__sent {
  text-align: center; padding: 40px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.hf-contact__sent-ic {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  border-radius: 50%;
  color: var(--accent);
}
.hf-contact__sent h4 {
  margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em;
}
.hf-contact__sent p { margin: 0; max-width: 36ch; }

/* ============================================================
   Telegram floating action button (all pages)
   ============================================================ */
.hf-tg-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 80;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px 12px 14px;
  background: linear-gradient(135deg, #2AA3E2, #229ED9 60%, #1B7AB6);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 12px 32px -8px rgba(34,158,217,.55), 0 2px 6px rgba(0,0,0,.3);
  transition: transform .18s ease, box-shadow .18s ease;
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 500;
  border: 1px solid rgba(255,255,255,.18);
}
.hf-tg-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -10px rgba(34,158,217,.7), 0 4px 10px rgba(0,0,0,.35);
}
.hf-tg-fab__ic {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.16);
  border-radius: 50%;
  display: grid; place-items: center;
  position: relative;
}
.hf-tg-fab__ic::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4);
  animation: hf-tg-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes hf-tg-pulse {
  0%   { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}
.hf-tg-fab__label { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.hf-tg-fab__top { font-weight: 600; letter-spacing: -0.005em; }
.hf-tg-fab__sub {
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  opacity: 0.85;
}
@media (max-width: 640px) {
  .hf-tg-fab { bottom: 16px; right: 16px; padding: 10px 16px 10px 10px; }
  .hf-tg-fab__ic { width: 32px; height: 32px; }
  .hf-tg-fab__sub { display: none; }
}
