.profile-page-container {
    min-height: 70vh;
    padding: 34px 0 96px;
    color: var(--portal-ink);
    background: var(--portal-canvas);
    font-family: var(--portal-font);
}

.profile-page-container *,
.profile-page-container *::before,
.profile-page-container *::after {
    box-sizing: border-box;
}

.profile-page-container section {
    margin-top: 0;
}

.profile-page-container button {
    font-weight: 500 !important;
}

.profile-shell {
    width: min(100% - 40px, 1400px);
    margin: 0 auto;
}

.profile-breadcrumbs {
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--portal-muted);
    font-size: 12px;
    line-height: 1.4;
}

.profile-breadcrumbs a {
    color: var(--portal-primary) !important;
    font-weight: 700;
}

.profile-hero {
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(440px, 0.96fr);
    border: 1px solid var(--portal-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 22px 52px rgba(28, 31, 55, 0.08);
    overflow: hidden;
}

.profile-hero__cover {
    height: 100%;
    min-height: 0;
    align-self: stretch;
    background: #e9eaf0;
    overflow: hidden;
}

.profile-hero__cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.profile-hero__summary {
    padding: clamp(38px, 5vw, 68px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-hero__status {
    margin-bottom: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-hero__status span,
.profile-section__eyebrow {
    color: var(--portal-primary);
    font-size: 10px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.profile-section__eyebrow {
    width: fit-content;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    background: var(--portal-primary-soft);
}

.profile-hero__status span {
    min-height: 28px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--portal-primary-soft);
    font-weight: 500;
}

.profile-hero__status span + span {
    color: #0d6652;
    background: var(--portal-mint);
}

.profile-hero__status .profile-technician-badge {
    color: #5d4b00;
    background: #fff6ab;
}

.profile-certificate-section .gallery-item__media {
    background: #f7f4ed;
}

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

.profile-review-card {
    padding: 18px;
    border: 1px solid var(--portal-line);
    border-radius: 14px;
    background: #fff;
}

.profile-review-card > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.profile-review-card strong {
    color: #876f00;
}

.profile-review-card span {
    color: var(--portal-muted);
    font-size: 12px;
}

.profile-review-card p {
    margin: 12px 0 0;
    color: var(--portal-ink);
	font-size: 12px;
    line-height: 1.65;
}

.profile-certificate-section .gallery-item img {
    object-fit: contain;
}

.profile-identity {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: 17px;
}

.profile-avatar {
    width: 76px;
    height: 76px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #ececf2;
    box-shadow: 0 8px 22px rgba(28, 31, 55, 0.14);
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.profile-identity h1 {
    margin: 0;
    color: var(--portal-ink);
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 40px;
    line-height: 1.04 !important;
    font-weight: 500 !important;
}

.profile-identity p {
    margin: 8px 0 0;
    color: var(--portal-muted);
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}

.profile-hero__description {
    max-width: 590px;
    margin: 27px 0 0;
    color: var(--portal-muted);
    font-size: 15px;
    line-height: 1.7;
    text-align: left;
}

.profile-facts {
    margin-top: 27px;
    padding: 17px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    border-top: 1px solid var(--portal-line);
    border-bottom: 1px solid var(--portal-line);
}

.profile-facts span {
    color: var(--portal-muted);
    font-size: 11px;
    line-height: 1.4;
}

.profile-facts strong {
    display: block;
    color: var(--portal-ink);
    font-size: 14px;
    font-weight: 800;
}

.profile-hero__actions {
    margin-top: 26px;
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-primary-button,
.modal-button--primary {
    min-height: 48px;
    padding: 0 21px;
    border: 0;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--portal-primary-dark) !important;
    background-image: linear-gradient(105deg, var(--portal-action) 0%, var(--portal-action) 48%, var(--portal-action-hover) 52%, var(--portal-action-hover) 100%);
    background-position: 0 0;
    background-size: 200% 100%;
    font-size: 13px;
    line-height: 1;
    font-weight: 750 !important;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(23, 86, 77, 0.18);
    transition: background-position 280ms ease, box-shadow 180ms ease;
}

.profile-primary-button {
    text-transform: uppercase !important;
}

.profile-primary-button:hover,
.profile-primary-button:focus-visible,
.modal-button--primary:hover,
.modal-button--primary:focus-visible {
    color: var(--portal-primary-dark) !important;
    background-position: 100% 0;
    box-shadow: 0 12px 26px rgba(23, 86, 77, 0.24);
}

.favorite-button-wrapper {
    display: flex;
}

.btn-icon-favorite {
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--portal-line);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--portal-ink);
    background: #fff;
    font-family: var(--portal-font);
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.btn-icon-favorite:hover,
.btn-icon-favorite:focus-visible,
.btn-icon-favorite.active {
    color: #b42352;
    border-color: #f1bfd0;
    background: #fff5f8;
}

.favorite-icon {
    font-size: 20px;
    line-height: 1;
}

.profile-layout {
    margin-top: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
    gap: 28px;
}

.profile-main-content,
.profile-sidebar {
    min-width: 0;
}

.profile-shell h2 {
	font-family: Georgia, "Times New Roman", serif !important;
	font-style: normal !important;
	font-weight: 500 !important;
}

.profile-section,
.sidebar-widget {
    margin: 0 0 24px;
    border: 1px solid var(--portal-line);
    border-radius: 10px;
    background: #fff;
}

.profile-section {
    padding: clamp(24px, 4vw, 42px);
}

.profile-section__header {
    margin-bottom: 28px;
    display: block;
}

.profile-section__header--simple {
    display: block;
}

.profile-step-heading {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-step-copy {
    margin-top: 18px;
}

.profile-step-number {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--portal-primary);
    background: var(--portal-primary-soft);
    font-size: 17px;
    font-weight: 700;
}

.profile-section__header h2 {
    margin: 0;
    color: var(--portal-ink);
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(27px, 3.4vw, 38px);
    line-height: 1.1 !important;
    font-weight: 500 !important;
    letter-spacing: -0.04em;
}

.profile-section__header p {
    margin: 9px 0 0;
    color: var(--portal-muted);
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
}

.profile-step-heading .profile-section__eyebrow {
    margin: 0;
    font-size: 12px;
}

.profile-service-list {
    display: grid;
    gap: 12px;
}

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

.profile-home-visit-location {
    min-height: 72px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid #bcd8cf;
    border-radius: 12px;
    color: var(--portal-ink);
    background: #d5e8df;
}

.profile-home-visit-location__icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--portal-primary);
}

.profile-home-visit-location__icon svg {
    width: 19px;
    height: 19px;
    display: block;
    fill: currentColor;
}

.profile-home-visit-location__content {
    min-width: 0;
    padding-top: 1px;
    display: grid;
    gap: 3px;
    font-size: 13px;
    line-height: 1.45;
}

.profile-home-visit-location__content strong {
    color: var(--portal-ink);
    font-size: 14px;
    font-weight: 800;
}

.profile-home-visit-location__content span {
    color: var(--portal-muted);
}

.profile-service-card {
    padding: 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.78fr);
    align-items: center;
    gap: 24px;
    border: 1px solid var(--portal-line);
    border-radius: 10px;
    background: #fff;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.profile-service-card__intro {
    align-self: start;
}

.profile-service-card:hover {
    border-color: #a8ccc4;
    box-shadow: 0 12px 28px rgba(23, 86, 77, 0.09);
}

.profile-service-card__intro > span,
.profile-service-card__intro > a {
    color: var(--portal-primary);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.profile-service-card__intro > a {
    display: inline-block;
    text-decoration: none;
}

.profile-service-card__intro > a:hover,
.profile-service-card__intro > a:focus-visible {
    color: var(--portal-primary-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.profile-service-card__intro h3 {
    margin: 6px 0 0;
    color: var(--portal-ink);
    font-family: var(--portal-font) !important;
    font-size: 22px;
    line-height: 1.3 !important;
	font-weight: 500 !important;
}

.profile-service-card__intro p {
    margin: 8px 0 0;
    color: var(--portal-muted);
    font-size: 12px;
    line-height: 1.55;
    text-align: left;
    white-space: pre-line;
}

.profile-service-variants {
    display: grid;
    gap: 7px;
}

.btn-select-service {
    min-height: 52px;
    padding: 7px 8px 7px 13px;
    border: 1px solid var(--portal-line);
    border-radius: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    color: var(--portal-ink);
    background: var(--portal-canvas);
    font-family: var(--portal-font);
    text-align: left;
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.btn-select-service__details {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.btn-select-service__details > span {
    color: var(--portal-muted);
    font-size: 11px;
    font-weight: 650;
}

.btn-select-service__details strong {
    justify-self: end;
    font-size: 14px;
    font-weight: 850;
}

.btn-select-service em {
    min-height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    border-radius: 24px;
    color: #fff;
    background: var(--portal-primary);
    font-size: 10px;
    font-style: normal;
    font-weight: 500;
    text-transform: uppercase !important;
}

.btn-select-service:hover,
.btn-select-service:focus-visible {
    color: var(--portal-primary-dark);
    border-color: #a8ccc4;
    background: var(--portal-primary-soft);
    outline: 0;
}

#date-selection-step[hidden] {
    display: none;
}

#change-service-link {
    min-height: 42px;
    margin: 0 0 22px;
    padding: 0 16px;
    border: 1px solid #bcd8d1;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--portal-primary);
    background-image: linear-gradient(105deg, #fff 0%, #fff 48%, var(--portal-primary-soft) 52%, #dcece6 100%);
    background-position: 0 0;
    background-size: 200% 100%;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease, background-position 280ms ease, box-shadow 180ms ease;
}

#change-service-link::before {
    content: "←";
    margin-right: 7px;
}

#change-service-link:hover,
#change-service-link:focus-visible {
    border-color: #a8ccc4;
    color: var(--portal-primary-dark);
    background-position: 100% 0;
    box-shadow: 0 8px 18px rgba(65, 117, 114, 0.14);
}

.selected-service-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
}

#summary-service-price {
    color: var(--portal-primary);
    font-weight: 800;
}

.booking-widget {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
}

#booking-calendar-wrapper,
#time-slots-wrapper {
    padding: 20px;
    border: 1px solid var(--portal-line);
    border-radius: 10px;
    background: #fff;
}

.calendar-header {
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 10px;
}

#calendar-month-year {
    margin: 0;
    color: var(--portal-ink);
    font-family: var(--portal-font) !important;
    font-size: 18px;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    text-align: center;
    text-transform: capitalize;
}

.calendar-header button {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--portal-line);
    border-radius: 10px;
    color: var(--portal-ink);
    background: #fff;
    font-size: 0;
    line-height: 1;
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.calendar-header button::before {
    content: "";
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
}

#prev-month-btn,
#next-month-btn {
    position: relative;
}

#prev-month-btn::before {
    transform: translate(-50%, -50%) rotate(-135deg);
}

#next-month-btn::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.calendar-header button:hover,
.calendar-header button:focus-visible {
    color: var(--portal-primary);
    border-color: #a8ccc4;
    background: var(--portal-primary-soft);
}

.calendar-grid-header,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-grid-header {
    margin-bottom: 7px;
}

.calendar-grid-header div {
    padding: 4px 0;
    color: var(--portal-muted);
    font-size: 12px;
    line-height: 1;
    font-weight: 750;
    text-align: center;
}

.calendar-grid {
    gap: 6px 3px;
}

.calendar-day {
    width: 50px;
    height: 50px;
    min-width: 50px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50% !important;
    display: grid;
    place-items: center;
    justify-self: center;
    color: #a1a6b3;
    background: transparent;
    font-family: var(--portal-font);
    font-size: 12px;
    font-weight: 650;
}

.calendar-day.empty {
    visibility: hidden;
}

.calendar-day.today {
    border-color: #cbcbd6;
    color: var(--portal-ink);
}

.calendar-day.available {
    color: var(--portal-primary-dark);
    background: var(--portal-primary-soft);
    font-weight: 800;
    cursor: pointer;
}

.calendar-day.available:hover,
.calendar-day.available:focus-visible {
    border-color: var(--portal-primary);
    outline: 0;
}

.calendar-day.selected {
    color: #fff;
    border-color: var(--portal-primary);
    background: var(--portal-primary);
}

.calendar-availability-message,
.calendar-error {
    margin: 16px 0 0;
    padding: 13px;
    border-radius: 10px;
    color: var(--portal-muted);
    background: var(--portal-canvas);
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.calendar-error {
    grid-column: 1 / -1;
}

.time-slots-heading h3 {
    margin: 0 0 20px;
    color: var(--portal-ink);
    font-family: var(--portal-font) !important;
    font-size: 19px;
    line-height: 1.2 !important;
    font-weight: 800 !important;
}

.slot-tabs {
    margin: 0 !important;
    padding: 0 !important;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: transparent;
    list-style: none;
}

.slot-tabs li {
    margin: 0;
}

.tab-link {
    width: 100%;
    min-height: 40px;
    padding: 0 7px;
    border: 1px solid var(--portal-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--portal-primary-dark) !important;
    background: #fff;
    font-family: var(--portal-font);
    font-size: 13px;
    line-height: 1;
    font-weight: 500;
    cursor: pointer;
}

.tab-link.active {
    color: #fff !important;
    border-color: var(--portal-primary);
    background: var(--portal-primary);
    box-shadow: none;
}

.tab-pane {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.tab-pane.active {
    display: grid;
}

.time-slot-btn {
    min-height: 40px;
    padding: 0 8px !important;
    border: 1px solid #bcd8d1 !important;
    border-radius: 10px !important;
    color: var(--portal-primary-dark) !important;
    background: #fff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    cursor: pointer;
}

.time-slot-btn:hover,
.time-slot-btn:focus-visible {
    color: #fff !important;
    border-color: var(--portal-primary) !important;
    background: var(--portal-primary) !important;
}

.empty-slot-message {
    margin: 18px 0 0;
    padding: 16px;
    border-radius: 10px;
    color: var(--portal-muted);
    background: var(--portal-canvas);
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.loader-wrapper {
    min-height: 230px;
    display: grid;
    place-items: center;
}

.loader {
    width: 34px;
    height: 34px;
    border: 3px solid #e6e3ff;
    border-top-color: var(--portal-primary);
    border-radius: 50%;
    animation: profile-spin 0.8s linear infinite;
}

.profile-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    padding: 24px;
}

.sidebar-widget h2 {
    margin: 0 0 16px;
    color: var(--portal-ink);
    font-family: var(--portal-font) !important;
    font-size: 18px;
    line-height: 1.25 !important;
    font-weight: 500 !important;
    letter-spacing: -0.025em;
}

.profile-contact-list {
    margin: 0 !important;
    padding: 0 !important;
    display: grid;
    gap: 12px;
    list-style: none;
}

.profile-contact-list li {
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--portal-line);
    display: grid;
    gap: 3px;
}

.profile-contact-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.profile-contact-list span {
    color: var(--portal-muted);
    font-size: 10px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.profile-contact-list a,
.profile-contact-list strong {
    color: var(--portal-ink) !important;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 700;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.profile-contact-list a:hover,
.profile-contact-list a:focus-visible {
    color: var(--portal-primary) !important;
    text-decoration: underline;
}

.sidebar-copy,
.sidebar-copy p {
    color: var(--portal-muted);
    font-size: 12px;
    line-height: 1.7;
    text-align: left;
}

.specializations-tag-list {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    font-weight: 600;
    list-style: none;
}

.specializations-tag-list li {
    margin: 0;
    padding: 6px 9px;
    border-radius: 999px;
    color: var(--portal-primary-dark);
    background: #eef6f2;
    font-size: 10px;
    line-height: 16px;
    font-weight: 650;
}

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

.profile-social-link {
    min-width: 0;
    min-height: 46px;
    padding: 8px 11px;
    border: 1px solid rgba(65, 117, 114, 0.18);
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--portal-primary-dark) !important;
    background: #eef6f2;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    text-decoration: none !important;
    overflow: hidden;
    transition: color 180ms ease, background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.profile-social-link__icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--portal-primary);
    background: #fff;
    transition: color 180ms ease, background-color 220ms ease;
}

.profile-social-link__icon svg {
    width: 15px;
    height: 15px;
    display: block;
    fill: currentColor;
}

.profile-social-link__icon rect,
.profile-social-link__icon circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.profile-social-link:hover,
.profile-social-link:focus-visible {
    color: #fff !important;
    border-color: var(--portal-primary);
    background: var(--portal-primary);
    box-shadow: 0 10px 22px rgba(23, 86, 77, 0.16);
}

.profile-social-link:hover .profile-social-link__icon,
.profile-social-link:focus-visible .profile-social-link__icon {
    color: var(--portal-primary-dark);
    background: var(--portal-action);
}

.opening-hours-table {
    width: 100%;
    border: 0;
    border-collapse: collapse;
}

.opening-hours-table tr {
    border-bottom: 1px solid var(--portal-line);
}

.opening-hours-table tr:last-child {
    border-bottom: 0;
}

.opening-hours-table th,
.opening-hours-table td {
    padding: 9px 0;
    border: 0;
    color: var(--portal-muted);
    font-size: 12px;
    line-height: 1.35;
}

.opening-hours-table th {
    color: var(--portal-ink);
    font-weight: 700;
    text-align: left;
}

.opening-hours-table td {
    text-align: right;
}

.sidebar-address {
    margin: -6px 0 15px;
    color: var(--portal-muted);
    font-size: 11px;
    line-height: 1.5;
    text-align: left;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
}

.map-container iframe {
    display: block;
}

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

.staff-member {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: start;
    gap: 12px;
}

.staff-member > div {
    min-height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.staff-member img,
.staff-member__placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.staff-member img {
    display: block;
    object-fit: cover;
}

.staff-member__placeholder {
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--portal-primary);
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
}

.staff-member h3 {
    margin: 0;
    color: var(--portal-ink);
    font-family: var(--portal-font) !important;
    font-size: 12px;
    line-height: 1.3 !important;
    font-weight: 800 !important;
}

.staff-member p {
    margin: 4px 0 0;
    color: var(--portal-muted);
    font-size: 11px;
    line-height: 1.45;
    text-align: left;
}

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

.gallery-item {
    aspect-ratio: 4 / 3;
    padding: 8px;
    border: 1px solid var(--portal-line);
    border-radius: 18px;
    display: block;
    background: #fff;
    box-shadow: 0 10px 24px rgba(23, 57, 50, 0.07);
    contain: layout paint;
    overflow: hidden;
    transition: background-color 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.gallery-item__media {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: block;
    background: #e9efeb;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1);
    transform-origin: center;
    transition: transform 350ms ease, filter 220ms ease;
    will-change: transform;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
    transform: scale(1.035);
}

.gallery-item:hover,
.gallery-item:focus-visible {
    border-color: #a8ccc4;
    background: #eef6f2;
    box-shadow: 0 16px 32px rgba(23, 57, 50, 0.13);
}

.profile-empty-state,
.profile-empty-page {
    padding: 56px 28px;
    border: 1px solid var(--portal-line);
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

.profile-empty-state h3,
.profile-empty-page h1 {
    margin: 0 0 9px;
    color: var(--portal-ink);
    font-family: var(--portal-font) !important;
    font-weight: 800 !important;
}

.profile-empty-state p,
.profile-empty-page p {
    margin: 0;
    color: var(--portal-muted);
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.profile-empty-page > span {
    color: var(--portal-primary);
    font-size: 12px;
    font-weight: 850;
}

.profile-empty-page .profile-primary-button {
    margin-top: 22px;
}

.dashboard-modal-overlay,
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 21, 35, 0.64);
    backdrop-filter: blur(7px);
}

.dashboard-modal-overlay[hidden],
.lightbox-modal[hidden] {
    display: none;
}

.dashboard-modal-overlay {
    opacity: 0;
    transition: opacity 180ms ease;
}

.dashboard-modal-overlay.is-visible {
    opacity: 1;
}

.dashboard-modal {
    width: min(100%, 460px);
    padding: 34px;
    position: relative;
    border: 1px solid var(--portal-line);
    border-radius: 10px;
    color: var(--portal-ink);
    background: #fff;
    box-shadow: 0 28px 70px rgba(13, 17, 30, 0.24);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.dashboard-modal-overlay.is-visible .dashboard-modal {
    opacity: 1;
    transform: translateY(0);
}

.modal-close,
.lightbox-close {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--portal-line);
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--portal-muted);
    background: #fff;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
}

.modal-kicker {
    display: block;
    padding-right: 46px;
    color: var(--portal-primary);
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.modal-title {
    margin: 12px 44px 10px 0;
    color: var(--portal-ink);
    font-family: var(--portal-font) !important;
    font-size: 25px;
    line-height: 1.15 !important;
    font-weight: 820 !important;
    letter-spacing: -0.035em;
}

.modal-message {
    margin: 0;
    color: var(--portal-muted);
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-line;
}

.modal-prompt-wrapper {
    margin-top: 20px;
}

.modal-prompt-wrapper[hidden] {
    display: none;
}

.modal-input {
    width: 100%;
    min-height: 48px;
    padding: 0 13px;
    border: 1px solid var(--portal-line);
    border-radius: 10px;
    color: var(--portal-ink);
    background: #fff;
    font: inherit;
}

.modal-input:focus {
    border-color: var(--portal-primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(102, 87, 232, 0.12);
}

.modal-actions {
    margin-top: 27px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.modal-actions.single-action {
    grid-template-columns: 1fr;
}

.modal-button {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 10px;
    font-family: var(--portal-font);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    background-size: 200% 100%;
    transition: color 180ms ease, border-color 180ms ease, background-position 280ms ease, box-shadow 180ms ease;
}

.modal-button--secondary {
    color: var(--portal-ink);
    border: 1px solid var(--portal-line);
    background-image: linear-gradient(105deg, #fff 0%, #fff 48%, var(--portal-primary-soft) 52%, #dcece6 100%);
    background-position: 0 0;
}

.modal-button--secondary:hover,
.modal-button--secondary:focus-visible {
    color: var(--portal-primary-dark);
    border-color: #a8ccc4;
    background-position: 100% 0;
    box-shadow: 0 10px 22px rgba(23, 86, 77, 0.14);
}

.lightbox-modal {
    flex-direction: column;
}

.lightbox-content {
    max-width: min(1100px, 92vw);
    max-height: 82vh;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
    margin: 0 0 10px auto;
}

body.modal-open {
    overflow: hidden;
}

@keyframes profile-spin {
    to {
        transform: rotate(360deg);
    }
}

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

    .profile-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .profile-service-card,
    .booking-widget {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .profile-page-container {
        padding-top: 22px;
    }

    .profile-hero {
        grid-template-columns: 1fr;
    }

    .profile-hero__cover {
        height: 390px;
        min-height: 0;
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }

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

    .sidebar-widget {
        margin: 0;
    }

}

@media (max-width: 580px) {
    .profile-shell {
        width: min(100% - 28px, 1400px);
    }

    .profile-breadcrumbs {
        overflow: hidden;
        white-space: nowrap;
    }

    .profile-hero__cover {
        height: 290px;
        min-height: 0;
    }

    .profile-hero__summary {
        padding: 30px 22px;
    }

    .profile-identity {
        grid-template-columns: 62px minmax(0, 1fr);
    }

    .profile-avatar {
        width: 62px;
        height: 62px;
    }

    .profile-identity h1 {
        font-size: 33px;
    }

    .profile-facts {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .profile-hero__actions,
    .profile-primary-button,
    .favorite-button-wrapper,
    .btn-icon-favorite {
        width: 100%;
    }

    .profile-section {
        padding: 24px 18px;
    }

    .profile-section__header {
        display: block;
    }

    .profile-step-number {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }

    .profile-service-card {
        padding: 18px;
    }

    .profile-home-visit-locations {
        grid-template-columns: 1fr;
    }

    .profile-home-visit-location {
        padding: 12px 14px;
    }

    .btn-select-service {
        min-height: 64px;
        padding: 9px 10px 9px 14px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }

    .btn-select-service__details {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .btn-select-service__details strong {
        justify-self: auto;
        font-size: 15px;
    }

    .btn-select-service em {
        min-width: 82px;
        justify-content: center;
    }

    #booking-calendar-wrapper,
    #time-slots-wrapper {
        padding: 15px;
    }

    .calendar-grid {
        gap: 3px;
    }

    .calendar-day {
        width: 34px;
        height: 34px;
        min-width: 34px;
        border-radius: 50% !important;
        font-size: 10px;
    }

    .profile-sidebar {
        grid-template-columns: 1fr;
    }

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

    .dashboard-modal {
        padding: 29px 22px 22px;
    }

    .modal-actions {
        grid-template-columns: 1fr;
    }

    .modal-button--primary {
        grid-row: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-page-container *,
    .profile-page-container *::before,
    .profile-page-container *::after,
    .dashboard-modal-overlay,
    .dashboard-modal {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
