/* Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* --- GENERAL STYLES --- */
body {
    font-family: 'Manrope', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
}

/* CLS Prevention: Fixed heights for offer cards to prevent layout shifts */
.offer-card {
    min-height: 140px; 
}

/* --- CALCULATOR SLIDER STYLES --- */
.range-slider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    background: #2563eb;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    border-radius: 50%;
    margin-top: -10px;
}

.range-slider::-webkit-slider-runnable-track {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
}

/* Utilities */
.trust-badge {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

/* --- SEO ARTICLE TYPOGRAPHY (Styles for the long-read content) --- */
/* Класс .seo-article нужно добавить обертке текста, чтобы стилизовать "голые" теги */
.seo-article {
    color: #334155;
    line-height: 1.7;
    font-size: 1rem;
}

.seo-article h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.seo-article h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.seo-article h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.seo-article h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #334155;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.seo-article p {
    margin-bottom: 1.25rem;
}

.seo-article ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.seo-article ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.seo-article li {
    margin-bottom: 0.5rem;
}

.seo-article strong {
    font-weight: 700;
    color: #0f172a;
}

/* Compliance Warning Box Style */
.warning-box {
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
    padding: 1.25rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* SEO Table Styles */
.seo-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9rem;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.seo-article th, .seo-article td {
    border: 1px solid #e2e8f0;
    padding: 1rem;
    text-align: left;
}

.seo-article th {
    background-color: #f8fafc;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.seo-article tr:nth-child(even) {
    background-color: #fcfcfc;
}

/* Placeholder for Widgets inside text */
.listing-placeholder {
    background: #f0f9ff;
    border: 2px dashed #bae6fd;
    color: #0284c7;
    padding: 2rem;
    text-align: center;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    font-weight: 600;
}

/* --- READ MORE (Accordion) LOGIC --- */
.content-collapsed {
    max-height: 450px; /* Высота видимой части текста */
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease-in-out;
}

/* Градиент затемнения внизу */
.content-collapsed::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1) 90%);
    pointer-events: none;
}

.content-expanded {
    max-height: none;
    overflow: visible;
}

.content-expanded::after {
    display: none;
}