/* TaxiBerlin /napravleniya/ page styles.
   Loaded only on /napravleniya/. Do not move to main.css. */

.tb-site-main > .tb-ux-content:nth-of-type(2) {
    padding: 84px 0 72px;
    background: #ffffff;
}

.tb-site-main > .tb-ux-content:nth-of-type(2) .tb-ux-content__inner {
    display: block;
}

.tb-site-main > .tb-ux-content:nth-of-type(2) .tb-ux-content__main {
    max-width: 1180px;
    margin: 0 auto;
}

.tb-site-main > .tb-ux-content:nth-of-type(2) .tb-ux-content__title,
.tb-site-main > .tb-ux-content:nth-of-type(2) .tb-ux-content__text > p {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.tb-site-main > .tb-ux-content:nth-of-type(2) .tb-ux-content__line {
    margin-left: auto;
    margin-right: auto;
}

.tb-site-main > .tb-ux-content:nth-of-type(2) .tb-ux-content__text ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    margin: 34px 0 0;
    list-style: none;
}

.tb-site-main > .tb-ux-content:nth-of-type(2) .tb-ux-content__text li {
    margin: 0;
    padding: 0;
}

.tb-site-main > .tb-ux-content:nth-of-type(2) .tb-ux-content__text a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 16px 18px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 6px;
    background: #ffffff;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.tb-site-main > .tb-ux-content:nth-of-type(2) .tb-ux-content__text a::after {
    content: "→";
    margin-left: 14px;
    color: #fc7700;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.tb-site-main > .tb-ux-content:nth-of-type(2) .tb-ux-content__text a:hover,
.tb-site-main > .tb-ux-content:nth-of-type(2) .tb-ux-content__text a:focus-visible {
    border-color: rgba(252, 119, 0, 0.45);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
    transform: translateY(-1px);
    outline: none;
}

.tb-site-main > .tb-ux-content:nth-of-type(3) {
    padding: 82px 0 96px;
    background: #f7f4ef;
}

.tb-site-main > .tb-ux-content:nth-of-type(3) .tb-ux-content__inner--with-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 48px;
    align-items: start;
}

.tb-site-main > .tb-ux-content:nth-of-type(3) .tb-ux-content__main,
.tb-site-main > .tb-ux-content:nth-of-type(3) .tb-ux-content__side {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
}

.tb-site-main > .tb-ux-content:nth-of-type(3) .tb-ux-content__main {
    padding: 40px 42px;
}

.tb-site-main > .tb-ux-content:nth-of-type(3) .tb-ux-content__title {
    max-width: 720px;
}

.tb-site-main > .tb-ux-content:nth-of-type(3) .tb-ux-content__text {
    max-width: 820px;
}

.tb-site-main > .tb-ux-content:nth-of-type(3) .tb-ux-content__text p {
    color: #344054;
    font-size: 17px;
    line-height: 1.75;
}

.tb-site-main > .tb-ux-content:nth-of-type(3) .tb-ux-content__side {
    position: sticky;
    top: 96px;
    padding: 24px;
}

.tb-site-main > .tb-ux-content:nth-of-type(3) .tb-ux-content__side-title {
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    color: #0f172a;
    font-size: 18px;
    line-height: 1.25;
}

.tb-site-main > .tb-ux-content:nth-of-type(3) .tb-ux-content__routes {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.tb-site-main > .tb-ux-content:nth-of-type(3) .tb-ux-content__route {
    margin: 0;
    padding: 0;
}

.tb-site-main > .tb-ux-content:nth-of-type(3) .tb-ux-content__route::before {
    display: none;
}

.tb-site-main > .tb-ux-content:nth-of-type(3) .tb-ux-content__route-link {
    display: block;
    padding: 10px 12px;
    border-radius: 4px;
    background: #fafafa;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}

.tb-site-main > .tb-ux-content:nth-of-type(3) .tb-ux-content__route-link:hover,
.tb-site-main > .tb-ux-content:nth-of-type(3) .tb-ux-content__route-link:focus-visible {
    background: rgba(252, 119, 0, 0.10);
    color: #0f172a;
    outline: none;
}

@media (max-width: 1024px) {
    .tb-site-main > .tb-ux-content:nth-of-type(2) .tb-ux-content__text ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tb-site-main > .tb-ux-content:nth-of-type(3) .tb-ux-content__inner--with-side {
        grid-template-columns: 1fr;
    }

    .tb-site-main > .tb-ux-content:nth-of-type(3) .tb-ux-content__side {
        position: static;
    }
}

@media (max-width: 767px) {
    .tb-site-main > .tb-ux-content:nth-of-type(2),
    .tb-site-main > .tb-ux-content:nth-of-type(3) {
        padding: 52px 0;
    }

    .tb-site-main > .tb-ux-content:nth-of-type(2) .tb-ux-content__title,
    .tb-site-main > .tb-ux-content:nth-of-type(2) .tb-ux-content__text > p {
        text-align: left;
    }

    .tb-site-main > .tb-ux-content:nth-of-type(2) .tb-ux-content__line {
        margin-left: 0;
    }

    .tb-site-main > .tb-ux-content:nth-of-type(2) .tb-ux-content__text ul {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 26px;
    }

    .tb-site-main > .tb-ux-content:nth-of-type(2) .tb-ux-content__text a {
        min-height: 52px;
        padding: 14px 16px;
        font-size: 14px;
    }

    .tb-site-main > .tb-ux-content:nth-of-type(3) .tb-ux-content__main,
    .tb-site-main > .tb-ux-content:nth-of-type(3) .tb-ux-content__side {
        padding: 24px 20px;
    }

    .tb-site-main > .tb-ux-content:nth-of-type(3) .tb-ux-content__text p {
        font-size: 15px;
        line-height: 1.65;
    }
}

/* ===== TaxiBerlin /napravleniya/ final second section START ===== */
.tb-site-main > .tb-ux-content:nth-of-type(3) {
    padding: 64px 0 72px;
    background: #f7f4ef;
}

.tb-site-main > .tb-ux-content:nth-of-type(3) .tb-ux-content__inner--with-side {
    display: block;
    max-width: 920px;
    margin: 0 auto;
}

.tb-site-main > .tb-ux-content:nth-of-type(3) .tb-ux-content__main {
    width: 100%;
    padding: 44px 48px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
}

.tb-site-main > .tb-ux-content:nth-of-type(3) .tb-ux-content__side {
    display: none;
}

.tb-site-main > .tb-ux-content:nth-of-type(3) .tb-ux-content__title {
    max-width: 760px;
}

.tb-site-main > .tb-ux-content:nth-of-type(3) .tb-ux-content__text {
    max-width: 820px;
}

.tb-site-main > .tb-ux-content:nth-of-type(3) .tb-ux-content__text p {
    color: #344054;
    font-size: 17px;
    line-height: 1.75;
}

@media (max-width: 767px) {
    .tb-site-main > .tb-ux-content:nth-of-type(3) {
        padding: 48px 0 56px;
    }

    .tb-site-main > .tb-ux-content:nth-of-type(3) .tb-ux-content__main {
        padding: 24px 20px;
    }

    .tb-site-main > .tb-ux-content:nth-of-type(3) .tb-ux-content__text p {
        font-size: 15px;
        line-height: 1.65;
    }
}
/* ===== TaxiBerlin /napravleniya/ final second section END ===== */
