/* general begin */
@import url('../../fonts/manrope/style.css');

:root {
    --min-width: 20rem; /* 320px */
    --max-width: 80rem; /* 1280px */

    --baseline: 0.25rem; /* 4px */

    /* primary palette */
    --color-primary: #405f89;
    --color-primary-dark: #2f4a6b;
    --color-primary-light: #5f7aa3;

    /* backgrounds */
    --color-bg-body: #f5f5f5;
    --color-bg-white: #ffffff;

    /* text */
    --color-text-main: #333333;
    --color-text-light: rgba(255, 255, 255, 0.8);
    --color-text-white: #ffffff;

    /* borders */
    --color-border: rgba(255, 255, 255, 0.2);

    /* shadows */
    --color-shadow-dark: rgba(0, 0, 0, 0.25);
    --color-shadow-light: rgba(0, 0, 0, 0.2);

    /* accents */
    --color-accent: #f0f4f8;

    /* typography */
    --fs-base: 1rem;

    --fs-h1: 2.5rem;
    --fs-h2: 2rem;
    --fs-h3: 1.75rem;
    --fs-h4: 1.5rem;
    --fs-h5: 1.25rem;
    --fs-h6: 1.125rem;

    --lh-base: 1.5;
    --lh-heading: 1.25;

    --fw-extralight: 200;
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;
}

*, *::before, *::after {
    box-sizing: border-box !important;
    outline: none;
}

::selection {
    background: var(--color-primary-light);
    color: var(--color-text-white);
}

html {
    height: 100vh;
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--color-text-main);
    background: var(--color-bg-body);
    font-size: var(--fs-base);
    line-height: var(--lh-base);
    font-family: 'manrope', 'sans-serif';
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 1fr minmax(var(--min-width), var(--max-width)) 1fr;
    position: relative;
    user-select: none;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
textarea {
    user-select: text;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 1.5rem 0 0.5rem;
    line-height: var(--lh-heading);
    font-weight: var(--fw-semibold);
    color: var(--color-text-main);
}

h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
    margin-top: 0;
}

h1 {
    font-size: var(--fs-h1);
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
}

h4 {
    font-size: var(--fs-h4);
}

h5 {
    font-size: var(--fs-h5);
}

h6 {
    font-size: var(--fs-h6);
}

p {
    margin: 0 0 1em;
}

small {
    font-size: 0.875rem;
}
/* general end */

/* header begin */
header {
    grid-row: 1 / 2;
    grid-column: 1 / -1;
    background: var(--color-primary);
    display: grid;
    grid-template-columns: 1fr minmax(var(--min-width), var(--max-width)) 1fr;
    position: sticky;
    top: 0;
    z-index: 10;
}

#header {
    grid-column: 2 / 3;
    height: 4rem; /* 64px */
    padding: 0.5rem 1rem; /* 8px 16px */
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0 0.5rem; /* 0 8px */
}

#header_brand {
    display: grid;
    grid-template-columns: 1.5rem 1fr; /* 24px 1fr */
    gap: 0 0.5rem; /* 0 8px */
    align-items: center;
    width: 100%;
    max-width: 10rem; /* 160px */
}

#header_brand_logotype {
    grid-row: 1 / -1;
    grid-column: 1 / 2;
    display: flex;
    align-items: center;
}

#header_brand_logotype img {
    filter: drop-shadow(0 1px 2px var(--color-shadow-dark));
}

#header_brand_content {
    grid-column: 2 / 3;
    display: flex;
    flex-direction: column;
    gap: 0.125rem; /* 2px */
    width: 100%;
    max-width: 8rem; /* 128px */
    overflow: hidden;
}

#header_brand_content_name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-white);
    letter-spacing: 1px;
    line-height: 1;
    text-shadow: 0 1px 2px var(--color-shadow-dark);
}

#header_brand_content_slogan {
    font-size: 0.5rem;
    font-weight: 200;
    color: var(--color-text-light);
    letter-spacing: 1px;
    line-height: 1;
    text-shadow: 0 1px 2px var(--color-shadow-light);
    text-transform: uppercase;
    white-space: nowrap;
}

#header_account {
    display: grid;
    grid-template-columns: 1fr 2.5rem; /* 1fr 40px */
    align-items: center;
    gap: 0 0.5rem; /* 0 8px */
}

#header_account_menu {
    width: 0;
    overflow: hidden;
    justify-self: end;
    transition: width 0.3s ease;
}

#header_account_menu.open {
    width: var(--menu-width, 0px);
}

#header_account_menu ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
}

#header_account_menu ul li a {
    display: block;
    color: var(--color-text-light);
    text-shadow: 0 1px 2px var(--color-shadow-light);
    transition: all 0.3s ease;
}

#header_account_menu ul li.separator {
    color: var(--color-text-light);
    text-shadow: 0 1px 2px var(--color-shadow-light);
}

#header_account_menu ul li a:hover {
    color: var(--color-text-white);
    text-shadow: 0 1px 2px var(--color-shadow-dark);
}

#header_account_toggle {
    all: initial;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#header_account_toggle svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: var(--color-text-white);
    filter: drop-shadow(0 1px 2px var(--color-shadow-dark));
}
/* header end */

/* main begin */
main {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
    padding: 2rem 1rem;
}
/* main end */

/* footer begin */
footer {
    grid-row: 3 / 4;
    grid-column: 1 / -1;
    background: var(--color-primary);
    display: grid;
    grid-template-columns: 1fr minmax(var(--min-width), var(--max-width)) 1fr;
}

#footer {
    grid-column: 2 / 3;
    min-height: 8rem;
    padding: 2rem 1rem 3rem;
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 3rem;
}

#footer_top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.footer_top_nav_title {
    color: var(--color-text-white);
    letter-spacing: 1px;
    text-shadow: 0 1px 2px var(--color-shadow-dark);
}

.footer_top_nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.footer_top_nav ul li a {
    display: block;
    color: var(--color-text-light);
    text-shadow: 0 1px 2px var(--color-shadow-light);
    transition: all 0.3s ease;
}

.footer_top_nav ul li a:hover,
.footer_top_nav ul li > span {
    color: var(--color-text-white);
    text-shadow: 0 1px 2px var(--color-shadow-dark);
}

#footer_bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--color-text-light);
    font-size: 0.75rem;
    letter-spacing: 1px;
    line-height: 1;
    text-shadow: 0 1px 2px var(--color-shadow-light);
}

#footer_bottom_developer span a {
    transition: all 0.3s ease;
}

#footer_bottom_developer span a:hover {
    color: var(--color-text-white);
    text-shadow: 0 1px 2px var(--color-shadow-dark);
}
/* footer end */

/* sheet begin */
#sheet {
    width: 100%;
    position: fixed;
    bottom: calc(-5rem - 1px);
    z-index: 20;
    background: var(--color-primary);
    border-top: 1px solid var(--color-border);
    display: grid;
    grid-template-columns: 1fr minmax(var(--min-width), var(--max-width)) 1fr;
    transition: bottom 0.3s ease;
}

#sheet.open {
    bottom: 0;
}

#sheet_toggle {
    all: initial;
    width: 4rem;
    height: 2rem;
    background: var(--color-primary);
    border-top: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    border-left: 1px solid var(--color-border);
    border-radius: 0.5rem 0.5rem 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -2rem;
    left: calc(50% - 2rem);
    z-index: 10;
    cursor: pointer;
}

#sheet_toggle svg {
    width: 1rem;
    height: 1rem;
    fill: var(--color-text-white);
    filter: drop-shadow(0 1px 2px var(--color-shadow-dark));
}

#sheet.open #sheet_toggle_up {
    display: none;
}

#sheet_toggle_down {
    display: none;
}

#sheet.open #sheet_toggle_down {
    display: block;
}

#sheet_container {
    grid-column: 2 / 3;
    height: 0;
    padding: 2rem 1rem 3rem;
    transition: height 0.3s ease;
}

#sheet.open #sheet_container {
    height: 66vh;
}


#sheet_container_breadcrumbs {
    margin-bottom: 1rem;
}

#sheet_container_breadcrumbs ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-auto-flow: column;
    justify-content: start;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
}

#sheet_container_breadcrumbs ul li {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#sheet_container_breadcrumbs ul li a {
    flex: 1;
    color: var(--color-text-light);
    text-shadow: 0 1px 2px var(--color-shadow-light);
    transition: all 0.3s ease;
}

#sheet_container_breadcrumbs ul li a:hover {
    color: var(--color-text-white);
    text-shadow: 0 1px 2px var(--color-shadow-dark);
}

#sheet_container_breadcrumbs ul li > span {
    color: var(--color-text-light);
    text-shadow: 0 1px 2px var(--color-shadow-light);
}

#sheet_container_content {
    height: 100%;
    overflow: auto;
    overscroll-behavior: contain;
}

body:not(.home_index) #sheet_container_content {
    height: calc(100% - 1.75rem);
}

/* размер ползунка */
#sheet_container_content::-webkit-scrollbar {
    width: 0.25rem;
    height: 0.25rem;
}

/* дорожка ползунка */
#sheet_container_content::-webkit-scrollbar-track {
    background-color: var(--color-primary-dark);
    border-radius: 0.125rem;
}

/* цвет ползунка */
#sheet_container_content::-webkit-scrollbar-thumb {
    background-color: var(--color-bg-body);
    border-radius: 0.125rem;
}

/* цвет ползунка при наведении и нажатии */
#sheet_container_content::-webkit-scrollbar-thumb:hover,
#sheet_container_content::-webkit-scrollbar-thumb:active {
    background-color: var(--color-bg-white);
}

/* убираем стрелки */
#sheet_container_content::-webkit-scrollbar-button {
    width: 0;
    height: 0;
    display: none;
}



#sheet_container_content section {
    color: var(--color-text-white);
}

#sheet_container_content section p:last-child {
    margin-bottom: 0;
}





#overlay {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    position: fixed;
    inset: 0;
    z-index: 15;
}

#overlay.active {
    opacity: 1;
    pointer-events: auto;
}
/* sheet end */

/* media queries width begin */
/* <1280 */
@media (width < 1280px) {}

/* <992 */
@media (width < 992px) {
    #footer_top {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* <768 */
@media (width < 768px) {}

/* <600 */
@media (width < 600px) {}

/* <480 */
@media (width < 480px) {
    #header_brand_content_name,
    #header_brand_content_slogan {
        transition: transform 0.3s ease;
    }

    #header.menu_open #header_brand_content_name,
    #header.menu_open #header_brand_content_slogan {
        transform: translateX(-8rem);
    }



    #footer_top {
        grid-template-columns: 1fr;
        gap: 2rem 1rem;
    }

    #footer_bottom {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }
}
/* media queries width end */

/* media queries hover begin */
@media (hover: hover) and (pointer: fine) {
}

@media (hover: none) and (pointer: coarse) {
}
/* media queries hover end *

/* media queries prefers begin */
@media (prefers-color-scheme: dark) {
}

@media (prefers-color-scheme: light) {
}
/* media queries prefers end */

/* media queries print begin */
@media print {
}
/* media queries print end */