:root {
  --ttd-paper: #faf8f3;
  --ttd-ink: #07143f;
  --ttd-nav-text: #24365e;
  --ttd-accent: #0a55ff;
  --ttd-accent-hover: #0638ba;
  --ttd-footer: #07143f;
  --ttd-button-text: #fff;
  --ttd-display: "Nunito", Arial, sans-serif;
  --ttd-display-weight: 600;
  --ttd-body: "Manrope", Arial, sans-serif;
  --ttd-button-radius: 6px;
  --ttd-button-pad-x: 22px;
  --ttd-button-pad-y: 13px;
  --ttd-body-size: 16px;
  --ttd-h1-size: 96px;
  --ttd-h2-size: 72px;
  --ttd-h3-size: 48px;
  --ttd-h4-size: 32px;
  --ttd-button-size: 13px;
  --ttd-header-height: 86px;
  --ttd-line: rgba(7, 20, 63, .17);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ttd-paper);
  color: var(--ttd-ink);
  font-family: var(--ttd-body);
  font-size: var(--ttd-body-size);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body, button, input, textarea { font-family: var(--ttd-body); }
button, input, textarea { font-size: inherit; }
a { color: inherit; }
a:hover { color: var(--ttd-accent); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6,
.elementor-widget-heading .elementor-heading-title { font-family: var(--ttd-display) !important; font-weight: var(--ttd-display-weight) !important; }
/* Silniejsze od domyślnej typografii widżetu Elementor, słabsze od stylu pojedynczego widżetu. */
h1, .elementor-widget-heading h1.elementor-heading-title { font-size: clamp(44px, 6.7vw, var(--ttd-h1-size)); line-height: 1.02; letter-spacing: -.025em; }
h2, .elementor-widget-heading h2.elementor-heading-title { font-size: clamp(38px, 5.1vw, var(--ttd-h2-size)); line-height: 1.06; letter-spacing: -.02em; }
h3, .elementor-widget-heading h3.elementor-heading-title { font-size: clamp(30px, 3.5vw, var(--ttd-h3-size)); line-height: 1.12; letter-spacing: -.015em; }
h4, .elementor-widget-heading h4.elementor-heading-title { font-size: clamp(24px, 2.5vw, var(--ttd-h4-size)); line-height: 1.16; }
h5, .elementor-widget-heading h5.elementor-heading-title { font-size: 22px; line-height: 1.25; }
h6, .elementor-widget-heading h6.elementor-heading-title { font-size: 18px; line-height: 1.3; }
::selection { background: var(--ttd-accent); color: #fff; }

.ttd-shell { width: min(calc(100% - 64px), 1200px); margin-inline: auto; }
.ttd-skip-link {
  position: absolute;
  z-index: 200;
  top: -100px;
  left: 16px;
  padding: 8px 14px;
  background: var(--ttd-ink);
  color: #fff;
}
.ttd-skip-link:focus { top: 8px; }

.ttd-header {
  position: relative;
  z-index: 40;
  height: 86px;
  border-bottom: 1px solid var(--ttd-line);
  background: var(--ttd-paper);
}
.home .ttd-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  background: #fff;
}
.home.admin-bar .ttd-header { top: 32px; }
.home .ttd-main > .elementor > .e-con:first-child {
  padding-top: calc(var(--ttd-header-height) + var(--padding-top, 0px));
}
.ttd-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 100%;
}
.ttd-header__brand {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 132px;
  height: 72px;
  overflow: hidden;
}
.ttd-header__brand img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.ttd-menu, .ttd-footer-menu { margin: 0; padding: 0; list-style: none; }
.ttd-menu { display: flex; align-items: center; gap: 36px; }
.ttd-menu li { margin: 0; padding: 0; }
.ttd-menu > li { position: relative; }
.ttd-menu a {
  position: relative;
  display: inline-block;
  color: var(--ttd-nav-text);
  font-family: var(--ttd-body);
  font-size: 18px;
  letter-spacing: .01em;
  line-height: 1.35;
  text-decoration: none;
}
.ttd-menu a:hover,
.ttd-menu a:focus-visible { color: var(--ttd-accent); }
.ttd-menu > li.menu-item-has-children > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ttd-menu > li.menu-item-has-children > a::before {
  content: "";
  order: 2;
  width: 7px;
  height: 7px;
  margin: -4px 0 0 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.ttd-menu > li.menu-item-has-children:hover > a::before,
.ttd-menu > li.menu-item-has-children:focus-within > a::before {
  transform: rotate(225deg);
}
.ttd-menu a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  background: var(--ttd-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.ttd-menu a:hover::after { transform: scaleX(1); }
.ttd-menu > li.menu-item-has-children::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 19px;
}
.ttd-menu .sub-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 18px);
  right: -20px;
  width: max-content;
  min-width: 380px;
  max-width: min(440px, calc(100vw - 36px));
  margin: 0;
  padding: 12px 0 16px;
  border: 1px solid var(--ttd-line);
  background: var(--ttd-paper);
  box-shadow: 0 16px 34px rgba(7, 20, 63, .1);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(5px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.ttd-menu > li:hover > .sub-menu,
.ttd-menu > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.ttd-menu .sub-menu a {
  display: block;
  padding: 9px 20px;
  font-size: 18px;
  line-height: 1.45;
}
.ttd-menu .sub-menu a::after { display: none; }
.ttd-menu .sub-menu a:hover { color: var(--ttd-accent); text-decoration: underline; text-underline-offset: 3px; }
.ttd-menu .sub-menu li.ttd-menu-label:not(:first-child) {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--ttd-line);
}
.ttd-menu .sub-menu .ttd-menu__label {
  display: block;
  padding: 10px 20px 4px;
  color: rgba(7, 20, 63, .64);
  font-family: var(--ttd-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
  cursor: default;
}
.ttd-menu-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ttd-line);
  background: transparent;
  color: var(--ttd-ink);
  cursor: pointer;
}
.ttd-menu-toggle span,
.ttd-menu-toggle::before,
.ttd-menu-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}
.ttd-submenu-toggle { display: none; }

/* Menu jest nakładką na pierwszy kontener strony głównej, więc hero może mieć pełne 100vh. */
.home .ttd-main .ttd-viewport-hero {
  min-height: 100vh;
  min-height: 100svh;
}

.ttd-intro {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ttd-paper);
  cursor: pointer;
  transition: opacity .5s ease, visibility .5s ease;
}
.ttd-intro__logo { width: min(67.5vw, 845px); max-width: none; transform-origin: center; will-change: transform, opacity; }
.ttd-intro__prompt {
  position: absolute;
  bottom: clamp(20px, 4vh, 42px);
  left: max(32px, calc((100vw - 1200px) / 2));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: max-content;
  max-width: calc(100% - 64px);
}
.ttd-intro__tap {
  display: block;
  width: 72px;
  height: 72px;
  transform: scaleX(-1);
  pointer-events: none;
}
.ttd-intro__hint {
  color: var(--ttd-ink);
  font-family: var(--ttd-body);
  font-size: clamp(14px, 2.5vw, 16px);
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1.35;
  text-align: left;
  text-transform: uppercase;
}
.ttd-intro.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }

/* Domyślna typografia CTA; lokalny rozmiar fontu ustawiony w Elementorze może ją nadpisać. */
.ttd-button,
body .ttd-main .elementor-widget-button .elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: var(--ttd-button-pad-y) var(--ttd-button-pad-x);
  border: 1px solid var(--ttd-accent);
  border-radius: var(--ttd-button-radius);
  background: var(--ttd-accent);
  color: var(--ttd-button-text);
  font-family: var(--ttd-body);
  font-size: var(--ttd-button-size);
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
/* Jednakowe wymiary wariantów, bez blokowania lokalnej edycji typografii. */
body .ttd-main .elementor-widget-button.elementor-element .elementor-button {
  min-height: 50px;
  padding: var(--ttd-button-pad-y) var(--ttd-button-pad-x);
  border-width: 1px;
  border-style: solid;
  border-radius: var(--ttd-button-radius);
}
.ttd-button:hover,
body .ttd-main .elementor-widget-button .elementor-button:hover {
  border-color: var(--ttd-accent-hover);
  background: var(--ttd-accent-hover);
  color: var(--ttd-button-text);
}
.ttd-button--outline,
body .ttd-main .elementor-widget-button.ttd-button-outline .elementor-button {
  border-color: #07143F !important;
  background-color: transparent !important;
  background-image: none !important;
  color: #07143F !important;
}
.ttd-button--outline:hover,
body .ttd-main .elementor-widget-button.ttd-button-outline .elementor-button:hover {
  border-color: #07143F !important;
  background-color: #07143F !important;
  background-image: none !important;
  color: #FFFFFF !important;
}
body .ttd-main .elementor-widget-button.ttd-button-outline .elementor-button-text { color: inherit !important; }
.ttd-button--on-dark,
body .ttd-main .elementor-widget-button.ttd-button-on-dark .elementor-button {
  border-color: #fff;
  background: transparent;
  color: #fff;
}
.ttd-button--on-dark:hover,
body .ttd-main .elementor-widget-button.ttd-button-on-dark .elementor-button:hover {
  border-color: #fff;
  background: #fff;
  color: var(--ttd-ink);
}
.ttd-button--link,
body .ttd-main .elementor-widget-button.ttd-button-link .elementor-button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ttd-accent);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.ttd-button--link:hover,
body .ttd-main .elementor-widget-button.ttd-button-link .elementor-button:hover {
  border: 0;
  background: transparent;
  color: var(--ttd-accent-hover);
}
.ttd-button:focus-visible,
body .ttd-main .elementor-widget-button .elementor-button:focus-visible,
.ttd-menu-toggle:focus-visible,
.ttd-menu a:focus-visible {
  outline: 2px solid var(--ttd-accent);
  outline-offset: 4px;
}

/* Jednolity kadr zdjęć w rzędach wydarzeń Elementora. */
body .ttd-main .elementor-widget-image.ttd-event-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 11 / 10;
  object-fit: cover;
  object-position: center;
}

.ttd-footer {
  padding: 50px 0 30px;
  background: var(--ttd-footer);
  color: #fff;
}
.ttd-footer__rule { border-top: 1px solid rgba(255,255,255,.78); }
.ttd-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr) minmax(0, .83fr) minmax(130px, .62fr);
  align-items: stretch;
  margin-top: 30px;
}
.ttd-footer__grid--no-contact { grid-template-columns: 1.05fr 1.1fr .85fr; }
.ttd-footer__cell {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 116px;
}
.ttd-footer__cell--brand { padding-right: clamp(18px, 2.5vw, 34px); }
.ttd-footer__cell--tagline,
.ttd-footer__cell--legal,
.ttd-footer__cell--contact {
  padding-left: clamp(20px, 2.5vw, 34px);
  border-left: 1px solid rgba(255,255,255,.7);
}
.ttd-footer__cell--legal {
  align-items: center;
}
.ttd-footer__cell--contact { justify-content: center; }
.ttd-footer__brand {
  position: relative;
  display: block;
  width: min(100%, 400px);
  aspect-ratio: 912 / 262;
  overflow: hidden;
}
.ttd-footer__brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ttd-footer__tagline {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(27px, 2.45vw, 34px);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -.01em;
}
.ttd-footer__legal {
  margin: 0;
  color: rgba(255,255,255,.9);
  font-family: var(--ttd-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}
.ttd-footer__contact {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-family: var(--ttd-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}
.ttd-footer__contact-icon { display: block; width: 76px; height: 76px; transition: transform .2s ease; }
.ttd-footer__contact-label { text-decoration: underline; text-underline-offset: 4px; }
.ttd-footer__contact:hover { color: #D9E5FF; }
.ttd-footer__contact:hover .ttd-footer__contact-icon { transform: translateY(-2px); }
.ttd-footer__contact:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }

.ttd-default-content { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(72px, 9vw, 130px); }
.ttd-default-content > h1 { margin-top: 0; }
.ttd-post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.ttd-post-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ttd-post-card h2 { margin-bottom: 8px; font-size: 32px; }
.ttd-post-card h2 a { text-decoration: none; }

@media (max-width: 900px) {
  .ttd-shell { width: min(calc(100% - 36px), 1200px); }
  .ttd-intro__prompt { left: 18px; max-width: calc(100% - 36px); }
  .ttd-header__brand { width: 118px; height: 68px; }
  .ttd-menu-toggle { display: block; }
  .ttd-site-nav {
    position: absolute;
    top: 86px;
    right: 18px;
    left: 18px;
    display: none;
    padding: 25px;
    border: 1px solid var(--ttd-line);
    background: var(--ttd-paper);
    box-shadow: 0 12px 32px rgba(7,20,63,.08);
    max-height: calc(100vh - 104px);
    overflow-y: auto;
  }
  .ttd-site-nav.is-open { display: block; }
  .ttd-menu { flex-direction: column; align-items: flex-start; gap: 22px; }
  .ttd-menu > li { width: 100%; }
  .ttd-menu > li.menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: calc(100% - 52px);
  }
  .ttd-menu > li.menu-item-has-children > a::before { display: none; }
  .ttd-menu > li.menu-item-has-children::before { display: none; }
  .ttd-submenu-toggle {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ttd-nav-text);
    cursor: pointer;
  }
  .ttd-submenu-toggle::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
  }
  .ttd-menu > li.is-submenu-open > .ttd-submenu-toggle::before {
    margin-top: 4px;
    transform: rotate(225deg);
  }
  .ttd-submenu-toggle:focus-visible { outline: 2px solid var(--ttd-accent); outline-offset: 2px; }
  .ttd-menu .sub-menu {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 8px 0 0 14px;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }
  .ttd-js .ttd-menu > li.menu-item-has-children > .sub-menu { display: none; }
  .ttd-js .ttd-menu > li.menu-item-has-children.is-submenu-open > .sub-menu { display: block; }
  .ttd-menu .sub-menu a { padding: 8px 0; }
  .ttd-menu .sub-menu .ttd-menu__label { padding: 10px 0 3px; }
  .ttd-footer { padding: 46px 0 26px; }
  .ttd-footer__grid,
  .ttd-footer__grid--no-contact { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); margin-top: 26px; }
  .ttd-footer__cell { min-height: 0; }
  .ttd-footer__cell--brand { padding: 0 26px 22px 0; }
  .ttd-footer__cell--tagline { padding: 0 0 22px 26px; }
  .ttd-footer__cell--legal { padding: 22px 26px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.45); }
  .ttd-footer__cell--contact { padding: 22px 0 0 26px; border-top: 1px solid rgba(255,255,255,.45); }
  .ttd-footer__grid--no-contact .ttd-footer__cell--legal { grid-column: 1 / -1; }
  .ttd-footer__brand { width: min(100%, 360px); }
  .ttd-post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  /* Duże logo z delikatnym marginesem bezpieczeństwa po bokach. */
  .ttd-intro__logo {
    width: min(calc(100vw - 28px), 180.96svh);
    max-height: 100svh;
  }
  .ttd-intro__prompt {
    left: 50%;
    align-items: center;
    gap: 2px;
    transform: translateX(-50%);
  }
  .ttd-intro__tap { width: 42px; height: 42px; }
  .ttd-intro__hint { font-size: 11px; letter-spacing: .06em; text-align: center; }
  /* Klasa na kontenerze zdjęcia: mobilny kadr taki sam jak w widżecie Obraz. */
  body .ttd-main .ttd-event-media-mobile {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 11 / 10;
    overflow: hidden;
    background-position: center;
    background-size: cover;
  }
  body .ttd-main .ttd-event-media-mobile .elementor-widget-image,
  body .ttd-main .ttd-event-media-mobile .elementor-widget-image .elementor-widget-container,
  body .ttd-main .ttd-event-media-mobile .elementor-widget-image a {
    width: 100%;
    height: 100%;
  }
  body .ttd-main .ttd-event-media-mobile .elementor-widget-image img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }
}
@media (max-width: 620px) {
  :root { --ttd-header-height: 76px; }
  .ttd-header { height: 76px; }
  .ttd-site-nav { top: 76px; }
  .ttd-footer { padding: 36px 0 22px; }
  .ttd-footer__grid,
  .ttd-footer__grid--no-contact { grid-template-columns: minmax(0, 1fr) 112px; margin-top: 22px; }
  .ttd-footer__cell--brand { grid-column: 1 / -1; padding: 0 0 18px; }
  .ttd-footer__cell--tagline { grid-column: 1 / -1; padding: 18px 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.45); }
  .ttd-footer__cell--legal { padding: 18px 12px 0 0; }
  .ttd-footer__cell--contact { padding: 18px 0 0; border-left: 0; }
  .ttd-footer__contact-icon { width: 60px; height: 60px; }
  .ttd-footer__contact { font-size: 12px; }
  .ttd-footer__tagline { font-size: clamp(28px, 7vw, 34px); }
  .ttd-footer__legal { font-size: 15px; }
  .ttd-post-list { grid-template-columns: 1fr; }
  .ttd-intro__prompt { bottom: 20px; }
}
@media (max-width: 782px) {
  .home.admin-bar .ttd-header { top: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ttd-intro, .ttd-button, :where(.elementor-widget-button) .elementor-button { transition-duration: .001ms; }
}

.ttd-header__brand:has(.ttd-brand-text),
.ttd-footer__brand:has(.ttd-brand-text) {
  display: flex;
  align-items: center;
  aspect-ratio: auto;
  color: inherit;
  text-decoration: none;
}
.ttd-brand-text,
.ttd-intro__logo--text {
  font-weight: 700;
  line-height: 1.1;
}
.ttd-header__brand .ttd-brand-text { font-size: 30px; }
.ttd-footer__brand .ttd-brand-text { font-size: 40px; }
.ttd-intro__logo--text { font-size: clamp(42px, 10vw, 110px); text-align: center; }

/* Keep empty Elementor image widgets visible on the front page. */
.home .ttd-main .elementor-widget-image:not(:has(img)) {
  min-height: 120px;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f2efe8;
  outline: 1px dashed #b4aa9c;
  outline-offset: -1px;
}
.home .ttd-main .elementor-widget-image.ttd-event-image:not(:has(img)) {
  aspect-ratio: 11 / 10;
}
