:root {
    --blue: #0057a8;
    --black: #111111;
    --light-gray: #f4f4f4;
    --success: #1e9c4b;
    --error: #c0392b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f7f7f7;
    color: var(--black);
}

.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 16px 60px;
}

header {
    text-align: center;
    padding: 10px 0 0;
}

header img.logo {
    max-width: 200px;
    height: auto;
}

header p.sub {
    margin: 8px 0 0;
    color: #555;
    font-size: 0.95rem;
}

.lang-switch {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #777;
}

.lang-switch a {
    color: var(--blue);
    text-decoration: none;
    margin: 0 4px;
}

.lang-switch a:hover {
    text-decoration: underline;
}

.section {
    margin-top: 30px;
}

.section h2 {
    margin-bottom: 12px;
    font-size: 1.6rem;
    color: var(--blue);
    border-bottom: none;
    display: inline-block;
    padding-bottom: 4px;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}

.card {
    background: #ffffff;
    border-radius: 10px;
    padding: 12px 12px 14px;
    flex: 1 1 240px;
    min-width: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #ddd;
}

.card h3 {
    margin: 0 0 4px;
    font-size: 1.1rem;
}

.card p {
    margin: 2px 0;
    font-size: 0.95rem;
}

.card .tagline {
    color: #555;
    margin-bottom: 6px;
}

.card .meta {
    margin-top: auto;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.card .price {
    font-weight: 700;
}

.card .note {
    font-size: 0.85rem;
    color: #666;
}

/* Lomake */

.contact {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 18px 22px;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e0e0e0;
}

.contact h2 {
    border: none;
    padding: 0;
    margin-bottom: 6px;
    color: var(--blue);
}

.contact p {
    margin: 0 0 14px;
    font-size: 0.95rem;
    color: #555;
}

.alert {
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.alert.success {
    background: #e5f7eb;
    color: var(--success);
    border: 1px solid #bfe9cd;
}

.alert.error {
    background: #fdecea;
    color: var(--error);
    border: 1px solid #f5c1b8;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.form-grid .full {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    font-family: inherit;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-row {
    margin-top: 8px;
    text-align: right;
}

button[type="submit"] {
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 9px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

button[type="submit"]:hover {
    opacity: 0.92;
}

.small-note {
    margin-top: 6px;
    font-size: 0.8rem;
    color: #777;
}

.small-note i {
    margin-right: 6px;
}

footer {
    margin-top: 26px;
    text-align: center;
    font-size: 0.8rem;
    color: #777;
}

@media (max-width: 720px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}
