/* Подключение шрифта Commissioner */
@import url('https://fonts.googleapis.com/css2?family=Commissioner:wght@400;600;700;800&display=swap');

/* Глобальные настройки для страницы */
html {
    scroll-behavior: smooth;
}

/* Принудительное назначение шрифта для всех текстовых узлов, контейнеров и элементов форм (объединено в один блок) */
body, input, button, textarea, select,
.solution-hero, .solution-detail, .key-functions, 
.how-it-works, .cta-result, .service-formats,
.package-label::before, .btn, .tab-btn {
    font-family: 'Commissioner', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero-блок */
.solution-hero {
    padding-bottom: 100px;
    color: #fff;
    text-align: left;
    display: block;
    background-color: #000;
    position: relative;
    overflow: hidden;
}

.solution-hero .container {
    max-width: 1335px;
    padding: 0 20px;
    display: flex;
    justify-content: flex-start;
}

.solution-hero__content {
    width: 100%;
    max-width: 820px;
    margin: 0 !important;
    text-align: left;
    position: relative;
    z-index: 5;
}

/* Элементы контента */
.video-hero__kicker {
    font-size: 12px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.solution-hero__title {
    font-size: 44px !important;
    line-height: 1.15;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.video-hero__subtitle {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.3;
}

.video-hero__lead {
    max-width: 820px;
    font-size: 18px;
    line-height: 1.55;
    color: #fff;
    margin-bottom: 52px;
}

/* Кнопки */
.solution-hero__actions {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
}

.solution-hero .btn {
    border-radius: 9999px;
    padding: 12px 22px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
}

.solution-hero .btn--white {
    background: #fff !important;
    color: #005fae !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.solution-hero .btn--blue {
    background: rgba(0, 62, 124, 0.85) !important;
    color: #fff !important;
    border: 1px solid rgba(110, 167, 255, 0.35);
}

.solution-hero .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Основной контейнер секции */
.solution-detail {
    padding: 80px 0 0;
    background-color: #fff;
}

/* Вводный текст (Intro) */
.solution-detail__intro {
    max-width: 900px;
    margin-bottom: 45px;
}

.solution-detail__intro p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

/* Сетка (Grid) */
.solution-detail__grid {
    display: flex;
    gap: 40px;
    align-items: center;
}

/* Левая часть - Медиа */
.solution-detail__media {
    flex: 0 0 auto;
    width: 615px;
    max-width: 100%;
}

.solution-detail__image {
    position: relative;
    display: block;
    width: 100%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: transparent;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Правая часть - Список */
.solution-detail__relevant {
    flex: 1;
    background: #f4f5f7;
    border-radius: 16px;
    padding: 24px 28px;
    align-self: stretch;
}

.solution-detail__title {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 25px;
    line-height: 1.3;
}

/* Кастомный список */
.solution-custom-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.solution-custom-list li {
    position: relative;
    margin-bottom: 18px;
    margin-top: 28px;
    color: #2b2b2b;
    font-size: 18px;
    line-height: 1.5;
}

.solution-custom-list .list-arrow {
    color: #007BB7;
    font-weight: bold;
    font-size: 18px;
    line-height: 1;
    margin-top: 2px;
}

/* Ключевые функции решения */
.key-functions {
    padding: 80px 0;
    background-color: #fff;
    overflow: hidden; 
}

/* Навигация табов */
.key-functions .tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 40px;
}

.key-functions .tab-btn {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.key-functions .tab-btn:hover { color: #008aff; }
.key-functions .tab-btn.active { color: #0073aa; }

.key-functions .tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #0073aa;
}

/* Сетка контента внутри таба */
.kf-panel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 50px;
    align-items: start;
}

.kf-text-side h3 {
    margin-bottom: 20px;
    font-size: 24px;
    line-height: 1.3;
    color: #000;
}

.kf-features-text ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kf-features-text ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.5;
    color: #444;
}

.kf-features-text ul li::before {
    content: "•";
    color: #0073aa;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 20px;
}

/* --- УМНАЯ СЕТКА ИЗОБРАЖЕНИЙ --- */
.kf-image-side {
    display: grid;
    gap: 15px;
    min-width: 0;
}

.grid-3-plus {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.grid-3-plus .kf-img-wrap:first-child,
.grid-3-plus .kf-img-wrap:last-child:nth-child(2) {
    grid-column: 1 / span 2;
}

.grid-3-plus .kf-img-wrap:nth-child(2):nth-last-child(2),
.grid-3-plus .kf-img-wrap:nth-child(3):nth-last-child(1) {
    grid-column: auto;
}

.grid-stack { grid-template-columns: 1fr; }

.kf-img-wrap img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: block;
}

.key-functions .tab-content { display: none; }
.key-functions .tab-content.active { display: block; }

/* Как это работает */
.how-it-works {
    padding: 80px 0;
}

.hiw-grid {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 40px;
    align-items: stretch;
}

.hiw-steps-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 150px; 
}

.hiw-step-item {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 300px;
}

.hiw-step-number {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    background-color: #0073aa;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.hiw-step-text {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: #000;
}

.hiw-content-side {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hiw-content-box {
    background-color: #f2f4f7;
    padding: 40px;
    border-radius: 30px;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

.hiw-scheme-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* CTA-блок Результат */
.cta-result {
    padding: 80px 0;
}

.cta-blue-card {
    background: linear-gradient(135deg, #0060b1 0%, #00458b 100%);
    border-radius: 40px;
    padding: 60px;
    color: #fff;
    box-shadow: 0 20px 50px rgba(0, 70, 140, 0.2);
}

.cta-header { margin-bottom: 50px; }

.cta-title {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 10px 0;
}

.cta-subtitle {
    margin-left: 0;
    font-size: 24px !important;
    opacity: 0.8;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.cta-item {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 40px 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

.cta-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.cta-number {
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
}

.cta-number span {
    font-size: 28px;
    font-weight: 600;
    text-transform: lowercase;
    opacity: 0.9;
}

.cta-desc {
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.9;
}

.cta-footer {
    display: flex;
    justify-content: flex-end;
}

.btn-white-glass {
    display: inline-block;
    background: #fff;
    color: #00458b;
    padding: 20px 50px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-white-glass:hover {
    transform: scale(1.05);
    background: #f0f7ff;
}

/* Блок Формат обслуживания */
.service-formats {
    padding: 70px 0 80px;
    background: #fff;
}

/* Специфический цвет для span внутри .sf-title */
.sf-title span {
    color: #005fae;
}

.sf-flex {
    display: flex;
    justify-content: center;
    gap: 22px;
}

.sf-card {
    max-width: 420px;;
    background: #f4f5f7;
    border-radius: 14px;
    padding: 20px 20px 22px;
    color: #1a1a1a;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 100%;
}

.sf-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.sf-diamond {
    color: #005fae;
    font-size: 22px;
}

.sf-plan-name {
    font-size: 20px;
    font-weight: 600;
    margin: 0; /* Возвращено */
}

.sf-label {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a; /* Возвращено */
    margin-top: 4px;
}

.sf-list {
    list-style: none;
    padding: 0;
    margin: 0;
    min-height: 250px;
}

.sf-list li {
    position: relative;
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
}

.sf-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: -6px;
    color: #1a1a1a;
    font-size: 19px;
}

.package-label {
    position: relative;
    display: inline-block;
    padding-right: 22px;
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 600;
}

.package-label::after {
    content: '?';
    position: relative;
    display: inline-block;
    right: -6px;
    top: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #7bb6e5;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
}

.package-label::before {
    content: attr(data-tooltip);
    position: absolute;
    left: 56px;
    top: calc(100% + -88px);
    width: 260px;
    padding: 8px 10px;
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    /* Возвращена плавная анимация */
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 2;
}

.package-label:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.package-note {
    color: #005fae;
    font-size: 13px;
    font-weight: 400;
    margin-top: -2px;
}

.sf-description {
    min-height: 75px;
    line-height: 1.5;
    color: #2b2b2b;
    margin: 0; /* Возвращено */
    font-size: 14px;
}

.sf-actions {
    margin-top: 40px;
    text-align: center;
}

.btn-blue-solid {
    display: inline-block;
    background: #003e7c;
    color: #fff;
    padding: 18px 45px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-blue-solid:hover {
    background: #005fae;
}

/* --- АДАПТИВНОСТЬ --- */

@media (max-width: 1199px) {
    .cta-number { font-size: 52px; }
    .cta-number span { font-size: 24px; }
}

@media (max-width: 991px) {
    .solution-hero__title { font-size: 32px !important; }
    
    .solution-detail__grid, .hiw-grid, .sf-grid { 
        grid-template-columns: 1fr; 
        flex-direction: column;
    }
    
    .solution-detail__media { max-width: 100%; }
    
    .hiw-steps-side { 
        gap: 30px; 
        padding-bottom: 0;
        margin-bottom: 30px; 
    }
    
    .cta-grid { grid-template-columns: 1fr; }
    .cta-blue-card { padding: 40px 25px; }
    .cta-footer { justify-content: center; }
    .cta-title { font-size: 36px; }

    .sf-list { min-height: auto; }
    .package-label::before { left: 0; width: 220px; }
}

@media (max-width: 768px) {
    .solution-hero { padding-top: 120px; padding-bottom: 60px; }
    .video-hero__subtitle { font-size: 20px !important; }
    .video-hero__lead { font-size: 16px !important; margin-bottom: 30px; }
    .solution-hero__actions { flex-direction: column; }
    .solution-hero .btn { width: 100%; }
}

@media (min-width: 1200px) { .solution-hero .container { min-width: 1200px; } }
@media (min-width: 1400px) { .solution-hero .container { min-width: 1335px; } }

/* Единый стиль заголовков секций */
.section-title,
.sf-title,
.key-functions .section-title {
    font-size: 36px;
    color: #1a1a1a;
    margin-bottom: 40px;
    font-weight: 500;
    line-height: 1.3;
}