/*
Theme Name: Mapy na míru
Theme URI: https://mapynamiru.cz
Author: Jiří Doležal
Description: Vlastní téma pro mapynamiru.cz - kartografické služby pro města a obce.
Version: 2.0.0
*/

:root {
  --bg: #07100f;
  --bg-soft: #0d1c1a;
  --panel: rgba(255, 255, 255, .08);
  --panel-strong: rgba(255, 255, 255, .14);
  --line: rgba(255, 255, 255, .16);
  --text: #f6fbf7;
  --muted: rgba(246, 251, 247, .68);
  --green: #1dd3b0;
  --blue: #39a7ff;
  --red: #ff4d5f;
  --gold: #ffc857;
  --violet: #9c6bff;
  --shadow: 0 30px 90px rgba(0, 0, 0, .42);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 8%, rgba(29, 211, 176, .18), transparent 28rem),
    radial-gradient(circle at 86% 4%, rgba(57, 167, 255, .16), transparent 30rem),
    linear-gradient(180deg, #07100f 0%, #0a1514 46%, #08100f 100%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: .42;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 86%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, transparent 0 16rem, rgba(7, 16, 15, .4) 44rem);
}

a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: .96;
  letter-spacing: 0;
}

.container {
  width: min(1400px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(7, 16, 15, .66);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-orbit {
  width: 42px;
  height: 42px;
  position: relative;
  border: 1px solid rgba(29, 211, 176, .42);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 211, 176, .95) 0 5px, rgba(29, 211, 176, .16) 6px 100%);
  box-shadow: 0 0 26px rgba(29, 211, 176, .34);
}

.brand-orbit::before {
  content: "";
  position: absolute;
  inset: 7px -4px;
  border: 1px solid rgba(57, 167, 255, .8);
  border-radius: 50%;
  transform: rotate(-28deg);
  animation: orbit 7s linear infinite;
}

.nav__brand-name {
  display: block;
  font-weight: 850;
  letter-spacing: .01em;
}

.nav__brand-sub {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__links a {
  color: rgba(246, 251, 247, .76);
  font-size: .92rem;
  font-weight: 750;
  text-decoration: none;
  transition: color .2s ease;
}

.nav__links a:hover { color: var(--text); }

.nav__cta {
  padding: 11px 16px;
  color: var(--bg) !important;
  background: linear-gradient(135deg, var(--green), var(--blue));
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(29, 211, 176, .22);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: 0;
  background: transparent;
}

.nav__toggle span {
  width: 26px;
  height: 2px;
  background: var(--text);
}

.hero {
  min-height: auto;
  display: flex;
  align-items: flex-start;
  position: relative;
  padding: 64px 0 80px;
  overflow: hidden;
}

.hero__aurora {
  position: absolute;
  inset: -20% -10% auto;
  height: 72vh;
  background:
    radial-gradient(circle at 30% 35%, rgba(29, 211, 176, .34), transparent 21rem),
    radial-gradient(circle at 70% 18%, rgba(156, 107, 255, .28), transparent 22rem),
    radial-gradient(circle at 78% 70%, rgba(255, 77, 95, .18), transparent 18rem);
  filter: blur(18px);
  animation: aurora 12s ease-in-out infinite alternate;
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(660px, 1fr) minmax(520px, .9fr);
  align-items: start;
  gap: 58px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--green);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: none;
  margin-bottom: 26px;
  font-size: clamp(3.4rem, 5.35vw, 5.7rem);
}

.hero h1 span,
.hero h1 em {
  display: block;
  white-space: nowrap;
  margin-bottom: 0.06em;
}

.hero h1 em {
  font-size: .72em;
  font-style: italic;
  font-weight: 400;
  line-height: .92;
}

.hero h1 .hero__h1-accent {
  color: var(--green);
}

/* Polština má diakritiku s dotahy dolů (ę, ą) – potřebuje větší mezeru */
body.lang-pl .hero h1,
body.lang-de .hero h1 {
  line-height: 1.08;
}
body.lang-pl .hero h1 em,
body.lang-de .hero h1 em {
  line-height: 1.05;
}

/* Němčina má delší slova – zmenšit font v hero, aby nelezl do animace */
body.lang-de .hero h1 {
  font-size: clamp(2.6rem, 4vw, 4.3rem);
}

.hero__content {
  min-width: 0;
}

.hero__lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.16rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero__text {
  max-width: 610px;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(246, 251, 247, .78);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.58;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero__text li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 11px;
  align-items: start;
}

.hero__bullet {
  width: 18px;
  height: 18px;
  margin-top: .22em;
  display: inline-block;
  color: var(--green);
  background: currentColor;
  box-shadow: 0 0 18px rgba(29, 211, 176, .22);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  position: relative;
}

.hero__bullet::after {
  content: "";
  width: 6px;
  height: 6px;
  position: absolute;
  top: 6px;
  left: 6px;
  border-radius: 50%;
  background: var(--bg);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
}

.hero__phone {
  display: grid;
  gap: 3px;
  margin-left: 10px;
}

.hero__phone span {
  color: rgba(246, 251, 247, .58);
  font-size: .82rem;
  font-weight: 750;
}

.hero__phone strong {
  color: var(--text);
  font-size: 1.2rem;
}

.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }
.btn--primary {
  color: #041210;
  border: 0;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 18px 44px rgba(29, 211, 176, .25);
}
.btn--ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, .32); }
.btn--full { width: 100%; border: 0; }

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 42px;
}

.hero__metrics span {
  min-height: 84px;
  padding: 15px;
  color: var(--muted);
  background: rgba(255, 255, 255, .055);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.hero__metrics strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.hero-map {
  position: relative;
  perspective: 1200px;
  min-width: 0;
}

.hero-map__glass {
  min-height: 610px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.04)),
    radial-gradient(circle at 28% 22%, rgba(29,211,176,.18), transparent 15rem),
    rgba(255, 255, 255, .055);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .25);
  backdrop-filter: blur(24px);
  transform: rotateX(5deg) rotateY(-7deg);
  animation: floatMap 7s ease-in-out infinite;
}

.hero-map__glass--sequence {
  min-height: auto;
  aspect-ratio: 800 / 601;
  overflow: hidden;
  padding: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.04)),
    rgba(255, 255, 255, .055);
  border: 2px solid rgba(29, 211, 176, .65);
  box-shadow:
    0 0 0 4px rgba(29, 211, 176, .12),
    0 0 32px rgba(29, 211, 176, .40),
    0 0 80px rgba(29, 211, 176, .15),
    0 48px 120px rgba(0, 0, 0, .45);
  animation: floatMap 7s ease-in-out infinite, mapGlow 4s ease-in-out infinite;
}

.hero-map__glass--sequence::before {
  display: none;
}

.hero-map__glass--sequence::after {
  z-index: 3;
  pointer-events: none;
}

.map-sequence {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: rgba(7, 16, 15, .55);
}

/* JS řídí animaci přímo přes inline styly — žádné CSS animace potřeba */
.map-sequence__frame {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
}

.map-sequence__frame.is-active {
  opacity: 1;
  z-index: 2;
}

/* Flash — radiální ztmavení středu při každém střihu */
.map-sequence__flash {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 68% 68% at 50% 50%, rgba(0,0,0,.09) 0%, transparent 100%);
  z-index: 5;
  pointer-events: none;
  opacity: 0;
}

.map-sequence__flash.is-flashing {
  animation: mapFlash .18s ease-out forwards;
}

@keyframes mapFlash {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

.map-sequence__label {
  position: absolute;
  z-index: 4;
  left: 24px;
  bottom: 24px;
  width: fit-content;
  max-width: calc(100% - 48px);
  padding: 17px 18px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 22px;
  background: rgba(7, 16, 15, .78);
  box-shadow: 0 20px 60px rgba(0,0,0,.32);
  backdrop-filter: blur(18px);
}

.map-sequence__label span {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.map-sequence__label strong {
  font-size: .72rem;
  font-weight: 900;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .14em;
}

.hero-map__glass::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .34;
  background-image:
    linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.11) 1px, transparent 1px);
  background-size: 36px 36px;
  animation: gridDrift 18s linear infinite;
}

.hero-map__glass::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%);
  transform: translateX(-40%) rotate(8deg);
  animation: scan 5.8s ease-in-out infinite;
}

.hero-map__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.terrain {
  fill: none;
  stroke: rgba(255,255,255,.18);
  stroke-width: 2;
  stroke-dasharray: 6 12;
  animation: dashMove 26s linear infinite;
}

.terrain--two { stroke: rgba(29,211,176,.22); animation-duration: 32s; }
.terrain--three { stroke: rgba(57,167,255,.18); animation-duration: 38s; }

.river {
  fill: none;
  stroke: rgba(57,167,255,.34);
  stroke-width: 18;
  stroke-linecap: round;
  filter: url(#glow);
}

.route {
  fill: none;
  stroke: url(#routeGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 760;
  stroke-dashoffset: 760;
  animation: drawRoute 2.4s ease-out .45s forwards, pulseRoute 3.2s ease-in-out 3s infinite;
  filter: url(#glow);
}

.route--shadow {
  stroke: rgba(0,0,0,.4);
  stroke-width: 16;
  filter: none;
}

.poi {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  position: absolute;
  z-index: 3;
  color: #fff;
  border: 4px solid #fff;
  border-radius: 14px;
  font-weight: 950;
  box-shadow: 0 12px 34px rgba(0,0,0,.35), 0 0 0 3px currentColor;
  animation: poiPop .7s cubic-bezier(.2, 1.6, .3, 1) both, poiBob 3.8s ease-in-out infinite;
}

.poi--red { background: var(--red); color: var(--red); }
.poi--blue { background: var(--blue); color: var(--blue); }
.poi--green { background: #2aa45f; color: #2aa45f; border-radius: 50%; }
.poi--gold { background: #9f642d; color: #9f642d; }
.poi--cyan { background: #0f95bd; color: #0f95bd; }
.poi--one { left: 14%; top: 68%; animation-delay: .6s, 1.2s; }
.poi--two { left: 43%; top: 47%; animation-delay: .85s, 1.4s; }
.poi--three { right: 18%; top: 22%; animation-delay: 1.1s, 1.7s; }
.poi--four { right: 15%; bottom: 19%; animation-delay: 1.35s, 1.9s; }
.poi--five { left: 25%; top: 22%; animation-delay: 1.6s, 2.1s; }

.map-callout {
  position: absolute;
  z-index: 4;
  left: 28px;
  bottom: 28px;
  width: min(310px, calc(100% - 56px));
  padding: 18px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 22px;
  background: rgba(7, 16, 15, .72);
  box-shadow: 0 20px 60px rgba(0,0,0,.32);
  backdrop-filter: blur(18px);
}

.map-callout span {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.map-callout strong { font-size: 1.05rem; }

/* ─── Sekce: Moje služby (map-types) ─── */
.map-types {
  padding: 110px 0;
  position: relative;
  border-top: 1px solid var(--line);
}

.map-types .section-heading { margin-bottom: 0; }

.section-lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 58ch;
}

.map-types__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.mtype-card {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.10);
  border-top: 2px solid var(--accent, var(--green));
  border-radius: 24px;
  padding: 36px 32px 40px;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  backdrop-filter: blur(18px);
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease, border-color .4s ease;
  transition-delay: var(--delay, 0s);
}

/* Radial glow at top on hover */
.mtype-card::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 160px;
  background: radial-gradient(ellipse at center, var(--accent, var(--green)), transparent 70%);
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}

/* Subtle bottom shimmer */
.mtype-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255,255,255,.04) 0%, transparent 60%);
  pointer-events: none;
}

.mtype-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 32px 80px rgba(0,0,0,.38), 0 0 0 1px rgba(255,255,255,.14), 0 -2px 30px var(--accent);
  border-top-color: var(--accent);
}

.mtype-card:hover::before { opacity: .18; }

/* Large number — in flow at the top of the card */
.mtype-card__num {
  display: block;
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--accent, var(--green));
  opacity: .13;
  pointer-events: none;
  user-select: none;
  transition: opacity .4s ease;
  font-family: "Playfair Display", Georgia, serif;
  margin-bottom: 20px;
}

.mtype-card:hover .mtype-card__num { opacity: .22; }

.mtype-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.13);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  flex-shrink: 0;
  color: var(--accent, var(--green));
  transition: background .3s, box-shadow .3s, transform .35s cubic-bezier(.22,1,.36,1);
}

.mtype-card:hover .mtype-card__icon {
  background: rgba(255,255,255,.14);
  box-shadow: 0 0 32px var(--accent), 0 0 8px var(--accent);
  transform: scale(1.12) rotate(-4deg);
}

.mtype-card__icon svg { width: 24px; height: 24px; }

.mtype-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  line-height: 1.3;
}

.mtype-card p {
  font-size: .93rem;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
  flex: 1;
}

/* Contour lines background decoration */
.mtype-card__contours {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url('assets/vrstevnice.svg');
  background-size: 130%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.09;
  pointer-events: none;
  z-index: 0;
}

.mtype-card__num,
.mtype-card__icon,
.mtype-card h3,
.mtype-card p {
  position: relative;
  z-index: 1;
}

/* ─── Liquid glass variant ─── */
.map-types__grid--glass {
  margin-top: 20px;
}

.mtype-card--glass {
  /* Outer glass shell — průhledný základ, více světla zevnitř */
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(32px) saturate(200%) brightness(1.12);
  -webkit-backdrop-filter: blur(32px) saturate(200%) brightness(1.12);

  /* Edge discipline */
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 1px solid rgba(255, 255, 255, 0.58); /* výrazný odraz světla shora */
  border-bottom: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 28px;

  /* Elevation + inset highlight */
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    inset 0 -1px 0 rgba(0, 0, 0, 0.14),
    inset 1px 0 0 rgba(255, 255, 255, 0.06),
    inset -1px 0 0 rgba(0, 0, 0, 0.08);

  /* Zásadní: overflow hidden zabraňuje úniku backdrop-filter childů */
  overflow: hidden;
  transition: transform .45s cubic-bezier(.22,1,.36,1),
              box-shadow .45s ease,
              background .45s ease;
  transition-delay: var(--delay, 0s);
}

/* Highlight band — světlo přicházející z levého horního rohu */
.mtype-card--glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.10) 30%,
    transparent 58%
  );
  pointer-events: none;
  z-index: 1;
  transition: opacity .45s ease;
}

/* Stabilizační vrstva pod textem (scrim) — accent color tint na hover */
.mtype-card--glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(255, 255, 255, 0.05) 100%
  );
  pointer-events: none;
  z-index: 0;
  transition: opacity .5s ease;
}

.mtype-card--glass:hover {
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-10px) scale(1.01);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.50),
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    inset 0 -1px 0 rgba(0, 0, 0, 0.20),
    inset 1px 0 0 rgba(255, 255, 255, 0.10),
    inset -1px 0 0 rgba(0, 0, 0, 0.10),
    0 0 0 1px rgba(255, 255, 255, 0.18);
}

.mtype-card--glass:hover::before { opacity: 1.3; }

/* Icon v glass variantě — frosted pill BEZ vnořeného backdrop-filter (zabraňuje artefaktům) */
.mtype-card--glass .mtype-card__icon {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-top-color: rgba(255, 255, 255, 0.48);
  box-shadow: 0 2px 12px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.22);
  /* backdrop-filter ZÁMĚRNĚ VYNECHÁN — browser bug s overflow na parentu */
}

.mtype-card--glass:hover .mtype-card__icon {
  background: rgba(255, 255, 255, 0.20);
  box-shadow:
    0 0 24px var(--accent),
    0 4px 16px rgba(0,0,0,.30),
    inset 0 1px 0 rgba(255,255,255,.32);
  transform: scale(1.1) rotate(-3deg);
}

/* Text nad vrstvami */
.mtype-card--glass h3,
.mtype-card--glass p,
.mtype-card--glass .mtype-card__num {
  position: relative;
  z-index: 2;
}

/* Fallback bez backdrop-filter podpory */
@supports not (backdrop-filter: blur(1px)) {
  .mtype-card--glass {
    background: rgba(28, 48, 44, 0.92);
  }
}

.map-types__grid--glass .mtype-card__num { opacity: .06; }
.portfolio {
  padding: 110px 0;
  position: relative;
  border-top: 1px solid var(--line);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 52px;
}

.pcard {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .38s cubic-bezier(.22,1,.36,1), box-shadow .38s ease;
  transition-delay: var(--delay, 0s);
}

.pcard:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 72px rgba(0,0,0,.38);
}

/* Tři fotky: velká nahoře, dvě menší vedle sebe dole */
.pcard__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 180px 100px;
  gap: 3px;
  background: rgba(0,0,0,.2);
}

.pcard__photo {
  background: rgba(255,255,255,.07);
  position: relative;
  overflow: hidden;
}

/* Placeholder ikonka */
.pcard__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 20px 20px;
}

.pcard__photo--main {
  grid-column: 1 / 3;
  grid-row: 1;
  background: rgba(255,255,255,.09);
}

.pcard__photo--s1,
.pcard__photo--s2 {
  grid-row: 2;
  background: rgba(255,255,255,.06);
}

/* Simulace placeholder fotky */
.pcard__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.06) 0%, transparent 60%);
}

.pcard__info {
  padding: 20px 22px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pcard__text h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
  line-height: 1.3;
}

.pcard__text p {
  font-size: .85rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.pcard__badge {
  flex-shrink: 0;
  padding: 3px 9px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.showcase,
.services,
.process,
.contact {
  padding: 110px 0;
  position: relative;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 46px;
}

.section-heading h2,
.process h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(2.35rem, 5vw, 4.6rem);
}

.map-types .section-heading h2,
.portfolio .section-heading h2 {
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  line-height: 1.2;
}

.showcase__grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 22px;
}

.project-card {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.045));
  box-shadow: 0 24px 72px rgba(0,0,0,.22);
}

.project-card--wide { grid-row: span 2; }

.project-card__visual {
  min-height: 330px;
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.08);
}

.project-card--wide .project-card__visual { min-height: 520px; }

.project-card__visual::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(38deg, transparent 0 38%, rgba(29,211,176,.4) 39% 41%, transparent 42%),
    linear-gradient(-22deg, transparent 0 48%, rgba(57,167,255,.34) 49% 51%, transparent 52%),
    radial-gradient(circle at 34% 55%, var(--red) 0 7px, transparent 8px),
    radial-gradient(circle at 68% 34%, var(--green) 0 9px, transparent 10px),
    radial-gradient(circle at 54% 70%, var(--gold) 0 8px, transparent 9px);
  animation: visualPan 18s ease-in-out infinite alternate;
}

.project-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 34px 34px;
}

.visual-map { background: linear-gradient(135deg, rgba(29,211,176,.15), rgba(57,167,255,.08)); }
.visual-panel { background: linear-gradient(135deg, rgba(255,200,87,.16), rgba(255,77,95,.08)); }
.visual-print { background: linear-gradient(135deg, rgba(156,107,255,.16), rgba(57,167,255,.08)); }

.project-card__copy {
  padding: 26px;
}

.project-card__copy span {
  color: var(--green);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.project-card__copy h3 {
  margin: 8px 0 10px;
  font-size: 1.55rem;
}

.project-card__copy p {
  color: var(--muted);
  margin-bottom: 0;
}

.services__layout {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 62px;
  align-items: start;
}

.service-stack {
  display: grid;
  gap: 16px;
}

.service-panel {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,255,255,.06);
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.service-panel:hover {
  transform: translateX(8px);
  border-color: rgba(29, 211, 176, .42);
  background: rgba(255,255,255,.1);
}

.service-panel__icon {
  width: 56px;
  height: 56px;
  position: relative;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(29,211,176,.95), rgba(57,167,255,.95));
  box-shadow: 0 14px 32px rgba(29,211,176,.18);
}

.service-panel__icon::before {
  content: "";
  position: absolute;
  inset: 15px;
  border: 3px solid #041210;
  border-radius: 50%;
}

.icon-poi { background: linear-gradient(135deg, #2aa45f, var(--green)); }
.icon-board { background: linear-gradient(135deg, var(--gold), var(--red)); }
.icon-export { background: linear-gradient(135deg, var(--violet), var(--blue)); }

.service-panel h3 {
  margin: 0 0 7px;
  font-size: 1.22rem;
}

.service-panel p {
  color: var(--muted);
  margin-bottom: 0;
}

.process__rail {
  display: grid;
  grid-template-columns: .78fr 1fr;
  gap: 54px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 15% 15%, rgba(29,211,176,.15), transparent 18rem),
    rgba(255,255,255,.055);
}

.steps {
  display: grid;
  gap: 14px;
}

.step {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(0,0,0,.16);
}

.step span {
  color: var(--green);
  font-weight: 950;
}

.step strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 1.12rem;
}

.step p {
  color: var(--muted);
  margin-bottom: 0;
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1.5fr;
  gap: 48px;
  align-items: stretch;
}

.contact__copy h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 20px;
}

.contact__copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 52ch;
  margin-bottom: 14px;
}

.contact__direct {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.contact__direct-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact__direct-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.contact__direct-icon svg { width: 18px; height: 18px; }

.contact__direct-label {
  display: block;
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: 2px;
  letter-spacing: .04em;
}

.contact__direct a {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: color .2s;
}

.contact__direct a:hover { color: var(--green); }

/* Levý sloupec — flex aby se obsah rovnoměrně rozložil */
.contact__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Foto sloupec */
.contact__photo {
  border-radius: 20px;
  overflow: hidden;
  min-height: 340px;
}

.contact__photo picture {
  display: block;
  height: 100%;
}

.contact__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Form box */
.contact-form-wrap {
  position: relative;
}

.contact-form-box {
  position: relative;
  overflow: hidden;
  /* Liquid glass shell na světlém pozadí */
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(32px) saturate(180%) brightness(1.06);
  -webkit-backdrop-filter: blur(32px) saturate(180%) brightness(1.06);
  border-radius: 28px;
  padding: 36px 38px 40px;
  /* Edge — světlý odraz shora, stín zdola */
  border: 1px solid rgba(255, 255, 255, 0.80);
  border-top: 1px solid rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(180, 200, 195, 0.40);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(180, 200, 195, 0.30),
    inset 1px 0 0 rgba(255, 255, 255, 0.60),
    inset -1px 0 0 rgba(180, 200, 195, 0.20);
  color: #0f1923;
}

/* Highlight band — světlo z levého horního rohu */
.contact-form-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.60) 0%,
    rgba(255, 255, 255, 0.15) 35%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

/* Veškerý obsah nad highlight bandou */
.contact-form-box > * {
  position: relative;
  z-index: 1;
}

.contact-form-box h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: #0f1923;
}

.contact-form-box__lead {
  font-size: .88rem;
  color: #4b5563;
  margin: 0 0 26px;
  line-height: 1.6;
}

.contact-form__row { margin-bottom: 18px; }

.contact-form__row--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form label:not(.contact-form__checkbox) {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: #374151;
  letter-spacing: .02em;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 13px;
  color: #0f1923;
  background: #fff;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  font: .95rem/1.4 Inter, sans-serif;
  transition: border-color .2s, box-shadow .2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #1dd3b0;
  box-shadow: 0 0 0 3px rgba(29,211,176,.18);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Checkbox */
.contact-form__checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  user-select: none;
}

.contact-form__checkbox input[type="checkbox"] {
  display: none;
}

.contact-form__checkmark {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1.5px solid #d1d5db;
  border-radius: 5px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
}

.contact-form__checkbox input:checked + .contact-form__checkmark {
  background: #1dd3b0;
  border-color: #1dd3b0;
}

.contact-form__checkmark::after {
  content: "";
  display: none;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

.contact-form__checkbox input:checked + .contact-form__checkmark::after {
  display: block;
}

/* CTA button in form */
.btn--cta {
  display: block;
  width: 100%;
  margin-top: 22px;
  padding: 15px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: var(--bg);
  border: none;
  border-radius: 14px;
  font-size: .88rem;
  font-weight: 900;
  font-family: Inter, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(29,211,176,.28);
  transition: filter .25s, box-shadow .25s, transform .2s;
  text-align: center;
}

.btn--cta:hover {
  filter: brightness(1.1);
  box-shadow: 0 12px 36px rgba(29,211,176,.40);
  transform: translateY(-1px);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.2);
}

.footer__layout {
  display: grid;
  grid-template-columns: 1.2fr .7fr .9fr;
  gap: 34px;
  padding: 54px 0;
}

.footer__brand {
  margin-bottom: 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 800;
}

.footer__layout p {
  max-width: 360px;
  color: var(--muted);
  margin-bottom: 0;
}

.footer__links,
.footer__contact {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer__links a,
.footer__contact a {
  color: var(--muted);
  font-weight: 750;
  text-decoration: none;
}

.footer__links a:hover,
.footer__contact a:hover { color: var(--text); }

.footer__bottom {
  padding: 18px 0;
  color: rgba(246,251,247,.5);
  border-top: 1px solid var(--line);
  font-size: .88rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes aurora {
  from { transform: translate3d(-2%, -2%, 0) scale(1); }
  to { transform: translate3d(2%, 3%, 0) scale(1.08); }
}

@keyframes orbit { to { transform: rotate(332deg); } }
@keyframes floatMap {
  0%, 100% { transform: rotateX(5deg) rotateY(-7deg) translateY(0); }
  50% { transform: rotateX(3deg) rotateY(-3deg) translateY(-14px); }
}
@keyframes mapGlow {
  0%, 100% {
    border-color: rgba(29, 211, 176, .65);
    box-shadow:
      0 0 0 4px rgba(29, 211, 176, .12),
      0 0 32px rgba(29, 211, 176, .40),
      0 0 80px rgba(29, 211, 176, .15),
      0 48px 120px rgba(0, 0, 0, .45);
  }
  50% {
    border-color: rgba(57, 167, 255, .70);
    box-shadow:
      0 0 0 4px rgba(57, 167, 255, .14),
      0 0 40px rgba(57, 167, 255, .42),
      0 0 96px rgba(57, 167, 255, .16),
      0 48px 120px rgba(0, 0, 0, .45);
  }
}
@keyframes gridDrift { to { background-position: 72px 36px; } }
@keyframes scan {
  0%, 35% { transform: translateX(-55%) rotate(8deg); opacity: 0; }
  55% { opacity: .9; }
  100% { transform: translateX(55%) rotate(8deg); opacity: 0; }
}
@keyframes dashMove { to { stroke-dashoffset: -360; } }
@keyframes drawRoute { to { stroke-dashoffset: 0; } }
@keyframes pulseRoute {
  0%, 100% { stroke-width: 8; opacity: .95; }
  50% { stroke-width: 11; opacity: 1; }
}
@keyframes poiPop {
  from { opacity: 0; transform: scale(.4) translateY(14px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes poiBob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}
@keyframes visualPan {
  from { transform: translate3d(-4%, -2%, 0) scale(1.03); }
  to { transform: translate3d(4%, 3%, 0) scale(1.08); }
}

/* ── Lightbox trigger ─────────────────── */
.pcard__photo.lb-trigger {
  background-size: cover;
  background-position: center;
  cursor: zoom-in;
  border: none;
  padding: 0;
  outline-offset: 2px;
  transition: filter .3s ease;
}
.pcard__photo.lb-trigger::before,
.pcard__photo.lb-trigger::after { display: none; }
.pcard__photo.lb-trigger:hover { filter: brightness(1.14) saturate(1.08); }

.pcard__award {
  position: absolute;
  left: 50%;
  top: 180px; /* spodní hrana hlavní fotky (180px výška) */
  transform: translate(-50%, -50%);
  z-index: 4;
  width: clamp(110px, 44%, 170px);
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.60));
  pointer-events: none;
  user-select: none;
}

/* ── Lightbox overlay ─────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 12, 11, .93);
  backdrop-filter: blur(14px) saturate(.4);
}
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox__close:hover { background: rgba(255,255,255,.26); }

.lightbox__nav {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0 14px;
  transition: background .2s;
}
.lightbox__nav:hover { background: rgba(255,255,255,.22); }

.lightbox__stage {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 1280px);
  max-height: 90vh;
  display: flex;
  align-items: center;
}
.lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 32px 80px rgba(0,0,0,.72);
  user-select: none;
  display: block;
}
.lightbox__counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,.55);
  font-family: Inter, sans-serif;
  font-size: .8rem;
  margin: 0;
  white-space: nowrap;
}

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

/* ── Tablet (≤ 980 px) ── */
@media (max-width: 980px) {
  .hero__layout,
  .contact__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact__photo { min-height: 260px; }

  .hero__layout > * { min-width: 0; }

  .hero h1 span,
  .hero h1 em { white-space: normal; }

  .hero-map__glass { min-height: 480px; transform: none; }

  .map-types__grid { grid-template-columns: 1fr; }
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .contact-form__row--2col { grid-template-columns: 1fr; }
}

/* ── Mobil (≤ 720 px) ── */
@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1400px); }

  /* Hamburger menu */
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 14px;
    right: 14px;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(7, 16, 15, .94);
    box-shadow: var(--shadow);
  }
  .nav__links.is-open { display: flex; }
  .nav__toggle { display: flex; }
  .nav__cta { display: block; text-align: center; }

  /* Hero */
  .hero { min-height: auto; padding: 52px 0 64px; }
  .hero h1 { font-size: clamp(2.6rem, 8vw, 3.3rem); }
  .hero__lead { font-size: 1rem; }
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .hero__phone { margin-left: 0; }
  .hero-map { margin-top: 8px; }
  .hero-map__glass { min-height: 300px; border-radius: 22px; }

  /* Služby */
  .map-types { padding: 68px 0; }
  .map-types__grid { gap: 16px; }

  /* Realizace */
  .portfolio { padding: 68px 0; }
  .portfolio__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .pcard__photos {
    grid-template-rows: 200px 110px;
  }

  /* Kontakt */
  .contact { padding: 68px 0; }
  .contact__direct { flex-direction: column; gap: 14px; }
  .contact-form-box { padding: 24px 20px; }
}

/* ── Malý mobil (≤ 460 px) ── */
@media (max-width: 460px) {
  .hero h1 { font-size: 2.4rem; }
  .hero__actions .btn { width: 100%; text-align: center; }
  .hero-map__glass { min-height: 240px; }
  .pcard__photos { grid-template-rows: 160px 90px; }
  .contact-form-box { padding: 18px 16px; }
}

/* Stavové zprávy kontaktního formuláře */
.contact-form__notice {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: .95rem;
  font-weight: 500;
}
.contact-form__notice--ok  { background: rgba(29,211,176,.15); border: 1px solid rgba(29,211,176,.4); color: #1dd3b0; }
.contact-form__notice--err { background: rgba(220,53,69,.12);  border: 1px solid rgba(220,53,69,.35); color: #e06070; }

/* Turnstile zarovnání */
.cf-turnstile { margin-bottom: 16px; }

/* ── Tlačítko zpět nahoru ── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 8000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent, #1dd3b0);
  color: #03100f;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(29, 211, 176, .40);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s ease, transform .3s ease, background .2s ease, box-shadow .2s ease;
  pointer-events: none;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: #25f0cb;
  box-shadow: 0 6px 28px rgba(29, 211, 176, .55);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--accent, #1dd3b0);
  outline-offset: 3px;
}
@media (max-width: 460px) {
  .back-to-top { bottom: 18px; right: 18px; width: 42px; height: 42px; }
}

/* ── Jazykový přepínač – vlaječky ── */
.nav__lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
  margin-left: 4px;
}
.nav__flag {
  display: flex;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.nav__flag img,
.nav__flag svg {
  width: 100%;
  height: 100%;
  display: block;
}
.nav__flag--active {
  border-color: var(--accent, #1dd3b0);
  box-shadow: 0 0 0 2px rgba(29, 211, 176, .25);
}
.nav__flag:hover {
  transform: scale(1.12);
  border-color: rgba(255, 255, 255, .5);
}
.nav__flag--active:hover {
  border-color: var(--accent, #1dd3b0);
}
@media (max-width: 720px) {
  .nav__lang-switcher {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    justify-content: center;
    gap: 10px;
  }
  .nav__flag {
    width: 36px;
    height: 36px;
  }
}


/* ═══════════════════════════════════════════════════════════════
   ZÁPISKY Z TVORBY MAP
   ═══════════════════════════════════════════════════════════════ */

/* ── Blog preview – homepage sekce ──────────────────────────── */
.blog-preview {
  padding: 6rem 0;
  background: var(--bg-soft);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.bcard {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform .25s ease, box-shadow .25s ease;
}

.bcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
  border-color: rgba(29,211,176,.25);
}

.bcard__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.bcard__body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bcard__date {
  font-size: .75rem;
  color: var(--green);
  margin: 0 0 .5rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.bcard__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  line-height: 1.35;
  margin: 0 0 .75rem;
  font-weight: 700;
}

.bcard__excerpt {
  font-size: .875rem;
  line-height: 1.65;
  color: rgba(246,251,247,.65);
  margin: 0 0 1.25rem;
  flex: 1;
}

.bcard__link {
  font-size: .8rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: .04em;
}

.blog-preview__more {
  text-align: center;
  margin-top: 2.5rem;
}

.btn--outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 2rem;
  border: 1.5px solid var(--green);
  border-radius: 2rem;
  color: var(--green);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .04em;
  transition: background .2s, color .2s;
}

.btn--outline:hover {
  background: var(--green);
  color: var(--bg);
}

/* ── Blog archive ────────────────────────────────────────────── */
.blog-archive-main {
  min-height: 100vh;
  padding-top: 4rem;
}

.blog-archive {
  padding: 3rem 0 6rem;
}

.blog-archive__empty {
  margin-top: 3rem;
  opacity: .6;
  font-style: italic;
}

.blog-archive__pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.blog-archive__pagination .nav-links {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.blog-archive__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 .75rem;
  border-radius: .5rem;
  background: rgba(255,255,255,.06);
  color: var(--text);
  text-decoration: none;
  font-size: .875rem;
  transition: background .2s, color .2s;
}

.blog-archive__pagination .page-numbers.current,
.blog-archive__pagination .page-numbers:hover {
  background: var(--green);
  color: var(--bg);
}

/* ── Single post ─────────────────────────────────────────────── */
.post-single-main {
  min-height: 100vh;
}

.post-single__hero {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
}

.post-single__hero-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.post-single__wrap {
  max-width: 800px;
  padding-top: 3rem;
  padding-bottom: 6rem;
}

.post-single__back {
  display: inline-block;
  color: var(--green);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: .03em;
}

.post-single__back:hover { text-decoration: underline; }

.post-single__date {
  font-size: .75rem;
  color: rgba(246,251,247,.45);
  margin: 0 0 .75rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.post-single__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin: 0 0 2.5rem;
}

.post-single__content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(246,251,247,.85);
}

.post-single__content h2,
.post-single__content h3 {
  font-family: 'Playfair Display', serif;
  margin: 2.5rem 0 .75rem;
  color: var(--text);
}

.post-single__content h2 { font-size: 1.6rem; }
.post-single__content h3 { font-size: 1.25rem; }

.post-single__content p { margin-bottom: 1.4rem; }

.post-single__content img {
  max-width: 100%;
  border-radius: .75rem;
  margin: 1.5rem 0;
  display: block;
}

.post-single__content a { color: var(--green); }
.post-single__content a:hover { text-decoration: underline; }

.post-single__content ul,
.post-single__content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
}

.post-single__content li { margin-bottom: .4rem; }

.post-single__footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-single__hero-img { height: 240px; }
  .post-single__wrap { padding-top: 2rem; padding-bottom: 4rem; }
}
