@media (min-width: 768px) {
  .hpm, .hpm-jen { display:none !important; }
}
@media (max-width: 767px) {
  body.cms-index-index .rd-top > .rd-catmenu,
  body.cms-index-index .rd-infobar { display:none !important; }
  body.cms-index-index .rd-top { padding:0 !important; gap:0 !important; }
  .hpm, .hpm * { box-sizing:border-box; }
  .hpm { font-family:'Open Sans', Arial, sans-serif; color:#1c1c1c; font-size:17px; line-height:1.6; }
  .hpm h2 { margin:0; font-weight:700; color:#1c1c1c; line-height:1.2; letter-spacing:0; text-transform:none; }
  .hpm p { margin:0; }
  .hpm img { display:block; max-width:100%; }
  .hpm-ico { width:24px; height:24px; flex:0 0 auto; fill:none; stroke:currentColor; stroke-width:2;
    stroke-linecap:round; stroke-linejoin:round; }
  .hpm-btn { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:48px;
    padding:10px 22px; border:2px solid transparent; border-radius:8px; font:700 17px/1.2 'Open Sans', Arial, sans-serif;
    text-decoration:none !important; text-align:center; cursor:pointer; text-transform:none; letter-spacing:0; }
  .hpm-btn--primary, .hpm-btn--primary:visited { background:#009fe3; color:#fff !important; }
  .hpm-btn--primary:hover, .hpm-btn--primary:active, .hpm-btn--primary:focus { background:#0089c4; color:#fff !important; }
  .hpm-btn--lg { min-height:56px; padding:14px 28px; font-size:19px; }
  .hpm-btn--blok { display:flex; width:100%; }
  .hpm a:focus-visible, .hpm button:focus-visible, .hpm input:focus-visible,
  body.cms-index-index .rd-tile:focus-visible, body.cms-index-index .rd-blog-card a:focus-visible {
    outline:none; box-shadow:0 0 0 3px #fff, 0 0 0 6px #009fe3; border-radius:8px; }
  .hpm-sekce { padding:32px 16px 8px; }
  .hpm-hlava { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:8px 24px; margin-bottom:16px; }
  .hpm-hlava h2 { font-size:24px; }
  .hpm-hlava p { order:3; flex:0 0 100%; color:#55606a; font-size:17px; line-height:1.55; }
  .hpm-vice, .hpm-vice:visited { display:inline-flex; align-items:center; min-height:48px; font-weight:600; font-size:17px; color:#009fe3; text-decoration:underline;
    text-underline-offset:3px; white-space:nowrap; }
  .hpm-vice:hover { color:#0089c4; }
  .hpm-sortiment { padding-top:28px; }
  .hpm-kategorie { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; }
  .hpm-kat, .hpm-kat:visited { display:flex; flex-direction:column; align-items:center; gap:8px; min-height:72px; padding:12px 8px;
    border:1px solid #dfe5e9; border-radius:12px; background:#fff; color:#1c1c1c; font-weight:700; font-size:16px; line-height:1.25;
    text-align:center; text-decoration:none; }
  .hpm-kat:hover, .hpm-kat:active { border-color:#009fe3; color:#009fe3; text-decoration:none; }
  .hpm-kat-obr { display:block; width:64px; height:64px; padding:3px; border-radius:8px; background:#f4f8f9; overflow:hidden; }
  .hpm .hpm-kat-obr img { width:100% !important; height:100% !important; max-width:none; object-fit:contain; border-radius:6px; }
  .hpm-kat--foto .hpm-kat-obr { padding:0; }
  .hpm .hpm-kat--foto .hpm-kat-obr img { object-fit:cover; border-radius:0; }
  body.cms-index-index .rd-tiles-section { background:#fff !important; padding:24px 0 8px !important; }
  body.cms-index-index .rd-tiles-section .rd-wrap { width:auto !important; max-width:none !important; margin:0 !important;
    padding:0 16px !important; }
  body.cms-index-index .rd-tiles { display:grid !important; grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:12px !important; margin:0 !important; }
  body.cms-index-index .rd-tile { display:flex !important; flex-direction:column; min-width:0; border:1px solid #dfe5e9 !important;
    border-radius:12px !important; background:#fff; transform:none !important; box-shadow:none !important; text-decoration:none !important; }
  body.cms-index-index .rd-tile-body { order:-1; display:block !important; width:100%; height:auto !important;
    aspect-ratio:1 / 1 !important; overflow:hidden; }
  body.cms-index-index .rd-tile-body img { width:100% !important; height:100% !important; max-width:none !important;
    object-fit:cover !important; object-position:center 35%; transform:none !important; }
  body.cms-index-index .rd-tile-head { flex:1 1 auto; display:flex !important; align-items:center; justify-content:space-between; gap:8px;
    min-height:56px; height:auto !important; padding:10px 12px !important; border-top:4px solid #009fe3;
    background:#fff !important; color:#1c1c1c !important; font-size:17px !important; font-weight:700 !important;
    line-height:1.25 !important; text-align:left !important; text-transform:none !important; letter-spacing:0 !important; }
  body.cms-index-index .rd-tile-head::after { content:""; flex:0 0 20px; width:20px; height:20px; background:#009fe3;
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 6 15 12 9 18'/%3E%3C/svg%3E") center / contain no-repeat;
            mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 6 15 12 9 18'/%3E%3C/svg%3E") center / contain no-repeat; }
  body.cms-index-index .rd-tile:hover, body.cms-index-index .rd-tile:active { border-color:#009fe3 !important; }
  body.cms-index-index .rd-tile:hover .rd-tile-head { color:#009fe3 !important; }
  .hpm-ep { margin-top:32px; padding:32px 16px 36px; background:#d6eff1; border-top:4px solid #82d5d9; border-bottom:4px solid #82d5d9; }
  .hpm-ep h2 { font-size:28px; }
  .hpm-ep-uvod { margin-top:10px !important; font-size:19px; line-height:1.5; }
  .hpm-ep-form { margin:22px 0 0; }
  .hpm-ep-popisek { display:block; margin-bottom:8px; font-size:17px; font-weight:600; }
  .hpm-ep-kod { display:flex; align-items:center; gap:8px; }
  .hpm .hpm-ep-kod input[type="text"] { flex:1 1 0; min-width:0; width:auto !important; height:60px !important; margin:0; padding:0 0 0 .12em !important;
    border:2px solid #7d8790 !important; border-radius:8px !important; background:#fff !important; color:#1c1c1c !important; box-shadow:none;
    font:700 24px/1 'Open Sans', Arial, sans-serif !important; letter-spacing:.12em; text-align:center; text-transform:uppercase;
    font-variant-numeric:tabular-nums; }
  .hpm .hpm-ep-kod input::placeholder { color:#9aa4ac; opacity:1; font-weight:600; }
  .hpm .hpm-ep-kod input[type="text"]:focus { outline:none; border-color:#009fe3 !important; box-shadow:0 0 0 3px rgba(0,159,227,.3); }
  .hpm .hpm-ep-form.je-chyba .hpm-ep-kod input[type="text"] { border-color:#e2001a !important; }
  .hpm-ep-pomlcka { flex:0 0 12px; height:3px; border-radius:2px; background:#009fe3; }
  .hpm .hpm-ep-noscript { display:block; width:100% !important; height:52px !important; margin-top:8px; padding:0 12px; border:2px solid #7d8790;
    border-radius:8px; font-size:17px; text-transform:uppercase; }
  .hpm-ep-form .hpm-btn { margin-top:12px; }
  .hpm-ep-hlaska { margin-top:10px !important; font-size:15px; line-height:1.45; color:#46525c; }
  .hpm-ep-form.je-chyba .hpm-ep-hlaska { color:#c40017; font-weight:700; }
  .hpm-ep-kroky { list-style:none; margin:26px 0 0; padding:0; display:grid; gap:14px; counter-reset:hpmkrok; }
  .hpm-ep-kroky li { display:grid; grid-template-columns:40px 1fr; gap:2px 14px; margin:0; counter-increment:hpmkrok; }
  .hpm-ep-kroky li::before { content:counter(hpmkrok); grid-row:span 2; display:grid; place-items:center; width:40px; height:40px;
    border-radius:50%; background:#009fe3; color:#fff; font-weight:700; font-size:18px; }
  .hpm-ep-kroky strong { font-size:17px; line-height:1.35; }
  .hpm-ep-kroky span { font-size:15px; line-height:1.45; color:#46525c; }
  .hpm-ep-papir { margin-top:20px !important; font-size:15px; color:#46525c; }
  .hpm-ep-papir a, .hpm-ep-papir a:visited { color:#1c1c1c; font-weight:700; text-decoration:underline; text-underline-offset:3px; }
  .hpm-ucet { position:relative; margin-top:30px; padding:24px 20px 22px; background:#fff; border-radius:4px; }
  .hpm-ucet::before, .hpm-ucet::after { content:""; position:absolute; left:0; right:0; height:10px;
    background:radial-gradient(circle at 8px 0, transparent 6px, #fff 6.5px) 0 0 / 16px 10px repeat-x; }
  .hpm-ucet::before { top:-9px; transform:rotate(180deg); }
  .hpm-ucet::after { bottom:-9px; }
  .hpm-ucet-titul { margin-bottom:10px !important; font-size:15px; font-weight:700; color:#55606a; }
  .hpm-ucet-produkt { padding-bottom:14px; border-bottom:1px solid #dfe5e9; }
  .hpm-ucet-produkt strong { display:block; line-height:1.35; }
  .hpm-ucet-produkt span { font-size:15px; color:#55606a; }
  .hpm-ucet dl { display:grid; grid-template-columns:1fr auto; gap:8px 0; margin:12px 0 0; font-variant-numeric:tabular-nums; }
  .hpm-ucet dt { margin:0; color:#55606a; font-weight:400; }
  .hpm-ucet dd { margin:0; padding-left:16px; text-align:right; font-weight:600; }
  .hpm-ucet .hpm-ucet-celkem { padding-top:12px; border-top:2px dashed #b7c0c7; color:#1c1c1c; font-weight:700; font-size:19px; align-self:end; }
  .hpm-ucet dd.hpm-ucet-celkem { font-size:32px; line-height:1; }
  .hpm-ucet-pozn { margin-top:14px !important; font-size:15px; line-height:1.45; color:#55606a; }
  .hpm-situace-mrizka { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; }
  .hpm-situace-mrizka a, .hpm-situace-mrizka a:visited { display:flex; flex-direction:column; overflow:hidden; border:1px solid #dfe5e9;
    border-radius:12px; background:#fff; color:#1c1c1c; font-weight:700; font-size:17px; line-height:1.25; text-align:center; text-decoration:none; }
  .hpm-situace-mrizka a:hover, .hpm-situace-mrizka a:active { border-color:#009fe3; color:#009fe3; }
  .hpm-situace-obr { display:block; aspect-ratio:3 / 2; overflow:hidden; background:#f4f8f9; }
  .hpm .hpm-situace-obr img { width:100% !important; height:100% !important; max-width:none; object-fit:cover; }
  .hpm-situace-nazev { display:flex; align-items:center; justify-content:center; min-height:48px; padding:8px; }
  .hpm-situace-mrizka a:last-child:nth-child(odd) { grid-column:1 / -1; }
  .hpm-situace-mrizka a:last-child:nth-child(odd) .hpm-situace-obr { aspect-ratio:3 / 1; }
  body.cms-index-index .rd-blog-bar { height:auto !important; margin:0 !important; padding:32px 0 0 !important; background:#fff !important; display:block !important; }
  body.cms-index-index .rd-blog-bar .rd-wrap { display:flex !important; flex-wrap:wrap; align-items:baseline; justify-content:space-between;
    gap:8px 24px; width:auto !important; max-width:none !important; margin:0 !important; padding:0 16px !important; }
  body.cms-index-index .rd-blog-label { font-size:24px !important; font-weight:700 !important; line-height:1.2; color:#1c1c1c !important; }
  body.cms-index-index .rd-blog-pencil { display:none !important; }
  body.cms-index-index .hpm-blog-popis { order:3; flex:0 0 100%; margin:0; color:#55606a; font-size:17px; line-height:1.55; }
  body.cms-index-index .rd-blog { display:grid !important; grid-template-columns:1fr !important; gap:16px !important;
    width:auto !important; max-width:none !important; margin:0 !important; padding:16px 16px 36px !important; }
  body.cms-index-index .rd-blog-card { position:relative; display:grid !important; grid-template-columns:112px minmax(0, 1fr) !important;
    grid-template-rows:auto auto 1fr !important; grid-row:auto !important; column-gap:14px; align-items:start; }
  body.cms-index-index .rd-blog-card > a:first-child { grid-column:1; grid-row:1 / span 3; display:block; }
  body.cms-index-index .rd-blog-card img { width:112px !important; height:112px !important; max-width:none; aspect-ratio:1 / 1 !important;
    object-fit:cover; border-radius:10px !important; }
  body.cms-index-index .rd-blog-card h3 { grid-column:2; grid-row:auto !important; margin:0 !important; font-size:19px !important;
    line-height:1.3 !important; font-weight:700; color:#1c1c1c; text-transform:none !important; letter-spacing:0 !important; }
  body.cms-index-index .rd-blog-card p { grid-column:2; grid-row:auto !important; margin:6px 0 0 !important; font-size:16px !important;
    line-height:1.5 !important; color:#55606a !important; }
  body.cms-index-index .rd-blog-card .rd-more { grid-column:2; grid-row:auto !important; justify-self:start; margin-top:6px;
    font-size:16px !important; font-weight:600; color:#009fe3 !important; text-underline-offset:3px; }
  body.cms-index-index .rd-blog-card .rd-more::after { content:""; position:absolute; inset:0; }
  body.cms-index-index .rd-about-section { background:#f4f8f9 !important; padding:40px 0 !important; }
  body.cms-index-index .rd-about { display:flex !important; flex-direction:column; width:auto !important; max-width:none !important;
    margin:0 !important; padding:0 16px !important; }
  body.cms-index-index .rd-about h2, body.cms-index-index .rd-about h1 { margin:0 0 14px !important; font-size:24px !important; line-height:1.25 !important; color:#1c1c1c !important; }
  body.cms-index-index .rd-about p { margin:0 0 1em !important; font-size:17px !important; line-height:1.6 !important; color:#1c1c1c !important; }
  body.cms-index-index .rd-brands { order:1; margin:8px 0 14px !important; padding:18px; background:#fff; border:1px solid #dfe5e9; border-radius:12px; }
  body.cms-index-index .rd-brands::before { content:"Vlastní značky ARIES"; display:block; margin-bottom:10px; font-size:15px; font-weight:700; color:#55606a; }
  body.cms-index-index .rd-brands img { width:100% !important; height:auto !important; }
  .hpm-pomoc { order:2; display:grid; gap:14px; }
  body.cms-index-index .rd-about a.hpm-pomoc-karta { display:grid; grid-template-columns:40px 1fr; gap:4px 14px; align-items:start; padding:16px;
    border:1px solid #dfe5e9; border-radius:12px; background:#fff; color:#1c1c1c; font-weight:400; text-decoration:none; }
  body.cms-index-index .rd-about a.hpm-pomoc-karta:hover { border-color:#009fe3; }
  .hpm-pomoc-karta .hpm-ico { grid-row:span 2; width:40px; height:40px; padding:8px; border:1px solid #dfe5e9; border-radius:50%;
    background:#fff; color:#009fe3; }
  .hpm-pomoc-karta strong { font-size:17px; line-height:1.3; color:#1c1c1c; }
  .hpm-pomoc-karta span { font-size:15px; line-height:1.45; color:#55606a; }
}
@media (min-width: 560px) and (max-width: 767px) {
  .hpm-kategorie { grid-template-columns:repeat(4, minmax(0, 1fr)); }
  body.cms-index-index .rd-tiles { grid-template-columns:repeat(4, minmax(0, 1fr)) !important; }
  .hpm-situace-mrizka { grid-template-columns:repeat(3, minmax(0, 1fr)); }
  .hpm-pomoc { grid-template-columns:1fr 1fr; }
}
