:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --text: #2b2f36;
  --muted: #525861;
  --primary: #1c9bc7;
  --primary-dark: #157ea3;
  --accent: #d8c63a;
  --accent-soft: #79bb50;
  --border: #d8dce2;
  --shadow: 0 16px 40px rgba(43, 47, 54, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(140deg, rgba(28, 155, 199, 0.95), rgba(21, 126, 163, 0.94)),
    linear-gradient(180deg, #178db6 0%, #1c9bc7 100%);
  line-height: 1.6;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: visible;
  background:
    linear-gradient(140deg, rgba(28, 155, 199, 0.95), rgba(21, 126, 163, 0.94)),
    linear-gradient(180deg, #178db6 0%, #1c9bc7 100%);
  color: #fff;
  min-height: 100svh;
  padding-bottom: 3.2rem;
  display: flex;
  flex-direction: column;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(216, 198, 58, 0.26), transparent 42%),
    radial-gradient(circle at 80% 10%, rgba(121, 187, 80, 0.22), transparent 35%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    var(--accent) 0,
    var(--accent) 42px,
    var(--accent-soft) 42px,
    var(--accent-soft) 84px
  );
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  position: relative;
  z-index: 9999;
  transform: translateZ(0);
  isolation: isolate;
}

.hero-content.container {
  position: relative;
  z-index: 0;
}

.logo {
  flex: 0 1 auto;
  max-width: calc(100% - 3.75rem);
  min-width: 0;
  margin-right: auto;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  left: 0;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.7rem;
  margin: 0;
  list-style: none;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #14384d;
  backdrop-filter: none;
  box-shadow: 0 14px 32px rgba(0, 18, 32, 0.55);
  z-index: 10001;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  touch-action: manipulation;
  -webkit-overflow-scrolling: touch;
}

.menu.is-open {
  display: flex;
}

.menu a {
  display: block;
  padding: 0.5rem 0.4rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
  touch-action: manipulation;
  cursor: pointer;
}

.menu a:hover {
  color: var(--accent-soft);
}

@media (min-width: 861px) {
  .menu {
    left: auto;
    width: min(260px, 92vw);
  }
}

.menu-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 0.55rem;
  padding: 0.25rem 0.6rem;
  min-height: 44px;
  min-width: 44px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 10002;
}

.hero-content {
  padding: 4rem 0 2rem;
  flex: 1;
}

.hero-layout {
  width: 100%;
  display: block;
  padding-top: clamp(1rem, 3vh, 2rem);
  max-width: 760px;
  margin: 0 auto;
}

.hero-main {
  max-width: 100%;
  text-align: center;
}

.silesia-accent {
  width: 104px;
  height: 104px;
  margin: 0 auto 0.9rem;
  filter: drop-shadow(0 8px 18px rgba(3, 21, 44, 0.35));
}

.silesia-accent svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-brand-logo {
  display: block;
  width: min(320px, 84%);
  height: auto;
  margin: 0 auto 0.8rem;
  background: transparent;
  box-shadow: none;
  border: 0;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
}

.accent-ring {
  fill: none;
  stroke: var(--accent-soft);
  stroke-width: 10;
}

.accent-core {
  fill: rgba(255, 255, 255, 0.16);
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 1.5;
}

.accent-tower {
  fill: var(--accent);
}

.accent-hammer {
  fill: #2b2f36;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-soft);
  font-weight: 700;
  margin: 0;
}

h1 {
  margin: 0.25rem 0 1rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15;
}

.lead {
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-photo {
  margin: 1.1rem auto 0;
  width: 100%;
  max-width: min(660px, 100%);
  min-width: 0;
  padding-inline: clamp(0px, 2vw, 0.5rem);
  box-sizing: border-box;
}

.hero-photo-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 0.95rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 14px 30px rgba(8, 24, 48, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-photo-caption {
  display: block;
  margin-top: 0.45rem;
  max-width: 100%;
  text-align: right;
  padding-inline-end: 0.65rem;
  margin-inline-end: 0.2rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.saying-box {
  margin-top: 1.2rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 660px;
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(3px);
  overflow-wrap: anywhere;
}

.saying-label {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #d5f3be;
  font-weight: 700;
}

.saying-quote {
  margin: 0.35rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
}

.saying-explanation {
  margin: 0.55rem 0 0;
  color: rgba(255, 255, 255, 0.92);
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.35rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: 0.7rem;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--accent);
  color: #2b2f36;
  box-shadow: 0 10px 22px rgba(43, 47, 54, 0.22);
}

.btn.primary:hover {
  background: #e9d958;
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.section {
  position: relative;
  padding: 3.5rem 0;
  background: transparent;
  color: #fff;
}

.section + .section {
  border-top: 1px solid rgba(0, 0, 0, 0.55);
}

.section.alt {
  background: transparent;
  color: #fff;
  border-top: 0;
  border-bottom: 0;
}

h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.7rem;
  color: #ffffff;
}

.cards {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.cards li,
.panel,
.registry {
  background:
    linear-gradient(180deg, rgba(10, 40, 68, 0.26), rgba(10, 40, 68, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 0.9rem;
  padding: 1.05rem;
  box-shadow: 0 14px 32px rgba(6, 26, 52, 0.2);
  color: #fff;
}

.cards li {
  border-left: 6px solid var(--accent-soft);
}

.panel {
  border-top: 4px solid rgba(216, 198, 58, 0.85);
}

.registry {
  border-left: 6px solid rgba(121, 187, 80, 0.85);
}

.download-list {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.download-list li {
  background:
    linear-gradient(180deg, rgba(10, 40, 68, 0.26), rgba(10, 40, 68, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 0.9rem;
  padding: 1rem 1.05rem;
  box-shadow: 0 14px 32px rgba(6, 26, 52, 0.2);
  border-left: 6px solid var(--accent);
}

.download-list a {
  color: #f0df5f;
  font-weight: 600;
  text-decoration: none;
}

.download-list a:hover {
  color: #fff;
  text-decoration: underline;
}

.news-post {
  margin-top: 1.2rem;
  padding: 1.2rem 1.15rem;
  background:
    linear-gradient(180deg, rgba(10, 40, 68, 0.26), rgba(10, 40, 68, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 0.9rem;
  box-shadow: 0 14px 32px rgba(6, 26, 52, 0.2);
  border-left: 6px solid var(--primary);
}

.news-date {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.news-post p {
  margin: 0 0 0.85rem;
}

.news-post p:last-child {
  margin-bottom: 0;
}

.news-post ul {
  margin: 0 0 0.85rem 1.1rem;
  padding: 0;
}

.news-post a {
  color: #f0df5f;
  font-weight: 600;
}

.news-post a:hover {
  color: #fff;
  text-decoration: underline;
}

.section p,
.section li,
.panel h3 {
  color: rgba(255, 255, 255, 0.96);
}

.panel h3 {
  color: #fff;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.panel h3 {
  margin-top: 0;
  color: #ffffff;
}

.panel ul {
  margin-bottom: 0;
}

.footer {
  background:
    linear-gradient(180deg, rgba(43, 47, 54, 0.97), rgba(36, 40, 46, 0.98)),
    linear-gradient(90deg, #2b2f36, #25292f);
  color: #e4e8ee;
  padding: 3rem 0;
  border-top: 6px solid var(--accent-soft);
}

.footer h2 {
  color: #fff;
}

.footer a {
  color: #f0df5f;
}

.muted {
  color: #b7c5dc;
}

body.privacy-locked {
  overflow: hidden;
}

body.privacy-locked > :not(.privacy-layer) {
  pointer-events: none;
  user-select: none;
}

.privacy-layer {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.privacy-layer.is-hidden {
  display: none;
}

.privacy-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 24, 44, 0.62);
}

.privacy-banner {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  margin: 0 auto;
  max-height: min(78vh, 720px);
  display: flex;
  flex-direction: column;
  padding: 1rem 1.1rem 1.15rem;
  background: #14384d;
  border-top: 4px solid var(--accent);
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.35);
  color: #fff;
}

.privacy-banner h2 {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
  color: #fff;
}

.privacy-banner-content {
  overflow-y: auto;
  padding-right: 0.35rem;
  margin-bottom: 0.75rem;
  flex: 1;
  min-height: 0;
}

.privacy-banner-content h3 {
  margin: 0.85rem 0 0.45rem;
  font-size: 1rem;
  color: var(--accent-soft);
}

.privacy-banner-content h3:first-child {
  margin-top: 0;
}

.privacy-banner-content p {
  margin: 0 0 0.65rem;
  color: rgba(255, 255, 255, 0.94);
}

.privacy-banner-content a {
  color: #f0df5f;
}

.privacy-banner-note {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
}

.privacy-accept {
  align-self: flex-start;
  border: 0;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav.container {
    position: sticky;
    top: 0;
    z-index: 9999;
    padding-top: max(0.35rem, env(safe-area-inset-top, 0px));
    padding-bottom: 0.65rem;
    padding-inline: max(0.25rem, env(safe-area-inset-left, 0px))
      max(0.25rem, env(safe-area-inset-right, 0px));
    margin-bottom: 0.25rem;
    box-sizing: border-box;
    width: 100%;
    max-width: min(1100px, 100%);
    background: linear-gradient(
      180deg,
      rgba(23, 141, 182, 0.98) 0%,
      rgba(23, 141, 182, 0.92) 85%,
      rgba(23, 141, 182, 0) 100%
    );
  }

  .hero-brand-logo {
    filter: none;
    width: min(280px, 92%);
  }

  .privacy-banner {
    max-height: 88vh;
    padding-inline: max(0.75rem, env(safe-area-inset-left, 0px))
      max(0.75rem, env(safe-area-inset-right, 0px));
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  }

  .privacy-accept {
    width: 100%;
    align-self: stretch;
    text-align: center;
  }

  .hero-photo-caption {
    text-align: right;
    font-size: 0.8rem;
    padding-inline-end: 0.85rem;
    margin-inline-end: 0.35rem;
  }

  .cards,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 100dvh;
  }

  .hero-content {
    padding-top: 1.5rem;
  }

  .hero-layout {
    padding-top: 0.5rem;
    max-width: 100%;
  }

  .hero-main {
    max-width: 100%;
  }

  .saying-box {
    max-width: 100%;
  }

  .saying-quote {
    font-size: 1.1rem;
  }

  .lead {
    font-size: 1rem;
  }

  .silesia-accent {
    width: 88px;
    height: 88px;
    margin-bottom: 0.75rem;
  }
}
