/*-------------------------------------- main.css --------------------------------*/
#firstvideo{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
#firstvideo .text-box{
    text-align: left;
    position: absolute;
    width: 100%;
    padding-left: 30px;
    padding-right: 30px;
}
#firstvideo .text-box *{
    max-width: 700px;
}
#firstvideo .text-box p,
#firstvideo .text-box h1 {
    color: var(--static-white);
}
#firstvideo .text-box a {
    margin-top: 20px;
}
#firstvideo .text-box .secondary-button{
    color: var(--static-black);
    background-color: var(--primary);
    border-color: transparent;
    margin-right: 15px;
}
#firstvideo .text-box .secondary-button:hover{
    color: var(--static-white);
    background-color: var(--static-black);
    border-color: var(--static-white);
}
#firstvideo .text-box .blank-button {
    display: inline-block;
    color: var(--static-white);
}
#firstvideo .text-box .blank-button:hover{
    border-color: var(--static-white);
}
#firstvideo .text-box ul{
    margin-top: 20px;
    list-style-type: none;
}
#firstvideo .text-box li{
    color: var(--static-white);
    margin-bottom: 5px;
}
#firstvideo .text-box li::before{
    content: '\2713';
    margin-right: 1rem;
    color: var(--primary);
}



#firstvideo video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#firstvideo .color-overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    opacity: 0.5;
}

#problem-solution {
    max-width: 1400px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    padding: 80px;
    gap: 60px;
}

#problem-solution img{
    min-width: 50%;
    flex: 1;
    max-width: 50%;
    display: block;
    padding: 40px;
}
.problem-solution{
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.problem-solution #problem-p{
    line-height: 1.2;
}

@media screen and (max-width: 970px) {
    #problem-solution {
        flex-direction: column;
        padding: 40px;
    }
    #problem-solution img {
        max-width: 100%;
        width: 100%;
        flex: 0;
    }
}

#benefits {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 70px;
    gap: 70px;
}

#benefits ul {
    display: flex;
    flex-direction: row;
    gap: 90px;
    align-items: flex-start;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

#benefits li {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 15px;
    max-width: 370px;
    text-align: center;
}

#benefits span {
    font-size: 60px;
    color: var(--primary);
}

#faq {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 40px;
}
#faq .text-block{
    width: 100%;
}
.faq {
    flex: 1;
    width: 100%;
    text-align: left;
}
.faq p {
    padding: 10px 10px 10px 10px;
}

.faq details {
    border: 1px solid transparent;
}

.faq details summary {
    position: relative;
    padding: 10px 10px 10px 10px;
    list-style: none;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.faq details summary:hover {
    background-color: var(--body-bg);
}

.faq details summary::after {
    --size: 26px;
    content: '◀';
    display: block;
    font-size: 20px;
    font-weight: 600;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
}

.faq details[open] summary { 
    border-color: transparent;
}

.faq details[open] summary::after {
    content: '▼';
}


.faq details[open] {
    border: 1px solid var(--border-color);
    background-color: var(--body-bg);
}

.faq details[open] + details[open] {
    margin-top: 10px;
}

.faq details:not([open]) + details[open] {
    margin-top: 0;
    border-top-color: transparent;
}


#catalog {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 40px;
}

@media screen and (max-width: 970px) {
    #catalog{
        padding: 40px 10px;
    }
    #catalog p{
        font-size: 18px;
    }
}

.catalog-inner{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 40px;
}

.cat-card{
    max-width: 150px;
    min-width: 144px;
    flex: 1;
    height: fit-content;
    max-height: 350px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    text-align: center;
    color: var(--body-fg);
    border: 1px solid var(--border-color);
    text-decoration: none;
}

.card-image {
    position: relative;
    flex: 1;
    display: flex;
    width: 100%;
    aspect-ratio: 1;
    justify-content: center;
    align-items: center;
}

.card-image img{
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cat-card span {
    flex: 0;
}

.cat-card:hover{
    border-color: var(--primary);
}

@media (hover: hover) and (min-width: 970px) {
    .cat-card{
        height: 400px;
        max-width: 250px;
    }
}

.text-block{
    max-width: 800px;
    padding: 80px;
    margin: 0 auto;
    text-align: center;
    color: var(--body-fg);
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.text-inner-left {
    width: 30%;
}

.text-inner-right {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 70%;
    gap: 5em;
}


@media screen and (max-width: 970px) {
    #about-company{
        padding: 20px;
    }
    .text-block{
        padding: 0;
    }
}



#catalog {
    text-align: center;
}

.catalog-preview {
    width: auto;
    height: auto;
    padding: 3em 5em;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
    max-width: 70%;
}

.category-block {
    height: auto;
    padding: 20px;
    width: auto;
    background-color: var(--darkened-bg);
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    gap: 20px;
}

.category-block img {
    height: 50px;
}



#articles {
    padding-top: 40px;
    padding-bottom: 100px;
    text-align: center;
    position: relative;
}

#articles .small-button {
    background-color: var(--body-bg);
}

