.consultations-mobile { display: none; }

@media (max-width: 767px) {
  html.consultations-enhanced .consultations-original { display: none; }
  html.consultations-enhanced .consultations-mobile { display: block; color: #453321; }
  .consultations-mobile__inner { padding: 46px 16px; }
  .consultations-mobile__hero {
    isolation: isolate; position: relative; display: flex; width: 100%; aspect-ratio: 4 / 5;
    overflow: hidden; margin-bottom: 46px; padding: 0; border-radius: 1.25rem;
    background-color: #a08362;
    background-image: url('../images/Kobizskaya_consultation_1200x1500_v1.webp');
    background-position: center; background-size: cover; background-repeat: no-repeat;
    background-blend-mode: soft-light;
    box-shadow: 0 .75rem 1.75rem rgb(77 53 31 / 14%), inset 0 1px 0 rgb(255 250 240 / 30%);
  }
  .consultations-mobile__hero::before { content: ''; position: absolute; z-index: 0; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgb(113 78 46 / 22%), rgb(86 56 32 / 33%)); }
  .consultations-mobile__hero-title {
    position: absolute; inset: 0 1rem; z-index: 1; display: flex; flex-direction: column; justify-content: flex-start; gap: .25rem;
    margin: 0; padding: 1.75rem 0 0; pointer-events: none; font-family: var(--_typography---font--heading-font);
    font-size: clamp(32px, 10.4vw, 50px); font-weight: 700; letter-spacing: -.01em; line-height: .98;
    text-align: center; text-wrap: balance; color: #3b2a21;
  }
  .consultations-mobile__hero-title span:last-child { color: #fffaf0; }
  .consultations-mobile__hero .consultations-mobile__primary.button.on-inverse {
    position: absolute; right: 1rem; bottom: 1.75rem; left: 1rem; z-index: 2; isolation: isolate;
  }
  .consultations-mobile__hero .consultations-mobile__primary::after {
    --faq-cta-orbit-angle: -90deg;
    position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; content: ''; pointer-events: none;
    background: conic-gradient(from var(--faq-cta-orbit-angle), transparent 0deg 342deg, rgba(245, 227, 196, .28) 352deg, rgba(245, 227, 196, .82) 360deg);
    opacity: .72;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude;
    filter: drop-shadow(0 0 4px rgba(245, 227, 196, .3)); animation: faq-cta-border-orbit 9s linear infinite;
  }
  @media (prefers-reduced-motion: reduce) { .consultations-mobile__hero .consultations-mobile__primary::after { animation: none; } }
  .consultations-mobile__groups { display: grid; gap: 20px; }
  .consultations-mobile__group-wrapper { position: relative; min-width: 0; }
  .consultations-mobile__drag-preview { position: fixed; z-index: 10000; pointer-events: none; opacity: .96; filter: drop-shadow(0 8px 14px rgb(77 53 31 / 25%)); }
  .consultations-mobile__drag-placeholder { opacity: .25; }
  body.consultations-dragging { user-select: none; -webkit-user-select: none; }
  .consultations-mobile__reorder-status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .consultations-mobile__group {
    min-width: 0; overflow: hidden; border: 1px solid #e1d2bb; border-radius: 18px;
    background-color: #fffaf2;
    background-image: linear-gradient(115deg, #fffaf2 0%, #f4e6d2 30%, #ead3b4 50%, #f4e6d2 70%, #fffaf2 100%);
    background-size: 240% 240%;
    animation: consultations-card-gradient 9s ease-in-out infinite alternate;
    box-shadow: 0 3px 9px rgb(77 53 31 / 8%); scroll-margin-top: 145px;
  }
  @keyframes consultations-card-gradient {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
  }
  @media (prefers-reduced-motion: reduce) { .consultations-mobile__group { animation: none; background-position: 50% 50%; } }
  .consultations-mobile__group summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 15px 18px; cursor: pointer; list-style: none; font-family: var(--_typography---font--heading-font); font-weight: 400; font-size: 18px; line-height: 1.15; color: #3b2a21; }
  .consultations-mobile__specialty-icon { display: block; flex: 0 0 40px; width: 40px; height: 40px; object-fit: contain; }
  .consultations-mobile__specialty-label { flex: 1 1 auto; min-width: 0; }
  .consultations-mobile__group summary::-webkit-details-marker { display: none; }
  .consultations-mobile__group summary::after { content: ''; flex: none; width: 9px; height: 9px; border-right: 2px solid #8d682e; border-bottom: 2px solid #8d682e; transform: rotate(45deg); margin: 0 4px 5px 0; }
  .consultations-mobile__group[open] summary::after { transform: rotate(225deg); margin-bottom: -4px; }
  .consultations-mobile__items { list-style: none; margin: 0; padding: 0 18px 8px; }
  .consultations-mobile__item { position: relative; padding: 17px 0 16px; }
  .consultations-mobile__item::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px;
    background: #c4a986; transform: scaleX(1);
    transform-origin: left;
  }
  .consultations-mobile__item:nth-child(even)::before { transform-origin: right; }
  .consultations-mobile__group[open].is-animating-dividers .consultations-mobile__item::before {
    animation: consultations-divider-grow 2.1s ease-out forwards;
  }
  @keyframes consultations-divider-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @media (prefers-reduced-motion: reduce) {
    .consultations-mobile__group[open].is-animating-dividers .consultations-mobile__item::before { animation: none; transform: scaleX(1); }
  }
  .consultations-mobile__item-title { display: block; margin: 0 0 6px; font-size: 16px; font-weight: 700; line-height: 1.3; }
  .consultations-mobile__doctor-name { display: block; white-space: nowrap; }
  .consultations-mobile__doctor-name--long { font-size: clamp(10px, 3.4vw, 16px); }
  .consultations-mobile__description { margin: 0 0 12px; color: #695643; font-size: 14px; line-height: 1.4; }
  .consultations-mobile__price { display: block; color: #906520; font-size: 20px; font-weight: 700; line-height: 1.2; text-align: right; white-space: nowrap; }
  .consultations-mobile :is(a:not(.consultations-mobile__primary), button, summary):focus-visible { outline: 3px solid #2e6484; outline-offset: 3px; }
  .consultations-mobile :is(a:not(.consultations-mobile__primary), button):active { transform: scale(.98); }
}
