/* «UYA»: светлый маркет товаров для дома (референс Lonaka): тонкая полоса над шапкой, логотип в чёрной плашке по центру,
   широкий интерьер с «+» и две плитки справа, ряды по шесть карточек «цена — название», цветная мозаика категорий. Шрифт Manrope. */
:root {
  --bg: #fafafa; --fg: #1d1d1d; --muted: #777; --line: #e8e8e8; --soft: #f1f1f1;
  --accent: #1d1d1d; --accent-ink: #fff; --sale: #e8483b; --ok: #3f7d4f; --slate: #4f5b63;
  --card-bg: #f0f0f0; --radius: 6px; --radius-btn: 999px; --wrap: 1440px; --gap: 14px; --pad: 24px;
  --font-body: 'Manrope', system-ui, sans-serif; --font-head: 'Manrope', system-ui, sans-serif;
  --step-0: 15px;
}
h1, h2, h3 { font-weight: 500; letter-spacing: -.015em; }
.btn { font-weight: 600; font-size: 14px; min-height: 44px; }
.btn--sm { min-height: 36px; padding: 0 16px; font-size: 13px; }
.btn--dark { background: var(--slate); border-color: var(--slate); }
.btn--light { background: #fff; color: var(--fg); border-color: #fff; }

/* полоса и шапка */
.pre { display: flex; justify-content: space-between; gap: 16px; padding: 7px var(--pad); font-size: 12px; background: #f4f4f4; color: #444; }
.pre a { text-decoration: none; }
.top { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 20px; height: 62px; padding: 0 var(--pad); background: #fff; border-bottom: 1px solid var(--line); }
.top__cats, .top__info { display: flex; gap: 20px; font-size: 13px; font-weight: 500; }
.top__info { justify-content: flex-end; }
.top a { text-decoration: none; }
.top__cats a:hover, .top__info a:hover { color: var(--slate); text-decoration: underline; text-underline-offset: 4px; }
.top__logo { grid-column: 2; grid-row: 1; }
.top__cats { grid-column: 1; grid-row: 1; }
.top__info { grid-column: 3; grid-row: 1; }
.top__tools { grid-column: 4; display: flex; gap: 0; }
.logo { display: inline-block; padding: 4px 12px 5px; background: #111; color: #fff; font: italic 800 21px/1 var(--font-body); letter-spacing: .02em; }
.icon-btn svg { width: 21px; height: 21px; stroke-width: 1.6; }
.has-n { position: relative; }
.has-n b { position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--sale); color: #fff; font: 600 10px/17px var(--font-body); text-align: center; }
.top__menu { display: none; }

/* первый экран: интерьер с «+», справа плитки */
.hero { display: grid; grid-template-columns: minmax(0, 4.6fr) minmax(0, 1fr); gap: 0; background: #fff; }
.hero__main { position: relative; min-height: 0; }
.hero__main .shoproom img { width: 100%; height: clamp(420px, 44vw, 640px); object-fit: cover; }
.hero__text { position: absolute; left: clamp(20px, 3vw, 40px); bottom: clamp(24px, 4vw, 52px); max-width: 420px; color: #fff; z-index: 2; text-shadow: 0 1px 18px rgba(0,0,0,.35); pointer-events: none; }
.hero__text h1 { font-size: clamp(26px, 2.6vw, 38px); margin-bottom: 10px; }
.hero__text p { font-size: 14px; max-width: 34ch; }
.hero__text .btn { pointer-events: auto; text-shadow: none; }
.hero__main::after { content: ''; position: absolute; inset: 40% 30% 0 0; background: linear-gradient(20deg, rgba(0,0,0,.42), transparent 70%); pointer-events: none; }
.hero__side { display: grid; grid-template-rows: minmax(0,1fr) auto minmax(0,1fr); height: clamp(420px, 44vw, 640px); background: #fff; }
.hero__tile { display: block; min-height: 0; overflow: hidden; }
.hero__tile img { width: 100%; height: 100%; object-fit: cover; }
.hero__stat { display: grid; justify-items: center; gap: 6px; padding: 20px 14px; text-align: center; font-size: 13px; color: #555; }
.hero__num { font: 500 clamp(24px, 2.2vw, 34px) var(--font-head); color: var(--fg); margin: 0; }
.hero__stat a { font-weight: 600; color: var(--fg); text-underline-offset: 3px; }

/* точки «+» и всплывающая карточка */
.shoproom { position: relative; overflow: visible; }
.shoproom img { display: block; width: 100%; }
.spot { position: absolute; z-index: 3; width: 30px; height: 30px; margin: -15px 0 0 -15px; border: 0; border-radius: 50%; background: rgba(255,255,255,.95); box-shadow: 0 2px 10px rgba(0,0,0,.25); display: grid; place-items: center; padding: 0; transition: transform .2s; }
.spot span { font: 400 20px/1 var(--font-body); margin-top: -2px; }
.spot::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255,255,255,.75); animation: ping 2.4s ease-out infinite; }
.spot:hover, .spot[aria-expanded=true] { transform: scale(1.15); }
@keyframes ping { 0% { transform: scale(.7); opacity: 1; } 80%, 100% { transform: scale(1.35); opacity: 0; } }
.spot-pop { position: absolute; z-index: 5; width: 300px; transform: translate(-50%, 26px); display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 12px; background: #fff; border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.2); }
.spot-pop.is-up { transform: translate(-50%, calc(-100% - 26px)); }
.spot-pop img { width: 76px; aspect-ratio: 4/5; object-fit: cover; border-radius: 6px; }
.spot-pop div { display: grid; gap: 6px; align-content: start; font-size: 13px; }
.spot-pop a { text-decoration: none; line-height: 1.35; padding-right: 14px; }
.spot-pop b { font-size: 16px; }
.spot-pop .btn { justify-self: start; }
.spot-pop__x { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 20px; line-height: 1; padding: 4px; color: #888; }

/* ряды карточек: сначала цена, потом название, сердце в белом круге, NEW в красном кружке */
.sec-h { font-size: clamp(24px, 2.2vw, 32px); margin: 0 0 22px; }
.sec-h--c { text-align: center; }
.sec-sub { text-align: center; color: var(--muted); max-width: 60ch; margin: -10px auto 26px; font-size: 13px; }
.sec-sub--l { text-align: left; margin-left: 0; }
.shelf { padding: 64px 0 10px; }
.row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; }
.card__media { border-radius: 0; }
.card__badge { left: 10px; top: 10px; width: 46px; height: 46px; padding: 0; border-radius: 50%; background: var(--sale); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.card__fav { width: 40px; height: 40px; background: #fff; }
.card__fav svg { width: 19px; height: 19px; }
.card__body { padding: 12px 14px 14px; gap: 6px; }
.card__price { font-size: 16px; }
.card__price b { font-weight: 600; }
.card__name { font-size: 13px; line-height: 1.4; color: #333; }
.card__add { min-height: 38px; font-size: 13px; background: #fff; color: var(--fg); border-color: var(--line); margin-top: 6px; }
.card__add:hover { background: var(--fg); color: #fff; border-color: var(--fg); filter: none; }

/* мозаика категорий */
.cats { padding: 80px 0 10px; }
.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; grid-template-rows: 300px 300px; gap: 6px; }
.tile { position: relative; overflow: hidden; display: block; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tile:hover img { transform: scale(1.04); }
.tile span { position: absolute; right: 16px; bottom: 12px; color: #fff; font-size: 15px; font-weight: 500; text-shadow: 0 1px 10px rgba(0,0,0,.45); }
.tile--kitchen { grid-row: span 2; }
.tile--storage { grid-row: span 2; }
.tile--light { grid-column: 2 / span 2; }
.tile--bath { grid-column: auto; }
.mosaic { grid-template-areas: 'k t d s' 'k l l s'; }
.tile--kitchen { grid-area: k; } .tile--textile { grid-area: t; } .tile--decor { grid-area: d; } .tile--storage { grid-area: s; } .tile--light { grid-area: l; } .tile--bath { display: none; }

/* комнаты: витрина на главной и страница */
.rooms-teaser { padding: 80px 0 30px; }
.rooms-teaser__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rooms-teaser__list a { position: relative; display: block; overflow: hidden; border-radius: var(--radius); text-decoration: none; }
.rooms-teaser__list img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .6s; }
.rooms-teaser__list a:hover img { transform: scale(1.04); }
.rooms-teaser__list span { position: absolute; left: 16px; bottom: 14px; padding: 6px 14px; background: #fff; border-radius: 999px; font-weight: 600; font-size: 13px; }
.room-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.room-tabs .chip { border-radius: 999px; min-height: 40px; padding: 0 18px; font-size: 14px; }
.roompage { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 70px; }
.roompage .shoproom img { border-radius: var(--radius); }
.roomlist { background: #fff; border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; position: sticky; top: 80px; }
.roomlist__t { margin: 0; font-weight: 600; }
.roomlist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.roomlist li { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.roomlist li a { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; text-decoration: none; font-size: 13px; }
.roomlist li img { width: 52px; aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; }
.roomlist li span { display: grid; gap: 2px; }
.roomlist li .icon-btn { width: 36px; height: 36px; border: 1px solid var(--line); font-size: 18px; }

/* о бренде и сертификат */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); background: #fff; margin-top: 70px; }
.about__text { padding: clamp(28px, 4vw, 60px) clamp(20px, 3vw, 48px); display: grid; gap: 14px; align-content: center; }
.about__text p { color: #555; font-size: 14px; }
.about__facts { list-style: none; padding: 0; margin: 4px 0 10px; display: grid; gap: 10px; }
.about__facts li { display: grid; font-size: 13px; color: var(--muted); }
.about__facts b { font-size: 20px; color: var(--fg); font-weight: 500; }
.about__text .btn { justify-self: start; }
.about__img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.gift { position: relative; display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: 20px; margin: 70px auto 80px; padding: 50px 30px; background: #ededed; border-radius: var(--radius); overflow: hidden; }
.gift__text { display: grid; gap: 12px; justify-items: center; text-align: center; }
.gift__text p { color: #555; font-size: 14px; max-width: 44ch; }
.gift__img { width: 100%; max-width: 220px; justify-self: center; border-radius: var(--radius); box-shadow: 0 20px 40px -24px rgba(0,0,0,.4); }
.gift__img--l { transform: rotate(-4deg); } .gift__img--r { transform: rotate(4deg); }

/* подвал */
.foot { background: #fff; border-top: 1px solid var(--line); padding: 50px var(--pad) 24px; }
.foot__in { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 30px; }
.foot__logo { text-decoration: none; }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.foot__h { font-weight: 600; margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 13px; color: #555; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin: 0; }

/* каталог и прочие страницы */
.cat-main { --cols: 4; }
.cat-chips .chip, .chip { border-radius: 999px; }
.cartpage__side, .checkout__side { background: #fff; }

@media (max-width: 1240px) {
  .top__info { display: none; }
  .top { grid-template-columns: 1fr auto auto; }
  .top__tools { grid-column: 3; }
  .row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .row .card:nth-child(n+5) { display: none; }
  .cat-main { --cols: 3; }
}
@media (max-width: 860px) {
  :root { --pad: 16px; }
  .pre span { display: none; }
  .top { grid-template-columns: auto 1fr auto; height: 56px; gap: 8px; }
  .top__cats { display: none; }
  .top__menu { display: inline-grid; grid-column: 1; }
  .top__logo { grid-column: 2; justify-self: center; }
  .hero { grid-template-columns: 1fr; }
  .hero__main .shoproom img { height: 420px; }
  .hero__main::after { display: none; }
  .hero__text { position: static; max-width: none; color: var(--fg); text-shadow: none; padding: 18px var(--pad) 22px; background: #fff; pointer-events: auto; }
  .hero__text h1 { font-size: 26px; }
  .hero__side { grid-template-columns: 1fr 1.2fr 1fr; grid-template-rows: 130px; height: auto; }
  .hero__text .btn--light { background: var(--fg); color: #fff; border-color: var(--fg); }
  .hero__stat { padding: 10px 6px; font-size: 11px; }
  .hero__stat p:not(.hero__num) { display: none; }
  .hero__num { font-size: 18px; }
  .row { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .row::-webkit-scrollbar { display: none; }
  .row .card { scroll-snap-align: start; }
  .row .card:nth-child(n+5) { display: flex; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px 200px; grid-template-areas: 'k t' 'k d' 's l'; }
  .rooms-teaser__list { grid-template-columns: 1fr; }
  .roompage { grid-template-columns: 1fr; }
  .roomlist { position: static; }
  .spot-pop { width: 260px; }
  .about { grid-template-columns: 1fr; }
  .about__img { min-height: 280px; }
  .gift { grid-template-columns: 1fr; padding: 34px 20px; }
  .gift__img { display: none; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__cols > div:last-child { grid-column: 1 / -1; }
  .cat-main { --cols: 2; }
}
