:root {
    font-size: 8px;

    --header-height: 52px;

    --color1: #FFFFFF;
    --color2: #107bbc;
    /* --color2: #554D72;  */
    /* --color2: #9cb6b4;  */
    /* #3678c2; - синий помягче */
    /* #0077FF; - синий */
    --color3: #03C988;
    --color4: #f7f9fb;
}

html {
    scroll-behavior: smooth;
}

p,
a {
    margin: 0;
    padding: 0;
}

body {
    font-family: sans-serif;
    font-size: 2rem;
    margin: 0px;
    background-color: white;
}

body a {
    text-decoration: none;
}

header {
    /* width: 100vw;
    display: flex; */
    /* justify-content: space-between;
    align-items: center; */
    /* padding: 17px; */
    /*     background-color: #0077FF; */
    height: var(--header-height);
}

.header__logo {
    height: 100px;
}

header p {
    color: var(--color1);
    font-size: 30px;
    font-weight: 600;
}

.header__navButton {}

.header__navButton:hover {
    background-color: var(--color3);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 16px;
    background-color: var(--color2);
    width: 100%;
    /* height: inherit; */
    display: flex;
    justify-content: center;
}

.navbar--controls {
    position: relative;
}

.navbar--controls--navbutton {
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    color: var(--color1);
    padding: 10px;
    margin: 10px;
    border-radius: 4px;
}

.navbar--controls--navbutton:hover {
    background-color: var(--color3);
}

section {
    margin: 0;
    /* padding: 20px; */
}

.section-welcome {
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-welcome--left-block {
    margin-right: 70px;
}

.section-welcome--left-block--text-hello {
    width: 540px;
    font-weight: 700;
    font-size: 6rem;
    line-height: 68px;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-welcome--left-block--text-hello2 {
    width: 540px;
    font-weight: 400;
    font-size: 2.8rem;
    line-height: 30px;
    letter-spacing: 1px;
    margin-top: 10px;
    color: #505050;
}

.section-welcome--right-block--cat-img {
    max-width: 500px;
    max-height: 500px;
}

.section-about-keksik {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color4);
}

.section-about-keksik--main {
    width: 1130px;
}

.section-about-keksik--main--text-header {
    font-size: 4rem;
    line-height: 68px;
    letter-spacing: 1px;
    /* margin-left: 10px; */
    text-align: center;
}

.section-about-keksik--main--text {
    font-weight: 400;
    font-size: 2.4rem;
    line-height: 30px;
    letter-spacing: 1px;
    margin-top: 10px;
    margin-bottom: 40px;
    color: #505050;
}

.button-read-story {
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    color: black;
    background-color: #e2e2e2;
    padding: 10px;
    /* margin: 10px; */
    border-radius: 4px;
}

.button-read-story:hover {
    background-color: var(--color3);
}

.section-read-stories--stroies-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.section-read-stories--read-story {
    width: 800px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin: 0px;
    border-radius: 10px;
}

.section-read-stories--read-story:hover {
    background-color: #f7f9fb;
}

.section-read-stories--read-story--name {
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-read-stories--read-story--name--name {
    font-weight: 400;
    font-size: 2.6rem;
    line-height: 30px;
    letter-spacing: 0.3px;
}

.section-read-stories--read-story--name--author {
    font-weight: 400;
    font-size: 1.8rem;
    font-style: italic;
    line-height: 30px;
    color: #505050;
    padding-left: 15px;
}

.section-games {
    background-color: var(--color2);
    color: white;
}

.section-games--header {
    padding-top: 10px;
    font-size: 4rem;
    line-height: 68px;
    letter-spacing: 1px;
    /* margin-left: 10px; */
    text-align: center;
}

.section-games--games-list {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 25px;
}

.section-games--game-card {
    margin: 0 20px 30px 20px;
}

.section-games--game-card--block2 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 600px;
}

.section-games--game-card--block2--img {
    width: 200px;
    max-height: 200px;
    margin-right: 20px;
}

.section-games--game-card--name {
    font-weight: 400;
    font-size: 3.5rem;
    line-height: 30px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-games--game-card--short-description {
    font-weight: 400;
    font-size: 1.8rem;
    font-style: italic;
    line-height: 30px;
}

.section-games--game-card--block2--description-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.section-games--game-card--block2--description-block--full-description {
    font-weight: 400;
    font-size: 1.8rem;
    line-height: 27px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-games--game-card--block2--description-block--button-download {
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    color: black;
    background-color: #e2e2e2;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.section-games--game-card--block2--description-block--button-download:hover {
    background-color: var(--color3);
}
.section-tests {
    display: flex;
    justify-content: center;
    align-items: center;
}
.section-tests--left-block {
    margin-right: 70px;
}
.section-tests--left-block--text-header {
    width: 540px;
    font-weight: 700;
    font-size: 6rem;
    line-height: 68px;
    letter-spacing: 1px;
}
/* .section-tests--left-block--text {
    width: 540px;
    font-weight: 400;
    font-size: 2.8rem;
    line-height: 30px;
    letter-spacing: 1px;
    margin-top: 10px;
    color: #505050;
} */
.section-tests--right-block {
    box-sizing: border-box; /* чтобы border в 1px не давал в ширину больше полотна сайта, но пока не помогло, делаю width: 96% */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.section-tests--right-block--test {
    width: 560px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
}
.section-tests--right-block--test:hover {
    border: 1px solid var(--color2);
    /* background-color: #f7f9fb; */
}
.section-tests--right-block--test--name {
    padding: 10px;
    max-width: 390px;
}
.button-start-test {
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    color: black;
    background-color: #e2e2e2;
    padding: 10px;
    margin: 10px;
    border-radius: 4px;
}
.button-start-test:hover {
    background-color: var(--color3);
}
.section-sellings {
    display:flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color4);
}
.section-sellings--main {
    width: 1130px;
}
.section-sellings--main--header {
    font-size: 4rem;
    line-height: 68px;
    letter-spacing: 1px;
    text-align: center;
}
.section-sellings--main--map {
    display: flex;
    justify-content: space-between;
    /* align-items: top; */
}
.section-sellings--main--map--description {
    width: 540px;
    font-weight: 400;
    font-size: 2.8rem;
    line-height: 30px;
    letter-spacing: 1px;
    margin-top: 10px;
    color: #505050;
}
.section-sellings--main--map--script {
    width: 540px;
    min-height: 400px;
}
.section-socials {
    display:flex;
    justify-content: center;
    align-items: center;
}
.section-socials--main {
    width: 1130px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}
.section-socials--main--left-block {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.section-socials--main--header {
    width: 540px;
    font-size: 4rem;
    line-height: 55px;
    letter-spacing: 1px;
    margin-bottom: 15px;
}
.section-socials--main--description {
    width: 540px;
    font-weight: 400;
    font-size: 2.8rem;
    line-height: 30px;
    letter-spacing: 1px;
    margin-top: 10px;
    margin-bottom: 30px;
    color: #505050;
}
.button-socials-vk {
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    background-color: #447bba;
    padding: 10px;
    margin: 10px;
    border-radius: 4px;
}
.button-socials-vk:hover {
    background-color: var(--color3);
}
.button-socials-qr {
}
.button-socials-qr img {
    width: 200px;
    box-shadow: 0 5px 10px 0 rgba(0,0,0,0);
    transition: box-shadow .5s ease-out;
    border-radius: 10px;
}
.button-socials-qr img:hover {
    width: 200px;
    box-shadow: 0 5px 10px 0 rgba(0,0,0,.5);
    transition: box-shadow .3s ease-in;
}
.section-socials--main--social-links {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.section-socials--main--social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.section-socials--right-block--cat-img {
    display: block;
    max-width: 500px;
    max-height: 500px;
}
footer {
    background-color: var(--color2);
    width: 100%;
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.footer-main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 30px 64px;
}
.footer-copyright {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    color: white;
    width: 800px;
    margin: 10px 40px 0 0;
}
.footer-links-block {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
}
.footer-links-block a {
    color: white;
    cursor: pointer;
    font-size: 2rem;
    font-weight: 400;
    text-decoration: none;
    padding: 4px;
    transition: color .3s ease-out;
}
.footer-links-block a:hover {
    color:var(--color3);
    transition: color .15s ease-out;
}
.footer-links-block p {
    text-align: left;
    color: white;
    font-size: 2.8rem;
    margin-bottom: 5px;
}








@media (max-width: 1270px) { /* пока не сделал отдельно чисто под мобайл 720, 1270 - минимум что выдерживает ПК версия */

    :root {
        --header-height: 100px;
    }

    .navbar {
        box-sizing: border-box;
        padding: 10px;
    }

    .navbar--controls {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }

    .navbar--controls--navbutton {
        padding: 5px;
        margin: 5px;
    }

    .section-welcome {
        flex-direction: column;
    }

    .section-welcome--left-block {
        margin-right: 0px;
        width: 90%;
        text-align: center;
    }

    .section-welcome--left-block--text-hello {
        width: 100%;
        margin-top: 0px;
        padding-top: 10px;
        line-height: normal;
    }

    .section-welcome--left-block--text-hello2 {
        width: 100%;
        margin-bottom: 0px;
    }

    .section-welcome--right-block--cat-img {
        max-width: 80%;
        max-height: 500px;
    }

    .section-about-keksik--main {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .section-about-keksik--main--text-header {
        margin: 15px auto 0px auto;
    }

    .section-about-keksik--main--text {
        width: 90%;
        margin-bottom: 20px;
        text-align: center;
        margin-top: 0px;
    }

    .button-read-story {
        text-align: center;
    }

    .section-read-stories--read-story {
        width: 90%;
    }

    .section-read-stories--read-story--name--name {
        width: 50%;
        font-size: 2.4rem;
    }

    .section-read-stories--read-story--name--author {
        width: 50%;
        padding-left: 5px;
        padding-right: 5px;
        text-align: center;
    }

    .section-games--games-list {
        flex-direction: column;
    }

    .section-games--game-card--block2 {
        flex-direction: column;
        width: 100%;
    }

    .section-games--game-card--name {
        text-align: center;
        margin-bottom: 5px;
    }

    .section-games--game-card--short-description {
        text-align: center;
        margin-bottom: 5px;
    }

    .section-games--game-card--block2--img {
        margin: 0 0 5px 0;
    }
    .section-games--game-card--block2--description-block {
        align-items: center;
    }
    .section-games--game-card--block2--description-block--full-description {
        margin-bottom: 10px;
    }
    .section-games--game-card--block2--description-block--button-download {
        margin-bottom: 15px;
    }
    .section-tests {
        flex-direction: column;
    }
    .section-tests--left-block {
        margin-right: 0;
    }
    .section-tests--left-block--text-header {
        width: 100%;
        text-align: center;
        margin: 15px auto 0 auto;
        font-size: 4rem;
        line-height: 45px;
    }
    .section-tests--right-block--test {
        width: 96%;
    }
    .section-tests--right-block--test--name {
        padding: 10px;
        max-width: 390px;
        width: 60%;
    }
    .button-start-test {
        font-size: 15px;
    }
    .section-sellings--main {
        width: 100%;
    }
    .section-sellings--main--header {
        font-size: 4rem;
        line-height: 45px;
    }
    .section-sellings--main--map {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: column;
    }
    .section-sellings--main--map--description {
        width: 90%;
    }
    .section-sellings--main--map--script {
        width: 90%;
    }
    .section-socials--main {
        width: 100%;
        flex-direction: column;
    }
    .section-socials--right-block--cat-img {
        display: none;
    }
    .section-socials--main--header {
        width: 100%;
        text-align: center;
        line-height: 45px;
        margin: 15px auto 0 auto;
    }
    .section-socials--main--description {
        width: 90%;
    }
    .footer-main {
        flex-direction: column;
    }
    .footer-copyright {
        width: 100%;
        margin-bottom: 15px;
    }
    .footer-links-block {
        width: 100%;
        align-items:normal;
        margin-top: 10px;
    }
    .footer-links-block a {
        text-align: center;
    }
    .footer-links-block p {
        text-align: center;
        color: white;
        font-size: 2.8rem;
        margin-bottom: 10px;
    }
}