/*
 * Copyright (c) 2026 Банк не скажет.
 * All rights reserved.
 * Unauthorized copying or distribution of this file is prohibited.
 */

:root {
     color-scheme: dark light;
     --main-color: rgb(113, 119, 248);
     --bg-color: rgb(15, 15, 15);
     --text-color: rgb(255, 255, 255);
     --muted-text-color: rgb(125, 125, 125);
     --transition: 200ms;
     --radius: 20px;
}

* {
    margin: 0;
    padding: 0;
    scrollbar-color: var(--main-color) var(--bg-color);
}

*::-webkit-scrollbar-track {
    background: var(--main-color);
}

*::-webkit-scrollbar-thumb {
    background-color: var(--bg-color);
}

html {
    background-color: var(--main-color);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a,
#header img,
.inactive-tab {
    transition: var(--transition);
}

img,
.content-wrapper {
    border-radius: var(--radius);
}

a,
p,
h1,
h2,
span {
    font-family: "main";
}

a,
p,
span {
    font-size: 16pt;
}

p,
h1,
h2,
span,
.active-tab,
.inactive-tab:hover {
    color: var(--text-color);
}

a {
    color: var(--main-color);
    text-decoration: none;
}

a,
#header img,
.active-tab,
.inactive-tab {
    cursor: pointer;
}

a:hover {
    text-decoration: underline;
}

a:active,
#header img:active {
    opacity: 0.5;
}

p {
    margin: 2px;
}

h1 {
    font-size: 23pt;
}

h2 {
    font-size: 19pt;
    margin-bottom: 16px;
}

img {
    max-width: 100%;
}

td {
    padding: 0 8px 2px 0;
}

#header,
.content-wrapper {
    padding: 20px;
    background-color: var(--bg-color);
}

#header img {
    margin: 12px;
    width: 128px;
    vertical-align: middle;
}

#header img:hover {
    transform: scale(0.92);
}

#menu {
    margin: 25px 0 12px 18px;
}

#main {
    padding: 0 20px 0 20px;
    flex-grow: 1;
}

#footer {
    padding: 32px;
    background-color: var(--bg-color);
}

.active-tab {
    text-decoration: overline;
}

.inactive-tab {
    color: var(--muted-text-color);
    text-decoration: none;
}

.active-tab,
.inactive-tab {
    margin-right: 25px;
}

.content-wrapper {
    margin: 20px auto;
    max-width: 1500px;
    animation: hello 1100ms ease-out forwards;
    text-align: start;
    word-wrap: break-word;
}

@font-face {
    font-family: "main";
    src: url("../fonts/main.ttf");
}

@keyframes hello {
    0% {
        transform: scale(0) rotateX(360deg);
    }

    50% {
        transform: scale(1.02);
    }

    75% {
        transform: scale(0.99);
    }

    100% {
        transform: scale(1) rotateX(0deg);
    }
}

@media (prefers-color-scheme: light) {
    :root {
        --bg-color: rgb(255, 255, 255);
        --text-color: rgb(0, 0, 0);
    }
}

@media (max-width: 446px) {
    a,
    p,
    span {
        font-size: 14pt;
    }

    h1 {
        font-size: 21pt;
    }

    h2 {
        font-size: 17pt;
    }

    #header img {
        margin: 6px;
        width: 112px;
    }

    #menu {
        margin: 19px 0 6px 12px;
    }
}

@media (max-width: 396px) {
    a,
    p,
    span {
        font-size: 12pt;
    }

    h1 {
        font-size: 19pt;
    }

    h2 {
        font-size: 15pt;
        margin-bottom: 12px;
    }

    #header img {
        margin: 4px;
        width: 96px;
    }

    #menu {
        margin: 19px 0 4px 10px;
    }
}

@media (max-width: 354px) {
    a,
    p,
    span {
        font-size: 11pt;
    }

    h1 {
        font-size: 18pt;
    }

    h2 {
        font-size: 14pt;
        margin-bottom: 8px;
    }

    #header img {
        margin: 2px;
        width: 88px;
    }

    #menu {
        margin: 19px 0 4px 8px;
    }

    #header,
    .content-wrapper {
        padding: 16px;
    }

    #footer {
        padding: 26px;
    }
}
