/* ==========================================================================
   Abutic — /contact. Builds on nx (abutic-nfc-v2.css).
   ========================================================================== */
.ct-grad { background: var(--nx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ct-rise { animation: ct-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards; animation-delay: var(--d, 0ms); }
@keyframes ct-rise { from { opacity: 0; transform: translateY(18px); } }
.ct-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

/* ---------- hero ---------- */
.ct-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--nx-nav-h, 64px) + 48px) 0 72px; margin-top: calc(var(--nx-nav-h, 64px) * -1); }
.ct-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.ct-info { padding-top: 12px; }
.ct-info h1 { margin: 10px 0 0; font-family: var(--nx-display); font-size: clamp(44px, 6vw, 76px); font-weight: 800; line-height: 0.98; letter-spacing: -0.045em; color: var(--nx-ink); }
.ct-lead { margin: 20px 0 0; max-width: 500px; font-size: clamp(16.5px, 1.6vw, 19px); line-height: 1.6; color: var(--nx-muted); }
.ct-promise { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; padding: 10px 16px 10px 12px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--nx-line), 0 14px 30px -22px rgba(15, 23, 42, 0.4); }
.ct-promise__dot { position: relative; width: 12px; height: 12px; border-radius: 50%; background: #10b981; }
.ct-promise__dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(16, 185, 129, 0.45); animation: ct-ping 2s ease-out infinite; }
@keyframes ct-ping { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.ct-promise b { display: block; font: 800 14.5px var(--nx-display); color: var(--nx-ink); }
.ct-promise small { font-size: 12.5px; color: var(--nx-muted); }

.ct-ways { display: grid; gap: 10px; margin-top: 26px; max-width: 480px; }
.ct-way { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--nx-line); text-decoration: none; transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s; }
.ct-way:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25), 0 18px 34px -22px rgba(37, 99, 235, 0.5); }
.ct-way__ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--nx-grad); color: #fff; font-size: 17px; }
.ct-way__ic--ig { background: linear-gradient(135deg, #f59e0b, #e11d48 55%, #db2777); }
.ct-way__ic--teams { background: linear-gradient(135deg, #0f172a, #334155); }
.ct-way__ic--help { background: linear-gradient(135deg, #059669, #10b981); }
.ct-way__copy { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ct-way__copy b { font: 800 15px var(--nx-display); color: var(--nx-ink); }
.ct-way__copy small { font-size: 13px; color: var(--nx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-way__go { color: #94a3b8; font-size: 13px; transition: transform 0.2s, color 0.2s; }
.ct-way:hover .ct-way__go { transform: translateX(3px); color: #2563eb; }

/* ---------- form card ---------- */
.ct-card { position: relative; border-radius: 30px; background: #fff; box-shadow: 0 0 0 1px var(--nx-line), 0 40px 90px -46px rgba(15, 23, 42, 0.55); }
.ct-card::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: 31px; background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(14, 165, 233, 0.1) 40%, transparent 70%); filter: blur(18px); opacity: 0.7; }
.ct-card__inner { padding: clamp(22px, 3.4vw, 36px); }
.ct-card__head h2 { margin: 0; font: 800 clamp(24px, 2.6vw, 30px) var(--nx-display); letter-spacing: -0.03em; color: var(--nx-ink); }
.ct-card__head p { margin: 4px 0 18px; font-size: 15px; color: var(--nx-muted); }

.ct-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ct-topic { position: relative; cursor: pointer; }
.ct-topic input { position: absolute; opacity: 0; pointer-events: none; }
.ct-topic span { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; background: #f1f5f9; color: #334155; font: 700 13.5px Inter, sans-serif; transition: background 0.15s, color 0.15s, box-shadow 0.15s; }
.ct-topic span i { font-size: 12px; color: #94a3b8; transition: color 0.15s; }
.ct-topic:hover span { background: #e8eef7; }
.ct-topic input:checked + span { background: #0b1220; color: #fff; box-shadow: 0 8px 18px -10px rgba(11, 18, 32, 0.7); }
.ct-topic input:checked + span i { color: #38bdf8; }
.ct-topic input:focus-visible + span { outline: 3px solid rgba(37, 99, 235, 0.35); outline-offset: 2px; }

.ct-form { display: grid; gap: 14px; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ct-field { position: relative; display: flex; flex-direction: column; gap: 6px; }
.ct-field[hidden] { display: none; }
.ct-field > span { font-size: 13px; font-weight: 750; color: #334155; }
.ct-field > span em { font-style: normal; font-weight: 600; color: #94a3b8; margin-left: 4px; }
.ct .ct-field input, .ct .ct-field textarea { width: 100%; height: 50px; padding: 0 15px; border: 0; border-radius: 14px; background: #f8fafc; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12); color: var(--nx-ink); font: 500 15.5px Inter, sans-serif; transition: box-shadow 0.2s, background 0.2s; margin: 0; }
.ct .ct-field textarea { height: auto; min-height: 130px; padding: 13px 15px 26px; resize: vertical; line-height: 1.55; }
.ct .ct-field input:focus, .ct .ct-field textarea:focus { outline: 0; background: #fff; box-shadow: inset 0 0 0 1.5px #2563eb, 0 0 0 4px rgba(37, 99, 235, 0.12); }
.ct .ct-field.is-bad input, .ct .ct-field.is-bad textarea { box-shadow: inset 0 0 0 1.5px #ef4444, 0 0 0 4px rgba(239, 68, 68, 0.1); }
.ct-field input::placeholder, .ct-field textarea::placeholder { color: #94a3b8; }
.ct-count { position: absolute; right: 12px; bottom: 9px; font-size: 11.5px; color: #94a3b8; font-variant-numeric: tabular-nums; }
.ct-captcha { min-height: 78px; }
.ct .ct-submit { width: 100%; height: 56px; font-size: 16px; }
.ct-submit[disabled] { opacity: 0.75; pointer-events: none; }
.ct-fine { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0; font-size: 12.5px; color: #94a3b8; }

.ct-done { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(40px, 6vw, 70px) 28px; animation: ct-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.ct-done[hidden] { display: none; }
.ct-done__ic { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 24px; background: linear-gradient(135deg, #059669, #10b981); color: #fff; font-size: 30px; box-shadow: 0 20px 40px -18px rgba(5, 150, 105, 0.8); animation: ct-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes ct-pop { from { transform: scale(0.5) rotate(-10deg); opacity: 0; } }
.ct-done h2 { margin: 18px 0 0; font: 800 28px var(--nx-display); letter-spacing: -0.03em; color: var(--nx-ink); }
.ct-done p { margin: 8px 0 24px; max-width: 36ch; font-size: 15.5px; line-height: 1.55; color: var(--nx-muted); }
.ct-done__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- quick answers ---------- */
.ct-quick { padding-top: 24px; }
.ct-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ct-tile { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--nx-line); text-decoration: none; transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s; }
.ct-tile:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.22), 0 20px 40px -26px rgba(37, 99, 235, 0.5); }
.ct-tile > span { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 10px; border-radius: 13px; background: rgba(37, 99, 235, 0.08); color: #2563eb; font-size: 16px; }
.ct-tile b { font: 800 16px var(--nx-display); color: var(--nx-ink); }
.ct-tile small { font-size: 13.5px; line-height: 1.5; color: var(--nx-muted); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .ct-grid { grid-template-columns: 1fr; }
  .ct-info { text-align: center; padding-top: 0; }
  .ct-lead { margin-left: auto; margin-right: auto; }
  .ct-ways { margin-left: auto; margin-right: auto; text-align: left; }
  .ct-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .ct-hero { padding-top: calc(var(--nx-nav-h, 64px) + 28px); padding-bottom: 40px; }
  .ct-info h1 { font-size: 44px; }
  .ct-row { grid-template-columns: 1fr; }
  .ct-card { border-radius: 24px; }
  .ct-topic span { height: 36px; padding: 0 12px; font-size: 13px; }
  .ct-captcha { transform: scale(0.94); transform-origin: left top; }
  .ct-tiles { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ct :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { font-size: 16px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-rise, .ct-promise__dot::after, .ct-done, .ct-done__ic { animation: none !important; }
}

/* Mobile centering: 1fr = minmax(auto, 1fr) grows to fit nowrap text and widens the page.
   Use minmax(0, 1fr) so the column (and everything in it) fits the viewport. */
.ct-grid, .ct-row, .ct-tiles { min-width: 0; }
.ct-grid > *, .ct-ways, .ct-way, .ct-card { min-width: 0; max-width: 100%; }
@media (max-width: 960px) {
  .ct-grid { grid-template-columns: minmax(0, 1fr); }
  .ct-ways { width: 100%; }
  .ct-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .ct-row, .ct-tiles { grid-template-columns: minmax(0, 1fr); }
  .ct-way__copy small { white-space: normal; }
  .ct-captcha { overflow: hidden; }
}
.ct { overflow-x: clip; }
