/* DOMATORIA - strona glowna.
   Film: scripts/body_head.tpl, tresc: scripts/index/index.tpl, zachowanie: js/dm-home.js.
   Wszystkie klasy tresci maja przedrostek hp- i siedza w .dm-hp, zeby nie mieszac sie
   ze stylami starego szablonu (np. jego .btn). */

/* ---------- film ---------- */
/* Wysokosc: caly ekran pod naglowkiem (ok. 156 px). Proporcje sa ustalone z gory, wiec
   wczytanie filmu niczego nie przesuwa; nadmiar kadru jest przycinany (object-fit: cover). */
.dm-hero {
    position: relative;
    width: 100%;
    height: calc(100vh - 156px);
    min-height: 480px;
    max-height: 1000px;
    overflow: hidden;
    background: #d9d3cb;
    color: #fff;
}

.dm-hero__video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* film bez odtwarzacza: zadnych nakladek systemowych */
.dm-hero__video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

.dm-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .55) 100%);
    pointer-events: none;
}

.dm-hero__txt {
    position: absolute;
    z-index: 2;
    left: clamp(40px, calc(50vw - 800px), 2000px); /* clamp zamiast max(): serwer Shopera odrzuca min()/max() */
    right: 40px;
    bottom: clamp(30px, 7vh, 80px);
}

.dm-hero__kicker,
.dm-hero__lead,
.dm-hero__cta {
    animation: hp-up 1.1s cubic-bezier(.2, .7, .2, 1) both;
}

.dm-hero__kicker {
    display: block;
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
}

/* film ma wlasne hasla na srodku kadru, wiec opis strony jest tu tylko malym podpisem */
.dm-hero__lead {
    max-width: 30ch;
    margin: 10px 0 26px;
    font-weight: 300;
    font-size: clamp(20px, 2vw, 30px);
    line-height: 1.25;
    animation-delay: .15s;
}

.dm-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    animation-delay: .3s;
}

.dm-hero__scroll {
    position: absolute;
    z-index: 2;
    right: 40px;
    bottom: clamp(30px, 7vh, 80px);
    writing-mode: vertical-rl;
    font-size: 11px;
    letter-spacing: .3em;
    text-transform: uppercase;
}

.dm-hero__scroll::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 64px;
    margin-top: 14px;
    background: #fff;
    transform-origin: top;
    animation: hp-line 2.2s ease-in-out infinite;
}

@keyframes hp-up {
    from { opacity: 0; transform: translateY(26px); }
}

@keyframes hp-line {
    0% { transform: scaleY(0); }
    50% { transform: scaleY(1); }
    100% { transform: scaleY(1); opacity: 0; }
}

@media (max-width: 767px) and (orientation: portrait) {
    .dm-hero {
        height: auto;
        aspect-ratio: 9 / 16;
        max-height: 82vh;
        min-height: 0;
    }

    .dm-hero__scroll {
        display: none;
    }
}

/* stary boks z odtwarzaczem Vimeo (z panelu) - zastapiony filmem powyzej */
.shop_index #box_custom3 {
    display: none !important;
}

/* ---------- wspolne ---------- */
.dm-hp {
    --ink: #111;
    --muted: #777;
    --line: #e6e4df;
    --panel: #f3f2ef;
    --pad: clamp(40px, calc(50vw - 800px), 2000px);
    --ease: cubic-bezier(.2, .7, .2, 1);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
}

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

.dm-hp h2,
.dm-hp h3,
.dm-hp p,
.dm-hp ul,
.dm-hp figure,
.dm-hp blockquote {
    margin: 0;
    padding: 0;
    color: inherit;
    text-transform: none;
}

.dm-hp ul {
    list-style: none;
}

.dm-hp a {
    color: inherit;
    text-decoration: none;
}

.dm-hp img {
    display: block;
    max-width: 100%;
}

.hp-wrap {
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 var(--pad);
}

.hp-kicker {
    display: block;
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.hp-muted {
    color: var(--muted);
}

/* kreska rysujaca sie od srodka (jak w menu) */
.hp-u {
    padding-bottom: 3px;
    background: linear-gradient(currentColor, currentColor) no-repeat 50% 100% / 0 1px;
    transition: background-size .3s ease;
}

.hp-u:hover,
a:hover > .hp-u {
    background-size: 100% 1px;
}

.dm-hero .hp-btn,
.dm-hp .hp-btn {
    display: inline-block;
    padding: 15px 30px;
    border: 1px solid currentColor;
    border-radius: 0;
    background: none;
    font: inherit;
    font-size: 12px;
    letter-spacing: .16em;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.dm-hp .hp-btn:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.dm-hp .hp-btn--solid {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.dm-hp .hp-btn--solid:hover {
    background: #333;
}

.dm-hero .hp-btn:hover,
.dm-hp .hp-btn--light:hover {
    background: #fff;
    border-color: #fff;
    color: #111;
}

/* pojawianie sie przy przewijaniu: ukrywane sa tylko elementy ponizej ekranu (js/dm-home.js) */
.hp-rv.hp-pending {
    opacity: 0;
    transform: translateY(22px);
}

.hp-rv.hp-pending.is-in {
    opacity: 1;
    transform: none;
    transition: opacity .8s ease, transform .8s var(--ease);
}

/* ---------- producenci: skosne kafle ----------
   Kazdy kafel to rownoleglobok (clip-path) o skosie prawej krawedzi logo; kolejne zachodza
   na siebie o szerokosc skosu, wiec miedzy nimi zostaje rowna, skosna szczelina. */
.hp-p {
    padding: clamp(60px, 8vw, 110px) 0 clamp(70px, 9vw, 130px);
}

.hp-p__head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px 60px;
    margin-bottom: clamp(30px, 4vw, 50px);
}

.hp-p__head .hp-kicker {
    margin-bottom: 18px;
}

.hp-p__intro {
    max-width: 58ch;
    font-weight: 300;
    font-size: clamp(20px, 1.9vw, 30px);
    line-height: 1.38;
}

.hp-p__intro b,
.hp-p__intro a {
    font-weight: 400;
}

.hp-p__nav {
    display: flex;
    gap: 8px;
}

.dm-hp .hp-p__nav button {
    width: 52px;
    height: 52px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}

.dm-hp .hp-p__nav button:hover {
    background: var(--ink);
    color: #fff;
}

.dm-hp .hp-p__nav button[disabled] {
    opacity: .25;
    pointer-events: none;
}

.hp-p__nav svg {
    display: block;
    width: 18px;
    height: 18px;
    margin: auto;
}

.hp-row {
    --h: clamp(380px, 56vh, 580px);
    --sl: calc(var(--h) * .249);                        /* skos = skos prawej krawedzi logo */
    --gap: 10px;
    --w: calc(var(--sl) + clamp(180px, 15vw, 250px));   /* zwiniety: skos + widoczny pas */
    --wo: calc(var(--sl) + clamp(440px, 44vw, 740px));  /* rozwiniety */
    display: flex;
    height: var(--h);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-right: var(--pad);
}

.hp-row::-webkit-scrollbar {
    display: none;
}

/* logo: ciemny blok z wycietymi literami, dokladnie szerokosci znaku */
.hp-row__logo {
    flex: 0 0 calc(var(--h) * .44);
}

.hp-row__logo img {
    width: 100%;
    height: 100%;
}

.hp-tile {
    position: relative;
    flex: 0 0 var(--w);
    margin-left: calc(var(--sl) * -1 + var(--gap));
    clip-path: polygon(var(--sl) 0, 100% 0, calc(100% - var(--sl)) 100%, 0 100%);
    overflow: hidden;
    background: #ddd;
    color: #fff;
    transition: flex-basis .7s var(--ease);
    outline: none;
}

.dm-hp .hp-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transform: scale(1.12);
    filter: saturate(.85);
    transition: transform 1.1s var(--ease), filter .7s ease;
}

.hp-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .08) 30%, rgba(0, 0, 0, .6) 100%);
}

/* nazwa w pionie, gdy kafel jest zwiniety */
.hp-tile__v {
    position: absolute;
    z-index: 2;
    left: calc(50% - var(--sl) * .32);
    bottom: 34px;
    writing-mode: vertical-rl;
    transform: translateX(-50%) rotate(180deg);
    font-size: clamp(17px, 1.5vw, 22px);
    letter-spacing: .2em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: opacity .3s ease;
}

/* opis, gdy kafel jest rozwiniety */
.hp-tile__h {
    position: absolute;
    z-index: 2;
    /* odsuniecie od skosnych krawedzi: na wysokosci tekstu lewa krawedz jest juz przesunieta w prawo,
       a prawa przy dolnej krawedzi kafla - w lewo o caly skos */
    left: calc(var(--sl) * .5 + 24px);
    right: calc(var(--sl) + 20px);
    bottom: 32px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .3s ease, transform .5s var(--ease);
}

.hp-tile__h b {
    display: block;
    margin-bottom: 8px;
    font-weight: 300;
    font-size: clamp(30px, 3vw, 48px);
    line-height: 1.05;
}

.hp-tile__h span {
    display: block;
    max-width: 34ch;
    margin-bottom: 16px;
    font-size: clamp(16px, 1.2vw, 19px);
}

.hp-tile__h em {
    padding-bottom: 3px;
    border-bottom: 1px solid currentColor;
    font-style: normal;
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hp-tile:hover,
.hp-tile:focus-visible,
.hp-tile.is-open {
    flex-basis: var(--wo);
}

.dm-hp .hp-tile:hover img,
.dm-hp .hp-tile:focus-visible img,
.dm-hp .hp-tile.is-open img {
    transform: scale(1);
    filter: none;
}

.hp-tile:hover .hp-tile__v,
.hp-tile:focus-visible .hp-tile__v,
.hp-tile.is-open .hp-tile__v {
    opacity: 0;
}

.hp-tile:hover .hp-tile__h,
.hp-tile:focus-visible .hp-tile__h,
.hp-tile.is-open .hp-tile__h {
    opacity: 1;
    transform: none;
    transition-delay: .25s;
}

/* ---------- mebel dopasowany do Ciebie ---------- */
.hp-m {
    padding-block: clamp(60px, 8vw, 120px);
    border-top: 1px solid var(--line);
}

.hp-m__head {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 20px clamp(30px, 6vw, 110px);
    align-items: end;
    margin-bottom: clamp(36px, 4.5vw, 64px);
}

.hp-m__head .hp-kicker {
    grid-column: 1 / -1;
}

.hp-m__head h2 {
    font-weight: 300;
    font-size: clamp(36px, 4.6vw, 76px);
    line-height: .98;
    letter-spacing: -.025em;
}

.hp-m__head p {
    max-width: 44ch;
    margin-bottom: 24px;
    font-size: 18px;
    color: #444;
}

.hp-m__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(18px, 2.4vw, 40px);
}

/* zdjecia w tej sekcji nie sa klikalne, wiec nie reaguja na najechanie */
.hp-card figure {
    margin-bottom: 20px;
    overflow: hidden;
    background: var(--panel);
}

.dm-hp .hp-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.hp-card__sketch {
    display: flex;
    align-items: center;
    aspect-ratio: 4 / 3;
    background: #b9bbb0 !important;
}

.dm-hp .hp-card__sketch img {
    aspect-ratio: auto;
    height: auto;
    object-fit: contain;
}

.hp-card h3 {
    margin-bottom: 10px;
    font-weight: 300;
    font-size: clamp(22px, 2vw, 32px);
    line-height: 1.12;
    color: var(--ink);
}

.hp-card p {
    max-width: 46ch;
    font-size: 16px;
    color: #444;
}

/* ---------- typy mebli ---------- */
.hp-k {
    padding-bottom: clamp(70px, 9vw, 130px);
}

.hp-k__head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: clamp(24px, 3vw, 40px);
}

.hp-k__head h2 {
    font-weight: 300;
    font-size: clamp(32px, 3.8vw, 60px);
    line-height: 1;
    letter-spacing: -.015em;
}

.hp-k__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(8px, 1vw, 14px);
}

.hp-k__tile {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--panel);
    color: #fff !important;
}

.dm-hp .hp-k__tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform 1s var(--ease);
}

.hp-k__tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .55) 100%);
}

.hp-k__tile span {
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 18px;
    bottom: 16px;
    font-weight: 300;
    font-size: clamp(19px, 1.6vw, 26px);
    line-height: 1.15;
}

.hp-k__tile span::after {
    content: "\2192";
    display: inline-block;
    margin-left: 10px;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity .3s ease, transform .3s ease;
}

.dm-hp .hp-k__tile:hover img {
    transform: scale(1.05);
}

.hp-k__tile:hover span::after {
    opacity: 1;
    transform: none;
}

.hp-k__more {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .6s var(--ease);
}

.hp-k__more > div {
    overflow: hidden;
}

.hp-k__more .hp-k__grid {
    padding-top: clamp(8px, 1vw, 14px);
}

.hp-k__more.is-open {
    grid-template-rows: 1fr;
}

.dm-hp .hp-k__toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: clamp(22px, 2.6vw, 36px) auto 0;
    background: #fff;
    color: var(--ink);
}

.hp-k__toggle svg {
    width: 14px;
    height: 14px;
    transition: transform .4s ease;
}

.hp-k__toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

/* ---------- kto Ci doradzi ---------- */
.hp-o {
    background: #2b2722;
    color: #f3eee4;
}

.hp-o .hp-wrap {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    gap: clamp(30px, 7vw, 130px);
    align-items: center;
    padding-block: clamp(70px, 10vw, 150px);
}

.hp-o .hp-kicker {
    color: #a39b8b;
}

.hp-o blockquote {
    margin: 18px 0 30px;
    border: 0;
    font-weight: 300;
    font-size: clamp(30px, 4.2vw, 64px);
    line-height: 1.08;
    letter-spacing: -.015em;
}

.hp-o p {
    max-width: 52ch;
    margin-bottom: 20px;
    font-size: 18px;
    color: #cfc8ba;
}

.hp-o p.hp-o__lead {
    color: #f3eee4;
}

.hp-o cite {
    display: block;
    margin: 34px 0;
    font-style: normal;
}

.hp-o cite b {
    display: block;
    font-weight: 300;
    font-size: 26px;
}

.hp-o cite span {
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #a39b8b;
}

.dm-hp .hp-o img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.dm-hp .hp-o .hp-btn:hover {
    background: #f3eee4;
    border-color: #f3eee4;
    color: #2b2722;
}

/* ---------- kafel Elitis ---------- */
.hp-e {
    position: relative;
    display: block;
    height: clamp(360px, 46vw, 620px);
    margin: clamp(60px, 8vw, 120px) var(--pad) 0;
    overflow: hidden;
    color: #fff !important;
}

.dm-hp .hp-e img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform 1.4s var(--ease);
}

.dm-hp .hp-e:hover img {
    transform: scale(1.04);
}

.hp-e::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0) 60%);
}

.hp-e div {
    position: absolute;
    z-index: 2;
    left: clamp(24px, 5vw, 80px);
    bottom: clamp(28px, 5vw, 70px);
}

.hp-e h2 {
    max-width: 12ch;
    margin: 12px 0 26px;
    font-weight: 300;
    font-size: clamp(36px, 5vw, 84px);
    line-height: .98;
    letter-spacing: -.02em;
    color: #fff;
}

/* ---------- blog ---------- */
.hp-j {
    padding: clamp(80px, 11vw, 160px) 0;
}

.hp-j__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 40px;
}

.hp-j__head h2 {
    font-weight: 300;
    font-size: clamp(30px, 3.4vw, 52px);
}

.hp-j__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2.4vw, 40px);
}

.hp-j__cards figure {
    margin-bottom: 18px;
    overflow: hidden;
}

.dm-hp .hp-j__cards img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .8s var(--ease);
}

.dm-hp .hp-j__cards a:hover img {
    transform: scale(1.04);
}

.hp-j__cards h3 {
    font-weight: 400;
    font-size: 20px;
    line-height: 1.3;
    color: var(--ink);
}

.hp-j__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 clamp(16px, 2.4vw, 40px);
    margin-top: clamp(30px, 4vw, 56px);
    border-top: 1px solid var(--line);
}

.hp-j__list a {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.dm-hp .hp-j__list img {
    width: 84px;
    height: 63px;
    object-fit: cover;
}

.hp-j__list span {
    font-size: 16px;
    line-height: 1.35;
}

/* ---------- salon ---------- */
.hp-v {
    position: relative;
    padding: clamp(110px, 17vw, 260px) 24px;
    background: #1b1a18 center / cover;
    color: #fff;
    text-align: center;
}

.hp-v::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .42);
}

.hp-v > * {
    position: relative;
}

.hp-v h2 {
    max-width: 16ch;
    margin: 14px auto 18px;
    font-weight: 300;
    font-size: clamp(34px, 5vw, 80px);
    line-height: 1.05;
    color: #fff;
}

.hp-v p {
    margin-bottom: 30px;
    font-size: 18px;
}

.hp-v__cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* ---------- tekst SEO ze starej strony (boks z panelu), na dole ---------- */
.shop_index .dm-hp-seo {
    padding: clamp(40px, 6vw, 80px) 0 20px;
    border-top: 1px solid #e6e4df;
}

/* ---------- okienko "Umow rozmowe" ---------- */
html.hp-modal-open {
    overflow: hidden;
}

.hp-modal {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(20, 18, 16, .62);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .3s ease;
}

.hp-modal[hidden] {
    display: none;
}

.hp-modal.is-on {
    opacity: 1;
}

.hp-modal__box {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: clamp(28px, 4vw, 48px);
    background: #fff;
    transform: translateY(20px) scale(.98);
    transition: transform .45s var(--ease);
}

.hp-modal.is-on .hp-modal__box {
    transform: none;
}

.dm-hp .hp-modal__x {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 28px;
    line-height: 1;
    color: var(--ink);
    cursor: pointer;
}

.hp-modal h2 {
    margin: 10px 0;
    font-weight: 300;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.05;
    color: var(--ink);
}

.hp-modal__lead {
    margin-bottom: 24px;
    color: #555;
}

.hp-form {
    display: grid;
    gap: 14px;
}

.hp-form label {
    display: grid;
    gap: 6px;
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.dm-hp .hp-form input,
.dm-hp .hp-form select,
.dm-hp .hp-form textarea {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #cfcac0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    font: inherit;
    font-size: 16px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
}

.dm-hp .hp-form input:focus,
.dm-hp .hp-form select:focus,
.dm-hp .hp-form textarea:focus {
    border-color: var(--ink);
    outline: none;
}

.dm-hp .hp-form textarea {
    min-height: 96px;
    resize: vertical;
}

.hp-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.hp-form .hp-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
    color: #555;
}

.dm-hp .hp-check input {
    width: auto;
    margin-top: 3px;
}

.hp-form .hp-btn {
    justify-self: start;
    margin-top: 6px;
}

.hp-form__err {
    display: none;
    font-size: 14px;
    color: #a02b2b;
}

.hp-modal.is-error .hp-form__err {
    display: block;
}

.hp-modal__ok {
    display: none;
    padding: 20px 0 10px;
}

.hp-modal.is-sent .hp-form,
.hp-modal.is-sent .hp-modal__lead {
    display: none;
}

.hp-modal.is-sent .hp-modal__ok {
    display: block;
}

/* ---------- telefon ---------- */
@media (max-width: 900px) {
    .dm-hp {
        --pad: 16px;
    }

    .hp-p__nav {
        display: none;
    }

    .hp-row {
        --h: 440px;
        --w: calc(var(--sl) + 130px);
        --wo: calc(var(--sl) + 84vw);
    }
.hp-tile__h b {        font-size: 26px;    }    .hp-tile__h span {        font-size: 15px;    }

    .hp-m__head,
    .hp-m__cards,
    .hp-o .hp-wrap,
    .hp-form__row {
        grid-template-columns: 1fr;
    }

    .hp-m__cards {
        gap: 40px;
    }

    .hp-k__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hp-j__cards,
    .hp-j__list {
        grid-template-columns: 1fr;
    }

    .dm-hero__txt {
        left: 16px;
        right: 16px;
    }
}

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

    .hp-rv.hp-pending {
        opacity: 1;
        transform: none;
    }

    .dm-hp *,
    .dm-hero * {
        animation: none !important;
        transition: none !important;
    }
}

/* naglowek H1 strony (SEO) - czytany przez wyszukiwarki i czytniki ekranu, niewidoczny */
.hp-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* napisy na kaflach producentow sa biale (ogolna regula .dm-hp a { color: inherit } byla mocniejsza) */
.dm-hp .hp-tile {
    color: #fff;
}

/* boksy z panelu: zostaje tylko tekst SEO na dole, slidery ze starej strony (tez ten pod filmem) sa ukryte */
.shop_index [id^="box_slider"] {
    display: none !important;
}
