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

html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  min-height: 100vh;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Header styles */
/* Base Styles & Variables */
  :root {
    --primary-color: #2d3047;
    --secondary-color: #419d78;
    --accent-color: #e0a458;
    --background-color: #f8f9fa;
    --text-color: #2d3047;
    --light-text: #f8f9fa;
    --border-radius: 6px;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --font-main: 'Poppins', sans-serif;
    --font-accent: 'Playfair Display', serif;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
  }

  /* Header Base */
  .header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background-color: var(--background-color);
    box-shadow: var(--shadow-sm);
    font-family: var(--font-main);
  }

  .header-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-lg);
    position: relative;
  }

  /* Logo Styling */
  .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-right: var(--spacing-lg);
  }

  .logo-icon {
    font-size: 1.2rem;
    margin-right: var(--spacing-xs);
    color: var(--secondary-color);
  }

  .logo-text {
    font-family: var(--font-accent);
    font-size: 1.4rem;
  }

  /* Desktop Navigation */
  .desktop-nav {
    justify-self: center;
  }

  .nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--spacing-lg);
  }

  .nav-item {
    position: relative;
  }

  .nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
    opacity: 0;
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
    opacity: 1;
  }

  .nav-link.active {
    color: var(--secondary-color);
    font-weight: 600;
  }

  /* Header Actions */
  .header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
  }

  .action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    color: var(--primary-color);
    transition: var(--transition);
    position: relative;
  }

  .action-button:hover {
    background-color: rgba(65, 157, 120, 0.1);
    color: var(--secondary-color);
    transform: translateY(-2px);
  }

  /* Mobile Toggle */
  .mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
  }

  .toggle-line {
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
  }

  /* Mobile Menu */
  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }

  .mobile-menu.active {
    transform: translateX(0);
  }

  .close-menu {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: transparent;
    border: none;
    color: var(--light-text);
    cursor: pointer;
    padding: var(--spacing-sm);
    z-index: 1010;
  }

  .mobile-menu-content {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .mobile-logo {
    display: flex;
    align-items: center;
    color: var(--light-text);
    margin-bottom: var(--spacing-lg);
    font-size: 1.5rem;
    font-weight: 600;
  }

  .mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mobile-nav-item {
    margin-bottom: var(--spacing-md);
  }

  .mobile-nav-link {
    display: block;
    text-decoration: none;
    color: var(--light-text);
    font-size: 1.2rem;
    padding: var(--spacing-sm) 0;
    transition: var(--transition);
  }

  .mobile-nav-link.active {
    color: var(--accent-color);
    font-weight: 600;
  }

  .mobile-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-action {
    display: block;
    text-decoration: none;
    color: var(--light-text);
    font-size: 1rem;
    padding: var(--spacing-sm) 0;
    transition: var(--transition);
  }

  .mobile-action:hover {
    color: var(--accent-color);
  }

  /* Responsive Styles */
  @media (max-width: 1024px) {
    .header-container {
      grid-template-columns: auto auto;
    }
    
    .desktop-nav {
      display: none;
    }
    
    .mobile-toggle {
      display: flex;
      justify-self: end;
    }
    
    .header-actions {
      display: none;
    }
  }

  @media (max-width: 768px) {
    .header-container {
      padding: var(--spacing-md);
    }
    
    .logo-text {
      font-size: 1.2rem;
    }
  }

  @media (min-width: 1025px) {
    .mobile-menu {
      display: none;
    }
  }

/* Footer styles */
/* Base Footer Styles */
  .footer-main {
    width: 100%;
    background: linear-gradient(135deg, #1e3a5f 0%, #0f2342 100%);
    color: #f8f9fa;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3a9fff, #65e8ff, #3a9fff);
  }
  
  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
  }
  
  /* Section Styles */
  .footer-section {
    position: relative;
  }
  
  .footer-section::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #3a9fff;
    border-radius: 2px;
  }
  
  .footer-heading {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    letter-spacing: 0.5px;
    color: #65e8ff;
  }
  
  /* Links Styles */
  .footer-links {
    list-style-type: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-links li {
    margin-bottom: 12px;
  }
  
  .footer-link {
    color: #d9e6ff;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
  }
  
  .footer-link:hover {
    color: #65e8ff;
    padding-left: 5px;
  }
  
  .footer-link::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #65e8ff;
    transition: width 0.3s ease;
  }
  
  .footer-link:hover::before {
    width: 100%;
  }
  
  /* Contact Section */
  .footer-contact-info {
    margin-bottom: 25px;
  }
  
  .footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: #d9e6ff;
  }
  
  .footer-icon {
    margin-right: 10px;
    color: #65e8ff;
    font-size: 16px;
  }
  
  /* Social Links */
  .footer-social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
  }
  
  .footer-social-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #d9e6ff;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  
  .footer-social-item:hover {
    background-color: #3a9fff;
    color: #ffffff;
    transform: translateY(-3px);
  }
  
  /* Bottom Section */
  .footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    position: relative;
  }
  
  .footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }
  
  .footer-legal-links {
    display: flex;
    gap: 20px;
  }
  
  .footer-legal-link {
    color: #a8c0ff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
  }
  
  .footer-legal-link:hover {
    color: #65e8ff;
  }
  
  .footer-separator {
    display: none;
  }
  
  .footer-awards {
    display: flex;
    gap: 20px;
  }
  
  .footer-award-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #a8c0ff;
  }
  
  .footer-copyright {
    text-align: right;
  }
  
  .footer-copyright-text {
    font-size: 14px;
    color: #a8c0ff;
    margin: 0;
  }
  
  /* Responsive Styles */
  @media (max-width: 1024px) {
    .footer-container {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom-container {
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 15px;
    }
    
    .footer-separator {
      display: block;
      width: 50px;
      height: 1px;
      background-color: rgba(255, 255, 255, 0.1);
    }
    
    .footer-copyright {
      text-align: center;
    }
  }
  
  @media (max-width: 768px) {
    .footer-container {
      grid-template-columns: 1fr;
      gap: 40px;
    }
    
    .footer-section::after {
      width: 60px;
    }
    
    .footer-legal-links {
      flex-direction: column;
      gap: 10px;
      align-items: center;
    }
    
    .footer-awards {
      flex-direction: column;
      gap: 10px;
      align-items: center;
    }
  }

/* Cookie Banner styles */
#zgoda-cookie-banner {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background-color: #f8f9fa !important;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1) !important;
    z-index: 9999 !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }

  .ciasteczka-kontener {
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 18px 20px !important;
  }

  .ciasteczka-tekst {
    margin: 0 0 15px 0;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
  }

  .ciasteczka-link {
    color: #4a6eb5;
    text-decoration: underline;
  }

  .ciasteczka-link:hover {
    color: #354f82;
  }

  .ciasteczka-przyciski {
    display: flex !important;
    gap: 15px;
    justify-content: flex-end;
  }

  .przycisk-odrzuc, .przycisk-akceptuj {
    padding: 10px 20px !important;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .przycisk-odrzuc {
    background-color: #e2e2e2 !important;
    color: #555;
  }

  .przycisk-odrzuc:hover {
    background-color: #d0d0d0 !important;
  }

  .przycisk-akceptuj {
    background-color: #5d7fc9 !important;
    color: white;
  }

  .przycisk-akceptuj:hover {
    background-color: #4a6eb5 !important;
  }

  @media (max-width: 768px) {
    .ciasteczka-przyciski {
      flex-direction: column !important;
    }
    
    .ciasteczka-tekst {
      font-size: 14px;
    }
  }