@font-face {
    font-family: 'CustomFont';
    src: local('Arial'), local('Helvetica'), local('sans-serif');
    font-weight: normal;
    font-style: normal;
}

/* ================================================================
   GLOBAL VARIABLES
   To adapt this template for a different brand, change the values
   in the BRAND section below. Everything else inherits from them.
   ================================================================ */

:root {

    /* === BRAND COLORS (Polska: biel + czerwone akcenty) === */
    --primary: #C41E3A;
    --primary-hover: #A01830;
    --primary-rgb: 196, 30, 58;
    --accent: #9B1631;
    --accent-hover: #C41E3A;
    --accent-rgb: 155, 22, 49;
    --on-primary: #ffffff;

    /* === THEME: tło i powierzchnie (białe, czyste) === */
    --bg: #ffffff;
    --surface: #fafafa;
    --surface-muted: #f5f5f5;
    --header-bg: #ffffff;
    --footer-bg: #fafafa;

    /* === THEME: tekst === */
    --text: #1a1a1a;
    --text-muted: #4a4a4a;
    --text-soft: #737373;

    /* === THEME: borders & misc === */
    --border: rgba(0, 0, 0, 0.08);

    /* === LAYOUT === */
    --container-max: 1200px;
    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 10px;

    /* === TYPOGRAPHY === */
    --font-family: 'CustomFont', Arial, Helvetica, sans-serif;
    --line-height: 1.6;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg);
    color: var(--text);
    line-height: var(--line-height);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background-color: var(--header-bg);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible;
}

.header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
}

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

.logo-img {
    height: 45px;
    width: auto;
    display: block;
}

.desktop-nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.desktop-nav.site-nav {
    gap: 1.25rem;
    align-items: center;
}

.desktop-nav.site-nav a {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.35rem 0;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
}

.desktop-nav.site-nav a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

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

/* Desktop nav: active link */
.desktop-nav.site-nav a.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

/* Desktop nav: dropdown */
.desktop-nav .has-dropdown {
    position: relative;
}

.desktop-nav .has-dropdown > a,
.desktop-nav .has-dropdown > span {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.35rem 0;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease;
}

.desktop-nav .has-dropdown > a:hover,
.desktop-nav .has-dropdown > span:hover,
.desktop-nav .has-dropdown:hover > a,
.desktop-nav .has-dropdown:hover > span {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.desktop-nav .has-dropdown > a.active,
.desktop-nav .has-dropdown > span.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

.desktop-nav .has-dropdown > a::after,
.desktop-nav .has-dropdown > span::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transform-origin: center center;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.desktop-nav .has-dropdown:hover > a::after,
.desktop-nav .has-dropdown:hover > span::after {
    transform: rotate(-135deg);
}

.desktop-nav .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: var(--header-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    z-index: 1002;
    list-style: none;
}

.desktop-nav .has-dropdown:hover .submenu {
    display: block;
}

.desktop-nav .submenu a {
    display: block;
    padding: 0.35rem 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: none;
}

.desktop-nav .submenu a:hover {
    background-color: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
}

.desktop-nav .submenu a.active {
    color: var(--primary);
}

/* Mobile nav: dropdown всегда развёрнут, как обычные пункты */
.mobile-nav .mobile-dropdown {
    display: flex;
    flex-direction: column;
}

.mobile-nav .mobile-dropdown-toggle {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    text-align: left;
}

.mobile-nav .mobile-dropdown-toggle:hover,
.mobile-nav .mobile-dropdown-toggle.active {
    color: var(--primary);
}

.mobile-nav .mobile-dropdown-toggle::after {
    display: none;
}

.mobile-nav .mobile-submenu {
    display: block;
    padding: 0;
}

.mobile-nav .mobile-submenu a {
    display: block;
    padding: 0.5rem 0;
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: none;
}

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

.mobile-nav .mobile-submenu a.active {
    color: var(--primary);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    position: relative;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-muted);
    border-radius: 3px;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.hamburger span:nth-child(1) {
    top: 20%;
}

.hamburger span:nth-child(2) {
    top: 50%;
}

.hamburger span:nth-child(3) {
    top: 80%;
}

.hamburger.active span {
    opacity: 0;
}

.hamburger.active::before,
.hamburger.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--text-muted);
    border-radius: 3px;
    transform: translateY(-50%);
}

.hamburger.active::before {
    transform: translateY(-50%) rotate(45deg);
}

.hamburger.active::after {
    transform: translateY(-50%) rotate(-45deg);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background-color: var(--header-bg);
    border-top: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 1rem 2rem 1.5rem 2rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
}

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

.mobile-nav > a:not(.btn) {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.mobile-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    /*border-top: 1px solid rgba(255, 255, 255, 0.1);*/
    overflow: visible;
}

.mobile-buttons .btn {
    flex: 1;
    width: 50%;
    text-align: center;
    position: relative;
    overflow: visible;
}

.header-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn,
a.btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    margin: 0;
    box-sizing: border-box;
}

.btn-login,
a.btn.btn-login {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary) !important;
}

.btn-login:hover,
a.btn.btn-login:hover {
    background-color: rgba(var(--primary-rgb), 0.08);
    color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-register,
.content-buttons .btn-register {
    background-color: var(--primary);
    color: var(--on-primary);
    font-weight: bold;
}

.btn-register:hover {
    background-color: var(--primary-hover);
    color: var(--on-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

/* Breadcrumbs */
.breadcrumbs-wrap {
    background-color: var(--surface-muted);
    border-bottom: 1px solid var(--border);
    padding: 0.35rem 0;
}

.breadcrumbs-wrap + main {
    padding-top: 1.25rem;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.85rem;
}

.breadcrumbs__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.breadcrumbs__item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.breadcrumbs__sep {
    color: var(--text-muted);
    opacity: 0.6;
    user-select: none;
}

.breadcrumbs__current {
    color: var(--text);
    font-weight: 500;
}

/* Main Content */
main {
    flex: 1;
    width: 100%;
    padding: 3rem 0;
}

.main-container {
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
}

.content-section {
    background-color: var(--surface-muted);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
}

.content-section h1 {
    color: var(--text);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    font-weight: bold;
    position: relative;
    padding-bottom: 0.5rem;
}

.content-section h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background-color: var(--accent);
}

.content-section h2 {
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: bold;
    position: relative;
    padding-bottom: 0.5rem;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: var(--accent);
}

.content-section h3 {
    color: var(--text);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    font-weight: bold;
}

.content-section h4 {
    color: var(--text);
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.content-section p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.content-section a:not(.btn) {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-section a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.content-section img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    max-height: 500px;
    margin: 10px auto;
}

.pros-cons-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
}
.pros-cons-table th,
.pros-cons-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.pros-cons-table thead th {
    background-color: var(--surface-muted);
    font-weight: 600;
    color: var(--text);
}
.pros-cons-table tbody tr:last-child td {
    border-bottom: none;
}
.pros-cons-table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Content Toggle Button */
.content-toggle-btn {
    display: block;
    margin: 1.5rem auto;
    padding: 0.6rem 1.5rem;
    background-color: var(--primary);
    color: var(--on-primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.content-toggle-btn:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--on-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.4);
}

.content-toggle-btn.active {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--on-primary);
}

/* Table of Contents */
.table-of-contents {
    display: none;
    margin: 1rem 0;
    padding: 1rem;
    background-color: var(--surface-muted);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.table-of-contents.active {
    display: block;
}

.table-of-contents .toc-title {
    color: var(--text);
    margin-bottom: 0.7rem;
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 0;
}

.toc-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.05rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-num;
}

.toc-list li {
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
    list-style-type: none;
    list-style-position: outside;
    counter-increment: toc-num;
}

.toc-list li::before {
    content: counter(toc-num) ". ";
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-right: 0.25rem;
}

.toc-list li::marker {
    display: none;
    content: '';
}

.toc-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: inline-block;
    word-wrap: break-word;
    line-height: 1.4;
}

.toc-list a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

.content-section ul,
.content-section ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.content-section ul li,
.content-section ol li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.content-section ul li {
    list-style-type: disc;
}

.content-section ul li::marker {
    color: var(--primary);
}

.content-section ol li {
    list-style-type: decimal;
}

/* Reviews Container */
.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.review-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: background-color 0.3s ease;
}

.review-card:hover {
    background-color: rgba(var(--primary-rgb), 0.06);
    border-color: rgba(var(--primary-rgb), 0.25);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.review-author {
    color: var(--text);
    font-weight: bold;
    font-size: 1rem;
}

.review-date {
    color: var(--text-soft);
    font-size: 0.85rem;
}

.review-text {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* FAQ Accordion */
.faq-container {
    margin: 2rem 0;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--surface-muted);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.faq-question {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background-color: var(--surface);
    border: none;
    text-align: left;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.faq-question.active {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--text);
}

.faq-question .faq-question-text,
.faq-question h3 {
    flex: 1;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: inherit;
    text-align: left;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary-hover);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-answer.active {
    max-height: 1000px;
    padding: 1.5rem;
}

.faq-answer p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
}

/* Author block (внутри main, перед закрытием) */
.author-block-section {
    margin-top: 2rem;
}

.author-block {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.author-block__photo {
    flex-shrink: 0;
}

.author-block__photo img {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.author-block__body {
    flex: 1;
    min-width: 0;
}

.author-block__name {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
}

.author-block__name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.author-block__name a:hover {
    color: var(--primary);
}

.author-block__bio {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.author-block__bio p {
    margin: 0 0 0.5rem;
}

.author-block__bio p:last-child {
    margin-bottom: 0;
}

.content-section--author-bio {
    margin-top: 1.5rem;
}

/* 404 */
.content-section--404 {
    text-align: center;
    padding: 3rem 2rem;
}
.error-404-heading {
    font-size: 4rem;
    margin: 0 0 0.5rem;
    color: var(--primary);
    line-height: 1;
}
.error-404-title {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    color: var(--text);
}
.error-404-title::after {
    display: none;
}
.error-404-message {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}
.content-section--404 .btn {
    margin-top: 0.5rem;
}

.content-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
    flex-direction: row;
}

.content-buttons .btn {
    padding: 0.75rem 1.8rem;
    background-color: var(--primary);
    color: var(--on-primary);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: bold !important;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
    box-sizing: border-box;
}

.content-buttons .btn-login {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.content-buttons .btn-login:hover {
    background-color: rgba(var(--primary-rgb), 0.08);
    color: var(--primary-hover);
    border-color: var(--primary-hover);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.content-buttons .btn-register:hover {
    background-color: var(--primary-hover);
    color: var(--on-primary);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

/* Table Styles */
.table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--surface-muted);
    border-radius: var(--radius-md);
    overflow: hidden;
    min-width: 600px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
}

table thead tr {
    background-color: var(--primary);
    color: var(--on-primary);
    font-weight: bold;
}

table tbody tr {
    background-color: var(--surface-muted);
}

table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

table tbody tr:hover {
    background-color: rgba(var(--primary-rgb), 0.06);
}

table td,
table th {
    padding: 0.6rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

table thead td,
table thead th {
    padding: 0.7rem 0.6rem;
    font-size: 1.1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.35);
    font-weight: bold;
    color: var(--on-primary) !important;
}

table tr:last-child td,
table tr:last-child th {
    border-bottom: none;
}

table td p,
table th p {
    margin: 0 0 0.25rem;
}

table td p:last-child,
table th p:last-child {
    margin-bottom: 0;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    padding: 2rem;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid var(--border);
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

footer p {
    color: var(--text-soft);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--header-bg);
    border-top: 2px solid var(--primary);
    padding: 1.2rem 2rem;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-notice.show {
    transform: translateY(0);
}

.cookie-notice-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    flex: 1;
    min-width: 250px;
}

.cookie-accept-btn {
    padding: 0.7rem 2rem;
    background-color: var(--primary);
    color: var(--on-primary);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.cookie-accept-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

/* ================================================================
   CASINO REVIEW CARD (Stake, 1Win, etc.)
   ================================================================ */
.casino-review-card {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.casino-review-card__top {
    padding: 1.75rem 2rem;
    border-bottom: 1px solid var(--border);
}

.casino-review-card__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.casino-review-card__total {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0 0;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border);
}

.casino-review-card__total-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.casino-review-card__total-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.casino-review-card__total .casino-review-card__score-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.casino-review-card__total .casino-review-card__stars {
    color: var(--primary);
    font-size: 1.1rem;
    letter-spacing: 0.08em;
}

.casino-review-card__criteria {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.casino-review-card__criteria:nth-child(odd) {
    padding-right: 1.5rem;
    border-right: 1px solid var(--border);
}

.casino-review-card__criteria:nth-child(even) {
    padding-left: 1.5rem;
}

.casino-review-card__criteria:nth-last-child(-n+2) {
    border-bottom: none;
}

.casino-review-card__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.casino-review-card__icon svg {
    width: 100%;
    height: 100%;
}

.casino-review-card__label {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.casino-review-card__val {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    min-width: 2rem;
    text-align: right;
}

.casino-review-card__stars-sm {
    color: var(--primary);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.casino-review-card__middle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(0, 0, 0, 0.03);
}

.casino-review-card__expert {
    padding: 1.5rem 2rem;
    text-align: left;
}

.casino-review-card__pros-cons {
    padding: 1.5rem 2rem;
    border-left: 1px solid var(--border);
    text-align: left;
}

.casino-review-card__heading {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.casino-review-card__expert p {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text);
}

.casino-review-card__author {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-left: 0;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.casino-review-card__author img {
    margin: 0;
}

.casino-review-card__author-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.casino-review-card__author-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.casino-review-card__author-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
}

.casino-review-card__author-role {
    font-size: 0.8rem;
    color: var(--text-soft);
}

.casino-review-card .casino-review-card__pros,
.casino-review-card .casino-review-card__cons {
    list-style: none;
    list-style-type: none;
    padding: 0 !important;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text);
}

.casino-review-card__pros li,
.casino-review-card__cons li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.casino-review-card__pros li:last-child,
.casino-review-card__cons li:last-child {
    margin-bottom: 0;
}

.casino-review-card__pros li::before {
    content: '';
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C41E3A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.casino-review-card__cons li::before {
    content: '';
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='15' y1='9' x2='9' y2='15'/%3E%3Cline x1='9' y1='9' x2='15' y2='15'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

@media (max-width: 768px) {
    .casino-review-card__top {
        padding: 1.25rem 1.5rem;
    }

    .casino-review-card__grid {
        grid-template-columns: 1fr;
    }

    .casino-review-card__criteria:nth-child(odd) {
        padding-right: 0;
        border-right: none;
    }

    .casino-review-card__criteria:nth-child(even) {
        padding-left: 0;
    }

    .casino-review-card__criteria {
        border-bottom: 1px solid var(--border);
    }

    .casino-review-card__criteria:last-child {
        border-bottom: none;
    }

    .casino-review-card__middle {
        grid-template-columns: 1fr;
    }

    .casino-review-card__expert,
    .casino-review-card__pros-cons {
        padding: 1.25rem 1.5rem;
    }

    .casino-review-card__pros-cons {
        border-left: none;
        border-top: 1px solid var(--border);
    }
}

/* Responsive Design */
@media (max-width: 1055px) {
    header {
        padding: 1rem;
    }

    .header-container {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .logo {
        margin-bottom: 0;
    }

    .logo-img {
        height: 45px;
    }

    .hamburger {
        display: flex;
    }

    .desktop-nav,
    .desktop-buttons {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }

    main {
        padding: 2rem 0;
    }

    .main-container {
        padding: 0 1rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .content-section h1 {
        font-size: 2rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .content-section h3 {
        font-size: 1.2rem;
    }

    .content-section h4 {
        font-size: 1.1rem;
    }

    .content-section p,
    .content-section ul li,
    .content-section ol li {
        font-size: 1rem;
    }

    .content-buttons {
        flex-direction: row;
        gap: 1rem;
        margin: 2rem 0;
        width: 100%;
    }

    .toc-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.05rem 0.8rem;
    }

    .reviews-container {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .review-card {
        padding: 1.2rem;
    }

    .faq-question {
        padding: 1rem 1.2rem;
        font-size: 1rem;
    }

    .faq-answer.active {
        padding: 1.2rem;
    }

    .table-wrapper {
        margin: 1.5rem 0;
        padding: 0;
    }

    table {
        font-size: 0.9rem;
    }

    table td {
        padding: 0.5rem 0.4rem;
    }

    table thead td {
        padding: 0.6rem 0.4rem;
        font-size: 1rem;
    }

    .cookie-notice {
        padding: 1rem 1.5rem;
    }

    .cookie-notice-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cookie-accept-btn {
        width: 100%;
        padding: 0.8rem 2rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.8rem;
    }

    .logo-img {
        height: 30px;
    }

    .mobile-nav {
        padding: 0.8rem 1rem 1.2rem 1rem;
        gap: 0.4rem;
    }

    .mobile-nav a {
        font-size: 1rem;
        padding: 0.4rem 0;
    }

    .mobile-buttons {
        gap: 0.8rem;
        padding-bottom: 1rem;
    }

    .mobile-buttons .btn {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .author-block-section {
        margin-top: 1rem;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .author-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-block__photo {
        margin-top: 0;
        margin-bottom: 0;
    }

    .author-block__photo img {
        width: 100px;
        height: 100px;
    }

    main {
        padding: 1.5rem 0;
    }

    .main-container {
        padding: 0 1rem;
    }

    .content-section {
        padding: 1.2rem;
    }

    .content-section h1 {
        font-size: 1.5rem;
    }

    .content-section h2 {
        font-size: 1.3rem;
    }

    .content-section h3 {
        font-size: 1.1rem;
    }

    .content-section h4 {
        font-size: 0.95rem;
    }

    .content-section p,
    .content-section ul li,
    .content-section ol li {
        font-size: 0.95rem;
    }

    .content-buttons {
        flex-direction: row;
        gap: 0.8rem;
        margin: 1.5rem 0;
        width: 100%;
    }

    .toc-list {
        grid-template-columns: 1fr;
        gap: 0.05rem;
    }

    .table-of-contents {
        padding: 0.8rem;
        margin: 0.8rem 0;
    }

    .table-of-contents .toc-title {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }

    .toc-list {
        gap: 0.05rem 0.6rem;
    }

    .toc-list a {
        font-size: 0.9rem;
    }

    .reviews-container {
        gap: 1rem;
    }

    .review-card {
        padding: 1rem;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .review-author {
        font-size: 0.95rem;
    }

    .review-date {
        font-size: 0.8rem;
    }

    .review-text {
        font-size: 0.9rem;
    }

    .faq-question {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }

    .faq-answer.active {
        padding: 1rem;
    }

    .faq-answer p {
        font-size: 0.9rem;
    }

    .table-wrapper {
        margin: 1.5rem 0;
        padding: 0;
    }

    table {
        font-size: 0.85rem;
        min-width: 500px;
    }

    table td {
        padding: 0.5rem 0.4rem;
    }

    table thead td {
        padding: 0.6rem 0.4rem;
        font-size: 0.95rem;
    }

    .cookie-notice {
        padding: 1rem;
    }

    .cookie-notice-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .cookie-text {
        font-size: 0.85rem;
        min-width: auto;
    }

    .cookie-accept-btn {
        width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}

