:root {
    --primary-yellow: #FBBF24;
    --primary-yellow-dark: #F59E0B;
    --accent-yellow: #FBBF24;
    --dark-bg: #0f172a;
    --light-bg: #fff3cd;            /* светло-жёлтый фон */
    --card-bg: #ffffff;              /* белый для карточек */
    --text-main: #1e293b;             /* тёмно-синий */
    --text-light: #4b5563;            /* чуть темнее для контраста на жёлтом */
    --success: #10b981;
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: 'Manrope', sans-serif; 
    color: var(--text-main); 
    background: var(--light-bg); 
    line-height: 1.7;
}
h1, h2, h3, h4 { 
    font-family: 'Playfair Display', serif; 
    font-weight: 700;
    color: var(--text-main);
}
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* Progress Bar (для страниц тем) */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-yellow), var(--primary-yellow-dark));
    z-index: 1001;
    transition: width 0.3s ease;
}

/* Header */
header {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Playfair Display', serif;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a { 
    font-weight: 600; 
    font-size: 0.95rem; 
    color: var(--text-main);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-yellow);
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* Hero Section */
.hero {
    background: var(--primary-yellow);  /* жёлтый фон */
    color: var(--text-main);             /* тёмный текст */
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
}
.hero-wrap {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 28px;
    color: var(--text-main);            /* тёмный текст */
}
.hero-content p {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 580px;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.1);
}
.stat-item strong { 
    display: block; 
    font-size: 2.5rem; 
    font-weight: 800; 
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-item span { 
    font-size: 0.9rem; 
    color: var(--text-main);
    font-weight: 500;
}

/* Order Form (на главной) */
.hero-form {
    background: var(--card-bg);
    padding: 42px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    color: var(--text-main);
    transform: translateY(0);
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.hero-form h3 { 
    margin-bottom: 28px; 
    font-size: 1.6rem; 
    text-align: center;
    color: var(--text-main);
    font-family: 'Playfair Display', serif;
}
.form-group { margin-bottom: 20px; }
.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
    font-size: 0.85rem; 
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-yellow);
    outline: none;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.1);
    background: var(--card-bg);
}
.hero-form .btn { width: 100%; }
.form-note { 
    font-size: 0.75rem; 
    color: var(--text-light); 
    margin-top: 16px; 
    text-align: center;
    line-height: 1.6;
}

/* Trust Badges */
.trust-section {
    padding: 50px 0;
    background: var(--card-bg);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.trust-scroll {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    align-items: center;
}
.trust-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 32px;
    background: var(--light-bg);
    border-radius: 50px;
    transition: all 0.3s ease;
}
.trust-badge:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.trust-score {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.trust-stars { color: #fbbf24; font-size: 1rem; }
.trust-label { font-size: 0.9rem; font-weight: 600; color: var(--text-light); }

/* Advantages */
.advantages { 
    padding: 40px 0; 
    background: var(--light-bg);
}
.section-header {
    text-align: center;
    margin-bottom: 30px;
}
.section-tag {
    display: inline-block;
    padding: 8px 24px;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 100%);
    color: #ffffff;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.section-title { 
    font-size: 2.5rem; 
    margin-bottom: 20px;
    color: var(--text-main);
    font-family: 'Playfair Display', serif;
}
.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}
.adv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    margin-top: 30px;
}
.adv-card {
    background: var(--card-bg);
    padding: 42px 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.adv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.adv-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}
.adv-card:hover::before { transform: scaleX(1); }
.adv-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 28px;
}
.adv-card h4 { 
    font-size: 1.35rem; 
    margin-bottom: 16px;
    color: var(--text-main);
    font-family: 'Playfair Display', serif;
}
.adv-card p { 
    font-size: 0.95rem; 
    color: var(--text-light); 
    line-height: 1.8;
}

/* Services (Тарифы) */
.services { 
    padding: 40px 0; 
    background: var(--dark-bg);
    color: #ffffff;
}
.services .section-title { color: #ffffff; }
.services .section-subtitle { color: rgba(255,255,255,0.7); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    margin-top: 30px;
}
.service-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    position: relative;
}
.service-card:hover {
    border-color: var(--primary-yellow);
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}
.service-card.popular {
    border-color: var(--primary-yellow);
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.05) 0%, rgba(0,0,0,0.2) 100%);
}
.popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 100%);
    color: #ffffff;
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.service-name { 
    font-size: 1.6rem; 
    font-weight: 700; 
    margin-bottom: 20px;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
}
.service-price {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    line-height: 1;
}
.service-period { 
    font-size: 0.9rem; 
    color: rgba(255,255,255,0.6); 
    margin-bottom: 36px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.service-list { 
    text-align: left; 
    margin: 36px 0;
    padding: 0 12px;
}
.service-list li {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.9);
}
.service-list li::before {
    content: '✓';
    color: var(--primary-yellow);
    font-weight: 700;
    font-size: 1.2rem;
}
.service-list li.no { 
    color: rgba(255,255,255,0.3);
    text-decoration: line-through;
}
.service-list li.no::before { 
    content: '✕'; 
    color: rgba(255,255,255,0.3);
}

/* Topics (Примеры) */
.topics { 
    padding: 40px 0; 
    background: var(--light-bg);
}
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 28px;
    margin-top: 30px;
}
.topic-card {
    background: var(--card-bg);
    padding: 32px;
    border-radius: var(--radius-lg);
    border-left: 5px solid var(--primary-yellow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.topic-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.topic-card:hover {
    background: var(--card-bg);
    box-shadow: var(--shadow-xl);
    transform: translateX(6px);
}
.topic-tag {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 100%);
    color: #ffffff;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.topic-title { 
    font-weight: 600; 
    font-size: 1.05rem; 
    line-height: 1.6;
    color: var(--text-main);
}

/* Testimonials (Отзывы) */
.testimonials { 
    padding: 40px 0; 
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 100%);
    color: #ffffff;
}
.testimonials .section-title { color: #ffffff; }
.testimonials .section-subtitle { color: rgba(255,255,255,0.9); }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 32px;
    margin-top: 30px;
}
.testimonial-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-6px);
}
.testimonial-stars { 
    color: #fbbf24; 
    margin-bottom: 20px; 
    font-size: 1.3rem;
    letter-spacing: 3px;
}
.testimonial-text { 
    font-size: 1rem; 
    line-height: 1.8; 
    margin-bottom: 26px; 
    opacity: 0.95;
    font-style: italic;
}
.testimonial-author { 
    font-weight: 700; 
    color: #ffffff; 
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* FAQ */
.faq { 
    padding: 40px 0; 
    background: var(--light-bg);
}
.faq-container { max-width: 900px; margin: 0 auto; }
.faq-item {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 28px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    font-family: 'Playfair Display', serif;
}
.faq-question::after {
    content: '+';
    font-size: 2rem;
    color: var(--primary-yellow);
    font-weight: 300;
    transition: transform 0.3s ease;
}
.faq-question.active::after { 
    content: '−';
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-main);
    padding: 0 28px;
}
.faq-answer p { 
    padding-bottom: 28px; 
    line-height: 1.8;
    color: var(--text-main);
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: rgba(255,255,255,0.6);
    padding: 80px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}
.footer-col h4 { 
    color: #ffffff; 
    margin-bottom: 26px; 
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { 
    color: rgba(255,255,255,0.6);
    transition: color 0.3s ease;
}
.footer-col ul li a:hover { 
    color: var(--primary-yellow);
}
.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
}

/* Buttons (универсальные) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 42px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
/* Primary button – теперь тёмная (на жёлтом фоне) */
.btn-primary { 
    background: var(--text-main);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.btn-primary:hover { 
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
/* Outline button – тёмная рамка и текст */
.btn-outline { 
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--text-main);
}
.btn-outline:hover { 
    background: var(--text-main);
    color: #ffffff;
}
.btn-large { padding: 22px 50px; font-size: 1.1rem; }

/* Стили для страниц тем (дополнительные) */
.article-hero {
    background: var(--dark-bg);
    color: #ffffff;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}
.article-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
}
.article-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
}
.article-tag {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 100%);
    color: #ffffff;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.article-hero h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 25px;
    color: #ffffff;
}
.article-hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    line-height: 1.8;
}
.article-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    padding: 60px 0;
}

.article-content {
    background: var(--card-bg);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.article-content h2 {
    font-size: 2rem;
    margin: 50px 0 25px;
    color: var(--text-main);
}
.article-content h2:first-child {
    margin-top: 0;
}
.article-content h3 {
    font-size: 1.5rem;
    margin: 40px 0 20px;
    color: var(--primary-yellow);
}
.article-content p {
    font-size: 1.05rem;
    margin-bottom: 25px;
    color: var(--text-main);
    line-height: 1.9;
}

.info-box {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    padding: 30px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-yellow);
    margin: 35px 0;
}
.info-box h4 {
    font-size: 1.15rem;
    margin-bottom: 15px;
    color: var(--text-main);
}
.info-box p {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 0;
}

.chapter-card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-yellow);
    margin: 30px 0;
}
.chapter-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-main);
}
.chapter-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.chapter-stat { text-align: center; }
.chapter-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.chapter-stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

.cta-container {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 100%);
    padding: 40px;
    border-radius: var(--radius-lg);
    color: #ffffff;
    text-align: center;
    margin: 50px 0;
}
.cta-container h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #ffffff;
}
.cta-container p {
    color: rgba(255,255,255,0.95);
    margin-bottom: 25px;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.cta-btn {
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.cta-btn-primary {
    background: #ffffff;
    color: var(--primary-yellow);
}
.cta-btn-primary:hover {
    background: var(--primary-yellow);
    color: #ffffff;
}
.cta-btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.3);
}
.cta-btn-secondary:hover {
    background: #ffffff;
    color: var(--primary-yellow);
    border-color: #ffffff;
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 35px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.article-table th {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 100%);
    color: #ffffff;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}
.article-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--text-main);
}
.article-table tr:hover {
    background: var(--light-bg);
}

.checklist {
    background: var(--light-bg);
    padding: 35px;
    border-radius: var(--radius-md);
    margin: 40px 0;
}
.checklist h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: var(--text-main);
}
.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.checklist-item:last-child {
    border-bottom: none;
}
.checklist-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid var(--primary-yellow);
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 3px;
}

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.toc-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: 25px;
}
.toc-card h4 {
    font-size: 1.15rem;
    margin-bottom: 20px;
    color: var(--text-main);
}
.toc-list li { margin-bottom: 10px; }
.toc-list a {
    display: block;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-light);
}
.toc-list a:hover, .toc-list a.active {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    color: var(--primary-yellow);
    font-weight: 600;
}

.order-form {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: 25px;
}
.order-form h2, .order-form h4 {
    font-size: 1.15rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-main);
}
.order-form .form-group {
    margin-bottom: 15px;
}
.order-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-light);
}
.order-form input,
.order-form select,
.order-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
    background: #f8fafc;
    transition: all 0.3s ease;
}
.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
    border-color: var(--primary-yellow);
    outline: none;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.1);
    background: var(--card-bg);
}
.order-form textarea {
    resize: vertical;
    min-height: 80px;
}
.order-form .btn {
    width: 100%;
}

/* Стилизация кнопки отправки в форме заказа (для страниц тем) */
.order-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
    transition: all 0.3s ease;
    margin-top: 15px;
}
.order-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.6);
}

.trust-block {
    background: var(--light-bg);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.trust-block h3, .trust-block h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-main);
}
.trust-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-main);
}
.trust-list li:last-child { border-bottom: none; }
.trust-list li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
}

/* Скрытие сайдбара на страницах тем (как в других темах) */
.sidebar {
    display: none !important;
}
.content-wrapper {
    display: block !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
}
.article-content {
    width: 100% !important;
}

/* Стили для нумерации тем на главной */
.topic-card.numbered {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.topic-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--primary-yellow);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}
.topic-content {
    flex: 1;
}
@media (max-width: 600px) {
    .topic-number {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
}

/* Мобильная адаптация */
@media (max-width: 1024px) {
    .hero-wrap { grid-template-columns: 1fr; gap: 50px; }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); }
    .topics-grid { grid-template-columns: 1fr; }
    .article-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .hero-stats { grid-template-columns: 1fr; gap: 20px; }
    .section-title { font-size: 2.2rem; }
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .trust-scroll { gap: 20px; }
    .services-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .cta-box { padding: 50px 30px; }
    .cta-box h2 { font-size: 2rem; }
    .article-hero h1 { font-size: 2.2rem; }
    .article-content { padding: 30px; }
    .chapter-stats { grid-template-columns: 1fr; }
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ШАПКИ ===== */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px 0;
    }
    .logo {
        width: 100%;
        text-align: center;
        font-size: 1.3rem;
        line-height: 1.3;
        margin-bottom: 8px;
        word-break: break-word;
    }
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 8px;
        margin: 5px 0;
    }
    .nav-links a {
        font-size: 0.85rem;
        padding: 4px 8px;
        white-space: nowrap;
    }
    .header-contacts {
        width: 100%;
        text-align: center;
        margin-top: 5px;
        font-size: 0.9rem;
    }
}

/* Для очень маленьких экранов (до 480px) */
@media (max-width: 480px) {
    .logo {
        font-size: 1.1rem;
    }
    .nav-links a {
        font-size: 0.75rem;
        padding: 4px 6px;
    }
    .header-contacts {
        font-size: 0.8rem;
    }
}

/* ===== СТИЛИ ДЛЯ ШАПКИ (тема 9) ===== */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #dee2e6;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50; /* основной цвет темы */
}
.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    color: #333;
    font-weight: 500;
    text-decoration: none;
}
.nav-links a:hover {
    color: #e67e22; /* акцентный цвет */
}
.header-contacts a {
    color: #2c3e50;
    font-weight: 600;
    text-decoration: none;
}

/* ===== СТИЛИ ДЛЯ ПОДВАЛА ===== */
.site-footer {
    background: #2c3e50;
    color: #b0c4de;
    padding: 40px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-col h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col ul li a {
    color: #b0c4de;
    text-decoration: none;
}
.footer-col ul li a:hover {
    color: #e67e22;
}
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #3a4e64;
    font-size: 0.9rem;
    color: #8a9bb5;
}

/* ===== СТИЛИ ДЛЯ ФОРМЫ ЗАКАЗА НА СТРАНИЦАХ ТЕМ ===== */
.order-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.order-form h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}
.order-form .form-group {
    margin-bottom: 15px;
}
.order-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}
.order-form input,
.order-form textarea,
.order-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
}
.order-form input:focus,
.order-form textarea:focus,
.order-form select:focus {
    border-color: #e67e22;
    outline: none;
}
.order-form button[type="submit"] {
    background: #e67e22;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
}
.order-form button[type="submit"]:hover {
    background: #d35400;
}

/* ===== СТИЛИ ДЛЯ КНОПОК CTA (если используются классы .cta-button и вариации) ===== */
.cta-button a,
.cta-telegram a,
.cta-email a,
.cta-phone a {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}
.cta-telegram a {
    background: #0088cc;
    color: #ffffff;
}
.cta-telegram a:hover {
    background: #006699;
}
.cta-email a {
    background: #dd4b39;
    color: #ffffff;
}
.cta-email a:hover {
    background: #b33f2e;
}
.cta-phone a {
    background: #25d366;
    color: #ffffff;
}
.cta-phone a:hover {
    background: #1da851;
}

/* Альтернативные стили для CTA-блоков, если они обёрнуты в div.cta-container */
.cta-container {
    margin: 30px 0;
}
.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

/* ===== ДОПОЛНИТЕЛЬНО: общие стили для контейнера ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 10px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .cta-row {
        flex-direction: column;
        align-items: center;
    }
    .cta-button a {
        width: 100%;
        text-align: center;
    }
}


/* ===== ИСПРАВЛЕНИЯ ДЛЯ ШАПКИ, ПОДВАЛА И CTA (сайт 13) ===== */

/* Шапка */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background: #ffffff;
    border-bottom: 1px solid #dee2e6;
    padding: 15px 20px; /* отступы внутри шапки */
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
}
.logo a {
    color: #2c3e50;
    text-decoration: none;
}
.main-nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}
.main-nav a {
    color: #333;
    font-weight: 500;
    text-decoration: none;
}
.main-nav a:hover {
    color: #e67e22;
}

/* Подвал (без дополнительных обёрток) */
.site-footer {
    background: #2c3e50;
    color: #b0c4de;
    padding: 40px 20px 20px;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
.footer-section {
    /* стили для каждой колонки */
}
.footer-section h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-section ul li {
    margin-bottom: 8px;
}
.footer-section ul li a {
    color: #b0c4de;
    text-decoration: none;
}
.footer-section ul li a:hover {
    color: #e67e22;
}
.footer-bottom {
    grid-column: 1 / -1; /* растянуть на всю ширину */
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #3a4e64;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #8a9bb5;
}
.footer-bottom a {
    color: #b0c4de;
    text-decoration: none;
}
.footer-bottom a:hover {
    color: #e67e22;
}

/* CTA-блоки */
.cta-container {
    background: #f1f8ff;
    border: 1px solid #b8daff;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    text-align: center;
}
.cta-header {
    font-size: 1.3rem;
    font-weight: 700;
    color: #004085;
    margin-bottom: 15px;
}
.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}
.cta-button a {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}
.cta-telegram a {
    background: #0088cc;
    color: #fff;
}
.cta-telegram a:hover {
    background: #006699;
}
.cta-email a {
    background: #dd4b39;
    color: #fff;
}
.cta-email a:hover {
    background: #b33f2e;
}
.cta-phone a {
    background: #25d366;
    color: #fff;
}
.cta-phone a:hover {
    background: #1da851;
}

/* Выравнивание формы заказа по ширине текста */
.container > .order-form
 {
    width: calc(100% - 440px); /* 300px (ширина сайдбара) + 40px (отступы) */
    margin-left: 0;
    margin-right: auto;
}

/* Форма заказа вне .content-wrapper (сразу после шапки) */
.site-header + .order-form {
    width: calc(100% - 340px);  /* 300px (ширина сайдбара) + 40px (запас на отступы) */
    margin-left: 300px;
    margin-right: 40px;
    box-sizing: border-box;
}

/* Стили для формы заказа внутри статьи */
.article-content .order-form {
    width: 100%;
    margin: 30px 0;
    padding: 25px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.article-content .order-form h2 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 600;
}

.article-content .form-group {
    margin-bottom: 20px;
}

.article-content .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #34495e;
}

.article-content .form-group input,
.article-content .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.article-content .form-group input:focus,
.article-content .form-group textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

.article-content .order-form button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 14px 25px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

.article-content .order-form button:hover {
    background-color: #2980b9;
}
.article-content .order-form {
    width: 100% !important;
    margin: 30px 0 !important;
    ...
}
/* Отступы для контента статьи */
.article-content {
    padding: 200px;
    box-sizing: border-box;
}

/* Стили формы заказа внутри статьи */
.article-content .order-form {
    width: 100%;
    margin: 30px 0;
    padding: 25px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
    .article-content {
        padding: 15px;
    }
    .article-content .order-form {
        padding: 20px;
    }
}
