/*
    Arsinte Smart Construct
    One stylesheet: shared pieces first, then the public site (body.site), then the administration (body.admin).
*/

:root {
    /* colours from the logo: purple lettering, heat orange, cooling blue, solar green */
    --logo-purple: #4a155b;
    --logo-orange: #f34613;
    --logo-blue: #00aeff;
    --logo-violet: #9222e8;
    --logo-green: #6cb529;
    --logo-stripe: linear-gradient(90deg, var(--logo-orange) 0 25%, var(--logo-blue) 25% 50%, var(--logo-violet) 50% 75%, var(--logo-green) 75%);

    --bg: #f6f4f8;
    --surface: #ffffff;
    --text: #1c1724;
    --muted: #625a6e;
    --border: #e5e0ea;
    --navy: #3d1150;
    --navy-dark: #250a33;
    --primary: #6a1fa0;
    --primary-hover: #551882;
    --accent: #d9480f;
    --accent-hover: #bb3c0b;
    --eco: #2f7d16;
    --tint: #f4ecfa;
    --on-dark: #d9c9e6;
    --on-dark-muted: #c4b2d3;
    --warm-light: #ffb27a;
    --danger: #c92a2a;
    --ok-bg: #e6f4ea;
    --ok-text: #1e6b34;
    --due-bg: #fff3d6;
    --due-text: #8a5a00;
    --overdue-bg: #fde4e4;
    --overdue-text: #a61e1e;
    --star: #f5a623;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(37, 10, 51, .06), 0 4px 16px rgba(37, 10, 51, .08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body.site { background: var(--surface); }
body.admin { font-size: 15px; line-height: 1.5; }

a { color: var(--primary); }
img { max-width: 100%; }

h1, h2, h3 {
    margin: 0 0 .5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
}
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }

.icon { width: 1.2em; height: 1.2em; vertical-align: -.2em; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mt { margin-top: 20px; }
.mb { margin-bottom: 12px; }

/* buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.4;
    transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: #f1edf5; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-danger { color: var(--danger); border-color: #f0b4b4; }
.btn-danger:hover { background: var(--overdue-bg); }
.btn-small { padding: 4px 10px; font-size: .85rem; }
.btn-large { padding: 13px 24px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.link-button { background: none; border: 0; padding: 0; color: var(--danger); font: inherit; font-size: .875rem; cursor: pointer; text-decoration: underline; }
.link-plain { color: var(--primary); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions form { margin: 0; }
.actions-end { justify-content: flex-end; }
.actions-center { justify-content: center; }

/* forms */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.field-wide { grid-column: 1 / -1; }
.field-end { justify-content: flex-end; gap: 10px; }
label, legend { font-weight: 600; font-size: .9rem; }
legend { padding: 0; margin-bottom: 6px; }
.hint { color: var(--muted); font-size: .85rem; margin: 0; font-weight: normal; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], input[type=tel], input[type=file], select, textarea {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #cbc3d4;
    border-radius: 8px;
    font: inherit;
    background: #fff;
    color: var(--text);
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: var(--primary); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .85rem; margin: 0; }
.checkbox { display: flex; gap: 8px; align-items: flex-start; font-weight: normal; }
.checkbox input { margin-top: 5px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 16px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hp { position: absolute; left: -9999px; }

.alert { padding: 12px 16px; border-radius: 8px; margin: 0 0 16px; border: 1px solid transparent; }
.alert-success { background: var(--ok-bg); color: var(--ok-text); border-color: #bfe3c8; }
.alert-error { background: var(--overdue-bg); color: var(--overdue-text); border-color: #f4c2c2; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: .78rem; font-weight: 600; white-space: nowrap; vertical-align: middle; }
.badge-ok { background: var(--ok-bg); color: var(--ok-text); }
.badge-due { background: var(--due-bg); color: var(--due-text); }
.badge-overdue { background: var(--overdue-bg); color: var(--overdue-text); }
.badge-muted { background: #eceef2; color: var(--muted); }

.stars { display: inline-flex; gap: 1px; font-size: 1.05rem; line-height: 1; vertical-align: middle; }
.star { color: #d5dae1; }
.star.on { color: var(--star); }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}
.details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; overflow-wrap: anywhere; }

/* ===================================================================
   Public site
   =================================================================== */

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 8px; z-index: 10; background: #fff; padding: 8px 12px; border-radius: 6px; }

.infobar { background: var(--navy-dark); color: var(--on-dark-muted); font-size: .85rem; }
.infobar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; flex-wrap: wrap; }
.infobar a { color: var(--on-dark); text-decoration: none; }
.infobar a:hover { color: #fff; }
.infobar-contact { display: flex; gap: 20px; flex-wrap: wrap; }

.site-header { background: #fff; position: sticky; top: 0; z-index: 5; }
.site-header::after, .site-footer::before, .topbar::after { content: ""; display: block; height: 4px; background: var(--logo-stripe); }
.site-header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--logo-purple); margin-right: auto; }
.logo-mark { width: 56px; height: auto; display: block; }
/* the company name next to the mark, in the colour and spacing of the logo */
.logo-text { display: flex; flex-direction: column; line-height: 1.1; color: #000; font-size: .78rem; letter-spacing: .32em; text-transform: lowercase; }
.logo-text strong { color: var(--logo-purple); font-size: 1.45rem; font-weight: 800; letter-spacing: .28em; text-transform: uppercase; }
.logo-light .logo-text { color: var(--on-dark); }
.logo-light .logo-text strong { color: #fff; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.site-nav a:not(.btn):hover { background: var(--bg); }
.site-nav a.active { color: var(--primary); }
.site-nav .btn { margin-left: 8px; }
.nav-toggle { display: none; }
.menu-toggle-label { display: none; }

@media (max-width: 900px) {
    .menu-toggle-label { display: flex; flex-direction: column; gap: 5px; padding: 10px; cursor: pointer; }
    .menu-toggle-label span { display: block; width: 24px; height: 2px; background: var(--logo-purple); border-radius: 2px; }
    .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: 16px; }
    .site-nav .btn { margin: 8px 0 0; }
    .nav-toggle:checked ~ .site-nav { display: flex; }
    .infobar-inner > span:first-child { display: none; }
}

.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--accent); margin: 0 0 10px; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 8px; }

/* hero */
.hero {
    background:
        radial-gradient(circle at 88% 12%, rgba(243,70,19,.32), transparent 38%),
        radial-gradient(circle at 6% 92%, rgba(0,174,255,.26), transparent 42%),
        radial-gradient(circle at 55% 115%, rgba(108,181,41,.24), transparent 40%),
        linear-gradient(135deg, var(--navy-dark), var(--navy) 55%, #5a1a78);
    color: #fff;
}
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; padding: 80px 20px 88px; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 16px; }
.hero .lead { color: var(--on-dark); font-size: 1.2rem; max-width: 620px; }
.hero .eyebrow { color: var(--warm-light); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.hero-rating { display: flex; align-items: center; gap: 10px; color: var(--on-dark); flex-wrap: wrap; margin: 0; }
.hero-rating strong { color: #fff; }
.hero-logo { background: #fff; border-radius: 24px; padding: 28px 32px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.hero-logo img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) {
    .hero-inner { grid-template-columns: 1fr; padding: 56px 20px; }
    .hero-logo { display: none; }
}

.brands-strip { border-bottom: 1px solid var(--border); background: #fff; }
.brands-strip-inner { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; padding: 24px 20px; }
.brands-label { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.brand-logo img { height: 34px; width: auto; display: block; }
.brand-name { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; color: #43505f; }
.brand-daikin { color: #0097e0; }
.brand-vaillant { color: #00917e; }
.brand-lutherm { color: #c8102e; }

/* sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }

.page-hero { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: #fff; padding: 56px 0 48px; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-hero .lead { color: var(--on-dark); max-width: 760px; }
.page-hero .eyebrow { color: var(--warm-light); display: flex; align-items: center; gap: 6px; }
.page-hero .tags { margin: 8px 0 12px; }
.page-hero .tag { background: rgba(255,255,255,.12); color: #fff; }
.page-hero-icon { display: flex; gap: 24px; align-items: center; }
.breadcrumb { font-size: .9rem; color: #a48fb6; margin: 0 0 8px; }
.breadcrumb a { color: var(--on-dark); }

/* services */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.service-card {
    display: flex; flex-direction: column; gap: 8px;
    padding: 26px; border: 1px solid var(--border); border-radius: 14px;
    background: #fff; color: var(--text); text-decoration: none;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d6c8e2; }
.service-card p { color: var(--muted); margin: 0; flex: 1; font-size: .95rem; }
.service-card .more { color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }
.service-icon {
    display: grid; place-items: center;
    width: 52px; height: 52px; border-radius: 12px;
    background: var(--tint); color: var(--primary); margin-bottom: 8px; flex-shrink: 0;
}
.service-icon .icon { width: 28px; height: 28px; }
.tone-orange { background: #fdece4; color: #c63d0c; }
.tone-blue { background: #e3f4fd; color: #0577b3; }
.tone-purple { background: var(--tint); color: var(--primary); }
.tone-green { background: #ecf6e3; color: #3c7d14; }
.service-icon-large { width: 72px; height: 72px; border-radius: 16px; }
.service-icon-large .icon { width: 40px; height: 40px; }

.service-list { display: flex; flex-direction: column; gap: 20px; }
.service-row { display: flex; gap: 24px; padding: 28px; border: 1px solid var(--border); border-radius: 14px; scroll-margin-top: 90px; }
.service-row h2 a { color: var(--text); text-decoration: none; }
.service-row h2 a:hover { color: var(--primary); }
.service-row p { color: var(--muted); margin: 0 0 12px; }
@media (max-width: 600px) { .service-row { flex-direction: column; gap: 8px; padding: 20px; } }

.checklist { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { color: var(--eco); margin-top: 3px; }
.checklist-compact { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); font-size: .95rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }

.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.brand-grid-small { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.brand-card { padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.brand-card p { color: var(--muted); margin: 10px 0 0; font-size: .95rem; }

/* why */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
.why-item > .icon { width: 36px; height: 36px; color: var(--accent); margin-bottom: 10px; }
.why-item p { color: var(--muted); margin: 0; }

/* projects */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.project-card {
    display: flex; flex-direction: column;
    border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
    background: #fff; color: var(--text); text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.project-card-img { aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--tint), #f6f8fb); }
.project-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-card-placeholder { display: grid; place-items: center; height: 100%; color: #b99fd0; }
.project-card-placeholder .icon { width: 64px; height: 64px; }
.project-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.project-card-body h3 { margin: 0; }
.project-card-meta { color: var(--muted); font-size: .9rem; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 99px; background: var(--tint); color: var(--primary); font-size: .78rem; font-weight: 600; text-decoration: none; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters a { padding: 7px 14px; border: 1px solid var(--border); border-radius: 99px; text-decoration: none; color: var(--text); font-weight: 600; font-size: .9rem; }
.filters a span { color: var(--muted); font-weight: normal; margin-left: 2px; }
.filters a:hover { border-color: var(--primary); }
.filters a.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filters a.active span { color: var(--on-dark); }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 36px; }
.pagination a { padding: 7px 13px; border: 1px solid var(--border); border-radius: 8px; text-decoration: none; color: var(--text); }
.pagination a.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.empty-state { padding: 48px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: 14px; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.side-card { position: sticky; top: 96px; padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.side-card h2 { margin: 0; }
.side-card h3 { margin: 12px 0 0; font-size: .95rem; }
.side-card p { margin: 0; }
.side-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.side-links a { text-decoration: none; }

.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 32px; }
.prose p, .prose ul { margin: 0 0 16px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 32px; }
.gallery-item { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; font-size: .85rem; }
.gallery-main { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

/* reviews */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.review { margin: 0; padding: 24px; background: #fff; border: 1px solid var(--border); border-radius: 14px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.review blockquote { margin: 0; flex: 1; }
.review blockquote p { margin: 0 0 8px; }
.review figcaption { display: flex; flex-direction: column; gap: 2px; font-size: .9rem; }
.review figcaption a { text-decoration: none; }
.verified { color: var(--eco); display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; font-weight: 600; }
.review-reply { padding: 12px 14px; background: var(--bg); border-left: 3px solid var(--primary); border-radius: 0 8px 8px 0; font-size: .92rem; }
.review-reply p { margin: 4px 0 0; }

/* CTA */
.cta-band {
    display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
    padding: 40px; border-radius: 18px; color: #fff;
    background: radial-gradient(circle at 90% 10%, rgba(243,70,19,.35), transparent 50%), linear-gradient(135deg, var(--navy), #5a1a78);
}
.cta-band h2 { font-size: 1.8rem; }
.cta-band p { color: var(--on-dark); margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.code-hint { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 18px 22px; border: 1px dashed #d6c8e2; border-radius: 14px; }
.code-hint .icon { width: 28px; height: 28px; color: var(--accent); }
.code-hint p { margin: 0; }

/* forms on the public site */
.form-card { padding: 32px; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.form-card-flat { box-shadow: none; }
.form-card .field { margin-bottom: 18px; }
.form-card .form-grid .field { margin-bottom: 0; }
.form-card-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff1e4; color: var(--accent); margin-bottom: 16px; }
.form-card.center .form-card-icon { margin: 0 auto 16px; }
.form-card-icon .icon { width: 28px; height: 28px; }
.code-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.4rem !important; letter-spacing: .15em; text-align: center; text-transform: uppercase; }

/* star picker: radios are in the order 5..1 and shown right to left, so ~ can light up the lower ones */
.rating-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label { font-size: 2.4rem; line-height: 1; color: #d5dae1; cursor: pointer; transition: color .1s, transform .1s; }
.rating-input label:hover { transform: scale(1.1); }
.rating-input input:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label { color: var(--star); }
.rating-input input:focus-visible + label { outline: 2px solid var(--primary); border-radius: 4px; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { width: 22px; height: 22px; color: var(--primary); margin-top: 2px; }
.contact-list span { display: block; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.contact-list a { text-decoration: none; font-weight: 600; }

/* footer */
.site-footer { background: var(--navy-dark); color: var(--on-dark-muted); font-size: .95rem; }
.site-footer::before { margin-bottom: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-contact li { display: flex; gap: 8px; align-items: flex-start; }
.footer-contact .icon { margin-top: 4px; color: var(--warm-light); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.footer-bottom a { color: #9580a8; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 48px 0; }
    .cta-band, .form-card { padding: 24px; }
    .gallery { grid-template-columns: 1fr 1fr; }
}

/* ===================================================================
   Administration
   =================================================================== */

.topbar { background: var(--navy-dark); color: #fff; }
.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 56px;
    gap: 8px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 1.1rem; text-decoration: none; margin-right: 24px; }
.brand img { width: 34px; height: auto; }
.brand span { color: var(--warm-light); }
.nav { display: flex; flex: 1; align-items: center; gap: 4px; }
.nav a { color: var(--on-dark); text-decoration: none; padding: 8px 12px; border-radius: 6px; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a.active { color: #fff; background: rgba(255,255,255,.14); }
.nav-user { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-name { color: #fff; padding: 0 8px; }
.nav-toggle-label { display: none; }

@media (max-width: 960px) {
    .nav-toggle-label {
        display: block;
        margin-left: auto;
        padding: 6px 12px;
        border: 1px solid rgba(255,255,255,.3);
        border-radius: 6px;
        cursor: pointer;
    }
    .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
    .nav-toggle:checked ~ .nav { display: flex; }
    .nav-user { margin-left: 0; flex-direction: column; align-items: stretch; border-top: 1px solid rgba(255,255,255,.15); padding-top: 8px; }
    .nav-name { padding: 8px 12px; }
}

.container { max-width: 1200px; margin: 0 auto; padding: 24px 16px; }
.footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 16px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--muted); margin: 4px 0 0; }

.admin .card > h2:first-child { margin-bottom: 12px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.card p:last-child { margin-bottom: 0; }

.grid { display: grid; gap: 20px; margin-bottom: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-2 > .card { margin-bottom: 0; }
.stack > * + * { margin-top: 16px; }
.stack > .card { margin-bottom: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.stat-link { color: inherit; text-decoration: none; }
.stat-link:hover { border-color: var(--primary); }
.stat-warn { border-color: #f3c97a; background: #fffaf0; }
.stat-value { font-size: 1.9rem; font-weight: 700; }
.stat-label { color: var(--muted); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.list li:last-child { border-bottom: 0; }
.list p { margin: 2px 0 0; }
.unread a { font-weight: 700; }
tr.unread { background: #f8f3fc; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.table tbody tr:hover { background: #fafbfc; }
.empty { color: var(--muted); padding: 12px 0; margin: 0; }

.search { display: flex; gap: 8px; margin-bottom: 16px; max-width: 520px; }
.search input { flex: 1; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.tabs a { padding: 8px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; }
.tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }

.code-card { border-color: #f3c97a; background: #fffaf0; }
.code-big { font-size: 2rem; font-weight: 700; margin: 4px 0 8px; color: var(--navy); }
.code-card textarea { font-size: .9rem; background: #fff; }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.photo { margin: 0; background: #f8f9fb; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.photo-cover { border-color: var(--eco); }
.photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e9ecef; }
.photo figcaption { padding: 6px 10px; font-size: .85rem; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.photo figcaption form { margin: 0; }
.photo-caption { margin: 0; padding: 0 10px 8px; color: var(--muted); }
.upload-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
@media (max-width: 760px) { .upload-form { grid-template-columns: 1fr; } }

.review-admin p { margin: 0 0 8px; }
.review-admin .review-reply { margin-bottom: 12px; }

.auth-box { max-width: 400px; margin: 48px auto; }
.auth-box .field { margin-bottom: 16px; }
