* {
  box-sizing: border-box;
}

:root {
  --bg: #07090f;
  --surface: rgba(255,255,255,.055);
  --surface-hover: rgba(255,255,255,.085);
  --surface-strong: rgba(255,255,255,.09);

  --border: rgba(255,255,255,.10);
  --border-hover: rgba(255,255,255,.20);

  --text: #f7f8fc;
  --muted: rgba(235,238,248,.52);
  --muted-strong: rgba(235,238,248,.72);

  --blue: #5577ff;
  --purple: #9b5cff;

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;

  --content-width: 1440px;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    "Segoe UI",
    sans-serif;

  color: var(--text);
  background:
    radial-gradient(
      circle at 15% -10%,
      rgba(65,91,210,.25),
      transparent 32%
    ),
    radial-gradient(
      circle at 90% 105%,
      rgba(125,61,185,.22),
      transparent 30%
    ),
    var(--bg);

  overflow-x: hidden;

  padding-bottom: env(safe-area-inset-bottom);
}


/* =========================
   AMBIENT BACKGROUND
========================= */

.ambient {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  filter: blur(100px);
  opacity: .28;
}

.ambient-blue {
  width: 420px;
  height: 420px;
  left: -180px;
  top: -120px;
  background: #3f62ff;
}

.ambient-purple {
  width: 440px;
  height: 440px;
  right: -200px;
  bottom: -180px;
  background: #9748ff;
}


/* =========================
   GLASS
========================= */

.glass {
  background: rgba(18,21,31,.82);
  border: 1px solid var(--border);

  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}


/* =========================
   HEADER
========================= */

.header {
  position: sticky;
  top: 0;
  z-index: 50;

  padding:
    calc(22px + env(safe-area-inset-top))
    24px
    20px;

  background: rgba(7,9,15,.74);

  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);

  border-bottom: 1px solid rgba(255,255,255,.07);
}

.header-inner {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;

  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.brand {
  flex: 0 0 auto;
}

.eyebrow {
  margin: 0 0 7px;

  color: var(--muted);
  text-transform: uppercase;

  letter-spacing: .20em;
  font-size: 11px;
  font-weight: 800;
}

h1 {
  margin: 0;

  font-size: clamp(34px,4vw,50px);
  line-height: .95;

  font-weight: 850;
  letter-spacing: -.045em;
}


/* =========================
   SEARCH
========================= */

.search-wrap {
  position: relative;

  width: min(620px,55vw);
}

.search-icon {
  position: absolute;

  left: 18px;
  top: 50%;

  transform: translateY(-50%);

  color: var(--muted);
  font-size: 22px;

  pointer-events: none;
}

input,
textarea {
  width: 100%;

  border: 1px solid var(--border);
  outline: none;

  background: rgba(255,255,255,.045);
  color: var(--text);

  border-radius: 17px;

  padding: 15px 16px;

  font: inherit;

  transition:
    border-color .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}

.search-wrap input {
  padding-left: 50px;
}

input::placeholder,
textarea::placeholder {
  color: rgba(235,238,248,.34);
}

input:focus,
textarea:focus {
  border-color: rgba(102,127,255,.58);

  background: rgba(255,255,255,.065);

  box-shadow:
    0 0 0 4px rgba(85,119,255,.09);
}


/* =========================
   MAIN CONTENT
========================= */

.section {
  width: 100%;
  max-width: var(--content-width);

  margin: 0 auto;

  padding: 34px 24px 60px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;

  gap: 20px;

  margin-bottom: 24px;
}

.title-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.title-label {
  color: var(--muted);

  font-size: 10px;
  font-weight: 800;

  letter-spacing: .18em;
}

#pageTitle {
  font-size: clamp(24px,3vw,34px);

  font-weight: 800;
  letter-spacing: -.035em;
}


/* =========================
   BUTTONS
========================= */

button {
  font: inherit;

  cursor: pointer;

  border: 0;

  transition:
    transform .18s ease,
    background .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

button:active {
  transform: scale(.975);
}

.ghost {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 7px;

  padding: 10px 15px;

  color: var(--text);

  background: rgba(255,255,255,.055);

  border: 1px solid var(--border);

  border-radius: 999px;

  font-size: 13px;
  font-weight: 650;
}

.ghost:hover {
  background: rgba(255,255,255,.09);
  border-color: var(--border-hover);
}


/* =========================
   BRAND GRID
========================= */

.chips {
  display: grid;

  grid-template-columns:
    repeat(4,minmax(0,1fr));

  gap: 14px;
}

.brand-card {
  position: relative;

  min-width: 0;
  min-height: 126px;

  overflow: hidden;

  padding: 22px;

  color: var(--text);

  text-align: left;

  font-size: 20px;
  font-weight: 750;

  letter-spacing: -.02em;

  border: 1px solid var(--border);

  border-radius: var(--radius-lg);

  background:
    linear-gradient(
      145deg,
      rgba(60,82,160,.18),
      rgba(112,61,139,.10)
    ),
    rgba(255,255,255,.045);
}

.brand-card::after {
  content: "→";

  position: absolute;

  right: 20px;
  bottom: 18px;

  color: rgba(255,255,255,.32);

  font-size: 18px;

  transition:
    transform .2s ease,
    color .2s ease;
}

.brand-card:hover {
  transform: translateY(-3px);

  border-color: var(--border-hover);

  background:
    linear-gradient(
      145deg,
      rgba(67,93,185,.24),
      rgba(127,65,159,.15)
    ),
    rgba(255,255,255,.06);

  box-shadow:
    0 18px 45px rgba(0,0,0,.22);
}

.brand-card:hover::after {
  transform: translateX(3px);
  color: rgba(255,255,255,.75);
}


/* =========================
   CATEGORY / MODEL GRID
========================= */

.category-grid {
  display: grid;

  grid-template-columns:
    repeat(3,minmax(0,1fr));

  gap: 14px;
}

.category-card {
  position: relative;

  min-width: 0;
  min-height: 112px;

  padding: 21px;

  overflow: hidden;

  color: var(--text);

  text-align: left;

  border: 1px solid var(--border);

  border-radius: var(--radius-lg);

  background:
    linear-gradient(
      135deg,
      rgba(75,96,172,.12),
      rgba(132,67,162,.08)
    ),
    rgba(255,255,255,.045);
}

.category-card::after {
  content: "→";

  position: absolute;

  right: 20px;
  bottom: 17px;

  color: rgba(255,255,255,.27);

  transition:
    transform .2s ease,
    color .2s ease;
}

.category-card:hover {
  transform: translateY(-2px);

  border-color: var(--border-hover);

  background:
    linear-gradient(
      135deg,
      rgba(75,96,172,.18),
      rgba(132,67,162,.12)
    ),
    rgba(255,255,255,.06);

  box-shadow:
    0 16px 38px rgba(0,0,0,.18);
}

.category-card:hover::after {
  transform: translateX(3px);
  color: rgba(255,255,255,.72);
}

.category-card h3 {
  margin: 0 35px 7px 0;

  font-size: 18px;
  line-height: 1.2;

  font-weight: 720;

  letter-spacing: -.018em;
}

.category-card p {
  margin: 0;

  color: var(--muted);

  font-size: 13px;
}


/* =========================
   PRODUCTS
========================= */

.grid {
  display: grid;

  grid-template-columns:
    repeat(4,minmax(0,1fr));

  gap: 15px;
}

.card {
  min-width: 0;

  overflow: hidden;

  padding: 18px;

  border: 1px solid var(--border);

  border-radius: var(--radius-lg);

  background: rgba(255,255,255,.045);

  transition:
    transform .2s ease,
    border-color .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-3px);

  border-color: var(--border-hover);

  background: rgba(255,255,255,.065);

  box-shadow:
    0 18px 42px rgba(0,0,0,.22);
}

.product-image {
  width: 100%;
  height: 220px;

  display: block;

  object-fit: contain;

  margin-bottom: 17px;

  padding: 12px;

  border-radius: 17px;

  background:
    radial-gradient(
      circle at center,
      rgba(255,255,255,.07),
      rgba(255,255,255,.018)
    );
}

.card h3 {
  margin: 0 0 8px;

  font-size: 16px;
  line-height: 1.3;

  font-weight: 720;

  letter-spacing: -.015em;
}

.card p {
  margin: 0;

  color: var(--muted);

  font-size: 13px;
  line-height: 1.45;
}

.price {
  margin-top: 15px;

  font-size: 22px;
  font-weight: 820;

  letter-spacing: -.025em;
}


/* =========================
   ORDER BUTTON
========================= */

.primary {
  width: 100%;

  margin-top: 18px;

  padding: 15px 18px;

  border-radius: 15px;

  background: var(--text);
  color: #080a10;

  font-weight: 750;
}

.primary:hover {
  transform: translateY(-1px);

  box-shadow:
    0 10px 30px rgba(255,255,255,.12);
}


/* =========================
   MODAL
========================= */

.modal {
  position: fixed;
  inset: 0;

  z-index: 100;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 24px;

  background: rgba(0,0,0,.66);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hidden {
  display: none !important;
}

.modal-card {
  position: relative;

  width: min(500px,100%);

  max-height: calc(100vh - 48px);

  overflow-y: auto;

  padding: 28px;

  border-radius: 30px;

  box-shadow:
    0 40px 100px rgba(0,0,0,.48);
}

.modal-handle {
  display: none;
}

.modal-content {
  width: 100%;
}

.modal-eyebrow {
  margin: 0 0 9px;

  color: var(--muted);

  font-size: 10px;
  font-weight: 800;

  letter-spacing: .17em;
}

#close {
  position: absolute;

  right: 18px;
  top: 18px;

  width: 36px;
  height: 36px;

  border-radius: 50%;

  background: rgba(255,255,255,.07);
  color: var(--text);

  font-size: 20px;
}

#close:hover {
  background: rgba(255,255,255,.12);
}

#productTitle {
  max-width: calc(100% - 45px);

  margin: 0 0 8px;

  font-size: 25px;

  letter-spacing: -.025em;
}

#productMeta {
  margin: 0;

  color: var(--muted);

  line-height: 1.45;
}

#productPrice {
  display: block;

  margin: 18px 0 22px;

  font-size: 30px;
  font-weight: 850;

  letter-spacing: -.035em;
}

.order-fields {
  display: grid;
  gap: 11px;
}

textarea {
  min-height: 100px;
  resize: vertical;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1050px) {

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

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

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

}


/* =========================
   SMALL TABLET
========================= */

@media (max-width: 760px) {

  .header {
    padding:
      calc(17px + env(safe-area-inset-top))
      16px
      16px;
  }

  .header-inner {
    display: block;
  }

  h1 {
    font-size: 36px;
  }

  .search-wrap {
    width: 100%;

    margin-top: 18px;
  }

  .section {
    padding: 24px 16px 45px;
  }

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

    gap: 11px;
  }

  .brand-card {
    min-height: 105px;

    padding: 17px;

    border-radius: 20px;

    font-size: 17px;
  }

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

    gap: 11px;
  }

  .category-card {
    min-height: 105px;

    padding: 17px;

    border-radius: 20px;
  }

  .category-card h3 {
    font-size: 16px;
  }

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

    gap: 11px;
  }

  .product-image {
    height: 170px;
  }

}


/* =========================
   PHONE / TELEGRAM MINI APP
========================= */

@media (max-width: 520px) {

  .header {
    position: relative;

    background: transparent;

    border-bottom: 0;

    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    padding-bottom: 8px;
  }

  .eyebrow {
    font-size: 10px;
  }

  h1 {
    font-size: 34px;
  }

  .search-wrap {
    margin-top: 16px;
  }

  .search-wrap input {
    height: 48px;

    border-radius: 16px;
  }

  .section {
    padding-top: 18px;
  }

  .section-title {
    align-items: center;

    margin-bottom: 18px;
  }

  #pageTitle {
    font-size: 24px;
  }

  .title-label {
    font-size: 9px;
  }

  .ghost {
    padding: 9px 12px;

    font-size: 12px;
  }

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

  .brand-card {
    min-height: 96px;

    font-size: 16px;
  }

  .brand-card::after {
    right: 16px;
    bottom: 14px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 86px;

    padding: 17px 18px;
  }

  .category-card::after {
    right: 18px;
    bottom: 15px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 16px;

    border-radius: 20px;
  }

  .product-image {
    height: 230px;
  }

  .modal {
    align-items: end;

    padding:
      8px
      8px
      calc(8px + env(safe-area-inset-bottom));
  }

  .modal-card {
    width: 100%;

    max-height: 90vh;

    padding: 14px 18px 22px;

    border-radius: 28px 28px 22px 22px;
  }

  .modal-handle {
    display: block;

    width: 38px;
    height: 4px;

    margin: 0 auto 18px;

    border-radius: 999px;

    background: rgba(255,255,255,.20);
  }

  #close {
    top: 14px;
    right: 14px;
  }

  #productTitle {
    font-size: 23px;
  }

  #productPrice {
    font-size: 28px;
  }

}


/* =========================
   VERY SMALL PHONE
========================= */

@media (max-width: 360px) {

  .chips {
    grid-template-columns: 1fr;
  }

  .brand-card {
    min-height: 82px;
  }

}


/* =========================================================
   CATALOG V2 — BRAND NAVIGATION
========================================================= */

#brands.chips {
  display: block;
}

.brands-group-title {
  margin: 0 0 13px;

  color: rgba(235,238,248,.50);

  font-size: 11px;
  font-weight: 750;

  letter-spacing: .15em;
  text-transform: uppercase;
}

.brands-all-title {
  margin-top: 36px;
}


/* POPULAR */

.popular-brands {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
}

.brand-card-featured {
  position: relative;

  min-height: 150px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;

  padding: 22px;

  overflow: hidden;

  border-radius: 24px;

  background:
    radial-gradient(
      circle at 15% 0%,
      rgba(83,108,255,.20),
      transparent 55%
    ),
    linear-gradient(
      145deg,
      rgba(53,66,115,.20),
      rgba(87,52,107,.13)
    ),
    rgba(255,255,255,.04);
}

.brand-card-featured .brand-name {
  font-size: 22px;
  font-weight: 680;

  letter-spacing: -.025em;
}

.brand-card-featured .brand-arrow {
  position: absolute;

  right: 21px;
  bottom: 20px;

  color: rgba(255,255,255,.38);

  font-size: 18px;
}

.brand-card-featured:hover {
  transform: translateY(-3px);

  border-color: rgba(255,255,255,.20);

  box-shadow:
    0 18px 45px rgba(0,0,0,.22);
}

.brand-card-featured:hover .brand-arrow {
  transform: translateX(3px);
  color: rgba(255,255,255,.8);
}


/* ALL BRANDS */

.all-brands {
  display: grid;

  grid-template-columns:
    repeat(4,minmax(0,1fr));

  gap: 8px 12px;
}

.brand-card-compact {
  min-height: 58px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  padding: 13px 16px;

  border-radius: 15px;

  background: rgba(255,255,255,.032);

  font-size: 14px;
  font-weight: 580;
}

.brand-card-compact::after,
.brand-card-featured::after {
  content: none;
}

.brand-card-compact .brand-arrow {
  flex: 0 0 auto;

  color: rgba(255,255,255,.27);

  font-size: 14px;
}

.brand-card-compact:hover {
  transform: none;

  background: rgba(255,255,255,.065);

  border-color: rgba(255,255,255,.17);

  box-shadow: none;
}

.brand-card-compact:hover .brand-arrow {
  color: rgba(255,255,255,.75);
}


/* TABLET */

@media (max-width: 1050px) {

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

  .all-brands {
    grid-template-columns:
      repeat(3,minmax(0,1fr));
  }

}


/* MOBILE */

@media (max-width: 620px) {

  .brands-all-title {
    margin-top: 29px;
  }

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

    gap: 10px;
  }

  .brand-card-featured {
    min-height: 100px;

    padding: 16px;

    border-radius: 19px;
  }

  .brand-card-featured .brand-name {
    font-size: 16px;
  }

  .brand-card-featured .brand-arrow {
    right: 15px;
    bottom: 14px;

    font-size: 15px;
  }

  .all-brands {
    grid-template-columns: 1fr;

    gap: 7px;
  }

  .brand-card-compact {
    min-height: 52px;

    padding: 12px 15px;

    border-radius: 14px;

    font-size: 14px;
  }

}


/* =========================================================
   HERO
========================================================= */

.hero {
  width: 100%;

  padding: 34px 24px 12px;
}

.hero-inner {
  position: relative;

  width: 100%;
  max-width: var(--content-width);
  min-height: 390px;

  margin: 0 auto;

  display: grid;
  grid-template-columns: .8fr 1.5fr;
  align-items: center;

  overflow: hidden;

  border: 1px solid rgba(255,255,255,.09);
  border-radius: 32px;

  background:
    radial-gradient(
      circle at 80% 50%,
      rgba(78,70,190,.16),
      transparent 45%
    ),
    linear-gradient(
      120deg,
      rgba(18,22,39,.95),
      rgba(8,10,17,.82)
    );

  box-shadow:
    0 30px 80px rgba(0,0,0,.25);
}

.hero-copy {
  position: relative;
  z-index: 3;

  padding: 52px 0 52px 52px;
}

.hero-eyebrow {
  margin: 0 0 15px;

  color: rgba(205,211,239,.50);

  font-size: 10px;
  font-weight: 750;

  letter-spacing: .18em;
}

.hero-title {
  margin: 0;

  font-size: clamp(44px,4.4vw,72px);
  line-height: .96;

  font-weight: 700;

  letter-spacing: -.055em;
}

.hero-description {
  max-width: 360px;

  margin: 22px 0 0;

  color: var(--muted-strong);

  font-size: 16px;
  line-height: 1.5;
}

.hero-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 20px;

  margin-top: 30px;

  padding: 14px 19px;

  border-radius: 15px;

  background: rgba(255,255,255,.94);
  color: #080a10;

  font-size: 14px;
  font-weight: 700;
}

.hero-button:hover {
  transform: translateY(-2px);

  background: #fff;

  box-shadow:
    0 12px 35px rgba(255,255,255,.12);
}

.hero-button span {
  font-size: 17px;
}


/* IMAGE */

.hero-visual {
  position: relative;

  height: 100%;
  min-height: 390px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.hero-image {
  position: absolute;

  width: 115%;
  max-width: none;

  right: -5%;
  bottom: -1%;

  display: block;

  object-fit: contain;

  filter:
    saturate(.92)
    contrast(1.02);

  -webkit-mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      black 14%,
      black 92%,
      transparent 100%
    );

  mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      black 14%,
      black 92%,
      transparent 100%
    );
}


/* HERO TABLET */

@media (max-width: 900px) {

  .hero-inner {
    grid-template-columns: 1fr 1.2fr;

    min-height: 340px;
  }

  .hero-copy {
    padding: 38px 0 38px 35px;
  }

  .hero-visual {
    min-height: 340px;
  }

  .hero-title {
    font-size: 48px;
  }

}


/* HERO MOBILE / MINI APP */

@media (max-width: 620px) {

  .hero {
    padding: 12px 16px 6px;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;

    min-height: 0;

    border-radius: 25px;
  }

  .hero-copy {
    width: 100%;

    padding: 28px 24px 4px;
  }

  .hero-eyebrow {
    margin-bottom: 11px;

    font-size: 9px;
  }

  .hero-title {
    font-size: 39px;
    line-height: .98;
  }

  .hero-description {
    margin-top: 15px;

    font-size: 14px;
  }

  .hero-button {
    margin-top: 20px;

    padding: 13px 17px;
  }

  .hero-visual {
    width: 100%;
    min-height: 215px;

    margin-top: 5px;
  }

  .hero-image {
    width: 125%;

    right: -12%;
    bottom: 0;

    -webkit-mask-image:
      linear-gradient(
        to bottom,
        transparent 0%,
        black 15%,
        black 94%
      );

    mask-image:
      linear-gradient(
        to bottom,
        transparent 0%,
        black 15%,
        black 94%
      );
  }

}


/* =========================================================
   HOME SHOWCASE V3
========================================================= */

#brands.chips {
  display: block;
}


/* Старый заголовок "КАТАЛОГ / Бренды" на главной
   визуально прячем — hero уже объясняет страницу */

.hero:not(.hidden) + .section .section-title {
  display: none;
}

.hero:not(.hidden) + .section {
  padding-top: 34px;
}


/* HEADING */

.showcase-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;

  margin-bottom: 20px;
}

.showcase-kicker {
  display: block;

  margin-bottom: 7px;

  color: var(--muted);

  font-size: 10px;
  font-weight: 750;

  letter-spacing: .18em;
}

.showcase-heading h2 {
  margin: 0;

  font-size: 30px;
  font-weight: 680;

  letter-spacing: -.035em;
}

.showcase-heading p {
  margin: 7px 0 0;

  color: var(--muted);

  font-size: 14px;
}


/* POPULAR SHOWCASE */

.brand-showcase {
  display: grid;

  grid-template-columns:
    repeat(4,minmax(0,1fr));

  gap: 14px;
}

.showcase-card {
  position: relative;

  min-width: 0;
  height: 260px;

  overflow: hidden;

  padding: 0;

  text-align: left;
  color: var(--text);

  border: 1px solid rgba(255,255,255,.09);

  border-radius: 25px;

  background:
    radial-gradient(
      circle at 75% 20%,
      rgba(93,91,207,.16),
      transparent 50%
    ),
    linear-gradient(
      145deg,
      rgba(28,32,53,.90),
      rgba(14,16,25,.96)
    );
}

.showcase-card::after {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      to top,
      rgba(8,10,16,.92) 0%,
      rgba(8,10,16,.20) 48%,
      transparent 72%
    );
}

.showcase-card:hover {
  transform: translateY(-4px);

  border-color: rgba(255,255,255,.19);

  box-shadow:
    0 22px 55px rgba(0,0,0,.28);
}


/* PRODUCT IMAGE */

.showcase-product {
  position: absolute;

  width: 100%;
  height: 72%;

  left: 0;
  top: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 17px 24px 0;
}

.showcase-product img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  transition:
    transform .35s ease,
    filter .35s ease;

  filter:
    drop-shadow(0 18px 28px rgba(0,0,0,.30));
}

.showcase-card:hover .showcase-product img {
  transform: scale(1.045);
}


/* CARD COPY */

.showcase-card-copy {
  position: absolute;

  z-index: 3;

  left: 20px;
  right: 20px;
  bottom: 18px;

  display: flex;
  flex-direction: column;
}

.showcase-brand {
  font-size: 21px;
  font-weight: 680;

  letter-spacing: -.025em;
}

.showcase-description {
  margin-top: 3px;

  color: rgba(235,238,248,.52);

  font-size: 12px;
}

.showcase-link {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-top: 11px;

  color: rgba(255,255,255,.80);

  font-size: 12px;
  font-weight: 620;
}


/* ALL BRANDS */

.all-brands-section {
  margin-top: 44px;
}

.all-brands-heading {
  margin-bottom: 14px;

  color: var(--muted);

  font-size: 10px;
  font-weight: 750;

  letter-spacing: .18em;
}

.brand-directory {
  display: grid;

  grid-template-columns:
    repeat(5,minmax(0,1fr));

  gap: 7px;
}

.directory-brand {
  min-width: 0;
  min-height: 48px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  padding: 11px 14px;

  color: rgba(245,246,250,.84);

  border: 1px solid rgba(255,255,255,.065);

  border-radius: 13px;

  background: rgba(255,255,255,.018);

  font-size: 13px;
  font-weight: 540;

  text-align: left;
}

.directory-brand:hover {
  background: rgba(255,255,255,.055);

  border-color: rgba(255,255,255,.13);
}

.directory-arrow {
  color: rgba(255,255,255,.24);

  transition:
    transform .2s ease,
    color .2s ease;
}

.directory-brand:hover .directory-arrow {
  transform: translateX(2px);

  color: rgba(255,255,255,.65);
}


/* TABLET */

@media (max-width: 1100px) {

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

  .brand-directory {
    grid-template-columns:
      repeat(3,minmax(0,1fr));
  }

}


/* MOBILE / MINI APP */

@media (max-width: 620px) {

  .hero:not(.hidden) + .section {
    padding-top: 26px;
  }

  .showcase-heading {
    margin-bottom: 16px;
  }

  .showcase-heading h2 {
    font-size: 24px;
  }

  .showcase-heading p {
    font-size: 12px;
  }

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

    gap: 10px;
  }

  .showcase-card {
    height: 205px;

    border-radius: 20px;
  }

  .showcase-product {
    height: 67%;

    padding: 13px 12px 0;
  }

  .showcase-card-copy {
    left: 14px;
    right: 14px;
    bottom: 13px;
  }

  .showcase-brand {
    font-size: 16px;
  }

  .showcase-description {
    font-size: 10px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .showcase-link {
    margin-top: 8px;

    font-size: 11px;
  }

  .all-brands-section {
    margin-top: 34px;
  }

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

    gap: 7px;
  }

  .directory-brand {
    min-height: 48px;

    padding: 10px 12px;

    font-size: 12px;
  }

}


/* VERY SMALL PHONE */

@media (max-width: 370px) {

  .brand-showcase {
    grid-template-columns: 1fr;
  }

  .showcase-card {
    height: 220px;
  }

}


/* =========================================================
   CATALOG DIRECTORY V4
========================================================= */

.catalog-directory-heading {
  margin-top: 52px;
  margin-bottom: 20px;
}

.catalog-directory-heading h2 {
  margin: 0;

  font-size: 28px;
  font-weight: 680;

  letter-spacing: -.035em;
}

.catalog-directory-heading p {
  margin: 7px 0 0;

  color: var(--muted);

  font-size: 13px;
}


.catalog-widgets {
  display: grid;

  grid-template-columns:
    repeat(3,minmax(0,1fr));

  gap: 12px;
}

.catalog-widget {
  min-width: 0;

  padding: 20px;

  border: 1px solid rgba(255,255,255,.075);

  border-radius: 21px;

  background:
    linear-gradient(
      145deg,
      rgba(25,29,46,.70),
      rgba(12,14,22,.82)
    );
}

.catalog-widget-head {
  display: flex;
  align-items: center;

  gap: 13px;

  padding-bottom: 16px;

  border-bottom:
    1px solid rgba(255,255,255,.065);
}

.catalog-widget-number {
  width: 38px;
  height: 38px;

  flex: 0 0 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255,255,255,.10);

  border-radius: 11px;

  background: rgba(255,255,255,.04);

  color: rgba(215,220,245,.50);

  font-size: 10px;
  font-weight: 750;

  letter-spacing: .08em;
}

.catalog-widget-head h3 {
  margin: 0;

  font-size: 17px;
  font-weight: 650;

  letter-spacing: -.02em;
}

.catalog-widget-head p {
  margin: 3px 0 0;

  color: var(--muted);

  font-size: 11px;
}


.catalog-widget-brands {
  display: grid;

  grid-template-columns:
    repeat(2,minmax(0,1fr));

  gap: 5px 12px;

  padding-top: 13px;
}

.widget-brand {
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 10px;

  padding: 8px 4px;

  color: rgba(245,246,250,.78);

  background: transparent;

  border-bottom:
    1px solid rgba(255,255,255,.035);

  font-size: 12px;
  font-weight: 540;

  text-align: left;
}

.widget-brand span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.widget-brand span:last-child {
  color: rgba(255,255,255,.20);
}

.widget-brand:hover {
  color: #fff;

  padding-left: 7px;
}

.widget-brand:hover span:last-child {
  color: rgba(255,255,255,.70);
}


/* TABLET */

@media (max-width: 1050px) {

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

}


/* MOBILE / MINI APP */

@media (max-width: 620px) {

  .catalog-directory-heading {
    margin-top: 38px;
  }

  .catalog-directory-heading h2 {
    font-size: 23px;
  }

  .catalog-widgets {
    grid-template-columns: 1fr;

    gap: 9px;
  }

  .catalog-widget {
    padding: 17px;

    border-radius: 18px;
  }

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

}


/* =========================================================
   HOME V5
========================================================= */

.home-category-heading {
  margin-top: 54px;
  margin-bottom: 20px;
}

.home-category-heading h2 {
  margin: 0;

  font-size: 29px;
  font-weight: 680;

  letter-spacing: -.035em;
}

.home-category-heading p {
  margin: 7px 0 0;

  color: var(--muted);

  font-size: 13px;
}


/* CATEGORY GRID */

.home-category-grid {
  display: grid;

  grid-template-columns:
    repeat(3,minmax(0,1fr));

  gap: 11px;
}

.home-category-card {
  position: relative;

  min-height: 150px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;

  padding: 20px;

  overflow: hidden;

  color: var(--text);
  text-align: left;

  border: 1px solid rgba(255,255,255,.075);

  border-radius: 21px;

  background:
    radial-gradient(
      circle at 85% 5%,
      rgba(93,91,207,.11),
      transparent 45%
    ),
    rgba(255,255,255,.025);
}

.home-category-card:hover {
  transform: translateY(-3px);

  border-color: rgba(255,255,255,.17);

  background:
    radial-gradient(
      circle at 85% 5%,
      rgba(93,91,207,.18),
      transparent 48%
    ),
    rgba(255,255,255,.04);
}

.home-category-number {
  position: absolute;

  top: 17px;
  left: 18px;

  color: rgba(210,215,240,.30);

  font-size: 10px;
  font-weight: 750;

  letter-spacing: .12em;
}

.home-category-copy h3 {
  margin: 0;

  font-size: 19px;
  font-weight: 650;

  letter-spacing: -.025em;
}

.home-category-copy p {
  margin: 5px 0 0;

  color: var(--muted);

  font-size: 12px;
}

.home-category-arrow {
  position: absolute;

  right: 19px;
  bottom: 19px;

  color: rgba(255,255,255,.32);

  font-size: 16px;
}

.home-category-card:hover .home-category-arrow {
  transform: translateX(3px);

  color: rgba(255,255,255,.8);
}


/* QUICK ACCESS */

.home-quick-access {
  margin-top: 46px;
  margin-bottom: 30px;

  padding-top: 22px;

  border-top:
    1px solid rgba(255,255,255,.07);
}

.home-quick-copy h3 {
  margin: 0;

  font-size: 20px;
  font-weight: 650;

  letter-spacing: -.025em;
}

.home-quick-brands {
  display: flex;
  flex-wrap: wrap;

  gap: 8px;

  margin-top: 16px;
}

.quick-brand {
  padding: 10px 15px;

  color: rgba(245,246,250,.76);

  border: 1px solid rgba(255,255,255,.075);

  border-radius: 999px;

  background: rgba(255,255,255,.025);

  font-size: 12px;
  font-weight: 580;
}

.quick-brand:hover {
  color: #fff;

  background: rgba(255,255,255,.07);

  border-color: rgba(255,255,255,.15);
}

.quick-brand-all {
  color: rgba(210,215,255,.92);

  background: rgba(92,88,190,.10);
}


/* ALL BRANDS EXPAND */

.home-all-brands {
  display: grid;

  grid-template-columns:
    repeat(5,minmax(0,1fr));

  gap: 6px;

  margin-top: 17px;

  padding-top: 17px;

  border-top:
    1px solid rgba(255,255,255,.06);
}

.home-all-brand {
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 10px 11px;

  color: rgba(245,246,250,.72);

  border-radius: 10px;

  background: transparent;

  font-size: 11px;
  text-align: left;
}

.home-all-brand:hover {
  color: #fff;

  background: rgba(255,255,255,.045);
}

.home-all-brand span:last-child {
  color: rgba(255,255,255,.22);
}


/* TABLET */

@media (max-width: 1000px) {

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

  .home-all-brands {
    grid-template-columns:
      repeat(3,minmax(0,1fr));
  }

}


/* MOBILE / MINI APP */

@media (max-width: 620px) {

  .home-category-heading {
    margin-top: 38px;
  }

  .home-category-heading h2 {
    font-size: 23px;
  }

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

    gap: 9px;
  }

  .home-category-card {
    min-height: 125px;

    padding: 15px;

    border-radius: 18px;
  }

  .home-category-number {
    top: 13px;
    left: 14px;
  }

  .home-category-copy h3 {
    max-width: 120px;

    font-size: 15px;
  }

  .home-category-copy p {
    max-width: 120px;

    font-size: 10px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .home-category-arrow {
    right: 14px;
    bottom: 14px;
  }

  .home-quick-access {
    margin-top: 34px;
  }

  .quick-brand {
    padding: 9px 12px;

    font-size: 11px;
  }

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

}


/* =========================================================
   HOME CATEGORY STRIP V6
========================================================= */

/* Заголовок блока делаем компактнее */
.home-category-heading {
  margin-top: 38px;
  margin-bottom: 13px;
}

.home-category-heading h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -.025em;
}

.home-category-heading p {
  display: none;
}


/* Одна горизонтальная линия */
.home-category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}


/* Компактная плитка */
.home-category-card {
  position: relative;

  min-width: 0;
  min-height: 86px;

  display: flex;
  align-items: flex-end;
  justify-content: flex-start;

  padding: 14px 15px;

  overflow: hidden;

  color: var(--text);
  text-align: left;

  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;

  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(91,86,190,.12),
      transparent 55%
    ),
    rgba(255,255,255,.022);

  transition:
    transform .2s ease,
    border-color .2s ease,
    background .2s ease;
}

.home-category-card:hover {
  transform: translateY(-2px);

  border-color: rgba(255,255,255,.16);

  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(91,86,190,.20),
      transparent 58%
    ),
    rgba(255,255,255,.04);
}


/* Убираем номера 01 02 03 */
.home-category-number {
  display: none;
}


.home-category-copy {
  min-width: 0;
  padding-right: 18px;
}

.home-category-copy h3 {
  margin: 0;

  font-size: 14px;
  font-weight: 620;

  line-height: 1.15;
  letter-spacing: -.015em;
}

.home-category-copy p {
  margin: 5px 0 0;

  color: rgba(235,238,248,.40);

  font-size: 9px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.home-category-arrow {
  position: absolute;

  right: 13px;
  bottom: 13px;

  color: rgba(255,255,255,.25);

  font-size: 13px;

  transition:
    transform .2s ease,
    color .2s ease;
}

.home-category-card:hover .home-category-arrow {
  transform: translateX(2px);
  color: rgba(255,255,255,.75);
}


/* Быстрый доступ на главной больше не нужен */
.home-quick-access {
  display: none !important;
}


/* TABLET */

@media (max-width: 1100px) {

  .home-category-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }

}


/* MOBILE / TELEGRAM MINI APP */

@media (max-width: 620px) {

  .home-category-heading {
    margin-top: 30px;
    margin-bottom: 11px;
  }

  .home-category-heading h2 {
    font-size: 18px;
  }

  .home-category-grid {
    display: flex;

    gap: 8px;

    margin-left: -16px;
    margin-right: -16px;

    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 4px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x proximity;

    scrollbar-width: none;

    -webkit-overflow-scrolling: touch;
  }

  .home-category-grid::-webkit-scrollbar {
    display: none;
  }

  .home-category-card {
    flex: 0 0 150px;

    min-height: 82px;

    scroll-snap-align: start;

    border-radius: 15px;

    padding: 13px 14px;
  }

  .home-category-copy h3 {
    font-size: 13px;
  }

  .home-category-copy p {
    max-width: 105px;
    font-size: 9px;
  }

}


/* =========================================================
   CATALOG MEGA MENU V1
========================================================= */

.header-actions {
  flex: 1;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 10px;
}

.catalog-menu-button {
  flex: 0 0 auto;

  height: 50px;

  display: flex;
  align-items: center;
  gap: 9px;

  padding: 0 18px;

  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;

  color: #fff;

  background:
    linear-gradient(
      135deg,
      rgba(91,91,200,.24),
      rgba(119,67,173,.16)
    );

  font-size: 13px;
  font-weight: 650;
}

.catalog-menu-button:hover {
  border-color: rgba(255,255,255,.20);

  background:
    linear-gradient(
      135deg,
      rgba(91,91,200,.34),
      rgba(119,67,173,.24)
    );
}

.catalog-menu-icon {
  font-size: 17px;
}


/* OVERLAY */

.catalog-overlay {
  position: fixed;
  inset: 0;

  z-index: 200;

  padding:
    calc(105px + env(safe-area-inset-top))
    24px
    24px;

  background: rgba(2,3,7,.70);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.catalog-open {
  overflow: hidden;
}


/* PANEL */

.catalog-mega {
  width: min(1400px,100%);
  max-height: calc(100vh - 135px);

  margin: 0 auto;

  overflow: hidden;

  border: 1px solid rgba(255,255,255,.10);
  border-radius: 25px;

  background:
    linear-gradient(
      135deg,
      rgba(16,19,31,.98),
      rgba(10,11,19,.98)
    );

  box-shadow:
    0 35px 100px rgba(0,0,0,.55);
}

.catalog-mega-top {
  min-height: 92px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 20px 24px;

  border-bottom:
    1px solid rgba(255,255,255,.07);
}

.catalog-mega-kicker {
  display: block;

  margin-bottom: 5px;

  color: rgba(200,207,235,.46);

  font-size: 9px;
  font-weight: 800;

  letter-spacing: .18em;
}

.catalog-mega-top h2 {
  margin: 0;

  font-size: 25px;
  letter-spacing: -.035em;
}

.catalog-menu-close {
  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;

  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.70);

  font-size: 25px;
  line-height: 1;
}


/* TWO COLUMNS */

.catalog-mega-body {
  min-height: 480px;
  max-height: calc(100vh - 230px);

  display: grid;

  grid-template-columns:
    285px
    minmax(0,1fr);
}


/* LEFT NAV */

.catalog-mega-nav {
  padding: 13px;

  overflow-y: auto;

  border-right:
    1px solid rgba(255,255,255,.07);
}

.catalog-mega-nav-item {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 14px 15px;

  border-radius: 12px;

  background: transparent;
  color: rgba(240,242,250,.62);

  font-size: 13px;
  font-weight: 550;

  text-align: left;
}

.catalog-mega-nav-item span:last-child {
  color: rgba(255,255,255,.20);
}

.catalog-mega-nav-item:hover {
  color: #fff;

  background: rgba(255,255,255,.045);
}

.catalog-mega-nav-item.active {
  color: #fff;

  background:
    linear-gradient(
      135deg,
      rgba(92,91,196,.18),
      rgba(255,255,255,.035)
    );
}


/* RIGHT */

.catalog-mega-content {
  padding: 31px 34px;

  overflow-y: auto;
}

.catalog-mega-content-head {
  margin-bottom: 25px;
}

.catalog-mega-content-head h3 {
  margin: 0;

  font-size: 29px;
  font-weight: 700;

  letter-spacing: -.035em;
}

.catalog-mega-content-head p {
  margin: 6px 0 0;

  color: var(--muted);

  font-size: 12px;
}


/* BRANDS */

.catalog-mega-brands {
  display: grid;

  grid-template-columns:
    repeat(3,minmax(0,1fr));

  gap: 8px;
}

.catalog-mega-brand {
  min-height: 57px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 16px;

  border: 1px solid rgba(255,255,255,.065);
  border-radius: 13px;

  color: rgba(245,246,250,.82);

  background: rgba(255,255,255,.022);

  font-size: 12px;
  font-weight: 580;

  text-align: left;
}

.catalog-mega-brand span:last-child {
  color: rgba(255,255,255,.23);
}

.catalog-mega-brand:hover {
  color: #fff;

  border-color: rgba(255,255,255,.15);

  background: rgba(255,255,255,.055);
}


/* =========================================================
   REMOVE HOME CATEGORY STRIP
========================================================= */

.home-category-heading,
.home-category-grid,
.home-quick-access {
  display: none !important;
}


/* =========================================================
   MOBILE / MINI APP
========================================================= */

@media (max-width: 700px) {

  .header-inner {
    gap: 10px;
  }

  .header-actions {
    gap: 7px;
  }

  .catalog-menu-button {
    width: 46px;
    height: 46px;

    justify-content: center;

    padding: 0;

    border-radius: 14px;
  }

  .catalog-menu-button > span:last-child {
    display: none;
  }

  .search-wrap {
    width: auto;
    flex: 1;
  }

  .catalog-overlay {
    padding: 0;

    background: #080a10;
  }

  .catalog-mega {
    width: 100%;
    height: 100%;
    max-height: none;

    border: 0;
    border-radius: 0;

    background: #080a10;
  }

  .catalog-mega-top {
    padding:
      calc(17px + env(safe-area-inset-top))
      18px
      17px;
  }

  .catalog-mega-top h2 {
    font-size: 23px;
  }

  .catalog-mega-body {
    height: calc(100vh - 85px);
    max-height: none;

    display: block;

    overflow-y: auto;
  }

  .catalog-mega-nav {
    padding: 10px 14px 20px;

    border-right: 0;
  }

  .catalog-mega-nav-item {
    min-height: 55px;

    padding: 0 15px;

    border-bottom:
      1px solid rgba(255,255,255,.055);

    border-radius: 0;

    font-size: 14px;
  }

  .catalog-mega-nav-item.active {
    background: transparent;
  }

  .catalog-mega-content {
    padding: 24px 18px 50px;

    border-top:
      1px solid rgba(255,255,255,.07);
  }

  .catalog-mega-content-head h3 {
    font-size: 25px;
  }

  .catalog-mega-brands {
    grid-template-columns: 1fr;
  }

}


/* =========================================================
   STOREFRONT BENTO V1
========================================================= */

.storefront {
  width: 100%;
}

.storefront-heading {
  margin-bottom: 22px;
}

.storefront-heading h2 {
  margin: 5px 0 0;

  font-size: clamp(25px,3vw,36px);
  font-weight: 720;

  letter-spacing: -.04em;
}


/* GRID */

.storefront-grid {
  display: grid;

  grid-template-columns: repeat(6,minmax(0,1fr));

  gap: 12px;
}


/* BASE TILE */

.store-tile {
  position: relative;

  min-width: 0;
  min-height: 210px;

  overflow: hidden;

  display: flex;
  align-items: flex-start;

  padding: 25px;

  border: 1px solid rgba(255,255,255,.075);
  border-radius: 22px;

  color: var(--text);
  text-align: left;

  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(92,83,194,.10),
      transparent 40%
    ),
    linear-gradient(
      145deg,
      rgba(255,255,255,.045),
      rgba(255,255,255,.018)
    );

  transition:
    transform .25s ease,
    border-color .25s ease,
    background .25s ease,
    box-shadow .25s ease;
}

.store-tile:hover {
  transform: translateY(-3px);

  border-color: rgba(255,255,255,.15);

  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(92,83,194,.18),
      transparent 43%
    ),
    linear-gradient(
      145deg,
      rgba(255,255,255,.06),
      rgba(255,255,255,.025)
    );

  box-shadow:
    0 20px 50px rgba(0,0,0,.20);
}


/* SIZES */

.store-tile-wide {
  grid-column: span 3;

  min-height: 310px;
}

.store-tile-third {
  grid-column: span 2;

  min-height: 190px;
}

.store-tile-medium {
  min-height: 245px;
}


/* COPY */

.store-tile-copy {
  position: relative;

  z-index: 2;

  max-width: 60%;
}

.store-tile-third .store-tile-copy {
  max-width: calc(100% - 25px);
}

.store-tile-label {
  display: block;

  margin-bottom: 10px;

  color: rgba(202,208,231,.43);

  font-size: 9px;
  font-weight: 800;

  letter-spacing: .17em;
}

.store-tile h3 {
  margin: 0;

  font-size: clamp(21px,2vw,30px);
  font-weight: 690;

  line-height: 1.02;

  letter-spacing: -.04em;
}

.store-tile-third h3 {
  font-size: 20px;
}

.store-tile p {
  margin: 9px 0 0;

  color: rgba(235,238,248,.43);

  font-size: 11px;
  line-height: 1.45;
}

.store-tile-link {
  display: inline-block;

  margin-top: 24px;

  color: rgba(255,255,255,.72);

  font-size: 11px;
  font-weight: 650;
}

.store-tile-arrow {
  position: absolute;

  right: 20px;
  bottom: 20px;

  color: rgba(255,255,255,.26);

  font-size: 16px;

  transition:
    transform .2s ease,
    color .2s ease;
}

.store-tile:hover .store-tile-arrow {
  transform: translateX(3px);

  color: rgba(255,255,255,.75);
}


/* IMAGE AREA — сюда следующим этапом посадим PNG */

.store-tile-art {
  position: absolute;

  z-index: 1;

  width: 45%;
  height: 88%;

  right: 0;
  bottom: 0;

  pointer-events: none;

  background:
    radial-gradient(
      circle at center,
      rgba(91,86,190,.11),
      transparent 65%
    );
}


/* Different subtle atmosphere */

.store-tile:nth-child(2n) {
  background:
    radial-gradient(
      circle at 90% 20%,
      rgba(145,67,173,.10),
      transparent 42%
    ),
    linear-gradient(
      145deg,
      rgba(255,255,255,.042),
      rgba(255,255,255,.016)
    );
}


/* TABLET */

@media (max-width: 950px) {

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

  .store-tile-wide,
  .store-tile-third {
    grid-column: span 1;
  }

  .store-tile-wide {
    min-height: 260px;
  }

  .store-tile-third {
    min-height: 180px;
  }

}


/* MOBILE / MINI APP */

@media (max-width: 620px) {

  .storefront-heading {
    margin-bottom: 16px;
  }

  .storefront-heading h2 {
    font-size: 24px;
  }

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

    gap: 8px;
  }

  .store-tile {
    padding: 17px;

    border-radius: 17px;
  }

  .store-tile-wide {
    grid-column: span 2;

    min-height: 220px;
  }

  .store-tile-third {
    grid-column: span 1;

    min-height: 155px;
  }

  .store-tile-medium {
    min-height: 205px;
  }

  .store-tile-copy {
    max-width: 68%;
  }

  .store-tile-third .store-tile-copy {
    max-width: 100%;
  }

  .store-tile h3 {
    font-size: 21px;
  }

  .store-tile-third h3 {
    font-size: 16px;
  }

  .store-tile p {
    font-size: 9px;
  }

  .store-tile-third p {
    display: none;
  }

  .store-tile-link {
    margin-top: 17px;

    font-size: 10px;
  }

  .store-tile-art {
    width: 50%;
  }

  .store-tile-arrow {
    right: 14px;
    bottom: 14px;
  }

}


/* =========================================================
   MOBILE CATALOG DRILLDOWN V2
========================================================= */

@media (max-width: 700px) {

  /*
   * Первый экран:
   * показываем только категории.
   */

  .catalog-overlay:not(.catalog-mobile-detail)
  .catalog-mega-content {
    display: none;
  }


  /*
   * Второй экран:
   * категории скрываем, показываем бренды.
   */

  .catalog-overlay.catalog-mobile-detail
  .catalog-mega-nav {
    display: none;
  }

  .catalog-overlay.catalog-mobile-detail
  .catalog-mega-content {
    display: block;

    padding:
      22px
      18px
      calc(30px + env(safe-area-inset-bottom));
  }


  /*
   * Кнопка возврата к категориям
   */

  .catalog-overlay.catalog-mobile-detail
  .catalog-mega-content::before {
    content: "←  Все категории";

    display: block;

    margin-bottom: 25px;

    color: rgba(235,238,248,.55);

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
  }


  /*
   * Бренды одной колонкой.
   */

  .catalog-mega-brands {
    grid-template-columns: 1fr;

    gap: 8px;
  }

  .catalog-mega-brand {
    min-height: 62px;

    padding: 0 17px;

    border-radius: 15px;

    font-size: 14px;
  }

}


/* REAL MOBILE BACK BUTTON */

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

@media (max-width: 700px) {

  .catalog-overlay.catalog-mobile-detail
  .catalog-mega-content::before {
    display: none;
  }

  .catalog-overlay.catalog-mobile-detail
  .catalog-mobile-back {
    display: inline-flex;
    align-items: center;

    margin: 0 0 24px;

    padding: 0;

    border: 0;

    background: transparent;

    color: rgba(235,238,248,.52);

    font-size: 12px;
    font-weight: 600;
  }

}


/* =========================================================
   STOREFRONT MOBILE COMPACT V2
========================================================= */

@media (max-width: 620px) {

  .storefront-heading {
    margin-bottom: 14px;
  }

  .storefront-heading h2 {
    font-size: 25px;
    line-height: 1.05;
  }


  /* Базовая мобильная карточка */

  .store-tile,
  .store-tile-wide,
  .store-tile-third,
  .store-tile-medium {
    grid-column: span 1;

    min-height: 165px;

    padding: 17px;

    border-radius: 18px;
  }


  /*
   * Только первые две карточки
   * iPhone + Аксессуары
   * остаются большими.
   */

  .store-tile:nth-child(1),
  .store-tile:nth-child(2) {
    grid-column: span 2;

    min-height: 205px;

    padding: 20px;
  }


  /* Текст */

  .store-tile-copy,
  .store-tile-third .store-tile-copy {
    max-width: 100%;
  }

  .store-tile:nth-child(1) .store-tile-copy,
  .store-tile:nth-child(2) .store-tile-copy {
    max-width: 58%;
  }

  .store-tile-label {
    margin-bottom: 9px;

    font-size: 8px;
  }

  .store-tile h3,
  .store-tile-third h3 {
    font-size: 17px;

    line-height: 1.08;
  }

  .store-tile:nth-child(1) h3,
  .store-tile:nth-child(2) h3 {
    font-size: 24px;
  }


  /* На маленьких карточках описание не нужно */

  .store-tile p {
    display: none;
  }

  .store-tile:nth-child(1) p,
  .store-tile:nth-child(2) p {
    display: block;

    max-width: 180px;

    margin-top: 8px;

    font-size: 10px;
  }


  /* Смотреть оставляем только на больших */

  .store-tile-link {
    display: none;
  }

  .store-tile:nth-child(1) .store-tile-link,
  .store-tile:nth-child(2) .store-tile-link {
    display: inline-block;

    margin-top: 17px;
  }


  /* Будущая зона картинки */

  .store-tile-art {
    width: 48%;
    height: 90%;
  }

  .store-tile:not(:nth-child(1)):not(:nth-child(2))
  .store-tile-art {
    width: 65%;
    height: 65%;

    right: -8%;
    bottom: -5%;
  }

}

/* MOBILE — HERO CLOSER TO HEADER */
@media (max-width: 620px) {
  .hero {
    margin-top: -28px;
  }
}

/* MOBILE HEADER ALIGN FIX */
@media (max-width: 620px) {

  /* отменяем прошлое поднятие Hero */
  .hero {
    margin-top: 0;
  }

  /* бургер и поиск на одной горизонтальной оси */
  .header-actions {
    align-items: center;
  }

  .catalog-menu-button {
    align-self: center;
    margin: 0;
  }

  .search-wrap {
    align-self: center;
    margin: 0;
  }
}


/* MOBILE HEADER ALIGN FIX */
@media (max-width: 620px) {

  /* отменяем прошлое поднятие Hero */
  .hero {
    margin-top: 0;
  }

  /* бургер и поиск на одной горизонтальной оси */
  .header-actions {
    align-items: center;
  }

  .catalog-menu-button {
    align-self: center;
    margin: 0;
  }

  .search-wrap {
    align-self: center;
    margin: 0;
  }
}



/* =========================================================
   ЯРАЗБИЛ — BLUE / BLACK / VIOLET GLASS THEME V1
========================================================= */

:root {
  --glass-bg: rgba(10, 13, 27, .58);
  --glass-bg-strong: rgba(8, 10, 22, .76);

  --glass-border: rgba(185, 198, 255, .12);
  --glass-border-hover: rgba(193, 205, 255, .24);

  --glass-blue: rgba(66, 105, 255, .18);
  --glass-violet: rgba(139, 74, 255, .17);

  --glass-shadow:
    0 22px 60px rgba(0, 0, 0, .34),
    inset 0 1px 0 rgba(255, 255, 255, .055);

  --glass-blur: blur(28px) saturate(145%);
}


/* =========================================================
   PAGE ATMOSPHERE
========================================================= */

html,
body {
  background:
    radial-gradient(
      900px 650px at -10% 8%,
      rgba(43, 77, 205, .20),
      transparent 62%
    ),
    radial-gradient(
      850px 700px at 105% 28%,
      rgba(115, 52, 190, .16),
      transparent 64%
    ),
    radial-gradient(
      750px 600px at 50% 95%,
      rgba(49, 54, 155, .10),
      transparent 68%
    ),
    linear-gradient(
      180deg,
      #070913 0%,
      #05060b 48%,
      #070812 100%
    );

  background-attachment: fixed;
}


/* Existing ambient glows */

.ambient-blue {
  opacity: .72;
  filter: blur(70px);
}

.ambient-purple {
  opacity: .62;
  filter: blur(85px);
}


/* =========================================================
   HEADER GLASS
========================================================= */

.header {
  background:
    linear-gradient(
      180deg,
      rgba(10, 13, 29, .79),
      rgba(7, 9, 19, .61)
    );

  border-bottom:
    1px solid rgba(180, 195, 255, .075);

  backdrop-filter:
    blur(34px)
    saturate(155%);

  -webkit-backdrop-filter:
    blur(34px)
    saturate(155%);

  box-shadow:
    0 14px 45px rgba(0, 0, 0, .15),
    inset 0 -1px 0 rgba(255,255,255,.025);
}


/* =========================================================
   CATALOG BUTTON — GLASS CUBE
========================================================= */

.catalog-menu-button {
  position: relative;

  overflow: hidden;

  border:
    1px solid rgba(162, 177, 255, .20);

  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(108, 115, 255, .28),
      transparent 52%
    ),
    linear-gradient(
      145deg,
      rgba(69, 77, 170, .26),
      rgba(71, 35, 119, .17)
    );

  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);

  box-shadow:
    0 12px 35px rgba(30, 32, 100, .22),
    inset 0 1px 0 rgba(255,255,255,.13),
    inset 0 -1px 0 rgba(109,105,255,.08);

  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

.catalog-menu-button::before {
  content: "";

  position: absolute;

  left: 12%;
  right: 12%;
  top: 0;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(220,225,255,.70),
      transparent
    );

  opacity: .45;
}

.catalog-menu-button:hover {
  transform: translateY(-1px);

  border-color:
    rgba(181, 190, 255, .35);

  box-shadow:
    0 15px 40px rgba(53, 48, 160, .27),
    inset 0 1px 0 rgba(255,255,255,.16);
}


/* =========================================================
   SEARCH — BLACK BLUE GLASS
========================================================= */

.search-wrap {
  position: relative;

  border:
    1px solid rgba(179, 192, 255, .14);

  border-radius: 18px;

  background:
    linear-gradient(
      135deg,
      rgba(18, 23, 45, .66),
      rgba(12, 14, 29, .53)
    );

  backdrop-filter:
    blur(30px)
    saturate(150%);

  -webkit-backdrop-filter:
    blur(30px)
    saturate(150%);

  box-shadow:
    0 14px 40px rgba(0,0,0,.20),
    inset 0 1px 0 rgba(255,255,255,.055);

  transition:
    border-color .22s ease,
    box-shadow .22s ease,
    background .22s ease;
}

.search-wrap:focus-within {
  border-color:
    rgba(132, 145, 255, .32);

  background:
    linear-gradient(
      135deg,
      rgba(21, 28, 56, .75),
      rgba(14, 15, 34, .64)
    );

  box-shadow:
    0 15px 45px rgba(23, 31, 110, .25),
    0 0 0 3px rgba(90, 94, 225, .055),
    inset 0 1px 0 rgba(255,255,255,.075);
}


/* Prevent double borders if input had its own */

.search-wrap input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}


/* =========================================================
   HERO — DEEP GLASS
========================================================= */

.hero-card {
  position: relative;

  overflow: hidden;

  border:
    1px solid rgba(177, 190, 255, .13);

  background:
    radial-gradient(
      700px 500px at 90% 20%,
      rgba(93, 62, 190, .12),
      transparent 65%
    ),
    linear-gradient(
      145deg,
      rgba(12, 16, 34, .80),
      rgba(7, 9, 18, .72)
    );

  backdrop-filter:
    blur(28px)
    saturate(140%);

  -webkit-backdrop-filter:
    blur(28px)
    saturate(140%);

  box-shadow:
    0 30px 80px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.055);
}

.hero-card::before {
  content: "";

  position: absolute;
  z-index: 0;

  top: -35%;
  right: -12%;

  width: 60%;
  height: 85%;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(91, 76, 255, .15),
      rgba(116, 50, 192, .06) 45%,
      transparent 70%
    );

  filter: blur(25px);

  pointer-events: none;
}


/* =========================================================
   STOREFRONT — GLASS CARDS
========================================================= */

.store-tile {
  isolation: isolate;

  border:
    1px solid var(--glass-border);

  background:
    radial-gradient(
      500px 300px at 105% -10%,
      rgba(83, 85, 225, .13),
      transparent 60%
    ),
    linear-gradient(
      145deg,
      rgba(16, 20, 39, .67),
      rgba(9, 11, 22, .58)
    );

  backdrop-filter:
    blur(26px)
    saturate(145%);

  -webkit-backdrop-filter:
    blur(26px)
    saturate(145%);

  box-shadow: var(--glass-shadow);
}

.store-tile::before {
  content: "";

  position: absolute;
  z-index: -1;

  left: 8%;
  right: 8%;
  top: 0;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(218,224,255,.42),
      transparent
    );

  opacity: .45;
}

.store-tile::after {
  content: "";

  position: absolute;
  z-index: -2;

  width: 180px;
  height: 180px;

  right: -80px;
  bottom: -95px;

  border-radius: 50%;

  background:
    rgba(81, 74, 255, .12);

  filter: blur(50px);

  pointer-events: none;
}


/* Alternate violet cards */

.store-tile:nth-child(2n) {
  background:
    radial-gradient(
      450px 280px at 105% 0%,
      rgba(141, 64, 203, .14),
      transparent 60%
    ),
    linear-gradient(
      145deg,
      rgba(19, 17, 39, .68),
      rgba(10, 10, 22, .58)
    );
}

.store-tile:nth-child(3n)::after {
  background:
    rgba(145, 60, 204, .12);
}


/* Hover */

.store-tile:hover {
  transform: translateY(-4px);

  border-color:
    var(--glass-border-hover);

  background:
    radial-gradient(
      500px 300px at 105% -10%,
      rgba(92, 92, 242, .19),
      transparent 62%
    ),
    linear-gradient(
      145deg,
      rgba(20, 24, 48, .76),
      rgba(11, 12, 27, .66)
    );

  box-shadow:
    0 28px 70px rgba(0,0,0,.40),
    0 0 40px rgba(67,61,195,.055),
    inset 0 1px 0 rgba(255,255,255,.085);
}


/* Text */

.store-tile-label,
.showcase-kicker {
  color:
    rgba(181, 190, 226, .58);
}

.store-tile p {
  color:
    rgba(218, 222, 239, .48);
}

.store-tile-link {
  color:
    rgba(244, 245, 255, .78);
}


/* =========================================================
   CATALOG MEGA MENU — SAME GLASS MATERIAL
========================================================= */

.catalog-overlay {
  background:
    rgba(3, 4, 10, .69);

  backdrop-filter:
    blur(15px)
    saturate(125%);

  -webkit-backdrop-filter:
    blur(15px)
    saturate(125%);
}

.catalog-mega {
  border:
    1px solid rgba(183, 194, 255, .13);

  background:
    radial-gradient(
      900px 550px at 90% 0%,
      rgba(105, 59, 193, .14),
      transparent 65%
    ),
    linear-gradient(
      145deg,
      rgba(14, 18, 36, .92),
      rgba(7, 9, 18, .90)
    );

  backdrop-filter:
    blur(35px)
    saturate(150%);

  -webkit-backdrop-filter:
    blur(35px)
    saturate(150%);

  box-shadow:
    0 35px 100px rgba(0,0,0,.58),
    inset 0 1px 0 rgba(255,255,255,.055);
}

.catalog-mega-brand {
  border:
    1px solid rgba(180, 192, 255, .085);

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.032),
      rgba(92,82,190,.025)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025);
}

.catalog-mega-brand:hover {
  border-color:
    rgba(181, 192, 255, .20);

  background:
    linear-gradient(
      135deg,
      rgba(86, 98, 205, .10),
      rgba(119, 60, 173, .07)
    );
}


/* =========================================================
   MOBILE POLISH
========================================================= */

@media (max-width: 620px) {

  .header {
    background:
      linear-gradient(
        180deg,
        rgba(12, 16, 37, .88),
        rgba(8, 10, 23, .73)
      );
  }

  .header-actions {
    margin-top: 17px;
  }

  /*
   * Burger alignment:
   * previous +6 was slightly too much visually.
   */

  .catalog-menu-button {
    top: 4px;

    border-color:
      rgba(158, 169, 255, .22);

    box-shadow:
      0 12px 32px rgba(48, 43, 144, .25),
      inset 0 1px 0 rgba(255,255,255,.12);
  }

  .search-wrap {
    top: 0;

    border-color:
      rgba(172, 185, 255, .14);
  }

  .store-tile {
    box-shadow:
      0 15px 38px rgba(0,0,0,.23),
      inset 0 1px 0 rgba(255,255,255,.045);
  }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .store-tile,
  .catalog-menu-button,
  .search-wrap {
    transition: none;
  }
}



/* =========================================================
   STOREFRONT PRODUCT ART V1
========================================================= */

.store-tile-art {
  position: absolute;

  z-index: 1;

  right: 0;
  bottom: 0;

  width: 48%;
  height: 100%;

  pointer-events: none;

  background: none;
}

.store-tile-art::before {
  content: "";

  position: absolute;

  z-index: -1;

  width: 75%;
  aspect-ratio: 1;

  left: 50%;
  top: 52%;

  transform: translate(-50%, -50%);

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(100, 79, 255, .20),
      rgba(92, 58, 190, .08) 42%,
      transparent 70%
    );

  filter: blur(22px);
}

.store-tile-art img {
  position: absolute;

  display: block;

  object-fit: contain;

  filter:
    drop-shadow(0 22px 30px rgba(0,0,0,.40));

  transition:
    transform .35s cubic-bezier(.2,.8,.2,1),
    filter .35s ease;
}

.store-tile:hover .store-tile-art img {
  filter:
    drop-shadow(0 26px 38px rgba(0,0,0,.48));
}


/* ======================
   iPHONE
====================== */

.store-art-iphone img {
  width: 78%;
  height: 92%;

  right: 5%;
  bottom: -4%;

  transform:
    rotate(-4deg)
    scale(1);
}

.store-tile:hover .store-art-iphone img {
  transform:
    rotate(-2deg)
    scale(1.045);
}


/* ======================
   AIRPODS / ACCESSORIES
====================== */

.store-art-accessories img {
  width: 72%;
  height: 80%;

  right: 7%;
  bottom: -2%;

  transform:
    rotate(5deg)
    scale(1);
}

.store-tile:hover .store-art-accessories img {
  transform:
    rotate(3deg)
    scale(1.06);
}


/* ======================
   SAMSUNG
====================== */

.store-art-samsung {
  width: 52%;
  height: 88%;

  right: -3%;
  bottom: -5%;
}

.store-art-samsung img {
  width: 90%;
  height: 100%;

  right: -4%;
  bottom: -5%;

  transform:
    rotate(7deg)
    scale(.95);
}

.store-tile:hover .store-art-samsung img {
  transform:
    rotate(4deg)
    scale(1);
}


/* ======================
   AUDIO — AIRPODS MAX
====================== */

.store-art-audio {
  width: 49%;
}

.store-art-audio img {
  width: 82%;
  height: 88%;

  right: 2%;
  bottom: -2%;

  transform:
    rotate(-6deg);
}

.store-tile:hover .store-art-audio img {
  transform:
    rotate(-3deg)
    scale(1.05);
}


/* ======================
   iPAD
====================== */

.store-art-ipad {
  width: 50%;
}

.store-art-ipad img {
  width: 88%;
  height: 91%;

  right: -1%;
  bottom: -5%;

  transform:
    rotate(6deg)
    scale(.94);
}

.store-tile:hover .store-art-ipad img {
  transform:
    rotate(4deg)
    scale(.99);
}


/* ======================
   PLAYSTATION 5 PRO
====================== */

.store-art-gaming {
  width: 52%;
  height: 94%;

  right: -3%;
  bottom: -5%;
}

.store-art-gaming img {
  width: 86%;
  height: 100%;

  right: -3%;
  bottom: -7%;

  transform:
    rotate(-3deg)
    scale(.96);
}

.store-tile:hover .store-art-gaming img {
  transform:
    rotate(-1deg)
    scale(1.02);
}


/* ======================
   GOPRO
====================== */

.store-art-photo {
  width: 54%;
  height: 88%;

  right: -4%;
  bottom: -3%;
}

.store-art-photo img {
  width: 88%;
  height: 92%;

  right: -3%;
  bottom: -4%;

  transform:
    rotate(5deg)
    scale(.94);
}

.store-tile:hover .store-art-photo img {
  transform:
    rotate(2deg)
    scale(1.01);
}


/* Keep copy above products */

.store-tile-copy {
  position: relative;
  z-index: 3;
}

.store-tile-arrow {
  z-index: 4;
}


/* =========================================================
   MOBILE PRODUCT ART
========================================================= */

@media (max-width: 620px) {

  /* Big iPhone / Accessories */

  .store-tile:nth-child(1) .store-tile-copy,
  .store-tile:nth-child(2) .store-tile-copy {
    max-width: 55%;
  }

  .store-art-iphone,
  .store-art-accessories {
    width: 48%;
    height: 94%;

    right: 0;
    bottom: 0;
  }

  .store-art-iphone img {
    width: 92%;
    height: 94%;

    right: -3%;
    bottom: -4%;
  }

  .store-art-accessories img {
    width: 88%;
    height: 82%;

    right: 0;
    bottom: 0;
  }


  /* Small cards */

  .store-tile:not(:nth-child(1)):not(:nth-child(2))
  .store-tile-art {
    width: 60%;
    height: 68%;

    right: -8%;
    bottom: -4%;

    opacity: .94;
  }

  .store-tile:not(:nth-child(1)):not(:nth-child(2))
  .store-tile-art img {
    width: 100%;
    height: 100%;

    right: 0;
    bottom: 0;
  }


  /* Leave readable area */

  .store-tile:not(:nth-child(1)):not(:nth-child(2))
  .store-tile-copy {
    max-width: 75%;
  }

}


/* =========================================================
   STOREFRONT ART SCALE FIX V2
========================================================= */

/* iPhone — показываем аппарат почти целиком */
.store-art-iphone img {
  width: 58%;
  height: 88%;
  right: 8%;
  bottom: 2%;
  transform: rotate(-5deg) scale(.88);
}

/* AirPods — меньше и с воздухом */
.store-art-accessories img {
  width: 58%;
  height: 72%;
  right: 5%;
  bottom: 2%;
  transform: rotate(3deg) scale(.88);
}

/* Samsung — телефон почти целиком */
.store-art-samsung {
  width: 48%;
  height: 92%;
  right: 0;
  bottom: 0;
}

.store-art-samsung img {
  width: 68%;
  height: 90%;
  right: 2%;
  bottom: -2%;
  transform: rotate(5deg) scale(.86);
}

/* AirPods Max */
.store-art-audio img {
  width: 64%;
  height: 78%;
  right: 5%;
  bottom: 1%;
  transform: rotate(-5deg) scale(.88);
}

/* iPad */
.store-art-ipad img {
  width: 70%;
  height: 82%;
  right: 4%;
  bottom: 1%;
  transform: rotate(5deg) scale(.88);
}

/* PS5 */
.store-art-gaming img {
  width: 66%;
  height: 88%;
  right: 3%;
  bottom: -2%;
  transform: rotate(-2deg) scale(.90);
}

/* GoPro */
.store-art-photo img {
  width: 66%;
  height: 78%;
  right: 5%;
  bottom: 2%;
  transform: rotate(4deg) scale(.90);
}


/* MOBILE — отдельный масштаб */
@media (max-width: 620px) {

  .store-art-iphone img {
    width: 76%;
    height: 88%;
    right: 2%;
    bottom: 0;
    transform: rotate(-4deg) scale(.90);
  }

  .store-art-accessories img {
    width: 72%;
    height: 72%;
    right: 0;
    bottom: 0;
    transform: rotate(3deg) scale(.90);
  }

  .store-art-samsung img,
  .store-art-audio img,
  .store-art-ipad img,
  .store-art-gaming img,
  .store-art-photo img {
    width: 78% !important;
    height: 82% !important;
    right: -1% !important;
    bottom: -2% !important;
  }
}


/* =========================================================
   STOREFRONT ART POSITIONING V3
   Art layer = entire card
========================================================= */

.store-tile-art,
.store-art-iphone,
.store-art-accessories,
.store-art-samsung,
.store-art-audio,
.store-art-ipad,
.store-art-gaming,
.store-art-photo {
  position: absolute !important;

  width: 100% !important;
  height: 100% !important;

  left: 0 !important;
  right: auto !important;
  top: 0 !important;
  bottom: auto !important;

  overflow: hidden;

  pointer-events: none;
}


/* Glow remains behind product */

.store-tile-art::before {
  width: 38%;
  left: 78%;
  top: 55%;

  opacity: .75;
}


/* Base image reset */

.store-tile-art img {
  position: absolute !important;

  width: auto !important;
  max-width: none !important;

  object-fit: contain !important;

  margin: 0 !important;
}


/* -----------------------
   iPhone
----------------------- */

.store-art-iphone img {
  height: 82% !important;

  right: 5% !important;
  left: auto !important;

  top: 9% !important;
  bottom: auto !important;

  transform: rotate(-3deg) !important;
}


/* -----------------------
   Accessories / AirPods
----------------------- */

.store-art-accessories img {
  height: 68% !important;

  right: 4% !important;
  left: auto !important;

  top: 18% !important;
  bottom: auto !important;

  transform: rotate(2deg) !important;
}


/* -----------------------
   Samsung
----------------------- */

.store-art-samsung img {
  height: 82% !important;

  right: 4% !important;
  left: auto !important;

  top: 10% !important;
  bottom: auto !important;

  transform: rotate(3deg) !important;
}


/* -----------------------
   AirPods Max
----------------------- */

.store-art-audio img {
  height: 76% !important;

  right: 5% !important;
  left: auto !important;

  top: 12% !important;
  bottom: auto !important;

  transform: rotate(-3deg) !important;
}


/* -----------------------
   iPad
----------------------- */

.store-art-ipad img {
  height: 78% !important;

  right: 5% !important;
  left: auto !important;

  top: 11% !important;
  bottom: auto !important;

  transform: rotate(3deg) !important;
}


/* -----------------------
   PS5
----------------------- */

.store-art-gaming img {
  height: 84% !important;

  right: 5% !important;
  left: auto !important;

  top: 8% !important;
  bottom: auto !important;

  transform: rotate(-2deg) !important;
}


/* -----------------------
   GoPro
----------------------- */

.store-art-photo img {
  height: 68% !important;

  right: 7% !important;
  left: auto !important;

  top: 16% !important;
  bottom: auto !important;

  transform: rotate(2deg) !important;
}


/* Text always above artwork */

.store-tile-copy {
  position: relative;
  z-index: 5;
}

.store-tile-arrow {
  position: absolute;
  z-index: 6;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 620px) {

  .store-tile-art,
  .store-tile:not(:nth-child(1)):not(:nth-child(2)) .store-tile-art {
    width: 100% !important;
    height: 100% !important;

    left: 0 !important;
    right: auto !important;
    top: 0 !important;
    bottom: auto !important;

    opacity: 1;
  }

  .store-art-iphone img {
    height: 72% !important;
    right: -1% !important;
    top: 14% !important;
  }

  .store-art-accessories img {
    height: 58% !important;
    right: 0 !important;
    top: 23% !important;
  }

  .store-art-samsung img {
    height: 64% !important;
    right: -4% !important;
    top: 29% !important;
  }

  .store-art-audio img {
    height: 62% !important;
    right: -5% !important;
    top: 31% !important;
  }

  .store-art-ipad img {
    height: 62% !important;
    right: -5% !important;
    top: 31% !important;
  }

  .store-art-gaming img {
    height: 70% !important;
    right: -3% !important;
    top: 25% !important;
  }

  .store-art-photo img {
    height: 57% !important;
    right: -3% !important;
    top: 35% !important;
  }
}



/* =========================================================
   STOREFRONT 12 — FINAL ART SYSTEM
========================================================= */

.store-tile {
  isolation: isolate;
  overflow: hidden;
}

/* Art занимает всю карточку */

.store-tile-art,
.store-art-iphone,
.store-art-accessories,
.store-art-samsung,
.store-art-xiaomi,
.store-art-nothing,
.store-art-audio,
.store-art-watch,
.store-art-ipad,
.store-art-mac,
.store-art-gaming,
.store-art-dyson,
.store-art-photo {
  position: absolute !important;

  inset: 0 !important;

  width: 100% !important;
  height: 100% !important;

  pointer-events: none;
  overflow: hidden;

  z-index: 1;
}


/* Убираем старый искусственный glow.
   Он уже нарисован внутри новых артов. */

.store-tile-art::before {
  display: none !important;
}


/* Единая геометрия новых PNG */

.store-tile-art img {
  position: absolute !important;

  width: auto !important;
  max-width: none !important;

  height: 82% !important;

  right: 2% !important;
  left: auto !important;

  top: 50% !important;
  bottom: auto !important;

  object-fit: contain !important;

  transform:
    translateY(-50%)
    rotate(0deg)
    scale(1) !important;

  transform-origin: center center;

  filter:
    drop-shadow(0 24px 34px rgba(0,0,0,.30));

  transition:
    transform .45s cubic-bezier(.2,.8,.2,1),
    filter .45s ease;

  user-select: none;
}


/* Большие карточки */

.store-tile-wide .store-tile-art img {
  height: 88% !important;
  right: 3% !important;
}


/* Маленькие карточки */

.store-tile-third .store-tile-art img {
  height: 74% !important;
  right: 0 !important;
  top: 57% !important;
}


/* Текст всегда сверху */

.store-tile-copy {
  position: relative !important;
  z-index: 5 !important;

  max-width: 55%;
}

.store-tile-arrow,
.store-tile-link {
  position: relative;
  z-index: 6;
}


/* Лёгкий hover уже готов под будущую анимацию */

@media (hover: hover) {

  .store-tile:hover .store-tile-art img {
    transform:
      translateY(-52%)
      scale(1.045) !important;

    filter:
      drop-shadow(0 30px 42px rgba(0,0,0,.38));
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 620px) {

  .store-tile-art,
  .store-tile:not(:nth-child(1)):not(:nth-child(2)) .store-tile-art {
    position: absolute !important;

    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    opacity: 1 !important;
  }

  .store-tile-art img,
  .store-tile:not(:nth-child(1)):not(:nth-child(2))
  .store-tile-art img {

    width: auto !important;
    max-width: none !important;

    height: 68% !important;

    right: -3% !important;
    left: auto !important;

    top: 60% !important;
    bottom: auto !important;

    transform:
      translateY(-50%)
      rotate(0deg)
      scale(1) !important;
  }


  /* Две главные карточки */

  .store-tile:nth-child(1) .store-tile-art img,
  .store-tile:nth-child(2) .store-tile-art img {
    height: 70% !important;
    right: -2% !important;
    top: 61% !important;
  }


  /* Не даём арту залезать под заголовок */

  .store-tile-copy {
    max-width: 62% !important;
  }

}


/* =========================================================
   STOREFRONT CLEAN + MOTION V1
========================================================= */

.store-tile {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

/* Чуть прячем края исходных нарезок */
.store-tile-art {
  inset: 5px !important;
  width: calc(100% - 10px) !important;
  height: calc(100% - 10px) !important;
  border-radius: inherit;
  overflow: hidden !important;
}

/* Мягкое парение товара */
@keyframes storefrontFloat {
  0%, 100% {
    transform: translateY(-50%) translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translateY(-50%) translate3d(0, -7px, 0) scale(1.015);
  }
}

.store-tile-art img {
  animation: storefrontFloat 6s ease-in-out infinite;
  will-change: transform;
}

/* Карточки двигаются не синхронно */
.store-tile:nth-child(2n) .store-tile-art img {
  animation-delay: -1.5s;
}

.store-tile:nth-child(3n) .store-tile-art img {
  animation-delay: -3s;
}

.store-tile:nth-child(4n) .store-tile-art img {
  animation-delay: -4.5s;
}


/* Стеклянный блик */
.store-tile::after {
  content: "";

  position: absolute;
  z-index: 2;

  width: 45%;
  height: 180%;

  top: -40%;
  left: -70%;

  pointer-events: none;

  background: linear-gradient(
    110deg,
    transparent 15%,
    rgba(255,255,255,.015) 35%,
    rgba(130,145,255,.10) 48%,
    rgba(255,255,255,.035) 55%,
    transparent 72%
  );

  transform: rotate(12deg);

  transition:
    left .8s cubic-bezier(.2,.8,.2,1),
    opacity .4s ease;

  opacity: .65;
}


/* Desktop interaction */
@media (hover: hover) {

  .store-tile {
    transition:
      transform .35s cubic-bezier(.2,.8,.2,1),
      border-color .35s ease,
      box-shadow .35s ease;
  }

  .store-tile:hover {
    transform: translateY(-4px);

    border-color: rgba(137,122,255,.34);

    box-shadow:
      0 24px 70px rgba(0,0,0,.30),
      0 0 40px rgba(91,66,255,.08),
      inset 0 1px 0 rgba(255,255,255,.08);
  }

  .store-tile:hover::after {
    left: 125%;
  }

  /* hover управляет контейнером,
     поэтому float картинки не ломаем */
  .store-tile:hover .store-tile-art {
    transform: scale(1.015);
  }
}


/* Нажатие */
.store-tile:active {
  transform: scale(.985);
}


/* Mobile — движение спокойнее */
@media (max-width: 620px) {

  @keyframes storefrontFloat {
    0%, 100% {
      transform: translateY(-50%) translate3d(0, 0, 0) scale(1);
    }

    50% {
      transform: translateY(-50%) translate3d(0, -4px, 0) scale(1.008);
    }
  }

  .store-tile-art {
    inset: 4px !important;
    width: calc(100% - 8px) !important;
    height: calc(100% - 8px) !important;
  }
}


/* Accessibility / battery */
@media (prefers-reduced-motion: reduce) {

  .store-tile-art img {
    animation: none !important;
  }

  .store-tile,
  .store-tile::after,
  .store-tile-art {
    transition: none !important;
  }
}


/* ===== STOREFRONT ART V2 ===== */

.store-tile-art {
  position: absolute;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-tile-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* большие карточки */
.store-tile-wide .store-tile-art {
  width: 48%;
  height: 88%;
  right: 1.5%;
  bottom: 0;
}

/* маленькие карточки */
.store-tile-third .store-tile-art {
  width: 47%;
  height: 82%;
  right: 1%;
  bottom: 0;
}

/* средние */
.store-tile-medium .store-tile-art {
  width: 48%;
  height: 88%;
  right: 1%;
  bottom: 0;
}

/* Никакого растягивания отдельных изображений */
.store-art-iphone img,
.store-art-accessories img,
.store-art-samsung img,
.store-art-audio img,
.store-art-ipad img,
.store-art-gaming img,
.store-art-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* MOBILE */
@media (max-width: 700px) {
  .store-tile-wide .store-tile-art,
  .store-tile-medium .store-tile-art {
    width: 48%;
    height: 67%;
    right: 0;
    bottom: 2%;
  }

  .store-tile-third .store-tile-art {
    width: 64%;
    height: 58%;
    right: -5%;
    bottom: 0;
  }

  .store-tile-art img {
    object-fit: contain;
  }
}


/* Accessories — опускаем композицию ниже */
.store-art-accessories {
  transform: translateY(18px);
}


/* Samsung / Xiaomi / Nothing — опускаем арт */
.store-art-samsung,
.store-art-xiaomi,
.store-art-nothing {
  transform: translateY(14px);
}


/* iPad — опускаем арт */
.store-art-ipad {
  transform: translateY(16px);
}


/* Hero — опускаем арт немного ниже */
@media (min-width: 701px) {
  .hero-image {
    transform: translateY(18px);
  }
}


/* ===== Catalog navigation subtitles ===== */

.catalog-mega-nav-item {
  min-height: 64px;
  height: auto;
  padding: 12px 14px;
  align-items: center;
}

.catalog-nav-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
  text-align: left;
}

.catalog-nav-text strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
}

.catalog-nav-text small {
  display: block;
  max-width: 190px;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.3;
  opacity: 0.48;
  white-space: normal;
}

.catalog-nav-arrow {
  flex: 0 0 auto;
  margin-left: 10px;
  opacity: 0.45;
}

.catalog-mega-nav-item.active .catalog-nav-text small {
  opacity: 0.7;
}



/* =========================================================
   MODEL CARDS WITH IMAGES V1
========================================================= */

.model-card {
  position: relative;
  min-height: 245px;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  align-items: stretch;

  padding: 0;
}

.model-card-image-wrap {
  width: 100%;
  height: 165px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 18px 22px 8px;

  overflow: hidden;
}

.model-card-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;

  transition:
    transform .25s ease,
    opacity .25s ease;
}

.model-card:hover .model-card-image {
  transform: scale(1.045);
}

.model-card-image-placeholder {
  width: 100%;
  height: 100%;
}

.model-card-info {
  width: 100%;

  padding: 8px 20px 20px;

  text-align: left;
}

.model-card-info h3 {
  margin: 0 0 7px;
}

.model-card-info p {
  margin: 0;
}

.model-card-arrow {
  position: absolute;

  right: 18px;
  bottom: 19px;

  opacity: .35;
}

@media (max-width: 700px) {

  .model-card {
    min-height: 205px;
  }

  .model-card-image-wrap {
    height: 130px;

    padding:
      14px
      15px
      5px;
  }

  .model-card-info {
    padding:
      7px
      15px
      16px;
  }

  .model-card-arrow {
    right: 14px;
    bottom: 15px;
  }
}



/* =========================================================
   PRODUCT CARDS V2
========================================================= */

.product-card {
  display: flex;
  flex-direction: column;

  padding: 10px;

  border-radius: 22px;
}

.product-card-image-wrap {
  position: relative;

  width: 100%;
  height: 245px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  padding: 14px;

  border-radius: 17px;

  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(255,255,255,.075),
      rgba(255,255,255,.018) 68%
    );
}

.product-card .product-image {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;

  margin: 0;
  padding: 0;

  border-radius: 0;
  background: transparent;

  transition: transform .28s ease;
}

.product-card:hover .product-image {
  transform: scale(1.035);
}

.product-image-placeholder {
  width: 100%;
  height: 100%;
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;

  padding: 17px 8px 8px;
}

.product-card .product-top h3 {
  margin: 0;

  font-size: 16px;
  line-height: 1.35;

  font-weight: 720;
}

.product-card-meta {
  min-height: 29px;

  display: flex;
  align-items: center;
  gap: 7px;

  margin-top: 10px;
}

.product-region {
  display: inline-flex;
  align-items: center;

  min-height: 25px;

  padding: 5px 9px;

  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;

  background: rgba(255,255,255,.035);

  color: rgba(235,238,248,.58);

  font-size: 11px;
  font-weight: 650;
  line-height: 1;
}

.product-card .price {
  margin-top: 13px;

  font-size: 23px;
  line-height: 1;

  font-weight: 820;
}

.product-card .primary {
  margin-top: 19px;

  padding: 14px 16px;

  border-radius: 13px;
}

@media (max-width: 1050px) {

  .product-card-image-wrap {
    height: 215px;
  }

}

@media (max-width: 700px) {

  .product-card {
    padding: 7px;

    border-radius: 18px;
  }

  .product-card-image-wrap {
    height: 175px;

    padding: 9px;

    border-radius: 14px;
  }

  .product-card-body {
    padding: 13px 6px 6px;
  }

  .product-card .product-top h3 {
    font-size: 14px;
  }

  .product-card .price {
    font-size: 19px;
  }

  .product-card .primary {
    margin-top: 15px;

    padding: 12px 10px;
  }

}



/* =========================================================
   SHOPPING CART V1
========================================================= */

.cart-button {
  position: relative;

  min-height: 48px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 0 16px;

  border: 1px solid rgba(255,255,255,.09);
  border-radius: 15px;

  background: rgba(255,255,255,.035);

  color: rgba(245,246,250,.90);

  font-size: 12px;
  font-weight: 700;

  transition:
    transform .2s ease,
    border-color .2s ease,
    background .2s ease;
}

.cart-button:hover {
  transform: translateY(-1px);

  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.065);
}

.cart-button-icon {
  font-size: 15px;
}

.cart-count {
  min-width: 20px;
  height: 20px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 6px;

  border-radius: 999px;

  background: #f3f5fb;
  color: #080a10;

  font-size: 10px;
  font-weight: 850;
}

.cart-button.cart-added {
  animation: cartButtonPulse .35s ease;
}

@keyframes cartButtonPulse {
  50% {
    transform: scale(1.06);
  }
}


/* CART MODAL */

.cart-modal-card {
  position: relative;

  width: min(680px, 100%);
  max-height: calc(100vh - 48px);

  overflow-y: auto;

  padding: 28px;

  border: 1px solid rgba(255,255,255,.09);
  border-radius: 28px;

  background:
    linear-gradient(
      145deg,
      rgba(18,20,31,.98),
      rgba(12,14,23,.98)
    );

  box-shadow:
    0 35px 100px rgba(0,0,0,.55);
}

.cart-close {
  position: absolute;

  top: 18px;
  right: 18px;

  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 50%;

  background: rgba(255,255,255,.07);
  color: rgba(245,246,250,.82);

  font-size: 22px;
}

.cart-modal-head {
  padding-right: 50px;
  margin-bottom: 24px;
}

.cart-modal-head h2 {
  margin: 5px 0 5px;

  font-size: 30px;
  letter-spacing: -.04em;
}

.cart-modal-head > p:last-child {
  margin: 0;

  color: var(--muted);

  font-size: 13px;
}


/* ITEMS */

.cart-items {
  display: grid;
  gap: 10px;
}

.cart-item {
  display: grid;

  grid-template-columns: 100px minmax(0,1fr);

  gap: 16px;

  padding: 12px;

  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;

  background: rgba(255,255,255,.025);
}

.cart-item-image {
  width: 100px;
  height: 100px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  padding: 7px;

  border-radius: 13px;

  background: rgba(255,255,255,.035);
}

.cart-item-image img {
  width: 100%;
  height: 100%;

  object-fit: contain;
}

.cart-item-main {
  min-width: 0;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 12px;
}

.cart-item-heading h3 {
  margin: 3px 0 6px;

  font-size: 15px;
  line-height: 1.3;
}

.cart-item-heading p {
  margin: 0;

  color: var(--muted);

  font-size: 11px;
}

.cart-remove {
  flex: 0 0 auto;

  width: 28px;
  height: 28px;

  border: 0;
  border-radius: 9px;

  background: rgba(255,255,255,.045);
  color: rgba(235,238,248,.45);

  font-size: 18px;
}

.cart-remove:hover {
  color: #fff;

  background: rgba(255,255,255,.08);
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 14px;

  margin-top: 14px;
}

.cart-item-bottom strong {
  font-size: 16px;
  white-space: nowrap;
}


/* QUANTITY */

.cart-quantity {
  display: inline-grid;

  grid-template-columns: 30px 34px 30px;

  align-items: center;

  overflow: hidden;

  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;

  background: rgba(255,255,255,.025);
}

.cart-quantity button {
  height: 30px;

  border: 0;

  background: transparent;
  color: rgba(245,246,250,.72);

  font-size: 16px;
}

.cart-quantity button:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
}

.cart-quantity span {
  text-align: center;

  font-size: 12px;
  font-weight: 750;
}


/* TOTAL */

.cart-footer {
  margin-top: 22px;
  padding-top: 20px;

  border-top: 1px solid rgba(255,255,255,.07);
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 18px;
}

.cart-total-row span {
  color: var(--muted);

  font-size: 13px;
}

.cart-total-row strong {
  font-size: 27px;

  letter-spacing: -.035em;
}

.cart-checkout {
  margin-top: 0;
}


/* EMPTY */

.cart-empty {
  padding: 55px 20px;

  text-align: center;
}

.cart-empty-icon {
  margin-bottom: 15px;

  font-size: 30px;

  opacity: .65;
}

.cart-empty h3 {
  margin: 0 0 7px;

  font-size: 18px;
}

.cart-empty p {
  margin: 0;

  color: var(--muted);

  font-size: 12px;
}


/* ADD BUTTON FEEDBACK */

.product-card .add-to-cart.added {
  background: rgba(232,235,244,.82);
}


/* MOBILE */

@media (max-width: 700px) {

  .cart-button {
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;

    padding: 0;

    border-radius: 14px;
  }

  .cart-button-text {
    display: none;
  }

  .cart-count {
    position: absolute;

    top: -5px;
    right: -5px;

    min-width: 18px;
    height: 18px;

    padding: 0 5px;

    border: 2px solid #080a10;
  }

  .cart-modal-card {
    width: 100%;
    max-height: calc(100vh - 20px);

    padding: 22px 15px 18px;

    border-radius: 23px 23px 0 0;

    align-self: flex-end;
  }

  .cart-modal-head h2 {
    font-size: 26px;
  }

  .cart-item {
    grid-template-columns: 76px minmax(0,1fr);

    gap: 11px;

    padding: 9px;
  }

  .cart-item-image {
    width: 76px;
    height: 76px;
  }

  .cart-item-heading h3 {
    font-size: 13px;
  }

  .cart-item-bottom {
    align-items: flex-end;
  }

  .cart-item-bottom strong {
    font-size: 14px;
  }

  .cart-quantity {
    grid-template-columns: 27px 29px 27px;
  }

  .cart-total-row strong {
    font-size: 23px;
  }

}



/* =========================================================
   INLINE PRODUCT CART CONTROL V1
========================================================= */

.product-cart-control {
  width: 100%;

  margin-top: 19px;
}

.product-cart-control .primary {
  margin-top: 0;
}

.product-quantity-control {
  width: 100%;
  height: 47px;

  display: grid;

  grid-template-columns:
    54px
    minmax(0,1fr)
    54px;

  align-items: center;

  overflow: hidden;

  border: 1px solid rgba(255,255,255,.16);
  border-radius: 13px;

  background: rgba(255,255,255,.045);
}

.product-quantity-control button {
  height: 100%;

  border: 0;

  background: transparent;
  color: rgba(245,246,250,.92);

  font-size: 21px;
  font-weight: 500;

  transition:
    background .18s ease,
    color .18s ease;
}

.product-quantity-control button:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.product-quantity-minus {
  border-right:
    1px solid rgba(255,255,255,.07) !important;
}

.product-quantity-plus {
  border-left:
    1px solid rgba(255,255,255,.07) !important;
}

.product-quantity-value {
  text-align: center;

  color: #fff;

  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 700px) {

  .product-cart-control {
    margin-top: 15px;
  }

  .product-quantity-control {
    height: 43px;

    grid-template-columns:
      45px
      minmax(0,1fr)
      45px;
  }

  .product-quantity-control button {
    font-size: 19px;
  }

}


/* ===== COMPACT PRODUCT QUANTITY V2 ===== */

.product-cart-control {
  display: flex;
  justify-content: center;

  margin-top: 16px;
}

.product-quantity-control {
  width: 138px;
  height: 38px;

  grid-template-columns: 40px 58px 40px;

  flex: 0 0 auto;

  border-radius: 11px;

  background: rgba(255,255,255,.035);
}

.product-quantity-control button {
  font-size: 17px;
}

.product-quantity-value {
  font-size: 13px;
  font-weight: 750;
}

@media (max-width: 700px) {

  .product-cart-control {
    margin-top: 13px;
  }

  .product-quantity-control {
    width: 126px;
    height: 36px;

    grid-template-columns: 37px 52px 37px;
  }

  .product-quantity-control button {
    font-size: 16px;
  }

}



/* =========================================================
   PRODUCT CART CONTROL V3 — STEPPER + TRASH
========================================================= */

.product-cart-control {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-top: 16px;
}

.product-cart-active {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  animation: productCartEnter .28s cubic-bezier(.2,.8,.2,1);
}

@keyframes productCartEnter {
  from {
    opacity: 0;
    transform: translateX(18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}


/* STEPPER */

.product-cart-active .product-quantity-control {
  width: 124px;
  height: 38px;

  grid-template-columns: 36px 52px 36px;

  border-radius: 11px;
}

.product-cart-active .product-quantity-control button {
  font-size: 16px;
}

.product-cart-active .product-quantity-value {
  font-size: 13px;
  font-weight: 750;
}

.product-cart-active .product-quantity-minus:disabled {
  cursor: default;

  opacity: .25;
}

.product-cart-active .product-quantity-minus:disabled:hover {
  background: transparent;
}


/* DELETE */

.product-cart-remove {
  width: 38px;
  height: 38px;

  flex: 0 0 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 1px solid rgba(255,80,90,.22);
  border-radius: 11px;

  background: rgba(255,65,75,.08);
  color: rgba(255,95,105,.88);

  transition:
    transform .18s ease,
    background .18s ease,
    border-color .18s ease,
    color .18s ease;
}

.product-cart-remove svg {
  width: 16px;
  height: 16px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-cart-remove:hover {
  transform: translateY(-1px);

  border-color: rgba(255,80,90,.38);

  background: rgba(255,65,75,.15);
  color: rgb(255,105,115);
}

.product-cart-remove:active {
  transform: scale(.94);
}


/* REMOVE ANIMATION */

.product-cart-active.is-removing {
  pointer-events: none;

  animation: productCartRemove .18s ease forwards;
}

@keyframes productCartRemove {
  to {
    opacity: 0;
    transform: translateX(16px) scale(.97);
  }
}


@media (max-width: 700px) {

  .product-cart-control {
    margin-top: 13px;
  }

  .product-cart-active {
    gap: 7px;
  }

  .product-cart-active .product-quantity-control {
    width: 116px;
    height: 36px;

    grid-template-columns: 34px 48px 34px;
  }

  .product-cart-remove {
    width: 36px;
    height: 36px;

    flex-basis: 36px;
  }

  .product-cart-remove svg {
    width: 15px;
    height: 15px;
  }

}



/* =========================================================
   PRODUCT CART CONTROL V4 — UNIFIED
========================================================= */

.product-cart-control {
  width: 100%;
  display: flex;
  justify-content: center;

  margin-top: 14px;
}

.product-cart-active {
  height: 38px;

  display: flex;
  align-items: stretch;

  gap: 0;

  overflow: hidden;

  border: 1px solid rgba(255,255,255,.14);
  border-radius: 11px;

  background: rgba(255,255,255,.035);

  animation: productCartCompactEnter .24s cubic-bezier(.2,.8,.2,1);
}

@keyframes productCartCompactEnter {
  from {
    opacity: 0;
    transform: translateY(4px) scale(.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* QUANTITY */

.product-cart-active .product-quantity-control {
  width: 118px;
  height: 100%;

  display: grid;
  grid-template-columns: 36px 46px 36px;

  flex: 0 0 118px;

  overflow: visible;

  border: 0;
  border-radius: 0;

  background: transparent;
}

.product-cart-active .product-quantity-control button {
  height: 100%;

  border: 0 !important;
  border-radius: 0;

  background: transparent;

  color: rgba(245,246,250,.72);

  font-size: 16px;

  transition:
    color .15s ease,
    background .15s ease;
}

.product-cart-active .product-quantity-control button:hover {
  color: #fff;
  background: rgba(255,255,255,.055);
}

.product-cart-active .product-quantity-value {
  display: flex;
  align-items: center;
  justify-content: center;

  border-left: 1px solid rgba(255,255,255,.055);
  border-right: 1px solid rgba(255,255,255,.055);

  color: #fff;

  font-size: 13px;
  font-weight: 750;
}


/* TRASH — часть той же панели */

.product-cart-active .product-cart-remove {
  width: 39px;
  height: 100%;

  flex: 0 0 39px;

  border: 0;
  border-left: 1px solid rgba(255,85,95,.16);
  border-radius: 0;

  background: rgba(255,65,75,.055);

  color: rgba(255,90,100,.75);

  transition:
    color .15s ease,
    background .15s ease;
}

.product-cart-active .product-cart-remove:hover {
  transform: none;

  background: rgba(255,65,75,.12);
  color: rgb(255,105,115);
}

.product-cart-active .product-cart-remove:active {
  transform: none;

  background: rgba(255,65,75,.18);
}

.product-cart-active .product-cart-remove svg {
  width: 14px;
  height: 14px;
}


/* убираем старое disabled-поведение */

.product-cart-active .product-quantity-minus:disabled {
  opacity: 1;
  cursor: pointer;
}


/* MOBILE */

@media (max-width: 700px) {

  .product-cart-active {
    height: 36px;
  }

  .product-cart-active .product-quantity-control {
    width: 110px;
    flex-basis: 110px;

    grid-template-columns: 33px 44px 33px;
  }

  .product-cart-active .product-cart-remove {
    width: 37px;
    flex-basis: 37px;
  }

}



/* =========================================================
   SUCCESS TOAST V1
========================================================= */

.site-toast {
  position: fixed;

  top: 24px;
  right: 24px;

  z-index: 99999;

  width: min(390px, calc(100vw - 32px));

  display: grid;
  grid-template-columns: 42px 1fr 28px;
  align-items: center;
  gap: 12px;

  padding: 14px 14px 14px 16px;

  border: 1px solid rgba(255,255,255,.11);
  border-radius: 16px;

  background: rgba(18,19,25,.96);

  box-shadow:
    0 18px 55px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.025);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  opacity: 0;

  transform: translateX(24px) scale(.98);

  pointer-events: none;

  transition:
    opacity .28s ease,
    transform .32s cubic-bezier(.2,.8,.2,1);
}

.site-toast.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);

  pointer-events: auto;
}

.site-toast.is-hiding {
  opacity: 0;
  transform: translateX(18px) scale(.98);

  pointer-events: none;
}


/* ICON */

.site-toast-icon {
  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 11px;

  background: rgba(67,210,130,.10);
  border: 1px solid rgba(67,210,130,.18);

  color: rgb(105,225,157);
}

.site-toast-icon svg {
  width: 19px;
  height: 19px;

  fill: none;
  stroke: currentColor;

  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* TEXT */

.site-toast-content {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 3px;
}

.site-toast-content strong {
  color: #f5f6fa;

  font-size: 14px;
  font-weight: 750;

  line-height: 1.25;
}

.site-toast-content span {
  color: rgba(245,246,250,.54);

  font-size: 11px;
  font-weight: 450;

  line-height: 1.45;
}


/* CLOSE */

.site-toast-close {
  width: 28px;
  height: 28px;

  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 8px;

  background: transparent;

  color: rgba(255,255,255,.38);

  font-size: 20px;
  font-weight: 300;

  transition:
    color .15s ease,
    background .15s ease;
}

.site-toast-close:hover {
  color: #fff;

  background: rgba(255,255,255,.06);
}


/* MOBILE */

@media (max-width: 700px) {

  .site-toast {
    top: 14px;
    right: 16px;
    left: 16px;

    width: auto;

    grid-template-columns: 38px 1fr 26px;

    padding: 12px 12px 12px 13px;

    border-radius: 14px;
  }

  .site-toast-icon {
    width: 34px;
    height: 34px;

    border-radius: 10px;
  }

}


/* ===== SUCCESS TOAST V2 — TOP CENTER ===== */

.site-toast {
  top: 22px;
  left: 50%;
  right: auto;

  width: min(390px, calc(100vw - 32px));

  transform: translate(-50%, -18px) scale(.98);
}

.site-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.site-toast.is-hiding {
  opacity: 0;
  transform: translate(-50%, -12px) scale(.98);
}


/* MOBILE */

@media (max-width: 700px) {

  .site-toast {
    top: 12px;
    left: 50%;
    right: auto;

    width: calc(100vw - 24px);

    transform: translate(-50%, -14px) scale(.98);
  }

  .site-toast.is-visible {
    transform: translate(-50%, 0) scale(1);
  }

  .site-toast.is-hiding {
    transform: translate(-50%, -10px) scale(.98);
  }

}


/* FIX: mobile header search alignment */
@media (max-width: 768px) {
  .header-actions .search-wrap {
    margin-top: 0 !important;
    align-self: center;
  }
}

/* FIX: exact mobile header controls alignment */
@media (max-width: 700px) {

  .header-actions {
    display: flex;
    align-items: center;
  }

  .header-actions .catalog-menu-button,
  .header-actions .cart-button {
    height: 46px;
    min-height: 46px;
    max-height: 46px;
  }

  .header-actions .search-wrap {
    height: 46px;
    margin: 0 !important;
    align-self: center;
  }

  .header-actions .search-wrap input {
    display: block;
    width: 100%;
    height: 46px;
    min-height: 46px;
    max-height: 46px;

    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 50px;

    line-height: 46px;
    box-sizing: border-box;
  }

  .header-actions .search-icon {
    top: 23px;
  }
}

/* FIX: mobile burger vertical alignment */
@media (max-width: 700px) {
  .header-actions .catalog-menu-button {
    transform: translateY(-4px);
  }
}

/* =========================================================
   PRODUCT CART CONTROL V5 — MOBILE FULL WIDTH
========================================================= */

@media (max-width: 700px) {

  .product-cart-control {
    width: 100%;
    margin-top: 18px;
  }

  .product-cart-active {
    width: 100%;
    height: 46px;

    display: flex;
    align-items: stretch;

    border-radius: 13px;
  }

  .product-cart-active .product-quantity-control {
    width: auto;
    height: 100%;

    flex: 1 1 auto;

    display: grid;
    grid-template-columns:
      minmax(44px, 1fr)
      minmax(52px, 1fr)
      minmax(44px, 1fr);

    border: 0;
  }

  .product-cart-active .product-quantity-control button {
    width: 100%;
    height: 100%;

    font-size: 18px;
  }

  .product-cart-active .product-quantity-value {
    width: 100%;

    font-size: 14px;
    font-weight: 800;
  }

  .product-cart-active .product-cart-remove {
    width: 50px;
    height: 100%;

    flex: 0 0 50px;

    border-left:
      1px solid rgba(255,80,90,.18);
  }

  .product-cart-active .product-cart-remove svg {
    width: 16px;
    height: 16px;
  }

}


/* =========================================================
   GLOBAL SITE LOADER
   ========================================================= */

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(35, 40, 55, 0.34) 0%,
      rgba(8, 10, 16, 0.94) 42%,
      rgba(5, 6, 10, 0.985) 100%
    );

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  opacity: 1;
  visibility: visible;

  transition:
    opacity 0.42s ease,
    visibility 0.42s ease;
}

.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  transform: translateY(-8px);
}

.site-loader-mark {
  position: relative;

  width: 94px;
  height: 94px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.site-loader-ring {
  position: absolute;
  inset: 0;

  border-radius: 50%;

  border: 2px solid rgba(255, 255, 255, 0.10);
  border-top-color: rgba(255, 255, 255, 0.95);
  border-right-color: rgba(255, 255, 255, 0.34);

  box-shadow:
    0 0 24px rgba(255, 255, 255, 0.06),
    inset 0 0 18px rgba(255, 255, 255, 0.025);

  animation: siteLoaderSpin 0.9s linear infinite;
}

.site-loader-apple {
  position: relative;
  z-index: 2;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "Helvetica Neue",
    Arial,
    sans-serif;

  font-size: 47px;
  line-height: 1;

  color: rgba(255, 255, 255, 0.97);

  filter:
    drop-shadow(0 0 16px rgba(255, 255, 255, 0.10));
}

.site-loader-text {
  margin-top: 22px;

  color: rgba(255, 255, 255, 0.48);

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;

  animation: siteLoaderTextPulse 1.6s ease-in-out infinite;
}

@keyframes siteLoaderSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes siteLoaderTextPulse {
  0%,
  100% {
    opacity: 0.38;
  }

  50% {
    opacity: 0.9;
  }
}

@media (max-width: 700px) {
  .site-loader-mark {
    width: 82px;
    height: 82px;
  }

  .site-loader-apple {
    font-size: 41px;
  }

  .site-loader-text {
    margin-top: 19px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-loader-ring {
    animation-duration: 1.8s;
  }

  .site-loader-text {
    animation: none;
  }
}

/* Убираем верхние подписи категорий на карточках главной */
.store-tile-label {
  display: none !important;
}



/* =========================================================
   YARAZBIL HEADER LOGO
   ========================================================= */

.header .brand.brand-logo {
  width: 190px;
  height: 52px;

  flex: 0 0 190px;

  display: flex;
  align-items: center;
  justify-content: flex-start;

  overflow: visible;

  text-decoration: none;
}

.header .brand-logo-image {
  display: block;

  width: 175px;
  height: auto;

  max-width: 100%;

  object-fit: contain;
  object-position: left center;

  filter:
    drop-shadow(0 0 10px rgba(115, 135, 255, .10));
}


/* TABLET */

@media (max-width: 1000px) {

  .header .brand.brand-logo {
    width: 145px;
    flex-basis: 145px;
  }

  .header .brand-logo-image {
    width: 138px;
  }
}


/* MOBILE */

@media (max-width: 700px) {

  /*
   * На телефоне оставляем текущую компактную навигацию:
   * каталог / поиск / корзина.
   * Логотип не забирает ширину у поиска.
   */
  .header .brand.brand-logo {
    display: none;
  }
}



/* =========================================================
   HEADER V3 — FINAL DESKTOP LAYOUT
   ========================================================= */

@media (min-width: 1001px) {

  .header {
    padding:
      calc(12px + env(safe-area-inset-top))
      28px
      12px;
  }

  .header-inner {
    width: 100%;
    max-width: 1440px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
      220px
      minmax(0, 1fr);

    align-items: center;

    gap: 34px;
  }


  /* LOGO */

  .header .brand.brand-logo {
    width: 220px;
    height: 48px;

    flex: none;

    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .header .brand-logo-image {
    width: 185px;
    max-width: none;
    height: auto;

    object-fit: contain;
    object-position: left center;
  }


  /* NAVIGATION */

  .header-actions {
    width: 100%;
    min-width: 0;

    display: grid;

    grid-template-columns:
      auto
      minmax(320px, 1fr)
      auto;

    align-items: center;

    gap: 12px;
  }


  /* CATALOG */

  .header-actions .catalog-menu-button {
    width: auto;
    min-width: 112px;
    height: 48px;

    margin: 0;
    padding: 0 17px;

    transform: none;

    align-self: center;
  }


  /* SEARCH */

  .header-actions .search-wrap {
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 48px;

    margin: 0 !important;

    align-self: center;
  }

  .header-actions .search-wrap input {
    width: 100%;
    height: 48px;

    margin: 0;

    box-sizing: border-box;
  }


  /* CART */

  .header-actions .cart-button {
    width: auto;
    min-width: 142px;
    height: 48px;

    margin: 0;
    padding: 0 17px;

    align-self: center;
  }
}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (min-width: 1500px) {

  .header-inner {
    max-width: 1440px;
  }

  .header .brand-logo-image {
    width: 190px;
  }
}



/* =========================================================
   MOBILE HEADER — LOGO + CONTROLS
   ========================================================= */

@media (max-width: 700px) {

  .header-inner {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    gap: 9px;
  }

  /* Возвращаем логотип на мобильном */
  .header .brand.brand-logo {
    width: 100%;
    height: 30px;

    flex: none;

    display: flex !important;
    align-items: center;
    justify-content: center;

    margin: 0;
  }

  .header .brand-logo-image {
    width: 132px;
    height: auto;

    max-width: 132px;

    object-fit: contain;
    object-position: center;
  }

  /* Нижняя строка */
  .header-actions {
    width: 100%;

    display: grid;

    grid-template-columns:
      46px
      minmax(0, 1fr)
      46px;

    align-items: center;

    gap: 8px;
  }

}



/* =========================================================
   MOBILE HEADER — FINAL POLISH
   ========================================================= */

@media (max-width: 700px) {

  .header {
    padding:
      calc(8px + env(safe-area-inset-top))
      12px
      9px;
  }

  .header-inner {
    gap: 5px;
  }

  .header .brand.brand-logo {
    height: 27px;
    margin: 0;
  }

  .header .brand-logo-image {
    width: 118px;
    max-width: 118px;
  }

  .header-actions {
    gap: 8px;
  }
}



/* =========================================================
   MOBILE HEADER — LOGO LEFT
   ========================================================= */

@media (max-width: 700px) {

  .header .brand.brand-logo {
    width: 100%;
    height: 27px;

    display: flex !important;
    align-items: center;
    justify-content: flex-start;

    margin: 0;
    padding: 0;
  }

  .header .brand-logo-image {
    width: 118px;
    max-width: 118px;
    height: auto;

    object-fit: contain;
    object-position: left center;
  }

}



/* =========================================================
   ANIMATION CLEAN RESET
   Старые V1/V2 page/storefront animations отключены.
   Hover / buttons / cart / catalog overlay остаются.
   ========================================================= */


/* HERO полностью статичный */

.hero,
.hero-inner,
.hero-copy,
.hero-visual,
.hero-image {
  animation: none !important;
}

.hero-copy,
.hero-visual {
  opacity: 1 !important;
  transform: none !important;
}

.hero-image {
  transform: none !important;
  will-change: auto !important;
}


/* Заголовок storefront без старого появления */

.storefront-heading {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}


/* Карточки storefront больше сами не появляются каскадом */

.storefront .store-tile {
  animation: none !important;
  animation-delay: 0s !important;
  opacity: 1 !important;

  /*
   * transform специально НЕ ставим none !important,
   * иначе сломаем hover/active.
   */
}


/* Убираем старую page-анимацию #brands */

#brands {
  animation: none !important;
  opacity: 1;
}


/* Фоновое движение тоже выключаем:
   меньше визуального шума при навигации */

.ambient-purple {
  animation: none !important;
  transform: none !important;
  will-change: auto !important;
}





/* =========================================================
   LAYOUT STABILITY — SCROLLBAR
   ========================================================= */

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  overflow-x: hidden;
}



/* =========================================================
   FADE ONLY MOTION — FINAL
   Никаких transform / translate / scale
   ========================================================= */


/* ---------- ПЕРВОЕ ОТКРЫТИЕ САЙТА ---------- */

html:not(.site-loaded) .header,
html:not(.site-loaded) .hero,
html:not(.site-loaded) .storefront {
  opacity: 0;
}

html.site-loaded .header {
  animation: yarFadeOnly .30s ease-out both;
}

html.site-loaded .hero {
  animation: yarFadeOnly .42s .06s ease-out both;
}

html.site-loaded .storefront {
  animation: yarFadeOnly .42s .12s ease-out both;
}


/* ---------- НАВИГАЦИЯ ---------- */

.category-grid:not(:empty),
#products:not(:empty) {
  animation: yarFadeOnly .24s ease-out both;
}


/* ---------- КАРТОЧКИ МОДЕЛЕЙ / КАТЕГОРИЙ ---------- */

.category-grid:not(:empty) > .category-card {
  animation: yarFadeOnly .30s ease-out both;
}

.category-grid:not(:empty) > .category-card:nth-child(1) { animation-delay: .02s; }
.category-grid:not(:empty) > .category-card:nth-child(2) { animation-delay: .04s; }
.category-grid:not(:empty) > .category-card:nth-child(3) { animation-delay: .06s; }
.category-grid:not(:empty) > .category-card:nth-child(4) { animation-delay: .08s; }
.category-grid:not(:empty) > .category-card:nth-child(5) { animation-delay: .10s; }
.category-grid:not(:empty) > .category-card:nth-child(6) { animation-delay: .12s; }


/* ---------- ТОВАРЫ ---------- */

#products:not(:empty) > .product-card {
  animation: yarFadeOnly .28s ease-out both;
}

#products:not(:empty) > .product-card:nth-child(1) { animation-delay: .015s; }
#products:not(:empty) > .product-card:nth-child(2) { animation-delay: .030s; }
#products:not(:empty) > .product-card:nth-child(3) { animation-delay: .045s; }
#products:not(:empty) > .product-card:nth-child(4) { animation-delay: .060s; }
#products:not(:empty) > .product-card:nth-child(5) { animation-delay: .075s; }
#products:not(:empty) > .product-card:nth-child(6) { animation-delay: .090s; }
#products:not(:empty) > .product-card:nth-child(7) { animation-delay: .105s; }
#products:not(:empty) > .product-card:nth-child(8) { animation-delay: .120s; }


/* ---------- ЕДИНСТВЕННАЯ АНИМАЦИЯ ---------- */

@keyframes yarFadeOnly {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


/* ---------- REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {

  html:not(.site-loaded) .header,
  html:not(.site-loaded) .hero,
  html:not(.site-loaded) .storefront {
    opacity: 1;
  }

  html.site-loaded .header,
  html.site-loaded .hero,
  html.site-loaded .storefront,
  .category-grid:not(:empty),
  #products:not(:empty),
  .category-grid:not(:empty) > .category-card,
  #products:not(:empty) > .product-card {
    animation: none !important;
  }
}



/* =========================================================
   REAL FIRST PAGE APPEAR
   HTML starts with .site-loading
   OPACITY ONLY — layout never moves
   ========================================================= */

html.site-loading .header,
html.site-loading .hero,
html.site-loading .storefront {
  opacity: 0 !important;
  animation: none !important;
}


/* Header */

html.site-loaded .header {
  animation: firstHeaderFade .55s ease-out both;
}


/* Hero */

html.site-loaded .hero:not(.hidden) {
  animation: firstHeroFade .70s .10s ease-out both;
}


/* Главный каталог */

html.site-loaded .storefront {
  animation: firstStoreFade .70s .20s ease-out both;
}


@keyframes firstHeaderFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes firstHeroFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes firstStoreFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

