.customer-stories {
    font-family: Archivo, Arial, sans-serif;
    font-size: 16px;
    color: #323232;
    line-height: 1.25;
}

.nowrap {
    white-space: nowrap;
}

a:hover {
    text-decoration: unset;
    color: inherit;
}

.text-center {
    text-align: center;
}

/*#region Header*/
.header {
    background: linear-gradient(108.69deg, rgba(19, 105, 213, 0.08) 5.41%, rgba(254, 254, 254, 0.08) 46%);
    padding-top: 100px;
    height: 100vh;
}

.header .container {
    height: 100%;
    display: flex;
    align-items: center;
}

.header-wrap {
    display: flex;
    gap: 40px;
}

.header-title {
    font-family: Barlow Bold, Arial, sans-serif;
    font-size: 40px;
    margin-bottom: 12px;
}

.header-image {
    flex-shrink: 0;
    max-width: 549px;
}

@media (min-width: 1200px) {
    .header .container {
        width: 1110px;
    }
}

@media (max-width: 1099px) {
    .header-title {
        font-size: 32px;
    }
}

@media (max-width: 979px) {
    .header {
        height: auto;
        text-align: center;
    }

    .header-wrap {
        align-items: center;
        flex-direction: column;
        gap: 30px;
    }

}

@media (max-width: 767px) {
    .header-title {
        font-size: 28px;
    }
}
/*#endregion*/

/*#region Stories*/
.stories {
    position: relative;
    padding: 50px 0;
}

.stories-title {
    font-family: Barlow Bold, Arial, sans-serif;
    font-size: 40px;
    margin-bottom: 60px;
    text-align: center;
}

.stories-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.story-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.story-thumb {
    display: block;
    aspect-ratio: 1.4;
    overflow: hidden;
    margin-bottom: 8px;
}

.story-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-title {
    display: block;
    font-family: Barlow Bold, Arial, sans-serif;
    font-size: 22px;
    margin-bottom: 8px;
}

.story-excerpt {
    font-family: Barlow, Arial, sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 1366px) {
    .stories .container {
        width: 1310px;
    }

    .stories-list {
        gap: 80px;
    }
}

@media (max-width: 1099px) {
    .story-title {
        font-size: 20px;
    }
}

@media (max-width: 979px) {
    .stories-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .stories-title {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .stories-list {
        grid-template-columns: 1fr;
    }

    .stories-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
}
/*#endregion*/

/*#region Pagination*/
.pagination-wrap {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    font-family: Barlow SemiBold, Arial, sans-serif;
    font-size: 22px;
    color: #0973B9;
}

.pagination-nav {
    display: flex;
    align-items: baseline;
    gap: 6px;
    opacity: 0.5;
}

.pagination-nav.active {
    opacity: 1;
    cursor: pointer;
}

.pagination-nav span {
    line-height: 1;
}

.pagination-item {
    width: 36px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #0973B9;
    background-color: #FFFFFF;
}

.pagination-item.active {
    background-color: #0973B9;
    color: #FFFFFF;
}

.page-number {
    cursor: pointer;
}

@media (max-width: 979px) {
    .pagination-wrap {
        justify-content: center;
        font-size: 16px;
    }

    .pagination-nav {
        align-items: center;
    }
}

@media (max-width: 767px) {
    .pagination-nav span {
        display: none;
    }
}

/*#endregion*/

.loader-item {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-modal {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.5);
}