/* =========================
   ZMIENNE KOLORÓW
   ========================= */
:root {
    --bg-main: #050816;
    --bg-navbar: #050816;
    --bg-hero: #020617;
    --bg-card: #0f172a;

    --accent: #2563eb;
    --accent-soft: #60a5fa;

    --text-main: #e5e7eb;
    --text-muted: #9ca3af;

    --border-subtle: #1f2933;
}

/* =========================
   GLOBAL
   ========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================
   NAVBAR
   ========================= */
.navbar-desktop {
    width: 100%;
    padding: 14px 0;
    background: var(--bg-navbar);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar-desktop .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
}

.nav-links a {
    color: var(--text-main);
    font-size: 0.98rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
    transition: 0.2s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent-soft);
    transition: width 0.25s;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* =========================
   SUBPAGE HERO
   ========================= */
.subpage-hero {
    padding: 70px 0 40px;
    background: var(--bg-hero);
    background: radial-gradient(circle at top left, #1e293b 0, var(--bg-hero) 50%, #020617 100%);
    border-bottom: 1px solid var(--border-subtle);
    text-align: center;
}

.subpage-hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
}

.subpage-hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 760px;
    margin: 0 auto;
}

/* =========================
   STRONA USŁUG – SIATKA
   ========================= */
.services-page-section {
    padding: 80px 0 90px;
    background: var(--bg-main);
}

.services-page-grid {
    row-gap: 32px;
}

/* Kolumna z boxem – tu cała magia szerokości */
.services-page-col {
    transition:
            flex-basis 0.65s cubic-bezier(0.16, 1, 0.3, 1),
            max-width 0.65s cubic-bezier(0.16, 1, 0.3, 1),
            transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Aktywna kolumna – 100% szerokości, ale zostaje w swoim miejscu */
.services-page-col.expanded {
    flex: 0 0 100%;
    max-width: 100%;
}
.services-page-box.active .services-page-extra {
    max-height: 600px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 12px;
}

/* =========================
   BOX USŁUGI
   ========================= */
.services-page-box {
    background: var(--bg-hero);
    border-radius: 18px;
    padding: 28px 22px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition:
            transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
            box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
            opacity 0.3s ease;
    cursor: pointer;
}

/* aktywny box – delikatny overshoot i mocniejszy cień */
.services-page-col.expanded .services-page-box {
    transform: scale(1.015);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7);
}

/* pozostałe lekko przygaszone */
.services-page-col:not(.expanded) .services-page-box {
    opacity: 0.78;
}

.services-page-icon i {
    font-size: 2.6rem;
    color: var(--accent-soft);
    margin-bottom: 16px;
}

.services-page-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.services-page-desc {
    font-size: 0.97rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* Rozwijana część */
.services-page-extra {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(14px);
    margin-top: 0;
    transition:
            max-height 0.65s cubic-bezier(0.16, 1, 0.3, 1),
            opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
            transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
            margin-top 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.services-page-box.active .services-page-extra {
    max-height: 600px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 12px;
}

/* Lista */
.services-page-list {
    list-style: disc;
    padding-left: 18px;
    margin: 0;
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================
   CTA POD LISTĄ USŁUG
   ========================= */
.services-page-cta {
    margin-top: 60px;
    text-align: center;
}

.services-page-cta-text {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.services-page-cta-btn {
    padding: 12px 30px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: 0.2s ease;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.services-page-cta-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

/* =========================
   FOOTER
   ========================= */
.footer {
    background: var(--bg-navbar);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-subtle);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-left {
    max-width: 400px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-soft);
    margin-bottom: 12px;
}

.footer-desc {
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-right {
    min-width: 200px;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-muted);
    transition: 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-soft);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================
   BACK TO TOP BUTTON
   ========================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 9999;
}

.back-to-top i {
    font-size: 22px;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    filter: brightness(1.15);
    transform: translateY(-3px);
}
/* =========================================
   FOOTER – NEUTRALNY GLOBALNY STYL
   ========================================= */

.footer {
    background-color: #050816;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

/* LEWA KOLUMNA */
.footer-logo img {
    height: 32px;
    width: auto;
    display: block;
}

.footer-desc {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin: 12px 0 18px;
    line-height: 1.5;
}

/* DANE KONTAKTOWE */
.footer-contact {
    margin-top: 10px;
}

.footer-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.footer-contact-list a {
    color: #60a5fa;
    text-decoration: none;
}

.footer-contact-list a:hover {
    text-decoration: underline;
}

/* PRAWA KOLUMNA */
.footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 6px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #60a5fa;
}

/* DÓŁ STOPKI */
.footer-bottom {
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid #1e293b;
}

/* RWD – neutralne, nie ingeruje w resztę strony */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }

    .footer-left,
    .footer-right {
        width: 100%;
    }

    .footer-logo img {
        height: 28px;
    }
}

