/* =============================================
   Podbor — Adaptive Quiz UI
   Dodelkin theme / myshop-ro257
   ============================================= */

/* ---- Custom Properties ---- */

.podbor-page,
.podbor-modal {
  --pb-bg: #f6f4f3;
  --pb-card: #ffffff;
  --pb-text: #132238;
  --pb-muted: #627087;
  --pb-accent: #c65b33;
  --pb-accent-dark: #a84f2d;
  --pb-soft: #f7e4dc;
  --pb-line: rgba(19, 34, 56, 0.1);
  --pb-shadow: 0 24px 70px rgba(19, 34, 56, 0.09);
  --pb-radius: 20px;
  --pb-radius-lg: 28px;
  --pb-radius-xl: 36px;
  --pb-ease: 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
  --pb-ease-spring: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--pb-text);
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.podbor-page *,
.podbor-modal * {
  box-sizing: border-box;
}
/* ---- Accessibility ---- */
@media (prefers-reduced-motion: reduce) {
  .podbor-page *,
  .podbor-modal * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- Touch devices ---- */
@media (hover: none) and (pointer: coarse) {
  .podbor-category-card:hover {
    transform: none;
    background: var(--pb-card);
    box-shadow: none;
  }
  .podbor-category-card:hover .podbor-category-card__icon {
    transform: none;
    background: linear-gradient(135deg, var(--pb-soft) 0%, rgba(247, 228, 220, 0.5) 100%);
    color: var(--pb-accent);
  }
  .podbor-category-card:active {
    transform: scale(0.97);
    background: linear-gradient(180deg, #fffaf7 0%, #ffffff 100%);
    border-color: rgba(198, 91, 51, 0.35);
    box-shadow: 0 18px 48px rgba(19, 34, 56, 0.10);
  }
  .podbor-option:hover {
    transform: none;
    background: var(--pb-card);
    border-color: var(--pb-line);
    box-shadow: none;
  }
  .podbor-option:active {
    transform: scale(0.98);
    border-color: var(--pb-accent);
    background: linear-gradient(135deg, #fff7f3 0%, #ffffff 100%);
    box-shadow: 0 0 0 4px rgba(198, 91, 51, 0.08);
  }
  .podbor-btn:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(19, 34, 56, 0.04);
  }
  .podbor-btn:active {
    transform: scale(0.96);
  }
  .podbor-hero__chip:hover {
    transform: none;
  }
}


/* ---- Page Shell ---- */
.podbor-page {
  background: var(--pb-bg);
  padding: clamp(28px, 5vw, 80px) clamp(16px, 4vw, 56px);
}

.podbor-page__inner {
  width: min(1420px, 100%);
  margin: 0 auto;
}

/* =============================================
   HERO
   ============================================= */
.podbor-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.36fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  margin-bottom: clamp(32px, 5vw, 56px);
  padding: clamp(32px, 6vw, 64px);
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-radius-xl);
  background:
    radial-gradient(ellipse 80% 60% at 92% 8%, rgba(198, 91, 51, 0.10), transparent 50%),
    linear-gradient(145deg, #ffffff 0%, #fbf8f5 100%);
  box-shadow: var(--pb-shadow);
}

.podbor-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.podbor-hero__label {
  margin: 0 0 14px;
  color: var(--pb-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.podbor-hero__title {
  max-width: 800px;
  margin: 0;
  font-size: clamp(34px, 5.5vw, 68px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.podbor-hero__text {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--pb-muted);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.6;
}

.podbor-hero .podbor-btn {
  margin-top: 32px;
}

.podbor-hero__panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.podbor-hero__chip {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 22px;
  border: 1px solid rgba(198, 91, 51, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  color: var(--pb-text);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(19, 34, 56, 0.05);
  transition: transform var(--pb-ease), box-shadow var(--pb-ease);
}

.podbor-hero__chip:hover {
  transform: translateX(4px);
  box-shadow: 0 12px 32px rgba(198, 91, 51, 0.10);
}

/* =============================================
   ROOT / SHELL
   ============================================= */
.podbor-root {
  min-height: 320px;
}

.podbor-shell {
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-radius-xl);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: var(--pb-shadow);
  animation: podborFadeIn 0.35s var(--pb-ease) both;
}

@keyframes podborFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Section Header ---- */
.podbor-section-head {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.podbor-kicker {
  margin: 0 0 8px;
  color: var(--pb-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.podbor-title {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.podbor-subtitle {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--pb-muted);
  font-size: 16px;
  line-height: 1.55;
}

/* =============================================
   CATEGORY GRID
   ============================================= */
.podbor-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.podbor-category-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 220px;
  padding: 28px 24px 24px;
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-radius-lg);
  background: var(--pb-card);
  color: var(--pb-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform var(--pb-ease-spring),
    border-color var(--pb-ease),
    box-shadow var(--pb-ease),
    background var(--pb-ease);
}

.podbor-category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(198, 91, 51, 0.35);
  background: linear-gradient(180deg, #fffaf7 0%, #ffffff 100%);
  box-shadow: 0 18px 48px rgba(19, 34, 56, 0.10);
}

.podbor-category-card:active {
  transform: translateY(-1px) scale(0.985);
  transition: transform 0.1s ease;
}

.podbor-category-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--pb-soft) 0%, rgba(247, 228, 220, 0.5) 100%);
  color: var(--pb-accent);
  transition: transform var(--pb-ease-spring), background var(--pb-ease);
}

.podbor-category-card:hover .podbor-category-card__icon {
  transform: scale(1.08);
  background: linear-gradient(135deg, var(--pb-accent) 0%, #e07a4f 100%);
  color: #ffffff;
}

.podbor-category-card__icon svg {
  width: 28px;
  height: 28px;
}

.podbor-category-card__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.podbor-category-card__text {
  margin: 8px 0 0;
  color: var(--pb-muted);
  font-size: 14px;
  line-height: 1.5;
}

.podbor-category-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--pb-accent);
  font-size: 14px;
  font-weight: 800;
  transition: gap var(--pb-ease);
}

.podbor-category-card:hover .podbor-category-card__cta {
  gap: 10px;
}

.podbor-category-card__cta::after {
  content: "→";
  transition: transform var(--pb-ease);
}

.podbor-category-card:hover .podbor-category-card__cta::after {
  transform: translateX(3px);
}

/* =============================================
   PROGRESS
   ============================================= */
.podbor-progress {
  margin-bottom: 32px;
}

.podbor-progress__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--pb-muted);
  font-size: 13px;
  font-weight: 700;
}

.podbor-progress__top span:last-child {
  color: var(--pb-accent);
  font-weight: 800;
}

.podbor-progress__track {
  height: 6px;
  border-radius: 999px;
  background: rgba(19, 34, 56, 0.07);
  overflow: hidden;
}

.podbor-progress__bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff824f, var(--pb-accent));
  transition: width 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* =============================================
   STEP / OPTIONS
   ============================================= */
.podbor-step {
  display: grid;
  gap: 24px;
}

.podbor-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.podbor-option {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 16px 20px;
  border: 2px solid var(--pb-line);
  border-radius: var(--pb-radius);
  background: var(--pb-card);
  color: var(--pb-text);
  font: inherit;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition:
    border-color var(--pb-ease),
    background var(--pb-ease),
    box-shadow var(--pb-ease),
    transform var(--pb-ease);
  position: relative;
}

.podbor-option:hover {
  border-color: rgba(198, 91, 51, 0.30);
  background: #fffaf7;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(19, 34, 56, 0.04);
}

.podbor-option:active {
  transform: translateY(0) scale(0.99);
}

.podbor-option::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--pb-ease);
}

.podbor-option.is-selected {
  border-color: var(--pb-accent);
  background: linear-gradient(135deg, #fff7f3 0%, #ffffff 100%);
  box-shadow: 0 0 0 4px rgba(198, 91, 51, 0.08), 0 8px 28px rgba(198, 91, 51, 0.10);
}

.podbor-option.is-selected::before {
  background: transparent;
}

/* Checkmark for selected */
.podbor-option.is-selected::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 16px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pb-accent);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5l3 3 7-7' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px 10px;
  background-position: center;
  background-repeat: no-repeat;
  animation: podborCheckPop 0.3s var(--pb-ease-spring) both;
}

@keyframes podborCheckPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* =============================================
   ACTIONS / BUTTONS
   ============================================= */
.podbor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.podbor-actions__group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.podbor-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid rgba(198, 91, 51, 0.25);
  border-radius: 999px;
  background: var(--pb-card);
  color: var(--pb-text);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(19, 34, 56, 0.04);
  transition:
    transform var(--pb-ease),
    box-shadow var(--pb-ease),
    background var(--pb-ease),
    border-color var(--pb-ease),
    color var(--pb-ease);
  white-space: nowrap;
}

.podbor-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(198, 91, 51, 0.45);
  box-shadow: 0 8px 28px rgba(19, 34, 56, 0.08);
}

.podbor-btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 2px 8px rgba(19, 34, 56, 0.04);
}

.podbor-btn:disabled {
  cursor: not-allowed;
  opacity: 0.40;
  transform: none;
  box-shadow: none;
}

.podbor-btn_primary {
  border-color: transparent;
  background: linear-gradient(135deg, #ff824f 0%, var(--pb-accent) 100%);
  color: #ffffff;
  box-shadow: 0 6px 24px rgba(198, 91, 51, 0.25);
}

.podbor-btn_primary:hover {
  box-shadow: 0 10px 34px rgba(198, 91, 51, 0.35);
}

.podbor-btn_secondary {
  background: #fff8f4;
  border-color: rgba(198, 91, 51, 0.18);
}

.podbor-btn_ghost {
  border-color: var(--pb-line);
  color: var(--pb-muted);
  box-shadow: none;
}

.podbor-btn_ghost:hover {
  color: var(--pb-text);
  border-color: rgba(19, 34, 56, 0.20);
  background: rgba(19, 34, 56, 0.03);
  box-shadow: none;
}

/* =============================================
   RESULT
   ============================================= */
.podbor-result {
  display: grid;
  grid-template-columns: minmax(320px, 0.44fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

.podbor-result__card,
.podbor-consult {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-radius-lg);
  background: var(--pb-card);
}

.podbor-result__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.podbor-result__summary li {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--pb-soft);
  color: var(--pb-accent-dark);
  font-size: 13px;
  font-weight: 700;
}

/* ---- Consult Form ---- */
.podbor-consult {
  display: none;
  margin-top: 16px;
}

.podbor-consult.is-open {
  display: block;
  animation: podborFadeIn 0.3s var(--pb-ease) both;
}

.podbor-consult__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.podbor-field {
  display: grid;
  gap: 6px;
  color: var(--pb-muted);
  font-size: 12px;
  font-weight: 700;
}

.podbor-field_full {
  grid-column: 1 / -1;
}

.podbor-field input,
.podbor-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--pb-line);
  border-radius: 14px;
  background: #fbfaf9;
  color: var(--pb-text);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color var(--pb-ease), box-shadow var(--pb-ease);
}

.podbor-field input:focus,
.podbor-field textarea:focus {
  border-color: var(--pb-accent);
  box-shadow: 0 0 0 3px rgba(198, 91, 51, 0.10);
}

.podbor-field textarea {
  min-height: 100px;
  resize: vertical;
}

.podbor-form-note {
  display: none;
  margin: 14px 0 0;
  color: #248247;
  font-size: 14px;
  font-weight: 700;
}

.podbor-form-note.is-visible {
  display: block;
  animation: podborFadeIn 0.3s var(--pb-ease) both;
}

/* ---- Products ---- */
.podbor-products {
  margin-top: 24px;
}

.podbor-products__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.podbor-products__item {
  min-width: 0;
}

.podbor-products__item .product-preview {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: var(--pb-radius) !important;
}

.podbor-products__item :is(.product-preview__title, .product-preview__title a, .product-preview__name, .product-preview__name a, .product-preview__caption, .product-preview__caption a) {
  display: -webkit-box !important;
  overflow: hidden !important;
  font-size: 17px !important;
  line-height: 1.25 !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
}

.podbor-products__item :is(.product-preview__price, .product-preview__price *, .product-preview__price-cur, .product-preview__price-cur *, .price, .price *) {
  font-size: 22px !important;
  line-height: 1.15 !important;
}

.podbor-products__empty {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 2px dashed rgba(198, 91, 51, 0.25);
  border-radius: var(--pb-radius);
  background: #fffaf7;
  color: var(--pb-muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.podbor-products__empty strong {
  color: var(--pb-text);
  font-size: 16px;
}

/* =============================================
   MODAL
   ============================================= */
.podbor-modal[hidden] {
  display: none !important;
}

.podbor-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 36px);
  animation: podborModalIn 0.3s var(--pb-ease) both;
}

@keyframes podborModalIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.podbor-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(19, 34, 56, 0.40);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.podbor-modal__dialog {
  position: relative;
  width: min(1180px, 100%);
  max-height: min(860px, calc(100vh - 24px));
  max-height: min(860px, calc(100dvh - 24px));
  overflow-y: auto;
  overflow-x: hidden;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.60);
  border-radius: var(--pb-radius-xl);
  background: var(--pb-bg);
  box-shadow: 0 36px 100px rgba(19, 34, 56, 0.22);
  animation: podborDialogIn 0.35s var(--pb-ease-spring) both;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(19, 34, 56, 0.15) transparent;
}

@keyframes podborDialogIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.podbor-modal__close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--pb-line);
  border-radius: 14px;
  background: var(--pb-card);
  color: var(--pb-text);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(19, 34, 56, 0.08);
  transition: transform var(--pb-ease), box-shadow var(--pb-ease), background var(--pb-ease);
}

.podbor-modal__close:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 32px rgba(19, 34, 56, 0.14);
  background: #fafafa;
}

.podbor-modal__close:active {
  transform: scale(0.96);
}

.podbor-modal__close span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.podbor-modal__close span:first-child {
  transform: rotate(45deg);
}

.podbor-modal__close span:last-child {
  transform: rotate(-45deg);
}

.podbor-modal__head {
  margin: 4px 62px 22px 0;
}

.podbor-modal__title {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.podbor-root_modal .podbor-shell {
  box-shadow: none;
  border-radius: var(--pb-radius-lg);
}

body.podbor-modal-open {
  overflow: hidden;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* ---- Tablet landscape / small desktop (≤1180px) ---- */

/* ---- Wide screens (≥1600px) ---- */
@media (min-width: 1600px) {
  .podbor-category-grid {
    gap: 20px;
  }
  .podbor-category-card {
    min-height: 250px;
    padding: 32px 28px 28px;
  }
  .podbor-hero__title {
    font-size: 72px;
  }
  .podbor-title {
    font-size: 52px;
  }
}

@media (max-width: 1180px) {
  .podbor-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---- Tablet portrait (≤960px) ---- */
@media (max-width: 960px) {
  .podbor-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .podbor-hero__panel {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .podbor-hero__chip {
    min-height: 44px;
    padding: 0 16px;
    font-size: 14px;
    flex: 0 0 auto;
  }

  .podbor-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .podbor-category-card {
    min-height: 190px;
    padding: 24px 20px 20px;
  }

  .podbor-result {
    grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
    gap: 20px;
  }

  .podbor-options {
    grid-template-columns: 1fr;
  }

  .podbor-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- Tablet portrait (≤768px) ---- */
@media (max-width: 768px) {
  .podbor-page {
    padding: 16px 12px 32px;
  }
  .podbor-hero {
    padding: 24px 18px;
    border-radius: var(--pb-radius-lg);
  }
  .podbor-hero__title {
    font-size: 32px;
  }
  .podbor-hero__text {
    font-size: 15px;
  }
  .podbor-hero__panel {
    flex-direction: column;
    gap: 8px;
  }
  .podbor-hero__chip {
    min-height: 44px;
    font-size: 13px;
    justify-content: center;
  }
  .podbor-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .podbor-category-card {
    min-height: 170px;
    padding: 20px 16px 18px;
    border-radius: var(--pb-radius);
  }
  .podbor-category-card__icon {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
  }
  .podbor-category-card__title {
    font-size: 17px;
  }
  .podbor-result {
    grid-template-columns: 1fr;
  }
  .podbor-shell {
    padding: 22px;
    border-radius: var(--pb-radius-lg);
  }
  .podbor-products__grid {
    grid-template-columns: 1fr;
  }
  .podbor-options {
    grid-template-columns: 1fr;
  }
  .podbor-actions {
    flex-direction: column;
    gap: 8px;
  }
  .podbor-actions__group {
    width: 100%;
    flex-direction: column;
  }
  .podbor-btn {
    width: 100%;
    min-height: 48px;
    font-size: 14px;
  }
}

/* ---- Large phone (≤640px) ---- */
@media (max-width: 640px) {
  .podbor-page {
    padding: 16px 10px 32px;
  }

  .podbor-page {
    padding: 16px 12px 32px;
  }
  .podbor-hero {
    padding: 24px 18px;
    border-radius: var(--pb-radius-lg);
  }

  .podbor-hero__title {
    font-size: 28px;
  }

  .podbor-hero__text {
    font-size: 15px;
  }

  .podbor-hero__panel {
    flex-direction: column;
    gap: 8px;
  }

  .podbor-hero__chip {
    min-height: 40px;
    font-size: 13px;
    justify-content: center;
  }

  .podbor-shell {
    padding: 20px;
    border-radius: var(--pb-radius-lg);
  }

  .podbor-category-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .podbor-category-card {
    min-height: auto;
    padding: 20px;
    border-radius: var(--pb-radius);
  }

  .podbor-category-card__icon {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
  }

  .podbor-category-card__icon svg {
    width: 24px;
    height: 24px;
  }

  .podbor-category-card__title {
    font-size: 18px;
  }

  .podbor-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .podbor-actions,
  .podbor-actions__group {
    width: 100%;
  }

  .podbor-actions {
    flex-direction: column;
    gap: 8px;
  }

  .podbor-actions__group {
    flex-direction: column;
  }

  .podbor-btn {
    width: 100%;
    min-height: 48px;
    padding: 0 20px;
    font-size: 14px;
  }

  .podbor-option {
    min-height: 60px;
    padding: 14px 16px;
    font-size: 15px;
    border-radius: var(--pb-radius);
  }

  .podbor-option.is-selected::after {
    top: 12px;
    right: 14px;
    width: 20px;
    height: 20px;
    background-size: 10px 8px;
  }

  .podbor-consult__grid {
    grid-template-columns: 1fr;
  }

  /* Modal on small screens */
  .podbor-modal {
    padding: 0;
  }

  .podbor-modal__dialog {
    max-height: 100dvh;
    border-radius: 0;
    padding: 16px;
  }

  .podbor-modal__close {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .podbor-modal__close span {
    width: 16px;
  }

  .podbor-modal__head {
    margin-right: 52px;
  }

  .podbor-result__card,
  .podbor-consult {
    padding: 20px;
    border-radius: var(--pb-radius);
  }
}

/* ---- Small phone (≤380px) ---- */
@media (max-width: 380px) {
  .podbor-hero__title {
    font-size: 24px;
  }

  .podbor-hero__text {
    font-size: 14px;
  }

  .podbor-title {
    font-size: 22px;
  }

  .podbor-category-card__title {
    font-size: 16px;
  }

  .podbor-option {
    font-size: 14px;
  }
}

/* ---- Landscape phone / short viewport ---- */
@media (max-height: 500px) and (orientation: landscape) {
  .podbor-hero {
    grid-template-columns: 1fr;
    padding: 16px 20px;
    gap: 12px;
    border-radius: var(--pb-radius-lg);
  }
  .podbor-hero__panel {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .podbor-hero__chip {
    min-height: 32px;
    padding: 0 12px;
    font-size: 11px;
  }
  .podbor-hero__title {
    font-size: 22px;
  }
  .podbor-hero__text {
    font-size: 12px;
    margin-top: 6px;
  }
  .podbor-hero .podbor-btn {
    margin-top: 12px;
    min-height: 42px;
    font-size: 13px;
    padding: 0 18px;
  }
  .podbor-hero__label {
    margin-bottom: 8px;
    font-size: 11px;
  }
  .podbor-modal__dialog {
    max-height: 100dvh;
    border-radius: 0;
  }
}

/* ---- Safe area for notched phones ---- */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .podbor-modal__dialog {
    padding-bottom: calc(clamp(20px, 3vw, 36px) + env(safe-area-inset-bottom));
  }
}
