:root {
    --c-bg: #f6f9f8;
    --c-surface: #ffffff;
    --c-text: #1f2d2b;
    --c-muted: #5f7370;
    --c-primary: #2a8a82;
    --c-primary-dark: #1f6c66;
    --c-border: #e1e8e6;
    --c-danger: #c0392b;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.6;
    font-size: 16px;
}

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-primary);
    text-decoration: none;
    letter-spacing: 0.5px;
}
.logo span { color: var(--c-muted); font-weight: 400; font-size: 0.9rem; }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
    color: var(--c-text);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: background 0.15s, color 0.15s;
    font-weight: 500;
}
.main-nav a:hover { background: var(--c-bg); color: var(--c-primary); }

/* Main */
.main-content { padding: 40px 20px; min-height: 60vh; }
h1 { font-size: 2rem; margin-top: 0; color: var(--c-primary-dark); }
h2 { font-size: 1.4rem; color: var(--c-primary-dark); margin-top: 2rem; }
p { margin: 0.8em 0; }
a { color: var(--c-primary); }
a:hover { color: var(--c-primary-dark); }
.card a { overflow-wrap: anywhere; }

.lead { font-size: 1.15rem; color: var(--c-muted); }

/* Cards */
.card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 24px;
    margin: 20px 0;
    box-shadow: var(--shadow);
    min-width: 0;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-2 > * { min-width: 0; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

/* Pricelist & Hours table */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--c-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.table th, .table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--c-border);
}
.table th { background: #eef5f3; font-weight: 600; color: var(--c-primary-dark); }
.table tr:last-child td { border-bottom: none; }
.table td.price { white-space: nowrap; font-weight: 600; color: var(--c-primary-dark); text-align: right; }
.table td.actions { text-align: right; white-space: nowrap; }

/* Services list */
.services-list { list-style: none; padding: 0; }
.services-list li {
    padding: 12px 0 12px 28px;
    border-bottom: 1px solid var(--c-border);
    position: relative;
}
.services-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--c-primary);
    font-weight: 700;
}
.services-list li:last-child { border-bottom: none; }

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 28px;
}
.gallery-item {
    display: block;
    overflow: hidden;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--c-text);
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}
.gallery-item:hover {
    color: var(--c-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(31,45,43,0.12);
}
.gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.gallery-caption {
    display: block;
    padding: 10px 12px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Hours */
.hours { list-style: none; padding: 0; margin: 0; }
.hours li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--c-border);
}
.hours li:last-child { border-bottom: none; }
.hours .day { font-weight: 600; }
.hours li > span:last-child {
    text-align: right;
}
.hours .time {
    text-align: right;
}
.hours .afternoon-note {
    display: block;
    color: var(--c-muted);
    font-size: 0.9rem;
    line-height: 1.35;
    margin-top: 2px;
}

.contact-note {
    background: #eef5f3;
    border-left: 4px solid var(--c-primary);
    border-radius: var(--radius);
    color: var(--c-text);
    padding: 12px 14px;
}
.contact-note strong {
    color: var(--c-primary-dark);
}

.hours-schedule {
    margin-top: 10px;
}
.hours-row {
    display: grid;
    grid-template-columns: 90px minmax(110px, 1fr) minmax(210px, 1.55fr);
    gap: 12px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px dashed var(--c-border);
}
.hours-row:last-child {
    border-bottom: none;
}
.hours-row-head {
    padding-top: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--c-border);
    color: var(--c-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}
.hours-schedule .day {
    font-weight: 700;
}
.hours-period {
    min-width: 0;
}
.hours-period strong {
    display: block;
    font-weight: 700;
}
.hours-label {
    display: none;
}
.hours-afternoon {
    background: #eef5f3;
    border-left: 4px solid var(--c-primary);
    border-radius: 6px;
    padding: 8px 10px;
    margin-top: -5px;
}
.hours-afternoon small {
    display: block;
    color: var(--c-muted);
    font-size: 0.84rem;
    line-height: 1.35;
    margin-top: 2px;
}
.hours-closed {
    color: var(--c-muted);
    font-size: 0.92rem;
}

@media (max-width: 520px) {
    .header-inner {
        align-items: flex-start;
    }
    .main-nav {
        width: 100%;
    }
    .hours li {
        display: block;
    }
    .hours li > span:last-child,
    .hours .time {
        display: block;
        text-align: left;
        margin-top: 4px;
    }
    .hours-row {
        display: block;
        padding: 15px 0;
    }
    .hours-row-head {
        display: none;
    }
    .hours-schedule .day,
    .hours-period {
        display: block;
    }
    .hours-period {
        margin-top: 7px;
    }
    .hours-label {
        display: block;
        color: var(--c-muted);
        font-size: 0.78rem;
        font-weight: 700;
        line-height: 1.25;
        margin-bottom: 2px;
        text-transform: uppercase;
    }
    .hours-afternoon {
        margin-top: 10px;
    }
}

/* Buttons & Forms */
.btn {
    display: inline-block;
    background: var(--c-primary);
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--radius);
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    transition: background 0.15s;
}
.btn:hover { background: var(--c-primary-dark); color: #fff; }
.btn-secondary { background: var(--c-muted); }
.btn-secondary:hover { background: #45524f; }
.btn-danger { background: var(--c-danger); }
.btn-danger:hover { background: #962d22; }
.btn-sm { padding: 6px 12px; font-size: 0.9rem; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    background: var(--c-surface);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(42,138,130,0.15);
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}
.alert-error { background: #fdecea; color: var(--c-danger); border: 1px solid #f5c6c2; }
.alert-success { background: #e6f4ea; color: #1e6f3a; border: 1px solid #b6dfc3; }
.alert-info { background: #eaf3f9; color: #1c5a85; border: 1px solid #c2dcee; }

.closure-alert {
    background: #fff7e8;
    border: 1px solid #f2d39a;
    border-left: 6px solid #d4891c;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 26px 0;
    padding: 18px 22px;
}
.closure-alert h2 {
    color: #8a4f05;
    margin: 0 0 8px;
}
.closure-alert p {
    margin: 0.35em 0;
}

/* Footer */
.site-footer {
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
    margin-top: 60px;
    padding: 24px 0;
    color: var(--c-muted);
    font-size: 0.9rem;
}
.footer-inner { text-align: center; }

/* Admin */
.admin-bar {
    background: var(--c-primary-dark);
    color: #fff;
    padding: 10px 0;
    margin-bottom: 20px;
}
.admin-bar .container { display: flex; justify-content: space-between; align-items: center; }
.admin-bar a { color: #fff; text-decoration: none; margin-left: 16px; }
.admin-bar a:hover { text-decoration: underline; }
.admin-closure-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 16px;
}
.admin-closure-message,
.admin-closure-form .checkbox-line,
.admin-closure-form .btn {
    grid-column: 1 / -1;
}
.checkbox-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.checkbox-line input {
    width: auto;
}
.admin-closure-table {
    margin-top: 14px;
}
.admin-closure-table .actions form {
    display: inline;
}
@media (max-width: 720px) {
    .admin-closure-form {
        grid-template-columns: 1fr;
    }
}
