/* Hero Section */
.hero {
    position: relative;
    min-height: 740px;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(270deg, #FFF 41.35%, rgba(255, 255, 255, 0.00) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 775px;
    padding: 30px 20px 165px;
}

.hero-title {
    font-size: 45px;
    font-weight: 900;
    line-height: 130%;
    color: #000;
    margin: 0 auto 30px;
}

.hero-card {
    border-radius: 8px;
    border: 0.562px solid rgba(255, 255, 255, 0.70);
    background: linear-gradient(181deg, rgba(255, 255, 255, 0.35) -33.36%, rgba(255, 255, 255, 0.00) 106.41%);
    backdrop-filter: blur(10.2px);
    padding: 30px 75px;
}

.hero-subtitle {
    font-size: 25px;
    font-weight: 400;
    line-height: 130%;
    color: #000;
    margin-bottom: 10px;
}

.hero-description {
    font-size: 14px;
    font-weight: 400;
    line-height: 140%;
    color: #000;
}

/* CTA Banner */
.cta-banner {
    background: var(--main-gradient);
    position: relative;
    padding: 0;
    margin-top: -120px;
    z-index: 2;
}

.banner-background_box {
    position: relative;
    height: 122px;
    width: 194px;
}

.banner-background_box::before {
    content: '';
    left: auto;
    right: 0;
    top: 0;
    bottom: 0;
    display: block;
    background: linear-gradient(90deg, #020820 68.27%, rgba(2, 8, 32, 0.00) 100%);
    position: absolute;
    width: 313%;
    z-index: 2;
}


.banner-background {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #020820 68.27%, rgba(2, 8, 32, 0.00) 100%);
    z-index: 1;
    object-fit: cover;
    display: block;
}

.cta-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.cta-text {
    max-width: 306px;
}

.cta-text h2 {
    color: var(--white);
    font-family: 'Montserrat';
    font-size: 18px;
    font-style: normal;
    font-weight: 900;
    line-height: 130%;

}

.cta-text p {
    color: var(--white);
    font-size: 14px;
    font-weight: 400;
    line-height: 140%;
}

.cta-books {
    display: flex;
    width: 182px;
    position: relative;
}

.book-image {
    width: 182px;
    height: 210px;
    object-fit: contain;
    position: absolute;
    left: 0;
    top: auto;
    bottom: -110px;
}

.cta-content .btn-primary {
    margin: 0 auto;
    padding: 10px 28px;
}

/* Section Titles */
.section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 21px;
}

.section-title .highlight {
    color: var(--orange-primary);
}

.section-description {
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    line-height: 140%;
    max-width: 720px;
    margin: 0 auto 40px;
}

.why_specialist {
    padding: 138px 0 0;
}

.why_specialist-background {
    position: absolute;
    left: auto;
    right: 0;
    top: 36%;
    z-index: -1;
}

.nuances {
    padding: 20px 0 35px;
}

.nuances .section-title {
    margin-bottom: 62px;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    border-radius: 8px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 278px;
    object-fit: cover;
    margin-bottom: 20px;
}

.card-content {
    padding: 10px 12px;
    position: relative;
}

.card-content::before {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    content: '';
    width: 2px;
    height: 100%;
    border-radius: 8px;
    background: #EC6F2A;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 140%;
    color: var(--gray-1);
    margin-bottom: 10px;
}

.card-text {
    font-size: 14px;
    font-weight: 400;
    line-height: 140%;
    color: var(--gray-1);
}

.feature {
    padding: 80px 0 120px;
}

.feature .section-description {
    margin: 0 auto 120px;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 30px;
}

.feature-item.is-even .feature-item-box {
    background: #467190;
}

.feature-item.is-odd .feature-item-box {
    order: 2;
    background: #EC6F2A;
}

.feature-item.is-odd .feature-text {
    order: 1;
    text-align: right;
}

.feature-image {
    width: 540px;
    height: 180px;
    border-radius: 0 0 420px 0;
    object-fit: cover;
    display: block;
}

.feature-item.is-odd .feature-image {
    border-radius: 0 0 0 420px;
}

.feature-text {
    font-size: 18px;
    font-weight: 900;
    line-height: 140%;
    color: var(--gray-1);
    flex: 1;
}

.feature .feature-description {
    margin: 60px auto 0;
}

/* How It Works */
.how-it-works {
    background: var(--blue-medium);
    color: var(--white);
    padding: 60px 0;
}

.how-it-works .container {
    z-index: 2;
}

.how-it-works .section-title {
    margin-bottom: 70px;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin: 0 auto;
    padding: 0 40px;
}

.step {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.step-number {
    font-family: 'Montserrat-Fixed';
    font-size: 45px;
    font-weight: 900;
    color: #467190;
    -webkit-text-stroke: 2px #ffffff;
    paint-order: stroke fill;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 9px;
    display: block;
    width: 33px;
    margin: auto 0;
}

.step-icon {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
    position: relative;
}

.step:not(:last-child) .step-icon::before {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    top: 50%;
    background: #fff;
    width: 1px;
    height: 190%;
    content: '';
}

.step-content {
    max-width: 450px;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 140%;
    margin-bottom: 10px;
}

.step-content h3 .highlight {
    color: var(--orange-primary);
}

.step-content p {
    font-size: 14px;
    font-weight: 300;
    line-height: 140%;
}

/* Lists */
.checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    font-weight: 700;
    line-height: 140%;
    position: relative;
}

.checklist li::before {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: url('/wp-content/themes/atan/assets/img/Ellipse\ 11.svg');
    flex-shrink: 0;
}

.checklist.gradient li::before {
    background: url('/wp-content/themes/atan/assets/img/Ellipse\ 14.svg');

}

.works-background {
    position: absolute;
    right: 0;
    bottom: 0;
    top: auto;
    left: auto;
    z-index: 1;
}

/* Accidents Types */

.accidents {
    padding: 120px 0;
}

.accidents-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 40px;
    width: fit-content;

}

.accident-category {
    display: flex;
    gap: 30px;
    align-items: center;

}

.accident-category:not(:last-child) {
    margin-bottom: 80px;
}

.accident-category-box {
    max-width: 49%;
    width: 433px;
    position: relative;
    padding-left: 12px;
}

.accident-category-box::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    left: 0;
    top: 0;
    border-radius: 8px;
    background: #EC6F2A;
}

.accident-expertise-overline {
    margin-bottom: 20px;
    display: block;
}

.accident-category h3 {
    font-size: 45px;
    font-weight: 900;
    line-height: 130%;
    margin-bottom: 20px;

}

.accident-category h3 .highlight {
    color: var(--orange-primary);
}

.accident-category p {
    font-size: 14px;
    font-weight: 400;
    line-height: 140%;
    margin-bottom: 20px;
}

.accident-category .accident-category-box p {
    margin-bottom: 0;
}

/* Recovery Section */
.recovery-section {
    background: var(--white);
}

.recovery-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.recovery-intro {
    border-left: 2px solid var(--orange-primary);
    padding-left: 22px;
}

.recovery-intro h2 {
    font-size: 45px;
    font-weight: 900;
    line-height: 130%;
    margin-bottom: 20px;
}

.recovery-intro h2 .highlight {
    color: var(--orange-primary);
}

.recovery-intro p {
    font-size: 14px;
    font-weight: 400;
    line-height: 140%;
    margin-bottom: 15px;
}

/* FAQ */
.faq-section {
    background: var(--blue-medium);
    position: relative;
    padding: 60px 0;
}

.faq-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.faq-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
}

.faq-section {
    padding: 60px 0;
}

.faq-list {
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.faq-item {
    border-radius: 8px;
    border: 1px solid var(--white);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    background: var(--white);
}

.faq-question {
    padding: 14px 28px 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 20px;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 140%;
    color: var(--white);
}

.faq-item.active .faq-question h3 {
    color: var(--navy-dark);
}

/* Прячем ответ через нулевую высоту строки грида */
.faq-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Раскрываем до 1fr (полная высота контента) */
.faq-item.active .faq-answer-wrapper {
    grid-template-rows: 1fr;
}

/* Обязательно для анимации высоты */
.faq-answer-content {
    overflow: hidden;
}

/* Иконка: по умолчанию смотрит вниз (или вверх, смотря как в SVG) */
.faq-icon {
    transition: transform 0.4s ease;
}

/* Поворачиваем иконку при активации */
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-icon path {
    fill: #EC6F2A;
    transition: fill .5s;
}

.faq-item.active .faq-icon path {
    fill: #0E4784;
}

/* Убираем резкий display: block из старых стилей */
.faq-answer {
    padding: 0 20px 20px;
}


/* Responsive */
@media (max-width: 1024px) {
    .hero {
        min-height: 600px;
    }

    .hero-title {
        font-size: 36px;
    }

    .cta-content {
        grid-template-columns: 1fr;
        text-align: center;
    }



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

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .recovery-content
     {
        grid-template-columns: 1fr;
    }

    .banner-background_box {
        width: 120px;
    }

    .cta-text h2 {
        font-size: 16px;
    }

    .cta-books {
        width: 142px;
    }

    .book-image {
        width: 142px;
        height: 170px;
        bottom: -100px;
    }

    .cta-text {
        max-width: 25%;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .nav-menu {
        gap: 20px;
    }

    .section {
        padding: 25px 0;
    }

    .accident-category h3,
    .recovery-intro h2 {
        font-size: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .step-number {
        font-size: 32px;
    }

    .feature-image {
        width: 100%;
        height: auto;
        min-height: 180px;
    }

    .cta-books {
        display: none;
    }

    .why_specialist {
        padding: 70px 0 0px;
    }

    .feature .section-description {
        margin: 20px auto 20px;
    }

    .feature-item.is-odd .feature-text {
        order: 2;
        text-align: center;
    }

    .accident-category {
        flex-wrap: wrap;
    }

    .accident-category:not(:last-child) {
        margin-bottom: 10px;
    }

    .accident-category-box {
        width: 100%;
        max-width: 100%;
    }

    .step-icon {
        display: none;
    }

   

    .how-it-works .section-title {
        margin-bottom: 30px;
    }

    .steps-list {
        gap: 20px;
    }


    .nuances .section-title {
        margin-bottom: 20px;
    }

    .accident-category h3,
    .recovery-intro h2
   {
        font-size: 20px;
    }
}

@media (max-width: 550px) {

    .feature-item.is-even .feature-item-box,
    .feature-item.is-odd .feature-image,
    .feature-image,
    .feature-item.is-odd .feature-item-box {
        max-height: 150px;
        min-height: 150px;
        min-width: 100%;
    }


    .card-image {
        height: 150px;
        margin-bottom: 10px;
    }

    .feature-text {
        font-size: 16px;
    }

    .cta-content {
        gap: 20px;
    }

    .cta-text h2 {
        font-size: 14px;
    }

    .btn {
        font-size: 12px;
    }

    .banner-background_box {
        display: none;
    }

    .cta-content {
        gap: 20px;
    }

    .cta-banner {
        padding: 20px 0;
    }

    .cta-text {
        max-width: 100%;
        width: 100%;
    }

    .feature-image {
        border-radius: 0 0 80px 0;
    }

    .feature-item.is-odd .feature-image {
        border-radius: 0 0 0 80px;
    }

    .faq-item .faq-question h3 {
        font-size: 14px;
    }

    .faq-answer-wrapper {
        font-size: 12px;
    }

    .checklist li {
        font-size: 14px;
    }

    .checklist {
        gap: 15px;
    }


    .steps-list {
        padding: 0;
    }
.step-content h3{
        line-height: normal;
}
}

@media (max-width: 480px) {
    .hero-card {
        padding: 20px;
    }

    .top-bar-content {
        text-align: center;
    }

    .hero-title {
        font-size: 24px;
    }

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

    .accident-category h3,
    .recovery-intro h2{
        font-size: 20px;
    }

    .section-title {
        font-size: 20px;
    }
}