/* =====================================================
   SearchForce landing — responsive overrides
   Breakpoints: 1100 | 1024 | 768 | 480 | 400
   All rules use !important to override inline styles.
   ===================================================== */

/* ─── Smooth scroll ─────────────────────────────────── */
html { scroll-behavior: smooth; }

/* ─── CTA text toggle (full vs short) ──────────────── */
.sf-cta-short { display: none; }

/* ─── 1100px: small desktop / large tablet landscape ── */
@media (max-width: 1100px) {
  .sf-hero-grid {
    grid-template-columns: 1fr !important;
  }
  .sf-hero-widget {
    display: none !important;
  }
  .sf-hero-left {
    max-width: 680px !important;
  }
}

/* ─── 1024px: tablet landscape ─────────────────────── */
@media (max-width: 1024px) {
  .sf-how-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    margin-bottom: 48px !important;
  }
  .sf-pricing-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .sf-demo-std-callout,
  .sf-demo-features {
    display: none !important;
  }
  .sf-demo-phones {
    gap: 40px !important;
  }
}

/* ─── 768px: tablet portrait / large phone ──────────── */
@media (max-width: 768px) {
  .sf-root         { --pad: 72px !important; }
  .sf-header-nav   { display: none !important; }
  .sf-header-login { display: none !important; }
  .sf-header-inner { padding: 0 20px !important; }
  .sf-container    { padding-left: 20px !important; padding-right: 20px !important; }

  .sf-h1     { font-size: 48px !important; }
  .sf-h2     { font-size: 36px !important; line-height: 1.15 !important; }
  .sf-h2-md  { font-size: 32px !important; }
  .sf-h2-sm  { font-size: 28px !important; }
  .sf-cta-h2 { font-size: 40px !important; }

  .sf-metrics-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .sf-metric-mid {
    border-left: none !important;
    border-right: none !important;
    border-top: 1px solid #EEF0F3 !important;
    border-bottom: 1px solid #EEF0F3 !important;
    padding: 28px 0 !important;
  }

  .sf-demo-phones {
    flex-direction: column !important;
    gap: 48px !important;
    align-items: center !important;
  }
  .sf-demo-std-callout,
  .sf-demo-features { display: none !important; }

  .sf-calc-grid   { grid-template-columns: 1fr !important; }
  .sf-calc-input  { padding: 32px !important; }
  .sf-calc-result { padding: 32px !important; }

  .sf-case-grid  { grid-template-columns: 1fr !important; }
  .sf-case-left  { padding: 40px 36px !important; }
  .sf-case-right { padding: 40px 36px !important; }

  .sf-pricing-grid   { grid-template-columns: 1fr !important; }
  .sf-trust-grid     { grid-template-columns: 1fr !important; gap: 40px !important; }
  .sf-guarantee-grid { grid-template-columns: 1fr !important; }
  .sf-guarantee-wrap { padding: 40px 28px !important; }

  .sf-footer-inner { flex-direction: column !important; gap: 24px !important; }
}

/* ─── 480px: phones ────────────────────────────────── */
@media (max-width: 480px) {
  .sf-root         { --pad: 56px !important; }
  .sf-container    { padding-left: 16px !important; padding-right: 16px !important; }
  .sf-header-inner { padding: 0 16px !important; }

  .sf-btn-header.sf-header-cta {
    font-size: 13px !important;
    padding: 0 16px !important;
    height: 40px !important;
    white-space: nowrap !important;
  }
  .sf-cta-full  { display: none !important; }
  .sf-cta-short { display: inline !important; }
  .sf-billing-note { display: none !important; }

  #calc-cta-btn {
    font-size: 16px !important;
    height: auto !important;
    padding: 18px 24px !important;
    line-height: 1.4 !important;
    border-radius: 18px !important;
    text-align: center !important;
  }

  .sf-h1     { font-size: 38px !important; }
  .sf-h2     { font-size: 28px !important; }
  .sf-h2-md  { font-size: 26px !important; }
  .sf-h2-sm  { font-size: 24px !important; }
  .sf-cta-h2 { font-size: 34px !important; line-height: 1.15 !important; }

  .sf-hero-btns {
    flex-direction: column !important;
  }
  .sf-hero-btns a {
    height: 58px !important;
    font-size: 18px !important;
    padding: 0 28px !important;
    border-radius: 14px !important;
  }

  .sf-calc-input  { padding: 24px 20px !important; }
  .sf-calc-result { padding: 24px 20px !important; }

  .sf-case-left  { padding: 32px 24px !important; }
  .sf-case-right { padding: 32px 24px !important; }

  .sf-guarantee-wrap { padding: 32px 20px !important; }
  .sf-guarantee-card { padding: 20px !important; }

  .sf-cta-btns {
    flex-direction: column !important;
    align-items: center !important;
  }
  .sf-cta-btns > a,
  .sf-cta-btns > div {
    width: 100% !important;
    max-width: 380px !important;
  }
  .sf-cta-btns a {
    height: 64px !important;
    font-size: 18px !important;
    padding: 0 24px !important;
    border-radius: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }
}

/* ─── Trial Modal ─────────────────────────────────── */
#sf-trial-overlay.sf-open { display: flex !important; }

#sf-trial-modal { animation: sf-modal-in .22s cubic-bezier(.32,.72,0,1) both; }
@keyframes sf-modal-in {
  from { opacity: 0; transform: scale(.95) translateY(14px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.sf-trial-input::placeholder { color: #C2C7D0 !important; opacity: 1 !important; }
.sf-trial-input:focus {
  border-color: #0057FF !important;
  box-shadow: 0 0 0 3px rgba(0,87,255,.12) !important;
}
.sf-trial-input.sf-err {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,.1) !important;
}

#sf-trial-submit:hover:not(:disabled) {
  background: #0047d1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 24px rgba(0,87,255,.36) !important;
}
#sf-trial-submit:active:not(:disabled) { transform: translateY(0) !important; }
#sf-trial-submit:disabled { opacity: .65 !important; cursor: not-allowed !important; transform: none !important; }
#sf-trial-close:hover { background: #EEF2F7 !important; color: #374151 !important; }
#sf-trial-done:hover { background: #EEF2F7 !important; }

@media (max-width: 540px) {
  #sf-trial-overlay { padding: 0 !important; align-items: flex-end !important; }
  #sf-trial-modal { border-radius: 20px 20px 0 0 !important; max-height: 92vh !important; }
  #sf-trial-content { padding: 28px 24px !important; }
  #sf-trial-success { padding: 40px 24px !important; }
}

/* ─── Demo Booking Modal ──────────────────────────── */
#sf-demo-overlay.sf-open { display: flex !important; }

#sf-demo-modal { animation: sf-modal-in .22s cubic-bezier(.32,.72,0,1) both; }

.sf-demo-input::placeholder { color: #C2C7D0 !important; opacity: 1 !important; }
.sf-demo-input:focus {
  border-color: #0057FF !important;
  box-shadow: 0 0 0 3px rgba(0,87,255,.12) !important;
}
.sf-demo-input.sf-err {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,.1) !important;
}

/* Day strip */
.sf-demo-day {
  flex: 0 0 auto; width: 66px; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 6px; border: 1.5px solid #E2E5EA; border-radius: 14px;
  background: #fff; cursor: pointer; font-family: 'Inter', system-ui, sans-serif;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.sf-demo-day:hover { border-color: #B9C6FF; background: #F7F9FF; }
.sf-demo-day.sf-demo-day-sel { border-color: #0057FF; background: #F2F6FF; box-shadow: 0 0 0 3px rgba(0,87,255,.12); }
.sf-demo-day .sf-demo-day-wd { font-size: 11px; font-weight: 600; color: #9CA3B4; text-transform: capitalize; }
.sf-demo-day .sf-demo-day-num { font-size: 20px; font-weight: 800; color: #0F1629; line-height: 1.1; }
.sf-demo-day .sf-demo-day-mo { font-size: 11px; color: #9CA3B4; }
.sf-demo-day.sf-demo-day-sel .sf-demo-day-wd,
.sf-demo-day.sf-demo-day-sel .sf-demo-day-mo { color: #0057FF; }

/* Time pills */
.sf-demo-time {
  flex: 0 0 auto; padding: 9px 16px; border: 1.5px solid #E2E5EA; border-radius: 10px;
  background: #fff; color: #0F1629; font-size: 15px; font-weight: 600; cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.sf-demo-time:hover { border-color: #B9C6FF; background: #F7F9FF; }
.sf-demo-time.sf-demo-time-sel { border-color: #0057FF; background: #0057FF; color: #fff; box-shadow: 0 0 0 3px rgba(0,87,255,.14); }
#sf-demo-picker.sf-err #sf-demo-days { outline: 1.5px solid #FCA5A5; outline-offset: 4px; border-radius: 12px; }

#sf-demo-days::-webkit-scrollbar { height: 6px; }
#sf-demo-days::-webkit-scrollbar-thumb { background: #E2E5EA; border-radius: 3px; }

/* ─── Login Modal (заглушка) ──────────────────────── */
#sf-login-overlay.sf-open { display: flex !important; }
#sf-login-modal { animation: sf-modal-in .22s cubic-bezier(.32,.72,0,1) both; }
.sf-login-input::placeholder { color: #C2C7D0 !important; opacity: 1 !important; }
.sf-login-input:focus {
  border-color: #0057FF !important;
  box-shadow: 0 0 0 3px rgba(0,87,255,.12) !important;
}
.sf-login-input.sf-err {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,.1) !important;
}
#sf-login-submit:hover:not(:disabled) {
  background: #0047d1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 24px rgba(0,87,255,.36) !important;
}
#sf-login-submit:active:not(:disabled) { transform: translateY(0) !important; }
#sf-login-close:hover { background: #EEF2F7 !important; color: #374151 !important; }

@media (max-width: 540px) {
  #sf-login-overlay { padding: 0 !important; align-items: flex-end !important; }
  #sf-login-modal { border-radius: 20px 20px 0 0 !important; max-height: 92vh !important; }
}

#sf-demo-submit:hover:not(:disabled) {
  background: #0047d1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 24px rgba(0,87,255,.36) !important;
}
#sf-demo-submit:active:not(:disabled) { transform: translateY(0) !important; }
#sf-demo-submit:disabled { opacity: .65 !important; cursor: not-allowed !important; transform: none !important; }
#sf-demo-close:hover { background: #EEF2F7 !important; color: #374151 !important; }
#sf-demo-done:hover { background: #EEF2F7 !important; }

@media (max-width: 540px) {
  #sf-demo-overlay { padding: 0 !important; align-items: flex-end !important; }
  #sf-demo-modal { border-radius: 20px 20px 0 0 !important; max-height: 92vh !important; }
  #sf-demo-content { padding: 28px 24px !important; }
  #sf-demo-success { padding: 40px 24px !important; }
}

/* ─── 400px: tiny phones ───────────────────────────── */
@media (max-width: 400px) {
  .sf-btn-header.sf-header-cta {
    font-size: 12px !important;
    padding: 0 12px !important;
    height: 36px !important;
  }
}
