@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');

:root{
  --bg: #f4f6f9;
  --text: #0d1626;
  --muted: #667085;
  --white: #ffffff;
  --border: rgba(13, 22, 38, .10);

  /* SAMO ORANŽNA */
  --primary: #f59e0b;
  --primary-ink: #0b0f14;

  --radius: 18px;
  --shadow: 0 18px 40px rgba(13,22,38,.12);
}

html.dark-mode {
  --bg: #0f0f0f;
  --text: #f5f5f5;
  --muted: #b0b0b0;
  --white: #1a1a1a;
  --border: rgba(255, 255, 255, .08);
  --primary: #f59e0b;
  --primary-ink: #f5f5f5;
  --shadow: 0 18px 40px rgba(0, 0, 0, .40);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: 'Sora', ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  background:
    radial-gradient(1200px 700px at top right, rgba(245,158,11,.18), transparent 55%),
    radial-gradient(900px 500px at top left, rgba(13,22,38,.08), transparent 60%),
    var(--bg);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: top right, top left, top left;
  color: var(--text);
  line-height: 1.5;
  transition: background-color .3s ease;
}

html.dark-mode body {
  background:
    radial-gradient(1200px 700px at top right, rgba(245,158,11,.08), transparent 55%),
    radial-gradient(900px 500px at top left, rgba(255,255,255,.05), transparent 60%),
    var(--bg);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: top right, top left, top left;
}

body > main{
  flex: 1 0 auto;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }
.muted{ color: var(--muted); }

.eyebrow{
  margin:0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.center{ text-align:center; }

.container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 14px;
}

/* TOPBAR */
.topbar{
  position: sticky;
  top:0;
  z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(13,22,38,.06);
  transition: background .3s ease, box-shadow .3s ease;
}

html.dark-mode .topbar {
  background: rgba(15, 15, 15, .86);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .20);
}
.topbar__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.logo{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -.2px;
}
.logo__mark{
  width: 34px; height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), rgba(0,0,0,.08));
}
.logo__mark--image{ display:none; background: transparent; }
.logo.logo--image-only{
  gap: 0;
}
.logo.logo--image-only .logo__mark--image{
  display:flex;
  align-items:center;
  justify-content:center;
  width: auto;
  height: 74px;
  border-radius: 0;
  border: 0;
  background: transparent;
}
.logo__image{
  width: auto;
  height: 100%;
  object-fit: contain;
  display:block;
  max-width: min(520px, 78vw);
}
.logo__text{ font-size: 14px; }
.logo__text b{ color: var(--primary); }

.nav{ display:flex; align-items:center; position: relative; }
.nav__toggle{
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 10px;
  padding: 9px;
  display:inline-flex;
  flex-direction: column;
  gap: 4px;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.nav__toggleLine{
  width: 18px;
  height: 2px;
  background: rgba(13,22,38,.75);
  border-radius: 999px;
  display:block;
  transform-origin: center;
}

.nav__toggle:hover{
  background: #fff;
  border-color: rgba(13,22,38,.18);
}

html.dark-mode .nav__toggle:hover {
  background: #1a1a1a;
  border-color: rgba(244, 246, 249, .18);
}

html.dark-mode .nav__toggleLine {
  background: rgba(244, 246, 249, .75);
}

html.dark-mode .nav__toggle:hover {
  background: #1a1a1a;
  border-color: rgba(244, 246, 249, .18);
}

.nav.is-open .nav__toggle{
  transform: scale(.98);
}

.nav.is-open .nav__toggleLine:nth-child(1){
  transform: translateY(6px) rotate(45deg);
}

.nav.is-open .nav__toggleLine:nth-child(2){
  opacity: 0;
}

.nav.is-open .nav__toggleLine:nth-child(3){
  transform: translateY(-6px) rotate(-45deg);
}

.nav__toggleLine{
  transition: transform .2s ease, opacity .16s ease;
}

.nav__menu{
  position: absolute;
  top: 58px;
  right: 0;
  left: auto;
  width: max-content;
  max-width: calc(100vw - 24px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  display:flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(.98);
  transform-origin: top right;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease, background .3s ease;
  box-shadow: 0 18px 34px rgba(13,22,38,.14);
}

html.dark-mode .nav__menu {
  background: #1a1a1a;
  box-shadow: 0 18px 34px rgba(0, 0, 0, .30);
}

html.dark-mode .nav__toggle {
  border-color: rgba(245,158,11,.45);
  background: rgba(245,158,11,.08);
}

html.dark-mode .nav__toggle:hover {
  background: rgba(245,158,11,.16);
  border-color: rgba(245,158,11,.62);
}
.nav__menu a{
  font-weight: 900;
  padding: 10px 12px;
  border-radius: 12px;
  min-width: 120px;
  text-align: left;
}
.nav__menu a:hover{
  background: rgba(13,22,38,.06);
  text-decoration:none;
}
.nav__menu a.is-active{
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #111827;
}

html.dark-mode .nav__menu a{
  color: #f5f5f5;
}

html.dark-mode .nav__menu a:hover{
  background: rgba(245,158,11,.16);
  color: #ffe0ad;
}

html.dark-mode .nav__menu a.is-active{
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #111827;
}

html.dark-mode .btn--primary,
html.dark-mode .project-card__action,
html.dark-mode .nav__menu a.is-active {
  color: #111827;
}
.nav.is-open .nav__menu{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.nav__theme-toggle-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding-top: 6px;
  width: 100%;
}

.toggle-label {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  line-height: 1;
  user-select: none;
}

.nav__theme-toggle {
  background: linear-gradient(135deg, #f3f4f6, #d1d5db);
  border: 1px solid rgba(13,22,38,.18);
  border-radius: 999px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
  width: 44px;
  height: 24px;
}

.toggle-track {
  position: absolute;
  width: 44px;
  height: 24px;
  background: linear-gradient(135deg, #f3f4f6, #d1d5db);
  opacity: 1;
  border-radius: 999px;
  transition: background .3s ease;
  z-index: 1;
}

.nav__theme-toggle-container.is-active .toggle-track {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.nav__theme-toggle-container.is-active .nav__theme-toggle {
  border-color: rgba(245,158,11,.65);
}

.toggle-thumb {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--white);
  border-radius: 999px;
  top: 2px;
  left: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
  transition: left .3s ease, box-shadow .3s ease;
  z-index: 2;
}

.nav__theme-toggle-container.is-active .toggle-thumb {
  left: 22px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}

.nav__theme-toggle:hover .toggle-thumb {
  box-shadow: 0 2px 8px rgba(0, 0, 0, .20);
}

.nav__theme-toggle-container.is-active:hover .toggle-thumb {
  box-shadow: 0 2px 8px rgba(0, 0, 0, .40);
}

.pill{
  display:inline-flex;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(13,22,38,.04);
  border: 1px solid var(--border);
  font-weight: 900;
}

/* HERO */
.hero{
  position: relative;
  min-height: 66vh;
  display:flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow:hidden;
}
.hero__bg{ position:absolute; inset:0; }
.hero__bg img{
  width:100%; height:100%;
  object-fit: cover;
  transform: scale(1);
  transform-origin: center;
  filter: contrast(1.03) saturate(.98);
  transition: opacity 1.1s ease-in-out;
  opacity: 1;
  background: transparent;
}
.hero__bg img.is-fading{ opacity: 0; }

.hero__overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(13,22,38,.35), rgba(13,22,38,.62));
}

.hero__content{
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 14px 6px;
  color: #fff;
  width: min(1200px, 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  transform: translateY(10px);
}

.hero__content .eyebrow{
  color: rgba(255,255,255,.96);
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.hero__content h1{
  margin:0 0 10px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -.6px;
}
.hero__content .lead{
  margin:0 0 16px;
  max-width: 55ch;
  opacity: .92;
}

.hero__actions{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.14);
  color:#fff;
  text-decoration:none;
}
.btn:hover{ text-decoration:none; filter: brightness(1.03); }

.btn--primary{
  background: var(--primary);
  border-color: transparent;
  color: var(--primary-ink);
}
.btn--ghost{ background: rgba(255,255,255,.12); }
.btn--small{ padding: 10px 14px; border-radius: 14px; }

.hero__controls{
  margin-top: 12px;
  margin-bottom: 10px;
  display:flex;
  align-items:center;
  justify-content: flex-end;
}
.hero__ctrl{
  width: 44px;
  height: 44px;
  padding: 4px;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 3px 10px rgba(0,0,0,.45);
  transition: transform .18s ease, opacity .18s ease;
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero__ctrl:hover{
  transform: scale(1.08);
}
.hero__dots{ display:flex; gap: 8px; align-items:center; position: relative; top: 5px; }
.hdot{
  width: 8px; height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.35);
  cursor:pointer;
}
.hdot.is-active{
  width: 10px; height: 10px;
  background: rgba(255,255,255,.92);
}

.hero__brands{
  position: relative;
  background: rgba(255,255,255,.92);
  border-top: 1px solid rgba(255,255,255,.35);
}
.brands{
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 14px;
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  color: rgba(13,22,38,.55);
  font-weight: 800;
  font-size: 12px;
}

/* SECTIONS */
.section{
  max-width: 1200px;
  margin: 0 auto;
  padding: 42px 14px;
}
.section--tight{ padding: 32px 14px; }
.section--soft{ background: #fff; transition: background .3s ease; }

html.dark-mode .section--soft {
  background: #1a1a1a;
}

.grid{ display:grid; gap: 18px; }
.grid--about{ grid-template-columns: 1fr; }

.collage{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.collage img{
  width:100%;
  height: 180px;
  object-fit: cover;
  transform: scale(.94);
  transform-origin: center;
  background: #e9edf3;
  border-radius: var(--radius);

  /* “stare slike” */
  filter: sepia(.30) contrast(1.05) saturate(.90) brightness(.98);
}
.collage__a{ grid-column: 1 / -1; height: 220px; }

.copy h2{
  margin:0 0 10px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 26px;
  letter-spacing: -.4px;
}
.copy p{ margin: 0 0 14px; }

.project-pills{
  margin: 0 0 16px;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}
.project-pill{
  display:inline-flex;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(13,22,38,.05);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 12px;
}

html.dark-mode .project-pill {
  background: rgba(244, 246, 249, .08);
}

.features{
  margin-top: 18px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.feature{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

html.dark-mode .feature {
  background: #1a1a1a;
}
.icon{
  width: 42px; height: 42px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(245,158,11,.16);
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 18px;
}
.feature h3{ margin:0 0 6px; }
.feature p{ margin:0; }

/* SERVICES BAND */
.band{
  position: relative;
  min-height: 520px;
  overflow:hidden;
}
.band__bg{ position:absolute; inset:0; }
.band__bg img{ width:100%; height:100%; object-fit: cover; }
.band__overlay{ position:absolute; inset:0; background: rgba(13,22,38,.40); }

.band__inner{
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 42px 14px;
  display:flex;
  justify-content: flex-start;
}
.band__card{
  width: min(520px, 100%);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: var(--radius);
  padding: 18px;
}
.band__card h2{ margin:0 0 8px; }
.service-list{
  margin: 10px 0 14px;
  padding-left: 18px;
  color: rgba(13,22,38,.78);
  font-weight: 700;
}
.service-list li{ margin: 6px 0; }

/* CAPABILITIES */
.caps{
  margin-top: 16px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cap{
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 12px;
  font-weight: 900;
  text-align:center;
  cursor:pointer;
}
.cap.is-active{
  border-color: rgba(245,158,11,.45);
}

/* PROJECT GRID (projects.html) */
.projects-grid{
  margin: 16px auto 0;
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
}
.project-card{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  animation: rise-in .55s ease both;
}

html.dark-mode .project-card {
  background: #1a1a1a;
}
.project-card img{
  width:100%;
  height: 220px;
  object-fit: cover;
  transform: scale(.94);
  transform-origin: center;
  background: #edf1f6;
  filter: sepia(.28) contrast(1.04) saturate(.92);
}

html.dark-mode .project-card img {
  background: #262626;
}
.project-card__body{
  padding: 14px;
  display:flex;
  flex-direction: column;
}
.project-card__body h3{ margin:0 0 6px; }
.project-card__action{
  margin-top: 12px;
  align-self: flex-end;
  border: 1px solid rgba(245,158,11,.65);
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #111827;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.project-card__action:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
}
.tag{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(245,158,11,.14);
  color: rgba(13,22,38,.78);
  font-weight: 900;
  font-size: 12px;
}

.projects-grid .project-card:nth-child(2){ animation-delay: .08s; }
.projects-grid .project-card:nth-child(3){ animation-delay: .16s; }
.projects-grid .project-card:nth-child(4){ animation-delay: .24s; }

@keyframes rise-in{
  from{ opacity: 0; transform: translateY(20px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* PROJECT GALLERY MODAL */
.gallery-modal{
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}

.gallery-modal.is-open{
  display: block;
}

.gallery-modal__backdrop{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(255,255,255,.08), transparent 28%),
    rgba(8, 13, 24, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gallery-modal__panel{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(960px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: hidden;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 26px;
  padding: 14px;
}

html.dark-mode .gallery-modal__panel {
  background: #1a1a1a;
  border-color: rgba(244, 246, 249, .20);
}

.gallery-modal__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.gallery-modal__top h2{
  margin:0;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--text);
}

.gallery-modal__close{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(13,22,38,.10);
  background: rgba(255,255,255,.88);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.gallery-modal__close:hover{
  background: #fff;
  transform: translateY(-1px) scale(1.03);
}

html.dark-mode .gallery-modal__close {
  background: rgba(244, 246, 249, .15);
  border-color: rgba(244, 246, 249, .15);
}

html.dark-mode .gallery-modal__close:hover {
  background: rgba(244, 246, 249, .25);
}

.gallery-viewer{
  position: relative;
  margin-bottom: 12px;
}

.gallery-video-gate{
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(5, 10, 18, .50);
  z-index: 3;
  text-align: center;
}

.gallery-video-gate.is-visible{
  display: flex;
}

.gallery-video-gate__text{
  margin: 0;
  color: #f9fafb;
  font-weight: 700;
  font-size: 14px;
}

.gallery-video-gate__btn{
  border: 1px solid rgba(255,255,255,.38);
  background: rgba(255,255,255,.18);
  color: #ffffff;
  border-radius: 999px;
  font-weight: 800;
  padding: 10px 16px;
  cursor: pointer;
}

.gallery-video-gate__btn[disabled]{
  opacity: .55;
  cursor: not-allowed;
}

.gallery-viewer img,
.gallery-viewer video{
  display:block;
  width:100%;
  height: clamp(320px, 62vh, 700px);
  object-fit: cover;
  transform: scale(.95);
  transform-origin: center;
  border-radius: 20px;
  border: 0;
  background: linear-gradient(180deg, #f7f8fa, #eceff3);
}

html.dark-mode .gallery-viewer img {
  background: linear-gradient(180deg, #262626, #1f1f1f);
}

.gallery-viewer video{
  display: none;
  background: #0b1220;
}

.gallery-viewer video.is-visible{
  display: block;
}

.gallery-viewer img.is-hidden{
  display: none;
}

.gallery-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: auto;
  height: auto;
  padding: 6px;
  border-radius: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #ffffff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  text-shadow: 0 3px 10px rgba(0,0,0,.45);
  transition: transform .18s ease, opacity .18s ease;
}

.gallery-nav:hover{
  transform: translateY(-50%) scale(1.08);
}

.gallery-nav--prev{
  left: 14px;
}

.gallery-nav--next{
  right: 14px;
}

.gallery-strip{
  display:flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 2px;
  scrollbar-width: none;
}

.gallery-strip::-webkit-scrollbar{
  display:none;
}

.gallery-thumb{
  flex: 0 0 82px;
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  opacity: .72;
  transform: scale(.98);
  transition: transform .18s ease, opacity .18s ease;
}

.gallery-thumb img{
  display:block;
  width:100%;
  height:72px;
  object-fit: cover;
  border-radius: 14px;
  border: 0;
}

.gallery-thumb__videoMedia{
  width:100%;
  height:72px;
  object-fit: cover;
  border-radius: 14px;
  border: 0;
  display:block;
  background: #111827;
}

.gallery-thumb__videoBadge{
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: 11px;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events: none;
}

.gallery-thumb:hover{
  opacity: .95;
  transform: scale(1);
}

.gallery-thumb.is-active{
  opacity: 1;
  transform: scale(1);
}

.gallery-thumb.is-active img{
  box-shadow: 0 0 0 2px var(--primary);
}

.gallery-thumb.is-active .gallery-thumb__videoMedia{
  box-shadow: 0 0 0 2px var(--primary);
}

body.has-modal-open{
  overflow: hidden;
}

@media (max-width: 768px){
  .gallery-modal__panel{
    width: min(720px, calc(100vw - 40px));
    max-height: calc(100dvh - 56px);
    border-radius: 22px;
    padding: 12px;
  }

  .gallery-modal__top{
    margin-bottom: 12px;
  }

  .gallery-modal__top h2{
    font-size: 18px;
    max-width: calc(100% - 56px);
  }

  .gallery-modal__close{
    width: 42px;
    height: 42px;
    font-size: 26px;
  }

  .gallery-viewer img,
  .gallery-viewer video{
    height: min(66vh, 660px);
    border-radius: 18px;
  }

  .gallery-nav{
    font-size: 38px;
  }

  .gallery-nav--prev{
    left: 10px;
  }

  .gallery-nav--next{
    right: 10px;
  }

  .gallery-thumb{
    flex-basis: 76px;
  }

  .gallery-thumb img,
  .gallery-thumb__videoMedia{
    height: 66px;
    border-radius: 12px;
  }
}

@media (max-width: 420px){
  .gallery-modal__panel{
    width: calc(100vw - 28px);
    max-height: calc(100dvh - 34px);
    border-radius: 20px;
    padding: 10px;
  }

  .gallery-viewer img,
  .gallery-viewer video{
    height: min(62vh, 620px);
  }

  .gallery-nav{
    font-size: 34px;
  }

  .gallery-thumb{
    flex-basis: 72px;
  }

  .gallery-thumb img{
    height: 62px;
  }
}

body.has-modal-open{
  overflow: hidden;
}

/* CONTACT (contact.html) */
.section--contact{
  min-height: calc(100dvh - 230px);
}

.contact-grid{
  margin-top: 16px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.contact-grid--single{
  justify-content: center;
}
.box{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

html.dark-mode .box {
  background: #1a1a1a;
}
.box--contact-center{
  text-align: center;
}
.contact-details{
  margin: 0;
}
.contact-actions{
  margin-top: 12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}
.form{
  display:grid;
  gap: 10px;
}
.input{
  width:100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 12px;
  font-weight: 700;
  background: #fff;
}
textarea.input{ min-height: 120px; resize: vertical; }

/* FOOTER */
.footer{
  background: #0d1626;
  color: rgba(255,255,255,.92);
  padding: 18px 14px;
  margin-top: 30px;
}

html.dark-mode .footer{
  background: #080b10;
}
.footer__inner{
  max-width: 1400px;
  margin: 0 auto;
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.footer__inner--single{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap: 14px 24px;
}
.footer__brand{ font-weight: 900; letter-spacing: -.2px; }
.footer__title{ font-weight: 900; margin-bottom: 8px; }
.footer a{ color: rgba(255,255,255,.88); text-decoration:none; }
.footer a:hover{ text-decoration: underline; }
.footer__contactInline{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 16px;
  flex-wrap:wrap;
  text-align:center;
  color: rgba(255,255,255,.86);
}
.footer__contactInline span{
  white-space: nowrap;
}
.footer__cols{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.footer__bottom{
  max-width: 1200px;
  margin: 18px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.70);
  font-size: 13px;
}

/* DESKTOP */
@media (min-width: 900px){
  .hero{ min-height: 80vh; }
  .topbar__inner{
    max-width: none;
    width: 100%;
    padding: 12px 24px;
  }
  .nav__toggle{ display:none; }
  .nav__menu{
    position: static;
    display:flex !important;
    flex-direction: row;
    align-items:center;
    gap: 10px;
    padding: 8px;
    border: 0;
    background: transparent;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
  }
  .nav__menu a{
    padding: 12px 18px;
  }
  .nav__theme-toggle-container{
    margin-top: 0;
    padding-top: 0;
    width: auto;
    gap: 8px;
  }
  .nav__theme-toggle{
    width: 46px;
    height: 26px;
  }
  .hero__content h1{ font-size: 52px; }

  .grid--about{ grid-template-columns: 1.05fr .95fr; align-items:center; }
  .features{ grid-template-columns: repeat(3, 1fr); }
  .caps{ grid-template-columns: repeat(4, 1fr); }

  .projects-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1120px;
  }
  .gallery-modal__panel{
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: min(980px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    padding: 16px;
  }
  .gallery-viewer{
    grid-template-columns: 48px 1fr 48px;
    gap: 12px;
  }
  .gallery-nav{
    width: 48px;
    height: 48px;
    font-size: 28px;
  }
  .contact-grid{ grid-template-columns: minmax(320px, 760px); justify-content:center; align-items:start; }
  .footer__inner{ grid-template-columns: 1fr; }
}

@media (min-width: 1200px){
  .projects-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.logo{
  display:flex;
  align-items:center;
  font-weight: 800;
  letter-spacing: 0;
}

.logo__mark{
  width: 56px;
  height: 56px;
  border-radius: 10px;              
  background: transparent;
  border: 3px solid var(--text);
  display:flex;
  align-items:center;
  justify-content:center;
}

.logo__kk{
  font-weight: 900;
  font-size: 20px;
  letter-spacing: .04em;
  color: var(--text);
  line-height: 1;
}

.logo__text{
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--text);        
}

html.dark-mode .logo__kk,
html.dark-mode .logo__text {
  color: #ffffff;
}

/* lepše na mobile */
@media (max-width: 420px){
  .logo__mark{ width: 48px; height: 48px; }
  .logo__kk{ font-size: 18px; }
  .logo__text{ font-size: 22px; }
  .logo.logo--image-only .logo__mark--image{ height: 56px; }
}