[data-page-type="company"] {
    .custom-page-content.content {
        display: flex;
        flex-direction: column;
        gap: 35px;
    }
}

.about-company-page-directions {
    padding: var(--block-paddings);
    background-color: var(--color-grey-background);
    h2 {
        margin-top: 0;
    }
    ul.directions {
        list-style: none;
        grid-template-columns: repeat(auto-fit, minmax(min(450px, 100%), 1fr));
        display: grid;
        gap: 1px;
        padding: 1px;
        background-color: rgb(210, 210, 210);
        .direction {
            padding: 10px;
            background-color: white;
            .title {
                font-size: 22px;
                font-weight: 500;
                color: var(--color-title);
            }
            .description {
                color: var(--color-text);
            }
            .link {
                margin-top: 20px;
                a {
                    font-weight: 500;
                    color: var(--main-color);
                    &:after {
                        content: '\2192'
                    }
                }
            }
        }
    }
}

.about-company-page-history {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(550px, 100%), 1fr));
    gap: 30px;
    .history-periods {
        list-style: none;
        display: flex;
        flex-direction: column;
        padding: 0;
        margin-bottom: 0;
        .history-period {
            border-top: 1px solid rgb(210, 210, 210);
            display: grid;
            grid-template-columns: 120px 1fr;
            grid-template-areas:
                "year title"
                "year description";
            column-gap: 30px;
            row-gap: 8px;
            padding-top: 20px;


            .year {
                grid-area: year;
                color: var(--main-color);
                font-size: 18px;
                font-weight: 500;
            }

            .title {
                grid-area: title;
                margin: 0;
            }

            .description {
                grid-area: description;
            }
        }
    }
}

.order-way {
    background-color: var(--color-grey-background);
    padding: var(--block-paddings);
    h2 {
        margin-top: 0;
    }
    .top-row {
        display: flex;
        justify-content: space-between;
        .note {
            font-size: 14px;
        }
    }
    .steps-line {
        border-top: 2px solid rgb(210, 210, 210);
        position: relative;
        z-index: 1;
        transform: translateY(5px);
    }
    .steps {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
        gap: 15px;
        .step {
            display: flex;
            flex-direction: column;
            gap: 7px;
            --width: 8px;
            .point {
                width: var(--width);
                height: var(--width);
                background-color: var(--main-color);
                border-radius: var(--width);
                position: relative;
                z-index: 2;
            }
            .number {
                font-size: 14px;
            }
            .title {
                font-size: 16px;
                font-weight: 500;
            }
            .description {
                font-size: 14px;
            }
        }
    }
}

@media (width <= 1350px) {
    .order-way {
        .steps-line {
            display: none;
        }
        .steps {
            grid-template-columns: 1fr;
            .step {
                border-bottom: 1px solid rgb(210, 210, 210);
                padding-bottom: 5px;
                &:first-child {
                    border-top: 1px solid rgb(210, 210, 210);
                }
                .point {
                    display: none;
                }
                .number {
                    font-weight: 500;
                    color: var(--main-color);
                }
            }
        }
    }
}

@media (width <= 600px) {
    .order-way {
        .top-row {
            .note {
                display: none;
            }
        }
    }
}

.advantages-block {
    background-color: rgb(23, 32, 47);
    padding: var(--block-paddings);
    color: white;
    .top-row {
        display: flex;
        justify-content: space-between;
        h2 {
            margin-top: 0;
        }
    }
    .advantages {
        padding: 1px;
        list-style: none;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(450px, 100%), 1fr));
        gap: 1px;
        background-color: rgb(58, 66, 78);
        .advantage {
            padding: 10px;
            background-color: rgb(23, 32, 47);
            gap: 10px;
            display: flex;
            flex-direction: column;
            .number {
                color: var(--main-color);
                font-weight: 600;
            }
            .title {
                font-weight: 500;
                font-size: 18px;
            }
            .description {
                color: rgb(166, 190, 211);
            }
            &:hover {
                background-color: rgb(24, 44, 65);
                box-shadow: inset 0 2px 0 0 var(--main-color);
            }
        }
    }
}

.team-block {
    #team {
        width: min(500px, 100%);
        float: left;
        padding: 0 20px 20px 0;
    }

    h2 {
        margin-top: 0;
    }
    &::after {
        content: "";
        display: table;
        clear: both;
    }
}

.targets-block {
    background-color: var(--color-grey-background);
    padding: var(--block-paddings);
    h2 {
        margin-top: 0;
    }
    .targets {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
        list-style: none;
        gap: 25px;
        padding: 0;
        .target {
            border-left: 3px solid var(--main-color);
            padding: 15px;
            background-color: white;
            .title {
                font-size: 18px;
                font-weight: 500;
            }
        }
    }
}

.to-catalog-block {
    padding: var(--block-paddings);
    color: white;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(450px, 100%), 1fr));
    background: linear-gradient(to right, rgb(15, 121, 178), rgb(36, 165, 235));
    h2 {
        margin-top: 0;
    }
    .second-part {
        display: grid;
        align-items: center;
        gap: 15px;
        grid-template-columns: repeat(auto-fit, minmax(180px, max-content));
        justify-content: center;
        justify-items: center;
        .button {
            font-weight: 700;
            color: white;
        }

        #to-catalog {
            background-color: rgb(38, 169, 240);
            border: transparent 1px solid;
        }

        #become-partner {
            border: 1px solid white;
            border-radius: 2px;
        }

    }
}

@media (width < 600px) {
    .to-catalog-block {
        .second-part {
            grid-template-columns: 1fr;
        }
    }
}