/* creativita Internet GmbH – static site. Layout and colours follow the former Contao theme.
   Breakpoints: phone < 768px, tablet 768–1024px, desktop > 1024px.
   Font sizes: Lato in four steps (12 / 15 / 20 / 28 px, see --fs-*), Montserrat only in the intro on the
   home page (15 / 28 px). */

@font-face { font-family: 'Lato'; src: url('../fonts/lato-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('../fonts/lato-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('../fonts/lato-900.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat-900.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }

:root {
    --text: #888;
    --head: #444;
    --dark: #222;
    --accent: #ec732c;
    --topbar: #313438;
    --footer: #323438;
    --dropdown: #373a3e;
    --band: #f3f3f3;
    --line: #eee;
    --border: #e4e4e4;
    --fs-s: 12px;
    --fs-m: 15px;
    --fs-l: 20px;
    --fs-xl: 28px;
    --page: 1118px;          /* text column, as on the old site */
    --page-side: 1132px;     /* sidebar layout: 251 px sidebar + 57 px gap + 824 px content */
    --gutter: 58px;          /* minimum space left and right of the text column */
    --col-gap: 23px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }

body {
    margin: 0;
    font: 400 var(--fs-m)/1.8 'Lato', Arial, sans-serif;
    color: var(--text);
    background: #fff;
}

img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }

a { color: inherit; text-decoration: underline; transition: color .25s; }
a:hover, a:focus-visible { color: var(--accent); }

h1, h2, h3, h4 { margin: 0 0 12px; color: var(--head); font-weight: 400; line-height: 1.2; }
h1 { margin-bottom: 15px; font-size: var(--fs-xl); font-weight: 900; }
h2 { margin-bottom: 14px; font-size: var(--fs-xl); font-weight: 900; }
h3 { font-size: var(--fs-l); }

p, ul, ol, figure { margin: 0 0 15px; }
ul { padding-left: 21px; }
strong { font-weight: 700; }

.sprite { display: none; }
.icon { display: inline-block; width: 1em; height: 1em; fill: currentColor; vertical-align: -.125em; flex: none; }
.icon-line .icon { margin-right: 5px; }

.skip-link { position: absolute; left: 10px; top: -60px; z-index: 300; padding: 8px 14px; background: #fff; color: var(--head); }
.skip-link:focus-visible { top: 10px; }

.wrap { width: min(var(--page), 100% - 2 * var(--gutter)); margin: 0 auto; }

/* headings with a line: grey hairline, orange accent (left or centred) */
.h1-line, .h-center, .intro__title {
    position: relative;
    margin-bottom: 40px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}
.h1-line::after, .h-center::after, .intro__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 23%;
    border-bottom: 1px solid var(--accent);
}
.h-center, .intro__title { padding-bottom: 4px; text-align: center; }
.h-center::after, .intro__title::after { left: 26%; width: 48%; }
.h-center { margin: 60px 0 60px; }

hr { clear: both; height: 1px; margin: 40px 0; border: 0; background: var(--line); }
hr.hr-center { position: relative; overflow: visible; }
hr.hr-invisible { background: none; }   /* empty space at the end of the page, as on the old site */
hr.hr-center::before { content: ''; position: absolute; left: 26%; top: 0; width: 48%; height: 1px; background: var(--accent); }

/* ------------------------------------------------------------------ top bar */

.topbar { background: var(--topbar); font-size: var(--fs-s); line-height: 40px; color: rgba(255, 255, 255, .5); }
.topbar__inner { display: flex; justify-content: space-between; width: min(1110px, max(100% - 170px, 980px)); margin: 0 auto; }
.topbar__contact { display: flex; margin: 0; padding: 0; list-style: none; }
.topbar__contact .icon { margin-right: 5px; vertical-align: -1px; }
.topbar__contact a { margin-right: 8px; padding-right: 8px; border-right: 1px solid #888; text-decoration: none; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover, .topbar a:focus-visible { color: #fff; }
.topbar__link { margin-right: -7px; }

/* ------------------------------------------------------------------ header + main navigation */

.site-header { position: sticky; top: 0; z-index: 100; background: #000; }
.site-header__inner { display: flex; justify-content: space-between; align-items: center; width: min(1140px, max(100% - 200px, 950px)); min-height: 118px; margin: 0 auto; }
.logo { display: block; flex: none; }
.logo img { display: block; width: 178px; }

.mainnav__toggle { display: none; }
.mainnav__list { display: flex; margin: 0; padding: 0; list-style: none; }
.mainnav__list > li { position: relative; }
.mainnav__list > li > a {
    display: block;
    margin: 0 14px 0 4px;
    padding: 13px 0;
    font-size: var(--fs-s);
    font-weight: 700;
    line-height: 26px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    color: #fff;
}
.mainnav__list > li:hover > a, .mainnav__list > li > a:focus-visible, .mainnav__list > li.is-active > a { color: var(--accent); }
.mainnav__caret { width: 10px; height: 10px; margin-left: 5px; vertical-align: 0; }

.mainnav__sub {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 10;
    width: 200px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--dropdown);
    border-top: 4px solid var(--accent);
    border-bottom: 4px solid var(--accent);
    box-shadow: 0 0 2px rgba(0, 0, 0, .4);
    visibility: hidden;
    opacity: 0;
    transition: opacity .25s, visibility .25s;
}
.mainnav__list > li:hover > .mainnav__sub, .mainnav__list > li:focus-within > .mainnav__sub { visibility: visible; opacity: 1; }
.mainnav__list > li.is-closed > .mainnav__sub { visibility: hidden; opacity: 0; }   /* closed with Escape (main.js) */
.mainnav__sub a {
    display: block;
    padding: 6px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    font-size: var(--fs-s);
    line-height: 24px;
    letter-spacing: 1px;
    text-decoration: none;
    color: #fff;
    transition: background-color .25s, padding .25s;
}
.mainnav__sub li:last-child a { border-bottom: 0; }
.mainnav__sub a:hover, .mainnav__sub a:focus-visible, .mainnav__sub a[aria-current] { padding-left: 18px; background: var(--accent); color: #fff; }

/* ------------------------------------------------------------------ home slider */

.slider { position: relative; display: grid; background: #000; }
.slider__slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 3s, visibility 3s; }
.slider__slide.is-active { opacity: 1; visibility: visible; }
.slider__slide img { display: block; width: 100%; }
html:not(.js) .slider__slide:not(:first-child) { display: none; }
.slider__btn {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 32px;
    height: 72px;
    margin-top: -36px;
    padding: 0;
    border: 0;
    background: no-repeat center / 24px 70px;
    opacity: .5;
    cursor: pointer;
    transition: opacity .25s;
}
.slider__btn:hover, .slider__btn:focus-visible { opacity: 1; }
.slider__prev { left: 10px; background-image: url('../img/layout/pfeil-prev.png'); }
.slider__next { right: 10px; background-image: url('../img/layout/pfeil-next.png'); }
.slider__dots { position: absolute; left: 0; right: 0; bottom: 3px; z-index: 2; display: flex; justify-content: center; }
.slider__dots button { width: 24px; height: 24px; margin: 0 -2px; padding: 0; border: 7px solid transparent; border-radius: 50%; background: #666 content-box; cursor: pointer; }
.slider__dots button:hover, .slider__dots button[aria-current] { background-color: #ccc; }

/* ------------------------------------------------------------------ page title band + breadcrumb */

.page-title { background: var(--band); }
.page-title__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; width: min(var(--page), 100% - 2 * var(--gutter)); min-height: 71px; margin: 0 auto; }
.page-title__name { margin: 0; font-size: var(--fs-l); line-height: 30px; text-transform: uppercase; color: var(--text); }
.breadcrumb ol { display: flex; flex-wrap: wrap; justify-content: flex-end; margin: 0; padding: 0; list-style: none; font-size: var(--fs-s); line-height: 30px; }
.breadcrumb li + li::before { content: '›'; margin: 0 6px; }
.breadcrumb a { text-decoration: none; }

/* ------------------------------------------------------------------ page body */

.page { padding: 30px 0 30px; }
.layout-home .page { padding-top: 0; }
.layout-full .main { width: min(var(--page), 100% - 2 * var(--gutter)); margin: 0 auto; }
.layout-sidebar .page {
    display: grid;
    grid-template-columns: 251px minmax(0, 1fr);
    grid-template-areas: 'aside main';
    column-gap: 57px;
    width: min(var(--page-side), 100% - 2 * var(--gutter) + 24px);
    margin: 0 auto;
}
.layout-sidebar .main { grid-area: main; }
.layout-sidebar .aside { grid-area: aside; padding-top: 12px; }
.aside > .aside-block:first-child { padding-top: 0; }

.main { display: flex; flex-direction: column; }   /* like the old floated blocks: margins add up instead of collapsing */
.main a { overflow-wrap: anywhere; }   /* long addresses (e.g. in the privacy policy) wrap instead of widening the page */
.main > * { min-width: 0; }
.ce { display: flow-root; margin-bottom: 18px; }
.ce > :is(p, ul) + h2 { margin-top: 42px; }   /* long legal texts: sections clearly apart */
.ce > :is(p, ul) + h3 { margin-top: 27px; }
.main > :first-child, .main > .ce:first-child > :first-child { margin-top: 0; }

/* columns: three (Neukunden, Bestandskunden) or two (SEO) side by side */
.cols { display: grid; gap: 0 var(--col-gap); margin-bottom: 18px; }
.cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* images floated in text */
.img { margin: 0; }
.img--left { float: left; margin: 0 32px 11px 0; }
.img--right { float: right; margin: 0 0 11px 32px; }

/* references: text left, screenshot right */
.ref { display: flex; gap: 17px; align-items: flex-start; }
.ref__text { flex: 1; min-width: 0; }
.ref__text > :last-child { margin-bottom: 33px; }
.ref__img { flex: 0 0 202px; margin: 0 0 18px; }
.ref__img img { display: block; width: 202px; }

/* Aktuelles: one open entry at a time */
.acc { margin-bottom: 18px; }
.acc summary {
    display: flex;
    align-items: center;
    padding: 7px 0;
    border: 1px solid #d3d3d3;
    background: var(--band);
    font-weight: 700;
    line-height: 30px;
    color: rgba(136, 136, 136, .7);
    list-style: none;
    cursor: pointer;
    transition: color .3s;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::before {
    content: '';
    flex: none;
    width: 25px;
    height: 25px;
    margin: 0 15px;
    background: var(--accent);
    clip-path: polygon(30% 40%, 70% 40%, 50% 62%);
}
.acc[open] summary::before { clip-path: polygon(30% 60%, 70% 60%, 50% 38%); }
.acc summary:hover, .acc summary:focus-visible { color: var(--text); }
.acc__body { padding: 20px; line-height: 1.3; color: var(--dark); }
.acc__body > :last-child { margin-bottom: 0; }

/* sitemap */
.sitemap, .sitemap ul { margin: 0 0 15px; padding-left: 0; list-style: none; }
.sitemap ul { margin: 0 0 0 15px; }
.sitemap a { text-decoration: none; }
.sitemap .has-sub > a { font-weight: 700; letter-spacing: 2px; }

/* ------------------------------------------------------------------ home: intro, tiles, tabs */

.intro { margin-bottom: 80px; padding: 80px 100px 66px; background: var(--band); text-align: center; }
.intro__inner { max-width: 1140px; margin: 0 auto; }
.intro__title { margin-bottom: 40px; font: 700 var(--fs-xl)/1.2 'Montserrat', Arial, sans-serif; color: var(--accent); }
.intro p { font: 700 var(--fs-m)/1.8 'Montserrat', Arial, sans-serif; color: var(--text); }
.intro strong { font-weight: 900; }

.layout-home .h-center:first-child { margin-top: 0; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
.tiles + .h-center { margin-top: 81px; }
.tile { position: relative; overflow: hidden; margin: 0; text-align: center; cursor: default; }
.tile img {
    display: block;
    width: 100%;
    opacity: .9;
    transform: translate3d(-20px, 0, 0) scale(1.12);
    transition: opacity .35s, transform .35s;
}
.tile figcaption { position: absolute; inset: 0; padding: 37px; color: #fff; text-transform: uppercase; }
.tile__title {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 34px 40px;
    font-size: var(--fs-xl);
    font-weight: 400;
    line-height: 1.2;
    color: rgba(255, 255, 255, .8);
}
.tile__text {
    width: 50%;
    margin: 0;
    padding-right: 10px;
    border-right: 1px solid #fff;
    font-size: var(--fs-s);
    line-height: 1.5;
    letter-spacing: 1px;
    text-align: right;
    opacity: 0;
    transform: translate3d(-40px, 0, 0);
    transition: opacity .35s, transform .35s;
}
.tile:hover img { opacity: .5; transform: none; }
.tile:hover .tile__text { opacity: 1; transform: none; }

.tabs { margin: 60px -11px 15px; }
.tabs + .tabs { margin-top: 75px; }
.tabs__list { display: flex; margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-width: 0 1px; background: var(--band); }
.tabs__list li { flex: 1 1 0; min-width: 0; }
.tabs__list li + li { border-left: 1px solid var(--border); }
.tabs__list a {
    display: block;
    padding: 0 16px;
    border-top: 1px solid var(--border);
    line-height: 57px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tabs__list a[aria-selected="true"] { border-top-color: var(--accent); background: #fff; }
.tabs__list a:hover, .tabs__list a:focus-visible { border-top-color: var(--accent); color: var(--accent); }
.tabs__panel { display: flow-root; padding: 30px 30px 20px; border: 1px solid var(--border); background: #fff; }
.tabs__panel h3 { margin-bottom: 12px; }
.js .tabs__panel[hidden] { display: none; }

/* ------------------------------------------------------------------ sidebar */

.aside-title { position: relative; margin: 0 0 9px; padding-bottom: 6px; border-bottom: 1px solid var(--accent); font-size: var(--fs-l); line-height: 1.2; }
.aside-block { margin: 0 0 18px; padding: 12px 5px 0 3px; }
.aside-block p { margin-bottom: 15px; }

.btn { display: inline-block; text-decoration: none; transition: background-color .25s, color .25s; }
.btn .icon { width: .7em; height: .7em; margin-left: 6px; vertical-align: 0; }
.btn--more { padding: 4px 12px; background: var(--accent); color: #fff; }
.btn--more::after { content: ''; display: inline-block; width: 5px; height: 5px; margin: 0 0 2px 8px; border-top: 1.5px solid; border-right: 1.5px solid; transform: rotate(45deg); }
.btn--more:hover, .btn--more:focus-visible { background: rgba(236, 115, 44, .8); color: #fff; }

.gallery__grid { display: grid; grid-template-columns: repeat(2, 82px); gap: 5px 39px; margin: 0; padding: 0; list-style: none; }
.gallery__grid a { display: block; }
.gallery__grid img { display: block; width: 82px; transition: opacity .25s; }
.gallery__grid a:hover img, .gallery__grid a:focus-visible img { opacity: .8; }

.aside-box, .subnav { margin-bottom: 20px; padding: 12px 16px; background: var(--band); }
.aside-box p { margin: 0; }
.aside-box .aside-title { padding-bottom: 0; }
.subnav { padding: 16px; }
.subnav ul { margin: 0; padding: 0; list-style: none; }
.subnav li { margin-bottom: 6px; border-bottom: 1px solid #deddd9; }
.subnav a { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; line-height: 30px; text-decoration: none; transition: color .3s, padding .3s; }
.subnav a .icon { width: 9px; height: 9px; }
.subnav a:hover, .subnav a:focus-visible { padding-left: 16px; color: var(--accent); }
.subnav a[aria-current] { padding-left: 16px; color: var(--accent); }

/* ------------------------------------------------------------------ footer */

.site-footer { background: var(--footer); color: #fff; line-height: 1.8; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: #fff; text-decoration: underline; }
.site-footer__inner { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 0 var(--col-gap); width: min(var(--page), 100% - 2 * var(--gutter)); margin: 0 auto; padding: 30px 0 10px; }
.footer-title { margin: 0 0 9px; padding-bottom: 6px; border-bottom: 1px solid var(--accent); font-size: var(--fs-l); color: #fff; }
.footer-col p { margin-bottom: 15px; }
.footer-org { font-weight: 700; }
.footer-img { float: left; margin: 0 17px 10px 0; }
.footer-col--about p:last-child { clear: both; }
.btn--outline { padding: 4px 8px; border: 1px solid #fff; border-radius: 3px; transition: padding .25s; }
.site-footer .btn--outline:hover, .site-footer .btn--outline:focus-visible { padding: 4px 12px; text-decoration: none; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0 20px; width: min(var(--page), 100% - 2 * var(--gutter)); margin: 0 auto; padding: 12px 0 18px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: var(--fs-s); }
.footer-bottom p { margin: 0; }

.to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--accent);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}
.to-top .icon { width: 24px; height: 24px; }
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover, .to-top:focus-visible { background: #aaa; color: #fff; }
html.lightbox-open .to-top { visibility: hidden; }
html:not(.js) .to-top { opacity: 1; visibility: visible; }

/* ------------------------------------------------------------------ lightbox */

.lb {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 60px;
    background: rgba(0, 0, 0, .85);
    opacity: 0;
    transition: opacity .25s;
}
.lb[hidden] { display: none; }
.lb.is-visible { opacity: 1; }
.lb__figure { margin: 0; text-align: center; }
.lb__img { max-width: calc(100vw - 120px); max-height: calc(100vh - 100px); background: #000; padding: 5px; }
.lb__caption { margin-top: 8px; color: #fff; font-size: var(--fs-s); }
.lb__btn { position: absolute; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
.lb__btn svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.lb__btn[hidden] { display: none; }
.lb__btn:hover, .lb__btn:focus-visible { color: var(--accent); }
.lb__prev { left: 8px; top: 50%; margin-top: -22px; }
.lb__next { right: 8px; top: 50%; margin-top: -22px; }
.lb__close { right: 8px; top: 8px; }
html.lightbox-open { overflow: hidden; }

/* ------------------------------------------------------------------ tablet + phone */

@media (max-width: 1024px) {
    .site-header__inner { width: auto; padding: 0 40px; }
    .topbar__inner { width: auto; padding: 0 20px; }
    .topbar__link { margin-right: 0; }

    /* burger + panel; without JavaScript the menu is simply shown as a list below the logo */
    .js .mainnav__toggle {
        display: flex;
        align-self: flex-start;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin-top: 20px;
        padding: 0;
        border: 0;
        background: var(--accent);
        color: #fff;
        cursor: pointer;
    }
    .js .mainnav { align-self: flex-start; }
    .mainnav__toggle .icon { width: 20px; height: 20px; }
    .mainnav__list { flex-direction: column; background: var(--band); }
    .js .mainnav__list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        max-height: calc(100vh - 158px);
        max-height: calc(100dvh - 158px);
        overflow-y: auto;
        box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
    }
    .js .mainnav.is-open .mainnav__list { display: flex; }
    html:not(.js) .site-header { position: relative; }
    html:not(.js) .site-header__inner { flex-wrap: wrap; }
    html:not(.js) .mainnav { flex: 0 0 calc(100% + 80px); margin: 0 -40px; }
    html:not(.js) .logo { margin: 35px 0; }
    .mainnav__list > li > a { margin: 0; padding: 10px 20px; border-bottom: 1px solid #ddd; font-size: var(--fs-m); font-weight: 400; line-height: 1.6; letter-spacing: 0; text-transform: none; white-space: normal; color: var(--head); }
    .mainnav__list > li:hover > a { color: var(--head); }
    .mainnav__list > li.is-active > a, .mainnav__list > li > a:hover, .mainnav__list > li > a:focus-visible { color: var(--accent); }
    .mainnav__caret { display: none; }
    .mainnav__sub, .mainnav__list > li.is-closed > .mainnav__sub { position: static; width: auto; border: 0; box-shadow: none; background: none; visibility: visible; opacity: 1; }
    .mainnav__sub a { padding: 8px 20px 8px 40px; border-bottom: 1px solid #ddd; font-size: var(--fs-m); letter-spacing: 0; color: var(--text); }
    .mainnav__sub li:last-child a { border-bottom: 1px solid #ddd; }
    .mainnav__sub a:hover, .mainnav__sub a:focus-visible, .mainnav__sub a[aria-current] { padding-left: 40px; background: none; color: var(--accent); }

    .intro { padding: 80px 106px 66px; }
    .tile__title { padding: 20px; }
}

@media (max-width: 767.98px) {
    :root { --gutter: 24px; }
    html { scroll-padding-top: 100px; }
    .topbar__inner { padding: 0 10px; }
    .topbar__phone, .topbar__link { display: none; }
    .site-header__inner { align-items: flex-start; min-height: 87px; padding: 15px 30px 5px; }
    .logo { margin-top: 12px; }
    .logo img { width: 153px; }
    .js .mainnav__toggle { margin-top: 0; }
    .js .mainnav__list { max-height: calc(100vh - 127px); max-height: calc(100dvh - 127px); }
    html:not(.js) .mainnav { flex-basis: calc(100% + 60px); margin: 15px -30px -5px; }
    html:not(.js) .logo { margin: 12px 0 5px; }

    .breadcrumb { display: none; }

    .layout-sidebar .page { display: block; width: min(var(--page), 100% - 2 * var(--gutter)); }
    .aside { margin-top: 18px; }
    .aside > .subnav:last-child { margin-bottom: 47px; }
    .aside-block { padding-left: 0; }

    .cols--3, .cols--2 { grid-template-columns: minmax(0, 1fr); row-gap: 18px; }
    .ref { flex-direction: column; gap: 0; }
    .ref__img { flex: none; }
    .ref__img img { width: auto; }

    .intro { margin-bottom: 60px; padding: 60px 24px 48px; }
    .intro__title::after { left: 15%; width: 70%; }
    .h-center { margin: 70px 0; }
    .tiles + .h-center { margin-top: 81px; }
    .tiles { grid-template-columns: minmax(0, 1fr); gap: 31px; }
    .tile img { transform: none; }
    .tile:hover img { opacity: .9; }
    .tile__text { display: none; }
    .tabs { margin-left: 0; margin-right: 0; }
    .tabs__list { flex-direction: column; }
    .tabs__list li + li { border-left: 0; }
    .tabs__panel { padding: 20px; }
    .tabs__panel .img { float: none; margin: 0 0 12px; }

    .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
    .footer-col { margin-bottom: 10px; }
    .footer-img { float: none; display: block; margin-bottom: 10px; }

    .lb { padding: 50px 10px; }
    .lb__img { max-width: calc(100vw - 20px); }
    .lb__prev, .lb__next { top: auto; bottom: 8px; margin-top: 0; }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .page-title__inner { width: calc(100% - 80px); }
    .layout-sidebar .page { width: auto; margin: 0 25px 0 41px; grid-template-columns: 207px minmax(0, 1fr); column-gap: 27px; }
    .ref__img { flex: 0 0 24.5%; }
    .ref__img img { width: 100%; }
    .tiles { gap: 12px; }
    .tile__title { font-size: var(--fs-l); }
    .site-footer__inner { column-gap: 13px; }
    .tabs { margin-left: -8px; margin-right: -8px; }
    .tabs__list li { display: flex; }
    .tabs__list a { flex: 1; display: flex; align-items: center; padding: 10px 8px; line-height: 19px; white-space: normal; text-overflow: clip; }
}

@media (min-width: 1025px) {
    .tile__title { padding: 34px 60px; }
}
@media (min-width: 1025px) and (max-width: 1129px) {
    .tile__title { padding: 34px 40px; }
}
@media (max-width: 900px) {
    .tile__text { display: none; }   /* as on the old site: the hover text only on wide screens */
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
