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

html, body {
  height: 100%;
}

body {
  margin: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

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

ul, ol {
  padding: 0;
  list-style: none;
}

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

button {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

/* Header styles */
/* Base Styles & Variables */
    :root {
        --primary: #CD9D00;
        --primary-dark: #9A7500;
        --secondary: #3D3220;
        --dark: #1A1A1A;
        --light: #F5F0E8;
        --accent: #8B0000;
        --text: #E6E6E6;
        --text-dark: #1A1A1A;
        --border-radius: 4px;
        --header-height: 80px;
        --transition: 0.3s ease;
        --shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    }

    /* Header Container */
    .witcher-header {
        position: sticky;
        top: 0;
        width: 100%;
        z-index: 100;
        background: linear-gradient(to bottom, rgba(26, 26, 26, 0.95), rgba(26, 26, 26, 0.85));
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(205, 157, 0, 0.3);
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    }

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

    /* Logo Styles */
    .logo-area {
        padding-right: 20px;
    }

    .logo {
        display: flex;
        align-items: center;
        text-decoration: none;
        gap: 10px;
    }

    .witcher-logo {
        display: block;
        transform: rotate(0deg);
        transition: transform var(--transition);
    }

    .logo:hover .witcher-logo {
        transform: rotate(45deg);
    }

    .logo-text {
        font-family: 'Cinzel', serif;
        font-weight: 700;
        font-size: 1.25rem;
        color: var(--text);
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

    .logo-accent {
        color: var(--primary);
        font-weight: 400;
        margin-left: 4px;
    }

    /* Desktop Navigation */
    .desktop-nav {
        justify-self: center;
        width: 100%;
        max-width: 800px;
    }

    .nav-list {
        display: flex;
        justify-content: space-between;
        list-style: none;
        padding: 0;
        margin: 0;
        position: relative;
    }

    .nav-item {
        position: relative;
        margin: 0 5px;
    }

    .nav-item a {
        display: block;
        padding: 8px 12px;
        color: var(--text);
        text-decoration: none;
        font-family: 'Open Sans', sans-serif;
        font-size: 0.95rem;
        font-weight: 500;
        transition: color var(--transition);
        position: relative;
    }

    .nav-item a:hover {
        color: var(--primary);
    }

    .nav-item a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background-color: var(--primary);
        transition: width 0.3s ease, left 0.3s ease;
    }

    .nav-item a:hover::after,
    .nav-item.active a::after {
        width: 100%;
        left: 0;
    }

    .nav-item.active a {
        color: var(--primary);
        font-weight: 600;
    }

    /* Header Actions */
    .header-actions {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .search-toggle {
        background: none;
        border: none;
        color: var(--text);
        cursor: pointer;
        padding: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color var(--transition);
    }

    .search-toggle:hover {
        color: var(--primary);
    }

    /* Mobile Toggle Button */
    .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(--text);
        transition: var(--transition);
    }

    .toggle-line:nth-child(2) {
        width: 70%;
    }

    .mobile-toggle:hover .toggle-line {
        background-color: var(--primary);
    }

    .mobile-toggle:hover .toggle-line:nth-child(2) {
        width: 100%;
    }

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

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

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid rgba(205, 157, 0, 0.2);
    }

    .mobile-logo .logo-text {
        font-size: 1.1rem;
    }

    .close-menu {
        background: transparent;
        border: none;
        width: 30px;
        height: 30px;
        position: relative;
        cursor: pointer;
    }

    .close-line {
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--text);
        transition: background-color var(--transition);
    }

    .close-line:first-child {
        transform: rotate(45deg);
    }

    .close-line:last-child {
        transform: rotate(-45deg);
    }

    .close-menu:hover .close-line {
        background-color: var(--primary);
    }

    .mobile-nav {
        padding: 30px 20px;
        flex-grow: 1;
    }

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

    .mobile-nav-item {
        margin-bottom: 20px;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        transition-delay: calc(var(--i, 0) * 0.05s);
    }

    .mobile-menu.active .mobile-nav-item {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-nav-item a {
        display: block;
        padding: 12px 0;
        color: var(--text);
        text-decoration: none;
        font-family: 'Open Sans', sans-serif;
        font-size: 1.2rem;
        font-weight: 500;
        border-bottom: 1px solid rgba(205, 157, 0, 0.1);
        transition: color var(--transition), border-color var(--transition);
    }

    .mobile-nav-item a:hover,
    .mobile-nav-item.active a {
        color: var(--primary);
        border-color: var(--primary);
    }

    .mobile-footer {
        padding: 20px;
        border-top: 1px solid rgba(205, 157, 0, 0.2);
    }

    .mobile-search {
        display: flex;
        overflow: hidden;
        border: 1px solid rgba(205, 157, 0, 0.3);
        border-radius: var(--border-radius);
    }

    .mobile-search-input {
        flex: 1;
        padding: 12px 15px;
        background-color: rgba(255, 255, 255, 0.05);
        border: none;
        color: var(--text);
        font-family: 'Open Sans', sans-serif;
    }

    .mobile-search-input::placeholder {
        color: rgba(230, 230, 230, 0.5);
    }

    .mobile-search-btn {
        background-color: var(--primary);
        border: none;
        color: var(--dark);
        padding: 0 15px;
        cursor: pointer;
        transition: background-color var(--transition);
    }

    .mobile-search-btn:hover {
        background-color: var(--primary-dark);
    }

    /* Responsive Styles */
    @media (max-width: 1024px) {
        .nav-list {
            gap: 10px;
        }
        
        .nav-item a {
            padding: 8px 8px;
            font-size: 0.9rem;
        }
    }

    @media (max-width: 768px) {
        .header-container {
            grid-template-columns: auto auto;
        }
        
        .desktop-nav {
            display: none;
        }
        
        .mobile-toggle {
            display: flex;
        }
        
        .logo-text {
            font-size: 1.1rem;
        }
    }

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

    @media (max-width: 480px) {
        .header-container {
            padding: 0 15px;
            height: 70px;
        }
        
        .logo-text {
            font-size: 1rem;
        }
        
        .witcher-logo {
            width: 35px;
            height: 35px;
        }
    }

/* Footer styles */
/* Base Footer Styles */
    .footer-main {
        width: 100%;
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
        color: #e0e0e0;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        position: relative;
        overflow: hidden;
        border-top: 1px solid #444;
    }

    .footer-main::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #9b0303, #d17a05, #9b0303);
    }

    .footer-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 50px 20px 30px;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
        position: relative;
    }

    /* Section Styles */
    .footer-section {
        position: relative;
    }

    .footer-heading {
        color: #d17a05;
        font-size: 1.2rem;
        margin-bottom: 20px;
        font-weight: 600;
        position: relative;
        padding-bottom: 10px;
    }

    .footer-heading::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 2px;
        background-color: #9b0303;
    }

    /* Navigation Lists */
    .footer-nav-list,
    .footer-games-list,
    .footer-universe-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-nav-item,
    .footer-games-item,
    .footer-universe-item {
        margin-bottom: 10px;
    }

    .footer-link {
        color: #b8b8b8;
        text-decoration: none;
        transition: all 0.3s ease;
        position: relative;
        padding-left: 15px;
        font-size: 0.95rem;
        display: inline-block;
    }

    .footer-link::before {
        content: '›';
        position: absolute;
        left: 0;
        color: #9b0303;
        font-size: 1.2rem;
        line-height: 1;
        transition: transform 0.3s ease;
    }

    .footer-link:hover {
        color: #ffffff;
        transform: translateX(3px);
    }

    .footer-link:hover::before {
        transform: translateX(3px);
        color: #d17a05;
    }

    /* Social Media Section */
    .footer-social-icons {
        display: flex;
        gap: 15px;
        margin-top: 15px;
    }

    .footer-social-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #333;
        color: #e0e0e0;
        text-decoration: none;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .footer-social-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at center, rgba(209, 122, 5, 0.8) 0%, rgba(155, 3, 3, 0.8) 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 1;
    }

    .footer-social-link i {
        font-size: 1.2rem;
        position: relative;
        z-index: 2;
    }

    .footer-social-link:hover {
        transform: translateY(-5px);
    }

    .footer-social-link:hover::before {
        opacity: 1;
    }

    /* Newsletter Section */
    .footer-newsletter-text {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 15px;
        color: #b8b8b8;
    }

    .footer-newsletter-form {
        display: flex;
        margin-top: 15px;
    }

    .footer-newsletter-cta {
        display: inline-block;
        padding: 10px 20px;
        background-color: #9b0303;
        color: #fff;
        border-radius: 4px;
        font-weight: 600;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: center;
    }

    .footer-newsletter-cta:hover {
        background-color: #d17a05;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    /* Bottom Section */
    .footer-bottom {
        background-color: rgba(0, 0, 0, 0.3);
        padding: 20px 0;
        margin-top: 20px;
    }

    .footer-bottom-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .footer-legal {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }

    .footer-legal-link {
        color: #b8b8b8;
        text-decoration: none;
        font-size: 0.85rem;
        transition: color 0.3s ease;
        position: relative;
    }

    .footer-legal-link::after {
        content: '';
        position: absolute;
        bottom: -3px;
        left: 0;
        width: 0;
        height: 1px;
        background-color: #d17a05;
        transition: width 0.3s ease;
    }

    .footer-legal-link:hover {
        color: #ffffff;
    }

    .footer-legal-link:hover::after {
        width: 100%;
    }

    .footer-copyright {
        text-align: center;
        margin-top: 10px;
    }

    .footer-copyright-text {
        font-size: 0.85rem;
        color: #888;
        margin: 0;
    }

    .footer-disclaimer {
        font-size: 0.75rem;
        color: #666;
        margin: 5px 0 0;
    }

    /* Responsive Styles */
    @media (max-width: 768px) {
        .footer-container {
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 20px;
            padding: 40px 15px 20px;
        }

        .footer-section {
            margin-bottom: 20px;
        }

        .footer-legal {
            flex-direction: column;
            gap: 10px;
            align-items: center;
        }

        .footer-social-icons {
            justify-content: center;
        }

        .footer-newsletter-form {
            flex-direction: column;
        }

        .footer-newsletter-cta {
            width: 100%;
        }
    }

    @media (min-width: 769px) and (max-width: 1024px) {
        .footer-container {
            grid-template-columns: repeat(3, 1fr);
            gap: 25px;
        }

        .footer-newsletter {
            grid-column: span 3;
        }
    }

    @media (min-width: 1025px) {
        .footer-bottom-container {
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
        }

        .footer-copyright {
            text-align: right;
            margin-top: 0;
        }
    }

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

  .wiedzminski-container {
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 20px !important;
  }

  .wiedzminski-tekst {
    margin-bottom: 15px !important;
    font-size: 15px;
    line-height: 1.5;
  }

  .wiedzminski-tekst a {
    color: #cd5c5c;
    text-decoration: underline;
  }

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

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

  .przycisk-odrzuc {
    background-color: #4a4a4a !important;
    color: #ffffff;
  }

  .przycisk-akceptuj {
    background-color: #cd5c5c !important;
    color: #ffffff;
  }

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

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

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