/**
 * Site pages (terms, privacy, cookies, contact and other text pages)
 *
 * Loaded on the whole site from wp-content/uploads/hrdinov/site-pages.css by the
 * Elementor Custom Code "Obsahové stránky".
 *
 * Fonts, sizes and colours of body text, links and headings h1-h6 come from the
 * Elementor Site Settings (global fonts and colours), not from this file.
 *
 * Colors
 *
 * Dark text: --e-global-color-cc13b43
 * Light text: --e-global-color-b9c7afc
 * Accent: --e-global-color-accent
 * Lines and muted text (Warm grey): --e-global-color-secondary
 * Badge (Ochre): --e-global-color-682cb36
 *
 * Spacing: Elementor variables --mezera-10 ... --mezera-80, --zaobleni.
 *
 * Every var() has a fallback value so the page keeps its layout when someone
 * deletes a global value in Elementor.
 * Line heights and text widths have no global value in Elementor, so they are
 * set here.
 * Breakpoints are the Elementor ones (mobile max 767px).
 */




/**
 * Page
 */
.site-page {
    max-width: 67.5rem;
    margin: 0 auto;
    padding: var(--mezera-10, 0.625rem) var(--mezera-20, 1.25rem) 0;
    line-height: 1.7;
    text-wrap: pretty;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}
.site-page * {
    box-sizing: border-box;
}
/** Links in running text are underlined so they stand out from the text, the global link is not */
.site-page a {
    text-decoration: underline;
    text-decoration-thickness: 0.0625rem;
    text-underline-offset: 0.125rem;
}
/** Page title */
.site-page h1 {
    margin: 0 0 var(--mezera-10, 0.625rem);
    line-height: 1.1;
}
/** Operator line under the title */
.site-page .page-operator {
    margin: 0 0 var(--mezera-20, 1.25rem);
    color: var(--e-global-color-secondary, #B8B2B1);
}
/** Lead paragraph */
.site-page .page-lead {
    margin: 0;
    padding-left: var(--mezera-20, 1.25rem);
    border-left: 3px solid var(--e-global-color-accent, #FB7013);
}
/** Highlighted block (contact page lead, Discord): the white box of the home page (main-box-with-border) */
.site-page .page-highlight {
    margin: 0;
    padding: var(--mezera-20, 1.25rem);
    background: var(--e-global-color-b9c7afc, #FFFFFF);
    border: 1px solid var(--e-global-color-secondary, #B8B2B1);
    border-radius: var(--zaobleni, 0.4375rem);
}
/** "Coming soon" badge at the start of a paragraph, as the badges of the home page */
.site-page .badge-soon {
    display: inline-block;
    padding: 0 var(--mezera-10, 0.625rem);
    font-weight: var(--e-global-typography-primary-font-weight, 500);
    background: var(--e-global-color-682cb36, #EEC452);
    color: var(--e-global-color-cc13b43, #221F20);
    border-radius: var(--zaobleni, 0.4375rem);
}
/** Section title */
.site-page h2.section-title {
    margin: var(--mezera-40, 2.5rem) 0 var(--mezera-20, 1.25rem);
    line-height: 1.2;
}




/**
 * Summary tiles
 */
.site-page .summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--mezera-60, 3.75rem);
    row-gap: 0;
    margin-top: var(--mezera-20, 1.25rem);
    border-top: 1px solid var(--e-global-color-secondary, #B8B2B1);
}
.site-page .summary-item {
    padding: var(--mezera-30, 1.875rem) 0 var(--mezera-20, 1.25rem);
    border-bottom: 1px solid var(--e-global-color-secondary, #B8B2B1);
}
/** The last row has no line, the next block draws its own and the two would double */
.site-page .summary-item:last-child,
.site-page .summary-item:nth-last-child(2):nth-child(odd) {
    border-bottom: 0;
}
/** Tile title, the orange bar above it is the site-wide .title-bar */
.site-page .summary-item h3 {
    margin: 0 0 var(--mezera-10, 0.625rem);
    line-height: 1.32;
}
.site-page .summary-item p {
    margin: 0;
}
/** Contact value (e-mail, phone, address) under the tile title */
.site-page .summary-item .contact-value {
    display: block;
    margin: 0 0 var(--mezera-10, 0.625rem);
    font-weight: var(--e-global-typography-primary-font-weight, 500);
}
.site-page .summary-item p a.contact-value {
    color: var(--e-global-color-cc13b43, #221F20);
    text-decoration: none;
}
.site-page .summary-item p a.contact-value:hover {
    color: var(--e-global-color-accent, #FB7013);
}




/**
 * Legal text (white block under the summary)
 */
.site-page .legal-text {
    margin-top: var(--mezera-20, 1.25rem);
    padding: var(--mezera-10, 0.625rem) clamp(1.25rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 3.75rem);
    background: var(--e-global-color-b9c7afc, #FFFFFF);
    border-top: 2px solid var(--e-global-color-secondary, #B8B2B1);
}
.site-page .legal-text-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--mezera-10, 0.625rem) var(--mezera-20, 1.25rem);
    margin-bottom: 0;
    padding: var(--mezera-30, 1.875rem) 0 var(--mezera-20, 1.25rem);
    border-bottom: 1px solid var(--e-global-color-secondary, #B8B2B1);
}
.site-page .legal-text-header h2 {
    margin: 0;
    line-height: 1.2;
}
/** The note sits on its own line under the header title */
.site-page .legal-text-note {
    flex-basis: 100%;
    max-width: 52em;
    margin: 0;
    color: var(--e-global-color-secondary, #B8B2B1);
}
/** The note is a paragraph inside the legal text, the header already draws the line */
.site-page .legal-text p.legal-text-note {
    padding: 0;
    border-bottom: 0;
}
/** Article title */
.site-page .article-title,
.site-page .legal-text .document-text h3 {
    margin: var(--mezera-30, 1.875rem) 0 0;
    padding-bottom: var(--mezera-10, 0.625rem);
    line-height: 1.3;
    border-bottom: 1px solid var(--e-global-color-secondary, #B8B2B1);
}
/** Paragraph, room on the left for the clause number */
.site-page .legal-text p {
    position: relative;
    max-width: 62em;
    margin: 0;
    padding: var(--mezera-20, 1.25rem) 0 var(--mezera-20, 1.25rem) var(--mezera-80, 5rem);
    line-height: 1.72;
    border-bottom: 1px solid var(--e-global-color-secondary, #B8B2B1);
}
.site-page .legal-text p:last-child {
    border-bottom: 0;
}
/** Clause number in the left margin; bound to the class because a bold word inside a sentence must stay in the text */
.site-page .legal-text p > b.clause-number {
    position: absolute;
    top: var(--mezera-20, 1.25rem);
    left: 0;
    width: 3.75rem;
    font-weight: var(--e-global-typography-primary-font-weight, 500);
    line-height: 1.72;
    color: var(--e-global-color-accent, #FB7013);
    font-variant-numeric: tabular-nums;
}
/** Subclause */
.site-page .legal-text p.subclause {
    margin-left: var(--mezera-80, 5rem);
    padding-top: var(--mezera-10, 0.625rem);
    padding-bottom: 0;
    padding-left: var(--mezera-80, 5rem);
    border-bottom: 0;
}
/** A paragraph and its subclauses are one unit: the line and spacing come after the last subclause */
.site-page .legal-text p:has(+ p.subclause) {
    padding-bottom: 0;
    border-bottom: 0;
}
.site-page .legal-text p.subclause:not(:has(+ p.subclause)) {
    padding-bottom: var(--mezera-20, 1.25rem);
    border-bottom: 1px solid var(--e-global-color-secondary, #B8B2B1);
}
.site-page .legal-text p.subclause:last-child {
    border-bottom: 0;
}
.site-page .legal-text p.subclause > b.clause-number {
    top: var(--mezera-10, 0.625rem);
    left: var(--mezera-20, 1.25rem);
    width: 3.125rem;
    color: var(--e-global-color-secondary, #B8B2B1);
}
/** Short line marks the subclause number, not the whole paragraph */
.site-page .legal-text p.subclause::before {
    content: "";
    position: absolute;
    top: var(--mezera-10, 0.625rem);
    left: 0;
    width: 0.0625rem;
    height: 1.4em;
    background: var(--e-global-color-secondary, #B8B2B1);
}
/** Pointer to a sister page, stands in place of a moved block and has no number */
.site-page .legal-text p.see-also {
    padding-left: var(--mezera-80, 5rem);
    font-style: italic;
    color: var(--e-global-color-cc13b43, #221F20);
    border-bottom: 0;
}
.site-page .legal-text p.see-also::before {
    content: "→";
    position: absolute;
    top: var(--mezera-20, 1.25rem);
    left: 0;
    width: 3.75rem;
    font-style: normal;
    color: var(--e-global-color-accent, #FB7013);
}




/**
 * Standalone documents (privacy, cookies), no clause numbers
 */
.site-page .legal-text .document-text p {
    padding-left: 0;
}
.site-page .legal-text .document-text h5 {
    margin: var(--mezera-30, 1.875rem) 0 var(--mezera-10, 0.625rem);
    line-height: 1.35;
}
.site-page .legal-text .document-text ul {
    margin: 0;
    padding: var(--mezera-10, 0.625rem) 0 var(--mezera-20, 1.25rem) 0;
    list-style: none;
    border-bottom: 1px solid var(--e-global-color-secondary, #B8B2B1);
}
.site-page .legal-text .document-text ul li p {
    position: relative;
    padding: var(--mezera-10, 0.625rem) 0 var(--mezera-10, 0.625rem) var(--mezera-30, 1.875rem);
    border-bottom: 0;
}
/** Bullet centred on the first line */
.site-page .legal-text .document-text ul li p::before {
    content: "";
    position: absolute;
    top: calc(var(--mezera-10, 0.625rem) + 0.85em - 0.15625rem);
    left: var(--mezera-10, 0.625rem);
    width: 0.3125rem;
    height: 0.3125rem;
    border-radius: 50%;
    background: var(--e-global-color-accent, #FB7013);
}




/**
 * Contact page
 */
/** The form is an Elementor widget outside .site-page; !important because the Elementor container sets max-width 100% with a stronger rule */
.elementor .elementor-element.contact-form {
    width: 100%;
    max-width: 67.5rem !important;
    margin: 0 auto !important;
    padding: 0 var(--mezera-20, 1.25rem);
    box-sizing: border-box;
}
.site-page .contact-map {
    margin: 0;
}
.site-page .contact-map img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--zaobleni, 0.4375rem);
}
.site-page .contact-map figcaption {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--mezera-10, 0.625rem) var(--mezera-20, 1.25rem);
    padding-top: var(--mezera-10, 0.625rem);
    /* the theme gives figcaption its own size and grey; the caption takes the page text instead */
    font-size: inherit;
    color: inherit;
}
.site-page .contact-map figcaption p {
    margin: 0;
}
.site-page .contact-map .map-attribution {
    color: var(--e-global-color-secondary, #B8B2B1);
}
.site-page .legal-text .company-details {
    display: grid;
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    margin: 0;
}
.site-page .legal-text .company-details dt,
.site-page .legal-text .company-details dd {
    margin: 0;
    padding: var(--mezera-10, 0.625rem) 0;
    border-bottom: 1px solid var(--e-global-color-secondary, #B8B2B1);
}
.site-page .legal-text .company-details dt {
    padding-right: var(--mezera-20, 1.25rem);
    color: var(--e-global-color-secondary, #B8B2B1);
}




/**
 * Home page product rows
 */
/**
 * Computer: one full row of the shop card grid (as many columns as fit), cards of a second row hidden.
 * Tablet: two columns, two rows. Phone: two cards. Device ranges are the Elementor breakpoints.
 * Container widths = n cards × 15.3125rem (shop card min-width) + (n - 1) × --mezera-20, written out
 * because container queries cannot read variables. The long selector and !important match the shop CSS
 * that sets the card display; nth-of-type because the loop puts its <style> before the cards.
 */
.elementor-widget-loop-grid.hrd-rada-zbozi {
    container-type: inline-size;
}
@container (width < 81.5625rem) {
    .elementor-widget-loop-grid.hrd-rada-zbozi .elementor-loop-container > .e-loop-item.product:nth-of-type(n+5) {
        display: none !important;
    }
}
@media (min-width: 1025px) {
    @container (width < 65rem) {
        .elementor-widget-loop-grid.hrd-rada-zbozi .elementor-loop-container > .e-loop-item.product:nth-of-type(n+4) {
            display: none !important;
        }
    }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .elementor-widget-loop-grid.hrd-rada-zbozi .elementor-loop-container {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 767px) {
    .elementor-widget-loop-grid.hrd-rada-zbozi .elementor-loop-container > .e-loop-item.product:nth-of-type(n+3) {
        display: none !important;
    }
}




/**
 * Mobile
 */
@media (max-width: 767px) {
    .site-page .summary-grid {
        grid-template-columns: 1fr;
    }
    .site-page .summary-item:nth-last-child(2):nth-child(odd) {
        border-bottom: 1px solid var(--e-global-color-secondary, #B8B2B1);
    }
    .site-page .legal-text {
        margin-top: var(--mezera-30, 1.875rem);
        padding-right: var(--mezera-20, 1.25rem);
        padding-left: var(--mezera-20, 1.25rem);
    }
    .site-page .legal-text p {
        padding-top: var(--mezera-20, 1.25rem);
        padding-left: 0;
    }
    .site-page .legal-text p > b.clause-number {
        position: static;
        display: block;
        width: auto;
        margin-bottom: var(--mezera-10, 0.625rem);
    }
    .site-page .legal-text p.subclause {
        margin-left: 0;
        padding-left: var(--mezera-20, 1.25rem);
    }
    .site-page .legal-text p.subclause::before {
        top: var(--mezera-20, 1.25rem);
        height: 1.4em;
    }
    .site-page .legal-text p.see-also {
        padding-left: var(--mezera-20, 1.25rem);
    }
    .site-page .legal-text p.see-also::before {
        top: var(--mezera-20, 1.25rem);
        width: auto;
    }
    .site-page .legal-text .company-details {
        grid-template-columns: 1fr;
    }
    .site-page .legal-text .company-details dt {
        padding-bottom: 0;
        border-bottom: 0;
    }
}
