* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

p, h1, h2, h3, h4, h5, h6 {
    orphans: 2;
    widows: 2;
    text-wrap: pretty;
}

@supports (text-wrap: pretty) {
    p {
        text-wrap: pretty;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
}

.btn-primary {
    background: #e8582d;
    color: #fff;
    padding: 12px 28px;
    min-height: 44px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(232, 88, 45, 0.2);
    white-space: nowrap;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: #d14d26;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 88, 45, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(232, 88, 45, 0.2);
    }
    50% {
        box-shadow: 0 4px 25px rgba(232, 88, 45, 0.4);
    }
}

.hero {
    background: linear-gradient(135deg, #ffffff 0%, #fef5f1 100%);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 88, 45, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-blob 20s ease-in-out infinite;
}

@keyframes float-blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.hero-text p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
    overflow-wrap: break-word;
    hyphens: none;
    text-align: left;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic {
    width: 100%;
    max-width: 320px;
    height: auto;
    animation: float 6s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.hero-graphic:hover {
    transform: translateY(-10px) scale(1.02);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.section {
    padding: 80px 0;
    width: 100%;
    max-width: 100%;
}

#oferty {
    width: 100%;
    max-width: 100%;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #1a1a1a;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #e8582d, transparent);
    border-radius: 2px;
}

#oferty {
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
}

#oferty .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

#oferty .section-title {
    padding: 0 24px;
    margin-bottom: 50px;
}

#inisWidget {
    min-height: 400px;
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.widget-loader {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    padding: 0 24px;
}

.skeleton-card {
    background: #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.skeleton-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.skeleton-image {
    width: 100%;
    height: 150px;
    background: #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
}

.skeleton-text {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
}

.skeleton-text.short {
    width: 60%;
}

#inisWidget:not(:empty) ~ .widget-loader {
    display: none;
}

.widget-error {
    display: none;
    padding: 60px 20px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 12px;
    margin-top: 30px;
}

.widget-error.show {
    display: block;
}

.error-content svg {
    margin-bottom: 20px;
}

.error-title {
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.error-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.newsletter {
    background: linear-gradient(135deg, #fef5f1 0%, #ffffff 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 88, 45, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-blob 25s ease-in-out infinite reverse;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.newsletter-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.newsletter-content p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    overflow-wrap: break-word;
    hyphens: none;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #e8582d;
    box-shadow: 0 0 0 4px rgba(232, 88, 45, 0.1);
    transform: translateY(-2px);
}

.newsletter-form input:hover {
    border-color: #e8582d;
}

.newsletter-form button {
    min-height: 44px;
    text-align: center;
}

footer {
    background: #2b2b2b;
    color: #fff;
    padding: 60px 0 30px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-section-right {
    grid-column-start: 3;
}

.footer-section-right h3 {
    margin-bottom: 25px;
}

.footer-section .logo.footer-logo {
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-section p {
    color: #b0b0b0;
    line-height: 1.8;
    overflow-wrap: break-word;
    hyphens: none;
}

.footer-section a {
    color: #e8582d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ff6b3d;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    padding-left: 0;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e8582d;
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #e8582d;
    padding-left: 10px;
}

.footer-links a:hover::before {
    width: calc(100% - 10px);
}

@media (hover: none) and (pointer: coarse) {
    .footer-links a:active {
        color: #e8582d;
        padding-left: 0;
    }

    .footer-links a:active::before {
        width: 100%;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #888;
    font-size: 14px;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 {
    transition-delay: 0.1s;
}

.fade-in-delay-2 {
    transition-delay: 0.2s;
}

.fade-in-delay-3 {
    transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-graphic {
        animation: none;
    }

    .btn-primary.pulse {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}

@media (max-width: 768px) {
    .header-content {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .header-content .logo:only-child {
        margin: 0 auto;
    }

    .logo {
        height: 36px;
    }

    .btn-primary {
        padding: 8px 16px;
        font-size: 14px;
        min-height: 36px;
    }

    header .btn-primary {
        padding: 8px 12px;
        font-size: 13px;
        min-height: 36px;
        width: auto;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text h1 {
        font-size: 28px;
        text-align: center;
    }

    .hero-text p {
        font-size: 16px;
        overflow-wrap: break-word;
        hyphens: none;
        text-align: center;
    }

    .hero-text .btn-primary {
        margin-bottom: 20px;
    }

    .hero-image {
        justify-content: center;
    }

    .hero-graphic {
        max-width: 100%;
        animation-duration: 8s;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
        text-align: center;
    }

    .newsletter-content h2 {
        font-size: 24px;
    }

    .newsletter-content p {
        font-size: 16px;
        overflow-wrap: break-word;
        hyphens: none;
    }

    .container {
        padding: 0 16px;
    }

    #oferty .container {
        padding: 0;
    }
}


@media (max-width: 395px) {
    .header-content {
        justify-content: center;
    }

    .header-content .logo:only-child {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 32px;
    }

    .btn-primary {
        padding: 6px 12px;
        font-size: 13px;
        min-height: 32px;
    }

    header .btn-primary {
        padding: 6px 10px;
        font-size: 12px;
        min-height: 32px;
        white-space: normal;
        line-height: 1.3;
        width: auto;
    }

    .header-content {
        gap: 20px;
    }

    .hero-text h1 {
        font-size: 24px;
    }

    .hero-text p {
        font-size: 15px;
    }

    .section-title {
        font-size: 22px;
    }

    .newsletter-content h2 {
        font-size: 22px;
    }
}

