body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    background: linear-gradient(to right, #f7f3f2, #e5e7eb);
    color: #4b5563;
    line-height: 1.5;
}

/* Header */
header {
    text-align: center;
    padding: 50px 20px;
    background: #f4b7a4;
}

header h1 {
    margin: 0;
    font-size: 2.8em;
    color: #4b5563;
}

header p {
    margin-top: 10px;
}

.logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #f4b7a4;
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(75, 85, 99, 0.16);
}

/* Controls */
.controls {
    text-align: center;
    padding: 20px;
}

button, input {
    padding: 10px 15px;
    margin: 5px;
    border-radius: 20px;
    border: none;
    font-size: 1rem;
}

button {
    background: #f4b7a4;
    cursor: pointer;
    color: #374151;
}

button:hover {
    background: #ef9f84;
}

input {
    width: min(200px, 80vw);
}

/* Grid */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card */
.card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-8px);
}

.card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.card h3 {
    padding: 10px;
    margin: 0;
    color: #4b5563;
}

.card button {
    margin: 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.modal-content {
    background: white;
    margin: 8% auto;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    text-align: center;
}

.modal img {
    width: 100%;
    border-radius: 10px;
}

.close {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

/* Contact */
.contact {
    padding: 40px;
    background: #e5e7eb;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact input, .contact textarea {
    width: min(80%, 400px);
    margin: 10px auto;
    display: block;
    border-radius: 10px;
    border: 1px solid #ccc;
    padding: 10px 15px;
    font: inherit;
    box-sizing: border-box;
}

.contact textarea {
    min-height: 140px;
    resize: vertical;
}

.contact button {
    background: #f4b7a4;
    color: #374151;
}

@media (max-width: 768px) {
    header {
        padding: 35px 15px;
    }

    header h1 {
        font-size: 2.1em;
    }

    .controls {
        padding: 15px 10px;
    }

    .container {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .card img {
        height: 220px;
    }

    .contact {
        padding: 25px 15px;
    }
}

@media (max-width: 480px) {
    button, input {
        width: calc(100% - 10px);
        margin: 6px 0;
    }

    .card button {
        width: calc(100% - 20px);
    }
}
