.promo-window {
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 800px;
    justify-self: center;
    aspect-ratio: 16 / 9;
    box-shadow: 0px 0px 2px 0px rgb(0 0 0 / 0.2);
    border-radius: 4px;
}

.promo-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;

    transition: transform ease-in-out 500ms;
    
    touch-action: pan-y;
    user-select: none;
    -webkit-user-drag: none;
    
}

.promo-ui-overlay {
    z-index: 2;
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;

    box-shadow: 0 0 128px rgb(0 0 0 / 0.2) inset;

    opacity: 0;

    transition: opacity 200ms ease-in-out;
}

.promo-link > img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.promo-arrow {
    position: absolute;
    z-index: 1;

    height: 64px;
    padding: 4px;

    background-color: transparent;
    border: none;
    cursor: pointer;

    pointer-events: auto;

    filter: drop-shadow(0px 0px 1px rgb(0 0 0 / 0.7));

    transition: 200ms ease-in-out;
}

.promo-window:hover > .promo-ui-overlay, .promo-ui-overlay:has(*:focus) {
    opacity: 1;
}

.promo-arrow:hover, .promo-arrow:focus {
    transform: scale(110%);
    background-color: rgb(0 0 0 / 0.2);
    opacity: 0.8;
}

#promo-arrow-left {
    left: 0;
    top: calc(50% - 32px);
    padding-left: 16px;
}

#promo-arrow-right {
    right: 0;
    top: calc(50% - 32px);
    padding-right: 16px;
}

.promo-selector {
    width:100%;
    height:16px;
    position:absolute;
    z-index: 2;
    left: 0;
    bottom: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 10px;
    pointer-events: none;
}
.promo-selector-item {
    background-color: white;
    width: 16px;
    height: 16px;
    border-radius: 8px;
    transition: ease-in-out 100ms;
    border: 0;
    box-shadow: 0px 0px 2px rgb(0 0 0 / 0.5);
    pointer-events: auto;
    padding: 0;
    
}
.promo-selector-item:not(.selector-current) {
    cursor: pointer;
}
.selector-current {
    background-color: hsl(from var(--company-color) h s calc(l * 1.1));
    transform: scale(120%);
}
:is(.promo-selector-item:hover, .promo-selector-item:focus):not(.selector-current) {
    background-color: #EEEEEE;
    transform: scale(120%);
    
}

.heading-sub-title {
    display: block;
    font-size: 2.6rem;
    line-height: calc(2.6rem * 1.3);
    font-weight: 600;
    margin-bottom: 10px;
}


.offer-list {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.offer {
    box-shadow: 0 0 2px rgb(0 0 0 / 0.5);
    overflow: hidden;
    border-radius: 20px;
    border: 2px solid transparent;
    transition: 100ms ease-in-out;
}
.offer:hover, .offer:has(.offer-link:focus) {
    border-color: grey;
    background-color: #FAFAFA;
}
:is(.offer:hover, .offer:has(.offer-link:focus)) img {
    transform: scale(102%);
}
.offer-link {
    display: grid;
    width: 100%;
    padding: 24px;

    grid-template-columns: 1fr;
    grid-template-rows: 180px;
    justify-content: center;
    justify-items: center;
}
.offer-link > img {
    transition: 500ms ease-in-out;
    border-radius: 4px;
}
.offer-title {
    font-weight: 600;
    font-size: 2rem;
    line-height: 2.5rem;
    text-align: center;
    display: block;
}

.offer-sub-title {
    display: block;
    font-size: 1.8rem;
    line-height: 2.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
}
.offer-description {
    display: block;
    font-size: 1.8rem;
    line-height: calc(1.8rem * 1.5);
    text-align: center;
    margin-bottom: 10px;
}
.offer-special {
    display: block;
    font-size: 1.8rem;
    line-height: calc(1.8rem * 1.5);
    font-weight: 500;
    text-transform: uppercase;
    color: rgb(200 0 0);
    text-align: center;
}

.about-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.about-container a {
    color: var(--company-color);
    font-weight: 600;
}

.products-main-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 20px;
    justify-items: center;
}

.products-main-list > * {
    width: 100%;
}


.product-main {
    box-shadow: 0 0 2px rgb(0 0 0 / 0.5);
    border-radius: 20px;
    border: 2px solid rgb(255 255 255 / 0);
    transition: 100ms ease-in-out;
}

:is(.product-main:hover, .product-main:has(> a:focus)) {
    background-color: #FAFAFA;
    border: 2px solid grey;

}
:is(.product-main:hover, .product-main:has(> a:focus)) > a > img{
    transform: scale(102%);

}

.product-main > a {
    display: grid;
    width: 100%;
    height: 100%;
    padding: 20px;
    grid-template-columns: 1fr;
    grid-template-rows: calc(2.0rem * 1.3 * 2) 1fr;
    flex-direction: column;
    align-items: center;
    justify-items: center;
    gap: 4px;
}

.product-main > a > h3 {
    font-size: 2.0rem;
    line-height: calc(2.0rem * 1.3);
    font-weight: 700;
    margin-bottom: 10px;
    align-self: start;
}
.product-main > a > img {
    max-height: 180px;
    transition: 500ms ease-in-out;
}

.product-main * {
    text-align: center;
}


.brand-main-list {
    margin-top: 20px;
}

.brand-main {
    box-shadow: 0px 0px 2px rgb(0 0 0 / 0.5);
    border: 2px solid rgb(255 255 255 / 0);
    margin: 20px 0px;
    border-radius: 20px;
    transition: ease-in-out 100ms;
    overflow: hidden;
}

:is(.brand-main:hover, .brand-main:has(> a:focus)) {
    background-color: #FAFAFA;
    border: 2px solid grey;     
}
:is(.brand-main:hover, .brand-main:has(> a:focus)) > a > img {
    transform: scale(104%);
}

.brand-main > a {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 20px;
    row-gap: 20px;
    padding: 20px;
    background-position: center;
    background-size: cover;
    justify-content: center;
    
}

.brand-main > a > img:first-child {
    width: 200px;
    transition: ease-in-out 500ms;
    max-height: 100px;
}
.brand-main > a > img:last-child {
    width: 250px;
    transition: ease-in-out 500ms;
    
}
.brand-main-text {
    flex-basis: 300px;
    flex-grow: 1;
    font-weight: 500;
}
.brand-main-text > p:not(:last-child) {
    margin-bottom: 6px;
}


.brand-other-list {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 20px;
}

.brand-other {
    display:flex;
    box-shadow: 0px 0px 4px rgb(0 0 0 / 0.2);
    margin: 20px 0px;
    border-radius: 20px;
    min-height: 100px;
    transition: ease-in-out 100ms;
}

brand-other:hover {
    background-color: #FAFAFA;
}

.brand-other > a {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;

}

.brand-other > a > img {
    width: 200px;
}


.application-main-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 20px;
}

.application-main {
    flex-basis: 360px;
    box-shadow: 0 0 2px rgb(0 0 0 / 0.5);
    border-radius: 20px;
    border: 2px solid rgb(255 255 255 / 0);
    transition: 100ms ease-in-out;

}
:is(.application-main:hover, .application-main:has(> a:focus)) {
    background-color: #FAFAFA;
    border: 2px solid grey;

}
:is(.application-main:hover, .application-main:has(> a:focus)) > a > img{
    transform: scale(102%);

}

.application-main > a {
    display: flex;
    width: 100%;
    height: 100%;
    padding: 20px;
    flex-direction: column;
    justify-content: space-between;
}
.application-main > a > h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.application-main > a > img {
    object-fit: cover;
    width: 100%;
    height: 200px;
    border-radius: 4px;
    transition: 500ms ease-in-out;
    
}
.top-level-container.special a {
    font-size: 2rem;
    font-weight: 600;
    border: 2px solid var(--company-color);
    padding: 10px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    width:max-content;
    box-shadow: 0px 0px 2px var(--company-color);
    transition: 100ms ease-in-out;
}
.top-level-container.special :is(a:hover, a:focus) {
    transform: scale(102%);
    background-color: #FAFAFA;
}


@media only screen and (max-width: 950px) {
    .heading-sub-title {
        font-size: 2.2rem;
        line-height: calc(2.2rem * 1.3);
        font-weight: 600;
        margin-bottom: 10px;
        text-align: center;
    }
    .offer-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    .offer-link {
        grid-template-rows: 160px;
    }
    .offer-title {
        font-size: 1.8rem;
        line-height: 2.2rem;
    }
    .offer-sub-title {
        font-size: 1.6rem;
        line-height: 2rem;
    }
    .offer-description {
        font-size: 1.6rem;
        line-height: calc(1.6rem * 1.5);
    }

    .offer-special {
        font-size: 1.6rem;
        line-height: calc(1.6rem * 1.5);
    }

    .promo-selector {
        height: 10px;
        column-gap: 6px;
    }

    .promo-selector-item {
        width: 10px;
        height: 10px;
        border-radius: 7px;
    }

    /* .products-main-list {
        grid-template-columns: ;
    } */

    .product-main > a {
        grid-template-rows: calc(1.8rem * 1.3 * 2) 1fr;
    }

    .product-main > a > h3 {
        font-size: 1.8rem;
        line-height: calc(1.8rem * 1.3);
    }
    .product-main > a > img {
        max-height: 160px;
        transition: 500ms ease-in-out;
    }

    .brand-main > a {
        flex-direction: column;
    }
    .brand-main-text {
        text-align: center;
        flex-basis: 1px;
        flex-grow: 1;
    }
    .brand-main > a > img:first-child {
        width: 150px;
    }
    .brand-main>a>img:last-child {
        width: 200px;
    }

    .application-main > a > h3 {
        font-size: 2rem;
    }
    .top-level-container.special a {
    justify-self: center;
    }

    .promo-ui-overlay {
        visibility: hidden;
    }
}