/* === ZMIENNE CSS === RAVBEND BRAND === */
:root {
    --primary-color: #1a1a1a;
    --primary-dark: #0a0a0a;
    --secondary-color: #e30613;
    --secondary-dark: #b8050f;
    --accent-color: #ff1f2d;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --bg-dark: #1a1a1a;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --shadow-red: 0 8px 24px rgba(227, 6, 19, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET I PODSTAWY === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Work Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

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

ul {
    list-style: none;
}

/* === CONTAINER === */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === NAWIGACJA === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

/* Logo z markerem R (jak na wizytówce) */
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--secondary-color);
    color: var(--text-white);
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    border-radius: 6px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.logo-mark::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 2px;
}

.logo-text {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--text-dark);
}

.logo-accent {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-primary-nav {
    background: var(--secondary-color);
    color: var(--text-white);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
}

.btn-primary-nav::after {
    display: none;
}

.btn-primary-nav:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* === PRZYCISKI === */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--text-white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.btn-secondary:hover {
    background: var(--text-white);
    color: var(--text-dark);
}

/* Wariant secondary dla jasnego tła */
.btn-secondary-dark {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

.btn-secondary-dark:hover {
    background: var(--text-dark);
    color: var(--text-white);
}

.btn-full {
    width: 100%;
}

/* === SEKCJA HERO === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(10,10,10,0.92) 0%, rgba(26,26,26,0.75) 60%, rgba(227,6,19,0.35) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--text-white);
    padding: 4rem 2rem;
}

.hero-text {
    max-width: 800px;
    margin-bottom: 4rem;
}

.hero-tagline {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-white);
    background: var(--secondary-color);
    padding: 0.5rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    animation: fadeInUp 0.6s ease-out;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-title-line:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-title-line:nth-child(3) {
    animation-delay: 0.3s;
}

.hero-title-accent {
    color: var(--secondary-color);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
}

.stat-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    padding: 1.75rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    border-left: 3px solid var(--secondary-color);
    transition: var(--transition);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.6s; }
.stat-card:nth-child(2) { animation-delay: 0.7s; }
.stat-card:nth-child(3) { animation-delay: 0.8s; }

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.12);
    border-left-color: var(--text-white);
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
    font-family: 'Syne', sans-serif;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-white);
    font-size: 0.875rem;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

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

@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

/* === SEKCJE === */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 30px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background: var(--secondary-color);
}

.section-title {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* === USŁUGI === */
.services {
    background: var(--bg-light);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(227, 6, 19, 0.1);
}

.service-card:hover::before {
    width: 100%;
}

.service-card.featured {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, #fff 0%, #fef5f6 100%);
}

.service-card.featured::before {
    width: 100%;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary-color);
    color: var(--text-white);
    padding: 0.4rem 0.875rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--secondary-color);
    color: var(--text-white);
    transform: rotate(-5deg);
}

.service-card.featured .service-icon {
    background: var(--secondary-color);
    color: var(--text-white);
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.service-features li {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-light);
}

.service-features li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--secondary-color);
    transform: rotate(45deg);
    margin-right: 0.875rem;
    flex-shrink: 0;
}

/* === O NAS === */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content .section-label {
    text-align: left;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.25rem;
    color: var(--text-light);
    line-height: 1.8;
}

.about-text strong {
    color: var(--text-dark);
    font-weight: 600;
}

.about-advantages {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.advantage-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.advantage-icon {
    width: 36px;
    height: 36px;
    background: var(--secondary-color);
    color: var(--text-white);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.advantage-text h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.advantage-text p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

.about-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

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

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: var(--secondary-color);
    opacity: 0.2;
    border-radius: 12px;
    z-index: -1;
}

/* === PROCES === */
.process {
    background: var(--bg-light);
}

.process-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.process-step::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 80px;
    bottom: -40px;
    width: 2px;
    background: var(--border-color);
}

.process-step:last-child::before {
    display: none;
}

.process-number {
    width: 80px;
    height: 80px;
    background: var(--bg-white);
    border: 3px solid var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    font-family: 'Syne', sans-serif;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.process-step:hover .process-number {
    background: var(--secondary-color);
    color: var(--text-white);
    transform: scale(1.05);
}

.process-content {
    background: var(--bg-white);
    padding: 1.75rem 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.process-content:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--secondary-color);
}

.process-content h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.process-content p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* === PORTFOLIO === */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.portfolio-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.portfolio-category {
    background: var(--secondary-color);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-title {
    font-size: 1.4rem;
    margin-bottom: 0.875rem;
    color: var(--text-dark);
}

.portfolio-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.portfolio-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.portfolio-detail {
    font-size: 0.9rem;
    color: var(--text-light);
}

.portfolio-detail strong {
    color: var(--text-dark);
}

/* === KONTAKT === */
.contact {
    background: var(--bg-light);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: var(--bg-white);
    padding: 2.5rem 1.75rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.contact-card.featured-contact {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a2a2a 100%);
    color: var(--text-white);
    border-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.contact-card.featured-contact::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--secondary-color);
    border-radius: 50%;
    transform: translate(40%, -40%);
    opacity: 0.3;
}

.contact-card.featured-contact h3,
.contact-card.featured-contact .contact-link,
.contact-card.featured-contact .contact-note {
    color: var(--text-white);
    position: relative;
}

.contact-card.featured-contact .contact-link {
    color: var(--secondary-color);
}

.contact-icon {
    width: 72px;
    height: 72px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.contact-card:hover .contact-icon {
    background: var(--secondary-color);
    color: var(--text-white);
}

.contact-card.featured-contact .contact-icon {
    background: rgba(227, 6, 19, 0.15);
    color: var(--secondary-color);
}

.contact-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.875rem;
    color: var(--text-dark);
}

.contact-link {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    transition: var(--transition);
    word-break: break-all;
}

.contact-link:hover {
    transform: scale(1.03);
}

.contact-text {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact-note {
    font-size: 0.9rem;
    color: var(--text-light);
}

.contact-cta-box {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border-top: 4px solid var(--secondary-color);
    position: relative;
}

.contact-cta-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-cta-box p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* === STOPKA === */
.footer {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--secondary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-logo .logo-text {
    color: var(--text-white);
}

.footer-description {
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: rgba(255,255,255,0.7);
}

.footer-contact a {
    color: var(--secondary-color);
}

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

.footer-bottom {
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Dane rejestrowe firmy */
.footer-company-data {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    padding: 1.5rem 0;
    margin-bottom: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.company-data-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.company-data-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary-color);
}

.company-data-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    font-family: 'Work Sans', sans-serif;
    letter-spacing: 0.02em;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: var(--text-white);
}

/* === SCROLL TO TOP === */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--text-white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-red);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

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

.scroll-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

/* === RESPONSYWNOŚĆ === */

/* Tablet - 768px */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 1.5rem;
    }

    /* Nawigacja mobilna */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        transition: var(--transition);
        gap: 1rem;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-link::after {
        display: none;
    }

    /* Hero */
    .hero {
        min-height: 90vh;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    /* Sekcje */
    section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Usługi */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* O nas */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        order: -1;
    }

    .about-advantages {
        grid-template-columns: 1fr;
    }

    /* Proces */
    .process-step {
        grid-template-columns: 60px 1fr;
        gap: 1.5rem;
    }

    .process-number {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }

    .process-step::before {
        left: 30px;
        top: 60px;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    /* Kontakt */
    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .contact-cta-box {
        padding: 2rem;
    }

    .contact-cta-box h3 {
        font-size: 1.5rem;
    }

    .contact-actions {
        flex-direction: column;
    }

    .contact-actions .btn {
        width: 100%;
    }

    /* Stopka */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-company-data {
        gap: 1.5rem;
        padding: 1.25rem 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile - 480px */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    .hero-tagline {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .service-card,
    .process-content,
    .portfolio-content {
        padding: 1.5rem;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* Dodatkowe animacje przy scrollu */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .portfolio-card,
    .process-step {
        opacity: 0;
        animation: fadeInUp 0.6s ease-out forwards;
    }

    .service-card:nth-child(1) { animation-delay: 0.1s; }
    .service-card:nth-child(2) { animation-delay: 0.2s; }
    .service-card:nth-child(3) { animation-delay: 0.3s; }
    .service-card:nth-child(4) { animation-delay: 0.4s; }
    .service-card:nth-child(5) { animation-delay: 0.5s; }
    .service-card:nth-child(6) { animation-delay: 0.6s; }
}
