:root {
    --two-ved-ink: #14283f;
    --two-ved-muted: #44566b;
    --two-ved-blue: #1b557f;
    --two-ved-border: #dce5ed;
    --two-ved-surface: #f3f7fa;
}

html,
body {
    color: var(--two-ved-ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body #tm-main {
    padding-top: clamp(24px, 4vw, 58px);
    padding-bottom: clamp(32px, 5vw, 68px);
}

#tm-main .uk-article-title,
#tm-main h1,
#tm-main h2,
#tm-main h3 {
    color: var(--two-ved-ink);
    font-family: inherit;
    font-weight: 680;
    letter-spacing: -.025em;
    text-wrap: balance;
}

#tm-main .uk-article-title {
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.1;
}

#tm-main .uk-article > [property=text] {
    color: var(--two-ved-muted);
    line-height: 1.65;
    overflow-wrap: break-word;
}

#tm-main .uk-article > [property=text] a:not([class]) {
    color: #155783;
    text-underline-offset: .15em;
}

.tm-toolbar {
    border-bottom-color: var(--two-ved-border);
}

.tm-toolbar .header-adress a:hover,
.tm-toolbar .header-contacts a:hover {
    color: var(--two-ved-blue);
}

.tm-header .uk-navbar-container:not(.uk-navbar-transparent),
.tm-header-mobile .uk-navbar-container:not(.uk-navbar-transparent) {
    background: #fff;
    border-bottom: 1px solid var(--two-ved-border);
}

.tm-header .uk-navbar-nav > li > a {
    padding-inline: clamp(9px, 1.2vw, 18px);
    color: var(--two-ved-ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 650;
    text-transform: none;
}

.header-left .logo-img img {
    box-shadow: none;
}

.two-ved-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
    min-height: 350px;
    overflow: hidden;
    margin-bottom: clamp(28px, 5vw, 56px);
    background: #142d46;
    border-radius: 18px;
}

.two-ved-hero-copy {
    align-self: center;
    padding: clamp(26px, 5vw, 62px);
}

#tm-main .two-ved-hero h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(32px, 4vw, 60px);
    line-height: 1.06;
    text-wrap: initial;
}

.two-ved-hero p {
    max-width: 46ch;
    margin: 0 0 22px;
    color: #e7eef5;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.55;
}

.two-ved-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
}

.two-ved-hero .two-ved-primary-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 2px 16px;
    color: #172a3d;
    background: #ffc184;
    border-radius: 7px;
    font-weight: 685;
}

.two-ved-hero .two-ved-primary-link:hover {
    color: #172a3d;
    background: #ffd1a3;
    text-decoration: none;
}

.two-ved-hero .two-ved-secondary-link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.two-ved-hero > .two-ved-hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #263f54;
}

.two-ved-workflow {
    margin-top: clamp(34px, 5vw, 70px);
    padding: clamp(22px, 4vw, 46px);
    background: var(--two-ved-surface);
    border: 1px solid var(--two-ved-border);
    border-radius: 16px;
}

.two-ved-workflow h2 {
    margin: 0 0 18px;
}

.two-ved-workflow-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.two-ved-workflow-steps > li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-content: start;
    align-items: start;
    padding: 17px;
    background: #fff;
    border: 1px solid var(--two-ved-border);
    border-radius: 10px;
}

.two-ved-workflow-number {
    display: grid;
    box-sizing: border-box;
    width: 35px;
    height: 35px;
    place-items: center;
    color: #14324e;
    background: #dbeaf6;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 720;
    font-variant-numeric: tabular-nums;
}

#tm-main .two-ved-workflow-steps h3 {
    margin: 4px 0 6px;
    font-size: 17px;
    line-height: 1.25;
    text-wrap: initial;
}

.two-ved-workflow-steps p {
    margin: 0;
    color: var(--two-ved-muted);
    font-size: 14px;
    line-height: 1.5;
}

.two-ved-footer {
    margin-top: clamp(25px, 4vw, 58px);
    padding: clamp(24px, 4vw, 54px) 0 18px;
    color: #e8eff5;
    background: #14283f;
}

.two-ved-footer a,
.two-ved-footer a:hover,
.two-ved-footer h2 {
    color: #fff;
}

.two-ved-footer-grid {
    display: grid;
    grid-template-columns: 1.15fr .8fr 1fr;
    gap: 24px clamp(20px, 4vw, 60px);
}

.two-ved-footer-grid h2 {
    margin: 0 0 9px;
    font-family: inherit;
    font-size: 17px;
    font-weight: 680;
}

.two-ved-footer-grid ul {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.two-ved-footer-grid p {
    margin: 8px 0 0;
    color: inherit;
    font-size: 14px;
}

.two-ved-footer-logo {
    display: inline-block;
    padding: 7px;
    background: #fff;
    border-radius: 6px;
}

.two-ved-footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 20px;
    margin-top: 24px;
    padding-top: 12px;
    border-top: 1px solid #53667c;
    font-size: 13px;
}

.two-ved-footer :focus-visible,
.two-ved-hero :focus-visible {
    outline: 2px solid #ffc184;
    outline-offset: 3px;
}

@media (max-width: 880px) {
    .two-ved-workflow-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .two-ved-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .two-ved-hero > .two-ved-hero-image {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .two-ved-footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .two-ved-workflow-steps {
        grid-template-columns: minmax(0, 1fr);
    }
}

body .tm-toolbar.tm-toolbar-default {
    padding-top: 15px;
    padding-bottom: 15px;
    color: var(--two-ved-ink);
    background-color: #fff;
    background-image: none;
}

body .tm-header .uk-navbar-container .uk-navbar-nav > li > a {
    color: var(--two-ved-ink);
}

body .tm-header .uk-navbar-container .uk-navbar-nav > li > a:hover,
body .tm-header .uk-navbar-container .uk-navbar-nav > li.uk-active > a {
    color: var(--two-ved-blue);
}

.two-ved-toolbar-brand {
    display: flex;
    gap: clamp(14px, 2vw, 26px);
    align-items: center;
}

.two-ved-toolbar-brand img {
    display: block;
    width: 64px;
    height: auto;
}

.two-ved-toolbar-name {
    color: #233d56;
    font-size: 15px;
    font-weight: 680;
    line-height: 1.4;
}

.two-ved-toolbar-location {
    display: block;
    margin-top: 2px;
    color: var(--two-ved-muted);
    font-size: 13px;
    font-weight: 400;
}

.two-ved-toolbar-cta {
    display: inline-flex;
    box-sizing: border-box;
    flex: none;
    min-height: 44px;
    align-items: center;
    margin-left: auto;
    padding: 9px 13px;
    color: #fff;
    background: var(--two-ved-blue);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.two-ved-toolbar-cta:hover {
    color: #fff;
    background: #103b5e;
    text-decoration: none;
}

.two-ved-toolbar-contact {
    display: grid;
    justify-content: end;
    gap: 2px;
    color: var(--two-ved-muted);
    font-size: 12px;
    line-height: 1.45;
}

.two-ved-toolbar-contact a {
    color: var(--two-ved-ink);
    font-size: 14px;
    font-weight: 650;
    white-space: nowrap;
}

body .tm-toolbar.tm-toolbar-default .two-ved-toolbar-contact a {
    color: var(--two-ved-ink);
}

body .tm-toolbar.tm-toolbar-default .uk-search-input {
    color: var(--two-ved-ink);
    background-color: var(--two-ved-surface);
    border-color: var(--two-ved-border);
}

body .tm-toolbar.tm-toolbar-default .uk-search-input::placeholder,
body .tm-toolbar.tm-toolbar-default .uk-search-icon {
    color: var(--two-ved-muted);
}

#tm-main .b-catalog-office:has(.catalog-office__item) {
    max-width: 1000px;
    margin: clamp(24px, 4vw, 44px) auto;
}

#tm-main .b-catalog-office .catalog-office__content,
#tm-main .b-catalog-office.consultation .b-foot-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
    gap: 16px;
    margin: 0 0 16px;
}

#tm-main .b-catalog-office .catalog-office__content:not(:has(> *)),
#tm-main .b-catalog-office .catalog-office__content:has(
    > :only-child > .catalog-office__item:only-child
    > .catalog-office__item-header:only-child > .catalog-office__title:only-child:empty
) {
    display: none;
}

#tm-main .b-catalog-office .catalog-office__content:has(> :only-child) {
    max-width: 460px;
    margin-inline: auto;
}

#tm-main .b-catalog-office .catalog-office__content > *,
#tm-main .b-catalog-office.consultation .b-foot-menu > * {
    display: flex;
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
}

#tm-main .b-catalog-office .catalog-office__item {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--two-ved-border);
    border-radius: 12px;
    color: var(--two-ved-ink);
    text-align: left;
}

#tm-main .catalog-office__item-header {
    height: auto;
    padding: clamp(16px, 3vw, 24px) clamp(16px, 3vw, 24px) 10px;
    background: transparent;
}

#tm-main .catalog-office__title {
    color: var(--two-ved-ink);
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 680;
    line-height: 1.3;
    text-wrap: balance;
}

#tm-main .catalog-office__item-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 0 clamp(16px, 3vw, 24px) clamp(16px, 3vw, 24px);
    background: transparent;
}

#tm-main .catalog-office__savings {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 12px 14px;
    color: var(--two-ved-ink);
    background: var(--two-ved-surface);
    border-radius: 8px;
    line-height: 1.35;
}

#tm-main .catalog-office__txt {
    position: static;
    transform: none;
}

#tm-main .catalog-office__savings-percent {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 720;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

#tm-main .catalog-office__caption,
#tm-main .catalog-office__savings-caption {
    color: var(--two-ved-muted);
    font-size: 15px;
    line-height: 1.5;
}

#tm-main .catalog-office__caption:empty,
#tm-main .catalog-office__savings-caption:empty {
    display: none;
}

#tm-main .b-catalog-office .catalog-office__item .catalog-office__price {
    height: auto;
    margin: 0;
    color: var(--two-ved-ink);
    font-size: 17px;
    line-height: 1.5;
}

#tm-main .catalog-office__item-content :is(.catalog-office__btn, .catalog-office__btn_new) {
    margin-top: auto;
}

#tm-main .uk-article [property=text] :is(.catalog-office__btn_new > a, .catalog-office__btn > a, .main-contacts-btn > a, a.b-btnbox, a.js-callback[href*="#js-ostalis-voprosy"]) {
    display: inline-flex;
    box-sizing: border-box;
    max-width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 10px 14px;
    color: #fff;
    background: var(--two-ved-blue);
    border: 1px solid transparent;
    border-radius: 6px;
    font: inherit;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.35;
    text-align: center;
    text-wrap: balance;
    text-decoration: none;
}

#tm-main .uk-article [property=text] :is(.catalog-office__btn_new > a, .catalog-office__btn > a, .main-contacts-btn > a, a.b-btnbox, a.js-callback[href*="#js-ostalis-voprosy"]):hover {
    color: #fff;
    background: #103b5e;
}

#tm-main .uk-article [property=text] :is(.catalog-office__btn_new > a, .catalog-office__btn > a, .main-contacts-btn > a, a.b-btnbox, a.js-callback[href*="#js-ostalis-voprosy"]):focus-visible {
    outline: 2px solid #176a9b;
    outline-offset: 3px;
}

@media (max-width: 540px) {
    #tm-main .catalog-office__item-content :is(.catalog-office__btn, .catalog-office__btn_new) > a {
        width: 100%;
    }
}

@media (prefers-reduced-motion: no-preference) {
    html:has(.two-ved-hero) {
        scroll-behavior: smooth;
    }
}
