:root {
    --ink: #202322;
    --muted: #66706b;
    --line: #dde6df;
    --paper: #fbfcf8;
    --surface: #ffffff;
    --soft: #eff5ef;
    --sage: #dceadf;
    --accent: #5f8f72;
    --accent-dark: #2f5b44;
    --green: #2f7d5c;
    --red: #a83e3e;
    --shadow: 0 22px 70px rgba(42, 71, 55, .12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        linear-gradient(180deg, #fbfcf8 0%, #f3f7f0 44%, #fbfcf8 100%);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(18px, 5vw, 64px);
    background: rgba(251, 252, 248, .88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.brand {
    color: var(--accent-dark);
    font-size: 21px;
    font-weight: 800;
    text-decoration: none;
}

nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

nav a {
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
}

nav a:hover {
    color: var(--accent-dark);
}

.hero,
.section,
.narrow,
.admin {
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
}

.hero {
    display: flex;
    align-items: center;
    width: min(1320px, calc(100% - 36px));
    min-height: 610px;
    margin-top: 34px;
    padding: clamp(34px, 6vw, 76px);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(239, 245, 239, .82)),
        linear-gradient(90deg, rgba(220, 234, 223, .62), rgba(251, 252, 248, 0));
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero-copy {
    width: 100%;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: start;
}

.form-shell h1,
.admin-head h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.03;
}

.hero-copy h1 {
    max-width: none;
    margin: 0;
    font-size: clamp(42px, 5.4vw, 84px);
    line-height: .98;
}

.hero-copy p {
    max-width: none;
    color: var(--muted);
    font-size: 19px;
}

.hero-text {
    padding: clamp(20px, 3vw, 34px);
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(234, 223, 227, .9);
    border-radius: 8px;
}

.hero-text p {
    margin: 0;
    column-count: 2;
    column-gap: 34px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: 1px solid var(--accent);
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(47, 91, 68, .18);
}

.button:hover {
    transform: translateY(-1px);
}

.button.secondary {
    color: var(--accent-dark);
    background: #fff;
    box-shadow: none;
}

.button-small {
    min-height: 38px;
    padding: 8px 14px;
}

.hero-panel,
.contact-box,
.form-shell,
.empty,
.table-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero-panel {
    padding: 32px;
}

.hero-panel span,
.hero-panel p {
    color: var(--muted);
}

.hero-panel strong {
    display: block;
    color: var(--accent-dark);
    font-size: 76px;
    line-height: 1;
}

.notice,
.alert {
    width: min(1120px, calc(100% - 36px));
    margin: 18px auto 0;
    padding: 14px 16px;
    border-radius: 8px;
}

.notice {
    color: #225942;
    background: #e9f6ef;
    border: 1px solid #bfdfcd;
}

.alert {
    color: #7a2c2c;
    background: #fff0f0;
    border: 1px solid #f0caca;
}

.section {
    padding: 76px 0;
}

.services-section {
    width: min(1320px, calc(100% - 36px));
}

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

.section h2,
.split h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
}

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

.service-card {
    position: relative;
    display: grid;
    align-content: start;
    min-height: 250px;
    padding: 28px;
    overflow: hidden;
    background:
        linear-gradient(180deg, #fff, #f8fbf6);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(42, 71, 55, .08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: rgba(95, 143, 114, .38);
    box-shadow: 0 24px 60px rgba(42, 71, 55, .13);
}

.service-number {
    display: inline-flex;
    width: max-content;
    margin-bottom: 18px;
    padding: 5px 9px;
    color: var(--accent-dark);
    background: var(--sage);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
}

.service-card h3 {
    margin: 0 0 12px;
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.2;
}

.service-card p,
.split p,
.contact-box p {
    color: var(--muted);
}

.meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.meta span {
    color: var(--muted);
    font-weight: 800;
}

.meta strong {
    color: var(--accent-dark);
    font-size: 20px;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.contact-box {
    padding: 28px;
}

.contact-page {
    display: grid;
    gap: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(239, 245, 239, .78));
}

.contact-list {
    display: grid;
    gap: 14px;
}

.contact-list div {
    display: grid;
    gap: 6px;
    padding: 20px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.contact-list span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-list strong {
    font-size: 20px;
}

.contact-list a {
    color: var(--accent-dark);
    text-decoration: none;
}

.contact-list a:hover {
    text-decoration: underline;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 26px clamp(18px, 5vw, 64px);
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.narrow {
    max-width: 940px;
    padding: 54px 0;
}

.booking-page {
    width: min(1280px, calc(100% - 36px));
    margin: 0 auto;
    padding: 46px 0 70px;
}

.calendar-shell {
    padding: clamp(18px, 4vw, 34px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.calendar-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.calendar-head h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.05;
}

.week-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.week-nav strong {
    color: var(--accent-dark);
    white-space: nowrap;
}

.calendar-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.calendar-legend i {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid var(--line);
}

.legend-free {
    background: #eef8ef;
}

.legend-busy {
    background: #eef0ef;
}

.legend-reserved {
    background: #f4f0e4;
}

.legend-manual {
    background: #e8efe9;
}

.legend-selected {
    background: var(--accent);
}

.calendar-grid {
    display: grid;
    grid-template-columns: 72px repeat(7, minmax(118px, 1fr));
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.calendar-corner,
.calendar-day,
.calendar-time,
.calendar-slot {
    min-height: 29px;
    padding: 4px 7px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.calendar-corner,
.calendar-day,
.calendar-time {
    background: var(--soft);
    font-weight: 900;
}

.calendar-day {
    display: grid;
    align-content: center;
    gap: 0;
}

.calendar-day span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.1;
}

.calendar-day strong {
    font-size: 13px;
    line-height: 1.15;
}

.calendar-time {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
}

.calendar-slot {
    display: grid;
    align-content: center;
    min-width: 118px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.15;
    text-decoration: none;
}

.calendar-slot-form {
    display: contents;
}

.calendar-slot-form button {
    width: 100%;
    border: 0;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.calendar-slot.free {
    color: var(--accent-dark);
    background: #eef8ef;
    font-weight: 900;
}

.calendar-slot.free:hover,
.calendar-slot.selected {
    color: #fff;
    background: var(--accent);
}

.calendar-slot.busy {
    color: #5f6763;
    background: #eef0ef;
    font-weight: 900;
}

.calendar-slot.reserved {
    color: #806a35;
    background: #f4f0e4;
    font-weight: 900;
}

.calendar-slot.manual {
    color: #385844;
    background: #e8efe9;
    font-weight: 900;
}

.calendar-slot.manual:hover {
    color: #fff;
    background: var(--accent-dark);
}

.calendar-slot.past {
    background: #f6f7f4;
}

.calendar-slot small {
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    color: inherit;
    font-size: 10px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.booking-detail,
.booking-empty,
.form-alert {
    margin-top: 22px;
}

.booking-detail h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
}

.form-shell {
    padding: clamp(22px, 5vw, 42px);
}

.booking-form {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.settings-form h2 {
    margin: 18px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: 24px;
}

.settings-form h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
}

textarea {
    resize: vertical;
}

.admin {
    padding: 46px 0;
}

.login {
    max-width: 460px;
    margin: 0 auto;
}

.admin-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-layout {
    display: grid;
    grid-template-columns: minmax(320px, .75fr) minmax(0, 1.25fr);
    gap: 22px;
    align-items: start;
}

.service-form {
    position: sticky;
    top: 92px;
}

.services-table table {
    min-width: 720px;
}

.admin-notice,
.admin-alert {
    width: 100%;
    margin: 0 0 18px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding-top: 28px;
}

.checkbox-label input {
    width: 18px;
    min-height: 18px;
}

.consent-label {
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: start;
    gap: 10px;
    color: var(--ink);
    font-weight: 700;
}

.consent-label input {
    width: 18px;
    min-height: 18px;
    margin-top: 4px;
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 940px;
    border-collapse: collapse;
}

th,
td {
    padding: 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

small {
    display: block;
    max-width: 260px;
    margin-top: 6px;
    color: var(--muted);
}

.status {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--accent-dark);
    background: var(--soft);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.status.confirmed {
    color: var(--green);
    background: #eaf7f1;
}

.status.cancelled {
    color: var(--red);
    background: #fff0f0;
}

.status-form select {
    min-width: 170px;
}

.status-form {
    display: grid;
    gap: 8px;
    min-width: 190px;
}

.status-form textarea {
    min-height: 58px;
    font-size: 13px;
}

.empty {
    padding: 28px;
    color: var(--muted);
}

@media (max-width: 1080px) {
    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-text p {
        column-count: 1;
    }
}

@media (max-width: 820px) {
    .site-header,
    footer,
    .admin-head,
    .calendar-head,
    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero,
    .split,
    .form-row,
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .service-form {
        position: static;
    }

    .hero {
        min-height: 0;
        margin-top: 18px;
        padding: 28px 20px;
    }

    .hero-copy h1 {
        font-size: clamp(36px, 12vw, 54px);
    }

    .hero-text {
        padding: 18px;
    }

    .actions {
        width: 100%;
    }

    .actions .button {
        flex: 1 1 180px;
    }

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

    .week-nav {
        justify-content: flex-start;
    }

    .calendar-grid {
        grid-template-columns: 64px repeat(7, minmax(104px, 1fr));
    }

    .calendar-slot {
        min-width: 104px;
    }
}
