/* ==========================================================================
   КадрикаПРО — mobile (≤767px)
   Компактная композиция. Desktop остаётся в site.css.
   ========================================================================== */

@media (max-width: 767px) {
  :root {
    --container-gutter: 16px;
    --section-y: 44px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 44px;
    --gap: 14px;
    --fs-h1: 28px;
    --fs-h2: 24px;
    --fs-h3: 19px;
    --fs-body: 15px;
    --fs-lead: 15px;
    --fs-small: 13px;
    --tap: 44px;
    --m-gap: 14px;
    --m-pad: 16px;
  }

  html {
    overflow-x: clip;
  }
  html.share-open {
    overflow-x: visible;
  }

  body {
    font-size: 15px;
    line-height: 1.5;
  }

  h1, h2, h3 {
    line-height: 1.25;
  }

  .section {
    padding-block: 44px;
  }

  .page-head {
    padding: 20px 0 8px;
  }

  /* Share справа от H1 (альбом / group-photo): компактно, как lightbox. */
  .page-head__title-row {
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px 12px;
  }

  .page-head__title-row .page-head__title {
    flex: 1 1 auto;
    min-width: 0;
  }

  .page-head__title-row .share-btn {
    flex: none;
    align-self: center;
    margin-top: 0;
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    color: #1c1a17;
    background: #f5f1ea;
    border: 1px solid rgba(28, 26, 23, 0.12);
    border-radius: 999px;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .page-head__title,
  .hero__title,
  .process-intro__title,
  .privacy__title {
    font-size: 28px;
    line-height: 1.2;
  }

  .section__title,
  .gp-kit__heading,
  .vg-kit__heading,
  .vg-catalog__title,
  .cta__title,
  .gp-albums__title {
    font-size: 24px;
    line-height: 1.25;
  }

  .section__head {
    margin-bottom: 12px;
  }

  .page-head__text,
  .hero__subtitle,
  .lead,
  .gp-kit__lead,
  .cta__text {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.5;
  }

  /* --- Hero: без декоративного фото, только текст и кнопки --- */
  .hero {
    padding: 8px 0 16px;
  }

  .hero__panel {
    display: block;
    min-height: 0;
    padding: 16px;
    background-image: none;
  }

  .hero__text {
    width: 100%;
  }

  .lp-hero {
    padding: 12px 0 8px;
  }

  .lp-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .lp-hero__actions .btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .lp-hero__visual {
    width: 100%;
    max-width: none;
  }

  .lp-try__card {
    padding: 16px;
  }

  .lp-try__tabs {
    gap: 8px;
  }

  .lp-try__tab {
    flex: 1 1 auto;
    min-height: 44px;
  }

  .lp-addon__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .lp-addon__actions .btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .lp-addon__more {
    text-align: center;
  }

  .hero__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 14px;
  }

  .hero__actions .btn {
    width: 100%;
    height: 44px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 22px;
    font-size: 15px;
    white-space: nowrap;
  }

  @media (min-width: 360px) {
    .hero__actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      justify-content: stretch;
      justify-items: stretch;
      align-items: stretch;
      gap: 10px;
    }

    .hero__actions .btn {
      width: 100%;
      max-width: none;
    }

    .hero__actions .btn--primary {
      grid-column: 1 / -1;
    }

    .hero__btn-full {
      display: none;
    }

    .hero__btn-short {
      display: inline;
    }
  }

  /* --- Мотивационная editorial-вставка --- */
  .motivation {
    padding: 6px 0 4px;
  }

  .motivation__wrap {
    padding-inline: var(--container-gutter);
  }

  .motivation__frame {
    padding: 16px 14px 14px;
    border-radius: 12px;
  }

  .motivation__layout {
    display: block;
  }

  .motivation__branch--side {
    display: none;
  }

  .motivation__mobile-top {
    display: none;
  }

  .motivation__sparkles {
    display: none;
  }

  .motivation__title {
    font-size: clamp(24px, 6.5vw, 28px);
    line-height: 1.2;
  }

  .motivation__text {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.48;
  }

  .cta {
    padding: 32px 0;
  }

  .cta__panel {
    align-items: flex-start;
    min-height: 0;
    padding: 16px;
    background-image: none;
  }

  .cta__copy {
    max-width: 100%;
  }

  .cta__title {
    font-size: 22px;
    line-height: 1.25;
  }

  .cta__text {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.45;
  }

  .cta__actions {
    --cta-icon-size: 52px;
    margin-top: 12px;
    gap: 10px;
  }

  .cta__contact-btn {
    padding: 0 16px 0 0;
    gap: 10px;
  }

  .cta__contact-label {
    font-size: 14px;
    white-space: normal;
  }

  .contacts {
    padding-block: 24px;
  }

  .contacts-hero {
    gap: 18px;
  }

  .contacts-hero__title {
    font-size: 24px;
    line-height: 1.2;
  }

  .contacts-hero__lead {
    font-size: 15px;
    line-height: 1.5;
  }

  .contacts-hero__phone {
    font-size: 26px;
  }

  .contacts-hero__call {
    width: 100%;
    max-width: 280px;
  }

  .contacts-messengers__icon {
    width: 52px;
    height: 52px;
  }

  .contacts-messengers__list {
    gap: 16px;
  }

  .contacts-facts {
    margin-top: 22px;
    padding-top: 18px;
    gap: 14px;
  }

  .cta__social-link,
  .cta__social-link img {
    width: var(--cta-icon-size);
    height: var(--cta-icon-size);
  }

  .btn {
    min-height: 44px;
    padding: 10px 18px;
    font-size: 15px;
  }

  /* --- «Что мы делаем»: фото задаёт высоту --- */
  .service-cards {
    gap: 14px;
    margin-top: 12px;
  }

  .service-card {
    height: auto;
  }

  .service-card__media {
    aspect-ratio: 5 / 4;
    height: auto;
    background: var(--c-bg-soft);
  }

  .service-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .service-card__ph {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .service-card__body {
    gap: 8px 10px;
    padding: 14px 16px 16px;
  }

  .service-card__icon-wrap,
  .service-card__icon {
    width: 48px;
    height: 48px;
  }

  .service-card__title {
    font-size: 17px;
    line-height: 1.3;
  }

  .service-card__text {
    font-size: 14px;
    line-height: 1.45;
  }

  /* --- «Почему КадрикаПРО» --- */
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .card,
  .card--plain,
  .card__link {
    height: auto;
    padding: 14px;
  }

  .card__title {
    font-size: 16px;
    line-height: 1.3;
  }

  .card__text {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.4;
  }

  /* --- Процесс --- */
  .steps {
    --step-num-size: 48px;
    --step-icon-size: 76px;
    --steps-gap: 24px;
  }

  .step__icon {
    margin-bottom: 10px;
  }

  .step__title {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 6px;
  }

  .step__text {
    font-size: 15px;
    line-height: 1.5;
  }

  .process-seo__panel {
    padding: 18px 16px;
  }

  .process-seo__title {
    font-size: 21px;
  }

  .process-seo__text {
    font-size: 15px;
  }

  .process-seo__links {
    margin-top: 18px;
  }

  .process-geo {
    margin-top: 18px;
    padding-top: 14px;
  }

  .process-geo__cities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    font-size: 13px;
  }

  /* --- «Что входит в работу» --- */
  .work-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
    overflow: visible;
    padding: 0;
  }

  .work-steps__item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    padding: 14px 10px;
    text-align: center;
    background: var(--c-bg);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-sm);
  }

  .work-steps__item:not(:last-child)::after {
    display: none;
  }

  .work-steps__item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 12px) / 2);
  }

  .work-steps__icon {
    box-sizing: border-box;
    width: 48px;
    height: 48px;
    padding: 11px;
    background: var(--c-warm-soft);
    border-radius: 999px;
    object-fit: contain;
    object-position: center;
    overflow: visible;
  }

  .work-steps__label {
    font-size: 13px;
    line-height: 1.35;
    white-space: normal;
  }

  .work-card,
  .work-card--live,
  .work-card.work-card--seasons {
    margin-top: 14px;
    min-height: 0;
    height: auto;
    padding: 16px;
    border-radius: var(--radius);
  }

  .work-card__title {
    font-size: 19px;
    line-height: 1.3;
  }

  .work-card__text {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.5;
  }

  .work-card__price {
    white-space: normal;
    font-size: 22px;
  }

  .work-card.work-card--seasons {
    padding-right: 16px;
    background-image: none;
    background-color: var(--c-bg-soft);
    text-align: center;
  }

  .work-card--seasons .work-card__title,
  .work-card--seasons .work-card__text,
  .work-card--seasons .work-card__note {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .work-card--seasons .work-card__text,
  .work-card--seasons .work-card__note,
  .work-card--seasons .work-seasons,
  .work-card--seasons .work-locations {
    max-width: none;
  }

  .work-seasons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
    align-items: stretch;
    gap: 8px;
    margin-top: 12px;
  }

  .work-locations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
  }

  .work-locations__item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 13px;
    text-align: center;
    background: #fff;
  }

  .work-seasons__item {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    min-height: 76px;
    padding: 12px 8px;
    font-size: 13px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-sm);
  }

  .work-seasons__item span {
    display: block;
    width: 100%;
    text-align: center;
  }

  .work-seasons__item:first-child,
  .work-seasons__item:not(:first-child) {
    border-left: 1px solid var(--c-line);
    padding-left: 8px;
  }

  .work-seasons__item--more {
    flex: none;
    width: auto;
    color: var(--c-text);
    font-size: 13px;
    font-weight: 400;
    background: #fff;
    border-style: solid;
  }

  .work-seasons__icon {
    width: 22px;
    height: 22px;
  }

  .work-seasons__icon--more {
    width: 28px;
    height: 12px;
  }

  /* --- Каталог альбомов --- */
  .grid--catalog,
  .grid--albums {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
  }

  .album-ready {
    padding-top: 28px;
    padding-bottom: 8px;
  }

  .section:has(+ .album-ready--home) {
    padding-bottom: 16px;
  }

  .section.album-ready--home {
    padding-top: 8px;
    padding-bottom: 12px;
  }

  .album-ready--home .album-ready__intro {
    margin-bottom: 8px;
  }

  .album-ready__eyebrow {
    font-size: 12px;
    letter-spacing: 0.05em;
  }

  .album-ready-strip {
    --album-ready-h: clamp(150px, 46vw, 210px);
  }

  .album-ready__text {
    font-size: 15px;
  }

  .grid__item,
  .preview,
  .tile {
    height: auto;
  }

  .preview__img,
  .tile__img,
  .preview--wide .preview__img,
  .grid--albums .tile__img {
    aspect-ratio: auto;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* --- Виньетки: 2 col, пропорция исходника --- */
  .vg-grid {
    width: 100%;
    max-width: 560px;
    margin: 12px auto 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
  }

  .vg-grid__item {
    display: block;
    min-width: 0;
  }

  .vg-grid__item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc((100% - 14px) / 2);
    justify-self: center;
  }

  .vignette-card {
    height: auto;
  }

  .vignette-card__media {
    aspect-ratio: auto;
    height: auto;
    display: block;
  }

  .vignette-card__img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }

  .vignette-card__body {
    flex: none;
    gap: 4px;
    padding: 10px 12px 12px;
    min-height: 0;
  }

  .vignette-card__name {
    font-size: 14px;
    line-height: 1.35;
    min-height: 0;
  }

  .vignette-card__more {
    font-size: 13px;
  }

  .vg-kit {
    padding: 16px;
    gap: 10px;
  }

  .vg-kit__heading {
    font-size: 22px;
  }

  .vg-kit__label {
    margin-top: 4px;
    font-size: 13px;
  }

  .vg-kit__sum {
    margin-top: 6px;
    font-size: 28px;
    line-height: 1.1;
  }

  .vg-kit__unit {
    margin-top: 2px;
    font-size: 13px;
  }

  .vg-kit__includes-title {
    margin-bottom: 6px;
    font-size: 15px;
  }

  .vg-kit__list {
    gap: 5px;
  }

  .vg-kit__list li {
    font-size: 14px;
    line-height: 1.4;
  }

  .vg-kit__note {
    padding-top: 8px;
    font-size: 13px;
    grid-template-columns: 24px minmax(0, 1fr);
    column-gap: 8px;
  }

  .vg-kit__note-icon-wrap {
    width: 24px;
    height: 24px;
  }

  .vg-kit__note-icon {
    width: 24px;
    height: 24px;
  }

  .vg-parts {
    margin-top: 12px;
  }

  .vg-parts__board {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
    padding: 16px;
  }

  .vg-parts__set {
    width: 100%;
    gap: 12px;
  }

  .vg-print--vignette,
  .vg-parts__board .gp-print--s,
  .vg-parts__board .gp-print--m {
    width: 100%;
  }

  .vg-parts__board .gp-print__media,
  .vg-print--vignette .gp-print__media,
  .vg-parts__board .gp-print--s .gp-print__media,
  .vg-parts__board .gp-print--m .gp-print__media {
    aspect-ratio: auto;
    height: auto;
    position: static;
    overflow: visible;
  }

  .vg-parts__board .gp-print__img,
  .vg-parts__board .gp-print__ph {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }

  .vg-parts__board .gp-kit__prints {
    display: grid;
    grid-template-columns: minmax(0, 10fr) minmax(0, 15fr);
    gap: 14px;
    width: 100%;
  }

  .vg-print--vignette .gp-print__media {
    aspect-ratio: 3 / 2;
    position: relative;
    overflow: hidden;
    height: auto;
  }

  .vg-print--vignette .gp-print__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .vg-parts__note {
    font-size: 13px;
  }

  /* --- /group-photo --- */
  .gp-backdrop {
    padding-bottom: 36px;
  }

  .gp-backdrop__intro {
    margin-bottom: 20px;
  }

  .gp-backdrop__title {
    font-size: clamp(22px, 5vw, 28px);
  }

  .gp-backdrop__subtitle,
  .gp-backdrop__text,
  .gp-showcase__bridge-text {
    font-size: 15px;
  }

  .gp-showcase__bridge-title {
    font-size: clamp(18px, 4.5vw, 22px);
  }

  .gp-showcase {
    padding-top: 8px;
  }

  .gp-showcase__bridge {
    margin-bottom: 18px;
  }

  .gp-showcase__img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .live-frame__sheet {
    padding: 14px 12px 12px;
  }

  .gp-kit,
  .gp-albums {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .gp-kit__board {
    padding: 16px;
  }

  .gp-kit__set {
    width: 100%;
  }

  .gp-print--a4,
  .gp-print--s,
  .gp-print--m {
    width: 100%;
  }

  .gp-print__media,
  .gp-print--a4 .gp-print__media,
  .gp-print--s .gp-print__media,
  .gp-print--m .gp-print__media {
    aspect-ratio: auto;
    height: auto;
    position: static;
    overflow: visible;
  }

  .gp-print__img,
  .gp-print__ph {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }

  .gp-kit__prints {
    display: grid;
    grid-template-columns: minmax(0, 10fr) minmax(0, 15fr);
    gap: 14px;
    width: 100%;
  }

  .gp-qr__strip {
    min-height: 44px;
    padding: 12px 16px;
  }

  .gp-qr__mark {
    display: none;
  }

  .gp-qr__hint--desktop {
    display: none;
  }

  .gp-qr__hint--mobile {
    display: block;
  }

  .gp-qr__heading {
    gap: 10px;
    font-size: 15px;
  }

  .gp-qr__heading::before {
    content: "";
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #fff url("../img/group-photo-qr.png") center / 24px 24px no-repeat;
    border: 1px solid var(--c-line);
    border-radius: 8px;
  }

  .gp-qr__icon {
    display: none;
  }

  /* --- Оживляющие фото --- */
  .lp-example__media {
    aspect-ratio: 4 / 3;
  }

  .site-footer {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  /* --- Share --- */
  .share-btn {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 14px;
  }

  body.share-open {
    overflow: hidden;
  }

  .share-backdrop {
    z-index: 10000;
    background: rgba(28, 26, 23, 0.42);
  }

  .share-panel {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    min-height: 220px;
    max-height: min(72vh, 560px);
    overflow-y: auto;
    padding: 12px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    border-radius: 20px 20px 0 0;
    transform: none;
    opacity: 1;
  }
  .share-panel__handle {
    display: block;
    width: 40px;
    height: 4px;
    margin: 0 auto 12px;
    background: var(--c-line-strong);
    border-radius: 999px;
  }
  .share-panel__heading {
    font-size: 22px;
    margin-bottom: 12px;
  }
  .share-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
  }
  .share-preview__img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--c-bg-soft);
    flex: none;
  }
  .share-preview__title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
  }
  .share-apps { gap: 12px; margin-bottom: 16px; }
  .share-app { font-size: 13px; }
  .share-app__icon {
    width: 48px;
    height: 48px;
  }
  .share-app__icon img {
    width: 48px;
    height: 48px;
  }
  .share-copy { font-size: 15px; }
  .share-cancel { display: block; font-size: 15px; }

  .lightbox__share {
    min-height: 40px;
    padding: 0 16px;
    font-size: 14px;
  }
}
