
/* ====================================================
   EQUADOR — style.css
   Mobile-first, iOS Safari compatible
   ==================================================== */

/* =================== CSS VARIABLES =================== */
:root {
    --bg-primary: #050607;
    --bg-secondary: #0b0d10;
    --bg-card: #111418;
    --bg-card-hover: #181c22;
    --orange: #ff6a00;
    --orange-light: #ff9f1c;
    --orange-dark: #cc5500;
    --text-primary: #f3f5f7;
    --text-secondary: #9ca6b1;
    --text-muted: #5a6370;
    --border-color: #1e2328;
    --max-width: 1200px;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
}

/* =================== RESET / BASE =================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: 'Barlow', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    letter-spacing: 0.02em;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =================== CONTAINER =================== */
.container {
    width: min(var(--max-width), 92vw);
    margin: 0 auto;
}

/* =================== HEADER / NAV =================== */
.header {
    position: sticky;
    top: 0;
    /* iOS Safari: stick below status bar */
    top: env(safe-area-inset-top, 0);
    z-index: 1000;
    background: #050607;
    border-bottom: 1px solid var(--border-color);
}

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

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

.logo img {
    height: 60px;
    width: auto;
    mix-blend-mode: lighten;
}

.logo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 0.08em;
    color: var(--text-primary);
}

.logo-text span {
    color: var(--orange);
}

/* Desktop nav — hidden on mobile */
.nav {
    display: none;
}

.nav a {
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
    white-space: nowrap;
    position: relative;
}

.nav a.active {
    color: var(--orange);
    background: rgba(255, 106, 0, 0.12);
}

.nav a::before {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav a.active::before {
    width: 20px;
}

@media (hover: hover) {
    .nav a:hover {
        color: var(--orange);
        background: rgba(255, 106, 0, 0.12);
    }

    .nav a:hover::before {
        width: 20px;
    }
}

/* Hamburger button */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    background: none;
    border: none;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.hamburger span {
    width: 26px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition);
    border-radius: 2px;
    pointer-events: none;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Desktop: show nav, hide hamburger */
@media (min-width: 768px) {
    .nav {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .hamburger {
        display: none;
    }

    .header .container {
        height: 130px;
    }

    .logo img {
        height: 110px;
    }
}

/* =================== MOBILE NAV OVERLAY =================== */
.nav-overlay {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    background: rgba(5, 6, 7, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    /* Safe area: avoid notch and home indicator */
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-overlay.active {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
}

.nav-overlay a {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.06em;
    padding: 12px 30px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: color var(--transition);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 106, 0, 0.2);
}

.nav-overlay a.active {
    color: var(--orange);
}

@media (hover: hover) {
    .nav-overlay a:hover {
        color: var(--orange);
    }
}

/* Nav link animation — only on desktop (where overlay would be unusual) */
@media (prefers-reduced-motion: no-preference) {
    .nav-overlay a {
        opacity: 0;
        transform: translateY(16px);
    }

    .nav-overlay.active a {
        animation: navSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .nav-overlay.active a:nth-child(1) { animation-delay: 0.04s; }
    .nav-overlay.active a:nth-child(2) { animation-delay: 0.08s; }
    .nav-overlay.active a:nth-child(3) { animation-delay: 0.12s; }
    .nav-overlay.active a:nth-child(4) { animation-delay: 0.16s; }
    .nav-overlay.active a:nth-child(5) { animation-delay: 0.20s; }
    .nav-overlay.active a:nth-child(6) { animation-delay: 0.24s; }
    .nav-overlay.active a:nth-child(7) { animation-delay: 0.28s; }
}

@keyframes navSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================== HERO =================== */
.hero {
    position: relative;
    min-height: 100vh;
    /* Modern browsers: dynamic viewport height (avoids iOS browser chrome) */
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(ellipse at 70% 50%, rgba(255, 106, 0, 0.15) 0%, transparent 60%),
                var(--bg-primary);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    opacity: 0.45;
}

@media (max-width: 767px) {
    .hero {
        min-height: calc(100vw * 0.667);
    }

    .hero-bg img {
        object-fit: contain;
        object-position: center 30%;
    }

}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(5, 6, 7, 0.95) 0%,
        rgba(5, 6, 7, 0.6) 50%,
        rgba(5, 6, 7, 0.2) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
    padding: 40px 0;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 106, 0, 0.15);
    border: 1px solid rgba(255, 106, 0, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--orange);
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.4rem, 8vw, 5rem);
    line-height: 1.05;
    margin-bottom: 16px;
    letter-spacing: 0.03em;
}

.hero h1 span {
    color: var(--orange);
}

.hero p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    max-width: 480px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .hero {
        min-height: 85vh;
        min-height: 85dvh;
    }


    .hero-content {
        padding: 0;
    }

    .hero h1 {
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 1.15rem;
        margin-bottom: 36px;
    }

    .hero-buttons {
        gap: 16px;
    }
}


/* Hero entrance animations — tylko na desktopie z myszą.
   Na iOS/Android (pointer: coarse) nie używamy animacji z delay + fill-mode: both
   bo iOS Safari nie aktualizuje obszarów dotyku (hit areas) do pierwszego scrolla. */
@media (prefers-reduced-motion: no-preference) and (pointer: fine) {
    .hero-content .hero-badge {
        animation: heroFadeUp 0.7s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .hero-content h1 {
        animation: heroFadeUp 0.7s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .hero-content p {
        animation: heroFadeUp 0.7s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .hero-content .hero-buttons {
        animation: heroFadeUp 0.7s 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
    }
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================== BUTTONS =================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    padding: 14px 28px;
    background: var(--orange);
    color: #fff;
    font-family: 'Barlow', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    /* Minimum touch target */
    min-height: 48px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--orange);
    color: var(--orange);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
    min-height: 40px;
}

@media (hover: hover) {
    .btn:hover {
        background: var(--orange-light);
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(255, 106, 0, 0.35);
    }

    .btn-outline:hover {
        background: var(--orange);
        color: #fff;
    }
}

/* Button ripple effect */
.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .btn .ripple {
        animation: ripple 0.6s linear;
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* =================== SECTION =================== */
.section {
    padding: 48px 0;
}

@media (min-width: 768px) {
    .section {
        padding: 80px 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .section-header {
        margin-bottom: 56px;
    }
}

.section-header h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.section-header h2 span {
    color: var(--orange);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* =================== GLOW LINE =================== */
.glow-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--orange-light));
    margin: 0 auto 20px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
    .glow-line::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
        animation: glowSlide 2s ease-in-out infinite;
    }
}

@keyframes glowSlide {
    0%   { left: -100%; }
    100% { left: 200%; }
}

/* =================== PRODUCT GRID =================== */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 420px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 24px;
    }
}

/* =================== PRODUCT CARD =================== */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    cursor: pointer;
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    flex-direction: column;
}

@media (prefers-reduced-motion: no-preference) {
    @keyframes productCardIn {
        from { transform: translateY(20px); }
        to   { transform: translateY(0); }
    }

    .product-card-anim {
        animation: productCardIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    }
}

.product-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--orange), transparent, var(--orange-light));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

@media (hover: hover) {
    .product-card:hover {
        transform: translateY(-6px);
        border-color: rgba(255, 106, 0, 0.3);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 106, 0, 0.1);
        background: var(--bg-card-hover);
    }

    .product-card:hover::before {
        opacity: 0.15;
    }
}

.product-card-img {
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: var(--bg-secondary);
    position: relative;
}

@media (min-width: 768px) {
    .product-card-img {
        height: 220px;
    }
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

@media (hover: hover) {
    .product-card:hover .product-card-img img {
        transform: scale(1.08);
    }
}

.badge-empty {
    visibility: hidden;
}

.product-badge {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 8px;
    margin-left: 4px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (prefers-reduced-motion: no-preference) {
    .product-badge {
        animation: badgePulse 2s ease-in-out infinite;
    }
}

.badge-promo {
    background: #e53e3e;
    color: #fff;
    animation-name: badgePulseRed;
}

.badge-new {
    background: var(--orange);
    color: #fff;
}

.badge-homologacja {
    background: #38a169;
    color: #fff;
    animation-name: badgePulseGreen;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.4); }
    50%       { box-shadow: 0 0 0 5px rgba(255, 106, 0, 0); }
}

@keyframes badgePulseRed {
    0%, 100% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.4); }
    50%       { box-shadow: 0 0 0 5px rgba(229, 62, 62, 0); }
}

@keyframes badgePulseGreen {
    0%, 100% { box-shadow: 0 0 0 0 rgba(56, 161, 105, 0.4); }
    50%       { box-shadow: 0 0 0 5px rgba(56, 161, 105, 0); }
}

.product-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

@media (min-width: 768px) {
    .product-card-body {
        padding: 20px;
    }
}

.product-card-body h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

.product-card-body .specs {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.product-price .current {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--orange);
    transition: transform 0.3s ease;
}

.product-price .old {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

@media (hover: hover) {
    .product-card:hover .product-price .current {
        transform: scale(1.08);
    }
}

.product-card-btn {
    align-self: center;
    margin-top: 14px;
    font-size: 0.72rem;
    padding: 6px 16px;
    min-height: 28px;
}

/* =================== PRODUCT DETAIL =================== */
.product-detail {
    padding: 24px 0 60px;
}

@media (min-width: 768px) {
    .product-detail {
        padding: 40px 0 80px;
    }
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
        align-items: start;
    }
}

.product-gallery {
    position: static;
}

@media (min-width: 768px) {
    .product-gallery {
        position: sticky;
        top: 100px;
    }
}

.product-gallery-main {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.product-gallery-main img.changing {
    opacity: 0;
    transform: scale(0.96);
}

.product-gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    /* Smooth scrolling on iOS */
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar visually but keep functionality */
    scrollbar-width: none;
}

.product-gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.product-gallery-thumbs img {
    width: 72px;
    height: 54px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.6;
    transition: all var(--transition);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
    .product-gallery-thumbs img {
        width: 80px;
        height: 60px;
    }
}

.product-gallery-thumbs img.active {
    border-color: var(--orange);
    opacity: 1;
}

@media (hover: hover) {
    .product-gallery-thumbs img:hover {
        border-color: var(--orange);
        opacity: 1;
    }
}

.product-info h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.03em;
    margin-bottom: 14px;
}

@media (min-width: 768px) {
    .product-info h1 {
        font-size: 2.4rem;
        margin-bottom: 16px;
    }
}

.product-info .price-block {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .product-info .price-block {
        margin-bottom: 28px;
        padding-bottom: 28px;
    }
}

.price-block .current-price {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--orange);
}

@media (min-width: 768px) {
    .price-block .current-price {
        font-size: 2rem;
    }
}

.price-block .old-price {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-info .description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 28px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 28px;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-color);
}

.specs-table td {
    padding: 11px 0;
    font-size: 0.88rem;
}

.specs-table td:first-child {
    color: var(--text-secondary);
    width: 45%;
    font-weight: 500;
}

.specs-table td:last-child {
    color: var(--text-primary);
    font-weight: 600;
}

.equipment-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 28px;
}

@media (min-width: 640px) {
    .equipment-list {
        grid-template-columns: 1fr 1fr;
    }
}

.equipment-list li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding-left: 22px;
    position: relative;
}

.equipment-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--orange);
    border-radius: 50%;
}

/* Strona szczegółów produktu: jawne pozycjonowanie grid na mobile
   — gallery zawsze w rzędzie 1 (zdjęcie), info zawsze w rzędzie 2 (badge + tytuł + opis).
   Badge jest pierwszym elementem DOM w .product-info, więc naturalnie
   pojawia się nad h1 bez potrzeby reorderingu flex/order. */
@media (max-width: 767px) {
    .product-gallery { grid-row: 1; }
    .product-info    { grid-row: 2; }
}

/* =================== CATEGORIES SHOWCASE =================== */
.categories {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .categories {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .categories {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.category-card {
    position: relative;
    height: 220px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    display: block;
}

@media (min-width: 640px) {
    .category-card {
        height: 260px;
    }
}

@media (min-width: 1024px) {
    .category-card {
        height: 320px;
    }
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
}

@media (hover: hover) {
    .category-card:hover img {
        transform: scale(1.1);
    }
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 6, 7, 0.9) 0%, rgba(5, 6, 7, 0.2) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

@media (min-width: 768px) {
    .category-card-overlay {
        padding: 28px;
    }
}

.category-card-overlay h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

@media (min-width: 768px) {
    .category-card-overlay h3 {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
}

.category-card-overlay p {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.category-card-overlay .arrow {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 106, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

@media (hover: hover) {
    .category-card:hover .arrow {
        background: var(--orange);
    }
}

/* Category card shine */
.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transform: skewX(-25deg);
    transition: left 0.7s ease;
    z-index: 2;
}

@media (hover: hover) {
    .category-card:hover::after {
        left: 125%;
    }
}

/* =================== FEATURES GRID =================== */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.feature-card {
    text-align: center;
    padding: 28px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all var(--transition);
}

@media (min-width: 768px) {
    .feature-card {
        padding: 36px 24px;
    }
}

@media (hover: hover) {
    .feature-card:hover {
        border-color: rgba(255, 106, 0, 0.3);
        transform: translateY(-4px);
    }

    .feature-card:hover .feature-icon {
        animation: iconBounce 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
    }
}

.feature-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    background: rgba(255, 106, 0, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    .feature-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 20px;
        font-size: 1.6rem;
    }
}

.feature-card h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.feature-card p {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    30%       { transform: translateY(-12px); }
    50%       { transform: translateY(-6px); }
    70%       { transform: translateY(-8px); }
}

/* =================== FIRE SERVICE PAGE =================== */
.fire-hero {
    background: radial-gradient(ellipse at 30% 50%, rgba(229, 62, 62, 0.15) 0%, transparent 60%),
                var(--bg-primary);
}

.fire-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .fire-features {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .fire-features {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.fire-feature {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .fire-feature {
        padding: 32px;
    }
}

.fire-feature::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #e53e3e, transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

@media (hover: hover) {
    .fire-feature:hover {
        transform: translateY(-4px);
        border-color: rgba(229, 62, 62, 0.3);
    }

    .fire-feature:hover::after {
        transform: scaleX(1);
    }
}

.fire-feature h4 {
    color: #e53e3e;
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.fire-feature p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
}

/* =================== WYPRAWY PAGE =================== */
.wyprawy-hero {
    position: relative;
    display: flex;
    align-items: center;
    background: radial-gradient(ellipse at 50% 50%, rgba(255, 106, 0, 0.12) 0%, transparent 60%),
                var(--bg-primary);
}

.trip-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .trip-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .trip-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: calc(50% - 12px);
        justify-self: center;
    }
}

.trip-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all var(--transition);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .trip-card {
        padding: 36px;
    }
}

.trip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--orange), var(--orange-light));
    transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
    .trip-card:hover {
        border-color: rgba(255, 106, 0, 0.3);
        transform: translateY(-4px);
    }

    .trip-card:hover::before {
        height: 100%;
    }
}

.trip-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.03em;
    margin-bottom: 10px;
    color: var(--orange);
}

.trip-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.trip-card ul {
    list-style: none;
    margin-bottom: 20px;
}

.trip-card ul li {
    padding: 4px 0 4px 22px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    position: relative;
}

.trip-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--orange);
    font-weight: 700;
}

/* =================== CONTACT =================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 480px) {
    .form-row-2col {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    /* font-size: 1rem (16px) prevents iOS auto-zoom on focus */
    font-size: 1rem;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Barlow', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca6b1' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

@media (min-width: 768px) {
    .contact-item {
        padding: 24px;
    }
}

.contact-item h4 {
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.contact-item p {
    font-size: 1rem;
    font-weight: 600;
}

.contact-item a {
    color: var(--orange);
    display: inline-block;
    padding: 2px 0;
}

@media (hover: hover) {
    .contact-item a:hover {
        color: var(--orange-light);
    }
}

/* =================== FOOTER =================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 48px 0 24px;
    /* Safe area: iPhone home indicator */
    padding-bottom: max(24px, env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
    .footer {
        padding: 60px 0 30px;
        padding-bottom: max(30px, env(safe-area-inset-bottom));
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        display: block;
        grid-column: 1 / -1;
    }

    .footer-brand > .footer-socials {
        display: none;
    }

    .footer-bottom .footer-socials {
        display: flex;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }

    .footer-brand {
        grid-column: auto;
    }
}

.footer-brand .logo img {
    height: 80px;
}

@media (min-width: 768px) {
    .footer-brand .logo img {
        height: 110px;
    }
}

.footer-address {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
    margin-top: 12px;
    transition: color 0.2s;
}

@media (hover: hover) {
    .footer-address:hover {
        color: var(--accent);
    }
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 300px;
}

@media (max-width: 639px) {
    .footer-brand {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .footer-brand .logo {
        flex: 0 0 auto;
    }

    .footer-brand > .footer-socials {
        margin-left: auto;
    }

    .footer-brand p {
        flex: 0 0 100%;
    }

    .footer-bottom .footer-socials {
        display: none;
    }
}

.footer-col h4 {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 14px;
    font-weight: 700;
}

.footer-col a {
    display: flex;
    align-items: center;
    padding: 6px 0;
    min-height: 44px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color var(--transition);
    position: relative;
}

.footer-col a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--orange);
    transition: width 0.3s ease;
}

@media (hover: hover) {
    .footer-col a:hover {
        color: var(--orange);
    }

    .footer-col a:hover::after {
        width: 100%;
    }
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255, 106, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    color: var(--orange);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

.footer-socials a svg {
    width: 20px;
    height: 20px;
    fill: var(--orange);
    transition: fill var(--transition);
    pointer-events: none;
}

@media (hover: hover) {
    .footer-socials a:hover {
        background: var(--orange);
        border-color: var(--orange);
    }

    .footer-socials a:hover svg {
        fill: #fff;
    }
}

/* =================== BREADCRUMB =================== */
.breadcrumb {
    padding: 16px 0;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-secondary);
    padding: 4px 0;
}

.breadcrumb span {
    margin: 0 8px;
}

@media (hover: hover) {
    .breadcrumb a:hover {
        color: var(--orange);
    }
}

/* =================== PAGE HEADER =================== */
.page-header {
    padding: 36px 0 24px;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 106, 0, 0.08) 0%, transparent 60%);
}

@media (min-width: 768px) {
    .page-header {
        padding: 48px 0 32px;
    }
}

.page-header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 6vw, 3.2rem);
    letter-spacing: 0.04em;
}

.page-header h1 span {
    color: var(--orange);
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 8px;
}

/* =================== ANIMATED COUNTER =================== */
.counter-section {
    padding: 48px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .counter-section {
        padding: 60px 0;
    }
}

.counter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    text-align: center;
}

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

.counter-item .counter-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: var(--orange);
    letter-spacing: 0.04em;
    line-height: 1;
}

@media (min-width: 768px) {
    .counter-item .counter-number {
        font-size: 3rem;
    }
}

.counter-item .counter-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* =================== SCROLLBAR =================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* =================== SCROLL PROGRESS BAR =================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--orange-light));
    z-index: 10001;
    box-shadow: 0 0 8px rgba(255, 106, 0, 0.5);
    pointer-events: none;
}

/* =================== SCROLL REVEAL ANIMATIONS =================== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-48px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(48px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.88);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.visible > *:nth-child(1)  { transition-delay: 0.03s; }
.stagger-children.visible > *:nth-child(2)  { transition-delay: 0.07s; }
.stagger-children.visible > *:nth-child(3)  { transition-delay: 0.11s; }
.stagger-children.visible > *:nth-child(4)  { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(5)  { transition-delay: 0.19s; }
.stagger-children.visible > *:nth-child(6)  { transition-delay: 0.23s; }
.stagger-children.visible > *:nth-child(7)  { transition-delay: 0.27s; }
.stagger-children.visible > *:nth-child(8)  { transition-delay: 0.31s; }
.stagger-children.visible > *:nth-child(9)  { transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(10) { transition-delay: 0.39s; }
.stagger-children.visible > *:nth-child(11) { transition-delay: 0.43s; }
.stagger-children.visible > *:nth-child(12) { transition-delay: 0.47s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* On mobile: skip stagger delays to improve perceived performance */
@media (max-width: 479px) {
    .stagger-children > * {
        transition-delay: 0s !important;
    }
}

/* =================== SCROLL-TO-TOP BUTTON =================== */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 20px;
    /* Account for home indicator on iPhone */
    bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px));
    right: max(20px, env(safe-area-inset-right, 20px));
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 900;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(255, 106, 0, 0.3);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (hover: hover) {
    .scroll-top:hover {
        background: var(--orange-light);
        transform: translateY(-4px);
        box-shadow: 0 8px 30px rgba(255, 106, 0, 0.4);
    }
}

/* =================== CURSOR GLOW (desktop only) =================== */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 106, 0, 0.06) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
}

/* =================== FLOATING ORBS (desktop only) =================== */
.floating-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.07;
}

@media (prefers-reduced-motion: no-preference) {
    .orb {
        animation: orbFloat linear infinite;
    }
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--orange);
    top: 10%;
    left: -100px;
    animation-duration: 25s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: #ff9f1c;
    top: 60%;
    right: -80px;
    animation-duration: 30s;
    animation-delay: -10s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: #e53e3e;
    bottom: 10%;
    left: 30%;
    animation-duration: 35s;
    animation-delay: -20s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25%       { transform: translate(80px, -60px) rotate(90deg); }
    50%       { transform: translate(-40px, -120px) rotate(180deg); }
    75%       { transform: translate(60px, 40px) rotate(270deg); }
}

/* =================== LOADING SPINNER =================== */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid var(--border-color);
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =================== COOKIE CONSENT =================== */
#cookie-wrap {
    position: fixed;
    bottom: 20px;
    left: 16px;
    /* Respect safe area */
    bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px));
    left: max(16px, env(safe-area-inset-left, 16px));
    z-index: 9990;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 10px;
}

#cookie-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    padding: 0;
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    #cookie-icon:hover {
        border-color: var(--orange);
        transform: scale(1.08);
        box-shadow: 0 6px 24px rgba(255, 106, 0, 0.25);
    }
}

#cookie-icon.done {
    border-color: #38a169;
    opacity: 0.75;
}

#cookie-popup {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px;
    width: calc(100vw - 48px);
    max-width: 300px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#cookie-popup.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.cookie-popup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.92rem;
}

.cookie-x {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

@media (hover: hover) {
    .cookie-x:hover { color: var(--text-primary); }
}

#cookie-popup p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
}

#cookie-popup p a {
    color: var(--orange);
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (hover: hover) {
    #cookie-popup p a:hover { color: var(--orange-light); }
}

.cookie-accept {
    width: 100%;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.03em;
    transition: background 0.2s;
    touch-action: manipulation;
    min-height: 44px;
}

@media (hover: hover) {
    .cookie-accept:hover { background: var(--orange-light); }
}

/* =================== TYPED CURSOR =================== */
.typed-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--orange);
    margin-left: 4px;
    vertical-align: text-bottom;
}

@media (prefers-reduced-motion: no-preference) {
    .typed-cursor {
        animation: blink 0.8s step-end infinite;
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* =================== PARALLAX HELPER =================== */
.parallax-bg {
    will-change: transform;
}

/* =================== PREFERS-REDUCED-MOTION: disable all animations =================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1 !important;
        transform: none !important;
    }

    .stagger-children > * {
        opacity: 1 !important;
        transform: none !important;
    }
}
