/*base*/

img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

.hero__title {
    margin: 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    border-bottom: 1px solid var(--clr-border);
}

.grid__alt {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, calc(280 / 1440 * 100vw), 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}
    
.grid__alt-one { grid-area: 1 / 1 / 2 / 13; }
.grid__alt-two { grid-area: 2 / 1 / 3 / 2; }
.grid__alt-three { grid-area: 2 / 2 / 3 / 3; }

@media screen and (max-width: 768px) {

    .grid {
        grid-template-columns: 1fr;
    }

    .grid__alt {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3,100%, 1fr, 1fr);
        grid-column-gap: 0px;
        grid-row-gap: 0px;
    }
        
    .grid__alt-three { grid-area: 1 / 1 / 2 / 2; }
    .grid__alt-one { grid-area: 2 / 1 / 3 / 2; }
    .grid__alt-two { grid-area: 3 / 1 / 4 / 2; }

}

/*hero*/

.history__title-content {
    max-width: 90%;
    text-align: center;
}

.guarantee__hero {
    align-items: center;
}

.guarantee__hero-content {
    padding: calc(80 / 1440 * 100vw);

    display: flex;
    flex-direction: column;
    gap: calc(18 / 1440 * 100vw);
}

.hero__subtitle {
    margin: 0;
}

.guarantee__hero-media {
    border-left: 1px solid var(--clr-border);
}

@media screen and (max-width: 768px) {

    .guarantee__hero-content {
        padding: 60px 60px 120px;
        gap: 18px;
    }
    
}

@media screen and (max-width: 480px) {

    .guarantee__hero-content {
        padding: 40px 20px;
    }
    
}

/*turns*/

.turns__article {
    position: sticky;
    top: 0;

    height: fit-content;

    padding: calc(80 / 1440 * 100vw);
}

.turns__list {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;

    border-left: 1px solid var(--clr-border);
}

.turns__item {
    width: 100%;
    padding: calc(80 / 1440 * 100vw);

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: calc(16 / 1440 * 100vw);
    
    box-sizing: border-box;
}

.turns__item:not(:last-child) {
    border-bottom: 1px solid var(--clr-border);
}

.turns__item-ul {
    margin: 0;
    padding: 0 0 0 calc(22 / 1440 * 100vw);
}

@media screen and (max-width: 768px) {

    .turns__article {
        position: relative;
        top: 0;

        padding: 60px;

        text-align: center;

        border-bottom: 1px solid var(--clr-border);
    }

    .turns__item {
        padding: 60px;
    }
    
}

@media screen and (max-width: 480px) {

    .turns__article {
        padding: 40px 20px;
    }

    .turns__item {
        padding: 20px;
        gap: 16px;
    }

    .turns__item-ul {
        padding: 0 0 0 16px;
    }
    
}

/*defects*/

.guarantee__defects {
    border-bottom: 1px solid var(--clr-border);
}

.defects__list {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;

    border-left: 1px solid var(--clr-border);
}

.defects__item {
    width: 100%;
    padding: calc(80 / 1440 * 100vw);
    
    box-sizing: border-box;
}

.defects__item:not(:last-child) {
    border-bottom: 1px solid var(--clr-border);
}

.defects__media-wrap {
    height: 100%;

    display: flex;

    border-left: 1px solid var(--clr-border);
}

.defects__media {
    position: sticky;
    top: 0;

    height: fit-content;
    width: 100%;
}

@media screen and (max-width: 768px) {

    .defects__media-wrap {
        border-left: none;
    }

    .defects__list {
        border-left: none;
    }
    
}

@media screen and (max-width: 480px) {

    .defects__item {
        padding: 20px;
    }
    
}

/*diagnostics*/

.guarantee__diagnostics-content {
    display: flex;
    flex-direction: column;

    border-left: 1px solid var(--clr-border);
}

.guarantee__diagnostics-article {
    padding: calc(80 / 1440 * 100vw) calc(80 / 1440 * 100vw) calc(40 / 1440 * 100vw) calc(80 / 1440 * 100vw);

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: calc(40 / 1440 * 100vw);

    border-bottom: 1px solid var(--clr-border);
}

.guarantee__diagnostics-title {
    margin: 0;
}

.guarantee__diagnostics-text {
    margin: 0 0 calc(70 / 1440 * 100vw) 0;
}

.guarantee__diagnostics-list {
    height: 100%;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1px;


    background-color: var(--clr-border);
}

.guarantee__diagnostics-item {
    padding: calc(40 / 1440 * 100vw);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background-color: var(--clr-white);
}

.diagnostics__item-text {
    margin: 0;
}

@media screen and (max-width: 768px) {

    .guarantee__diagnostics-article {
        padding: 80px 80px 40px;
        gap: 40px;
    }

    .guarantee__diagnostics-text {
        margin: 0 0 70px 0;
    }

    .guarantee__diagnostics-item {
        padding: 40px;
        align-items: flex-start;
    }
    
}

@media screen and (max-width: 480px) {
    
    .guarantee__diagnostics-article {
        padding: 40px 20px;
    }

    .guarantee__diagnostics-text {
        margin: 0;
    }

    .guarantee__diagnostics-list {
        grid-template-columns: 1fr;
    }

    .guarantee__diagnostics-item {
        padding: 20px;
    }

}

/*service*/

.guarantee__service {

}

.guarantee__service-list {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.guarantee__service-item {
    padding: calc(80 / 1440 * 100vw);

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    align-self: stretch;
}

.guarantee__service-item:not(:last-child) {
    border-bottom: 1px solid var(--clr-border);
}

.guarantee__service-item-title {
    margin: 0;
}

.guarantee__service-content {
    border-left: 1px solid var(--clr-border);
}

.guarantee__service-article {
    position: sticky;
    top: 0;

    padding: calc(80 / 1440 * 100vw);

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: calc(16 / 1440 * 100vw);
}

.guarantee__service-title {
    margin: 0;
}

@media screen and (max-width: 768px) {

    .guarantee__service {
        display: flex;
        flex-direction: column-reverse;
    }

    .guarantee__service-article {
        padding: 60px;

        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;

        border-bottom: 1px solid var(--clr-border);
    }

    .guarantee__service-item {
        padding: 60px;
    }
    
}

@media screen and (max-width: 480px) {
    
    .guarantee__service-article {
        padding: 40px 20px;
    }
    
    .guarantee__service-item {
        padding: 20px;
    }
    
}

/*restoration*/

.guarantee__restoration {
    border-bottom: 1px solid var(--clr-border);
}

.guarantee__restoration-list {
    display: flex;
    flex-direction: column;

    border-left: 1px solid var(--clr-border);
}

.guarantee__restoration-item {
    height: 100%;
    padding: calc(80 / 1440 * 100vw);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: calc(14 / 1440 * 100vw);
}

.guarantee__restoration-item:not(:last-child) {
    border-bottom: 1px solid var(--clr-border);
}

.guarantee__restoration-item-text {
    margin: 0;
}

@media screen and (max-width: 768px) {

    .guarantee__restoration-media {
        grid-area: 1 / 1 / 2 / 2;
    }

    .restoration__article {
        grid-area: 2 / 1 / 3 / 2;
    }

    .guarantee__restoration-list {
        grid-area: 3 / 1 / 4 / 2;
    }
    
    .guarantee__restoration-item {
        padding: 60px;
        gap: 14px;
    }

}

@media screen and (max-width: 480px) {
    
    .guarantee__restoration-item {
        padding: 20px;
    }

}

/*correction*/

.guarantee__correction {
    border-bottom: 1px solid var(--clr-border);
}

.guarantee__correction-list {
    display: flex;
    flex-direction: row;
}

.guarantee__correction-item {
    padding: calc(80 / 1440 * 100vw);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: calc(16 / 1440 * 100vw);
}

.guarantee__correction-item:last-child {
    border-left: 1px solid var(--clr-border);
}

.guarantee__correction-item-title {
    margin: 0;
}

.guarantee__correction-item-text {
    margin: 0;
    text-align: center;
}

@media screen and (max-width: 768px) {

    .guarantee__correction-item {
        padding: 60px;
        gap: 16px;
    }

}

@media screen and (max-width: 480px) {

    .guarantee__correction-list {
        flex-direction: column;
    }
    
    .guarantee__correction-item {
        padding: 20px;
    }

    .guarantee__correction-item:first-child {
        border-bottom: 1px solid var(--clr-border);
    }

    .guarantee__correction-item:last-child {
        border-left: none;
    }
    
}

/*history*/

.guarantee__history {
    display: flex;
    flex-direction: column;

    border-bottom: 1px solid var(--clr-border);
}

.history__banner {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}

.history__banner-media {
    width: 100%;
}

.history__banner-img {

}

.history__banner-content {
    position: absolute;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: calc(10 / 1440 * 100vw);
}

.history__banner-title {
    color: var(--clr-white);
}

.history__banner-text {
    margin: 0;
    color: var(--clr-white);
}

.history__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.history__item {
    padding: calc(80 / 1440 * 100vw);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    gap: calc(16 / 1440 * 100vw);
}

.history__item:not(:last-child) {
    border-right: 1px solid var(--clr-border);
}

.history__item-title {
    margin: 0;
    text-align: center;
}

@media screen and (max-width: 768px) {

    .history__list {
        display: flex;
        flex-direction: column;
    }

    .history__item {
        padding: 60px;
        gap: 16px;
        align-items: flex-start;
    }

    .history__item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid var(--clr-border);
    }

    .history__item-title {
        text-align: left;
    }

}

@media screen and (max-width: 480px) {

    .history__item {
        padding: 20px;
    }

}

/*not-included*/

.guarantee__not-included {
    border-bottom: 1px solid var(--clr-border);
}

.guarantee__not-included-media {
    position: sticky;
    top: 0;
}

.guarantee__not-included-img {
    height: auto;
}

.guarantee__not-included-list {
    display: flex;
    flex-direction: column;

    border-left: 1px solid var(--clr-border);
}

.guarantee__not-included-item {
    padding: calc(80 / 1440 * 100vw);

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: calc(14 / 1440 * 100vw);
}

.guarantee__not-included-item:not(:last-child) {
    border-bottom: 1px solid var(--clr-border);
}

.guarantee__not-included-item-title {
    margin: 0;
}

@media screen and (max-width: 768px) {

    .guarantee__not-included .grid__alt-two {
        grid-area: 1 / 1 / 2 / 2;
    }

    .guarantee__not-included .section__article {
        grid-area: 2 / 1 / 3 / 2;
    }

    .guarantee__not-included-list {
        grid-area: 3 / 1 / 4 / 2;
    }

    .guarantee__not-included-item {
        padding: 60px;
    }

}

@media screen and (max-width: 480px) {

    .guarantee__not-included-item {
        padding: 20px;
    }

}

/*end-banner*/

.end-banner {
    border-bottom: 1px solid var(--clr-border);
}