section.top, section.footer {
    display: flex;
    background-color: #fff;
    border-radius: 5px;
    height: auto;
    margin-bottom: 40px;
    max-height: 400px;
}

section.top.image:nth-of-type(even), section.footer.image:nth-of-type(even) {
    flex-direction: row-reverse;
}

section.top, section.footer {
    justify-content: center;
    text-align: center;
}

section.top.image, section.footer.image {
    justify-content: start;
    text-align: left;
}

section.top .content, section.footer .content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    width: 60%;
    line-height: 1.4;

    h2 {
        margin: 0 0 10px;
    }

    p {
        font-size: 14px;
        color: var(--accent);
    }

    div {
        margin: 0;
        color: #666;
        margin-top: 20px;
        overflow: hidden;
    }
}

section.top .image, section.top .video {
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1);
    height: auto;
    object-fit: cover;
    width: 40%;
}

section.content {
    margin: clamp(40px, 6vw, 70px) 0;
}

.content-heading {
    margin-bottom: clamp(40px, 7vw, 72px);
    text-align: center;

    h2 {
        font-size: clamp(1.3em, 3.5vw, 2em);
        margin: 0 0 8px;
        text-transform: uppercase;
    }

    p {
        color: #666;
        margin: 0;
    }
}

section.footer .image, section.footer .video {
    width: 40%;
    height: auto;
    object-fit: cover;
}

header.header {
    position: relative;
    text-align: center;
    color: white;
}

header.header::before {
    background-color: rgba(0, 0, 0, 0.5);
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}

header.product-header::before {
    background-color: transparent;
}

header.header .content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    user-select: none;
    z-index: 2;

    h1,
    h2 {
        color: inherit;
        font-size: clamp(1.5em, 5vw, 3em);
        margin: 0;
        text-transform: uppercase;
        margin: 10px;
    }

    div {
        font-size: clamp(1em, 2.5vw, 1.5em);
        margin: 0;
    }

    .scroll-down-btn {
        font-size: clamp(12px, 1.5vw, 16px);
        margin-top: clamp(24px, 5vw, 50px);
        padding: clamp(10px, 1.2vw, 12px) clamp(20px, 2.4vw, 24px);
        position: relative;
        z-index: 10;
    }
}

.offer-scroll {
    scroll-margin-top: 100px;
}

.product-intro {
    align-items: center;
    max-width: 900px;
    display: grid;
    gap: clamp(24px, 5vw, 60px);
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);

    .product-intro-media {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .product-intro-media > a,
    .product-intro-placeholder {
        aspect-ratio: 4 / 3;
        border-radius: 10px;
        box-shadow: var(--shadow-card);
        cursor: zoom-in;
        display: block;
        overflow: hidden;
    }

    .product-intro-image {
        display: block;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
        width: 100%;
    }

    .product-intro-media > a:hover .product-intro-image {
        transform: scale(1.05);
    }

    .product-intro-placeholder {
        align-items: center;
        background-color: var(--shades);
        cursor: default;
        display: flex;
        justify-content: center;
        position: relative;

        .product-intro-image {
            inset: 0;
            position: absolute;
        }

        span {
            font-size: clamp(1.2em, 3vw, 2em);
            font-weight: bold;
            position: relative;
            text-transform: uppercase;
        }
    }

    .product-intro-thumbs {
        display: grid;
        gap: 10px;
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));

        a {
            aspect-ratio: 1;
            border-radius: 6px;
            cursor: zoom-in;
            display: block;
            overflow: hidden;
        }

        img {
            display: block;
            height: 100%;
            object-fit: cover;
            transition: opacity var(--transition);
            width: 100%;
        }

        a:hover img {
            opacity: 0.8;
        }
    }

    .product-intro-brand {
        color: var(--accent);
        font-size: 14px;
        font-weight: bold;
        letter-spacing: 0.08em;
        text-decoration: none;
        text-transform: uppercase;

        &:hover {
            text-decoration: underline;
            text-underline-offset: 3px;
        }
    }

    h1 {
        font-size: clamp(1.6em, 4vw, 2.6em);
        line-height: 1.15;
        margin: 8px 0 16px;
    }

    p {
        color: #666;
        line-height: 1.5;
        margin: 0;
    }
}

@media (max-width: 768px) {
    .product-intro {
        grid-template-columns: 1fr;

        .product-intro-media > a,
        .product-intro-placeholder {
            aspect-ratio: 16 / 10;
        }
    }
}

.content .brands {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(10px, 2vw, 20px);
    justify-content: center;

    &:last-of-type {
        justify-content: space-between;
    }

    &:last-of-type .brand-name {
        font-size: 1.2em;
    }

    .logo {
        height: 100%;
        object-fit: contain;
        position: absolute;
        top: 0;
        transition: transform var(--transition);
        width: 80%;
        left: 10%;
    }

    .logo-background {
        height: 100%;
        object-fit: fill;
        width: 100%;
    }

    a {
        align-items: center;
        background-color: #fff;
        border-radius: 5px;
        border: 1px solid #ddd;
        box-shadow: var(--shadow-card);
        aspect-ratio: 1;
        display: flex;
        justify-content: center;
        overflow: hidden;
        position: relative;
        width: clamp(140px, 40vw, 250px);
        text-transform: uppercase;
        transition: transform var(--transition), box-shadow var(--transition);

        &:hover {
            box-shadow: var(--shadow-card-hover);
            transform: translateY(-4px);
        }

        &:hover .logo {
            transform: scale(1.05);
        }
    }

    .brand-name {
        color: black;
        font-size: clamp(1.1em, 3vw, 1.6em);
        font-weight: bold;
        position: absolute;
    }
}

.content .brands:last-child {
    margin-top: 60px;

    a {
        aspect-ratio: 4 / 3;
        width: clamp(140px, 30vw, 200px);
    }
}

@media (max-width: 768px) {
    header.header .content {
        width: 80%;
    }

    .content .brands {
        &:last-of-type {
            justify-content: center;
        }
    }

    section.top, section.footer {
        display: block;
        max-height: none;

        .image, .video {
            width: 100%;
            max-height: 400px;
        }

        .content {
            width: auto;
        }
    }
}
