/* ============================================
TEXT / ARTICLE PAGE STYLES
============================================ */
.page-text {
    position: relative;
    overflow: hidden;
    background: #f8fafc;
}

/* Анимированный фон (орбы создают эффект плавного градиента) */
.page-text__bg {
    position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.text-orb {
    position: absolute; border-radius: 50%; filter: blur(130px); opacity: 0.45;
    animation: float 20s infinite alternate ease-in-out;
}
.text-orb--1 { width: 650px; height: 650px; background: var(--color-secondary); top: -10%; left: -8%; }
.text-orb--2 { width: 800px; height: 800px; background: var(--color-primary); bottom: -25%; right: -15%; animation-delay: -10s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -50px) scale(1.05); }
}

/* Hero Section */
.text-hero {
    position: relative; z-index: 1;
    padding: 70px 0 70px;
    text-align: center;
}
.text-breadcrumbs {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-bottom: 24px; font-size: 14px; color: var(--color-gray); flex-wrap: wrap;
}
.text-breadcrumbs a { color: var(--color-primary); transition: var(--transition); }
.text-breadcrumbs a:hover { color: var(--color-secondary); }
.text-breadcrumbs span { opacity: 0.5; user-select: none; }

.text-hero__title {
    font-family: var(--font-logo); font-size: 44px; font-weight: 800;
    color: var(--color-dark); margin: 0 0 16px; line-height: 1.2; letter-spacing: -0.5px;
}
.text-hero__subtitle {
    font-size: 18px; color: var(--color-gray); line-height: 1.6; margin: 0; max-width: 750px; margin-left: auto; margin-right: auto;
}

/* Content Section */
.text-content {
    position: relative; z-index: 1;
    padding-bottom: 120px;
}
.text-content__wrapper {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    padding: 56px;
}

/* ============================================
CLEAN TYPOGRAPHY (для вставки без классов)
============================================ */
.text-content__wrapper h2 {
    font-family: var(--font-logo); font-size: 28px; font-weight: 700;
    color: var(--color-dark); margin: 56px 0 20px; padding-top: 28px;
    border-top: 1px solid var(--color-border); line-height: 1.3;
}
.text-content__wrapper h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.text-content__wrapper h3 {
    font-size: 22px; font-weight: 600; color: var(--color-dark); margin: 36px 0 16px; line-height: 1.35;
}
.text-content__wrapper p {
    font-size: 16px; line-height: 1.8; color: var(--color-dark); margin-bottom: 20px;
}
.text-content__wrapper ul, .text-content__wrapper ol {
    padding-left: 26px; margin-bottom: 28px; color: var(--color-dark);
}
.text-content__wrapper li { margin-bottom: 12px; line-height: 1.65; }
.text-content__wrapper ul li::marker { color: var(--color-secondary); font-size: 1.1em; }
.text-content__wrapper ol li::marker { color: var(--color-primary); font-weight: 600; }

.text-content__wrapper blockquote {
    margin: 40px 0; padding: 24px 28px;
    background: linear-gradient(135deg, rgba(49, 47, 133, 0.03) 0%, rgba(59, 171, 226, 0.06) 100%);
    border-left: 4px solid var(--color-secondary); border-radius: 0 14px 14px 0;
    font-style: italic; color: var(--color-dark); font-size: 16px; line-height: 1.7;
}
.text-content__wrapper img {
    max-width: 100%; height: auto; border-radius: 16px; margin: 28px 0;
    box-shadow: var(--shadow-sm); display: block;
}
.text-content__wrapper a {
    color: var(--color-secondary); text-decoration: underline; text-decoration-color: rgba(59, 171, 226, 0.3);
    transition: var(--transition);
}
.text-content__wrapper a:hover { color: var(--color-primary); text-decoration-color: var(--color-primary); }
.text-content__wrapper strong { font-weight: 600; color: var(--color-dark); }
.text-content__wrapper hr {
    border: none; height: 1px; background: var(--color-border); margin: 40px 0;
}

/* Tables (для оферт/юридических страниц) */
.text-content__wrapper table {
    width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15px;
    background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--color-border);
}
.text-content__wrapper th, .text-content__wrapper td {
    padding: 14px 18px; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top;
}
.text-content__wrapper th { background: rgba(49, 47, 133, 0.04); font-weight: 600; }
.text-content__wrapper tr:last-child td { border-bottom: none; }

/* Responsive */
@media (max-width: 992px) {
    .text-hero__title { font-size: 36px; }
    .text-content__wrapper { padding: 40px 32px; }
}
@media (max-width: 768px) {
    .text-hero { padding: 120px 0 50px; }
    .text-hero__title { font-size: 28px; }
    .text-hero__subtitle { font-size: 16px; }
    .text-content__wrapper { padding: 28px 20px; border-radius: 20px; }
    .text-content__wrapper h2 { font-size: 24px; margin: 40px 0 16px; }
    .text-content__wrapper h3 { font-size: 20px; }
    .text-content__wrapper p { font-size: 15px; line-height: 1.7; }
    .text-content__wrapper blockquote { padding: 20px; margin: 30px 0; font-size: 15px; }
    .text-content__wrapper table { display: block; overflow-x: auto; }
}
