/* ===== Hero Section ===== */
.hero {
    padding-top: 50px;
    padding-bottom: 20px;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 100px; /* Учитываем высоту фиксированного header */
}

.hero--info {
    width: 50%;
    padding: 0 50px;
    z-index: 2;
}

.hero--info h1 {
    font-size: 64px;
    font-weight: 600;
    color: #101010;
    margin-bottom: 20px;
}

.hero--info p {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.7;
    color: #333;
    margin-bottom: 35px;
}

.hero--info .btn {
    background: #FFC700;
    color: #fff;
    border-radius: 20px;
    padding: 20px 50px;
    transition: all 500ms ease;
    border: 0;
    font-size: 32px;
    font-weight: 600;
    cursor: pointer;
}

.hero--info .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 199, 0, 0.4);
}

.hero img {
    width: 50%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 20px;
}

/* ===== Advantages Section ===== */
.pluses {
    padding: 80px 20px;
    background-color: #f9f9f9;
    
}

.pluses .options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.block {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    transition: transform 0.3s ease;
}

.block:hover {
    transform: translateY(-10px);
}

.block h1 {
    color: #FFC700;
    font-size: 42px;
    margin-bottom: 15px;
}

.block h2 {
    font-size: 24px;
    color: #101010;
    margin-bottom: 15px;
    font-weight: 600;
}

.block p {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
}

/* ===== Services Section ===== */
.services {
    padding: 80px 30px;
}

.services h3 {
    text-align: center;
    font-size: 42px;
    font-weight: 600;
    color: #101010;
    margin-bottom: 50px;
}

.service {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.object {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    transition: transform 0.3s ease;
}

.object:hover {
    transform: scale(1.03);
}

.object img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: filter 0.3s ease;
}

.object:hover img {
    filter: brightness(0.5);
}

.object span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    padding: 0 20px;
    z-index: 2;
}

/* ===== Equipment Section ===== */
.texnika {
    padding: 80px 30px;
    background-color: #f9f9f9;
}

.texnika h3 {
    text-align: center;
    font-size: 42px;
    font-weight: 600;
    color: #101010;
    margin-bottom: 50px;
}

.sphera {
    display: flex; /* Меняем grid на flex */
    overflow-x: auto; /* Включаем горизонтальную прокрутку */
    gap: 30px;
    margin-top: 30px;
    background-color: #f9f9f9;
    padding: 30px 20px 50px; /* Добавляем отступы по бокам */
    scroll-behavior: smooth; /* Плавная прокрутка */
    
    /* Скрываем стандартный скроллбар для красоты */
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 transparent;
}
/* Стилизация скроллбара для Webkit-браузеров */
.sphera::-webkit-scrollbar {
    height: 6px;
}
.sphera::-webkit-scrollbar-track {
    background: transparent;
}
.sphera::-webkit-scrollbar-thumb {
    background-color: #c1c1c1;
    border-radius: 6px;
}
/* Стиль для контейнера кнопки "Посмотреть все" */
.see-all-container {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 40px;
}

.see-all {
    display: inline-block;
    padding: 15px 30px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.see-all:hover {
    background: #e6b800;
    transform: scale(1.05);
}

.card-element {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    height: 100%;
    
    /* Важные свойства для горизонтальной прокрутки */
    flex: 0 0 auto; /* Карточки не сжимаются и не растягиваются */
    width: 450px; /* Фиксированная ширина карточек */
}

.card-element:hover {
    transform: translateY(-10px);
}

.image-container {
    width: 100%;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.card-element img {
    width: 100%;
    height: 250px; /* Фиксированная высота для всех картинок */
    object-fit: cover; /* Обрезает изображение, заполняя область */
    object-position: center; /* Центрирует изображение при обрезке */
    border-radius: 10px; /* Опционально: скругление углов */
    margin-bottom: 15px;
}

.card-element h2 {
    font-size: 20px;
    font-weight: 600;
    color: #101010;
    text-align: center;
    margin: 15px 0;
    flex-grow: 1;
}

.card-element h4 {
    font-size: 20px;
    font-weight: 600;
    color: #101010;
    text-align: center;
    margin: 0px 0;
    flex-grow: 1;
}

.card-element p {
    font-size: 16px;
    font-weight: 300;
    color: #101010;
    text-align: center;
    margin: 15px 0;
    flex-grow: 1;
}

.card-element .btn {
    display: block;
    width: 80%;
    margin: 0 auto;
    padding: 15px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.card-element .btn:hover {
    background: #e6b800;
    transform: scale(1.05);
}

/* ===== Partners Section ===== */
.headline {
    padding: 40px 0;
}

.text-partner h3 {
    text-align: center;
    font-size: 42px;
    font-weight: 600;
    color: #101010;
    margin-bottom: 50px;
}

.marquee-infinity {
    overflow: hidden;
    position: relative;
    padding: 30px 0;
    background-color: white;
}

.marquee-infinity div {
    display: flex;
    width: 400%;
    animation: marquee 40s linear infinite;
}

.marquee-infinity span {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.marquee-infinity img {
    height: 250px;
    width: auto;
    object-fit: contain;
    margin: 0 40px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.marquee-infinity img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes marquee {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ===== Media Queries ===== */
@media (max-width: 1200px) {
    .pluses .options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero--info h1 {
        font-size: 48px;
    }
    
    .hero--info p {
        font-size: 20px;
    }
}

/* Медиа-запрос для планшетов 820px - ДОБАВЛЯЕМ min-width */
@media (max-width: 820px) and (min-width: 769px) {
    .hero {
        flex-direction: column;
        margin-top: 80px;
        padding-top: 30px;
        padding-bottom: 30px;
    }
    
    .hero--info {
        width: 100%;
        padding: 0 30px;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .hero--info h1 {
        font-size: 42px;
        margin-bottom: 15px;
    }
    
    .hero--info p {
        font-size: 20px;
        margin-bottom: 25px;
        line-height: 1.5;
    }
    
    .hero--info .btn {
        font-size: 24px;
        padding: 18px 40px;
        margin: 0 auto;
    }
    
    .hero img {
        width: 80%;
        max-width: 500px;
        max-height: 400px;
        margin: 0 auto;
    }
    
    .pluses {
        padding: 60px 20px;
    }
    
    .services {
        padding: 60px 20px;
    }
    
    .texnika {
        padding: 60px 20px;
    }
    
    .pluses .options {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .service {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        margin-top: 0px;
    }
    
    .container.pluses, .container.services, .container.texnika{
        padding-top: 0px;
    }
    
    .hero--info {
        width: 100%;
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .hero img {
        width: 100%;
        border-radius: 20px;
    }
    
    .pluses .options {
        grid-template-columns: 1fr !important; /* Добавляем !important */
    }
    
    .service {
        grid-template-columns: 1fr !important; /* Добавляем !important */
    }
    
    .hero--info h1 {
        font-size: 36px;
    }
    
    .hero--info p {
        font-size: 18px;
    }
    
    .hero--info .btn {
        font-size: 24px;
        padding: 15px 30px;
    }
    
    .marquee-infinity img {
        height: 80px;
        margin: 0 20px;
    }
    
    .sphera {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .texnika h3 {
        font-size: 36px;
    }
    
    .card-element h2 {
        font-size: 18px;
    }

    .card-element h4 {
        font-size: 18px;
    }
    .card-element p {
        font-size: 14px;
        margin: 5px 0;
    }
    
    .see-all {
        font-size: 18px;
        padding: 12px 25px;
    }
}

@media (max-width: 480px) {
    .sphera {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .block h2 {
        font-size: 20px;
    }
    
    .block p {
        font-size: 16px;
    }
    
    .object span {
        font-size: 24px;
    }
    
    .hero{
        padding-top: 0px;
        margin-top: 0px;
    }
    
    .hero--info h1 {
        font-size: 32px;
    }

    .hero--info p {
        font-size: 18px;
    }
    .marquee-infinity img {
        height: 100px;
    }
    
    .texnika {
        padding: 60px 0;
    }
    
    .texnika h3 {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .card-element {
        width: 300px; 
        height: 350px; 
        display: flex;
        flex-direction: column;
    }
    
    .card-element img {
        width: 100%;
        height: 200px; 
        object-fit: cover; 
        object-position: center; 
        margin-bottom: 10px;
    }
    
    .pluses .options {
        grid-template-columns: 1fr !important; /* Добавляем !important */
        gap: 15px;
    }
    
    .service {
        grid-template-columns: 1fr !important; /* Добавляем !important */
        gap: 15px;
    }
    
    /* Улучшения для мобильных */
    .object {
        height: 200px;
    }
    
    .object span {
        font-size: 20px;
    }
    
    .block {
        padding: 20px 15px;
        text-align: center;
    }
}

/* Для очень маленьких экранов 375px и меньше */
@media (max-width: 375px) {
    .pluses .options {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    .service {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    .services h3 {
        font-size: 26px;
        margin-bottom: 20px;
    }
    
    .block {
        padding: 15px 12px;
    }
    
    .block h1 {
        font-size: 28px;
    }
    
    .block h2 {
        font-size: 18px;
    }
    
    .block p {
        font-size: 14px;
    }
    
    .object {
        height: 180px;
    }
    
    .object span {
        font-size: 18px;
    }
    
    .card-element {
        width: 320px;
    }
}