/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --surface: #fffce8;
  --surface-alt: #1f1c18;

	--brand-yellow: #f0df57;
	--brand-blue: #38438e;
	
  --text: #1f2f5f;
  --text-soft: #4d5d86;

  --border: #b8c6de;

  --accent: #38438e;
  --accent-hover: #e5d13c;
  --accent-contrast: #f0df57;

  --shadow: 0 10px 30px rgba(35, 52, 95, 0.12);

  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  --container: 80rem;

  --font-body: "Segoe UI", Roboto, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10161d;
    --surface: #17212b;
    --surface-alt: #1d2a36;

    --text: #edf3f8;
    --text-soft: #b6c4d1;

    --border: #2d3d4d;

    --accent: #68a8eb;
    --accent-hover: #8bbcf0;
    --accent-contrast: #08131d;

    --shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  }
}


/* --------------------------------------------------------------------------
   Reset & base elements
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, var(--brand-blue) 100%);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover,
a:focus-visible {
  color: var(--accent-hover);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Accessibility helpers
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100%;
  z-index: 1000;
  padding: var(--space-3) var(--space-4);
  color: var(--accent-contrast);
  background: var(--accent);
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: var(--space-4);
}

/* --------------------------------------------------------------------------
   Layout containers
   -------------------------------------------------------------------------- */

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.site-header {
  padding: var(--space-6) 0 var(--space-4);
}

#main-content {
  display: block;
  padding-bottom: var(--space-8);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: var(--space-4) 0;
}

.section .container {
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.section h2 {
  margin: 0 0 var(--space-4);
  font-size: clamp(1.35rem, 1.4vw + 1rem, 2rem);
  font-weight: 800;
  line-height: 1.2;
}

.section p {
  margin: 0 0 var(--space-4);
  font-weight: 600;
  max-width: 100%;
}

.section p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.5rem;
  color: var(--text-soft);
}

/* Specyficzna sekcja usług */

.section-services ul {
  margin: 0;
  padding-left: 1.2rem;
}

.section-services li {
  margin-bottom: var(--space-3);
}

.section-services li:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Brand block
   -------------------------------------------------------------------------- */

.brand {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: var(--space-5);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.brand-text {
  min-width: 0;
  width: 100%;
	padding-inline: var(--space-4);
	padding-block: var(--space-2);
}


.brand-text h1 {
  font-family: "Arial Black", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: #f0df57;
  -webkit-text-stroke: 2.5px #38438e;
  paint-order: stroke fill;
  text-shadow: 0 4px 12px rgba(56, 67, 142, 0.16);
	margin: 0 0 var(--space-3);
}

.brand-text p {
  font-weight: 700;
  line-height: 1.2;
  font-size: clamp(1rem, 1.6vw, 1.6rem);
	margin: 0 0 var(--space-3); 
}

.brand-link {
  width: 100%;
  max-width: 300px;
}

.brand-link img {
  width: 100%;
  height: auto;
}

@media (max-width: 1400px) {
  .brand {
    grid-template-columns: 1fr;
  }

  .brand-text {
    grid-column: 1;
    grid-row: 2;
  }

  .brand-link {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    margin-bottom: var(--space-3);
  }
}

/* --------------------------------------------------------------------------
   Data list
   -------------------------------------------------------------------------- */

.data-list {
  margin: 0;
  display: grid;
  background: var(--surface);
  gap: var(--space-4);
}

.data-list > div {
  padding: var(--space-4);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.data-list dt {
  margin: 0 0 var(--space-2);
  font-weight: 700;
  color: var(--text);
}

.data-list dd {
  margin: 0;
  color: var(--text-soft);
  word-break: break-word;
}

.data-list dd a {
  word-break: break-all;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.reveal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1rem;
  color: var(--accent-contrast);
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 759px) {
  .brand {
    grid-template-columns: 1fr;
  }

  .brand-text {
    grid-column: 1;
    grid-row: 2;
  }

  .brand-link {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
}