:root {
    --primary-color: #7F8C83;
    --primary-color-50: rgba(141, 147, 135, 0.50);
    /*--page-panel-color: #F9F7F2;*/
    --accent-text-light: #FBB03B;
    --dark-text-color: #322D25;
    --light-text-color: #F9F7F2;

    --bg-main: #F6F5F2 /* body background */;
    --bg-section: #ECEBE6; /* page-panel-color */
    --bg-card: #FFFFFF;
    --bg-headline-section: #e6d6cd;

    --primary: #7F8C83;
    --primary-dark: #4E5A54;

    --accent: #C96A3A;
    --accent-hover: #B85A2B;
    --accent-soft: #E3B08A;

    --text-main: #2F2F2C;
    --text-muted: #6F726D;
    --text-invert: #F6F5F2;

    --light-border: #e3e3e3;

    --main-font-size: 16px;
    --page-panel-shadow: 4px 4px 6px 0 rgba(0, 0, 0, 0.25);
    --page-pannel-inline-padding: 32px;
    --base-elements-gap: 48px;
}

*, *::before, *::after {
    box-sizing: border-box;
}


html, body {
    margin: 0;
}

body {
    min-width: 100svw;
    min-height: 100svh;

    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: .03ch;
    overflow-x: clip;
    color: var(--dark-text-color);
    background-color: var(--bg-main);

    line-height: 1.8em;
}

strong {
    font-weight: inherit;
    color: color-mix(in srgb, currentColor 85%, var(--accent) 15%);
}

.page {
    display: grid;
    max-width: 1240px;
    margin-inline: auto;
    row-gap: var(--base-elements-gap);
    position: relative;

}

.hero {

    --art-height: 450px;

    --hero-content-width: 60%;
    display: flex;
    position: relative;
    padding-inline: var(--page-pannel-inline-padding);

    flex-direction: column;
    justify-content: space-evenly;
    gap: 0.625rem;
    align-self: stretch;
    background-color: var(--primary-dark);
    min-height: var(--art-height);
    box-shadow: var(--page-panel-shadow);
    color: var(--text-invert);
    overflow: clip;
    pointer-events: none;
}

.hero * {
    z-index: 1;
}

.hero h1 {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.1;
    margin-block: 0;
    max-width: var(--hero-content-width);
    margin-block-end: .5em;
}

.hero p {
    font-size: 1.5rem;
    margin-block: 0;
    max-width: var(--hero-content-width);
    color: var(--accent-text-light);
    padding: 10px;
    font-weight: 500;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, transparent 100%);

}

.hero ul {
    display: flex;
    flex-direction: column;
    gap: .3em;
    font-size: 1.1rem;
    width: max-content;
    align-items: flex-start;
    font-weight: 400;
    list-style: none;
    margin-inline: 0;
    padding-inline: 0;
}

.hero ul li {
    position: relative;
    padding-inline: 4ch;

    box-sizing: border-box;

}

.hero ul li:before {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    width: 28px;
    height: 28px;
    transform: translateY(-50%);
    background: url(/assets/img/pict/done-2.svg) center / contain no-repeat;
    opacity: 70%;
}


.hero-art {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: var(--art-image) right top / auto var(--art-height) no-repeat;
    min-height: var(--art-height);
    aspect-ratio: 3 /2;
    z-index: 0;

    -webkit-mask-image: radial-gradient(
            500px 800px at bottom right, black 0%, black 60%, transparent 95%
    );
    mask-image: radial-gradient(
            500px 800px at bottom right, black 0%, black 60%, transparent 95%
    );
}


.page-panel {
    background-color: var(--bg-section);
    box-shadow: var(--page-panel-shadow);
}



.contacts .logo {
    --logo-height: 60px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    background: url(/assets/img/logo.svg) center center / auto var(--logo-height) no-repeat;
    height: var(--logo-height);
    aspect-ratio: 20 / 7;
    filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.5));
    /*margin-block-end: 2rem;*/

}


main {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr max-content;
    grid-template-areas: "content scroll";
    gap: var(--base-elements-gap);
}

main :where(.content, .scrolling-menu) :is(p, h1, h2, h3, h4, h5, h6, ul, ol, li, pre) {
    padding-inline: 0;
    margin-block: 0;
}


.scrolling-menu-track {
    grid-area: scroll;
    position: relative;
    width: 375px;
}

.scrolling-menu {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
    padding: var(--page-pannel-inline-padding);

    position: sticky;
    top: 0;
}

.scrolling-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    padding-block: 16px;
    width: 100%;
    font-size: 1rem;
    font-weight: 500;
}


.scrolling-menu ul li {
    margin-block: .5em;
    padding: .5em 2ch;
    text-align: end;
    border-right: 1px solid var(--primary-color-50);
    border-bottom: 1px solid var(--primary-color-50);
    border-radius: 2px;
    background: radial-gradient(300px 150px at top left, transparent 0%, rgba(147, 142, 139, 0.48) 100%);
}

.scrolling-menu ul li:hover {
    box-shadow: 2px 2px 6px 0 rgba(0, 0, 0, 0.3);
}

.scrolling-menu .links li {
    position: relative;
    padding-inline: 0;
    overflow: clip;
}

.scrolling-menu .links li > a {
    display: block;
    width: 100%;
    padding-inline: 2ch;
}

.scrolling-menu .links li > a::after {
    position: absolute;
    content: "";
    inset: -10%;

    background: linear-gradient(
            120deg,
            transparent 40%,
            rgba(255, 255, 255, 0.35),
            transparent 100%
    );

    transform: translateX(-100%);
    transition: transform .6s ease;
}

.scrolling-menu .links li > a:hover::after {
    transform: translateX(100%);
}


.scrolling-menu a,
.scrolling-menu a:visited {
    color: inherit;
    text-decoration: none;
}

.contacts {
    --social-size: 25px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    align-self: stretch;
    /*padding-bottom: 16px;*/
    gap: 8px;

}

p.address-line {
    font-size: 0.875rem;
    font-weight: 400;
}

.contacts .social__links {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: flex-end;
    flex: 1 0 auto;
}

.contacts .social {
    padding-block-start: 1rem;
    display: flex;
    align-items: center;
    justify-items: stretch;
    border-block-start: 1px solid var(--accent-soft);

}

.contacts img {
    display: block;
}

.cta-buttons-block {
    display: flex;
    flex-direction: column;
    border-block: 1px solid var(--accent-soft);
    padding-block: 1rem;
    width: 100%;
    justify-content: space-between;
    gap: 16px;

}

a.cta-button {
    text-decoration: none;
    font-size: 1.2rem;
    padding: 10px;
    box-sizing: border-box;
    font-weight: 500;
    letter-spacing: .09ch;
    background: var(--primary);
    color: var(--text-invert);
    flex: 1 0 auto;
    text-align: center;
    transition: .2s;
}

a.cta-button:hover {
    box-shadow: 2px 2px 6px 0 rgba(0, 0, 0, 0.3);
}

a.cta-button:first-of-type {
    background: var(--accent);
}

.phone {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark) !important;
}

.phone, .email {
    display: flex;
    justify-content: space-between;
    justify-self: stretch;
    align-items: center;
    transition: .2s;
}

.phone span:hover {
    /*color: var(--primary);*/
    text-shadow: 1px 1px 8px var(--primary-color-50);

}

a.cta-button:visited {
    color: var(--text-invert);

}


.contacts .social img {
    height: var(--social-size);
    aspect-ratio: 1 / 1;
}

.contacts .current-section {
    margin-top: 8px;
}


main .content {

    display: flex;
    flex-direction: column;

    gap: var(--base-elements-gap);
    grid-area: content;
}

.content .content-block {
    /*display: flex;*/
    /*flex-direction: column;*/
    /*gap: 16px;*/
    display: flow-root;
    padding: var(--page-pannel-inline-padding);
}

.content .content-block ul {
    margin-block-end: 1rem;
}

.content .content-block :last-child {
    margin-block-end: 0;
}

.content :is(ul, ol) {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-inline-start: 4ch;
}

.content h2 {
    font-size: 1.5rem;
    margin-block-end: 1em;
}

.content p {
    font-size: 1rem;
    margin-block: 1em;
}

.content-block p:first-of-type {
    margin-block-start: 0;
}

.content-block p:last-of-type {
    margin-block-end: 0;
}

.content section:first-of-type {
    background-color: var(--bg-headline-section);
    border-color: var(--accent-soft);
    color: black;
    font-size: 1.2em;
    font-weight: 500;
}



.section_footer {
    display: flex;
    padding-block-start: 1rem;
    border-top: 1px solid var(--accent-soft);
}


.content section:first-of-type .section_footer {
    border-top: 1px solid var(--primary);
}

.section_footer p {
    background-image: linear-gradient(to right, var(--bg-headline-section) 0%, transparent 100%);
    padding-inline-start: 2ch;
    font-style: italic;
    /*color: var(--text-invert);*/
    font-weight: 500;
    color: color-mix(in srgb, currentColor 50%, var(--accent) 50%);
}

.content section:first-of-type .section_footer p {
    background-image: linear-gradient(to right, var(--bg-section) 0%, transparent 100%);
}

.content .headline p {
    font-size: 1.2rem;
    /*font-weight: 500;*/
}

.content-block em {
    /*text-decoration: var(--accent-soft) underline wavy 1px;*/
}

.content-block .ol__li__multiline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.content-block ol {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.content-block ol li::marker {
    font-size: 1.1rem;
    font-weight: bold;
}

.content-block > img {
    display: block;
    float: left;
    width: 30%;
    height: auto;
    margin-inline-end: 2ch ;
}


/*.textured {*/
/*    position: relative;*/
/*    background:*/
/*            radial-gradient(*/
/*                    1000px 500px at 20% 0%,*/
/*                    rgba(255,255,255,0.14),*/
/*                    rgba(255,255,255,0) 70%*/
/*            ),*/
/*            #7F8C83;*/
/*}*/

/*.textured::after {*/
/*    content: "";*/
/*    position: absolute;*/
/*    inset: 0;*/
/*    pointer-events: none;*/
/*    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 180px 180px repeat;*/

/*    opacity: 0.1;*/
/*    mix-blend-mode: overlay;*/
/*}*/