
/* шрифт */

/* open-sans-300 - cyrillic_latin */
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/open-sans-v43-cyrillic_latin-300.woff2') format('woff2');
}
  
/* open-sans-regular - cyrillic_latin */
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/open-sans-v43-cyrillic_latin-regular.woff2') format('woff2');
}

/* open-sans-500 - cyrillic_latin */
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/open-sans-v43-cyrillic_latin-500.woff2') format('woff2');
}

/* open-sans-600 - cyrillic_latin */
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/open-sans-v43-cyrillic_latin-600.woff2') format('woff2');
}

/* open-sans-700 - cyrillic_latin */
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/open-sans-v43-cyrillic_latin-700.woff2') format('woff2');
}

/* open-sans-800 - cyrillic_latin */
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 800;
    src: url('../fonts/open-sans-v43-cyrillic_latin-800.woff2') format('woff2');
}


/* основная страница */
body {
    margin: 0;
    /* font-family: Arial, sans-serif; */
    font-family: 'Open Sans', sans-serif;
    line-height: 1.2; /*из-за шрифта*/
}

/* лого поверх картинки */
.logo {
    position: absolute;
    width: 60%;
    top: 50%;
    left: 20%;
    transform: translate(0%, -50%);
}
/* картинка */
.zastavka {
    width: 100%;
    height: auto;
}

/* правила + боковые колонки */
/* работа с сеткой и долями */
.main-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    background-color: #061F48;
}

.left-bar {
    grid-column: 1/2; 
}

.container {
    min-height: 75vh;
    grid-column: 2/12; 
    background-color: #998FB5;
    box-shadow: 0 1em 4em rgba(0,0,0,.9);
}

.right-bar {
    grid-column: 12/13; 
}

.rules {
    max-width: 720px;
    background-color: white;
    font-family: monospace;
    padding: 1.5em;
    margin: 4em;
    border-radius: 6px;
}

.container h1 {
    margin-top: 0;
    margin-bottom: 1em;
    font-size: 3em;
    font-weight: 500;
    line-height: 1.2;
    color: #212529;
    text-align: left;
}

.rules li {
    margin-bottom: 1em;
    font-size: 1.25em;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: left;
}

/* всплывающий ответ AJAX */
.response {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: #dd423a;
    color: white;
    opacity: 0.8;
    box-shadow: 0 0 12px #999;
    font-size: 1.4em;
    padding: 8px 20px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    transition: opacity 0.5s ease-out;
    display: none;
    z-index: 3;
}

@media (max-width: 1200px){
    .left-bar {
        display: none;
    }
    .right-bar {
        display: none;
    }
    .container {
        grid-column: 1/13; 
    }
}

@media (max-width: 800px){
    /* сужение для правил */
    .rules {
        margin-inline: 0px;
    }
}