/*
 * Guest-facing site (layout/public): home page, registration, service pages.
 * Own stylesheet, independent of style.css (built outside the repo), no Bootstrap.
 * Root font 20 px; "A+" (html.ps-large) makes it 24 px. Sizes are in rem so they follow it.
 */

:root {
    --ps-blue: #0B3B7A;
    --ps-blue-dark: #072a58;
    --ps-green: #00703C;
    --ps-green-dark: #005a30;
    --ps-green-shadow: #003d21;
    --ps-yellow: #FFDF0F;
    --ps-soft: #F2F5F9;
    --ps-soft-blue: #E8EEF7;
    --ps-border: #DDE2EA;
    --ps-line: #EEF1F5;
    --ps-text: #1B1B1B;
    --ps-text-2: #33384A;
    --ps-muted: #4A5064;
    --ps-field-border: #6B7280;
    --ps-footer: #F5F5F5;
    --ps-footer-text: #1B1B1B;
    --ps-ok-bg: #E3F3EA;
    --ps-ok-text: #005A30;
    --ps-err: #B3261E;
    --ps-err-bg: #FDECEA;
    --ps-wrap: 1360px;
    --ps-gutter: 24px;
    --ps-radius: 10px;
    /* height of the sticky header (0 when it is not sticky); public-site.js sets the real value */
    --ps-header-offset: 0px;
}

html {
    font-size: 20px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    /* anchors (#ako, #sluzby, #kontakt, …), the skip link and focused fields land below the sticky header */
    scroll-padding-top: calc(var(--ps-header-offset) + 12px);
}

html.ps-large {
    font-size: 24px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

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

/*
 * No hyphenation anywhere ("fak-túry" in a tile or a button is hard to read). A word too long for the line
 * (320 px, 200 % text, WCAG 1.4.10) still breaks, but only when it cannot fit whole.
 */
.ps-body {
    -webkit-hyphens: manual;
    hyphens: manual;
}

.ps-body h1,
.ps-body h2,
.ps-body h3,
.ps-body li {
    overflow-wrap: break-word;
}

body.ps-body {
    margin: 0;
    background: #ffffff;
    color: var(--ps-text);
    font-family: 'Source Sans 3', 'Source Sans Pro', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

.ps-body img {
    max-width: 100%;
    height: auto;
}

.ps-body a {
    color: var(--ps-blue);
}

.ps-body a:hover {
    color: var(--ps-blue-dark);
}

.ps-body a:focus-visible,
.ps-body button:focus-visible,
.ps-body input:focus-visible,
.ps-body select:focus-visible,
.ps-body textarea:focus-visible,
.ps-body summary:focus-visible {
    outline: 4px solid var(--ps-yellow);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--ps-text);
}

.ps-wrap {
    max-width: var(--ps-wrap);
    margin: 0 auto;
    padding: 0 var(--ps-gutter);
}

.ps-wrap--narrow {
    max-width: 900px;
}

.ps-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.ps-skip {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 100;
    padding: 12px 20px;
    background: var(--ps-yellow);
    color: var(--ps-text) !important;
    font-weight: 700;
    text-decoration: none;
}

.ps-skip:focus {
    top: 12px;
}

.ps-main:focus {
    outline: none;
}

/* ---------- Top bar ---------- */

.ps-topbar {
    position: relative;
    border-top: 3px solid transparent;
    background: var(--ps-blue);
    color: #ffffff;
}

/* The Slovak tricolour strip of the ID-SK header, as in the logged-in app (style.css .header_top:before) */
.ps-topbar::before {
    position: absolute;
    top: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    content: "";
    background-image: linear-gradient(90deg, #fff 0, #fff 33.3%, #003183 0, #003183 66.6%, #d0190f 0, #d0190f);
    background-size: 150px 100%;
}

.ps-topbar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.ps-topbar__claim {
    font-size: 0.85rem;
    font-weight: 600;
}

/* "Portál pre povinné zverejňovanie ▾": the ID-SK disclosure of the logged-in header (top-menu.css), 44 px high */
.ps-body .ps-topbar__gov {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-left: -6px;
    padding: 0 6px;
    border: 0;
    background: transparent;
    color: #ffffff;
    font: inherit;
    font-weight: 400;
    cursor: pointer;
}

.ps-topbar__gov .txt_bold {
    font-weight: 700;
}

.ps-body .ps-topbar__gov:hover {
    text-decoration: underline;
}

.ps-topbar__arrow {
    width: 0;
    height: 0;
    border-top: 7px solid currentColor;
    border-right: 6px solid transparent;
    border-left: 6px solid transparent;
    transition: transform 0.15s;
}

.ps-topbar__gov[aria-expanded="true"] .ps-topbar__arrow {
    transform: rotate(180deg);
}

/* the yellow ID-SK focus box with black text on the blue bar */
.ps-body .ps-topbar__gov:focus-visible {
    outline: 3px solid transparent;
    background: var(--ps-yellow);
    box-shadow: 0 -2px var(--ps-yellow), 0 4px var(--ps-text);
    color: var(--ps-text);
}

.ps-topbar__info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 8px 32px;
    padding-top: 12px;
    padding-bottom: 16px;
    /* the line over the text only, not over the gutters of .ps-wrap */
    background: linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35)) center top / calc(100% - 2 * var(--ps-gutter)) 1px no-repeat;
    font-size: 0.85rem;
}

.ps-topbar__info[hidden] {
    display: none;
}

.ps-topbar__info p {
    margin: 0;
}

.ps-topbar__info .ps-topbar__info-h {
    margin-bottom: 4px;
    font-weight: 700;
}

/* the language links (partial/locales): 44 px targets, the current one underlined */
.ps-topbar__locales {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ps-body .ps-topbar__locales .locales_href {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 6px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.ps-body .ps-topbar__locales .locales_href:hover,
.ps-body .ps-topbar__locales .locales_href.current {
    text-decoration: underline;
}

.ps-body .ps-topbar__locales .locales_href.current {
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
}

.ps-topbar__tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
}

.ps-body .ps-topbar__phone {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.ps-body .ps-topbar__phone:hover {
    color: #ffffff;
    text-decoration: underline;
}

.ps-fontswitch {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ps-fontswitch__label {
    font-size: 0.8rem;
}

.ps-fontswitch__btn {
    min-width: 44px;
    min-height: 44px;
    padding: 0 10px;
    border: 2px solid #ffffff;
    border-radius: 6px;
    background: transparent;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.ps-fontswitch__btn[aria-pressed="true"] {
    background: #ffffff;
    color: var(--ps-blue);
}

/* ---------- Header ---------- */

/*
 * The header (logo, menu, Prihlásiť sa, Registrácia) stays at the top while the page scrolls; the blue top bar
 * scrolls away. Without JS: sticky from 721 px wide and 600 px high. With JS (public-site.js) it never covers more
 * than a quarter of the window: on a phone only the row of the buttons stays (html.ps-header-sticky with a negative
 * --ps-header-top), and when even that is too much (A+, 200 % text) it is not sticky (html.ps-header-static).
 * --ps-header-offset is the height it covers.
 */
.ps-header {
    position: relative;
    z-index: 50;
    background: #ffffff;
    border-bottom: 1px solid var(--ps-border);
}

@media (min-width: 721px) and (min-height: 600px) {
    :root {
        --ps-header-offset: 82px;
    }

    .ps-header {
        position: sticky;
        top: 0;
        box-shadow: 0 2px 8px rgba(11, 59, 122, 0.08);
    }
}

/* set by public-site.js; on a phone --ps-header-top is negative: logo and menu scroll away, the buttons stay */
html.ps-header-sticky .ps-header {
    position: sticky;
    top: var(--ps-header-top, 0px);
    box-shadow: 0 2px 8px rgba(11, 59, 122, 0.08);
}

html.ps-header-static {
    --ps-header-offset: 0px;
}

html.ps-header-static .ps-header {
    position: relative;
    box-shadow: none;
}

.ps-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.ps-logo {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
}

.ps-logo img {
    display: block;
    width: auto;
    height: 40px;
}

.ps-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 22px;
    font-size: 0.95rem;
    font-weight: 600;
}

.ps-body .ps-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--ps-text);
    text-decoration: none;
}

.ps-body .ps-nav a:hover,
.ps-body .ps-nav a.is-current {
    color: var(--ps-blue);
    text-decoration: underline;
    text-underline-offset: 6px;
}

.ps-header__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* The page the button leads to is the one open (registration): aria-current="page", and not by colour only:
   a thick underline and no pointer */
.ps-body .ps-header__actions .ps-btn[aria-current="page"] {
    cursor: default;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
}

.ps-body .ps-header__actions .ps-btn--green[aria-current="page"]:hover {
    background: var(--ps-green);
}

/* ---------- Buttons ---------- */

.ps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px;
    border: 2px solid transparent;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.ps-body a.ps-btn {
    text-decoration: none;
}

.ps-btn--lg {
    min-height: 60px;
    padding: 0 30px;
    font-size: 1.1rem;
}

.ps-btn--block {
    width: 100%;
}

.ps-body .ps-btn--green {
    background: var(--ps-green);
    color: #ffffff;
    box-shadow: 0 3px 0 var(--ps-green-shadow);
}

.ps-body .ps-btn--green:hover {
    background: var(--ps-green-dark);
    color: #ffffff;
}

.ps-body .ps-btn--green:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--ps-green-shadow);
}

.ps-body .ps-btn--outline {
    border-color: var(--ps-blue);
    background: #ffffff;
    color: var(--ps-blue);
}

.ps-body .ps-btn--white {
    border-color: var(--ps-blue);
    background: #ffffff;
    color: var(--ps-blue);
}

.ps-body .ps-btn--outline:hover,
.ps-body .ps-btn--white:hover {
    background: var(--ps-soft-blue);
    color: var(--ps-blue-dark);
}

.ps-btn[disabled],
.ps-btn[aria-busy="true"] {
    opacity: 0.7;
    cursor: progress;
}

.ps-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.ps-btn-row--top {
    margin-top: 28px;
}

/* ---------- Sections and type ---------- */

.ps-section {
    padding: 80px 0;
}

.ps-section--tight {
    padding: 64px 0;
}

.ps-section--soft {
    background: var(--ps-soft);
}

.ps-section--blue {
    background: var(--ps-blue);
    color: #ffffff;
}

.ps-h2 {
    margin: 0 0 16px;
    color: var(--ps-blue);
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.2;
}

.ps-h2--small {
    font-size: 1.2rem;
    margin-bottom: 18px;
}

.ps-section--blue .ps-h2 {
    color: #ffffff;
    margin-bottom: 40px;
}

.ps-h3 {
    margin: 0 0 8px;
    color: var(--ps-blue);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
}

.ps-lead {
    max-width: 720px;
    margin: 0 0 36px;
    color: var(--ps-text-2);
}

.ps-text {
    margin: 0 0 16px;
    color: var(--ps-text-2);
}

.ps-muted {
    margin: 0;
    color: var(--ps-muted);
}

.ps-kicker {
    margin: 0 0 12px;
    color: var(--ps-green);
    font-size: 0.95rem;
    font-weight: 700;
}

/* ---------- Hero ---------- */

.ps-hero {
    background: var(--ps-soft);
}

.ps-hero__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 48px;
    padding-top: 72px;
    padding-bottom: 72px;
}

.ps-hero__text {
    flex: 1 1 460px;
    min-width: 0;
}

.ps-hero__title {
    margin: 0 0 20px;
    color: var(--ps-blue);
    font-size: 2.7rem;
    font-weight: 800;
    line-height: 1.12;
}

.ps-hero__lead {
    max-width: 560px;
    margin: 0 0 28px;
    color: var(--ps-text-2);
    font-size: 1.15rem;
}

.ps-hero__note {
    margin: 22px 0 0;
    color: var(--ps-muted);
    font-size: 0.9rem;
}

.ps-hero__preview {
    flex: 1 1 420px;
    min-width: 0;
}

.ps-preview {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--ps-border);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(11, 59, 122, 0.14);
}

.ps-preview__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid #E6EAF0;
    color: var(--ps-blue);
    font-size: 1.05rem;
}

.ps-preview__badge {
    color: var(--ps-muted);
    font-size: 0.8rem;
}

.ps-preview__body {
    padding: 8px 22px 18px;
}

.ps-preview__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--ps-line);
}

.ps-preview__row:last-of-type {
    border-bottom: 0;
}

.ps-preview__name {
    font-weight: 700;
}

.ps-preview__meta {
    color: var(--ps-muted);
    font-size: 0.85rem;
}

/* "Potvrdenie o zverejnení (PDF)" in the picture of the product: a plain line of text, nothing to click */
.ps-preview__foot {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 0;
    color: var(--ps-text-2);
    font-size: 0.9rem;
    font-weight: 600;
}

/* a small sheet of paper, drawn with borders */
.ps-preview__doc {
    position: relative;
    flex: none;
    width: 18px;
    height: 22px;
    border: 2px solid var(--ps-muted);
    border-radius: 2px;
}

.ps-preview__doc::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 3px;
    right: 3px;
    height: 6px;
    border-top: 2px solid var(--ps-muted);
    border-bottom: 2px solid var(--ps-muted);
}

.ps-pill {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.ps-pill--ok {
    background: var(--ps-ok-bg);
    color: var(--ps-ok-text);
}

/* ---------- Trust strip ---------- */

.ps-trust {
    border-bottom: 1px solid var(--ps-border);
}

.ps-trust__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 32px;
    color: var(--ps-text-2);
    /* a list (number + label read together), without the look of one */
    list-style: none;
}

.ps-trust__item {
    flex: 1 1 180px;
}

.ps-trust__num {
    color: var(--ps-blue);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
}

/* ---------- Cards (Pre koho) ---------- */

.ps-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    /* a list of the 5 kinds of organizations, without the look of one */
    margin: 0;
    padding: 0;
    list-style: none;
}

.ps-card {
    flex: 1 1 210px;
    padding: 26px;
    border-radius: var(--ps-radius);
}

.ps-card p {
    margin: 0;
    color: var(--ps-text-2);
}

.ps-card--soft {
    background: var(--ps-soft);
}

/* ---------- Steps (Ako to funguje) ---------- */

.ps-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ps-step {
    flex: 1 1 280px;
    padding: 28px;
    border-radius: var(--ps-radius);
    background: rgba(255, 255, 255, 0.08);
}

.ps-step .ps-h3 {
    color: #ffffff;
    font-size: 1.25rem;
}

.ps-step p {
    margin: 0;
    color: #E3EAF5;
}

.ps-step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--ps-yellow);
    color: var(--ps-blue);
    font-size: 1.5rem;
    font-weight: 800;
}

/* ---------- Split (Prečo, Kontakt) ---------- */

.ps-split {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.ps-split__main {
    flex: 1 1 460px;
    min-width: 0;
}

.ps-split__side {
    flex: 1 1 380px;
    min-width: 0;
}

.ps-notice {
    padding: 28px;
    border: 2px solid #E8C400;
    border-radius: var(--ps-radius);
    background: #FFF8D6;
}

.ps-notice .ps-h3 {
    color: var(--ps-text);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.ps-notice ul {
    margin: 0;
    padding-left: 1.2em;
}

.ps-notice li + li {
    margin-top: 8px;
}

/* ---------- Services ---------- */

.ps-services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ps-services > li {
    display: flex;
}

.ps-body .ps-service {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 28px;
    border: 2px solid var(--ps-border);
    border-radius: var(--ps-radius);
    background: #ffffff;
    color: var(--ps-text);
    text-decoration: none;
}

.ps-body .ps-service:hover {
    border-color: var(--ps-blue);
    box-shadow: 0 6px 20px rgba(11, 59, 122, 0.12);
    color: var(--ps-text);
}

.ps-service__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--ps-soft-blue);
    color: var(--ps-blue);
}

.ps-service__title {
    margin: 4px 0 0;
    color: var(--ps-blue);
    font-size: 1.2rem;
    line-height: 1.3;
}

.ps-service__desc {
    margin: 0;
    color: var(--ps-text-2);
}

.ps-service__more {
    margin-top: auto;
    padding-top: 6px;
    color: var(--ps-blue);
    font-weight: 700;
}

.ps-service:hover .ps-service__more {
    text-decoration: underline;
}

/* ---------- Integrations ---------- */

/* The vendor names are information, not buttons: a plain list with ticks, no frames */
.ps-chips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 10px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ps-chip {
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: var(--ps-text);
    font-weight: 600;
    cursor: default;
}

.ps-chip::before {
    content: '✓';
    flex: none;
    color: var(--ps-green);
    font-weight: 800;
}

/* ---------- Organizations ---------- */

.ps-orgs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ps-orgs > li {
    display: flex;
}

/* Organizations are information, not links: logo and name, no frame, no hover */
.ps-body .ps-org {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 6px 0;
    color: var(--ps-text);
    cursor: default;
}


.ps-org__logo {
    flex: none;
    width: 36px;
    height: 42px;
    object-fit: contain;
}

.ps-org__name {
    font-weight: 600;
    line-height: 1.3;
}

/* ---------- FAQ ---------- */

.ps-faq {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* No overflow: hidden here: it clipped the focus ring of the summary */
.ps-faq__item {
    border: 2px solid var(--ps-border);
    border-radius: var(--ps-radius);
    background: #ffffff;
}

.ps-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    padding: 14px 22px;
    /* the inner radius of the item, so the focus ring follows its corners */
    border-radius: calc(var(--ps-radius) - 2px);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

/* The ring is drawn inside the item (closed or open), so the border and the next item do not cover it */
.ps-body .ps-faq__q:focus-visible {
    outline: 4px solid var(--ps-yellow);
    outline-offset: -4px;
    box-shadow: inset 0 0 0 7px var(--ps-text);
}

.ps-faq__item[open] .ps-faq__q {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.ps-faq__q::-webkit-details-marker {
    display: none;
}

.ps-faq__sign {
    position: relative;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ps-soft);
}

.ps-faq__sign::before,
.ps-faq__sign::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2.5px;
    margin: -1.25px 0 0 -7px;
    background: var(--ps-blue);
}

.ps-faq__sign::after {
    transform: rotate(90deg);
}

.ps-faq__item[open] .ps-faq__sign::after {
    display: none;
}

.ps-faq__a {
    padding: 0 22px 20px;
    color: var(--ps-text-2);
    overflow-wrap: break-word;
}

/*
 * Windows contrast themes (forced colors): backgrounds are dropped, so the pressed A / A+ button
 * gets a thicker system-colour frame and the FAQ +/− (drawn with backgrounds) is painted with CanvasText.
 */
@media (forced-colors: active) {
    .ps-fontswitch__btn {
        border-color: ButtonText;
    }

    .ps-fontswitch__btn[aria-pressed="true"] {
        border-color: Highlight;
        outline: 3px solid Highlight;
        outline-offset: 1px;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .ps-faq__sign {
        border: 1px solid CanvasText;
        forced-color-adjust: none;
        background: Canvas;
    }

    .ps-faq__sign::before,
    .ps-faq__sign::after {
        background: CanvasText;
    }

    .ps-body .ps-faq__q:focus-visible {
        outline-color: Highlight;
    }
}

/* ---------- Contact band (#kontakt, partial/public/contact-band.phtml: home page and service pages) ---------- */

.ps-band {
    padding: 56px 0;
    background: var(--ps-blue);
    color: #ffffff;
}

.ps-band__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px;
}

.ps-band__text {
    flex: 1 1 320px;
    min-width: 0;
}

.ps-band__form {
    flex: 2 1 560px;
    min-width: 0;
}

/* white on --ps-blue: 11:1 */
.ps-band .ps-h2 {
    margin-bottom: 12px;
    color: #ffffff;
}

.ps-band__lead {
    margin: 0 0 24px;
    color: #E3EAF5;
}

.ps-band__phone {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
}

.ps-band__mail {
    margin: 12px 0 0;
    font-size: 1.1rem;
    font-weight: 700;
}

/* links stay white and underlined; the site's yellow focus outline shows on the blue */
.ps-body .ps-band__text a {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.ps-body .ps-band__text a:hover {
    color: #E3EAF5;
    text-decoration-thickness: 3px;
}

.ps-body .ps-band__phone a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    min-height: 60px;
}

.ps-band__phone .ps-icon,
.ps-band__mail .ps-icon {
    flex: none;
}

.ps-band__mail a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
}

/* ---------- Forms ---------- */

.ps-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 30px;
    border: 1px solid var(--ps-border);
    border-radius: 12px;
    background: #ffffff;
}

.ps-form--card {
    border-width: 2px;
    padding: 28px;
}

/* "Zavolajte mi" in the contact band: Meno across, Telefón | IČO side by side (same height), Správa across;
   note, status, consent and button span both columns */
.ps-form--band {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px 20px;
    padding: 28px;
    border: 0;
    color: var(--ps-text);
}

.ps-form--band > .ps-field--wide,
.ps-form--band > .ps-form__note,
.ps-form--band > .ps-form__status,
.ps-form--band > .ps-field--check,
.ps-form--band > .ps-btn {
    grid-column: 1 / -1;
}

.ps-form--band > .ps-btn {
    justify-self: start;
    padding: 0 40px;
}

.ps-form--band .ps-field {
    min-width: 0;
}

.ps-form__title {
    margin: 0;
    color: var(--ps-blue);
    font-size: 1.35rem;
    line-height: 1.25;
}

/* "Všetky polia sú povinné, …" above the fields (pub_form_required_note) */
.ps-form__note {
    margin: 0;
    color: var(--ps-muted);
    font-size: 0.9rem;
}

.ps-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ps-field__label {
    font-weight: 700;
}

.ps-optional {
    color: var(--ps-muted);
    font-weight: 400;
}

.ps-input {
    width: 100%;
    min-height: 56px;
    padding: 0 16px;
    border: 2px solid var(--ps-field-border);
    border-radius: 6px;
    background: #ffffff;
    color: var(--ps-text);
    font-family: inherit;
    font-size: 1rem;
}

.ps-textarea {
    min-height: 0;
    padding: 12px 16px;
    resize: vertical;
}

.ps-input[aria-invalid="true"],
.ps-check[aria-invalid="true"] {
    border-color: var(--ps-err);
    outline: 2px solid var(--ps-err);
}

.ps-field--check {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--ps-text-2);
    font-size: 0.9rem;
}

.ps-field--check label {
    flex: 1 1 0;
    min-width: 0;
    cursor: pointer;
}

.ps-check {
    flex: none;
    width: 28px;
    height: 28px;
    margin: 0;
    accent-color: var(--ps-green);
    cursor: pointer;
}

.ps-field__error {
    margin: 0;
    color: var(--ps-err);
    font-size: 0.9rem;
    font-weight: 700;
}

.ps-field--check .ps-field__error {
    flex-basis: 100%;
}

.ps-form__status {
    padding: 14px 18px;
    border-radius: 8px;
    font-weight: 600;
}

.ps-form__status.is-ok {
    border: 2px solid #8FCDA9;
    background: var(--ps-ok-bg);
    color: var(--ps-ok-text);
}

.ps-form__status.is-error {
    border: 2px solid #F1A9A3;
    background: var(--ps-err-bg);
    color: var(--ps-err);
}

.ps-form__status p {
    margin: 0;
}

.ps-form__status p + p {
    margin-top: 6px;
}

/* honeypot: off screen for people, still a normal field for bots */
.ps-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Service page ---------- */

.ps-svc-head {
    background: var(--ps-soft);
}

.ps-svc-head > .ps-wrap {
    padding-top: 28px;
    padding-bottom: 56px;
}

.ps-crumbs {
    margin-bottom: 28px;
    font-size: 0.9rem;
}

.ps-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ps-crumbs li + li::before {
    content: '›';
    margin: 0 6px 0 2px;
    color: var(--ps-muted);
}

.ps-crumbs [aria-current] {
    color: var(--ps-text-2);
}

.ps-svc-head__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
}

.ps-svc-head__icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border: 2px solid var(--ps-border);
    border-radius: 50%;
    background: #ffffff;
    color: var(--ps-blue);
}

.ps-svc-head__text {
    flex: 1 1 520px;
    min-width: 0;
}

.ps-svc-head__title {
    margin: 0 0 12px;
    color: var(--ps-blue);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.12;
}

.ps-svc-head__lead {
    max-width: 720px;
    margin: 0;
    color: var(--ps-text-2);
    font-size: 1.15rem;
}

.ps-section--svc {
    padding: 64px 0 48px;
}

/* the CMS text of a service: about 70 characters a line, on the left edge of the page column (under the title of
   the hero above it), not centred */
.ps-wrap--text > .ps-svc-text {
    max-width: 772px;
}

/* "Ako začať": three numbered cards (an <ol>), the same for every service */
.ps-svc-start {
    padding: 0 0 64px;
}

.ps-svc-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.ps-svc-step {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 24px;
    border: 2px solid var(--ps-border);
    border-radius: var(--ps-radius);
    background: #ffffff;
}

.ps-svc-step .ps-h3 {
    margin: 0;
    font-size: 1.2rem;
}

.ps-svc-step p {
    margin: 0;
    color: var(--ps-text-2);
}

.ps-svc-step__num {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ps-blue);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
}

/* blue phone card of the contact page (page/public/contact.phtml) */
.ps-callcard {
    padding: 24px;
    border-radius: 12px;
    background: var(--ps-blue);
    color: #ffffff;
}

.ps-callcard__lead {
    margin: 0 0 6px;
    font-weight: 600;
}

.ps-body .ps-callcard__phone {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 800;
    text-decoration: none;
}

.ps-body .ps-callcard a {
    color: #ffffff;
}

.ps-callcard__mail {
    margin: 6px 0 0;
    font-weight: 700;
}

/* CMS text from the admin: may hold old Bootstrap markup, so only plain typography, no layout */
.ps-prose {
    color: var(--ps-text-2);
    overflow-wrap: anywhere;
}

/*
 * Text pasted from Word or the old editor (<font face size color>, <span style="font-family: …; font-size: 10pt;
 * color: …">, MsoNormal paragraphs): always the site's font, size and colour. Headings keep their sizes below,
 * links stay blue and underlined, <strong> stays bold.
 */
.ps-prose font,
.ps-prose span,
.ps-prose p,
.ps-prose div,
.ps-prose li,
.ps-prose table,
.ps-prose td,
.ps-prose th,
.ps-prose strong,
.ps-prose b,
.ps-prose em,
.ps-prose u,
.ps-prose small,
.ps-prose big,
.ps-prose blockquote,
.ps-prose dd,
.ps-prose dt,
.ps-prose label,
.ps-prose center {
    font-family: inherit !important;
    font-size: inherit !important;
    color: inherit !important;
    line-height: inherit !important;
}

.ps-prose p,
.ps-prose li,
.ps-prose td,
.ps-prose th {
    line-height: 1.55 !important;
}

.ps-prose ul,
.ps-prose ol {
    font-family: inherit !important;
    font-size: inherit !important;
    color: var(--ps-text) !important;
}

.ps-prose h1,
.ps-prose h2,
.ps-prose h3,
.ps-prose h4,
.ps-prose h5,
.ps-prose h6 {
    font-family: inherit !important;
    color: var(--ps-blue) !important;
}

/* a size typed into the heading itself gives way to the prose scale */
.ps-prose h1[style*="font-size"],
.ps-prose h2[style*="font-size"] {
    font-size: 1.5rem !important;
}

.ps-prose h3[style*="font-size"],
.ps-prose h4[style*="font-size"],
.ps-prose h5[style*="font-size"],
.ps-prose h6[style*="font-size"] {
    font-size: 1.2rem !important;
}

/* buttons of the page itself (.ps-btn) keep their own colours */
.ps-prose a:not(.ps-btn) {
    color: var(--ps-blue) !important;
    font-family: inherit !important;
    font-size: inherit !important;
    text-decoration: underline !important;
}

.ps-prose a:not(.ps-btn):hover {
    color: var(--ps-blue-dark) !important;
}

.ps-prose > :first-child {
    margin-top: 0;
}

.ps-prose h1,
.ps-prose h2,
.ps-prose h3,
.ps-prose h4 {
    margin: 32px 0 12px;
    color: var(--ps-blue);
    line-height: 1.25;
}

.ps-prose h1,
.ps-prose h2 {
    font-size: 1.5rem;
}

.ps-prose h3,
.ps-prose h4 {
    font-size: 1.2rem;
}

.ps-prose p {
    margin: 0 0 20px;
}

.ps-prose ul,
.ps-prose ol {
    margin: 0 0 24px;
    padding: 24px 24px 24px 48px;
    border-radius: var(--ps-radius);
    background: var(--ps-soft);
    color: var(--ps-text);
}

.ps-prose li + li {
    margin-top: 8px;
}

.ps-prose img {
    display: block;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 0 20px;
    border-radius: 8px;
}

.ps-prose table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.ps-prose td,
.ps-prose th {
    padding: 8px 12px;
    border: 1px solid var(--ps-border);
}

/* old Bootstrap grid inside CMS text: stack it, never side by side */
.ps-prose .row,
.ps-prose [class*="col-"] {
    display: block;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    float: none;
}

.ps-others {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ps-others > li {
    display: flex;
}

.ps-body .ps-other {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 14px 18px;
    border: 2px solid var(--ps-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ps-blue);
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

.ps-body .ps-other:hover {
    border-color: var(--ps-blue);
}

.ps-other__icon {
    display: flex;
    flex: none;
    color: var(--ps-blue);
}

/* ---------- Footer: public/css/public-footer.css (shared with the logged-in layouts) ---------- */

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .ps-services,
    .ps-orgs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    :root {
        --ps-gutter: 16px;
    }

    .ps-section {
        padding: 56px 0;
    }

    .ps-section--tight {
        padding: 48px 0;
    }

    .ps-section--svc {
        padding: 48px 0 40px;
    }

    .ps-svc-start {
        padding-bottom: 48px;
    }

    .ps-svc-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .ps-band {
        padding: 48px 0;
    }

    .ps-band__inner {
        gap: 28px;
    }

    .ps-band__phone {
        font-size: 1.5rem;
    }

    .ps-form--band {
        grid-template-columns: minmax(0, 1fr);
    }

    .ps-form--band > .ps-btn {
        justify-self: stretch;
    }

    .ps-hero__inner {
        gap: 36px;
        padding-top: 44px;
        padding-bottom: 48px;
    }

    .ps-hero__title {
        font-size: 1.9rem;
    }

    .ps-svc-head__title {
        font-size: 1.8rem;
    }

    .ps-h2 {
        font-size: 1.5rem;
    }

    .ps-services,
    .ps-orgs {
        grid-template-columns: minmax(0, 1fr);
    }

    .ps-hero__text,
    .ps-hero__preview,
    .ps-split__main,
    .ps-split__side,
    .ps-svc-head__text,
    .ps-band__text,
    .ps-band__form {
        flex-basis: 100%;
    }

    .ps-btn-row .ps-btn,
    .ps-header__actions .ps-btn {
        flex: 1 1 auto;
    }

    .ps-form,
    .ps-form--card {
        padding: 22px 18px;
    }

    .ps-svc-head__icon {
        width: 72px;
        height: 72px;
    }
}

/* The cookie-settings button pasted into CMS pages carries an inline <style> (white on #5cb85c, 2.5:1);
   it takes the site's green button colours instead */
.ps-prose #open_preferences_center {
    background-color: var(--ps-green) !important;
    color: #fff !important;
    box-shadow: 0 3px 0 #003d21;
    font: inherit;
    font-weight: 700;
    min-height: 52px;
    cursor: pointer;
}
