/*
Theme Name: Roman Portfolio
Description: Своя тема для портфолио дизайна карточек товаров для маркетплейсов
Author: Roman
Version: 1.1
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Jura', Arial, sans-serif;
    background: #ffffff;
    color: #111111;
    line-height: 1.5;
    padding-top: 57px; /* высота фиксированной шапки */
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==== ШАПКА ==== */

.rp-header {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Когда видна панель инструментов WP (32px на десктопе, 46px на мобильном) */
.admin-bar .rp-header {
    top: 32px;
}
@media (max-width: 782px) {
    .admin-bar .rp-header { top: 46px; }
}

/* Компенсируем отступ body */
.admin-bar body {
    padding-top: calc(57px + 32px);
}
@media (max-width: 782px) {
    .admin-bar body { padding-top: calc(57px + 46px); }
}

.rp-header-bar {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.rp-logo {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #111111;
    white-space: nowrap;
}

.rp-logo-roman { color: #111111; font-weight: 900; letter-spacing: -0.5px; }
.rp-logo-dev { color: #2563eb; font-weight: 900; }

.rp-nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rp-nav a {
    font-size: 15px;
    color: #333333;
    white-space: nowrap;
}
.rp-nav a:hover { color: #2563eb; }

/* Футер */
.site-footer {
    padding: 40px 0;
    text-align: center;
    opacity: 0.6;
    font-size: 14px;
}

/* ==== HERO-СЕКЦИЯ ==== */

.hero-section { padding: 20px 0 30px; }

.hero-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text { flex: 0 0 55%; min-width: 0; }

.hero-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    color: #111111;
    margin-bottom: 14px;
}

.hero-subtitle {
    font-size: 16px;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 480px;
}

.hero-btn {
    display: inline-block;
    background: #2563eb;
    color: #ffffff !important;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 8px;
    transition: background 0.2s ease;
}
.hero-btn:hover { background: #1d4ed8; }

.hero-illustration { flex: 0 0 40%; min-width: 0; }

.network-svg { display: block; width: 100%; height: auto; }

@media (max-width: 900px) {
    .hero-inner { flex-direction: column; }
    .hero-text, .hero-illustration { flex: 0 0 100%; width: 100%; }
    .hero-title { font-size: 32px; }
}

/* ==== СЕКЦИЯ "ЧЕМ МОГУ БЫТЬ ПОЛЕЗЕН" ==== */

.services-section { padding: 60px 0 100px; }

.services-title {
    font-size: 34px;
    font-weight: 800;
    color: #111111;
    text-align: center;
    margin-bottom: 48px;
}

.services-grid { display: flex; gap: 24px; }

.service-card {
    flex: 1;
    min-width: 0;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
}

.service-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    overflow: hidden;
}
.service-icon svg { display: block; width: 48px; height: 48px; }

.service-name { font-size: 18px; font-weight: 700; color: #111111; margin-bottom: 10px; }
.service-desc { font-size: 14px; color: #555555; }

@media (max-width: 900px) {
    .services-grid { flex-wrap: wrap; }
    .service-card { flex: 0 0 calc(50% - 12px); }
}
@media (max-width: 500px) {
    .service-card { flex: 0 0 100%; }
}

/* ==== СТРАНИЦА УСЛУГИ ==== */

.services-page-title { font-size: 28px; font-weight: 800; color: #111111; margin-bottom: 4px; }
.services-page-sub { font-size: 14px; color: #555555; margin-bottom: 16px; }
.services-list { display: flex; flex-direction: column; gap: 8px; }

.service-row {
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 14px 20px;
}

.service-row-icon { flex: 0 0 44px; width: 44px; height: 44px; }
.service-row-icon svg { display: block; width: 44px; height: 44px; }
.service-row-body { flex: 1; min-width: 0; }
.service-row-name { font-size: 16px; font-weight: 700; color: #111111; margin-bottom: 4px; }
.service-row-desc { font-size: 13px; color: #666666; line-height: 1.4; }
.service-row-price { flex: 0 0 auto; font-size: 16px; font-weight: 700; color: #2563eb; white-space: nowrap; padding: 0 20px; }

.service-row-btn {
    flex: 0 0 auto;
    background: #2563eb;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 8px;
    white-space: nowrap;
    transition: background 0.2s ease;
}
.service-row-btn:hover { background: #1d4ed8; }

@media (max-width: 900px) {
    .service-row { flex-wrap: wrap; }
    .service-row-price { padding: 0; }
}

/* ==== СТРАНИЦА ОБО МНЕ ==== */

.about-title { font-size: 28px; font-weight: 800; color: #111111; margin-bottom: 4px; }
.about-sub { font-size: 14px; color: #555555; margin-bottom: 24px; }

.about-row { display: flex; gap: 40px; margin-bottom: 24px; align-items: flex-start; }

.about-text { flex: 0 0 45%; display: flex; flex-direction: column; gap: 12px; }
.about-text p { font-size: 14px; color: #444444; line-height: 1.6; }

.about-link { color: #2563eb; text-decoration: underline; text-underline-offset: 3px; }
.about-link:hover { color: #1d4ed8; }

.about-tags { flex: 1; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }

.about-tag {
    display: inline-block;
    border: 1.5px solid #2563eb;
    color: #2563eb;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 6px;
}

.about-stats { display: flex; gap: 16px; }

.about-stat {
    flex: 1;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.about-stat-num { font-size: 36px; font-weight: 800; color: #2563eb; line-height: 1; }
.about-stat-label { font-size: 13px; color: #666666; text-align: center; }

@media (max-width: 900px) {
    .about-row { flex-direction: column; gap: 20px; }
    .about-text { flex: 0 0 100%; }
    .about-stats { flex-wrap: wrap; }
    .about-stat { flex: 0 0 calc(50% - 8px); }
}

/* ==== СТРАНИЦА КОНТАКТЫ ==== */

.contacts-title { font-size: 28px; font-weight: 800; color: #111111; margin-bottom: 4px; }
.contacts-sub { font-size: 14px; color: #555555; margin-bottom: 24px; }
.contacts-list { display: flex; flex-direction: column; gap: 10px; }

.contact-row {
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 16px 24px;
}

.contact-icon-wrap { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; }
.contact-icon-wrap img { display: block; width: 44px; height: 44px; object-fit: cover; }
.contact-body { flex: 1; min-width: 0; }
.contact-name { font-size: 16px; font-weight: 700; color: #111111; margin-bottom: 3px; }
.contact-desc { font-size: 13px; color: #666666; }

.contact-btn {
    flex: 0 0 auto;
    background: #2563eb;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 8px;
    white-space: nowrap;
    transition: background 0.2s ease;
}
.contact-btn:hover { background: #1d4ed8; }

/* ==== СТРАНИЦА ПРИМЕРЫ РАБОТ ==== */

.cases-title {
    font-size: 28px;
    font-weight: 800;
    color: #111111;
    margin-bottom: 4px;
}

.cases-sub {
    font-size: 14px;
    color: #555555;
    margin-bottom: 24px;
}

.cases-benefits {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.cases-benefit {
    flex: 1;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px 20px;
}

.cases-benefit-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
}
.cases-benefit-icon img {
    display: block;
    width: 64px;
    height: 64px;
}

/* ==== ПЛАВАЮЩАЯ КНОПКА ЗАКАЗАТЬ ==== */

.float-btn-wrap {
    position: fixed;
    bottom: 28px;
    right: 24px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.float-btn-main {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 24px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(37,99,235,0.35);
    transition: background 0.2s ease, transform 0.2s ease;
}
.float-btn-main:hover { background: #1d4ed8; transform: translateY(-2px); }

.float-btn-links {
    display: none;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}
.float-btn-links.active { display: flex; }

.float-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #111111 !important;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}
.float-link:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.15); transform: translateX(-2px); }
.float-link img { display: block; width: 20px; height: 20px; border-radius: 4px; }

.cases-benefit-name {
    font-size: 16px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 8px;
}

.cases-benefit-desc {
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
}

.cases-cta-btn {
    display: inline-block;
    background: #2563eb;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 32px;
    border-radius: 8px;
    transition: background 0.2s ease;
}
.cases-cta-btn:hover { background: #1d4ed8; }

@media (max-width: 900px) {
    .cases-benefits { flex-wrap: wrap; }
    .cases-benefit { flex: 0 0 calc(50% - 8px); }
}
@media (max-width: 500px) {
    .cases-benefit { flex: 0 0 100%; }
}

.portfolio-main { padding: 0; }

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    height: calc(100vh - 57px); /* вся высота минус шапка */
    max-width: 100%;
    margin: 0;
}

.portfolio-cell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid #1e293b;
    transition: opacity 0.2s ease;
}
.portfolio-cell:hover { opacity: 0.9; }

.portfolio-cell-dark { background: #0f172a; }
.portfolio-cell-light { background: #ffffff; }

.portfolio-cell-light::after {
    content: '→';
    position: absolute;
    bottom: 16px;
    right: 20px;
    font-size: 18px;
    color: #2563eb;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.portfolio-cell-light:hover::after {
    opacity: 1;
    transform: translateX(4px);
}

.portfolio-cell-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px;
    text-align: center;
}

.portfolio-cell-icon { width: 64px; height: 64px; }
.portfolio-cell-icon svg { display: block; width: 64px; height: 64px; }

.portfolio-cell-title { font-size: 20px; font-weight: 800; line-height: 1.2; }
.portfolio-cell-dark .portfolio-cell-title { color: #ffffff; }
.portfolio-cell-light .portfolio-cell-title { color: #111111; }

.portfolio-cell-desc { font-size: 13px; }
.portfolio-cell-dark .portfolio-cell-desc { color: #64748b; }
.portfolio-cell-light .portfolio-cell-desc { color: #555555; }

@media (max-width: 700px) {
    .portfolio-grid { grid-template-columns: 1fr; }
}

/* ===== ДОСТУПНОСТЬ — SKIP LINK ===== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: #2563eb;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* ===== БУРГЕР МЕНЮ (мобильный) ===== */

/* Скрываем бургер на десктопе */
.rp-burger { display: none !important; }
.rp-mobile-menu { display: none !important; }
.rp-mobile-overlay { display: none !important; }

@media (max-width: 768px) {

    /* Скрываем десктопное меню */
    .rp-nav { display: none !important; }
    
    /* Показываем мобильное меню когда активно */
    .rp-mobile-menu.active { display: block !important; }
    .rp-mobile-overlay.active { display: block !important; }

    /* Показываем бургер */
    .rp-burger {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .rp-burger span {
        display: block;
        width: 100%;
        height: 2px;
        background: #111111;
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    /* Анимация бургера в крестик */
    .rp-burger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .rp-burger.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    .rp-burger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Тёмный оверлей */
    .rp-mobile-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .rp-mobile-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

    /* Мобильное меню — выезжает справа */
    .rp-mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: #ffffff;
        z-index: 1000;
        padding: 80px 32px 32px;
        box-shadow: -4px 0 24px rgba(0,0,0,0.15);
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    .rp-mobile-menu.active {
        right: 0;
    }

    /* Ссылки в мобильном меню */
    .rp-mobile-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .rp-mobile-menu li {
        border-bottom: 1px solid #f0f0f0;
    }
    .rp-mobile-menu a {
        display: block;
        padding: 16px 0;
        font-size: 18px;
        font-weight: 600;
        color: #111111;
        text-decoration: none;
        transition: color 0.2s;
    }
    .rp-mobile-menu a:hover {
        color: #2563eb;
    }
}

/* ===== КНОПКИ КАТЕГОРИЙ НА СТРАНИЦЕ CASES ===== */
.cases-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 0 20px;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Плашки в шапке — появляются плавно */
.rp-header-cats {
    display: none;
    gap: 8px;
    align-items: center;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.rp-header-cats.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.rp-header-bar {
    position: relative;
}

.cases-cat-btn {
    display: inline-block;
    background: #2563eb;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
    white-space: nowrap;
    line-height: 1.4;
}

.cases-cat-btn:hover {
    background: #1d4ed8;
}

.cases-cat-active {
    background: #0f172a;
}

.cases-cat-active:hover {
    background: #1e293b;
}

/* ===== ГЛАВНАЯ: ОБЩИЕ ЗАГОЛОВКИ СЕКЦИЙ ===== */
.section-title {
    font-size: 34px;
    font-weight: 800;
    color: #111111;
    margin-bottom: 8px;
}
.section-sub {
    font-size: 14px;
    color: #666666;
    margin-bottom: 32px;
}
.section-link { color: #2563eb; text-decoration: underline; text-underline-offset: 3px; }

/* ===== ДОВЕРИЕ: 3 ЧИСЛА ===== */
.trust-section { padding: 0 0 60px; }
.trust-stats {
    display: flex;
    gap: 16px;
}
.trust-stat {
    flex: 1;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}
.trust-stat-num {
    font-size: 40px;
    font-weight: 800;
    color: #2563eb;
    line-height: 1;
}
.trust-stat-label {
    font-size: 13px;
    color: #666666;
    line-height: 1.4;
}

/* ===== КАК РАБОТАЮ ===== */
.how-section { padding: 0 0 80px; }
.how-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
}
.how-step {
    flex: 1;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 28px 24px;
}
.how-step-arrow {
    flex: 0 0 40px;
    text-align: center;
    font-size: 20px;
    color: #2563eb;
    padding-top: 32px;
}
.how-step-num {
    font-size: 13px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.how-step-title {
    font-size: 17px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 8px;
}
.how-step-desc {
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
}

/* ===== ПРОЕКТЫ ===== */
.projects-section { padding: 0 0 80px; }
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.project-card {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.project-status {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    align-self: flex-start;
    text-transform: uppercase;
}
.project-status--done { background: #dcfce7; color: #166534; }
.project-status--wip  { background: #dbeafe; color: #1d4ed8; }
.project-status--plan { background: #f3f4f6; color: #6b7280; }
.project-name { font-size: 16px; font-weight: 700; color: #111111; }
.project-desc { font-size: 13px; color: #666666; line-height: 1.4; flex: 1; }
.project-link { font-size: 13px; color: #2563eb; font-weight: 600; margin-top: 4px; }
.project-link:hover { text-decoration: underline; }

/* ===== ОТЗЫВЫ ===== */
.reviews-section { padding: 0 0 80px; }
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.review-card {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.review-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.review-name { font-size: 14px; font-weight: 700; color: #111111; }
.review-date { font-size: 12px; color: #999999; }
.review-stars { color: #f59e0b; font-size: 14px; }
.review-text { font-size: 13px; color: #444444; line-height: 1.6; flex: 1; }
.review-service {
    font-size: 11px;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    padding: 3px 10px;
    border-radius: 20px;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ===== CTA ===== */
.cta-section { padding: 0 0 100px; }
.cta-inner {
    background: #f8faff;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
}
.cta-title { font-size: 28px; font-weight: 800; color: #111111; margin-bottom: 10px; }
.cta-sub { font-size: 15px; color: #666666; margin-bottom: 28px; }
.cta-contacts { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cta-btn {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.cta-btn--primary { background: #2563eb; color: #ffffff !important; }
.cta-btn--primary:hover { background: #1d4ed8; }
.cta-btn--secondary { background: #111111; color: #ffffff !important; }
.cta-btn--secondary:hover { background: #333333; }
.cta-btn--ghost { background: transparent; color: #666666 !important; border: 1px solid #e5e5e5; }
.cta-btn--ghost:hover { border-color: #2563eb; color: #2563eb !important; }

/* ===== АДАПТИВ ГЛАВНОЙ ===== */
@media (max-width: 900px) {
    .trust-stats { flex-wrap: wrap; }
    .trust-stat { flex: 0 0 calc(50% - 8px); }
    .how-steps { flex-direction: column; }
    .how-step-arrow { display: none; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: 1fr; }
    .cta-inner { padding: 32px 20px; }
}
@media (max-width: 500px) {
    .trust-stat { flex: 0 0 100%; }
    .projects-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 26px; }
    .cta-title { font-size: 22px; }
}

/* ===== МОДАЛЬНАЯ ФОРМА ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}
.modal-overlay.active { display: flex; }

.modal-box {
    background: #0f172a;
    border-radius: 16px;
    padding: 40px 36px;
    width: 100%;
    max-width: 520px;
    position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #64748b;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.modal-close:hover { color: #ffffff; }

.modal-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
}
.modal-sub {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 28px;
}

.modal-form { display: flex; flex-direction: column; gap: 14px; }

.modal-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.modal-field label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.modal-field input,
.modal-field textarea {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    color: #ffffff;
    font-family: inherit;
    transition: border-color 0.2s;
    width: 100%;
}
.modal-field input:focus,
.modal-field textarea:focus {
    outline: none;
    border-color: #2563eb;
}
.modal-field input::placeholder,
.modal-field textarea::placeholder { color: #475569; }
.modal-field textarea { resize: vertical; min-height: 100px; }

.modal-file-label {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1e293b;
    border: 1px dashed #334155;
    border-radius: 8px;
    padding: 12px 14px;
    cursor: pointer;
    font-size: 13px;
    color: #64748b;
    transition: border-color 0.2s;
}
.modal-file-label:hover { border-color: #2563eb; color: #94a3b8; }
.modal-file-label input[type="file"] { display: none; }
.modal-file-name { font-size: 12px; color: #2563eb; margin-top: 4px; }

.modal-submit {
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
    font-family: inherit;
    margin-top: 4px;
}
.modal-submit:hover { background: #1d4ed8; }
.modal-submit:disabled { background: #334155; color: #64748b; cursor: not-allowed; }

.modal-messengers {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #1e293b;
    text-align: center;
}
.modal-messengers p {
    font-size: 12px;
    color: #475569;
    margin-bottom: 12px;
}
.modal-messenger-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.modal-messenger-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #334155;
    color: #94a3b8 !important;
    transition: all 0.2s;
}
.modal-messenger-btn:hover { border-color: #2563eb; color: #ffffff !important; }

.modal-success {
    display: none;
    text-align: center;
    padding: 20px 0;
}
.modal-success-icon { margin-bottom: 16px; display: flex; justify-content: center; }
.modal-success-title { font-size: 20px; font-weight: 700; color: #ffffff; margin-bottom: 8px; }
.modal-success-sub { font-size: 14px; color: #64748b; }

@media (max-width: 500px) {
    .modal-box { padding: 28px 20px; }
    .modal-title { font-size: 18px; }
}

.modal-success-img {
    width: 180px;
    height: 120px;
    object-fit: contain;
    display: block;
    margin: 0 auto 20px;
}

/* Фикс экрана успеха */
.modal-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 0;
}
#modalSuccess.active-success { display: flex; }
