.mobile-catalog-heading {
  display: none;
}

.mobile-sticky-cta {
  display: none;
}

@media (max-width: 767px) {
  :root {
    --mobile-gutter: 16px;
    --mobile-header-h: 64px;
    --mobile-nav-h: 68px;
    --section: 48px;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  body {
    padding-bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px));
  }

  body.has-mobile-overlay {
    overflow: hidden;
  }

  .contact-float {
    display: none !important;
  }

  .callback-modal,
  .cart-modal {
    padding: 0;
    align-items: stretch;
  }

  .callback-modal__dialog,
  .cart-modal__dialog {
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: calc(16px + env(safe-area-inset-top, 0px)) var(--mobile-gutter)
      calc(24px + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    overflow-y: auto;
    box-sizing: border-box;
  }

  .callback-modal__backdrop,
  .cart-modal__backdrop {
    display: none;
  }

  .callback-modal__close {
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    margin: -4px -4px 0 0;
  }

  .cart-modal__close {
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
  }

  .callback-modal__field input {
    min-height: 52px;
    font-size: 16px;
  }

  .callback-modal__field select {
    width: 100%;
    min-height: 52px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 16px;
  }

  .cart-modal__field input,
  .cart-modal__field textarea {
    min-height: 52px;
    font-size: 16px;
    box-sizing: border-box;
  }

  .cart-modal__field textarea {
    min-height: 104px;
    resize: vertical;
  }

  .form-consent {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    font-size: 13px;
  }

  .form-consent input {
    width: 22px;
    height: 22px;
    opacity: 1;
  }

  [data-consent-submit]:disabled,
  [data-consent-submit][aria-disabled="true"] {
    opacity: 0.52;
    cursor: not-allowed;
  }

  .cart-item__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .cart-item__controls {
    display: grid;
    grid-template-columns: 48px 32px 48px minmax(0, 1fr);
    gap: 8px;
    width: 100%;
  }

  .cart-item__btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }

  .cart-item__remove {
    min-width: 0;
    min-height: 48px;
    margin-left: 0;
    text-align: right;
  }

  .callback-modal__error {
    padding: 12px;
    border: 1px solid #b84b4b;
    border-radius: 4px;
    background: #fff4f4;
    color: #7b2020;
    font-size: 14px;
    line-height: 1.4;
  }

  body.has-mobile-sticky-cta {
    padding-bottom: calc(
      var(--mobile-nav-h) + 80px + env(safe-area-inset-bottom, 0px)
    );
  }

  .product-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "body" "image" "badges";
    gap: 14px;
    padding-block: 18px 36px;
  }

  .product-hero__body {
    grid-area: body;
    align-self: auto;
  }

  .product-hero__eyebrow {
    margin: 0 0 12px;
  }

  .product-hero__title {
    margin: 0 0 16px;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: 0;
  }

  .product-hero__lead {
    margin: 0 0 14px;
    max-width: none;
    font-size: 16px;
    line-height: 1.55;
  }

  .product-hero__commerce {
    display: grid;
    gap: 12px;
    width: 100%;
    max-width: 100%;
  }

  .product-hero__price-box {
    padding: 13px 14px;
  }

  .product-hero__price {
    font-size: 24px;
  }

  .product-hero__price-box p {
    font-size: 13px;
    line-height: 1.45;
  }

  .product-hero__image {
    grid-area: image;
    width: 100%;
    max-width: none;
    justify-self: center;
  }

  .product-hero__img-wrap {
    width: min(230px, 68vw);
    max-height: 62svh;
    margin-inline: auto;
    aspect-ratio: 4 / 5;
  }

  .product-hero__img-wrap img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }

  .product-hero__actions {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin: 0;
  }

  .product-hero__actions .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .product-hero__badges {
    grid-area: badges;
    margin: 0;
  }

  .mobile-sticky-cta {
    position: fixed;
    z-index: 310;
    right: 0;
    bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px));
    left: 0;
    display: grid;
    min-height: 64px;
    padding: 8px max(var(--mobile-gutter), env(safe-area-inset-right, 0px)) 8px
      max(var(--mobile-gutter), env(safe-area-inset-left, 0px));
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-top: 1px solid rgba(40, 46, 37, 0.12);
    box-shadow: 0 -6px 20px rgba(40, 46, 37, 0.1);
  }

  .mobile-sticky-cta__label {
    min-width: 0;
    color: var(--text, #282e25);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
  }

  .mobile-sticky-cta .btn {
    min-height: 48px;
    padding-inline: 18px;
    border-radius: 8px;
    letter-spacing: 0;
  }

  .mobile-sticky-cta[hidden],
  body.has-mobile-overlay .mobile-sticky-cta {
    display: none;
  }

  .page-shell--home .hero {
    min-height: 100svh;
    min-height: 100dvh;
  }

  .page-shell--home .nature-strip {
    position: relative;
    z-index: 4;
    margin-top: calc(-1 * (var(--mobile-nav-h) + 16px));
  }

  .page-shell--home .hero__img {
    object-position: 58% 24%;
  }

  .page-shell--home .hero__overlay {
    background: linear-gradient(
      to bottom,
      rgba(12, 18, 13, 0.2) 0%,
      rgba(12, 18, 13, 0.46) 48%,
      rgba(12, 18, 13, 0.9) 100%
    );
  }

  .page-shell--home .hero__body {
    min-height: 100svh;
    min-height: 100dvh;
    padding: calc(var(--mobile-header-h) + env(safe-area-inset-top, 0px) + 16px)
      var(--mobile-gutter)
      calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px) + 16px);
    align-items: flex-end;
    text-align: left;
  }

  .page-shell--home .hero__content {
    width: 100%;
    max-width: 480px;
  }

  .page-shell--home .hero__title {
    max-width: 14ch;
    margin: 0 0 14px;
    font-size: 30px;
    line-height: 1.08;
    letter-spacing: 0;
  }

  .page-shell--home .hero__sub {
    max-width: 34ch;
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.4;
  }

  .page-shell--home .hero__actions {
    display: grid;
    width: 100%;
    max-width: none;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .page-shell--home .hero__btn {
    width: 100%;
    max-width: none;
    min-height: 52px;
    height: 52px;
    padding-inline: 20px;
    border-radius: 8px;
    box-sizing: border-box;
    letter-spacing: 0;
  }

  .page-shell--home .hero__btn--ghost {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(12, 18, 13, 0.18);
    color: rgba(255, 255, 255, 0.82);
  }

  .hero__scroll-hint {
    display: none;
  }

  .section-head--catalog h2,
  .section-head--catalog p {
    display: none;
  }

  .catalog-section .hero__panel-btn,
  .contact-options__link {
    min-height: 48px;
  }

  .mobile-catalog-heading {
    display: flex;
    min-height: 48px;
    margin-top: 4px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 22px;
    line-height: 1.2;
  }

  .mobile-catalog-heading h2 {
    margin: 0;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0;
  }

  .mobile-catalog-heading__count {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
  }

  .mobile-catalog-rail {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(82vw, 330px);
    gap: 16px;
    margin-inline: calc(var(--mobile-gutter) * -1);
    padding: 8px var(--mobile-gutter) 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: var(--mobile-gutter);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .mobile-catalog-rail::-webkit-scrollbar {
    display: none;
  }

  .mobile-catalog-rail .product-card {
    min-width: 0;
    scroll-snap-align: start;
  }

  .mobile-catalog-rail .product-card__media {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
  }

  .mobile-catalog-rail .product-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .site-header .container {
    width: calc(100% - var(--mobile-gutter) * 2);
    max-width: none;
  }

  .site-header__inner {
    min-height: calc(var(--mobile-header-h) + env(safe-area-inset-top, 0px));
    padding-block: env(safe-area-inset-top, 0px) 0;
  }

  .site-header .brand {
    gap: 8px;
    font-size: 11px;
    line-height: 1.25;
    letter-spacing: 0;
  }

  .site-header .brand__mark {
    height: 32px;
  }

  .site-header .header-call,
  .site-header .header-actions__cart,
  .site-header .header-actions__cart-btn,
  .site-header .header-actions__callback,
  .site-header .lang-switch,
  .site-header .contact-menu {
    display: none !important;
  }

  .site-header .header-actions {
    gap: 0;
  }

  .site-header .burger {
    display: inline-flex;
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    border-radius: 8px;
  }

  .reviews-carousel__btn {
    min-width: 48px;
    min-height: 48px;
  }

  .reviews-carousel__dots {
    flex-wrap: nowrap;
    max-width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .reviews-carousel__dots::-webkit-scrollbar {
    display: none;
  }

  .reviews-carousel__dot {
    position: relative;
    display: inline-grid;
    flex: 0 0 48px;
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    place-items: center;
    background: transparent;
  }

  .reviews-carousel__dot::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 1px;
    background: rgba(var(--rgb-dark), 0.2);
    transition: background var(--dur) var(--ease), width 0.25s var(--ease),
      border-radius 0.2s var(--ease);
  }

  .reviews-carousel__dot[aria-current="true"] {
    width: 48px;
    background: transparent;
  }

  .reviews-carousel__dot[aria-current="true"]::before {
    width: 32px;
    border-radius: 2px;
    background: var(--accent);
  }

  .cookie-notice__btn {
    min-height: 48px;
  }

  .cookie-notice {
    right: 8px;
    bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px) + 8px);
    left: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    width: auto;
    max-height: 68px;
    padding: 8px;
    align-items: center;
    overflow: hidden;
    border-radius: 8px;
  }

  body.has-mobile-sticky-cta .cookie-notice {
    bottom: calc(
      var(--mobile-nav-h) + 80px + env(safe-area-inset-bottom, 0px) + 8px
    );
  }

  body.has-cookie-notice.page-shell--home .hero__body {
    padding-bottom: calc(
      var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px) + 110px
    );
  }

  body.has-cookie-notice .cms-product-public {
    padding-bottom: calc(
      var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px) + 86px
    );
  }

  .cookie-notice__text {
    display: -webkit-box;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .cookie-notice__actions {
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }

  .cookie-notice__link {
    font-size: 11px;
    white-space: nowrap;
  }

  .cookie-notice__btn {
    padding-inline: 12px;
    font-size: 12px;
  }

  .mobile-app-nav {
    position: fixed;
    z-index: 320;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px));
    padding: 8px max(4px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px)
      max(4px, env(safe-area-inset-left, 0px));
    background: #fff;
    border-top: 1px solid rgba(40, 46, 37, 0.12);
    box-shadow: 0 -6px 20px rgba(40, 46, 37, 0.1);
  }

  .mobile-app-nav__item {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 52px;
    margin: 0;
    padding: 4px 2px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted, #687272);
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0;
    text-align: center;
    cursor: pointer;
  }

  .mobile-app-nav__item svg {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    stroke-width: 1.9;
  }

  .mobile-app-nav__item[aria-current="page"],
  .mobile-app-nav__item[aria-expanded="true"] {
    color: var(--accent);
  }

  .mobile-app-nav__count {
    position: absolute;
    top: 2px;
    left: calc(50% + 7px);
    display: inline-flex;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
  }

  body.has-mobile-overlay .mobile-app-nav {
    display: none;
    pointer-events: none;
  }

  .mobile-drawer {
    display: block !important;
    visibility: visible !important;
    z-index: 340;
    width: 100%;
    max-width: none;
  }

  .mobile-drawer__backdrop {
    display: none !important;
  }

  .mobile-drawer__panel {
    inset: 0;
    display: block;
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    padding: calc(12px + env(safe-area-inset-top, 0px)) var(--mobile-gutter)
      calc(var(--mobile-nav-h) + 16px + env(safe-area-inset-bottom, 0px));
    background: var(--dark);
    box-shadow: none;
    opacity: 0;
    transform: translateY(16px);
    transition: transform var(--dur, 260ms) var(--ease, ease), opacity var(--dur, 260ms) var(--ease, ease),
      visibility 0s linear var(--dur, 260ms);
  }

  .mobile-drawer:not(.is-open) .mobile-drawer__panel {
    display: block;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .mobile-drawer.is-open .mobile-drawer__panel {
    display: block;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
  }

  .mobile-drawer__top {
    min-height: 52px;
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  .mobile-drawer__brand.brand {
    color: #fff;
    font-size: 12px;
    line-height: 1.25;
    letter-spacing: 0;
  }

  .mobile-drawer__brand .brand__mark {
    height: 36px;
  }

  .mobile-drawer__close {
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    border-radius: 8px;
  }

  .mobile-nav {
    display: grid;
    gap: 0;
  }

  .mobile-nav a {
    display: flex;
    min-height: 52px;
    padding: 10px 0;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
  }

  .mobile-drawer__block {
    margin-top: 20px;
    padding-top: 20px;
  }

  .mobile-drawer__contacts {
    gap: 8px;
  }

  .mobile-drawer__contact {
    display: flex;
    min-height: 48px;
    padding: 10px 12px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-sizing: border-box;
  }
}

@media (min-width: 768px) and (max-width: 900px) {
  .product-hero__inner {
    grid-template-areas: "body" "badges" "image";
  }

  .product-hero__body {
    grid-area: body;
  }

  .product-hero__badges {
    grid-area: badges;
  }

  .cms-product-public .cms-product-public__feature-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-hero__image {
    grid-area: image;
  }
}

@media (min-width: 901px) {
  .product-hero__inner {
    grid-template-rows: auto auto auto;
    row-gap: 0;
  }

  .product-hero__body {
    grid-row: 1;
    grid-column: 1;
    align-self: end;
  }

  .product-hero__image {
    grid-row: 1 / 4;
    grid-column: 2;
  }

  .product-hero__actions {
    grid-row: 2;
    grid-column: 1;
  }

  .product-hero__badges {
    grid-row: 3;
    grid-column: 1;
    align-self: start;
  }
}

@media (max-width: 480px) {
  .catalog-section:not(.catalog-section--featured) .cards-grid:not(.mobile-catalog-rail) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 340px) {
  .mobile-catalog-rail {
    grid-auto-columns: calc(100vw - 40px);
  }

  .catalog-section:not(.catalog-section--featured) .cards-grid:not(.mobile-catalog-rail) {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .mobile-app-nav,
  .mobile-sticky-cta {
    display: none;
  }

  .page-shell--home .hero__body {
    padding-inline: 40px;
  }

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

@media (min-width: 768px) {
  .mobile-app-nav,
  .mobile-sticky-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-drawer__panel,
  .mobile-app-nav,
  .mobile-sticky-cta {
    scroll-behavior: auto;
    transition: none !important;
  }
}
