html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; 
    padding-top: 4vh;
}

nav ul li a:hover {
    color: #BFA315;
}

.hero-title {
    line-height: 1.2;
}

.hero-title span {
    display: block;
    font-size: 0.3em;
    font-weight: 300;
}

.services-page {
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.hero-section {
    position: relative;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    width: 100vw; 
    left: 50%;
    right: 50%;
    margin: -5vw -50vw 100px -50vw;
    min-height: 600px;
}

.hero-section .bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -10;
}

.hero-section .content {
    position: relative;
    z-index: 100;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 1);
}

.hero-section .subtitle {
    font-size: 1.8rem;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 1);
    margin-bottom: 30px;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(49, 42, 42, 0.2);
    z-index: -10;
}

.hero-arrow {
    position: absolute;
    bottom: 140px;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    z-index: 2;
    animation: bounce 1s infinite;
    cursor: pointer;   
    
    text-decoration: none;
    transition: all 0.3s ease;
    /* width: 100vw; */
    left: 50%;
    right: 50%;
}
.hero-arrow {
    opacity: 0;
    animation: fadeIn 1s ease 2s forwards, bounce 2s infinite 2s;
}
.hero-arrow:hover {
    filter: brightness(1.2);
    animation-play-state: paused;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.services-section {
    padding-bottom: 20px;
}

.services-section h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 30px;
    color: #222;
}

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

.service-category {
    display: flex;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
}

.service-category h3 {
    font-size: 24px;
    margin-bottom: 20px;
    padding-top: 30px;
    width: 366px;
}

.service-list {
    margin: 20px;
    list-style-type: none;
    padding-left: 0;
}

.service-list li {
    padding: 10px 0;
    border-bottom: 1px solid #BFA315;
    color: #004992;
    font-size: 18px;
}

.operations__link {
    color: #0775AB;
}

/* Бесплатные услуги */
.free-services {
    padding-top: 70px;
    padding-bottom: 70px;
    margin-bottom: 70px;
    font-size: 40px;
    padding: 30px;
    border-radius: 8px;
}

.free-services h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 30px;
}

.free-service-item {
    padding: 30px;
    border-radius: 8px;
    font-size: 20px;
    color: #555;
}
.free-service-text {
    position: relative;
    padding-left: 20px; 
    text-decoration: none;
    list-style: none; 
}

.free-service-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px; 
    height: 12px;
    background-color: #BFA315;
    border-radius: 50%; 
    display: inline-block;
}

.extra-service-text {
    position: relative;
    padding-left: 20px;
    text-decoration: none;
    list-style: none;
}

.extra-service-text::before {
    content: '✓'; 
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    color: #BFA315;
    font-size: 28px;
}

/* Дополнительные услуги */
.additional-services h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 30px;
    color: #222;
}

.checklist {
    font-size: 20px;
}

.checklist-item {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.checklist-item input {
    margin-right: 15px;
    min-width: 20px;
    height: 20px;
}

.checklist-item label {
    font-size: 18px;
}

/* Партнёры */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2em;
    color: #2c3e50;
}

.partners-subtitle {
    text-align: center;
    margin: 40px 0 20px;
    font-size: 1.5em;
    color: #34495e;
    padding-left: 15px;
}

.carousel-container {
    position: relative;
    padding: 0 30px;
}

.partners-carousel {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 15px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
}

.partners-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.partner-item {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    padding: 20px;
    background: white;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-5px);
}

.partner-item img {
    width: 160px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 15px;
}

.partner-item span {
    text-align: center;
    font-size: 1em;
    color: #2c3e50;
    font-weight: 500;
}

.partners-section {
    background: #fff;
    padding: 60px 20px;
    border-radius: 12px;
    box-shadow: none;
    max-width: 1200px;
    margin: 0 auto;
}

.partners-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 16px;
    text-align: center;
}

.partners-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 10px;
}

.partners-scroll::-webkit-scrollbar {
    height: 8px;
}

.partners-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.partner-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 160px;
    height: 100px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    color: #333;
}

/* Градиенты для индикации прокрутки */
.carousel-container::before,
.carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    pointer-events: none;
    z-index: 1;
}

.carousel-container::before {
    left: 0;
}

.carousel-container::after {
    right: 0;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .service-category {
        flex-direction: column;
        padding: 20px;
    }

    .service-category h3 {
        font-size: 20px;
        width: 100%;
        padding-top: 10px;
        margin-bottom: 10px;
    }

    .service-list {
        margin: 0;
        padding-left: 0;
        font-size: 16px;
    }

    .service-list li {
        font-size: 16px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .free-service-item,
    .checklist {
        font-size: 16px;
        word-wrap: break-word;
    }

    .free-service-text,
    .extra-service-text {
        font-size: 16px;
        padding-left: 18px;
    }

    .extra-service-text::before {
        left: -12px;
    }

    .hero-arrow-img {
        margin-top: 50%;
        /* width: 70px; */
        height: 70px;
    }
    .partners-carousel {
        gap: 2px;
    }
    
    .hero-section h1 {
        font-size: 6rem;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 4rem;
    }

    .hero-section .subtitle {
        font-size: 1rem;
    }

    .partner-item {
        width: 100px;
        height: 60px;
        margin: 10%;
    }

    .partner-item img {
        width: 80px;
        height: 40px;
    }

    .free-services,
    .additional-services,
    .services-section {
        padding: 20px 10px;
    }

    .checklist-item label {
        font-size: 16px;
    }

    .carousel-container {
        padding: 0 10px;
    }
}