h1 {
    font-size: 35px;
    line-height: 40px;
}

#block-vesta-theme-views-block-chem-zanyatsya-block-1 .block-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #000;
    font-family: "Montserrat", sans-serif;
    font-size: 48px;
    font-weight: 600;
    line-height: 59px;
    letter-spacing: 0%;
    text-align: left;
    margin: 0 auto 52px;
    left: 0;
    right: 0;
    position: relative;
}

#block-vesta-theme-views-block-chem-zanyatsya-block-1 .view-content {
    display: flex;
    flex-wrap: wrap;
}

#block-vesta-theme-views-block-chem-zanyatsya-block-1 .views-row {
    width: 32%;
    margin-bottom: 40px;
}

#block-vesta-theme-views-block-chem-zanyatsya-block-1 .views-row:nth-child(3n-1),
#block-vesta-theme-views-block-chem-zanyatsya-block-1 .views-row:nth-child(3n+1) {
    margin-right: 2%;
}

#block-vesta-theme-views-block-chem-zanyatsya-block-1 .views-row .field--name-node-title {
    font-size: 16px;
    font-weight: bold;
    line-height: 20px;
}

#block-vesta-theme-views-block-chem-zanyatsya-block-1 .views-row .field--name-body {
    margin-top: 10px;
}

#block-vesta-theme-views-block-chem-zanyatsya-block-1 .views-row .field--name-field-foto img {
    max-width: 100%;
    height: auto;
}

#block-vesta-theme-views-block-chem-zanyatsya-block-1 .views-row .field--name-field-foto {
    margin-bottom: 30px;
}

.node--type-zanyatia.node--view-mode-full .field--name-body {
    margin-bottom: 25px;
}

.node--type-zanyatia.node--view-mode-full .field--name-field-foto img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

#block-vesta-theme-views-block-chem-zanyatsya-block-1 .views-row .field--name-node-link a {
    background-color: #a32028;
    color: #fff;
    padding: 19px 32px 19px 27px;
    border-radius: 0px;
    overflow: hidden;
    border: 0;
    outline: none;
    box-shadow: none;
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0;
    text-align: left;
}

#block-vesta-theme-views-block-chem-zanyatsya-block-1 .views-row .field--name-node-link {
    margin-top: 20px;
}

#block-vesta-theme-views-block-chem-zanyatsya-block-1 .views-row .field--name-node-link a:hover {
    background: #8f1520;
}

.alert_metrika {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    color: #fff;
    background: #3b3b3b;
    font-size: 12px;
    padding: 15px 0;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.12);
    margin: 0;
}

.alert_metrika a {
    color: #fff;
    text-decoration: underline;
}

.alert_metrika a:hover {
    color: #ff0101;
}

.alert_metrika .btn {
    margin-right: 10px;
    margin-bottom: 10px;
}

.alert_metrika .btn-primary {
    font-size: 14px !important;
    line-height: 8px !important;
}

.alert_metrika .block-btns {
    margin-top: 15px;
}

.alert_metrika.metrika_hidden_yes {
    display: none;
}

.alert_metrika button.btn.btn-primary {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: 12px;
    font-size: 1rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    background: #a32028;
    color: #fff;
    border-radius: 0;
}

.alert_metrika button.btn.btn-primary:hover {
    background: #8f1520;
}


@media(max-width: 991px) {
    #block-vesta-theme-views-block-chem-zanyatsya-block-1 .views-row {
        width: 49%;
        margin-bottom: 40px;
    }

    #block-vesta-theme-views-block-chem-zanyatsya-block-1 .views-row:nth-child(3n-1),
    #block-vesta-theme-views-block-chem-zanyatsya-block-1 .views-row:nth-child(3n+1) {
        margin-right: initial;
    }

    #block-vesta-theme-views-block-chem-zanyatsya-block-1 .views-row:nth-child(odd) {
        margin-right: 2%;
    }

    #block-vesta-theme-views-block-chem-zanyatsya-block-1 .block-title {
        font-size: 35px;
        line-height: 40px;
        margin-bottom: 30px;
    }
}

@media(max-width: 576px) {

    #block-vesta-theme-views-block-chem-zanyatsya-block-1 .views-row:nth-child(3n-1),
    #block-vesta-theme-views-block-chem-zanyatsya-block-1 .views-row:nth-child(3n+1) {
        margin-right: initial;
    }

    #block-vesta-theme-views-block-chem-zanyatsya-block-1 .views-row:nth-child(odd) {
        margin-right: initial;
    }

    #block-vesta-theme-views-block-chem-zanyatsya-block-1 .views-row {
        width: 100%;
        margin-bottom: 40px;
    }

    #block-vesta-theme-views-block-chem-zanyatsya-block-1 .block-title {
        font-size: 30px;
        line-height: 35px;
        margin-bottom: 30px;
    }
}

.view-stories .view-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: stretch;
}

.view-stories .views-row {
    width: calc(33.333% - 20px);
    margin-bottom: 30px;

    display: flex;
    flex-direction: column;

    background: #fff;
}

.view-stories .views-field-title {
    font-family: "Montserrat", sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 30px;

    min-height: 40px;
    display: flex;
    align-items: flex-start;

    margin-bottom: 15px;
}

.view-stories .views-field-body {
    margin-top: auto;

    overflow: hidden;
    border-radius: 20px;
    background: #000;

    width: 100%;
}


.view-stories .views-field-body iframe {
    display: block;

    width: 100%;
    height: 520px;

    border: 0;
    border-radius: 20px;
}

.view-stories .views-row.vertical iframe {
    aspect-ratio: 9 / 16;
    height: auto;
}


.view-stories .views-row.horizontal iframe {
    aspect-ratio: 16 / 9;
    height: auto;
}

@media(max-width:991px) {
    .view-stories .view-content {
        gap: 30px;
    }

    .view-stories .views-row {
        width: calc(50% - 15px);
    }

    .view-stories .views-field-title {
        font-size: 20px;
        line-height: 28px;
        min-height: 56px;
    }

    .view-stories .views-field-body iframe {
        height: 500px;
    }
}

@media(max-width:480px) {
    .view-stories .views-row {
        width: 100%;
    }

    .view-stories .views-field-title {
        font-size: 20px;
        line-height: 28px;
        min-height: auto;
    }

    .view-stories .views-field-body iframe {
        height: 520px;
    }
}