/* ============================================================
   Kolev Photo · Галерия на гостите (pages/guest-gallery.html)
   версия v0.1 · build 005 · 2026-11-26
   Автор / By: Tihomir Kolev
   (увеличавай брояча при всяка промяна, дори най-малката)
   ============================================================
   Само за тази страница; върху style.css на сайта. Различното:
   тъмното начало („залата вечер“, като самата галерия) с жива сцена —
   снимка отлита от телефона към екрана в залата. Останалото — тихо,
   със същите цветове, шрифтове и компоненти на сайта.
*/

.gg {
  --gg-night: #1d1a17;
  --gg-night-2: #0d0c0b;
  --gg-paper: #f4efe7;
  --gg-teal: #1c665c;          /* лентата на помощника в самата галерия */
  --gg-wait: #b35f00;          /* „чака“ */
  --gg-ok: #2e7d46;            /* „видима“ */
}

/* Без една дума на ред (Тихомир, 25.11.2026: „винаги“): кратките текстове — балансирани редове;
   по-дългите — нормални редове, но без сама дума накрая (pretty; където го няма — balance). */
.gg main :is(h1, h2, h3, p, li, .faq-question) { text-wrap: balance; }
.gg main :is(.gg-lead, .gg-split p, .faq-answer p) { text-wrap: balance; text-wrap: pretty; }

/* ---- начало: текст вляво, сцена вдясно -------------------------------------- */
.gg-hero {
  position: relative;
  overflow: hidden;
  background: var(--gg-night);
  padding: calc(var(--nav-real) + var(--space-3xl)) 0 var(--space-4xl);
}
.gg-hero::before {                       /* топло сияние, като в CTA на сайта */
  content: '';
  position: absolute;
  top: -35%;
  right: -15%;
  width: 75%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.16) 0%, transparent 62%);
  pointer-events: none;
}
.gg-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--space-3xl);
  align-items: center;
}
.gg-hero .text-accent { font-size: 1.3rem; margin-bottom: var(--space-sm); }
.gg-hero h1 { color: var(--gg-paper); margin-bottom: var(--space-lg); }
.gg-lead { color: rgba(244, 239, 231, 0.78); font-size: 1.08rem; line-height: 1.75; max-width: 34em; }
.gg-hero-btns { display: flex; flex-wrap: wrap; gap: var(--space-md); margin: var(--space-xl) 0 var(--space-lg); }
.gg-hero-btns .btn-lg { padding-left: 2.5rem; padding-right: 2.5rem; }   /* EN надписите са по-дълги — двата бутона да са на един ред */
.gg-ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; font-size: 0.9rem; color: rgba(244, 239, 231, 0.72); }
.gg-ticks i { color: var(--color-secondary); margin-right: 0.45rem; }

/* ---- сцената: телевизор, телефон, QR картичка; размерите — в cqw (ширината ѝ) ---- */
.gg-scene {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 6 / 5;
  width: 100%;
}
.gg-tv { position: absolute; left: 0; top: 2cqw; width: 82cqw; }
.gg-tv-frame {
  padding: 1.6cqw;
  background: var(--gg-night-2);
  border-radius: 2cqw;
  box-shadow: 0 3cqw 7cqw rgba(0, 0, 0, 0.5), inset 0 0 0 0.3cqw #2a2622;
}
.gg-tv-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 0.7cqw; background: var(--gg-night); }
.gg-tv-screen::after {                  /* тъмно отдолу — за имената, като на истинския екран */
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(13, 12, 11, 0.7));
  z-index: 1;
}
.gg-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: ggSlide 24s linear infinite;
  animation-delay: calc(var(--i) * 4s - 21.4s);   /* слайд i идва, когато снимка i кацне */
}
.gg-tv-names {
  position: absolute;
  left: 3cqw;
  bottom: 2cqw;
  z-index: 2;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 3.6cqw;
  color: var(--gg-paper);
}
.gg-tv-stand {
  width: 18cqw;
  height: 3cqw;
  margin: 0 auto;
  background: linear-gradient(#2a2622, #121110);
  clip-path: polygon(32% 0, 68% 0, 100% 100%, 0 100%);
}

.gg-phone {
  position: absolute;
  right: 1cqw;
  bottom: 0;
  z-index: 3;
  width: 25cqw;
  aspect-ratio: 9 / 19;
  padding: 1cqw;
  background: #111;
  border-radius: 4cqw;
  box-shadow: 0 3cqw 6cqw rgba(0, 0, 0, 0.55), inset 0 0 0 0.3cqw #3a3a3a;
}
.gg-phone-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.2cqw;
  padding: 2.6cqw 1.4cqw 1.6cqw;
  border-radius: 3.2cqw;
  background: var(--gg-night);
  overflow: hidden;
}
.gg-phone-title { font-family: var(--font-accent); font-style: italic; font-size: 2.3cqw; line-height: 1.1; color: var(--gg-paper); text-align: center; }
.gg-phone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6cqw; }
.gg-phone-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0.5cqw; }
.gg-phone-btn {
  position: relative;
  overflow: hidden;
  margin-top: auto;
  padding: 1.3cqw 0;
  border-radius: 99px;
  background: var(--color-secondary);
  color: var(--gg-night);
  font: 700 1.8cqw/1 var(--font-body);
  text-align: center;
}
.gg-phone-btn::after {                  /* лентата за качване */
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 0.5cqw;
  width: 0;
  background: var(--gg-night);
  animation: ggProgress 4s linear infinite;
}
.gg-fly {                               /* снимката, която отлита към екрана */
  position: absolute;
  left: 79cqw;
  top: 50cqw;
  z-index: 4;
  width: 10cqw;
  aspect-ratio: 3 / 2;
  border-radius: 0.6cqw;
  overflow: hidden;
  opacity: 0;
  box-shadow: 0 1cqw 2.5cqw rgba(0, 0, 0, 0.55);
  animation: ggFly 24s cubic-bezier(0.55, 0, 0.3, 1) infinite;
  animation-delay: calc(var(--i) * 4s);
}
.gg-fly img { width: 100%; height: 100%; object-fit: cover; }

.gg-qr {
  position: absolute;
  left: 5cqw;
  bottom: 2cqw;
  z-index: 3;
  width: 19cqw;
  padding: 1.6cqw 1.6cqw 1.2cqw;
  background: #fff;
  border-radius: 1.4cqw;
  box-shadow: 0 2cqw 4cqw rgba(0, 0, 0, 0.45);
  transform: rotate(-4deg);
}
.gg-qr svg { display: block; width: 100%; height: auto; }
.gg-qr p { margin: 0.8cqw 0 0; font-size: 1.55cqw; line-height: 1.2; color: var(--color-primary); text-align: center; font-weight: 700; }
.gg-qr-box { position: relative; }
.gg-scan {                              /* златна линия, която „чете“ кода */
  position: absolute;
  left: -3%;
  right: -3%;
  top: 0;
  height: 3%;
  border-radius: 2px;
  background: var(--color-secondary);
  box-shadow: 0 0 1.4cqw 0.3cqw rgba(201, 169, 110, 0.75);
  animation: ggScan 2.6s ease-in-out infinite alternate;
}

/* ---- как работи: три стъпки с малки живи картинки ------------------------------- */
.gg-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2xl);
  counter-reset: gg-step;
}
.gg-step { position: relative; text-align: center; counter-increment: gg-step; }
.gg-step h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-bottom: var(--space-sm); }
.gg-step p { font-size: 0.93rem; max-width: 24em; margin: 0 auto; }
.gg-step:not(:last-child)::before {     /* пунктир между стъпките — „тече“ надясно */
  content: '';
  position: absolute;
  top: 64px;
  left: calc(50% + 84px);
  width: calc(100% - 168px + var(--space-2xl));
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--color-secondary) 0 6px, transparent 6px 14px);
  opacity: 0.55;
  animation: ggMarch 1.2s linear infinite;
}
.gg-mini {
  position: relative;
  width: 128px;
  height: 128px;
  margin: 0 auto var(--space-lg);
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: grid;
  place-items: center;
}
.gg-mini::after {                       /* номерът на стъпката */
  content: counter(gg-step);
  position: absolute;
  top: 2px;
  right: 2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-secondary);
  color: #fff;
  font: 700 0.9rem/32px var(--font-body);
}
.gg-mini-qr { position: relative; width: 58px; }
.gg-mini-qr svg { display: block; width: 100%; height: auto; }
.gg-mini-qr .gg-scan { box-shadow: 0 0 8px 1px rgba(201, 169, 110, 0.75); animation-duration: 1.8s; }
.gg-mini-phone {
  position: relative;
  width: 46px;
  height: 80px;
  border: 3px solid var(--color-primary);
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}
.gg-mini-phone::before {                /* лентата за качване */
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 9px;
  height: 4px;
  border-radius: 2px;
  background: var(--color-border);
}
.gg-mini-phone::after {
  content: '';
  position: absolute;
  left: 6px;
  bottom: 9px;
  height: 4px;
  width: 0;
  border-radius: 2px;
  background: var(--color-secondary);
  animation: ggMiniBar 2.4s ease-in-out infinite;
}
.gg-mini-photo {                        /* снимката, която излиза нагоре */
  position: absolute;
  left: 8px;
  top: 24px;
  width: 24px;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--color-secondary-light), var(--color-accent));
  animation: ggMiniUp 2.4s ease-in-out infinite;
}
.gg-mini-tv { position: relative; width: 84px; }
.gg-mini-tv-screen {
  position: relative;
  height: 52px;
  border: 3px solid var(--color-primary);
  border-radius: 5px;
  overflow: hidden;
  background: var(--color-primary);
}
.gg-mini-tv-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: ggMiniSwap 6s ease-in-out infinite;
}
.gg-mini-tv-screen img + img { animation-delay: -3s; }
.gg-mini-tv-stand { width: 26px; height: 6px; margin: 0 auto; background: var(--color-primary); clip-path: polygon(25% 0, 75% 0, 100% 100%, 0 100%); }

/* шестте карти — по три на ред (на сайта са по четири: 4 + 2 стоеше накриво) */
.gg-cards > .quick-info-card { flex: 1 1 300px; max-width: 360px; }

/* ---- „Вие решавате какво се вижда“: макет на лентата на помощника --------------- */
.gg-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-3xl);
  align-items: center;
}
.gg-split h2 { margin-bottom: var(--space-lg); }
.gg-split p { max-width: 34em; }
.gg-modes { list-style: none; display: grid; gap: 0.6rem; margin-top: var(--space-lg); }
.gg-modes li { display: flex; gap: 0.7rem; align-items: baseline; color: var(--color-text-light); font-size: 0.95rem; }
.gg-modes b { color: var(--color-primary); }
.gg-modes i { color: var(--color-secondary); width: 1.1em; flex: none; }

.gg-mock {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg);
  box-shadow: var(--shadow-lg);
}
.gg-mock-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--gg-teal);
  color: var(--gg-paper);
}
.gg-mock-title { flex: 1; font: italic 1.25rem/1 var(--font-accent); }
.gg-mock-role { font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: rgba(244, 239, 231, 0.16); }
.gg-pill {                              /* „3 чакат“ — пулсира като в галерията */
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 99px;
  background: #fff;
  color: var(--gg-night);
  font-size: 0.8rem;
  font-weight: 700;
  animation: ggPillShow 10s linear infinite;
}
.gg-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gg-wait); animation: ggBlink 1.8s ease-in-out infinite; }
.gg-pill::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 2px solid #fff;
  animation: ggPing 1.8s ease-out infinite;
}
.gg-count { display: grid; }
.gg-count > span { grid-area: 1 / 1; opacity: 0; }
.gg-count > :nth-child(1) { animation: ggC3 10s linear infinite; }
.gg-count > :nth-child(2) { animation: ggC2 10s linear infinite; }
.gg-count > :nth-child(3) { animation: ggC1 10s linear infinite; }

.gg-mock-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 16px; }
.gg-cell { position: relative; border: 3px solid var(--gg-ok); border-radius: 8px; overflow: hidden; background: #fff; }
.gg-cell.is-wait { border-color: var(--gg-wait); }
.gg-cell img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gg-cap { display: flex; justify-content: space-between; gap: 4px; padding: 5px 7px; font-size: 0.72rem; color: var(--color-text-light); }
.gg-cap b { color: var(--color-primary); }
.gg-st { font-weight: 700; color: var(--gg-ok); }
.is-wait .gg-st { color: var(--gg-wait); }
.gg-ok {                                /* одобрена: „видима“ отгоре (рамката сменя цвета си отделно) */
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.gg-ok span {
  position: absolute;
  right: 7px;
  bottom: 5px;
  padding-left: 6px;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gg-ok);
}
.gg-cell:nth-child(1) .gg-ok { animation: ggOkA 10s linear infinite; }
.gg-cell:nth-child(2) .gg-ok { animation: ggOkB 10s linear infinite; }
.gg-cell:nth-child(3) .gg-ok { animation: ggOkC 10s linear infinite; }
.gg-cell.is-wait:nth-child(1) { animation: ggBdA 10s linear infinite; }   /* рамката: оранжево -> зелено заедно с „видима“ */
.gg-cell.is-wait:nth-child(2) { animation: ggBdB 10s linear infinite; }
.gg-cell.is-wait:nth-child(3) { animation: ggBdC 10s linear infinite; }

/* ---- поводи: снимки с име --------------------------------------------------------- */
.gg-occasions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); }
.gg-occ {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-primary);
}
.gg-occ img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--transition-elegant); }
.gg-occ::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(29, 26, 23, 0.78)); }
.gg-occ span {
  position: absolute;
  left: var(--space-lg);
  bottom: var(--space-md);
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #fff;
}
.gg-occ span::after {                   /* златна черта, която се разлива при посочване */
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 6px;
  background: var(--color-secondary);
  transition: width var(--transition-elegant);
}
.gg-occ:hover img, .gg-occ:focus-visible img { transform: scale(1.06); }
.gg-occ:hover span::after, .gg-occ:focus-visible span::after { width: 100%; }

/* ---- анимациите ------------------------------------------------------------------- */
@keyframes ggSlide {
  0% { opacity: 0; transform: scale(1.02); }
  2% { opacity: 1; }
  16.6% { opacity: 1; }
  19.5% { opacity: 0; transform: scale(1.08); }
  100% { opacity: 0; transform: scale(1.08); }
}
@keyframes ggFly {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6); }
  1.5% { opacity: 1; transform: translate(0, 0) scale(1); }
  6% { opacity: 1; transform: translate(0, -1.5cqw) scale(1.05); }
  12% { opacity: 1; transform: translate(-43cqw, -27.5cqw) scale(3.2); }
  13.5%, 100% { opacity: 0; transform: translate(-43cqw, -27.5cqw) scale(3.6); }
}
@keyframes ggProgress {
  0% { width: 0; opacity: 0.55; }
  36% { width: 100%; opacity: 0.55; }
  42%, 100% { width: 100%; opacity: 0; }
}
@keyframes ggScan { from { transform: translateY(0); } to { transform: translateY(3200%); } }
@keyframes ggMarch { from { background-position: 0 0; } to { background-position: 14px 0; } }
@keyframes ggMiniBar { 0% { width: 0; } 60%, 100% { width: calc(100% - 12px); } }
@keyframes ggMiniUp {
  0%, 55% { transform: translateY(0); opacity: 1; }
  85% { transform: translateY(-34px); opacity: 0; }
  86%, 100% { transform: translateY(0); opacity: 0; }
}
@keyframes ggMiniSwap { 0%, 40% { opacity: 1; } 50%, 90% { opacity: 0; } 100% { opacity: 1; } }
@keyframes ggPing { 0% { transform: scale(1); opacity: 0.9; } 80%, 100% { transform: scale(1.3); opacity: 0; } }
@keyframes ggBlink { 50% { opacity: 0.3; } }
@keyframes ggPillShow { 0%, 50% { opacity: 1; } 52%, 90% { opacity: 0; } 92%, 100% { opacity: 1; } }
@keyframes ggC3 { 0%, 19% { opacity: 1; } 21%, 90% { opacity: 0; } 92%, 100% { opacity: 1; } }
@keyframes ggC2 { 0%, 19% { opacity: 0; } 21%, 34% { opacity: 1; } 36%, 100% { opacity: 0; } }
@keyframes ggC1 { 0%, 34% { opacity: 0; } 36%, 50% { opacity: 1; } 52%, 100% { opacity: 0; } }
@keyframes ggOkA { 0%, 19% { opacity: 0; } 21%, 90% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes ggOkB { 0%, 34% { opacity: 0; } 36%, 90% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes ggOkC { 0%, 49% { opacity: 0; } 51%, 90% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes ggBdA { 0%, 19% { border-color: var(--gg-wait); } 21%, 90% { border-color: var(--gg-ok); } 92%, 100% { border-color: var(--gg-wait); } }
@keyframes ggBdB { 0%, 34% { border-color: var(--gg-wait); } 36%, 90% { border-color: var(--gg-ok); } 92%, 100% { border-color: var(--gg-wait); } }
@keyframes ggBdC { 0%, 49% { border-color: var(--gg-wait); } 51%, 90% { border-color: var(--gg-ok); } 92%, 100% { border-color: var(--gg-wait); } }

/* ---- по-тесни екрани ------------------------------------------------------------- */
/* Цената в долната лента — точно под изречението, по-ярка */
.gg .cta-section p:has(+ .gg-price) { margin-bottom: 0.6rem; }
.gg .cta-section .gg-price { color: #fff; font-weight: 600; }

@media (max-width: 1000px) {
  .gg-hero-grid, .gg-split { grid-template-columns: 1fr; }
  .gg-scene { max-width: 560px; margin: 0 auto; }
  .gg-occasions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .gg-hero { padding-bottom: var(--space-3xl); }
  .gg-steps { grid-template-columns: 1fr; gap: var(--space-xl); }
  .gg-step:not(:last-child)::before { display: none; }
  .gg-mock-grid { gap: 7px; padding: 10px; }
  .gg-cap { font-size: 0.66rem; padding: 4px 5px; }
  .gg-ok span { font-size: 0.66rem; right: 5px; bottom: 4px; }
}
@media (max-width: 480px) {
  .gg-occasions { grid-template-columns: 1fr; }
  .gg-mock-role { display: none; }
}

/* ---- „по-малко движение“: всичко стои, сцената показва една снимка ---------------- */
@media (prefers-reduced-motion: reduce) {
  .gg-slide, .gg-fly, .gg-scan, .gg-phone-btn::after, .gg-step::before, .gg-mini-phone::after,
  .gg-mini-photo, .gg-mini-tv-screen img, .gg-pill, .gg-pill::before, .gg-pill::after,
  .gg-count > span, .gg-ok, .gg-cell.is-wait { animation: none; }
  .gg-slide:last-of-type { opacity: 1; }
  .gg-fly, .gg-scan, .gg-pill::after { display: none; }
  .gg-mini-phone::after { width: 60%; }
  .gg-mini-tv-screen img + img { opacity: 0; }
  .gg-count > :nth-child(1) { opacity: 1; }
}
