/* Trendon — сервісний бік: лендинг, вхід, кабінет продавця. */

:root {
  --ink: #141414;
  --ink-2: #4A4A47;
  --ink-3: #8A8A85;
  --line: #E6E2D8;
  --paper: #FFFFFF;
  --bg: #F6F3EC;
  /* Точний колір фірмового знака, знятий піпеткою з Logo1.png. */
  --yellow: #FDC503;
  --yellow-soft: #FFD84A;
  --yellow-deep: #E0A800;
  --yellow-ink: #6B5200;
  /* Великі жовті площини ніколи не плоскі: у них є джерело світла зверху-ліворуч
     і легке згасання донизу — рівна заливка на півекрана читається як друк. */
  --yellow-face:
    radial-gradient(120% 90% at 18% 8%, rgba(255, 255, 255, .45) 0%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(168deg, #FFD54A 0%, #FDC503 52%, #EFB300 100%);
  --yellow-face-flat:
    linear-gradient(104deg, #FFD44B 0%, #FDC503 46%, #F3B800 100%);
  --green: #16A34A;
  --red: #DC2626;
  --blue: #2563EB;

  --r-xs: 8px;
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --pill: 999px;

  --shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 10px 28px rgba(20, 20, 20, .07);
  --shadow-lift: 0 2px 6px rgba(20, 20, 20, .06), 0 18px 44px rgba(20, 20, 20, .12);

  --e-display: cubic-bezier(.16, 1, .3, 1);
  --e-body: cubic-bezier(.25, .46, .45, .94);
  --e-ui: cubic-bezier(.4, 0, .2, 1);

  --gut: clamp(16px, 4vw, 56px);
  --max: 1180px;

  /* Сторінка лежить у заокругленому вікні; поле навколо однакове з чотирьох
     боків і не гортається разом із вмістом. */
  --frame: clamp(8px, 1.1vw, 20px);
  --frame-r: clamp(18px, 1.9vw, 30px);
  --frame-bg: #141414;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(88px + var(--frame));
  /* Смуга прокрутки — частина поля навколо вікна, тому в кольорах знака. */
  scrollbar-color: var(--yellow) var(--frame-bg);
}
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: var(--frame-bg); }
::-webkit-scrollbar-thumb {
  background: var(--yellow);
  border-radius: var(--pill);
  border: 4px solid var(--frame-bg);
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--yellow-soft); background-clip: content-box; }
::-webkit-scrollbar-corner { background: var(--frame-bg); }

body {
  margin: 0;
  padding: var(--frame);
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  /* Поле навколо вікна: майже чорне, з ледь помітним світлом угорі. */
  background:
    radial-gradient(120% 80% at 50% -10%, #23231F 0%, rgba(35, 35, 31, 0) 60%),
    var(--frame-bg);
  background-attachment: fixed;
  letter-spacing: -.011em;
}

/* Рамка — нерухома маска поверх сторінки: усередині «вирізане» вікно із
   заокругленими кутами, зовні суцільне поле. Сторінка при цьому гортається
   як завжди, і смуга прокрутки лишається там, де їй належить — скраю вікна
   браузера, а не всередині вікна сторінки. */
body::after {
  content: "";
  position: fixed;
  top: var(--frame); right: var(--frame); bottom: var(--frame); left: var(--frame);
  border-radius: var(--frame-r);
  box-shadow: 0 0 0 100vmax var(--frame-bg), inset 0 0 0 1px rgba(255, 255, 255, .05);
  pointer-events: none;
  z-index: 200;
}

/* Вміст вікна. Скругление кутів малює маска вище, тому тут не потрібен
   ані overflow, ані власний скрол — інакше зламалися б липкі шапки. */
.shell {
  min-height: calc(100dvh - var(--frame) * 2);
  border-radius: var(--frame-r);
  background: var(--bg);
}
/* Кабінет має власне тло — воно належить вікну, а не полю навколо. */
body.dash .shell { background: #F2F0EA; }

@media print {
  body { padding: 0; background: #fff; }
  body::after { display: none; }
  .shell { min-height: 0; border-radius: 0; }
}

h1, h2, h3 { line-height: 1.05; letter-spacing: -.028em; margin: 0 0 .4em; font-weight: 800; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
code { font: 500 14px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: #F1EEE6; padding: 2px 6px; border-radius: 6px; }
.muted { color: var(--ink-3); font-weight: 500; }
.hint { color: var(--ink-3); font-size: 14px; }
.error { color: var(--red); font-size: 14px; margin: 4px 0 8px; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 62ch; }

/* --- кнопки ---------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: var(--pill);
  font: 700 16px/1 Manrope, sans-serif; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer;
  transition: transform .18s var(--e-ui), box-shadow .18s var(--e-ui), background-color .18s var(--e-ui);
}
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--danger { background: #FDECEC; color: var(--red); }
.btn--big { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn--small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.linkbtn { border: 0; background: none; color: var(--ink-3); cursor: pointer; font: 500 14px Manrope, sans-serif; }
.linkbtn:hover { color: var(--red); }

/* --- знак -------------------------------------------------------------- */

/* Знак вирізаний із фірмового PNG і працює маскою: форма оригінальна,
   а колір задає currentColor, тому один файл годиться і на жовтому, і на чорному. */
.mark {
  display: inline-block; width: 34px; height: 28px;
  background: currentColor;
  -webkit-mask: url("../img/logo-mark.7b528cb89f54.png") center / contain no-repeat;
  mask: url("../img/logo-mark.7b528cb89f54.png") center / contain no-repeat;
}
.mark--sm { width: 26px; height: 21px; }
.mark--lg { width: 54px; height: 44px; }

/* --- шапка сервісу ---------------------------------------------------- */

.top {
  position: sticky; top: var(--frame); z-index: 90;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gut);
  background: transparent;
  isolation: isolate;
}
/* Заливка шапки — окремий шар: його непрозорість веде прокрутка
   (`--top-veil` рахує trendon.js), тому на старті шапка прозора й лежить
   просто на першому екрані, а далі плавно наливається жовтим. */
.top::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: var(--yellow-face-flat);
  border-bottom: 1px solid rgba(20, 20, 20, .12);
  box-shadow: 0 6px 22px rgba(20, 20, 20, .10);
  opacity: var(--top-veil, 0);
  transition: opacity .14s linear;
}
.top__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.03em; }
.top__nav a { color: rgba(20, 20, 20, .72); }
.top .btn--ghost { box-shadow: inset 0 0 0 1.5px rgba(20, 20, 20, .28); }
.top .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); background: rgba(255, 255, 255, .35); }
.top__nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 600; }
.top__nav a { text-decoration: none; color: var(--ink-2); }
.top__nav a:hover { color: var(--ink); }
.top__actions { display: flex; gap: 10px; }

/* --- лендинг ---------------------------------------------------------- */

.eyebrow { font: 700 13px/1 Manrope, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); background: var(--ink); display: inline-block; padding: 8px 14px; border-radius: var(--pill); margin: 0 0 18px; }

/* Перший екран — суцільна фірмова заливка від краю до краю, і вона заходить
   ПІД шапку: інакше прозора шапка лежить на кремовому тлі вікна, а не на жовтому.
   Висоту шапки міряє trendon.js і кладе у --top-h. */
.home .top { border-bottom: 0; margin-bottom: calc(-1 * var(--top-h, 72px)); }
.hero-l {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(36px, 7vw, 92px) var(--gut) clamp(60px, 9vw, 120px);
  background: var(--yellow-face);
  margin-bottom: -60px;
}
.home .hero-l { padding-top: calc(var(--top-h, 72px) + clamp(28px, 5vw, 64px)); }
.hero-l > * { max-width: 590px; }
.hero-l__text { justify-self: end; width: 100%; }
.hero-l__demo { justify-self: start; width: 100%; }
.hero-l__h1 { font-size: clamp(40px, 6.6vw, 82px); line-height: .9; letter-spacing: -.035em; margin-bottom: 20px; }
.hero-l__lede { font-size: clamp(17px, 1.6vw, 20px); color: rgba(20, 20, 20, .78); max-width: 46ch; font-weight: 500; }
.hero-l__start { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 12px; }
.hero-l__addr { display: flex; align-items: center; gap: 4px; background: var(--paper); border-radius: var(--pill); padding: 4px 18px 4px 8px; box-shadow: var(--shadow); min-height: 56px; }
.hero-l__addr input { border: 0; outline: 0; font: 700 16px Manrope, sans-serif; padding: 10px 12px; background: transparent; width: 190px; }
.hero-l__addr span { color: var(--ink-3); font-weight: 600; }
.hero-l__note { color: rgba(20, 20, 20, .6); font-size: 14px; font-weight: 500; }

.demo { background: var(--ink); border-radius: var(--r-xl); padding: 12px; box-shadow: var(--shadow-lift); }
.demo__bar { display: flex; align-items: center; gap: 6px; padding: 6px 10px 12px; color: #fff; font-size: 12px; }
.demo__bar span { width: 9px; height: 9px; border-radius: 50%; background: #3A3A38; }
.demo__bar b { margin-left: 10px; font-weight: 600; color: #B9B9B4; background: #262625; padding: 5px 12px; border-radius: var(--pill); }
.demo__screen { background: #fff; border-radius: var(--r-lg); padding: 16px; }
.demo__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.demo__logo { width: 92px; height: 18px; background: var(--yellow); border-radius: var(--pill); display: block; }
.demo__nav { width: 130px; height: 10px; background: #EFEDE6; border-radius: var(--pill); display: block; }
.demo__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.demo__grid article { background: #F7F5F0; border-radius: var(--r); padding: 10px; }
.demo__img { display: block; height: 76px; border-radius: var(--r-sm); background: linear-gradient(135deg, #E9E5DA, #F6F4EF); margin-bottom: 8px; }
.demo__grid b { font-size: 15px; }

/* Панель чисел лежить на стику жовтого й паперу — це і тримає перехід. */
.band {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gut);
}
.band__item { background: var(--paper); padding: 26px 24px; text-align: left; box-shadow: var(--shadow-lift); }
.band__item + .band__item { border-left: 1px solid var(--line); }
.band__item:first-child { border-radius: var(--r-lg) 0 0 var(--r-lg); }
.band__item:last-child { border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.band__item b { display: block; font-size: clamp(28px, 3.6vw, 44px); line-height: .92; letter-spacing: -.035em; }
.band__item span { color: var(--ink-3); font-size: 14px; font-weight: 600; }

.block { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gut); }
.block__title { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 28px; }

.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.how li { background: var(--paper); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); }
.how b { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); font-size: 15px; margin-bottom: 14px; }
.how h3 { font-size: 19px; }
.how p { color: var(--ink-2); font-size: 15px; margin: 0; }

.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat { background: var(--paper); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
.feat h3 { font-size: 18px; display: inline; box-shadow: inset 0 -.42em 0 var(--yellow); line-height: 1.5; }
.feat p { margin-top: 14px; }
.feat p { color: var(--ink-2); font-size: 15px; margin: 0; }

.money { background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: clamp(26px, 4.4vw, 56px); }
.money__lede { font-size: clamp(20px, 2.4vw, 30px); line-height: 1.25; letter-spacing: -.025em; max-width: 46ch; font-weight: 600; }
.money__lede b { color: var(--yellow); }
.money .ticks li::before { color: var(--yellow); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; font-weight: 600; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 800; }

.shops { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.shopcard { background: var(--paper); border-radius: var(--r-lg); padding: 20px; text-decoration: none; box-shadow: var(--shadow); display: grid; gap: 4px; transition: transform .2s var(--e-ui); }
.shopcard:hover { transform: translateY(-3px); }
.shopcard img, .shopcard__mark { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--yellow); display: grid; place-items: center; font-weight: 800; font-size: 20px; margin-bottom: 8px; }

.cta { text-align: center; background: var(--yellow-face); padding: clamp(48px, 7vw, 104px) var(--gut); }
.cta h2 { font-size: clamp(30px, 5vw, 60px); line-height: .95; letter-spacing: -.035em; margin-bottom: 26px; }

/* --- вхід і реєстрація ------------------------------------------------ */

.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 32px; max-width: var(--max); margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--gut) 80px; align-items: start; }
.auth--narrow { grid-template-columns: minmax(0, 560px); justify-content: center; }
.auth__box { background: var(--paper); border-radius: var(--r-xl); padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow); }
.auth__box h1 { font-size: clamp(28px, 3.4vw, 40px); }
.auth__aside { background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: clamp(24px, 3vw, 40px); }
.auth__aside h2 { font-size: 20px; }
.auth__aside .ticks li::before { color: var(--yellow); }
.auth__aside .muted { color: #9A9A95; }
.auth__alt { margin-top: 18px; color: var(--ink-3); font-size: 15px; }

/* --- форми ------------------------------------------------------------ */

.form label { display: block; font-weight: 700; font-size: 14px; margin: 14px 0 6px; }
.form input[type=text], .form input[type=email], .form input[type=password], .form input[type=tel],
.form input[type=number], .form input[type=search], .form input[type=date], .form input[type=url],
.form select, .form textarea,
.filters input, .filters select, .np input, .checkout input, .checkout textarea, .checkout select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); font: 500 16px Manrope, sans-serif; color: var(--ink);
  transition: border-color .15s var(--e-ui), box-shadow .15s var(--e-ui);
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 200, 3, .35); }
.form input[type=color] { padding: 4px; height: 48px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; margin: 10px 0; font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.form--inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.form--inline input { min-width: 260px; flex: 1; }
.suggest { list-style: none; margin: 4px 0 0; padding: 6px; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); max-height: 280px; overflow: auto; position: relative; z-index: 20; }
.suggest li { padding: 10px 12px; border-radius: var(--r-xs); cursor: pointer; font-size: 15px; }
.suggest li:hover, .suggest li[aria-selected=true] { background: #F4F1E9; }

.flash { max-width: var(--max); margin: 12px auto 0; padding: 0 var(--gut); }
.flash__item { background: var(--yellow); border-radius: var(--r-sm); padding: 12px 16px; font-weight: 600; }

/* --- кабінет ---------------------------------------------------------- */

/* тло кабінету задане на самому вікні (body.dash .shell) */
.dash__top { position: sticky; top: var(--frame); z-index: 90; display: flex; align-items: center; gap: 16px; padding: 12px var(--gut); background: var(--yellow-face-flat); color: var(--ink); border-bottom: 1px solid rgba(20, 20, 20, .14); }
.dash__logo { display: flex; color: var(--ink); }
.dash__shop { display: flex; flex-direction: column; line-height: 1.2; }
.dash__shop strong { font-size: 16px; }
.dash__shop a { color: rgba(20, 20, 20, .62); font-size: 13px; text-decoration: none; }
.dash__shop a:hover { color: var(--ink); }
.dash__top-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.dash__top-actions .btn--ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(20, 20, 20, .3); background: rgba(255, 255, 255, .28); }
.dash__top-actions .btn--solid { background: var(--ink); color: #fff; }
.dash__exit { color: rgba(20, 20, 20, .62); font-size: 14px; text-decoration: none; font-weight: 600; }
.dash__exit:hover { color: var(--ink); }

.dash__shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 24px; max-width: 1360px; margin: 0 auto; padding: 24px var(--gut) 80px; }
.dash__rail { position: sticky; top: calc(84px + var(--frame)); align-self: start; display: grid; gap: 2px; }
.dash__rail a { text-decoration: none; padding: 11px 14px; border-radius: var(--r-sm); font-weight: 600; font-size: 15px; color: var(--ink-2); }
.dash__rail a:hover { background: #E9E6DE; color: var(--ink); }
.dash__rail a.is-on { background: var(--ink); color: #fff; }
.dash__rail hr { border: 0; border-top: 1px solid var(--line); margin: 10px 4px; }
.dash__main { min-width: 0; }
.dash__h1 { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 18px; }
.dash__head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.dash__head .dash__h1 { margin: 0; }
.dash__head-actions { margin-left: auto; display: flex; gap: 8px; }

.card { background: var(--paper); border-radius: var(--r-lg); padding: clamp(18px, 2vw, 26px); box-shadow: var(--shadow); margin-bottom: 18px; }
.card h2 { font-size: 18px; margin-bottom: 14px; }
.card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.card__head h2 { margin: 0; }
.card__head a { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--ink-3); text-decoration: none; }
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.tile { background: var(--paper); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); }
.tile--accent { background: var(--yellow-face-flat); }
.tile__num { display: block; font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.tile__label { color: var(--ink-3); font-size: 14px; font-weight: 600; }
.tile--accent .tile__label { color: #6B5600; }

.card--steps { background: var(--yellow-face-flat); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.steps__item a { display: block; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .55); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; transition: background-color .18s var(--e-ui); }
.steps__item a:hover { background: #fff; }
.steps__item.is-done a { background: var(--ink); color: var(--yellow); }
.steps__item.is-done a::before { content: "✓ "; }

.grid { width: 100%; border-collapse: collapse; font-size: 15px; }
.grid th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 0 10px 10px; font-weight: 700; }
.grid td { padding: 12px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.grid tfoot td { border-top: 1px solid var(--line); }
.grid tr.total td { font-size: 17px; }
.grid--tight td { padding: 8px 10px; }
.grid__product { display: flex; align-items: center; gap: 10px; }
.grid__product img, .thumb { width: 44px; height: 44px; border-radius: var(--r-xs); object-fit: cover; background: #EFEDE6; }
.thumb--empty { display: block; }

.pill { display: inline-block; padding: 5px 11px; border-radius: var(--pill); background: #EFEDE6; font-size: 13px; font-weight: 700; }
.pill--on, .pill--paid, .pill--delivered, .pill--done { background: #DFF3E4; color: #17683A; }
.pill--new { background: #FFF0C2; color: #7A5B00; }
.pill--pending { background: #FFF0C2; color: #7A5B00; }
.pill--canceled, .pill--failed { background: #FDECEC; color: var(--red); }
.pill--shipped, .pill--confirmed { background: #E3ECFD; color: #1B47A8; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tabs a { padding: 9px 14px; border-radius: var(--pill); background: var(--paper); text-decoration: none; font-weight: 600; font-size: 14px; }
.tabs a.is-on { background: var(--ink); color: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.filters input, .filters select { max-width: 280px; }
.bulk { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.bulk select, .bulk input { min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font: 500 15px Manrope, sans-serif; }
.bulk input[type=number] { width: 90px; }

.empty { color: var(--ink-3); padding: 18px 0; }
.ranked { list-style: none; margin: 0; padding: 0; }
.ranked li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.ranked li:first-child { border-top: 0; }
.listing { list-style: none; margin: 0; padding: 0; }
.listing li { display: flex; flex-direction: column; padding: 12px 0; border-top: 1px solid var(--line); }
.listing li:first-child { border-top: 0; }
.timeline { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.timeline li { padding: 8px 0; border-top: 1px solid var(--line); }
.timeline time { color: var(--ink-3); margin-right: 10px; font-variant-numeric: tabular-nums; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.actions select { min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font: 500 15px Manrope, sans-serif; }
.ttn { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: #F4F1E9; padding: 12px 16px; border-radius: var(--r); }
.howto { padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.howto li { margin-bottom: 6px; }
.gallery { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.gallery figure { position: relative; margin: 0; }
.gallery img { width: 104px; height: 104px; object-fit: cover; border-radius: var(--r-sm); }
.gallery__del { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(20, 20, 20, .8); color: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
.form--product { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.form__aside { position: sticky; top: calc(84px + var(--frame)); }
.danger-zone { margin-top: 18px; }
.onboard { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 14px; }
.onboard li { background: var(--paper); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
.onboard h2 { font-size: 20px; }
.onboard .btn { margin-right: 8px; margin-top: 8px; }
.big { font-size: clamp(22px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; }
.pager { display: flex; gap: 14px; align-items: center; justify-content: center; padding: 20px 0; font-weight: 600; }
.plain { max-width: 820px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--gut) 80px; }
.plain h1 { font-size: clamp(30px, 4vw, 48px); }
.plain h2 { font-size: 22px; margin-top: 32px; }
.prose p, .prose li { color: var(--ink-2); }
.shoplist { list-style: none; padding: 0; }
.shoplist li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: baseline; }

/* --- підвал ------------------------------------------------------------ */

.foot { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 24px; max-width: var(--max); margin: 0 auto; padding: 48px var(--gut) 64px; border-top: 1px solid var(--line); }
.foot__brand { display: grid; gap: 6px; align-content: start; }
.foot__brand span { font-weight: 800; font-size: 18px; }
.foot__brand p { color: var(--ink-3); font-size: 14px; max-width: 34ch; }
.foot__col { display: grid; gap: 8px; align-content: start; font-size: 14px; }
.foot__col h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin: 0 0 4px; }
.foot__col a { text-decoration: none; color: var(--ink-2); }
.foot__col a:hover { color: var(--ink); }
.foot__legal { grid-column: 1 / -1; color: var(--ink-3); font-size: 13px; margin: 0; }

/* --- заглушки --------------------------------------------------------- */

.stub { display: grid; place-items: center; min-height: 100vh; overflow: auto;
        background: var(--yellow-face); padding: var(--frame); }
.stub__box { background: var(--paper); border-radius: var(--r-xl); padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow-lift); max-width: 520px; text-align: center; }
.stub__box h1 { font-size: clamp(26px, 4vw, 38px); }

/* --- телефон ---------------------------------------------------------- */

@media (max-width: 900px) {
  .hero-l, .auth, .form--product, .split, .dash__shell { grid-template-columns: minmax(0, 1fr); }
  .band, .how, .feats, .shops, .tiles { grid-template-columns: repeat(2, 1fr); }
  .band__item { border-radius: var(--r) !important; }
  .top__nav { display: none; }
  .foot { grid-template-columns: repeat(2, 1fr); }
  .dash__rail { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .dash__rail hr { display: none; }
  .dash__rail a { white-space: nowrap; }
  .form__aside { position: static; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .band, .how, .feats, .shops, .tiles { grid-template-columns: 1fr; }
  .hero-l__addr, .hero-l__addr input { width: 100%; }
  .hero-l__start .btn { width: 100%; }
  /* У шапці залишається сам знак: назва поруч із двома кнопками не влазить. */
  .top { gap: 10px; }
  .top__logo span:not(.mark) { display: none; }
  .top__actions .btn { padding: 0 14px; font-size: 15px; min-height: 44px; }
  .dash__head-actions { width: 100%; }

  /* кабінет на телефоні */
  .dash__top { flex-wrap: wrap; row-gap: 8px; padding: 10px var(--gut); }
  .dash__shop { flex: 1; min-width: 0; }
  .dash__shop strong, .dash__shop a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dash__top-actions { gap: 8px; }
  .dash__top-actions .btn { min-height: 40px; padding: 0 14px; font-size: 14px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
