/* Stránka Reference na pruzkumydk.cz. Převzato ze schváleného návrhu (navrh-reference/),
   třídy mají předponu r- a vše je uvnitř .pdk-ref, aby se nepotkaly se styly Woodmartu. */

.pdk-ref {
  --brown: #4e3e31;
  --orange: #d67a4c;
  --orange-dark: #b8603a;
  --orange-text: #a14e29;    /* tmavší odstín pro drobné popisky, kontrast WCAG AA */
  --grey: #ececec;
  --text: #333;
  --muted: #76675b;
  --line: rgba(78, 62, 49, .34);
  --lb-bg: #1d1713;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --grain: url("https://www.pruzkumydk.cz/wp-content/uploads/2025/08/header-bg.png");
  --hdr: var(--wd-header-h, 80px);

  font-family: "Manrope", Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Stránky referencí jdou přes celou šířku, první sekce zajíždí pod průhlednou hlavičku jako na úvodní stránce. */
/* Dolních 40 px odsazení zůstává: patička webu pod ně zajíždí, stejně jako na úvodní stránce. */
body.pdk-ref-page main#main-content { max-width: none; padding-top: 0; padding-inline: 0; }
.pdk-ref > section:first-child { margin-top: calc(-1 * var(--hdr)); }

/* Reset proti stylům šablony */
.pdk-ref :is(h1, h2, h3, p, figure, ol, ul, li) { margin: 0; padding: 0; }
.pdk-ref :is(ol, ul) { list-style: none; }
.pdk-ref :is(h1, h2, h3) { font-family: inherit; text-transform: none; letter-spacing: normal; }
.pdk-ref img { display: block; max-width: 100%; height: auto; }
.pdk-ref a { color: inherit; text-decoration: none; }
.pdk-ref button {
  appearance: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none;
  background: none; color: inherit; font: inherit; line-height: inherit;
  text-transform: none; letter-spacing: normal; min-height: 0; cursor: pointer;
}
.pdk-ref [hidden] { display: none !important; }
.pdk-ref :focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ---------- Tlačítka ---------- */
.pdk-ref .r-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 20px 50px;
  font-size: 15px; font-weight: 600; line-height: 1;
  border: 0; border-radius: 0;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.pdk-ref .r-btn--grey { background: var(--grey); color: var(--brown); }
.pdk-ref .r-btn--grey:hover { background: var(--brown); color: #fff; }
.pdk-ref .r-btn--white { background: #fff; color: var(--text); font-size: 18px; font-weight: 500; min-width: 320px; }
.pdk-ref .r-btn--white:hover { background: var(--brown); color: #fff; }
.pdk-ref .r-btn--light { background: rgba(255, 255, 255, .94); color: var(--brown); }
.pdk-ref .r-btn--light:hover { background: var(--orange); color: #fff; }
.pdk-ref .r-btn--brown { background: var(--brown); color: #fff; }
.pdk-ref .r-btn--brown:hover { background: var(--orange-dark); color: #fff; }
.pdk-ref .r-btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Společné prvky ---------- */
.pdk-ref .r-grain { position: relative; background: var(--grey); isolation: isolate; }
.pdk-ref .r-grain::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain) center / cover no-repeat; }
.pdk-ref .r-h-orange { font-size: clamp(28px, 3vw, 38px); font-weight: 600; line-height: 1.1; color: var(--orange); }
.pdk-ref .r-display { font-size: clamp(56px, 7.6vw, 110px); font-weight: 500; line-height: 1; color: var(--brown); letter-spacing: -.01em; }
.pdk-ref .r-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-text);
}
.pdk-ref .r-eyebrow b { font-weight: 700; color: var(--brown); }
.pdk-ref .r-crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.pdk-ref .r-crumbs a { color: var(--muted); }
.pdk-ref .r-crumbs a:hover { color: var(--orange); }
.pdk-ref .r-crumbs span[aria-hidden] { opacity: .5; }
.pdk-ref .r-arrow { width: 22px; height: 22px; flex: none; }

.pdk-ref .r-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.pdk-ref .r-reveal.is-in { opacity: 1; transform: none; }
.pdk-ref.no-js .r-reveal { opacity: 1; transform: none; }
.pdk-ref .r-load-1 { animation: r-up .9s var(--ease) both; }
.pdk-ref .r-load-2 { animation: r-up .9s .12s var(--ease) both; }
.pdk-ref .r-load-3 { animation: r-up .9s .24s var(--ease) both; }
@keyframes r-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---------- Přehled: úvod ---------- */
.pdk-ref .r-hero { min-height: min(760px, 86vh); display: flex; flex-direction: column; padding-top: var(--hdr); }
.pdk-ref .r-hero__in { flex: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding-block: 40px 30px; }
.pdk-ref .r-hero__tagline {
  justify-self: end; max-width: 660px; text-align: right;
  font-size: clamp(18px, 2.1vw, 30px); font-weight: 400; line-height: 1.34; text-transform: uppercase; color: var(--brown);
}
.pdk-ref .r-hero__facts { display: flex; gap: 48px; margin-top: 34px; }
.pdk-ref .r-hero__facts div { display: flex; align-items: baseline; gap: 12px; }
.pdk-ref .r-hero__facts strong { font-size: 39px; font-weight: 600; line-height: 1; color: var(--orange); }
.pdk-ref .r-hero__facts span { font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--brown); }
.pdk-ref .r-hero__down { align-self: center; display: block; padding: 10px 20px 34px; }
.pdk-ref .r-hero__down img { width: 12px; height: 51px; transition: transform .4s var(--ease); }
.pdk-ref .r-hero__down:hover img { transform: translateY(6px); }

/* ---------- Přehled: rejstřík typů staveb ---------- */
.pdk-ref .r-types { background: var(--grey); padding: 110px 0 120px; }
.pdk-ref .r-types__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 46px; }
.pdk-ref .r-types__lead { font-size: 17px; font-weight: 600; line-height: 2.35; color: var(--text); max-width: 620px; }
.pdk-ref .r-types__lead em { font-style: normal; color: var(--orange-text); }
.pdk-ref .r-types__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 70px; align-items: start; }

.pdk-ref .r-ix { border-bottom: 1px solid var(--line); }
.pdk-ref .r-ix__link {
  display: grid; grid-template-columns: 64px 1fr auto 28px; align-items: center; gap: 18px;
  padding: 22px 6px 22px 0; border-top: 1px solid var(--line); color: var(--brown);
  transition: padding .35s var(--ease);
}
.pdk-ref .r-ix__num { font-size: 16px; font-weight: 600; color: var(--orange-text); font-variant-numeric: tabular-nums; }
.pdk-ref .r-ix__name { font-size: clamp(22px, 2.35vw, 34px); font-weight: 500; line-height: 1.15; transition: color .3s; }
.pdk-ref .r-ix__count { font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.pdk-ref .r-ix__link .r-arrow { color: var(--brown); opacity: .35; transform: translateX(-6px); transition: transform .35s var(--ease), opacity .35s, color .35s; }
.pdk-ref .r-ix__thumb { display: none; }
.pdk-ref .r-ix__link:hover, .pdk-ref .r-ix__link.is-current { padding-left: 14px; }
.pdk-ref .r-ix__link:hover .r-ix__name, .pdk-ref .r-ix__link.is-current .r-ix__name { color: var(--orange); }
.pdk-ref .r-ix__link:hover .r-arrow, .pdk-ref .r-ix__link.is-current .r-arrow { opacity: 1; color: var(--orange); transform: none; }

.pdk-ref .r-ix-preview { position: sticky; top: calc(var(--wd-header-sticky-h, 60px) + 30px); }
.pdk-ref .r-ix-preview__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #d9d4cf; }
.pdk-ref .r-ix-preview__frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); transition: opacity .6s var(--ease), transform 1.4s var(--ease);
}
.pdk-ref .r-ix-preview__frame img.is-active { opacity: 1; transform: scale(1); }
.pdk-ref .r-ix-preview__num {
  position: absolute; left: 22px; top: 18px; z-index: 2;
  font-size: 92px; font-weight: 500; line-height: 1; color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25); font-variant-numeric: tabular-nums;
}
.pdk-ref .r-ix-preview__cap { display: flex; justify-content: space-between; gap: 20px; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
.pdk-ref .r-ix-preview__cap b { color: var(--brown); font-weight: 600; }

/* ---------- Karty referencí ---------- */
.pdk-ref .r-list { padding: 110px 0 120px; background: #fff; }
.pdk-ref .r-list__head { display: flex; align-items: baseline; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.pdk-ref .r-list__head p { font-size: 15px; font-weight: 600; color: var(--muted); }
.pdk-ref .r-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.pdk-ref .r-card { display: flex; flex-direction: column; color: inherit; background: #fff; }
.pdk-ref .r-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #ddd8d3; }
.pdk-ref .r-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.pdk-ref .r-card__media::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.pdk-ref .r-card__count {
  position: absolute; left: 14px; bottom: 14px; z-index: 1;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 10px; background: rgba(29, 23, 19, .72); color: #fff;
  font-size: 13px; font-weight: 600; line-height: 1;
}
.pdk-ref .r-card__count svg { width: 15px; height: 15px; }
.pdk-ref .r-card__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 24px 26px; border: 1px solid var(--line); border-top: 0; }
.pdk-ref .r-card__cat { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-text); }
.pdk-ref .r-card__title { font-size: 22px; font-weight: 600; line-height: 1.3; color: var(--brown); }
.pdk-ref .r-card__text {
  font-size: 15px; font-weight: 500; line-height: 1.6; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pdk-ref .r-card__more {
  margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; color: var(--brown); transition: color .3s, gap .3s var(--ease);
}
.pdk-ref .r-card__more .r-arrow { width: 18px; height: 18px; }
.pdk-ref .r-card:hover .r-card__media img { transform: scale(1.05); }
.pdk-ref .r-card:hover .r-card__media::after { transform: scaleX(1); }
.pdk-ref .r-card:hover .r-card__more, .pdk-ref a.r-card__more:hover { color: var(--orange); gap: 16px; }
.pdk-ref .r-list__more { display: flex; justify-content: center; margin-top: 56px; }

/* ---------- Typ staveb ---------- */
.pdk-ref .r-c-hero { padding: calc(var(--hdr) + 40px) 0 100px; overflow: hidden; }
.pdk-ref .r-c-hero__grid { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 70px; margin-top: 70px; }
.pdk-ref .r-c-hero__mark { position: relative; width: clamp(200px, 26vw, 360px); aspect-ratio: 1; display: grid; place-items: center; color: var(--brown); }
.pdk-ref .r-c-hero__mark svg { position: absolute; inset: -6%; width: 112%; height: 112%; color: rgba(78, 62, 49, .32); }
.pdk-ref .r-c-hero__mark span { position: relative; font-size: clamp(90px, 12vw, 170px); font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.pdk-ref .r-c-hero__title { font-size: clamp(44px, 6.4vw, 96px); font-weight: 500; line-height: 1.02; color: var(--brown); letter-spacing: -.01em; }
.pdk-ref .r-c-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 34px; margin-top: 28px; font-size: 16px; font-weight: 600; color: var(--brown); }
.pdk-ref .r-c-hero__meta strong { color: var(--orange); font-size: 30px; font-weight: 600; margin-right: 8px; }

.pdk-ref .r-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 44px; }
.pdk-ref .r-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px;
  border: 1px solid var(--line); background: #fff;
  font-size: 15px; font-weight: 600; line-height: 1.1; color: var(--brown);
  transition: background-color .25s, color .25s, border-color .25s;
}
.pdk-ref .r-chip small { font-size: 13px; color: var(--muted); font-weight: 600; }
.pdk-ref .r-chip:hover { border-color: var(--brown); }
.pdk-ref .r-chip.is-active { background: var(--brown); border-color: var(--brown); color: #fff; }
.pdk-ref .r-chip.is-active small { color: rgba(255, 255, 255, .7); }

/* ---------- Prázdná rubrika článků ---------- */
.pdk-ref .r-rubrika { padding-bottom: 130px; }
.pdk-ref .r-rubrika .r-c-hero__title { margin-top: 60px; }
.pdk-ref .r-rubrika__text { margin-top: 28px; max-width: 680px; font-size: 20px; font-weight: 500; line-height: 1.6; color: var(--brown); }
.pdk-ref .r-rubrika__btns { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }
.pdk-ref .r-rubrika__btns .r-btn--white { min-width: 0; }

/* ---------- Detail reference ---------- */
.pdk-ref .r-d-hero { background: var(--grey); padding: calc(var(--hdr) + 34px) 0 90px; }
.pdk-ref .r-d-hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 70px; align-items: center; margin-top: 46px; }
.pdk-ref .r-d-hero__title { margin-top: 20px; font-size: clamp(34px, 4vw, 58px); font-weight: 500; line-height: 1.1; color: var(--brown); letter-spacing: -.005em; text-wrap: balance; }
.pdk-ref .r-d-hero__lead { margin-top: 26px; font-size: 21px; font-weight: 500; line-height: 1.6; color: var(--brown); }
.pdk-ref .r-d-hero__lead p + p { margin-top: .8em; }
.pdk-ref .r-d-hero__media { position: relative; }
.pdk-ref .r-d-hero__photo { display: block; width: 100%; cursor: zoom-in; background: #d9d4cf; aspect-ratio: 4 / 3; overflow: hidden; }
.pdk-ref .r-d-hero__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pdk-ref .r-d-hero__photo:hover img { transform: scale(1.03); }
.pdk-ref .r-d-hero__all { position: absolute; left: 22px; bottom: 22px; padding: 16px 22px; }

.pdk-ref .r-spec { background: var(--grey); padding-bottom: 40px; }
.pdk-ref .r-spec__row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 56px 0; border-top: 1px solid var(--line); }
.pdk-ref .r-spec__row:first-child { border-top: 0; padding-top: 10px; }
.pdk-ref .r-spec__body { font-size: 17px; font-weight: 600; line-height: 2.35; color: var(--text); overflow-wrap: anywhere; }
.pdk-ref .r-spec__body p + p { margin-top: 1em; }
.pdk-ref .r-spec__body a { color: var(--orange-text); text-decoration: underline; text-underline-offset: 3px; }
.pdk-ref .r-spec__body a:hover { color: var(--brown); }

.pdk-ref .r-gal { padding: 100px 0 40px; background: #fff; }
.pdk-ref .r-gal__head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 34px; }
.pdk-ref .r-gal__head span { font-size: 16px; font-weight: 600; color: var(--muted); }
.pdk-ref .r-gal__grid { display: flex; flex-wrap: wrap; gap: 12px; }
.pdk-ref .r-gal__grid::after { content: ""; flex-grow: 1000000; }
.pdk-ref .r-gal__item {
  position: relative; display: block; cursor: zoom-in; overflow: hidden; background: #ddd8d3;
  flex-grow: calc(var(--r) * 10); flex-basis: calc(var(--r) * 230px); aspect-ratio: var(--r);
}
.pdk-ref .r-gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pdk-ref .r-gal__item::after {
  content: "+"; position: absolute; right: 12px; bottom: 10px; width: 34px; height: 34px;
  display: grid; place-items: center; background: var(--orange); color: #fff;
  font-size: 24px; font-weight: 500; line-height: 1;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease);
}
.pdk-ref .r-gal__item:hover img { transform: scale(1.04); }
.pdk-ref .r-gal__item:hover::after, .pdk-ref .r-gal__item:focus-visible::after { opacity: 1; transform: none; }

.pdk-ref .r-pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 60px; }
.pdk-ref .r-pager a { display: flex; flex-direction: column; gap: 8px; padding: 34px 30px 34px 0; color: var(--brown); }
.pdk-ref .r-pager a + a { text-align: right; align-items: flex-end; border-left: 1px solid var(--line); padding: 34px 0 34px 30px; }
.pdk-ref .r-pager small { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-text); }
.pdk-ref .r-pager strong { font-size: 22px; font-weight: 600; line-height: 1.3; transition: color .3s; }
.pdk-ref .r-pager a:hover strong { color: var(--orange); }

.pdk-ref .r-related { padding: 100px 0 120px; }
.pdk-ref .r-related .r-list__head { margin-bottom: 34px; }

/* ---------- Kontakt (jako na úvodní stránce) ---------- */
.pdk-ref .r-contact { position: relative; background: var(--grey); isolation: isolate; padding: 150px 0; text-align: center; }
.pdk-ref .r-contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain) 0 0 / auto; opacity: .5; }
.pdk-ref .r-contact__h { font-size: clamp(40px, 5.6vw, 80px); font-weight: 600; line-height: 1; color: var(--brown); }
.pdk-ref .r-contact__p { margin-top: 50px; font-size: 18px; font-weight: 500; line-height: 30px; color: var(--brown); }
.pdk-ref .r-contact__btns { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 64px; }

/* ---------- Lightbox ---------- */
.pdk-ref .r-lb {
  position: fixed; inset: 0; z-index: 100000; background: var(--lb-bg); color: #f1e9e2;
  display: grid; grid-template-rows: auto 1fr auto; opacity: 0; transition: opacity .3s var(--ease);
}
.pdk-ref .r-lb[hidden] { display: none !important; }
.pdk-ref .r-lb.is-open { opacity: 1; }
.pdk-ref .r-lb__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 16px 20px; }
.pdk-ref .r-lb__counter { font-size: 15px; font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; color: #f1e9e2; }
.pdk-ref .r-lb__title { font-size: 15px; font-weight: 600; color: #b9aa9c; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
.pdk-ref .r-lb__close { justify-self: end; }
.pdk-ref .r-lb__btn {
  width: 52px; height: 52px; display: grid; place-items: center;
  border: 1px solid rgba(241, 233, 226, .25); color: #f1e9e2;
  transition: background-color .25s, border-color .25s;
}
.pdk-ref .r-lb__btn:hover { background: var(--orange); border-color: var(--orange); }
.pdk-ref .r-lb__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.pdk-ref .r-lb__stage { min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 0 100px; }
.pdk-ref .r-lb__img { max-width: 100%; max-height: calc(100vh - 290px); width: auto; height: auto; object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); transition: opacity .25s; }
.pdk-ref .r-lb__img.is-loading { opacity: .25; }
.pdk-ref .r-lb__cap { max-width: 760px; text-align: center; }
.pdk-ref .r-lb__text { font-size: 17px; font-weight: 500; line-height: 1.55; }
.pdk-ref .r-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.pdk-ref .r-lb__prev { left: 24px; }
.pdk-ref .r-lb__next { right: 24px; }
.pdk-ref .r-lb__strip { position: relative; display: flex; gap: 6px; padding: 14px 20px 18px; overflow-x: auto; scrollbar-width: none; }
.pdk-ref .r-lb__strip > :first-child { margin-left: auto; }
.pdk-ref .r-lb__strip > :last-child { margin-right: auto; }
.pdk-ref .r-lb__strip button { flex: none; width: 64px; height: 46px; opacity: .4; transition: opacity .25s; outline-offset: 2px; background: #000; }
.pdk-ref .r-lb__strip button img { width: 100%; height: 100%; object-fit: cover; }
.pdk-ref .r-lb__strip button:hover { opacity: .8; }
.pdk-ref .r-lb__strip button.is-current { opacity: 1; box-shadow: inset 0 -3px 0 var(--orange); }
.pdk-ref .r-lb__strip button.is-current img { outline: 2px solid var(--orange); outline-offset: -2px; }
html.r-lb-open, html.r-lb-open body { overflow: hidden; }

/* ---------- Responzivita ---------- */
@media (max-width: 1100px) {
  .pdk-ref .r-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdk-ref .r-types__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
  .pdk-ref .r-d-hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .pdk-ref .r-d-hero__media { order: -1; }
}

@media (max-width: 860px) {
  .pdk-ref .r-hero { min-height: 0; }
  .pdk-ref .r-hero__in { grid-template-columns: 1fr; gap: 26px; padding-block: 50px 20px; }
  .pdk-ref .r-hero__tagline { justify-self: start; text-align: left; }
  .pdk-ref .r-hero__facts { gap: 30px; }

  .pdk-ref .r-types { padding: 70px 0 80px; }
  .pdk-ref .r-types__head { grid-template-columns: 1fr; gap: 16px; }
  .pdk-ref .r-types__lead { line-height: 1.9; }
  .pdk-ref .r-types__grid { grid-template-columns: 1fr; }
  .pdk-ref .r-ix-preview { display: none; }
  .pdk-ref .r-ix__link { grid-template-columns: 56px 34px 1fr auto; gap: 14px; padding: 14px 0; }
  .pdk-ref .r-ix__link:hover, .pdk-ref .r-ix__link.is-current { padding-left: 0; }
  .pdk-ref .r-ix__link .r-arrow { display: none; }
  .pdk-ref .r-ix__thumb { display: block; width: 56px; height: 56px; object-fit: cover; order: -1; }
  .pdk-ref .r-ix__num { font-size: 14px; }

  .pdk-ref .r-list, .pdk-ref .r-related { padding: 70px 0 80px; }
  .pdk-ref .r-c-hero { padding-bottom: 60px; }
  .pdk-ref .r-c-hero__grid { grid-template-columns: 1fr; gap: 20px; margin-top: 30px; }
  .pdk-ref .r-c-hero__mark { width: 180px; }
  .pdk-ref .r-spec__row { grid-template-columns: 1fr; gap: 14px; padding: 36px 0; }
  .pdk-ref .r-spec__body { line-height: 1.9; }
  .pdk-ref .r-gal { padding-top: 70px; }
  .pdk-ref .r-pager { grid-template-columns: 1fr; }
  .pdk-ref .r-pager a, .pdk-ref .r-pager a + a { padding: 28px 0; }
  .pdk-ref .r-pager a + a { border-left: 0; border-top: 1px solid var(--line); }
  .pdk-ref .r-contact { padding: 90px 0; }
  .pdk-ref .r-contact__p { margin-top: 30px; }
  .pdk-ref .r-contact__btns { margin-top: 40px; }
  .pdk-ref .r-lb__stage { padding: 0 16px; }
  .pdk-ref .r-lb__nav { top: auto; bottom: 86px; transform: none; width: 46px; height: 46px; }
  .pdk-ref .r-lb__prev { left: 16px; }
  .pdk-ref .r-lb__next { right: 16px; }
  .pdk-ref .r-lb__img { max-height: calc(100vh - 330px); }
  .pdk-ref .r-lb__title { display: none; }
  .pdk-ref .r-lb__bar { grid-template-columns: 1fr auto; }
}

@media (max-width: 640px) {
  .pdk-ref { font-size: 16px; }
  .pdk-ref .r-cards { grid-template-columns: 1fr; gap: 24px; }
  .pdk-ref .r-card__body { padding: 20px; }
  .pdk-ref .r-card__title { font-size: 20px; }
  .pdk-ref .r-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -15px; padding-inline: 15px; scrollbar-width: none; }
  .pdk-ref .r-chip { flex: none; }
  .pdk-ref .r-hero__facts { display: grid; grid-template-columns: max-content 1fr; align-items: baseline; gap: 14px; margin-top: 24px; }
  .pdk-ref .r-hero__facts div { display: contents; }
  .pdk-ref .r-d-hero { padding-bottom: 60px; }
  .pdk-ref .r-d-hero__lead { font-size: 18px; }
  .pdk-ref .r-d-hero__all { left: 12px; bottom: 12px; padding: 12px 14px; font-size: 14px; }
  .pdk-ref .r-gal__grid { gap: 8px; }
  .pdk-ref .r-gal__item { flex-basis: calc(var(--r) * 120px); }
  .pdk-ref .r-btn--white { min-width: 0; width: 100%; padding-inline: 20px; }
  .pdk-ref .r-list__head { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .pdk-ref *, .pdk-ref *::before, .pdk-ref *::after { animation: none !important; transition: none !important; }
  .pdk-ref .r-reveal { opacity: 1; transform: none; }
}
