:root {
    --notary-blue: #0A1D37;
    --notary-gold: #C5A059;
    --notary-gold-dark: #A68545;
    --notary-bg: #F4F4F4;
    --paper: #ffffff;
    --ink-soft: #4B5563;
}

* {
    border-radius: 0 !important;
}

html {
    font-size: 16px;
    scroll-padding-top: 5rem;
}

body {
    font-family: "PT Sans", Tahoma, sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    animation: page-enter 0.42s ease;
}

::selection {
    background: rgba(197, 160, 89, 0.28);
    color: var(--notary-blue);
}

a,
button,
input,
textarea {
    outline-offset: 4px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--notary-gold);
}

.site-header {
    transition: box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--notary-gold);
}

.site-header.is-scrolled {
    border-color: rgba(10, 29, 55, 0.12);
    box-shadow: 0 18px 44px rgba(10, 29, 55, 0.12);
}

.nav-link {
    position: relative;
    padding: 0.75rem 0;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.25rem;
    height: 2px;
    background: var(--notary-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after,
.nav-link[aria-current]::after {
    transform: scaleX(1);
}

.nav-link.is-active,
.nav-link[aria-current] {
    color: var(--notary-gold);
}

.header-cta,
.mobile-menu-toggle,
.mobile-menu-link,
.hero-copy a,
#reviews button,
#services a,
.booking-form button {
    box-shadow: inset 0 0 0 0 rgba(197, 160, 89, 0.16);
}

.header-cta:hover,
.mobile-menu-toggle:hover,
.mobile-menu-link:hover,
.hero-copy a:hover,
#reviews button:hover,
#services a:hover,
.booking-form button:hover {
    box-shadow: inset 0 -3.5rem 0 0 rgba(197, 160, 89, 0.12);
}

.mobile-menu-panel {
    box-shadow: 0 28px 46px rgba(10, 29, 55, 0.12);
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    min-height: 3rem;
    border-left: 3px solid transparent;
    padding-left: 1rem;
    transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.mobile-menu-link:hover,
.mobile-menu-link:focus-visible,
.mobile-menu-link.is-active,
.mobile-menu-link[aria-current] {
    border-color: var(--notary-gold);
    background: rgba(197, 160, 89, 0.08);
    color: var(--notary-gold);
}

.footer-contact-button {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
    transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.footer-contact-button:hover,
.footer-contact-button:focus-visible {
    border-color: var(--notary-gold);
    background: rgba(197, 160, 89, 0.1);
    color: var(--notary-gold);
    transform: translateY(-2px);
}

.footer-contact-button svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
}

.max-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.15rem;
    height: 1.35rem;
    border: 1px solid currentColor;
    font-size: 0.58rem;
    line-height: 1;
}

body.is-page-leaving {
    animation: page-leave 0.24s ease both;
    pointer-events: none;
}

body.has-modal-open {
    overflow: hidden;
}

@keyframes page-enter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes page-leave {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    body,
    body.is-page-leaving,
    .booking-success-modal__backdrop,
    .booking-success-modal__dialog {
        animation: none;
        transition: none;
    }
}

.wood-texture {
    background: linear-gradient(rgba(10, 29, 55, 0.55), rgba(10, 29, 55, 0.55)),
                url('/resources/texture/purty-wood.png'),
                #74544c;
    background-blend-mode: multiply;
}

.hero-gradient {
    isolation: isolate;
    background: linear-gradient(to right, rgba(255,255,255,0.99) 30%, rgba(255,255,255,0.42) 58%, rgba(255,255,255,0) 78%),
                url('/resources/img/main-cover.png');
    background-size: 100% 100%, auto 100%;
    background-position: center, right center;
    background-repeat: no-repeat;
}

.hero-rule {
    box-shadow: 0 0 0 1px rgba(197, 160, 89, 0.25);
}

.hero-copy {
    position: relative;
}

.hero-info-panel {
    border-top: 1px solid rgba(197, 160, 89, 0.42);
    box-shadow: 0 -18px 48px rgba(10, 29, 55, 0.18);
}

.gold-border {
    border-left: 4px solid var(--notary-gold);
}

#advantages .grid > div,
#reviews .grid > div,
.preparation-shell,
.contact-shell {
    border-color: rgba(10, 29, 55, 0.1);
}

#advantages .grid > div {
    position: relative;
    min-height: 21rem;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

#advantages .grid > div::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--notary-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

#advantages .grid > div::after {
    content: "";
    position: absolute;
    right: -3rem;
    bottom: -3rem;
    width: 8rem;
    height: 8rem;
    border: 1px solid rgba(197, 160, 89, 0.22);
    transform: rotate(45deg);
    pointer-events: none;
}

#advantages .grid > div:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(10, 29, 55, 0.09);
}

#advantages .grid > div:hover::before {
    transform: scaleX(1);
}

#advantages svg,
.service-row svg {
    transition: transform 0.25s ease, color 0.25s ease;
}

#advantages .grid > div:hover svg {
    transform: translateY(-4px);
}

.service-row {
    position: relative;
    isolation: isolate;
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.service-row::before {
    content: "";
    position: absolute;
    inset: -1rem;
    z-index: -1;
    border-left: 3px solid var(--notary-gold);
    background: #F8F5EE;
    opacity: 0;
    transform: scaleX(0.985);
    transform-origin: left;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.service-row:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

.service-row:hover svg {
    transform: translateX(4px);
    color: var(--notary-gold-dark);
}

.preparation-shell {
    position: relative;
    overflow: hidden;
}

.preparation-shell::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: var(--notary-gold);
}

.process-step {
    position: relative;
    display: grid;
    grid-template-columns: 4rem 1fr;
    gap: 1.5rem;
}

.process-step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 2rem;
    top: 4.75rem;
    bottom: -1.75rem;
    width: 1px;
    background: rgba(197, 160, 89, 0.35);
}

.process-number {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border: 1px solid rgba(197, 160, 89, 0.55);
    background: #fff;
    color: var(--notary-gold-dark);
    font-family: "PT Serif", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 800;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.process-step:hover .process-number {
    border-color: var(--notary-gold);
    background: var(--notary-gold);
    color: #fff;
}

.documents-panel {
    position: relative;
    overflow: hidden;
}

.documents-panel::after {
    content: "";
    position: absolute;
    right: -3.5rem;
    bottom: -3.5rem;
    width: 9rem;
    height: 9rem;
    border: 1px solid rgba(197, 160, 89, 0.22);
    transform: rotate(45deg);
    pointer-events: none;
}

.document-list li {
    display: grid;
    grid-template-columns: 1rem 1fr;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(10, 29, 55, 0.08);
}

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

.document-mark {
    width: 0.7rem;
    height: 0.7rem;
    margin-top: 0.35rem;
    background: var(--notary-gold);
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.14);
}

.document-list h4 {
    margin-bottom: 0.45rem;
    color: var(--notary-blue);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.document-list p {
    color: #5B6472;
    font-size: 0.875rem;
    line-height: 1.7;
}

.services-hero {
    position: relative;
    isolation: isolate;
}

.services-hero::after {
    content: "";
    position: absolute;
    right: -5rem;
    top: 6rem;
    z-index: -1;
    width: 18rem;
    height: 18rem;
    border: 1px solid rgba(197, 160, 89, 0.2);
    transform: rotate(45deg);
}

.services-hero-panel {
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.18);
}

.contacts-hero {
    position: relative;
    isolation: isolate;
}

.contacts-hero::after {
    content: "";
    position: absolute;
    right: -4rem;
    top: 5rem;
    z-index: -1;
    width: 17rem;
    height: 17rem;
    border: 1px solid rgba(197, 160, 89, 0.2);
    transform: rotate(45deg);
}

.contacts-hero-panel {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.16);
}

.contact-method-card {
    position: relative;
    overflow: hidden;
    min-height: 14rem;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.contact-method-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--notary-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.contact-method-card::after {
    content: "";
    position: absolute;
    right: -2.75rem;
    bottom: -2.75rem;
    width: 6rem;
    height: 6rem;
    border: 1px solid rgba(197, 160, 89, 0.2);
    transform: rotate(45deg);
    pointer-events: none;
}

.contact-method-card:hover {
    background: #F8F5EE;
    box-shadow: 0 24px 58px rgba(10, 29, 55, 0.08);
    transform: translateY(-4px);
}

.contact-method-card:hover::before {
    transform: scaleX(1);
}

.route-note {
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.route-note:hover {
    border-color: var(--notary-gold-dark);
    transform: translateX(4px);
}

.services-hero-list {
    display: grid;
    gap: 1rem;
}

.services-hero-list li {
    position: relative;
    padding-left: 1.35rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.55;
    text-transform: uppercase;
}

.services-hero-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.55rem;
    height: 0.55rem;
    background: var(--notary-gold);
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.12);
}

.service-filter-bar {
    align-items: stretch;
}

.service-search-panel {
    display: grid;
    gap: 0.85rem;
}

.service-search-label {
    color: var(--notary-gold-dark);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.service-search-control {
    display: grid;
    grid-template-columns: 1.5rem 1fr auto;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(10, 29, 55, 0.16);
    border-left: 5px solid var(--notary-gold);
    background: #fff;
    padding: 1rem 1.1rem;
    box-shadow: 0 18px 44px rgba(10, 29, 55, 0.04);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-search-control:focus-within {
    border-color: rgba(197, 160, 89, 0.72);
    box-shadow: 0 22px 54px rgba(10, 29, 55, 0.08);
}

.service-search-control svg {
    width: 1.35rem;
    height: 1.35rem;
    color: var(--notary-gold);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.service-search-control input {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--notary-blue);
    font-size: 1rem;
    line-height: 1.4;
}

.service-search-control input::placeholder {
    color: rgba(75, 85, 99, 0.66);
}

.service-search-control input:focus {
    outline: none;
}

.service-search-control button {
    border: 1px solid rgba(10, 29, 55, 0.16);
    padding: 0.75rem 0.9rem;
    color: var(--notary-blue);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1;
    text-transform: uppercase;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.service-search-control button:hover,
.service-search-control button:focus-visible {
    border-color: var(--notary-gold);
    background: var(--notary-blue);
    color: #fff;
}

.service-search-note {
    color: #5B6472;
    font-size: 0.8rem;
    font-weight: 700;
}

.service-search-note span {
    color: var(--notary-gold-dark);
    font-family: "PT Serif", Georgia, serif;
    font-size: 1.25rem;
}

.service-filter {
    min-height: 3rem;
    border: 1px solid rgba(10, 29, 55, 0.16);
    background: #fff;
    color: var(--notary-blue);
    padding: 0.9rem 1.1rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.service-filter:hover,
.service-filter:focus-visible,
.service-filter.is-active {
    border-color: var(--notary-gold);
    background: var(--notary-blue);
    color: #fff;
    transform: translateY(-2px);
}

.service-card {
    position: relative;
    display: flex;
    min-height: 28rem;
    flex-direction: column;
    overflow: hidden;
    scroll-margin-top: 7rem;
    box-shadow: 0 18px 44px rgba(10, 29, 55, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: var(--notary-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.service-card::after {
    content: "";
    position: absolute;
    right: -3.75rem;
    bottom: -3.75rem;
    width: 8rem;
    height: 8rem;
    border: 1px solid rgba(197, 160, 89, 0.2);
    transform: rotate(45deg);
    pointer-events: none;
}

.service-card:hover {
    border-color: rgba(197, 160, 89, 0.5);
    box-shadow: 0 28px 68px rgba(10, 29, 55, 0.1);
    transform: translateY(-6px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card.is-linked-target {
    border-color: rgba(197, 160, 89, 0.78);
    box-shadow: 0 34px 82px rgba(10, 29, 55, 0.14);
}

.service-card.is-linked-target::before {
    transform: scaleX(1);
}

.service-card.is-hidden {
    display: none;
}

.service-anchor {
    display: block;
    height: 0;
    overflow: hidden;
    scroll-margin-top: 7rem;
}

.service-empty-state {
    border: 1px solid rgba(10, 29, 55, 0.12);
    border-left: 5px solid var(--notary-gold);
    background: #fff;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 18px 44px rgba(10, 29, 55, 0.04);
}

.service-card__meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    border-left: 3px solid var(--notary-gold);
    background: rgba(197, 160, 89, 0.1);
    padding: 0.45rem 0.75rem;
    color: var(--notary-gold-dark);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1.15;
    text-transform: uppercase;
}

.service-number {
    color: rgba(10, 29, 55, 0.16);
    font-family: "PT Serif", Georgia, serif;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
}

.service-card h2 {
    margin-bottom: 1rem;
    color: var(--notary-blue);
    font-family: "PT Serif", Georgia, serif;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.service-card p {
    margin-bottom: 2rem;
    color: #5B6472;
    font-size: 0.94rem;
    line-height: 1.72;
}

.service-action {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    margin-top: auto;
    border: 2px solid var(--notary-blue);
    padding: 1rem 1.15rem;
    color: var(--notary-blue);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    line-height: 1.2;
    text-transform: uppercase;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.service-action svg {
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 auto;
    fill: currentColor;
    transition: transform 0.25s ease;
}

.service-action:hover,
.service-action:focus-visible {
    border-color: var(--notary-gold);
    background: var(--notary-gold);
    color: #fff;
}

.service-action:hover svg,
.service-action:focus-visible svg {
    transform: translateX(4px);
}

.service-request-shell {
    position: relative;
    overflow: hidden;
}

.service-request-shell::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: var(--notary-gold);
    z-index: 1;
}

#reviews .grid > div {
    overflow: hidden;
    min-height: 25rem;
    box-shadow: 0 18px 48px rgba(10, 29, 55, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

#reviews .grid > div::before {
    content: "\201C";
    position: absolute;
    right: 1.25rem;
    top: -0.5rem;
    color: rgba(197, 160, 89, 0.16);
    font-family: "PT Serif", Georgia, serif;
    font-size: 7rem;
    line-height: 1;
    pointer-events: none;
}

#reviews .grid > div::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--notary-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
    pointer-events: none;
}

#reviews .grid > div:hover {
    transform: translateY(-6px);
    border-color: rgba(197, 160, 89, 0.45);
    box-shadow: 0 28px 70px rgba(10, 29, 55, 0.1);
}

#reviews .grid > div:hover::after {
    transform: scaleX(1);
}

.contact-shell {
    border: 1px solid rgba(10, 29, 55, 0.1);
}

.contact-map iframe {
    filter: grayscale(1) contrast(1.05);
}

.booking-form .relative::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--notary-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.booking-form .relative:focus-within::after {
    transform: scaleX(1);
}

.privacy-consent {
    display: grid;
    grid-template-columns: 1.2rem 1fr;
    gap: 0.85rem;
    align-items: start;
    color: #5B6472;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.65;
}

.privacy-consent input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.18rem;
    appearance: none;
    border: 2px solid rgba(10, 29, 55, 0.22);
    background: #fff;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.privacy-consent input:checked {
    border-color: var(--notary-gold);
    background: var(--notary-gold);
    box-shadow: inset 0 0 0 3px #fff;
}

.privacy-consent a {
    color: var(--notary-blue);
    text-decoration: underline;
    text-decoration-color: rgba(197, 160, 89, 0.65);
    text-underline-offset: 0.22rem;
    transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

.privacy-consent a:hover,
.privacy-consent a:focus-visible {
    color: var(--notary-gold-dark);
    text-decoration-color: currentColor;
}

.booking-form-status {
    border-left: 4px solid var(--notary-gold);
    padding: 1rem 1.1rem;
    background: rgba(197, 160, 89, 0.1);
    color: var(--notary-blue);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.55;
    text-transform: uppercase;
}

.booking-form-status.is-error {
    border-left-color: #B42318;
    background: rgba(180, 35, 24, 0.08);
    color: #8A1F17;
}

.booking-form-status.is-success {
    border-left-color: var(--notary-gold);
}

.booking-form button:disabled {
    cursor: wait;
    opacity: 0.72;
    pointer-events: none;
}

.booking-success-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    isolation: isolate;
    padding: 1.25rem;
}

.booking-success-modal[hidden] {
    display: none;
}

.booking-success-modal__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(6, 16, 31, 0.74);
    opacity: 0;
    backdrop-filter: blur(8px);
    transition: opacity 0.22s ease;
}

.booking-success-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 34rem);
    max-height: calc(100vh - 2.5rem);
    overflow: hidden;
    border: 1px solid rgba(197, 160, 89, 0.45);
    border-top: 6px solid var(--notary-gold);
    background: #fff;
    box-shadow: 0 42px 110px rgba(0, 0, 0, 0.36);
    color: var(--notary-blue);
    opacity: 0;
    padding: clamp(2rem, 6vw, 3.25rem);
    transform: translateY(1rem) scale(0.98);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.booking-success-modal__dialog::after {
    content: "";
    position: absolute;
    right: -3.25rem;
    bottom: -3.25rem;
    width: 7.5rem;
    height: 7.5rem;
    border: 1px solid rgba(197, 160, 89, 0.22);
    transform: rotate(45deg);
    pointer-events: none;
}

.booking-success-modal.is-open .booking-success-modal__backdrop,
.booking-success-modal.is-open .booking-success-modal__dialog {
    opacity: 1;
}

.booking-success-modal.is-open .booking-success-modal__dialog {
    transform: translateY(0) scale(1);
}

.booking-success-modal__close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(10, 29, 55, 0.14);
    background: #fff;
    color: var(--notary-blue);
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.booking-success-modal__close svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: currentColor;
}

.booking-success-modal__close:hover,
.booking-success-modal__close:focus-visible {
    border-color: var(--notary-gold);
    background: var(--notary-blue);
    color: #fff;
}

.booking-success-modal__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 1.75rem;
    background: var(--notary-blue);
    color: var(--notary-gold);
    box-shadow: 0 0 0 8px rgba(197, 160, 89, 0.12);
}

.booking-success-modal__mark svg {
    width: 2rem;
    height: 2rem;
    fill: currentColor;
}

.booking-success-modal__eyebrow {
    margin-bottom: 0.85rem;
    color: var(--notary-gold-dark);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    line-height: 1.3;
    text-transform: uppercase;
}

.booking-success-modal__dialog h2 {
    max-width: 25rem;
    margin-bottom: 1rem;
    color: var(--notary-blue);
    font-family: "PT Serif", Georgia, serif;
    font-size: clamp(1.85rem, 5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.08;
    text-transform: uppercase;
}

.booking-success-modal__dialog p {
    color: #566171;
    font-size: 1rem;
    line-height: 1.75;
}

.booking-success-modal__meta {
    display: grid;
    gap: 0.7rem;
    margin: 2rem 0;
    border-left: 4px solid var(--notary-gold);
    background: #F8F5EE;
    padding: 1.15rem 1.25rem;
    color: var(--notary-blue);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    line-height: 1.45;
    text-transform: uppercase;
}

.booking-success-modal__primary {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3.75rem;
    border: 2px solid var(--notary-blue);
    background: var(--notary-blue);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.26em;
    line-height: 1.2;
    text-transform: uppercase;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.booking-success-modal__primary:hover,
.booking-success-modal__primary:focus-visible {
    border-color: var(--notary-gold);
    background: var(--notary-gold);
    color: #fff;
    box-shadow: inset 0 -3.75rem 0 0 rgba(10, 29, 55, 0.08);
}

.booking-form .relative input:not(:placeholder-shown) + label,
.booking-form .relative textarea:not(:placeholder-shown) + label {
    top: -10px;
    color: var(--notary-gold);
    font-size: 9px;
}

.service-item:hover {
    background-color: #f9f9f9;
    padding-left: 1.5rem;
    transition: all 0.3s ease;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--notary-blue);
}

@media (min-width: 1921px) {
    html {
        font-size: clamp(16px, 0.833333vw, 28px);
    }

    body .container {
        max-width: min(96rem, calc(100vw - 8rem)) !important;
    }

    [class*="text-[10px]"] {
        font-size: 0.625rem !important;
    }

    [class*="text-[11px]"] {
        font-size: 0.6875rem !important;
    }

    [class*="text-[12px]"] {
        font-size: 0.75rem !important;
    }

    .booking-form .relative input:focus + label,
    .booking-form .relative textarea:focus + label,
    .booking-form .relative input:not(:placeholder-shown) + label,
    .booking-form .relative textarea:not(:placeholder-shown) + label {
        top: -0.625rem !important;
        font-size: 0.5625rem !important;
    }
}

@media (max-width: 767px) {
    .hero-gradient {
        background-image: linear-gradient(to right, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.92) 66%, rgba(255,255,255,0.78) 100%),
                          url('/resources/img/main-cover.png');
        background-size: auto 58%;
        background-position: 78% 22%;
    }

    #advantages .grid > div,
    #reviews .grid > div,
    .service-card {
        min-height: auto;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-card h2 {
        font-size: 1.12rem;
    }

    .service-action {
        letter-spacing: 0.14em;
    }

    .service-search-control {
        grid-template-columns: 1.25rem 1fr;
    }

    .service-search-control button {
        grid-column: 2;
        justify-self: start;
    }

    .process-step {
        grid-template-columns: 3.25rem 1fr;
        gap: 1rem;
    }

    .process-number {
        width: 3.25rem;
        height: 3.25rem;
        font-size: 1rem;
    }

    .process-step:not(:last-child)::before {
        left: 1.625rem;
        top: 4rem;
    }

    .booking-success-modal {
        padding: 0.75rem;
    }

    .booking-success-modal__dialog {
        max-height: calc(100vh - 1.5rem);
        padding: 1.75rem;
    }

    .booking-success-modal__close {
        right: 0.75rem;
        top: 0.75rem;
    }

    .booking-success-modal__mark {
        width: 3.75rem;
        height: 3.75rem;
        margin-bottom: 1.35rem;
    }

    .booking-success-modal__dialog h2 {
        max-width: 18rem;
        font-size: 1.75rem;
    }

    .booking-success-modal__dialog p {
        font-size: 0.94rem;
    }

    .booking-success-modal__meta {
        margin: 1.5rem 0;
    }
}
