/* ═══════════════════════════════════════════════════════════
   Diploma Generator – generator.css v2.1
   Paleta: #ef7443 #FF9E6F #31ada4 #C1E6E4 #222A50
   ═══════════════════════════════════════════════════════════ */

:root {
  --dg-pom:     #ef7443;
  --dg-pom2:    #FF9E6F;
  --dg-nie:     #31ada4;
  --dg-jasny:   #C1E6E4;
  --dg-gran:    #222A50;
  --dg-gran2:   #2e3a6e;
  --dg-white:   #ffffff;
  --dg-bg:      #f8fbfb;
  --dg-border:  #d0ecea;
  --dg-text:    #1a2240;
  --dg-muted:   #607090;
  --dg-radius:  10px;
}

/* ── Reset ── */
.dg-page *, .dg-page *::before, .dg-page *::after { box-sizing: border-box; }

/* ── Wrapper ── */
.dg-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--dg-text);
  /* Niektóre WebView wbudowane w aplikacje (potwierdzone: Messenger) same "podbijają"
     rozmiar małego tekstu na wąskich ekranach, ignorując wartości px z CSS — psuje to
     m.in. pole z imieniem dziecka na okładce Lamibooka (LB_ dziedziczy .dg-page jako
     wrapper). Patrz identyczny komentarz w lesson-plan.css, gdzie problem faktycznie
     zaobserwowano i potwierdzono. Dziedziczone przez wszystkie dzieci. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ── Sekcja pomocy ── */
.dg-help-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--dg-gran);
  border-radius: var(--dg-radius);
  padding: 0.9rem 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.dg-help-section__title {
  margin: 0;
  font-size: 0.92rem;
  color: var(--dg-white);
  font-weight: 500;
  flex: 1 1 auto;
}

.dg-help-section__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.dg-help-btn {
  background: var(--dg-pom);
  color: var(--dg-white);
  border: none;
  border-radius: 6px;
  padding: 0.45rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.dg-help-btn:hover { background: #d4602e; }

@media (max-width: 640px) {
  .dg-help-section {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .dg-help-section__actions { justify-content: center; }
}

/* ── Instrukcja pisana (accordion) ── */
.dg-guide__toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--dg-nie, #31ada4);
  border: none;
  border-radius: 6px;
  padding: 0.45rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dg-white);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.dg-guide__toggle:hover {
  background: #289187;
}

.dg-guide__arrow {
  margin-left: auto;
  transition: transform 0.25s ease;
}

.dg-guide__content {
  padding: 1rem 1rem 0.5rem;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.dg-guide__text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--dg-dark, #222);
}

.dg-guide__text h2 {
  margin: 0 0 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dg-gran);
}

.dg-guide__text h3 {
  margin: 1.2rem 0 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dg-nie, #31ada4);
}

.dg-guide__text p {
  margin: 0 0 0.8rem;
}

.dg-guide__text p:last-child {
  margin-bottom: 0;
}

.dg-guide__steps {
  margin: 0;
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--dg-dark, #222);
}

.dg-guide__tips {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: var(--dg-muted, #555);
  font-size: 0.85rem;
}

.dg-guide__link {
  color: var(--dg-nie, #31ada4);
  font-weight: 600;
  text-decoration: underline;
}

/* ── Wideo inline ── */
.dg-help-video {
  margin-bottom: 2rem;
}

.dg-help-video__inner {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

/* Pionowy film na mobile */
.dg-help-video--mobile .dg-help-video__inner {
  aspect-ratio: 9 / 16;
  max-width: 360px;
  margin: 0 auto;
}

.dg-help-video__inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.dg-help-video__close {
  display: block;
  margin: 0.6rem auto 0;
  background: none;
  border: none;
  color: #888;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}
.dg-help-video__close:hover { color: #222; }

/* ── Kroki ── */
.dg-step {
  margin-bottom: 3rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.dg-step__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.dg-step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dg-pom);
  color: var(--dg-white);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.dg-step__title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dg-gran);
}

/* ── Przycisk powrotu ── */
.dg-step__back {
  margin-left: auto;
  background: none;
  border: 1.5px solid var(--dg-border);
  border-radius: 6px;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  color: var(--dg-nie);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.dg-step__back:hover {
  background: var(--dg-jasny);
  border-color: var(--dg-nie);
}

/* ── Kategorie ── */
.dg-categories-wrap {
  display: none;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.dg-cat-btn {
  background: var(--dg-white);
  border: 1.5px solid var(--dg-border);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dg-gran);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.dg-cat-btn:hover {
  border-color: var(--dg-nie);
  color: var(--dg-nie);
}

.dg-cat-btn--active {
  background: var(--dg-pom);
  border-color: var(--dg-pom);
  color: var(--dg-white);
}

.dg-cat-btn--active:hover {
  background: #d4602e;
  border-color: #d4602e;
  color: var(--dg-white);
}

/* ── Live search ── */
.dg-search-wrap {
  margin-bottom: 1rem;
  position: relative;
}

.dg-search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  border: 1.5px solid var(--dg-border);
  border-radius: 20px;
  font-size: 0.92rem;
  color: var(--dg-text);
  background: var(--dg-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23607090' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 0.85rem center;
  transition: border-color 0.16s, box-shadow 0.16s;
  font-family: inherit;
}

.dg-search-input:focus {
  outline: none;
  border-color: var(--dg-nie);
  box-shadow: 0 0 0 3px rgba(49,173,164,0.15);
}

.dg-search-input::placeholder { color: var(--dg-muted); }

/* ── Wybór orientacji ── */
.dg-orientation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.dg-orient-card {
  background: var(--dg-white);
  border: 2px solid var(--dg-border);
  border-radius: var(--dg-radius);
  padding: 1.75rem 1.25rem 1.25rem;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.15s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.dg-orient-card:hover {
  border-color: var(--dg-nie);
  box-shadow: 0 6px 20px rgba(49,173,164,0.12);
  transform: translateY(-2px);
}
.dg-orient-card--active {
  border-color: var(--dg-pom) !important;
  box-shadow: 0 0 0 3px rgba(239,116,67,0.18) !important;
}

.dg-orient-card__visual {
  background: var(--dg-jasny);
  border: 2px solid var(--dg-nie);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dg-orient-card__visual--landscape { width: 120px; height: 85px; }
.dg-orient-card__visual--portrait  { width: 85px;  height: 120px; }

.dg-orient-card__lines { display: flex; flex-direction: column; gap: 8px; width: 65%; }
.dg-orient-card__lines span { display: block; height: 3px; background: var(--dg-nie); border-radius: 2px; }
.dg-orient-card__lines span:nth-child(2) { width: 80%; }
.dg-orient-card__lines span:nth-child(3) { width: 55%; }

.dg-orient-card--active .dg-orient-card__visual { border-color: var(--dg-pom); background: #fff3ee; }
.dg-orient-card--active .dg-orient-card__lines span { background: var(--dg-pom); }

.dg-orient-card__label { margin: 0; font-size: 0.95rem; font-weight: 700; color: var(--dg-gran); }
.dg-orient-card__sub   { margin: 0; font-size: 0.78rem; color: var(--dg-muted); }

/* ── Siatka szablonów ── */
.dg-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  min-height: 320px;
}

.dg-templates-grid:empty::before {
  content: 'Wybierz format dyplomu powyżej, aby zobaczyć dostępne szablony.';
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 1 / -1;
  min-height: 280px;
  font-size: 0.95rem;
  color: var(--dg-muted);
  font-style: italic;
  text-align: center;
  padding: 2rem;
}

/* Pionowe — węższe kolumny żeby proporcje były naturalne */
.dg-templates-grid--portrait {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.dg-tpl-card {
  background: var(--dg-white);
  border: 2px solid var(--dg-border);
  border-radius: var(--dg-radius);
  padding: 0;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.15s;
  text-align: left;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.dg-tpl-card:hover {
  border-color: var(--dg-nie);
  box-shadow: 0 6px 20px rgba(49,173,164,0.13);
  transform: translateY(-3px);
}
.dg-tpl-card--active {
  border-color: var(--dg-pom) !important;
  box-shadow: 0 0 0 3px rgba(239,116,67,0.2), 0 6px 20px rgba(0,0,0,0.10) !important;
}

.dg-tpl-card__thumb {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--dg-jasny);
}
.dg-tpl-card__thumb--landscape { aspect-ratio: 297 / 210; }
.dg-tpl-card__thumb--portrait  { aspect-ratio: 210 / 297; }

.dg-tpl-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.3s;
}
.dg-tpl-card:hover .dg-tpl-card__thumb img { transform: scale(1.04); }

.dg-tpl-card__overlay {
  position: absolute; inset: 0;
  background: rgba(239,116,67,0.78);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
  color: var(--dg-white); font-weight: 700; font-size: 0.95rem;
}
.dg-tpl-card:hover .dg-tpl-card__overlay,
.dg-tpl-card--active .dg-tpl-card__overlay { opacity: 1; }

.dg-tpl-card__name {
  margin: 0; padding: 0.6rem 0.85rem;
  font-size: 0.85rem; font-weight: 600; color: var(--dg-gran); line-height: 1.3;
}

/* ── Załaduj więcej ── */
.dg-loadmore-wrap { text-align: center; margin-top: 1.5rem; }
.dg-btn-loadmore {
  background: var(--dg-white);
  border: 2px solid var(--dg-nie);
  border-radius: 8px;
  padding: 0.65rem 2rem;
  font-size: 0.92rem; font-weight: 600;
  color: var(--dg-nie); cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.dg-btn-loadmore:hover { background: var(--dg-nie); color: var(--dg-white); }

/* ── Edytor ── */
.dg-editor {
  border-top: 2px solid var(--dg-jasny);
  padding-top: 2.5rem;
  margin-top: 1rem;
}

/* ── Canvas preview ── */
.dg-step--preview {
  background: var(--dg-gran);
  border-radius: 12px;
  padding: 2rem;
}
.dg-step--preview .dg-step__number { background: var(--dg-pom2); color: var(--dg-gran); }
.dg-step--preview .dg-step__title  { color: var(--dg-jasny); }
.dg-step--preview .dg-step__back   { color: var(--dg-jasny); border-color: rgba(193,230,228,0.3); }
.dg-step--preview .dg-step__back:hover { background: rgba(193,230,228,0.15); border-color: var(--dg-jasny); }

.dg-preview-wrap { text-align: center; }
.dg-canvas {
  max-width: 100%; height: auto; display: block; margin: 0 auto;
  border-radius: 6px; box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.dg-preview-note { margin: 0.75rem 0 0; font-size: 0.78rem; color: var(--dg-jasny); opacity: 0.7; font-style: italic; }

/* ── Pola formularza ── */
.dg-field { margin-bottom: 1.4rem; }
.dg-label { display: block; margin-bottom: 0.4rem; font-size: 0.92rem; font-weight: 700; color: var(--dg-gran); }
.dg-required { color: var(--dg-pom); margin-left: 3px; }

.dg-input {
  width: 100%; padding: 0.7rem 1rem;
  border: 1.5px solid var(--dg-border);
  border-radius: 8px; font-size: 0.95rem;
  color: var(--dg-text); background: var(--dg-white);
  transition: border-color 0.16s, box-shadow 0.16s;
  font-family: inherit;
}
.dg-input:focus {
  outline: none;
  border-color: var(--dg-nie);
  box-shadow: 0 0 0 3px rgba(49,173,164,0.15);
}
.dg-input--error {
  border-color: var(--dg-pom) !important;
  box-shadow: 0 0 0 3px rgba(239,116,67,0.15) !important;
}
textarea.dg-input { resize: vertical; min-height: 90px; line-height: 1.5; }

.dg-field-error { margin: 0.3rem 0 0; font-size: 0.82rem; color: var(--dg-pom); font-weight: 600; }

/* ── Rotate hint (mobile landscape) ── */
.dg-rotate-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(193,230,228,0.15);
  border: 1px solid var(--dg-jasny);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--dg-jasny);
}

.dg-rotate-hint__icon {
  font-size: 1.3rem;
  animation: dg-rotate-pulse 1.5s ease-in-out infinite;
}

@keyframes dg-rotate-pulse {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(90deg); }
}

/* ── Hinty pól ── */
.dg-label-hint { font-size: 0.8rem; font-weight: 400; color: var(--dg-muted); }
.dg-field-hint { margin: 0.3rem 0 0; font-size: 0.8rem; color: var(--dg-muted); }

/* ── Przypomnienie o podglądzie ── */
.dg-preview-reminder {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fdeae3;
  border: 1px solid var(--dg-pom);
  border-left: 4px solid var(--dg-pom);
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  color: #7a2e00;
  margin-bottom: 1.25rem;
}

/* ── Multi field ── */
.dg-label-hint { font-size: 0.8rem; font-weight: 400; color: var(--dg-muted); }
.dg-multi-meta { display: flex; align-items: center; gap: 1rem; margin-top: 0.5rem; flex-wrap: wrap; }
.dg-multi-count {
  font-size: 0.95rem; font-weight: 700;
  color: var(--dg-dark, #222);
  background: var(--dg-jasny, #f0ece3);
  border: 1.5px solid var(--dg-nie, #c8b89a);
  border-radius: 20px;
  padding: 0.2rem 0.8rem;
  min-width: 80px;
  text-align: center;
  display: inline-block;
}
.dg-multi-count--over { color: var(--dg-pom); border-color: var(--dg-pom); background: #fff2ee; }
.dg-multi-hint { font-size: 0.8rem; color: var(--dg-muted); }
.dg-multi-hint kbd {
  background: var(--dg-jasny); border: 1px solid var(--dg-nie);
  border-radius: 3px; padding: 0 5px; font-size: 0.85em;
}

/* ── Sekcja zamówienia ── */
.dg-order-box {
  background: var(--dg-bg);
  border: 1.5px solid var(--dg-jasny);
  border-radius: 12px;
  padding: 2rem;
  max-width: 100%;
}

.dg-order-price {
  margin-bottom: 1.5rem;
  font-size: 2rem; font-weight: 800;
  color: var(--dg-gran); line-height: 1.1;
}
.dg-order-price__note {
  display: block; font-size: 0.82rem; font-weight: 400;
  color: var(--dg-muted); margin-top: 0.3rem;
}
.dg-price-breakdown {
  display: block; font-size: 0.85rem; font-weight: 500;
  color: var(--dg-nie); margin-top: 0.4rem;
}

.dg-btn-order {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: var(--dg-pom); color: var(--dg-white);
  border: none; border-radius: 8px;
  padding: 0.95rem 2rem;
  font-size: 1.05rem; font-weight: 700;
  cursor: pointer; width: 100%; justify-content: center;
  letter-spacing: 0.01em;
}
.dg-btn-order:disabled { opacity: 0.7; cursor: not-allowed; }



.dg-order-error {
  margin-top: 0.75rem; padding: 0.7rem 1rem;
  background: #fff0eb; border: 1px solid var(--dg-pom2);
  border-radius: 6px; color: var(--dg-pom); font-size: 0.88rem;
}
.dg-order-info { margin: 1rem 0 0; font-size: 0.8rem; color: var(--dg-muted); }

/* ── Brak szablonów ── */
.dg-no-templates { color: var(--dg-muted); font-style: italic; padding: 1rem 0; }

/* ── Admin notice ── */
.dg-admin-notice {
  background: #fff8f0; border: 1px solid var(--dg-pom2);
  border-radius: 6px; padding: 1rem 1.25rem; font-size: 0.92rem;
}

/* ── FAQ ── */
.dg-faq {
  margin-top: 3rem;
  width: 100%;
  box-sizing: border-box;
}

.dg-faq__header {
  background: var(--dg-gran);
  border-radius: var(--dg-radius) var(--dg-radius) 0 0;
  padding: 1.1rem 1.5rem;
}

.dg-faq__title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dg-white);
}

.dg-faq__list {
  border: 1px solid var(--dg-border);
  border-top: none;
  border-radius: 0 0 var(--dg-radius) var(--dg-radius);
  overflow: hidden;
}

.dg-faq__item {
  border-bottom: 1px solid var(--dg-border);
}
.dg-faq__item:last-child {
  border-bottom: none;
}

.dg-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--dg-white);
  border: none;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dg-gran);
  cursor: pointer;
  text-align: left;
  gap: 1rem;
  transition: background 0.15s;
}
.dg-faq__question:hover {
  background: var(--dg-jasny);
}

.dg-faq__arrow {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--dg-nie);
}

.dg-faq__answer {
  padding: 0 1.25rem 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--dg-text);
  background: var(--dg-white);
}
.dg-faq__answer p {
  margin: 0;
}

/* ── Modal podglądu ── */
.dg-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; }
.dg-modal[hidden] { display: none; }
.dg-modal__backdrop { position: absolute; inset: 0; background: rgba(34,42,80,.65); backdrop-filter: blur(2px); }
.dg-modal__box { position: relative; background: #fff; border-radius: 12px; padding: 1.75rem 1.5rem 1.5rem; max-width: 580px; width: calc(100% - 2rem); max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(34,42,80,.25); }
.dg-modal__title { font-size: 1.2rem; font-weight: 700; color: var(--dg-navy, #222A50); margin: 0 0 .5rem; text-align: center; }
.dg-modal__desc { font-size: .9rem; color: #555; margin: 0 0 1rem; line-height: 1.5; }
.dg-modal__preview { text-align: center; margin-bottom: 1.25rem; }
.dg-modal__preview img { max-width: 100%; max-height: 48vh; width: auto; border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.12); object-fit: contain; }
.dg-modal__checkbox { display: flex; align-items: center; gap: .65rem; cursor: pointer; font-size: .95rem; color: #333; margin-bottom: 1.25rem; }
.dg-modal__checkbox input { flex-shrink: 0; accent-color: var(--dg-primary, #ef7443); cursor: pointer; } /* bez width/height - motyw sam ustawia natywny input na 14x15px pod swoja naklatke ::before (16x16, offset -1px/-1px); nadpisanie rozmiaru psuje to dopasowanie */
.dg-modal__actions { display: flex; gap: .75rem; justify-content: flex-end; flex-wrap: wrap; }
.dg-modal__btn-back { background: none; border: 1.5px solid #ccc; border-radius: 8px; padding: .65rem 1.25rem; font-size: .95rem; cursor: pointer; color: #555; }
.dg-modal__btn-back:hover { border-color: #999; color: #333; }
.dg-modal__btn-confirm:disabled { opacity: .45; cursor: not-allowed; }
body.dg-modal-open { overflow: hidden; }

/* ── Responsywność ── */
@media (max-width: 640px) {
  .dg-page { padding: 1rem 1rem 3rem; }
  .dg-templates-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .dg-templates-grid:has(.dg-tpl-card__thumb--landscape) { grid-template-columns: 1fr; }
  .dg-step--preview { padding: 1rem; }
  .dg-order-box { padding: 1.25rem; }
  .dg-order-price { font-size: 1.5rem; }
  .dg-orientation-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Motyw sam owija stronę kontenerem z --bzo-gutter (padding-left/right) — nasz
   własny poziomy padding na .dg-page się do tego dokłada, dając podwójny margines
   na telefonach/tabletach. Zerujemy go tu, zostawiając tylko pionowy odstęp. */
@media (max-width: 1024px) {
  .dg-page {
    padding-left: 0;
    padding-right: 0;
  }
}
