/* Кастомные стили для доработки Tailwind */
.smooth-scroll {
    scroll-behavior: smooth;
}

header {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

section {
    position: relative;
    z-index: 10;
}

.hover-container {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
}

@media (max-width: 767px) {
    .hover-container {
        flex-direction: column;
    }
}

.hover-card {
    transition: width 0.5s ease, height 0.5s ease;
    background-color: #1f2937;
    min-height: 250px;
    height: 250px;
}

@media (min-width: 768px) {
    .hover-card {
        width: 33.33%;
    }
    .hover-card:hover {
        width: 66.66%;
        height: 400px;
    }
    .hover-card:hover .card-advantage {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-advantage {
    display: none;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    text-align: center;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .card-advantage {
        padding: 1rem;
    }
}

.card-description {
    opacity: 1;
    margin-top: auto;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .card-description {
        margin-bottom: 1rem;
    }
}

.hover-card h2 {
    margin-bottom: 0.25rem;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.125rem 0.25rem;
    border-radius: 4px;
    display: inline-block;
    text-align: center;
    width: 100%;
}

@media (min-width: 768px) {
    .hover-card h2 {
        margin-bottom: 0.5rem;
        padding: 0.25rem 0.5rem;
    }
}

.hover-card p.text-sm {
    margin-bottom: 0.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .hover-card p.text-sm {
        margin-bottom: 1rem;
    }
}

.process-line {
    background: linear-gradient(to bottom, transparent 0%, #facc15 10%, #facc15 90%, transparent 100%);
    transition: height 0.5s ease;
}

.process-step {
    position: relative;
    z-index: 1;
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(10px);
}

.process-step:hover {
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.5);
}

.process-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(250, 204, 21, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(250, 204, 21, 0); }
}

.faq-item {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(10px);
}

.faq-item:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

.faq-item[open] .faq-answer {
    max-height: 200px;
    opacity: 1;
}

.faq-answer {
    transition: max-height 0.5s ease, opacity 0.5s ease;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .faq-answer {
        padding: 1rem;
    }
}

#nav-menu {
    display: none;
}

@media (max-width: 767px) {
    #nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(31, 41, 55, 0.9);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem;
        z-index: 30;
        animation: slideDown 0.3s ease-out;
    }
    #nav-menu.active {
        display: flex;
    }
    #nav-menu li {
        margin: 0.5rem 0;
    }
    #nav-menu a {
        font-size: 1.2rem;
        padding: 0.5rem;
        display: block;
    }
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Добавление отступов для логотипа и гамбургера на мобильных устройствах */
@media (max-width: 767px) {
    nav {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}