/* =========================================================
   Uhelné sklady Sadská
   Jeden CSS soubor, žádné frameworky, žádné externí fonty.

   Typografie je záměrně velká – hodně zákazníků je ve vyšším
   věku a web čtou na mobilu. Základ je 19 px, nikde není nic
   menšího než 16 px.
   ========================================================= */

:root {
    /* Teplé krémové podklady místo skoro bílé plochy. */
    --bg:          #F2EDE4;
    --bg-2:        #EAE2D4;
    --surface:     #FFFFFF;
    --surface-2:   #E7DFD1;
    --surface-3:   #DDD2BF;

    --ink:         #14151A;
    --ink-2:       #32363D;
    --muted:       #5B6068;

    --line:        #D9D0C0;
    --line-strong: #C3B7A2;

    --accent:      #A8441D;
    --accent-dark: #8A3616;
    --accent-soft: #F7E7DC;

    --dark:        #1E1F24;
    --dark-2:      #2A2C33;

    --ok:          #2A6340;
    --ok-soft:     #E3F0E8;
    --warn:        #7A4E0B;
    --warn-soft:   #FBEFD8;

    --radius:      14px;
    --radius-lg:   22px;

    --shadow-sm:   0 1px 3px rgba(20, 21, 26, .07);
    --shadow:      0 6px 20px rgba(20, 21, 26, .09);
    --shadow-lg:   0 22px 50px rgba(20, 21, 26, .16);

    --wrap:        1180px;
    --gap:         clamp(20px, 3vw, 34px);
    --section:     clamp(60px, 8vw, 112px);

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
            "Helvetica Neue", Arial, "Noto Sans", sans-serif;

    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset ---------- */

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink-2);
    font-family: var(--font);
    font-size: 19px;          /* větší základ kvůli čitelnosti */
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }

h1, h2, h3, h4 {
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.021em;
    font-weight: 700;
    margin: 0 0 .5em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 1.3rem + 1.9vw, 2.8rem); }
h3 { font-size: clamp(1.28rem, 1.1rem + .6vw, 1.55rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- layout ---------- */

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: clamp(18px, 4vw, 32px);
}

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(44px, 5vw, 74px); }

/* Střídání podkladů, aby web nebyl jedna bílá plocha. */
.section--alt   { background: var(--bg-2); }
.section--paper { background: var(--surface); }

.section--dark {
    background: var(--dark);
    color: rgba(255,255,255,.80);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: #fff; }
.section--dark .section-head p { color: rgba(255,255,255,.72); }
.section--dark .eyebrow { color: #E2A279; }

.lede {
    font-size: clamp(1.16rem, 1.05rem + .5vw, 1.42rem);
    color: var(--ink-2);
    max-width: 60ch;
}

.eyebrow {
    display: inline-block;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-head { max-width: 62ch; margin-bottom: clamp(30px, 4vw, 50px); }
.section-head p { color: var(--muted); margin-bottom: 0; font-size: 1.08rem; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: #fff;
    padding: 14px 22px;
    z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- animace ---------- */

.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Postupné nabíhání položek v mřížce */
.js .reveal[data-delay="1"] { transition-delay: .09s; }
.js .reveal[data-delay="2"] { transition-delay: .18s; }
.js .reveal[data-delay="3"] { transition-delay: .27s; }

/* ---------- tlačítka ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55em;
    padding: 1em 1.7em;
    min-height: 56px;              /* pohodlný cíl pro prst */
    border: 2px solid transparent;
    border-radius: 12px;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s var(--ease), border-color .2s var(--ease),
                color .2s var(--ease), transform .2s var(--ease),
                box-shadow .2s var(--ease);
}

.btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(168, 68, 29, .28);
}
.btn--primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(168, 68, 29, .34);
}

.btn--ghost {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line-strong);
}
.btn--ghost:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn--lg { padding: 1.15em 2em; font-size: 1.14rem; min-height: 64px; }

.btn:active { transform: translateY(0); }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn--phone { font-variant-numeric: tabular-nums; }

.phone-icon { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }

/* jemné pulzování u hlavního telefonního CTA */
@keyframes ring {
    0%, 88%, 100% { transform: rotate(0); }
    90% { transform: rotate(-12deg); }
    93% { transform: rotate(10deg); }
    96% { transform: rotate(-6deg); }
}
.btn--primary .phone-icon { animation: ring 5s ease-in-out infinite; transform-origin: 50% 60%; }

/* ---------- horní informační lišta ---------- */

.topbar {
    background: var(--dark);
    color: rgba(255,255,255,.80);
    font-size: 1rem;
}
.topbar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 28px;
    padding-block: 10px;
}
.topbar__item {
    display: inline-flex;
    align-items: center;
    gap: .55em;
}
.topbar__icon {
    width: 1.15em; height: 1.15em;
    flex: none;
    fill: #DF9A6C;
}
.topbar strong { color: #fff; font-weight: 700; }
.topbar__dim { color: rgba(255,255,255,.52); }

@media (max-width: 760px) {
    .topbar { font-size: .95rem; }
    .topbar__dim { display: none; }
    .topbar__inner { justify-content: flex-start; gap: 2px 20px; }
}

/* ---------- hlavička ---------- */

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 2px 14px rgba(20, 21, 26, .06);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 40px);
    min-height: 104px;
    padding-block: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    color: var(--ink);
    margin-right: auto;
    line-height: 1.25;
}
.brand__logo {
    width: auto;
    height: 74px;
    flex: none;
    transition: transform .35s var(--ease);
}
.brand:hover .brand__logo { transform: scale(1.05) rotate(-1.5deg); }

/* svislá linka mezi logem a názvem */
.brand__text {
    display: flex;
    flex-direction: column;
    padding-left: 18px;
    border-left: 1px solid var(--line);
}
.brand__name {
    font-weight: 700;
    font-size: 1.32rem;
    letter-spacing: -0.02em;
}
.brand__meta {
    font-size: 1rem;
    color: var(--muted);
}

.site-nav ul {
    display: flex;
    gap: clamp(16px, 2vw, 30px);
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-nav a {
    color: var(--ink-2);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.08rem;
    padding-block: 8px;
    border-bottom: 3px solid transparent;
    transition: color .2s var(--ease), border-color .2s var(--ease);
}
.site-nav a:hover { color: var(--accent); border-bottom-color: var(--line-strong); }
.site-nav a[aria-current="page"] {
    color: var(--ink);
    border-bottom-color: var(--accent);
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: .7em;
    text-decoration: none;
    color: #fff;
    background: var(--accent);
    white-space: nowrap;
    padding: .7em 1.3em;
    border-radius: 12px;
    box-shadow: 0 5px 16px rgba(168, 68, 29, .3);
    transition: background-color .2s var(--ease), transform .2s var(--ease),
                box-shadow .2s var(--ease);
}
.header-phone:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(168, 68, 29, .36);
}
.header-phone__icon {
    width: 1.7em; height: 1.7em;
    flex: none;
    fill: currentColor;
    animation: ring 5s ease-in-out infinite;
    transform-origin: 50% 60%;
}
.header-phone__text { display: flex; flex-direction: column; line-height: 1.15; }
.header-phone__label {
    font-size: .84rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: rgba(255,255,255,.82);
}
.header-phone__num {
    font-size: 1.44rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

@media (max-width: 1000px) {
    .site-header { position: static; }
    .site-header__inner { flex-wrap: wrap; min-height: 0; row-gap: 10px; padding-block: 12px; }
    .site-nav { order: 3; width: 100%; border-top: 1px solid var(--line); padding-top: 10px; }
    .site-nav ul { gap: 22px; }
    .brand__logo { height: 62px; }
    .brand { gap: 14px; }
    .brand__text { padding-left: 14px; }
    .brand__name { font-size: 1.16rem; }
    .header-phone { padding: .6em 1em; }
    .header-phone__num { font-size: 1.28rem; }
}

@media (max-width: 560px) {
    .brand__text { display: none; }   /* logo samo o sobě firmu pojmenuje */
    .brand__logo { height: 56px; }
    .header-phone__icon { width: 1.5em; height: 1.5em; }
    .header-phone__num { font-size: 1.2rem; }
}

/* ---------- provozní oznámení ---------- */

.notice-bar {
    background: var(--warn-soft);
    border-bottom: 3px solid #E8CE9B;
}
.notice-bar--closed {
    background: var(--accent-soft);
    border-bottom-color: #E4B695;
}

.notice {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding-block: 22px;
}
.notice + .notice { border-top: 1px dashed #DCC8A4; }

.notice__icon {
    flex: none;
    width: 32px;
    height: 32px;
    margin-top: 1px;
    fill: var(--warn);
}
.notice-bar--closed .notice__icon { fill: var(--accent); }

.notice__body { min-width: 0; }

.notice__label {
    display: block;
    font-size: .88rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--warn);
    margin-bottom: 3px;
}
.notice-bar--closed .notice__label { color: var(--accent); }

.notice__title {
    font-size: 1.24rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 3px;
    line-height: 1.3;
}

.notice__text {
    margin: 0;
    color: var(--ink-2);
    font-size: 1.06rem;
}

.notice__dates {
    display: inline-block;
    margin-top: 9px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--warn);
    background: #fff;
    border: 2px solid #E8CE9B;
    border-radius: 999px;
    padding: 3px 15px;
}
.notice-bar--closed .notice__dates {
    color: var(--accent);
    border-color: #E4B695;
}

.notice-inline {
    background: var(--warn-soft);
    border: 2px solid #E8CE9B;
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 30px;
}
.notice-inline .notice { padding-block: 0; }
.notice-inline .notice + .notice { margin-top: 18px; padding-top: 18px; }

/* ---------- hero ---------- */

/*
  Hero je mřížka na úrovni celé sekce, ne uvnitř .wrap.
  Fotka tak vyplní celou pravou polovinu až do kraje obrazovky
  a text zůstane zarovnaný se zbytkem webu (padding-left: max(...)).
*/
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    align-items: center;
    background:
        radial-gradient(900px 480px at 10% -15%, #FCF8F1 0%, rgba(252,248,241,0) 65%),
        linear-gradient(168deg, var(--bg) 0%, var(--bg-2) 100%);
    border-bottom: 1px solid var(--line);
}

.hero__body {
    display: flex;
    align-items: center;
    padding-block: clamp(44px, 5vw, 76px);
    padding-right: clamp(24px, 3vw, 48px);
    /* zarovnání s .wrap na širokých obrazovkách */
    padding-left: max(
        clamp(18px, 4vw, 32px),
        calc((100vw - var(--wrap)) / 2 + clamp(18px, 4vw, 32px))
    );
}

.hero__inner { max-width: 36rem; }

.hero__title { margin-bottom: .45em; }
.hero__text { margin-bottom: 1.5em; }

.hero__benefit {
    display: inline-flex;
    align-items: center;
    gap: .65em;
    background: var(--ok-soft);
    color: var(--ok);
    border: 2px solid #BFDACB;
    border-radius: 999px;
    padding: .6em 1.25em;
    font-size: 1.06rem;
    font-weight: 700;
    margin-bottom: 1.7em;
}
.hero__benefit svg { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

.hero__cta { margin-bottom: 1.4em; }

/*
  Na užších obrazovkách necháme obě tlačítka roztáhnout na plnou šířku
  sloupce. Když se nevejdou vedle sebe, poskládají se pod sebe jako dva
  stejně velké pruhy – ne jako dvě různě dlouhá tlačítka pod sebou.
  Velké cíle navíc lépe vyhovují starším zákazníkům.
*/
@media (max-width: 1180px) {
    .hero__cta .btn { flex: 1 1 265px; }
}

.hero__phone-note {
    font-size: 1.02rem;
    color: var(--muted);
    margin: 0;
}

/*
  Fotka je ohraničený panel, ne plocha přes celou výšku hera.
  Dřív se roztahovala podle výšky textu (align-items: stretch),
  takže na velkém monitoru vyrostla přes 700 px. Teď má vlastní
  strop a je svisle vycentrovaná.
*/
.hero__media {
    position: relative;
    margin: 0;
    height: clamp(300px, 30vw, 440px);
    background: var(--surface-3);
    overflow: hidden;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: auto;
}
.hero__media figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 3;
    padding: 64px clamp(20px, 3vw, 34px) clamp(18px, 2.4vw, 28px);
    background: linear-gradient(to top, rgba(10,10,12,.88) 12%, rgba(10,10,12,0));
    color: #fff;
    font-size: 1.08rem;
    font-weight: 600;
    max-width: 34rem;
}

@media (max-width: 1000px) {
    .hero { grid-template-columns: 1fr; }
    .hero__body {
        padding-inline: clamp(18px, 4vw, 32px);
        padding-block: clamp(38px, 6vw, 56px) clamp(30px, 4vw, 44px);
    }
    .hero__inner { max-width: 40rem; }
    .hero__media {
        height: auto;
        aspect-ratio: 16 / 10;
        border-radius: 0;
        box-shadow: none;
    }
}

@media (max-width: 560px) {
    .hero__media { aspect-ratio: 4 / 3; }
}

/* ---------- cenové karty ---------- */

.price-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px 18px;
    margin-bottom: clamp(24px, 3vw, 36px);
}
.price-meta__badge {
    display: inline-block;
    background: var(--ink);
    color: #fff;
    border-radius: 999px;
    padding: .5em 1.25em;
    font-size: 1.06rem;
    font-weight: 700;
}
.price-meta__vat { font-size: 1.02rem; color: var(--muted); }

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(16px, 2vw, 24px);
}

.price-card {
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(24px, 3vw, 32px);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease),
                transform .25s var(--ease);
}
.price-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.price-card__name {
    font-size: 1.06rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0 0 5px;
}
.price-card__size {
    font-size: 1.04rem;
    color: var(--muted);
    margin: 0 0 auto;
    padding-bottom: 22px;
}

.price-card__value {
    display: flex;
    align-items: baseline;
    gap: .3em;
    font-variant-numeric: tabular-nums;
}
.price-card__number {
    font-size: clamp(2.5rem, 1.8rem + 2.1vw, 3.4rem);
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.03em;
    line-height: 1;
}
.price-card__unit {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--muted);
}

.price-card--out .price-card__number { color: var(--muted); }

.badge-out {
    align-self: flex-start;
    background: var(--surface-2);
    color: var(--ink-2);
    border: 2px solid var(--line-strong);
    border-radius: 999px;
    padding: .35em 1em;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* tabulka na stránce ceníku */
.price-table-wrap { overflow-x: auto; }

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: 1.06rem;
}
.price-table caption {
    caption-side: top;
    text-align: left;
    font-weight: 800;
    color: var(--ink);
    font-size: 1.4rem;
    padding-bottom: 14px;
}
.price-table th, .price-table td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}
.price-table thead th {
    background: var(--surface-2);
    font-size: .96rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-2);
}
.price-table tbody tr { transition: background-color .2s var(--ease); }
.price-table tbody tr:hover { background: #FBF7F1; }
.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody th { font-weight: 800; color: var(--ink); }
.price-table td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    color: var(--accent);
    white-space: nowrap;
    font-size: 1.18rem;
}

/* ---------- karty / mřížky ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(18px, 2.5vw, 28px);
}

.card {
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(24px, 3vw, 32px);
    box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .45em; }
.card p { color: var(--ink-2); margin-bottom: 0; }

/* postup objednávky */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: clamp(22px, 3vw, 38px);
    counter-reset: step;
}
.step { counter-increment: step; }
.step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 18px;
    box-shadow: 0 6px 16px rgba(168,68,29,.3);
}
.step__num::before { content: counter(step); }
.step h3 { margin-bottom: .35em; }
.step p { color: var(--muted); margin: 0; }

.section--dark .step__num { background: var(--accent); }
.section--dark .step p { color: rgba(255,255,255,.72); }

/* ---------- animace sklápění kontejneru ---------- */

.tipper {
    width: 100%;
    max-width: 620px;
    margin-inline: auto;
    /* barvy se řídí dvěma proměnnými, ne kaskádou přes .section--dark */
    --tipper-line: var(--ink);
    --tipper-coal: var(--accent);
}
.section--dark .tipper {
    --tipper-line: rgba(255, 255, 255, .88);
    --tipper-coal: #E2884F;
}

.tipper__svg { width: 100%; height: auto; overflow: visible; }

/* linková kresba */
.tipper__svg path,
.tipper__svg circle {
    fill: none;
    stroke: var(--tipper-line);
    stroke-width: 3.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform-box: view-box;
}

/* souřadnice pro transform-origin se počítají podle viewBoxu */
.tipper__body,
.tipper__gate,
.tipper__ram,
.tipper__pile { transform-box: view-box; }

.tipper__svg .tipper__ground { stroke-width: 3; opacity: .32; }
.tipper__svg .tipper__glass  { opacity: .5; }
.tipper__svg .tipper__load   { stroke: var(--tipper-coal); stroke-width: 5.5; }

.tipper__svg .tipper__lump {
    fill: var(--tipper-coal);
    stroke: none;
    opacity: 0;
}

.tipper__svg .tipper__pile path {
    fill: var(--tipper-coal);
    stroke: none;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: 114px 206px;
}

/* --- klíčové snímky ------------------------------------------------------ */

@keyframes tipper-lift {
    0%, 10%   { transform: rotate(0deg); }
    32%, 66%  { transform: rotate(-27deg); }
    88%, 100% { transform: rotate(0deg); }
}
@keyframes tipper-gate {
    0%, 14%   { transform: rotate(0deg); }
    34%, 64%  { transform: rotate(58deg); }
    86%, 100% { transform: rotate(0deg); }
}
@keyframes tipper-ram {
    0%, 10%   { transform: rotate(0deg); }
    32%, 66%  { transform: rotate(-15deg); }
    88%, 100% { transform: rotate(0deg); }
}
@keyframes tipper-pour {
    0%, 30%  { opacity: 0; transform: translate(0, 0) scale(.7); }
    36%      { opacity: 1; transform: translate(-6px, 8px) scale(1); }
    58%      { opacity: 1; transform: translate(-26px, 46px) scale(1); }
    66%, 100%{ opacity: 0; transform: translate(-32px, 56px) scale(.85); }
}
@keyframes tipper-pile {
    0%, 28%   { opacity: 0; transform: scaleY(0); }
    60%, 74%  { opacity: 1; transform: scaleY(1); }
    92%, 100% { opacity: 0; transform: scaleY(0); }
}

/* Animace jde jen když je prvek vidět – jinak zbytečně točí procesor. */
.js .tipper.is-visible .tipper__body {
    transform-origin: 126px 168px;
    animation: tipper-lift 7s cubic-bezier(.45,.05,.35,1) infinite;
}
.js .tipper.is-visible .tipper__gate {
    transform-origin: 126px 104px;
    animation: tipper-gate 7s cubic-bezier(.45,.05,.35,1) infinite;
}
.js .tipper.is-visible .tipper__ram {
    transform-origin: 210px 172px;
    animation: tipper-ram 7s cubic-bezier(.45,.05,.35,1) infinite;
}
.js .tipper.is-visible .tipper__pile path {
    animation: tipper-pile 7s ease-out infinite;
}
.js .tipper.is-visible .tipper__lump {
    transform-origin: center;
    animation: tipper-pour 7s ease-in infinite;
}
.js .tipper.is-visible .tipper__lump:nth-child(2) { animation-delay: .18s; }
.js .tipper.is-visible .tipper__lump:nth-child(3) { animation-delay: .36s; }
.js .tipper.is-visible .tipper__lump:nth-child(4) { animation-delay: .54s; }
.js .tipper.is-visible .tipper__lump:nth-child(5) { animation-delay: .72s; }

/*
  Při "omezit pohyb" zůstane vůz stát se sklopeným kontejnerem
  a nasypanou hromadou, aby obrázek dával smysl i bez animace.
*/
@media (prefers-reduced-motion: reduce) {
    .tipper__svg .tipper__body { transform: rotate(-27deg); transform-origin: 126px 168px; }
    .tipper__svg .tipper__gate { transform: rotate(58deg);  transform-origin: 126px 104px; }
    .tipper__svg .tipper__ram  { transform: rotate(-15deg); transform-origin: 210px 172px; }
    .tipper__svg .tipper__pile path { opacity: 1; transform: scaleY(1); }
}

/* trust pruh */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: clamp(20px, 2.5vw, 32px);
}
.trust__value {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 1.95rem);
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.02em;
    margin-bottom: 3px;
}
.trust__label { color: var(--muted); font-size: 1.04rem; }

/* galerie */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(14px, 2vw, 22px);
}
.gallery figure { margin: 0; }
.gallery img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius);
    border: 4px solid #fff;
    box-shadow: var(--shadow);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.gallery figure:hover img { transform: translateY(-5px) scale(1.015); box-shadow: var(--shadow-lg); }
.gallery figcaption {
    font-size: 1.02rem;
    color: var(--muted);
    margin-top: 10px;
}

/* CTA blok */
.cta-band {
    background: var(--dark);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(34px, 5vw, 62px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: clamp(22px, 3vw, 42px);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.cta-band::after {
    content: "";
    position: absolute;
    inset: auto -60px -120px auto;
    width: 340px; height: 340px;
    background: radial-gradient(circle, rgba(168,68,29,.4) 0%, rgba(168,68,29,0) 70%);
    pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: rgba(255,255,255,.78); margin: 0; max-width: 46ch; font-size: 1.1rem; }
.cta-band .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.42); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* definiční seznam kontaktu */
.data-list { margin: 0; }
.data-list > div {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
.data-list > div:last-child { border-bottom: none; }
.data-list dt {
    flex: 0 0 200px;
    color: var(--muted);
    font-size: 1.04rem;
}
.data-list dd {
    margin: 0;
    flex: 1 1 220px;
    color: var(--ink);
    font-weight: 700;
    font-size: 1.1rem;
}
.data-list dd a { text-decoration: none; }
.data-list dd a:hover { text-decoration: underline; }

@media (max-width: 600px) {
    .data-list dt { flex-basis: 100%; }
}

/* vložená mapa (OpenStreetMap) */
.map-embed {
    margin-top: 1.2em;
    border: 3px solid #fff;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-2);
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
}
.map-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.split {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; }
.section--dark .prose { color: rgba(255,255,255,.80); }

/* ---------- patička ---------- */

.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,.74);
    padding-block: clamp(50px, 6vw, 78px) 0;
    margin-top: var(--section);
    font-size: 1.04rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: clamp(28px, 4vw, 52px);
    padding-bottom: clamp(36px, 5vw, 56px);
}
.footer-grid h2 {
    color: #fff;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 1em;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .55em; }
.footer-grid p { margin-bottom: .5em; }

.footer-logo {
    height: 96px;
    width: auto;
    margin-bottom: 18px;
    /* logo je cerne na pruhledne -> na tmave paticce ho obratime */
    filter: invert(1);
}

/* fotka na vysku (pohled z nakladace) nema byt orezana na 16:9 */
.gallery figure.is-tall img { aspect-ratio: 9 / 16; }

.footer-phone {
    display: inline-block;
    font-size: 1.95rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
    margin-bottom: .15em;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.14);
    padding-block: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    justify-content: space-between;
    font-size: 1rem;
    color: rgba(255,255,255,.6);
}

/* ---------- mobilní sticky CTA ---------- */

.sticky-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: none;
    gap: 10px;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--line);
    box-shadow: 0 -6px 22px rgba(20,21,26,.12);
}
.sticky-cta .btn { flex: 1; padding: .9em .6em; min-height: 58px; font-size: 1.05rem; }

@media (max-width: 820px) {
    .sticky-cta { display: flex; }
    body { padding-bottom: 92px; }
}

/* ---------- pomocné ---------- */

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

.muted { color: var(--muted); }
.small { font-size: 1rem; }          /* i "malý" text zůstává 19 px × 1 = čitelný */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .js .reveal { opacity: 1 !important; transform: none !important; }
    .hero__media { rotate: 0deg; }
}

@media print {
    .site-header, .sticky-cta, .cta-band, .site-footer { display: none; }
    body { background: #fff; }
    .js .reveal { opacity: 1 !important; transform: none !important; }
}
