/* Loaded only for phones. Keep the visible controls compact and their touch targets roomy. */
:root {
  --phone-hit: 44px;
  --phone-quantity-height: 32px;
  --phone-logo: clamp(100px, 30vw, 130px);
  --phone-footer-logo: clamp(72px, 20vw, 96px);
}

.site-header .brand-logo { width: var(--phone-logo); }
.site-header .header-actions > .account-card { display: none; }
.site-header .menu-toggle { gap: 4px; }
.site-header .menu-toggle span + span { margin: 0; }
.site-header .menu-toggle::before {
  content: "";
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
}

html:has(.phone-menu[open]) { overflow: hidden; }
.phone-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(86vw, 344px);
  max-width: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: max(10px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-left: 1px solid #32333b;
  color: var(--ink);
  background: linear-gradient(150deg, #202128, #16171d 46%);
  box-shadow: -14px 0 46px #06070b45;
}
.phone-menu::backdrop { background: rgb(5 6 9 / .65); }
.phone-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.phone-menu-head h2 { font-size: 22px; line-height: 1.15; letter-spacing: -.04em; }
.phone-menu-close {
  display: grid;
  place-items: center;
  width: var(--phone-hit);
  height: var(--phone-hit);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: #ffffff07;
  cursor: pointer;
}
.phone-menu-close::before, .phone-menu-close::after {
  content: ""; grid-area: 1 / 1; width: 16px; height: 1.5px;
  border-radius: 2px; background: currentColor; transform: rotate(45deg);
}
.phone-menu-close::after { transform: rotate(-45deg); }
.phone-menu .nav {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}
.phone-menu .nav a:not(.btn), .phone-menu .nav .nav-login {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin: 0;
  padding: 10px 13px;
  border: 0;
  border-radius: 13px;
  font: 550 15px/1.3 var(--font);
  color: var(--muted);
  background: transparent;
}
.phone-menu .nav a[aria-current="page"] { color: var(--ink); background: #ffffff0d; }
.phone-menu .nav .nav-icon { display: block; width: 19px; height: 19px; color: inherit; }
.phone-menu .nav .nav-login { justify-content: center; margin-top: 14px; color: #16171a; background: #f2efea; }
.phone-menu .nav-login::after { display: none; }
.phone-menu .account-card {
  display: flex;
  width: 100%;
  align-items: stretch;
  margin-bottom: 14px;
}
.phone-menu .account-profile {
  flex: 1; min-width: 0; max-width: none; height: 56px; padding: 5px 14px; gap: 4px;
}
.phone-menu .account-card .cart-button {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: auto; height: auto; padding: 0 19px 0 14px; border: 0; border-radius: 0 13px 13px 0;
  background: transparent; box-shadow: none; color: var(--ink);
}
.phone-menu .cart-button::after { content: "Корзина"; font-size: 12px; font-weight: 550; }
.phone-menu .cart-count { right: 5px; top: 3px; }
.phone-menu [hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) {
  .phone-menu {
    transform: translateX(100%);
    transition: transform .22s ease-out, display .22s allow-discrete, overlay .22s allow-discrete;
  }
  .phone-menu[open] { transform: translateX(0); }
  @starting-style { .phone-menu[open] { transform: translateX(100%); } }
}

.store-footer .store-footer-main, .store-footer .store-footer-shop { flex-wrap: nowrap; }
.store-footer .store-footer-main { gap: 6px; }
.store-footer .brand { flex: none; }
.store-footer .brand-logo { width: var(--phone-footer-logo); height: auto; }
.store-footer .store-footer-shop { gap: clamp(6px, 2vw, 16px); font-size: clamp(11px, 3vw, 13px); white-space: nowrap; }
.store-footer-docs summary { gap: 4px; }
.store-footer-docs summary::after { width: 5px; height: 5px; }

.catalog-toolbar {
  display: grid; grid-template-columns: minmax(0,1fr); align-items: center; gap: 0;
}
.catalog-toolbar .filter-rail, .catalog-toolbar .catalog-count { grid-area: 1 / 1; }
.catalog-toolbar .filter-rail, .filter-toggle:not([hidden]), .filter-toggle:not([hidden]) + .tabs { width: 100%; }
.filter-toggle:not([hidden]) { position: relative; padding-inline-end: 110px; min-height: 46px; border-radius: 14px; }
.filter-toggle .filter-chevron { position: absolute; right: 12px; }
.catalog-toolbar .catalog-count {
  position: relative; z-index: 4; justify-self: end; margin-right: 37px; pointer-events: none;
  color: var(--muted); font-size: 12px;
}
.filter-rail .tab span { display: inline; margin-inline: auto 0; color: var(--muted); }
.filter-rail .tab { gap: 9px; }
.catalog-page-section .service-card .brand-tile {
  height: auto; aspect-ratio: 1.36; flex: none;
}
.catalog-page-section .brand-tile img { width: clamp(38px, 11.5vw, 58px); }
.catalog-page-section .brand-tile::after { top: calc(50% + clamp(24px, 7vw, 35px)); }
.catalog-page-section .service-body { padding: 10px clamp(9px, 2.6vw, 14px) 12px; }
.catalog-page-section .service-bottom { padding-top: 10px; }

#productPage .dialog-head { min-height: 0; padding: 16px 18px; gap: 12px; }
#productPage .dialog-kicker { margin-bottom: 5px; }
#productPage .dialog-tile, #productPage .dialog-tile img { width: 54px; height: 54px; }
#productPage .product-overview { margin-top: 5px; }
#productPage .variant-filters { gap: 6px; padding: 0; border: 0; background: none; }
#productPage .variant-filters .tab {
  min-height: var(--phone-hit); padding: 0 12px; border: 1px solid var(--line-soft);
  border-radius: 999px; background: var(--glass); color: var(--muted);
}
#productPage .variant-filters .tab.is-active { background: #f0ede7; border-color: #f0ede7; color: #0d0e11; }
#productPage .dialog-foot { flex-flow: row wrap; align-items: center; gap: 6px 8px; padding: 7px 9px; }
#productPage .purchase-line { flex: 1 1 82px; flex-direction: column; align-items: flex-start; gap: 1px; }
#productPage .purchase-line span { font-size: 12px; line-height: 1.25; }
#productPage .purchase-actions { flex: none; margin-left: auto; gap: 5px; }
#productPage .purchase-actions .btn {
  min-height: var(--phone-hit); height: var(--phone-hit); flex: none; padding: 0 11px; gap: 5px; font-size: 12px;
}
#productPage .variant-quantity { gap: 8px; }
.quantity, .cart-qty {
  position: relative; isolation: isolate; gap: 0; padding: 0; border: 0;
  background: none; box-shadow: none;
}
.quantity::before, .cart-qty::before {
  content: ""; position: absolute; z-index: -1; inset-inline: 3px; top: 50%; transform: translateY(-50%);
  height: var(--phone-quantity-height); border: 1px solid #535761; border-radius: 999px; pointer-events: none;
  background: linear-gradient(150deg,rgb(102 105 115 / .45),rgb(67 70 77 / .45));
}
.quantity button, .cart-qty button {
  width: var(--phone-hit); min-width: var(--phone-hit); height: var(--phone-hit); min-height: var(--phone-hit); font-size: 16px;
}
.quantity span, .cart-qty span { min-width: 12px; font-size: 13px; }
@media (hover:none) {
  .quantity button:hover:not(:disabled), .cart-qty button:hover:not(:disabled) { background: transparent; }
}

.steps-row .step-panel, .steps-row .step-panel:is(:hover,:active,.is-active) {
  filter: none; background: transparent; transition: none; -webkit-tap-highlight-color: transparent;
}
.steps-row .step-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(125deg,rgb(var(--step-color) / .085),transparent 80%); opacity: 0;
}
.steps-row .step-panel.is-active::before { opacity: 1; }
.steps-row .step-index, .steps-row .step-content { transition: none; }
.step-panel.is-active .step-content {
  position: relative; grid-template-columns: minmax(0, 1fr) clamp(75px, 22vw, 106px); gap: 8px;
  margin-top: 8px; padding-left: 0;
}
.step-panel.is-active .step-visual { aspect-ratio: 1.45; }
.step-visual-pay .sbp-mark { width: 64%; }
.step-visual-on .on-icon { animation: none; }
