/* Mobile storefront aligned with the Mini App visual language. Desktop is untouched. */
@media (max-width: 767.98px) {
  :root {
    --mobile-app-bg: #f7f2ef;
    --mobile-app-text: #201b19;
    --mobile-app-card: #fff;
    --mobile-app-accent: #df4f64;
    --mobile-app-accent-dark: #bd3349;
    --mobile-app-muted: #786e69;
    --mobile-app-line: #eadfda;
    --mobile-app-shadow: 0 12px 36px rgba(71, 45, 37, .09);
  }

  html { background: var(--mobile-app-bg); }
  body {
    padding-bottom: calc(66px + env(safe-area-inset-bottom));
    background: var(--mobile-app-bg);
    color: var(--mobile-app-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }
  body > main,
  .main { background: transparent; }
  .container { padding-right: 12px; padding-left: 12px; }
  h1, h2, .like-h2, .main-banner__title { font-family: Georgia, "Times New Roman", serif; color: var(--mobile-app-text); }

  .header,
  .header.header_fixed {
    position: sticky;
    top: 0;
    z-index: 110;
    padding: 8px 0 !important;
    border-bottom: 1px solid rgba(234, 223, 218, .85);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 6px 24px rgba(71, 45, 37, .07);
    backdrop-filter: blur(14px);
  }
  .header > .container { height: 100%; }
  .header-cols,
  .header_fixed .header-cols { min-height: 52px; height: 52px; margin: 0; }
  .header-col_logo,
  .header_fixed .header-col_logo { width: 128px; }
  .header-col_logo img,
  .header_fixed .header-col_logo img { width: 128px; max-height: 44px; object-fit: contain; }
  .header-col_delivery,
  .header-col_phones,
  .header-col_cart { display: none !important; }
  .burger-menu,
  .header .burger-menu {
    position: absolute;
    right: 12px;
    top: 13px;
    display: block !important;
    width: 42px;
    height: 42px;
    border: 1px solid var(--mobile-app-line) !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 4px 14px rgba(71, 45, 37, .08);
  }
  .burger-menu:before,
  .burger-menu:after { display: none !important; content: none !important; }
  .burger-menu span,
  .burger-menu span:before,
  .burger-menu span:after { position: absolute; left: 10px; width: 20px; height: 2px; background: var(--mobile-app-text); content: ""; }
  .burger-menu span { top: 19px; }
  .burger-menu span:before { top: -6px; left: 0; }
  .burger-menu span:after { top: 6px; left: 0; }
  .utop-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 1201;
    width: min(88vw, 360px);
    height: 100dvh;
    padding: calc(18px + env(safe-area-inset-top)) 0 calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border: 0;
    border-radius: 22px 0 0 22px;
    background: #fff;
    box-shadow: -16px 0 44px rgba(49, 34, 29, .18);
    transform: translateX(105%);
    transition: transform .25s ease;
    overscroll-behavior: contain;
  }
  .utop-menu.top-menu--active { transform: translateX(0); }
  .utop-menu > .container { padding: 0 18px; }
  .utop-menu .menu-toggler { display: none; }
  .utop-menu .top-menu__livel-1 {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    border: 0;
    background: #fff;
    box-shadow: none;
  }
  .utop-menu .top-menu__livel-1 > .top-menu__item { width: 100%; border-bottom: 1px solid var(--mobile-app-line); }
  .utop-menu .top-menu__livel-1 > .top-menu__item > .top-menu__link {
    display: block;
    padding: 15px 4px;
    color: var(--mobile-app-text);
    font-size: 14px;
    line-height: 1.25;
  }
  .mobile-menu-close {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin: 0 0 14px auto;
    padding: 0;
    border: 1px solid var(--mobile-app-line);
    border-radius: 14px;
    background: #fff;
    color: var(--mobile-app-text);
    font-size: 28px;
    line-height: 1;
  }
  .mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    visibility: hidden;
    border: 0;
    background: rgba(32, 27, 25, .45);
    opacity: 0;
    transition: opacity .25s ease, visibility 0s linear .25s;
    backdrop-filter: blur(2px);
  }
  .mobile-menu-overlay.overlay--active {
    visibility: visible;
    opacity: 1;
    transition: opacity .25s ease;
  }
  body.mobile-menu-open { overflow: hidden; touch-action: none; }
  body.mobile-menu-open .pwa-install-offer { display: none; }
  .mobile-menu-swipe-hint {
    position: fixed;
    top: 44%;
    right: -7px;
    z-index: 109;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 11px 8px 9px;
    border: 1px solid rgba(189, 51, 73, .16);
    border-radius: 14px 0 0 14px;
    background: rgba(255, 255, 255, .94);
    color: var(--mobile-app-accent-dark);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 7px 20px rgba(71, 45, 37, .13);
    pointer-events: none;
    backdrop-filter: blur(8px);
    animation: mobile-menu-swipe-cue 1.65s ease-in-out .8s 3 both;
  }
  .mobile-menu-swipe-hint__arrow { font-size: 22px; font-weight: 400; line-height: .7; }
  @keyframes mobile-menu-swipe-cue {
    0%, 100% { opacity: .45; transform: translateX(16px); }
    38%, 64% { opacity: 1; transform: translateX(-9px); }
  }
  @media (prefers-reduced-motion: reduce) {
    .mobile-menu-swipe-hint { animation: none; }
  }
  .top-menu__livel-1 { border: 0; background: #fff; box-shadow: var(--mobile-app-shadow); }
  .top-menu__livel-1 > li > a { color: var(--mobile-app-text); }

  .personal-panel {
    min-height: calc(62px + env(safe-area-inset-bottom));
    padding: 4px 8px env(safe-area-inset-bottom) !important;
    border-top: 1px solid var(--mobile-app-line);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -8px 28px rgba(71, 45, 37, .10);
    backdrop-filter: blur(16px);
  }
  .personal-panel .ico-block { min-height: 54px; border-radius: 14px; }
  .personal-panel .ico-block__text { color: var(--mobile-app-muted); font-size: 10px; }
  .personal-panel .ico-block__count { background: var(--mobile-app-accent); }

  .breadcrumb { margin: 10px 0; padding: 0; background: transparent; }
  .breadcrumb a, .breadcrumb-item { color: var(--mobile-app-muted); font-size: 12px; }

  .btn,
  a.btn,
  button.btn,
  .catalog-element .buy-block .btn {
    min-height: 46px;
    border: 0;
    border-radius: 14px;
    background: var(--mobile-app-accent);
    color: #fff;
    font-weight: 700;
    box-shadow: none;
  }
  .btn:hover, .btn:focus { background: var(--mobile-app-accent-dark); color: #fff; }
  .btn--green, .btn--yellow, .btn--yellow.btn--bg { background: var(--mobile-app-accent) !important; color: #fff !important; }

  .main-banner__container,
  .advantages-wrap > .container > .row,
  .info-block,
  .catalog-list-filter,
  .filter-block {
    border: 1px solid var(--mobile-app-line);
    border-radius: 20px;
    background: var(--mobile-app-card);
    box-shadow: var(--mobile-app-shadow);
  }
  .main-banner__inner { padding: 12px; }
  .main-banner__container {
    width: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 24px;
  }
  .main-banner__left,
  .main-banner__right {
    width: 100%;
    margin-right: 0;
    border-radius: 0;
  }
  .main-banner__left { padding: 20px 18px 18px; }
  .main-banner-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  .main-banner__title,
  .main-banner__subtitle {
    width: 100%;
    max-width: 100%;
    padding-right: 2px;
    overflow: visible;
  }
  .main-banner__right { padding: 20px 18px 18px; }
  .main-banner__right:after { display: none; }
  .main-banner__right h2 { margin-bottom: 14px; font-size: 25px; text-align: left; }
  .main-banner__left { margin-bottom: 14px; }
  .main-banner__title { font-size: 27px; line-height: 1.12; }
  .main-banner__title a { color: var(--mobile-app-accent-dark); }
  .main-banner__subtitle { color: var(--mobile-app-muted); }
  .main-banner .btn,
  .main-banner .ubtn_green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 24px;
    border: 0 !important;
    border-radius: 14px !important;
    background: var(--mobile-app-accent) !important;
    color: #fff !important;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 8px 20px rgba(189, 51, 73, .18);
  }
  .main-banner .banner-btn { margin-top: 16px; }
  .catalog-section-list > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .catalog-section-list > ul > li { width: auto; margin: 0; padding: 10px; }
  .categories-section-item,
  .catalog-section-list > ul > li {
    overflow: hidden;
    border: 1px solid var(--mobile-app-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(71, 45, 37, .07);
  }
  .categories-section__img { height: 145px; margin-bottom: 9px; border-radius: 13px; overflow: hidden; }
  .categories-section__name { color: var(--mobile-app-text); font-size: 13px; font-weight: 800; text-align: center; }
  .mobile-show-full,
  .tab-more-bar { margin: 14px 0 20px; }
  .mobile-show-full .btn,
  .tab-more-bar .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 190px;
    min-height: 48px;
    margin: 0;
    padding: 11px 22px;
    border: 0;
    border-radius: 15px;
    background: var(--mobile-app-accent) !important;
    color: #fff !important;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    opacity: 1 !important;
    box-shadow: 0 8px 20px rgba(189, 51, 73, .18);
  }

  .main-tabs-header .tabs-btn {
    gap: 8px;
  }
  .main-tabs-header .main-tabs-header__item.btn {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 58px;
    height: auto;
    margin: 0;
    padding: 9px 7px;
    border: 1px solid #c92f49;
    border-radius: 15px;
    background: #d93f58;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.12;
    opacity: 1;
    text-align: center;
    text-shadow: 0 1px 1px rgba(92, 18, 31, .18);
    white-space: normal;
  }
  .main-tabs-header .main-tabs-header__item.btn:hover,
  .main-tabs-header .main-tabs-header__item.btn:focus {
    background: #c92f49;
    color: #fff !important;
  }
  .main-tabs-header .main-tabs-header__item.btn.active {
    border-color: #779f2f;
    background: #8db83e;
    color: #fff !important;
    box-shadow: 0 7px 18px rgba(103, 139, 35, .18);
  }

  .card-align { width: calc(50% - 6px); margin: 0 3px 12px; }
  .card {
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--mobile-app-line) !important;
    border-radius: 20px;
    background: var(--mobile-app-card);
    box-shadow: var(--mobile-app-shadow);
  }
  .card__content { padding: 0 0 12px; }
  .card__img,
  .card__img--gray { overflow: hidden; border-radius: 18px 18px 0 0; background: #eee4df; }
  .card__img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
  .card__name { display: block; min-height: 44px; padding: 10px 10px 4px !important; color: var(--mobile-app-text); font-weight: 700; line-height: 1.25; }
  .card__description { padding: 0 10px; color: var(--mobile-app-muted); font-size: 12px; }
  .card__price { padding: 4px 10px; color: var(--mobile-app-text); font-size: 18px; font-weight: 800; }
  .card__btn { padding: 0 10px; }
  .card__btn .btn,
  .card__btn .ajax-add-basket { min-height: 40px; border-radius: 12px; background: var(--mobile-app-accent); }
  .card__stickers { top: 8px; left: 8px; }
  .sticker { border-radius: 9px; }

  .catalog-element { padding: 8px 0 24px; }
  .catalog-element .row { margin-right: -6px; margin-left: -6px; }
  .catalog-element [class*="col-"] { padding-right: 6px; padding-left: 6px; }
  .detail-img {
    overflow: hidden;
    margin-bottom: 12px;
    border-radius: 22px;
    background: #eee4df;
    box-shadow: var(--mobile-app-shadow);
  }
  .detail-img > a.fancybox { display: block; }
  .detail-img > a.fancybox img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
  .detail-img-label { top: 10px; left: 10px; border-radius: 12px; }
  .catalog-element h1 { margin: 8px 2px 14px; font-size: 29px; line-height: 1.12; }
  .postcard-block,
  .buy-block,
  .element-your-wishes,
  .bouquet-description,
  .element-features {
    margin-bottom: 12px;
    border: 1px solid var(--mobile-app-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--mobile-app-shadow);
  }
  .catalog-element .buy-block { padding: 16px; }
  .catalog-element .detail-price { margin-bottom: 10px; color: var(--mobile-app-text); font-size: 28px; font-weight: 800; }
  .detail-btn { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; width: 100%; }
  .detail-btn .btn { width: 100% !important; margin: 0 !important; }
  .element-your-wishes { padding: 14px 16px; }
  .wish-product-link { color: var(--mobile-app-accent-dark); font-weight: 700; }
  .bouquet-description { padding: 16px; color: var(--mobile-app-muted); line-height: 1.55; }
  .bouquet-description table { display: none; }
  .element-features { padding: 4px 16px; }
  .dropdown-block { border-color: var(--mobile-app-line); }

  .bouquet-composition {
    margin: 12px 0;
    padding: 16px;
    border: 1px solid #f0d8dc;
    border-radius: 20px;
    background: linear-gradient(145deg, #fff8f8, #fff);
    box-shadow: var(--mobile-app-shadow);
  }
  .bouquet-composition__head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
  .bouquet-composition__icon { display: grid; flex: 0 0 40px; place-items: center; width: 40px; height: 40px; margin: 0; border-radius: 13px; background: #fce8eb; color: var(--mobile-app-accent-dark); }
  .bouquet-composition__eyebrow { display: block; color: var(--mobile-app-muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
  .bouquet-composition h2 { margin: 1px 0 0; font-size: 22px; line-height: 1.15; }
  .bouquet-composition__list { display: grid; gap: 8px; }
  .bouquet-composition__item { display: flex; align-items: baseline; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; box-shadow: 0 5px 18px rgba(71, 45, 37, .06); }
  .bouquet-composition__item span { min-width: 0; flex: 1; line-height: 1.3; }
  .bouquet-composition__item b { flex: 0 0 auto; color: var(--mobile-app-accent-dark); font-size: 13px; white-space: nowrap; }

  .catalog-element ~ section { padding-top: 18px; }
  .catalog-element ~ section .like-h2 { max-width: none !important; font-size: 25px !important; }
  .catalog-element ~ section .owl-stage { display: flex; }
  .catalog-element ~ section .owl-item { height: auto; }
  .catalog-element ~ section .card { height: 100%; }

  .basket-wrap,
  .basket-detail,
  .order-info,
  .order-block-item,
  .order-delivery-block {
    border-color: var(--mobile-app-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--mobile-app-shadow);
  }
  .form__input, .form__textarea, .form__select select { min-height: 48px; border-color: var(--mobile-app-line); border-radius: 13px; }
  .footer { padding-bottom: 16px; background: #fff; }

  .action_item_1,
  .action_item_2 {
    position: relative;
    display: block;
    width: 100%;
    min-height: 220px;
    height: auto;
    margin: 0 0 16px;
    padding: 22px 18px;
    overflow: hidden;
    border: 1px solid var(--mobile-app-line);
    border-radius: 22px;
    background-position: center !important;
    background-size: cover !important;
    box-shadow: var(--mobile-app-shadow);
  }
  .action_text1,
  .action_text2,
  .action_text3 { position: relative; z-index: 1; width: min(62%, 260px); }
  .action_text1,
  .action_text3 { font-size: 18px; line-height: 1.35; }
  .action_text2 {
    margin-top: 16px;
    padding: 11px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .86);
    color: var(--mobile-app-text);
    font-size: 14px;
    line-height: 1.45;
    backdrop-filter: blur(6px);
  }
  .action_text22 { display: none; }
  .action_text3 {
    padding: 13px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(6px);
  }
  .action_text3 span { display: block; margin-bottom: 8px; }
  .action_text3 a {
    display: inline-flex;
    padding: 9px 12px;
    border-radius: 11px;
    background: var(--mobile-app-accent);
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
  }
}

.pwa-install-offer {
  position: fixed;
  right: 12px;
  bottom: calc(76px + env(safe-area-inset-bottom));
  left: 12px;
  z-index: 2147483000;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 32px;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid #eadfda;
  border-radius: 18px;
  background: rgba(255, 255, 255, .98);
  color: #201b19;
  box-shadow: 0 16px 44px rgba(71, 45, 37, .20);
  backdrop-filter: blur(16px);
}
.pwa-install-offer__icon { width: 44px; height: 44px; border-radius: 13px; }
.pwa-install-offer__copy { min-width: 0; }
.pwa-install-offer__copy b { display: block; font-size: 14px; line-height: 1.2; }
.pwa-install-offer__copy span { display: block; margin-top: 3px; color: #786e69; font-size: 12px; line-height: 1.25; }
.pwa-install-offer__install {
  min-height: 40px;
  padding: 9px 13px;
  border: 0;
  border-radius: 12px;
  background: #df4f64;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.pwa-install-offer__close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #786e69;
  font-size: 23px;
  line-height: 1;
}
@media (min-width: 768px) { .pwa-install-offer { display: none; } }
@media (max-width: 420px) {
  .pwa-install-offer { grid-template-columns: 40px minmax(0, 1fr) 32px; }
  .pwa-install-offer__icon { width: 40px; height: 40px; }
  .pwa-install-offer__install { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .pwa-install-offer__close { grid-column: 3; grid-row: 1; }
}

@media (max-width: 420px) {
  .card__name { font-size: 14px; }
  .card__price { font-size: 16px; }
  .detail-btn { grid-template-columns: 1fr; }
}
