@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #f4f7fc;
  --surface: #ffffff;
  --surface-soft: #f2f6ff;
  --line: #dbe3f1;
  --text: #171f2e;
  --muted: #67758e;
  --accent: #2f6fed;
  --accent-strong: #225cd1;
  --accent-soft: #e7f0ff;
  --radius-xl: 1.1rem;
  --radius-lg: 0.9rem;
  --radius-md: 0.7rem;
  --radius-sm: 0.55rem;
  --shadow-lg: 0 24px 56px rgba(26, 40, 74, 0.24);
  --shadow-sm: 0 10px 26px rgba(24, 41, 77, 0.1);
  --page-gap: 1rem;
  --control-height-mobile: 2.85rem;
  --control-height-desktop: 2.4rem;
  --header-height-mobile: 4.6rem;
  --header-height-desktop: 4.2rem;
  --mobile-bottom-nav-height: 4.65rem;
  --gallery-thumb-size: 4.25rem;
  --gallery-strip-height: 5.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.45;
  background:
    radial-gradient(circle at 100% 0%, #eaf2ff 0%, transparent 38%),
    radial-gradient(circle at 0% 0%, #f5f8ff 0%, transparent 34%),
    var(--bg);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

input,
button {
  font: inherit;
}

.container {
  width: min(100% - calc(var(--page-gap) * 2), 92rem);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
}

.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 120;
  border-bottom: 1px solid rgba(219, 227, 241, 0.92);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px -22px rgba(31, 56, 108, 0.5);
}

.app-header {
  position: relative;
}

.app-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: var(--header-height-mobile);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.logo__image {
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 0.55rem;
  object-fit: cover;
  border: 1px solid #d8e3f5;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(29, 49, 92, 0.12);
  flex: 0 0 auto;
}

.worktime {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  margin-left: auto;
  min-width: 0;
}

.worktime__status {
  margin: 0;
  padding: 0.14rem 0.46rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.worktime__status--open {
  color: #1d8d45;
  background: #e9f9ef;
}

.worktime__status--closed {
  color: #ffffff;
  background: #d94a4a;
}

.worktime__status--dayoff {
  color: #ffffff;
  background: #e5942c;
}

.worktime__details {
  position: static;
}

.worktime__details > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  color: #45608f;
  font-size: 0.63rem;
  font-weight: 600;
}

.worktime__details > summary::-webkit-details-marker {
  display: none;
}

.worktime__details[open] > summary {
  color: #2f6fed;
}

.worktime__panel {
  position: absolute;
  top: calc(100% + 0.36rem);
  right: 0;
  z-index: 180;
  min-width: 13.8rem;
  padding: 0.36rem 0.5rem 0.5rem;
  border: 1px solid #d5e0f2;
  border-radius: 0.72rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 24px rgba(28, 45, 80, 0.18);
}

.worktime__close {
  margin: 0 0 0.22rem auto;
  width: 1.3rem;
  height: 1.3rem;
  padding: 0;
  border: 1px solid #d0dcef;
  border-radius: 999px;
  background: #f7faff;
  color: #556783;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
}

.worktime__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.22rem;
}

.worktime__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  color: #385072;
  font-size: 0.72rem;
  padding: 0.18rem 0.34rem;
  border-radius: 0.45rem;
}

.worktime__list li.is-current {
  background: #edf4ff;
  color: #264a87;
}

.worktime__list li strong {
  color: #1f3255;
  font-weight: 700;
}

.worktime__list li.is-current strong {
  color: #1f4f9e;
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 2.7rem;
  min-width: 2.7rem;
  height: 2.7rem;
  min-height: 2.7rem;
  padding: 0;
  border: 1px solid #ccd8ee;
  border-radius: 0.85rem;
  background: #f7faff;
  color: transparent;
  font-size: 0;
  line-height: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.16s ease;
}

.header-action:hover {
  border-color: #b9c9e8;
  background: #eef4ff;
}

.header-action:active {
  transform: scale(0.98);
}

.header-action::before {
  content: "";
  width: 1.2rem;
  height: 1.2rem;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M3 4h1.5l1.35 9.4A2 2 0 0 0 7.83 15H17a2 2 0 0 0 1.98-1.72L20 7H6.1' stroke='%235e6e86' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='9' cy='19' r='1.35' fill='%235e6e86'/%3E%3Ccircle cx='17' cy='19' r='1.35' fill='%235e6e86'/%3E%3C/svg%3E");
}

.header-action::after {
  content: attr(data-count);
  position: absolute;
  top: -0.25rem;
  right: -0.22rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding-inline: 0.24rem;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #db2f45;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 5px 12px rgba(95, 9, 23, 0.25);
  transform: scale(0.75);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.header-action.has-count::after {
  transform: scale(1);
  opacity: 1;
}

.app-main {
  padding-top: 0.9rem;
  padding-bottom: calc(2.4rem + var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom));
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 210;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.28rem;
  border-top: 1px solid rgba(210, 220, 237, 0.95);
  border-radius: 1rem 1rem 0 0;
  padding: 0.38rem 0.45rem calc(0.36rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 -10px 26px rgba(20, 35, 66, 0.14);
}

.bottom-nav__item {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.14rem;
  min-height: calc(var(--mobile-bottom-nav-height) - 0.72rem);
  border: 0;
  border-radius: 0.78rem;
  background: transparent;
  color: #6e7f98;
  padding: 0.3rem 0.1rem;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.bottom-nav__item:active {
  transform: scale(0.98);
}

.bottom-nav__item--active {
  background: #edf4ff;
  color: var(--accent);
}

.bottom-nav__icon {
  position: relative;
  width: 1.16rem;
  height: 1.16rem;
  border-radius: 0.28rem;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.bottom-nav__icon--catalog {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%236e7f98' stroke-width='1.8' d='M3.5 6.8h17M3.5 12h17M3.5 17.2h17'/%3E%3C/svg%3E");
}

.bottom-nav__item--active .bottom-nav__icon--catalog {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%232f6fed' stroke-width='1.9' d='M3.5 6.8h17M3.5 12h17M3.5 17.2h17'/%3E%3C/svg%3E");
}

.bottom-nav__icon--cart {
  background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22%3E%3Cpath d=%22M3.4 5h1.7l1.2 8.3a1.8 1.8 0 0 0 1.8 1.5h8.3a1.8 1.8 0 0 0 1.8-1.5l.9-5.8H6.1%22 stroke=%22%236e7f98%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%229.2%22 cy=%2218.5%22 r=%221.25%22 fill=%22%236e7f98%22/%3E%3Ccircle cx=%2216.5%22 cy=%2218.5%22 r=%221.25%22 fill=%22%236e7f98%22/%3E%3C/svg%3E');
}

.bottom-nav__item--active .bottom-nav__icon--cart {
  background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22%3E%3Cpath d=%22M3.4 5h1.7l1.2 8.3a1.8 1.8 0 0 0 1.8 1.5h8.3a1.8 1.8 0 0 0 1.8-1.5l.9-5.8H6.1%22 stroke=%22%232f6fed%22 stroke-width=%221.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%229.2%22 cy=%2218.5%22 r=%221.25%22 fill=%22%232f6fed%22/%3E%3Ccircle cx=%2216.5%22 cy=%2218.5%22 r=%221.25%22 fill=%22%232f6fed%22/%3E%3C/svg%3E');
}

.bottom-nav__icon--contact {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%236e7f98' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M5 7.2A2.2 2.2 0 0 1 7.2 5h9.6A2.2 2.2 0 0 1 19 7.2v9.6a2.2 2.2 0 0 1-2.2 2.2H7.2A2.2 2.2 0 0 1 5 16.8V7.2Zm1.5.4 5.5 4.5 5.5-4.5'/%3E%3C/svg%3E");
}

.bottom-nav__item--active .bottom-nav__icon--contact {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%232f6fed' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round' d='M5 7.2A2.2 2.2 0 0 1 7.2 5h9.6A2.2 2.2 0 0 1 19 7.2v9.6a2.2 2.2 0 0 1-2.2 2.2H7.2A2.2 2.2 0 0 1 5 16.8V7.2Zm1.5.4 5.5 4.5 5.5-4.5'/%3E%3C/svg%3E");
}

.bottom-nav__icon--order {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%236e7f98' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M7 4.8h10A2.2 2.2 0 0 1 19.2 7v10A2.2 2.2 0 0 1 17 19.2H7A2.2 2.2 0 0 1 4.8 17V7A2.2 2.2 0 0 1 7 4.8Zm2.2 4.2h5.6M9.2 12h5.6M9.2 15h3.2'/%3E%3C/svg%3E");
}

.bottom-nav__item--active .bottom-nav__icon--order {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%232f6fed' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round' d='M7 4.8h10A2.2 2.2 0 0 1 19.2 7v10A2.2 2.2 0 0 1 17 19.2H7A2.2 2.2 0 0 1 4.8 17V7A2.2 2.2 0 0 1 7 4.8Zm2.2 4.2h5.6M9.2 12h5.6M9.2 15h3.2'/%3E%3C/svg%3E");
}

.bottom-nav__icon--about {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8' stroke='%236e7f98' stroke-width='1.8'/%3E%3Cpath stroke='%236e7f98' stroke-width='1.8' stroke-linecap='round' d='M12 10.3v5.2M12 7.7h.01'/%3E%3C/svg%3E");
}

.bottom-nav__item--active .bottom-nav__icon--about {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8' stroke='%232f6fed' stroke-width='1.9'/%3E%3Cpath stroke='%232f6fed' stroke-width='1.9' stroke-linecap='round' d='M12 10.3v5.2M12 7.7h.01'/%3E%3C/svg%3E");
}

.bottom-nav__text {
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
}

.bottom-nav__count {
  position: absolute;
  top: -0.36rem;
  right: -0.46rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.24rem;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #db2f45;
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
}

.search-panel {
  margin: 0;
  padding: 0.12rem 0 0.8rem;
  background: transparent;
}

.search-field {
  position: relative;
}

.search-field::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 6.34rem;
  z-index: 2;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%);
  opacity: 0.56;
  pointer-events: none;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%2367758e' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m21 21-4.35-4.35m1.6-5.15a6.75 6.75 0 1 1-13.5 0 6.75 6.75 0 0 1 13.5 0Z'/%3E%3C/svg%3E");
}

.search-field input {
  width: 100%;
  min-height: 3.45rem;
  border: 1px solid #ccd8ee;
  border-radius: 0.95rem;
  padding: 0 6rem 0 7.35rem;
  background: var(--surface);
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 500;
  box-shadow: 0 6px 18px rgba(27, 49, 94, 0.08);
}

.search-field input::placeholder {
  color: #8996ab;
}

.search-field input:focus {
  outline: none;
  border-color: #89a8e6;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.16);
}

.search-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.45rem;
  max-width: 6rem;
  min-height: 2.15rem;
  border: 1px solid #d2ddef;
  border-radius: 0.65rem;
  background: #f7faff;
  padding: 0 0.55rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.search-button--left {
  left: 0.35rem;
  max-width: 5.55rem;
}

.search-button--right {
  right: 0.35rem;
  min-width: 5rem;
  max-width: 6rem;
  overflow: visible;
}

.search-button--active {
  border-color: #2f6fed;
  background: #2f6fed;
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(47, 111, 237, 0.28);
}

.search-button--right.search-button--active {
  padding-right: 0.55rem;
  font-weight: 600;
}

.search-button--right.search-button--active[data-filters-count]:not([data-filters-count="0"])::after {
  content: attr(data-filters-count);
  position: absolute;
  top: -0.38rem;
  right: -0.42rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.24rem;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #db2f45;
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(24, 40, 76, 0.18);
}

.search-button:hover {
  border-color: #bdcdea;
  background: #eff5ff;
}

.search-button:active {
  transform: translateY(-50%) scale(0.98);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.catalog-empty {
  margin-top: 1.05rem;
  border: 1px solid #dce5f3;
  border-radius: var(--radius-lg);
  background: #f8fbff;
  padding: 1rem 0.9rem;
  text-align: center;
  color: #5d6e86;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
}

.catalog-grid:not(.is-loading):not(.is-ready) > .product-card {
  display: none;
}

.catalog-grid.is-loading > .product-card:not(.product-card--skeleton) {
  display: none;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #dce5f3;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(22, 37, 72, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(22, 37, 72, 0.12);
}

.product-card__media-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #edf3ff;
}

.product-card__badges {
  position: absolute;
  top: 0.42rem;
  left: 0.42rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  max-width: calc(100% - 0.84rem);
  pointer-events: none;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.3rem;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  padding: 0.1rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(10, 23, 17, 0.12);
}

.product-badge--modal {
  min-height: 1.5rem;
  font-size: 0.72rem;
}

.product-badge--hit {
  border-color: #d99f3b;
  background: #e2a23a;
  color: #ffffff;
}

.product-badge--new {
  border-color: #2e87ef;
  background: #2f8ff7;
  color: #ffffff;
}

.product-badge--sale {
  border-color: #bd4752;
  background: #c94a56;
  color: #ffffff;
}

.product-badge--neutral {
  display: none;
}

.product-card__sale-badge {
  position: absolute;
  right: 0.42rem;
  bottom: 0.42rem;
  z-index: 3;
}

.product-card__image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.62rem;
  padding: 0.82rem;
}

.product-card__title {
  display: -webkit-box;
  min-height: 2.45rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
}

.product-card__type {
  margin: auto 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__size {
  margin: 0.12rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__type[hidden] + .product-card__size {
  margin-top: auto;
}

.product-card__price-row {
  display: flex;
  align-items: flex-end;
  gap: 0.46rem;
  margin-top: 0.38rem;
  min-height: 1.55rem;
}

.product-card__price {
  order: 2;
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #131b28;
}

.product-card__old-price {
  order: 1;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
  color: #8d97aa;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.product-card__button {
  margin-top: 0.36rem;
}

.product-card--skeleton {
  pointer-events: none;
}

.skeleton-block,
.skeleton-line,
.skeleton-button {
  background: linear-gradient(90deg, #e8eee7 25%, #f3f7f2 37%, #e8eee7 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.skeleton-line {
  height: 0.72rem;
  border-radius: 999px;
}

.skeleton-line--title {
  width: 100%;
}

.skeleton-line--short {
  width: 72%;
}

.skeleton-line--price {
  width: 3.8rem;
  height: 0.95rem;
}

.skeleton-line--old-price {
  width: 2.8rem;
  height: 0.65rem;
}

.skeleton-button {
  margin-top: auto;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-height-mobile);
  border: 1px solid transparent;
  border-radius: 0.68rem;
  padding: 0 0.95rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.16s ease;
}

.button--primary {
  color: #ffffff;
  background: var(--accent);
}

.button--primary:hover {
  background: var(--accent-strong);
  box-shadow: 0 8px 18px rgba(47, 111, 237, 0.24);
}

.button--ghost {
  border-color: #cfdbee;
  color: var(--text);
  background: #f8fbff;
}

.button--in-cart {
  border-color: #9fbae8;
  color: #2154b8;
  background: var(--accent-soft);
}

.button--primary.button--in-cart {
  border-color: #9fbae8;
  color: #2154b8;
  background: var(--accent-soft);
}

.button--primary.button--in-cart:hover {
  background: #dce9ff;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:active:not(:disabled) {
  transform: scale(0.98);
}

.button--full {
  width: 100%;
}

.button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal:target {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal.modal--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 32, 52, 0.52);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 35rem);
  max-height: 92svh;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 24px 56px rgba(22, 37, 72, 0.26);
  transform: translateY(1rem) scale(0.985);
  transition: transform 0.24s ease;
  display: flex;
  flex-direction: column;
}

.modal:target .modal__dialog {
  transform: translateY(0) scale(1);
}

.modal.modal--open .modal__dialog {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: sticky;
  top: 0.7rem;
  z-index: 5;
  display: grid;
  place-items: center;
  margin: 0.7rem 0.7rem -2.7rem auto;
  width: 2rem;
  height: 2rem;
  border: 1px solid #cfdaee;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #5f6d83;
  font-size: 1.24rem;
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.16s ease;
}

.modal__close:hover {
  border-color: #bdcdea;
  background: #f2f7ff;
}

.modal__close:active {
  transform: scale(0.96);
}

.modal__title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
}

.scroll-top {
  position: fixed;
  right: 0.82rem;
  bottom: calc(var(--mobile-bottom-nav-height) + 0.8rem + env(safe-area-inset-bottom));
  z-index: 190;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #c8d6ef;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(34, 56, 102, 0.16);
  transition: transform 0.16s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.scroll-top:hover {
  border-color: #b7caeb;
  background: #f3f8ff;
}

.scroll-top:active {
  transform: scale(0.95);
}

.modal__dialog--product {
  width: min(100%, 33rem);
}

.product-modal {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.product-modal__hero {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef2ec;
  cursor: zoom-in;
}

.product-modal__hero-wrap {
  position: relative;
}

.product-modal__hero.is-unavailable {
  filter: grayscale(100%);
}

.product-modal__hero-unavailable {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.55rem;
  justify-items: center;
  background: rgba(62, 73, 92, 0.55);
  padding: 0.9rem;
}

.product-modal__hero-unavailable[hidden] {
  display: none !important;
}

.product-modal__hero-unavailable-title {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
}

.product-modal__notify-button {
  min-height: 2rem;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.92);
  color: #2b3f67;
  border-color: rgba(255, 255, 255, 0.75);
}

.product-modal__gallery {
  display: flex;
  flex: 0 0 var(--gallery-strip-height);
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.5rem 0.9rem;
  min-height: var(--gallery-strip-height);
  max-height: var(--gallery-strip-height);
  scrollbar-gutter: stable both-edges;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  border-bottom: 1px solid rgba(219, 227, 241, 0.8);
}

.product-modal__thumb {
  position: relative;
  flex: 0 0 var(--gallery-thumb-size);
  width: var(--gallery-thumb-size);
  height: var(--gallery-thumb-size);
  padding: 0;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-modal__thumb img {
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  object-fit: cover;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.product-modal__thumb:disabled {
  cursor: not-allowed;
}

.product-modal__thumb:disabled img {
  filter: grayscale(100%);
  opacity: 0.65;
}

.product-modal__thumb.is-active img {
  border-color: #2f6fed;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.34), 0 10px 18px rgba(47, 111, 237, 0.22);
  transform: translateY(-1px) scale(1.02);
}

.product-modal__thumb.is-active {
  box-shadow: 0 0 0 2px rgba(47, 111, 237, 0.16);
}

.product-modal__thumb.is-active::after {
  content: "Выбрано";
  position: absolute;
  left: 50%;
  bottom: 0.28rem;
  transform: translateX(-50%);
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  background: rgba(47, 111, 237, 0.92);
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  pointer-events: none;
  z-index: 3;
}

.product-modal__thumb.is-unavailable img {
  filter: grayscale(100%);
}

.product-modal__thumb-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.28rem;
  background: rgba(64, 73, 90, 0.58);
  padding: 0.32rem;
}

.product-modal__thumb-overlay-title {
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
}

.product-modal__gallery::-webkit-scrollbar {
  height: 0.38rem;
}

.product-modal__gallery::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c8d3cc;
}

.product-modal__gallery::-webkit-scrollbar-track {
  background: transparent;
}

.product-modal__content {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 0.85rem 1rem 1.15rem;
  overflow-y: auto;
}

.product-modal__name {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
}

.product-modal__price-row {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
}

.product-modal__price-row .product-card__price {
  font-size: 1.3rem;
}

.product-modal__price-row .product-card__old-price {
  font-size: 0.88rem;
}

.product-modal__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.product-modal__description {
  margin: 0;
  border: 1px solid #dce5f3;
  border-radius: var(--radius-md);
  background: #f8fbff;
  padding: 0.72rem 0.78rem;
  color: #44506a;
  font-size: 0.87rem;
  line-height: 1.45;
  white-space: pre-line;
}

.product-modal__type {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.product-modal__size {
  margin: -0.4rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.product-modal__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0.5rem;
}

.product-modal__actions .button--full {
  width: 100%;
}

.product-modal__copy-link {
  min-height: var(--control-height-mobile);
  white-space: nowrap;
  font-size: 0.82rem;
}

.product-modal__copy-link.is-success {
  border-color: #9fbae8;
  background: var(--accent-soft);
  color: #2154b8;
}

.option-group {
  display: grid;
  gap: 0.45rem;
}

.option-group--required-missing .option-group__label {
  color: #b24141;
}

.option-group--required-missing .chip-row {
  border: 1px solid rgba(220, 100, 100, 0.35);
  border-radius: 0.68rem;
  padding: 0.4rem;
  background: rgba(220, 100, 100, 0.06);
}

.option-group__label {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  min-height: 2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f4f7ff;
  padding: 0 0.75rem;
  color: #5f6d84;
  font-size: 0.82rem;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: border-color 0.1s ease, background-color 0.1s ease, color 0.1s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

.chip:hover:not(:disabled):not(.chip--active) {
  border-color: #b8caea;
  background: #f2f7ff;
}

.chip--active {
  border-color: #2f6fed;
  background: #2f6fed;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(47, 111, 237, 0.3), 0 0 0 1px rgba(47, 111, 237, 0.2);
  transform: translateY(-1px) scale(1.02);
}

.chip--active:hover:not(:disabled),
.chip--active:focus-visible {
  border-color: #2f6fed;
  background: #2f6fed;
  color: #ffffff;
}

.chip:active:not(:disabled):not(.chip--active) {
  transform: translateY(0) scale(0.99);
}

.chip:focus-visible {
  outline: none;
  border-color: #8eace3;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.16);
}

.chip:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.modal__dialog--cart {
  width: min(100%, 36rem);
}

.cart-modal {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: 1.1rem;
  padding-bottom: calc(1.1rem + env(safe-area-inset-bottom));
  overflow-y: auto;
}

.cart-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
  order: 1;
}

.cart-empty-state {
  order: 1;
  display: grid;
  place-items: center;
  min-height: 8.5rem;
  border: 1px dashed #d4e0f4;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f7ff 100%);
  color: #5a6d8a;
  font-size: 1.02rem;
  font-weight: 600;
  text-align: center;
  padding: 0.9rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  gap: 0.68rem;
  align-items: start;
  border: 1px solid #dde6f4;
  border-radius: var(--radius-md);
  background: #fbfcff;
  padding: 0.74rem;
}

.cart-item__image {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--line);
  background: #eef2ec;
}

.cart-item__price {
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 700;
}

.cart-item__name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.cart-item__count {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.cart-item__qty-row {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.cart-item__qty-btn {
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: #ffffff;
  color: #4b5970;
  font-size: 0.95rem;
  line-height: 1;
}

.cart-item__qty-value {
  min-width: 3.1rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.cart-item__side {
  display: grid;
  justify-items: end;
  gap: 0.45rem;
}

.cart-item__remove {
  min-height: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 0 0.68rem;
  color: #5e6e86;
  font-size: 0.78rem;
  font-weight: 600;
}

@media (max-width: 26rem) {
  .cart-item {
    grid-template-columns: 3.5rem 1fr;
  }

  .cart-item__image {
    width: 3.5rem;
    height: 3.5rem;
  }

  .cart-item__side {
    grid-column: 2 / 3;
    justify-items: start;
    grid-auto-flow: column;
    align-items: center;
    justify-content: space-between;
  }
}

.checkout-form {
  display: grid;
  gap: 0.62rem;
  order: 2;
}

.checkout-form[hidden] {
  display: none !important;
}

.checkout-open-button[hidden],
.cart-list[hidden],
.cart-empty-state[hidden] {
  display: none !important;
}

.checkout-open-button {
  position: sticky;
  bottom: calc(0.55rem + env(safe-area-inset-bottom));
  z-index: 6;
  margin-top: 0.3rem;
  min-height: 3.05rem;
  border-radius: 0.9rem;
  box-shadow: 0 14px 30px rgba(31, 70, 151, 0.32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  order: 3;
  width: 100%;
}

.checkout-open-button.is-inactive,
.checkout-open-button:disabled {
  background: #aebfdf;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.95;
}

.checkout-open-button.is-loading {
  opacity: 0.98;
  cursor: wait;
}

.checkout-open-button.is-loading::after {
  content: "";
  width: 1rem;
  height: 1rem;
  margin-left: 0.52rem;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #ffffff;
  border-radius: 999px;
  animation: checkout-spin 0.72s linear infinite;
}

@keyframes checkout-spin {
  to {
    transform: rotate(360deg);
  }
}

.checkout-form > .button[type="submit"] {
  display: none;
}

.cart-status {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  display: none !important;
}

.cart-status--error {
  color: #a2362e;
}

.field {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.field input {
  min-height: 2.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 0 0.75rem;
  color: var(--text);
  font-size: 1rem;
}

.field--consent {
  gap: 0.42rem;
  margin-top: 0.15rem;
}

.field-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fbff;
  padding: 0.68rem 0.72rem;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.4;
}

.field-consent input[type="checkbox"] {
  margin-top: 0.12rem;
  width: 1rem;
  height: 1rem;
  accent-color: #2f6fed;
}

.field-consent a {
  color: #2f6fed;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.field select {
  min-height: 2.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 0 0.75rem;
  color: var(--text);
  font-size: 1rem;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: #8faee4;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.16);
}

.field--invalid input,
.field--invalid select {
  border-color: #dc6464;
  box-shadow: 0 0 0 3px rgba(220, 100, 100, 0.14);
}

.field--invalid .field-consent input[type="checkbox"] {
  outline: 2px solid rgba(220, 100, 100, 0.45);
  outline-offset: 1px;
}

.field--invalid .field-consent {
  border-color: rgba(220, 100, 100, 0.6);
}

.field__error {
  margin: 0.05rem 0 0;
  min-height: 0.95rem;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.3;
  color: #b24141;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.field__error.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.checkout-status {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.checkout-status--error {
  color: #a2362e;
}

.toast-stack {
  position: fixed;
  top: calc(0.72rem + env(safe-area-inset-top));
  left: 50%;
  z-index: 420;
  display: grid;
  gap: 0.45rem;
  width: min(calc(100% - 1rem), 24.5rem);
  transform: translateX(-50%);
  pointer-events: none;
}

.app-toast {
  border-radius: 0.8rem;
  padding: 0.68rem 0.84rem;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: 0 12px 24px rgba(15, 25, 46, 0.28);
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.app-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.app-toast--info {
  background: rgba(32, 44, 68, 0.95);
}

.app-toast--success {
  background: rgba(34, 128, 75, 0.95);
}

.app-toast--error {
  background: rgba(182, 57, 66, 0.95);
}

.cart-modal__empty-link {
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  text-decoration: underline;
}

.modal__dialog--empty {
  width: min(100%, 22rem);
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 12rem;
  padding: 1rem;
}

.empty-state p {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 600;
}

.success-state {
  display: grid;
  justify-items: center;
  gap: 0.78rem;
  min-height: 14rem;
  padding: 1.2rem 1rem 1.45rem;
  text-align: center;
}

.success-state__brand {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.9rem;
  padding: 0.18rem;
  background: linear-gradient(150deg, #f5f9ff 0%, #eaf2ff 100%);
  border: 1px solid #d8e4f7;
  box-shadow: 0 8px 20px rgba(30, 54, 104, 0.12);
}

.success-state__brand img {
  width: 100%;
  height: 100%;
  border-radius: 0.72rem;
  object-fit: contain;
  background: #ffffff;
}

.success-state__check {
  width: 3.55rem;
  height: 3.55rem;
}

.success-state__check svg {
  width: 100%;
  height: 100%;
  display: block;
}

.success-state__check-circle {
  fill: #ebf7ef;
  stroke: #40a760;
  stroke-width: 2;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
}

.success-state__check-mark {
  fill: none;
  stroke: #2f9a53;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
}

.modal:target .success-state__check-circle,
.modal.modal--open .success-state__check-circle {
  animation: success-circle-draw 0.45s ease forwards;
}

.modal:target .success-state__check-mark,
.modal.modal--open .success-state__check-mark {
  animation: success-mark-draw 0.34s ease 0.2s forwards;
}

.success-state__title {
  margin: 0;
  color: #1e355f;
  font-size: 1.12rem;
  font-weight: 700;
}

.success-state__text {
  margin: 0;
  color: #55667f;
  font-size: 0.91rem;
  line-height: 1.42;
}

@keyframes success-circle-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes success-mark-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.modal--fullscreen {
  padding: 0;
  align-items: stretch;
}

.modal__dialog--fullscreen {
  width: 100%;
  max-width: none;
  height: 100svh;
  max-height: 100svh;
  border-radius: 0;
  transform: translateY(100%);
}

.modal--fullscreen:target .modal__dialog--fullscreen {
  transform: translateY(0);
}

.filters-modal {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
}

.filters-modal__scroll {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1rem 6.6rem;
}

.filters-modal__title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.filter-group {
  display: grid;
  gap: 0.72rem;
  margin-bottom: 1.15rem;
}

.filter-group h3 {
  margin: 0;
  font-size: 0.95rem;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 0.52rem;
  font-size: 0.9rem;
}

.check-row input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
}

.size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.58rem;
}

.price-grid input {
  width: 100%;
  min-height: 2.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 0.68rem;
}

.price-grid input:focus {
  outline: none;
  border-color: #8faee4;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.14);
}

.filters-modal__actions {
  position: sticky;
  bottom: 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(to top, #ffffff 78%, rgba(255, 255, 255, 0));
  display: grid;
  gap: 0.6rem;
  padding: 0.9rem 1rem calc(0.95rem + env(safe-area-inset-bottom));
}

.modal__dialog--sheet {
  width: min(100%, 28rem);
}

.sort-modal {
  display: grid;
  gap: 0.72rem;
  padding: 1rem;
}

.info-modal {
  display: grid;
  gap: 0.72rem;
  padding: 1rem;
}

.info-modal__link {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fbff;
  padding: 0.72rem 0.76rem;
  color: #26344b;
  font-size: 0.9rem;
  font-weight: 500;
}

.info-modal__link--call {
  border-color: #b8cbed;
  background: #eef5ff;
  color: #1f3f7f;
  font-weight: 600;
  text-align: center;
}

.info-modal__link--with-icon {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.info-modal__icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 1.1rem;
}

.info-modal__chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.info-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  gap: 0.44rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbff;
  padding: 0.46rem 0.7rem;
  color: #22344f;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.info-chip img,
.info-chip__icon {
  width: 1rem;
  height: 1rem;
  display: block;
  flex: 0 0 1rem;
}

.info-modal__text {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fbff;
  padding: 0.76rem;
  color: #425068;
  font-size: 0.9rem;
  line-height: 1.45;
}

.about-info {
  gap: 0.78rem;
}

.about-policy-chips {
  flex-wrap: wrap;
  gap: 0.46rem;
}

.about-policy-chips .info-chip {
  flex: 1 1 calc(50% - 0.23rem);
  min-height: 2rem;
  line-height: 1.2;
  text-decoration: none;
}

.about-policy-chips .info-chip:hover {
  border-color: #9ebaf0;
  background: #eef5ff;
}

#about-modal .modal__dialog {
  overflow-y: auto;
}

.about-faq {
  display: grid;
  gap: 0.52rem;
}

.about-faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fbff;
  padding: 0.62rem 0.72rem;
}

.about-faq__title {
  margin: 0 0 0.25rem;
  color: #1f3f7f;
  font-size: 0.86rem;
  font-weight: 700;
}

.about-faq__text {
  margin: 0;
  color: #425068;
  font-size: 0.84rem;
  line-height: 1.38;
}

.about-map {
  width: 100%;
  min-height: 262px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f8fbff;
}

.about-map > ymaps,
.about-map > div {
  width: 100% !important;
  max-width: 100%;
}

.about-route-link {
  width: 100%;
  text-align: center;
}

.order-guide {
  gap: 0.9rem;
}

.order-guide__list {
  margin: 0;
  padding: 0.78rem 0.92rem 0.78rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fbff;
  color: #344560;
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  line-height: 1.42;
}

.order-guide__note {
  margin: 0;
  color: #4a5b78;
  font-size: 0.86rem;
  font-weight: 600;
}

.order-guide__chips {
  display: flex;
  gap: 0.5rem;
}

.order-guide__chips .info-chip {
  flex: 1 1 0;
  min-width: 0;
}

.order-guide__call {
  width: 100%;
  text-align: center;
}

.sort-option {
  display: flex;
  align-items: center;
  gap: 0.52rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.64rem 0.72rem;
  background: #fbfcff;
  font-size: 0.9rem;
}

.sort-option input {
  accent-color: var(--accent);
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 360;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.image-viewer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.image-viewer__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(9, 12, 11, 0.88);
}

.image-viewer__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  justify-items: center;
  width: min(100vw, 66rem);
  max-width: calc(100vw - 1rem);
  max-height: calc(100svh - 1rem);
  padding: 2.9rem 0.4rem 2.1rem;
}

.image-viewer__image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100svh - 5.8rem);
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.42);
  user-select: none;
  -webkit-user-drag: none;
  touch-action: pan-y;
}

.image-viewer__close,
.image-viewer__nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(20, 26, 23, 0.68);
  color: #ffffff;
  line-height: 1;
}

.image-viewer__close {
  top: 0.45rem;
  right: 0.45rem;
  width: 2.35rem;
  height: 2.35rem;
  font-size: 1.28rem;
}

.image-viewer__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.35rem;
  height: 2.35rem;
  font-size: 1.6rem;
}

.image-viewer__nav--prev {
  left: 0.15rem;
}

.image-viewer__nav--next {
  right: 0.15rem;
}

.image-viewer__nav:disabled {
  opacity: 0.35;
}

.image-viewer__counter {
  margin: 0.65rem 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 600;
}

@media (max-width: 41.99rem) {
  .modal {
    padding: 0;
    align-items: flex-end;
  }

  .modal__dialog {
    width: 100%;
    max-height: 96svh;
    border-radius: 1rem 1rem 0 0;
  }

  .modal__dialog--fullscreen {
    max-height: 100svh;
    border-radius: 0;
  }

  .image-viewer__dialog {
    width: 100vw;
    max-width: 100vw;
    max-height: 100svh;
    padding: 3.2rem 0.35rem 1.9rem;
  }

  .image-viewer__image {
    max-height: calc(100svh - 6.1rem);
    border-radius: 0.65rem;
  }

  .image-viewer__nav {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 1.35rem;
  }

  .image-viewer__counter {
    font-size: 0.76rem;
  }
}

@media (min-width: 42rem) {
  :root {
    --page-gap: 1.25rem;
  }

  .app-main {
    padding-bottom: calc(2.4rem + var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom));
  }

  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem;
  }

  .modal {
    align-items: center;
    padding: 1rem;
  }
}

@media (min-width: 62rem) {
  :root {
    --page-gap: 1.5rem;
  }

  .app-header__inner {
    min-height: var(--header-height-desktop);
  }

  .app-main {
    padding-top: 1rem;
    padding-bottom: calc(2.4rem + var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom));
  }

  .search-panel {
    padding: 0.36rem 0 0.46rem;
  }

  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(13.5rem, 13.5rem));
    justify-content: start;
    gap: 1rem;
  }

  .button {
    min-height: var(--control-height-desktop);
    font-size: 0.84rem;
  }

  .search-field input {
    min-height: 3.05rem;
    font-size: 0.9rem;
  }

  .search-button {
    min-height: 1.95rem;
    font-size: 0.7rem;
  }

  .product-card__body {
    padding: 0.68rem;
  }

  .field input,
  .field select {
    font-size: 0.9rem;
  }
}

@media (min-width: 90rem) {
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(14.5rem, 14.5rem));
    justify-content: start;
  }
}

body.modal-open {
  overflow: hidden;
  touch-action: none;
}

body.image-viewer-open {
  overflow: hidden;
  touch-action: none;
}

body,
.app-main,
.catalog,
.modal,
.modal__dialog,
.cart-modal,
.product-modal__gallery {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body::-webkit-scrollbar,
.app-main::-webkit-scrollbar,
.catalog::-webkit-scrollbar,
.modal::-webkit-scrollbar,
.modal__dialog::-webkit-scrollbar,
.cart-modal::-webkit-scrollbar,
.product-modal__gallery::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.legal-page .app-main {
  padding-top: 1rem;
  padding-bottom: 1.4rem;
}

.legal-main {
  max-width: 56rem;
}

.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 1rem;
}

.legal-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 1.2rem;
}

.legal-actions .button {
  width: auto;
  min-width: 10rem;
}

.legal-content h1 {
  margin: 0 0 1rem;
  color: #1e355f;
  font-size: clamp(1.25rem, 2.7vw, 1.9rem);
  line-height: 1.2;
}

.legal-content h2 {
  margin: 1.1rem 0 0.58rem;
  color: #1f3f7f;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.28;
}

.legal-content p {
  margin: 0.5rem 0;
  color: #33455f;
  font-size: 0.95rem;
  line-height: 1.62;
}

.legal-content ul {
  margin: 0.45rem 0 0.7rem;
  padding-left: 1.15rem;
  color: #33455f;
}

.legal-content li {
  margin-bottom: 0.35rem;
  line-height: 1.52;
}

@media (max-width: 41.99rem) {
  .legal-page .app-header__inner {
    gap: 0.72rem;
  }

  .legal-page .logo span {
    font-size: 0.96rem;
  }

  .legal-card {
    padding: 0.92rem;
    border-radius: var(--radius-md);
  }

  .legal-actions .button {
    width: 100%;
  }
}

.notfound-page .app-main {
  padding-top: 1rem;
  padding-bottom: 1.6rem;
}

.notfound-main {
  min-height: calc(100dvh - 6rem);
  display: grid;
  place-items: center;
}

.notfound-card {
  width: min(100%, 34rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 1.15rem;
  text-align: center;
}

.notfound-code {
  margin: 0;
  color: #2f6fed;
  font-size: clamp(2.3rem, 8vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
}

.notfound-title {
  margin: 0.65rem 0 0.45rem;
  color: #1e355f;
  font-size: clamp(1.2rem, 3.2vw, 1.7rem);
  line-height: 1.2;
}

.notfound-text {
  margin: 0;
  color: #4c5e7c;
  font-size: 0.95rem;
  line-height: 1.45;
}

.notfound-actions {
  margin-top: 1rem;
  display: grid;
  gap: 0.55rem;
}

.notfound-actions .button {
  width: 100%;
}
