* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.main-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 20px 0;
}

.header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.company-name {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.company-type {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

.content {
    padding: 40px;
}

.section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    display: inline-block;
}

.company-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.info-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid #3498db;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.info-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.1rem;
    color: #34495e;
    line-height: 1.5;
}

.info-value a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-value a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.communications {
    background: #e8f6f3;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.comm-item {
    background: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    border-left: 4px solid #27ae60;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.comm-item:hover {
    transform: translateX(5px);
}

.comm-item:last-child {
    margin-bottom: 0;
}

.comm-date {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 10px;
    font-weight: 600;
}

.comm-content {
    color: #2c3e50;
    line-height: 1.6;
}

.comm-content h1,
.comm-content h2,
.comm-content h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.comm-content p {
    margin-bottom: 10px;
}

.comm-content ul,
.comm-content ol {
    margin-left: 20px;
    margin-bottom: 10px;
}

.no-communications {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 40px;
    background: white;
    border-radius: 10px;
}

.contact-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 30px;
}

.footer-text {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Animacje ładowania */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading spinner dla formularza */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading .submit-btn {
    position: relative;
}

.loading .submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsywność */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .company-name {
        font-size: 2rem;
    }

    .content {
        padding: 20px;
    }

    .company-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .info-card {
        padding: 20px;
    }

    .communications {
        padding: 20px;
    }

    .contact-form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .company-name {
        font-size: 1.7rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .header {
        padding: 30px 20px;
    }

    .content {
        padding: 15px;
    }

    .info-card {
        padding: 15px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px;
    }

    .submit-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
    }

    .main-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .header {
        background: #2c3e50 !important;
        -webkit-print-color-adjust: exact;
    }

    .contact-form,
    .submit-btn {
        display: none;
    }
}