/* Общи основи за трите варианта: нулиране, видео плочки, превключвател */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

:focus-visible { outline: 2px solid var(--focus, #34506a); outline-offset: 3px; border-radius: 4px; }

/* Лека YouTube плочка: зарежда плейъра чак при клик */
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #c9d1bd; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), filter .6s; }
.yt:hover img, .yt:focus-visible img { transform: scale(1.045); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt__play {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px;
  border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), background .3s;
}
.yt__play::after {
  content: ""; margin-left: 4px;
  border-left: 16px solid var(--play, #2b3229); border-top: 10px solid transparent; border-bottom: 10px solid transparent;
}
.yt:hover .yt__play, .yt:focus-visible .yt__play { transform: scale(1.12); background: #fff; }
.yt.is-playing .yt__play, .yt.is-playing img { display: none; }

/* Превключвател между вариантите (само за прегледа на дизайните) */
.vswitch {
  position: fixed; z-index: 999; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 2px; padding: 5px;
  font: 500 13px/1 system-ui, "Segoe UI", sans-serif; color: #f3f1e6;
  background: rgba(34, 41, 33, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 999px; box-shadow: 0 10px 30px -10px rgba(20, 30, 20, .5);
}
.vswitch span { padding: 0 10px 0 12px; opacity: .7; }
.vswitch a { padding: 9px 14px; border-radius: 999px; transition: background .25s; white-space: nowrap; }
.vswitch a:hover { background: rgba(255, 255, 255, .14); }
.vswitch a[aria-current="page"] { background: #f3f1e6; color: #222921; }
@media (max-width: 560px) {
  .vswitch span { display: none; }
  .vswitch a { padding: 9px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Режим за автоматични снимки (?shot) */
.shot .hero { min-height: 900px !important; height: 900px !important; }
.shot .fixedbg { position: absolute !important; height: 900px !important; }
.shot [data-reveal] { opacity: 1 !important; transform: none !important; }
.shot .vswitch { display: none; }

/* Цитати: всички заемат едно и също място, вижда се само текущият */
[data-quotes] .quotes__stack { display: grid; }
[data-quotes] blockquote { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 1.2s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1), visibility 1.2s; }
[data-quotes] blockquote.is-on { opacity: 1; visibility: visible; transform: none; }
.shot.shot-y .fixedbg { position: fixed !important; height: auto !important; }


/* без хоризонтално излизане от декоративните елементи, без да се чупи position: sticky */
html, body { overflow-x: clip; }
