:root {
    --ink: #242a28;
    --muted: #68736f;
    --paper: #f6f1e9;
    --surface: #fffaf2;
    --sage: #687b66;
    --sage-dark: #3f5147;
    --clay: #a2614f;
    --blue: #3f5d70;
    --line: rgba(36, 42, 40, .14);
    --shadow: 0 24px 70px rgba(34, 42, 39, .15);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: fixed;
    z-index: 10;
    inset: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(18px, 5vw, 70px);
    color: #fff;
    background: linear-gradient(180deg, rgba(20, 28, 26, .58), rgba(20, 28, 26, 0));
    transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}

.site-header.is-scrolled {
    color: var(--ink);
    background: rgba(255, 250, 242, .94);
    box-shadow: 0 14px 36px rgba(34, 42, 39, .12);
    backdrop-filter: blur(16px);
}

.brand,
.site-header nav,
.hero__actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand span {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-weight: 800;
}

.brand strong {
    max-width: 420px;
    font-size: 18px;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-header nav {
    gap: 26px;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-content: center;
    justify-items: center;
    gap: 5px;
    border: 1px solid currentColor;
    border-radius: 6px;
    padding: 0;
    color: inherit;
    background: rgba(255, 255, 255, .08);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .18s ease, opacity .18s ease;
}

.hero {
    min-height: 88vh;
    display: grid;
    align-items: center;
    padding: 120px clamp(18px, 8vw, 112px) 70px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(24, 31, 29, .78), rgba(24, 31, 29, .42), rgba(24, 31, 29, .08)),
        var(--hero-image) center / cover;
}

.hero__content {
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--clay);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .eyebrow,
.contact .eyebrow {
    color: #f1c2a6;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2 {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0;
}

h1 {
    margin-bottom: 22px;
    font-size: clamp(36px, 5.4vw, 64px);
    line-height: .98;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.08;
}

h3 {
    margin-bottom: 10px;
    font-size: 21px;
    line-height: 1.2;
}

.hero p {
    max-width: 650px;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(18px, 2vw, 22px);
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 12px 20px;
    font-weight: 850;
}

.button--primary {
    color: #fff;
    background: var(--sage-dark);
}

.button--ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, .6);
}

.section,
.contact,
.site-footer {
    padding-inline: clamp(18px, 5vw, 72px);
}

.section {
    max-width: 1240px;
    margin: 0 auto;
    padding-top: clamp(72px, 9vw, 128px);
    padding-bottom: clamp(64px, 8vw, 108px);
}

.section__head {
    max-width: 720px;
    margin-bottom: 36px;
}

.about,
.split,
.contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
    gap: clamp(34px, 7vw, 88px);
    align-items: center;
}

.about p,
.split p,
.card p,
.faq p,
dd {
    color: var(--muted);
}

.about img {
    width: min(100%, 520px);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.about-profile {
    display: grid;
    grid-template-columns: minmax(300px, .74fr) minmax(0, 1.26fr);
    gap: clamp(40px, 7vw, 92px);
    align-items: start;
}

.about-profile__aside {
    position: sticky;
    top: 110px;
}

.about-profile__aside img {
    width: 100%;
    max-height: 560px;
    margin: 10px 0 24px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.profile-lead {
    color: var(--sage-dark);
    font-size: clamp(17px, 1.35vw, 17px);
    line-height: 1.42;
}

.profile-sections {
    display: grid;
    gap: 16px;
}

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

.profile-block {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(22px, 3vw, 30px);
    background: var(--surface);
}

.profile-block--accent {
    background: #e5ebe1;
}

.profile-block span {
    display: block;
    margin-bottom: 10px;
    color: var(--clay);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.profile-block h3 {
    margin-bottom: 12px;
}

.profile-block p,
.profile-list {
    color: var(--muted);
}

.profile-block .profile-subhead {
    margin: 16px 0 8px;
    color: var(--clay);
    font-size: 15px;
    font-weight: 600;
}

.profile-block p:last-child,
.profile-list {
    margin-bottom: 0;
}

.profile-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.profile-list li {
    padding-left: 14px;
    border-left: 3px solid rgba(162, 97, 79, .34);
}

.consultations__intro {
    display: grid;
    grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
    gap: clamp(34px, 6vw, 78px);
    align-items: start;
    margin-bottom: 34px;
}

.consultations__lead {
    margin: 0;
    color: var(--sage-dark);
    font-size: clamp(17px, 1.8vw, 22px);
    line-height: 1.5;
}

.consultation-type h3 {
    margin-bottom: 10px;
}

.consultation-type p {
    margin-bottom: 0;
    color: var(--muted);
}

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

.consultation-type {
    display: grid;
    align-content: start;
    min-height: 270px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
    background: var(--surface);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.consultation-type:hover {
    transform: translateY(-3px);
    border-color: rgba(162, 97, 79, .4);
    box-shadow: 0 18px 44px rgba(34, 42, 39, .12);
}

.consultation-type strong {
    display: block;
    margin-top: 24px;
    color: var(--sage-dark);
    font-size: 15px;
    font-weight: 600;
}

.publications__head {
    max-width: 760px;
}

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

.publications__more {
    display: flex;
    justify-content: flex-end;
    margin-top: 28px;
}

.publication-card {
    display: grid;
    align-content: start;
    min-height: 270px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
    background: var(--surface);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.publication-card:hover {
    transform: translateY(-3px);
    border-color: rgba(162, 97, 79, .4);
    box-shadow: 0 18px 44px rgba(34, 42, 39, .12);
}

.publication-card span {
    margin-bottom: 18px;
    color: var(--clay);
    font-size: 13px;
    font-weight: 800;
}

.publication-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.publication-card strong {
    align-self: end;
    margin-top: 24px;
    color: var(--sage-dark);
    font-size: 15px;
    font-weight: 600;
}

.cards {
    display: grid;
    gap: 16px;
}

.cards--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.list article,
.contact-form {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.card {
    min-height: 240px;
    padding: 28px;
}

.card span {
    display: block;
    margin-bottom: 34px;
    color: var(--clay);
    font-weight: 900;
}

.muted {
    max-width: none;
    background: #e5ebe1;
}

.muted .section__head,
.muted .cards,
.muted .news-cards {
    max-width: 1240px;
    margin-inline: auto;
}

.card--light {
    background: rgba(255, 250, 242, .7);
}

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

.news-card {
    display: flex;
    min-height: 520px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 250, 242, .72);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: rgba(162, 97, 79, .4);
    box-shadow: 0 18px 44px rgba(34, 42, 39, .12);
}

.news-card__image {
    width: 100%;
    height: 340px;
    padding: 16px;
    object-fit: contain;
    object-position: center;
    background: var(--surface);
}

.news-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.news-card time {
    margin-bottom: 18px;
    color: var(--clay);
    font-size: 13px;
    font-weight: 800;
}

.news-card h3 {
    font-size: 19px;
}

.news-card p,
.news-empty {
    color: var(--muted);
}

.news-card strong {
    margin-top: auto;
    padding-top: 22px;
    color: var(--sage-dark);
    font-size: 15px;
    font-weight: 600;
}

.news__more {
    display: flex;
    max-width: 1240px;
    justify-content: flex-end;
    margin: 28px auto 0;
}

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

.news-archive .news-card h2 {
    margin-bottom: 12px;
    font-family: inherit;
    font-size: 21px;
    line-height: 1.2;
}

.list {
    display: grid;
    gap: 12px;
}

.list article {
    display: grid;
    gap: 6px;
    padding: 20px;
}

.list a {
    display: grid;
    gap: 6px;
}

.list span {
    color: var(--clay);
    font-size: 14px;
    font-weight: 700;
}

.text-link {
    display: inline-block;
    color: var(--sage-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.faq {
    display: grid;
    gap: 10px;
}

details {
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}

summary {
    cursor: pointer;
    font-weight: 850;
}

.contact {
    max-width: none;
    padding-top: clamp(72px, 9vw, 128px);
    padding-bottom: clamp(72px, 9vw, 128px);
    color: #fff;
    background: var(--blue);
}

.contact h2 {
    max-width: 620px;
}

dl {
    display: grid;
    gap: 14px;
    margin: 28px 0;
}

dt {
    color: rgba(255, 255, 255, .64);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

dd {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.hours {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hours span {
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    padding: 8px 12px;
}

.contact-form,
.contact-card {
    display: grid;
    gap: 16px;
    padding: clamp(22px, 3vw, 30px);
    color: var(--ink);
}

.contact-card {
    align-self: stretch;
    align-content: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, .09);
}

.contact-card p {
    color: rgba(255, 255, 255, .74);
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

label {
    display: grid;
    gap: 7px;
    font-size: 14px;
    font-weight: 850;
}

input,
textarea {
    width: 100%;
    border: 1px solid rgba(36, 42, 40, .2);
    border-radius: 6px;
    padding: 13px 14px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

textarea {
    resize: vertical;
}

small {
    color: #a33e35;
}

.notice {
    border-radius: 6px;
    padding: 12px 14px;
    color: var(--sage-dark);
    background: #e6efe5;
    font-weight: 800;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-top: 26px;
    padding-bottom: 26px;
    color: var(--muted);
    background: var(--surface);
}

@media (max-width: 900px) {
    .site-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px 12px;
        padding: 12px 16px;
        background: linear-gradient(180deg, rgba(20, 28, 26, .82), rgba(20, 28, 26, .38));
        backdrop-filter: blur(14px);
    }

    .brand {
        gap: 12px;
        min-width: 0;
    }

    .brand span {
        width: 40px;
        height: 40px;
        flex: 0 0 auto;
    }

    .brand strong {
        min-width: 0;
        max-width: calc(100vw - 104px);
        font-size: 17px;
    }

    .menu-toggle {
        display: inline-grid;
    }

    .site-header nav {
        grid-column: 1 / -1;
        width: 100%;
        max-height: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height .22s ease, opacity .18s ease;
    }

    .site-header nav a {
        border: 1px solid rgba(255, 255, 255, .28);
        border-radius: 6px;
        padding: 10px 12px;
        background: rgba(255, 255, 255, .08);
        font-size: 16px;
        line-height: 1.2;
    }

    .site-header.is-menu-open nav {
        max-height: 280px;
        opacity: 1;
        pointer-events: auto;
    }

    .site-header.is-menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-header.is-menu-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-header.is-menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .site-header.is-scrolled nav a {
        border-color: var(--line);
        background: rgba(36, 42, 40, .04);
    }

    .about,
    .about-profile,
    .profile-grid,
    .consultations__intro,
    .consultation-types,
    .publication-cards,
    .news-cards,
    .split,
    .contact,
    .cards--three {
        grid-template-columns: 1fr;
    }

    .about-profile__aside {
        position: static;
    }

    .hero {
        min-height: 100svh;
        align-items: start;
        padding-top: 112px;
        padding-bottom: 48px;
        background:
            linear-gradient(0deg, rgba(24, 31, 29, .82), rgba(24, 31, 29, .36)),
            var(--hero-image) center / cover;
    }

    .hero__content {
        max-width: 680px;
    }

    h1 {
        font-size: clamp(36px, 9vw, 52px);
        line-height: 1.02;
    }

    .hero p {
        font-size: clamp(17px, 4vw, 20px);
    }
}

@media (max-width: 620px) {
    .brand strong {
        max-width: calc(100vw - 88px);
    }

    .hero__actions,
    .button {
        width: 100%;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .publications__more {
        justify-content: flex-start;
    }

    .news__more {
        justify-content: flex-start;
    }

    .card {
        min-height: auto;
    }

    .section,
    .contact,
    .site-footer {
        padding-inline: 18px;
    }

    .hero {
        padding-right: 18px;
        padding-left: 18px;
    }

    h1 {
        font-size: clamp(34px, 10vw, 42px);
    }

    h2 {
        font-size: clamp(30px, 9vw, 40px);
    }

    .site-footer {
        flex-direction: column;
    }
}

.article-page {
    width: min(920px, calc(100% - 36px));
    margin: 0 auto;
    padding: 46px 0 84px;
}

.materials-page {
    width: min(1240px, calc(100% - 36px));
    margin: 0 auto;
    padding: 46px 0 84px;
}

.materials-header {
    max-width: 780px;
    padding: 34px 0 24px;
}

.materials-header h1 {
    margin-bottom: 18px;
    color: var(--ink);
    font-size: clamp(42px, 7vw, 76px);
}

.materials-header p:last-child {
    color: var(--muted);
    font-size: 19px;
}

.materials-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: end;
    margin: 16px 0 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: var(--surface);
}

.materials-search__reset {
    color: var(--sage-dark);
    border-color: var(--line);
    background: transparent;
}

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

.material-card,
.materials-empty {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 26px;
    background: var(--surface);
}

.material-card {
    display: grid;
    align-content: start;
    min-height: 290px;
}

.material-card span {
    margin-bottom: 18px;
    color: var(--clay);
    font-size: 13px;
    font-weight: 800;
}

.material-card h2 {
    margin-bottom: 14px;
    font-family: inherit;
    font-size: 23px;
    line-height: 1.2;
}

.material-card p,
.materials-empty p {
    color: var(--muted);
}

.material-card .text-link {
    align-self: end;
    margin-top: 18px;
}

.materials-empty {
    grid-column: 1 / -1;
}

.materials-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 34px;
}

.materials-pagination a,
.materials-pagination span {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 9px 13px;
    background: var(--surface);
    font-weight: 800;
}

.materials-pagination span {
    color: var(--muted);
    opacity: .6;
}

.consultation-page {
    width: min(1120px, calc(100% - 36px));
}

.article-header {
    padding: 34px 0 24px;
}

.article-header h1 {
    color: var(--ink);
    font-size: clamp(36px, 4vw, 44px);
}

.article-header time,
.back-link {
    color: var(--muted);
    font-weight: 800;
}

.back-link {
    display: inline-block;
    margin-bottom: 28px;
}

.article-image {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.article-body {
    margin-top: 34px;
    color: var(--ink);
    font-size: 18px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.article-body a {
    color: var(--clay);
    font-weight: 800;
    text-decoration: underline;
}

.article-body blockquote {
    margin: 32px 0;
    padding-left: 22px;
    border-left: 4px solid var(--sage);
    color: var(--sage-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
}

.consultation-header {
    max-width: 920px;
}

.consultation-body {
    max-width: 1120px;
}

.consultation-body .fw-container {
    max-width: none;
}

.consultation-body .fw-row {
    display: grid;
    grid-template-columns: minmax(220px, .42fr) minmax(0, 1fr);
    gap: clamp(30px, 5vw, 66px);
    align-items: start;
}

.consultation-body img {
    width: 100%;
    height: auto;
    max-height: 760px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.consultation-body h4 {
    margin: 30px 0 14px;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 500;
    line-height: 1.12;
    text-align: left !important;
}

.consultation-body h4:first-child {
    margin-top: 0;
}

.consultation-body p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

@media (max-width: 760px) {
    .materials-search,
    .materials-grid,
    .news-archive {
        grid-template-columns: 1fr;
    }

    .materials-search .button {
        width: 100%;
    }

    .materials-pagination {
        flex-wrap: wrap;
        gap: 10px;
    }

    .consultation-body .fw-row {
        grid-template-columns: 1fr;
    }

    .consultation-body img {
        max-height: 420px;
    }
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px 1fr;
    background: var(--paper);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px;
    color: #fff;
    background: var(--sage-dark);
}

.admin-brand {
    margin-bottom: 34px;
}

.admin-sidebar nav {
    display: grid;
    gap: 10px;
}

.admin-sidebar nav a {
    border-radius: 6px;
    padding: 11px 12px;
    background: rgba(255, 255, 255, .08);
    font-weight: 800;
}

.admin-logout {
    margin-top: 22px;
}

.admin-logout button {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 6px;
    padding: 11px 12px;
    color: #fff;
    background: transparent;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    text-align: left;
}

.admin-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 18% 12%, rgba(162, 97, 79, .18), transparent 32%),
        var(--paper);
}

.admin-login__card {
    width: min(100%, 460px);
    display: grid;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(24px, 5vw, 38px);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.admin-login__brand {
    color: var(--sage-dark);
}

.admin-login h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(42px, 7vw, 64px);
}

.admin-check {
    display: flex;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
}

.admin-check input {
    width: auto;
}

.admin-main {
    padding: clamp(24px, 5vw, 56px);
}

.admin-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.admin-head h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(36px, 5vw, 64px);
}

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

.admin-cards--single {
    grid-template-columns: minmax(0, 520px);
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.admin-tabs a {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 14px;
    color: var(--sage-dark);
    background: rgba(255, 250, 242, .7);
    font-weight: 850;
}

.admin-tabs a.is-active {
    color: #fff;
    border-color: var(--sage-dark);
    background: var(--sage-dark);
}

.admin-card,
.admin-table article,
.admin-filter,
.admin-form {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.admin-card {
    display: grid;
    gap: 8px;
    padding: 24px;
}

.admin-card span,
.admin-table span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.admin-card strong {
    font-family: inherit;
    font-size: clamp(21px, 2.2vw, 26px);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.admin-filter {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px auto;
    gap: 12px;
    margin-bottom: 18px;
    padding: 16px;
}

select {
    width: 100%;
    border: 1px solid rgba(36, 42, 40, .2);
    border-radius: 6px;
    padding: 13px 14px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

.admin-table {
    display: grid;
    gap: 10px;
}

.admin-table article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
}

.admin-table strong,
.admin-table span {
    display: block;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-weight: 800;
}

.admin-pagination {
    margin-top: 24px;
}

.admin-pagination nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.admin-pagination nav > div:first-child {
    display: none;
}

.admin-pagination nav > div:last-child {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.admin-pagination p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.admin-pagination p span {
    color: var(--ink);
}

.admin-pagination nav span[aria-current="page"] span,
.admin-pagination nav a,
.admin-pagination nav span[aria-disabled="true"] span {
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    padding: 8px 12px;
    color: var(--sage-dark);
    background: var(--surface);
    font-size: 14px;
    font-weight: 850;
    line-height: 1;
}

.admin-pagination nav span[aria-current="page"] span {
    color: #fff;
    border-color: var(--sage-dark);
    background: var(--sage-dark);
}

.admin-pagination nav span[aria-disabled="true"] span {
    color: rgba(104, 115, 111, .55);
    background: rgba(255, 250, 242, .55);
}

.admin-pagination nav svg {
    width: 16px;
    height: 16px;
    display: block;
    flex: 0 0 16px;
}

.admin-pagination nav .shadow-sm {
    display: inline-flex;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: none;
}

.admin-pagination nav .shadow-sm > * + * {
    margin-left: -1px;
}

.admin-form {
    display: grid;
    gap: 18px;
    padding: 22px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, minmax(140px, .8fr));
    gap: 14px;
}

.admin-form-grid--contacts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-hours {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.admin-hours h2 {
    grid-column: 1 / -1;
    margin: 0;
    font-family: inherit;
    font-size: 22px;
}

.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-ghost {
    color: var(--sage-dark);
    border-color: var(--line);
}

.notice--error {
    color: #8f3129;
    background: #f8e3df;
}

.admin-delete {
    margin-top: 20px;
}

.admin-delete button {
    border: 0;
    color: #9e342b;
    background: transparent;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 900px) {
    .admin-shell,
    .admin-cards,
    .admin-filter,
    .admin-form-grid,
    .admin-form-grid--contacts,
    .admin-hours {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .admin-table article,
    .admin-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-pagination nav > div:last-child {
        align-items: flex-start;
        flex-direction: column;
    }
}
