/* =====================================================
   TECNOVATICA S.A. – STRONA INWESTORSKA (NEWCONNECT)
   OSTATECZNY CSS
   ===================================================== */

/* ===== ZMIENNE KOLORYSTYCZNE (z logo) ===== */
:root {
    --blue: #1bb3e6;          /* cyan z logo */
    --blue-dark: #005FAD;     /* mocniejszy cyan */

    --navy: #0f172a;          /* głęboki granat */
    --navy-light: #1e293b;    /* jaśniejszy granat */

    --gradient: linear-gradient(135deg, var(--navy), var(--blue));

    --bg: #f6f8fb;
    --text: #1f2937;
}

/* ===== RESET / BAZA ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-docs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.container-espiebi {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Social media ===== */

.social-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    transition: all 0.25s ease;
    border: 2px solid transparent;
}

/* SVG default */
.social-btn svg {
    width: 18px;
    height: 18px;
    fill: white;
    transition: all 0.25s ease;
}

/* Większe ikony FB i IG */
.social-btn.facebook svg,
.social-btn.instagram svg {
    width: 20px;
    height: 20px;
}

/* BRAND COLORS */

.social-btn.linkedin {
    background: #0077b5;
}

.social-btn.facebook {
    background: #1877f2;
}

.social-btn.instagram {
    background: #e1306c; /* jednolity kolor */
}

/* HOVER - styl premium */

.social-btn.linkedin:hover {
    background: #fff;
    border-color: #0077b5;
}

.social-btn.linkedin:hover svg {
    fill: #0077b5;
}

.social-btn.facebook:hover {
    background: #fff;
    border-color: #1877f2;
}

.social-btn.facebook:hover svg {
    fill: #1877f2;
}

.social-btn.instagram:hover {
    background: #fff;
    border-color: #e1306c;
}

.social-btn.instagram:hover svg {
    fill: #e1306c;
}

/* ===== Raporty ESPI/EBI ===== */

.container-espiebi a {
    color: var(--blue-dark);
    text-decoration: none;
}

.container-espiebi a:hover {
    text-decoration: underline;
}

.container-espiebi table a {
    color: var(--blue-dark);
    text-decoration: none;
    font-weight: 500;
}

.container-espiebi table a:hover {
    text-decoration: underline;
}

/* ===== DOKUMENTY KORPORACYJNE – LISTA BEZ KROPEK ===== */
.container-docs ul {
    list-style: none;
    padding-left: 0;
}

.container-docs li {
    margin-bottom: 10px;
}

.container-docs a {
    font-size: 0.9rem;
    color: var(--blue-dark);
    text-decoration: none;
}

.container-docs a:hover {
    text-decoration: underline;
}

/* ===== HEADER ===== */
header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--blue-dark);
    display: flex;

}
.logo img{
    width: 250px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
    align-items: center;      /* wyrównanie pionowe */
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
}

nav a:hover {
    color: var(--blue-dark);
}

/* ===== HERO ===== */
.hero {
    background: var(--gradient);
    color: #ffffff;
    padding: 70px 0;
}

.hero h1 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

/* ===== SEKCJE ===== */
.section {
    padding: 70px 0;
    background: #ffffff;
}

.section.alt {
    background: var(--bg);
}

h2 {
    margin-bottom: 30px;
    color: var(--navy);
}

h3 {
    margin-bottom: 10px;
    color: var(--blue-dark);
}

/* ===== GRID / KARTY ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.card {
    background: #ffffff;
    padding: 28px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* ===== LISTY (RADA NADZORCZA – BEZ KROPEK) ===== */
.card ul {
    list-style: none;
    padding-left: 0;
}

.card li {
    margin-bottom: 8px;
}

/* ===== LINKI (CV) ===== */
.card a {
    font-size: 0.9rem;
    color: var(--blue-dark);
    text-decoration: none;
}

.card a:hover {
    text-decoration: underline;
}

/* ===== TABELE ===== */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.table th {
    background: #f1f5f9;
    font-weight: bold;
}

/* ===== TRADINGVIEW ===== */
.tradingview-widget-container {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
}

/* ===== POJECTS ===== */

.poject-logo{
    display: flex;
    justify-content: center;
    align-items: center;

}

/* ===== CTA ===== */

.cta-btn {
    text-decoration: none;   /* usuwa underline */
    display: inline-block;   /* żeby zachowywał się jak button */
    background: linear-gradient(135deg, #1bb3e6, #005FAD);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(27, 179, 230, 0.25);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(27, 179, 230, 0.35);
    background: linear-gradient(135deg, #1bb3e6, #0f172a);
}

.cta-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(27, 179, 230, 0.2);
}

.cta-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}

/* =========================
   FORMULARZ – TECINVEST
   ========================= */

.contact-grid {
    align-items: start;
}

/* INTRO */
.form-intro {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #475569;
}

/* SEKCJE */
.form-section {
    margin-bottom: 25px;
}

.form-section h4 {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--navy);
}

/* GRID */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* INPUTY */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.form-group label {
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: #475569;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    font-size: 0.9rem;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-dark);
    box-shadow: 0 0 0 2px rgba(27,179,230,0.15);
}

/* PRAWA KOLUMNA */
.contact-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-box p {
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.contact-note {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #64748b;
}

/* MOBILE */
@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===== FOOTER ===== */
footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 50px 0;
}

footer h4 {
    color: #ffffff;
    margin-bottom: 14px;
}

footer a {
    color: #cbd5e1;
    text-decoration: none;
}

footer a:hover {
    color: var(--blue);
}

/* ===== RESPONSYWNOŚĆ ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    nav ul {
        gap: 16px;
    }
}

/* Raporty ESPI / EBI – zawijanie tytułu do ok. 50 znaków */
.container-espiebi table td:nth-child(2) {
    max-width: 45ch;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ===== PAGINACJA – styl GPW / NewConnect ===== */
.container-espiebi .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 20px auto 0;
    width: 100%;
}

.container-espiebi .pagination a,
.container-espiebi .pagination span {
    display: inline-block;
    min-width: 34px;
    height: 34px;
    line-height: 32px;
    padding: 0 8px;
    text-align: center;
    font-size: 0.9rem;
    border: 1px solid #d1d5db;
    color: var(--blue-dark);
    background: #ffffff;
    text-decoration: none;
}

.container-espiebi .pagination a:hover {
    background: #f1f5f9;
}

.container-espiebi .pagination .active {
    background: var(--blue-dark);
    color: #ffffff;
    border-color: var(--blue-dark);
    font-weight: bold;
}

.container-espiebi .pagination .disabled {
    color: #9ca3af;
    border-color: #e5e7eb;
    pointer-events: none;
}

/* ===== PAGINACJA – RESPONSIVE (MOBILE) ===== */
@media (max-width: 640px) {
    .container-espiebi .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }

    .container-espiebi .pagination a,
    .container-espiebi .pagination span {
        min-width: 36px;
        height: 36px;
        line-height: 34px;
        font-size: 0.85rem;
    }

    /* Ukryj środkowe numery przy długiej paginacji */
    .container-espiebi .pagination a:nth-child(n+6):nth-last-child(n+6),
    .container-espiebi .pagination span:nth-child(n+6):nth-last-child(n+6) {
        display: none;
    }
    .logo img{
        width: 230px;
    }

    .table {
        font-size: 0.85rem;          /* mniejsza czcionka */
    }

    .table th,
    .table td {
        padding: 8px 6px;            /* mniejsze odstępy */
        line-height: 1.35;
    }

    .table th {
        font-size: 0.8rem;
        font-weight: 600;
    }

    .table td strong {
        font-size: 0.85rem;
    }

    .social-buttons {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center;
        align-items: center;
        gap: 12px;
        width: auto !important;
        margin: 20px auto 0;
    }

    .social-buttons a.social-btn {
        display: inline-flex !important;
        width: 42px !important;
        height: 42px !important;
        flex: none !important;
    }

    /* 🔥 KLUCZOWE — reset stylu menu */
    .social-buttons a {
        width: auto !important;
    }
}

/* =========================
   HAMBURGER MENU (MOBILE)
   ========================= */

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--navy);
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

/* === ANIMACJA → X === */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

/* =========================
   OVERLAY
   ========================= */

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* =========================
   MOBILE NAV (BOTTOM SHEET)
   ========================= */

.nav-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    transform: translateY(100%);
    transition: transform 0.35s ease;
    z-index: 1001;
    padding: 24px 20px 30px;
}

.nav-mobile.active {
    transform: translateY(0);
}

/* LISTA LINKÓW */
.nav-mobile ul {
    display: block;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* POJEDYNCZY LINK */
.nav-mobile li {
    display: block;
    width: 100%;
    padding: 18px 0;                 /* ↑ większa wysokość */
    border-bottom: 1px solid var(--navy);
    text-align: center;
}


.nav-mobile li:last-child {
    border-bottom: none;
}

.nav-mobile a {
    display: block;
    width: 100%;
    padding: 6px 0;                  /* ↑ realny obszar kliku */
    font-size: 1.1rem;               /* lekko większy tekst */
    line-height: 1.4;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    text-align: center;
}

/* =========================
   BLOKADA SCROLLA STRONY
   ========================= */

body.menu-open {
    overflow: hidden;
}

/* =========================
   RESPONSIVE – MOBILE ONLY
   ========================= */

@media (max-width: 640px) {
    .nav-desktop {
        display: none;
    }

    .hamburger {
        display: block;
    }
}

/* =========================
   COOKIE SYSTEM
   ========================= */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.95);
    color: #ffffff;
    z-index: 2000;
    padding: 16px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-banner.hide {
    opacity: 0;
    transform: translateY(100%);
}

.cookie-banner__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.cookie-banner__buttons {
    display: flex;
    gap: 10px;
}

/* Przyciski w bannerze */
.cookie-banner button {
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s ease;
}

.cookie-banner button.secondary {
    background: #475569;
    color: #fff;
}

.cookie-banner button:not(.secondary) {
    background: var(--blue-dark);
    color: #fff;
}

.cookie-banner button:not(.secondary):hover {
    background: var(--navy);
}

/* =========================
   COOKIE MODAL
   ========================= */

.cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2100;
}

.cookie-modal.active {
    display: flex;
}

.cookie-modal__box {
    background: #ffffff;
    padding: 24px;
    border-radius: 10px;
    max-width: 420px;
    width: 90%;
}

.cookie-modal__box h3 {
    margin-top: 0;
}

.cookie-option {
    margin-bottom: 12px;
}

/* =========================
   PRZYCISKI W MODALU – IDEALNIE RÓWNE ODSTĘPY
   ========================= */

.cookie-modal__actions {
    margin-top: 20px;
    display: block;          /* zamiast flex */
}

/* Każdy przycisk */
.cookie-modal__actions button {
    display: block;
    width: 100%;
    margin: 0 0 12px 0;       /* JEDYNE źródło odstępu */
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;         /* wymusza tę samą wysokość tekstu */
    transition: background 0.2s ease;
}

/* Ostatni bez marginesu na dole */
.cookie-modal__actions button:last-child {
    margin-bottom: 0;
}

/* ZAPISZ */
#cookieSaveBtn {
    background: var(--blue-dark);
    color: #ffffff;
}

#cookieSaveBtn:hover {
    background: var(--navy);
}

/* ODRZUĆ – MNIEJ AGRESYWNY CZERWONY */
#cookieRejectBtn {
    background: #ef4444;
    color: #ffffff;
}

#cookieRejectBtn:hover {
    background: #dc2626;
}

/* ANULUJ / ZAMKNIJ */
#cookieCancelBtn {
    background: #64748b;
    color: #ffffff;
}

#cookieCancelBtn:hover {
    background: #475569;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 640px) {
    .cookie-banner__content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner__buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookie-banner button {
        width: 100%;
    }
}

/* =========================
   LISTY – WYRÓWNANIE DO TEKSTU
   ========================= */

.container ul,
.container ol {
    list-style-position: inside;  /* kropki w linii z tekstem */
    padding-left: 0;              /* usuwa odsunięcie w lewo */
    margin-left: 0;
}

.container li {
    margin-bottom: 6px;           /* trochę oddechu między punktami */
}

.hero-text-center {
    text-align: center;
}

/* ===== SUBMENU DESKTOP ===== */
.nav-desktop .has-submenu {
    position: relative;
}

.nav-desktop .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 220px;
    display: none;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.nav-desktop .submenu li a {
    display: block;
    padding: 10px 20px;
    white-space: nowrap;
}

.nav-desktop .has-submenu:hover .submenu {
    display: block;
}

/* ===== SUBMENU MOBILE ===== */
.has-submenu-mobile > .submenu-mobile {
    display: none;
    list-style: none;
    padding-left: 15px;
}

.has-submenu-mobile.open > .submenu-mobile {
    display: block;
}

.submenu-toggle {
    cursor: pointer;
    display: block;
    padding: 10px 0;
}

/* =========================
   COUNTDOWN TECNOVATICA
   ========================= */

.countdown-wrapper {
    text-align: center;
    margin-top: 10px;
}

.countdown-wrapper h2 {
    color: white;
    margin-bottom: 25px;
}

/* GRID */

.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* BOX */

.time-box {

    background: var(--gradient);
    color: white;

    padding: 20px 24px;

    border-radius: 12px;

    min-width: 90px;

    text-align: center;

    box-shadow: 0 12px 25px rgba(0,0,0,0.25);

}

/* CYFRY */

.time-box span {

    display: block;

    font-size: 2.2rem;
    font-weight: bold;

    animation: flip 0.6s ease;

}

/* OPIS */

.time-box p {

    font-size: 0.7rem;

    letter-spacing: 1px;

    margin-top: 6px;

}

/* ANIMACJA CYFR */

@keyframes flip {

    0% {
        transform: translateY(-10px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }

}

/* MOBILE */

@media (max-width:640px){

    .countdown{

        gap:10px;

    }

    .time-box{

        padding:16px 18px;
        min-width:70px;

    }

    .time-box span{

        font-size:1.6rem;

    }

}

.youtube-wrapper{
    position:relative;
    padding-bottom:56.25%;
    height:0;
    margin-top:5px;
}

.youtube-wrapper iframe{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    border-radius:10px;
}

.videoSection{
    margin-top: 15px;
}
