:root {
  --text: #3E3E3E;
  --muted: #909090;
  --muted-2: #828282;
  --line: #E3E3E3;
  --surface: #F6F6F6;
  --surface-2: #E9E9EB;
  --white: #FFFFFF;
  --black: #000000;
  --accent: #FF8562;

  --r-card: 25px;
  --gutter: clamp(16px, 2.6vw, 40px);
  --gap: clamp(10px, 1.2vw, 20px);
  --section-gap: 150px;
  --hero-h: max(560px, calc(100vh - var(--header-h)));
  --row-h: calc((var(--hero-h) - 4px - var(--gutter) - var(--gap)) / 2.75);
  --header-h: 116px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
html { scroll-padding-top: calc(var(--header-h) + 32px); }
body {
  font-family: 'Manrope', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
}
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { text-wrap: pretty; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
[hidden] { display: none !important; }

.wrap { width: 100%; padding: 0 var(--gutter); }

header {
  height: var(--header-h);
  position: sticky; top: 0; z-index: 50; background: var(--white);
  transition: transform .3s ease, box-shadow .3s ease;
}
header.is-compact { transform: translateY(calc(-1 * var(--topbar-h, 44px))); }
header.is-scrolled { box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  height: 44px;
}
.topbar nav { display: flex; gap: clamp(16px, 2vw, 32px); }
.topbar nav a {
  font-size: 13px; font-weight: 500; letter-spacing: -0.3px; color: var(--muted);
  white-space: nowrap; transition: color .2s;
}
.topbar nav a:hover { color: var(--text); }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--text); display: grid; place-items: center;
  transition: opacity .2s;
}
.socials a:hover { opacity: .8; }
.socials svg { width: 14px; height: 14px; }

.mainbar {
  display: flex; align-items: center; gap: 16px;
  height: 72px;
}
.logo {
  font-size: 24px; font-weight: 700; letter-spacing: -1px; color: var(--text);
  margin-right: 8px; white-space: nowrap;
}
.btn-catalog {
  display: flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 24px 0 26px; border-radius: 200px;
  background: var(--text); color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: -0.3px;
  transition: background .2s;
}
.btn-catalog:hover { background: #222; }
.btn-catalog svg { width: 16px; height: 16px; }
.search {
  position: relative; flex: 1; min-width: 0; display: flex; align-items: center;
  height: 52px; padding: 0 6px 0 24px; border-radius: 200px;
  background: var(--surface);
}
.search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: 500 14px 'Manrope', Arial, sans-serif; letter-spacing: -0.3px; color: var(--text);
}
.search input::placeholder { color: var(--muted); }
.search button {
  width: 40px; height: 40px; border-radius: 50%; background: var(--text);
  display: grid; place-items: center; flex: none;
}
.search button svg { width: 16px; height: 16px; }
.phone { display: flex; flex-direction: column; align-items: flex-end; margin: 0 8px 0 12px; }
.phone-num { font-size: 18px; font-weight: 700; letter-spacing: -0.5px; color: var(--text); white-space: nowrap; }
.phone .cb {
  padding: 0; border: 0; border-bottom: 1px dashed var(--muted); background: none; cursor: pointer;
  font: 500 12px 'Manrope', Arial, sans-serif; color: var(--muted); line-height: 1.4; transition: color .2s, border-color .2s;
}
.phone .cb:hover { color: var(--text); border-color: var(--text); }
.icon-btn {
  position: relative; width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: var(--surface); display: grid; place-items: center;
  transition: background .2s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .badge {
  position: absolute; top: 2px; right: 0;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 20px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 20px; text-align: center;
  border: 2px solid #fff; box-sizing: content-box;
}


.mega {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 100%; z-index: 60;
  opacity: 0; visibility: hidden; translate: 0 -8px;
  transition: opacity .2s ease, translate .2s ease, visibility 0s .2s;
}
header.mega-open .mega { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .2s ease, translate .2s ease, visibility 0s; }
.mega-in {
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--gap);
  max-height: calc(100vh - var(--header-h) - 24px); padding: 12px;
  border-radius: var(--r-card); background: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.12);
}
.mega-cats { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.mega-cat {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-radius: 14px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.3px; color: var(--text);
  transition: background .15s;
}
.mega-cat svg { width: 14px; height: 14px; stroke: var(--muted); flex: none; transition: stroke .15s, translate .15s; }
.mega-cat.is-active { background: var(--surface); }
.mega-cat.is-active svg { stroke: var(--text); translate: 2px 0; }
.mega-panes { overflow-y: auto; }
.mega-pane { display: none; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.mega-pane.is-active { display: grid; }
.mega-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 12px;
  height: 170px; padding: 16px 12px 18px; border-radius: 17px; background: var(--surface);
  text-align: center; font-size: 14px; font-weight: 600; letter-spacing: -0.3px; line-height: 1.25; color: var(--text);
  transition: background .2s;
}
.mega-tile:hover { background: var(--surface-2); }
.mega-tile img { flex: 1; min-height: 0; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.mega-tile:hover img { transform: scale(1.05); }
.mega-backdrop {
  position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.18);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s .2s;
}
.mega-backdrop.is-on { opacity: 1; visibility: visible; transition: opacity .2s ease, visibility 0s; }

.hero {
  height: var(--hero-h);
  padding-top: 4px; padding-bottom: var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gap);
}
.col-left {
  display: grid; grid-template-rows: var(--row-h) minmax(0, 1fr);
  row-gap: var(--gap); min-height: 0;
}
.col-right {
  grid-column: 2 / 4;
  display: grid; grid-template-rows: minmax(0, 1.75fr) minmax(0, 1fr);
  row-gap: var(--gap); min-height: 0;
}
.row-bottom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); min-height: 0; }

.card {
  position: relative; overflow: hidden;
  border-radius: var(--r-card);
  background: var(--surface);
  display: block; min-height: 0;
}
.card img { display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover img { transform: scale(1.035); }
.card .content { position: absolute; inset: 0; z-index: 2; padding: clamp(20px, 1.9vw, 30px); }

.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  border-radius: 30px; border: 1px solid rgba(62,62,62,.25);
  font-size: 12px; font-weight: 600; letter-spacing: -0.2px; color: var(--text);
  background: transparent;
}
.pill.dark { border-color: rgba(255,255,255,.28); color: #fff; }

.arrow-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--text); display: grid; place-items: center;
  flex: none; transition: transform .3s;
}
.arrow-btn svg { width: 15px; height: 15px; stroke: #fff; }
.card:hover .arrow-btn { transform: rotate(45deg); }

.card-title { font-size: clamp(18px, 1.5vw, 22px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; color: var(--text); }
.card-sub { font-size: 14px; font-weight: 500; letter-spacing: -0.3px; line-height: 1.35; color: var(--muted-2); margin-top: 6px; }

.card-watch .content {
  display: flex; flex-direction: column; justify-content: space-between;
  pointer-events: none;
}
.card-watch .content .top { max-width: 48%; }
.card-watch .bottom { display: flex; align-items: flex-end; justify-content: space-between; }
.card-watch .bottom .card-sub { max-width: 46%; }
.card-watch img {
  position: absolute; right: 7%; top: 50%;
  height: 84%; width: auto; translate: 0 -50%;
}

.intro {
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: clamp(8px, 2vh, 28px); min-height: 0;
}
.intro h1 {
  font-size: clamp(30px, 2.9vw, 46px); font-weight: 600;
  letter-spacing: -0.045em; line-height: 1.04; color: var(--text);
  max-width: 560px;
}
.intro h1 .br-desk { display: inline; }
.intro-bottom { display: flex; flex-direction: column; gap: clamp(24px, 3.6vh, 40px); }
.intro p { font-size: 15px; font-weight: 500; line-height: 1.5; letter-spacing: -0.3px; color: var(--muted-2); max-width: 380px; }
.btn-main {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 18px;
  height: 54px; padding: 0 7px 0 26px; border-radius: 200px;
  background: var(--text); color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: -0.3px;
  transition: background .2s;
}
.btn-main:hover { background: #222; }
.btn-main i {
  width: 40px; height: 40px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; transition: transform .3s;
}
.btn-main:hover i { transform: rotate(45deg); }
.btn-main i svg { width: 14px; height: 14px; stroke: var(--text); }

.card-iphone { background: linear-gradient(120deg, var(--text) 0%, #1F1F1F 50%, var(--black) 100%); }
.card-iphone .slide-pic {
  position: absolute; width: auto;
  opacity: 0; translate: 0 12px;
  transition: opacity .6s ease, translate .6s ease, transform .6s cubic-bezier(.2,.7,.2,1);
}
.card-iphone .slide-pic.is-active { opacity: 1; translate: 0 0; }
.card-iphone .pic-pro, .card-iphone .pic-duo { left: 47%; bottom: -10%; height: 104%; }
.card-iphone .pic-ultra { right: 7%; top: 9%; height: 82%; }
.slide-texts { display: grid; }
.slide-text { grid-area: 1 / 1; opacity: 0; transition: opacity .5s ease; }
.slide-text.is-active { opacity: 1; }
.card-iphone .content {
  padding: clamp(22px, 2.2vw, 36px);
  display: flex; flex-direction: column; justify-content: space-between;
}
.card-iphone .model { font-size: clamp(16px, 1.3vw, 20px); font-weight: 500; letter-spacing: -0.5px; color: #fff; }
.card-iphone h2 { margin-top: 8px; font-size: clamp(30px, 3vw, 48px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: #fff; }
.card-iphone .desc { margin-top: 12px; max-width: 330px; font-size: 15px; font-weight: 500; line-height: 1.45; letter-spacing: -0.3px; color: rgba(255,255,255,.62); }
.card-iphone .actions { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.btn-light {
  margin-top: clamp(16px, 2.4vh, 26px);
  display: inline-flex; align-items: center; gap: 18px;
  height: 54px; padding: 0 7px 0 26px; border-radius: 200px;
  background: #fff; color: var(--text);
  font-size: 15px; font-weight: 600; letter-spacing: -0.3px;
}
.btn-light i { width: 40px; height: 40px; border-radius: 50%; background: var(--text); display: grid; place-items: center; transition: transform .3s; }
.btn-light i svg { width: 14px; height: 14px; stroke: #fff; }
.card-iphone:hover .btn-light i { transform: rotate(45deg); }
.slider-nav { display: flex; align-items: center; gap: 8px; flex: none; }
.slider-nav .count { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.5); margin-right: 12px; letter-spacing: -0.2px; }
.slider-nav .count b { color: #fff; font-weight: 600; }
.slider-nav button {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.12); display: grid; place-items: center;
  transition: background .2s;
}
.slider-nav button:hover { background: rgba(255,255,255,.24); }
.slider-nav svg { width: 16px; height: 16px; stroke: #fff; }

.card-mac .content {
  display: flex; align-items: flex-start; justify-content: space-between;
  pointer-events: none;
}
.card-mac .pills { margin-top: 12px; }
.card-mac img {
  position: absolute; right: 5%; bottom: 8%;
  width: 62%; max-height: 50%; height: auto; object-fit: contain; object-position: right bottom;
}

.section { padding-bottom: var(--section-gap); }
.categories { padding-top: calc(var(--section-gap) - var(--gutter)); }
.section-title {
  margin-bottom: clamp(24px, 2.6vw, 40px);
  font-size: clamp(30px, 2.9vw, 46px); font-weight: 600;
  letter-spacing: -0.045em; line-height: 1.04; color: var(--text);
}
.cat-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
.cat {
  position: relative; overflow: hidden; display: block;
  height: var(--row-h);
  border-radius: 17px; background: var(--surface);
}
.cat .pic {
  position: absolute; top: 7%; bottom: 20%; left: 8%; right: 8%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.cat:hover .pic { transform: scale(1.04); }
.cat .pic img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.cat.wide .pic { left: -2%; right: -2%; top: 3%; }
.cat .pic.acc img:first-child { height: 100%; max-height: none; }
.cat .pic.acc img:last-child { height: 62%; margin-left: -6%; align-self: flex-end; margin-bottom: 2%; }
.cat-label {
  position: absolute; left: clamp(20px, 1.9vw, 30px); bottom: clamp(20px, 1.9vw, 30px); z-index: 2;
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px;
  border-radius: 30px; background: #fff;
  font-size: 17px; font-weight: 600; letter-spacing: -0.4px; color: var(--text);
}

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: clamp(24px, 2.6vw, 40px);
}
.section-head .section-title { margin-bottom: 0; }
.arrows { display: flex; gap: 8px; flex: none; }
.arrows button {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface); display: grid; place-items: center;
  transition: background .2s, opacity .2s;
}
.arrows button:hover { background: var(--surface-2); }
.arrows button:disabled { opacity: .35; cursor: default; background: var(--surface); }
.arrows svg { width: 16px; height: 16px; stroke: var(--text); }

.hits-track {
  display: grid; grid-auto-flow: column;
  margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter);
  grid-auto-columns: calc((100% - var(--gutter) - 4 * var(--gap)) / 4.3);
  gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.hits-track::-webkit-scrollbar { display: none; }
.prod {
  scroll-snap-align: start; min-width: 0;
  display: flex; flex-direction: column;
  border-radius: var(--r-card); background: var(--surface);
  padding-bottom: clamp(20px, 1.9vw, 30px);
  overflow: hidden;
}
.prod-pic {
  position: relative; display: block;
  height: calc(var(--row-h) * 1.15);
}
.prod-name, .prod-price, .prod-actions { margin-left: clamp(20px, 1.9vw, 30px); margin-right: clamp(20px, 1.9vw, 30px); }
.prod-pic .pills { position: absolute; top: clamp(16px, 1.6vw, 24px); left: clamp(16px, 1.6vw, 24px); z-index: 2; }
.prod-pic .fav ~ .pills { right: calc(clamp(12px, 1.2vw, 18px) + 48px); }
.prod-pic .pill { border: 0; background: #fff; }
.prod-pic img {
  position: absolute; inset: 14% 16% 10%;
  width: 68%; height: 76%; object-fit: contain;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.prod-pic:hover img { transform: scale(1.04); }
.fav {
  position: absolute; top: clamp(12px, 1.2vw, 18px); right: clamp(12px, 1.2vw, 18px); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; transition: transform .2s;
}
.fav:hover { transform: scale(1.08); }
.fav svg { width: 18px; height: 18px; }
.prod-name {
  margin-top: 4px;
  font-size: clamp(16px, 1.2vw, 18px); font-weight: 600; letter-spacing: -0.4px; line-height: 1.3; color: var(--text);
}
.prod-price { margin-top: 10px; display: flex; align-items: baseline; gap: 10px; }
.prod-price b { font-size: clamp(20px, 1.6vw, 24px); font-weight: 700; letter-spacing: -0.04em; color: var(--text); }
.prod-price s { font-size: 15px; font-weight: 500; color: var(--muted); }
.prod-actions { margin-top: auto; padding-top: 18px; display: flex; gap: 8px; }
.btn-cart { flex: 1 1 auto; justify-content: center; white-space: nowrap; }
.btn-cart {
  height: 46px; padding: 0 16px; border-radius: 200px;
  background: var(--text); color: #fff;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.3px; transition: background .2s;
}
.btn-cart:hover { background: #222; }
.btn-cart svg { width: 16px; height: 16px; }

.gifts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.gift {
  position: relative; overflow: hidden; display: block;
  height: calc(var(--row-h) * 1.3);
  border-radius: var(--r-card); background: var(--surface);
}
.gift.span2 { grid-column: span 2; }
.gift.dark { background: linear-gradient(120deg, var(--text) 0%, #1F1F1F 50%, var(--black) 100%); }
.gift-text {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  padding: clamp(22px, 2.2vw, 36px);
  display: flex; flex-direction: column; justify-content: space-between;
}
.gift h3 { font-size: clamp(24px, 2.1vw, 34px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.08; color: var(--text); }
.gift h3 span {
  display: block; margin-top: 10px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.3px; line-height: 1.45; color: var(--muted-2);
}
.gift.dark h3 { color: #fff; }
.gift.dark h3 span { color: rgba(255,255,255,.62); }
.gift-more {
  align-self: flex-start; pointer-events: auto;
  display: inline-flex; align-items: center; gap: 18px;
  height: 54px; padding: 0 7px 0 26px; border-radius: 200px;
  background: var(--text); color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: -0.3px;
  transition: background .2s;
}
.gift:hover .gift-more { background: #222; }
.gift-more i { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; transition: transform .3s; }
.gift-more i svg { width: 14px; height: 14px; stroke: var(--text); }
.gift.dark .gift-more { background: #fff; color: var(--text); }
.gift.dark .gift-more i { background: var(--text); }
.gift.dark .gift-more i svg { stroke: #fff; }
.gift:hover .gift-more i { transform: rotate(45deg); }
.gift-pic { position: absolute; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.gift:hover .gift-pic { transform: scale(1.03); }
.gift-pic img { display: block; }
.gift-him .gift-pic { right: 7%; top: 13%; height: 102%; transform-origin: center top; }
.gift-him .gift-pic img { height: 100%; width: auto; }
.gift-her .gift-pic { right: 0; width: 64%; aspect-ratio: 1; top: 45%; translate: 0 -45%; transform-origin: right center; }
.gift-her .gift-pic img { width: 100%; height: 100%; }
.gift-budget { background: #F5F5F7; }
.gift-budget .gift-pic { right: -4%; bottom: 0; height: 68%; transform-origin: right bottom; }
.gift-budget .gift-pic img { height: 100%; width: auto; }
.gift-cert .gift-pic { left: 62%; top: 27%; width: 48%; aspect-ratio: 1.58; }
.gcard {
  position: absolute; inset: 0; border-radius: 10px;
  padding: 9% 8%;
  display: flex; flex-direction: column;
  box-shadow: 0 16px 36px rgba(0,0,0,.16);
}
.gcard b { font-size: clamp(10px, .85vw, 15px); font-weight: 700; letter-spacing: -0.04em; }
.gcard em { font-style: normal; font-size: clamp(7px, .55vw, 10px); font-weight: 500; opacity: .6; margin-top: 2px; }
.gcard span { margin-top: auto; font-size: clamp(15px, 1.4vw, 24px); font-weight: 700; letter-spacing: -0.04em; }
.gcard.back { background: var(--accent); color: #fff; transform: translate(-17%, -20%) rotate(-8deg); }
.gcard.front { background: linear-gradient(135deg, #2B2B2B 0%, var(--black) 100%); color: #fff; transform: rotate(5deg); }

.about { margin: 0 0 var(--section-gap); }
.about-in { padding: 0 var(--gutter); }
.about-top {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap);
  margin-bottom: clamp(48px, 5vw, 88px);
}
.about-copy { grid-column: 1 / 3; }
.about-title {
  font-size: clamp(34px, 4.3vw, 70px); font-weight: 600;
  letter-spacing: -0.05em; line-height: 1.04; color: var(--text);
}
.about-title span { color: #B4B4B4; }
.about-sub {
  margin-top: clamp(24px, 2.4vw, 40px); max-width: none;
  font-size: 15px; font-weight: 500; letter-spacing: -0.3px; line-height: 1.45; color: var(--text);
}
.about-phone { grid-column: 3; position: relative; }
.about-phone img { position: absolute; top: 0; left: 50%; translate: -50% 0; width: min(78%, 420px); height: auto; }
.about-cards { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.about-card {
  height: calc(var(--row-h) * 1.4); padding: clamp(22px, 2.2vw, 36px);
  border-radius: var(--r-card); background: var(--surface); color: var(--text);
  display: flex; flex-direction: column;
}
.about-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--text); display: grid; place-items: center; }
.about-ico svg { width: 18px; height: 18px; stroke: #fff; }
.about-card b { margin-top: auto; font-size: clamp(36px, 3.3vw, 54px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.about-card p { margin-top: 12px; max-width: 22em; font-size: 14px; font-weight: 500; letter-spacing: -0.3px; line-height: 1.45; color: var(--muted-2); }

.offers-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.offers .gift { height: calc(var(--row-h) * 1.95); }
.offer-tradein { background: #F5F5F7; }
.offer-tradein .gift-pic { mix-blend-mode: multiply; }
.offers .gift-pic img { width: 100%; height: auto; }
.offer-tradein .gift-pic { left: 50%; width: 118%; top: 56%; translate: -50% -50%; transform-origin: center; }
.offer-tradein .gift-text { max-width: 60%; }
.offer-loyalty h3 span { max-width: 50%; }
.offers .gift-more { white-space: nowrap; }
.offer-loyalty .gift-pic { left: 0; right: 0; bottom: -22%; transform-origin: right bottom; }

.reviews-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.reviews-panel {
  padding: clamp(18px, 2.2vw, 36px); border-radius: var(--r-card); background: var(--surface);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 24px);
}
.review {
  min-height: calc(var(--row-h) * 1.25); padding: clamp(20px, 2.2vw, 36px);
  border-radius: 20px; background: #fff;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.review-head { display: flex; align-items: center; gap: 12px; }
.review-head .avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; }
.review-head b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -0.3px; color: var(--text); }
.stars { display: flex; gap: 2px; margin-top: 3px; }
.stars svg { width: 12px; height: 12px; fill: #FFC23D; }
.review p { font-size: 14px; font-weight: 500; letter-spacing: -0.3px; line-height: 1.45; color: var(--text); }
.reviews-side { display: grid; grid-template-rows: 1fr 1fr; gap: var(--gap); }
.rating {
  position: relative; overflow: hidden; padding: clamp(22px, 2.4vw, 40px);
  border-radius: var(--r-card); background: var(--surface);
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.rating-num { display: block; font-size: clamp(56px, 5.4vw, 88px); font-weight: 600; letter-spacing: -0.05em; line-height: .95; color: var(--text); }
.rating .stars { margin-top: 12px; gap: 6px; }
.rating .stars svg { width: clamp(20px, 1.6vw, 26px); height: clamp(20px, 1.6vw, 26px); }
.rating-logo { position: absolute; pointer-events: none; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.rating:hover .rating-logo { transform: scale(1.04); }
.rating-avito .rating-logo { right: -6%; bottom: -14%; height: 78%; width: auto; transform-origin: right bottom; }
.rating-yandex .rating-logo { right: -12%; bottom: -16%; height: 92%; width: auto; rotate: 45deg; transform-origin: center; }
.rating > div { position: relative; z-index: 1; }
.rating-go {
  position: absolute; top: clamp(22px, 2.4vw, 40px); right: clamp(22px, 2.4vw, 40px); z-index: 1;
  width: 48px; height: 48px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; transition: transform .3s;
}
.rating-go svg { width: 16px; height: 16px; stroke: var(--text); }
.rating:hover .rating-go { transform: rotate(45deg); }
.rating-src b { display: block; font-size: clamp(18px, 1.4vw, 22px); font-weight: 700; letter-spacing: -0.04em; color: var(--text); }
.rating-src span { font-size: 13px; font-weight: 500; color: var(--muted); }

.blog-head { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); margin-bottom: clamp(24px, 2.6vw, 40px); }
.blog-head .section-title { margin-bottom: 0; }
.blog-all { margin-left: auto; align-self: center; }
.blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.read-time {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px;
  border-radius: 30px; background: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: -0.2px; color: var(--text);
}
.read-time svg { width: 13px; height: 13px; stroke: var(--text); }
.post-main { position: relative; overflow: hidden; border-radius: var(--r-card); background: var(--surface); display: block; }
.post-main img, .post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.post-main:hover img, .post:hover .post-thumb img { transform: scale(1.04); }
.post-main img, .post-thumb img { mix-blend-mode: multiply; }
.post-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.68) 100%); }
.post-main .post-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(22px, 2.4vw, 40px); color: #fff; }
.post-main h3 { margin-top: 10px; max-width: 24em; font-size: clamp(20px, 1.7vw, 28px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.2; }
.post-main .post-meta { color: rgba(255,255,255,.72); }
.post-list { display: grid; grid-template-rows: repeat(3, 1fr); gap: var(--gap); }
.post {
  display: grid; grid-template-columns: 40% 1fr; gap: clamp(16px, 2vw, 32px); align-items: center;
  padding: 8px clamp(16px, 2vw, 28px) 8px 8px; border-radius: var(--r-card); background: var(--surface);
}
.post-thumb { position: relative; overflow: hidden; height: calc(var(--row-h) * 0.8 - 16px); border-radius: 17px; background: #fff; }
.post-meta { display: flex; gap: 14px; font-size: 13px; font-weight: 600; letter-spacing: -0.2px; color: var(--muted); }
.post-meta span:first-child { text-transform: uppercase; letter-spacing: 0.02em; }
.post h3 { margin-top: 10px; font-size: clamp(17px, 1.3vw, 21px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.25; color: var(--text); transition: opacity .2s; }
.post:hover h3 { opacity: .7; }

.lead {
  --pad: clamp(28px, 4.4vw, 72px);
  position: relative; overflow: hidden;
  margin: 0 var(--gutter) var(--section-gap);
  padding: clamp(40px, 4.4vw, 72px) var(--pad);
  border-radius: 40px; color: #fff;
  background: linear-gradient(120deg, var(--text) 0%, #1F1F1F 50%, var(--black) 100%);
}
.lead-content { position: relative; z-index: 2; width: min(100%, 52%); }
.lead-title { font-size: clamp(30px, 2.9vw, 46px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.04; }
.lead-sub { margin-top: 18px; max-width: 30em; font-size: clamp(15px, 1.15vw, 18px); font-weight: 500; letter-spacing: -0.3px; line-height: 1.45; color: rgba(255,255,255,.62); }
.lead-form { margin-top: clamp(28px, 3vw, 48px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lead-form .full { grid-column: 1 / -1; }
.field {
  width: 100%; height: 52px; padding: 0 18px;
  border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background-color: rgba(255,255,255,.08);
  font: inherit; font-size: 15px; font-weight: 500; letter-spacing: -0.3px; color: #fff;
  outline: none; transition: border-color .2s, background .2s;
}
.field::placeholder { color: rgba(255,255,255,.45); }
.field:focus { border-color: rgba(255,255,255,.4); background-color: rgba(255,255,255,.11); }
select.field {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 12px 8px;
}
select.field option { color: var(--text); }
select.pick {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 46px; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%233E3E3E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 12px 8px;
}
select.pick option { color: var(--text); }
select.pick:invalid { color: #B4B4B4; }
select.field.pick { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
select.field.pick:invalid { color: rgba(255,255,255,.45); }
select.cb-field.pick:invalid { color: var(--muted); }
.consent {
  margin-top: 12px; display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  font-size: 14px; font-weight: 500; letter-spacing: -0.2px; line-height: 1.45; color: rgba(255,255,255,.62);
}
.consent input {
  appearance: none; -webkit-appearance: none; flex: none; margin-top: 1px;
  width: 22px; height: 22px; border-radius: 6px; background: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.consent input:checked::after { content: ""; width: 12px; height: 7px; border: solid var(--text); border-width: 0 0 2px 2px; transform: translateY(-2px) rotate(-45deg); }
.consent a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.lead-submit {
  margin-top: 20px; justify-self: start;
  display: inline-flex; align-items: center; gap: 16px;
  height: 52px; padding: 0 7px 0 24px; border-radius: 200px;
  background: #fff; color: var(--text);
  font-size: 16px; font-weight: 600; letter-spacing: -0.3px; transition: opacity .2s;
}
.lead-submit i { width: 38px; height: 38px; border-radius: 50%; background: var(--text); display: grid; place-items: center; transition: transform .3s; }
.lead-submit i svg { width: 14px; height: 14px; stroke: #fff; }
.lead-submit:hover i { transform: rotate(45deg); }
.lead-submit:disabled { opacity: .7; cursor: default; }
.lead-phone {
  position: absolute; z-index: 1; top: 0; bottom: 0; right: 0;
  left: calc(var(--pad) + (100% - 2 * var(--pad)) * .52);
  display: flex; justify-content: center; align-items: flex-end;
}
.lead-phone img { height: 94%; width: auto; }
.consent .br-desk { display: inline; }

.footer {
  --inset: clamp(6px, .6vw, 10px);
  margin: 0 var(--inset) var(--inset);
  padding: clamp(40px, 4.4vw, 72px) calc(var(--gutter) - var(--inset)) 0;
  border-radius: 40px; background: var(--surface);
}
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.footer-brand .logo { display: inline-block; margin: 0; }
.footer-brand p { margin-top: 12px; max-width: 22em; font-size: 14px; font-weight: 500; letter-spacing: -0.3px; line-height: 1.45; color: var(--muted-2); }
.footer-contacts { margin-top: 28px; display: grid; gap: 14px; }
.footer-phone { font-size: clamp(22px, 1.8vw, 28px); font-weight: 700; letter-spacing: -0.04em; color: var(--text); }
.footer-contacts span { display: block; margin-top: 3px; font-size: 13px; font-weight: 500; color: var(--muted); }
.footer-addr { font-size: 15px; font-weight: 600; letter-spacing: -0.3px; line-height: 1.4; color: var(--text); }
.footer .socials { margin-top: 4px; }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.footer h4 { margin-bottom: 16px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer li a { font-size: 15px; font-weight: 500; letter-spacing: -0.3px; color: var(--text); transition: opacity .2s; }
.footer li a:hover { opacity: .6; }
.footer-bottom {
  margin-top: clamp(40px, 4.4vw, 72px); padding: 22px 0 26px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  font-size: 13px; font-weight: 500; color: var(--muted);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-bottom a:hover { color: var(--text); }
.footer-note { flex-basis: 100%; max-width: calc((100% - var(--gap)) * 2 / 3); font-size: 12px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }

@media (max-width: 900px) {
  :root { --section-gap: 80px; }
  .gifts-grid { grid-template-columns: 1fr; }
  .gift.span2 { grid-column: auto; }
  .gift { height: 300px; }
  .footer { border-radius: 28px 28px 0 0; margin: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-note { max-width: none; }
  .lead { border-radius: 28px; padding-bottom: 260px; }
  .consent .br-desk { display: none; }
  .lead-content { width: 100%; }
  .lead-form { grid-template-columns: 1fr; }
  .lead-phone { left: 0; top: auto; height: 250px; }
  .lead-phone img { height: 100%; }
  .blog-head { flex-wrap: wrap; }
  .blog-grid { grid-template-columns: 1fr; }
  .post-main { aspect-ratio: 4 / 5; }
  .post-list { grid-template-rows: none; }
  .post-thumb { height: auto; aspect-ratio: 4 / 3; }
  .reviews-grid, .reviews-panel { grid-template-columns: 1fr; }
  .review { min-height: 0; }
  .reviews-side { grid-template-rows: none; }
  .rating { min-height: 240px; }
  .rating-avito .rating-logo { height: 70%; }
  .rating-yandex .rating-logo { height: 84%; }
  .offers-grid { grid-template-columns: 1fr; }
  .offers .gift { height: 440px; }
  .offer-tradein .gift-text { max-width: none; }
  .offer-loyalty h3 span { max-width: none; }
  .offer-loyalty .gift-pic { left: 0; right: 0; bottom: 0; }
  .about-top, .about-cards { grid-template-columns: 1fr; }
  .about-copy, .about-phone { grid-column: auto; }
  .about-phone { height: 280px; overflow: hidden; margin-bottom: -40px; }
  .about-phone img { width: 62%; }
  .about-card { height: 240px; }
  .hits-track { grid-auto-columns: 78%; }
  .prod-pic { height: auto; aspect-ratio: 1 / 0.8; }
  .arrows { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat { height: auto; aspect-ratio: 460 / 332; }
  .cat-label { left: 12px; bottom: 12px; height: 32px; padding: 0 14px; font-size: 14px; }
}

@media (max-height: 820px) and (min-width: 901px) {
  :root { --header-h: 104px; }
  .topbar { height: 40px; }
  .mainbar { height: 64px; }
  .btn-catalog, .search, .icon-btn { height: 46px; }
  .icon-btn { width: 46px; }
  .search button { width: 36px; height: 36px; }
  .card-iphone .desc { display: none; }
}

@media (max-width: 1180px) {
  .topbar nav a:nth-child(n+7) { display: none; }
  .phone { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: auto; }
  html { scroll-padding-top: calc(var(--m-header-h, 64px) + 24px); }
  .mega, .mega-backdrop { display: none; }
  .topbar nav { display: none; }
  .topbar { justify-content: flex-end; }
  .mainbar { flex-wrap: wrap; height: auto; padding-bottom: 12px; gap: 10px; }
  .logo { flex: 1; }
  .search { order: 5; flex-basis: 100%; }
  .hero { height: auto; min-height: 0; grid-template-columns: 1fr; row-gap: var(--gap); }
  .col-left { display: contents; }
  .card-watch { grid-row: auto; }
  .col-right { grid-column: auto; grid-template-rows: auto auto; order: -1; }
  .card-iphone { height: 440px; }
  .card-iphone .pic-ultra { height: 58%; right: -45%; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
  .row-bottom { grid-template-columns: 1fr; }
  .card-mac, .card-watch { height: 280px; }
  .intro h1 .br-desk, .about-sub .br-desk { display: none; }
  .intro { order: -2; padding: 12px 0 8px; gap: 20px; }
}
.m-btn, .m-menu { display: none; }
.bar-icons { display: contents; }

@media (max-width: 900px) {
  .topbar, .btn-catalog { display: none; }
  .mainbar {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    height: auto; padding: 10px 0; gap: 0 8px;
  }
  .logo { flex: none; margin: 0; font-size: 19px; text-align: center; }
  .mainbar > .logo { grid-area: 1 / 2; }
  .m-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); }
  .m-btn svg { width: 18px; height: 18px; }
  .m-burger { grid-area: 1 / 1; justify-self: start; }
  .bar-icons { grid-area: 1 / 3; display: flex; justify-self: end; align-items: center; gap: 5px; }
  .bar-icons .icon-btn { width: 34px; height: 34px; }
  .bar-icons .icon-btn svg { width: 18px; height: 18px; }
  .bar-icons .icon-btn .badge { top: -4px; right: -5px; min-width: 14px; height: 16px; padding: 0 3px; font-size: 10px; line-height: 16px; }
  .search { display: none; grid-area: 2 / 1 / 3 / 4; order: 0; height: 48px; margin-top: 10px; }
  header.search-open .search { display: flex; animation: m-drop .2s ease; }
  @keyframes m-drop { from { opacity: 0; translate: 0 -6px; } }

  .m-menu {
    display: flex; flex-direction: column;
    position: fixed; inset: 0; z-index: 100; background: #fff;
    opacity: 0; visibility: hidden; translate: -16px 0;
    transition: opacity .25s ease, translate .25s ease, visibility 0s .25s;
  }
  .m-menu.is-open { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .25s ease, translate .25s ease, visibility 0s; }
  .m-menu-head {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; flex: none;
    padding: 10px var(--gutter); border-bottom: 1px solid var(--line);
  }
  .m-menu-body { flex: 1; overflow-y: auto; padding: 12px var(--gutter) 24px; overscroll-behavior: contain; }
  .m-acc summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 15px 16px; border-radius: 14px; background: var(--surface); list-style: none; cursor: pointer;
    font-size: 17px; font-weight: 600; letter-spacing: -0.4px; color: var(--text);
  }
  .m-acc summary::-webkit-details-marker { display: none; }
  .m-acc summary svg { width: 16px; height: 16px; stroke: var(--muted); flex: none; transition: rotate .2s; }
  .m-cats { display: grid; gap: 6px; }
  .m-acc[open] > summary { background: var(--surface-2); }
  .m-acc[open] > summary svg { rotate: 180deg; stroke: var(--text); }
  .m-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px 0 14px; }
  .m-tiles .mega-tile { height: 150px; }
  .m-more { margin-top: 6px; }
  .m-links { display: grid; padding: 4px 0 8px; }
  .m-links a { padding: 11px 16px; font-size: 15px; font-weight: 500; letter-spacing: -0.3px; color: var(--muted-2); }
  .m-menu-foot { flex: none; display: flex; flex-direction: column; align-items: stretch; padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .m-menu-foot .socials { gap: 12px; justify-content: center; }
  .m-menu-foot .socials a { width: 44px; height: 44px; }
  .m-menu-foot .socials svg { width: 18px; height: 18px; }

  .intro { display: none; }
  .hero { padding-top: 0; }
  .card-mac, .card-watch, .row-bottom { display: none; }
  .card-iphone { height: calc(100svh - 54px - var(--gutter)); height: calc(var(--m-vh, 100svh) - 54px - var(--gutter)); min-height: 560px; }
  .card-iphone .pills { display: none; }
  .card-iphone .content { padding: 24px; }
  .card-iphone .actions { flex: 1; flex-direction: column; align-items: stretch; gap: 0; }
  .card-iphone .actions > div:first-child { display: contents; }
  .card-iphone .desc { max-width: none; }
  .card-iphone .slider-nav { order: 1; margin-top: auto; align-self: stretch; }
  .card-iphone .slider-nav .count { margin-right: auto; }
  .card-iphone .btn-light { order: 2; margin-top: 14px; justify-content: space-between; }
  .card-iphone .slide-pic, .card-iphone .pic-pro, .card-iphone .pic-duo {
    left: 50%; right: auto; top: 200px; bottom: auto; height: calc(100% - 350px); width: auto;
    translate: -50% 12px;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  }
  .card-iphone .slide-pic.is-active { translate: -50% 0; }
  .card-iphone .pic-ultra { top: 225px; width: 80%; height: auto; max-height: calc(100% - 400px); object-fit: contain; }

  .cat-consoles { order: 1; grid-column: 1 / -1; aspect-ratio: 920 / 332; }

  .gift-more { align-self: stretch; justify-content: space-between; }
  .gift-her .gift-pic { top: 58%; width: 78%; }
  .gift-budget .gift-pic { height: 50%; }
  .gift-cert { height: 400px; }
  .gift-cert .gift-pic { left: 17%; top: auto; bottom: -3%; width: 66%; rotate: 45deg; }
  .gift .br-desk { display: none; }

  .about-top { margin-bottom: 0; row-gap: 40px; }
  .about-phone { margin-bottom: 0; }

  .offer-loyalty .gift-pic { bottom: 10%; }

  .post { grid-template-columns: 1fr; gap: 16px; padding: 8px 8px 22px; align-items: start; }
  .post > div:last-child { padding: 0 12px; }
  .post-thumb { aspect-ratio: 16 / 10; }

  .lead-submit { justify-self: stretch; justify-content: space-between; }
}

.m-all {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 8px; padding: 12px 16px; border-radius: 14px; background: var(--text); color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: -0.3px;
}
.m-all svg { width: 14px; height: 14px; stroke: #fff; }

.catalog { padding-top: 12px; padding-bottom: var(--section-gap); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-bottom: clamp(16px, 1.6vw, 24px); font-size: 13px; font-weight: 500; color: var(--muted); }
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--text); }
.crumbs svg { width: 12px; height: 12px; stroke: var(--muted); }
.crumbs span:last-child { color: var(--text); }
.cat-head { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px 16px; margin-bottom: clamp(24px, 2.6vw, 40px); }
.cat-head .section-title { margin-bottom: 0; }
.cat-sub { margin: calc(-1 * clamp(12px, 1.4vw, 24px)) 0 clamp(28px, 3vw, 48px); max-width: 60em; text-wrap: balance; font-size: 15px; font-weight: 500; letter-spacing: -0.3px; line-height: 1.45; color: var(--muted-2); }
.cat-count { padding-bottom: 6px; font-size: 15px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.cat-layout { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); align-items: start; }

.filters { display: grid; gap: 8px; }
.f-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.f-group { border-radius: 20px; background: var(--surface); }
.f-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 16px; font-size: 15px; font-weight: 600; letter-spacing: -0.3px; color: var(--text); text-align: left;
}
.f-head svg { width: 14px; height: 14px; stroke: var(--muted); transition: rotate .2s; flex: none; }
.f-group.is-closed .f-head svg { rotate: -90deg; }
.f-group.is-closed .f-body { display: none; }
.f-body { padding: 0 16px 16px; }
.f-sel { margin-left: auto; margin-right: 8px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 20px; background: var(--text); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }
.f-check { display: flex; align-items: center; gap: 12px; padding: 7px 0; cursor: pointer; font-size: 14px; font-weight: 500; letter-spacing: -0.2px; color: var(--text); }
.f-check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); display: grid; place-items: center; cursor: pointer; transition: background .15s, box-shadow .15s; }
.f-check input:checked { background: var(--text); box-shadow: none; }
.f-check input:checked::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.f-check input[type=radio] { border-radius: 50%; }
.f-check input[type=radio]:checked::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #fff; transform: none; }
.f-check .sw { flex: none; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.f-check .lbl { flex: 1; min-width: 0; }
.f-group[data-k=color] .lbl::first-letter, .f-group[data-k=finish] .lbl::first-letter { text-transform: uppercase; }
.f-check em { font-style: normal; font-size: 13px; color: var(--muted); }
.f-check.is-empty { display: none; }     .f-check.color input { position: absolute; opacity: 0; pointer-events: none; }
.f-check.color { position: relative; }
.f-check.color input:checked + .sw { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.f-more { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 1px dashed currentColor; transition: color .2s; }
.f-more:hover { color: var(--text); }
.f-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.f-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 30px;
  background: #fff; font-size: 14px; font-weight: 600; letter-spacing: -0.2px; color: var(--text);
  transition: background .15s, color .15s;
}
.f-chip:hover { background: var(--surface-2); }
.f-chip.is-on { background: var(--text); color: #fff; }
.f-chip.is-empty { display: none; }
.f-price { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.f-price label { min-width: 0; display: flex; align-items: center; gap: 5px; height: 42px; padding: 0 12px; border-radius: 14px; background: #fff; font-size: 13px; font-weight: 500; color: var(--muted); }
.f-price input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--text); }
.f-range { position: relative; height: 24px; margin: 12px 9px 0; }
.f-range::before, .f-range i { content: ""; position: absolute; top: 11px; height: 2px; border-radius: 2px; }
.f-range::before { left: 0; right: 0; background: var(--line); }
.f-range i { background: var(--text); }
.f-range input { position: absolute; left: -9px; right: -9px; width: calc(100% + 18px); top: 0; height: 24px; margin: 0; background: none; pointer-events: none; appearance: none; -webkit-appearance: none; }
.f-range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--text); cursor: grab; }
.f-range input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--text); cursor: grab; }
.f-reset { justify-self: start; margin: 8px 0 0 4px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .2s; }
.f-reset:hover { color: var(--text); }

.results { grid-column: 2 / 6; min-width: 0; }
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: var(--gap); }
.active-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.a-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 14px; border-radius: 30px; background: var(--surface); font-size: 13px; font-weight: 600; color: var(--text); transition: background .15s; }
.a-chip:hover { background: var(--surface-2); }
.a-chip svg { width: 10px; height: 10px; stroke: var(--text); }
.a-chip.clear { background: none; color: var(--muted); padding: 0 6px; }
.sort { position: relative; flex: none; }
.sort select {
  appearance: none; -webkit-appearance: none; height: 44px; padding: 0 44px 0 20px; border: 0; border-radius: 200px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%233E3E3E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 20px center / 11px 7px;
  font: inherit; font-size: 14px; font-weight: 600; letter-spacing: -0.3px; color: var(--text); cursor: pointer; outline: none;
}
.btn-filters { display: none; }

.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.products .c-mac .prod-pic img { inset: 22% 9% 14%; width: 82%; height: 64%; }
.products .prod-pic { height: auto; aspect-ratio: 1 / 0.92; }
.products .prod-name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: clamp(15px, 1.05vw, 17px); }
.products .prod-price s { font-size: 14px; }
.more-wrap { display: flex; justify-content: center; margin-top: clamp(28px, 3vw, 48px); }
.more-wrap .btn-main { align-self: center; }
.empty { padding: 60px 20px; border-radius: var(--r-card); background: var(--surface); text-align: center; }
.empty b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.04em; }
.empty p { margin: 8px 0 20px; font-size: 15px; font-weight: 500; color: var(--muted-2); }
.empty .btn-main { align-self: center; }

.f-top, .f-bottom { display: none; }

@media (max-width: 1280px) {
  .cat-layout { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .results { grid-column: 2 / 5; }
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .catalog { padding-top: 8px; }
  .cat-layout { display: block; }
  .results { grid-column: auto; }
  .filters {
    position: fixed; inset: 0; z-index: 100; top: 0; max-height: none; display: flex; flex-direction: column; gap: 0; padding: 0;
    background: #fff; overflow: hidden;
    opacity: 0; visibility: hidden; translate: 0 16px; transition: opacity .25s ease, translate .25s ease, visibility 0s .25s;
  }
  .filters.is-open { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .25s ease, translate .25s ease, visibility 0s; }
  .f-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; flex: none; padding: 10px var(--gutter); border-bottom: 1px solid var(--line); }
  .f-top b { font-size: 17px; font-weight: 600; letter-spacing: -0.4px; }
  .f-top .m-btn { justify-self: start; }
  .f-top .f-reset { justify-self: end; margin: 0; }
  .f-list { flex: 1; overflow-y: auto; overflow-x: hidden; display: grid; align-content: start; gap: 8px; padding: 12px var(--gutter) 24px; overscroll-behavior: contain; }
  .filters > .f-reset { display: none; }
  .f-bottom { display: block; flex: none; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .f-bottom .btn-main { width: 100%; justify-content: space-between; }
  .toolbar { flex-wrap: wrap; }
  .btn-filters {
    display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 200px;
    background: var(--text); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: -0.3px;
  }
  .btn-filters svg { width: 16px; height: 16px; stroke: #fff; }
  .btn-filters span:empty { display: none; }
  .btn-filters span { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 18px; background: #fff; color: var(--text); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
  .sort { flex: 1; }
  .sort select { width: 100%; }
  .active-chips { order: 3; flex-basis: 100%; }
  .active-chips:empty { display: none; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .products .prod { padding-bottom: 14px; border-radius: 20px; }
  .products .prod-name, .products .prod-price, .products .prod-actions { margin-left: 12px; margin-right: 12px; }
  .products .prod-name { font-size: 13px; line-height: 1.3; }
  .products .prod-price { margin-top: 6px; flex-wrap: wrap; gap: 0 8px; }
  .products .prod-price b { font-size: 17px; }
  .products .prod-price s { font-size: 12px; }
  .products .prod-actions { padding-top: 12px; }
  .products .btn-cart { height: 40px; padding: 0 10px; font-size: 13px; gap: 6px; }
  .products .btn-cart svg { width: 14px; height: 14px; }
  .products .fav { width: 32px; height: 32px; top: 8px; right: 8px; }
  .products .fav svg { width: 15px; height: 15px; }
  .products .prod-pic .pills { top: 10px; left: 10px; gap: 4px; }
  .products .prod-pic .fav ~ .pills { right: 46px; }
  .products .prod-pic .pill { height: 24px; padding: 0 9px; font-size: 11px; }
  .cat-count { padding-bottom: 3px; }
}
.no-filters .filters, .no-filters .btn-filters { display: none !important; }
.no-filters .results { grid-column: 1 / -1; }

.search input::-webkit-search-cancel-button { display: none; }
.s-drop {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 60;
  max-height: min(70vh, 560px); overflow-y: auto; padding: 8px;
  border-radius: 22px; background: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.14), 0 0 0 1px rgba(0,0,0,.04);
}
.s-drop[hidden] { display: none; }
.s-label { padding: 10px 12px 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); }
.s-models { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 8px 8px; }
.s-models a { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 30px; background: var(--surface); font-size: 14px; font-weight: 600; letter-spacing: -0.2px; color: var(--text); transition: background .15s; }
.s-models a:hover, .s-models a.is-cur { background: var(--surface-2); }
.s-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 6px 12px 6px 6px; border-radius: 14px; transition: background .15s; }
.s-item:hover, .s-item.is-cur { background: var(--surface); }
.s-item img { width: 52px; height: 52px; border-radius: 12px; background: var(--surface); object-fit: contain; padding: 6px; mix-blend-mode: multiply; }
.s-item span { font-size: 14px; font-weight: 600; letter-spacing: -0.3px; line-height: 1.3; color: var(--text); }
.s-item b { font-size: 14px; font-weight: 700; letter-spacing: -0.3px; white-space: nowrap; }
.s-item mark, .s-models mark { background: none; color: inherit; box-shadow: inset 0 -2px 0 var(--accent); }
.s-all {
  display: flex; align-items: center; justify-content: space-between; margin-top: 6px; height: 48px; padding: 0 6px 0 16px;
  border-radius: 14px; background: var(--text); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: -0.3px;
}
.s-all i { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; transition: transform .3s; }
.s-all:hover i, .s-all.is-cur i { transform: rotate(45deg); }
.s-all svg { width: 13px; height: 13px; stroke: var(--text); }
.s-empty { padding: 18px 14px; font-size: 14px; font-weight: 500; color: var(--muted-2); }

.cb-modal {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: var(--gutter);
  background: rgba(20,20,20,.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s .25s;
}
.cb-modal.is-open { opacity: 1; visibility: visible; transition: opacity .25s ease, visibility 0s; }
.cb-box {
  position: relative; width: min(100%, 460px); max-height: 100%; overflow-y: auto;
  padding: clamp(28px, 3vw, 40px); border-radius: var(--r-card); background: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.25); translate: 0 14px; transition: translate .3s cubic-bezier(.2,.7,.2,1);
}
.cb-modal.is-open .cb-box { translate: 0 0; }
.cb-close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--surface); display: grid; place-items: center; cursor: pointer; transition: background .2s;
}
.cb-close:hover { background: var(--surface-2); }
.cb-close svg { width: 14px; height: 14px; stroke: var(--text); }
.cb-box h2 { padding-right: 44px; font-size: clamp(26px, 2.2vw, 32px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.1; }
.cb-box p { margin-top: 10px; font-size: 15px; font-weight: 500; letter-spacing: -0.3px; line-height: 1.5; color: var(--muted-2); text-wrap: balance; }
.cb-box .nw { white-space: nowrap; }
.cb-form { margin-top: 24px; display: grid; gap: 10px; }
.cb-field {
  width: 100%; height: 54px; padding: 0 18px; border: 1px solid transparent; border-radius: 14px; background-color: var(--surface);
  font: 500 15px 'Manrope', Arial, sans-serif; letter-spacing: -0.3px; color: var(--text); outline: none; transition: border-color .2s, background .2s;
}
.cb-field::placeholder { color: var(--muted); }
.cb-field:focus { border-color: var(--text); background-color: #fff; }
.cb-field.is-error { border-color: var(--accent); }
.cb-consent { margin-top: 6px; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 13px; font-weight: 500; letter-spacing: -0.2px; line-height: 1.45; color: var(--muted-2); }
.cb-consent input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0; width: 22px; height: 22px; border-radius: 6px;
  border: 1.5px solid #CFCFCF; background: #fff; cursor: pointer; display: grid; place-items: center; transition: background .15s, border-color .15s;
}
.cb-consent input:checked { background: var(--text); border-color: var(--text); }
.cb-consent input:checked::after { content: ""; width: 11px; height: 6px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.cb-consent input.is-error { border-color: var(--accent); }
.cb-consent a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.cb-submit { margin-top: 12px; align-self: stretch; justify-content: space-between; width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.cb-done { text-align: center; padding: 12px 0 4px; }
.cb-done[hidden], .cb-main[hidden] { display: none; }
.cb-ok { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.cb-ok svg { width: 26px; height: 26px; stroke: var(--text); }
.cb-done .btn-main { margin: 24px auto 0; border: 0; cursor: pointer; font-family: inherit; padding: 0 30px; }

.m-phone { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.m-phone .phone-num { font-size: 20px; }
.m-phone .cb { height: 40px; padding: 0 16px; border: 0; border-radius: 30px; background: var(--surface); font: 600 14px 'Manrope', Arial, sans-serif; color: var(--text); cursor: pointer; }

.badge[hidden] { display: none; }
.btn-cart { border: 0; cursor: pointer; font-family: inherit; }
.btn-cart.in-cart { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.btn-cart.in-cart:hover { background: var(--surface-2); }
.fav { cursor: pointer; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 150; width: min(calc(100% - 2 * var(--gutter)), 460px);
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 8px 8px 8px 8px; border-radius: 20px; background: var(--text); color: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; translate: -50% 16px; transition: opacity .25s ease, translate .25s ease, visibility 0s .25s;
}
.toast.is-on { opacity: 1; visibility: visible; translate: -50% 0; transition: opacity .25s ease, translate .25s ease, visibility 0s; }
.toast-pic { width: 52px; height: 52px; border-radius: 14px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.toast-pic img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.toast-text { min-width: 0; }
.toast-text b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -0.3px; }
.toast-text span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.62); }
.toast-go { height: 40px; padding: 0 16px; border-radius: 30px; background: #fff; color: var(--text); display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; letter-spacing: -0.3px; }

.fp {
  position: fixed; inset: 0; z-index: 180; background: rgba(20,20,20,.4);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s .3s;
}
.fp.is-open { opacity: 1; visibility: visible; transition: opacity .3s ease, visibility 0s; }
.fp-panel {
  position: absolute; top: 10px; right: 10px; bottom: 10px; width: min(calc(100% - 20px), 460px);
  display: flex; flex-direction: column; border-radius: var(--r-card); background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.25);
  translate: calc(100% + 20px) 0; transition: translate .35s cubic-bezier(.2,.7,.2,1);
}
.fp.is-open .fp-panel { translate: 0 0; }
.fp-head { display: flex; align-items: baseline; gap: 12px; padding: 26px 26px 18px; }
.fp-head h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.045em; }
.fp-count { font-size: 14px; font-weight: 500; color: var(--muted); }
.fp-close { position: absolute; top: 18px; right: 18px; }
.fp-list { flex: 1; overflow-y: auto; padding: 0 18px; display: grid; align-content: start; gap: 8px; overscroll-behavior: contain; }
.fp-item { position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 8px 40px 8px 8px; border-radius: 20px; background: var(--surface); }
.fp-pic { width: 88px; height: 88px; border-radius: 14px; background: #fff; overflow: hidden; }
.fp-pic img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.fp-info { min-width: 0; padding: 4px 0; }
.fp-info b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 600; letter-spacing: -0.3px; line-height: 1.3; }
.fp-price { margin-top: 4px; display: flex; gap: 8px; align-items: baseline; }
.fp-price span { font-size: 16px; font-weight: 700; letter-spacing: -0.03em; }
.fp-price s { font-size: 13px; font-weight: 500; color: var(--muted); }
.fp-cart { margin-top: 8px; height: 34px; padding: 0 14px; border: 0; border-radius: 30px; background: var(--text); color: #fff; cursor: pointer; font: 600 13px 'Manrope', Arial, sans-serif; transition: background .2s; }
.fp-cart:hover { background: #222; }
.fp-cart.in-cart { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.fp-del { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; cursor: pointer; display: grid; place-items: center; transition: background .15s; }
.fp-del:hover { background: #fff; }
.fp-del svg { width: 11px; height: 11px; stroke: var(--muted); }
.fp-foot { display: grid; gap: 12px; justify-items: center; padding: 16px 18px 20px; border-top: 1px solid var(--line); margin-top: 12px; }
.fp-foot .btn-main { width: 100%; justify-content: space-between; border: 0; cursor: pointer; font-family: inherit; }
.fp-empty { display: none; flex: 1; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 32px 40px; }
.fp-empty .cb-ok { width: 64px; height: 64px; margin-bottom: 20px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.fp-empty .cb-ok svg { width: 26px; height: 26px; }
.fp-empty b { font-size: 20px; font-weight: 600; letter-spacing: -0.04em; }
.fp-empty p { margin: 8px 0 24px; font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--muted-2); text-wrap: balance; }
.fp-empty .btn-main { align-self: center; }
.fp.is-empty .fp-empty { display: flex; }
.fp.is-empty .fp-list, .fp.is-empty .fp-foot { display: none; }
.fp .ct-link { padding: 0; border: 0; background: none; cursor: pointer; font: 600 13px 'Manrope', Arial, sans-serif; color: var(--muted); transition: color .2s; }
.fp .ct-link:hover { color: var(--text); }
@media (max-width: 900px) {
  .fp-panel { top: 0; right: 0; bottom: 0; width: 100%; border-radius: 0; }
  .fp-head { padding: 18px var(--gutter) 14px; }
  .fp-close { top: 10px; right: var(--gutter); }
  .fp-list { padding: 0 var(--gutter); }
  .fp-foot { padding: 14px var(--gutter) calc(16px + env(safe-area-inset-bottom)); }
}

.mc-wrap { position: relative; display: inline-flex; }
.mc {
  position: absolute; top: calc(100% + 12px); right: -8px; z-index: 70; width: 380px;
  padding: 18px; border-radius: 22px; background: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.14), 0 0 0 1px rgba(0,0,0,.04);
  opacity: 0; visibility: hidden; translate: 0 6px; transition: opacity .2s ease, translate .2s ease, visibility 0s .2s;
}
.mc::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.mc-wrap.is-open .mc { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .2s ease, translate .2s ease, visibility 0s; }
.mc-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.mc-head b { font-size: 18px; font-weight: 600; letter-spacing: -0.04em; }
.mc-head span { font-size: 13px; font-weight: 500; color: var(--muted); }
.mc-list { max-height: 300px; overflow-y: auto; display: grid; gap: 6px; overscroll-behavior: contain; }
.mc-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) 30px; gap: 12px; align-items: center; padding: 6px; border-radius: 16px; background: var(--surface); }
.mc-pic { width: 56px; height: 56px; border-radius: 12px; background: #fff; overflow: hidden; }
.mc-pic img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.mc-info { min-width: 0; }
.mc-info b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; font-weight: 600; letter-spacing: -0.2px; line-height: 1.3; }
.mc-info span { display: block; margin-top: 3px; font-size: 13px; font-weight: 700; letter-spacing: -0.2px; }
.mc-del { width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; cursor: pointer; display: grid; place-items: center; transition: background .15s; }
.mc-del:hover { background: #fff; }
.mc-del svg { width: 11px; height: 11px; stroke: var(--muted); }
.mc-del:hover svg { stroke: var(--text); }
.mc-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.mc-total span { font-size: 15px; font-weight: 600; }
.mc-total b { font-size: 22px; font-weight: 700; letter-spacing: -0.04em; }
.mc-go { margin-top: 14px; width: 100%; justify-content: space-between; }
.mc-empty { display: grid; justify-items: center; gap: 4px; padding: 14px 0 4px; text-align: center; }
.mc-empty b { font-size: 17px; font-weight: 600; letter-spacing: -0.03em; }
.mc-empty span { font-size: 14px; font-weight: 500; color: var(--muted-2); margin-bottom: 14px; }
@media (max-width: 900px) { .mc { display: none; } }

.cb-fail, .lead-fail, .ct-fail { margin-top: 10px; font-size: 13px; font-weight: 500; letter-spacing: -0.2px; line-height: 1.45; color: #D9532E; }
.lead-fail { color: #FFB59E; }
.cb-fail[hidden], .lead-fail[hidden], .ct-fail[hidden] { display: none; }

@media (hover: none) {
  .mega-tile:hover img, .card:hover img, .cat:hover .pic, .prod-pic:hover img, .fav:hover,
  .gift:hover .gift-pic, .rating:hover .rating-logo, .post-main:hover img, .post:hover .post-thumb img,
  .bl-card:hover .bl-thumb img { transform: none; }
}
