/* ==============================
   Страница сопоставления номенклатуры
   ============================== */

/* Герой-баннер */
.sop-banner {
    background-image: url("/img/mainmatcher.webp");
}
.sop-banner:after {
    background: #4f0a6a;
    opacity: 0.7;
}

.sop-label {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 30px;
    padding: 6px 20px;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* Секции */
.sop-section {
    width: 100%;
    padding: 60px 0;
    position: relative;
}

.sop-how {
    background: #fff;
}

.sop-steps {
    margin-top: 40px !important;
}

/* Скриншоты */
.sop-screenshots {
    background-image: linear-gradient(270deg, #ffdcf1, #cde0ff);
}

.sop-screens-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.sop-screen-item {
    flex: 1 1 300px;
    max-width: 500px;
    text-align: center;
}

.sop-screen-item img {
    width: 100%;
    max-width: 500px;
    height: 320px;
    object-fit: cover;
    object-position: top;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: zoom-in;
    display: block;
}

.sop-screen-item img:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.22);
}

/* Лайтбокс */
.sop-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    cursor: zoom-out;
}

.sop-lightbox.active {
    display: flex;
}

.sop-lightbox img {
    max-width: 92vw;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    object-fit: contain;
    cursor: default;
}

.sop-lightbox-close {
    position: fixed;
    top: 20px;
    right: 28px;
    color: #fff;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    user-select: none;
}

.sop-lightbox-close:hover {
    opacity: 1;
}

.sop-screen-caption {
    margin-top: 12px;
    font-size: 14px;
    color: #555;
    font-style: italic;
}

/* Возможности */
.sop-features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin-top: 40px;
}

.sop-feature-item {
    background: rgba(255,255,255,0.12);
    border: 2px dashed rgba(255,255,255,0.4);
    border-radius: 16px;
    padding: 24px;
    width: calc(25% - 24px);
    min-width: 220px;
    flex: 1 1 220px;
    max-width: 280px;
}

.sop-feature-icon {
    font-size: 32px;
    margin-bottom: 10px;
    text-align: center;
}

.sop-feature-item h4 {
    text-align: center;
    font-size: 16px;
    margin-bottom: 8px;
}

.sop-feature-item p {
    font-size: 14px;
    text-align: justify;
    color: rgba(255,255,255,0.9);
}

/* Для кого */
.sop-forwhom {
    padding-top: 60px;
    padding-bottom: 60px;
}

.sop-forwhom-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
}

.sop-forwhom-item {
    flex: 1 1 280px;
    max-width: 340px;
    height: auto !important;
    min-height: 160px;
}

/* Установка */
.sop-install {
    padding-bottom: 60px;
}

/* AI-шаг в блоке "как работает" */
.sop-ai-step {
    background: linear-gradient(135deg, #7b2ff7, #f107a3) !important;
    font-size: 14px !important;
    font-weight: bold;
    letter-spacing: 1px;
}

/* AI-сравнение */
.sop-ai-block {
    background-image: linear-gradient(270deg, #bd0071, #035480, #5b1383);
}

.sop-ai-compare {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}

.sop-ai-col {
    flex: 1 1 300px;
    max-width: 480px;
    border-radius: 16px;
    padding: 30px;
}

.sop-ai-col--bad {
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,100,100,0.5);
}

.sop-ai-col--good {
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(100,255,150,0.5);
}

.sop-ai-col-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 16px;
    text-align: center;
}

.sop-ai-col ul {
    padding-left: 20px;
    margin: 0;
}

.sop-ai-col ul li {
    margin-bottom: 10px;
    font-size: 15px;
    color: rgba(255,255,255,0.9);
}

.sop-ai-tech {
    margin-top: 40px;
    text-align: center;
}

.sop-ai-tech-inner {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.sop-ai-tech-label {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-right: 6px;
}

.sop-ai-tech-tag {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 20px;
    padding: 5px 16px;
    font-size: 14px;
    color: #fff;
}

/* Секция возможностей (белый фон) */
.sop-features-section {
    background: #f7f3ff;
}

.sop-features-section h2 {
    color: #1a0a3c;
}

.sop-features-section .sop-feature-item {
    background: #fff;
    border: 2px solid #e0d6ff;
    box-shadow: 0 4px 16px rgba(91,19,131,0.07);
}

.sop-features-section .sop-feature-item h4 {
    color: #1a0a3c;
}

.sop-features-section .sop-feature-item p {
    color: #444;
}

/* Блок цен */
.sop-price-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.sop-price-card {
    flex: 1 1 300px;
    max-width: 440px;
    border-radius: 24px;
    padding: 36px 30px;
    text-align: center;
}

.sop-price-card--main {
    background: linear-gradient(135deg, #5b1383, #035480);
    color: #fff;
    box-shadow: 0 8px 32px rgba(91,19,131,0.25);
}

.sop-price-card--install {
    background: #fff;
    border: 2px solid #ddd;
    color: #222;
}

.sop-price-card-title {
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 12px;
}

.sop-price-card-price {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 4px;
}

.sop-price-card--install .sop-price-card-price {
    font-size: 32px;
    color: #5b1383;
}

.sop-price-card-sub {
    font-size: 13px;
    opacity: 0.65;
    margin-bottom: 24px;
}

.sop-price-card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    text-align: left;
}

.sop-price-card-list li {
    padding: 7px 0 7px 24px;
    position: relative;
    font-size: 14px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.sop-price-card--main .sop-price-card-list li {
    border-bottom-color: rgba(255,255,255,0.1);
}

.sop-price-card-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #7bff9e;
    font-weight: bold;
}

.sop-price-card--install .sop-price-card-list li::before {
    color: #5b1383;
}

.sop-price-btn {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

.sop-price-btn--outline {
    background: transparent !important;
    border: 2px solid #5b1383 !important;
    color: #5b1383 !important;
}

.sop-price-btn--outline:hover {
    background: #5b1383 !important;
    color: #fff !important;
}

.sop-price-note {
    max-width: 700px;
    margin: 30px auto 0;
    background: #f0ebff;
    border-left: 4px solid #5b1383;
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    font-size: 15px;
    color: #333;
}

/* Установка */
.sop-install {
    background: #fff;
    padding-bottom: 60px;
}

/* FAQ-аккордеон */
.sop-faq {
    background: #fff;
}

.sop-faq h2 {
    color: #1a0a3c;
}

.sop-faq-list {
    max-width: 860px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sop-faq-item {
    border: 1.5px solid #e0d6ff;
    border-radius: 14px;
    overflow: hidden;
    background: #faf8ff;
    transition: box-shadow 0.2s;
}

.sop-faq-item:hover {
    box-shadow: 0 4px 18px rgba(91,19,131,0.10);
}

.sop-faq-item summary {
    list-style: none;
    padding: 20px 24px;
    font-size: 17px;
    font-weight: 600;
    color: #1a0a3c;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    user-select: none;
}

.sop-faq-item summary::-webkit-details-marker { display: none; }

.sop-faq-item summary::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    color: #5b1383;
    flex-shrink: 0;
    transition: transform 0.25s;
    line-height: 1;
}

.sop-faq-item[open] summary::after {
    transform: rotate(45deg);
}

.sop-faq-item[open] {
    border-color: #c4a8f5;
    box-shadow: 0 4px 18px rgba(91,19,131,0.10);
}

.sop-faq-answer {
    padding: 0 24px 20px;
    font-size: 15px;
    color: #444;
    line-height: 1.7;
}

/* Адаптив */
@media (max-width: 1000px) {
    .sop-feature-item {
        max-width: 100%;
        width: calc(50% - 24px);
    }

    .sop-forwhom-item {
        width: 80%;
        max-width: 100%;
    }

    .sop-screen-item {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .sop-ai-col {
        max-width: 100%;
    }

    .sop-price-card {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .sop-feature-item {
        width: 100%;
        max-width: 100%;
    }

    .sop-price-card-price {
        font-size: 30px;
    }
}
