/* 🧶 «Про нас» (pages/about.html) — власні стилі сторінки, префікс .ab-*.
   Спільні примітиви (корінь .ab, hero з мозаїкою, смуга чисел, картки довіри, панелі, фінал, поява) —
   у editorial.css, який підключено ПЕРЕД цим файлом. Тут — лише те, що є тільки на «Про нас».
   Лише токени --color-* → світла й темна теми без окремих правил. */

/* ════════ 3. ВІТРИНИ ════════ */
.ab-shops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ab-shop { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--color-text);
  background: var(--color-surface); border: 1px solid var(--color-border); transition: transform .25s var(--ab-ease), box-shadow .25s var(--ab-ease), border-color .2s var(--ab-ease); }
@media (hover: hover) { .ab-shop:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--color-accent) 40%, var(--color-border)); }
  .ab-shop:hover .ab-shop__cov img { transform: scale(1.05); } .ab-shop:hover .ab-shop__go i { transform: translateX(4px); } }
.ab-shop__cov { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; aspect-ratio: 4 / 3; background: var(--color-bg-alt); }
.ab-shop__cov > span { position: relative; overflow: hidden; background: var(--ab-sk); }
.ab-shop__cov > span:first-child { grid-row: 1 / 3; }
.ab-shop__cov img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ab-ease); }
.ab-shop__cov--one { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.ab-shop__cov--empty { display: grid; place-items: center; grid-template-columns: 1fr; grid-template-rows: 1fr; background: var(--ab-tint); }
.ab-shop__cov--empty img { width: 46%; height: auto; object-fit: contain; }
.ab-shop__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.ab-shop__t { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ab-shop__t h3 { margin: 0; font-family: var(--font-heading); font-size: 1.4rem; line-height: 1.15; }
.ab-shop__n { flex: none; font-size: .8rem; font-weight: 700; color: var(--ab-ink); background: var(--ab-tint); padding: 3px 10px; border-radius: 999px; min-width: 4ch; text-align: center; }
.ab-shop__n:empty { visibility: hidden; }
.ab-shop p { margin: 0; color: var(--color-text-muted); line-height: 1.55; font-size: .95rem; }
.ab-shop__go { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--ab-ink); display: inline-flex; gap: 6px; }
.ab-shop__go i { font-style: normal; transition: transform .2s var(--ab-ease); }
.ab-fair { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 16px 20px; border-radius: 18px; border: 1.5px dashed color-mix(in srgb, var(--color-accent) 40%, var(--color-border));
  background: color-mix(in srgb, var(--color-accent) 5%, transparent); color: var(--color-text); text-decoration: none; }
.ab-fair__ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--ab-tint); }
.ab-fair b { font-family: var(--font-heading); font-size: 1.05rem; }
.ab-fair p { margin: 2px 0 0; font-size: .9rem; color: var(--color-text-muted); line-height: 1.45; }
.ab-pill { display: inline-block; margin-left: 8px; vertical-align: 2px; font-family: var(--font-body); font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; background: var(--color-accent); color: var(--color-on-accent); }

/* ════════ 4. ІСТОРІЯ ════════ */
.ab-story { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.ab-quote { position: sticky; top: calc(var(--header-height, 70px) + 24px); }
.ab-quote blockquote { margin: 0; font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.45rem, 3.4vw, 2.3rem); line-height: 1.2; letter-spacing: -.01em; color: var(--color-text); text-wrap: balance; }
.ab-quote blockquote::before { content: "“"; display: block; font-size: 2.6em; line-height: .6; color: var(--color-accent); margin-bottom: 10px; }
.ab-quote img { display: block; margin-top: 30px; width: 210px; height: auto; filter: drop-shadow(0 16px 22px rgb(0 0 0 / .16)); }
.ab-prose p { margin: 0 0 18px; font-size: 1.06rem; line-height: 1.75; color: var(--color-text-muted); }
.ab-prose p:first-child { font-size: 1.2rem; color: var(--color-text); }
.ab-prose p b { color: var(--color-text); }
.ab-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.ab-value { padding: 16px; border-radius: 16px; background: var(--color-surface); border: 1px solid var(--color-border); }
.ab-value b { display: block; font-family: var(--font-heading); font-size: 1rem; margin-bottom: 4px; color: var(--color-text); }
.ab-value span { font-size: .86rem; color: var(--color-text-muted); line-height: 1.45; }

/* ════════ 5. МАЙСТРИ (картки — як у «Брендах») ════════ */
.ab-rail-wrap { position: relative; }
.ab-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, calc((100% - 36px) / 3)); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 4px 18px; margin: 0 -4px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.ab-rail > * { scroll-snap-align: start; }
.ab-rail__nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.ab-rail__nav[hidden] { display: none; }
.ab-rail__nav button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--color-border); background: var(--color-surface); color: var(--color-text); cursor: pointer; font-size: 1.1rem; display: grid; place-items: center; transition: border-color .2s, color .2s; }
.ab-rail__nav button:hover:not(:disabled) { border-color: var(--color-accent); color: var(--ab-ink); }
.ab-rail__nav button:disabled { opacity: .4; cursor: default; }
.ab .brand-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 0 16px 16px; overflow: hidden; text-decoration: none; color: inherit; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--ab-r); transition: transform .25s var(--ab-ease), box-shadow .25s var(--ab-ease), border-color .15s var(--ab-ease); }
@media (hover: hover) { .ab .brand-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--color-accent) 35%, var(--color-border)); } .ab .brand-card:hover .bc-strip img, .ab .brand-card:hover .bc-cover img { transform: scale(1.05); } }
.ab .bc-cover { position: relative; margin: 0 -16px; aspect-ratio: 16 / 6; background: var(--color-bg-alt); overflow: hidden; }
.ab .bc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ab-ease); }
.ab .bc-head { position: absolute; left: 10px; bottom: 10px; width: min(250px, calc(100% - 20px)); height: 46px; box-sizing: border-box; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 12px 5px 5px; border-radius: 999px;
  background: color-mix(in srgb, var(--color-surface) 70%, transparent); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgb(255 255 255 / .4); box-shadow: 0 4px 14px rgb(0 0 0 / .16); }
.ab .bc-logo { width: 34px; height: 34px; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--color-accent) 10%, var(--color-surface)); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: .95rem; font-weight: 800; color: var(--ab-ink); overflow: hidden; box-shadow: 0 0 0 2px rgb(255 255 255 / .75); }
.ab .bc-logo img { width: 100%; height: 100%; object-fit: cover; }
.ab .bc-id { min-width: 0; flex: 1; }
.ab .bc-name { display: flex; align-items: center; gap: 6px; font-family: var(--font-heading); font-size: .98rem; line-height: 1.25; min-width: 0; color: var(--color-text); }
.ab .bc-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab .bc-ok { flex: none; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .68rem; font-style: normal; background: var(--color-success-bg); color: var(--color-success-fg); }
.ab .bc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: .74rem; color: var(--color-text-muted); }
.ab .bc-meta b { color: var(--color-text); font-weight: 700; }
.ab .bc-star { color: #f59e0b; }
.ab .bc-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ab .bc-strip > * { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--ab-sk); }
.ab .bc-strip img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ab-ease); }
.ab .bc-tagline { font-size: .86rem; color: var(--color-text-muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.ab .bc-go { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--color-border); font-size: .84rem; font-weight: 600; color: var(--ab-ink); }
.ab .bc-go small { font-weight: 500; color: var(--color-text-muted); }
.ab-bsk { height: 320px; border-radius: var(--ab-r); }

/* ════════ 6. ВІДГУКИ ════════ */
.ab-revs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.ab-rev { margin: 0; box-shadow: var(--shadow-sm); padding: 22px; border-radius: 20px; background: var(--color-surface); border: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 12px; }
.ab-rev__stars { color: #f59e0b; letter-spacing: 2px; font-size: 1rem; }
.ab-rev blockquote { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--color-text); display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.ab-rev__who { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: .84rem; color: var(--color-text-muted); padding-top: 12px; border-top: 1px solid var(--color-border); }
.ab-rev__who b { color: var(--color-text); }
.ab-rev__who a { color: var(--ab-ink); text-decoration: none; font-weight: 600; }
.ab-rev__who a:hover { text-decoration: underline; }

/* ════════ 8. ЯК КУПУВАТИ — кола з іконками на пунктирній нитці (як «Як почати» на «Стати брендом») ════════ */
.ab-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: ab; position: relative; }
.ab-steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 39px; border-top: 2px dashed color-mix(in srgb, var(--color-accent) 40%, var(--color-border)); }
.ab-step { position: relative; counter-increment: ab; text-align: center; padding: 0 8px; }
.ab-step__n { position: relative; width: 80px; height: 80px; margin: 0 auto 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--color-surface);
  border: 2px solid color-mix(in srgb, var(--color-accent) 45%, var(--color-border)); box-shadow: 0 0 0 10px var(--color-bg-alt); transition: transform .3s var(--ab-ease); }
.ab-step__n::before { content: counter(ab); position: absolute; right: -6px; top: -6px; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .86rem;
  background: var(--color-accent); color: var(--color-on-accent); box-shadow: 0 4px 10px -2px rgb(var(--color-accent-rgb, 200 95 61) / .6); }
.ab-step__n .nyt-ico { width: 36px !important; height: 36px !important; }
@media (hover: hover) { .ab-step:hover .ab-step__n { transform: translateY(-4px) rotate(-4deg); } }
.ab-step h3 { margin: 0 0 8px; font-family: var(--font-heading); font-size: 1.18rem; line-height: 1.25; color: var(--color-text); }
.ab-step p { margin: 0 auto; max-width: 290px; font-size: .94rem; line-height: 1.6; color: var(--color-text-muted); }

/* Котик визирає з-над рейки майстрів; котики в панелях «Купуєте?/Створюєте?» — внизу праворуч, біля кнопок */
.ab-rail__peek { position: absolute; z-index: 2; left: 46%; top: 4px; width: 132px; height: auto; transform: translateY(-88%); pointer-events: none; }

/* ════════ Адаптив ════════ */
@media (max-width: 1024px) {
  .ab-rail { grid-auto-columns: minmax(280px, calc((100% - 18px) / 2)); }
  .ab-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 18px; }
  .ab-steps::before { display: none; }
}
@media (max-width: 860px) {
  .ab-shops { grid-template-columns: minmax(0, 1fr); }
  .ab-shop { flex-direction: row; }
  .ab-shop__cov { width: 42%; flex: none; aspect-ratio: auto; min-height: 168px; }
  .ab-story { grid-template-columns: minmax(0, 1fr); }
  .ab-quote { position: static; display: flex; align-items: flex-end; gap: 16px; }
  .ab-quote img { width: 130px; height: auto; margin: 0; flex: none; }
  .ab-rail__nav { display: none; }
}
@media (max-width: 600px) {
  .ab-shop { flex-direction: column; }
  .ab-shop__cov { width: auto; aspect-ratio: 16 / 9; min-height: 0; }
  .ab-shop__body { padding: 16px 18px 18px; }
  .ab-values { grid-template-columns: minmax(0, 1fr); }
  .ab-rail { grid-auto-columns: 84%; margin: 0 -16px; padding: 4px 16px 18px; scroll-padding: 0 16px; }
  .ab-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ab-step { display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 16px; padding: 0 0 24px; text-align: left; }
  .ab-step::after { content: ""; position: absolute; left: 28px; top: 62px; bottom: 4px; width: 2px; background: color-mix(in srgb, var(--color-accent) 25%, var(--color-border)); }
  .ab-step:last-child { padding-bottom: 0; } .ab-step:last-child::after { display: none; }
  .ab-step__n { grid-row: 1 / 3; width: 58px; height: 58px; margin: 0; box-shadow: none; } .ab-step__n .nyt-ico { width: 26px !important; height: 26px !important; }
  .ab-step__n::before { width: 24px; height: 24px; font-size: .74rem; }
  .ab-step h3 { margin: 6px 0 4px; } .ab-step p { margin: 0; max-width: none; }
  .ab-rail__peek { display: none; }
  .ab-quote img { width: 110px; }
  .ab-revs { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .ab-rail { scroll-behavior: auto; }
}
