/* ==========================================================================
   Menokonference 2027 – statická microsite
   Barvy a písmo převzaty z původního webu (Bricks): Montserrat, #c42e3b
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --red: #c42e3b;
  --red-dark: #a1222e;
  --red-deep: #7d1923;
  --rose: #e7989e;
  --pink: #f3c9cc;
  --pink-light: #f7dedf;
  --pink-pale: #fbefef;
  --ink: #2b1417;
  --ink-soft: #5c4245;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(125, 25, 35, .45);
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--pink-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--white);
  color: var(--red);
  font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Štětcové tvary (shape dividers z původního webu)
   -------------------------------------------------------------------------- */
.shape {
  position: absolute;
  left: 0; right: 0;
  line-height: 0;
  pointer-events: none;
}
.shape svg { width: 100%; height: 100%; }

/* --------------------------------------------------------------------------
   Hlavička
   -------------------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 2;
  background: var(--red);
  color: var(--white);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px 8px;
}
.site-header__logo img {
  width: auto;
  height: 76px;
}
.site-header__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .3px;
  text-decoration: none;
  opacity: .92;
  transition: opacity .2s;
}
.site-header__link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.site-header__link svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.shape--brush {
  top: 100%;
  height: 46px;
  transform: scaleY(-1);
  fill: var(--red);
}

/* --------------------------------------------------------------------------
   Úvod + mapa
   -------------------------------------------------------------------------- */
.hero {
  flex: 1;
  position: relative;
  padding: 88px 0 140px;
  text-align: center;
  background:
    radial-gradient(1200px 520px at 50% 62%, var(--pink-pale) 0%, rgba(251, 239, 239, 0) 70%),
    var(--pink-light);
}

.eyebrow {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--white);
  color: var(--red);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  box-shadow: 0 6px 18px -10px rgba(125, 25, 35, .5);
}

.hero__title {
  margin-top: 22px;
  font-size: clamp(2.1rem, 5.4vw, 3.9rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--red);
}
.hero__title span {
  position: relative;
  white-space: nowrap;
  color: var(--red-deep);
}

.hero__lead {
  max-width: 620px;
  margin: 16px auto 0;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
}

/* Mapa */
.map {
  position: relative;
  max-width: 1040px;
  margin: 56px auto 0;
}
.map__svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.map__regions {
  filter: drop-shadow(0 14px 18px rgba(125, 25, 35, .22));
}
.map__regions path {
  fill: var(--white);
  stroke: var(--pink);
  stroke-width: 1.4;
  stroke-linejoin: round;
  transition: fill .25s;
}
.map__regions path.is-active {
  fill: var(--pink);
  stroke: var(--rose);
}

/* Událost = špendlík + karta */
.event {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 0; height: 0;
  text-align: left;
}

.pin {
  position: absolute;
  left: 0; top: 0;
  display: block;
  text-decoration: none;
  z-index: 2;
}
.pin__dot {
  position: absolute;
  left: -11px; top: -11px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--red);
  border: 4px solid var(--white);
  box-shadow: 0 4px 12px rgba(125, 25, 35, .45);
}
.pin__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--red);
  animation: pulse 2.2s ease-out infinite;
}
.pin__label {
  position: absolute;
  top: 16px;
  left: 0;
  transform: translateX(-50%);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--red-deep);
  white-space: nowrap;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: .9; }
  100% { transform: scale(2.6); opacity: 0; }
}

.event__card {
  position: absolute;
  z-index: 3;
  width: 300px;
  padding: 22px 22px 24px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  border-top: 5px solid var(--red);
}
/* Spojnice mezi špendlíkem a kartou */
.event__card::before {
  content: "";
  position: absolute;
  width: 32px;
  height: 0;
  border-top: 2px dashed var(--red);
  opacity: .7;
}

/* Praha – karta vlevo od špendlíku */
.event--praha .event__card { right: 44px; top: -96px; }
.event--praha .event__card::before { right: -34px; top: 96px; }

/* Jihlava – karta vpravo od špendlíku */
.event--jihlava .event__card { left: 44px; top: -40px; }
.event--jihlava .event__card::before { left: -34px; top: 40px; }

.event__date {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--pink-light);
  color: var(--red);
  font-size: .85rem;
  font-weight: 700;
}
.event__title {
  margin-top: 12px;
  font-size: 1.18rem;
  line-height: 1.3;
  font-weight: 800;
  color: var(--ink);
}
.event__place {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
  font-size: .92rem;
  color: var(--ink-soft);
}
.event__place svg {
  flex: none;
  width: 18px; height: 18px;
  margin-top: 2px;
  fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.event .btn { margin-top: 18px; }

/* --------------------------------------------------------------------------
   Tlačítka
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 10px 20px -10px rgba(125, 25, 35, .7); }
.btn svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s;
}
.btn:hover svg { transform: translateX(3px); }

.btn--soon,
.btn--soon:hover {
  background: var(--pink);
  color: var(--red);
  cursor: default;
  transform: none;
  box-shadow: none;
}
.btn--dark { background: var(--ink); }
.btn--dark:hover { background: #000; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px #d9c3c5;
}
.btn--ghost:hover { background: var(--pink-pale); box-shadow: inset 0 0 0 1.5px var(--rose); }

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Patička
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: var(--red);
  color: var(--white);
}
.shape--cloud {
  bottom: 100%;
  height: 70px;
  fill: var(--red);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
  padding-block: 20px 28px;
}
.site-footer__label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  opacity: .75;
}
.site-footer__name {
  margin-top: 6px;
  font-size: 1.05rem;
  font-weight: 700;
}
.site-footer__cp {
  display: inline-block;
  margin-top: 10px;
  transition: opacity .2s;
}
.site-footer__cp:hover { opacity: .85; }
.site-footer__cp img { width: 210px; height: auto; }
.site-footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin-top: 16px;
  font-size: .9rem;
  line-height: 1.6;
}
.site-footer__contact address { font-style: normal; }
.site-footer__contact a { text-decoration: none; }
.site-footer__contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 18px 22px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  font-size: .88rem;
  opacity: .9;
}

/* --------------------------------------------------------------------------
   Cookie lišta + nastavení
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  padding: 12px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__box {
  max-width: 760px;
  margin-inline: auto;
  padding: 24px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 25px 50px -12px rgba(43, 20, 23, .35), 0 0 0 1px rgba(43, 20, 23, .08);
  font-size: .9rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.cookie-banner__text { display: flex; gap: 16px; align-items: flex-start; }
.cookie-banner__icon {
  display: none;
  flex: none;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--pink-light);
  color: var(--red);
}
.cookie-banner__icon svg {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.cookie-banner__title {
  margin-bottom: 6px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.cookie-actions {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}
.cookie-actions .btn { padding-block: 12px; font-size: .95rem; }

.cookie-dialog {
  width: calc(100% - 24px);
  max-width: 640px;
  max-height: 90vh;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--white);
  color: var(--ink-soft);
  box-shadow: 0 25px 50px -12px rgba(43, 20, 23, .45);
}
.cookie-dialog::backdrop {
  background: rgba(43, 20, 23, .6);
  backdrop-filter: blur(4px);
}
.cookie-dialog__form { display: flex; flex-direction: column; max-height: 90vh; }
.cookie-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid #f1e4e5;
}
.cookie-dialog__head h2 { font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.cookie-dialog__close {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
}
.cookie-dialog__close:hover { background: var(--pink-pale); color: var(--ink); }
.cookie-dialog__close svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
}
.cookie-dialog__body {
  display: grid;
  gap: 16px;
  padding: 22px 24px;
  overflow-y: auto;
  font-size: .9rem;
  line-height: 1.6;
}
.cookie-dialog__foot { margin: 0; padding: 18px 24px; border-top: 1px solid #f1e4e5; }

.cookie-cat {
  padding: 18px;
  border-radius: 16px;
  background: var(--pink-pale);
  box-shadow: inset 0 0 0 1px #f1dcdd;
}
.cookie-cat__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
label.cookie-cat__row { cursor: pointer; }
.cookie-cat h3,
.cookie-cat__title { display: block; font-size: 1rem; font-weight: 700; color: var(--ink); }
.cookie-cat__desc { display: block; margin-top: 4px; }
.cookie-cat p { margin-top: 4px; }
.cookie-cat__badge {
  flex: none;
  padding: 4px 12px;
  border-radius: 999px;
  background: #ead7d8;
  font-size: .75rem;
  font-weight: 600;
}
.cookie-cat ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: .78rem;
  color: #876a6d;
}
.cookie-cat code { font-weight: 600; color: var(--ink-soft); }

.switch { position: relative; flex: none; display: inline-flex; align-items: center; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch__track {
  width: 48px; height: 28px;
  border-radius: 999px;
  background: #cdb8ba;
  transition: background-color .2s;
}
.switch__thumb {
  position: absolute;
  top: 4px; left: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .2s;
  pointer-events: none;
}
.switch input:checked ~ .switch__track { background: var(--red); }
.switch input:checked ~ .switch__thumb { transform: translateX(20px); }
.switch input:focus-visible ~ .switch__track { outline: 3px solid var(--red); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   Responzivita
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .cookie-banner { padding: 20px; }
  .cookie-banner__box { padding: 28px; }
  .cookie-banner__icon { display: grid; }
  .cookie-actions { display: flex; flex-direction: row-reverse; align-items: center; }
  .cookie-actions .btn--ghost { margin-right: auto; }
  .cookie-dialog__head, .cookie-dialog__body, .cookie-dialog__foot { padding-inline: 32px; }
}

@media (max-width: 1100px) {
  .event__card { width: 270px; padding: 18px 18px 20px; }
  .event__title { font-size: 1.05rem; }
}

/* Na menších displejích karty pod mapou */
@media (max-width: 900px) {
  .site-header__logo img { height: 60px; }
  .hero { padding: 64px 0 110px; }
  .map { margin-top: 36px; }
  .event { display: contents; }
  .event__card {
    position: static;
    width: auto;
    margin-top: 16px;
    text-align: left;
  }
  .event__card::before { display: none; }
  /* top v % by se počítal z výšky celého bloku i s kartami → margin-top v % se počítá z šířky */
  .pin { left: var(--x); top: 0; margin-top: var(--yw); }
  .map { display: flex; flex-direction: column; }
  .map__svg { order: 0; margin-bottom: 20px; }
  .event--jihlava .event__card { order: 1; }
  .event--praha .event__card { order: 2; }
  .event__card .btn { width: 100%; }
}

@media (max-width: 560px) {
  .site-header__inner { padding-block: 14px 4px; }
  .site-header__logo img { height: 52px; }
  .site-header__link { font-size: .85rem; }
  .shape--brush { height: 28px; }
  .shape--cloud { height: 40px; }
  .hero { padding-top: 52px; }
  .eyebrow { font-size: .7rem; letter-spacing: .8px; }
  .pin__dot { left: -8px; top: -8px; width: 16px; height: 16px; border-width: 3px; }
  .pin__label { top: 11px; font-size: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
