.notary-profile-page {
    min-height: 100vh;
    padding: 28px 0 40px;
    color: var(--portal-dark, #0f172a);
    background: var(--portal-bg-canvas, #f4f7fb);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
}

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

.notary-profile-page > .container1 {
    position: relative;
    width: 1190px;
    max-width: calc(100% - 40px);
}

.notary-profile {
    width: 100%;
}

.notary-profile-hero,
.notary-profile-card {
    background: #fff;
    border: 1px solid var(--portal-border, #e5eaf2);
    border-radius: var(--portal-card-radius, 20px);
    box-shadow: var(--portal-shadow-sm, 0 2px 8px rgba(15, 23, 42, .04));
}

.notary-profile-hero {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px 32px;
    padding: 28px 30px 24px;
    overflow: visible;
}

.notary-profile-identity {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 20px;
}

.notary-profile-photo {
    position: relative;
    display: flex;
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    color: var(--portal-primary, #b21b3c);
    background: linear-gradient(145deg, #fff 0%, #fdf2f4 100%);
    box-shadow: inset 0 0 0 6px #fff, 0 8px 24px rgba(178, 27, 60, .09);
    font-size: 27px;
    font-weight: 800;
    letter-spacing: .06em;
}

.notary-profile-photo::after {
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(178, 27, 60, .17);
    border-radius: 18px;
    content: "";
    pointer-events: none;
}

.notary-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notary-profile-heading {
    min-width: 0;
}

.notary-profile-title-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.notary-profile-title-row h1 {
    max-width: 720px;
    margin: 0;
    color: var(--portal-dark, #0f172a);
    font-size: clamp(25px, 2.45vw, 34px);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.14;
}

.notary-profile-title-row h1 > span {
    display: block;
    margin-bottom: 4px;
    color: var(--portal-primary, #b21b3c);
    font-size: 14px;
    font-weight: 750;
    letter-spacing: .065em;
    line-height: 1.2;
    text-transform: uppercase;
}

.notary-profile-title-row .recent-icon {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    margin-top: 5px;
}

.notary-profile-status {
    margin: 0;
}

.notary-profile-status {
    display: inline-flex;
    width: auto;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 5px 10px;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    color: #047857;
    background: #ecfdf5;
    font-size: 12px;
    font-weight: 700;
}

.notary-profile-status--inactive {
    border-color: #fecdd3;
    color: #9f1239;
    background: #fff1f2;
}

.notary-profile-trust {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}

.notary-profile-rating {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid #fef08a;
    border-radius: 10px;
    color: #854d0e;
    background: #fefce8;
    cursor: pointer;
    font: inherit;
}

.notary-profile-rating:hover {
    border-color: #fde047;
    background: #fef9c3;
}

.notary-profile-rating__star {
    color: var(--portal-gold-star, #eab308);
    font-size: 17px;
    line-height: 1;
}

.notary-profile-rating strong {
    font-size: 15px;
    font-weight: 800;
}

.notary-profile-rating > span:last-child {
    color: #64748b;
    font-size: 12px;
}

.notary-profile-share {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #94a3b8;
    font-size: 12px;
}

.notary-profile-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--portal-border-subtle, #f1f5f9);
}

.notary-profile-actions__buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notary-profile-availability {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.notary-profile-phone,
.notary-profile-question {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.notary-profile-phone {
    min-width: 235px;
    padding: 7px 17px;
    border: 1px solid #e8b7c2;
    color: #0f172a;
    background: #fffafb;
    cursor: pointer;
}

.notary-profile-phone svg {
    color: var(--portal-primary, #b21b3c);
}

.notary-profile-phone > .notary-profile-phone-preview {
    display: inline-flex;
    align-items: center;
    color: #0f172a;
    font-weight: 400;
    letter-spacing: .02em;
    white-space: nowrap;
}

.notary-profile-phone > .notary-profile-phone-preview > span {
    font-weight: 400;
}

.notary-profile-phone-fade {
    display: inline-block;
    color: #0f172a;
    filter: blur(.28px);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .88) 34%, rgba(0, 0, 0, .34) 72%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .88) 34%, rgba(0, 0, 0, .34) 72%, transparent 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.notary-profile-phone small {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    color: var(--portal-primary, #b21b3c);
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.notary-profile-phone small::before {
    margin-right: 9px;
    color: #cbd5e1;
    content: "—";
    font-weight: 400;
}

.notary-profile-question {
    padding: 8px 18px;
    border: 1px solid #e2e8f0;
    color: #334155;
    background: #f8fafc;
}

.notary-profile-phone:hover,
.notary-profile-question:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(15, 23, 42, .1);
}

.notary-profile-phone:hover {
    border-color: #d98296;
    color: #0f172a;
    background: #fff4f6;
}

.notary-profile-question:hover {
    color: var(--portal-primary, #b21b3c);
    background: #fff;
}

.notary-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(340px, .78fr);
    align-items: start;
    gap: 20px;
    margin-top: 20px;
}

.notary-profile-main,
.notary-profile-aside,
.notary-profile-card {
    width: 100%;
    min-width: 0;
}

.notary-profile-aside {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 18px;
}

.notary-profile-card {
    padding: 24px;
}

.notary-profile-section-heading {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--portal-border-subtle, #f1f5f9);
}

.notary-profile-section-heading > h2 {
    margin: 0;
}

.notary-profile-section-kicker {
    display: block;
    margin-bottom: 3px;
    color: var(--portal-primary, #b21b3c);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.notary-profile-section-heading h2 {
    margin: 0;
    color: var(--portal-dark, #0f172a);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.015em;
}

.notary-profile-details .list_info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.notary-profile-details .list_info > li {
    position: relative;
    display: flex;
    min-height: 74px;
    align-items: flex-start;
    gap: 13px;
    margin: 0;
    padding: 13px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 14px;
    line-height: 1.45;
    background-image: none !important;
    background-position: 0 0 !important;
    background-color: transparent;
}

.notary-profile-details .list_info > li.address,
.notary-profile-details .list_info > li.time,
.notary-profile-details .list_info > li.notary-profile-consultations,
.notary-profile-details .list_info > li.informationi,
.notary-profile-details .list_info > li.info {
    grid-column: 1 / -1;
}

.notary-profile-details .list_info > li.notary-profile-consultations {
    min-height: 0;
    padding: 16px 0;
}

.notary-profile-consultations-panel {
    width: 100%;
    padding: 15px;
    border: 1px solid #dbe3ee;
    border-radius: 13px;
    background: #f8fafc;
}

.notary-profile-consultations-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.notary-profile-consultations-heading span {
    color: #1e293b;
    font-size: 13px;
    font-weight: 750;
}

.notary-profile-consultations-heading small {
    color: #94a3b8;
    font-size: 12px;
}

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

.notary-profile-consultations-links .konsnasl {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 42px;
    align-items: center;
    margin: 0;
    padding: 9px 38px 9px 12px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    color: #334155;
    background: #fff;
    box-shadow: none;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.3;
    text-decoration: none;
}

.notary-profile-consultations-links .konsnasl::after {
    position: absolute;
    top: 50%;
    right: 13px;
    color: var(--portal-primary, #b21b3c);
    content: "\2192";
    font-size: 15px;
    line-height: 1;
    transform: translateY(-50%);
}

.notary-profile-consultations-links .konsnasl:hover {
    border-color: #e8b7c2;
    color: var(--portal-primary, #b21b3c);
    background: #fffafb;
}

.notary-profile-details .t-text {
    margin: 0 0 3px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.notary-profile-details address {
    margin: 0;
    color: #1e293b;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
}

.notary-profile-data-content {
    min-width: 0;
    flex: 1 1 auto;
}

.notary-profile-details .t-phone {
    padding: 0;
    border: 0;
    color: var(--portal-primary, #b21b3c);
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.notary-profile-details .metro ul {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.notary-profile-details .metro li {
    margin: 0;
}

.notary-profile-details a {
    color: var(--portal-primary, #b21b3c);
}

.notary-profile-credentials {
    margin-top: 14px;
}

.notary-profile-credentials-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.notary-profile-credentials-grid > li {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid #edf1f6;
    border-radius: 12px;
    color: #334155;
    background: #f8fafc;
    font-size: 13px;
    line-height: 1.45;
}

.notary-profile-credentials-grid > li:first-child:last-child,
.notary-profile-credentials-grid > li:nth-child(3) {
    grid-column: 1 / -1;
}

.notary-profile-data-icon {
    display: flex;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe3ee;
    border-radius: 9px;
    background: #f8fafc;
}

.notary-profile-data-icon::before {
    width: 16px;
    height: 16px;
    content: "";
    background: var(--portal-primary, #b21b3c);
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.notary-profile-data-icon--address::before { -webkit-mask-image: url(../images/n/fi-rs-map-marker.svg); mask-image: url(../images/n/fi-rs-map-marker.svg); }
.notary-profile-data-icon--district::before { -webkit-mask-image: url(../images/n/raion.svg); mask-image: url(../images/n/raion.svg); }
.notary-profile-data-icon--time::before { -webkit-mask-image: url(../images/n/time.svg); mask-image: url(../images/n/time.svg); }
.notary-profile-data-icon--metro::before { -webkit-mask-image: url(../images/n/metro.svg); mask-image: url(../images/n/metro.svg); }
.notary-profile-data-icon--features::before { -webkit-mask-image: url(../images/n/info.svg); mask-image: url(../images/n/info.svg); }
.notary-profile-data-icon--information::before { -webkit-mask-image: url(../images/n/fi-rs-comment-info.svg); mask-image: url(../images/n/fi-rs-comment-info.svg); }
.notary-profile-credentials-grid .palatai .notary-profile-data-icon::before { -webkit-mask-image: url(../images/n/fi-rs-home-palata.svg); mask-image: url(../images/n/fi-rs-home-palata.svg); }
.notary-profile-credentials-grid .licensi .notary-profile-data-icon::before { -webkit-mask-image: url(../images/n/fi-rs-id-licens.svg); mask-image: url(../images/n/fi-rs-id-licens.svg); }
.notary-profile-credentials-grid .prikazi .notary-profile-data-icon::before { -webkit-mask-image: url(../images/n/fi-rs-diploma.svg); mask-image: url(../images/n/fi-rs-diploma.svg); }

.notary-profile-credentials-grid .t-text {
    margin-bottom: 3px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.notary-profile-credentials-grid span {
    overflow-wrap: anywhere;
}

.notary-profile-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.notary-profile-card-title span {
    color: var(--portal-dark, #0f172a);
    font-size: 16px;
    font-weight: 800;
}

.notary-profile-card-title a {
    color: var(--portal-primary, #b21b3c);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.notary-profile-card-title small {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
}

.notary-profile-location {
    overflow: hidden;
}

.notary-profile-location #map {
    width: 100% !important;
    height: 310px !important;
    overflow: hidden;
    border-radius: 14px;
    background: #e5e7eb;
}

.notary-profile-gallery {
    width: 100%;
    margin: 0;
}

.notary-profile-gallery .images_p {
    display: flex;
    position: relative;
    width: 100%;
    height: 176px;
    gap: 7px;
    overflow: hidden;
    border-radius: 12px;
}

.notary-profile-gallery .images_p a {
    display: none;
}

.notary-profile-gallery .images_p a:first-child {
    display: block;
    width: 100%;
}

.notary-profile-gallery .images_p img {
    width: 100%;
    height: 176px;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

.notary-profile-gallery .photos-thumbnail {
    top: auto !important;
    right: 8px;
    bottom: 8px;
    line-height: 16px;
}

.notary-profile-panorama {
    margin-top: 12px;
    overflow: hidden;
    border-radius: 14px;
}

.notary-profile-owner-tools {
    margin: 0;
    padding: 2px 8px;
}

.notary-profile-owner-tools .blokmyerr {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
    justify-content: flex-end;
}

.notary-profile-owner-tools a {
    color: #64748b;
    font-size: 12px;
    text-decoration: none;
}

.notary-profile-owner-tools .editbynotar {
    width: 100%;
    margin: 8px 0 0;
    border-radius: 10px;
    color: #fff;
    background: var(--portal-primary, #b21b3c);
}

.notary-profile-inline-ad {
    width: 100%;
    min-width: 0;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 16px;
    isolation: isolate;
}

.notary-profile-inline-ad > div {
    max-width: 100%;
    overflow: hidden;
}

.notary-profile-page > .container1 > .right {
    display: none;
}

/* Legacy lower-page blocks are brought into the same card rhythm. */
.notary-profile-page .container_b2,
.notary-profile-page .pricex,
.notary-profile-page .review-block,
.notary-profile-page .add_review,
.notary-profile-page .reviewsall,
.notary-profile-page .near2,
.notary-profile-page .notarbred {
    width: 100%;
    max-width: 100%;
    margin: 20px 0 0;
    padding: 22px 24px;
    border: 1px solid var(--portal-border, #e5eaf2);
    border-radius: var(--portal-card-radius, 20px);
    background: #fff;
    box-shadow: var(--portal-shadow-sm, 0 2px 8px rgba(15, 23, 42, .04));
}

.notary-profile-page .container_b2 h2,
.notary-profile-page .reviewsh,
.notary-profile-page .near2 h2 {
    width: 100%;
    margin: 24px 0 12px;
    color: var(--portal-dark, #0f172a);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
}

.notary-profile-page .reviewsh {
    padding: 0;
}

.notary-profile-page .container_b2 a {
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    color: #334155;
    background: #f8fafc;
}

.notary-profile-page .container_b2 a:hover {
    border-color: var(--portal-border-red, #fecdd3);
    color: var(--portal-primary, #b21b3c);
    background: var(--portal-bg-accent, #fdf2f4);
}

.notary-profile-page .notary-profile-services {
    display: block;
    padding: 22px 24px 24px;
    border-bottom: 1px solid var(--portal-border, #e5eaf2);
}

.notary-profile-services-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf1f6;
}

.notary-profile-services-heading > span {
    order: 2;
    color: var(--portal-primary, #b21b3c);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.notary-profile-page .container_b2 .notary-profile-services-heading h2 {
    margin: 0;
    color: var(--portal-dark, #0f172a);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.015em;
    line-height: 1.25;
}

.notary-profile-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 9px;
}

.notary-profile-page .container_b2 .notary-profile-services-grid a {
    display: flex;
    min-width: 0;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 11px 11px 11px 14px;
    border: 1px solid #dbe3ee;
    border-radius: 11px;
    color: #334155;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 550;
    line-height: 1.3;
    text-decoration: none;
    transition: border-color .18s ease, color .18s ease, background-color .18s ease, transform .18s ease;
}

.notary-profile-services-grid a span {
    min-width: 0;
}

.notary-profile-services-grid a i {
    display: flex;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    align-items: center;
    justify-content: center;
    border: 1px solid #ead5da;
    border-radius: 8px;
    color: var(--portal-primary, #b21b3c);
    background: #fff;
    font-size: 14px;
    font-style: normal;
    line-height: 1;
}

.notary-profile-page .container_b2 .notary-profile-services-grid a:hover {
    border-color: #e8b7c2;
    color: var(--portal-primary, #b21b3c);
    background: #fffafb;
    transform: translateY(-1px);
}

.notary-profile-page .review-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.notary-profile-page .reviewsall > ul > li,
.notary-profile-page .near2 .notary_item {
    border-color: #e5eaf2;
    border-radius: 14px;
}

.notary-profile-page .notarbred {
    color: #64748b;
    font-size: 12px;
}

.notary-profile-page .notarbred .where {
    padding: 0;
}

.notary-profile-page .notary-profile-aggregate-card {
    padding: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--portal-border, #e5eaf2) !important;
}

.notary-profile-page .notary-profile-aggregate-card .aggregate {
    display: flex;
    min-height: 72px;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 15px 20px;
    color: #475569;
    background: #fff;
}

.notary-profile-aggregate-icon {
    display: flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid #f5d77a;
    border-radius: 11px;
    color: #e8a900;
    background: #fffbeb;
    font-size: 0;
    line-height: 1;
}

.notary-profile-aggregate-icon::before {
    display: block;
    color: inherit;
    content: "★";
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 18px;
    transform: translateY(-1px);
}

.notary-profile-aggregate-content {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.notary-profile-aggregate-label {
    display: inline-flex;
    align-items: center;
    color: #64748b;
    font-size: 12px;
    font-weight: 650;
    line-height: 22px;
}

.notary-profile-aggregate-content strong {
    display: inline-flex;
    align-items: center;
    color: #0f172a;
    font-size: 22px;
    font-weight: 800;
    line-height: 22px;
}

.notary-profile-aggregate-basis {
    display: inline-flex;
    align-items: center;
    color: #64748b;
    font-size: 12px;
    line-height: 22px;
}

.notary-profile-page .notary-profile-breadcrumb-card {
    margin-top: 12px;
    padding: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--portal-border, #e5eaf2) !important;
}

.notary-profile-page .notary-profile-breadcrumb-card .where {
    margin: 0;
    padding: 15px 20px;
    background: #fff;
}

.notary-profile-breadcrumb-card .breadcrumb2 {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    background: transparent;
    list-style: none;
    scrollbar-width: thin;
    white-space: nowrap;
}

.notary-profile-breadcrumb-card .breadcrumb2 > li,
.notary-profile-breadcrumb-card .breadcrumb2 > li a {
    color: #64748b;
    font-size: 12px;
    text-decoration: none;
}

.notary-profile-breadcrumb-card .breadcrumb2 > li:last-child {
    color: #334155;
    font-weight: 650;
}

.notary-profile-breadcrumb-card .breadcrumb2 > li + li::before {
    padding: 0 11px;
    color: #cbd5e1;
    content: "›";
}

/* Prices */
.notary-profile-page .pricex {
    display: block;
}

.notary-profile-page .pricex h2,
.notary-profile-page .notary-reviews-section h2 {
    margin: 0 0 16px;
}

.notary-profile-page .accordion {
    display: grid;
    gap: 8px;
    width: 100%;
}

.notary-profile-page .accordion .h3 {
    position: relative;
    display: block;
    margin: 0;
    padding: 14px 46px 14px 16px;
    border: 1px solid #e5eaf2;
    border-radius: 12px;
    color: #1e293b;
    background: #f8fafc;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.notary-profile-page .accordion .h3::before {
    right: 16px;
    left: auto;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background-color: #fff;
    background-size: 13px;
}

.notary-profile-page .accordion .h3:hover {
    border-color: #fecdd3;
    color: var(--portal-primary, #b21b3c);
    background: #fdf2f4;
}

.notary-profile-page .accordion .h3.active,
.notary-profile-page .accordion .h3.active:hover {
    border-color: #fecdd3;
    color: var(--portal-primary, #b21b3c);
    background: #fdf2f4;
}

.notary-profile-page .accordion .content {
    margin: -2px 0 2px;
    padding: 14px 16px;
    border: 1px solid #e5eaf2;
    border-radius: 10px;
    color: #475569;
    background: #fff;
}

.notary-profile-page .pricex .btnright a {
    margin-top: 12px;
    color: #fff;
    background: var(--portal-primary, #b21b3c);
    border-color: var(--portal-primary, #b21b3c);
}

/* Reviews */
.notary-profile-page .notary-reviews-section {
    margin-top: 24px;
}

.notary-profile-page .notary-reviews-section .reviewsh {
    margin: 0 0 12px;
}

.notary-profile-page .notary-reviews-section .review-block,
.notary-profile-page .notary-reviews-section .reviewsall,
.notary-profile-page .notary-reviews-section .add_review {
    margin-top: 12px;
}

.notary-profile-page .review-block {
    min-height: 0;
    height: auto;
    text-align: left;
}

.notary-profile-page .ratingblockstar {
    display: flex;
    width: auto;
    align-items: center;
    gap: 14px;
    float: none;
    flex-wrap: nowrap;
}

.notary-profile-page .ratingblockstar .rating {
    flex: 0 0 auto;
    color: #0f172a;
    font-size: 34px;
    line-height: 1;
}

.notary-profile-page .ratingblockstar .blockstar {
    width: auto;
    flex: 0 0 auto;
    margin: 0;
    float: none;
}

.notary-profile-page .ratingblockstar .blockstar ul {
    display: flex;
    width: auto;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
}

.notary-profile-page .ratingblockstar .blockstar ul li {
    display: block;
    flex: 0 0 9px;
    margin-bottom: 0;
    float: none;
}

.notary-profile-page .ratingblockstar .textrating {
    width: auto;
    flex: 0 0 auto;
    margin: 0;
    color: #64748b;
    font-size: 12px;
    white-space: nowrap;
}

.notary-profile-page .review-block .reviews {
    display: flex;
    align-items: center;
    gap: 14px;
    float: none;
    margin: 0;
}

.notary-profile-page .review-block .your_ocenka {
    width: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.notary-profile-page .review-block .your_ocenka,
.notary-profile-page .add_review .your_assessment {
    display: flex;
    align-items: center;
    gap: 14px;
}

.notary-profile-page .review-block .your_ocenka > div,
.notary-profile-page .add_review .your_assessment > div {
    flex: 0 0 auto;
    margin: 0;
    float: none;
}

.notary-profile-page .review-block .your_ocenka ul,
.notary-profile-page .add_review .your_assessment ul {
    display: flex;
    width: auto;
    align-items: center;
    margin: 0;
    padding: 0;
    float: none;
    list-style: none;
    white-space: nowrap;
}

.notary-profile-page .review-block .your_ocenka ul li,
.notary-profile-page .add_review .your_assessment ul li {
    display: block;
    flex: 0 0 13px;
    margin-bottom: 0 !important;
    float: none;
}

.notary-profile-page .review-block .add_review_button,
.notary-profile-page .add_review .add_review_button {
    width: auto;
    min-width: 160px;
    height: 42px;
    margin: 0;
    padding: 0 18px;
    border-radius: 10px;
    color: #fff;
    background: var(--portal-primary, #b21b3c);
    font-size: 13px;
    font-weight: 700;
    line-height: 42px;
}

.notary-profile-page .review-block .add_review_button:hover,
.notary-profile-page .add_review .add_review_button:hover {
    background: var(--portal-primary-hover, #961330);
}

.notary-profile-page .add_review h3 {
    margin: 0 0 18px;
    color: #0f172a;
    font-size: 18px;
}

.notary-profile-page .review_form input,
.notary-profile-page .review_form textarea {
    width: 100%;
    margin: 0 0 12px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: #f8fafc;
    font: inherit;
}

.notary-profile-page .review_form input:focus,
.notary-profile-page .review_form textarea:focus {
    border-color: var(--portal-primary, #b21b3c);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(178, 27, 60, .09);
    outline: none;
}

.notary-profile-page .reviewsall > ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.notary-profile-page .reviewsall > ul > li {
    margin: 0;
    padding: 18px;
    border: 1px solid #e5eaf2;
    border-radius: 14px;
    background: #f8fafc;
}

.notary-profile-page .reviewsall > ul > li.review_answer {
    margin: -11px 0 0 22px !important;
    border: 1px solid #fecdd3 !important;
    border-left: 3px solid var(--portal-primary, #b21b3c) !important;
    background: #fff !important;
}

.notary-profile-page .review_text {
    margin-top: 10px;
    color: #334155;
    line-height: 1.55;
}

/* Nearby notaries */
.notary-profile-page .near2 {
    padding: 22px 24px 24px;
}

.notary-profile-nearby-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf1f6;
}

.notary-profile-page .near2 .notary-profile-nearby-heading h2 {
    margin: 0;
    font-size: 20px;
    letter-spacing: -.015em;
}

.notary-profile-nearby-heading span {
    color: #94a3b8;
    font-size: 12px;
    white-space: nowrap;
}

.notary-profile-page .near2 .notary_items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.notary-profile-page .near2 .notary_item {
    display: grid;
    box-sizing: border-box;
    grid-template-columns: 54px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 12px;
    min-height: 0;
    margin: 0;
    padding: 14px;
    border: 1px solid #e5eaf2;
    background: #f8fafc;
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.notary-profile-page .near2 .notary_item:hover {
    border-color: #d5dee9;
    background: #fff;
    transform: translateY(-1px);
}

.notary-profile-page .near2 .notary_item > a:first-child {
    grid-row: 1 / span 2;
}

.notary-profile-page .near2 .notary_photo_wrapper {
    width: 54px;
    height: 54px;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
}

.notary-profile-page .near2 .notary_info {
    display: flex;
    width: auto;
    min-width: 0;
    padding: 0;
    flex-direction: column;
}

.notary-profile-page .near2 .notary_name a {
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.notary-profile-page .near2 .notary_name {
    display: block;
    margin: 0;
}

.notary-profile-page .near2 .notary_address {
    display: block;
    margin: 7px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.notary-profile-page .near2 .assessments2 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 5px 0 0;
    padding: 0;
    overflow: visible;
}

.notary-profile-page .near2 .assessments2 ul {
    display: flex;
    width: auto;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.notary-profile-page .near2 .assessments2 ul li {
    display: block;
    flex: 0 0 6px;
    margin: 0;
    float: none;
}

.notary-profile-page .near2 .assessments2 .star_text {
    width: auto;
    margin: 0;
    float: none;
    color: #475569;
    font-size: 12px;
    line-height: 1;
}

.notary-profile-page .near2 .nears {
    grid-column: 2;
    position: static;
    justify-self: start;
    align-self: end;
    height: auto;
    margin-top: 0;
    padding: 3px 8px;
    border-radius: 6px;
    color: #475569;
    background: #f1f5f9;
    font-size: 12px;
    line-height: 1.2;
}

.notary-profile-phone:focus-visible,
.notary-profile-question:focus-visible,
.notary-profile-rating:focus-visible,
.notary-profile-details .t-phone:focus-visible,
.notary-profile-page a:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .28);
    outline-offset: 3px;
}

@media (max-width: 1000px) {
    .notary-profile-layout {
        grid-template-columns: 1fr;
    }

    .notary-profile-aside {
        position: static;
    }

    .notary-profile-location #map {
        height: 360px !important;
    }
}

@media (max-width: 768px) {
    .notary-profile-page {
        padding-top: 16px;
    }

    .notary-profile-page > .container1 {
        max-width: calc(100% - 28px);
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .notary-profile-hero {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 18px;
        border-radius: 16px;
    }

    .notary-profile-identity {
        grid-column: 1 / -1;
        grid-row: 1;
        align-items: flex-start;
        gap: 13px;
        margin-bottom: 2px;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--portal-border-subtle, #f1f5f9);
    }

    .notary-profile-photo {
        width: 68px;
        height: 68px;
        flex-basis: 68px;
        border-radius: 18px;
        font-size: 21px;
    }

    .notary-profile-photo::after {
        inset: 5px;
        border-radius: 14px;
    }

    .notary-profile-title-row h1 {
        font-size: 22px;
    }

    .notary-profile-title-row .recent-icon {
        width: 17px;
        height: 17px;
        flex-basis: 17px;
        margin-top: 3px;
    }

    .notary-profile-trust {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        align-items: stretch;
        align-self: stretch;
    }

    .notary-profile-rating {
        width: 100%;
        min-height: 44px;
        height: 100%;
        justify-content: center;
        padding: 7px 9px;
    }

    .notary-profile-share {
        display: none;
    }

    .notary-profile-actions {
        display: contents;
    }

    .notary-profile-actions__buttons {
        grid-column: 1 / -1;
        grid-row: 3;
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        gap: 10px;
        padding-top: 2px;
    }

    .notary-profile-availability {
        grid-column: 2;
        grid-row: 2;
        width: 100%;
        align-self: stretch;
        order: 0;
    }

    .notary-profile-availability .working-hours-status,
    .notary-profile-status {
        width: 100%;
        min-height: 44px;
        justify-content: center;
        padding: 6px 8px;
        font-size: 12px;
        line-height: 1.25;
        text-align: center;
    }

    .notary-profile-phone,
    .notary-profile-question {
        width: 100%;
        min-width: 0;
        min-height: 46px;
        padding: 9px 12px;
    }

    .notary-profile-phone small {
        display: inline-flex;
    }

    .notary-profile-layout {
        margin-top: 12px;
        gap: 12px;
    }

    .notary-profile-card,
    .notary-profile-page .container_b2,
    .notary-profile-page .pricex,
    .notary-profile-page .review-block,
    .notary-profile-page .add_review,
    .notary-profile-page .reviewsall,
    .notary-profile-page .near2,
    .notary-profile-page .notarbred {
        padding: 18px;
        border-radius: 16px;
    }

    .notary-profile-page .notary-profile-aggregate-card,
    .notary-profile-page .notary-profile-breadcrumb-card {
        padding: 0;
    }

    .notary-profile-details .list_info {
        grid-template-columns: 1fr;
    }

    .notary-profile-details .list_info > li {
        grid-column: auto;
    }

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

    .notary-profile-credentials-grid > li,
    .notary-profile-credentials-grid > li:nth-child(3) {
        grid-column: auto;
    }

    .notary-profile-consultations-links noindex {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .notary-profile-consultations-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .notary-profile-consultations-links .konsnasl {
        width: 100% !important;
        min-height: 44px;
        margin: 0;
    }

    .notary-profile-services-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .notary-profile-services-heading > span {
        order: 0;
    }

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

    .notary-profile-nearby-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .notary-profile-nearby-heading span {
        white-space: normal;
    }

    .notary-profile-location #map {
        height: 280px !important;
    }

    .notary-profile-page .review-block {
        align-items: stretch;
        flex-direction: column;
    }

    .notary-profile-page .near2 .notary_items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .notary-profile-page .notary-reviews-section {
        margin-top: 20px;
    }

    .notary-profile-page .notary-reviews-section .reviewsh {
        margin: 0 0 10px;
        font-size: 20px;
        line-height: 1.22;
    }

    .notary-profile-page .notary-reviews-section .review-block,
    .notary-profile-page .notary-reviews-section .add_review {
        padding: 16px;
        border-radius: 15px;
    }

    .notary-profile-page .review-block {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .notary-profile-page .ratingblockstar {
        width: 100%;
        gap: 10px;
    }

    .notary-profile-page .ratingblockstar .rating {
        font-size: 32px;
    }

    .notary-profile-page .ratingblockstar .textrating {
        margin-left: auto;
        font-size: 12px;
    }

    .notary-profile-page .review-block .reviews {
        display: grid;
        width: 100%;
        min-width: 0;
        justify-self: stretch;
        gap: 13px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #e2e8f0;
    }

    .notary-profile-page .review-block .your_ocenka,
    .notary-profile-page .add_review .your_assessment {
        width: 100%;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .notary-profile-page .review-block .your_ocenka {
        margin: 0;
        padding: 0;
        border-top: 0;
    }

    .notary-profile-page .review-block .your_ocenka > div,
    .notary-profile-page .add_review .your_assessment > div {
        color: #475569;
        font-size: 13px;
        line-height: 25px;
    }

    .notary-profile-page .review-block .add_review_button,
    .notary-profile-page .add_review .add_review_button {
        display: block;
        width: 100% !important;
        max-width: none;
        min-width: 0;
        min-height: 46px;
        height: 46px;
        padding: 0 16px;
        line-height: 46px;
    }

    .notary-profile-page .add_review h3 {
        margin-bottom: 14px;
        font-size: 18px;
        line-height: 1.3;
    }

    .notary-profile-page .add_review .your_assessment {
        margin: 0 0 15px;
        padding: 0 0 14px;
        border-bottom: 1px solid #edf1f6;
        overflow: visible;
    }

    .notary-profile-page .review_form .form-group {
        width: 100%;
        margin: 0;
    }

    .notary-profile-page .review_form input,
    .notary-profile-page .review_form textarea {
        min-height: 44px;
        margin-bottom: 10px;
        padding: 10px 13px;
        border-radius: 10px;
        font-size: 14px;
        line-height: 1.35;
    }

    .notary-profile-page .review_form textarea {
        min-height: 100px;
        resize: vertical;
    }

    .notary-profile-page .review_form .field-otz-agree {
        display: block;
        margin: 1px 0 16px;
    }

    .notary-profile-page .review_form .field-otz-agree > input[type="hidden"] {
        display: none;
    }

    .notary-profile-page .review_form .notary-review-agreement {
        display: grid;
        align-items: start;
        grid-template-columns: 18px minmax(0, 1fr);
        gap: 10px;
        margin: 0;
        padding: 0;
        color: #334155;
        cursor: pointer;
        font-size: 13px;
        font-weight: 400;
        line-height: 1.45;
    }

    .notary-profile-page .review_form .field-otz-agree > .help-block {
        margin: 3px 0 0 28px;
    }

    .notary-profile-page .review_form .notary-review-agreement input[type="checkbox"] {
        position: static;
        display: block;
        width: 18px;
        height: 18px;
        min-height: 0;
        margin: 1px 0 0;
        padding: 0;
        align-self: start;
        accent-color: var(--portal-primary, #b21b3c);
    }

    .notary-profile-page .review_form .notary-review-agreement-text {
        display: block;
        min-width: 0;
    }

    .notary-profile-page .review_form .field-otz-agree a {
        color: var(--portal-primary, #b21b3c);
        text-underline-offset: 2px;
    }

    .notary-profile-page .review_form .field-otz-recaptcha {
        max-width: 100%;
        margin: 0 0 14px;
        overflow: hidden;
    }

    .notary-profile-title-row h1 {
        font-size: 21px;
        line-height: 1.12;
    }

    .notary-profile-rating,
    .notary-profile-availability .working-hours-status,
    .notary-profile-status {
        min-height: 46px;
    }

    .notary-profile-rating {
        gap: 5px;
    }

    .notary-profile-rating > span:last-child {
        font-size: 12px;
    }

    .notary-profile-details .list_info > li.notary-profile-consultations {
        padding: 13px 0;
    }

    .notary-profile-consultations-panel {
        padding: 12px;
        border-radius: 12px;
    }

    .notary-profile-consultations-heading {
        margin-bottom: 9px;
    }

    .notary-profile-consultations-links .konsnasl {
        padding: 9px 34px 9px 11px;
        border-radius: 9px;
        font-size: 13px;
    }

    .notary-profile-consultations-links .konsnasl::after {
        right: 11px;
    }

    .notary-profile-aggregate-content {
        column-gap: 7px;
        row-gap: 1px;
    }

    .notary-profile-aggregate-basis {
        flex-basis: 100%;
        line-height: 18px;
    }

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

    .notary-profile-phone,
    .notary-profile-question {
        width: 100%;
    }

    .notary-profile-phone small {
        display: inline;
    }

    .notary-profile-rating > span:last-child {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .notary-profile-page .review-block .reviews {
        align-items: flex-start;
        flex-direction: column;
    }

    .notary-profile-card-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
}

@media (max-width: 600px) {
    .notary-profile-actions__buttons {
        grid-template-columns: 1fr;
    }

    .notary-profile-phone,
    .notary-profile-question {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .notary-profile-page .review_form .field-otz-recaptcha {
        height: 66px;
    }

    .notary-profile-page .review_form .g-recaptcha {
        transform: scale(.84);
        transform-origin: left top;
    }
}

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