/* Главная — компактный inset-слайдер (не на весь экран) */

.wrap { width: min(1120px, calc(100% - 2.75rem)); margin-inline: auto; }

/* Hero: карточка с полями от краёв экрана, как у полиграфических витрин */
.pp-hero {
  position: relative;
  width: min(1120px, calc(100% - 2.75rem));
  margin: 1.15rem auto 0;
  min-height: 0;
  height: clamp(300px, 42vh, 400px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  border-radius: 18px;
  background: #111;
  border: 1px solid rgba(10, 10, 10, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 18px 40px rgba(10, 10, 10, 0.14);
}
.pp-hero::after {
  content: '';
  position: absolute; left: 1.25rem; right: 1.25rem; top: 0; z-index: 4;
  height: 3px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--yellow), #fff38a 55%, transparent);
  pointer-events: none;
}
.pp-hero-slider { position: absolute; inset: 0; border-radius: inherit; }
.pp-hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.85s var(--ease);
}
.pp-hero-slide.is-on { opacity: 1; z-index: 1; }
.pp-hero-slide a {
  position: absolute; inset: 0; display: block;
}
.pp-hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
  transform: scale(1.03);
  filter: saturate(1.04) contrast(1.04);
  animation: ppKen 16s ease-in-out infinite alternate;
}
.pp-hero-veil {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(105deg, rgba(12,12,12,0.92) 0%, rgba(12,12,12,0.72) 38%, rgba(12,12,12,0.28) 72%, rgba(12,12,12,0.18) 100%),
    radial-gradient(ellipse 45% 55% at 88% 18%, rgba(255,204,0,0.22), transparent 60%);
}
.pp-hero-inner {
  position: relative; z-index: 3;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.6rem 1.45rem 1.35rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto;
  grid-template-areas:
    "brand brand"
    "title title"
    "lead lead"
    "cta nav";
  gap: 0.35rem 1rem;
  align-items: end;
  animation: ppRise 0.75s var(--ease) 0.1s both;
}
.pp-brand {
  grid-area: brand;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  line-height: 0.95; letter-spacing: -0.04em; margin: 0 0 0.35rem;
  background: linear-gradient(100deg, #fff 10%, var(--yellow) 58%, #fff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pp-hero h1 {
  grid-area: title;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.28rem);
  font-weight: 500; margin: 0 0 0.45rem; color: rgba(255,255,255,0.92);
  max-width: 28rem;
}
.pp-lead {
  grid-area: lead;
  margin: 0 0 0.85rem; color: rgba(255,255,255,0.68); font-size: 0.95rem;
  max-width: 30rem; line-height: 1.45;
}
.pp-cta { grid-area: cta; display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; }
.pp-hero-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.08);
  color: #fff;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.pp-hero-icon svg { width: 20px; height: 20px; }
.pp-hero-icon:hover { border-color: #fff; background: rgba(255,255,255,0.16); }
.pp-hero-icon:active { transform: scale(0.96); }
.home-ghost-light {
  border: 1px solid rgba(255,255,255,0.28); color: #fff; background: rgba(255,255,255,0.06);
}
.home-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.12); }
.pp-hero-nav {
  grid-area: nav;
  display: flex; align-items: center; gap: 0.55rem;
  justify-self: end; margin-bottom: 0.1rem;
}
.pp-hero-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(10,10,10,0.35); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.pp-hero-arrow:hover {
  background: var(--yellow); color: var(--ink); border-color: var(--yellow);
  transform: translateY(-1px);
}
.pp-hero-arrow svg { width: 14px; height: 14px; display: block; }
.pp-hero-dots {
  display: flex; gap: 0.4rem; align-items: center;
}
.pp-hero-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255,255,255,0.35); cursor: pointer;
  transition: transform 0.2s, background 0.2s, width 0.25s;
}
.pp-hero-dots button.is-on {
  background: var(--yellow); width: 20px; border-radius: 999px;
}

/* Поиск под слайдером */
.pp-search {
  position: relative;
  z-index: 25;
  margin-top: 0.85rem;
}
.pp-search-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  height: 48px;
  padding: 0 1rem 0 0.95rem;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--white);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 8px 22px rgba(10, 10, 10, 0.05);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.pp-search-label:focus-within {
  border-color: var(--ink);
  box-shadow:
    0 0 0 3px rgba(255, 204, 0, 0.28),
    0 10px 26px rgba(10, 10, 10, 0.07);
}
.pp-search-ico {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.pp-search-ico svg {
  width: 18px;
  height: 18px;
  display: block;
}
.pp-search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  padding: 0;
}
.pp-search-input::placeholder {
  color: var(--muted);
  font-weight: 500;
}
.pp-search-input::-webkit-search-decoration,
.pp-search-input::-webkit-search-cancel-button {
  appearance: none;
}
.pp-search-results {
  top: calc(100% + 8px);
  border-radius: 14px;
  max-height: min(360px, 48vh);
}

@keyframes ppKen {
  from { transform: scale(1.04) translate3d(0,0,0); }
  to { transform: scale(1.09) translate3d(-1.2%, -0.8%, 0); }
}
@keyframes ppRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes ppFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.pp-cats {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  padding: 1.1rem 0 0.2rem;
}
.pp-cats a {
  padding: 0.5rem 0.9rem; border-radius: 999px; font-weight: 600; font-size: 0.88rem;
  border: 1.5px solid var(--line); color: var(--ink-2);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.pp-cats a:hover { border-color: var(--ink); background: var(--yellow); color: var(--ink); transform: translateY(-1px); }
.pp-cats .pp-fast {
  margin-left: auto; border-color: var(--ink); background: var(--ink); color: var(--yellow);
}
.pp-cats .pp-fast:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

/* Мега-меню под поиском */
.pp-mega {
  position: relative;
  padding: 0.85rem 0 0.35rem;
  z-index: 20;
}
.pp-mega-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}
.pp-mega-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.pp-mega-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 0.88rem;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.pp-mega-tab:hover {
  border-color: var(--ink);
  background: var(--yellow);
  color: var(--ink);
  transform: translateY(-1px);
}
.pp-mega-tab.is-on {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--yellow);
  box-shadow: 0 8px 18px rgba(10, 10, 10, 0.12);
}
.pp-mega-tab.is-on .pp-mega-chevron { transform: rotate(180deg); }
.pp-mega-chevron {
  width: 11px;
  height: 11px;
  transition: transform 0.22s var(--ease);
  opacity: 0.85;
}
.pp-mega-all {
  margin-left: auto;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--yellow);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.pp-mega-all:hover {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
  transform: translateY(-1px);
}
.pp-mega-panels {
  position: relative;
  margin-top: 0.65rem;
}
.pp-mega-panel {
  display: none;
  position: relative;
  background: var(--white);
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 0 0 14px 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 16px 36px rgba(10, 10, 10, 0.1);
  overflow: hidden;
}
/* UA [hidden]{display:none!important} — открытое состояние должно побеждать */
.pp-mega-panel[hidden]:not(.is-open) {
  display: none !important;
}
.pp-mega-panel.is-open {
  display: block !important;
  animation: ppMegaIn 0.3s ease both;
}
.pp-mega-accent {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--yellow) 0%, #ffe566 55%, var(--yellow) 100%);
}
.pp-mega-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem 2.5rem;
  padding: 1.15rem 1.45rem 1.35rem;
}
.pp-mega-col {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.pp-mega-col a {
  display: block;
  padding: 0.42rem 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s, transform 0.15s;
}
.pp-mega-col a:hover {
  color: var(--ink);
  border-bottom-color: var(--yellow);
  transform: translateX(2px);
}
@keyframes ppMegaIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.sec-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.6rem; flex-wrap: wrap;
}
.sec-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin: 0; letter-spacing: -0.03em;
}
.sec-head a { color: var(--ink); font-weight: 800; font-size: 0.92rem; border-bottom: 2px solid var(--yellow); }
.sec-head a:hover { color: var(--yellow-dim); }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem 1.35rem;
}
.cat-card {
  display: flex; flex-direction: column; gap: 0.35rem;
  background: transparent; border: 0; box-shadow: none;
  transition: transform 0.3s var(--ease);
}
.cat-card:hover { transform: translateY(-5px); }
.cat-card-img {
  background: var(--white);
  border: 0; border-radius: 18px;
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 0.55rem;
  box-shadow: 0 12px 28px rgba(10, 10, 10, 0.06);
  position: relative;
}
.cat-card-img::before {
  content: '';
  position: absolute;
  inset: 0.55rem;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 204, 0, 0.18), transparent 55%),
    linear-gradient(160deg, #f3f3ef, #eaeae4);
  z-index: 0;
}
.cat-card-img img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(10, 10, 10, 0.1));
  transition: transform 0.4s var(--ease), filter 0.4s;
}
.cat-card-img img[src=""],
.cat-card-img img:not([src]) {
  opacity: 0;
}
.cat-card:hover .cat-card-img img {
  transform: scale(1.04);
  filter: drop-shadow(0 18px 36px rgba(10, 10, 10, 0.14));
}
.cat-card-row {
  display: flex; justify-content: space-between; gap: 0.5rem; align-items: baseline;
  font-weight: 800; font-size: 0.98rem;
}
.cat-price {
  color: var(--ink); white-space: nowrap;
  background: var(--yellow); padding: 0.15rem 0.45rem; border-radius: 6px;
  font-size: 0.82rem;
}
.cat-short { color: var(--muted); font-size: 0.86rem; }

.pp-steps { background: linear-gradient(180deg, transparent, rgba(255,204,0,0.08) 40%, transparent); }
.pp-steps-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.pp-steps-grid li {
  padding: 1.4rem 1.2rem 1.3rem;
  border-top: 3px solid var(--yellow);
  background: var(--white);
  border-radius: 0 0 16px 16px;
}
.pp-step-n {
  display: inline-block; font-family: var(--font-display);
  font-size: 1.15rem; letter-spacing: -0.04em; margin-bottom: 0.55rem;
  background: var(--yellow); color: var(--ink);
  padding: 0.2rem 0.55rem; border-radius: 8px;
}
.pp-steps-grid h3 {
  font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 0.45rem; letter-spacing: -0.02em;
}
.pp-steps-grid p { margin: 0; color: var(--muted); }

.rgrid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.rcard {
  background: var(--white); border: 0; border-top: 3px solid var(--yellow);
  padding: 1.25rem 1.1rem 1rem; border-radius: 0 0 14px 14px;
}
.rtop { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.65rem; flex-wrap: wrap; }
.ava {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  color: var(--ink); font-weight: 800; font-size: 0.75rem; background: var(--yellow) !important;
}
.ava--img {
  padding: 0; overflow: hidden; background: #e8edf4 !important;
}
.ava--img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.rname { font-weight: 700; }
.rdate { margin-left: auto; color: var(--muted); font-size: 0.82rem; }
.rtext { margin: 0; color: var(--ink-2); }

.works-dense {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
.works-dense .w {
  position: relative; overflow: hidden; border-radius: 14px;
  aspect-ratio: 4/3; background: #f0f0ea;
  transition: transform 0.35s var(--ease);
  border: 2px solid transparent;
}
.works-dense .w:hover { transform: translateY(-3px); border-color: var(--yellow); }
.works-dense .w img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.works-dense .w:hover img { transform: scale(1.05); }
.works-dense .w span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.7rem 0.85rem;
  background: linear-gradient(transparent, rgba(10,10,10,0.82));
  color: #fff; font-weight: 700; font-size: 0.86rem;
}

/* CTA на главной → отдельная страница галереи */
.pp-works-cta .pp-works-lead {
  margin: 0 0 1.25rem;
  max-width: 42rem;
  opacity: 0.78;
  font-size: 1.02rem;
  line-height: 1.45;
}
.works-teaser {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.15rem 0.85rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 10, 10, 0.28) transparent;
}
.works-teaser::-webkit-scrollbar { height: 6px; }
.works-teaser::-webkit-scrollbar-track { background: transparent; }
.works-teaser::-webkit-scrollbar-thumb {
  background: rgba(10, 10, 10, 0.22);
  border-radius: 999px;
}
.works-teaser-item {
  position: relative;
  flex: 0 0 clamp(168px, 22vw, 220px);
  width: clamp(168px, 22vw, 220px);
  display: block;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  background: #f0f0ea;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.works-teaser-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(10, 10, 10, 0.12);
}
.works-teaser-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.works-teaser-item:hover img { transform: scale(1.05); }
.works-teaser-item span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.55rem 0.7rem;
  background: linear-gradient(transparent, rgba(10,10,10,0.85));
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pp-works-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.pp-contacts {
  margin-top: 1rem;
  background: var(--ink);
  color: #fff; padding: 2.4rem 0;
}
.pp-contacts-inner {
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: end;
}
.pp-contacts h2 {
  font-family: var(--font-display); margin: 0 0 0.4rem; font-size: 1.6rem;
}
.pp-contacts h2::after {
  content: ''; display: block; width: 2.5rem; height: 0.35rem; margin-top: 0.55rem;
  background: var(--yellow); border-radius: 999px;
}
.pp-contacts p { margin: 0; color: rgba(255,255,255,0.65); }
.pp-contacts-links { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; }
.pp-contacts-links a { color: #fff; font-weight: 700; }
.pp-contacts-links a:hover { color: var(--yellow); }

.pp-rise .cat-card,
.pp-rise .rcard,
.pp-rise .w,
.pp-rise .works-teaser-item {
  animation: ppRise 0.7s var(--ease) both;
}
.pp-rise .cat-card:nth-child(2), .pp-rise .rcard:nth-child(2), .pp-rise .w:nth-child(2),
.pp-rise .works-teaser-item:nth-child(2) { animation-delay: 0.06s; }
.pp-rise .cat-card:nth-child(3), .pp-rise .rcard:nth-child(3), .pp-rise .w:nth-child(3),
.pp-rise .works-teaser-item:nth-child(3) { animation-delay: 0.12s; }
.pp-rise .cat-card:nth-child(4), .pp-rise .rcard:nth-child(4), .pp-rise .w:nth-child(4),
.pp-rise .works-teaser-item:nth-child(4) { animation-delay: 0.18s; }
.pp-rise .works-teaser-item:nth-child(5) { animation-delay: 0.24s; }
.pp-rise .works-teaser-item:nth-child(6) { animation-delay: 0.3s; }

.section-head { margin-bottom: 1.4rem; }
.section-head h2 { font-family: var(--font-display); margin: 0 0 0.4rem; letter-spacing: -0.03em; }
.section-head p { margin: 0; color: var(--muted); }

/* Конструктор фото */
.builder {
  background: var(--white);
  border: 2px solid var(--yellow);
  border-radius: 24px;
  padding: 1.35rem;
}
.b-cols {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 1.4rem;
  align-items: start;
}
.stage { min-width: 0; }
.drop {
  border: 1.5px dashed rgba(10,10,10,0.18);
  border-radius: 20px;
  min-height: 360px;
  display: grid;
  place-content: center;
  gap: 0.45rem;
  text-align: center;
  padding: 2rem 1.25rem;
  background:
    radial-gradient(ellipse 60% 50% at 50% 20%, rgba(255,204,0,0.14), transparent 60%),
    var(--paper);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.drop.over, .drop:hover {
  border-color: var(--ink);
  background: rgba(255,204,0,0.1);
}
.drop-ic { font-size: 2rem; line-height: 1; }
.drop b { font-size: 1.05rem; }
.drop span { color: var(--muted); font-size: 0.9rem; }
.canvas-hold {
  display: flex; justify-content: center; align-items: center;
  background: #0d0d0d; border-radius: 20px; padding: 1rem; min-height: 360px;
}
.canvas-hold canvas {
  max-width: 100%; height: auto; border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
.hint { margin-top: 0.65rem; color: var(--muted); font-size: 0.86rem; text-align: center; }
.opt-block {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}
.opt-block:last-child { border-bottom: 0; }
.opt-block h4 {
  display: flex; align-items: center; gap: 0.55rem;
  margin: 0 0 0.7rem; font-size: 0.95rem;
}
.stepnum {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--yellow); color: var(--ink); font-size: 0.72rem; font-weight: 800;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  border: 1.5px solid var(--line); background: var(--paper);
  border-radius: 999px; padding: 0.45rem 0.85rem;
  font-weight: 700; font-size: 0.86rem; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip.on, .chip:hover { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.sl-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  font-size: 0.9rem; color: var(--muted); font-weight: 600;
}
.sl-row input[type=range] { flex: 1; accent-color: var(--yellow); }
.cap-inp, .mail-inp {
  width: 100%; padding: 0.7rem 0.85rem; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--paper); outline: none;
}
.cap-inp:focus, .mail-inp:focus { border-color: var(--yellow); background: #fff; }
.qty-row { display: flex; align-items: center; gap: 0.65rem; }
.qty-btn {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--paper); font-size: 1.1rem; font-weight: 700; cursor: pointer;
}
.qty-btn:hover { border-color: var(--ink); background: var(--yellow); }
#qtyVal { font-weight: 800; min-width: 1.5rem; text-align: center; }
.qty-label { color: var(--muted); font-size: 0.88rem; }
.total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 0.85rem; font-size: 1.05rem;
}
.total .p {
  font-family: var(--font-display); font-size: 1.55rem; letter-spacing: -0.03em;
  color: var(--ink);
}
.mail-form { display: grid; gap: 0.55rem; }
.send-btn {
  margin-top: 0.2rem; border: 0; border-radius: 999px; padding: 0.85rem 1.1rem;
  font-weight: 800; cursor: pointer; color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 12px 28px rgba(255, 204, 0, 0.35);
}
.send-btn:hover { filter: brightness(1.05); }
.note { margin-top: 0.75rem; color: var(--muted); font-size: 0.84rem; }

.cat-page-hero { padding: 2rem 0 1rem; }
.cat-page-layout {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: center;
}
.cat-page-visual {
  background: var(--yellow);
  border-radius: 28px;
  padding: 1.25rem;
}
.cat-page-visual img {
  width: 100%; max-width: 520px; margin: 0 auto;
  filter: drop-shadow(0 18px 40px rgba(10,10,10,0.14));
  background: #fff; border-radius: 18px;
}
.cat-page-info h1 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 0.75rem; letter-spacing: -0.03em;
}
.cat-page-info .lead { color: var(--muted); font-size: 1.05rem; }
.cat-page-info .body { white-space: pre-line; }
.cat-page-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }

/* Страница услуги */
.svc-hero {
  padding: 1.5rem 0 2.2rem;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(255, 204, 0, 0.28), transparent 55%),
    linear-gradient(180deg, #fffdf5 0%, var(--bg, #f7f7f4) 100%);
}
.svc-crumbs {
  display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center;
  font-size: 0.84rem; color: var(--muted); margin-bottom: 1.25rem;
}
.svc-crumbs a { color: var(--ink-2); font-weight: 600; }
.svc-crumbs a:hover { color: var(--ink); }
.svc-hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2rem; align-items: center;
}
.svc-eyebrow {
  margin: 0 0 0.55rem; text-transform: uppercase; letter-spacing: 0.07em;
  font-weight: 800; font-size: 0.78rem; color: var(--muted);
}
.svc-hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  letter-spacing: -0.03em; line-height: 1.12; margin: 0 0 0.85rem;
}
.svc-lead { margin: 0; color: var(--muted); font-size: 1.08rem; max-width: 36rem; line-height: 1.55; }
.svc-hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.35rem; }
.svc-hero-media {
  background: var(--yellow);
  border-radius: 28px;
  padding: 1.1rem;
}
.svc-hero-media img {
  display: block; width: 100%; max-width: 520px; margin: 0 auto;
  background: #fff; border-radius: 18px;
  filter: drop-shadow(0 18px 40px rgba(10,10,10,0.14));
}
.svc-about-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.75rem; align-items: start;
}
.svc-about-body { font-size: 1.02rem; line-height: 1.65; color: var(--ink-2); }
.svc-gallery-grid { margin-top: 0.5rem; }
.svc-gallery-grid .w {
  appearance: none; border: 0; background: transparent; padding: 0;
  cursor: pointer; text-align: left; font: inherit; color: inherit;
  width: 100%;
}
.svc-lb {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(10, 10, 10, 0.82);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem; gap: 0.75rem;
}
.svc-lb[hidden] { display: none !important; }
.svc-lb img {
  max-width: min(92vw, 960px); max-height: 78vh;
  border-radius: 12px; background: #fff;
}
.svc-lb p { margin: 0; color: #fff; font-weight: 700; }
.svc-lb-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 2.5rem; height: 2.5rem; border-radius: 999px;
  border: 0; background: #fff; color: #111; font-size: 1.4rem;
  cursor: pointer; line-height: 1;
}

.filter-bar {
  display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.4rem;
}
.filter-bar a {
  padding: 0.45rem 0.85rem; border-radius: 999px; border: 1.5px solid var(--line);
  font-weight: 700; font-size: 0.86rem; color: var(--ink-2);
}
.filter-bar a.is-on, .filter-bar a:hover {
  background: var(--yellow); color: var(--ink); border-color: var(--yellow);
}

.cookie {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 80;
  max-width: 720px; margin: 0 auto;
  display: flex; gap: 0.85rem; align-items: center; justify-content: space-between;
  background: rgba(10,10,10,0.94); color: #fff; border-radius: 16px;
  padding: 0.9rem 1rem; box-shadow: var(--shadow); font-size: 0.9rem;
}
.cookie a { color: var(--yellow); text-decoration: underline; }
.cookie button {
  border: 0; border-radius: 999px; padding: 0.55rem 1rem; font-weight: 800;
  background: var(--yellow); color: var(--ink); cursor: pointer; flex-shrink: 0;
}
.toast {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  min-width: 220px; max-width: min(420px, calc(100% - 2rem));
  padding: 0.85rem 1rem; border-radius: 14px; color: var(--ink); font-weight: 700;
  background: var(--yellow); box-shadow: var(--shadow);
  transform: translateY(120%); opacity: 0; pointer-events: none;
  transition: transform 0.35s var(--ease), opacity 0.35s;
}
.toast.show { transform: none; opacity: 1; }
.toast.ok { background: #0a7a5a; color: #fff; }
.toast.err { background: #b81212; color: #fff; }

/* Описание категории */
.cat-about .cat-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.cat-about .cat-points li {
  position: relative;
  padding: 1rem 1.1rem 1rem 2.6rem;
  background: var(--paper);
  border-radius: 16px;
  border: 1.5px solid var(--line);
  color: var(--ink-2);
  font-weight: 600;
}
.cat-about .cat-points li::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 1.25rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.25);
}

/* Галерея работ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-card {
  position: relative;
  overflow: hidden;
  border: 0;
  padding: 0;
  border-radius: 18px;
  aspect-ratio: 4 / 3;
  background: #f0f0ea;
  cursor: pointer;
  text-align: left;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(10, 10, 10, 0.12);
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.gallery-card:hover img { transform: scale(1.05); }
.gallery-card-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.85rem 1rem;
  background: linear-gradient(transparent, rgba(10,10,10,0.86));
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: end;
}
.gallery-card-meta strong {
  font-size: 0.95rem;
  font-weight: 800;
}
.gallery-card-meta em {
  font-style: normal;
  font-weight: 700;
  color: var(--yellow);
  white-space: nowrap;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(8, 12, 18, 0.92);
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.gallery-lightbox[hidden] { display: none !important; }
.gallery-lb-figure {
  margin: 0;
  width: min(920px, 100%);
  background: #111;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.gallery-lb-figure img {
  display: block;
  width: 100%;
  max-height: min(62vh, 560px);
  object-fit: contain;
  background: #0a0a0a;
}
.gallery-lb-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  flex-wrap: wrap;
  padding: 1.1rem 1.25rem 1.25rem;
  color: #fff;
  background: #151515;
}
.gallery-lb-group {
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
}
.gallery-lb-figure h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.gallery-lb-figure p { margin: 0; color: rgba(255,255,255,0.7); }
.gallery-lb-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.gallery-lb-actions span {
  font-weight: 800;
  color: var(--yellow);
}
.gallery-lb-close,
.gallery-lb-nav {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,0.12);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  font-size: 1.6rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}
.gallery-lb-close { top: 1rem; right: 1rem; font-size: 1.8rem; }
.gallery-lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.gallery-lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.gallery-lb-close:hover,
.gallery-lb-nav:hover { background: var(--yellow); color: var(--ink); }

@media (max-width: 960px) {
  .cat-grid, .works-dense, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .rgrid, .pp-steps-grid, .b-cols { grid-template-columns: 1fr; }
  .cat-page-layout { grid-template-columns: 1fr; }
  .svc-hero-grid { grid-template-columns: 1fr; }
  .svc-about-grid { grid-template-columns: 1fr; }
  .svc-hero-media { max-width: 420px; }
  .pp-cats .pp-fast { margin-left: 0; }
  .pp-mega-all { margin-left: 0; width: 100%; text-align: center; }
  .pp-mega-cols { grid-template-columns: 1fr 1fr; gap: 0.25rem 1.5rem; padding: 1rem 1.1rem 1.15rem; }
  .drop, .canvas-hold { min-height: 280px; }
  .gallery-lb-prev, .gallery-lb-next { display: none; }
  .works-teaser-item {
    flex-basis: clamp(152px, 42vw, 200px);
    width: clamp(152px, 42vw, 200px);
  }
}
@media (max-width: 560px) {
  .cat-grid, .works-dense, .gallery-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .pp-brand { font-size: 1.7rem; }
  .pp-hero {
    width: calc(100% - 1.5rem);
    height: auto;
    min-height: 280px;
    border-radius: 14px;
    margin-top: 0.75rem;
  }
  .pp-search {
    width: calc(100% - 1.5rem);
    margin-top: 0.7rem;
  }
  .pp-search-label {
    height: 44px;
    border-radius: 12px;
    padding: 0 0.85rem 0 0.8rem;
  }
  .pp-search-input { font-size: 0.9rem; }
  .pp-hero-inner {
    padding: 1.25rem 1rem 1.1rem;
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "title"
      "lead"
      "cta"
      "nav";
  }
  .pp-hero-nav { justify-self: start; margin-top: 0.35rem; }
  .pp-lead { font-size: 0.9rem; margin-bottom: 0.7rem; }
  .pp-mega-cols { grid-template-columns: 1fr; gap: 0; }
  .pp-mega-col + .pp-mega-col { border-top: 1px solid rgba(10, 10, 10, 0.06); margin-top: 0.35rem; padding-top: 0.35rem; }
  .cookie { flex-direction: column; align-items: stretch; text-align: center; }
  .gallery-lb-figure figcaption { flex-direction: column; align-items: stretch; }
}

/* —— Доставка / пункты выдачи —— */
.mk-delivery {
  padding: 2.75rem 0 1.5rem;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(255, 204, 0, 0.07), transparent 42%),
    transparent;
}
.mk-delivery-head { margin-bottom: 1.35rem; }

.mk-dlv-shell {
  display: grid;
  gap: 1.35rem;
}

.mk-dlv-methods {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1rem 1.15rem;
}
.mk-dlv-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.2rem 1.25rem 1.3rem;
  background: #fff;
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(10, 10, 10, 0.04);
  min-height: 100%;
  transition: transform 0.25s var(--ease, ease), border-color 0.25s ease, box-shadow 0.25s ease;
}
.mk-dlv-card:hover {
  transform: translateY(-3px);
  border-color: rgba(10, 10, 10, 0.16);
  box-shadow: 0 14px 32px rgba(10, 10, 10, 0.08);
}
.mk-dlv-card--pickup {
  grid-row: span 3;
  background: linear-gradient(165deg, #fff 0%, #fbfaf6 100%);
}
.mk-dlv-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.mk-dlv-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.mk-dlv-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: var(--yellow, #ffcc00);
  color: var(--ink, #0a0a0a);
  white-space: nowrap;
}
.mk-dlv-badge--paid {
  background: rgba(10, 10, 10, 0.06);
  color: var(--ink, #0a0a0a);
}
.mk-dlv-card-meta {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted, #5c5c5c);
}
.mk-dlv-card-text {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted, #5c5c5c);
}
.mk-dlv-card-empty {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: var(--muted, #5c5c5c);
}
.mk-dlv-addrs {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.mk-dlv-addrs li {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 0.65rem;
  align-items: start;
  font-size: 0.92rem;
  line-height: 1.4;
  font-weight: 600;
}
.mk-dlv-addrs-dot {
  width: 8px;
  height: 8px;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--yellow, #ffcc00);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.28);
}

@media (max-width: 860px) {
  .mk-dlv-methods { grid-template-columns: 1fr 1fr; }
  .mk-dlv-card--pickup {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}
@media (max-width: 560px) {
  .mk-dlv-methods { grid-template-columns: 1fr; }
}

.mk-dlv-unit {
  border: 1px solid rgba(10, 10, 10, 0.1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(10, 10, 10, 0.06);
  overflow: hidden;
  padding: 1rem 1rem 1.1rem;
}

.mk-dlv-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}
.mk-dlv-tab {
  flex: 1 1 10rem;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 1.5px solid rgba(10, 10, 10, 0.12);
  border-radius: 12px;
  background: #f7f7f4;
  color: var(--ink, #0a0a0a);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.mk-dlv-tab.is-on {
  border-color: var(--ink, #0a0a0a);
  box-shadow: 0 0 0 1px var(--ink, #0a0a0a);
  background: #fff;
}
.mk-dlv-tab:hover { border-color: rgba(10, 10, 10, 0.35); }
.mk-dlv-panel { display: none; }
.mk-dlv-panel.is-on { display: block; }
.mk-dlv-empty { color: var(--muted); padding: 1rem 0.25rem; }

.mk-dlv-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  grid-template-rows: minmax(380px, 460px) auto;
  gap: 0;
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 14px;
  overflow: hidden;
  background: #fafaf8;
}
.mk-dlv-layout.list-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}

.mk-dlv-side {
  grid-row: 1;
  grid-column: 1;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(10, 10, 10, 0.08);
  background: #fafaf8;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.mk-dlv-side.is-collapsed { display: none; }
.mk-dlv-side-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem 0.35rem;
}
.mk-dlv-side-top strong { font-size: 0.95rem; }
.mk-dlv-side-close {
  border: 0;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 0.15rem 0.35rem;
}
.mk-dlv-filter {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 1rem 0.55rem;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
}
.mk-dlv-search {
  position: relative;
  margin: 0 0.85rem 0.65rem;
}
.mk-dlv-search-ico {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.mk-dlv-search input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(10, 10, 10, 0.12);
  border-radius: 10px;
  padding: 0.55rem 0.7rem 0.55rem 1.9rem;
  font: inherit;
  background: #fff;
}
.mk-dlv-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem;
  overflow: auto;
  flex: 1;
}
.mk-dlv-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.mk-dlv-item:hover { background: rgba(10, 10, 10, 0.03); }
.mk-dlv-item.is-on {
  background: rgba(255, 204, 0, 0.12);
  border-left-color: var(--yellow, #ffcc00);
}
.mk-dlv-pin {
  width: 10px;
  height: 10px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: #c5c9d1;
  box-shadow: 0 0 0 3px rgba(197, 201, 209, 0.35);
}
.mk-dlv-item.is-on .mk-dlv-pin {
  background: var(--ink, #0a0a0a);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.45);
}
.mk-dlv-item-body { display: grid; gap: 0.15rem; min-width: 0; }
.mk-dlv-item-addr { font-size: 0.92rem; font-weight: 700; }
.mk-dlv-item-title,
.mk-dlv-item-hours { font-size: 0.8rem; color: var(--muted); }
.mk-dlv-empty-item { padding: 1rem; color: var(--muted); font-size: 0.9rem; }

.mk-dlv-map-wrap {
  grid-row: 1;
  grid-column: 2;
  position: relative;
  min-height: 380px;
  background: #e8ecf2;
}
.mk-dlv-map {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.mk-dlv-map.is-fallback { display: none; }
.mk-dlv-map-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  background: #eef1f6;
}
.mk-dlv-map-fallback[hidden] { display: none !important; }
.mk-dlv-list-btn {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 3;
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  background: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 14px rgba(10, 10, 10, 0.14);
  cursor: pointer;
}

.mk-dlv-selected {
  grid-row: 2;
  grid-column: 1 / -1;
  margin: 0;
  padding: 1rem 1.15rem 1.1rem;
  border: 0;
  border-top: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 0;
  background: #fff;
}
.mk-dlv-selected-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
}
.mk-dlv-selected-head h3 {
  margin: 0;
  font-size: 1.02rem;
  font-family: var(--font-display);
}
.mk-dlv-show-map {
  border: 0;
  background: none;
  color: var(--ink, #0a0a0a);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: var(--yellow, #ffcc00);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 2px;
}
.mk-dlv-selected-body {
  display: grid;
  gap: 0.55rem 1.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}
.mk-dlv-selected-body div { display: grid; gap: 0.1rem; }
.mk-dlv-selected-body dt {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
}
.mk-dlv-selected-body dd { margin: 0; font-weight: 600; font-size: 0.92rem; }

.mk-dlv-courier { padding: 0.15rem 0 0.25rem; }
.mk-dlv-courier-card {
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 14px;
  padding: 1.35rem 1.4rem;
  background: linear-gradient(165deg, #fff 0%, #f7f8fb 100%);
}
.mk-dlv-courier-card h3 { margin: 0 0 0.5rem; }
.mk-dlv-courier-card p { margin: 0 0 0.85rem; color: var(--muted); max-width: 40rem; }
.mk-dlv-courier-card ul { margin: 0 0 1.1rem; padding-left: 1.1rem; }
.mk-dlv-courier-card li { margin: 0.25rem 0; }
.mk-dlv-courier-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.mk-dlv-balloon {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.55rem;
  max-width: 260px;
}
.mk-dlv-balloon-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: #ddd;
}
.mk-dlv-balloon-body { display: grid; gap: 0.2rem; font-size: 0.85rem; }
.mk-dlv-balloon-cost { font-weight: 700; color: #1a7a3c; }
.mk-dlv-balloon-pick {
  margin-top: 0.25rem;
  border: 0;
  background: none;
  color: #2f6fed;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.mk-dlv-lpin {
  width: 14px !important;
  height: 14px !important;
  margin-left: -7px !important;
  margin-top: -7px !important;
  border-radius: 50%;
  background: #9aa3b2;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(10, 10, 10, 0.25);
}
.mk-dlv-lpin--on {
  width: 18px !important;
  height: 18px !important;
  margin-left: -9px !important;
  margin-top: -9px !important;
  background: var(--yellow, #ffcc00);
  border-color: var(--ink, #0a0a0a);
}

@media (max-width: 860px) {
  .mk-dlv-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 320px auto;
  }
  .mk-dlv-side {
    grid-row: 1;
    grid-column: 1;
    max-height: 240px;
    border-right: 0;
    border-bottom: 1px solid rgba(10, 10, 10, 0.08);
  }
  .mk-dlv-map-wrap {
    grid-row: 2;
    grid-column: 1;
    min-height: 320px;
    height: 320px;
  }
  .mk-dlv-selected {
    grid-row: 3;
    grid-column: 1;
  }
  .mk-dlv-selected-body { grid-template-columns: 1fr 1fr; }
  .mk-dlv-unit { padding: 0.85rem; }
}
@media (max-width: 520px) {
  .mk-dlv-selected-body { grid-template-columns: 1fr; }
}
