/*  HERO SECTION */
.hero-section {
    position: relative;
    border-radius: 12px; 
    overflow: hidden;
    margin-top: 20px; 
    min-height: 600px;
    display: flex;
    align-items: center;
}


.hero-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; 
    height: 100%;
    z-index: 0; 
}

.hero-slider .slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; 
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slider .slide.active {
    opacity: 1;
}

.hero-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center; 
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 50px 60px; 
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas:
        "text stats"
        ". stats"
        "btns btns";
    row-gap: 10px;
    column-gap: 20px;
}

.hero-text-top {
    grid-area: text;
    align-self: start;
    max-width: 650px;
    color: var(--white);
}

.hero-buttons {
    grid-area: btns;
    align-self: end;
    display: flex;
    align-items: center;
    gap: 30px; 
}

.hero-buttons .btn-primary {
    font-size: 16px; 
    padding: 18px 40px;
}

.hero-buttons .btn-text {
    font-size: 16px;
}

.hero-text-top h1 {
    font-size: 52px;
    font-weight: 700; 
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-text-top p {
    font-size: 18px;
    font-weight: 400; 
}

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

.hero-stats-card {
    grid-area: stats;
    align-self: center; 
    background-color: rgba(38, 38, 38, 0.60); 
    border-radius: 12px;
    padding: 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
    margin-top: 40px;
    min-width: 270px; 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-number {
    color: var(--orange);
    font-size: 48px;
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -1px;
}

.stat-text {
    color: var(--white);
    font-size: 16px;
    font-weight: 400;
}



.hero-stats-card {
    animation: slideUpFade 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    animation-delay: 0.3s;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




@media (max-width: 1199px) {
    .hero-content {
        padding: 60px 40px;
        column-gap: 30px;
    }
    .hero-text-top h1 {
        font-size: 42px;
    }
    .hero-stats-card {
        min-width: 240px;
        padding: 20px 15px;
    }
    .stat-number {
        font-size: 42px;
    }
}


@media (max-width: 991px) {
    .hero-content {
        grid-template-columns: 1fr; 
        grid-template-areas:
            "text"
            "stats"
            "btns";
        padding: 60px 40px;
    }

    .hero-text-top,
    .hero-buttons {
        justify-self: start; 
    }

    .hero-text-top h1 {
        font-size: 38px;
        margin-bottom: 20px;
    }

    .hero-text-top p {
        font-size: 16px;
    }

    .hero-stats-card {
        flex-direction: row; 
        justify-content: space-around;
        width: 100%;
        margin-top: 50px;
        margin-bottom: 40px;
        padding: 30px 20px;
    }

    .hero-stats-card .stat-number {
        font-size: 32px; 
    }
    
    .hero-stats-card .stat-text {
        font-size: 14px;
    }

    .hero-buttons {
        margin-top: 0; 
        gap: 20px;
    }
}


@media (max-width: 767px) {
    
    .hero-content {
        padding: 40px 20px;
    }

    .hero-text-top h1 {
        font-size: 26px;
        margin-bottom: 15px;
    }
    
    .hero-text-top p {
        font-size: 15px;
    }

    .hero-stats-card {
        flex-direction: column;
        gap: 30px; 
        padding: 30px 20px;
        margin-top: 30px;
        margin-bottom: 30px;
        width: 100%;
    }

    .hero-stats-card .stat-number {
        font-size: 28px; 
    }

    .hero-buttons {
        flex-direction: column; 
        width: 100%;
        gap: 20px;
        justify-self: center;
    }
    
    .hero-buttons .btn-primary {
        width: 100%;
        padding: 10px 40px;
    }

    .hero-buttons .btn-text {
        font-size: 16px;
    }
}



/* SECTION : POPULAR CAT */
.section-header {
    margin-bottom: 40px;
}

.section-badge {
    display: inline-block;
    background-color: #FDF3E9; 
    color: var(--orange);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 35px;
    font-weight: 700;
    color: var(--grey);
    line-height: 1.2;
}

@media (max-width: 767px) {

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

}


.popular-categories {
    padding: 20px 0 10px 0;
}

.popular-categories .section-header-flex {
    margin-bottom: 10px;
}

.popular-categories .section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--black);
    line-height: 1.2;
    margin-bottom: 20px; 
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: var(--white);
    border-radius: 12px;
    padding: 12px;
    text-decoration: none;
    border: 1px solid var(--grey_light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.category-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    border-color: #E2E8F0;
}

.category-card .card-image {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
}

.category-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .card-image img {
    transform: scale(1.08);
}

.category-card .card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    flex-grow: 1;
    width: 100%;
}

.category-card .card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--black);
    line-height: 1.3;
    margin: 0 0 10px 0;
    transition: color 0.2s ease;
}

.category-card:hover .card-title {
    color: var(--orange);
}

.category-card .card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.category-card .card-meta {
    font-size: 11px;
    font-weight: 600;
    color: var(--grey_medium);
    background-color: var(--grey_light);
    padding: 3px 8px;
    border-radius: 4px;
}

.category-card .card-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--orange);
}

.category-card .card-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.category-card:hover .card-link svg {
    transform: translateX(4px); 
}

.custom-scrollbar-container.pop-cat-scrollbar {
    display: none;
}


@media (max-width: 1199px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .popular-categories {
        padding: 20px 0;
    }
    
    .popular-categories .section-title {
        font-size: 20px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px;
    }
}

@media (max-width: 767px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .popular-categories .section-title {
        font-size: 15px;
    }
    .category-card {
        padding: 10px;
    }
    
    .category-card .card-image {
        width: 60px;
        height: 60px;
    }
    
    .category-card .card-title {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .category-card .card-meta, 
    .category-card .card-link {
        font-size: 12px;
    }
}


/* SECTION : SERVICES */
.services-section {
    padding: 70px 0 10px 0; 
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    font-weight: 600;
    color: var(--grey);
    transition: color 0.2s ease;
}

.view-all-link:hover {
    color: var(--orange);
}

.services-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.featured-service-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    min-height: 500px;
}

.featured-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}

.featured-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
}

.featured-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 30px;
}

.featured-title {
    color: var(--white);
    font-size: 24px;
    font-weight: 500;
}

.featured-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--orange);
    font-size: 16px;
    font-weight: 600;
}


.featured-service-card:hover .featured-link {
    text-decoration: underline;
}


.services-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.basic-service-card {
    background-color: var(--grey_light);
    border-radius: 8px;
    padding: 30px 25px;
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    transition: all 0.3s ease;
}

.basic-service-card h3 {
    color: var(--grey);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.basic-service-card:hover {
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}
.basic-service-card:hover h3 {
    color: var(--orange);
}


@media (max-width: 1199px) {
    .section-title {
        font-size: 23px;
    }
}

@media (max-width: 991px) {
    .services-main-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .featured-service-card {
        min-height: 280px; 
    }
    
    .services-list-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .basic-service-card {
        min-height: 130px;
    }
    .section-title {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .services-section {
        padding: 20px 0 20px 0; 
    }

    .section-header-flex {
        margin-bottom: 25px;
        align-items: flex-end;
        gap: 20px;
    }
    
    .section-title {
        font-size: 15px;
    }

    .view-all-link {
        font-size: 14px;
        white-space: nowrap;
    }

    .featured-service-card {
        min-height: 200px;
    }
    .featured-content {
        padding: 20px;
    }
    .featured-title {
        font-size: 18px;
    }

    .services-list-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .basic-service-card {
        padding: 20px 15px;
        min-height: 130px;
    }
    .basic-service-card h3 {
        font-size: 14px;
    }
}




/* SECTION : COMPANY */
.company-section {
    padding: 60px 0 10px 0;
}

.company-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    margin-top: 30px;
}

.company-text-grid p {
    color: var(--grey);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
}

.company-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.company-stat-card {
    background-color: var(--grey_light);
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.company-stat-card:hover {
    transform: translateY(-5px);
}

.stat-value {
    color: var(--orange);
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.stat-subtitle {
    color: var(--black);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.stat-desc {
    color: var(--grey);
    font-size: 15px;
    line-height: 1.5;
}


@media (max-width: 991px) {
    .company-text-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .company-stats-grid {
        gap: 20px;
    }
    .company-stat-card {
        padding: 30px 20px;
    }
    .stat-value {
        font-size: 42px;
    }
    .stat-subtitle {
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .company-section {
        padding: 20px 0 20px 0;
    }
    
    .company-text-grid p {
        font-size: 15px;
    }
    
    .company-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .company-stat-card {
        padding: 40px 20px;
    }
}




/* SECTION : ADVANTAGES */

.advantages-section {
    padding: 60px 0 10px 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 40px;
    row-gap: 60px;
}

.adv-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.adv-icon-wrapper {
    width: 75px;
    height: 75px;
    background-color: var(--grey);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.adv-card:hover .adv-icon-wrapper {
    transform: scale(1.05);
}

.adv-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--black);
    line-height: 1.3;
}

.adv-desc {
    font-size: 15px;
    color: var(--grey);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 991px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 30px;
        row-gap: 50px;
    }
}

@media (max-width: 767px) {
    .advantages-section {
        padding: 20px 0 20px 0;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }

    .adv-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .adv-icon-wrapper svg {
        width: 24px;
        height: 24px;
    }
    
    .adv-title {
        font-size: 18px;
    }
    
    .adv-desc {
        font-size: 14px;
    }
}




/* SECTION : TESTIMONIALS (Отзывы) */
.testimonials-section {
    background-color: var(--grey_light);
    padding: 60px 0;
}

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

.testi-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 35px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.testi-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.testi-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--grey_light);
    color: var(--grey);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testi-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testi-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--black);
}

.testi-date {
    font-size: 13px;
    color: var(--grey_medium);
}

.testi-rating-source {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.testi-stars {
    display: flex;
    gap: 4px;
}

.testi-source img {
    height: 20px;
    width: auto;
    object-fit: contain;
}

.testi-text {
    font-size: 15px;
    color: var(--grey);
    line-height: 1.6;
    margin: 0;
}



.testi-scrollbar {
    display: none;
}

@media (max-width: 991px) {
    
    .testimonials-section {
        padding: 60px 0;
        overflow: hidden;
    }

    .testimonials-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 20px;        
        padding-left: 20px;
        padding-right: 20px;
        margin-left: -20px;
        margin-right: -20px;
        scroll-snap-type: x mandatory; 
        scroll-behavior: smooth;
        -ms-overflow-style: none; 
        scrollbar-width: none; 
    }
    
    .testimonials-grid::-webkit-scrollbar {
        display: none;
    }

    .testi-card {
        flex: 0 0 85%;
        max-width: 400px;
        scroll-snap-align: center;
        transform: none !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    }

    .testi-scrollbar {
        display: block;
        margin-top: 30px;
        width: 100%;
        height: 4px;
        background-color: #D1D5DB;
        border-radius: 4px;
        position: relative;
        overflow: hidden;
    }

    .testi-scrollbar-track {
        position: absolute;
        top: 0; left: 0;
        height: 100%;
        width: 33.33%;
        background-color: var(--yellow);
        border-radius: 4px;
        transition: transform 0.1s linear;
    }
}

@media (max-width: 767px) {
    .testimonials-section {
        padding: 20px 0;
    }
    .testi-card {
        flex: 0 0 90%;
        padding: 25px 20px;
    }
}




/* SECTION : FAQ */
.faq-section {
    padding: 60px 0;
    background-color: var(--white);
}

.faq-layout-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: flex-start;
}

.faq-accordion {
    width: 100%;
}

.faq-item {
    border-bottom: 1px solid var(--grey_medium);
}

.faq-item:first-child {
    border-top: 1px solid var(--grey_medium);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    padding: 25px 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    cursor: pointer;
    text-align: left;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--orange);
}

.faq-question .chevron {
    flex-shrink: 0;
    margin-left: 20px;
    transition: transform 0.3s ease, color 0.2s ease;
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.faq-answer-inner {
    overflow: hidden;
}

.faq-answer-inner p {
    padding-bottom: 25px;
    color: var(--grey);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.faq-item.active .faq-question {
    color: var(--orange);
}

.faq-item.active .faq-question .chevron {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}

@media (max-width: 991px) {
    .faq-layout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .faq-header-col {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .faq-section {
        padding: 20px 0;
    }
    .faq-question {
        font-size: 16px;
        padding: 20px 0;
    }
}




 /* SECTION : HELP FORM (Нужна помощь) */
.help-section {
    background-color: var(--grey_light); 
    padding: 60px 0;
}

.help-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; 
    gap: 60px;
    align-items: flex-start;
}

.help-title {
    font-size: 35px;
    font-weight: 700;
    color: var(--grey);
    line-height: 1.2;
    margin-bottom: 20px;
}

.help-subtitle {
    font-size: 18px;
    color: var(--black);
    line-height: 1.5;
}

.form-tabs {
    display: flex;
    border-bottom: 2px solid #D1D5DB; 
    margin-bottom: 30px;
}

.tab-btn {
    flex: 1; 
    text-align: center;
    background: transparent;
    border: none;
    padding: 15px 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--grey_medium); 
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.tab-btn:hover {
    color: var(--black);
}

.tab-btn.active {
    color: var(--black); 
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px; 
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--orange);
}

.submit-wrapper {
    text-align: left; 
    margin-top: 30px;
}
.submit-wrapper .btn-primary {
    padding: 16px 90px;
    font-size: 16px;
}


@media (max-width: 991px) {
    .help-layout-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .help-title {
        font-size: 23px;
        margin-bottom: 10px;
    }
}

@media (max-width: 767px) {
    .help-section {
        padding: 50px 0;
    }
    
    .help-title {
        font-size: 22px;
    }
    
    .help-subtitle {
        font-size: 15px;
    }
    
    .tab-btn {
        font-size: 14px;
        padding: 12px 5px;
    }
    
    .submit-wrapper {
        text-align: center;
    }
    
    .submit-wrapper .btn-primary {
        width: 100%;
        padding: 15px 20px;
    }
}


