/* Website cards */

.web-card-section .lead {
    max-width: 860px;
}

@media (min-width: 1200px) {
    .website-card {
        min-height: 320px;
    }
}

.web-comparison-icon {
    width: 72px;
    height: 72px;
}

.web-comparison-or {
    width: 64px;
    height: 64px;
}


/* =================================
   Site structure
================================= */

.site-structure-section {
    background-color: var(--brand-dark-deep);
}


/* =================================
   Flow
================================= */

.site-structure-flow {
    display: grid;
    grid-template-columns:
        minmax(180px, 1.15fr)
        48px
        minmax(170px, 0.9fr)
        48px
        minmax(190px, 1fr);

    align-items: center;
    gap: 0.75rem;
}


/* =================================
   Source nodes
================================= */

.site-structure-sources {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.site-structure-node,
.site-structure-main-node {
    background-color: var(--brand-dark);

    border-color: rgba(203, 213, 225, 0.20) !important;

    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02) inset,
    0 8px 22px rgba(0, 0, 0, 0.12);
}


/* =================================
   Main nodes
================================= */

.site-structure-main-node {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 150px;
}


/* =================================
   Arrows
================================= */

.site-structure-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--brand-blue-light);

    font-size: 1.75rem;
    line-height: 1;
}


/* =================================
   Bottom cards
================================= */

.site-structure-card {
    background-color: var(--brand-dark);

    border-color: rgba(203, 213, 225, 0.18) !important;

    transition: transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.site-structure-card:hover {
    transform: translateY(-3px);

    background-color: rgba(15, 23, 42, 0.88);

    border-color: rgba(96, 165, 250, 0.40) !important;
}


/* =================================
   Tablet / mobile
================================= */

@media (max-width: 1199.98px) {
    .site-structure-flow {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .site-structure-arrow {
        min-height: 28px;
    }

    .site-structure-main-node {
        min-height: auto;
    }
}


/* =================================
   Small screens
================================= */

@media (max-width: 575.98px) {
    .site-structure-node,
    .site-structure-main-node,
    .site-structure-card {
        padding: 1.25rem !important;
    }
}


/* =================================
   Reduced motion
================================= */

@media (prefers-reduced-motion: reduce) {
    .site-structure-card {
        transition: none;
    }

    .site-structure-card:hover {
        transform: none;
    }
}

/* =================================
   Project preview
================================= */

.project-preview {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 260px;
    height: 100%;

    padding: 0.75rem;

    overflow: hidden;

    background-color: var(--brand-light);

    border: 1px solid var(
            --accent-border,
            var(--brand-border)
    );

    border-radius: 1.25rem;
}


.project-preview-button {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    padding: 0;

    background: transparent;
    border: 0;

    cursor: zoom-in;
}


.project-preview img {
    display: block;

    width: 100%;
    max-width: 100%;
    max-height: 340px;

    object-fit: contain;

    border-radius: 0.75rem;

    transition: transform 180ms ease;
}


.project-preview-button:hover img {
    transform: scale(1.015);
}


.project-preview-zoom {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    color: var(
            --accent-color,
            var(--brand-blue)
    );

    background-color: rgba(255, 255, 255, 0.94);

    border: 1px solid var(
            --accent-border,
            var(--brand-blue-border)
    );

    border-radius: 0.75rem;

    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.10);

    font-size: 1rem;
}


/* =================================
   Full image modal
================================= */

#projectImageModal .modal-content {
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}


#projectImageModalImage {
    width: auto;
    max-width: 100%;

    max-height: calc(100vh - 150px);

    object-fit: contain;
}


/* =================================
   Responsive
================================= */

@media (min-width: 992px) {
    .project-featured-card {
        padding: 2rem;
    }
}


@media (max-width: 767.98px) {
    .project-featured-card {
        padding: 1.25rem;
    }

    .project-preview {
        min-height: 220px;
    }

    .project-preview img {
        max-height: 300px;
    }
}


/* =================================
   Prices
================================= */


/* Верхний цветной акцент */


/* Hover */


/* =================================
   Desktop alignment
================================= */

@media (min-width: 768px) {
    .price-card-title {
        min-height: 86px;
    }

    .price-card-value {
        min-height: 68px;
    }
}


/* =================================
   Price modal
================================= */
