/* 01. Tokens and base */
:root {
    --red: #ed1428;
    --red-deep: #b40820;
    --bg: #fafbfe;
    --surface: #ffffff;
    --glass: rgba(255,255,255,.9);
    --text: #202332;
    --muted: #717888;
    --line: #e4e7ee;
    --shadow: 0 18px 65px rgba(31,36,59,.09);
    color-scheme: light;
}
:root[data-theme="dark"] {
    --bg: #0d1018;
    --surface: #171b26;
    --glass: rgba(23,27,38,.95);
    --text: #f1f3f9;
    --muted: #a2aabc;
    --line: #2b3141;
    --shadow: 0 18px 65px rgba(0,0,0,.28);
    color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; padding-bottom: 48px; background: var(--bg); color: var(--text); font: 15px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.overlay-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
button { border: 0; }
svg { width: 23px; height: 23px; flex-shrink: 0; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
p { color: var(--muted); }
img { max-width: 100%; height: auto; }
h1, h2 { line-height: 1.25; letter-spacing: -.035em; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; padding: 10px; background: var(--surface); z-index: 2000; }
#particles-js { position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .65; }
#particles-js canvas { width: 100%; height: 100%; display: block; }
/* 02. Header */
.topbar { height: 80px; display: flex; justify-content: space-between; align-items: center; padding: 0 40px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 22px; }
.icon-button { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: transparent; }
.icon-button:hover { background: var(--surface); box-shadow: var(--shadow); color: var(--red); }
.account-link { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; }
.account-link svg { width: 18px; height: 18px; }
.register-link { font-size: 13px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 20px; }
.archive-label { color: var(--muted); font-size: 10px; letter-spacing: .23em; }
.top-menu { position: fixed; top: 0; left: 0; right: 0; padding: 34px 8vw; background: var(--glass); backdrop-filter: blur(24px); z-index: 130; box-shadow: var(--shadow); animation: from-top .25s ease; }
.top-menu nav, .top-menu ul { display: flex; flex-wrap: wrap; align-items: center; gap: 25px; list-style: none; padding: 0; }
.top-menu a:hover { color: var(--red); }
.top-menu ul ul { display: block; padding: 8px; }
.mini-brand { font-size: 30px; font-weight: 800; color: var(--red); }
.mini-brand span { font-weight: 400; }
body.admin-bar .topbar { margin-top: 32px; }
body.admin-bar .top-menu { top: 32px; }
/* 03. Central search */
.home-main { padding-top: clamp(25px, 7vh, 85px); }
.hero { width: min(820px, calc(100% - 128px)); margin: 0 auto; text-align: center; }
.hero-logo { display: block; width: min(390px, 78%); margin: 0 auto; }
.brand { display: block; }
.brand img { display: block; width: 100%; height: auto; }
.logo-dark { display: none !important; }
[data-theme="dark"] .logo-light { display: none !important; }
[data-theme="dark"] .logo-dark { display: block !important; }
.eyebrow { font-size: 10px; letter-spacing: .24em; margin: 10px 0 32px; }
.eyebrow b { color: var(--red); margin: 0 7px; }
.search-form { display: flex; align-items: center; position: relative; min-height: 72px; padding: 7px 8px 7px 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); text-align: left; }
.search-form:focus-within { border-color: #ed142880; box-shadow: 0 0 0 4px #ed14280b, var(--shadow); }
.search-symbol { display: flex; color: var(--muted); }
.search-input { width: 100%; min-width: 0; padding: 12px 18px; border: 0; outline: 0 !important; color: var(--text); background: transparent; font-size: 17px; }
.search-input::placeholder { color: var(--muted); font-size: 15px; }
.search-submit { display: flex; gap: 18px; align-items: center; padding: 16px 25px; border-radius: 15px; background: linear-gradient(135deg, #ff283a, #ce0c25); color: white; font-weight: 650; box-shadow: 0 6px 20px #ed14282a; }
.search-submit:hover { background: var(--red-deep); }
.search-submit span { font-size: 22px; line-height: 1; }
.suggestions { position: absolute; top: calc(100% + 9px); left: 0; right: 0; z-index: 20; margin: 0; padding: 8px; border-radius: 17px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); list-style: none; }
.suggestions li { padding: 12px 16px; border-radius: 9px; cursor: pointer; }
.suggestions li:hover, .suggestions li[aria-selected="true"] { background: #ed14280c; color: var(--red); }
.search-options { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding: 0 9px; gap: 20px; }
.languages, .search-tools { display: flex; align-items: center; gap: 9px; }
.flag-button { width: 39px; height: 31px; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 3px 9px #10103005; transition: transform .2s, border-color .2s; }
.flag-button:hover { transform: translateY(-3px); border-color: var(--red); }
.more-languages { color: var(--muted); font-size: 15px; letter-spacing: 2px; padding-left: 6px; }
.flag { width: 24px; height: 16px; display: inline-block; border-radius: 3px; position: relative; overflow: hidden; box-shadow: 0 0 0 1px #00000012; flex-shrink: 0; background: #ddd; }
.flag-pl { background: linear-gradient(#fff 50%, #df183c 50%); }
.flag-de { background: linear-gradient(#171717 33.333%, #d52330 33.333% 66.666%, #ffce3a 66.666%); }
.flag-uk { background: linear-gradient(#2674d9 50%, #ffdc35 50%); }
.flag-cs { background: linear-gradient(#fff 50%, #d91e35 50%); }
.flag-cs::before { content: ''; position: absolute; inset: 0; background: #164a9c; clip-path: polygon(0 0, 60% 50%, 0 100%); }
.flag-en { background: linear-gradient(90deg, transparent 41%, #c71935 41% 59%, transparent 59%), linear-gradient(transparent 36%, #c71935 36% 64%, transparent 64%), linear-gradient(90deg, transparent 32%, #fff 32% 68%, transparent 68%), linear-gradient(transparent 26%, #fff 26% 74%, transparent 74%), linear-gradient(33deg, transparent 44%, #fff 44% 56%, transparent 56%), linear-gradient(-33deg, transparent 44%, #fff 44% 56%, transparent 56%), #17407e; }
.flag-fr { background: linear-gradient(90deg, #1d3c96 33.333%, #fff 33.333% 66.666%, #e12d42 66.666%); }
.flag-it { background: linear-gradient(90deg, #17915a 33.333%, #fff 33.333% 66.666%, #e12d42 66.666%); }
.flag-es { background: linear-gradient(#c82338 25%, #ffd13c 25% 75%, #c82338 75%); }
.flag-nl { background: linear-gradient(#ba2338 33.333%, #fff 33.333% 66.666%, #2450a4 66.666%); }
.flag-sv { background: linear-gradient(90deg, transparent 29%, #ffda36 29% 43%, transparent 43%), linear-gradient(transparent 40%, #ffda36 40% 60%, transparent 60%), #1765ad; }
.search-tools { border-left: 1px solid var(--line); padding-left: 24px; gap: 15px; }
.tool-button { background: transparent; color: var(--muted); padding: 5px; display: flex; border-radius: 8px; }
.tool-button:hover { color: var(--red); background: #ed14280b; }
.tool-button[data-tool="ai"] { color: var(--red); }
.status { min-height: 22px; margin: 10px 0 0; font-size: 12px; }
.hero-divider { display: flex; align-items: center; margin: 17px 0 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--line) 15% 85%, transparent); }
.hero-divider span { width: 40px; height: 3px; margin: auto; border-radius: 10px; background: var(--red); box-shadow: 0 0 15px #ed142850; }
.hero h1 { font-size: clamp(25px, 3vw, 36px); margin: 0 0 15px; background: linear-gradient(100deg, var(--text) 15%, var(--red) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-description { max-width: 620px; margin: 0 auto; min-height: 50px; font-size: 14px; line-height: 1.8; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 28px 0 55px; }
.hero-actions a { padding: 11px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 12px; font-weight: 600; transition: .2s; }
.hero-actions a:first-child { background: var(--red); color: white; border-color: var(--red); }
.hero-actions a:hover { transform: translateY(-3px); border-color: var(--red); box-shadow: 0 6px 18px #ed142818; }
/* 04. Full-bleed partner strip and legal section */
.logo-strip { width: 100%; padding: 22px 0; border-block: 1px solid var(--line); background: var(--glass); overflow: hidden; }
.logo-track { display: flex; align-items: center; gap: 70px; width: max-content; min-width: 100%; justify-content: center; }
.logo-track.is-animated { justify-content: flex-start; animation: marquee 35s linear infinite; }
.logo-strip:hover .logo-track, .logo-strip:focus-within .logo-track { animation-play-state: paused; }
.logo-track a { display: flex; align-items: center; width: 130px; height: 45px; }
.logo-track img { max-height: 45px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .65; }
.logo-track a:hover img { filter: none; opacity: 1; }
.logo-placeholder { color: var(--muted); font-size: 12px; letter-spacing: .04em; padding: 0 25px; text-align: center; white-space: normal; }
.copyright-section { max-width: 780px; margin: 55px auto 40px; padding: 0 45px; text-align: center; }
.section-label { font-size: 10px; letter-spacing: .2em; font-weight: 750; color: var(--red); }
.copyright-section h2 { font-size: 23px; margin: 12px 0; }
.copyright-section p { font-size: 12px; line-height: 1.9; }
.copyright-section a { color: var(--red); font-size: 12px; }
.site-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 22px; padding: 20px 40px 35px; font-size: 11px; color: var(--muted); }
.site-footer > a { font-weight: 750; color: var(--red); }
.text-button { padding: 0; color: var(--muted); background: transparent; font-size: 11px; }
/* 05. Edge tabs and drawers */
.side-tab { position: fixed; z-index: 40; width: 40px; padding: 15px 8px; display: flex; align-items: center; gap: 10px; flex-direction: column; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 5px 20px #00000005; font-size: 10px; letter-spacing: .06em; }
.side-tab svg { width: 17px; height: 17px; color: var(--red); }
.side-tab span { writing-mode: vertical-rl; }
.tab-1, .tab-2 { left: 0; border-radius: 0 12px 12px 0; border-left: 0; }
.tab-1 { top: 35%; }
.tab-2 { top: calc(35% + 145px); }
.tab-3, .tab-4, .tab-5 { right: 0; border-radius: 12px 0 0 12px; border-right: 0; }
.tab-3 { top: 28%; }
.tab-4 { top: calc(28% + 145px); }
.tab-5 { top: calc(28% + 305px); }
.side-tab:hover { color: var(--red); background: var(--surface); border-color: #ed14284a; }
.drawer-shade { position: fixed; inset: 0; background: #080b1855; backdrop-filter: blur(5px); z-index: 100; }
.drawer { position: fixed; z-index: 120; background: var(--surface); padding: 65px 32px 40px; overflow: auto; box-shadow: var(--shadow); }
.drawer-left, .drawer-right { top: 0; bottom: 48px; width: min(420px, 92vw); }
.drawer-left { left: 0; animation: from-left .3s ease; }
.drawer-right { right: 0; animation: from-right .3s ease; }
.drawer-bottom { left: 0; right: 0; bottom: 48px; height: 50vh; height: 50dvh; border-radius: 24px 24px 0 0; animation: from-bottom .3s ease; padding-inline: max(30px, calc((100% - 900px)/2)); }
.drawer h2 { font-size: 30px; }
.drawer-links { display: grid; gap: 12px; margin-top: 25px; }
.drawer-links a { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg); color: var(--muted); }
.close:hover { color: var(--red); }
/* 06. Modal and globe */
.modal { color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 40px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 40px); overflow: auto; box-shadow: var(--shadow); }
dialog::backdrop { background: #080b1877; backdrop-filter: blur(7px); }
.language-modal { width: 780px; padding: 0; }
.language-modal[open] { display: grid; grid-template-columns: 280px 1fr; }
.globe-area { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 40px; background: radial-gradient(circle at 50% 45%, #ed142822, transparent 70%), var(--bg); min-height: 400px; padding: 30px; }
.globe-area small { font-size: 9px; letter-spacing: .2em; color: var(--muted); }
.globe { width: 190px; height: 190px; border: 1px solid #ed142880; border-radius: 50%; position: relative; box-shadow: inset -15px -5px 35px #ed142815, 0 0 45px #ed142815; }
.globe i { position: absolute; inset: 0; border: 1px solid #ed142860; border-radius: 50%; animation: globe-turn 7s linear infinite; }
.globe i:nth-child(2) { animation-delay: -1.75s; }
.globe i:nth-child(3) { animation-delay: -3.5s; }
.globe i:nth-child(4) { animation-delay: -5.25s; }
.globe::before, .globe::after, .globe span { content: ''; position: absolute; left: 0; right: 0; top: 35%; height: 30%; border: 1px solid #ed142860; border-radius: 50%; }
.globe::after { top: 12%; height: 76%; }
.globe span { top: 49%; height: 1px; }
.language-content { padding: 48px 32px 32px; }
.language-content h2 { font-size: 28px; margin-bottom: 8px; }
.language-content p { font-size: 12px; }
.language-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 25px; }
.language-grid a { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; }
.language-grid a:hover { border-color: var(--red); }
.tool-modal { width: 540px; }
.tool-modal h2 { margin: 15px 0; }
.tool-modal p { font-size: 13px; }
.tool-modal input { width: 100%; padding: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 10px; margin: 10px 0; }
.tool-modal video, .tool-modal .image-preview { width: 100%; max-height: 240px; object-fit: contain; border-radius: 12px; }
.primary-button, .secondary-button { display: inline-block; padding: 13px 20px; border-radius: 10px; font-weight: 600; font-size: 13px; }
.primary-button { background: var(--red); color: white; }
.secondary-button { background: var(--bg); border: 1px solid var(--line); }
/* 07. Full-screen privacy gate */
.cookie-dialog { position: fixed; inset: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; border: 0; padding: 30px; color: var(--text); background: var(--bg); }
.cookie-dialog[open] { display: grid; place-items: center; }
.cookie-card { max-width: 630px; text-align: center; margin: auto; }
.cookie-logo { width: min(300px, 70vw); margin: 0 auto 35px; }
.cookie-card h2 { font-size: clamp(24px, 4vw, 34px); }
.cookie-card p { font-size: 14px; line-height: 1.9; }
.cookie-actions { display: flex; justify-content: center; gap: 12px; margin: 30px 0 20px; }
.cookie-card > a { font-size: 12px; color: var(--red); }
.cookie-card .cookie-note { font-size: 10px; margin-top: 25px; }
/* 08. Fixed news ticker */
.news-bar { position: fixed; bottom: 0; left: 0; right: 0; height: 48px; display: flex; background: var(--surface); border-top: 1px solid var(--line); z-index: 80; }
.news-bar > strong { display: flex; align-items: center; gap: 12px; padding: 0 28px; color: white; background: var(--red); font-size: 12px; letter-spacing: .12em; }
.live-dot { width: 6px; height: 6px; background: white; border-radius: 50%; box-shadow: 0 0 0 4px #ffffff25; }
.news-window { flex: 1; overflow: hidden; display: flex; align-items: center; }
.news-track { display: flex; width: max-content; white-space: nowrap; gap: 65px; animation: marquee 35s linear infinite; padding-left: 35px; font-size: 12px; }
.news-track span::before { content: '\2022'; color: var(--red); margin-right: 15px; }
.news-bar:hover .news-track, .news-bar.is-paused .news-track { animation-play-state: paused; }
.news-pause { width: 48px; background: var(--surface); border-left: 1px solid var(--line); font-size: 12px; color: var(--muted); }
/* 09. Content and results */
.content-page { max-width: 900px; padding: 35px 60px 60px; margin: auto; min-height: 70vh; }
.page-brand { display: block; width: 160px; margin-bottom: 35px; }
.content-page h1 { font-size: 34px; }
.content-page .search-form { margin: 25px 0; }
.result-card { padding: 20px 0; border-bottom: 1px solid var(--line); }
.result-card h2 { font-size: 22px; margin-bottom: 10px; }
.result-card h2 a:hover { color: var(--red); }
.result-card p { font-size: 14px; }
.result-url { color: var(--red); font-size: 12px; }
.entry-content { overflow-wrap: anywhere; }
.entry-content a { color: var(--red); text-decoration: underline; }
.entry-content iframe { max-width: 100%; }
/* 10. Motion and responsive layout */
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes globe-turn { from { transform: rotateY(0deg); } to { transform: rotateY(180deg); } }
@keyframes from-left { from { transform: translateX(-100%); } }
@keyframes from-right { from { transform: translateX(100%); } }
@keyframes from-bottom { from { transform: translateY(100%); } }
@keyframes from-top { from { transform: translateY(-100%); } }
@media (min-width: 1600px) { .home-main { padding-top: 11vh; } }
@media (max-width: 700px) {
    .topbar { padding: 0 16px; height: 66px; }
    .topbar-left, .topbar-right { gap: 10px; }
    .archive-label { display: none; }
    .register-link { padding-left: 10px; font-size: 11px; }
    .account-link { font-size: 11px; gap: 5px; }
    .hero { width: calc(100% - 80px); }
    .home-main { padding-top: 35px; }
    .hero-logo { width: 85%; max-width: 310px; }
    .eyebrow { font-size: 8px; letter-spacing: .1em; margin: 15px 0 25px; }
    .eyebrow b { margin: 0 2px; }
    .search-form { min-height: 60px; padding: 5px; border-radius: 17px; }
    .search-symbol { display: none; }
    .search-input { font-size: 16px; padding: 10px; }
    .search-input::placeholder { font-size: 11px; }
    .search-submit { padding: 13px 14px; font-size: 12px; border-radius: 12px; }
    .search-submit span { display: none; }
    .search-options { flex-direction: column; gap: 17px; padding: 0; }
    .languages { gap: 7px; }
    .flag-button { width: 33px; height: 29px; }
    .search-tools { border-left: 0; padding: 13px 0 0; border-top: 1px solid var(--line); width: 100%; justify-content: center; gap: 23px; }
    .hero-divider { margin-top: 12px; }
    .hero h1 { font-size: 25px; }
    .hero-description { font-size: 12px; }
    .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 35px; }
    .hero-actions a { padding: 11px 8px; font-size: 10px; }
    .side-tab { width: 28px; padding: 11px 5px; font-size: 9px; gap: 6px; }
    .side-tab svg { width: 14px; height: 14px; }
    .tab-1 { top: 31%; }
    .tab-2 { top: calc(31% + 120px); }
    .tab-3 { top: 25%; }
    .tab-4 { top: calc(25% + 120px); }
    .tab-5 { top: calc(25% + 255px); }
    .copyright-section { padding: 0 42px; margin-top: 35px; }
    .copyright-section h2 { font-size: 20px; }
    .site-footer { padding-inline: 35px; gap: 10px 20px; }
    .language-modal[open] { grid-template-columns: 1fr; }
    .globe-area { min-height: 160px; padding: 20px; gap: 12px; }
    .globe { width: 100px; height: 100px; }
    .language-content { padding: 25px; }
    .language-content h2 { margin-top: 8px; font-size: 23px; }
    .language-grid { margin-top: 15px; }
    .modal { padding: 30px 23px; }
    .language-modal { padding: 0; }
    .news-bar > strong { padding: 0 14px; font-size: 10px; }
    .news-track { font-size: 11px; }
    .cookie-actions { flex-direction: column; }
    .content-page { padding: 25px 42px 50px; }
    .content-page h1 { font-size: 26px; }
    body.admin-bar .topbar { margin-top: 46px; }
    body.admin-bar .top-menu { top: 46px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    #particles-js { display: none; }
    .logo-strip { overflow-x: auto; }
    .news-window { overflow-x: auto; }
}

body { position: relative; isolation: isolate; }
.tool-button.listening { color: var(--red); box-shadow: 0 0 0 5px #ed142818; }
.logo-strip { overflow-x: auto; scrollbar-width: thin; }
@media (max-height: 600px) { .side-tab { padding-block: 8px; } .side-tab span { display: none; } .tab-1,.tab-3 { top: 30%; } .tab-2,.tab-4 { top: 45%; } .tab-5 { top: 60%; } }
