/* ============================================================
   БРИК — формы. Стили секции CTA и формы.
   Префикс ctf, канон vsh7/lk7: радиусы 4, акцент #ec6707,
   градиент 135° #22252b → #003e78, шрифты Golos Text / Onest.
   Раньше жили в <style> каждого блока — теперь в одном месте.
   ============================================================ */

.ctf-cta {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
  box-sizing: border-box;
  background: linear-gradient(135deg, #22252b 0%, #003e78 100%);
  font-family: 'Golos Text', 'Onest', sans-serif;
  color: #fff;
  padding: 72px 0;
  scroll-margin-top: 80px;
}
.ctf-cta *, .ctf-cta *::before, .ctf-cta *::after { box-sizing: border-box; }
.ctf-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.ctf-cta::after {
  content: 'ЗАЯВКА';
  position: absolute;
  top: 8px; right: -30px;
  font-size: clamp(60px, 9vw, 140px);
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(255,255,255,0.03);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
}
.ctf-wrap { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ctf-cols { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }

.ctf-sup {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  color: #ffb877;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 18px;
  padding-left: 38px;
  position: relative;
}
.ctf-sup::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 2px;
  background: #ec6707;
}
.ctf-h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.8px;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.1;
}
.ctf-lead { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.75); margin: 0 0 26px; }
.ctf-phone {
  display: block;
  font-size: 26px; font-weight: 900;
  letter-spacing: -0.5px;
  color: #fff; text-decoration: none;
  margin-bottom: 6px;
  transition: color 0.3s ease;
}
.ctf-phone:hover { color: #ffb877; }
.ctf-mail {
  display: block;
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}
.ctf-mail:hover { color: #ffb877; }
.ctf-hours { font-size: 12.5px; color: rgba(255,255,255,0.5); margin: 0 0 30px; }

.ctf-links-title {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}
.ctf-links { display: flex; flex-direction: column; gap: 2px; }
.ctf-links a {
  display: inline-block;
  font-size: 14px; font-weight: 700;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.ctf-links a:hover { color: #ffb877; padding-left: 8px; }

/* ---------- форма ---------- */
.ctf-form {
  background: rgba(20,23,29,0.82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 4px;
  padding: 30px 28px;
}
.ctf-form-title {
  font-size: 19px; font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: #fff;
  margin: 0 0 20px;
}
.ctf-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ctf-field { margin-bottom: 14px; }
.ctf-label {
  display: block;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 7px;
}
.ctf-input, .ctf-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 14.5px;
  color: #fff !important;
  background: rgba(255,255,255,0.04) !important;
  -webkit-text-fill-color: #fff;
  caret-color: #ec6707;
  outline: none;
  transition: border-color 0.3s ease;
}
.ctf-input:focus, .ctf-textarea:focus { border-color: #ec6707; }
.ctf-input::placeholder, .ctf-textarea::placeholder {
  color: rgba(255,255,255,0.4);
  -webkit-text-fill-color: rgba(255,255,255,0.4);
  opacity: 1;
}
.ctf-input:invalid { box-shadow: none; }
.ctf-input:-webkit-autofill,
.ctf-input:-webkit-autofill:hover,
.ctf-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(20,23,29,0.95) inset !important;
  caret-color: #ec6707;
  transition: background-color 5000s ease-in-out 0s;
}
.ctf-textarea { resize: none; min-height: 96px; max-height: 400px; overflow-y: hidden; }

/* honeypot */
.ctf-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* файлы */
.ctf-file-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px dashed rgba(255,255,255,0.28);
  border-radius: 4px;
  padding: 14px;
  font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.ctf-file-btn:hover { border-color: #ec6707; color: #ffb877; }
.ctf-file-input { display: none; }
.ctf-file-list { margin-top: 8px; display: flex; flex-direction: column; gap: 5px; }
.ctf-file-item {
  font-size: 12.5px;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  padding: 6px 10px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ctf-file-hint {
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.4);
  margin-top: 6px;
}

/* согласия */
.ctf-agree {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 16px 0 12px;
  cursor: pointer;
}
.ctf-agree:last-of-type { margin-bottom: 18px; }
.ctf-agree input {
  margin-top: 3px;
  width: 16px; height: 16px;
  accent-color: #ec6707;
  flex-shrink: 0;
}
.ctf-agree span { font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,0.6); }
.ctf-agree a { color: #ffb877; text-decoration: underline; }
.ctf-agree.is-error span { color: #fecaca; }
.ctf-agree.is-error input { outline: 2px solid #ef4444; outline-offset: 1px; }

.ctf-submit {
  width: 100%;
  border: none; cursor: pointer;
  font-family: inherit;
  font-size: 13px; font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #fff;
  background: #ec6707;
  border-radius: 4px;
  padding: 17px 24px;
  transition: background 0.3s ease;
}
.ctf-submit:hover { background: #d35906; }
.ctf-submit:disabled { opacity: 0.55; cursor: default; }

.ctf-status {
  display: none;
  margin-top: 14px;
  border-radius: 4px;
  padding: 13px 16px;
  font-size: 13.5px; line-height: 1.5;
}
.ctf-status.ok  { display: block; background: rgba(16,185,129,0.14); border: 1px solid #10b981; color: #a7f3d0; }
.ctf-status.err { display: block; background: rgba(239,68,68,0.14);  border: 1px solid #ef4444;  color: #fecaca; }

/* ---------- карта ---------- */
.ctf-map-strip {
  position: relative;
  margin-top: 48px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 4px;
  overflow: hidden;
  background: #1a1d23;
}
.ctf-map { display: block; width: 100%; height: 340px; border: none; filter: grayscale(0.15); }
.ctf-map-badge {
  position: absolute; bottom: 16px; left: 16px;
  background: #fff;
  border-radius: 4px;
  padding: 12px 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  display: flex; align-items: center; gap: 10px;
  max-width: 280px;
}
.ctf-map-badge-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: #003e78;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.ctf-map-badge-name { font-size: 13px; font-weight: 800; color: #22252b; line-height: 1.2; }
.ctf-map-badge-addr { font-size: 11px; color: #6b7280; margin-top: 2px; }

/* ---------- адаптив ---------- */
@media (max-width: 950px) {
  .ctf-cols { grid-template-columns: 1fr; gap: 40px; }
  .ctf-cta { padding: 56px 0; }
  .ctf-map { height: 300px; }
}
@media (max-width: 600px) {
  .ctf-grid2 { grid-template-columns: 1fr; gap: 0; }
  .ctf-form { padding: 22px 18px; }
  .ctf-map { height: 260px; }
  .ctf-map-strip { margin-top: 36px; }
  .ctf-cta { scroll-margin-top: 64px; }
  .ctf-agree span { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ctf-cta * { transition: none !important; }
}
