#services-title-block, #aboutUs, #advantages, #partners {
    scroll-margin-top: 100px; /* Останавливается на 100 пикселей выше */
}

.offer {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    margin-top: 132px;
    margin-bottom: 64px;
}

.offer-container {
    width: 1280px;
    height: 640px;
    background:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('../../../img/background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items:flex-start;
    padding: 32px;
    border-radius: 50px;
    gap: 32px;
}

.offer-container h1 {
    background-color: transparent;
    color: var(--primary-background-color);
}

.offer-container strong {
    background-color: #f3ecdc;
    color: #282828;
    padding: 8px 16px;
    border-radius: 24px;
    line-height: 1.5; /* Регулирует высоту строки */
    margin: 4px 0; /* Добавляет внешние отступы */
    display: inline-block; /* Убедитесь, что блок занимает только необходимую ширину */
}

.offer-container h1 {
    font-size: 32px;
    text-transform: uppercase;
}

.offer-button, .advantages-button {
    background-color: #282828;
    padding: 12px;
    width: 250px;
    font-size: 16px;
    gap: 16px;
    font-weight: bold;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    position: relative;
    overflow: hidden; /* Для скрытия лишнего */
    z-index: 0;
}

.advantages-button {
    margin-top: 32px;
}

.aboutUs {
    width: 100%;
    padding: 0 16px;
    margin-bottom: 64px;
    display: flex;
    justify-content: center;
}

.aboutUs-container {
    width: 1280px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    padding: 32px;
    background-color: #eeeeee;
    border-radius: 24px;
}

.aboutUs-container h2, .aboutUs-container p, .aboutUs-container ul, .aboutUs-container ul li, .aboutUs-container ul li strong{
    background-color: transparent;
}

.aboutUs-container h2 {
    margin-bottom: 16px;
}

.aboutUs-container ul {
    margin: 0;
    list-style-position: inside;
    margin: 16px 0;
}

.aboutUs-container ul li {
    margin-bottom: 16px;
}

.aboutUs-container ul li strong {
    font-size: 16px;
}

.swiper {
    position: relative !important;
    width: 1280px !important;
    padding: 0 32px 32px 32px !important;
}

.swiper-slide {
    width: 592px;
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    background-color: #f3ecdc;
    padding: 32px;
}

.swiper-button-next,
.swiper-button-prev {
    color: #282828 !important;
    position: absolute !important;
    top: 50% !important; /* Центрирование по вертикали */
    transform: translateY(-50%) !important;
}

.swiper-button-next {
    right: -2px !important; /* Отступ от края слайдера */
}

.swiper-button-prev {
    left: -2px !important; /* Отступ от края слайдера */
}

.swiper-button-next,
.swiper-button-prev,
.swiper-pagination {
    background-color: transparent;
}

.swiper-pagination {
    bottom: 0px !important; /* Отодвигает точки ниже слайдера */
}

.swiper-pagination-bullet {
    background-color: #eeeeee;
    width: 12px;
    height: 12px;
    opacity: 1;
    background-color: transparent;
}

.swiper-pagination-bullet-active {
    background-color: #282828 !important;
}

.services-title-block {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    margin-bottom: 32px;
}

.services-title-container {
    width: 1280px;
    display: flex;
    flex-direction: column;
}

.services-title-container h2{
    text-transform: uppercase;
}

.services {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    margin-bottom: 64px;
}

.services-container {
    width: 1280px;
    display: flex;
    justify-content: space-between;
}

.service-first, .service-second, .service-third {
    width: 400px;
    flex-wrap: wrap;
    border-radius: 24px;
    background-color: #f3ecdc;
    padding: 32px;
}

.service-first h2, .service-second h2, .service-third h2, .swiper-slide h2{
    color: #282828;
    font-size: 24px;
}

.service-first p, .service-second p, .service-third p, .swiper-slide p{
    margin: 32px 0;
    color: #282828;
    font-size: 16px;
}

.service-first h2, .service-first p, .service-second h2, .service-second p, .service-third h2, .service-third p, .swiper-slide h2, .swiper-slide p{
    background-color: transparent;  
}

.service-button {
    background: #282828;
    padding: 12px;
    width: 250px;
    font-size: 16px;
    gap: 16px;
    font-weight: bold;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    position: relative;
    overflow: hidden; /* Для скрытия лишнего */
    z-index: 0;
}

.service-button::before, .offer-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0; /* Начало с левого края */
    width: 0;
    height: 100%;
    background: #ffffff;
    z-index: -1;
    transition: width 0.5s ease; /* Плавное заполнение */
}

.advantages-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0; /* Начало с левого края */
    width: 0;
    height: 100%;
    background: #f3ecdc;
    z-index: -1;
    transition: width 0.5s ease; /* Плавное заполнение */
}

.service-button:hover::before, .offer-button:hover::before, .advantages-button:hover::before {
    width: 100%; /* Заполнение всей кнопки */
}

.service-button:hover, .offer-button:hover {
    color: #282828;
}

.advantages-button:hover {
    color: #282828;
}

.service-button svg, .offer-button svg, .advantages-button svg {
    z-index: 1; /* Иконка видна поверх анимации */
    transition: fill 0.5s ease; /* Плавное изменение цвета иконки */
}

.service-button:hover svg, .offer-button:hover svg, .advantages-button:hover svg {
    fill: #282828;
}

.partners {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    margin-bottom: 64px;
}

.partners-container {
    width: 1280px;
    display: flex;
    flex-direction: column;
}

.partners-container h2 {
    margin-bottom: 32px;
    text-transform: uppercase;
}

.partners-icons {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 64px;
}

.partners-icons-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
}

.partners-icons-frame img{
    width: 200px; /* Фиксированная ширина (можно менять) */
    height: auto; /* Пропорциональная высота */
    object-fit: contain; /* Корректное отображение внутри контейнера */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Анимация */
    cursor: pointer; /* Указатель при наведении */
}

.partners-icons-frame img:hover {
    transform: scale(1.1); /* Увеличение изображения */
}

.advantages {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    margin-bottom: 64px;
}

.advantages-container {
    width: 1280px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background-color: #eeeeee;
    border-radius: 24px;
}

.advantages-container-body {
    width: 592px;
    background-color: transparent;
    padding: 32px;
}

.advantages-container-body h2 {
    margin-bottom: 32px;
    text-transform: uppercase;
    background-color: transparent;
}

.advantages-container-body ul {
    margin: 0;
    list-style-position: inside;
    background-color: transparent;
}

.advantages-container-body ul li {
    margin-bottom: 16px;
    background-color: transparent;
}

.advantages-container-body ul li strong {
    font-size: 18px;
    background-color: transparent;
}

.advantages-container-body ul li p {
    margin-top: 8px;
    background-color: transparent;
}

.advantages-container-img {
    width: 592px;
    height: 100%;
    background:
        url('../../../img/advantages.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 24px;
}

@media screen and (max-width: 373px) {
    .offer-container h1 {
        font-size: 28px;
    }
}

@media screen and (max-width: 400px) {
    .advantages-container-body h2 {
        font-size: 24px;
    }
}

@media screen and (max-width: 410px) {
    .service-button {
        width: 100%;
    }
}

@media screen and (max-width: 495px) {
    .partners-icons-frame {
        width: 100%;
    }

    .offer-container h1 {
        font-size: 20px;
    }
}

@media screen and (max-width: 600px) {
    .offer {
        margin-top: 176px;
    }
}

@media screen and (max-width: 1147px) {
    .services-container {
        flex-direction: column;
        gap: 32px;
    }

    .service-first, .service-second, .service-third {
        width: 100%;
    }
}

@media screen and (max-width: 1313px) {
    .advantages-container-img, .advantages-container-body, .advantages-button {
        width: 100%;
    }

    .advantages-container-img {
    height: 512px;
}
}