/*
 *	Hyperspace by HTML5 UP modified
 *	Free for personal and commercial use under the GNU GPLv3 license
 */

:root {
    --radius-sm: 0.25em;

    /* Цвета Material 3 Expressive */
    --primary: #576062;
    --on-primary: #f0f9fb;
    --primary-container: #dbe4e6;
    --on-primary-container: #4a5355;

    --secondary: #5c6060;
    --on-secondary: #f7f9fa;
    --secondary-container: #e1e3e3;
    --on-secondary-container: #4f5253;

    --tertiary: #486272;
    --on-tertiary: #f4faff;
    --tertiary-container: #d0ecff;
    --on-tertiary-container: #3e5868;

    --surface-dim: #d9dada;
    --surface: #fbf9f8;
    --surface-bright: #fbf9f8;
    --surface-bright-transparent: #fbf9f87f;

    --surface-container-lowest: #ffffff;
    --surface-container-low: #f5f3f3;
    --surface-container: #eeeeed;
    --surface-container-transparent: #eeeeed3f;
    --surface-container-high: #e8e8e8;
    --surface-container-highest: #e2e2e3;

    --on-surface: #303333;
    --on-surface-variant: #5d5f60;

    --outline: #797b7b;
    --outline-variant: #b1b2b2;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}
ol,
ul {
    list-style: none;
}
blockquote,
q {
    quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
    content: "";
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
body {
    -webkit-text-size-adjust: none;
}
mark {
    background-color: transparent;
    color: inherit;
}
input::-moz-focus-inner {
    border: 0;
    padding: 0;
}
input,
select,
textarea {
    appearance: none;
}
body {
    -ms-overflow-style: scrollbar;
}

@media screen and (max-width: 480px) {
    html,
    body {
        min-width: 320px;
    }
}

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

body {
    background: var(--surface-container-low);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(2em);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-2em);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-0.5em);
    }
}

/* Page load animations */
#intro .inner {
    animation: fadeInUp 0.8s ease-out both;
}
.spotlights > section {
    animation: fadeInUp 0.7s ease-out 0.2s both;
}
.features {
    animation: fadeInUp 0.7s ease-out 0.3s both;
}
.authors > div.inner {
    animation: fadeInUp 0.7s ease-out both;
}
.authors > section {
    animation: fadeInLeft 0.7s ease-out 0.3s both;
}
.authors > div.inner h2 {
    transition: transform 0.3s ease;
}
.authors > div.inner:hover h2 {
    transform: scale(1.02);
}

/* Subtle floating for hero heading */
#intro h1 {
    animation: float 6s ease-in-out infinite 1s;
}

.float {
    animation: float 2s ease-in-out infinite 2s;
}

/* Smooth hover transitions */
a {
    transition:
        color 0.3s ease,
        border-bottom-color 0.3s ease;
}

/* Image hover zoom */
.spotlights > section .image {
    overflow: hidden;
}
.spotlights > section .image img {
    transition: transform 0.4s ease;
}
.spotlights > section:hover .image img {
    transform: scale(1.05);
}

/* Card hover lift for features */
.features section {
    transition:
        transform 0.3s ease,
        background-color 0.3s ease;
}
.features section:hover {
    transform: translateY(-0.3em);
    background: var(--surface-bright);
}

/* Sidebar nav hover */
#sidebar nav a {
    transition:
        color 0.3s ease,
        transform 0.2s ease;
}
#sidebar nav a:hover {
    transform: translateX(-0.3em);
}

/* Type */
body,
input,
select,
textarea {
    color: var(--on-surface-variant);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16.5pt;
    font-weight: normal;
    line-height: 1.75;
}

@media screen and (max-width: 1680px) {
    body,
    input,
    select,
    textarea {
        font-size: 13pt;
    }
}
@media screen and (max-width: 1280px) {
    body,
    input,
    select,
    textarea {
        font-size: 12pt;
    }
}
@media screen and (max-width: 360px) {
    body,
    input,
    select,
    textarea {
        font-size: 11pt;
    }
}

a {
    border-bottom: dotted 2px var(--on-surface-variant);
    color: inherit;
    text-decoration: none;
}
a:hover {
    border-bottom-color: transparent;
    color: var(--on-surface);
}

strong,
b {
    color: var(--on-surface);
    font-weight: bold;
}
em,
i {
    font-style: italic;
}
p {
    margin: 0 0 2em 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--on-surface);
    font-weight: bold;
    line-height: 1.5;
    margin: 0 0 0.5em 0;
}
h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
    color: inherit;
    text-decoration: none;
}
h1 {
    font-size: 2.75em;
}
h2 {
    font-size: 1.75em;
}
h3 {
    font-size: 1.1em;
}
h4 {
    font-size: 1em;
}
h5 {
    font-size: 0.8em;
}
h6 {
    font-size: 0.6em;
}

@media screen and (max-width: 736px) {
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.25em;
    }
    h3 {
        font-size: 1em;
    }
    h4 {
        font-size: 0.8em;
    }
    h5,
    h6 {
        font-size: 0.6em;
    }
}

blockquote {
    border-left: solid 4px var(--outline);
    font-style: italic;
    margin: 0 0 2em 0;
    padding: 0.5em 0 0.5em 2em;
}

.align-center {
    text-align: center;
}

/* Модификаторы текста */
.right {
    text-align: right;
}
.left {
    text-align: left;
}

/* Icon */
.icon {
    text-decoration: none;
    border-bottom: none;
    position: relative;
}
.icon:before {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    text-transform: none !important;
}
.icon > .label {
    display: none;
}
/*
.icon:before {
    line-height: inherit;
}
.icon.solid:before {
    font-weight: 900;
}*/
.icon.brands:before {
    font-family: "Font Awesome 7 Brands";
}
.major {
    width: 2.5em;
    height: 2.5em;
    display: block;
    background: var(--on-surface);
    border-radius: 100%;
    color: var(--surface-container-low);
    text-align: center;
    line-height: 2.5em;
    margin: 0 0 1.3em 0;
}
.major:before {
    font-size: 1.25em;
}
.wrapper.style1 .major:before {
    color: var(--surface-bright);
}
.wrapper.style1-alt .major:before {
    color: var(--surface-container-high);
}
.wrapper.style2 .major:before {
    color: var(--surface);
}
.wrapper.style3 .major:before {
    color: var(--surface-dim);
}

/* Image */
.image {
    border-radius: var(--radius-sm);
    border: 0;
    display: inline-block;
    position: relative;
}
.image img {
    border-radius: var(--radius-sm);
    display: block;
}

/* List */
ol {
    list-style: decimal;
    margin: 0 0 2em 0;
    padding-left: 1.25em;
}
ol li {
    padding-left: 0.25em;
}
ul {
    list-style: disc;
    margin: 0 0 2em 0;
    padding-left: 1em;
}
ul li {
    padding-left: 0.5em;
}
ul.alt {
    list-style: none;
    padding-left: 0;
}
ul.alt li {
    border-top: solid 1px var(--outline);
    padding: 0.5em 0;
}
ul.alt li:first-child {
    border-top: 0;
    padding-top: 0;
}
dl {
    margin: 0 0 2em 0;
}
dl dt {
    display: block;
    font-weight: bold;
    margin: 0 0 1em 0;
}
dl dd {
    margin-left: 2em;
}

/* Actions */
ul.actions {
    display: flex;
    cursor: default;
    list-style: none;
    margin-left: -1em;
    padding-left: 0;
}
ul.actions li {
    padding: 0 0 0 1em;
    vertical-align: middle;
}
ul.actions.stacked {
    flex-direction: column;
    margin-left: 0;
}
ul.actions.stacked li {
    padding: 1.3em 0 0 0;
}
ul.actions.stacked li:first-child {
    padding-top: 0;
}

@media screen and (max-width: 480px) {
    ul.actions:not(.fixed) {
        flex-direction: column;
        margin-left: 0;
        width: 100% !important;
    }
    ul.actions:not(.fixed) li {
        padding: 1em 0 0 0;
        text-align: center;
        width: 100%;
    }
    ul.actions:not(.fixed) li > * {
        width: 100%;
    }
    ul.actions:not(.fixed) li:first-child {
        padding-top: 0;
    }
    ul.actions:not(.fixed) li input[type="submit"],
    ul.actions:not(.fixed) li input[type="reset"],
    ul.actions:not(.fixed) li input[type="button"],
    ul.actions:not(.fixed) li button,
    ul.actions:not(.fixed) li .button {
        width: 100%;
    }
    ul.actions:not(.fixed) li input[type="submit"].icon:before,
    ul.actions:not(.fixed) li input[type="reset"].icon:before,
    ul.actions:not(.fixed) li input[type="button"].icon:before,
    ul.actions:not(.fixed) li button.icon:before,
    ul.actions:not(.fixed) li .button.icon:before {
        margin-left: -0.5rem;
    }
}

/* Menu */
ul.menu {
    list-style: none;
    padding: 0;
}
ul.menu > li {
    border-left: solid 1px var(--outline);
    display: inline-block;
    line-height: 1;
    margin-left: 1.5em;
    padding: 0 0 0 1.5em;
}
ul.menu > li:first-child {
    border-left: 0;
    margin: 0;
    padding-left: 0;
}
@media screen and (max-width: 480px) {
    ul.menu > li {
        border-left: 0;
        display: block;
        line-height: inherit;
        margin: 0.5em 0 0 0;
        padding-left: 0;
    }
}

/* Features */
.features {
    display: flex;
    flex-wrap: wrap;
    border-radius: var(--radius-sm);
    border: solid 1px var(--outline);
    background: var(--surface-container);
    margin: 0 0 2em 0;
}
.features section {
    padding: 3.5em 3em 1em 7em;
    width: 50%;
    border-top: solid 1px var(--outline);
    position: relative;
}
.features section:nth-child(-n + 2) {
    border-top-width: 0;
}
.features section:nth-child(2n) {
    border-left: solid 1px var(--outline);
}
.features section .icon {
    position: absolute;
    left: 3em;
    top: 3em;
}
@media screen and (max-width: 980px) {
    .features {
        display: block;
    }
    .features section {
        border-top-width: 1px !important;
        border-left-width: 0 !important;
        width: 100%;
    }
}
@media screen and (max-width: 736px) {
    .features section {
        padding: 2.5em 1.5em 0.1em 5.5em;
    }
    .features section .icon {
        left: 1.5em;
        top: 2em;
    }
}
@media screen and (max-width: 480px) {
    .features section {
        padding: 2em 1.5em 0.1em 1.5em;
    }
    .features section .icon {
        left: 0;
        position: relative;
        top: 0;
    }
}

/* Spotlights */
.spotlights > section {
    display: flex;
    flex-direction: row;
    min-height: 22.5em;
    transition: background-color 0.3s ease;
}
.spotlights > section > .image {
    background-position: center center;
    background-size: cover;
    border-radius: 0;
    display: block;
    position: relative;
    width: 25em;
}
.spotlights > section > .image img {
    border-radius: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.spotlights > section > .content {
    padding: 4em 5em 2em 5em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50em;
    flex: 1;
}
.spotlights > section:hover {
    background: var(--surface-bright);
}
@media screen and (max-width: 1680px) {
    .spotlights > section > .content {
        padding: 4em;
    }
}
@media screen and (max-width: 980px) {
    .spotlights > section {
        display: block;
    }
    .spotlights > section > .image {
        width: 100%;
        height: 50vh;
    }
    .spotlights > section > .content {
        width: 100%;
    }
}
@media screen and (max-width: 736px) {
    .spotlights > section > .image {
        height: 50vh;
        min-height: 15em;
    }
    .spotlights > section > .content {
        padding: 3em 2em 1em 2em;
    }
}

/* Authors */
@media screen and (max-width: 1680px) {
    .authors > section {
        display: flex;
        flex-direction: row;
        min-height: 12em;
        transition: background-color 0.3s ease;
    }

    .authors > section > .image {
        width: 15em;
    }
}
@media screen and (max-width: 480px) {
    .authors > section {
	display: block;
        min-height: 12em;
        transition: background-color 0.3s ease;
    }

    .authors > section > .image {
        width: 100%;
        padding: 1em 0 0 0;
    }
}

.authors > section:hover {
    background-color: var(--on-secondary);
}
.authors > section > .image {
    background-position: center center;
    background-size: cover;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    overflow: visible;
}
.authors > section > .image img {
    width: 10em;
    height: 10em;
    object-fit: cover;
    display: block;
    border-radius: 100%;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}
.authors > section:hover > .image img {
    transform: scale(1.1);
}
.authors > section > .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;/*35em;*/
    padding: 1.5em 2em;
}
.authors > section > .content h2 {
    transition: transform 0.3s ease;
}
.authors > section:hover > .content h2 {
    transform: translateX(0.3em);
}

/* Wrapper */
.wrapper {
    position: relative;
}
.wrapper > .inner {
    padding: 5em 5em 3em;
    max-width: 100%;
    width: 75em;
}
@media screen and (max-width: 1680px) {
    .wrapper > .inner {
        padding: 4em;
    }
}
@media screen and (max-width: 1280px) {
    .wrapper > .inner {
        width: 100%;
    }
}
@media screen and (max-width: 736px) {
    .wrapper > .inner {
        padding: 3em 2em 1em 2em;
    }
}
.wrapper.alt {
    background-color: var(--surface-container-lowest);
}
.wrapper.style1 {
    background-color: var(--surface-bright);
}
.wrapper.style1-alt {
    background-color: var(--surface-container-high);
}
.wrapper.style2 {
    background-color: var(--surface);
}
.wrapper.style3 {
    background-color: var(--surface-dim);
}
.wrapper.fullscreen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}
@media screen and (max-width: 1280px) {
    .wrapper.fullscreen {
        min-height: calc(100vh - 2.5em);
    }
}
@media screen and (max-width: 736px) {
    .wrapper.fullscreen {
        padding: 2em 0;
        min-height: 0;
    }
}

/* Header */
#header {
    display: flex;
    background-color: var(--surface-container-highest);
    cursor: default;
    padding: 1.75em 2em;
}
#header > .title {
    border: 0;
    color: var(--on-surface);
    display: block;
    font-size: 1.25em;
    font-weight: bold;
}
#header > nav {
    flex: 1;
    text-align: right;
}
#header > nav > ul {
    margin: 0;
    padding: 0;
}
#header > nav > ul > li {
    display: inline-block;
    margin-left: 1.75em;
    padding: 0;
    vertical-align: middle;
}
#header > nav > ul > li:first-child {
    margin-left: 0;
}
#header > nav > ul > li a {
    border: 0;
    color: var(--on-surface-variant);
    display: inline-block;
    font-size: 0.6em;
    font-weight: bold;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}
#header > nav > ul > li a:hover {
    color: var(--on-surface-variant);
}
#header > nav > ul > li a.active {
    color: var(--on-surface);
}
@media screen and (max-width: 736px) {
    #header {
        padding: 1em 2em;
    }
}
@media screen and (max-width: 480px) {
    #header {
        display: block;
        padding: 0 2em;
        text-align: left;
    }
    #header .title {
        font-size: 1.25em;
        padding: 1em 0;
    }
    #header > nav {
        border-top: solid 1px var(--outline);
        text-align: inherit;
    }
    #header > nav > ul > li {
        margin-left: 1.5em;
    }
    #header > nav > ul > li a {
        height: 6em;
        line-height: 6em;
    }
}

/* Wrapper (main) */
#sidebar + #wrapper {
    margin-left: 18em;
}
@media screen and (max-width: 1280px) {
    #sidebar + #wrapper {
        margin-left: 0;
        padding-top: 3.5em;
    }
}
@media screen and (max-width: 736px) {
    #sidebar + #wrapper {
        padding-top: 0;
    }
}
#header + #wrapper > .wrapper > .inner {
    margin: 0 auto;
}

/* Footer */
#sidebar + #wrapper + #footer {
    margin-left: 18em;
}
@media screen and (max-width: 1280px) {
    #sidebar + #wrapper + #footer {
        margin-left: 0;
    }
}
#footer > .inner a {
    border-bottom-color: var(--outline);
}
#footer > .inner a:hover {
    border-bottom-color: transparent;
}
#footer > .inner .menu {
    font-size: 0.8em;
    color: var(--on-surface-variant);
}
#header + #wrapper + #footer > .inner {
    margin: 0 auto;
}

/* Sidebar */
#sidebar {
    padding: 2.5em 2.5em 0.5em;
    background: var(--surface-container-low);
    cursor: default;
    height: 100vh;
    left: 0;
    overflow-x: hidden;
    overflow-y: auto;
    position: fixed;
    text-align: right;
    top: 0;
    width: 18em;
    z-index: 10000;
}
#sidebar > .inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    width: 100%;
}
#sidebar nav > ul {
    list-style: none;
    padding: 0;
}
#sidebar nav > ul > li {
    margin: 1.5em 0 0;
    padding: 0;
    position: relative;
}
#sidebar nav > ul > li:first-child {
    margin: 0;
}
#sidebar nav a {
    border: 0;
    color: var(--on-surface);
    display: block;
    font-size: 0.6em;
    font-weight: bold;
    letter-spacing: 0.25em;
    line-height: 1.75;
    outline: 0;
    padding: 1.35em 0;
    position: relative;
    text-decoration: none;
    text-transform: uppercase;
}
#sidebar nav a:before,
#sidebar nav a:after {
    border-radius: 0.2em;
    bottom: 0;
    content: "";
    height: 0.2em;
    position: absolute;
    right: 0;
    width: 100%;
}
#sidebar nav a:before {
    background: var(--surface-dim);
}
#sidebar nav a:after {
    background-image: linear-gradient(
        to right,
        var(--surface-container-highest),
        var(--surface-container-lowest)
    );
    max-width: 0;
}
#sidebar nav a:hover {
    color: var(--on-secondary-container);
}
#sidebar nav a.active {
    color: var(--on-surface);
}
#sidebar nav a.active:after {
    max-width: 100%;
}
@media screen and (max-width: 1280px) {
    #sidebar {
        height: 3.5em;
        left: 0;
        line-height: 3.5em;
        overflow: hidden;
        padding: 0;
        text-align: center;
        top: 0;
        width: 100%;
    }
    #sidebar > .inner {
        flex-direction: row;
        align-items: stretch;
        height: inherit;
        line-height: inherit;
    }
    #sidebar nav {
        height: inherit;
        line-height: inherit;
    }
    #sidebar nav ul {
        display: flex;
        height: inherit;
        line-height: inherit;
        margin: 0;
    }
    #sidebar nav ul li {
        display: block;
        height: inherit;
        line-height: inherit;
        margin: 0 0 0 2em;
        padding: 0;
    }
    #sidebar nav a {
        height: inherit;
        line-height: inherit;
        padding: 0;
    }
    #sidebar nav a:after {
        background-image: none;
        background-color: var(--surface-container-lowest);
    }
}
@media screen and (max-width: 736px) {
    #sidebar {
        display: none;
    }
}

/* Intro */
#intro {
    background-attachment: fixed;
    background-image: url("images/1.svg");
    background-position: top right;
    background-repeat: no-repeat;
    background-size: cover;
}
#intro p {
    font-size: 1.25em;
}
@media screen and (max-width: 980px) {
    #intro p br {
        display: none;
    }
}
@media screen and (max-width: 736px) {
    #intro p {
        font-size: 1em;
    }
}
@media screen and (max-width: 1280px) {
    #intro {
        background-attachment: scroll;
    }
}
