/* ---------- Base ---------- */
:root {
    --ink: #141414;
    --paper: #e6d9d8;
    --paper-contrast: #e1ccc7;
    --ink-soft: #2a2a2a;
    --ink-border: #3a3a3a;
    --ink-contrast: #000000;
    --placeholder: #bfb6b5;
    --shadow: rgba(0, 0, 0, .25);
    --border-strong: rgba(230, 217, 216, .12);
    --border-subtle: rgba(0, 0, 0, .1);
    --border-soft: rgba(0, 0, 0, .08);
    --border-contrast: rgba(230, 217, 216, .15);
    --on-dark-divider: rgba(255, 255, 255, .16);
    --on-dark-accent: rgba(255, 255, 255, .72);
    --on-dark-surface-hover: rgba(255, 255, 255, 0.137);
    --on-dark-border-strong: rgba(255, 255, 255, .2);
    --header-height: 3.5rem;
    --sidebar-width: 16.4rem;
    --button-border-radius: 0.3rem;

    --breakpoint: 650px;

    background-color: var(--ink);
}

* {
    box-sizing: border-box
}

a {
    text-decoration: none;
}

address {
    font-style: normal;
}

img {
    max-height: 30rem;
    max-width: 20rem;
    border-radius: var(--button-border-radius);
}
.images-container {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.video {
    height: 30rem;
}

html,
body {
    min-height: 100%
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

body {
    scrollbar-width: thin;
    scrollbar-color: var(--ink-border) transparent;
}

body::-webkit-scrollbar {
    width: 0.5rem;
}

body::-webkit-scrollbar-track {
    background: transparent;
}

body::-webkit-scrollbar-thumb {
    background-color: var(--ink-border);
    border-radius: 999px;
    border: 0.12rem solid transparent;
    background-clip: padding-box;
    transition: background-color 0.2s ease;
}

body::-webkit-scrollbar-thumb:hover {
    background-color: var(--ink-soft);
}

@media (max-width: 650px) {
    body {
        scrollbar-width: none;
    }

    body::-webkit-scrollbar {
        width: 0.3rem;
    }

    body::-webkit-scrollbar-thumb {
        border-width: 0.08rem;
    }
}


#header {
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 10;

    background-color: var(--ink);
    border-bottom: var(--paper) solid 1px;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;



    #sidebarToggle {
        width: 40px;
        height: 40px;

        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid transparent;
        border-radius: var(--button-border-radius);
        background: transparent;
        color: inherit;
        cursor: pointer;
        transition: background .2s ease;
        color: var(--paper);


        .nav-toggle__bars,
        .nav-toggle__bars::before,
        .nav-toggle__bars::after {
            display: block;
            width: 20px;
            height: 2px;
            background: currentColor;
            position: relative;
            transition: transform .2s ease
        }

        .nav-toggle__bars::before,
        .nav-toggle__bars::after {
            content: "";
            position: absolute;
            left: 0
        }

        .nav-toggle__bars::before {
            top: -6px
        }

        .nav-toggle__bars::after {
            top: 6px
        }

        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0
        }
    }

    #sidebarToggle:focus-visible,
    #sidebarToggle:hover {
        background: var(--on-dark-surface-hover);
    }

    #siteName {
        color: var(--paper);
        display: inline-flex;
        align-items: baseline;
        gap: 0.35rem;
        flex-wrap: wrap;
        font-weight: 400;
        line-height: 1.3rem;
    }

    #siteName .site-name__brand {
        text-transform: capitalize;
        font-weight: 700;
    }



    #siteName .site-name__descriptor {
        white-space: nowrap;
    }
}

@media (max-width: 425px) {
    :root {
        --header-height: 5rem !important;
    }
}

#sidebar {
    background-color: var(--ink);
    height: calc(100% - var(--header-height));
    width: var(--sidebar-width);
    position: fixed;
    z-index: 10;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease-in-out;
    border-right: var(--paper) solid 1px;

    hr {
        width: calc(var(--sidebar-width) - 2rem);
        border: 0;
        border-top: 1px solid var(--paper-contrast);
    }

    #navigation {
        display: flex;
        flex-direction: column;
        padding-top: 1rem;
        overflow-y: auto;
        overflow-x: hidden;

        a {
            width: 100%;
            padding: 0.65rem 2rem 0.65rem 2.75rem;
            transition: all 0.2s ease-in-out;
            position: relative;
            font-weight: 500;
            color: var(--paper);
        }

        a:hover {
            background: var(--on-dark-surface-hover);
        }

        a.is-active {
            font-weight: 700;
            pointer-events: none;
            cursor: default;
        }

        a.is-active::before {
            content: "";
            position: absolute;
            left: 1.5rem;
            top: 0.35rem;
            bottom: 0.35rem;
            width: 0.1rem;
            border-radius: 999px;
            background: var(--paper);
        }
    }

    .quick-contacts {
        display: flex;
        flex-direction: column;

        a {
            width: 100%;
            padding: 0.5rem 2rem;
            transition: all 0.2s ease-in-out;

            color: var(--paper);
        }

        a:hover {
            background: var(--on-dark-surface-hover);
        }
    }

    #languages {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 1rem;

        a {
            color: var(--paper);
            padding: 0.7rem 1rem;
            border-radius: var(--button-border-radius);
            position: relative;
        }

        a:focus-visible,
        a:hover {
            background: var(--on-dark-surface-hover);
        }

        a.is-active {
            font-weight: 700;
            pointer-events: none;
            cursor: default;
        }

        a.is-active::after {
            content: "";
            position: absolute;
            left: 0.4rem;
            right: 0.4rem;
            bottom: 0.15rem;
            height: 0.1rem;
            border-radius: 999px;
            background: var(--paper);
        }

    }
}

@media (max-width: 900px) {
    #sidebar {
        display: none;
    }
}

@media (min-width: 901px) {
    #sidebarToggle {
        visibility: hidden;
    }

    main,
    footer {
        margin-left: var(--sidebar-width);
    }
}

#sidebar.open {
    display: flex !important;
}


.container {
    max-width: 1100px;
    margin-inline: auto;
    padding: 0 1rem;
}


.hero {
    padding: 56px 20px 28px;

    h1 {
        font-size: 40px;
        line-height: 1.15;
        margin: 0 0 8px;
        font-weight: 800;
    }

    .subtitle {
        opacity: .9;
        margin: 0 0 28px
    }

    .service-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        margin: 24px 0 8px;
    }

    .card {
        background: var(--ink);
        color: var(--paper);
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 120px;
        border-radius: 6px;
        text-decoration: none;
        padding: 20px;
        text-align: center;
        font-weight: 700;
        transition: transform .15s ease, box-shadow .15s ease;
    }

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px var(--shadow)
    }
}

/* ---------- Content ---------- */
.content {
    padding: 3rem 3rem 48px
}

.prose h2 {
    margin-top: 32px;
    margin-bottom: 8px;
    font-size: 28px
}

.prose h3 {
    margin-top: 24px;
    margin-bottom: 6px;
    font-size: 20px
}

.prose h4 {
    margin-top: 16px;
    margin-bottom: 2px;
    font-size: 18px
}

.prose p {
    margin: 0 0 12px
}

.prose ul {
    margin: 0 0 12px 18px
}

.prose li {
    margin: 4px 0
}

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

.table-wrap {
    overflow: auto;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--paper-contrast);
    position: relative;

    .price-table {
        width: 100%;
        border-collapse: collapse;
        min-width: 620px;

        th,
        td {
            padding: 12px 14px;
            border-bottom: 1px solid var(--border-soft);
        }

        thead th {
            background: var(--ink);
            color: var(--paper);
            text-align: left;
        }
    }


    .package-cards {
        display: none;

        .package-card {
            border: 1px solid var(--border-soft);
            border-radius: 12px;
            background: var(--paper-contrast);
            padding: 20px 18px;
            box-shadow: 0 10px 24px -16px rgba(15, 23, 42, .45);
        }

        .package-card__header {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            gap: 12px;
            margin-bottom: 16px;
        }

        .package-card__title {
            margin: 0;
            font-size: 20px;
        }

        .package-card__price {
            margin: 0;
            font-weight: 600;
            color: var(--ink-soft);
        }

        .package-card dl {
            margin: 0;
            display: grid;
            gap: 12px;
        }

        .package-card__item {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 12px;
            font-size: 15px;
        }

        .package-card__item dt {
            font-weight: 600;
            color: var(--ink);
        }

        .package-card__item dd {
            margin: 0;
            color: var(--ink-soft);
        }
    }

}

@media (max-width: 640px) {
    .table-wrap {
        border: none;
        background: transparent;
        overflow: visible;
    }

    .price-table {
        display: none;
    }

    .package-cards {
        display: grid !important;
        gap: 16px;
    }
}

.steps {
    padding-left: 18px
}

.faq summary {
    cursor: pointer;
    padding: 10px 12px;
    background: var(--paper-contrast);
    border-radius: 8px
}

.faq+.faq {
    margin-top: 8px
}

.closing {
    padding-top: 36px;
}

a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--button-border-radius);
    background: var(--ink);
    color: var(--paper);
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: background .2s ease-in-out, color .2s ease-in-out, border-color .2s ease-in-out;
}

a.button:hover,
a.button:focus-visible {
    background: var(--ink-soft);
    color: var(--paper);
    border-color: var(--ink-border);
}


/* ---------- Footer ---------- */

.btn {
    display: inline-block;
    background: var(--ink);
    color: var(--paper);
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700
}

.btn.full {
    width: 100%
}


.site-footer {
    background: var(--ink);
    color: var(--paper);
    padding: 48px 0 0;
}


.site-footer .footer-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.site-footer .footer-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--ink);
}

.site-footer .footer-sidebar__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    padding: 0 2rem;
}

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

.site-footer .footer-sidebar__link {
    width: 100%;
    padding: 0.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--paper);
    transition: background .2s ease-in-out;
    border-radius: var(--button-border-radius);
}

.site-footer .footer-sidebar__link--stacked {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.35rem;
}

.site-footer .footer-sidebar__link--stacked .footer-sidebar__link-main,
.site-footer .footer-sidebar__link--stacked .footer-sidebar__link-hint {
    width: 100%;
}

.site-footer .footer-sidebar__link--stacked .footer-sidebar__link-hint {
    display: block;
}

.site-footer .footer-sidebar__link:hover,
.site-footer .footer-sidebar__link:focus-visible {
    background: var(--on-dark-surface-hover);
}

.site-footer .footer-sidebar__link-main {
    font-weight: 600;
    letter-spacing: .01em;
}

.site-footer .footer-sidebar__link-hint {
    font-size: 14px;
}

.site-footer .footer-sidebar__block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0.5rem 0 0.75rem;
}

.site-footer .footer-sidebar__block .footer-sidebar__link {
    padding: 0.25rem 2rem;
}

.site-footer .footer-sidebar__hint {
    margin: 0;
    padding: 0 2rem;
    font-size: 14px;
}

.site-footer .footer-sidebar__map {
    padding: 0 2rem 2rem;
}

.site-footer .footer-sidebar__map .map {
    height: 260px;
    background: var(--ink-contrast);
    border-radius: 12px;
    border: 1px solid var(--on-dark-border-strong);
}

.site-footer .footer-divider {
    width: calc(100% - 4rem);
    border: 0;
    border-top: 1px solid var(--paper-contrast);
    margin: 0 2rem;
}

.site-footer .footer-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--ink);
}

.site-footer .footer-form__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    padding: 0 2rem;
}

.site-footer .contact-form {
    display: grid;
    gap: 14px;
    padding: 0 2rem 2.5rem;
}

.site-footer .contact-form label {
    display: grid;
    gap: 6px;
    font-size: 15px;
}

.site-footer .contact-form input,
.site-footer .contact-form textarea {
    width: 100%;
    padding: 12px;
    background: var(--ink-soft);
    color: var(--paper);
    border: 1px solid var(--ink-border);
    border-radius: 8px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.site-footer .contact-form input::placeholder,
.site-footer .contact-form textarea::placeholder {
    color: var(--placeholder);
}

.site-footer .contact-form input:focus-visible,
.site-footer .contact-form textarea:focus-visible {
    border-color: rgba(230, 217, 216, .65);
    box-shadow: 0 0 0 3px rgba(230, 217, 216, .2);
    outline: none;
}

.site-footer .contact-form textarea {
    resize: vertical;
}

.site-footer .footer-form__submit {
    width: fit-content;
}

.site-footer .status-message {
    min-height: 1.25em;
    margin: 4px 0 0;
    font-size: 14px;
}

.site-footer .status-message--pending {
    color: var(--paper);
}

.site-footer .status-message--success {
    color: #7be3a0;
}

.site-footer .status-message--error {
    color: #ff8b8b;
}

.muted {
    opacity: .7;
}

.map-marker {
    border-radius: 16px;
    font-size: 14px;
    padding: 10px 15px;
    position: relative;
    transform: translateY(-8px);
    padding: 14px 18px;
    background: var(--ink);
    color: var(--paper);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 500;
    letter-spacing: -.01em;
}

.map-marker::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translate(-50%, 0);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--ink);
}

.map-marker-container .pin {
    position: absolute;
    left: 50%;
    bottom: var(--tail-gap);
    transform: translateX(-50%);
    width: var(--tail-width);
    height: var(--tail-height);
    pointer-events: none;
    z-index: 1;
}

.map-marker:hover,
.map-marker:focus-visible {
    box-shadow: 0 28px 48px rgba(8, 6, 16, .45);
}

.map-marker:focus-visible {
    outline: 2px solid rgba(230, 217, 216, .45);
    opacity: .9;
    outline-offset: 3px
}

.map-marker__title {
    font-weight: 700;
    font-size: 15px;
    color: var(--paper)
}

.map-marker__subtitle {
    opacity: .75
}


.footer-bottom {
    border-top: 1px solid var(--border-contrast);
    margin-top: 24px;
    padding: 14px 3rem 1rem;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

/* ---------- Responsive ---------- */
@media (max-width:900px) {
    .service-cards {
        grid-template-columns: 1fr
    }

    .grid-2 {
        grid-template-columns: 1fr
    }
}

@media (max-width:970px) {

    .site-footer .footer-bottom {
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        text-align: left;
        gap: 8px;
    }
}

@media (max-width:900px) {

    .site-footer .footer-sidebar__link,
    .site-footer .footer-sidebar__block .footer-sidebar__link {
        justify-content: flex-start;
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer .footer-sidebar__link-hint {
        font-size: 13px;
    }

    .site-footer .footer-sidebar__title,
    .site-footer .footer-sidebar__hint,
    .site-footer .footer-sidebar__block .footer-sidebar__link,
    .site-footer .footer-sidebar__map {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .site-footer .footer-sidebar__block .footer-sidebar__link {
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }

    .site-footer .footer-divider {
        width: calc(100% - 3rem);
        margin: 0 1.5rem;
    }

    .site-footer .footer-form__title,
    .site-footer .contact-form {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}