

:root {
    --color-primary: #dc3545;
    --color-secondary: #007bff;
    --color-light: #f8f9fa;
    --color-accent: #dae0e5;
}

:focus-visible {
    outline: 0;
}

*, *::after, *::before {
    box-sizing: border-box;
}

/* Typography */

html {
    font-size: 62.5%;
}

body {
    font-family: 'Lato', 'Oswald', Verdana, sans-serif;
    font-size: 1.5rem;
    line-height: 1.3;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    margin-top: 1rem;
    line-height: 1.1;

}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 2rem;
}


@media screen and (min-width: 768px) {
    body {
        font-size: 1.6rem;
    }

    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.7rem;
        letter-spacing: 1px;
    }
}

/* Blocks */

.wrapper {
    display: grid;
    margin: 0 auto;
    grid-template-rows: auto auto minmax(200px, auto) auto;
    grid-template-areas:
        "h"
        "m"
        "c"
        "f";
    min-height: 100vh;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
}

@media screen and (min-width: 768px) {
    .wrapper {
        grid-template-rows: auto auto minmax(auto, 1fr) auto;
    }
}

/* Buttons */

.btn2 {
    border: 1px solid var(--color-secondary);
    text-decoration: none;
    padding: 7px 10px;
    font-size: 1.4rem;
    border-radius: 3px;
}

    .btn2:active {
        background: red;
    }

.btn--primary {
    background: var(--color-secondary);
    color: #fff;
    transition: all .2s linear;
}

    .btn--primary:hover {
        background: #086cd6;
        transition: all .2s linear;
    }


.btn--secondary {
    color: var(--color-secondary);
    background: #fff;
    transition: all .2s linear;
}

    .btn--secondary:hover {
        color: #fff;
        background: var(--color-secondary);
        transition: all .2s linear;
    }

/* Tags */

.tag {
    color: var(--color-secondary);
    background-color: var(--color-light);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3rem;
    letter-spacing: .3px;
    padding: 4px 10px;
    margin: 0 2px;
    border-radius: 3px;
    transition: background-color .2s linear;
}

    .tag:hover {
        background-color: var(--color-accent);
        transition: background-color .2s linear;
    }


/* Header */
.header {
    grid-area: h;
}

.header__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    column-gap: 5rem;
}

.header__slogan {
    font-family: 'Trocchi', Verdana, sans-serif;
    font-weight: normal;
    font-size: 2.4rem;
    margin: 0;
    text-align: center;
    margin-bottom: 1rem;
}

@media screen and (min-width: 768px) {
    .header__container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .header__slogan {
        margin-right: 2rem;
        margin-bottom: 0;
    }
}

/* Menu */

.menu {
    grid-area: m;
    background: #dc3545;
}

.menu__items {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 1.3rem;
    margin: 0;
    padding: 0;
}

.menu__link {
    text-decoration: none;
    color: #fff;
    text-transform: uppercase;
    font-size: 1.2rem;
}

a.menu__link:hover {
    color: #fff;
}

.menu__last-element {
    padding-bottom: 2rem;
}

.menu__icon2 {
    color: #fff;
    border: 1px solid #fff;
    padding: .5rem 1.5rem;
    border-radius: 3px;
    margin: 1rem;
    margin-left: 2rem;
    opacity: .5;
    font-size: 2rem;
    cursor: pointer;
    transition: box-shadow 0.15s;
}

.collapsible__content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all .3s linear;
}

.collapsible--expanded .collapsible__content {
    max-height: 100vh;
    opacity: 1;
}

.collapsible--expanded .menu__icon2 {
    opacity: 1;
    box-shadow: 0 0 3px 2px #ffffff;
    border-radius: 5px;
}

@media screen and (min-width: 900px) {
    .menu__icon2 {
        display: none !important;
    }

    .menu__items {
        flex-direction: row;
        justify-content: flex-end;
        column-gap: 3.5rem;
        padding: 2rem 0;
        max-height: 100%;
        opacity: 1;
        margin-right: 3rem;
    }

    .menu__link {
        margin: 0;
    }

    .collapsible--expanded .collapsible__content {
        margin-bottom: 0;
    }

    .menu__last-element {
        padding-bottom: 0;
    }
}

/* Content */

.content {
    grid-area: c;
    display: flex;
    flex-direction: column;
}

.main {
    flex: 2;
}

.main__art {
    margin: 4.5rem 2rem;
}

.main_heading {
    font-family: 'Oswald', Verdana, sans-serif;
    font-weight: normal;
    text-decoration: none;
    color: #000;
    letter-spacing: 2.7px;
}

    .main_heading:hover {
        text-decoration: underline;
    }

.main_datetime {
    display: block;
    margin: .8rem 0;
}

.main_text {
    line-height: 1.7;
}

.main_btn-more {
    width: 120px;
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: 15px;
}


.main_btn-next {
    width: 140px;
    text-align: center;
    display: block;
    margin-top: 20px;
    margin-left: auto;
    margin-bottom: 20px;
}

@media screen and (min-width: 768px) {
    .content {
        flex-direction: row;
    }
}

/* Sidebar */

.sidebar {
    flex: 1;
    padding: 0 2rem;
    margin-top: 2.2rem;
    display: flex;
    flex-direction: column;
    margin-bottom: 3rem;
}

.sidebar__heading {
    font-family: 'Oswald', Verdana, sans-serif;
    font-weight: 300;
    margin-top: 2.5rem;
}

.sidebar__form {
    margin: 2rem 0;
    display: flex;
}

.sidebar_input {
    flex: 1;
    border-radius: 3px 0 0 3px;
    border: 1px solid var(--color-accent);
    padding: 1px 15px;
}

    .sidebar_input::placeholder {
        text-transform: uppercase;
    }

.sidebar_button {
    width: 40px;
    height: 40px;
    background: var(--color-secondary);
    color: #fff;
    border: 0;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
}

    .sidebar_button:hover {
        background: #086cd6;
    }

.sidebar_input:focus {
    outline: none;
    box-shadow: 0px 0px 3px 3px rgba(0, 123, 255, 0.2)
}

.sidebar__banner {
    align-self: center;
}

.sidebar_tag {
    white-space: pre;
    line-height: 2.2;
}

.sidebar__items {
    margin: 0;
}

.sidebar__item {
    margin: .8rem 0;
}

.sidebar__link {
    text-decoration: none;
    color: #000;
}

    .sidebar__link:hover {
        text-decoration: underline
    }

    .sidebar__link:visited {
        color: #000;
    }


@media screen and (min-width: 768px) {
    .content {
        flex-direction: row;
    }
}


/* Footer */
.footer {
    grid-area: f;
    background: var(--color-primary);
    padding: 1.5rem 0 1rem;
    font-size: 1.2rem;
    text-align: center;
    color: #fff;
}

.footer__span {
    display: block;
    margin-bottom: .5rem;
}

.footer__link {
    color: #fff;
    text-decoration: none;
}

    .footer__link:visited {
        color: #fff;
    }


.card {
    box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px;
    border-radius: 1rem;
}

.card-img-top {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.card-img {
}

.fas {
    margin-right: 1rem;
    font-size: 2rem
}

.btn-order {
    padding: 10px 25px;
    font-size: 1.7rem;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 1rem;
}

.div-btn-order {
    margin-top: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-description-order {
    margin-top: 3rem;
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 1.4rem;
}

.card-title-order {
    font-weight: bold;
    font-size: 2.4rem;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-top: 2rem;
    text-align: center;
}

@media screen and (min-width: 576px) {
    .card-description-order {
        height: 240px;
    }

    .card-title-order {
        height: 50px;
    }
}

@media screen and (min-width: 730px) {
    .card-description-order {
        height: 170px;
    }

    .card-title-order {
        height: 50px;
    }
}


@media screen and (min-width: 768px) {
    .card-description-order {
        height: 280px;
    }

    .card-title-order {
        height: 90px;
    }
}

@media screen and (min-width: 1084px) {
    .card-description-order {
        height: 170px;
    }

    .card-title-order {
        height: 50px;
    }
}


.form-text {
    width: 100%;
    font-size: 1.8rem;
    padding: 1.1rem 1.1rem;
    border-radius: 5px;
    outline: none;
    border: 1px solid rgb(145, 144, 144);
}

    .form-text::placeholder {
        font-size: 1.5rem;
    }

    .form-text:focus {
        border: 1px solid #000;
    }


.form-button {
    font-size: 1.9rem;
    padding: 1.2rem 1.6rem;
    cursor: pointer;
    border-radius: 15px;
    border: 0;
}

.form-button-primary {
    color: #fff;
    background: #1877f2;
}

    .form-button-primary:hover {
        background: #175bb3;
    }

    .form-button-primary:disabled {
        background: #86898d;
    }




.form-label {
    display: inline-block;
    font-size: 1.5rem;
}


.btn-spinner {
    display: flex;
    column-gap: .6rem;
    align-items: center;
}

    .btn-spinner img {
        width: 20px;
    }

ul.validation-errors li.validation-message {
    color: #dc3545 !important;
}

ul.validation-errors {
    margin-top: 2rem;
}

.icon-complete {
    margin-left: 1rem;
    color: #198754;
    font-size: 1.4rem;
    float: right;
}

a.badge-lesson,
a.badge-lesson:visited,
a.badge-lesson:hover,
a.badge-lesson:active {
    text-decoration: none;
}

    a.badge-lesson:hover {
        background: #ffc107 !important;
        cursor: pointer;
        color: #fff !important;
    }

a.badge-lesson-selected {
    background: #dc3545 !important;
    color: #fff !important;
}

.lesson-next {
    margin-left: 1rem;
}

.lesson-prev {
    margin-right: 1rem;
}

.offer__link {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
}

.offer__file,
.offer__download {
    color: black;
}
