/* „ბრენდბუქის შექმნა“ (/brandbook/). The page itself is generated (news-cms/lib/brandbook.mjs); this file is static.
   Built on sections.css (.sec, .lede, .btn, .bb, the .tier spotlight card, .rows) and news.css (.na-crumbs, .b-out),
   which every generated page loads. Only the site's colours: night, white, violet #b69cff / #4f2792. */

.bbp .sec { padding-block: clamp(56px, 8vw, 112px); }
.bbp .sec h2 { margin-bottom: 16px; font-size: clamp(30px, 4.2vw, 52px); }
.bbp .lede { margin-bottom: 40px; }
.bbp h3 { margin: 0; font: 700 21px/1.3 var(--ui-font); color: #fff; text-wrap: balance; }
.bbp p { text-wrap: pretty; }

/* ---------- hero: the text, and the sample itself as the picture (cover in front, the colours page behind, the card) ---------- */
.bbp .bbp-hero { padding-top: calc(80px + clamp(32px, 5vw, 72px)); border-top: 0; }
.bbp-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px 64px; align-items: center; }
.bbp-kicker { margin: 28px 0 12px; font: 600 15px/1.3 var(--ui-font); color: var(--violet-hi); }
.bbp-hero h1 { margin: 0 0 20px; font: 700 clamp(42px, 6vw, 76px)/1.1 var(--ui-font); color: #fff; text-wrap: balance; }
.bbp-hero .lede { margin-bottom: 32px; }
.bbp-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.bbp-note { margin: 20px 0 0; max-width: 34em; font-size: 15px; line-height: 1.6; color: var(--ink-3); }
.bbp-note a { color: #fff; font-weight: 600; text-decoration: none; }
.bbp-note a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bbp-note a:focus-visible, .bbp-card a:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 3px; border-radius: 3px; }

.bbp-art { position: relative; justify-self: end; width: 100%; max-width: 500px; aspect-ratio: 494 / 540; }
.bbp-art img {
  position: absolute; display: block; height: auto; border-radius: 10px;
  box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .1);
}
.bbp-art-p4 { left: 43.3%; top: 0; width: 56.7%; }
.bbp-art-p1 { left: 0; top: 10%; width: 60.7%; }
.bbp-art-card { left: 43.3%; top: 70.7%; width: 54.7%; border-radius: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .bbp-art img { animation: bbp-rise .9s var(--ease-out) both; }
  .bbp-art-p1 { animation-delay: .08s; }
  .bbp-art-card { animation-delay: .16s; }
}
@keyframes bbp-rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- who it's for ---------- */
.bbp-for { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.bbp-for li { padding-top: 22px; border-top: 1px solid var(--line); }
.bbp-for p { margin: 10px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* ---------- what's in it: the price cards' spotlight ring (.tier), without their squish ---------- */
.bbp-grid { --xp: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tier.bbp-card { min-height: 0; padding: 28px; gap: 12px; }
.bbp-num { font: 600 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; color: var(--violet-hi); }
.bbp-card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.bbp-card a { position: relative; z-index: 4; color: var(--violet-hi); text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .tier.bbp-card:hover { transform: none; } }

/* ---------- the sample ---------- */
.bbp figure { margin: 0; }
.bbp figcaption { margin-top: 12px; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.bbp-dim { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bbp-pages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; }
.bbp-zoom {
  display: block; border-radius: 10px; overflow: hidden; cursor: zoom-in;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 20px 40px -24px #000;
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.bbp-zoom img { display: block; width: 100%; height: auto; }
.bbp-zoom:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .bbp-zoom:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(182, 156, 255, .55), 0 28px 50px -24px #000; }
}
.bbp .bbp-sub { margin: 72px 0 24px; font-size: clamp(21px, 2vw, 26px); }
/* the files: one row height, widths from each file's own shape (a justified row) */
.bbp-assets { --row: 190px; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 20px; }
.bbp-assets li { flex: var(--ar) 1 calc(var(--ar) * var(--row)); min-width: 0; }
.bbp-assets .bbp-a-signature { max-width: 560px; }

/* ---------- the files you get: the project rows from „რა შევქმენი“ ---------- */
.bbp-files .row-meta { font-variant-numeric: tabular-nums; }

/* ---------- the brand everywhere: the same lines as „ვისთვის“, then the way to every service ---------- */
.bbp-ev { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.bbp-go-row { margin: 40px 0 0; }
/* a quiet text link with an arrow, here and on /servisebi/ */
.bbp-go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 600 16px/1 var(--ui-font); color: var(--violet-hi); text-decoration: none; }
.bbp-go::after { content: '→'; transition: transform .3s var(--ease-out); }
.bbp-go:hover { text-decoration: underline; text-underline-offset: 4px; }
.bbp-go:hover::after { transform: translateX(3px); }
.bbp-go:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 3px; border-radius: 3px; }

/* ---------- the process ---------- */
.bbp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: step; }
.bbp-steps li { padding-top: 20px; border-top: 1px solid var(--line); counter-increment: step; }
.bbp-steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 14px; font: 600 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; color: var(--violet-hi); }
.bbp-steps li:last-child { border-top-color: var(--violet-hi); }   /* the QA step is the one only Rati brings */
.bbp-steps p { margin: 10px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* ---------- questions ---------- */
.bbp-faq { max-width: 860px; border-top: 1px solid var(--line); }
.bbp-faq details { border-bottom: 1px solid var(--line); }
.bbp-faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0;
  list-style: none; cursor: pointer; font: 600 clamp(18px, 1.8vw, 21px)/1.4 var(--ui-font); color: #fff; transition: color .2s;
}
.bbp-faq summary::-webkit-details-marker { display: none; }
.bbp-faq summary::after {
  content: ''; flex: none; width: 14px; height: 14px; color: var(--violet-hi);
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  transition: transform .25s var(--ease-out);
}
.bbp-faq details[open] summary::after { transform: rotate(45deg); }
.bbp-faq summary:hover { color: var(--violet-hi); }
.bbp-faq summary:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 4px; border-radius: 4px; }
.bbp-faq details p { margin: 0 0 24px; max-width: 46em; font-size: 16px; line-height: 1.7; color: var(--ink-2); }

/* ---------- the ask: the home page's violet #brandbook block, grown up ---------- */
.bbp .bbp-end { padding-top: 0; border-top: 0; }
.bb.bbp-cta { padding: clamp(28px, 5vw, 56px); border-radius: 24px; }
.bbp .bbp-cta h2 { margin-bottom: 24px; }
.bbp-cta p { margin: 0 0 14px; font-size: 17px; color: rgba(255, 255, 255, .85); }
.bbp-ask { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 10px; }
.bbp-ask li { position: relative; padding-left: 20px; font-size: 17px; line-height: 1.5; color: #fff; }
.bbp-ask li::before { content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.bbp-handle { font: 600 17px/1 var(--ui-font); color: #fff; text-decoration: none; }
.bbp-handle:hover { text-decoration: underline; text-underline-offset: 4px; }
.bbp-handle:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 3px; }

/* ---------- the big view of a page (brandbook.js) ---------- */
html:has(.bbp-lb[open]) { overflow: hidden; }
.bbp-lb { width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); }
.bbp-lb::backdrop { background: rgba(7, 6, 11, .94); }
.bbp-lb-in { box-sizing: border-box; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 64px 88px 24px; }
.bbp-lb img { display: block; max-width: 100%; max-height: calc(100% - 40px); width: auto; height: auto; border-radius: 8px; box-shadow: 0 30px 80px -20px #000, 0 0 0 1px rgba(255, 255, 255, .1); }
.bbp-lb-cap { margin: 0; font-size: 15px; color: var(--ink-2); text-align: center; }
.bbp-lb button {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: #fff; font: 400 20px/1 var(--ui-font); cursor: pointer;
  transition: background-color .2s, border-color .2s, scale 160ms var(--ease-out);
}
.bbp-lb button:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); }
.bbp-lb button:active { scale: .96; }
.bbp-lb button:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 3px; }
.bbp-lb-x { top: 12px; right: 16px; }
.bbp-lb-prev, .bbp-lb-next { top: 50%; translate: 0 -50%; }
.bbp-lb-prev { left: 20px; }
.bbp-lb-next { right: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .bbp-lb[open] .bbp-lb-in { animation: bbp-in .22s var(--ease-out); }
}
@keyframes bbp-in { from { opacity: 0; transform: scale(.98); } }

/* ---------- smaller screens ---------- */
@media (max-width: 1000px) {
  .bbp-hero-in { grid-template-columns: 1fr; }
  .bbp-art { justify-self: center; max-width: 420px; }
  .bbp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bbp-pages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bbp-steps, .bbp-ev { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .bbp-for, .bbp-grid, .bbp-steps, .bbp-ev { grid-template-columns: 1fr; }
  .bbp-for, .bbp-steps { gap: 28px; }
  .bbp-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .bbp-assets { --row: 112px; gap: 24px 14px; }
  .bbp figcaption { font-size: 14px; }
  .tier.bbp-card { padding: 24px; }
  .bbp-lb-in { padding: 64px 12px 84px; }
  .bbp-lb-prev, .bbp-lb-next { top: auto; bottom: 18px; translate: none; }
  .bbp-lb-prev { left: calc(50% - 60px); }
  .bbp-lb-next { right: calc(50% - 60px); }
}
@media (prefers-reduced-motion: reduce) {
  .bbp-zoom, .bbp-faq summary, .bbp-faq summary::after, .bbp-lb button, .bbp-go::after { transition: none; }
}
