/* Reset i zmienne */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1db8d4;
    --accent: #ff8c42;
    --secondary: #8b4789;
    --yellow: #d4af37;
    --red: #c41e3a;
    --dark: #3d2817;
    --light: #faf8f3;
    --font-display: 'Playfair Display', serif;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
}

.accent {
    color: var(--primary);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Nawigacja */
nav {
    background: rgba(250, 248, 243, 0.95);
    border-bottom: 4px solid var(--primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s;
}

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

.logo-subtitle {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 2px;
}

.nav-links {
    display: none;
    list-style: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
}

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

.nav-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .nav-social {
        gap: 0.8rem;
        padding-left: 1.25rem;
        margin-left: 0.25rem;
        border-left: 1px solid #ddd;
    }
}

.nav-social-link {
    display: flex;
    align-items: center;
    color: var(--dark);
    opacity: 0.6;
    transition: opacity 0.3s, color 0.3s;
}

.nav-social-link:hover {
    color: var(--primary);
    opacity: 1;
}

.nav-links.open .nav-social {
    justify-content: flex-start;
    padding: 0.875rem 2rem;
    border-left: 3px solid transparent;
}

.nav-links.open .nav-social-link {
    display: flex;
    padding: 0.375rem;
    border-left: none;
}

.nav-links.open .nav-social-link:hover {
    background: transparent;
    border-left-color: transparent;
}

.nav-links a.active {
    color: var(--accent);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--dark);
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (min-width: 768px) {
    .hamburger {
        display: none;
    }
}

.nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: rgba(250, 248, 243, 0.98);
    border-bottom: 4px solid var(--primary);
    padding: 0.5rem 0;
    gap: 0;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-links.open li {
    width: 100%;
}

.nav-links.open a {
    display: block;
    padding: 0.875rem 2rem;
    border-left: 3px solid transparent;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.nav-links.open a:hover {
    background: rgba(29, 184, 212, 0.08);
    border-left-color: var(--primary);
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 60px 0;
    background: linear-gradient(135deg, #faf8f3 0%, #f5f0e8 100%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: white;
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
    z-index: 1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 0;
}

@media (min-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-text h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .hero-text h1 {
        font-size: 4.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-text h1 {
        font-size: 5rem;
    }
}

.hero-text h1 .accent {
    color: var(--accent);
}

.hero-text p {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(29, 184, 212, 0.3);
}

.btn-primary:hover {
    background: #1a9fb8;
    box-shadow: 0 6px 20px rgba(29, 184, 212, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: white;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 1rem;
    border: 8px solid var(--primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Dishes Section */
.dishes {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.section-title h2 .accent {
    color: var(--primary);
}

.section-title p {
    font-size: 1.125rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.dishes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .dishes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.dish-card {
    background: white;
    border: 4px solid #ddd;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s;
}

.dish-card[data-url] {
    cursor: pointer;
}

.dish-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.dish-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.dish-card-content {
    padding: 1.5rem;
}

.dish-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.dish-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Pattern Divider */
.pattern-divider {
    height: 60px;
    background: repeating-linear-gradient(
        90deg,
        var(--primary) 0px,
        var(--primary) 20px,
        var(--accent) 20px,
        var(--accent) 40px,
        var(--yellow) 40px,
        var(--yellow) 60px,
        var(--red) 60px,
        var(--red) 80px
    );
}

/* About Section */
.about {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, #1a9fb8 100%);
    color: white;
}

.about .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about .container {
        grid-template-columns: 1fr 1fr;
    }
}

.about h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    opacity: 0.95;
}

.about img {
    width: 100%;
    border-radius: 1rem;
    border: 8px solid white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Process Section */
.process-section {
    padding: 80px 0;
    background: var(--light);
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.process-step {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
}

.process-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.15;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
}

.process-image {
    width: 100%;
    height: 180px;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.process-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.process-step h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.process-step p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #666;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0 1rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: repeating-linear-gradient(
        90deg,
        var(--primary) 0px,
        var(--primary) 20px,
        var(--accent) 20px,
        var(--accent) 40px,
        var(--yellow) 40px,
        var(--yellow) 60px,
        var(--red) 60px,
        var(--red) 80px
    );
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

footer h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--yellow);
}

footer p {
    opacity: 0.8;
    line-height: 1.8;
}

footer a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.6;
    font-size: 0.875rem;
}

/* Animacje */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .about h2 {
        font-size: 1.75rem;
    }
}

/* Page Content */
.page-content {
    padding: 60px 0;
    background: white;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 280px 1fr;
        gap: 3rem;
    }
}

.content-wrapper--full {
    grid-template-columns: 1fr !important;
}

/* Sidebar */
.sidebar {
    order: 2;
}

@media (min-width: 1024px) {
    .sidebar {
        order: 1;
    }
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: var(--dark);
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary);
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    background: rgba(29, 184, 212, 0.05);
    margin-bottom: 0.25rem;
}

.sidebar-menu a:hover {
    background: rgba(29, 184, 212, 0.15);
    color: var(--primary);
    border-left-color: var(--primary);
    padding-left: 1.5rem;
}

.sidebar-menu a.active {
    background: rgba(255, 140, 66, 0.15);
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 600;
    padding-left: 1.5rem;
}

/* articles.html */
.main-content {
    order: 1;
}

@media (min-width: 1024px) {
    .main-content {
        order: 2;
    }
}

.article-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--dark);
    line-height: 1.2;
}

.article-meta {
    font-size: 0.875rem;
    color: #999;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0d5ca;
}

.article-content,
.contact-info {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #555;
}

.article-content p,
.contact-info p {
    margin-bottom: 1.5rem;
}

.article-content h1,
.contact-info h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 0 1rem;
    color: var(--dark);
    line-height: 1.2;
}

.article-content h2,
.contact-info h2 {
    font-family: var(--font-display);
    font-size: 1.875rem;
    font-weight: 900;
    margin: 2.25rem 0 0.75rem;
    color: var(--dark);
    line-height: 1.25;
}

.article-content h3,
.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--dark);
}

.article-content hr,
.contact-info hr {
    border: none;
    height: 3px;
    background: linear-gradient(to right, var(--primary), transparent);
    margin: 2.5rem 0;
    border-radius: 2px;
}

.article-content ul,
.contact-info ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.article-content li,
.contact-info li {
    margin-bottom: 0.75rem;
}

/** menu.html **/

.menu-visual-page {
    padding: 60px 0;
    background: var(--light);
}

.menu-visual-header {
    text-align: center;
    margin-bottom: 4rem;
}

.menu-visual-header h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--dark);
    line-height: 1.2;
}

.menu-visual-header p {
    font-size: 1.125rem;
    color: #666;
}

/* Menu Visual Category */
.menu-visual-category {
    margin-bottom: 5rem;
}

.visual-category-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 2.5rem;
    color: var(--dark);
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary);
}

/* Menu Grid - Pizza Hut Style */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

/* Menu Grid Item */
.menu-grid-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Menu Grid Image */
.menu-grid-image {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: #f0f0f0;
}

.menu-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Menu Grid Overlay */
.menu-grid-overlay {
    display: none;
}

/* Menu Grid Button */
.menu-grid-btn {
    display: none;
}

/* Menu Grid Content */
.menu-grid-content {
    padding: 1.25rem;
}

.menu-grid-content h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
    line-height: 1.3;
}

.menu-grid-desc {
    font-size: 0.875rem;
    color: #999;
    margin-bottom: 0.75rem;
}

.menu-grid-price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent);
}

/* Contact Page */
.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

@media (min-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}



.contact-info a,
.article-content a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover,
.article-content a:hover {
    color: var(--accent);
}

.contact-map {
    width: 100%;
    min-height: 450px;
}

.contact-map iframe {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ===== Cookie banner (components/CookieConsent.html.twig) ===== */
.hyh-cc {
    --cc-primary: var(--primary);
    --cc-text: var(--dark);
    --cc-bg: #ffffff;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: var(--cc-bg);
    color: var(--cc-text);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.5;
}

.hyh-cc[hidden],
.hyh-cc__layer[hidden] {
    display: none !important;
}

.hyh-cc-footer-link {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.hyh-cc__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    max-height: 80vh;
    overflow-y: auto;
}

.hyh-cc__title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

.hyh-cc__text {
    margin: 0 0 1rem;
}

.hyh-cc__text a,
.hyh-cc__item-text p a {
    color: var(--cc-primary);
}

.hyh-cc__actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.hyh-cc__btn {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid var(--cc-primary);
    transition: background 0.2s, color 0.2s;
}

.hyh-cc__btn--primary {
    background: var(--cc-primary);
    color: #fff;
    margin-left: auto;
}

.hyh-cc__btn--primary:hover {
    filter: brightness(0.92);
}

.hyh-cc__btn--ghost {
    background: #fff;
    color: var(--cc-primary);
}

.hyh-cc__btn--ghost:hover {
    background: var(--cc-primary);
    color: #fff;
}

.hyh-cc__btn:focus-visible,
.hyh-cc__switch input:focus-visible + span {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.hyh-cc__list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.hyh-cc__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid #e6e1d8;
}

.hyh-cc__item-text p {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    opacity: 0.85;
}

.hyh-cc__switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}

.hyh-cc__switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.hyh-cc__switch span {
    position: absolute;
    inset: 0;
    background: #c9c4bb;
    border-radius: 26px;
    transition: background 0.2s;
    cursor: pointer;
}

.hyh-cc__switch span::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.hyh-cc__switch input:checked + span {
    background: var(--cc-primary);
}

.hyh-cc__switch input:checked + span::before {
    transform: translateX(20px);
}

.hyh-cc__switch input:disabled + span {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .hyh-cc__inner {
        padding: 1rem;
    }

    .hyh-cc__actions {
        flex-direction: column-reverse;
    }

    .hyh-cc__btn,
    .hyh-cc__btn--primary {
        width: 100%;
        margin-left: 0;
    }
}
/* FAQ page template (templates/page/faq.html.twig, templates/components/FaqTabs.html.twig) */

.faq-page .faq-header {
    margin-bottom: 2rem;
}

.faq-intro {
    margin-top: 0.75rem;
}

.faq-main {
    max-width: 860px;
}

/* Zakładki grup */
.faq-tablist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    border-bottom: 2px solid rgba(61, 40, 23, 0.12);
    margin-bottom: 1.75rem;
}

.faq-tab {
    position: relative;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--dark);
    background: none;
    border: 0;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: color 0.2s, background-color 0.2s;
}

.faq-tab:hover {
    color: var(--primary);
    background-color: rgba(29, 184, 212, 0.08);
}

.faq-tab.is-active {
    color: var(--primary);
}

.faq-tab.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 4px;
    border-radius: 4px 4px 0 0;
    background: var(--primary);
}

.faq-tab:focus-visible,
.faq-panel:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Bez JS zakładki są ukryte, a wszystkie grupy widoczne pod sobą */
.faq-tabs:not(.is-enhanced) .faq-tablist {
    display: none;
}

.faq-group-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--dark);
    margin: 2rem 0 1rem;
}

.faq-tabs.is-enhanced .faq-group-title {
    display: none;
}

.faq-tabs.is-enhanced .faq-panel:not(.is-active) {
    display: none;
}

/* Pytania i odpowiedzi (natywne <details>) */
.faq-item {
    background: #fff;
    border: 1px solid rgba(61, 40, 23, 0.12);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item:hover {
    border-color: rgba(29, 184, 212, 0.5);
}

.faq-item[open] {
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(29, 184, 212, 0.12);
}

.faq-question {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 3.5rem 1.1rem 1.25rem;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--dark);
    border-radius: 12px;
}

.faq-question::-webkit-details-marker {
    display: none;
}

/* Chevron: w dół zwinięte, w górę otwarte */
.faq-question::after {
    content: '';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    width: 0.55rem;
    height: 0.55rem;
    margin-top: -0.4rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}

.faq-item[open] > .faq-question::after {
    margin-top: -0.1rem;
    transform: rotate(-135deg);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: -3px;
}

.faq-answer {
    padding: 0 1.25rem 1.25rem;
    line-height: 1.7;
    animation: faq-reveal 0.25s ease;
}

.faq-answer p + p,
.faq-answer p + ul,
.faq-answer ul + p {
    margin-top: 0.75rem;
}

.faq-answer ul {
    padding-left: 1.25rem;
    list-style: disc;
}

.faq-empty {
    color: var(--dark);
    opacity: 0.8;
}

@keyframes faq-reveal {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-answer,
    .faq-item,
    .faq-question::after {
        animation: none;
        transition: none;
    }
}

@media (max-width: 600px) {
    .faq-tab {
        flex: 1 1 auto;
        text-align: center;
        padding: 0.65rem 0.75rem;
        font-size: 0.95rem;
    }
}
