@import url('https://fonts.googleapis.com/css2?family=Wix+Madefor+Display:wght@400;500;600;700&display=swap');

:root {
  --ff-wix: 'Wix Madefor Display', sans-serif;
  --color-primary: #ffffff;
  --color-secondary: #58544C;
  --color-blue-drk: #233D4C;
  --color-whiteyellow: #FFEBCD;
  --color-yellow: #F2FF93;
  --color-grdark: #231942;
  --bg-primary: #FFEBCD;
  --bg-secondary: #58544C;
  --bg-grey: #090C16;
  --bg-red: #E92139;
  --bg-blue: #F2FF93;
  --bg-blue-drk: #212941;
  --bg-dark: #231942;
  --bg-greylight: #58544C;
  --color-sky: #B9FAF8;
  --color-violet: #a663cc;

}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li {
  font-weight: 400;
  font-size: 18px;
  line-height: 40px;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

p>a {
  text-decoration: underline;
  color: var(--color-sky);
}

img {
  max-width: 100%;
  display: block;
  margin: 30px auto;
}

picture>img {
  border-radius: 30px;
}

button {
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

p {
  text-indent: 20px;
  font-weight: 400;
  font-size: 18px;
  line-height: 34px;
  margin: 0 0 30px 0;
}


picture+p {
  margin: 30px 0 50px;
}

body {
  font-family: var(--ff-wix);
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  color: var(--color-primary);
  background: var(--bg-dark);
  overflow-x: hidden;
}

body.hidden {
  overflow-y: hidden;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
}

.header {
  background: var(--bg-dark);
}

@media (max-width: 980px) {
  .header {
    padding: 0 0 47px;
  }
}

@media (max-width: 590px) {
  .header {
    background: var(--bg-dark);
    padding: 0;
  }
}

.header-top {
  height: 104px;
}

@media (max-width: 590px) {
  .header-top {
    height: 243px;
    border-bottom: 2px solid var(--color-sky);
  }
}

.header-fixed {
  position: fixed;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  padding: 25px 54px 25px 50px;
  transition: 0.3s ease;
  background: var(--bg-dark);
  border-bottom: 2px solid var(--color-sky);
}

@media (max-width: 980px) {
  .header-fixed {
    padding: 25px 15px 25px 15px;
  }
}

@media (max-width: 590px) {
  .header-fixed {
    padding: 30px 0;
    background: var(--bg-dark);
  }
}

.header-fixed.active {
  background-image: linear-gradient(to right bottom, #ff7c34, #f36a35, #e65936, #d94736, #ca3536, #be233e, #af1145, #9f004b, #870158, #6a0f60, #481962, #1c1d5f);
}

@media (max-width: 590px) {
  .header-fixed.active {
    background: var(--bg-secondary);
  }
}

.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 590px) {
  .header-wrap {
    flex-direction: column;
    gap: 30px;
  }
}

.header .burger {
  display: none;
}

@media (max-width: 768px) {
  .header .burger {
    display: flex;
    width: 30px;
    height: 30px;
    background: url(../img/burger.svg) no-repeat center;
    position: relative;
    z-index: 5;
  }

  .header .burger.active {
    background: url(../img/closed.svg) no-repeat center;
  }
}

@media (max-width: 590px) {
  .header .burger {
    position: absolute;
    top: 30px;
    left: 30px;
  }
}

.header-logo {
  display: block;
  cursor: pointer;
  font-weight: 700;
  font-size: 24px;
  line-height: 29px;
  color: var(--color-violet);
  text-transform: uppercase;
}

.header-block {
  display: flex;
  align-items: center;
  gap: 50px;
}

@media (max-width: 768px) {
  .header .nav {
    position: absolute;
    background: var(--color-violet);
    left: 0;
    right: 30%;
    top: 0;
    bottom: 0;
    height: 100vh;
    z-index: 2;
    overflow-x: hidden;
    transform: translateX(-100%);
    transition: 0.3s ease-in-out;
  }

  .header .nav.open {
    transform: translateX(0);
  }
}

.header .menu {
  display: flex;
  justify-content: center;
  gap: 30px;
  color: var(--color-primary);
  width: 100%;
}

@media (max-width: 768px) {
  .header .menu {
    flex-direction: column;
    padding: 180px 0 0 30px;
    gap: 50px;
  }
}

.header .menu .item {
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
}

@media (max-width: 768px) {
  .header .menu .item {
    color: var(--color-grdark);
  }
}

.header-container {
  display: flex;
  gap: 20px;
}

@media (max-width: 590px) {
  .header-container {
    flex-direction: column;
  }
}

.header-btn {
  border-radius: 6px;
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  width: 151px;
  padding: 15px 20px;
  background: var(--color-sky);
}

.header-btn:hover {
  box-shadow: 3px 3px 10px rgba(39, 153, 176, 0.75);
}

.header-btn:first-child {
  width: 82px;
  color: var(--color-sky);
  border: 1px solid var(--color-sky);
  background: none;
}

@media (max-width: 590px) {
  .header-btn:first-child {
    width: 250px;
  }
}

@media (max-width: 590px) {
  .header-btn {
    width: 250px;
  }
}

.header-bottom {
  padding: 30px 0 47px;
}

@media (max-width: 590px){
  .header-bottom {
    padding: 30px 0;
  }
}

.header-bottom__wrap {
  max-width: 830px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

.header-bottom ul {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.header-bottom li {
  border: 1px solid var(--color-violet);
  border-radius: 4px;
}

@media(max-width:590px) {
  .header-bottom li {
    width: 100%;
  }
}

.header-bottom li a {
  display: block;
  padding: 10px 20px;
  font-size: 18px;
  line-height: 40px;
  text-align: center;
  transition: 0.3s ease-in-out;
}

.header-bottom li a:hover {
  color: var(--color-primary);
  background: var(--color-violet);
}

.header-bottom h1 {
  position: relative;
  font-weight: 600;
  font-size: 44px;
  line-height: 64px;
  margin: 80px 0 50px;
  max-width: 750px;
  width: 100%;
  color: var(--color-primary);
}

.header-bottom h1 span {
  color: var(--color-violet);
}

.header-bottom h1::before {
  content: "";
  position: absolute;
  width: 68px;
  height: 70px;
  background: url(../img/stars.png);
  top: 50%;
  transform: translateY(-50%);
  left: -83px;
}

@media (max-width: 980px) {
  .header-bottom h1::before {
    display: none;
  }
}

@media (max-width: 590px) {
  .header-bottom h1 {
    margin: 30px 0;
    font-size: 30px;
    line-height: 50px;
    word-wrap: break-word;
    word-break: break-all;
  }
}

/* end header */

/* article */

main {
  background: url(../img/snake.png) no-repeat right top 18%;
  background-size: 30%;
}

@media(min-width:1441px) {
  main {
    background-size: auto;
  }
}

@media(max-width:980px) {
  main {
    background: inherit;
  }
}

.article {
  max-width: 830px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px 101px;
}

.article ul {
  list-style: disc;
  margin-bottom: 30px;
}

.article ul,
.article ol {
  margin-left: 20px;
  margin-bottom: 30px;
}

.article h2 {
  font-weight: 500;
  font-size: 36px;
  line-height: 34px;
  color: var(--color-violet);
  text-align: left;
  position: relative;
  margin: 40px 0;
}

.article h2::before {
  content: "";
  position: absolute;
  width: 25px;
  height: 40px;
  background: url(../img/Bookmark.png) no-repeat center;
  top: 50%;
  transform: translateY(-50%);
  left: -51px;
}

@media (max-width: 980px) {
  h2::before {
    display: none;
  }
}

@media (max-width: 590px) {
  .article h2 {
    margin: 30px 0;
    font-size: 26px;
    line-height: 40px;
  }
}

.article h3 {
  font-weight: 500;
  font-size: 28px;
  line-height: 34px;
  color: var(--color-violet);
  text-align: left;
  position: relative;
  margin: 40px 0;
}

.article h3::before {
  content: "";
  position: absolute;
  width: 25px;
  height: 40px;
  background: url(../img/Bookmark.png) no-repeat center;
  top: 50%;
  transform: translateY(-50%);
  left: -51px;
}

@media (max-width: 980px) {
  .article h3::before {
    display: none;
  }
}

@media (max-width: 590px) {
  .article h3 {
    margin: 30px 0;
    font-size: 22px;
    line-height: 34px;
  }
}

.article .table {
  width: 100%;
  margin: 50px auto;
  border-collapse: collapse;
  border-spacing: 0;
  align-items: center;
}

.article .table:last-child {
  margin-bottom: 0;
}

.article tbody tr {
  border-top: 1px solid var(--color-primary);
  display: grid;
  grid-template: auto/repeat(4, 1fr);
  align-items: center;
}

.article tbody tr:last-child {
  border-bottom: 1px solid var(--color-primary);
}

.article tbody td {
  font-weight: 500;
  font-size: 18px;
  line-height: 22px;
  text-align: center;
  padding: 20px 0;
}

.article tbody td:first-child {
  text-align: left;
  padding-left: 20px;
}

@media (max-width: 850px) {
  .article tbody td:first-child {
    padding: 20px 0 20px 0;
  }
}

.article tbody td:last-child {
  text-align: right;
  padding-right: 24px;
}

@media (max-width: 850px) {
  .article tbody td:last-child {
    padding: 20px 0 20px 0;
  }
}

@media (max-width: 510px) {
  .article tbody td {
    font-size: 13px;
  }
}

.article .tab-2 tbody tr {
  grid-template: auto/repeat(3, 1fr);
}

.article .tab-3 tbody tr {
  grid-template: auto/repeat(2, 1fr);
}

@media (max-width: 850px) {
  .article .tab-1 tbody tr {
    grid-template: auto/repeat(2, 1fr);
  }

  .article .tab-1 tbody tr td:nth-child(odd) {
    text-align: left;
    padding: 20px 0 20px 0;
  }

  .article .tab-1 tbody tr td:nth-child(even) {
    text-align: right;
    padding: 20px 0 20px 0;
  }
}

.footer {
  padding: 36px 0;
}

@media (max-width: 590px){
  .footer {
    padding: 40px 0;
  }
}

.footer p {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  text-indent: 0;
  text-align: center;
}
