html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    margin: 0;
    color: var(--dark-color);
    background-color: var(--light-color);
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

main {
    padding-top: 0; 
}

/* --- Геройская секция --- */
#hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background-color: var(--dark-color);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    z-index: 2;
}

.hero-content {
    position: absolute;
    bottom: 15vh; /* Смещение снизу */
    left: 50%;
    transform: translateX(-50%); /* Горизонтальное центрирование */
    z-index: 3;
    text-align: center;
}
/* --- Конец --- */


#hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #0056b3;
}

section {
    padding: 4rem 0;
}

section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

#clients .scroller {
    max-width: 900px;
    margin: auto;
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

#clients .scroller[data-speed="slow"] {
  --duration: 40s;
}

#clients .scroller .clients-list {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    list-style: none;
    margin: 0;
    padding-left: 0;
    animation: scroll var(--duration) linear infinite;
}

#clients .scroller .clients-list li {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

#clients .scroller img {
    max-width: 150px;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

#clients .scroller li:hover img {
    filter: grayscale(0);
    transform: scale(1.1);
}

#clients .scroller:hover .clients-list {
    animation-play-state: paused;
}

@keyframes scroll {
    to {
        transform: translateX(calc(-100% - 20px));
    }
}

#company-details .details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    text-align: center;
}

.detail-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

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

#company-details .detail-item {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    height: 100%;
    box-sizing: border-box;
}

#company-details .detail-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

footer {
    background: var(--dark-color);
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    #hero {
        height: 70vh; /* Значительно уменьшаем высоту */
    }

    #hero .hero-background img {
        object-fit: contain; 
    }

    #hero h1 {
        font-size: 2rem;
    }

    .hero-content {
       bottom: 5vh; /* Новый отступ для кнопки */
       top: auto; 
       transform: translateX(-50%);
    }
}
