/* ==========================================
   Courses Catalog — course-specific styles
   Extends .competition-card from main.css
   ========================================== */

/* Stats Section */
.stats-section {
    margin: 32px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-item {
    text-align: center;
    padding: 28px 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

/* Course card feature (replaces price) */
.course-card-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #667eea;
    font-weight: 500;
    margin-top: auto;
    margin-bottom: 16px;
}

.course-card-feature svg {
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .stat-number {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .stat-item {
        padding: 20px 12px;
    }
    .stat-number {
        font-size: 36px;
    }
    .stat-label {
        font-size: 13px;
    }
}

/* Accreditation Block */
.accreditation-block {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 32px 0;
    padding: 28px 32px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
}

.accreditation-block__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.accreditation-block__icon {
    width: 44px;
    height: 44px;
    background: #f0f0ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.accreditation-block__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.accreditation-block__text strong {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
}

.accreditation-block__text span {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .accreditation-block {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
        margin: 24px 0;
    }
}

/* Licenses Grid — course detail page */
.licenses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.licenses-grid .license-card {
    background: white;
    border-radius: 24px;
    padding: 36px 28px;
    border: 1px solid #E8EDF2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.licenses-grid .license-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 119, 255, 0.15);
    border-color: rgba(0, 119, 255, 0.15);
}

.licenses-grid .license-icon {
    flex-shrink: 0;
}

.licenses-grid .license-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.licenses-grid .license-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.licenses-grid .license-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark, #2C3E50);
    margin: 0;
}

.licenses-grid .license-subtitle {
    font-size: 14px;
    color: #64748B;
    line-height: 1.6;
    margin: 0;
}

.licenses-grid .license-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-purple, #0077FF);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.licenses-grid .license-button:hover {
    color: var(--dark-purple, #0066DD);
}

@media (max-width: 768px) {
    .licenses-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 32px;
    }

    .licenses-grid .license-card {
        flex-direction: row;
        text-align: left;
        padding: 24px 20px;
        gap: 16px;
    }

    .licenses-grid .license-icon img {
        width: 60px;
        height: 60px;
    }

    .licenses-grid .license-title {
        font-size: 15px;
    }

    .licenses-grid .license-subtitle {
        font-size: 13px;
    }

    .licenses-grid .license-button {
        font-size: 13px;
    }

    .licenses-section {
        padding: 48px 0;
    }
}

/* Course Badges (hours + program type) */
.course-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.course-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.course-badge--hours {
    background: var(--light-purple, #F0EDFF);
    color: var(--primary-purple, #433D88);
}

.course-badge--type {
    background: #E8F5E9;
    color: #2E7D32;
}

/* Card title sizing for courses */
.course-card h3 {
    font-size: 18px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 72px;
}

/* Price on catalog cards */
.course-card .competition-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}
.course-card .competition-price .price-old {
    text-decoration: line-through;
    opacity: 0.5;
    font-size: 15px;
    font-weight: 400;
    color: #888;
}
.course-card .competition-price .price-current {
    color: #667eea;
    font-size: 20px;
}

/* ==========================================
   Consultation CTA Block (catalog + detail)
   ========================================== */

/* Consultation CTA — detail page (dark) */
.consultation-cta-section { padding: 0 0 80px; background: white; }
.consultation-cta-block {
    max-width: 900px; margin: 0 auto; background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    border-radius: 24px; padding: 40px 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.consultation-cta-text h2 { color: white; font-size: 24px; margin: 0 0 8px; }
.consultation-cta-text p { color: rgba(255,255,255,0.8); font-size: 15px; margin: 0; line-height: 1.5; }

/* Consultation CTA — catalog page (white card, matches catalog style) */
.consultation-catalog-block {
    margin-top: 32px;
}
.consultation-catalog-inner {
    background: white;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-card);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.consultation-catalog-text h3 {
    font-size: 20px; font-weight: 700; color: var(--text-dark); margin: 0 0 6px;
}
.consultation-catalog-text p {
    font-size: 14px; color: #64748B; margin: 0; line-height: 1.5;
}
.consultation-phone-input--light {
    background: #f5f7fa; color: var(--text-dark); border: 2px solid #e5e7eb;
    padding: 14px 18px; border-radius: 12px; font-size: 15px; min-width: 220px; outline: none;
    transition: border-color 0.3s;
}
.consultation-phone-input--light::placeholder { color: #9ca3af; }
.consultation-phone-input--light:focus { border-color: var(--primary-purple); }
.consultation-inline-row { display: flex; gap: 12px; }
.consultation-phone-input {
    padding: 14px 18px; border: 2px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.1);
    color: white; border-radius: 12px; font-size: 15px; min-width: 220px; outline: none; transition: border-color 0.3s;
}
.consultation-phone-input::placeholder { color: rgba(255,255,255,0.5); }
.consultation-phone-input:focus { border-color: rgba(255,255,255,0.7); }
.consultation-inline-btn {
    padding: 14px 28px; background: var(--gradient-primary); color: white; border: none;
    border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all 0.3s ease;
}
.consultation-inline-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,119,255,0.4); }
.consultation-inline-success {
    display: flex; align-items: center; gap: 10px; color: #4ade80; font-size: 15px; font-weight: 500;
}

/* Consultation Modal */
.consultation-modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 9999;
    justify-content: center; align-items: center;
}
.consultation-modal-overlay.active { display: flex; }
.consultation-modal {
    background: white; border-radius: 24px; padding: 48px; max-width: 440px; width: 90%;
    position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.consultation-modal .close-modal {
    position: absolute; top: 16px; right: 20px; background: none; border: none;
    font-size: 28px; color: #9ca3af; cursor: pointer; line-height: 1;
}
.consultation-modal .close-modal:hover { color: var(--text-dark); }
.consultation-modal h2 { font-size: 24px; margin-bottom: 8px; color: var(--text-dark); }
.consultation-modal .modal-subtitle { color: #6b7280; font-size: 14px; margin-bottom: 24px; }
.consultation-success { text-align: center; }
.consultation-success h3 { color: #10b981; font-size: 20px; margin-bottom: 12px; }

/* Consultation modal form (reuses enrollment-form pattern) */
.consultation-modal .enrollment-form .form-group { margin-bottom: 16px; }
.consultation-modal .enrollment-form label { display: block; font-size: 14px; font-weight: 500; color: var(--text-dark); margin-bottom: 6px; }
.consultation-modal .enrollment-form input {
    width: 100%; padding: 14px 16px; border: 2px solid #e5e7eb; border-radius: 12px;
    font-size: 15px; transition: border-color 0.2s; box-sizing: border-box;
}
.consultation-modal .enrollment-form input:focus { border-color: var(--primary-purple); outline: none; }
.consultation-modal .enrollment-form .btn-submit {
    width: 100%; padding: 16px; background: var(--gradient-primary); color: white;
    font-size: 16px; font-weight: 600; border: none; border-radius: 12px; cursor: pointer;
    transition: all 0.3s ease; margin-top: 8px;
}
.consultation-modal .enrollment-form .btn-submit:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,119,255,0.4); }
.consultation-modal .enrollment-form .btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Hero CTA row buttons — matched sizing */
.catalog-hero .hero-cta-row {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.hero-cta-row .btn-hero {
    margin: 0;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
}
.btn-hero-consultation {
    display: inline-block; background: transparent; color: white; font-size: 16px; font-weight: 600;
    padding: 16px 32px; border-radius: var(--border-radius-button); text-decoration: none;
    transition: all 0.3s ease; border: 2px solid white; cursor: pointer;
}
.btn-hero-consultation:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 960px) {
    .course-card h3 {
        font-size: 17px;
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .course-badges {
        margin-bottom: 10px;
    }

    .course-badge {
        font-size: 11px;
        padding: 3px 10px;
    }

    .course-card h3 {
        font-size: 16px;
        -webkit-line-clamp: 4;
    }

    .course-card .competition-price {
        font-size: 16px;
    }
    .course-card .competition-price .price-old {
        font-size: 13px;
    }
    .course-card .competition-price .price-current {
        font-size: 18px;
    }

    .consultation-cta-block { flex-direction: column; text-align: center; gap: 20px; padding: 32px 24px; }
    .consultation-catalog-inner { flex-direction: column; text-align: center; gap: 20px; padding: 24px; }
    .consultation-inline-row { flex-direction: column; }
    .consultation-phone-input { min-width: 0; width: 100%; }
    .consultation-modal { padding: 32px 24px; }
    .btn-hero-consultation { padding: 14px 24px; font-size: 15px; }

    .hero-cta-row {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

/* ==========================================
   Law Alert Block (legal compliance info)
   ========================================== */

.law-alert {
    margin: 32px 0;
    padding: 32px;
    background: linear-gradient(135deg, #fefefe 0%, #f8f7ff 100%);
    border-radius: 16px;
    border: 1px solid #e0ddf5;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.08);
}

.law-alert__header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.law-alert__icon {
    width: 48px;
    height: 48px;
    background: #f0f0ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.law-alert__title h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px;
    line-height: 1.3;
}

.law-alert__subtitle {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.law-alert__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}

.law-alert__col h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px;
}

.law-alert__col--risks h3 { color: #c0392b; }
.law-alert__col--trust h3 { color: #1a1a2e; }

.law-alert__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.law-alert__list li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    color: #4A5568;
    line-height: 1.5;
}

.law-alert__col--risks .law-alert__list li::before {
    content: '\2715';
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: 700;
    font-size: 13px;
}

.law-alert__list--check li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: 700;
    font-size: 14px;
}

.law-alert__footer {
    padding-top: 16px;
    border-top: 1px solid #e8e5f0;
}

.law-alert__ref {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .law-alert { padding: 24px 20px; margin: 24px 0; }
    .law-alert__body { grid-template-columns: 1fr; gap: 20px; }
    .law-alert__title h2 { font-size: 18px; }
}

@media (max-width: 480px) {
    .law-alert { padding: 20px 16px; }
    .law-alert__icon { width: 40px; height: 40px; }
    .law-alert__title h2 { font-size: 16px; }
    .law-alert__list li { font-size: 13px; }
}

/* ==========================================
   Catalog Hero (course-detail style)
   ========================================== */

.catalog-hero::before {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    width: calc(100% - 40px);
    max-width: 1400px;
    border-radius: 0 0 32px 32px;
}

/* Badges */
.catalog-hero .hero-badges { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 10px; }
.catalog-hero .hero-category {
    display: inline-block; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
    padding: 8px 20px; border-radius: 8px; font-size: 16px; font-weight: 500; color: rgba(255,255,255,0.9);
}

/* Title override for catalog hero */
.catalog-hero .hero-title { font-size: 35px; font-weight: 700; line-height: 1.15; margin-bottom: 10px; color: white; }

/* Middle grid */
.catalog-hero .hero-main-grid {
    display: grid; grid-template-columns: 65fr 35fr; gap: 40px;
    align-items: start; margin-bottom: 14px;
}

/* Attestation card */
.catalog-hero .hero-attestation-card {
    background: rgba(255,255,255,0.08); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12); border-radius: 24px;
    padding: 20px 24px;
}
.catalog-hero .hero-attestation-header {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.1); padding: 6px 14px;
    border-radius: 8px; margin-bottom: 8px;
}
.catalog-hero .hero-attestation-logo { width: 32px; height: 32px; object-fit: contain; }
.catalog-hero .hero-attestation-badge-text { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.9); }
.catalog-hero .hero-attestation-title {
    font-size: 26px; font-weight: 700; color: white;
    margin: 0 0 12px; line-height: 1.3;
}
.catalog-hero .hero-attestation-title span { color: #4ade80; }
.catalog-hero .hero-attestation-desc {
    font-size: 15px; color: rgba(255,255,255,0.8); line-height: 1.6; margin-bottom: 8px;
}
.catalog-hero .hero-attestation-desc strong { color: white; }

/* Feature checklist */
.catalog-hero .hero-features-list {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.catalog-hero .hero-features-list li {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 14px; color: rgba(255,255,255,0.9); line-height: 1.4;
}
.catalog-hero .hero-features-list li svg { flex-shrink: 0; margin-top: 2px; }

/* Left column wrapper */
.catalog-hero .hero-left-col { display: flex; flex-direction: column; gap: 20px; }

/* Skolkovo doc thumbnail */
.catalog-hero .hero-skolkovo-doc {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    cursor: pointer; transition: transform 0.3s ease;
}
.catalog-hero .hero-skolkovo-doc:hover { transform: scale(1.03); }
.catalog-hero .hero-skolkovo-doc-img {
    width: 100%; border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.15);
}
.catalog-hero .hero-skolkovo-doc-caption {
    font-size: 12px; color: rgba(255,255,255,0.6); text-align: center;
}

/* Bottom row */
.catalog-hero .hero-bottom-row {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 20px;
}
.catalog-hero .btn-hero-cta {
    display: inline-block; background: var(--gradient-primary); color: white; font-size: 16px; font-weight: 600;
    padding: 18px 36px; border-radius: var(--border-radius-button); text-decoration: none;
    transition: all 0.3s ease; box-shadow: 0 4px 16px rgba(0,119,255,0.4); border: none; cursor: pointer;
}
.catalog-hero .btn-hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,119,255,0.5); opacity: 1; }
.catalog-hero .hero-frdo-badge {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.08); padding: 10px 20px;
    border-radius: 50px; font-size: 14px; color: rgba(255,255,255,0.9);
}

/* Skolkovo Document Modal */
.skolkovo-modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
    z-index: 9999; align-items: center; justify-content: center;
}
.skolkovo-modal-overlay.active { display: flex; }
.skolkovo-modal {
    background: white; border-radius: 32px; padding: 32px; max-width: 700px; width: 90%;
    position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    max-height: 90vh; overflow-y: auto;
}
.skolkovo-modal .close-modal {
    position: absolute; top: 16px; right: 20px; background: none; border: none;
    font-size: 28px; color: #9ca3af; cursor: pointer; line-height: 1; z-index: 1;
}
.skolkovo-modal .close-modal:hover { color: var(--text-dark); }
.skolkovo-modal-img {
    width: 100%; height: auto; border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.skolkovo-modal-caption {
    text-align: center; font-size: 14px; color: #6b7280; margin-top: 16px;
}

/* Catalog Hero Responsive */
@media (max-width: 1024px) {
    .catalog-hero .hero-main-grid { grid-template-columns: 65fr 35fr; gap: 32px; }
    .catalog-hero .hero-title { font-size: 30px; }
}

@media (max-width: 768px) {
    .catalog-hero { padding-bottom: 60px; }
    .catalog-hero .hero-main-grid { grid-template-columns: 1fr; gap: 24px; }
    .catalog-hero .hero-title { font-size: 26px; }
    .catalog-hero .hero-attestation-title { font-size: 22px; }
    .catalog-hero .hero-features-list { grid-template-columns: 1fr; }
    .catalog-hero .hero-skolkovo-doc { max-width: 200px; margin: 0 auto; }
    .catalog-hero .hero-bottom-row { flex-direction: column; align-items: flex-start; }
    .catalog-hero::before { border-radius: 0; width: 100%; max-width: 100%; }
}

@media (max-width: 480px) {
    .catalog-hero { padding-bottom: 40px; }
    .catalog-hero .hero-title { font-size: 22px; }
    .catalog-hero .hero-attestation-card { padding: 16px; }
    .catalog-hero .hero-attestation-title { font-size: 20px; }
    .catalog-hero .hero-attestation-desc { font-size: 14px; }
    .catalog-hero .hero-category { font-size: 13px; padding: 6px 14px; }
    .catalog-hero .hero-skolkovo-doc { max-width: 160px; }
    .catalog-hero::before { border-radius: 0; }
}

/* ==========================================
   Social Proof Bento Grid
   ========================================== */

.social-proof {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    border-radius: 32px;
    padding: 48px;
    margin: 40px 0;
}

.social-proof__title {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 32px 0;
    line-height: 1.25;
}

.social-proof__grid {
    display: grid;
    grid-template-columns: 7fr 3fr;
    grid-template-areas:
        "license  skolkovo"
        "license  rbc";
    gap: 20px;
}

.social-proof__grid-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

/* Card base */
.sp-card {
    background: #2A2A3E;
    border-radius: 24px;
    padding: 28px;
    color: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.sp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 119, 255, 0.15);
}

.sp-card--rbc { grid-area: rbc; }
.sp-card--license { grid-area: license; }
.sp-card--skolkovo { grid-area: skolkovo; }

/* Card typography */
.sp-card__badge {
    display: inline-block;
    background: rgba(0, 119, 255, 0.2);
    color: #5ba8ff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sp-card__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px 0;
    color: #fff;
}

.sp-card--rbc .sp-card__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.sp-card__desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.sp-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5ba8ff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    margin-top: auto;
}

.sp-card__link:hover {
    color: #89c4ff;
    text-decoration: underline;
}

.sp-card__link + .sp-card__link {
    margin-left: 16px;
}

.sp-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: auto;
}

/* Card images */
.sp-card__img {
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 16px;
}

.sp-card__img:hover {
    opacity: 0.85;
}

/* License thumbnails grid */
.sp-license-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.sp-license-grid img {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.2s;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.sp-license-grid img:hover {
    opacity: 0.85;
}

/* Skolkovo card */
.sp-card--skolkovo {
    align-items: flex-start;
    justify-content: center;
}

.sp-skolkovo-logo {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    flex-shrink: 0;
    object-fit: contain;
    margin-bottom: 16px;
    border-radius: 16px;
}

/* Thanks gallery grid */
.sp-thanks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.sp-thanks-grid img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.sp-thanks-grid img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Number highlight */
.sp-card__highlight {
    color: #5ba8ff;
}

/* ==========================================
   Image Lightbox
   ========================================== */

.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.image-lightbox.active {
    display: flex;
}

.image-lightbox__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(4px);
}

.image-lightbox__container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 40px;
}

.image-lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.image-lightbox__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    z-index: 2;
    opacity: 0.7;
    transition: opacity 0.2s;
    line-height: 1;
    padding: 8px;
}

.image-lightbox__close:hover {
    opacity: 1;
}

.image-lightbox__prev,
.image-lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.image-lightbox__prev { left: 16px; }
.image-lightbox__next { right: 16px; }

.image-lightbox__prev:hover,
.image-lightbox__next:hover {
    background: rgba(255, 255, 255, 0.25);
}

.image-lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 16px;
    border-radius: 20px;
}

/* Single image — hide nav */
.image-lightbox--single .image-lightbox__prev,
.image-lightbox--single .image-lightbox__next,
.image-lightbox--single .image-lightbox__counter {
    display: none;
}

/* ==========================================
   Social Proof Responsive
   ========================================== */

@media (max-width: 900px) {
    .social-proof {
        padding: 32px 24px;
        border-radius: 24px;
        margin: 28px 0;
    }

    .social-proof__title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .social-proof__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "license  skolkovo"
            "license  rbc";
    }

    .sp-card { padding: 22px; }
}

@media (max-width: 768px) {
    .social-proof {
        padding: 24px 16px;
        border-radius: 20px;
        margin: 24px 0;
    }

    .social-proof__title {
        font-size: 22px;
    }

    .social-proof__grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "license"
            "skolkovo"
            "rbc";
        gap: 16px;
    }

    .social-proof__grid-bottom {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 16px;
    }

    .sp-card { padding: 20px; border-radius: 20px; }
    .sp-card--rbc .sp-card__title { font-size: 20px; }
    .sp-card__title { font-size: 18px; }
    .sp-card__number { font-size: 40px; }

    .sp-thanks-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 6px;
    }

    .image-lightbox__container { padding: 16px; }
    .image-lightbox__prev { left: 8px; }
    .image-lightbox__next { right: 8px; }
}

@media (max-width: 480px) {
    .social-proof { padding: 20px 14px; }
    .sp-card { padding: 16px; border-radius: 16px; }
    .sp-card__title { font-size: 16px; }
    .sp-card--rbc .sp-card__title { font-size: 18px; }
    .sp-card__number { font-size: 36px; }
    .sp-skolkovo-logo { width: 60px; height: 60px; }
}
