/* ============================================================
   ANOVEI — style strony publicznej
   (przeniesione z layout.html.twig)
   ============================================================ */

:root {
    --sb-track-color: #101010;
    --sb-thumb-color: #4791b2;
    --sb-size: 16px;
}
html { font-size: 16px; }
body {
    color: #404040;
    background-color: #fefefe;
    line-height: 1.414;
    font-family: 'Open Sans', sans-serif;
    scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);
}
body::-webkit-scrollbar { width: var(--sb-size); }
body::-webkit-scrollbar-track { background: var(--sb-track-color); border-radius: 1px; }
body::-webkit-scrollbar-thumb { background: var(--sb-thumb-color); border-radius: 1px; }

::selection { color: white; background: #4791b2; }
::-webkit-input-placeholder { color: #c7c7c7; }
:-ms-input-placeholder { color: #c7c7c7; }
::placeholder { color: #c7c7c7; }

.text-header { font-family: 'Montserrat', sans-serif; font-weight: 700; }

/* Header underline decoration */
.header:after {
    content: " ";
    display: block;
    height: 4px;
    background-color: #4791b2;
    width: 64px;
    transform: skew(36deg);
    margin-top: 8px;
}
/* Centrowanie kreski gdy nagłówek ma text-center */
.header.text-center:after {
    margin-left: auto;
    margin-right: auto;
}
/* Powrót do lewej na md:text-left (responsive Tailwind) */
@media screen and (min-width: 768px) {
    .header.md\:text-left:after {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Hero */
.hero {
    color: white;
    background: linear-gradient(0deg, transparent, rgb(35 94 230 / 7%)), linear-gradient(60deg, #30455e30, rgb(0 58 89 / 29%)), url(/site-assets/images/hero.webp);
    background-color: black;
    background-position-x: right;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 256px rgb(0 1 4 / 72%);
    animation: hero-pan 16s ease-in-out infinite;
    margin-bottom: 32px;
}
@keyframes hero-pan {
    0%   { background-position-x: 0%; }
    50%  { background-position-x: 3%; }
    100% { background-position-x: 0%; }
}
.element { color: #52accb; }

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    min-height: 80px;
    transition-duration: 0.25s;
    color: white;
}
nav.active {
    transition-duration: 0.16s;
    background-color: rgb(0 0 0 / 95%);
    box-shadow: 0 0 24px rgb(0 0 0);
}
nav.nav-hide { top: -100px; }
nav > .container {
    display: flex;
    align-items: center;
    height: 80px;
}
nav ul { display: flex; flex-direction: row; align-items: center; width: 100%; }
nav li { display: inline-block; position: relative; margin-left: 12px; }
nav li a { text-decoration: none; display: block; color: rgba(255,255,255,0.9); }
nav li a:hover { color: #fff; }
.navigation li { padding-left: 28px; margin-left: 28px; }
.navigation li a { line-height: 80px; }
.navigation li a:hover { color: #fff; text-decoration: underline; }
.navigation li a.nav-active {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.drawer-nav a.drawer-active {
    color: #4791b2;
    background: rgba(71, 145, 178, 0.09);
    border-left-color: #4791b2;
}
nav:not(.open) .navigation li:not(:first-child):after {
    content: "/";
    color: rgb(82,172,203);
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 0;
}
/* ── Mobile drawer overlay ── */
#nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(2px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
#nav-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}
/* ── Mobile drawer ── */
#nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100dvh;
    background: linear-gradient(160deg, #0d1926 0%, #0a1520 100%);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.6);
    border-left: 1px solid rgba(71, 145, 178, 0.15);
}
#nav-drawer.open { transform: translateX(0); }
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    min-height: 64px;
}
.drawer-close {
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    cursor: pointer;
    padding: 8px 10px;
    line-height: 1;
    border: none;
    background: none;
    transition: color 0.2s, background 0.2s;
    border-radius: 8px;
}
.drawer-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.09);
}
.drawer-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.drawer-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 24px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.4px;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
    border-left: 3px solid transparent;
}
.drawer-nav a:hover {
    color: #4791b2;
    background: rgba(71, 145, 178, 0.09);
    border-left-color: #4791b2;
}
.drawer-nav a i {
    width: 20px;
    text-align: center;
    font-size: 15px;
    color: #4791b2;
    flex-shrink: 0;
}
.drawer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 8px 24px;
}
.drawer-footer {
    padding: 18px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.drawer-footer a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.drawer-footer a:hover { color: white; }
.drawer-footer a i { color: #4791b2; font-size: 15px; }
.nav-icon {
    width: 60px; height: 60px;
    position: absolute; right: 0;
    font-size: 36px; text-align: center; top: 50%;
    transform: translateY(-50%);
    color: #ffffff; line-height: 60px !important;
}
.logo {
    background-image: url(/site-assets/images/logo.svg);
    background-repeat: no-repeat;
    height: 60px;
    display: inline-block;
    width: 200px;
    background-position: left;
    background-size: 70%;
    flex-shrink: 0;
    margin-right: 24px;
}
@media screen and (max-width: 767px) {
    .logo { height: 50px; width: 160px; }
}
.navigation-contact { margin-top: 16px; }
.navigation-contact li { margin-left: 12px; }
.navigation-contact li a i {
    vertical-align: middle;
    color: #52accb;
    margin-bottom: 3px;
    text-shadow: 1px 1px 1px rgba(35,31,32,0.5);
    margin-right: 4px;
    margin-left: 8px;
}

/* Button */
.button {
    text-transform: uppercase;
    display: inline-block;
    background: linear-gradient(45deg, #1753a9, #1765d3);
    padding: 12px 24px;
    min-width: 128px;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    color: white;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
    cursor: pointer;
}
.button:hover { background: linear-gradient(45deg, #1e63c6, #1f72e7); }
.btn-small { padding: 8px; font-size: 12px; }

/* Nav CTA button ("Kup dostęp" w nawigacji) */
.nav-buy-btn,
.navigation li a.nav-buy-btn {
    line-height: normal;
    display: inline-flex;
    align-items: center;
    background: linear-gradient(45deg, #1753a9, #1765d3);
    border-radius: 8px;
    padding: 8px 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 13px;
    color: white;
    text-decoration: none;
}
.nav-buy-btn:hover,
.navigation li a.nav-buy-btn:hover { background: linear-gradient(45deg, #1e63c6, #1f72e7); color: white; text-decoration: none; }

/* Ripple effect */
.ripple-effect { position: relative; overflow: hidden; box-shadow: 6px 7px 40px -4px rgba(0,0,0,0.2); }
.ripple-effect .ripple {
    position: absolute; border-radius: 50%;
    background-color: rgba(0,0,0,0.3);
    width: 100px; height: 100px;
    margin-top: -50px; margin-left: -50px;
    animation: ripple 1s; opacity: 0;
}
@keyframes ripple {
    from { opacity: 1; transform: scale(0); }
    to   { opacity: 0; transform: scale(10); }
}

/* Pulse button */
.btn-pulse { animation: pulse-button 1.618s infinite; }
@keyframes pulse-button {
    0%   { box-shadow: 0 0 0 0 rgb(90 158 255 / 40%); }
    70%  { box-shadow: 0 0 0 10px rgb(255 0 0 / 0%); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* Link */
.link { color: #529aff; }
.link:hover { text-decoration: underline; }

/* Offer list */
.offer-list i {
    -webkit-text-fill-color: transparent;
    background: linear-gradient(150deg, hsl(195deg,75%,75%) 0%, hsl(199deg,50%,50%) 100%) no-repeat 0 0;
    -webkit-background-clip: text;
}

/* Section content */
.section-content li {
    margin-left: 32px;
    min-width: 0;
    position: relative;
    font-style: italic;
    display: flex;
    align-items: center;
}
.section-content li:before {
    content: " ";
    background-color: #4791b2;
    width: 8px; height: 8px;
    display: block;
    position: absolute;
    border-radius: 3px;
    left: -20px;
    top: calc(50% - 4px);
}
.section-content ul { display: flex; flex-direction: column; gap: 10px; }
.section-content p { margin-bottom: 16px; }

/* Footer */
.footer {
    color: rgba(255,255,255,0.749);
    box-shadow: 0 0 16px rgba(0,0,0,0.6);
    z-index: 1;
    background-color: #171717;
    position: relative;
}
.footer a:hover { color: white; text-decoration: underline; }
.footer a { letter-spacing: 1px; padding: 8px 0px; display: inline-block; }
.footer .header { color: white; }
.footer i { font-size: 32px; vertical-align: middle; padding-right: 12px; color: #ffffff; }
.footer li a i { font-size: 16px; vertical-align: middle; padding-right: 8px; color: #4791b2; }
.copyright { background-color: #101010; color: white; line-height: 28px; padding: 8px; }

/* Forms */
form sup { color: #ff7171; font-weight: bold; }
input[type=text], input[type=email], input[type=email], select, textarea {
    padding: 8px;
    margin-bottom: 16px;
    border: 1px solid #dfdfdf;
    border-radius: 3px;
    width: 100%;
    background-color: #f1f1f1;
}
textarea { min-height: 177px; resize: vertical; }

/* Form focus state */
input[type=text]:focus,
input[type=email]:focus,
input[type=tel]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #4791b2;
    box-shadow: 0 0 0 3px rgba(71, 145, 178, 0.18);
    background-color: #fff;
}

/* Form validation states — only after user interaction (:not(:placeholder-shown)) */
input[type=text]:invalid:not(:placeholder-shown),
input[type=email]:invalid:not(:placeholder-shown),
input[type=tel]:invalid:not(:placeholder-shown) {
    border-color: #f87171;
    background-color: #fef7f7;
}
input[type=text]:valid:not(:placeholder-shown),
input[type=email]:valid:not(:placeholder-shown),
input[type=tel]:valid:not(:placeholder-shown) {
    border-color: #86efac;
    background-color: #f6fef9;
}

/* Cookie consent */
#cookieConsent {
    position: fixed; bottom: 32px;
    width: calc(100vw - 16px); margin: 8px;
    text-align: center; gap: 8px; flex-direction: column;
    z-index: 9999;
}

/* Checkbox styles */
@supports (-webkit-appearance: none) or (-moz-appearance: none) {
    input[type=checkbox] {
        --active: #275EFE; --active-inner: #fff;
        --focus: 2px rgba(39,94,254,.3);
        --border: #BBC1E1; --border-hover: #275EFE;
        --background: #fff; --disabled: #F6F8FF; --disabled-inner: #E1E6F9;
        -webkit-appearance: none; -moz-appearance: none;
        height: 21px; outline: none;
        display: inline-block;
        vertical-align: -webkit-baseline-middle;
        position: relative; margin: 0; cursor: pointer;
        border: 1px solid var(--bc, var(--border));
        background: var(--b, var(--background));
        transition: background 0.3s, border-color 0.3s, box-shadow 0.2s;
        min-width: 21px;
    }
    input[type=checkbox]:after {
        content: ""; display: block; left: 0; top: 0;
        position: absolute;
        transition: transform var(--d-t, 0.3s) var(--d-t-e, ease), opacity var(--d-o, 0.2s);
    }
    input[type=checkbox]:checked {
        --b: #1a73e8; --bc: #4791b2;
        --d-o: .3s; --d-t: .6s;
        --d-t-e: cubic-bezier(.2,.85,.32,1.2);
    }
    input[type=checkbox]:not(.switch):after {
        opacity: var(--o, 0);
        width: 5px; height: 9px;
        border: 2px solid var(--active-inner);
        border-top: 0; border-left: 0;
        left: 7px; top: 4px;
        transform: rotate(var(--r, 20deg));
    }
    input[type=checkbox]:not(.switch):checked { --o: 1; --r: 43deg; }
    input[type=checkbox] + label { font-size: 14px; line-height: 21px; display: inline-block; vertical-align: top; cursor: pointer; margin-left: 8px; }
    input[type=checkbox]:focus { box-shadow: 0 0 0 var(--focus); }
}

/* Dropdown */
.dropdown-content {
    display: none; position: absolute;
    background-color: #001321f5;
    border: 1px solid #5c57ff45;
    min-width: 320px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    z-index: 1;
}
.dropdown-content a { float: none; color: white; padding: 12px 16px; text-decoration: none; display: block; text-align: left; }
.dropdown-content a:hover { background-color: #1762cd; color: white; }
.dropdown:hover .dropdown-content { display: block; }
