/* ===================================
   AiM BUDOWNICTWO - MAIN STYLES
   Colors: White, Red (#DC2626), Black
   =================================== */

/* --- ACCESSIBILITY UTILITY --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --red: #DC2626;
    --red-dark: #B91C1C;
    --red-light: #EF4444;
    --black: #111111;
    --black-soft: #1a1a1a;
    --dark: #222222;
    --gray-900: #333333;
    --gray-700: #555555;
    --gray-500: #888888;
    --gray-300: #cccccc;
    --gray-100: #f5f5f5;
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.18);
    --shadow-red: 0 4px 20px rgba(220,38,38,0.3);
    --transition: 0.3s ease;
    --transition-slow: 0.6s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-color: var(--red) var(--black);
    scrollbar-width: thin;
    overflow-x: hidden;
}

/* Webkit scrollbar (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red-dark);
}

body {
    font-family: var(--font-body);
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul { list-style: none; }

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.text-center { text-align: center; }
.text-accent { color: var(--red); }

/* --- SECTION HEADERS --- */
.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--red);
    margin-bottom: 12px;
    position: relative;
    padding-left: 40px;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 28px;
    height: 2px;
    background: var(--red);
    transform: translateY(-50%);
}

.text-center .section-tag {
    padding-left: 0;
    padding-bottom: 0;
}

.text-center .section-tag::before {
    display: none;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--black);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--gray-700);
    max-width: 600px;
    margin: 0 auto 50px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

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

.btn-primary i {
    transition: transform 0.3s;
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--black);
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.05rem;
}

.btn-dark {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.btn-dark:hover {
    background: var(--gray-900);
    transform: translateY(-2px);
}

/* --- IMAGE PLACEHOLDERS --- */
.image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 250px;
    background: linear-gradient(135deg, var(--gray-100) 0%, #e5e5e5 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--gray-500);
    font-size: 0.9rem;
    border-radius: inherit;
}

.image-placeholder i {
    font-size: 2.5rem;
    opacity: 0.5;
}

.placeholder-dark {
    background: linear-gradient(135deg, #ddd 0%, #bbb 100%);
}

.placeholder-light {
    background: linear-gradient(135deg, var(--gray-100) 0%, #e8e8e8 100%);
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(17, 17, 17, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    line-height: 1;
}

.logo-img {
    height: 54px;
    width: auto;
    display: block;
    border-radius: 4px;
}

.footer-logo-img {
    height: 64px;
    width: auto;
    display: block;
    border-radius: 4px;
}

.logo-aim {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--red);
    letter-spacing: 2px;
}

.logo-sub {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--white);
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-menu a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    position: relative;
    padding: 5px 0;
}

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

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--white);
}

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

.nav-cta {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 24px;
    background: var(--red);
    color: var(--white);
    border-radius: 50px;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-red);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    width: 28px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--black);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17,17,17,0.9) 0%, rgba(17,17,17,0.7) 50%, rgba(220,38,38,0.15) 100%);
    z-index: 1;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--red);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 8s infinite ease-in-out;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
    25% { transform: translateY(-80px) translateX(20px); opacity: 0.6; }
    50% { transform: translateY(-150px) translateX(-10px); opacity: 0.2; }
    75% { transform: translateY(-80px) translateX(-20px); opacity: 0.5; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 0 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 30px;
    color: var(--red-light);
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    animation: fadeInUp 0.8s 0.3s forwards;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 24px;
}

.hero-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: heroLineIn 0.8s forwards;
}

.hero-line:nth-child(1) { animation-delay: 0.5s; }
.hero-line:nth-child(2) { animation-delay: 0.8s; }
.hero-line:nth-child(3) { animation-delay: 1.1s; }

.hero-line--accent {
    color: var(--red);
    position: relative;
}

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

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeInUp 0.8s 1.4s forwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s 1.7s forwards;
}

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ===================================
   COUNTERS SECTION
   =================================== */
.counters {
    background: var(--red);
    padding: 60px 0;
    position: relative;
}

.counters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--red-dark), var(--red-light), var(--red-dark));
}

.counters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.counter-item {
    color: var(--white);
}

.counter-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.9;
}

.counter-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
}

.counter-number::after {
    content: '+';
    font-size: 1.5rem;
}

.counter-number.no-plus::after {
    content: '';
}

.counter-static {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
}

.counter-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

/* ===================================
   ABOUT PREVIEW
   =================================== */
.about-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.about-preview-image .image-placeholder {
    min-height: 450px;
    border-radius: 12px;
}

.experience-badge {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: var(--red);
    color: var(--white);
    padding: 20px 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.exp-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
}

.exp-text {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
}

.about-text {
    font-size: 1.05rem;
    color: var(--gray-700);
    margin-bottom: 24px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 32px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.95rem;
}

.about-feature i {
    color: var(--red);
    font-size: 1.1rem;
}

/* ===================================
   SERVICES
   =================================== */
.services {
    background: var(--gray-100);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    height: 320px;
    perspective: 1000px;
    cursor: pointer;
}

.service-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 16px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.service-card-front {
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.service-card-front:hover {
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card-front h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}

.service-card-front p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

.service-card-back {
    background: var(--red);
    color: var(--white);
    transform: rotateY(180deg);
    padding: 30px;
}

.service-card-back h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.service-card-back ul {
    text-align: left;
    margin-bottom: 20px;
}

.service-card-back ul li {
    padding: 4px 0;
    font-size: 0.9rem;
    position: relative;
    padding-left: 18px;
}

.service-card-back ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: bold;
}

.service-card-back .btn-small {
    background: var(--white);
    color: var(--red);
    border-radius: 50px;
    font-weight: 600;
}

.service-card-back .btn-small:hover {
    background: var(--black);
    color: var(--white);
}

/* ===================================
   PORTFOLIO PREVIEW
   =================================== */
.ba-showcase {
    margin-bottom: 50px;
}

.ba-slider-container {
    max-width: 800px;
    margin: 0 auto;
}

.ba-slider {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
    cursor: col-resize;
    box-shadow: var(--shadow-lg);
}

.ba-slider::before,
.ba-slider::after {
    position: absolute;
    top: 16px;
    z-index: 10;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 16px;
    border-radius: 50px;
    pointer-events: none;
}

.ba-slider::before {
    content: attr(data-before);
    left: 16px;
    background: rgba(0,0,0,0.7);
    color: var(--white);
}

.ba-slider::after {
    content: attr(data-after);
    right: 16px;
    background: var(--red);
    color: var(--white);
}

.ba-image {
    position: absolute;
    inset: 0;
}

.ba-before {
    z-index: 1;
}

.ba-after {
    z-index: 0;
}

.ba-before .image-placeholder {
    background: linear-gradient(135deg, #bbb 0%, #999 100%);
    min-height: 100%;
    border-radius: 0;
}

.ba-after .image-placeholder {
    background: linear-gradient(135deg, #f0f0f0 0%, #ddd 100%);
    min-height: 100%;
    border-radius: 0;
}

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    pointer-events: none;
}

.ba-handle-line {
    flex: 1;
    width: 3px;
    background: var(--white);
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

.ba-handle-circle {
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.ba-info {
    text-align: center;
    margin-top: 24px;
}

.ba-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.ba-info p {
    color: var(--gray-700);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    height: 280px;
}

.portfolio-item--large {
    grid-row: span 2;
    height: 100%;
}

.portfolio-item .image-placeholder {
    min-height: 100%;
    border-radius: 0;
    transition: transform 0.5s;
}

.portfolio-item:hover .image-placeholder {
    transform: scale(1.05);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17,17,17,0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--red-light);
    margin-bottom: 8px;
}

.portfolio-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.portfolio-overlay p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

/* ===================================
   PROCESS / TIMELINE
   =================================== */
.process {
    background: var(--black);
    color: var(--white);
}

.process .section-tag { color: var(--red-light); }
.process .section-title { color: var(--white); }
.process .section-desc { color: rgba(255,255,255,0.6); }

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.process-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(255,255,255,0.1);
    transform: translateX(-50%);
}

.process-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--red);
    transition: height 1.5s ease;
}

.process-line.animate::after {
    height: 100%;
}

.process-step {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.process-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--red);
    border-radius: 50%;
    z-index: 2;
    border: 4px solid var(--black);
    box-shadow: 0 0 0 3px var(--red);
}

.process-content {
    width: 42%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 28px;
}

.process-step:nth-child(odd) .process-content {
    margin-right: auto;
}

.process-step:nth-child(even) .process-content {
    margin-left: auto;
}

.process-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--red);
    opacity: 0.5;
    line-height: 1;
    margin-bottom: 8px;
}

.process-content h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.process-content p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

/* ===================================
   TESTIMONIALS
   =================================== */
.testimonials {
    background: var(--gray-100);
}

.testimonials-slider {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    min-width: 100%;
    padding: 40px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.testimonial-stars {
    color: #FFB800;
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    gap: 4px;
    justify-content: center;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 1.2rem;
}

.testimonial-author strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.testimonial-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
}

.testimonial-btn {
    width: 44px;
    height: 44px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
    transition: var(--transition);
}

.testimonial-btn:hover {
    border-color: var(--red);
    color: var(--red);
}

.testimonial-dots {
    display: flex;
    gap: 8px;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dot.active {
    background: var(--red);
    width: 30px;
    border-radius: 5px;
}

/* ===================================
   CTA SECTION
   =================================== */
.cta-section {
    background: var(--black);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(220,38,38,0.1) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 36px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-form {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.quick-form input {
    padding: 14px 20px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-body);
    min-width: 200px;
    outline: none;
    transition: var(--transition);
}

.quick-form input::placeholder {
    color: rgba(255,255,255,0.5);
}

.quick-form input:focus {
    border-color: var(--red);
    background: rgba(255,255,255,0.15);
}

.quick-form-note {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-top: 0;
}

.quick-form-note a {
    color: rgba(255,255,255,0.9);
    text-decoration: underline;
}

/* ===================================
   BLOG PREVIEW
   =================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.blog-card-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.blog-card-image .image-placeholder {
    min-height: 100%;
    border-radius: 0;
}

.blog-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--red);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-card-content {
    padding: 24px;
}

.blog-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.blog-meta i {
    margin-right: 4px;
}

.blog-card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--black);
    line-height: 1.4;
}

.blog-card-content p {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 16px;
    line-height: 1.6;
}

.blog-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--red);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-link:hover {
    gap: 12px;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--black);
    padding: 80px 0 0;
    color: rgba(255,255,255,0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 16px;
}

.footer-logo .logo-aim {
    font-size: 1.8rem;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--red);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--red);
    padding-left: 6px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--red);
    width: 16px;
    text-align: center;
}

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

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #ffffff;
}

/* ===================================
   BACK TO TOP
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--red-dark);
    transform: translateY(-3px);
}

/* ===================================
   SCROLL REVEAL ANIMATIONS
   =================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ===================================
   PAGE HEADER (for subpages)
   =================================== */
.page-header {
    background: var(--black);
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--red);
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 16px;
}

.page-header p {
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

.breadcrumb a {
    color: rgba(255,255,255,0.6);
}

.breadcrumb a:hover {
    color: var(--red);
}

.breadcrumb span.current {
    color: var(--red);
}

/* ===================================
   SUBPAGE SPECIFIC STYLES
   =================================== */

/* --- O NAS / ABOUT --- */
.about-full-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    margin: 0 auto 16px;
}

.value-card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 8px;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--gray-700);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gray-300);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
    padding-right: 55%;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
    padding-left: 55%;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--red);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--red);
    z-index: 2;
}

.timeline-content {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.timeline-year {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--red);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 6px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--gray-700);
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-grid--two {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.team-card {
    text-align: center;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.team-photo {
    height: 280px;
    overflow: hidden;
}

.team-photo .image-placeholder {
    min-height: 100%;
    border-radius: 0;
}

.team-info {
    padding: 20px;
}

.team-info h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 4px;
}

.team-info span {
    font-size: 0.85rem;
    color: var(--red);
    font-weight: 500;
}

/* --- USLUGI / SERVICES PAGE --- */
.service-detail {
    padding: 80px 0;
    border-bottom: 1px solid var(--gray-100);
}

.service-detail:nth-child(even) {
    background: var(--gray-100);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-detail:nth-child(even) .service-detail-grid {
    direction: rtl;
}

.service-detail:nth-child(even) .service-detail-grid > * {
    direction: ltr;
}

.service-detail-image {
    border-radius: 12px;
    overflow: hidden;
}

.service-detail-image .image-placeholder {
    min-height: 350px;
}

.service-detail-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.service-detail-content p {
    color: var(--gray-700);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-scope {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

.service-scope li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.service-scope li i {
    color: var(--red);
    font-size: 0.8rem;
}

/* --- REALIZACJE - KARTY USŁUG Z IKONKAMI --- */
.real-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 0;
}

.real-services-top-row {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
    margin: 0 auto 24px;
}

.real-services-bottom-row {
    margin-bottom: 0;
}

.real-service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.real-service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--red);
}

.real-service-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    margin: 0 auto 20px;
    transition: var(--transition);
}

.real-service-card:hover .real-service-icon {
    transform: scale(1.1) rotate(-3deg);
}

.real-service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
}

.real-service-card p {
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.7;
}

/* --- REALIZACJE / PORTFOLIO PAGE --- */
.portfolio-filters {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    border: 2px solid var(--gray-300);
    background: transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-700);
}

.filter-btn.active,
.filter-btn:hover {
    border-color: var(--red);
    background: var(--red);
    color: var(--white);
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 320px;
    gap: 16px;
}

.masonry-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.masonry-item.tall {
    grid-row: span 2;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.masonry-item:hover img {
    transform: scale(1.05);
}

.masonry-item .image-placeholder {
    min-height: 100%;
    border-radius: 0;
}

.masonry-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px 20px 22px;
    opacity: 0;
    transition: var(--transition);
    overflow: hidden;
}

.masonry-item:hover .masonry-overlay {
    opacity: 1;
}

.masonry-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.masonry-overlay h3 {
    font-family: var(--font-heading);
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    overflow-y: auto;
    padding: 20px;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    background: transparent;
    max-width: none;
    width: auto;
    border-radius: 0;
    overflow: visible;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image img {
    width: auto;
    height: auto;
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: var(--red);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--red);
}

/* --- CENNIK / PRICING --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pricing-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.pricing-card.featured {
    border-color: var(--red);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--red);
    color: var(--white);
    padding: 4px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-price {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--red);
    margin: 16px 0;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--gray-500);
    font-weight: 500;
}

.pricing-features {
    text-align: left;
    margin: 24px 0;
}

.pricing-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--gray-100);
}

.pricing-features li i {
    color: var(--red);
    font-size: 0.8rem;
}

.pricing-note {
    max-width: 700px;
    margin: 50px auto 0;
    text-align: center;
    padding: 24px;
    background: var(--gray-100);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.pricing-note i {
    color: var(--red);
    margin-right: 8px;
}

/* --- CONTACT --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 30px;
}

.contact-info-card {
    background: var(--gray-100);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.contact-info-card i {
    font-size: 1.5rem;
    color: var(--red);
    margin-bottom: 10px;
}

.contact-info-card h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-info-card p, .contact-info-card a {
    font-size: 0.85rem;
    color: var(--gray-700);
}

.contact-info-card a:hover {
    color: var(--red);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--gray-900);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Consent w jasnym formularzu kontaktowym */
.consent-label--light {
    color: var(--gray-700);
    font-size: 0.82rem;
    line-height: 1.5;
}
.consent-label--light a {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.consent-label--light a:hover {
    color: var(--red-dark);
}
.form-consent-group {
    margin-bottom: 20px;
}

/* Błędy walidacji formularza */
.form-group.error label {
    color: var(--red);
}
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--red);
    background: #fff5f5;
}
.field-error-msg {
    display: block;
    color: var(--red);
    font-size: 0.8rem;
    margin-top: 5px;
    font-weight: 500;
}

/* Błędy walidacji hero form (ciemne tło) */
.hero-form-group.error label {
    color: var(--red-light);
}
.hero-form-group.error input,
.hero-form-group.error select,
.hero-form-group.error textarea {
    border-color: var(--red) !important;
}
.hero-form-group .field-error-msg {
    color: #fca5a5;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    margin-top: 20px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
}

/* --- BLOG PAGE --- */
.blog-page-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Fix: placeholder bezpośrednio w artykule nie może mieć height:100% (rozciągałoby do wys. kolumny grid) */
.blog-page-grid article > .image-placeholder {
    height: 300px;
    min-height: unset;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-post-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.blog-post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.blog-post-image {
    overflow: hidden;
    min-height: 220px;
}

.blog-post-image .image-placeholder {
    min-height: 220px;
    border-radius: 0;
}

.blog-post-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-post-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-post-content p {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 14px;
    line-height: 1.6;
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--red);
}

.sidebar-categories li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
}

.sidebar-categories li a {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.sidebar-categories li a:hover {
    color: var(--red);
}

.sidebar-categories li a.filter-active {
    color: var(--red);
    font-weight: 700;
}

.sidebar-categories li span {
    background: var(--gray-100);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
}

/* ===================================
   HERO GRID WITH FORM
   =================================== */
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    text-align: left;
}

.hero-text .hero-badge {
    margin-bottom: 24px;
}

.hero-text .hero-title {
    text-align: left;
}

.hero-text .hero-subtitle {
    margin-left: 0;
    text-align: left;
}

.hero-text .hero-buttons {
    justify-content: flex-start;
}

.hero-form-wrapper {
    opacity: 0;
    animation: fadeInUp 0.8s 1.5s forwards;
}

.hero-form {
    background: rgba(255, 255, 255, 0.07);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 36px 32px;
}

.hero-form h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 6px;
}

.hero-form > p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
}

.hero-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 0;
}

.hero-form-group {
    margin-bottom: 14px;
}

.hero-form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 6px;
}

.hero-form-group input,
.hero-form-group select,
.hero-form-group textarea {
    width: 100%;
    padding: 13px 18px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.hero-form-group textarea {
    resize: vertical;
    min-height: 90px;
    font-family: var(--font-body);
}

.hero-form-group input::placeholder,
.hero-form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.hero-form-group select {
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.hero-form-group select option {
    background: var(--black);
    color: var(--white);
}

.hero-form-group input:focus,
.hero-form-group select:focus,
.hero-form-group textarea:focus {
    outline: none;
    border-color: var(--red);
    background: rgba(255, 255, 255, 0.12);
}

.hero-form .btn-full {
    width: 100%;
    justify-content: center;
    padding: 15px;
    font-size: 1rem;
    margin-top: 6px;
}

/* Consent checkbox RODO */
.hero-form-consent {
    margin-bottom: 14px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    cursor: pointer;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.45;
}

.consent-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    margin-top: 0.15rem;
    accent-color: var(--red);
    cursor: pointer;
}

.consent-label a {
    color: var(--red-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.consent-label a:hover {
    color: var(--white);
}

.hero-form-note {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
}

.hero-form-note i {
    margin-right: 4px;
}

/* ===================================
   WHY US SECTION
   =================================== */
.why-us {
    background: var(--gray-100);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-us-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.why-us-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--red);
}

.why-us-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    margin: 0 auto 20px;
}

.why-us-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
}

.why-us-card p {
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.7;
}

/* ===================================
   FAQ SECTION
   =================================== */
.faq {
    background: var(--gray-100);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--black);
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--red);
}

.faq-question i {
    font-size: 0.85rem;
    color: var(--red);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 28px 22px;
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.8;
}

/* ===================================
   FOOTER LEGAL
   =================================== */
.footer-legal {
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.footer-legal-grid--2col {
    grid-template-columns: repeat(2, auto);
    justify-content: center;
}

.footer-company-name {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
    margin-bottom: 16px;
    line-height: 1.5;
    font-weight: 500;
}

.footer-legal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
}

.footer-legal-item i {
    color: var(--red);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.legal-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.legal-value {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* ===================================
   BLOG CARD ACTIONS
   =================================== */
.blog-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.blog-service-link {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-500);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--gray-100);
    border-radius: 50px;
    transition: var(--transition);
}

.blog-service-link:hover {
    background: var(--red);
    color: var(--white);
}

/* ===================================
   PORTFOLIO CTA
   =================================== */
.portfolio-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--red-light);
    margin-top: 8px;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-cta {
    gap: 12px;
}

/* ===================================
   CTA ENHANCEMENTS
   =================================== */
.cta-phone-btn {
    animation: pulse-phone 2s infinite;
}

@keyframes pulse-phone {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(220, 38, 38, 0); }
}

.cta-hours {
    margin-top: 20px;
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.45) !important;
    margin-bottom: 0 !important;
}

.cta-hours i {
    margin-right: 6px;
    color: var(--red);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-text .hero-title,
    .hero-text .hero-subtitle {
        text-align: center;
    }
    .hero-text .hero-buttons {
        justify-content: center;
    }
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-legal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio-item--large {
        grid-row: span 1;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
    .pricing-card.featured {
        transform: none;
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 280px;
    }
    .masonry-item.tall {
        grid-row: span 2;
    }
    .real-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .real-services-top-row {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* Navbar zawsze ciemny na mobile — hamburger zawsze widoczny */
    .navbar {
        background: rgba(17, 17, 17, 0.97) !important;
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        padding: 12px 0 !important;
    }
    /* Nav-container jako punkt odniesienia dla hamburgera */
    .nav-container {
        position: relative;
    }
    /* Hamburger — wyższa specyficzność + absolute, gwarantuje widoczność */
    .navbar .nav-toggle {
        display: flex !important;
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1100;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--black);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 0;
        transition: right 0.3s;
        z-index: 1000;
    }
    .nav-menu.active {
        right: 0;
    }
    .nav-menu a {
        display: block;
        padding: 14px 0;
        font-size: 1.05rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .nav-cta {
        display: none;
    }
    .counters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .about-preview-grid,
    .about-full-grid,
    .service-detail-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .service-detail:nth-child(even) .service-detail-grid {
        direction: ltr;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .process-step {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 50px;
    }
    .process-line {
        left: 20px;
    }
    .process-dot {
        left: 20px;
    }
    .process-content {
        width: 100% !important;
    }
    .values-grid {
        grid-template-columns: 1fr;
    }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 55%;
        padding-right: 0;
        justify-content: flex-end;
    }
    .timeline-line {
        left: 20px;
    }
    .timeline-dot {
        left: 20px;
    }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 50px;
        padding-right: 0;
    }
    .ba-slider {
        height: 300px;
    }
    .portfolio-grid,
    .real-services-grid,
    .real-services-top-row {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    .masonry-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 12px;
    }
    .masonry-item,
    .masonry-item.tall {
        aspect-ratio: 4/3;
        grid-row: span 1;
    }
    .blog-page-grid {
        grid-template-columns: 1fr;
    }
    .blog-post-card {
        grid-template-columns: 1fr;
    }
    .contact-info-cards {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    .section {
        padding: 70px 0;
    }
    .why-us-grid {
        grid-template-columns: 1fr;
    }
    .footer-legal-grid {
        grid-template-columns: 1fr 1fr;
    }
    .blog-card-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .cta-phone-btn span {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .counters-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .about-features {
        grid-template-columns: 1fr;
    }
    .counter-number {
        font-size: 2.5rem;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
    .footer-legal-grid {
        grid-template-columns: 1fr;
    }
    .hero-form {
        padding: 28px 20px;
    }
}

/* ===================================
   REDUCED MOTION / ANDROID FALLBACK
   Gdy użytkownik ma włączony tryb
   oszczędzania baterii lub ograniczenia
   animacji — elementy hero są od razu
   widoczne zamiast zostawać niewidoczne
   =================================== */
@media (prefers-reduced-motion: reduce) {
    .hero-badge,
    .hero-line,
    .hero-subtitle,
    .hero-buttons,
    .hero-form-wrapper {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    .scroll-reveal,
    .scroll-reveal-left,
    .scroll-reveal-right {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
