/*
Theme Name: Vijoint
Description: Landing theme for vijoint.com.ua
Version: 1.0.0
Requires at least: 7.0
Requires PHP: 8.3
Text Domain: vijoint
*/

@font-face {
    font-family: 'proxima_novalight';
    src: url('fonts/proximanova-light-webfont.woff2') format('woff2'),
        url('fonts/proximanova-light-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'proximanova-regular';
    src: url('fonts/proximanova-regular.woff2') format('woff2'),
        url('fonts/proximanova-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'pf_din_text_comp_prolight';
    src: url('fonts/pfdintextcomppro-light-webfont.woff2') format('woff2'),
        url('fonts/pfdintextcomppro-light-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'pf_din_text_comp_proregular';
    src: url('fonts/pfdintextcomppro-regular-webfont.woff2') format('woff2'),
        url('fonts/pfdintextcomppro-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'pf_din_text_comp_promedium';
    src: url('fonts/pfdintextcomppro-medium-webfont.woff2') format('woff2'),
        url('fonts/pfdintextcomppro-medium-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* reset
========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

button,
input,
select,
textarea {
    font: inherit;
}

a,
button,
input,
select,
textarea,
summary,
[role],
[tabindex] {
    -webkit-tap-highlight-color: transparent;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
summary:focus,
[tabindex]:focus,
[contenteditable="true"]:focus,
[role]:focus {
    outline: none;
}

/* base
========================================================================== */
:root {
    --tm-color-text: #000;
    --tm-color-white: #fff;
    --tm-color-dark: #340402;
    --tm-color-red: #cc322a;
    --tm-color-red-dark: #981912;
    --tm-color-peach: #ffcea1;
    --tm-color-orange: #fc824c;
    --tm-color-coral: #eb6e43;
    --tm-color-grey-bg: #eaeaea;
    --tm-color-input: #f0f0f0;
    --tm-color-line: #ccc;
    --tm-font-text: 'proxima_novalight', sans-serif;
    --tm-font-text-regular: 'proximanova-regular', sans-serif;
    --tm-font-title: 'pf_din_text_comp_prolight', sans-serif;
    --tm-font-title-regular: 'pf_din_text_comp_proregular', sans-serif;
    --tm-font-title-medium: 'pf_din_text_comp_promedium', sans-serif;
    --tm-font-size-min: 14px;
    --tm-header-height: 70px;
    --tm-header-top: 0px;
}

html,
body {
    height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--tm-font-text);
    font-size: 22px;
    line-height: 30px;
    color: var(--tm-color-text);
    background: var(--tm-color-white);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* spacing of core blocks comes from theme classes */
.wp-block-image {
    margin: 0;
}

.wp-block-image img {
    display: block;
}

.wp-block-image.aligncenter,
.wp-block-image.aligncenter img {
    margin-left: auto;
    margin-right: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 15px 0;
}

[id] {
    scroll-margin-top: calc(var(--tm-header-top) + var(--tm-header-height));
}

.tm-is-locked {
    overflow: hidden;
    padding-right: var(--tm-scrollbar-gap, 0px);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

@media (max-width: 670px) {
    body {
        font-size: 18px;
        line-height: 26px;
    }
}

/* header
========================================================================== */
.tm-header-bar {
    height: var(--tm-header-height);
}

.tm-header {
    position: fixed;
    top: var(--tm-header-top);
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--tm-header-height);
    background: var(--tm-color-dark);
}

.tm-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 15px;
}

.tm-header__logo {
    position: relative;
    display: block;
    width: 300px;
    flex: 0 0 auto;
}

.tm-header__logo::after {
    content: "";
    position: absolute;
    top: -15px;
    right: 0;
    width: 33px;
    height: 72px;
    background: url('images/logo-fon.png') no-repeat 0 0;
}

.tm-header__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0 10px;
    border: 0;
    background: none;
    cursor: pointer;
}

.tm-header__toggle-line {
    display: block;
    height: 2px;
    background: var(--tm-color-white);
    transition: transform .2s, opacity .2s;
}

.tm-header__toggle[aria-expanded="true"] .tm-header__toggle-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.tm-header__toggle[aria-expanded="true"] .tm-header__toggle-line:nth-child(2) {
    opacity: 0;
}

.tm-header__toggle[aria-expanded="true"] .tm-header__toggle-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 960px) {
    .tm-header__logo {
        width: 180px;
    }

    .tm-header__toggle {
        display: flex;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tm-header__toggle-line {
        transition: none;
    }
}

/* menu
========================================================================== */
.tm-nav__list {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tm-nav__link {
    display: block;
    padding: 0 25px;
    font-family: var(--tm-font-title);
    font-size: 20px;
    line-height: var(--tm-header-height);
    color: var(--tm-color-white);
    transition: background-color .25s;
}

.tm-nav__link:hover,
.tm-nav__link:focus-visible {
    background-color: rgba(255, 255, 255, .05);
}

.tm-nav__contacts {
    display: none;
}

@media (max-width: 1100px) {
    .tm-nav__link {
        padding: 0 15px;
    }
}

@media (max-width: 960px) {
    .tm-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: calc(0px - var(--tm-scrollbar-gap, 0px));
        display: flex;
        flex-direction: column;
        height: calc(100vh - var(--tm-header-top) - var(--tm-header-height));
        height: calc(100dvh - var(--tm-header-top) - var(--tm-header-height));
        overflow-y: auto;
        overscroll-behavior: contain;
        background: var(--tm-color-dark);
        border-top: 1px solid rgba(255, 255, 255, .1);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity .2s, transform .2s, visibility 0s .2s;
    }

    .tm-nav.tm-is-open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        transition: opacity .2s, transform .2s;
    }

    .tm-nav__list {
        display: block;
    }

    .tm-nav__item {
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

    .tm-nav__link {
        padding: 0 20px;
        font-size: 24px;
        line-height: 58px;
    }

    .tm-nav__contacts {
        display: block;
        margin-top: auto;
        padding: 10px 20px 30px;
        text-align: center;
    }

    .tm-nav__phones {
        color: var(--tm-color-white);
    }

    .tm-nav__phones .tm-phones__link {
        font-size: 26px;
        line-height: 36px;
    }

    .tm-nav .tm-nav__btn {
        width: 100%;
        max-width: 335px;
        margin-top: 20px;
    }
}

@media (max-width: 960px) and (prefers-reduced-motion: reduce) {
    .tm-nav,
    .tm-nav.tm-is-open {
        transform: none;
        transition: none;
    }
}

/* ======================================================================= */
/* BLOCKS
========================================================================== */

/* section title
---------------------------------------- */
.tm-section-title {
    position: relative;
    margin: 0 0 35px;
    padding-bottom: 50px;
    font-family: var(--tm-font-title);
    font-size: 40px;
    line-height: 40px;
    font-weight: normal;
    text-align: center;
}

.tm-section-title::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 155px;
    height: 16px;
    margin: auto;
    background: url('images/title-back.png') no-repeat 0 0;
}

@media (max-width: 670px) {
    .tm-section-title {
        margin-bottom: 25px;
        padding-bottom: 40px;
        font-size: 30px;
        line-height: 32px;
    }
}

/* section text
---------------------------------------- */
.tm-section-text {
    margin: 15px 0 0;
    text-align: center;
}

/* buttons
---------------------------------------- */
.tm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 235px;
    height: 50px;
    padding: 0 10px;
    border: 0;
    border-radius: 3px;
    font-family: var(--tm-font-title-regular);
    font-size: 25px;
    line-height: 30px;
    color: var(--tm-color-white);
    background: var(--tm-color-red);
    cursor: pointer;
    transition: background-color .25s;
}

.tm-btn:hover,
.tm-btn:focus-visible {
    background: var(--tm-color-red-dark);
}

/* phones
---------------------------------------- */
.tm-phones {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.tm-phones__link {
    display: block;
    font-family: var(--tm-font-title-medium);
    font-size: 30px;
    line-height: 30px;
}

/* forms
---------------------------------------- */
.tm-content-form .tm-grid {
    margin-left: -8px;
    row-gap: 8px;
}

.tm-content-form .tm-grid > * {
    padding-left: 8px;
}

.tm-input,
.tm-textarea {
    display: block;
    width: 100%;
    height: 42px;
    padding: 0 5px 0 15px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 0;
    font-family: var(--tm-font-text);
    font-size: 16px;
    line-height: 25px;
    color: var(--tm-color-white);
    background: none;
    transition: border-color .2s;
}

.tm-textarea {
    height: 70px;
    padding: 10px 5px 10px 15px;
    resize: vertical;
}

.tm-input::placeholder,
.tm-textarea::placeholder {
    color: rgba(255, 255, 255, .6);
}

.tm-input:focus,
.tm-textarea:focus {
    border-color: var(--tm-color-white);
}

.tm-form-btn {
    display: block;
    width: 160px;
    height: 44px;
    padding: 0;
    border: 0;
    font-family: var(--tm-font-text);
    font-size: 16px;
    line-height: 28px;
    color: var(--tm-color-text);
    background: var(--tm-color-white);
    cursor: pointer;
    transition: background-color .25s;
}

.tm-form-btn:hover,
.tm-form-btn:focus-visible {
    background: rgba(255, 255, 255, .8);
}

.tm-content-form_light .tm-input {
    color: var(--tm-color-text);
    background: var(--tm-color-input);
    border-color: var(--tm-color-input);
}

.tm-content-form_light .tm-input::placeholder {
    color: #888;
}

.tm-content-form_light .tm-input:focus {
    border-color: #bbb;
}

.tm-content-form_light .tm-form-btn {
    margin: 0 auto;
    color: var(--tm-color-white);
    background: var(--tm-color-text);
}

.tm-content-form_light .tm-form-btn:hover,
.tm-content-form_light .tm-form-btn:focus-visible {
    background: rgba(0, 0, 0, .8);
}

.tm-content-form .wpcf7-form-control-wrap {
    display: block;
}

.tm-content-form .wpcf7-not-valid-tip {
    margin-top: 4px;
    font-size: var(--tm-font-size-min);
    line-height: 18px;
    color: var(--tm-color-peach);
}

.tm-content-form_light .wpcf7-not-valid-tip {
    color: var(--tm-color-red);
}

.tm-input.wpcf7-not-valid,
.tm-textarea.wpcf7-not-valid {
    border-color: var(--tm-color-orange);
}

.tm-content-form .wpcf7-spinner {
    display: none;
}

.wpcf7-form.submitting .tm-form-btn {
    opacity: .6;
    pointer-events: none;
}

.tm-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* page content
---------------------------------------- */
.tm-content {
    font-size: 18px;
    line-height: 28px;
}

.tm-content a {
    color: var(--tm-color-red);
}

.tm-content a:hover {
    text-decoration: underline;
}

.tm-title {
    margin: 0 0 30px;
    font-family: var(--tm-font-title);
    font-size: 40px;
    line-height: 40px;
    font-weight: normal;
}

/* breadcrumbs
---------------------------------------- */
.tm-breadcrumbs {
    padding: 20px 0;
    font-family: var(--tm-font-text-regular);
    font-size: var(--tm-font-size-min);
    line-height: 20px;
}

.tm-breadcrumbs__link {
    color: var(--tm-color-red);
}

.tm-breadcrumbs__link:hover {
    text-decoration: underline;
}

.tm-breadcrumbs__separator {
    margin: 0 8px;
}

/* hero
========================================================================== */
.tm-hero {
    position: relative;
    min-height: 615px;
    padding-top: 65px;
    font-family: var(--tm-font-text-regular);
}

.tm-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: none;
    object-position: center 0;
}

.tm-hero__inner {
    display: grid;
    grid-template-columns: 420px auto;
    justify-content: space-between;
}

.tm-hero__title {
    margin: 0 0 30px;
    font-family: var(--tm-font-title-regular);
    font-size: 50px;
    line-height: 50px;
    font-weight: normal;
}

.tm-hero__slider {
    position: relative;
    height: 232px;
}

.tm-hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity .5s;
}

.tm-hero__slide.tm-is-active {
    opacity: 1;
}

.tm-hero__subtitle {
    margin: -35px 0 0;
    font-size: 27px;
    line-height: 30px;
    text-align: right;
}

.tm-hero__contacts {
    padding-top: 117px;
    text-align: right;
}

.tm-hero__contacts-title {
    margin: 0 0 20px;
    font-size: 27px;
    line-height: 30px;
}

@media (max-width: 960px) {
    .tm-hero {
        min-height: 0;
        padding: 0 0 50px;
        text-align: center;
    }

    .tm-hero__bg {
        position: static;
        display: block;
        height: 340px;
        object-fit: cover;
        object-position: 50% 0;
    }

    .tm-hero__inner {
        display: block;
    }

    .tm-hero__left {
        max-width: 420px;
        margin: 0 auto;
        padding-top: 35px;
    }

    .tm-hero__title {
        margin-bottom: 20px;
    }

    .tm-hero__slider {
        height: auto;
        aspect-ratio: 413 / 202;
    }

    .tm-hero__slide {
        right: 0;
        margin: 0 auto;
    }

    .tm-hero__subtitle {
        margin: 20px 0 35px;
        text-align: center;
    }

    .tm-hero__subtitle br {
        display: none;
    }

    .tm-hero__contacts {
        padding-top: 0;
        text-align: center;
    }
}

@media (max-width: 670px) {
    .tm-hero__bg {
        height: 240px;
    }

    .tm-hero__left {
        padding-top: 25px;
    }

    .tm-hero__title {
        font-size: 34px;
        line-height: 36px;
    }

    .tm-hero__subtitle {
        margin-bottom: 30px;
        font-size: 20px;
        line-height: 26px;
    }

    .tm-hero__contacts-title {
        margin-bottom: 15px;
        font-size: 22px;
    }

    .tm-hero .tm-btn {
        width: 100%;
        max-width: 335px;
    }

    .tm-hero .tm-phones__link {
        font-size: 26px;
        line-height: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tm-hero__slide {
        transition: none;
    }
}

/* advantages
========================================================================== */
.tm-advantages {
    position: relative;
    margin-top: -110px;
}

.tm-advantages__tiles {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tm-advantages__tile {
    display: flex;
    flex: 1 1 25%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 20px;
    text-align: center;
}

.tm-advantages__label {
    margin: 25px 0 0;
    font-family: var(--tm-font-title);
    font-size: 30px;
    line-height: 30px;
    color: var(--tm-color-white);
}

.tm-advantages__intro {
    text-align: center;
}

.tm-advantages__list {
    margin: 15px 0 0;
    padding-left: 30px;
    line-height: 28px;
}

@media (max-width: 960px) {
    .tm-advantages {
        margin-top: 0;
    }

    .tm-advantages__tiles {
        flex-wrap: wrap;
    }

    .tm-advantages__tile {
        flex-basis: 50%;
        min-height: 220px;
    }

    .tm-advantages__text {
        padding: 0 20px;
    }
}

@media (max-width: 670px) {
    .tm-advantages__list {
        padding-left: 22px;
        line-height: 26px;
    }

    .tm-advantages__list li + li {
        margin-top: 6px;
    }
}

@media (max-width: 420px) {
    .tm-advantages__tile {
        flex-basis: 100%;
        min-height: 200px;
    }
}

/* image pair
========================================================================== */
.tm-image-pair {
    display: flex;
    max-width: 1920px;
    margin: 0 auto;
}

.tm-image-pair__item {
    width: 50%;
}

.tm-image-pair__item img {
    width: 100%;
    height: 465px;
    object-fit: cover;
    object-position: center top;
}

@media (max-width: 960px) {
    .tm-image-pair {
        flex-direction: column;
    }

    .tm-image-pair__item {
        width: 100%;
    }

    .tm-image-pair__item img {
        height: auto;
    }
}

/* products
========================================================================== */
.tm-products__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 15px 0 0;
    padding: 0;
    list-style: none;
}

.tm-products__item {
    width: 33.333%;
}

.tm-products__image {
    margin: 0;
}

.tm-products__image img {
    display: block;
    width: 100%;
}

.tm-products__title {
    margin: 0;
    font-family: var(--tm-font-title);
    font-size: 30px;
    line-height: 30px;
    text-align: center;
}

@media (max-width: 960px) {
    .tm-products__item {
        width: 50%;
    }
}

@media (max-width: 670px) {
    .tm-products__item {
        width: 100%;
    }

    .tm-products__item + .tm-products__item {
        margin-top: 20px;
    }

    .tm-products__title {
        font-size: 26px;
        line-height: 28px;
    }
}

/* pharmacies
========================================================================== */
.tm-pharmacies {
    padding: 90px 0;
}

.tm-pharmacies__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tm-pharmacies__item {
    display: flex;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px dashed var(--tm-color-line);
}

.tm-pharmacies__item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.tm-pharmacies__logo {
    flex: 0 0 284px;
}

.tm-pharmacies__logo img {
    display: block;
}

.tm-pharmacies__name,
.tm-pharmacies__contacts {
    width: 35%;
    padding-left: 45px;
}

.tm-pharmacies__name strong,
.tm-pharmacies__contacts strong,
.tm-pharmacies__line {
    display: block;
}

.tm-pharmacies__email {
    color: #edb96c;
}

.tm-pharmacies__email:hover {
    text-decoration: underline;
}

@media (max-width: 960px) {
    .tm-pharmacies {
        padding: 60px 0;
    }

    .tm-pharmacies__item {
        flex-wrap: wrap;
    }

    .tm-pharmacies__logo {
        flex-basis: 100%;
        margin-bottom: 20px;
    }

    .tm-pharmacies__logo:empty {
        display: none;
    }

    .tm-pharmacies__name,
    .tm-pharmacies__contacts {
        width: 50%;
        padding-left: 0;
    }

    .tm-pharmacies__contacts {
        padding-left: 30px;
    }
}

@media (max-width: 670px) {
    .tm-pharmacies {
        padding: 40px 0;
    }

    .tm-pharmacies__item {
        display: block;
        margin-bottom: 30px;
        padding-bottom: 25px;
    }

    .tm-pharmacies__logo img {
        width: 200px;
    }

    .tm-pharmacies__name,
    .tm-pharmacies__contacts {
        width: auto;
        padding-left: 0;
    }

    .tm-pharmacies__contacts {
        margin-top: 15px;
    }
}

/* footer
========================================================================== */
.tm-footer {
    padding: 60px 0;
    color: var(--tm-color-white);
    background: url('images/f-img.jpg') repeat-x center 0 var(--tm-color-dark);
}

.tm-footer__col {
    width: 33.333%;
}

.tm-footer__title {
    margin: 0 0 15px;
    font-family: var(--tm-font-title);
    font-size: 26px;
    line-height: 26px;
}

.tm-footer__title_flush {
    margin-bottom: 0;
}

.tm-footer__license {
    margin-top: 10px;
    font-size: var(--tm-font-size-min);
    line-height: 16px;
}

.tm-footer__phones {
    margin-top: 20px;
}

.tm-footer__line {
    margin-top: 39px;
    padding: 15px 0 15px 50px;
    font-size: 16px;
    line-height: 18px;
    background: url('images/ua-tr-120.png') no-repeat 0 center;
}

.tm-footer__line p {
    margin: 0;
}

.tm-footer__line a {
    text-decoration: underline;
}

.tm-footer__line a:hover {
    text-decoration: none;
}

.tm-footer__privacy {
    display: inline-block;
    margin-left: 50px;
    font-size: 16px;
    line-height: 18px;
    text-decoration: underline;
}

.tm-footer__privacy:hover {
    text-decoration: none;
}

@media (max-width: 960px) {
    .tm-footer__grid {
        row-gap: 40px;
    }

    .tm-footer__col {
        width: 50%;
    }

    .tm-footer__col_form {
        width: 100%;
    }
}

@media (max-width: 670px) {
    .tm-footer {
        padding: 40px 0;
    }

    .tm-footer__col {
        width: 100%;
    }
}

/* modal
========================================================================== */
.tm-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    overflow-y: auto;
    padding: 50px 10px;
    background: rgba(0, 0, 0, .6);
    visibility: hidden;
    opacity: 0;
    transition: opacity .15s linear, visibility 0s .15s;
}

.tm-modal.tm-is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity .15s linear;
}

.tm-modal__dialog {
    position: relative;
    width: 600px;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: var(--tm-color-white);
    transform: translateY(-100px);
    transition: transform .3s ease-out;
}

.tm-modal.tm-is-open .tm-modal__dialog {
    transform: translateY(0);
}

.tm-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    color: var(--tm-color-text);
    background: none;
    opacity: .3;
    cursor: pointer;
    transition: opacity .2s;
}

.tm-modal__close:hover,
.tm-modal__close:focus-visible {
    opacity: .6;
}

.tm-modal__close svg {
    width: 16px;
    height: 16px;
}

.tm-modal__title {
    position: relative;
    margin: 0 0 25px;
    padding-bottom: 25px;
    font-family: var(--tm-font-text);
    font-size: 40px;
    line-height: 47px;
    font-weight: normal;
    text-align: center;
}

.tm-modal__title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 132px;
    height: 2px;
    margin-left: -66px;
    background: var(--tm-color-red);
}

@media (max-width: 670px) {
    .tm-modal {
        padding: 10px;
    }

    .tm-modal__dialog {
        padding: 40px 20px 20px;
    }

    .tm-modal__title {
        font-size: 30px;
        line-height: 37px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tm-modal,
    .tm-modal.tm-is-open,
    .tm-modal__dialog {
        transition: none;
    }
}

/* scroll to top
========================================================================== */
.tm-to-top {
    position: fixed;
    right: 65px;
    bottom: calc(50px + var(--tm-consent-space, 0px));
    z-index: 90;
    width: 46px;
    height: 40px;
    padding: 0;
    border: 0;
    background: url('images/arrow-up.png') no-repeat 17px 15px rgba(0, 0, 0, .2);
    cursor: pointer;
    visibility: hidden;
    opacity: 0;
    transition: opacity .2s, visibility 0s .2s, background-color .2s;
}

.tm-to-top.tm-is-visible {
    visibility: visible;
    opacity: 1;
    transition: opacity .2s, background-color .2s;
}

.tm-to-top:hover,
.tm-to-top:focus-visible {
    background-color: rgba(0, 0, 0, .6);
    background-position: 17px -27px;
}

@media (max-width: 670px) {
    .tm-to-top {
        right: 15px;
        bottom: calc(15px + var(--tm-consent-space, 0px));
    }
}

/* cookie consent window (Pressidium)
========================================================================== */
.pressidium-cc-theme {
    --cc-font-family: var(--tm-font-text-regular);
}

/* below the header, mobile menu and theme modals so they are never covered */
#cc--main {
    z-index: 95;
}

.show--settings #cc--main {
    z-index: var(--cc-z-index);
}

/* room under the footer so the page end scrolls above the open window */
.tm-footer::after {
    content: "";
    display: block;
    height: var(--tm-consent-space, 0px);
}

@media (prefers-reduced-motion: reduce) {
    .tm-to-top,
    .tm-to-top.tm-is-visible {
        transition: none;
    }
}

/* locked page keeps fixed elements in place */
.tm-is-locked .tm-header {
    padding-right: var(--tm-scrollbar-gap, 0px);
}

/* ======================================================================= */
/* UTILITIES
========================================================================== */

/* page skeleton
---------------------------------------- */
.tm-page {
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tm-main {
    flex: 1 1 auto;
}

/* containers
---------------------------------------- */
.tm-centered-content {
    position: relative;
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
}

.tm-centered-content_small {
    max-width: 980px;
}

@media (max-width: 1100px) {
    .tm-centered-content {
        padding: 0 20px;
    }
}

/* section paddings
---------------------------------------- */
.tm-padding-middle {
    padding: 60px 0;
}

@media (max-width: 670px) {
    .tm-padding-middle {
        padding: 40px 0;
    }
}

/* section backgrounds
---------------------------------------- */
.tm-background-grey {
    background: var(--tm-color-grey-bg);
}

.tm-background-peach {
    background: var(--tm-color-peach);
}

.tm-background-orange {
    background: var(--tm-color-orange);
}

.tm-background-coral {
    background: var(--tm-color-coral);
}

.tm-background-red {
    background: var(--tm-color-red);
}

/* flex grid
---------------------------------------- */
.tm-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -30px;
}

.tm-grid > * {
    padding-left: 30px;
}

.tm-grid__width-1-1 {
    width: 100%;
}

.tm-grid__width-1-2 {
    width: 50%;
}
