@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700;800&display=swap');

:root {
    --ff-primary: 'Rubik', sans-serif;
    --bg-main: #454555;
    --color-title: #00bcd4;

}


/* default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
    margin: 0 auto;
}

figure img {
    border-radius: 10px;
    margin: 20px auto;
}

button {
    border: 0;
    outline: none;
    background: transparent;
    cursor: pointer;
}

/* end default style */

/************************* main style *************************/
body {
    background-color: var(--bg-main);
    background-image: url(../img/bg-top.png),
        url(../img/bg-right.png),
        url(../img/bg-midl.png),
        url(../img/bg-bottom.png);
    background-repeat: no-repeat;
    background-position: top left, top right, right center, left bottom;
    color: #ECECEC;
    font-family: var(--ff-primary);
    font-size: 16px;
    line-height: 1;
    font-weight: 400;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.hidden{
    overflow-y: hidden;
}

main {
    flex: 1;
}

/*::::::::::::::::::::: header ::::::::::::::::::::::::*/


.header-top {
    height: 73px;
    position: relative;
    z-index: 3;
}

.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px 100px;
    background: #0B1414;
    box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.25);
    z-index: 2;
    border-bottom: 1px solid #77D2E9;
}

.header-wrapper {
    display: flex;
    align-items: center;
    gap: 100px;
    justify-content: space-between;
}

.logo {
    display: block;
    width: 129px;
    padding: 10px 0 10px 44px;
    background: url(../img/icons8-lottery-32.png) no-repeat top left;
    font-weight: 400;
    font-size: 20px;
    line-height: 20px;
    color: var(--color-title);
    text-transform: uppercase;
}

.logo span {
    display: block;
}

.header-links {
    display: flex;
    gap: 16px;
}

.header-links a {
    width: 161px;
    padding: 14px 0;
    text-align: center;
    font-weight: 700;
    line-height: 20px;
    background: linear-gradient(95.85deg, #5FBFDF 2.6%, #28939D 97.28%);
    border-radius: 8px;
}

.header-img {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

/* end header */

.article {
    padding: 61px 40px 100px 40px;
    max-width: 1090px;
    width: 100%;
    margin: 0 auto;
    background: #121A21;
}

.article p {
    margin-bottom: 24px;
    line-height: 28px;
}

.nav-burger {
    display: none;
}

.nav {
    width: 1090px;
    margin: 0 auto;
    padding: 5px 0 5px;
    background: #1C232C;
    box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.25);
}

.nav-list {
    display: flex;
    justify-content: center;
    gap: 28px;
}

.nav-item {
    font-size: 14px;
    line-height: 20px;
    color: #FFFFFF;
    list-style: none;
}

.nav-item:hover {
    color: #5ABCDA;
}

/* end nav */

h1 {
    margin: 0 0 40px;
    font-size: 30px;
    line-height: 32px;
    color: var(--color-title);
    text-align: center;
}

.article p a {
    color: #5ABCDA;
}

.article p a:hover {
    color: #4CE2C7;
}

.article-content {
    position: relative;
    display: flex;
    justify-content: start;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.content-text {
    display: flex;
    flex-direction: column;
    max-width: 556px;
    width: 100%;
}

.article-img {
    width: 400px;
    margin-bottom: 24px;
}

/* end h1 */

h2 {
    margin: 40px 0 24px;
    font-weight: 400;
    font-size: 24px;
    line-height: 34px;
    color: var(--color-title);
}

.content-text {
    display: flex;
    flex-direction: column;
    max-width: 556px;
    width: 100%;
}

 ul {
    list-style: disc;
    margin: 30px 0 30px 30px;
    line-height: 32px;
}

/* end h2 */

h3 {
    font-size: 20px;
    line-height: 24px;
    color: #FFFFFF;
    margin-bottom: 16px;
}

ol {
    margin: 30px 0 30px 30px;
    line-height: 32px;
}

.table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    display: grid;
    grid-template-rows: auto;
}

.table:not(:last-child){
    margin: 60px 0;
}

.table td {
    line-height: 26px;
    letter-spacing: -0.408px;
    color: #ECECEC; 
    padding: 12px 10px;
    word-break: break-all;
}

.table tr:nth-child(odd) {
    background: #1E242F;

}

.table tr {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid #325761;
}

.table-1 tr:first-child td {
    background: #2C434E;
    
}

.table-1 tr td:not(:last-child) {
    border-right: 1px solid #000;
}

.table-2 tr {
    grid-template-columns: 220px 1fr 1fr;
}

.table-2 tr td:not(:last-child) {
    border-right: 1px solid #000;
}

.table-3 tr {
    grid-template-columns: 284px 1fr;
}

.table-3 tr td:not(:last-child) {
    border-right: 1px solid #000;
}    

.table-3 tr td:first-child {
    font-weight: 700;
}

/* end main */

.footer {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 40px 0 44px;
    border-top: 1px solid #77D2E9;
}

.footer span {
    font-size: 12px;
    line-height: 18px;
    color: #B5B5B5;
}

/* btn up */
.arrow-btn-up {
    width: 34px;
    height: 34px;
    background-image: url(../img/arrow-up.svg);
    background-repeat: no-repeat;
    background-position: center;
    position: fixed;
    border: 5px solid transparent;
    z-index: -1;
    bottom: 45px;
    right: 10px;
    opacity: 0;
    transition: 0.3s ease;
}

.arrow-btn-up.btn-visible {
    opacity: 1;
    z-index: 1;
    background-image: url(../img/arrow-up-active.svg);
}