/* Hero секція */
.hero-section {
    min-height: calc(60vh - var(--header-height));
    display: flex;
    align-items: center;
    padding: 2rem 0;
    background: var(--gradient-main);
    position: relative;
    overflow: hidden;
    border-radius: 0 0 1rem 1rem;
    margin: 0 2.5rem 2rem 2.5rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

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

.hero-section .container {
    position: relative;
    z-index: 2;
    max-width: var(--container-max-width);
    padding: 1.5rem 2rem;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(var(--header-height) * 1);
}

.hero-section .col-lg-8 {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--white);
    text-align: center;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.3s;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.5s;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: 100%;
}

.hero-section .btn {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.7s;
}

.hero-section .btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.7s;
}

/* Адаптивність */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 1.5rem 1rem;
        margin: 0 2rem 1.5rem 2rem;
        text-align: center;
        min-height: auto;
    }
    
    .hero-section .container {
        padding: 1.5rem var(--container-padding);
        min-height: calc(var(--header-height) * 0.8);
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .lead {
        margin-left: auto;
        margin-right: auto;
        font-size: 1.1rem;
    }

    /* Змінюємо порядок елементів в intro секції для мобільних */
    .intro-section .row {
        flex-direction: column-reverse;
    }

    .intro-section .col-lg-6 {
        margin-bottom: 2rem;
    }

    .intro-section .slider-container {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 1rem 0.5rem;
        margin: 0 1rem 1rem 1rem;
        text-align: center;
    }
    
    .hero-section .container {
        padding: 0.5rem var(--container-padding);
        min-height: calc(var(--header-height) * 0.6);
    }
}

/* Стилі для заголовків секцій */
.intro-section h2,
.brands-section h2,
.solutions-section h2,
.solutions-water-section h2,
.section-title {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-section h2::after,
.brands-section h2::after,
.solutions-section h2::after,
.solutions-water-section h2::after,
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20%;
    height: 3px;
    background: var(--gradient-main);
    border-radius: 2px;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

/* Стилі для абзаців у intro секції */
.intro-section .content p.mb-3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary-blue); /* Фолбек для браузерів, що не підтримують градієнт */
    font-weight: var(--font-weight-bold);
    line-height: 1.6;
}

/* Підзаголовки секцій */
.intro-section p,
.brands-section p,
.solutions-section p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Адаптивність для заголовків */
@media (max-width: 768px) {
    .intro-section h2,
    .brands-section h2,
    .solutions-section h2,
    .solutions-water-section h2,
    .section-title {
        font-size: 1.8rem;
    }
    
    .intro-section p,
    .brands-section p,
    .solutions-section p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .intro-section h2,
    .brands-section h2,
    .solutions-section h2,
    .solutions-water-section h2,
    .section-title {
        font-size: 1.5rem;
    }
    
    .intro-section p,
    .brands-section p,
    .solutions-section p {
        font-size: 0.95rem;
    }
    
    .intro-section h2::after,
    .brands-section h2::after,
    .solutions-section h2::after,
    .solutions-water-section h2::after,
    .section-title::after {
        width: 15%;
    }
}

/* Анімації */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стилі для слайдера */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slider-item.active {
    opacity: 1;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.slider-control:hover {
    background: rgba(255, 255, 255, 0.9);
}

.slider-control.prev {
    left: 20px;
}

.slider-control.next {
    right: 20px;
}

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-indicator.active {
    background: rgba(255, 255, 255, 1);
}

/* Стилі для секції брендів */
.brands-section {
    overflow: hidden;
    position: relative;
}

.brands-section .container {
    position: relative;
}

.brands-section .row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 20px 0 40px 0;
    margin: 0 -15px;
    position: relative;
}

.brands-section .row::-webkit-scrollbar {
    display: none;
}

/* Індикатори прокрутки */
.brands-scroll-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.brands-scroll-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--medium-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.brands-scroll-indicator.active {
    background: var(--primary-blue);
    transform: scale(1.2);
}

.brands-scroll-indicator:hover {
    background: var(--primary-turquoise);
}

/* Анімація для індикаторів */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.brands-scroll-indicator.pulse {
    animation: pulse 2s infinite;
}

.brand-card {
    flex: 0 0 calc(50% - 30px);
    margin: 0 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.brand-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.brand-card:hover::after {
    opacity: 0.05;
}

.brand-card > * {
    position: relative;
    z-index: 2;
}

.brand-card img {
    transition: transform 0.3s ease;
}

.brand-card:hover img {
    transform: scale(1.05);
}

.brand-card p {
    transition: color 0.3s ease;
}

.brand-card:hover p {
    color: var(--primary-blue);
}

/* Адаптивність для брендів */
@media (max-width: 991.98px) {
    .brand-card {
        flex: 0 0 calc(100% - 30px);
        margin: 0 auto;
        max-width: 400px;
    }

    .brands-section .row {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0;
        padding: 20px 0 40px 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .brand-card {
        scroll-snap-align: center;
    }

    .brands-scroll-indicators {
        display: flex;
        bottom: 20px;
    }
}

@media (max-width: 576px) {
    .brand-card {
        max-width: 100%;
        margin: 0 15px;
    }

    .brands-section .row {
        padding: 10px 0 30px 0;
    }

    .brands-scroll-indicators {
        bottom: 15px;
    }
}

/* Стилі для карток рішень */
.solution-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.solution-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.solution-card:hover::after {
    opacity: 0.05;
}

.solution-card > * {
    position: relative;
    z-index: 2;
}

.solution-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.solution-card:hover .solution-image {
    transform: scale(1.05);
}

.solution-card .p-4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    height: 100%;
    min-height: 300px;
}

.solution-card h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-blue);
    margin-bottom: 1rem;
    text-align: center;
}

.solution-card:hover h3 {
    background: var(--gradient-main-reverse);
    -webkit-background-clip: text;
}

.solution-card p {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    text-align: center;
    transition: color 0.3s ease;
    width: 100%;
    white-space: normal;
    overflow: visible;
}

.solution-card:hover p {
    color: var(--primary-blue);
}

.solution-card ul {
    margin-bottom: 1.5rem;
    text-align: left;
    width: 100%;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.solution-card ul li {
    display: flex;
    align-items: center;
    color: var(--dark-gray);
    transition: color 0.3s ease;
    white-space: normal;
    overflow: visible;
}

.solution-card ul li i {
    margin-right: 0.5rem;
    min-width: 20px;
}

.solution-card:hover ul li {
    color: var(--primary-blue);
}

.solution-card .btn {
    margin-top: auto;
    align-self: center;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.solution-card:hover .btn {
    background: var(--gradient-main);
    border-color: transparent;
    color: var(--white);
}

/* Специфічні стилі для water секції */
.solutions-water-section .solution-card {
    flex-direction: row;
}

.solutions-water-section .solution-card .col-md-5 {
    max-width: 40%;
    flex: 0 0 40%;
}

.solutions-water-section .solution-card .col-md-7 {
    max-width: 60%;
    flex: 0 0 60%;
}

/* Адаптивність для water секції */
@media (max-width: 768px) {
    .solutions-water-section .solution-card {
        flex-direction: column;
    }
    
    .solutions-water-section .solution-card .col-md-5,
    .solutions-water-section .solution-card .col-md-7 {
        max-width: 100%;
        flex: 0 0 100%;
    }
    
    .solutions-water-section .solution-card img {
        height: 200px;
    }
} 