/* ================================================================
   SAPCHENKO STUDIO — Custom Footer v1.0
   ================================================================ */

/* ── Hide old TagDiv footer template (ID 215) ── */
body .td-footer-template-wrap,
body .td-a-rec-id-footer,
body #scf-active + .td-footer-template-wrap,
body.scf-active-footer .td-footer-template-wrap {
    display: none !important;
}

/* Newspaper theme specific footer wrappers */
body .tdc-footer-template,
body.tdc-footer-template .td-main-content-wrap + div,
body footer.td-footer-wrap {
    display: none !important;
}

/* ── Variables ── */
:root {
  --scf-bg:         #0f172a;
  --scf-bg-2:       #1e293b;
  --scf-text:       #e2e8f0;
  --scf-text-dim:   #94a3b8;
  --scf-accent:     #FF4B5C;
  --scf-accent-2:   #00C896;
  --scf-blue:       #3B82F6;
  --scf-max:        #00B5FF;
  --scf-border:     rgba(255,255,255,0.08);
}

#scf-footer {
    background: var(--scf-bg);
    color: var(--scf-text);
    padding: 72px 24px 28px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    position: relative;
    margin-top: 60px;
}

#scf-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--scf-accent) 0%, var(--scf-blue) 50%, var(--scf-accent-2) 100%);
    opacity: 0.7;
}

#scf-footer * { box-sizing: border-box; }

.scf-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.scf-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 0.8fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--scf-border);
}

/* ── Brand column ── */
.scf-logo {
    display: inline-block;
    line-height: 0;
    margin-bottom: 20px;
}

.scf-logo img {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.scf-tagline {
    font-size: 14px;
    color: var(--scf-text-dim);
    margin: 0;
    max-width: 320px;
}

/* ── Column title ── */
.scf-col-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--scf-text);
    margin: 0 0 20px 0;
    position: relative;
    padding-bottom: 10px;
}

.scf-col-title::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 28px;
    height: 2px;
    background: var(--scf-accent);
    border-radius: 2px;
}

/* ── Messenger buttons ── */
.scf-messengers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scf-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--scf-bg-2);
    border: 1px solid var(--scf-border);
    border-radius: 12px;
    color: var(--scf-text);
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.scf-btn:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--scf-accent);
    transform: translateY(-1px);
    color: var(--scf-text);
    text-decoration: none;
}

.scf-btn-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.scf-btn-icon svg {
    width: 20px;
    height: 20px;
}

.scf-btn-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.scf-btn-sub {
    font-size: 11px;
    color: var(--scf-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.scf-btn-main {
    font-size: 15px;
    font-weight: 600;
    color: var(--scf-text);
}

/* Phone accent */
.scf-btn-phone .scf-btn-icon {
    background: linear-gradient(135deg, var(--scf-accent) 0%, #c1274a 100%);
    color: #fff;
}
.scf-btn-phone:hover { border-color: var(--scf-accent); }

/* Max accent */
.scf-btn-max .scf-btn-icon {
    background: linear-gradient(135deg, var(--scf-max) 0%, #0077cc 100%);
    color: #fff;
}
.scf-btn-max:hover { border-color: var(--scf-max); }

/* Telegram accent */
.scf-btn-tg .scf-btn-icon {
    background: linear-gradient(135deg, #29b6f6 0%, #0288d1 100%);
    color: #fff;
}
.scf-btn-tg:hover { border-color: #29b6f6; }

/* ── Nav column ── */
.scf-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scf-nav-list a {
    color: var(--scf-text-dim);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease, padding 0.2s ease;
    position: relative;
    display: inline-block;
}

.scf-nav-list a:hover {
    color: var(--scf-text);
    padding-left: 6px;
}

.scf-nav-list a::before {
    content: "→";
    position: absolute;
    left: -14px;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: var(--scf-accent);
}

.scf-nav-list a:hover::before { opacity: 1; }

/* ── Bottom bar ── */
.scf-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.scf-legal {
    font-size: 12px;
    color: var(--scf-text-dim);
    letter-spacing: 0.01em;
}

.scf-legal .scf-sep {
    margin: 0 8px;
    opacity: 0.5;
}

.scf-legal-links a {
    color: var(--scf-text-dim);
    font-size: 12px;
    text-decoration: none;
    border-bottom: 1px dashed var(--scf-border);
    padding-bottom: 1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.scf-legal-links a:hover {
    color: var(--scf-text);
    border-color: var(--scf-text-dim);
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .scf-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .scf-brand { text-align: left; }
    #scf-footer { padding: 56px 20px 24px; }
    .scf-bottom { flex-direction: column; align-items: flex-start; }
    .scf-legal .scf-sep { display: inline-block; margin: 0 6px; }
}

@media (max-width: 480px) {
    .scf-btn-main { font-size: 14px; }
    .scf-tagline { font-size: 13px; }
    .scf-legal { font-size: 11px; }
    .scf-legal .scf-sep { opacity: 0; margin: 0 2px; }
    .scf-legal span { display: block; margin-bottom: 2px; }
}

/* ================================================================
   Contacts page — Messengers block
   ================================================================ */
.scf-contact-block {
    max-width: 1100px;
    margin: 40px auto 60px;
    padding: 0 24px;
}

.scf-contact-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
    font-family: Inter, -apple-system, sans-serif;
    letter-spacing: -0.01em;
    text-align: center;
}

.scf-contact-lead {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 36px;
    text-align: center;
}

.scf-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.scf-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 28px 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.scf-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.scf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    border-color: transparent;
    text-decoration: none;
}

.scf-card:hover::before { opacity: 1; }

.scf-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.scf-card-icon svg { width: 24px; height: 24px; }

.scf-card-phone .scf-card-icon { background: linear-gradient(135deg, #FF4B5C 0%, #c1274a 100%); }
.scf-card-max .scf-card-icon  { background: linear-gradient(135deg, #00B5FF 0%, #0077cc 100%); }
.scf-card-tg .scf-card-icon    { background: linear-gradient(135deg, #29b6f6 0%, #0288d1 100%); }

.scf-card-phone:hover { border-color: #FF4B5C; }
.scf-card-max:hover   { border-color: #00B5FF; }
.scf-card-tg:hover    { border-color: #29b6f6; }

.scf-card-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.scf-card-value {
    font-size: 18px;
    color: #0f172a;
    font-weight: 700;
}

@media (max-width: 760px) {
    .scf-contact-grid { grid-template-columns: 1fr; gap: 14px; }
    .scf-contact-title { font-size: 26px; }
    .scf-card { padding: 22px 20px; }
}

/* ================================================================
   Blog CTA — призыв к действию внутри статей
   ================================================================ */
.scf-blog-cta {
    margin: 48px 0;
    padding: 0;
}

.scf-blog-cta-inner {
    position: relative;
    padding: 36px 40px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    color: #e2e8f0;
    overflow: hidden;
}

.scf-blog-cta-inner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF4B5C 0%, #3B82F6 50%, #00C896 100%);
}

.scf-blog-cta-badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(255,75,92,0.15);
    color: #FF4B5C;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 20px;
    margin-bottom: 16px;
}

.scf-blog-cta-title {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 0 10px !important;
    line-height: 1.3 !important;
}

.scf-blog-cta-text {
    font-size: 15px !important;
    color: #94a3b8 !important;
    margin: 0 0 24px !important;
    line-height: 1.6 !important;
    max-width: 600px;
}

.scf-blog-cta-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.scf-blog-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    cursor: pointer;
}

.scf-blog-cta-primary {
    background: #FF4B5C;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(255,75,92,0.3);
}

.scf-blog-cta-primary:hover {
    background: #e03444;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,75,92,0.4);
    color: #fff !important;
}

.scf-blog-cta-outline {
    background: transparent;
    color: #e2e8f0 !important;
    border: 1.5px solid rgba(255,255,255,0.2);
}

.scf-blog-cta-outline:hover {
    border-color: #FF4B5C;
    color: #FF4B5C !important;
    background: rgba(255,75,92,0.05);
}

@media (max-width: 600px) {
    .scf-blog-cta-inner { padding: 28px 24px; }
    .scf-blog-cta-title { font-size: 19px !important; }
    .scf-blog-cta-buttons { flex-direction: column; }
    .scf-blog-cta-btn { text-align: center; justify-content: center; }
}

/* ================================================================
   Contacts page — Modern form redesign
   ================================================================ */

/* Скрыть старый блок "Позвоните:" (уже есть в "Быстрая связь") */
body.page-id-140 .tdm-title:has(+ .tdm-descr) { }
body.page-id-140 h3.tdm-title-sm { display: none !important; }

/* Переоформить форму Contact Form 7 */
body.page-id-140 .wpcf7 {
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(15, 23, 42, 0.04);
    position: relative;
}

body.page-id-140 .wpcf7::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(90deg, #FF4B5C 0%, #3B82F6 50%, #00C896 100%);
}

body.page-id-140 .wpcf7 p {
    margin-bottom: 20px !important;
}

body.page-id-140 .wpcf7 label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 6px !important;
    display: block !important;
}

body.page-id-140 .wpcf7 input[type="text"],
body.page-id-140 .wpcf7 input[type="email"],
body.page-id-140 .wpcf7 input[type="tel"],
body.page-id-140 .wpcf7 textarea {
    width: 100% !important;
    padding: 14px 18px !important;
    font-size: 15px !important;
    font-family: Inter, sans-serif !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    box-shadow: none !important;
}

body.page-id-140 .wpcf7 input:focus,
body.page-id-140 .wpcf7 textarea:focus {
    border-color: #FF4B5C !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(255, 75, 92, 0.1) !important;
}

body.page-id-140 .wpcf7 textarea {
    min-height: 120px !important;
    resize: vertical !important;
}

body.page-id-140 .wpcf7 input[type="submit"] {
    width: 100% !important;
    padding: 16px 32px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    font-family: Inter, sans-serif !important;
    color: #fff !important;
    background: linear-gradient(135deg, #FF4B5C 0%, #e03444 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 16px rgba(255, 75, 92, 0.3) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
}

body.page-id-140 .wpcf7 input[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(255, 75, 92, 0.4) !important;
    background: linear-gradient(135deg, #e03444 0%, #c1274a 100%) !important;
}

/* Скрыть старый заголовок "Обратная связь" и "Позвоните:" */
body.page-id-140 .tdb-title[class*="Обратн"],
body.page-id-140 .tdi_266,
body.page-id-140 .tdi_270 {
    display: none !important;
}

/* Стилизовать заголовок формы если остался */
body.page-id-140 .wpcf7-form > p:first-child {
    font-size: 13px !important;
    color: #94a3b8 !important;
}

@media (max-width: 600px) {
    body.page-id-140 .wpcf7 {
        padding: 32px 24px;
        margin: 0 16px;
    }
}

/* ================================================================
   Contacts page — Sales sections (Trust / Steps / FAQ)
   Соответствует общему дизайн-языку: --sap-red #FF4B5C, скруглённые
   карточки, плотные тени, типографика Epilogue/Outfit
   ================================================================ */
.scf-trust,
.scf-steps,
.scf-faq {
    --sap-red: #FF4B5C;
    --sap-red-dark: #c1274a;
    --sap-ink: #0f172a;
    --sap-mute: #64748b;
    --sap-card: #ffffff;
    --sap-bg-soft: #f8fafc;
    --sap-border: #e2e8f0;
    max-width: 1180px;
    margin: 0 auto 80px;
    padding: 0 24px;
    color: var(--sap-ink);
}

.scf-trust-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--sap-red);
    margin-bottom: 12px;
    padding: 6px 12px;
    background: rgba(255, 75, 92, 0.08);
    border-radius: 100px;
}

/* ───── Trust block ───── */
.scf-trust-inner {
    display: grid;
    grid-template-columns: minmax(280px, 380px) 1fr;
    gap: 56px;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f6 100%);
    border: 1px solid var(--sap-border);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.15);
}

.scf-trust-photo {
    position: relative;
    aspect-ratio: 1 / 1;
    background: transparent;
    width: 100%;
    margin: 0 auto;
}

.scf-trust-photo::before {
    content: "";
    position: absolute;
    inset: 4% 4% 4% 4%;
    border-radius: 50%;
    background: var(--sap-red);
    box-shadow: 0 30px 60px -20px rgba(255, 75, 92, 0.45);
    z-index: 0;
}

.scf-trust-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    display: block;
    z-index: 1;
}

.scf-trust-badge {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sap-red);
    color: #fff;
    padding: 9px 22px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 10px 24px -6px rgba(255, 75, 92, 0.6);
    white-space: nowrap;
}

.scf-trust-title {
    font-family: "Epilogue", sans-serif;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin: 0 0 16px;
    color: var(--sap-ink);
}

.scf-trust-lead {
    font-size: 17px;
    line-height: 1.6;
    color: var(--sap-mute);
    margin: 0 0 28px;
}

.scf-trust-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.scf-trust-stat {
    background: #fff;
    border: 1px solid var(--sap-border);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.scf-trust-stat:hover {
    transform: translateY(-2px);
    border-color: var(--sap-red);
}

.scf-trust-stat-num {
    font-family: "Epilogue", sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--sap-red);
    line-height: 1;
}

.scf-trust-stat-label {
    font-size: 13px;
    color: var(--sap-mute);
    line-height: 1.3;
}

.scf-trust-quote {
    font-size: 15px;
    font-style: italic;
    line-height: 1.5;
    color: var(--sap-ink);
    padding: 16px 20px;
    background: rgba(255, 75, 92, 0.06);
    border-left: 3px solid var(--sap-red);
    border-radius: 0 12px 12px 0;
}

/* ───── Steps block ───── */
.scf-steps-head {
    text-align: center;
    margin-bottom: 40px;
}

.scf-steps-title {
    font-family: "Epilogue", sans-serif;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin: 0;
    color: var(--sap-ink);
}

.scf-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.scf-step {
    position: relative;
    background: #fff;
    border: 1px solid var(--sap-border);
    border-radius: 20px;
    padding: 36px 28px 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.scf-step:hover {
    transform: translateY(-4px);
    border-color: var(--sap-red);
    box-shadow: 0 20px 40px -20px rgba(255, 75, 92, 0.3);
}

.scf-step-num {
    position: absolute;
    top: -22px;
    left: 28px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--sap-red) 0%, var(--sap-red-dark) 100%);
    color: #fff;
    font-family: "Epilogue", sans-serif;
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px -8px rgba(255, 75, 92, 0.5);
}

.scf-step-title {
    font-family: "Epilogue", sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 8px 0 12px;
    color: var(--sap-ink);
    letter-spacing: -0.5px;
}

.scf-step-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--sap-mute);
    margin: 0 0 18px;
}

.scf-step-time {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--sap-red);
    background: rgba(255, 75, 92, 0.08);
    padding: 6px 12px;
    border-radius: 100px;
}

/* ───── FAQ block ───── */
.scf-faq-head {
    text-align: center;
    margin-bottom: 40px;
}

.scf-faq-title {
    font-family: "Epilogue", sans-serif;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin: 0;
    color: var(--sap-ink);
}

.scf-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.scf-faq-item {
    background: #fff;
    border: 1px solid var(--sap-border);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.scf-faq-item[open] {
    border-color: var(--sap-red);
    box-shadow: 0 16px 32px -16px rgba(255, 75, 92, 0.25);
}

.scf-faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 56px 22px 24px;
    font-family: "Epilogue", sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--sap-ink);
    position: relative;
    user-select: none;
    transition: color 0.2s ease;
}

.scf-faq-item summary::-webkit-details-marker { display: none; }

.scf-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--sap-red);
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background 0.2s ease;
    line-height: 1;
    box-shadow: 0 8px 16px -4px rgba(255, 75, 92, 0.4);
}

.scf-faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
    background: var(--sap-red-dark);
    color: #fff;
}

.scf-faq-item summary {
    padding-right: 76px !important;
}

.scf-faq-item summary:hover { color: var(--sap-red); }

.scf-faq-body {
    padding: 0 24px 24px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--sap-mute);
}

.scf-faq-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    border-radius: 20px;
    padding: 28px 36px;
}

.scf-faq-cta p {
    margin: 0 !important;
    font-size: 17px;
    font-weight: 500;
    color: #f1f5f9 !important;
    line-height: 1.5;
}

.scf-faq-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sap-red);
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 100px;
    font-family: "Epilogue", sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 12px 24px -8px rgba(255, 75, 92, 0.5);
    flex-shrink: 0;
}

.scf-faq-cta-btn:hover {
    background: var(--sap-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -8px rgba(255, 75, 92, 0.6);
    color: #fff !important;
}

/* ───── Tablet ───── */
@media (max-width: 980px) {
    .scf-trust-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 36px;
    }
    .scf-trust-photo {
        max-width: 360px;
        margin: 0 auto;
        aspect-ratio: 1 / 1;
    }
    .scf-trust-title,
    .scf-steps-title,
    .scf-faq-title {
        font-size: 32px;
    }
    .scf-steps-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .scf-faq-grid {
        grid-template-columns: 1fr;
    }
    .scf-faq-cta {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }
}

/* ───── Mobile ───── */
@media (max-width: 600px) {
    .scf-trust,
    .scf-steps,
    .scf-faq {
        padding: 0 16px;
        margin-bottom: 56px;
    }
    .scf-trust-inner {
        padding: 24px;
        border-radius: 18px;
    }
    .scf-trust-title,
    .scf-steps-title,
    .scf-faq-title {
        font-size: 26px;
    }
    .scf-trust-lead { font-size: 15px; }
    .scf-trust-stats { gap: 10px; }
    .scf-trust-stat { padding: 14px; }
    .scf-trust-stat-num { font-size: 22px; }
    .scf-trust-stat-label { font-size: 12px; }
    .scf-step { padding: 32px 22px 22px; }
    .scf-step-title { font-size: 19px; }
    .scf-faq-item summary { font-size: 15px; padding: 18px 50px 18px 18px; }
    .scf-faq-item summary::after { right: 18px; }
    .scf-faq-body { padding: 0 18px 20px; font-size: 14px; }
    .scf-faq-cta p { font-size: 14px; }
}

/* ───── Скрыть остаточные TagDiv-блоки если вдруг где-то остались ───── */
body.page-id-140 .tdb_module_loop,
body.page-id-140 .td-big-shadow,
body.page-id-140 .td-big-shadow-inversed,
body.page-id-140 .td-infinite-wrap {
    display: none !important;
}

/* ───── Скрыть сайдбар и растянуть контент на всю ширину ───── */
body.page-id-140 .td-pb-span4 { display: none !important; }
body.page-id-140 .td-pb-span8 { width: 100% !important; max-width: 100% !important; }
body.page-id-140 .td-post-content,
body.page-id-140 .td-page-content {
    max-width: 1240px !important;
    margin: 0 auto !important;
    float: none !important;
    width: 100% !important;
}

/* ───── /public-offer/ (page 786) — full-width like contacts ───── */
body.page-id-786 .td-pb-span4 { display: none !important; }
body.page-id-786 .td-pb-span8 { width: 100% !important; max-width: 100% !important; }
body.page-id-786 .td-post-content,
body.page-id-786 .td-page-content {
    max-width: 1100px !important;
    margin: 0 auto !important;
    float: none !important;
    width: 100% !important;
}

/* ═══════════════════════════════════════════════════════════
   /our-services/ (page 144) — редизайн быстрых кнопок-навигации
   ═══════════════════════════════════════════════════════════
   Только верхний блок «6 услуг» с чевронами (`.tdc-font-oi-chevron-right`).
   Большие карточки услуг ниже не трогаем. */
body.page-id-144 .tdm_block_icon_box:has(.tdc-font-oi-chevron-right) {
    background: #fff !important;
    border: 1px solid var(--sap-border) !important;
    border-radius: 14px !important;
    padding: 20px 22px !important;
    margin-bottom: 22px !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
    position: relative;
}

@media (max-width: 767px) {
    body.page-id-144 .tdm_block_icon_box:has(.tdc-font-oi-chevron-right) {
        margin-bottom: 14px !important;
    }
}

body.page-id-144 .tdm_block_icon_box:has(.tdc-font-oi-chevron-right):hover {
    border-color: var(--sap-red) !important;
    transform: translateY(-3px);
    box-shadow: 0 18px 32px -16px rgba(255, 75, 92, 0.28) !important;
}

body.page-id-144 .tdm_block_icon_box:has(.tdc-font-oi-chevron-right) .tds-icon-box {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}

body.page-id-144 .tdm_block_icon_box:has(.tdc-font-oi-chevron-right) .tdm-col-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: rgba(255, 75, 92, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    transition: background 0.25s ease, transform 0.25s ease !important;
}

body.page-id-144 .tdm_block_icon_box:has(.tdc-font-oi-chevron-right):hover .tdm-col-icon {
    background: var(--sap-red) !important;
    transform: translateX(4px);
}

body.page-id-144 .tdm_block_icon_box:has(.tdc-font-oi-chevron-right) .tds-icon {
    color: var(--sap-red) !important;
    font-size: 13px !important;
    transition: color 0.2s ease !important;
    margin: 0 !important;
}

body.page-id-144 .tdm_block_icon_box:has(.tdc-font-oi-chevron-right):hover .tds-icon,
body.page-id-144 .tdm_block_icon_box:has(.tdc-font-oi-chevron-right):hover .tds-icon::before {
    color: #fff !important;
}

body.page-id-144 .tdm_block_icon_box:has(.tdc-font-oi-chevron-right) .tdm-title {
    font-family: "Epilogue", var(--outfit-3), sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--sap-ink) !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.2px !important;
    transition: color 0.2s ease !important;
    text-decoration: none !important;
    border: none !important;
    padding: 0 !important;
}

body.page-id-144 .tdm_block_icon_box:has(.tdc-font-oi-chevron-right):hover .tdm-title {
    color: var(--sap-red) !important;
}

/* убрать пустой p.tdm-descr и underline под title */
body.page-id-144 .tdm_block_icon_box:has(.tdc-font-oi-chevron-right) .tdm-descr {
    display: none !important;
}

body.page-id-144 .tdm_block_icon_box:has(.tdc-font-oi-chevron-right) .tds-title {
    margin: 0 !important;
    padding: 0 !important;
}

body.page-id-144 .tdm_block_icon_box:has(.tdc-font-oi-chevron-right) .tds-title::after,
body.page-id-144 .tdm_block_icon_box:has(.tdc-font-oi-chevron-right) .tdm-title::after {
    display: none !important;
}

/* ───── Перевод tooltip кнопки «вверх» (TagDiv hardcoded "back to top") ───── */
.td-scroll-up-tt-txt {
    font-size: 0 !important;
    line-height: 1.4;
}
.td-scroll-up-tt-txt::before {
    content: "Наверх";
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════════
   CASES BLOCK — мини-карточки реальных кейсов
   ═══════════════════════════════════════════════════════════ */
.scf-cases {
    max-width: 1180px;
    margin: 0 auto 80px;
    padding: 0 24px;
}

.scf-cases-inner {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid var(--sap-border);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.1);
}

.scf-cases-head {
    text-align: center;
    margin-bottom: 36px;
}

.scf-cases-title {
    font-family: "Epilogue", sans-serif;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin: 0 0 12px;
    color: var(--sap-ink);
}

.scf-cases-sub {
    font-size: 16px;
    color: var(--sap-mute);
    margin: 0;
}

.scf-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.scf-case {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--sap-border);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.scf-case:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -16px rgba(15, 23, 42, 0.18);
    border-color: var(--sap-red);
}

.scf-case-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    background-color: #f1f5f9;
}

.scf-case-body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.scf-case-niche {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--sap-red);
    margin-bottom: 8px;
}

.scf-case-title {
    font-family: "Epilogue", sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--sap-ink);
    margin: 0 0 16px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.scf-case-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 14px 0;
    margin-bottom: 14px;
    border-top: 1px solid var(--sap-border);
    border-bottom: 1px solid var(--sap-border);
}

.scf-case-stat {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 2px;
}

.scf-case-stat .num {
    font-family: "Epilogue", sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--sap-ink);
    letter-spacing: -0.3px;
    line-height: 1.1;
}

.scf-case-stat .lbl {
    font-size: 11px;
    color: var(--sap-mute);
    line-height: 1.2;
}

.scf-case-link {
    margin-top: auto;
    font-size: 14px;
    font-weight: 700;
    color: var(--sap-red);
    transition: gap 0.2s ease;
}

.scf-case:hover .scf-case-link { color: var(--sap-red-dark); }

.scf-cases-foot {
    text-align: center;
    margin-top: 32px;
}

.scf-cases-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sap-ink);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--sap-red);
    padding-bottom: 4px;
    transition: color 0.2s ease;
}

.scf-cases-all:hover { color: var(--sap-red); }

@media (max-width: 980px) {
    .scf-cases-inner { padding: 32px 24px; }
    .scf-cases-title { font-size: 28px; }
    .scf-cases-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (max-width: 600px) {
    .scf-cases {
        padding: 0 16px;
        margin-bottom: 56px;
    }
    .scf-cases-inner { padding: 24px 18px; border-radius: 18px; }
    .scf-cases-title { font-size: 24px; }
    .scf-case-body { padding: 18px; }
    .scf-case-stat .num { font-size: 16px; }
}
