:root {
  --color-primary: rgb(242, 224, 195);
  --color-secondary: rgb(78, 1, 1);
  --color-tertiary: rgb(30, 25, 21);
  --color-accent: rgb(255, 157, 0);
  --box-shadow-s: 0px 0px 4px 2px rgb(41, 40, 40);
  --box-shadow-m: 0px 0px 14px 4px rgb(41, 40, 40);
}

@font-face {
  font-family: "Philosopher";
  src: url("../fonts/Philosopher-Regular.ttf");
  font-weight: 500;
}
@font-face {
  font-family: "Philosopher";
  src: url("../fonts/Philosopher-Bold.ttf");
  font-weight: 700;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/Jost-Regular.ttf");
  font-weight: 400;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/Jost-Medium.ttf");
  font-weight: 500;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/Jost-Bold.ttf");
  font-weight: 700;
}

/* settings */
/* -------------------------------------------------------------------------------------------------------------------- */

html,
body,
header,
nav,
section,
aside,
article,
footer,
div,
span,
applet,
object,
iframe,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
sub,
sup,
tt,
var,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-weight: inherit;
  font-style: inherit;
  font-family: "Jost", sans-serif;
  color: var(--color-primary);
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

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

*::-webkit-scrollbar {
  width: 12px; /* ширина scrollbar */
  height: 12px;
  background: var(--color-tertiary);
}

*::-webkit-scrollbar-track {
  background: var(--color-tertiary); /* цвет дорожки */
}

*::-webkit-scrollbar-thumb {
  background-color: var(--color-accent); /* цвет плашки */
  border-radius: 20px; /* закругления плашки */
  border: 3px solid var(--color-tertiary); /* padding вокруг плашки */
}

/* inputs */
/* -------------------------------------------------------------------------------------------------------------------- */

input,
button,
select,
textarea {
  outline: none;
  border: none;
}
select,
button {
  cursor: pointer;
}

::-webkit-input-placeholder {
  opacity: 1;
  transition: opacity 0.3s ease;
  color: var(--color-primary);
}
::-moz-placeholder {
  opacity: 1;
  transition: opacity 0.3s ease;
  color: var(--color-primary);
}
:-moz-placeholder {
  opacity: 1;
  transition: opacity 0.3s ease;
  color: var(--color-primary);
}
:-ms-input-placeholder {
  opacity: 1;
  transition: opacity 0.3s ease;
  color: var(--color-primary);
}
:focus::-webkit-input-placeholder {
  opacity: 0;
  transition: opacity 0.3s ease;
  color: var(--color-primary);
}
:focus::-moz-placeholder {
  opacity: 0;
  transition: opacity 0.3s ease;
  color: var(--color-primary);
}
:focus:-moz-placeholder {
  opacity: 0;
  transition: opacity 0.3s ease;
  color: var(--color-primary);
}
:focus:-ms-input-placeholder {
  opacity: 0;
  transition: opacity 0.3s ease;
  color: var(--color-primary);
}

html {
  overflow: hidden;
  height: 100%;
}

body {
  height: 100%;
  background: var(--color-tertiary);
}

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

.text-accent {
  color: var(--color-accent);
  font-weight: 700;
}

.accent-link {
  color: var(--color-accent);
  font-weight: 700;
}

.accent-link:hover {
  text-decoration: underline;
}

.overlay {
  position: absolute;
  width: 100%;
  min-height: 100%;
  inset: 0;
  background-color: var(--color-tertiary);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.overlay_show {
  z-index: 1;
  opacity: 0.75;
  pointer-events: auto;
}

.overlay_show-popup {
  z-index: 2;
}

.wrapper {
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  grid-auto-rows: auto 1fr auto;
  width: 100%;
  min-height: 100%;
  max-height: 100%;
}

.header {
  position: sticky;
  top: 0;
  z-index: 2;
  width: 100%;
  height: 60px;
  background-color: var(--color-secondary);
  border-bottom: 2px solid var(--color-accent);
  box-shadow: var(--box-shadow-s);
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  max-width: 1536px;
  margin: 0 auto;
  padding: 10px 20px;
}

.header-logo {
  height: 100%;
}

.header-logo__img {
  height: 100%;
}

.header-burger {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 1001;
  transition: all 0.3s ease;
}

.header-burger__wrapper {
  position: relative;
  width: 20px;
  height: 16px;
}

.header-burger:hover {
  box-shadow: var(--box-shadow-m);
}

.header-burger:hover .header-burger__line {
  background: var(--color-accent);
}

.header-burger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.header-burger__line:nth-child(1) {
  top: 0;
}

.header-burger__line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.header-burger__line:nth-child(3) {
  bottom: 0;
}

.header-burger.active .header-burger__line:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.header-burger.active .header-burger__line:nth-child(2) {
  opacity: 0;
  transform: translateY(-50%) scale(0);
}

.header-burger.active .header-burger__line:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.header-menu {
  position: absolute;
  opacity: 0;
  inset-inline: 0;
  inset-block: 60px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;
  width: 100dvw;
  height: fit-content;
  padding: 10px 40px 20px 40px;
  border-bottom: 2px solid var(--color-accent);
  background-color: var(--color-secondary);
  box-shadow: var(--box-shadow-s);
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.header-menu_open {
  opacity: 1;
  pointer-events: auto;
}

.header-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.header-menu-link:hover {
  background: rgb(65 0 0);
  border: 2px solid var(--color-accent);
  box-shadow: var(--box-shadow-m);
  cursor: pointer;
}

.header-menu-link__title {
  font-family: "Philosopher", serif;
  font-size: 18px;
}

.content {
  width: 100%;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-image: url(../images/bg/bg.png);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1536px;
  margin: 0 auto;
  padding: 20px 10px;
}

.main-logo__image {
  max-width: 100%;
  max-height: 60px;
}

.main-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  max-width: 600px;
  padding: 20px;
  border: 2px solid var(--color-accent);
  box-shadow: var(--box-shadow-m);
  border-radius: 20px;
  backdrop-filter: blur(20px) brightness(0.5);
}

.main-description {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.title-h1 {
  color: var(--color-accent);
  font-family: "Philosopher", serif;
  font-size: 24px;
  font-weight: 700;
}

ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style-type: none;
}

li {
  position: relative;
  padding-left: 20px;
}

li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}
.servers {
  display: flex;
  justify-content: center;
  max-width: 600px;
}
.servers-wrapper {
  display: flex;
  justify-content: center;
  padding: 20px;
  gap: 20px;

  width: fit-content;
  border: 2px solid var(--color-accent);
  border-radius: 20px;
  box-shadow: var(--box-shadow-m);
  backdrop-filter: blur(20px) brightness(0.5);
}

.servers-item {
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.servers-item__wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 140px;
  height: 140px;
}

.servers-item__desc {
  max-width: 200px;
  color: var(--color-accent);
  font-size: 20px;
  text-wrap: balance;
  text-align: center;
}

.servers-item__desc span {
  font-family: "Philosopher";
}

.servers-item__info {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 5px;
}

.servers-item__rate {
  font-family: "Philosopher";
  font-weight: 700;
  font-size: 22px;
  color: var(--color-accent);
}

.servers-item__name {
  font-family: "Philosopher";
  font-size: 14px;
  color: var(--color-accent);
  opacity: 0.8;
  font-weight: 700;
}

.servers-item__chronicles {
  font-family: "Philosopher";
  font-size: 12px;
  opacity: 0.75;
}

.servers-item__progress {
  position: absolute;
  inset: 0;
  width: 140px;
  height: 140px;
  background: url(../images/bg/progress_bg.png);
}

svg circle {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  transform: rotate(-90deg);
  transform-origin: center;
}

.footer {
  background-color: var(--color-secondary);
  border-top: 2px solid var(--color-accent);
  box-shadow: var(--box-shadow-s);
}

.footer-wrapper {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  max-width: 1536px;
  margin: 0 auto;
  padding: 10px 20px;
}

.copyright {
  font-size: 14px;
  opacity: 0.5;
}

.anons-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.popup {
  position: absolute;
  max-width: 600px;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  padding: 10px;
}

.popup_active {
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
}

.popup-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.popup-title {
  color: var(--color-accent);
  font-family: "Philosopher", serif;
  font-size: 20px;
  font-weight: 700;
}

.popup-close {
  width: 40px;
  min-width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  transition: all 0.3s ease;
}

.popup-close:hover {
  box-shadow: var(--box-shadow-s);
  color: var(--color-accent);
  cursor: pointer;
}

.popup-wrapper {
  overflow: auto;
  max-height: 70dvh;
  border: 2px solid var(--color-accent);
  border-radius: 20px;
  background-color: var(--color-secondary);
  padding: 20px 10px;
}

.description-popup,
.download-popup {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* download files */
/* -------------------------------------------------------------------------------------------------------------------- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 0px 0px 0px;
}

.step-elem {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0px 0px 20px 0px;
}

.step-elem:not(:last-child) {
  border-bottom: 2px solid var(--color-accent);
}

.step-elem__title {
  width: 100%;
  color: var(--color-accent);
  font-family: "Philosopher", serif;
  font-size: 20px;
  font-weight: 700;
}

.step-elem-button {
  display: flex;
  justify-content: center;
  padding: 5px 10px;
  border: 2px solid var(--color-accent);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.step-elem-button:hover {
  box-shadow: var(--box-shadow-m);
  color: var(--color-accent);
}

@media (min-width: 1024px) {
  .header-burger {
    display: none;
  }

  .header-menu {
    opacity: 1;
    inset-block: 0;
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 5px;
    width: auto;
    padding: 0px 0px 0px 0px;
    border-bottom: none;
    background-color: unset;
    box-shadow: none;
    pointer-events: auto;
  }

  .header-menu-link {
    border: none;
  }

  .header-menu-link:hover {
    background-color: none;
    box-shadow: none;
    border: none;
  }

  .header-menu-link:hover .header-menu-link__title {
    color: var(--color-accent);
  }

  .header-menu-link:hover .header-menu-link__icon {
    scale: 1.1;
  }

  .header-menu-link__icon {
    width: 30px;
    height: 30px;
    transition: all 0.3s ease;
  }

  .header-menu-link__title {
    font-size: 16px;
  }

  .content-wrapper {
    padding: 40px 20px;
  }

  .popup-wrapper {
    padding: 40px 40px;
  }
}

@media (min-width: 1140px) {
  .header-menu-link__icon {
    width: 40px;
    height: 40px;
  }

  .header-menu-link__title {
    font-size: 18px;
  }
}

@media (min-width: 1280px) {
  .header-menu {
    gap: 10px;
  }
}

@media (min-width: 1536px) {
  .footer-wrapper {
    flex-direction: row-reverse;
    justify-content: space-between;
  }
}
