:root {
    --water: #32b9c7;
    --water-dark: #138290;
    --leather: #2b0704;
    --leaf: #496d3a;
    --soil: #6d4a30;
    --paper: #fffaf2;
    --mist: #eefbfa;
    --ink: #221816;
    --muted: #6f625c;
    --line: rgba(43, 7, 4, 0.14);
    --shadow: 0 16px 36px rgba(43, 7, 4, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.site-hero {
    min-height: 86vh;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(43, 7, 4, 0.94), rgba(43, 7, 4, 0.62)),
        var(--water);
    overflow: hidden;
}

.section-inner,
.footer-inner,
.admin-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    font-weight: 800;
    text-decoration: none;
}

.brand img {
    width: 78px;
    height: auto;
    object-fit: contain;
}

.button-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    padding: 8px 14px;
    color: inherit;
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
}

.hero-content {
    width: min(1120px, calc(100% - 32px));
    min-height: 86vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 500px);
    align-items: center;
    gap: 40px;
    padding: 64px 0 72px;
}

.eyebrow,
.section-kicker {
    margin: 0 0 10px;
    color: var(--water);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 740px;
    margin: 0;
    font-size: clamp(2.35rem, 9vw, 5.8rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.owner {
    margin: 22px 0 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.contact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.contact-list a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    border: 2px solid rgba(255, 255, 255, 0.78);
    padding: 10px 15px;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
}

.logo-card {
    width: min(100%, 520px);
    padding: clamp(16px, 3vw, 28px);
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 46px rgba(43, 7, 4, 0.2);
    overflow: hidden;
}

.hero-mark {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.season-section,
.gallery-section {
    padding: 64px 0;
}

.warm-season {
    background: var(--mist);
}

.cool-season {
    background: #f4efe7;
}

.section-inner h2 {
    margin: 0;
    color: var(--leather);
    font-size: clamp(1.85rem, 5vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.service-grid article {
    border-top: 5px solid var(--water-dark);
    padding: 20px 0 0;
}

.service-grid h3 {
    margin: 0 0 8px;
    color: var(--leather);
    font-size: 1.2rem;
}

.service-grid p {
    margin: 0;
    color: var(--muted);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.gallery-section {
    background: #fff;
}

.gallery-section .button-link {
    color: var(--leather);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.gallery-grid figure {
    margin: 0;
    border: 1px solid var(--line);
    background: var(--paper);
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-grid figcaption {
    padding: 10px 12px;
    color: var(--muted);
    font-size: 0.94rem;
}

.empty-gallery {
    margin: 0;
    color: var(--muted);
}

.site-footer {
    color: var(--paper);
    background: var(--leather);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 0;
}

.site-footer p {
    margin: 0;
}

.admin-page {
    background: var(--mist);
}

.admin-shell {
    padding: 24px 0 60px;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    color: var(--leather);
}

.admin-header .brand img {
    width: 78px;
}

.admin-panel {
    max-width: 760px;
    border: 1px solid var(--line);
    padding: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

.admin-panel h1 {
    margin: 0 0 18px;
    color: var(--leather);
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    line-height: 1.05;
}

.stacked-form {
    display: grid;
    gap: 10px;
}

.stacked-form label {
    color: var(--leather);
    font-weight: 800;
}

.stacked-form input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    padding: 9px 11px;
    color: var(--ink);
    font: inherit;
    background: #fff;
}

button {
    min-height: 44px;
    border: 0;
    padding: 10px 16px;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    background: var(--leather);
}

.secondary-button {
    color: var(--leather);
    border: 1px solid var(--line);
    background: #fff;
}

.danger-button {
    background: #8c1d16;
}

.logout-form {
    margin: 18px 0;
}

.message {
    margin: 0 0 12px;
    padding: 10px 12px;
    font-weight: 700;
}

.message.error {
    color: #7b1710;
    background: #fff0ee;
}

.message.success {
    color: #285c2d;
    background: #eef8ed;
}

.admin-note {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.admin-gallery {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.admin-photo {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    border: 1px solid var(--line);
    padding: 10px;
    background: var(--paper);
}

.admin-photo img {
    width: 124px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.admin-photo p {
    margin: 0 0 10px;
    font-weight: 700;
}

@media (max-width: 760px) {
    .site-hero {
        min-height: auto;
    }

    .hero-content {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 42px 0 50px;
    }

    .logo-card {
        width: min(100%, 420px);
    }

    .contact-list,
    .contact-list a,
    .section-heading,
    .footer-inner {
        display: grid;
    }

    .service-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .season-section,
    .gallery-section {
        padding: 48px 0;
    }

    .admin-panel {
        padding: 18px;
    }

    .admin-photo {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .admin-photo img {
        width: 96px;
    }
}

@media (max-width: 430px) {
    .admin-header {
        display: grid;
    }

    .brand img {
        width: 64px;
    }
}
