.features-section {
    width: 100%;
    padding: 10px 0;
}

.features-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 8px;
}

.features-container.small {
    width: 100%;

    max-width: 100%;

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 15px;
}

.features2-container {
    width: 75%;

    min-width: 75%;

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}

.feature-card {
    min-height: auto;

    padding: 15px 5px;

    display: flex;

    position: relative;
    overflow: hidden;
    z-index: 0;

    flex-direction: column;

    align-items: center;

    text-align: center;

    background: var(--info-card-bg);

    border: 1px solid #252b30;

    border-radius: 20px;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.feature-card::before {
    content: "";

    position: absolute;
    z-index: -2;

    width: 200%;
    aspect-ratio: 1;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    background: conic-gradient(transparent 0deg,
            transparent 260deg,
            var(--button-border) 330deg,
            transparent 360deg);

    opacity: 0;

    transition: opacity 0.3s ease;
}

.feature-card::after {
    content: "";

    position: absolute;
    z-index: -1;

    inset: 1px;

    background: var(--info-card-bg);

    border-radius: 19px;
}

@keyframes service-border-spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.us-section h2 {
    font-size: var(--section-header-size);
    font-weight: 300;

    margin-bottom: 10px;
    color: var(--light-text);
}

.us-section h2 span {
    color: var(--dark-accent-text);
}

.us-section p {
    max-width: 700px;
    margin: auto;

    font-size: var(--section-par-size);
    line-height: 1.8;
}

.us {
    position: relative;

    width: calc(60vh * 1.33);
    max-width: 1600px;

    margin: 0 auto;

    overflow: hidden;

    border-radius: 20px;

    user-select: none;

    touch-action: pan-y;

    background-color: transparent;
}

.us-image {
    width: 100%;

    height: 60vh;

    object-fit: cover;

    display: block;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;

    opacity: 1;

    background-color: transparent;
}

.us-image.changing {
    opacity: 0;
    transform: scale(1.02);
}

.feature-card:hover::before {
    opacity: 1;
    animation: service-border-spin 2.5s linear infinite;
}

.feature-card:hover {
    transform: translateY(-8px);

    border-color: transparent;
}

.feature-icon {
    width: 60px;
    height: 60px;

    margin-bottom: 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background: var(--info-icon-bg);

    font-size: 32px;

    flex-shrink: 0;

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: translateY(-4px);

    background: var(--info-icon-hover);
}

.feature-card h3 {
    margin: 0 0 20px;

    color: var(--light-text);

    font-size: calc(var(--card-header-size) - 4px);

    font-weight: 400;

    line-height: 1.2;
}

.feature-card p {
    margin: 0;

    max-width: 300px;

    color: var(--muted-text);

    font-size: calc(var(--card-small-size) - 1px);

    line-height: 1.65;
}

@media (max-width: 900px) {
    .feature-card h3 {
        font-size: calc(var(--card-header-size) - 6px);
    }
}

@media (max-width: 768px) {
    .feature-card:hover .feature-icon {
        transform: none;
    }

    .feature-card:hover {
        transform: none;
    }

    .us {
        width: calc(50vh * 1.33);
    }

    .us-image {
        height: 50vh;
    }

    .features-container {
        display: flex;

        gap: 16px;

        overflow-x: auto;
        overflow-y: hidden;

        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;

        scrollbar-width: none;
        -ms-overflow-style: none;

        padding: 0 0;
    }

    .features-container::-webkit-scrollbar {
        display: none;
    }

    .feature-card {
        flex: 0 0 75%;
        scroll-snap-align: center;
    }

    .features-container.small {
        display: flex;

        gap: 16px;

        overflow-x: auto;
        overflow-y: hidden;

        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;

        scrollbar-width: none;
        -ms-overflow-style: none;

        padding: 0 0;
    }

    .features-container.small::-webkit-scrollbar {
        display: none;
    }

    .features2-container {
        min-width: 100%;
        gap: 7px;
    }

    .feature-card h3 {
        font-size: var(--card-header-size);
    }

    .feature-card p {
        font-size: var(--card-small-size);
    }
}

@media (max-width: 550px) {
    .us {
        width: calc(40vh * 1.33);
    }

    .us-image {
        height: 40vh;
    }
}

@media (max-width: 420px) {
    .us {
        width: calc(35vh * 1.33);
    }

    .us-image {
        height: 35vh;
    }
}

@media (max-width: 350px) {
    .us {
        width: 100%;
    }

    .us-image {
        height: 30vh;
    }
}