@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/cormorant-garamond-cyrillic-500.woff2") format("woff2");
}

:root {
    color-scheme: light;
    font-family: "Segoe UI", sans-serif;
    line-height: 1.5;
    --ink: #16343a;
    --muted: #4d666c;
    --line: #d3e4e6;
    --paper: #fff;
    --cream: #f3f8f8;
    --green: #1f6f78;
    --green-soft: #e5f3f4;
}

body {
    margin: 0;
    overflow-x: clip;
    background: var(--cream);
    color: var(--ink);
}

h1 {
    margin: 0 0 0.35rem;
    font-size: 1.85rem;
    letter-spacing: -0.02em;
}

h2 {
    margin: 1.4rem 0 0.4rem;
    font-size: 1.15rem;
}

.top, main {
    width: min(72rem, calc(100% - 2rem));
    margin-inline: auto;
}

.top {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
    justify-content: flex-end;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    width: 2.7rem;
    height: 2.2rem;
    flex: none;
    overflow: visible;
}

.brand-mark text {
    font-family: "Cormorant Garamond", Georgia, "Palatino Linotype", serif;
    font-weight: 500;
}

.mark-sh {
    fill: #9ec9cd;
}

.mark-v {
    fill: var(--green);
}

.brand-name {
    display: flex;
    flex-direction: column;
    color: var(--ink);
    font-family: "Cormorant Garamond", Georgia, "Palatino Linotype", serif;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 0.95;
}

.brand-name span:last-child {
    letter-spacing: 0.03em;
}

.switcher {
    position: relative;
}

.switcher summary {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    gap: 0.4rem;
    height: 2.6rem;
    min-height: 2.6rem;
    padding: 0 0.85rem;
    border: 0;
    border-radius: 0.4rem;
    background: var(--green);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.03em;
    list-style: none;
    cursor: pointer;
}

.switcher summary::-webkit-details-marker {
    display: none;
}

.switcher summary::after {
    content: "";
    width: 0.38rem;
    height: 0.38rem;
    margin-top: -0.15rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.switcher[open] summary {
    background: #185860;
    color: #fff;
}

.switcher-list {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 30;
    display: grid;
    gap: 0.15rem;
    margin: 0;
    padding: 0.2rem;
    border: 1px solid var(--line);
    border-radius: 0.4rem;
    background: #fff;
    box-shadow: 0 8px 18px rgba(22, 52, 58, 0.1);
    box-sizing: border-box;
}

.switcher-list a,
.switcher-list button {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 2.15rem;
    margin: 0;
    padding: 0 0.35rem;
    border: 0;
    border-radius: 0.3rem;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 650;
    letter-spacing: 0.03em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.switcher-list a:hover,
.switcher-list button:hover {
    background: var(--cream);
}

.switcher-list a[aria-current="true"],
.switcher-list button[aria-current="true"] {
    background: var(--green);
    color: #fff;
    font-weight: 700;
}

.account-link,
.back,
button.quiet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    min-height: 2rem;
    padding: 0 0.7rem;
    border-radius: 0.35rem;
    background: transparent;
    color: inherit;
    border: 0;
    text-decoration: none;
    font: inherit;
    line-height: 1;
}

.account-link {
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 650;
}

.toolbar .account-link,
.toolbar .services-link {
    box-sizing: border-box;
    height: 2.6rem;
    min-height: 2.6rem;
    padding: 0 0.85rem;
    border-radius: 0.4rem;
}

.toolbar .services-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: 1px solid #9ec8cc;
    background: var(--green-soft);
    color: var(--green);
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
}

.toolbar .panel-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0 0.75rem;
    border-radius: 0.35rem;
    line-height: 1;
}

main {
    padding-bottom: 3rem;
}

form, main {
    display: block;
}

form {
    display: grid;
    gap: 0.4rem;
    margin-top: 1rem;
}

label {
    margin-top: 0.35rem;
    font-weight: 650;
}

input:not([type="checkbox"]):not([type="radio"]),
select {
    width: 100%;
    box-sizing: border-box;
    height: 2.5rem;
    min-height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid #c8c1b4;
    border-radius: 0.4rem;
    font: inherit;
    line-height: 1.2;
    background: #fff;
}

.package-apply {
    margin-top: 0.8rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #c8c1b4;
    border-radius: 0.4rem;
    background: #fff;
}

.package-apply p,
.package-apply li {
    margin: 0.2rem 0;
}

.package-apply ul {
    margin: 0.4rem 0 0;
    padding-left: 1.1rem;
}

.package-apply .check {
    margin-top: 0.6rem;
}

.check {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin-top: 0.8rem;
}

.check input {
    width: 1.25rem;
    min-height: 1.25rem;
    margin-top: 0.2rem;
}

button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.8rem;
    min-height: 2.5rem;
    padding: 0 1rem;
    border: 0;
    border-radius: 0.4rem;
    background: var(--green);
    color: #fff;
    font: inherit;
    font-weight: 650;
    line-height: 1;
    cursor: pointer;
}

button.quiet {
    margin-top: 0.8rem;
    background: #fff;
    color: var(--ink);
    border: 1px solid #c8c1b4;
}

button.danger {
    background: #8d2a2a;
}

.legal {
    border-top: 1px solid var(--line);
    margin-top: 1rem;
    color: var(--muted);
}

.legal a {
    color: inherit;
}

.error {
    margin: 0;
    color: #8d2a2a;
}

.field-hint {
    margin: 0.15rem 0 0.35rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.status {
    padding: 0.75rem 1rem;
    background: #e5f2ec;
    border-radius: 0.4rem;
}

.aside {
    margin-top: 1.5rem;
}

.login-switch {
    display: inline-flex;
    gap: 0.25rem;
    margin-top: 0.6rem;
    padding: 0.25rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: var(--cream);
}

.login-switch a {
    padding: 0.5rem 0.9rem;
    border-radius: 0.35rem;
    color: var(--ink);
    font-weight: 650;
    text-decoration: none;
}

.login-switch a[aria-current="true"] {
    background: var(--green);
    color: #fff;
}

code {
    overflow-wrap: anywhere;
}

.legal {
    padding-top: 0;
}

.back {
    margin: 0;
    min-height: 2.25rem;
    background: #fff;
    color: inherit;
    border: 1px solid #c8c1b4;
}

.cards {
    padding: 0;
    list-style: none;
}

.cards li {
    margin: 0.8rem 0;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
}

.cards a {
    font-weight: 700;
    text-decoration: none;
}

.cards p {
    margin: 0.25rem 0 0;
    color: var(--muted);
}

.wizard {
    max-width: 100%;
    overflow-x: hidden;
}

.steps,
.choices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 100%;
    margin: 1rem 0;
    padding: 0;
    list-style: none;
}

.steps li,
.choices button {
    max-width: 100%;
    white-space: normal;
}

.steps {
    counter-reset: step;
}

.steps li {
    counter-increment: step;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border-radius: 0.4rem;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--muted);
}

.steps li::before {
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 0.3rem;
    background: #efeae2;
    font-size: 0.75rem;
}

.steps .current {
    font-weight: 700;
    color: #fff;
    background: var(--green);
    border-color: var(--green);
}

.steps .current::before {
    background: #fff;
    color: var(--green);
}

.choices button {
    margin-top: 0;
}

[x-cloak] {
    display: none !important;
}

.booking-card,
.package-card {
    margin: 1rem 0;
    padding: 1.1rem 1.15rem 1.15rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 0.65rem;
}

.packages .package-card {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin: 0;
    min-width: 0;
}

.package-card h3,
.package-card p {
    margin: 0.2rem 0;
}

.package-card h3 {
    margin: 0 0 0.15rem;
    font-size: 1.02rem;
    line-height: 1.35;
    text-wrap: pretty;
}

.package-card p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.4;
}

.package-card > p:last-of-type {
    margin-top: auto;
    padding-top: 0.35rem;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 700;
}

.package-card > button {
    margin-top: 0.65rem;
    align-self: flex-start;
}

.package-card.picked {
    border-color: var(--green);
    box-shadow: 0 0 0 1px var(--green);
}

.packages {
    margin: 1.75rem 0 1.5rem;
}

.packages-browse > h2,
.packages-checkout > h2 {
    margin: 0.35rem 0 0;
}

.packages-browse > p {
    margin: 0.35rem 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
    gap: 1.15rem;
    margin-top: 0.95rem;
    align-items: stretch;
}

.packages.is-checkout {
    max-width: 28rem;
}

.packages-checkout .back {
    margin: 0 0 0.35rem;
}

.package-order {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 1.15rem 1.2rem 1.25rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 0.65rem;
}

.package-summary {
    margin: 0 0 0.35rem;
    padding: 0 0 0.85rem;
    border-bottom: 1px solid var(--line);
}

.package-summary h3 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    line-height: 1.35;
    text-wrap: pretty;
}

.package-summary p {
    margin: 0.2rem 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.package-summary-price {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin-top: 0.55rem !important;
    color: var(--ink) !important;
    font-size: 1.05rem !important;
    font-weight: 700;
}

.package-summary-price span:nth-child(2) {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.package-order label {
    margin-top: 0.25rem;
}

.package-order button[type="submit"] {
    margin-top: 0.35rem;
    justify-self: start;
}

.booking-card h2 {
    margin: 0 0 0.45rem;
    font-size: 1.2rem;
}

.booking-card h3 {
    margin: 0.9rem 0 0.2rem;
    font-size: 0.95rem;
}

.history {
    margin: 0.2rem 0 0;
    padding: 0;
    list-style: none;
}

.history li {
    display: grid;
    grid-template-columns: 9.5rem minmax(0, 1fr);
    gap: 0.25rem 0.75rem;
    padding: 0.45rem 0;
    border-top: 1px solid var(--line);
}

.history li:first-child {
    border-top: 0;
}

.history time {
    color: var(--muted);
}

@media (max-width: 40rem) {
    .history li {
        grid-template-columns: 1fr;
    }
}

.booking-card form {
    margin-top: 0.75rem;
}

.email-line {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.verified {
    position: relative;
    display: inline-flex;
    cursor: help;
}

.verified circle {
    fill: var(--green);
}

.verified path {
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.verified:hover::after,
.verified:focus-visible::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.4rem);
    z-index: 2;
    transform: translateX(-50%);
    padding: 0.35rem 0.55rem;
    border-radius: 0.4rem;
    background: var(--ink);
    color: #fff;
    font-size: 0.8rem;
    line-height: 1.3;
    white-space: nowrap;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.6rem;
    padding: 0 0.5rem;
    border-radius: 0.3rem;
    line-height: 1;
    background: var(--green-soft);
    color: var(--green);
    font-size: 0.85rem;
    font-weight: 650;
}

.pill.is-completed {
    background: #14532d;
    color: #f0fdf4;
}

.pill.is-cancelled,
.pill.is-no_show {
    background: #f8ecec;
    color: #8d2a2a;
}

.pill.is-pending_payment,
.pill.is-reschedule_requested {
    background: #fff6d8;
    color: #7a5b00;
}

.meta {
    display: grid;
    gap: 0.45rem;
    margin: 0.8rem 0;
}

.meta div {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 0.5rem;
    align-items: center;
}

.meta dt {
    color: var(--muted);
}

.meta dd {
    margin: 0;
}

.card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.9rem;
}

.copy-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.35rem 0.5rem;
    align-items: center;
    margin-top: 0.8rem;
}

.copy-row label {
    grid-column: 1 / -1;
    margin: 0;
}

.copy-row input,
.copy-row button,
.copy-row a.back {
    height: 2.5rem;
    min-height: 2.5rem;
    margin: 0;
}

.copy-row input {
    width: auto;
    min-width: 0;
    padding: 0 0.75rem;
    line-height: 2.5rem;
}

.copy-row button,
.copy-row a.back {
    padding: 0 0.85rem;
    white-space: nowrap;
    line-height: 1;
}

.copy-row a.back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.4rem;
    text-decoration: none;
}

@media (max-width: 40rem) {
    .copy-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

.uuid {
    margin: 0.9rem 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.uuid .uuid-copy {
    margin: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.choices.times label {
    position: relative;
}

.choices.times input {
    position: absolute;
    opacity: 0;
    inset: 0;
    margin: 0;
}

.choices.times span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4rem;
    padding: 0 0.8rem;
    border: 1px solid var(--line);
    border-radius: 0.4rem;
    background: #fff;
    line-height: 1;
    cursor: pointer;
}

.choices.times input:checked + span {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.choices.times input:focus-visible + span {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.danger-box {
    margin-top: 0.8rem;
}

.danger-box summary {
    cursor: pointer;
    color: #8d2a2a;
    font-weight: 650;
}

.cancel-warning,
.cancel-note {
    margin: 0.7rem 0;
    padding: 0.6rem 0.75rem;
    border-radius: 0.45rem;
}

.cancel-warning {
    border: 1px solid #e7c4c4;
    background: #fdf4f4;
    color: #6b2424;
}

.cancel-note {
    border: 1px solid #b7d5d8;
    background: #e5f3f4;
    color: #16343a;
}

.package-history {
    margin: 0.35rem 0 0;
    padding-left: 1.15rem;
}

.package-history li {
    margin: 0.3rem 0;
}

.cabinet {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 1.25rem 1.75rem;
    align-items: start;
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
    position: sticky;
    top: 0.75rem;
}

.account-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    min-height: 2.4rem;
    padding: 0 0.85rem;
    border: 1px solid var(--line);
    border-radius: 0.4rem;
    line-height: 1.2;
    background: #fff;
    color: inherit;
    font-weight: 650;
    text-decoration: none;
}

.account-nav .count {
    font-variant-numeric: tabular-nums;
    font-weight: 650;
}

@media (max-width: 48rem) {
    .cabinet {
        grid-template-columns: 1fr;
    }

    .account-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .account-nav a {
        width: auto;
    }
}

.account-nav a.account-book {
    margin-bottom: 0.45rem;
    background: var(--green-soft);
    border-color: #9ec8cc;
    color: var(--green);
}

.account-nav a[aria-current="page"] {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.service-picks {
    display: grid;
    gap: 0.7rem;
    margin: 0.85rem 0 0;
    padding: 0;
    list-style: none;
}

.service-pick {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem 1.35rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
}

.service-pick > div:first-child {
    min-width: 0;
}

.service-pick-title {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3rem 0.55rem;
    max-width: 100%;
    margin: 0 0 0.1rem;
    padding: 0.1rem 0;
    border: 0;
    background: transparent;
    color: var(--green);
    font: inherit;
    font-size: 1.05rem;
    font-weight: 750;
    line-height: 1.35;
    text-align: left;
    text-wrap: pretty;
    cursor: pointer;
}

.service-pick-name {
    min-width: 0;
    text-decoration: underline;
    text-decoration-color: rgba(31, 111, 120, 0.4);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.service-pick-title:hover .service-pick-name,
.service-pick.is-open .service-pick-name {
    text-decoration-color: var(--green);
    text-decoration-thickness: 1.5px;
}

.service-pick-more {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 650;
    white-space: nowrap;
}

.service-pick-title:hover .service-pick-more,
.service-pick.is-open .service-pick-more {
    color: var(--green);
}

.service-pick-title .chevron {
    display: inline-block;
    font-size: 0.72rem;
    transition: transform 0.15s ease;
}

.service-pick.is-open .chevron {
    transform: rotate(90deg);
}

.service-pick-details {
    grid-column: 1 / -1;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    line-height: 1.55;
}

.service-pick-details p {
    margin: 0.35rem 0 0;
}

.service-pick-details p:first-child {
    margin-top: 0;
}

.service-pick .meta {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.service-pick-side {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem 1rem;
}

.service-pick-price {
    display: grid;
    justify-items: end;
    gap: 0.1rem;
}

.service-pick-price strong {
    white-space: nowrap;
}

.service-pick-price span {
    color: var(--muted);
    font-size: 0.85rem;
}

.service-pick button {
    margin-top: 0;
}

@media (max-width: 36rem) {
    .service-pick {
        grid-template-columns: 1fr;
    }

    .service-pick-side {
        justify-content: space-between;
        width: 100%;
    }

    .service-pick-price {
        justify-items: start;
    }
}

.booking-now {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem 1rem;
    margin: 0 0 1rem;
    padding: 0.8rem 0.95rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
}

.booking-now p {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.7rem;
    margin: 0;
}

.booking-now-label {
    color: var(--muted);
}

.booking-done {
    max-width: 36rem;
}

.booking-done-lead {
    margin: 0.2rem 0 0;
    font-size: 1.15rem;
}

.booking-done dl {
    margin: 1rem 0;
    padding: 0.2rem 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
}

.booking-done dl div {
    display: grid;
    grid-template-columns: 8.5rem 1fr;
    gap: 0.4rem 1rem;
    align-items: baseline;
    padding: 0.7rem 0;
    border-top: 1px solid var(--line);
}

.booking-done dl div:first-child {
    border-top: 0;
}

.booking-done dt,
.booking-done dd {
    margin: 0;
}

.booking-done dt {
    color: var(--muted);
}

.booking-done dd {
    font-weight: 650;
}

.booking-done a {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    margin-top: 0.4rem;
    padding: 0 1rem;
    border-radius: 0.4rem;
    background: var(--green);
    color: #fff;
    font-weight: 650;
    text-decoration: none;
}

.wizard .choices {
    display: grid;
    gap: 0.5rem;
}

.wizard .choices button {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.8rem;
    justify-content: space-between;
    width: 100%;
    text-align: left;
}

.wizard .choices.times {
    display: flex;
}

.wizard .choices.times button {
    width: auto;
}

.wizard .choices.times button.picked {
    background: #d7eef0;
    border-color: var(--green);
    color: var(--green);
    box-shadow: inset 0 0 0 1px var(--green);
}

.booking-confirm {
    margin-top: 1.4rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
}

.booking-confirm-when {
    margin: 0 0 0.9rem;
}

.booking-confirm-when span {
    color: var(--muted);
}

.booking-confirm-when strong {
    display: block;
    margin-top: 0.15rem;
    font-size: 1.2rem;
}

.cal {
    margin: 0.75rem 0 0.25rem;
}

.cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.cal-nav strong {
    text-transform: capitalize;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
}

.cal-grid .cal-label,
.cal-grid span,
.cal-grid a,
.cal-grid button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4rem;
    margin: 0;
    padding: 0.15rem;
    border-radius: 0.35rem;
    text-align: center;
    text-decoration: none;
}

.cal-grid .cal-label {
    min-height: 1.5rem;
    color: #57534e;
    font-size: 0.75rem;
}

.cal-grid a,
.cal-grid button {
    border: 1px solid #e4dfd6;
    background: #fff;
    color: inherit;
    font: inherit;
}

.cal-grid button:disabled {
    background: transparent;
    color: #a8a29e;
    border-color: transparent;
    cursor: default;
}

.cal-grid a.picked,
.cal-grid button.picked {
    background: #d7eef0;
    border-color: var(--green);
    color: var(--green);
    box-shadow: inset 0 0 0 1px var(--green);
}

.choices button {
    margin-top: 0;
    background: #fff;
    color: #1d1a16;
    border: 1px solid #c8c1b4;
}

a.panel-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    min-height: 2.5rem;
    padding: 0 0.9rem;
    border-radius: 0.4rem;
    line-height: 1;
    background: #2f5d50;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.panel-note {
    margin-bottom: 0.4rem;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
    margin: 0 0 1rem;
}

.crumbs a,
.crumbs span {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
}

.crumbs a + a::before,
.crumbs a + span::before,
.crumbs span + a::before,
.crumbs span + span::before {
    content: "/";
    margin-right: 0.55rem;
    color: var(--muted);
    font-weight: 400;
}

.profile-photo {
    display: block;
    width: min(12rem, 100%);
    height: auto;
    border-radius: 0.35rem;
}

.profile-kicker {
    margin: 0.15rem 0 0;
    color: var(--muted);
}

.profile-prose {
    max-width: 44rem;
    margin: 0.35rem 0 0;
    color: var(--ink);
    line-height: 1.65;
    white-space: pre-line;
    text-wrap: pretty;
}

.practice {
    position: relative;
    z-index: 0;
    display: grid;
    grid-template-columns: 18.5rem minmax(0, 1fr);
    gap: 3.25rem;
    align-items: center;
    justify-content: start;
    margin-top: 1.25rem;
    padding: 2.4rem 0 2.6rem;
}

.practice::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background:
        linear-gradient(180deg, rgba(243, 248, 248, 0.72), rgba(243, 248, 248, 0.84)),
        url("/images/home/practice.webp") center / cover no-repeat;
}

.practice-photo {
    margin: 0;
}

.practice-photo img {
    display: block;
    width: 18.5rem;
    max-width: 100%;
    height: auto;
    border-radius: 0.35rem;
}

.practice h1 {
    font-family: "Cormorant Garamond", Georgia, "Palatino Linotype", serif;
    font-size: 3.1rem;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.practice-copy {
    min-width: 0;
    max-width: 44rem;
}

.practice-copy p {
    max-width: 42rem;
    line-height: 1.6;
}

.lead {
    margin: 0.55rem 0 0;
    max-width: 40rem;
    font-size: 1.05rem;
    line-height: 1.45;
    color: var(--muted);
    text-wrap: balance;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.15rem;
    margin: 1.15rem 0 0;
}

.home-profile {
    color: var(--green);
    font-weight: 650;
}

.hero-book {
    display: inline-flex;
    align-items: center;
    min-height: 2.6rem;
    margin-top: 0;
    padding: 0 1.1rem;
    border-radius: 0.4rem;
    background: var(--green);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.topics,
.home-certs,
.home-faqs,
.home-reviews {
    margin-top: 2.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
}

.topics > h2,
.home-reviews > h2,
.home-book-head h2 {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, "Palatino Linotype", serif;
    font-size: 2.15rem;
    font-weight: 500;
    line-height: 1.1;
}

.topics-lead {
    max-width: none;
    margin: 0.55rem 0 0;
    color: var(--muted);
    line-height: 1.55;
    text-wrap: pretty;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.review-card,
.review-form {
    margin: 0;
    padding: 1rem 1.05rem;
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    background: var(--paper);
}

.review-name {
    margin: 0;
    color: var(--ink);
    font-weight: 650;
}

.review-date {
    display: block;
    margin-top: 0.15rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.review-body {
    margin: 0.55rem 0 0;
    white-space: pre-wrap;
}

.review-form {
    display: grid;
    gap: 0.65rem;
    max-width: 36rem;
    margin-top: 1rem;
}

.review-form input,
.review-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    background: var(--cream);
    color: var(--ink);
    padding: 0.65rem 0.75rem;
    font: inherit;
}

.review-form textarea {
    min-height: 7rem;
    resize: vertical;
}

.review-send {
    justify-self: start;
    min-height: 2.6rem;
    padding: 0 1.1rem;
    border: 0;
    border-radius: 0.4rem;
    background: var(--green);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.review-thanks {
    margin: 1rem 0 0;
    color: var(--green);
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.topic-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 19rem;
    margin: 0;
    padding: 1.15rem 1.15rem 1.2rem;
    overflow: hidden;
    border-radius: 1.35rem;
    color: #fff;
    text-decoration: none;
    isolation: isolate;
    transition: transform 0.18s ease;
}

.topic-card img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topic-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(22, 52, 58, 0.22) 0%, rgba(31, 111, 120, 0.82) 100%);
}

.topic-card h3 {
    margin: 0 0 0.4rem;
    color: #fff;
    font-family: "Cormorant Garamond", Georgia, "Palatino Linotype", serif;
    font-size: 1.55rem;
    font-weight: 500;
    line-height: 1.1;
}

.topic-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.95rem;
    line-height: 1.45;
}

.topic-card:hover,
.topic-card:focus-visible {
    transform: translateY(-3px);
}

.topic-card:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .topic-card {
        transition: none;
    }

    .topic-card:hover,
    .topic-card:focus-visible {
        transform: none;
    }
}

.home-more {
    margin: 0.9rem 0 0;
    color: var(--muted);
    line-height: 1.55;
}


.home-book {
    margin-top: 2.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
}

.home-book-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.4rem 1rem;
    margin-bottom: 0.85rem;
}

.home-book .packages {
    margin-top: 1.4rem;
}

.cal-times {
    margin-top: 1.15rem;
}

.cal-times h2 {
    margin-top: 0;
}

.home-certs h2 {
    margin-bottom: 0.7rem;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cert-thumb {
    display: grid;
    gap: 0.4rem;
    width: 100%;
    margin: 0;
    padding: 0.4rem 0.4rem 0.55rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.cert-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.35;
    object-fit: contain;
    background: #f7fbfb;
}

.cert-thumb span {
    font-size: 0.82rem;
    line-height: 1.3;
    font-weight: 650;
}

.cert-dialog {
    width: min(52rem, calc(100% - 2rem));
    max-height: calc(100% - 2rem);
    padding: 0.6rem;
    border: 0;
    border-radius: 0.6rem;
    background: #fff;
}

.cert-dialog::backdrop {
    background: rgba(16, 40, 44, 0.72);
}

.cert-dialog img {
    display: block;
    width: 100%;
    max-height: calc(100vh - 6rem);
    object-fit: contain;
    background: #f7fbfb;
}

.cert-close {
    margin: 0 0 0.45rem auto;
}

@media (max-width: 52rem) {
    .practice {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .practice-photo img {
        width: min(16rem, 100%);
    }

    .topic-grid,
    .cert-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.offer {
    max-width: 56rem;
}

.offer p,
.offer li {
    margin: 0.55rem 0;
}

.offer ul {
    margin: 0.2rem 0 0.8rem;
    padding-left: 1.2rem;
}

.chat-log {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.chat-log li {
    max-width: 36rem;
    margin: 0.6rem 0;
    padding: 0.7rem 0.8rem;
    border-radius: 0.4rem;
    background: #fff;
}

.chat-log li.mine {
    margin-left: auto;
    background: #e7f2ea;
}

.chat-at {
    margin: 0;
    color: #6b6458;
    font-size: 0.85rem;
}

.chat-body {
    margin: 0.3rem 0 0;
    white-space: pre-wrap;
}

.chat-thread textarea,
.chat-thread input[type="file"] {
    display: block;
    width: min(100%, 36rem);
    margin-top: 0.3rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.chat-widget {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 40;
    font-size: 0.95rem;
}

.chat-launcher {
    position: relative;
    width: 3.6rem;
    height: 3.6rem;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(22, 52, 58, 0.22);
}

.chat-launcher.has-unread::after {
    content: "";
    position: absolute;
    top: 0.15rem;
    right: 0.15rem;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: #b45309;
    box-shadow: 0 0 0 2px #fff;
}

.chat-typing {
    margin: 0;
    padding: 0.35rem 1rem 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.chat-launcher svg {
    width: 1.55rem;
    height: 1.55rem;
    fill: none;
    stroke: #fff;
    stroke-width: 1.8;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.chat-icon-close,
.chat-widget.is-open .chat-icon-open {
    display: none;
}

.chat-widget.is-open .chat-icon-close {
    display: block;
}

.chat-panel {
    display: none;
    position: absolute;
    right: 0;
    bottom: 4.4rem;
    width: min(22.5rem, calc(100vw - 2rem));
    height: min(34rem, calc(100vh - 7rem));
    flex-direction: column;
    overflow: hidden;
    border-radius: 1.1rem;
    background: #fff;
    box-shadow: 0 16px 40px rgba(22, 52, 58, 0.22);
}

.chat-widget.is-open .chat-panel {
    display: flex;
}

.chat-widget.is-page.is-open .chat-launcher {
    display: none;
}

.chat-widget.is-page.is-open .chat-panel {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 1.5rem;
    width: min(26rem, calc(100vw - 2rem));
    height: min(38rem, calc(100vh - 8rem));
    transform: translateX(-50%);
}

.chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 0.9rem 0.85rem 1rem;
    background: #185864;
    color: #fff;
}

.chat-kicker,
.chat-title {
    margin: 0;
    color: #fff;
}

.chat-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.8;
}

.chat-title {
    font-size: 1.05rem;
    font-weight: 650;
}

.chat-head-actions {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex: none;
}

.chat-sound,
.chat-close {
    width: 2rem;
    height: 2rem;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
}

.chat-close {
    font-size: 1.5rem;
}

.chat-sound svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chat-sound[aria-pressed="true"] .sound-mute {
    display: none;
}

.chat-sound[aria-pressed="false"] {
    background: rgba(255, 255, 255, 0.16);
}

.chat-sound[aria-pressed="false"] .sound-waves {
    display: none;
}

.chat-stream {
    flex: 1;
    overflow: auto;
    padding: 0.9rem;
    background:
        radial-gradient(circle at 1rem 1rem, rgba(31, 111, 120, 0.05) 0 0.4rem, transparent 0.45rem),
        var(--cream);
}

.chat-note {
    margin: 0.2rem 0 0.8rem;
    color: var(--muted);
}

.chat-bubbles,
.chat-inbox {
    list-style: none;
    margin: 0;
    padding: 0;
}

.chat-bubbles li,
.chat-person {
    max-width: 85%;
    margin: 0.45rem 0;
    padding: 0.55rem 0.75rem;
    border-radius: 0.95rem 0.95rem 0.95rem 0.3rem;
    background: #fff;
    color: var(--ink);
}

.chat-bubbles li.mine {
    margin-left: auto;
    border-radius: 0.95rem 0.95rem 0.3rem 0.95rem;
    background: var(--green);
    color: #fff;
}

.chat-bubbles time {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.72rem;
    opacity: 0.7;
}

.chat-bubbles p {
    margin: 0;
    white-space: pre-wrap;
}

.chat-bubbles a {
    display: inline-block;
    margin-top: 0.3rem;
    color: inherit;
}

.chat-person {
    display: block;
    width: 100%;
    margin-top: 0.4rem;
    text-align: left;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
}

.chat-compose {
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
    padding: 0.7rem;
    background: #fff;
    border-top: 1px solid var(--line);
}

.chat-guest-start {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.chat-guest-field,
.chat-guest-start .cf-turnstile,
.chat-guest-start .error {
    grid-column: 1 / -1;
}

.chat-guest-field input {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0.9rem;
    background: var(--cream);
    color: var(--ink);
    font: inherit;
}

.chat-forget {
    display: block;
    width: auto;
    height: auto;
    margin: 0 0.7rem 0.7rem auto;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: transparent;
    color: var(--green);
}

.chat-compose textarea {
    flex: 1;
    min-height: 2.6rem;
    max-height: 7rem;
    margin: 0;
    padding: 0.65rem 0.75rem;
    resize: none;
    border: 0;
    border-radius: 0.9rem;
    background: var(--cream);
    color: var(--ink);
    font: inherit;
}

.chat-compose button,
.chat-login {
    width: 2.6rem;
    height: 2.6rem;
    margin: 0;
    padding: 0;
    border-radius: 50%;
}

.chat-compose button.chat-send {
    width: auto;
    min-height: 2.6rem;
    height: auto;
    padding: 0 0.9rem;
    border-radius: 999px;
    font-weight: 650;
    white-space: nowrap;
}

.chat-compose svg {
    width: 1.05rem;
    height: 1.05rem;
    fill: #fff;
}

.chat-login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    margin: 0.7rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    font-weight: 650;
    text-decoration: none;
}

.chat-file input {
    max-width: 7rem;
    font-size: 0.75rem;
}

@media (max-width: 36rem) {
    .chat-widget.is-open .chat-panel,
    .chat-widget.is-page.is-open .chat-panel {
        position: fixed;
        top: auto;
        left: 0.5rem;
        right: 0.5rem;
        bottom: 5.6rem;
        width: auto;
        max-width: none;
        transform: none;
        height: min(34rem, calc(100dvh - 7.2rem));
    }
}

@media (max-width: 36rem) {
    .topic-grid,
    .cert-grid,
    .review-grid {
        grid-template-columns: 1fr;
    }

    .topic-card {
        min-height: 15.5rem;
    }
}
