/* =================================================
   KREDVIBE - MASTER STYLE (FINAL PERFECTED)
   ================================================= */
:root {
    --primary: #1e88e5;
    --primary-dark: #1565c0;
    --bg: #f6f8fb;
    --bg-alt: #f1f5f9;
    --text: #0f172a;
    --text-muted: #475569;
    --radius: 18px;
    --shadow-sm: 0 10px 25px rgba(15, 23, 42, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; background: var(--bg-alt); color: var(--text); line-height: 1.55; }

/* ЗАЩИТА ОТ КРИВОГО ПЕРЕВОДА GOOGLE */
#goog-gt-tt, .goog-te-balloon-frame, .goog-te-banner-frame, .goog-te-menu-frame, .skiptranslate, iframe.goog-te-banner-frame { display: none !important; visibility: hidden !important; opacity: 0 !important; }
body { top: 0 !important; }

/* =========================
   БАЗОВЫЙ КОНТЕЙНЕР
========================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================
   ШАПКА САЙТА (HEADER)
========================= */
.site-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 25px 0;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}
.logo { font-size: 28px; font-weight: 900; color: #fff; text-decoration: none; letter-spacing: -1px; display: inline-block; }
.site-header h1, .site-header h2 { font-size: 24px; font-weight: 700; margin: 0; color: #fff; }
.site-header p { font-size: 14px; opacity: 0.9; margin: 0; color: #fff; }

.header-container, .header-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}
.header-content, .header-info { text-align: right; }
.header-info h2 { font-size: 20px; }

/* =========================
   ГЛАВНАЯ СТРАНИЦА (СЕТКА КАРТОЧЕК)
========================= */
.cards-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    padding: 40px 20px;
}

.card {
    background: #fff; width: calc(33.333% - 17px); min-width: 310px; max-width: 360px;
    padding: 35px 25px; border-radius: var(--radius); box-shadow: var(--shadow-sm);
    text-align: center; display: flex; flex-direction: column; transition: all 0.3s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12); }
.bank-logo { width: 110px; height: 70px; margin: 0 auto 20px; object-fit: contain; }
.card h2 { font-size: 20px; margin-bottom: 15px; font-weight: 700; color: var(--text); line-height: 1.3; }
.card p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; flex-grow: 1; }

.btn {
    display: block;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 16px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.2s ease;
}
.btn:hover { background: var(--primary-dark); transform: scale(1.02); }
.btn-details { display: block; margin-top: 15px; padding: 10px; color: var(--primary); text-decoration: none; font-size: 14px; font-weight: 600; border: 2px solid #f1f5f9; border-radius: 10px; transition: all 0.3s ease; }
.btn-details:hover { background: #eef6ff; border-color: var(--primary); }

/* =========================
   СТРАНИЦА MFO.PHP (HERO И КАРТОЧКА)
========================= */
.hero { max-width: 900px; margin: 30px auto 10px; padding: 0 20px; text-align: center; }
.hero h1 { font-size: 28px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.02em; color: #1e293b; }
.hero p { font-size: 16px; color: #475569; }

.card-wrap { padding: 30px 20px 40px; }
.offer-card { 
    background: #ffffff; 
    border-radius: 28px; 
    padding: 45px 50px 40px; /* Уменьшили верхний отступ (было 65px) */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); 
    position: relative; 
    display: grid; 
    grid-template-columns: auto 1fr auto; 
    grid-template-areas: "logo rate button" "logo rate rating"; 
    align-items: center; gap: 15px 40px; text-align: center; max-width: 850px; margin: 0 auto; 
}

.badge { 
    position: absolute; 
    top: -18px; /* Выносим бейдж на верхнюю границу карточки */
    left: 50%; 
    transform: translateX(-50%); 
    padding: 8px 20px; 
    font-size: 14px; 
    font-weight: 800; 
    color: #ffffff; 
    background: linear-gradient(135deg, #10b981, #059669); 
    border-radius: 20px; 
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    border: 3px solid #ffffff; /* Белая обводка делает эффект "врезки" в карточку */
    z-index: 10; 
    white-space: nowrap; 
    letter-spacing: 0.3px;
    animation: pulse-badge 2s infinite; 
}

/* Анимация пульсации */
@keyframes pulse-badge {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.offer-logo { grid-area: logo; width: 150px; height: 150px; object-fit: contain; margin: 0 auto; }
.btn-main { grid-area: button; display: inline-block; min-width: 240px; padding: 18px 30px; background: linear-gradient(135deg, #1e88e5, #1565c0); color: #ffffff; text-decoration: none; font-size: 18px; font-weight: 700; border-radius: 16px; box-shadow: 0 4px 12px rgba(30, 136, 229, 0.2); transition: all 0.2s ease; }
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(30, 136, 229, 0.3); }

/* =========================
   ЭЛЕМЕНТЫ (СТАВКИ И РЕЙТИНГ)
========================= */
.rate-box { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px; border-radius: 16px; text-align: left; }
.offer-card .rate-box { grid-area: rate; margin: 0 auto; }
.card .rate-box { margin: 0 auto 20px auto; }
.rate-info { display: flex; flex-direction: column; line-height: 1.2; }
.rate-value { font-size: 17px; font-weight: 800; }
.rate-label { font-size: 12px; font-weight: 600; opacity: 0.8; }
.rate-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 12px; }
.rate-icon svg { width: 20px; height: 20px; }
.rate-promo { background: rgba(34, 197, 94, 0.08); border: 1px solid rgba(34, 197, 94, 0.2); color: #16a34a; }
.rate-promo .rate-icon { background: #22c55e; color: #ffffff; }
.rate-standard { background: rgba(30, 136, 229, 0.08); border: 1px solid rgba(30, 136, 229, 0.2); color: #1565c0; }
.rate-standard .rate-icon { background: #1e88e5; color: #ffffff; }

.rating { margin-bottom: 25px; grid-area: rating; display: flex; justify-content: center; align-items: center; gap: 4px; font-size: 15px; color: #fbbf24; }
.stars { font-size: 20px; margin-bottom: 5px; }
.rating-text { font-size: 14px; color: var(--text-muted); display:flex; gap: 5px; align-items:center; }
.rating-text strong { color: var(--text); font-size: 16px; }
.rating-value { color: #64748b; font-weight: 500; }

/* =========================
   БЛОК СРАВНЕНИЯ (ЛУПА)
========================= */
.compare-all-box { margin-top: 40px; padding: 20px 25px; background: #f0f7ff; border-left: 4px solid var(--primary); border-radius: 16px; display: flex; align-items: center; gap: 15px; transition: all 0.3s ease; border: 1px solid #e2e8f0; border-left-width: 4px; }
.compare-all-box:hover { background: #e6f2ff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(30, 136, 229, 0.1); }
.compare-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: rgba(30, 136, 229, 0.1); color: var(--primary); border-radius: 50%; flex-shrink: 0; transition: all 0.3s ease; }
.compare-all-box:hover .compare-icon { transform: scale(1.1) rotate(-5deg); background: var(--primary); color: #ffffff; }
.compare-all-box p { margin: 0 !important; font-size: 16px; line-height: 1.5; color: #334155; }
.compare-all-box a { color: #2563eb; font-weight: 700; text-decoration: none; position: relative; transition: color 0.2s ease; }

/* =========================
   SEO СТРАНИЦЫ И ТЕКСТЫ
========================= */
.seo-breadcrumbs { padding: 20px 0; font-size: 13px; color: #94a3b8; }
.seo-breadcrumbs a { color: var(--primary); text-decoration: none; font-weight: 500; }
.seo-breadcrumbs span { margin: 0 8px; opacity: 0.5; }

.seo-content { max-width: 1000px; margin: 50px auto 40px; padding: 0 20px; }
.seo-content-card { 
    background: #ffffff; 
    border-radius: 28px; 
    padding: 50px; 
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.04); 
    border: 1px solid rgba(226, 232, 240, 0.6); 
}

/* Общие заголовки для статей: четко по левому краю */
.seo-content h2, .seo-content h3, .page-content h2, .page-content h3 { 
    text-align: left !important; 
    margin: 35px 0 20px; 
    font-size: 28px; 
    font-weight: 800; 
    color: #1e293b; 
    line-height: 1.3; 
}
.page-content h2, .legal-page-wrapper h2 {
    font-size: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}

.seo-content p, .page-content p { margin-bottom: 20px; font-size: 17px; color: #475569; line-height: 1.7; }
.seo-content p:last-of-type { margin-bottom: 0; }

.seo-content-card ul:not(.seo-links-list) { list-style: none; padding: 25px !important; margin: 25px 0; background: #f8fafc; border-radius: 0 20px 20px 0; border-left: 5px solid #3b82f6; border-top: 1px solid #e2e8f0; border-right: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.seo-content-card ul:not(.seo-links-list) li { margin-bottom: 15px; position: relative; display: flex; align-items: flex-start; gap: 15px; font-size: 16px; color: #334155; }
.seo-content-card ul:not(.seo-links-list) li::before { content: "✓"; flex-shrink: 0; color: #22c55e; font-weight: 900; font-size: 20px; }

/* Красивий алерт (Зверніть увагу) */
.seo-alert {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #f0f9ff;
    border-radius: 16px;
    padding: 20px 25px;
    margin-top: 30px;
    border: 1px solid #bae6fd;
    border-left: 5px solid #0ea5e9;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.05);
}
.seo-alert .alert-icon { font-size: 22px; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.seo-alert .alert-text { font-size: 15px; color: #334155; line-height: 1.6; }
.seo-alert strong { color: #0284c7; }

/* --- НОВЫЕ СТИЛИ ДЛЯ КОНТЕНТА СТАТЕЙ --- */
.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    margin: 30px 0 20px;
}
.step-header span { font-size: 24px; flex-shrink: 0; }
.step-header h3, .step-header h2 { margin: 0 !important; border: none !important; padding: 0 !important; font-size: 20px !important; }

/* Базовий стиль картки кроку (для ПК та бази) */
.step-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    border-left: 5px solid var(--primary); /* Лінія збоку */
}
.step-card h3 { margin: 0 0 12px 0 !important; color: #1e293b !important; font-size: 20px !important; border: none !important; padding: 0 !important; }
.step-card p { margin: 0 !important; font-size: 16px; color: #475569; line-height: 1.6; }

.content-alert { padding: 20px; border-radius: 12px; margin: 25px 0; border-left: 5px solid; }
.alert-danger { background: #fef2f2; border-color: #ef4444; color: #991b1b; border-right: 1px solid #fecaca; border-top: 1px solid #fecaca; border-bottom: 1px solid #fecaca; }
.alert-info { background: #f0f9ff; border-color: #0ea5e9; color: #0369a1; border-right: 1px solid #bae6fd; border-top: 1px solid #bae6fd; border-bottom: 1px solid #bae6fd; }
.alert-success { background: #ecfdf5; border-color: #10b981; color: #064e3b; border-right: 1px solid #a7f3d0; border-top: 1px solid #a7f3d0; border-bottom: 1px solid #a7f3d0; }

.icon-list { list-style: none !important; padding: 0 !important; margin: 20px 0 !important; }
.icon-list li { display: flex !important; align-items: flex-start !important; gap: 12px !important; margin-bottom: 15px !important; background: none !important; border: none !important; padding: 0 !important; }
.icon-list li::before { content: none !important; }
.icon-list li .icon { flex-shrink: 0; font-size: 18px; margin-top: 2px; }

/* Акцент на цифри (щоб не плутали з буквою З) */
.num-accent {
    color: var(--primary);
    font-weight: 900;
    margin-right: 2px;
    font-family: Arial, sans-serif;
}

/* =========================
   ЧИСТИЙ СТИЛЬ ДЛЯ СПИСКІВ МФО (ФИНАЛ)
========================= */
.mfo-features-clean { list-style: none !important; padding: 25px !important; margin: 25px 0 40px !important; background: #f8fafc !important; border-radius: 16px !important; border: 1px solid #e2e8f0 !important; border-left: 5px solid #1e88e5 !important; }
.mfo-features-clean li { display: flex !important; align-items: flex-start !important; gap: 12px !important; margin-bottom: 15px !important; padding: 0 !important; background: none !important; }
.mfo-features-clean li::before { content: none !important; display: none !important; }
.mfo-features-clean li span { font-size: 20px; flex-shrink: 0; line-height: 1.2; }
.mfo-features-clean li div { font-size: 16px; color: #334155; line-height: 1.5; text-align: left; }
.mfo-features-clean li:last-child { margin-bottom: 0 !important; }

/* =========================
   СПИСОК ССЫЛОК (СТИЛЬ ПРИЛОЖЕНИЯ)
========================= */
.seo-main-links { max-width: 1000px; margin: 0 auto 40px; }
.seo-main-links h2, .seo-links-section h2 { text-align: center !important; font-size: 26px; font-weight: 800; margin-bottom: 30px; color: #1e293b; }
.seo-links-list { list-style: none !important; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.seo-links-list li { list-style: none !important; margin: 0; padding: 0; }
.seo-links-list li::before { display: none !important; } 
.seo-links-list li a { 
    position: relative;
    display: flex; align-items: center; gap: 10px; 
    padding: 14px 40px 14px 18px; 
    background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; text-decoration: none; color: #475569; font-size: 0.95em; font-weight: 500; transition: all 0.25s ease; height: 100%; 
}
.seo-links-list li a::after {
    content: '›'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
    font-size: 24px; color: #cbd5e1; font-weight: 300; line-height: 1; transition: transform 0.2s ease, color 0.2s ease;
}
.seo-links-list li a:hover { border-color: #cbd5e1; background: #f8fafc; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); }
.seo-links-list li a:hover::after { transform: translate(4px, -50%); color: var(--primary); }

.seo-links-list li.helper-link a { background-color: #f0f9ff !important; border: 1px solid #bae6fd !important; color: #0369a1 !important; font-weight: 700 !important; }
.seo-links-list li.helper-link a:hover { background-color: #e0f2fe !important; border-color: #7dd3fc !important; box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15); }
.seo-links-list li.blacklist-link a { background-color: #fef2f2 !important; border: 1px solid #fecaca !important; color: #b91c1c !important; font-weight: 600 !important; }
.seo-links-list li.blacklist-link a:hover { background-color: #fee2e2 !important; border-color: #ef4444 !important; box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15); }
.seo-links-list li a span { font-size: 1.2em; line-height: 1; }

/* =========================
   БЛОК ДОВЕРИЯ (ЧИСТЫЙ И ЦЕНТРИРОВАННЫЙ)
========================= */
.trust-block { 
    background: #fff; 
    padding: 70px 20px; 
    margin-top: 50px; 
    border-top: 1px solid #eef2f6; 
}

.trust-container { 
    max-width: 1100px; 
    margin: 0 auto; 
    text-align: center; 
}

.trust-container h2 { 
    font-size: 28px; 
    font-weight: 800; 
    text-align: center !important; /* Примусово повертаємо по центру */
    width: 100%;
    margin-bottom: 45px;
}

.trust-items { 
    display: flex; 
    justify-content: center; /* Центруємо самі картки в ряду */
    gap: 25px; 
    flex-wrap: wrap; 
}

.trust-item { 
    background: var(--bg); 
    padding: 35px 25px; 
    border-radius: var(--radius); 
    flex: 1; 
    min-width: 280px; 
    max-width: 350px; 
    transition: transform 0.2s; 
    text-align: center; /* Центруємо текст всередині кожної картки */
}

.trust-item:hover { transform: translateY(-5px); }

.trust-item strong { 
    display: block; 
    font-size: 19px; 
    margin-bottom: 12px; 
    color: var(--primary); 
}

.trust-item p { 
    font-size: 15px; 
    color: var(--text-muted); 
    line-height: 1.6; 
}

.trust-divider { 
    height: 1px; 
    background: #e2e8f0; 
    margin: 40px auto; 
    max-width: 800px; 
}

.trust-note-wrapper { 
    max-width: 900px; 
    margin: 0 auto; 
}

.trust-note { 
    font-size: 13px; 
    color: #64748b; 
    line-height: 1.6; 
    text-align: left; /* Юридичний текст залишаємо зліва для зручності читання */
    background: #f8fafc; 
    padding: 20px 25px; 
    border-radius: 12px; 
    border: 1px solid #e2e8f0; 
}
/* Красива плашка для відсотка в калькуляторі */
.calc-badge { display: inline-block; background: #f0f9ff; color: #0284c7; font-size: 15px; font-weight: 700; padding: 4px 12px; border-radius: 20px; vertical-align: middle; margin-left: 10px; border: 1px solid #bae6fd; }

/* =========================
   КАЛЬКУЛЯТОР И ОТЗЫВЫ (MFO.PHP)
========================= */
.calc-wrapper { max-width: 850px; margin: 20px auto 40px; }
.calc-container { background: #ffffff; border-radius: 28px; padding: 40px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); border: 1px solid #e2e8f0; }
.calc-title { text-align: center; font-size: 22px; font-weight: 800; color: #1e293b; margin-bottom: 30px; }
.calc-group { margin-bottom: 30px; }
.calc-labels { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 600; font-size: 16px; }
.calc-labels span:last-child { font-size: 20px; color: var(--primary); font-weight: 800; }
.calc-minmax { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; color: #94a3b8; }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; background: transparent; margin: 15px 0; }
input[type=range]:focus { outline: none; }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 8px; background: #e2e8f0; border-radius: 4px; cursor: pointer; }
input[type=range]::-moz-range-track { width: 100%; height: 8px; background: #e2e8f0; border-radius: 4px; cursor: pointer; }
input[type=range]::-webkit-slider-thumb { height: 24px; width: 24px; border-radius: 50%; background: #1e88e5; cursor: pointer; -webkit-appearance: none; margin-top: -8px; border: 4px solid #fff; box-shadow: 0 4px 10px rgba(30, 136, 229, 0.3); }
input[type=range]::-moz-range-thumb { height: 24px; width: 24px; border-radius: 50%; background: #1e88e5; cursor: pointer; border: 4px solid #fff; box-shadow: 0 4px 10px rgba(30, 136, 229, 0.3); }

.calc-result { display: flex; justify-content: space-between; background: #f8fafc; padding: 20px; border-radius: 16px; margin-bottom: 20px; border: 1px solid #e2e8f0; }
.result-item { text-align: center; flex: 1; border-right: 1px solid #e2e8f0; }
.result-item:last-child { border-right: none; }
.result-item span { display: block; font-size: 13px; color: #64748b; margin-bottom: 5px; }
.result-item strong { font-size: 18px; color: #1e293b; }
.result-item.highlight strong { color: #22c55e; font-size: 24px; }
.calc-note { text-align: center; font-size: 12px; color: #94a3b8; margin-bottom: 25px; line-height: 1.5; }
.calc-btn { display: block !important; margin: 0 auto !important; text-align: center; max-width: 350px; width: 100%; }

.reviews-section { max-width: 850px; margin: 40px auto; }
.reviews-section h2 { text-align: center !important; margin-bottom: 25px; font-size: 24px; font-weight: 800; }
.review-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 20px; margin-bottom: 15px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.review-rating { color: #fbbf24; font-size: 18px; margin-bottom: 10px; }
.review-form-card { background: #ffffff; padding: 30px; border-radius: 20px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05); margin-top: 30px; border: 1px solid #e2e8f0; }
.form-input { width: 100%; padding: 12px 15px; margin-bottom: 15px; border: 1px solid #cbd5e1; border-radius: 12px; }

/* =========================
   ІНТЕРАКТИВНІ ЗІРКИ
========================= */
.interactive-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; margin-bottom: 15px; }
.interactive-rating > input { display: none; }
.interactive-rating > label { cursor: pointer; width: 35px; font-size: 35px; color: #cbd5e1; transition: color 0.2s ease, transform 0.2s ease; }
.interactive-rating > label::before { content: '★'; }
.interactive-rating > input:checked ~ label,
.interactive-rating > label:hover,
.interactive-rating > label:hover ~ label { color: #fbbf24; }
.interactive-rating > label:hover { transform: scale(1.15); }

/* =================================================
   АДАПТИВНІСТЬ (АБСОЛЮТНИЙ ФІНАЛ)
================================================= */

/* Планшети */
@media (max-width: 1024px) {
    .card { width: calc(50% - 13px); }
}

/* На комп'ютерах (ПК і планшети) */
@media (min-width: 769px) {
    .mobile-sticky-container { display: none !important; }
    .desktop-only-btn { display: inline-block !important; }
    .calc-btn.desktop-only-btn { 
        display: inline-block !important; 
        margin: 0 auto !important; 
        padding: 14px 35px !important; 
        font-size: 16px !important;    
        min-width: 200px !important;   
        box-shadow: 0 4px 10px rgba(30, 136, 229, 0.15) !important; 
    }
}

/* На смартфонах */
@media (max-width: 768px) {
    /* Шапка та блок довіри */
    .header-container, .header-wrap { flex-direction: column; gap: 15px; text-align: center; }
    .header-content, .header-info { text-align: center; }
    .trust-items { flex-direction: column; align-items: center; }
    .trust-item { width: 100%; max-width: 100%; }
    
    /* Идеальная карточка для мобілок */
    .offer-card { 
        display: flex; 
        flex-direction: column; 
        padding: 40px 20px 25px; /* Немного увеличили верхний отступ, чтобы лого не липло к бейджу */
        border-radius: 18px; 
        text-align: center;
        margin-top: 25px; /* Отодвигаем саму карточку от заголовка, чтобы было место для бейджа */
    }
    .badge { 
        top: -16px; 
        font-size: 13px; 
        padding: 6px 18px; 
        /* Белая обводка и пульсация уже работают с основных стилей! */
    }
    .offer-logo { width: 100px; height: 100px; margin: 0 auto 15px auto !important; }
    .rate-box { width: 100%; justify-content: center; margin-bottom: 15px; }
    
    /* Кнопки */
    .desktop-only-btn { display: none !important; }
    .mobile-sticky-container {
        display: block !important; position: fixed; bottom: 0; left: 0; width: 100%;
        background: #fff; padding: 12px 16px; box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1); z-index: 9999;
    }
    .sticky-btn-fixed {
        display: block !important; width: 100%; text-align: center; padding: 15px !important;
        border-radius: 12px !important; background: #1e88e5 !important; color: #fff !important;
        font-weight: 700; text-decoration: none;
    }
    body { padding-bottom: 80px !important; }

    /* Калькулятор і порівняння */
    .calc-container { padding: 25px 20px; } 
    .calc-title { font-size: 18px; margin-bottom: 20px; }
    .calc-group { margin-bottom: 20px; } 
    .calc-result { 
        display: grid; 
        grid-template-columns: 1fr 1fr; 
        gap: 12px; 
        padding: 15px; 
        border-radius: 12px;
    }
    .result-item { border: none !important; padding: 0 !important; }
    .result-item strong { font-size: 16px; }
    .result-item.highlight { 
        grid-column: span 2; 
        margin-top: 5px; 
        padding-top: 12px !important; 
        border-top: 1px dashed #cbd5e1 !important; 
    }
    .result-item.highlight strong { font-size: 22px; }
    .compare-all-box { flex-direction: column; text-align: center; padding: 20px 15px; }

    /* SEO-блок (Додаток-стайл) */
    .seo-content { margin-top: 30px; margin-bottom: 30px; padding: 0 15px; }
    .seo-content-card { 
        padding: 25px 20px; 
        border-radius: 24px; 
        box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06); 
    }
    
    /* Контент статей для мобілок */
    .seo-content h2, .page-content h2, .page-content h3 { font-size: 20px !important; margin-bottom: 20px !important; }
    .seo-content p, .page-content p { font-size: 15px; line-height: 1.65; margin-bottom: 15px; }
    
    .seo-alert, .content-alert { padding: 15px; gap: 12px; border-radius: 14px; margin-top: 25px; }
    .seo-alert .alert-icon, .content-alert .alert-icon { font-size: 20px; margin-top: 1px; }
    .seo-alert .alert-text, .content-alert { font-size: 14px; line-height: 1.55; }
    
    .step-header { padding: 12px 15px; gap: 10px; border-radius: 12px; margin: 25px 0 15px; }
    .step-header span { font-size: 20px; }
    .step-header h3 { font-size: 17px !important; }

    /* Спеціальний компактний стиль заголовків у картках кроків для мобілок */
    .page-content .step-card h3 {
        font-size: 17px !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
    }
    .step-card { padding: 15px; border-radius: 12px; margin-bottom: 15px; }

    /* Списки посилань */
    .seo-links-list { grid-template-columns: 1fr; gap: 8px; }
    .seo-links-list li a { padding: 12px 35px 12px 15px; font-size: 14px; border-radius: 10px; }
    
    /* Центрируем заголовок отзывов */
    .reviews-section h2 { text-align: center !important; }
}

/* Маленькі телефони */
@media (max-width: 680px) {
    .card { width: 100%; max-width: 100%; }
}

@media (max-width: 480px) {
    .calc-badge { display: block; width: max-content; margin: 8px auto 0; }
}
.card-mini { background: #fff; border: 1px solid #cbd5e1; border-radius: 12px; padding: 15px; display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 10px; }
.card-info strong { display: block; font-size: 1.1em; color: #1e293b; }
.card-info span { font-size: 0.9em; color: #64748b; }
.btn-mini { background: #3b82f6; color: #fff; padding: 10px 20px; border-radius: 8px; text-decoration: none; font-weight: bold; font-size: 14px; white-space: nowrap; }
@media (max-width: 600px) { .card-mini { flex-direction: column; text-align: center; } .btn-mini { width: 100%; } }