/* ==========================================================================
   site.css (refactored)

   1.  Design tokens
   2.  Base (html, body, typography, focus, forms)
   3.  Motion + hover rules (one place for all of them)
   4.  Layout: section, page-hero, section-heading, cta-box
   5.  Shared components: eyebrow, buttons, icons, cards, prose
   6.  Home: hero, products, features
   7.  News
   8.  Open data
   9.  Seminář
   10. About
   11. ISO
   12. QISMS
   13. Contacts
   14. Contact form
   15. Certificates (ISO + QISMS)
   16. Legacy
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
    /* Typography */
    --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --bs-heading-color: var(--color-heading);
    /* Colors */
    --color-primary: #0d6efd;
    --color-primary-text: #0a58ca; /* primary for small text: 6.6:1 on white */
    --color-accent: #00a9ce;
    --color-heading: #172033;
    --color-text-strong: #344054;
    --color-text: #475467;
    --color-muted: #667085; /* 4.8:1 on white, do not go lighter for text */
    --color-surface: #f8fafc;
    --color-surface-blue: #eef5ff;
    --color-surface-tint: #f4f8ff;
    --color-border: #e2e8f0;
    --color-border-soft: #edf1f5;
    --color-success-text: #146c43;
    /* Section backgrounds (kept for backwards compatibility) */
    --section-white: #ffffff;
    --section-colored: var(--color-surface);
    --section-colored-start: #f4f8ff;
    --section-colored-end: #f8fafc;
    /* Shape */
    --radius-sm: .8rem;
    --radius-md: 1rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 1.75rem;
    --radius-pill: 50rem;
    /* Shadows */
    --shadow-sm: 0 8px 26px rgb(20 39 65 / .06);
    --shadow-md: 0 12px 38px rgb(20 39 65 / .07);
    --shadow-lg: 0 18px 50px rgb(20 39 65 / .08);
    --shadow-hover: 0 20px 45px rgb(20 39 65 / .12);
    --shadow-primary: 0 10px 25px rgb(13 110 253 / .22);
    /* Layout */
    --nav-height: 80px;
    --section-padding: clamp(4rem, 8vw, 6rem);
    --section-padding-compact: clamp(3.5rem, 6vw, 5rem);
    --sticky-top: calc(var(--nav-height) + 2.5rem);
    /* Gradients */
    --hero-gradient: linear-gradient(135deg, #eef5ff 0%, #f8fbff 48%, #ffffff 100%);
    --accent-gradient: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    /* Motion distances (set to 0 for reduced motion, see section 3) */
    --lift: -6px;
    --lift-sm: -3px;
    --nudge: 5px;
    --zoom: 1.035;
    --zoom-icon: 1.1;
    /* Focus */
    --focus-ring: 0 0 0 .1rem #fff, 0 0 0 .25rem #258cfb;
}


/* ==========================================================================
   2. BASE
   ========================================================================== */

/* Percentages respect the user's browser font-size setting (14px / 16px) */
html {
    font-size: 87.5%;
    scroll-padding-top: calc(var(--nav-height) + 1rem);
}

@media (min-width: 768px) {
    html {
        font-size: 100%;
    }
}

body {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--nav-height));
    margin-top: var(--nav-height);
    background: var(--section-white);
    font-weight: 400;
    letter-spacing: -.01em;
}

/* Sticky footer: main grows, footer stays at the bottom.
   If your <main> sits inside a wrapper div, give that wrapper flex: 1 0 auto instead. */
main {
    flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -.03em;
}

h1 {
    letter-spacing: -.045em;
}

h2 {
    letter-spacing: -.04em;
}

footer {
    text-align: center;
}

.nav-link,
.btn {
    font-weight: 600;
}

/* Nadpisy se zalomí do vyrovnaných řádků, odstavce bez osamělých slov na posledním řádku */
h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

p, li, dd {
    text-wrap: pretty;
}

.nowrap {
    white-space: nowrap;
}

.nav-link {
    transition: color .2s ease;
}

/* Hover color for the navbar comes from the Bootstrap 5.3 variable */
.navbar {
    --bs-navbar-color: var(--color-text-strong);
    --bs-navbar-hover-color: var(--color-primary-text);
    --bs-navbar-active-color: var(--color-primary-text);
}

.logo {
    max-height: 50px;
}

/* Keyboard focus */
.btn:focus-visible,
.btn-link.nav-link:focus-visible,
.btn-check:focus-visible + .btn {
    box-shadow: var(--focus-ring);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
}

/* Focus outline for whole-card links and buttons */
.product-tile:focus-visible,
.news-card-link:focus-visible,
.cert-card:focus-visible {
    outline: 3px solid rgb(13 110 253 / .45);
    outline-offset: 3px;
}

/* ASP.NET renders an empty validation summary; hide it while it is valid */
.validation-summary-valid {
    display: none;
}

/* Floating-label placeholders */
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}


/* ==========================================================================
   3. MOTION + HOVER
   ========================================================================== */

/* Reduced motion: one rule for the whole site. Distances go to zero. */
@media (prefers-reduced-motion: reduce) {
    :root {
        --lift: 0px;
        --lift-sm: 0px;
        --nudge: 0px;
        --zoom: 1;
        --zoom-icon: 1;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}

/* Cards that lift on hover: base transition */
.product-tile,
.feature-box,
.news-card,
.seminar-card,
.qisms-pillar-card,
.cert-card,
.contact-person-card,
.open-data-feature,
.contact-interest-option,
.domains-list a {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .2s ease, color .2s ease;
}

/* Buttons that lift on hover */
.hero-actions .btn,
.cta-box .btn,
.open-data-button,
.news-archive-button,
.contacts-primary-button,
.contact-submit-button {
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}

/* Hover only on devices that really hover (no sticky hover on touch) */
@media (hover: hover) {
    .product-tile:hover,
    .feature-box:hover,
    .news-card:hover,
    .seminar-card:hover,
    .qisms-pillar-card:hover,
    .cert-card:hover,
    .contact-person-card:hover,
    .open-data-feature:hover,
    .contact-interest-option:hover,
    .domains-list a:hover {
        transform: translateY(var(--lift));
        border-color: rgb(13 110 253 / .3);
        box-shadow: var(--shadow-hover);
    }

    .hero-actions .btn:hover,
    .cta-box .btn:hover,
    .open-data-button:hover,
    .news-archive-button:hover,
    .contacts-primary-button:hover,
    .contact-submit-button:hover {
        transform: translateY(var(--lift-sm));
    }

    .news-card:hover .news-card-action i,
    .open-data-secondary-link:hover i,
    .contact-sidebar-link:hover i {
        transform: translateX(var(--nudge));
    }

    .product-tile:hover .product-icon {
        transform: scale(var(--zoom-icon));
    }

    .cert-card:hover .cert-preview img {
        transform: scale(var(--zoom));
    }

    .cert-card:hover .cert-overlay {
        opacity: 1;
    }
}


/* ==========================================================================
   4. LAYOUT
   ========================================================================== */

/* ---- Section ------------------------------------------------------------
   <section class="section">                      white background
   <section class="section section-alt">          light grey background
   <section class="section section-compact">     smaller vertical padding
   <section class="section section-gradient">    subtle blue gradient
   (Bootstrap py-* utilities still win because they use !important.)
   ------------------------------------------------------------------------ */

.section {
    padding-block: var(--section-padding);
    background: var(--section-white);
}

.section-alt {
    background: var(--section-colored);
}

.section-gradient {
    background: linear-gradient(180deg, var(--section-colored-start) 0%, var(--section-colored-end) 100%);
}

.section-compact {
    padding-block: var(--section-padding-compact);
}

.section .lead {
    color: var(--color-text-strong);
    line-height: 1.7;
}

.section-heading {
    position: relative;
    max-width: 760px;
    margin-bottom: clamp(2rem, 5vw, 4rem);
}

/* ---- Page hero ----------------------------------------------------------
   <header class="page-hero">
     <div class="container"><div class="page-hero-content"> ... </div></div>
   </header>
   Home page: <header class="page-hero page-hero-home">
   ------------------------------------------------------------------------ */

.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    padding-block: var(--section-padding);
    background: var(--hero-gradient);
}

    .page-hero::before,
    .page-hero::after {
        content: "";
        position: absolute;
        z-index: -1;
        border-radius: 50%;
        pointer-events: none;
    }

    .page-hero::before {
        top: -220px;
        right: -140px;
        width: 530px;
        height: 530px;
        background: rgb(13 110 253 / .08);
    }

    .page-hero::after {
        right: 28%;
        bottom: -190px;
        width: 370px;
        height: 370px;
        background: rgb(0 169 206 / .07);
    }

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 62rem;
}

.page-hero .lead {
    max-width: 52rem;
    color: var(--color-text);
    line-height: 1.8;
}

.page-hero h1 em {
    color: var(--color-primary-text);
    font-style: normal;
}

@media (max-width: 575.98px) {
    .page-hero::before {
        top: -150px;
        right: -170px;
        width: 360px;
        height: 360px;
    }

    .page-hero::after {
        right: -120px;
        bottom: -120px;
        width: 280px;
        height: 280px;
    }
}

/* ---- CTA box ------------------------------------------------------------
   <div class="cta-box"> ... </div>
   ------------------------------------------------------------------------ */

.cta-box {
    position: relative;
    overflow: hidden;
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3rem);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    background: #ffffff;
    box-shadow: var(--shadow-lg);
}

    .cta-box::before,
    .cta-box::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        pointer-events: none;
    }

    .cta-box::before {
        top: -120px;
        right: -80px;
        width: 280px;
        height: 280px;
        background: rgb(13 110 253 / .06);
    }

    .cta-box::after {
        bottom: -130px;
        left: -70px;
        width: 300px;
        height: 300px;
        background: rgb(0 169 206 / .06);
    }

    .cta-box > * {
        position: relative;
        z-index: 1;
    }

    .cta-box p {
        color: var(--color-muted);
        line-height: 1.8;
    }

    .cta-box .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

.contact-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 991.98px) {
    .contact-cta-actions {
        max-width: 420px;
    }
}

@media (max-width: 575.98px) {
    .cta-box {
        border-radius: var(--radius-lg);
    }

        .cta-box .btn,
        .contact-cta-actions {
            width: 100%;
            max-width: none;
        }
}


/* ==========================================================================
   5. SHARED COMPONENTS
   ========================================================================== */

/* ---- Eyebrow label (small pill above a heading) ---- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: .48rem 1rem;
    border: 1px solid rgb(13 110 253 / .18);
    border-radius: var(--radius-pill);
    background: rgb(13 110 253 / .08);
    color: var(--color-primary-text);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.product-tag {
    display: inline-block;
    padding: .4rem .9rem;
    border-radius: var(--radius-pill);
    background: #e7f1ff;
    color: var(--color-primary-text);
    font-size: .8rem;
    font-weight: 600;
}

/* ---- Pill buttons ---- */
.hero-actions .btn,
.cta-box .btn,
.open-data-button,
.news-archive-button,
.contacts-primary-button,
.contact-submit-button {
    padding: .85rem 1.6rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
}

.hero-actions .btn-primary,
.cta-box .btn-primary,
.open-data-button,
.news-archive-button,
.contacts-primary-button,
.contact-submit-button {
    box-shadow: var(--shadow-primary);
}

/* ---- Prose (long paragraphs) ---- */
.prose p,
.iso-current-text p {
    color: var(--color-muted);
    line-height: 1.85;
}

.seminars-description,
.open-data-description,
.contacts-hero-text,
.qisms-security-intro {
    max-width: 650px;
    color: var(--color-muted);
    line-height: 1.75;
}

/* ---- Icon boxes (all icon tiles in one place) ---- */
.seminar-icon,
.about-business-icon,
.iso-info-icon,
.qisms-pillar-icon,
.contacts-office-icon,
.contacts-transport-icon,
.contacts-general-icon,
.contact-interest-icon,
.open-data-feature-icon,
.iso-highlight-icon,
.qisms-principles-icon,
.qisms-commitment-icon,
.contacts-card-icon,
.contacts-help-icon,
.contact-sidebar-icon,
.news-empty-icon,
.product-icon,
.contact-person-avatar {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--color-surface-blue);
    color: var(--color-primary);
    font-size: 1.2rem;
}

/* small */
.contact-interest-icon,
.open-data-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: .8rem;
    font-size: 1rem;
}

/* large */
.iso-highlight-icon,
.qisms-principles-icon,
.qisms-commitment-icon,
.contacts-card-icon,
.contacts-help-icon,
.contact-sidebar-icon,
.news-empty-icon,
.product-icon {
    width: 64px;
    height: 64px;
    border-radius: 1.1rem;
    font-size: 1.5rem;
}

.contact-person-avatar {
    width: 76px;
    height: 76px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    font-size: 1.4rem;
}

/* icons that sit above a heading */
.seminar-icon,
.iso-info-icon,
.qisms-pillar-icon,
.contacts-general-icon {
    margin-bottom: 1.25rem;
}

.iso-highlight-icon,
.qisms-principles-icon,
.qisms-commitment-icon,
.contacts-card-icon,
.contacts-help-icon,
.contact-sidebar-icon,
.news-empty-icon,
.product-icon {
    margin-bottom: 1.4rem;
}

.product-icon {
    transition: transform .3s ease;
}

    .product-icon img {
        width: 70%;
    }

/* ---- Surface cards (radius lg) ---- */
.about-timeline-card,
.iso-info-card,
.contacts-office-card,
.seminar-card,
.qisms-pillar-card,
.contacts-general-card,
.news-card,
.contact-person-card,
.cert-card,
.product-tile,
.feature-box {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

/* ---- Surface panels (radius xl) ---- */
.company-details-card,
.contacts-company-card,
.contacts-help-card,
.contact-form-card,
.contact-form-sidebar,
.iso-highlight-card,
.qisms-principles-card,
.iso-current-box {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

/* Tinted panels */
.iso-highlight-card,
.qisms-principles-card {
    background: var(--color-surface);
}

/* Sticky side panels (static on tablet and below) */
.iso-highlight-card,
.qisms-principles-card,
.contact-form-sidebar,
.certification-intro {
    position: sticky;
    top: var(--sticky-top);
}

@media (max-width: 991.98px) {
    .iso-highlight-card,
    .qisms-principles-card,
    .contact-form-sidebar,
    .certification-intro {
        position: static;
    }
}

/* Panel paddings */
.company-details-card,
.contacts-company-card,
.contacts-help-card,
.iso-highlight-card,
.qisms-principles-card,
.contact-form-sidebar,
.iso-info-card,
.about-timeline-card,
.contacts-office-card {
    padding: 2rem;
}

.contact-form-card {
    padding: 2.5rem;
}

.iso-current-box {
    padding: 3rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
}

.company-details-card,
.contacts-company-card,
.contacts-help-card,
.contacts-office-card {
    height: 100%;
}

    .about-timeline-card h3,
    .iso-info-card h2,
    .iso-highlight-card h2,
    .contacts-help-card h2,
    .contacts-company-card h2,
    .contacts-office-header h3,
    .qisms-principles-card h2,
    .contact-form-sidebar h2 {
        color: var(--color-heading);
    }

    .iso-highlight-card p,
    .iso-info-card p,
    .qisms-principles-card > p,
    .contact-form-sidebar > p,
    .contacts-help-card p,
    .contacts-office-card address,
    .contacts-office-card p,
    .about-timeline-card p,
    .company-details dd {
        margin-bottom: 0;
        color: var(--color-muted);
        line-height: 1.75;
    }

@media (max-width: 575.98px) {
    .company-details-card,
    .contacts-company-card,
    .contacts-help-card,
    .contacts-office-card,
    .contact-form-card,
    .contact-form-sidebar {
        padding: 1.4rem;
        border-radius: var(--radius-lg);
    }

    .iso-current-box {
        padding: 2rem 1.25rem;
        border-radius: var(--radius-lg);
    }
}

/* ---- Media placeholders ---------------------------------------------------
   <div class="media-placeholder">          300px high
   <div class="media-placeholder media-placeholder-lg">   420px high
   ------------------------------------------------------------------------ */
.media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--color-surface-blue), var(--color-surface));
    color: var(--color-muted);
}

.media-placeholder-lg {
    min-height: 420px;
}


/* ==========================================================================
   6. HOME
   ========================================================================== */

.page-hero-home {
    padding-block: 0;
}

    .page-hero-home .hero-container {
        position: relative;
        z-index: 1;
    }

        .page-hero-home .hero-container::before {
            content: "";
            position: absolute;
            z-index: -1;
            top: 16%;
            left: -170px;
            width: 260px;
            height: 260px;
            border: 38px solid rgb(13 110 253 / .035);
            border-radius: 50%;
            pointer-events: none;
        }

.min-vh-75 {
    min-height: 75vh;
}

.hero-content {
    max-width: 760px;
    padding: 5rem 0;
}

.page-hero-home h1 {
    max-width: 750px;
    margin-bottom: 0;
    line-height: 1.08;
}

.page-hero-home .lead {
    max-width: 660px;
    margin-bottom: 0;
    color: var(--color-muted);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 2rem 0;
}

    .hero-visual::before {
        content: "";
        position: absolute;
        width: 440px;
        height: 440px;
        border-radius: 50%;
        background: rgb(13 110 253 / .07);
    }

    .hero-visual::after {
        content: "";
        position: absolute;
        top: 9%;
        right: 1%;
        width: 115px;
        height: 115px;
        border: 22px solid rgb(0 169 206 / .1);
        border-radius: 50%;
    }

.hero-image-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 1.25rem;
    border: 1px solid rgb(255 255 255 / .85);
    border-radius: 2rem;
    background: rgb(255 255 255 / .64);
    box-shadow: 0 25px 65px rgb(20 39 65 / .14);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transform: rotate(1.5deg);
    transition: transform .35s ease, box-shadow .35s ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .hero-image-wrapper:hover {
        transform: rotate(0deg) translateY(-6px);
        box-shadow: 0 32px 75px rgb(20 39 65 / .18);
    }
}

.hero-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 470px;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

@media (max-width: 991.98px) {
    .min-vh-75 {
        min-height: auto;
    }

    .hero-content {
        padding: 4rem 0 1rem;
        text-align: center;
    }

    .page-hero-home h1,
    .page-hero-home .lead {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        min-height: auto;
        padding: 1rem 0 4rem;
    }

        .hero-visual::before {
            width: 390px;
            height: 390px;
        }

    .hero-image-wrapper {
        max-width: 620px;
    }
}

@media (max-width: 575.98px) {
    .hero-content {
        padding-top: 3.25rem;
    }

    .page-hero-home h1 {
        font-size: 2.65rem;
    }

    .hero-actions {
        flex-direction: column;
    }

        .hero-actions .btn {
            width: 100%;
        }

    .hero-visual::before {
        width: 290px;
        height: 290px;
    }

    .hero-visual::after {
        width: 80px;
        height: 80px;
        border-width: 16px;
    }

    .hero-image-wrapper {
        padding: .75rem;
        border-radius: var(--radius-xl);
        transform: none;
    }

    .hero-image {
        border-radius: var(--radius-md);
    }
}

/* ---- Product tiles ---- */
.product-tile {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem;
    border-radius: var(--radius-xl);
    color: inherit;
    text-decoration: none;
}

    .product-tile:hover {
        color: inherit;
        text-decoration: none;
    }

    .product-tile h3 {
        margin-bottom: 1rem;
    }

    .product-tile p {
        color: var(--color-muted);
    }

/* margin-top: auto keeps the link at the bottom without a fixed min-height */
.product-link {
    margin-top: auto;
    padding-top: 1rem;
    color: var(--color-primary-text);
    font-weight: 600;
}

    .product-link::after {
        content: " →";
        opacity: 0;
        transition: opacity .3s ease;
    }

.product-tile:hover .product-link::after,
.product-tile:focus-visible .product-link::after {
    opacity: 1;
}

/* ---- Product accordion ---- */
.product-accordion .accordion-item {
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 35px rgb(0 0 0 / .06);
}

.product-accordion .accordion-button {
    padding: 1.75rem;
    background: #fff;
}

    .product-accordion .accordion-button:not(.collapsed) {
        background: var(--color-surface);
        color: inherit;
        box-shadow: inset 4px 0 0 var(--color-primary); /* accent bar on the open product */
    }

    /* Visible keyboard focus (inset, because the item clips overflow) */
    .product-accordion .accordion-button:focus-visible {
        box-shadow: inset 0 0 0 3px #258cfb;
    }

/* ---- Feature blocks ---- */
.feature-card {
    height: 100%;
    padding: 1.25rem;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    background: #fff;
}

    .feature-card h5 {
        margin-bottom: .75rem;
        font-weight: 700;
    }

.benefit-box {
    height: 100%;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
}

    .benefit-box ul {
        margin-bottom: 0;
        padding-left: 1rem;
    }

    .benefit-box li {
        margin-bottom: .5rem;
    }

.feature-list {
    margin-top: 2rem;
    padding-left: 0;
    list-style: none;
}

    .feature-list li {
        margin-bottom: .75rem;
        font-weight: 500;
    }

        .feature-list li::before {
            content: "✓";
            margin-right: .75rem;
            color: var(--color-primary);
            font-weight: 700;
        }

.feature-box {
    height: 100%;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: none;
}

    .feature-box h3 {
        margin-bottom: .25rem;
        color: var(--color-primary);
    }

    .feature-box span {
        color: var(--color-muted);
    }


/* ---- Products page ---- */
.product-accordion .accordion-item {
    scroll-margin-top: calc(var(--nav-height) + 1rem); /* anchors are not hidden under the navbar */
}

.product-accordion .accordion-button {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.product-accordion .accordion-body {
    padding: clamp(1.25rem, 3vw, 2.25rem);
}

.product-header-icon {
    display: flex;
    flex: 0 0 56px;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--color-surface-blue);
}

    .product-header-icon img {
        width: 70%;
        height: auto;
    }

.product-header-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    min-width: 0;
}

.product-title {
    color: var(--color-heading);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.25;
}

.product-summary {
    color: var(--color-muted);
    font-size: .9rem;
}

.product-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

    .product-keywords > span {
        padding: .2rem .65rem;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-pill);
        background: #ffffff;
        color: var(--color-text);
        font-size: .78rem;
        font-weight: 500;
    }

@media (max-width: 767.98px) {
    .product-accordion .accordion-button {
        gap: .9rem;
        padding: 1.25rem;
    }

    .product-header-icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }

    /* On phones show only the first three keywords to keep the closed list compact */
    .product-keywords > span:nth-child(n + 4) {
        display: none;
    }
}

.product-copy p {
    max-width: 70ch;
}

.product-copy .feature-list {
    margin-top: 1rem;
}

.product-media img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.feature-card {
    border-left: 3px solid var(--color-primary);
}

    .feature-card p {
        margin-bottom: 0;
        color: var(--color-muted);
    }

.benefit-box li::marker {
    color: var(--color-primary);
}

.why-box {
    padding: 1.5rem 1.75rem;
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    background: var(--color-surface-tint);
}

    .why-box p,
    .why-box li {
        color: var(--color-text);
        line-height: 1.7;
    }

.product-quote {
    margin: 2.5rem 0 0;
    text-align: center;
}

    .product-quote blockquote {
        margin: 0;
    }

        .product-quote blockquote p {
            margin-bottom: .5rem;
            color: var(--color-heading);
            font-size: 1.5rem;
            font-weight: 600;
            letter-spacing: -.02em;
        }

    .product-quote figcaption {
        color: var(--color-muted);
        font-size: .9rem;
    }

        .product-quote figcaption::before {
            content: "— ";
        }

.product-cta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}


/* ==========================================================================
   7. NEWS (one card style for the home page and the list page)
   ========================================================================== */

.news-card {
    position: relative;
    overflow: hidden;
}

.news-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

    .news-card-link:hover {
        color: inherit;
    }

.news-card-accent {
    width: 100%;
    height: 6px;
    background: var(--accent-gradient);
}

.news-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.75rem;
}

.news-card-date {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.25rem;
    color: var(--color-muted);
    font-size: .85rem;
    font-weight: 500;
}

    .news-card-date i {
        color: var(--color-primary);
    }

.news-card-title {
    margin-bottom: 1rem;
    color: var(--color-heading);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    transition: color .2s ease;
}

.news-card:hover .news-card-title {
    color: var(--color-primary-text);
}

.news-card-description {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 1.5rem;
    color: var(--color-muted);
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

.news-card-action {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-top: auto;
    color: var(--color-primary-text);
    font-size: .95rem;
    font-weight: 700;
}

    .news-card-action i {
        transition: transform .25s ease;
    }

.news-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .55rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: #ffffff;
    color: var(--color-muted);
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
}

.news-empty-state {
    padding: 4rem 2rem;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-xl);
    background: #ffffff;
}

.news-archive-content {
    max-width: 680px;
    margin: 0 auto;
}

@media (max-width: 767.98px) {
    .news-card-body {
        padding: 1.4rem;
    }
}

/* Article detail page */
.article-content {
    color: var(--color-text-strong);
    font-size: 1.05rem;
    line-height: 1.8;
}

    .article-content img {
        display: block;
        max-width: 100%;
        height: auto;
        margin: 2rem auto;
        border-radius: var(--radius-md);
    }

    .article-content table {
        width: 100%;
        margin: 2rem 0;
        border-collapse: collapse;
    }

    .article-content th,
    .article-content td {
        padding: .85rem 1rem;
        border: 1px solid #dee2e6;
    }

    .article-content th {
        background: var(--color-surface);
        font-weight: 700;
    }

    .article-content h1,
    .article-content h2,
    .article-content h3,
    .article-content h4 {
        margin-top: 2.25rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .article-content p {
        margin-bottom: 1.25rem;
    }

    .article-content a {
        color: var(--color-primary-text);
        text-decoration-thickness: 1px;
        text-underline-offset: 3px;
    }

    .article-content blockquote {
        margin: 2rem 0;
        padding: 1.25rem 1.5rem;
        border-left: 4px solid var(--color-primary);
        border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
        background: var(--color-surface-tint);
        color: var(--color-text);
    }


/* ==========================================================================
   8. OPEN DATA
   ========================================================================== */

.open-data-content {
    position: relative;
    z-index: 2;
}

.open-data-description {
    margin-bottom: 2rem;
}

.open-data-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2.25rem;
}

.open-data-feature {
    display: flex;
    gap: .9rem;
    padding: 1rem;
    border: 1px solid #e7ecf2;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: 0 7px 22px rgb(20 39 65 / .045);
}

    .open-data-feature h3 {
        margin: 0 0 .35rem;
        font-size: 1rem;
    }

    .open-data-feature p {
        margin: 0;
        color: var(--color-muted);
        font-size: .88rem;
        line-height: 1.55;
    }

.open-data-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.35rem;
}

.open-data-secondary-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--color-primary-text);
    font-weight: 700;
    text-decoration: none;
}

    .open-data-secondary-link i {
        transition: transform .25s ease;
    }

.open-data-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 530px;
}

.open-data-dashboard {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 1.75rem;
    border: 1px solid #e3eaf2;
    border-radius: var(--radius-2xl);
    background: #ffffff;
    box-shadow: 0 28px 70px rgb(20 39 65 / .14);
    transform: rotate(1.2deg);
    transition: transform .35s ease, box-shadow .35s ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .open-data-dashboard:hover {
        transform: rotate(0deg) translateY(-6px);
        box-shadow: 0 34px 80px rgb(20 39 65 / .18);
    }
}

.open-data-dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.open-data-dashboard-label {
    display: block;
    margin-bottom: .35rem;
    color: var(--color-primary-text);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.open-data-dashboard-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.open-data-status {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem .7rem;
    border-radius: var(--radius-pill);
    background: #edf9f2;
    color: var(--color-success-text);
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}

.open-data-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #20c773;
    box-shadow: 0 0 0 4px rgb(32 199 115 / .13);
}

.open-data-chart {
    position: relative;
    overflow: hidden;
    height: 240px;
    padding: 1.4rem 1.4rem 0;
    border: 1px solid var(--color-border-soft);
    border-radius: 1.15rem;
    background: #ffffff;
}

.open-data-chart-grid {
    position: absolute;
    inset: 1.4rem 1.4rem 0;
    background: repeating-linear-gradient(to bottom, transparent 0, transparent 47px, #e7edf4 48px);
}

.open-data-chart-bars {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
    gap: .8rem;
}

    .open-data-chart-bars span {
        display: block;
        flex: 1;
        height: var(--bar-height);
        min-width: 20px;
        border-radius: .55rem .55rem 0 0;
        background: linear-gradient(180deg, #0d6efd 0%, #62a1ff 100%);
        box-shadow: 0 8px 18px rgb(13 110 253 / .18);
    }

        .open-data-chart-bars span:nth-child(even) {
            background: linear-gradient(180deg, #00a9ce 0%, #78d3e7 100%);
        }

.open-data-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
    margin-top: 1rem;
}

.open-data-stat {
    padding: .9rem;
    border: 1px solid var(--color-border-soft);
    border-radius: .9rem;
    background: #ffffff;
}

    .open-data-stat span {
        display: block;
        margin-bottom: .25rem;
        color: var(--color-muted);
        font-size: .7rem;
        font-weight: 700;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    .open-data-stat strong {
        color: var(--color-text-strong);
        font-size: .82rem;
        line-height: 1.4;
    }

@media (max-width: 991.98px) {
    .open-data-visual {
        min-height: auto;
        padding-top: 2rem;
    }

    .open-data-dashboard {
        max-width: 700px;
    }
}

@media (max-width: 575.98px) {
    .open-data-features,
    .open-data-dashboard-cards {
        grid-template-columns: 1fr;
    }

    .open-data-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .open-data-button,
    .open-data-secondary-link {
        justify-content: center;
        width: 100%;
    }

    .open-data-dashboard {
        padding: 1rem;
        border-radius: 1.3rem;
        transform: none;
    }

    .open-data-dashboard-header {
        flex-direction: column;
    }

    .open-data-chart {
        height: 190px;
        padding: 1rem 1rem 0;
    }

    .open-data-chart-grid {
        inset: 1rem 1rem 0;
    }

    .open-data-chart-bars {
        gap: .35rem;
    }
}


/* ==========================================================================
   9. SEMINARS
   ========================================================================== */

.seminars-description {
    max-width: 580px;
}

.seminar-card {
    padding: 1.5rem;
    border-radius: 1.2rem;
}

    .seminar-card h3 {
        margin-bottom: .75rem;
        font-size: 1.05rem;
    }

    .seminar-card p {
        margin-bottom: 0;
        color: var(--color-muted);
        font-size: .9rem;
        line-height: 1.65;
    }


/* ==========================================================================
   10. ABOUT
   ========================================================================== */

.about-timeline {
    position: relative;
    max-width: 1050px;
    margin: 0 auto;
}

    .about-timeline::before {
        content: "";
        position: absolute;
        top: 15px;
        bottom: 15px;
        left: 85px;
        width: 2px;
        background: #dce7f5;
    }

.about-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

    .about-timeline-item:last-child {
        margin-bottom: 0;
    }

.about-timeline-year {
    position: relative;
    z-index: 1;
    align-self: start;
    padding: .8rem 1rem;
    border: 6px solid #ffffff;
    border-radius: var(--radius-pill);
    background: var(--color-primary);
    color: #ffffff;
    font-size: .9rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 8px 24px rgb(13 110 253 / .2);
}

.about-timeline-card {
    padding: 2rem;
}

    .about-timeline-card h3 {
        margin-bottom: 1rem;
        font-size: 1.3rem;
    }

    .about-timeline-card p {
        margin-bottom: 1rem;
        line-height: 1.8;
    }

        .about-timeline-card p:last-child {
            margin-bottom: 0;
        }

.about-products-grid,
.about-business-list {
    display: grid;
    gap: .8rem;
}

.about-business-list {
    gap: 1rem;
}

.about-product {
    padding: 1rem 1.2rem;
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: #f6f9ff;
    color: var(--color-text);
    line-height: 1.7;
}

.about-business-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #ffffff;
}

    .about-business-item p {
        margin: 0;
        color: var(--color-text);
        line-height: 1.6;
    }

.company-details {
    margin: 0;
}

    .company-details > div {
        display: grid;
        grid-template-columns: 160px 1fr;
        gap: 1rem;
        padding: 1rem 0;
        border-bottom: 1px solid var(--color-border-soft);
    }

        .company-details > div:last-child {
            border-bottom: 0;
        }

    .company-details dt {
        color: var(--color-heading);
        font-weight: 700;
    }

    .company-details dd {
        margin: 0;
    }

.domains-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

    .domains-list a {
        display: inline-flex;
        align-items: center;
        gap: .65rem;
        padding: .9rem 1.3rem;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-pill);
        color: var(--color-text-strong);
        font-weight: 600;
        text-decoration: none;
    }

        .domains-list a:hover {
            color: var(--color-primary-text);
        }

    .domains-list i {
        font-size: .75rem;
    }

.certification-intro > p {
    color: var(--color-muted);
    line-height: 1.8;
}

.certification-badges {
    display: grid;
    gap: .8rem;
    margin-top: 2rem;
}

.certification-badge {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1rem 1.2rem;
    border: 1px solid #dfe8f3;
    border-radius: var(--radius-md);
    background: #ffffff;
    color: var(--color-heading);
    font-weight: 700;
}

    .certification-badge i {
        color: var(--color-primary);
        font-size: 1.2rem;
    }

.certification-accordion .accordion-item {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

.certification-accordion .accordion-button {
    padding: 1.4rem 1.6rem;
    background: #ffffff;
    color: var(--color-heading);
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: none;
}

    .certification-accordion .accordion-button:not(.collapsed) {
        background: #f5f9ff;
        color: var(--color-primary-text);
    }

.certification-accordion .accordion-body {
    padding: 1.8rem;
}

    .certification-accordion .accordion-body p {
        color: var(--color-muted);
        line-height: 1.8;
    }

@media (max-width: 767.98px) {
    .about-timeline::before {
        left: 23px;
    }

    .about-timeline-item {
        grid-template-columns: 48px 1fr;
        gap: 1rem;
    }

    /* On mobile the year pill collapses to a dot */
    .about-timeline-year {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        overflow: hidden;
        padding: 0;
        border-width: 5px;
        color: transparent;
        font-size: 0;
    }

        .about-timeline-year::after {
            content: "";
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #ffffff;
        }

    .about-timeline-card {
        padding: 1.4rem;
    }

    .company-details > div {
        grid-template-columns: 1fr;
        gap: .35rem;
    }
}


/* ==========================================================================
   11. ISO
   ========================================================================== */

.iso-standard-card {
    display: flex;
    gap: 1.2rem;
    padding: 1.5rem;
    border: 1px solid #dfe8f3;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
}

.iso-standard-number {
    display: inline-flex;
    flex: 0 0 80px;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    background: var(--color-primary);
    color: #ffffff;
    font-size: .9rem;
    font-weight: 800;
}

.iso-standard-card p {
    color: var(--color-muted);
    line-height: 1.7;
}

.iso-current-text {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--color-border);
}

@media (max-width: 575.98px) {
    .iso-standard-card {
        flex-direction: column;
    }

    .iso-standard-number {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
    }
}


/* ==========================================================================
   12. QISMS
   ========================================================================== */

.qisms-standard-list {
    display: grid;
    gap: .8rem;
    margin-top: 1.5rem;
}

    .qisms-standard-list div {
        display: flex;
        align-items: center;
        gap: .7rem;
        padding: .9rem 1rem;
        border-radius: .9rem;
        background: #ffffff;
        color: var(--color-text-strong);
        font-weight: 700;
    }

    .qisms-standard-list i {
        color: var(--color-primary);
    }

.qisms-pillar-card {
    padding: 1.6rem;
}

    .qisms-pillar-card h3 {
        margin-bottom: .8rem;
        font-size: 1.15rem;
    }

    .qisms-pillar-card p {
        margin-bottom: 0;
        color: var(--color-muted);
        font-size: .92rem;
        line-height: 1.75;
    }

.qisms-cia-list {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.qisms-cia-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

    .qisms-cia-item > span {
        display: inline-flex;
        flex: 0 0 48px;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border-radius: .9rem;
        background: var(--color-primary);
        color: #ffffff;
        font-weight: 800;
    }

    .qisms-cia-item h3 {
        margin: 0 0 .25rem;
        font-size: 1rem;
    }

    .qisms-cia-item p {
        margin: 0;
        color: var(--color-muted);
        font-size: .88rem;
        line-height: 1.55;
    }

.qisms-security-text {
    padding: 2rem;
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    background: var(--color-surface);
}

    .qisms-security-text p {
        color: var(--color-muted);
        line-height: 1.85;
    }

.qisms-signature {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.qisms-signature-date {
    color: var(--color-muted);
    font-style: italic;
}

.qisms-signature-names {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: .25rem;
    color: var(--color-heading);
    text-align: right;
}

    .qisms-signature-names span {
        color: var(--color-muted);
        font-size: .9rem;
    }

.qisms-standard-list,
.qisms-principles-card .qisms-standard-list {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .qisms-signature {
        align-items: flex-start;
        flex-direction: column;
    }

    .qisms-signature-names {
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 575.98px) {
    .qisms-security-text {
        padding: 1.5rem;
    }
}


/* ==========================================================================
   13. CONTACTS
   ========================================================================== */

.contacts-company-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.contacts-company-item {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-md);
    background: var(--color-surface);
}

    .contacts-company-item span {
        display: block;
        margin-bottom: .35rem;
        color: var(--color-muted);
        font-size: .75rem;
        font-weight: 700;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    .contacts-company-item strong,
    .contacts-company-item a {
        color: var(--color-text-strong);
        font-weight: 700;
        text-decoration: none;
        overflow-wrap: anywhere;
    }

        .contacts-company-item a:hover {
            color: var(--color-primary-text);
        }

.contacts-registration {
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
    line-height: 1.75;
}

.contacts-phone-link,
.contact-sidebar-phone {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem;
    border: 1px solid #dbe8f6;
    border-radius: var(--radius-md);
    background: var(--color-surface-tint);
    color: var(--color-heading);
    text-decoration: none;
}

    .contacts-phone-link > i,
    .contact-sidebar-phone > i {
        color: var(--color-primary);
        font-size: 1.2rem;
    }

    .contacts-phone-link span,
    .contact-sidebar-phone span {
        display: flex;
        flex-direction: column;
    }

    .contacts-phone-link small,
    .contact-sidebar-phone small {
        color: var(--color-muted);
    }

    .contacts-phone-link strong {
        font-size: 1.1rem;
    }

.contacts-office-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

    .contacts-office-header span {
        display: block;
        color: var(--color-muted);
        font-size: .82rem;
    }

    .contacts-office-header h3 {
        margin: 0;
    }

.contacts-warning {
    display: flex;
    gap: .8rem;
    margin: 1.25rem 0;
    padding: 1rem;
    border-left: 4px solid #f0ad4e;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: #fff9ec;
    color: #5f4b20;
    line-height: 1.65;
}

    .contacts-warning i {
        flex: 0 0 auto;
        margin-top: .25rem;
        color: #b97309;
    }

.contacts-map-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--color-primary-text);
    font-weight: 700;
    text-decoration: none;
}

.contacts-transport-grid {
    display: grid;
    gap: 1rem;
}

.contacts-transport-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: 0 8px 25px rgb(20 39 65 / .05);
}

    .contacts-transport-card h3 {
        margin: 0 0 .25rem;
        font-size: 1rem;
    }

    .contacts-transport-card p {
        margin: 0;
        color: var(--color-muted);
    }

.contacts-general-card {
    display: flex;
    height: 100%;
    padding: 1.5rem;
    flex-direction: column;
}

    .contacts-general-card h3 {
        margin-bottom: 1rem;
        font-size: 1.05rem;
    }

    .contacts-general-card a {
        margin-bottom: .35rem;
        color: var(--color-primary-text);
        font-size: .9rem;
        font-weight: 600;
        text-decoration: none;
        overflow-wrap: anywhere;
    }

/* ---- Team cards (person cards with video business card) ---- */
.team-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding: 0 1.25rem 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

    /* Barevný pruh za fotkou */
    .team-card::before {
        content: "";
        align-self: stretch;
        height: 4.5rem;
        margin: 0 -1.25rem;
        background: var(--hero-gradient);
        border-bottom: 1px solid var(--color-border-soft);
    }

    .team-card::after {
        content: "";
        position: absolute;
        inset: 0 0 auto;
        height: 3px;
        background: var(--accent-gradient);
    }

/* ---- Avatar ---- */
.team-avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 8rem;
    height: 8rem;
    margin: -4rem 0 1rem;
    padding: 0;
    overflow: visible;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--color-surface-blue);
    box-shadow: 0 0 0 1px var(--color-border), var(--shadow-sm);
    color: var(--color-primary);
    font-size: 2.25rem;
}

    .team-avatar img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        object-position: center top;
    }

button.team-avatar-play {
    cursor: pointer;
    appearance: none;
}

.team-play {
    position: absolute;
    right: -.15rem;
    bottom: .15rem;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: var(--shadow-primary);
    color: #fff;
    font-size: .7rem;
    transition: transform .2s ease, background-color .2s ease;
}

    .team-play i {
        margin-left: 2px;
    }
/* optické vycentrování trojúhelníku */

button.team-avatar-play:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 4px;
}

/* ---- Text ---- */
.team-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.team-name {
    margin: 0 0 .35rem;
    font-size: 1.05rem;
    line-height: 1.3;
}

.team-role {
    margin: 0 0 1.1rem;
    color: var(--color-muted);
    font-size: .86rem;
    line-height: 1.5;
}

.team-links {
    display: grid;
    gap: .4rem;
    width: 100%;
    margin: auto 0 0;
    padding: 1rem 0 0;
    border-top: 1px solid var(--color-border-soft);
    list-style: none;
}

    .team-links a {
        display: grid;
        grid-template-columns: 1.1rem minmax(0, 1fr);
        align-items: center;
        gap: .6rem;
        padding: .4rem .65rem;
        border-radius: var(--radius-sm);
        color: var(--color-heading);
        font-size: .84rem;
        text-align: left;
        text-decoration: none;
        overflow-wrap: anywhere;
        transition: background-color .2s ease, color .2s ease;
    }

    .team-links i {
        color: var(--color-primary);
        text-align: center;
    }

    .team-links a:focus-visible {
        outline: 2px solid var(--color-primary);
        outline-offset: 1px;
    }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .team-card:hover {
        transform: translateY(var(--lift-sm));
        border-color: rgb(13 110 253 / .3);
        box-shadow: var(--shadow-hover);
    }

    button.team-avatar-play:hover .team-play {
        transform: scale(1.12);
    }
}

@media (hover: hover) {
    .team-links a:hover {
        background: var(--color-surface-tint);
        color: var(--color-primary-text);
    }
}

/* ---- Modal s video vizitkou ---- */
.video-card-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
}

.video-card-modal .modal-header,
.video-card-modal .modal-footer {
    border-color: var(--color-border-soft);
}

.video-card-role {
    color: var(--color-muted);
    font-size: .875rem;
}

.video-card-frame {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    background: #0b1220;
}

    .video-card-frame video {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.video-card-error {
    margin: 0;
    padding: 1rem;
    color: #fff;
    text-align: center;
}

    .video-card-error[hidden],
    .video-card-frame video[hidden] {
        display: none;
    }

@media (prefers-reduced-motion: reduce) {
    .team-card, .team-play, .team-links a {
        transition: none;
    }
}


@media (max-width: 767.98px) {
    .contacts-company-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   14. CONTACT FORM
   ========================================================================== */

.contact-form-card .form-label {
    margin-bottom: .55rem;
    color: var(--color-text-strong);
    font-weight: 700;
}

.contact-form-card .form-control {
    min-height: 54px;
    padding: .8rem 1rem;
    border-color: #dbe3ec;
    border-radius: var(--radius-md);
    color: var(--color-heading);
}

.contact-form-card .contact-message {
    min-height: 170px;
    resize: vertical;
}

.contact-form-alert {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-md);
}

    .contact-form-alert i {
        margin-top: .2rem;
        font-size: 1.2rem;
    }

.contact-interest-fieldset {
    padding: 0;
    border: 0;
}

    .contact-interest-fieldset legend {
        margin-bottom: .35rem;
        color: var(--color-text-strong);
        font-size: 1rem;
        font-weight: 700;
    }

.contact-interest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
    margin-top: 1.2rem;
}

.contact-interest-option {
    position: relative;
    display: flex;
    min-height: 72px;
    padding: .9rem;
    align-items: center;
    gap: .75rem;
    border: 1px solid #dfe6ee;
    border-radius: var(--radius-md);
    background: #ffffff;
    color: var(--color-text-strong);
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
}

    .contact-interest-option:has(.form-check-input:checked) {
        border-color: var(--color-primary);
        background: #f2f7ff;
        color: var(--color-primary-text);
    }

    .contact-interest-option .form-check-input {
        position: absolute;
        top: .65rem;
        right: .65rem;
        margin: 0;
    }

.contact-consent {
    padding: 1rem 1rem 1rem 2.6rem;
    border: 1px solid var(--color-border);
    border-radius: .9rem;
    background: var(--color-surface);
}

    .contact-consent .form-check-input {
        margin-left: -1.6rem;
    }

    .contact-consent .form-check-label {
        color: var(--color-muted);
        font-size: .9rem;
        line-height: 1.6;
    }

.contact-submit-button {
    font-weight: 700;
}

.contact-sidebar-list {
    display: grid;
    gap: .85rem;
    margin: 1.6rem 0;
}

    .contact-sidebar-list div {
        display: flex;
        align-items: flex-start;
        gap: .7rem;
        color: var(--color-text);
        font-size: .9rem;
    }

    .contact-sidebar-list i {
        margin-top: .2rem;
        color: var(--color-primary);
    }

.contact-sidebar-small {
    margin-bottom: .8rem;
    color: var(--color-muted);
    font-size: .85rem;
    font-weight: 700;
}

.contact-sidebar-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-top: 1.25rem;
    color: var(--color-primary-text);
    font-weight: 700;
    text-decoration: none;
}

    .contact-sidebar-link i {
        transition: transform .2s ease;
    }

@media (max-width: 991.98px) {
    .contact-interest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .contact-interest-grid {
        grid-template-columns: 1fr;
    }

    .contact-submit-button {
        width: 100%;
    }
}


/* ==========================================================================
   15. CERTIFICATES (shared by ISO and QISMS pages)
   ========================================================================== */

.cert-card {
    display: flex;
    overflow: hidden;
    width: 100%;
    height: 100%;
    padding: 0;
    flex-direction: column;
    border-radius: 1.3rem;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.cert-preview {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #f3f5f8;
}

    .cert-preview img {
        display: block;
        width: 100%;
        height: 100%;
        padding: .75rem;
        object-fit: contain;
        transition: transform .35s ease;
    }

/* Overlay is revealed on hover (hover devices) and on keyboard focus */
.cert-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .6rem;
    background: rgb(13 35 68 / .72);
    color: #ffffff;
    font-weight: 700;
    opacity: 0;
    transition: opacity .3s ease;
}

    .cert-overlay i {
        font-size: 1.6rem;
    }

.cert-card:focus-visible .cert-overlay {
    opacity: 1;
}

.cert-body {
    display: flex;
    padding: 1.2rem;
    flex-direction: column;
    gap: .3rem;
}

    .cert-body strong {
        color: var(--color-heading);
        font-size: 1rem;
    }

    .cert-body span {
        color: var(--color-muted);
        font-size: .88rem;
    }

.cert-modal .modal-dialog {
    max-width: min(1200px, calc(100vw - 2rem));
}

.cert-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 90px rgb(15 23 42 / .3);
}

.cert-modal .modal-header {
    border-bottom: 1px solid var(--color-border);
}

.cert-modal .modal-body {
    padding: 1rem;
    background: #eef1f5;
    text-align: center;
}

    .cert-modal .modal-body img {
        display: block;
        max-width: 100%;
        height: auto;
        max-height: calc(100vh - 160px);
        margin: 0 auto;
        object-fit: contain;
        background: #ffffff;
        box-shadow: 0 8px 30px rgb(15 23 42 / .15);
    }

@media (max-width: 575.98px) {
    .cert-modal .modal-dialog {
        max-width: calc(100vw - 1rem);
        margin: .5rem;
    }
}

/* ==========================================================================
    X. Cookies
   ========================================================================== */
.cc {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 1080;
    width: min(26rem, calc(100vw - 2rem));
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #212529);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .75rem;
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .15);
    animation: cc-in .25s ease-out;
}

    .cc[hidden] {
        display: none;
    }

.cc-main {
    padding: 1rem 1.125rem;
}

.cc-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 .375rem;
}

.cc-text {
    font-size: .875rem;
    margin: 0 0 .75rem;
}

.cc-details {
    margin-bottom: .75rem;
}

    .cc-details[hidden] {
        display: none;
    }

.cc-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .5rem 0;
    border-top: 1px solid var(--bs-border-color, #dee2e6);
    font-size: .875rem;
}

    .cc-option label {
        flex: 1;
        cursor: pointer;
    }

.cc-hint {
    display: block;
    font-size: .8125rem;
    color: var(--bs-secondary-color, #6c757d);
}

.cc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

.cc-more {
    margin-left: auto;
}

@keyframes cc-in {
    from {
        opacity: 0;
        transform: translateY(.5rem);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cc {
        animation: none;
    }
}

@media (max-width: 575.98px) {
    .cc {
        left: .5rem;
        right: .5rem;
        bottom: .5rem;
        width: auto;
    }
}


/* ==========================================================================
   16. LEGACY
   Probably unused (they were in your old file but I could not see them used
   in any section). Search your views for each class, then delete what is
   not found.
   ========================================================================== */

.product-card {
    height: 100%;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: 0 4px 20px rgb(0 0 0 / .05);
}

.placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    background: #f1f3f5;
}

.counter {
    color: var(--color-primary);
    font-size: 3rem;
    font-weight: 700;
}


/* ==========================================================================
   17. BRAND BACKGROUND (blue waves)
   Přidejte na KONEC site.css (musí být až za sekcemi 4, 6 a 13, aby přepsal jejich barvy).

   Obrázek:  wwwroot/img/bg-waves.jpg  +  wwwroot/img/bg-waves.webp
   Cesta níže počítá s tím, že site.css leží ve wwwroot/css/. Jinak upravte "../img/".

   Co se mění (bez zásahu do cshtml, kromě patičky v _Layout):
   - všechny .page-hero dostanou obrázek s tmavým překryvem a bílý text
   - sekce s CTA boxem (.section-alt obsahující .cta-box) dostane obrázek jako pozadí, bílá karta na něm vynikne
   - patička je tmavě modrá
   - nová utilita .section-brand pro libovolnou další sekci
   ========================================================================== */

:root {
    /* Překryv zajišťuje kontrast bílého textu min. 5:1 na nejsvětlejších místech obrázku */
    --brand-overlay: linear-gradient(100deg, rgb(8 38 102 / .62) 0%, rgb(8 38 102 / .5) 100%);
    --brand-overlay-strong: linear-gradient(180deg, rgb(8 38 102 / .55) 0%, rgb(8 38 102 / .72) 100%);
    --brand-fallback: #0b3a8f;
    --brand-text-soft: rgb(255 255 255 / .9);
    --brand-accent-text: #9fdcff; /* zvýrazněný text na tmavém podkladu */
}

/* ---- Pozadí: JPG jako záloha, WebP (34 kB místo 89 kB) tam, kde ho prohlížeč umí ---- */
.page-hero,
.section-brand,
.section-alt:has(> .container > .cta-box),
footer {
    background-color: var(--brand-fallback);
    background-image: var(--brand-overlay), url("../img/bg-waves.jpg");
    background-image: var(--brand-overlay), image-set(url("../img/bg-waves.webp") type("image/webp"), url("../img/bg-waves.jpg") type("image/jpeg"));
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.section-alt:has(> .container > .cta-box),
.section-brand {
    background-image: var(--brand-overlay-strong), url("../img/bg-waves.jpg");
    background-image: var(--brand-overlay-strong), image-set(url("../img/bg-waves.webp") type("image/webp"), url("../img/bg-waves.jpg") type("image/jpeg"));
}

/* ---- Hero: bílý text na obrázku ---- */
.page-hero h1,
.page-hero h2,
.page-hero h3,
.page-hero .display-4,
.page-hero-content,
.hero-content {
    color: #fff;
}

.page-hero .lead,
.page-hero-home .lead,
.page-hero .contacts-hero-text,
.page-hero p {
    color: var(--brand-text-soft);
}

.page-hero h1 em {
    color: var(--brand-accent-text);
}

.page-hero-content a:not(.btn),
.hero-content a:not(.btn) {
    color: #fff;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.page-hero .eyebrow {
    border-color: rgb(255 255 255 / .35);
    background: rgb(255 255 255 / .14);
    color: #fff;
}

/* Dekorativní kruhy v hero jsou teď světlé místo modrých */
.page-hero::before,
.page-hero::after {
    background: rgb(255 255 255 / .06);
}

.hero-visual::before {
    background: rgb(255 255 255 / .1);
}

.hero-visual::after {
    border-color: rgb(255 255 255 / .16);
}

/* Tlačítka v hero: bílé místo modrých (modrá na modré by nebyla vidět) */
.page-hero .btn-primary {
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #fff;
    --bs-btn-color: var(--color-primary-text);
    --bs-btn-hover-bg: var(--color-surface-blue);
    --bs-btn-hover-border-color: var(--color-surface-blue);
    --bs-btn-hover-color: var(--color-primary-text);
    --bs-btn-active-bg: var(--color-surface-blue);
    --bs-btn-active-border-color: var(--color-surface-blue);
    --bs-btn-active-color: var(--color-primary-text);
    box-shadow: 0 10px 25px rgb(0 0 0 / .22);
}

.page-hero .btn-outline-primary,
.page-hero .btn-outline-secondary {
    --bs-btn-color: #fff;
    --bs-btn-border-color: rgb(255 255 255 / .7);
    --bs-btn-hover-bg: rgb(255 255 255 / .16);
    --bs-btn-hover-border-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: rgb(255 255 255 / .24);
    --bs-btn-active-color: #fff;
}

.page-hero .btn:focus-visible {
    box-shadow: 0 0 0 .1rem rgb(8 38 102), 0 0 0 .25rem #fff;
}

/* ---- CTA sekce: bílá karta na obrázku ---- */
.section-alt:has(> .container > .cta-box) .cta-box {
    border-color: rgb(255 255 255 / .6);
    box-shadow: 0 24px 60px rgb(4 20 60 / .35);
}

/* ---- Utilita pro další sekce na obrázku: <section class="section section-brand"> ---- */
.section-brand {
    color: #fff;
}

    .section-brand h2,
    .section-brand h3,
    .section-brand .lead {
        color: #fff;
    }

    .section-brand .eyebrow {
        border-color: rgb(255 255 255 / .35);
        background: rgb(255 255 255 / .14);
        color: #fff;
    }

/* ---- Patička ---- */
footer {
    border-top: 0 !important;
    background-image: linear-gradient(180deg, rgb(8 38 102 / .78), rgb(8 38 102 / .9)), url("../img/bg-waves.jpg");
    background-image: linear-gradient(180deg, rgb(8 38 102 / .78), rgb(8 38 102 / .9)), image-set(url("../img/bg-waves.webp") type("image/webp"), url("../img/bg-waves.jpg") type("image/jpeg"));
    background-position: center bottom;
    color: var(--brand-text-soft);
}

    footer a {
        color: #fff;
    }

        footer a:hover,
        footer a:focus-visible {
            color: var(--brand-accent-text);
        }

    /* Bootstrapí text-body-secondary má !important; v patičce ho přebijeme */
    footer.text-body-secondary {
        color: var(--brand-text-soft) !important;
    }


/* ==========================================================================
   18. RESPONSIVE: tablets and phones
   Přidejte na úplný konec site.css (za sekci 17). Neruší existující media queries,
   jen doplňuje to, co chybělo.

   Breakpointy (stejné jako Bootstrap 5):
     <= 991.98px  tablet a menší       <= 767.98px  malý tablet / velký telefon
     <= 575.98px  telefon              (hover: none) dotyková zařízení
   ========================================================================== */


/* ---- 18.1 Základ ------------------------------------------------------- */

/* Pojistka proti vodorovnému posunu stránky (clip, ne hidden: nerozbije position: sticky) */
html {
    overflow-x: clip;
}

/* Na mobilech 100vh počítá i lištu prohlížeče, 100dvh ne. Starší prohlížeče použijí 100vh výše. */
@supports (min-height: 100dvh) {
    body {
        min-height: calc(100dvh - var(--nav-height));
    }
}

img,
video,
iframe,
svg {
    max-width: 100%;
}

/* Dlouhé nadpisy a e-maily se zalomí místo přetečení (hyphens funguje, když má <html lang="cs">) */
h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    hyphens: auto;
}

.team-links a,
.contacts-company-item,
.contacts-general-card a,
.company-details dd,
.article-content a {
    overflow-wrap: anywhere;
}

/* iOS Safari přibližuje stránku, když má pole menší písmo než 16 px.
   Root má na telefonech 14 px, takže 1rem by nestačilo. */
@media (max-width: 991.98px) {
    .form-control,
    .form-select,
    textarea {
        font-size: max(16px, 1rem);
    }
}

/* Okraje stránky 16 px na telefonu */
@media (max-width: 575.98px) {
    .container {
        --bs-gutter-x: 2rem;
        padding-inline: calc(var(--bs-gutter-x) * .5);
    }
}


/* ---- 18.2 Navigace ----------------------------------------------------- */

@media (max-width: 991.98px) {
    /* Otevřené menu se vejde na displej a dá se v něm rolovat */
    .navbar-collapse {
        max-height: calc(100dvh - var(--nav-height));
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-bottom: .75rem;
    }

    /* Větší plocha pro prst (min. 44 px) */
    .navbar .nav-link {
        padding-block: .75rem;
    }

    .navbar-toggler {
        padding: .6rem .75rem;
    }
}

@media (max-width: 575.98px) {
    .logo {
        max-height: 40px;
    }
}


/* ---- 18.3 Hero a CTA --------------------------------------------------- */

@media (max-width: 767.98px) {
    .page-hero h1 {
        font-size: clamp(2rem, 9vw, 2.75rem);
        line-height: 1.12;
    }

    .page-hero .lead {
        font-size: 1.05rem;
        line-height: 1.7;
    }

    .cta-box .btn,
    .page-hero .btn-lg {
        padding: .8rem 1.35rem;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    /* Tlačítka v hero na celou šířku, pod sebou */
    .page-hero-content .btn {
        display: flex;
        width: 100%;
        justify-content: center;
    }

        .page-hero-content .btn + .btn {
            margin-top: .75rem;
        }
}

/* Telefon naležato: málo výšky, tak menší odsazení sekcí */
@media (max-height: 500px) and (orientation: landscape) {
    :root {
        --section-padding: 2.5rem;
        --section-padding-compact: 2rem;
    }

    .min-vh-75 {
        min-height: auto;
    }

    .hero-content {
        padding-block: 2rem;
    }
}


/* ---- 18.4 Pozadí s obrázkem: menší soubor pro telefony ------------------ */
/* bg-waves-sm.jpg/.webp (960 px, 9 kB WebP / 22 kB JPG) dejte vedle velkých do wwwroot/img/ */

@media (max-width: 767.98px) {
    .page-hero,
    .section-brand,
    .section-alt:has(> .container > .cta-box) {
        background-image: var(--brand-overlay-strong), url("../img/bg-waves-sm.jpg");
        background-image: var(--brand-overlay-strong), image-set(url("../img/bg-waves-sm.webp") type("image/webp"), url("../img/bg-waves-sm.jpg") type("image/jpeg"));
    }

    footer {
        background-image: linear-gradient(180deg, rgb(8 38 102 / .78), rgb(8 38 102 / .9)), url("../img/bg-waves-sm.jpg");
        background-image: linear-gradient(180deg, rgb(8 38 102 / .78), rgb(8 38 102 / .9)), image-set(url("../img/bg-waves-sm.webp") type("image/webp"), url("../img/bg-waves-sm.jpg") type("image/jpeg"));
    }
}


/* ---- 18.5 Patička a bezpečné okraje (výřez displeje, home indikátor) ---- */

/* Bootstrapí py-3 má !important, proto i tady */
footer.py-3 {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
}

footer a {
    display: inline-block;
    padding: .35rem .5rem; /* větší cíl pro klepnutí na ikonu */
}


/* ---- 18.6 Produkty ----------------------------------------------------- */

@media (max-width: 767.98px) {
    .product-title {
        font-size: 1.15rem;
    }

    .why-box {
        padding: 1.25rem;
    }

    .product-quote {
        margin-top: 2rem;
    }

        .product-quote blockquote p {
            font-size: 1.2rem;
        }
}

@media (max-width: 575.98px) {
    .product-cta .btn {
        flex: 1 1 100%;
    }

    .product-accordion .accordion-item {
        margin-bottom: 1rem;
    }

    .feature-card,
    .benefit-box {
        padding: 1.1rem;
    }
}


/* ---- 18.7 Novinky a články --------------------------------------------- */

@media (max-width: 767.98px) {
    .article-content {
        font-size: 1rem;
        line-height: 1.75;
    }

        /* Široké tabulky se posouvají do strany uvnitř textu, ne celá stránka */
        .article-content table {
            display: block;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .article-content pre {
            overflow-x: auto;
        }

        .article-content blockquote {
            padding: 1rem 1.1rem;
        }

    .news-card-title {
        font-size: 1.15rem;
    }
}


/* ---- 18.8 O nás, ISO, QISMS -------------------------------------------- */

@media (max-width: 991.98px) {
    .iso-current-box {
        padding: 2rem;
    }

    .qisms-security-text {
        padding: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .about-timeline-item {
        margin-bottom: 1.25rem;
    }

    .about-business-item,
    .qisms-cia-item,
    .certification-badge {
        padding: .9rem;
    }

    .certification-accordion .accordion-button {
        padding: 1.1rem 1.25rem;
        font-size: 1rem;
    }

    .certification-accordion .accordion-body {
        padding: 1.25rem;
    }

    .domains-list a {
        padding: .75rem 1.1rem;
    }
}

@media (max-width: 575.98px) {
    .qisms-cia-item {
        align-items: flex-start;
    }

    .about-timeline-card h3 {
        font-size: 1.15rem;
    }
}


/* ---- 18.9 Open data ----------------------------------------------------- */

@media (max-width: 991.98px) {
    /* Natočený panel na dotykových zařízeních jen zbytečně zasahuje do okrajů */
    .open-data-dashboard,
    .hero-image-wrapper {
        transform: none;
    }
}


/* ---- 18.10 Kontakty a týmové karty -------------------------------------- */

@media (max-width: 575.98px) {
    .team-avatar {
        width: 7rem;
        height: 7rem;
        margin-top: -3.5rem;
    }

    .team-card::before {
        height: 4rem;
    }

    .contacts-phone-link,
    .contact-sidebar-phone {
        padding: .9rem;
    }

    .contacts-warning {
        padding: .85rem;
    }
}

/* Dotyk: odkazy v kartě mají min. 44 px výšky */
@media (pointer: coarse) {
    .team-links a,
    .contacts-phone-link,
    .contact-sidebar-phone,
    .contacts-map-link,
    .contact-sidebar-link {
        min-height: 44px;
    }
}

/* Modal s video vizitkou */
.video-card-frame {
    max-height: calc(100dvh - 11rem);
}

@media (max-width: 575.98px) {
    .video-card-modal .modal-dialog {
        margin: .5rem;
    }

    .video-card-modal .modal-header,
    .video-card-modal .modal-footer {
        padding: .75rem 1rem;
    }

        .video-card-modal .modal-footer .btn {
            flex: 1 1 auto;
        }
}

@media (max-height: 500px) and (orientation: landscape) {
    .video-card-frame {
        max-height: calc(100dvh - 7rem);
    }
}


/* ---- 18.11 Formuláře ---------------------------------------------------- */

@media (max-width: 767.98px) {
    .contact-form-card {
        padding: 1.75rem;
    }

        .contact-form-card .form-control {
            min-height: 50px;
        }
}

@media (max-width: 575.98px) {
    .contact-interest-option {
        min-height: 60px;
        padding: .75rem .9rem;
    }

    .contact-consent {
        padding: .9rem .9rem .9rem 2.4rem;
    }

    .contact-form-alert {
        padding: .85rem;
    }
}


/* ---- 18.12 Certifikáty -------------------------------------------------- */

/* Na dotyku není hover, takže "Zvětšit" je vidět stále, jako pruh dole */
@media (hover: none) {
    .cert-overlay {
        justify-content: flex-end;
        flex-direction: row;
        padding: .65rem;
        background: linear-gradient(180deg, transparent 55%, rgb(13 35 68 / .78));
        font-size: .85rem;
        opacity: 1;
    }

        .cert-overlay i {
            font-size: 1rem;
        }

    /* Šipka u odkazu na produkt je také vidět hned */
    .product-link::after {
        opacity: 1;
    }
}


/* ---- 18.13 Cookie lišta ------------------------------------------------- */

.cc {
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
}

@media (max-width: 575.98px) {
    .cc {
        bottom: calc(.5rem + env(safe-area-inset-bottom, 0px));
    }

    .cc-actions .btn {
        flex: 1 1 auto;
    }

    .cc-more {
        margin-left: 0;
    }
}

@media (pointer: coarse) {
    .cc .btn {
        min-height: 44px;
    }
}

/* Navbar má vždy stejnou výšku jako --nav-height (stejná proměnná posouvá i obsah stránky) */
.navbar {
    min-height: var(--nav-height);
    padding-block: 0;
}

    .navbar > .container {
        min-height: var(--nav-height);
        align-items: center;
    }

.navbar-brand {
    display: flex;
    align-items: center;
    margin-block: 0;
    padding-block: 0;
}

.logo {
    display: block;
    width: auto;
    height: auto;
    max-height: 46px;
}

@media (max-width: 575.98px) {
    :root {
        --nav-height: 64px;
    }

    .logo {
        max-height: 38px;
    }
}