/* ============================================
   Страница шаблона экспертизы
   ============================================ */

/* Hero секция экспертизы */
.hero-section {
    width: 100%;
    margin-top: 30px;
    margin-bottom: 80px;
}

.hero-section .container {
    width: 100%;
    max-width: 80rem; /* 1280px */
    padding: 0 100px;
    margin: 0 auto;
    box-sizing: border-box;
}

.hero-section-inner {
    display: flex;
    gap: 35px;
    align-items: flex-start;
}

.hero-left-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 544px;
    flex-shrink: 0;
}

.hero-image {
    width: 100%;
    height: 402px;
    object-fit: cover;
    border-radius: 5px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--color-dark-blue);
    font-size: 25px;
    letter-spacing: 0;
    line-height: 120%;
    margin: 0 0 20px 0;
    text-transform: uppercase;
}

.hero-category {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--color-dark-blue);
    font-size: 16px;
    letter-spacing: 0;
    line-height: 120%;
    margin: 0 0 25px 0;
}

.hero-description {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--color-dark-blue);
    font-size: 14px;
    letter-spacing: 0;
    line-height: 140%;
}

.hero-description p {
    margin: 0 0 14px 0;
}

.hero-description p:last-child {
    margin-bottom: 0;
}

.hero-link {
    color: var(--color-dark-blue);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.hero-link:hover {
    color: var(--color-primary);
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 30px;
}

.hero-buttons:hover .btn-order,
.hero-buttons:hover .btn-arrow {
    box-shadow: 0 0 20px rgba(21, 35, 51, 0.6), 0 0 40px rgba(21, 35, 51, 0.4);
    transform: translateY(-2px);
}

.hero-buttons:hover .btn-order {
    color: #FAFAFA;
}

.hero-buttons:hover .btn-arrow {
    box-shadow: 0 0 20px rgba(230, 0, 18, 0.6), 0 0 40px rgba(230, 0, 18, 0.4);
}

.hero-section .btn-order {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 13px;
    line-height: 120%;
    letter-spacing: 0%;
    text-align: center;
    color: #FAFAFA;
    background: #152333;
    padding: 15px 32px;
    border-radius: 5px;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.hero-section .btn-order:hover {
    text-decoration: none;
    background: var(--color-primary);
    color: #FAFAFA;
}

.hero-section .btn-arrow {
    background: #E60012;
    border: none;
    border-radius: 5px;
    padding: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.hero-section .btn-arrow:hover {
    text-decoration: none;
    background: #cc0010;
}

.hero-section .btn-arrow img {
    width: 15px;
    height: 15px;
    display: block;
    filter: brightness(0) invert(1);
    position: relative;
    z-index: 1;
}

/* Секция "Кому нужна экспертиза" */
.hero-section .who-needs-section {
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
}

.who-needs-section {
    width: 100%;
    margin-bottom: 80px;
}

.who-needs-section .container {
    width: 100%;
    max-width: 80rem; /* 1280px */
    padding: 0 100px;
    margin: 0 auto;
    box-sizing: border-box;
}

.who-needs-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--color-dark-blue);
    font-size: 22px;
    letter-spacing: 0;
    line-height: 120%;
    margin: 0 0 30px 0;
    text-transform: uppercase;
}

.who-needs-content {
    display: flex;
    align-items: flex-start;
    gap: 21px;
    margin-bottom: 25px;
}

.who-needs-icon {
    width: 21px;
    height: 22px;
    flex-shrink: 0;
}

.who-needs-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--color-dark-blue);
    font-size: 15px;
    letter-spacing: 0;
    line-height: 140%;
    margin: 0;
}

.who-needs-question {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--color-dark-blue);
    font-size: 16px;
    letter-spacing: 0;
    line-height: 120%;
    text-decoration: underline;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.who-needs-question:hover {
    color: var(--color-primary);
    text-decoration: underline;
    gap: 15px;
}

.who-needs-question img {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    transform: rotate(-90deg);
    filter: brightness(0) saturate(100%) invert(8%) sepia(15%) saturate(2834%) hue-rotate(182deg) brightness(96%) contrast(89%);
}

.who-needs-question:hover img {
    transform: rotate(-90deg) translateX(3px);
}

.who-needs-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 30px;
}

.who-needs-buttons:hover .btn-order,
.who-needs-buttons:hover .btn-arrow {
    box-shadow: 0 0 20px rgba(250, 250, 250, 0.6), 0 0 40px rgba(250, 250, 250, 0.4);
    transform: translateY(-2px);
}

.who-needs-buttons:hover .btn-order {
    color: #0A141C;
}

.who-needs-buttons:hover .btn-arrow {
    box-shadow: 0 0 20px rgba(230, 0, 18, 0.6), 0 0 40px rgba(230, 0, 18, 0.4);
}

.who-needs-section .btn-order {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 13px;
    line-height: 120%;
    letter-spacing: 0%;
    text-align: center;
    color: #0A141C;
    background: #FAFAFA;
    padding: 15px 32px;
    border-radius: 5px;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.who-needs-section .btn-order:hover {
    text-decoration: none;
}

.who-needs-section .btn-arrow {
    background: #E60012;
    border: none;
    border-radius: 5px;
    padding: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.who-needs-section .btn-arrow:hover {
    text-decoration: none;
}

.who-needs-section .btn-arrow img {
    width: 15px;
    height: 15px;
    display: block;
    filter: brightness(0) invert(1);
    position: relative;
    z-index: 1;
}

.cta-button {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 5px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.cta-button-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 190px;
    height: 45px;
    background-color: var(--color-dark-blue);
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #ffffff;
    font-size: 13px;
    text-align: center;
    letter-spacing: 0;
    line-height: 120%;
    transition: background-color 0.3s ease;
}

.cta-button:hover .cta-button-text {
    background-color: var(--color-primary);
}

.cta-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--color-primary);
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover .cta-button-icon {
    background-color: #cc0010;
}

.cta-button-icon img {
    width: 12.61px;
    height: 12.61px;
    filter: brightness(0) invert(1);
}

/* Особенности ЭПБ */
.features-section {
    width: 100%;
    margin-bottom: 80px;
}

.features-section .container {
    width: 100%;
    max-width: 80rem; /* 1280px */
    padding: 0 100px;
    margin: 0 auto;
    box-sizing: border-box;
}

.features-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--color-dark-blue);
    font-size: 22px;
    letter-spacing: 0;
    line-height: 120%;
    margin: 0 0 47px 0;
    text-transform: uppercase;
}

.features-content {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--color-dark-blue);
    font-size: 14px;
    letter-spacing: 0;
    line-height: 140%;
}

.features-content p {
    margin: 0 0 14px 0;
}

.features-content p:last-child {
    margin-bottom: 0;
}

.features-content p strong {
    font-weight: 700;
    display: block;
    margin-bottom: 14px;
}

.features-content ul {
    margin: 0 0 14px 0;
    padding-left: 20px;
    list-style-type: disc;
}

.features-content ul:last-child {
    margin-bottom: 0;
}

.features-content li {
    margin-bottom: 8px;
    line-height: 140%;
}

.features-content li:last-child {
    margin-bottom: 0;
}

.features-content li strong {
    font-weight: 700;
    display: inline;
}

/* Адаптивность для планшета (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-section .container,
    .who-needs-section .container,
    .features-section .container {
        width: 95%;
        max-width: 95%;
        padding: 0 1.5rem;
    }

    .hero-section-inner {
        flex-direction: column;
        gap: 30px;
    }

    .hero-left-column {
        width: 100%;
        max-width: 544px;
        gap: 20px;
    }

    .hero-image {
        width: 100%;
        max-width: 544px;
    }

    .cta-button {
        position: static;
        margin-top: 20px;
    }
}

/* Мобильная версия */
@media (max-width: 768px) {
    .hero-section {
        margin-top: 20px;
        margin-bottom: 40px;
    }

    .hero-section .container,
    .who-needs-section .container,
    .features-section .container {
        width: 100%;
        padding: 0 10px;
    }

    .hero-section-inner {
        flex-direction: column;
        gap: 20px;
    }

    /* Перестраиваем порядок элементов для мобильной версии */
    /* Используем display: contents чтобы дочерние элементы стали прямыми детьми hero-section-inner */
    .hero-content {
        display: contents;
    }

    .hero-left-column {
        display: contents;
    }

    /* Порядок элементов на мобильной версии - используем order на всех элементах */
    .hero-title {
        order: 1;
        font-size: 20px;
        margin-bottom: 15px;
    }

    .hero-category {
        order: 2;
        font-size: 14px;
        margin-bottom: 20px;
    }

    .hero-image {
        order: 3;
        width: 100%;
        height: 250px;
        margin-bottom: 20px;
    }

    .hero-description {
        order: 4;
        margin-top: 0;
        margin-bottom: 0;
        font-size: 12px;
    }

    .hero-description p {
        margin-bottom: 12px;
    }

    .hero-description p:last-child {
        margin-bottom: 0;
    }

    /* Секция "Кому нужна" размещаем сразу после описания */
    /* Используем универсальный селектор для всех who-needs-section внутри hero-section */
    .hero-section .who-needs-section {
        order: 5 !important;
        margin-top: 20px;
        margin-bottom: 0;
        width: 100%;
        display: block;
    }

    .hero-buttons {
        order: 6;
        margin-top: 20px;
        width: 100%;
        display: flex;
        gap: 5px;
    }

    .hero-buttons .btn-order {
        flex: 1;
        text-align: center;
    }

    .hero-buttons .btn-arrow {
        flex-shrink: 0;
    }

    .who-needs-title,
    .features-title {
        font-size: 18px;
    }

    .who-needs-content {
        flex-direction: row;
        gap: 10px;
    }

    .who-needs-buttons {
        width: 100%;
        margin-top: 20px;
    }

    .who-needs-section .btn-order {
        flex: 1;
        text-align: center;
    }
}
