/* Prvok od Buřinky – static rebuild. Values taken from the original Elementor CSS
   (post-9 kit, post-8 header, post-37 page, post-115 footer, theme style.css). */
:root {
  --ink: #26344c;
  --ink-2: #283650;
  --ink-3: #475878;
  --purple: #8d1990;
  --menu-grey: #c6c6c6;
  --tint: rgba(23, 128, 224, .05);
  --bar: #cce0f4;
  --orange: linear-gradient(37deg, #f7c361 0%, #ff2a84 100%);
  --pink: linear-gradient(37deg, #f7618b 0%, #2a7aff 100%);
  --shadow: 0 10px 40px rgba(42, 122, 255, .13);
  --header-h: 84px;
  --wrap: 1195px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0; overflow-x: hidden; background: #fff; color: var(--ink);
  font: 400 16px/1.5 Montserrat, sans-serif; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: bolder; }
h1, h2, h3 { font-weight: 300; margin: 0 0 20px; }
h2 { color: var(--purple); font-size: 34px; line-height: 1.2; letter-spacing: 12.7px; text-align: center; text-transform: uppercase; }
h3 { color: var(--ink-2); font-size: 24px; letter-spacing: 3.25px; }
section[id], footer [id] { scroll-margin-top: var(--header-h); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; position: relative; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: #fff; padding: 8px 16px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid #2a7aff; outline-offset: 3px; }

/* buttons */
.btn {
  display: inline-block; width: 300px; max-width: 100%; padding: 20px; border-radius: 100px;
  color: #fff !important; font-weight: 700; font-size: 16px; line-height: 20px; letter-spacing: 2.67px;
  text-transform: uppercase; text-align: center; text-decoration: none;
  background-size: 100% 100%; transition: filter .3s, transform .3s;
}
.btn-orange { background-image: var(--orange); }
.btn-pink { background-image: var(--pink); }
.btn-orange:hover { background-image: var(--pink); }
.btn-pink:hover { background-image: var(--orange); }

/* header */
body { padding-top: var(--header-h); }
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: #000; height: var(--header-h);
  display: flex; align-items: center; justify-content: center; padding: 5px 100px;
}
.logo img { width: 300px; max-height: 74px; object-fit: contain; }
.header-right { position: absolute; right: 100px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 40px; }
.lang { display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.lang a { color: #fff; text-decoration: none; font-size: 16px; font-weight: 400; }
.lang a[aria-current] { font-weight: 700; }
.menu-toggle {
  background: none; border: 0; color: #fff; cursor: pointer; display: flex; align-items: center; gap: 2px;
  font: 400 16px Montserrat, sans-serif; letter-spacing: 8.21px; text-transform: uppercase; padding: 8px 0;
}
.menu-toggle i, .menu-toggle i::before, .menu-toggle i::after {
  display: block; width: 36px; height: 4px; border-radius: 4px; background: var(--menu-grey); transition: .3s; position: relative;
}
.menu-toggle i::before, .menu-toggle i::after { content: ""; position: absolute; left: 0; }
.menu-toggle i::before { top: -9px; }
.menu-toggle i::after { top: 9px; }
.menu-toggle[aria-expanded="true"] i { background: transparent; }
.menu-toggle[aria-expanded="true"] i::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] i::after { top: 0; transform: rotate(-45deg); }
.menu {
  position: absolute; top: 100%; left: 0; right: 0; background: #000; padding: 20px 0;
  max-height: calc(100vh - var(--header-h)); overflow: auto;
}
.menu ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.menu a {
  display: block; padding: 13px 20px; color: var(--menu-grey); text-decoration: none;
  font-size: 20px; font-weight: 400; letter-spacing: 8.21px; text-transform: uppercase;
}
.menu a:hover, .menu a:focus-visible { color: #fff; background: #222; }

/* banner + hero */
.banner img { width: 100%; }
.hero {
  position: relative; min-height: calc(100vh - 92px); display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: #333 url("images/hero-poster.jpg") center / cover; padding: 40px 20px 120px; text-align: center;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg iframe {
  position: absolute; top: 50%; left: 50%; border: 0;
  width: max(100%, 177.78vh); height: max(100%, 56.25vw); transform: translate(-50%, -50%);
}
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .3); }
.hero h1 { position: relative; z-index: 1; color: #fff; font-size: 4rem; line-height: 1.3; font-weight: 500; margin: 0; max-width: var(--wrap); }
.hero-cta { position: absolute; z-index: 1; bottom: 8vh; left: calc(50% - 150px); }

/* intro + 3D print */
.intro {
  background: url("images/2020/03/prvok-bg1.png") no-repeat 55% 100%;
  padding: 75px 20px 260px;
}
.intro-text { max-width: 760px; margin: 0 auto; text-align: center; font-size: 29px; font-weight: 200; line-height: 41px; }
.print3d {
  position: relative; z-index: 9; max-width: var(--wrap); margin: -20px auto 0; padding: 0 20px 35px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end;
}
.print3d .bubble-1 { width: 100%; max-width: 605px; margin-bottom: -32px; }
.print3d-text { font-size: 19px; line-height: 30px; font-weight: 300; padding-bottom: 20px; }
.print3d-text h2 { text-align: left; }

/* section two: prvok, event gallery, videos */
.section-two {
  background: url("images/2020/03/prvok-bg2.png") no-repeat -310px -50px;
  margin-top: -130px; padding: 130px 0 125px;
}
.prvok { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.prvok-text { text-align: right; padding-right: 30px; font-size: 19px; line-height: 30px; font-weight: 300; }
.prvok-text h2 { text-align: right; margin-right: -12.7px; }
.bubble-2 { width: 150px; justify-self: start; margin-top: 61px; }
.event { text-align: center; margin-top: 70px; font-size: 19px; line-height: 30px; font-weight: 300; }
.h-small { letter-spacing: 1px; text-transform: none; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 30px; }
.gallery a { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #eef2f8; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.gallery a::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0); transition: background .8s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery a:hover::after { background: rgba(0, 0, 0, .5); }
.videos { margin-top: 110px; text-align: center; }
.video-frame { position: relative; max-width: 769px; margin: 76px auto 99px; }
.video-frame::before, .video-frame::after { content: ""; position: absolute; left: 0; right: 0; background-size: 100% 100%; pointer-events: none; }
.video-frame::before { top: -76px; height: 76px; background-image: url("images/shadow_top.png"); }
.video-frame::after { bottom: -99px; height: 99px; background-image: url("images/shadow_bottom.png"); }
.video { display: block; position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 769 / 432; }
.video img { width: 100%; height: 100%; object-fit: cover; }
.video .play { position: absolute; inset: 0; transition: background .3s; }
.video .play::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: 50%; background: rgba(0, 0, 0, .55); transition: background .3s, transform .3s;
}
.video .play::after {
  content: ""; position: absolute; left: 50%; top: 50%; margin: -14px 0 0 -8px;
  border-style: solid; border-width: 14px 0 14px 24px; border-color: transparent transparent transparent #fff;
}
.video:hover .play { background: rgba(0, 0, 0, .12); }
.video:hover .play::before { background: #e3001b; transform: scale(1.08); }

/* authors */
.authors { padding: 50px 30px 100px; max-width: calc(var(--wrap) + 60px); margin: 0 auto; }
.author-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 160px 30px; margin-top: 180px; }
.card { background: #fff; border-radius: 10px; box-shadow: var(--shadow); }
.author { position: relative; padding: 70px 40px 40px; text-align: center; color: var(--ink); font-weight: 300; }
.author h3 { line-height: 1; }
.author img { width: 275px; max-height: 240px; object-fit: contain; margin: -200px auto 20px; }
.author:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; max-width: calc(50% - 15px); }

/* instagram */
.insta { position: relative; padding: 55px 20px 0; min-height: 440px; text-align: center; overflow: hidden; }
.insta-h { font-size: 4.5rem; font-weight: 400; line-height: 1; letter-spacing: normal; text-transform: uppercase; position: relative; z-index: 1; word-break: break-word; margin: 0; }
.insta-logo { position: absolute; left: max(-60px, calc(50% - 740px)); top: 132px; width: 352px; opacity: .3; }
.insta .btn { position: relative; z-index: 1; margin: 50px 0 75px; padding: 10px 0; }

/* press */
.press { padding: 100px 0 125px; }
.press-item {
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center;
  max-width: var(--wrap); margin: 0 auto 50px; padding: 20px;
}
.press-item.tinted { background: var(--tint); }
.press-item.media-first .press-media { order: -1; }
.press-text h3 { color: var(--purple); font-size: 34px; line-height: 1; margin-bottom: 20px; }
.press-text a, .contact-links a { text-decoration: none; border-bottom: 1px solid; }
.press-text a:hover { color: var(--purple); }
.gallery-press { grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 0; }
.gallery-press a { aspect-ratio: 1 / 1; }
.press-media > img, .clip img { width: 100%; }
.clip { display: block; }
.note { text-align: center; font-size: .9rem; line-height: 1; margin-top: 15px; }

/* partners */
.gp { padding: 50px 20px 0; text-align: center; }
.gp img { margin: 0 auto; width: 500px; }
.partners {
  background: url("images/2020/03/prvok-bg2.png") no-repeat;
  margin-top: -60px; padding: 150px 20px 75px;
}
.partner-grid { list-style: none; margin: 40px auto 0; padding: 0; max-width: 1225px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.flip { height: 200px; perspective: 1000px; outline: none; }
.flip-inner { position: relative; width: 100%; height: 100%; transition: transform .6s; transform-style: preserve-3d; }
.flip:hover .flip-inner, .flip:focus-visible .flip-inner, .flip.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip:focus-visible { outline: 2px solid #2a7aff; outline-offset: 4px; border-radius: 7px; }
.flip-front, .flip-back {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: #fff no-repeat center; border-radius: 7px; box-shadow: var(--shadow);
}
.flip-front { background-origin: content-box; padding: 18px; }
.flip-back { transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: center; padding: 10px; text-align: center; }
.flip-back h3 { color: var(--purple); font-size: 20px; line-height: 1; margin: 0 0 10px; }
.flip-back p { font-size: 16px; line-height: 1.5; color: var(--ink); }

/* footer */
.prefooter {
  background: url("images/2020/03/bublina-ii.png") no-repeat -420px 0;
  padding: 125px 100px 40px; text-align: center;
}
.f-logo { width: 387px; margin: 50px auto; }
.f-buttons { display: flex; justify-content: center; gap: 44px; flex-wrap: wrap; padding: 22px 0; }
.contacts { display: grid; grid-template-columns: 15% 70% 15%; align-items: end; margin-top: 15px; }
.contacts > div { grid-column: 2; }
.contacts h2 { margin: 55px 0 20px; }
.fb { grid-column: 1; grid-row: 1; justify-self: start; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--purple); color: #fff; }
.contact-links { color: var(--ink-3); font-size: 24px; font-weight: 200; line-height: 34px; }
.contact-links a { color: var(--ink-3); border-color: transparent; }
.contact-links a:hover { border-color: var(--ink); }
.bottombar {
  background: var(--bar); min-height: 73px; padding: 0 100px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: 12px; font-weight: 400; line-height: 15px;
}
.bottombar p { margin: 0; }
.support { display: flex; align-items: center; gap: 15px; }
.support img { width: 113px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lb-stage { margin: 0; width: min(92vw, 1400px); height: 86vh; display: flex; align-items: center; justify-content: center; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-stage iframe { width: 100%; aspect-ratio: 16 / 9; max-height: 100%; border: 0; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 48px; line-height: 1; cursor: pointer; padding: 10px 18px; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; color: #ccc; font-size: 13px; margin: 0; }
.lightbox.single .lb-prev, .lightbox.single .lb-next, .lightbox.single .lb-count { display: none; }

/* reveal (Elementor fadeInUp) */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s, transform .9s; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- tablet ≤1024 ---------- */
@media (max-width: 1299px) {
  .btn { width: 250px; padding: 15px 20px; }
  .hero-cta { left: calc(50% - 125px); }
  .section-two { background-position: -650px -50px; }
}
@media (max-width: 1024px) {
  .site-header { padding: 0 25px; }
  .logo img { height: 50px; width: auto; }
  .header-right { right: 25px; gap: 30px; }
  .hero h1 { font-size: 3rem; }
  .intro { padding: 50px 20px 100px; background-position: 38% 97%; }
  .intro-text { max-width: 70%; font-size: 20px; line-height: 25px; }
  .print3d { margin-top: 0; padding: 50px 25px 0; }
  .print3d-text, .prvok-text, .event { font-size: 16px; line-height: 25px; }
  .section-two { margin-top: -40px; padding: 140px 0 220px; background-position: -811px -45px; }
  .video-frame { max-width: 512px; margin: 38px auto 47px; }
  .video-frame::before { top: -38px; height: 38px; }
  .video-frame::after { bottom: -47px; height: 47px; }
  .authors { margin-top: -90px; padding: 0 25px; }
  .author-grid { margin-top: 220px; gap: 200px 25px; }
  .insta { padding: 50px 30px 0; min-height: 0; }
  .insta-logo { width: 260px; top: 110px; }
  .insta-h { font-size: 3rem; }
  .insta .btn { margin: 30px 0; }
  .press { padding: 75px 0 0; }
  .press-text h3 { font-size: 25px; }
  .gp { padding: 50px 30px 0; }
  .partners { padding: 75px 5px 50px; margin-top: 0; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .prefooter { padding: 125px 50px 40px; background-position: -1050px 0; }
  .f-logo { width: 250px; margin: 30px auto; }
  .contacts { grid-template-columns: 20% 60% 20%; }
  .contacts h2 { margin-top: 20px; }
  .contact-links { font-size: 16px; line-height: 25px; }
  .bottombar { padding: 0 50px; }
}

/* ---------- phone ≤767 ---------- */
@media (max-width: 767px) {
  :root { --header-h: 64px; }
  h2 { font-size: 28px; letter-spacing: 8px; }
  .site-header { justify-content: flex-start; padding: 10px 20px; }
  .logo img { width: 150px; height: auto; }
  .header-right { right: 20px; gap: 16px; }
  .lang a { font-size: 13px; }
  .menu-toggle { font-size: 12px; letter-spacing: 4px; gap: 4px; }
  .menu-toggle i, .menu-toggle i::before, .menu-toggle i::after { width: 28px; height: 3px; }
  .menu-toggle i::before { top: -8px; }
  .menu-toggle i::after { top: 8px; }
  .menu a { font-size: 16px; letter-spacing: 5px; }
  .hero { min-height: 0; padding: 30px 20px 125px; height: auto; }
  .hero h1 { font-size: 2.5rem; padding-top: 60px; }
  .intro-text { max-width: 100%; }
  .print3d { grid-template-columns: 1fr; padding: 70px 20px 0; gap: 10px; }
  .print3d .bubble-1 { width: 150px; margin: 0; order: 2; }
  .section-two { margin-top: 0; padding: 100px 0 120px; }
  .prvok { grid-template-columns: 1fr; }
  .prvok-text { padding-right: 0; }
  .bubble-2 { display: none; }
  .event { margin-top: 30px; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .videos { margin-top: 70px; }
  .video-frame { margin: 25px auto 30px; }
  .video-frame::before { top: -25px; height: 25px; }
  .video-frame::after { bottom: -30px; height: 30px; }
  .authors { margin-top: 0; padding: 30px 20px 0; }
  .author-grid { grid-template-columns: 1fr; margin-top: 170px; gap: 170px; }
  .author { padding: 40px 25px 30px; }
  .author img { width: 200px; margin-top: -170px; }
  .author:last-child:nth-child(odd) { max-width: none; }
  .insta { padding: 75px 20px 30px; min-height: 0; }
  .insta-h { font-size: 1.5rem; }
  .insta-logo { width: 130px; top: 20px; left: -40px; opacity: .35; }
  .insta .btn { margin: 20px 0 0; }
  .press { padding: 75px 0 30px; }
  .press-item { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .press-item.tinted { padding: 30px 20px; }
  .gallery-press { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .press-text h3 { font-size: 22px; }
  .partners { padding: 75px 5px 0; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .flip { height: 160px; }
  .flip-back h3 { font-size: 16px; }
  .flip-back p { font-size: 13px; }
  .prefooter { padding: 150px 20px 20px; }
  .f-logo { width: 200px; }
  .f-buttons { flex-direction: column; align-items: center; gap: 20px; }
  .contacts { display: block; margin-top: 0; }
  .contacts h2 { margin-top: 50px; }
  .fb { margin: 0 auto; display: flex; }
  .bottombar { flex-direction: column; justify-content: center; padding: 20px; text-align: center; }
  .support { flex-wrap: wrap; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
