/* Shared by every theme, legacy and modern alike. */

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

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, figure, blockquote {
    margin: 0;
}

ul, ol {
    padding: 0;
    list-style: none;
}

img,
iframe {
    display: block;
    max-width: 100%;
}

/* Keeps proportions for content images, without overriding a size a theme
   sets on purpose. */
img:not([width]) {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
    color: inherit;
}

html {
    -webkit-text-size-adjust: 100%;
}

/* Defaults shared by every theme. Values under site.settings.colors override
   the colour tokens at render time via the inline :root block in layout.twig.
   Type, container width and spacing belong to the theme, not here. */

:root {
    --color-primary: #1a3d6d;
    --color-secondary: #c9a227;
    --color-text: #333333;
    --color-background: #ffffff;

    --container-width: 1000px;
    --gutter: 15px;
    --section-spacing: 40px;
}

/* Structure only: no colours, no type. Themes decide how this looks. */

body {
    color: var(--color-text);
    background: var(--color-background);
}

.site-header,
.site-footer,
.block {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}


.site-inner,
.block-inner {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
}

.site-header {
    display: flex;
    align-items: center;
    gap: var(--gutter);
}

.site-header .site-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gutter);
    width: 100%;
}

.site-logo-image {
    display: flex;
    align-items: center;
}

/* One axis only: every site's logo has its own proportions, and holding both
   would stretch all but the one the numbers were taken from. */
.site-logo-image img {
    max-height: var(--header-height, 64px);
    width: auto;
}

/* The toggles and their labels belong to the narrow layout; the bar opens its
   submenus on hover. */
.nav-toggle,
.submenu-toggle,
.nav-burger,
.submenu-arrow {
    display: none;
}

.site-nav ul {
    display: flex;
    align-items: center;
}

.site-nav li {
    position: relative;
}

/* Submenus open on hover; touch devices fall back to the parent link.
   Anchored to the right of their parent: the nav sits at the right of the
   header, so a submenu wider than its parent would otherwise grow off the
   screen — which is what the originals do. */
.site-nav li ul {
    position: absolute;
    top: 100%;
    /* Overhanging the parent to the right by the width of the items that
       follow it, so the card sits under its own word rather than off to the
       left of it. The nav ends at the container edge, so this is the room
       there is. */
    right: var(--submenu-overhang, 0px);
    /* Hidden by visibility rather than display, so leaving the parent can be
       given a grace period: the pointer travels diagonally to reach a row, and
       a menu that closes the instant it leaves the word is hard to catch. */
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.35s, opacity 0.15s linear 0.2s;
    display: flex;
    flex-direction: column;
    /* The bar centres its items; a dropdown's rows run the full width of the
       card instead, so each row is one target rather than just its text. */
    align-items: stretch;
    min-width: 220px;
    max-width: 260px;
    z-index: 10;
}

.site-nav li:hover > ul,
.site-nav li:focus-within > ul {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

/* Bridges the gap between the word and the card, so crossing it does not
   count as leaving the menu. */
.site-nav li:has(ul)::after {
    content: "";
    position: absolute;
    top: 100%;
    /* Reaches as far as the card does, so the pointer crossing the gap on its
       way to a row stays inside the menu the whole time. */
    right: var(--submenu-overhang, 0px);
    left: 0;
    height: 12px;
}

/* Jumping to a section from the menu: the header stays in view, so the
   heading would land underneath it without room kept above. */
html {
    scroll-behavior: smooth;
}

.block {
    scroll-margin-top: var(--header-height, 0px);
    padding-top: var(--section-spacing);
    padding-bottom: var(--section-spacing);
}

.site-footer {
    text-align: center;
}

@media (max-width: 767px) {
    /* The header's own row is the one that has to wrap: the logo and the nav
       sit side by side inside it, and stacked they are wider than the screen. */
    .site-header,
    .site-header .site-inner {
        flex-wrap: wrap;
    }

    /* A flex item will not shrink below its content; without this the nav
       keeps the width of its longest label and the page scrolls sideways. */
    .site-nav {
        flex: 1 0 100%;
        min-width: 0;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .site-nav li ul {
        position: static;
        /* Stacked, the dropdown is rows under their parent, folded away until
           the arrow beside it is used — hover means nothing on a touch screen,
           and five open submenus would bury the items below them. */
        visibility: visible;
        opacity: 1;
        transition: none;
        min-width: 0;
        max-width: none;
        overflow: hidden;
        max-height: 0;
    }

    .submenu-toggle:checked ~ ul {
        max-height: 60vh;
    }

    /* The parent link and its arrow share a row. */
    .site-nav li:has(ul) {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .site-nav li:has(ul) > ul {
        grid-column: 1 / -1;
    }

    /* The checkboxes are the controls; the burger and the arrows only label
       them. Out of sight, but kept in the accessibility tree so the keyboard,
       screen readers and agents can reach them. */
    .nav-toggle,
    .submenu-toggle {
        display: block;
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        border: 0;
        overflow: hidden;
        clip-path: inset(50%);
    }

    .nav-toggle:focus-visible ~ .nav-burger,
    .submenu-toggle:focus-visible ~ .submenu-arrow {
        outline: 2px solid currentColor;
        outline-offset: 2px;
    }

    .submenu-arrow {
        display: block;
        width: 44px;
        align-self: center;
        justify-self: end;
        height: 44px;
        position: relative;
        cursor: pointer;
    }

    .submenu-arrow::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 8px;
        height: 8px;
        margin: -6px 0 0 -4px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform 0.2s ease;
    }

    .submenu-toggle:checked ~ .submenu-arrow::before {
        transform: rotate(-135deg);
        margin-top: -2px;
    }

    .site-nav li:has(ul)::after {
        content: none;
    }

    /* The bar becomes a panel the burger opens. Hidden by height rather than
       display so it can slide, and so the links stay out of the tab order
       only when it is shut. */
    .site-nav {
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.25s ease;
    }

    .nav-toggle:checked ~ .site-nav {
        /* Tall enough for any menu these sites carry; the panel scrolls with
           the page rather than clipping. */
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-burger {
        display: block;
        /* No order: the markup already puts it between the logo and the nav,
           and reordering pushed it past the nav's full-width row. */
        width: 44px;
        height: 44px;
        margin-left: auto;
        cursor: pointer;
        position: relative;
        /* Sits above the panel it opens, so the cross stays reachable. */
        z-index: 11;
    }

    /* Three bars from one element: the middle is the span, the others its
       ends. Checked, the outer two cross and the middle goes. */
    .nav-burger span,
    .nav-burger span::before,
    .nav-burger span::after {
        content: "";
        position: absolute;
        left: 0;
        width: 26px;
        height: 3px;
        background: currentColor;
        transition: transform 0.2s ease, background 0.2s ease;
    }

    /* Centred inside a target big enough for a fingertip. */
    .nav-burger span {
        top: 50%;
        left: 50%;
        margin: -1px 0 0 -13px;
    }

    .nav-burger span::before {
        top: -8px;
        left: 0;
        margin: 0;
    }

    .nav-burger span::after {
        top: 8px;
        left: 0;
        margin: 0;
    }

    /* Not opacity: the bars are this element's own pseudo-elements, and they
       would fade with it — the whole cross disappeared. */
    .nav-toggle:checked ~ .nav-burger span {
        background: transparent;
    }

    .nav-toggle:checked ~ .nav-burger span::before {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle:checked ~ .nav-burger span::after {
        transform: translateY(-8px) rotate(-45deg);
    }

    .site-nav li ul a {
        white-space: normal;
    }
}

/* Sidebar layout. Themes decide the widths; catalog-style sites use it on
   every page, landing-style ones only on inner pages. */

.site-main.has-sidebar {
    display: grid;
    gap: 30px;
}

@media (min-width: 768px) {
    .site-main.has-sidebar {
        grid-template-columns: var(--sidebar-width, 300px) 1fr;
        align-items: start;
    }
}

/* Below the grid breakpoint the original hides the sidebar outright. */
@media (max-width: 767px) {
    .site-sidebar {
        display: none;
    }
}

/* Block structure shared by every theme. Appearance lives in theme.css. */

.block-hero {
    display: grid;
    gap: 30px;
}

.hero-image {
    width: 100%;
}


.services-list,
.gallery-grid {
    display: grid;
    gap: 30px;
}

/* An embed has no height of its own; aspect-ratio gives it one that follows
   the width, which is what the original's embed-responsive-16by9 did with a
   padding trick. min(320px, 100%) keeps a narrow screen from being pushed
   sideways by a column that insists on 320px. */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 30px;
}

.video-frame {
    aspect-ratio: 16 / 9;
}

.video-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.services-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.services-item img {
    width: 100%;
    margin-bottom: 15px;
}

.advantages-list {
    counter-reset: advantage;
}

.advantages-list > li {
    counter-increment: advantage;
    position: relative;
    padding-left: 40px;
    margin-bottom: 15px;
}

.advantages-list > li::before {
    content: counter(advantage);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

/* The three places the text of a rich-text field lands. The reset takes the
   marks off lists and the margins off headings and quotes, and the themes
   style only what their own markup uses, so each gets what a browser draws. */
.text-body ul,
.hero-text ul,
.advantages-intro ul {
    padding-left: 40px;
    list-style: disc;
    margin-bottom: 10px;
}

.text-body ol,
.hero-text ol,
.advantages-intro ol {
    padding-left: 40px;
    list-style: decimal;
    margin-bottom: 10px;
}

/* The themes size only h1 to h3, so an h4 came out as a line of copy; bold is
   what keeps it a heading, whatever weight the theme gives the larger ones. */
.text-body h4,
.hero-text h4,
.advantages-intro h4 {
    margin: 1.33em 0;
    font-weight: 700;
}

.text-body blockquote,
.hero-text blockquote,
.advantages-intro blockquote {
    padding-left: 20px;
    border-left: 3px solid var(--accent);
}

.text-body p {
    margin-bottom: 10px;
}

/* Editors leave runs of &nbsp; between words, which refuse to break: on a
   narrow screen one such run carried a line 140px past the edge. Only
   overflow-wrap, which breaks a word when it has to — word-break would take
   every opportunity and leave the column ragged. */
.text-body {
    overflow-wrap: break-word;
}

/* Their grid went with their class names, so the pictures inside a text block
   need one of ours: menthol keeps 37 photographs in a section of copy, and at
   full width they made the page five times the height of the original.
   The cap on height is what does the work — the wrappers they sit in are a
   chain of empty divs and spans that stretch to whatever the image asks for. */
.text-body img {
    max-width: 100%;
    max-height: 420px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.text-body ul:has(img) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    padding-left: 0;
    list-style: none;
}

.text-body ul:has(img) li {
    margin: 0;
}

.text-body ul:has(img) img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.block-contacts .block-inner {
    display: grid;
    gap: 30px;
}

@media (min-width: 768px) {
    .block-contacts .block-inner {
        grid-template-columns: repeat(auto-fit, minmax(280px, 390px));
    }
}

.contacts-map {
    width: 100%;
    max-width: 300px;
    height: 250px;
    border: 0;
}

.contacts-links li {
    margin-bottom: 10px;
}

.contacts-address,
.contacts-email,
.contacts-hours,
.contacts-phones li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contacts-icon {
    flex: 0 0 auto;
    line-height: 0;
}

.contacts-icon svg {
    display: block;
}

/* The messenger marks come from the site itself, at the size it used them. */
.contacts-messengers li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.messenger-icon {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
}

.contacts-schedule li {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.schedule-icon {
    flex: 0 0 auto;
    line-height: 0;
}

.schedule-icon svg {
    display: block;
}

.schedule-body {
    display: grid;
    gap: 4px;
}

.contacts-phones li,
.contacts-address,
.contacts-hours {
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .block-hero {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.block-banner {
    background-size: cover;
    background-position: 50% 100%;
    background-repeat: no-repeat;
}

.block-banner .block-inner {
    display: grid;
    gap: 20px;
    align-items: start;
}

/* The theme sets the logo's own size; keep it from being stretched or
   shrunk as a flex item. */
.banner-logo {
    flex: 0 0 auto;
}

@media (min-width: 768px) {
    /* Logo column and caption column, as in the original 4 + 8 split. */
    .block-banner .block-inner {
        grid-template-columns: 455px 1fr;
    }
}

/* The banner's columns run the full width of the window, so its inner
   wrapper is not capped like the other blocks. */
.block-banner .block-inner {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

/* The photo slider: a frame that clips and a track inside it that moves, one
   photograph wide per slide. Clipping the track itself would carry the slides
   along with it. How far each dot moves the track is written by the slider
   for its own count; the themes give it a size and the dots a look. */
.slider {
    position: relative;
    overflow: hidden;
}

/* The radios are the controls; the dots only label them. Out of sight, but
   kept in the accessibility tree so the keyboard, screen readers and agents
   can reach them. */
.slider-pick {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip-path: inset(50%);
}

.slider-track {
    display: flex;
    width: calc(100% * var(--slides, 1));
    transition: transform 0.4s ease;
}

.slider-slide {
    flex: 0 0 calc(100% / var(--slides, 1));
    width: calc(100% / var(--slides, 1));
    object-fit: cover;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.slider-dot {
    cursor: pointer;
}

/* catalog-legacy — visual match for akva-style.superdovidka.ua.
   Metrics in themes/catalog-legacy.md. Written from scratch: no vendor
   stylesheet or class name is reused. Shares nothing with landing-legacy. */

:root {
    --container-width: 1000px;
    --sidebar-width: 340px;
    --section-spacing: 20px;

    --accent: var(--color-primary, #3498db);
    --accent-pale: #91b9d4;
    /* Rules and marks on the footer's own colour, where the accent is too
       strong and white too loud. */
    --accent-border: #8cb0c8;
    --heading-muted: #7d7d7d;
    --heading-dark: #333333;
    /* The name in the header: its own colour, darker than the accent. */
    --title-color: var(--color-header_text, #2e75b6);
    --canvas: #ffffff;
    /* The page sits on a vertical band built from the accent: dark at both
       edges, the accent itself towards the middle. The site's own blue is
       what the panel already holds — the background setting is the grey the
       crawl read from under the original's photograph, which is not it. */
    --page-bg: var(--color-primary, #3498db);
    --page-bg-edge: color-mix(in srgb, var(--page-bg) 42%, #000000);
    --page-bg-10: color-mix(in srgb, var(--page-bg) 55%, #000000);
    --page-bg-20: color-mix(in srgb, var(--page-bg) 70%, #000000);
    --page-bg-30: color-mix(in srgb, var(--page-bg) 88%, #000000);
    --page-bg-mid: color-mix(in srgb, var(--page-bg) 88%, #ffffff);
    --page-bg-glow: color-mix(in srgb, var(--page-bg) 70%, #ffffff);
    --border-light: #ebebeb;
    --footer-bg: var(--color-footer, #407395);
}

body {
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 20.8px;
    color: #000000;
    background:
        radial-gradient(ellipse 90% 45% at 50% 45%, var(--page-bg-glow), transparent 70%),
        linear-gradient(180deg,
            var(--page-bg-edge) 0%,
            var(--page-bg-10) 10%,
            var(--page-bg-20) 20%,
            var(--page-bg-30) 32%,
            var(--page-bg-mid) 47%,
            var(--page-bg-30) 62%,
            var(--page-bg-20) 76%,
            var(--page-bg-10) 90%,
            var(--page-bg-edge) 100%);
    /* Pages vary in height; without this the band restarts on the long ones. */
    background-attachment: fixed;
}

/* The content sits on a white canvas over the page background, which stays
   visible down both sides. Painting the outer elements instead would cover
   the whole viewport and hide it — but naming every wrapper paints the
   footer's as well, and white text then lands on white. The blocks that
   carry the canvas name themselves. */
.site-header,
.site-breadcrumbs,
.site-main,
.block-inner {
    background: var(--canvas);
}

/* The columns start 20px below the bar and clear the footer by 30px, as the
   original's content wrapper does. The blocks inside carry their own padding,
   so the content column zeroes its first one rather than adding to this. */
.site-main {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding: 20px 0 30px;
    background: var(--canvas);
}

.site-main.has-sidebar .site-content > .block:first-child {
    padding-top: 0;
}

h1, h2, h3, h4 {
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

/* Measured from the element that carries the type, not the heading wrapping
   it: the original sets this line at 18.67px over 29.87px and fits it on one
   line. Read off the wrapper it came to 40px, which broke it over three. */
h1 {
    font-size: 18.67px;
    line-height: 29.87px;
    font-weight: 600;
    color: var(--heading-dark);
}

h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--heading-dark);
    margin-bottom: 15px;
}

h3 {
    font-size: 12px;
    line-height: 19.2px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--heading-muted);
    border-bottom: 5px solid var(--accent);
    padding-bottom: 6px;
    margin-bottom: 15px;
}

p {
    margin-bottom: 10px;
}

/* Three rows on one white block, as the original stacks them: the name beside
   the phone, the bar between two rules, then the trail. The white belongs to
   the header itself — painting only the rows leaves the page background
   showing through the gaps between them. Measured 13.09.2026: 140px tall,
   the bar starting at y=100. */
.site-header {
    display: block;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    background: var(--canvas);
}

.site-titlebar {
    height: 100px;
    padding: 20px 20px 0;
}

.site-titlebar .site-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--gutter);
    max-width: none;
}

.site-logo {
    font-size: 24px;
    font-weight: 600;
    font-style: italic;
    color: var(--title-color);
    line-height: 29px;
}

.site-phone {
    margin: 0;
    font-size: 21px;
    font-style: italic;
    line-height: 26px;
    white-space: nowrap;
}

.site-phone a {
    color: var(--heading-dark);
}

/* 960px inside the 1000px block, as #gkMainMenu sits: the rules stop short of
   the edge rather than running the full width. */
.site-navbar {
    margin: 0 20px;
    border-top: 1px solid #cccccc;
    border-bottom: 2px solid var(--accent);
}

.site-navbar .site-inner {
    display: flex;
    align-items: center;
    max-width: none;
}

/* Block, so the top margin adds to the bar's height as it does in the
   original: 24px of line over 10px of space, closed by a 3px rule. */
.site-nav a {
    display: block;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    line-height: 24px;
    margin: 10px 20px 0;
    border-bottom: 3px solid transparent;
}

/* The bar marks the page it is on, and answers the pointer the same way. The
   link already reserves the 3px, so neither shifts the row. */
.site-nav > ul > li.is-active > a,
.site-nav > ul > li > a:hover {
    border-bottom-color: var(--accent);
}

/* Continues the white block under the header, as #gkTop1 does at y=140. */
.site-breadcrumbs {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    background: var(--canvas);
    font-size: 13px;
    line-height: 36px;
}

.site-breadcrumbs .site-inner {
    max-width: none;
}

.site-breadcrumbs a {
    color: var(--accent);
}

.breadcrumb-sep {
    margin: 0 6px;
    color: var(--heading-muted);
}

.breadcrumb-current {
    color: var(--heading-muted);
}

.site-nav a:hover {
    color: var(--accent-pale);
}

.site-nav li ul {
    background: var(--canvas);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* The sidebar keeps its own gutter, as the original's 340px column does. */
.site-sidebar {
    padding: 0 20px;
}

.site-sidebar li {
    margin: 5px 0;
}

/* Each service is a card: a bordered row with the accent marking its left
   edge, rather than a line of text with a rule under it. */
.sidebar-menu a {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    line-height: 35px;
    padding-left: 14px;
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--accent);
}

.sidebar-menu a:hover {
    color: var(--accent-pale);
    border-color: var(--accent-pale);
    border-left-color: var(--accent-pale);
}

/* Contacts are prose, not menu rows: the sidebar menu rules above must not
   reach them. */
.sidebar-contacts {
    font-size: 13px;
    line-height: 20px;
}

.sidebar-contacts p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 12px;
}

.sidebar-contacts a {
    color: var(--accent);
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    text-transform: none;
    border: 0;
}

.sidebar-contacts .contacts-icon svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.hero-phone {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.hero-cta {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 24px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
}

.hero-cta:hover {
    background: var(--accent-pale);
}

/* The shared layout gives a hero two columns for a picture beside its text.
   A catalogue's opening section has no picture, so the text was left in half
   the width and the heading broke over six lines where the original sets it
   on one. */
.block-hero:not(:has(.hero-image)) {
    grid-template-columns: 1fr;
}

.block-hero h1 {
    text-align: center;
}

/* The photograph is the block: the section carries it as a background and
   holds nothing else, so without a height of its own it collapsed to its
   padding — a 504x298 picture in a 40px strip. It keeps its own size and
   sits centred, as the original does, rather than filling the column. */
.block-banner {
    height: 298px;
    background-size: 504px 298px;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

.services-item h3 {
    border-bottom: 0;
    font-size: 14px;
}

.services-item h3 a:hover {
    color: var(--accent-pale);
}

.advantages-list > li::before {
    background: var(--accent);
    color: #ffffff;
    font-size: 11px;
}

.block-contacts a {
    color: var(--accent);
}

/* Four columns above the credit strip, 240px apiece inside the 1000px block:
   4 x 240 plus the row's own 40px of padding fills it exactly. */
.footer-columns {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding: 12px 20px 0;
    background: var(--footer-bg);
    color: #ffffff;
}

.footer-columns .site-inner {
    display: flex;
    align-items: flex-start;
    max-width: none;
}

.footer-column {
    flex: 0 0 240px;
    padding-right: 20px;
}

.footer-title {
    font-size: 12px;
    line-height: 19.2px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fffefe;
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 15px;
}

/* Each item is marked with a dot at its left, as the original does with an
   image from the vendor's template — drawn here rather than copied. */
.footer-menu li {
    position: relative;
    padding-left: 13px;
    line-height: 25px;
}

.footer-menu li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--accent-border);
}

.footer-menu a {
    font-size: 12px;
    line-height: 25px;
    color: #ffffff;
    border-bottom: 2px solid var(--accent-border);
}

.footer-menu a:hover {
    border-bottom-color: #ffffff;
}

.footer-contacts a {
    color: #ffffff;
}

.footer-contacts p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 20px;
}

.footer-contacts .contacts-icon svg {
    width: 16px;
    height: 16px;
    color: #ffffff;
}

.footer-map {
    width: 100%;
    height: 150px;
    border: 0;
}

.footer-about {
    margin: 0;
    font-size: 12px;
    line-height: 18px;
    color: var(--accent-pale);
}

.site-footer {
    background: var(--footer-bg);
    color: #ffffff;
    min-height: 40px;
    display: flex;
    align-items: center;
}

/* The slideshow the original opens with. Its movement is shared with the
   other legacy theme; here is only its look. The bar keeps the original's
   640x290. */
.slider-slide {
    aspect-ratio: 640 / 290;
}

.slider-dots {
    margin-top: 10px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-light);
    border: 1px solid var(--accent-pale);
}

.slider-dot:hover {
    background: var(--accent-pale);
}

.block-raw table {
    width: 100%;
    border-collapse: collapse;
}

.block-raw td,
.block-raw th {
    border: 1px solid var(--border-light);
    padding: 6px;
}

@media (max-width: 767px) {
    h1 {
        font-size: 24px;
        line-height: 1.3;
    }

    .site-nav ul {
        flex-direction: column;
    }

    /* The title row is two lines on a narrow screen: the name over the phone,
       rather than side by side with nowhere to go. */
    .site-titlebar {
        height: auto;
        padding: 15px 15px 10px;
    }

    .site-titlebar .site-inner {
        display: block;
    }

    .site-logo {
        display: block;
        font-size: 20px;
        line-height: 24px;
    }

    .site-phone {
        font-size: 18px;
        line-height: 24px;
        white-space: normal;
    }

    .site-navbar {
        margin: 0;
        padding: 0 15px;
    }

    /* The burger rides beside the name and the phone rather than taking a row
       of its own. It belongs to the bar in the markup, so it is placed against
       the header; the bar keeps its rules and collapses to them. */
    .site-header {
        position: relative;
    }

    .site-titlebar {
        padding-right: 60px;
    }

    .site-navbar .site-inner {
        position: static;
        flex-wrap: nowrap;
        height: 0;
    }

    .nav-burger {
        position: absolute;
        top: 15px;
        right: 8px;
        margin: 0;
        z-index: 11;
    }

    .site-navbar .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 10;
        background: var(--canvas);
    }

    .site-breadcrumbs {
        padding: 0 15px;
    }

    /* Four columns in a row are 960px wide: stacked, they fit the screen. */
    .footer-columns {
        padding: 15px 15px 5px;
    }

    .footer-columns .site-inner {
        display: block;
    }

    .footer-column {
        padding-right: 0;
        margin-bottom: 20px;
    }

    .footer-map {
        height: 180px;
    }
}

.color { color: var(--color); }

/* Fonts of the page editor, self-hosted under SIL Open Font License 1.1: one
   file per subset, so a Ukrainian page pulls the cyrillic cut and leaves the
   latin one alone. The families carry a "Text " prefix on purpose: the legacy
   themes name Open Sans for all their text but ship no file, and a face under
   that name would restyle every old site on its next build. */

@font-face {
    font-family: "Text Open Sans";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url("fonts/opensans-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Text Open Sans";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url("fonts/opensans-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Text Roboto Flex";
    font-style: normal;
    font-weight: 100 1000;
    font-display: swap;
    src: url("fonts/robotoflex-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Text Roboto Flex";
    font-style: normal;
    font-weight: 100 1000;
    font-display: swap;
    src: url("fonts/robotoflex-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Text Montserrat";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("fonts/montserrat-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Text Montserrat";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("fonts/montserrat-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Text Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("fonts/inter-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Text Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Text Manrope";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("fonts/manrope-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Text Manrope";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("fonts/manrope-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Text Rubik";
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("fonts/rubik-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Text Rubik";
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("fonts/rubik-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Text Lora";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/lora-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Text Lora";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/lora-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Text PT Serif";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/pt-serif-400-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Text PT Serif";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/pt-serif-400-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Text PT Serif";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/pt-serif-700-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Text PT Serif";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/pt-serif-700-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Text Playfair Display";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("fonts/playfair-display-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Text Playfair Display";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("fonts/playfair-display-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Text Oswald";
    font-style: normal;
    font-weight: 200 700;
    font-display: swap;
    src: url("fonts/oswald-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Text Oswald";
    font-style: normal;
    font-weight: 200 700;
    font-display: swap;
    src: url("fonts/oswald-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Text Comfortaa";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("fonts/comfortaa-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Text Comfortaa";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("fonts/comfortaa-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Text Lobster";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/lobster-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Text Lobster";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/lobster-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Text Caveat";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/caveat-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Text Caveat";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/caveat-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

[data-font="open-sans"] { font-family: "Text Open Sans", sans-serif; }
[data-font="roboto-flex"] { font-family: "Text Roboto Flex", sans-serif; }
[data-font="montserrat"] { font-family: "Text Montserrat", sans-serif; }
[data-font="inter"] { font-family: "Text Inter", sans-serif; }
[data-font="manrope"] { font-family: "Text Manrope", sans-serif; }
[data-font="rubik"] { font-family: "Text Rubik", sans-serif; }
[data-font="lora"] { font-family: "Text Lora", serif; }
[data-font="pt-serif"] { font-family: "Text PT Serif", serif; }
[data-font="playfair-display"] { font-family: "Text Playfair Display", serif; }
[data-font="oswald"] { font-family: "Text Oswald", sans-serif; }
[data-font="comfortaa"] { font-family: "Text Comfortaa", sans-serif; }
[data-font="lobster"] { font-family: "Text Lobster", cursive; }
[data-font="caveat"] { font-family: "Text Caveat", cursive; }

