/*
Theme Name: МТЭК 2022
Author: ekutuc.911
*/

/*
ОПИСАНИЕ: ДАННЫЙ ФАЙЛ СОДЕРЖИТ ОБЩИЕ CSS-ПРАВИЛА ДЛЯ ДАННОГО ШАБЛОНА. ЗДЕСЬ ОПИСЫВАЮТСЯ ПРАВИЛА ДЛЯ ОТОБРАЖЕНИЯ РАЗЛИЧ-
НЫХ БЛОКОВ WORDPRESS, ДОПОЛНИТЕЛЬНЫЕ КЛАССЫ ПРИСОЕДИНЯЕМЫЕ К НИМ, МЕДИАЗАПРОСЫ ОТНОСЯЩИЕСЯ НЕПОСРЕДСТВЕННО К БЛОКАМ, А
ТАКЖЕ ПРАВИЛА ОПИСЫВАЮЩИЕ ОТОБРАЖЕНИЕ ТЕКСТА, СПИСКОВ, ИЗОБРАЖЕНИЙ И Т.К.
ЕСЛИ ВЫ ИЩЕТЕ БОЛЕЕ ЧАСТНЫЕ CSS-ПРАВИЛА, ПРЕДНАЗНАЧЕННЫЕ ДЛЯ ОТОБРАЖЕНИЯ ДАННЫХ В КОНКРЕТНОМ СЛУЧАЕ, ТО ОТКРОЙТЕ ФАЙЛ
"LAYOUT" НАХОДЯЩИЙСЯ ПО ПУТИ "ASSETS\CSS\LAYOUT.CSS"
*/ 

/* -- ОБНУЛЕНИЕ ----------------------------------------------------------------------------------------------------- */
*, *::before, *::after {
    padding: 0;
    margin: 0;
    border: none;
    box-sizing: border-box;
}
html, body {
    min-height: 100%;
    min-width: 100%;
    font-family: Inter;
    font-size: 20px;
    font-weight: 500;
    margin: 0px;
}
ol, ul, li {
    list-style: none;
}
a {
    text-decoration: none;
}
img {
    vertical-align: top;
    transition: 0.3s ease;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: inherit;
    font-size: inherit;
    transition: color 0.3s ease;
    width: 100%;
    word-break: break-word;
}
button {
    user-select: none;
}
/* -- СИСТЕМНЫЕ ----------------------------------------------------------------------------------------------------- */
.wrapper {
    height: 100%;
    width: 100%;
    overflow-y: hidden;
    overflow-x: hidden;
}
._img {
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: cover;
    user-select: none;
}
main > .wp-block-group:not(:last-child) {
    margin: 0px;
}
.wp-block-group__inner-container {
    margin: 0px auto;
    padding: 70px 120px;
    max-width: 1600px;
}
@media (max-width: 1024px) {
    .wp-block-group__inner-container {
        padding: 70px 30px;
    }
}
/* -- ОСНОВНЫЕ ------------------------------------------------------------------------------------------------------ */
body {
    background-color: #fefefe !important;
}
h2 {
    font-size: 40px;
    font-weight: 700;
    text-transform: uppercase;
}
h2:not(:last-child) {
    margin: 0px 0px 30px 0px;
}
h3 {
    font-size: 32px;
    font-weight: 600;
}
h3:not(:last-child) {
    margin: 0px 0px 10px 0px;
}
h4 {
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
}
h4:not(:last-child) {
    margin: 0px 0px 7px 0px;
}
p {
    color: #323232;
    font-weight: 500;
    transition: color 0.3s ease, font-size 0.3s ease;
}
p:not(:last-child) {
    margin: 0px 0px 10px 0px;
}
p.uncolored-link > a {
    color: inherit;
}
a {
    color: #323232;
    text-decoration: underline;
    transition: 0.3s ease;
    outline: none;
}
a:hover {
    color: #04819e;
}
button {
    outline: none;
}
main ul:not(:last-child) {
    margin: 0px 0px 20px 0px;
}
main li {
    color: #323232;
}
@media (max-width: 768px) {
    h2 {
        font-size: 36px;
    }
}
@media (max-width: 480px) {
    h2 {
        font-size: 26px;
    }
    h3 {
        font-size: 22px;
    }
}
/* -- НАСТРОЙКА ОТСТУПОВ (DONE) ------------------------------------------------------------------------------------- */
.no-margin {
    margin: 0px !important;
}
.no-inner-margin > * {
    margin: 0px !important;   
}
.h2-margin {
    margin: 0px 0px 30px 0px !important;
}
.m-margin:not(:last-child) {
    margin: 0px 0px 20px 0px !important;
}
/* -- НАСТРОЙКА ОБЕРТКИ КОЛОНОК (DONE) ------------------------------------------------------------------------------ */
.wp-block-columns {
    flex-wrap: wrap !important;
    margin: 0px;
    gap: 0 !important;
}
.wp-block-columns:not(:last-child) {
    margin: 0px 0px 20px 0px;
}
.wp-block-columns.reverse {
    flex-wrap: wrap-reverse !important;
}
.wp-block-columns.force-nowrap {
    flex-wrap: nowrap !important;
}
.single .wp-block-group__inner-container > .wp-block-columns > *:not(:last-child) {
    padding: 0px 40px 0px 0px;
}
@media (max-width: 1024px) {
    .wp-block-columns.reverse > .wp-block-column:not(:first-child) {
        margin: 0px 0px 30px 0px;
    }
    .wp-block-columns.reverse > .wp-block-column {
        margin: 0px;
    }
    .wp-block-columns.force-nowrap {
        flex-wrap: wrap !important;
    }
    .wp-block-columns.force-nowrap.reverse {
        flex-wrap: wrap-reverse !important;
    }
    .single .wp-block-group__inner-container > .wp-block-columns > *:not(:last-child) {
        padding: 0px;
    }
}
/* -- НАСТРОЙКА ОБЕРТКИ ПРЕИМУЩЕСТВ У СПЕЦИАЛЬНОСТИ (DONE) ---------------------------------------------------------- */
.wp-block-columns.spec-advantages > .wp-block-column {
    flex-basis: 25%;
}
@media (max-width: 1260px) {
    .wp-block-columns.spec-advantages {
        flex-wrap: wrap !important;
    }
    .wp-block-columns.spec-advantages > .wp-block-column {
        flex-basis: 50% !important;
        margin: 0px 0px 40px 0px;
    }
    .wp-block-columns.spec-advantages > .wp-block-column:nth-child(2n) {
        padding: 0px 0px 0px 20px;
    }
}
@media (max-width: 768px) {
    .wp-block-columns.spec-advantages > .wp-block-column {
        flex-basis: 100% !important;
    }
    .wp-block-columns.spec-advantages > .wp-block-column:nth-child(2n) {
        padding: 0px;
    }
}
/* -- НАСТРОЙКА КОЛОНОК (DONE) -------------------------------------------------------------------------------------- */
.wp-block-column {
    flex-grow: 1;
    flex-basis: 0;
}
.wp-block-column:not(:last-child) {
    padding: 0px 20px 0px 0px;
}
.wp-block-column.to-min-width {
    min-width: min-content;
}
.wp-block-column.no-grow {
    flex-grow: 0;
}
@media (max-width: 1024px) {
    .wp-block-column {
        flex-basis: 100% !important;
        max-width: none !important;
    }
    .wp-block-column:not(:last-child) {
        margin: 0px 0px 30px 0px;
        padding: 0px;
    }
}
@media (max-width: 480px) {
    .wp-block-group h2, .wp-block-group h3 {
        text-align: center;
    }
    .wp-block-column > .wp-block-buttons, .wp-block-group__inner-container > .wp-block-buttons, .wp-block-group > .wp-block-buttons {
        justify-content: center !important;
    }
    .wp-block-column .wp-block-button, .wp-block-group__inner-container .wp-block-button {
        width: 90%;
    }
}
/* -- НАСТРОЙКА СПИСКОВ (DONE) -------------------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .page ul {
        text-align: justify;
    }
}
/* -- НАСТРОЙКА ГРУПП (DONE) ---------------------------------------------------------------------------------------- */
.wp-block-group {
    gap: 0 !important;
}
.wp-block-group:not(:last-child) {
    margin: 0px 0px 20px 0px;
}
.wp-block-group .wp-block-group:not(:last-child) {
    margin: 0px 0px 15px 0px;
}
@media (max-width: 480px) {
    main > .wp-block-group > .wp-block-group__inner-container p {
        text-align: justify;
        text-align-last: center;
    }
    .wp-block-group.centered {
        align-items: center !important;
        justify-content: center !important;
    }
    .wp-block-group.centered > * {
        text-align: center;
    }
    .news-sidebar .wp-block-group {
        align-items: inherit !important;
        justify-content: inherit !important;
    }
}
/* -- НАСТРОЙКА КНОПОК (DONE) --------------------------------------------------------------------------------------- */
.wp-block-buttons {
    display: flex;
    margin-bottom: -10px;
    width: 100%;
    gap: 0.5em;
}
.wp-block-buttons.centered {
    justify-content: center;
}
.wp-block-buttons.is-content-justification-right > .wp-block-button {
    justify-content: right;
}
.wp-block-buttons.medium-size > .wp-block-button {
    margin-right: 0px ;
    width: 100%;
    max-width: 400px;
}
.wp-block-buttons.medium-size a {
    max-width: 400px;
    min-width: none;
}
.wp-block-button {
    display: flex !important;
    width: min-content;
}
.wp-block-button:not(:last-child) {
    margin-right: 30px;
}
.wp-block-button > a {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 4px 5px;
    min-height: 45px;   
    min-width: 200px;
    color: #fefefe;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    background-color: #bd2a4e;
    border-radius: 10px;
    transition: 0.3s ease;
}
.wp-block-button.blue > a {
    background-color: #04819e;
}
/* -- НАСТРОЙКА МЕДИА ШОРТКОДОВ ------------------------------------------------------------------------------------- */
.media-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 450px;
    border-radius: 20px;
    overflow: hidden;
    background-color: #323232;
} 
.media-wrapper iframe {
    position: absolute !important;
    height: 100%;
    width: 100%;
}
.media-wrapper img  {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0px;
    left: 0px;
    object-fit: cover;
}
@media (max-width: 576px) {
    .media-wrapper {
        min-height: 400px;
    }
}
@media (max-width: 480px) {
    .media-wrapper {
        min-height: 300px;
    }
}
/* -- НАСТРОЙКА ВИДЖЕТОВ - ПОИСК ------------------------------------------------------------------------------------ */
.wp-block-search > label {
    display: block;
    margin: 0px 0px 10px 0px;
    color: #015367;
    font-size: 26px;
    font-weight: 700;
}
.wp-block-search input {
    flex: 1;
    padding: 0px 15px;
    min-height: 44px;
    color: #646464;
    background-color: transparent;
    border-radius: 10px 0px 0px 10px;
    border: 3px solid #015367;
    border-right: none;
    outline: none;
}
.wp-block-search button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0px;
    padding: 5px;
    width: 44px;
    background-color: #015367;
    border-radius: 0px 10px 10px 0px;
    border: 3px solid #015367;
    border-left: none;
    transition: 0.3s ease;
    cursor: pointer;
}
.wp-block-search button svg {
    fill: #fefefe;
    transform: scale(1.2);
    transition: 0.3s ease;
}
.wp-block-search button:hover {
    background-color: #023947;
}
.wp-block-search button:hover svg {
    transform: scale(0.95);
}
/* -- НАСТРОЙКА ВИДЖЕТОВ - АРХИВ (DONE) ----------------------------------------------------------------------------- */
.wp-block-archives {
    display: flex;
    flex-wrap: wrap;
    margin: 0px 0px -5px 0px;
    width: 100%;
}
.wp-block-archives > li {
    flex-basis: 50%;
    margin: 0px 0px 5px 0px;
    padding: 0px 20px 0px 0px;
}
@media (max-width: 480px) {
    .wp-block-archives > li {
        flex-basis: 100%;
    }
}
/* -- НАСТРОЙКА ВИДЖЕТОВ - КАТЕГОРИИ (DONE) ------------------------------------------------------------------------- */
.wp-block-categories > li:not(:last-child) {
    margin: 0px 0px 5px 0px;
}
.wp-block-categories a {
    position: relative;
    display: block;
    color: #323223;
    text-decoration: none;
    padding: 0px 0px 0px 40px;
}
/* -- НАСТРОЙКА ВИДЖЕТОВ - СТРЕЛОЧНЫЕ ССЫЛКИ АРХИВА И КАТЕГОРИЙ (DONE) ---------------------------------------------- */
.arrow a {
    position: relative;
    display: block;
    color: #323232;
    text-decoration: none;
    padding: 0px 0px 0px 40px;
}
.arrow a::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    top: calc(50% - 10px);
    background-image: url('assets/images/menu/chevron-right.png');
    background-repeat: no-repeat;
    background-size: cover;
    color: #04819e;
    transform: translateX(-40px);
    transition: 0.3s ease;
}
.arrow a:hover::before {
    transform: translateX(-25px);
}
.arrow a:hover {
    color: #04819e;
    text-decoration: underline;
}
/* -- НАСТРОЙКА ВИДЖЕТОВ - ПОСЛЕДНИЕ НОВОСТИ ------------------------------------------------------------------------ */
.w-last-news__item {
    position: relative;
    padding: 0px 0px 2px 0px;
}
.w-last-news__item > p {
    cursor: default;
}
.w-last-news__item::before {
    content: '';
    position: absolute;
    height: 2px;
    width: 0%;
    background-color: #04819e;
    left: 0px;
    bottom: 0px;
    transition: 0.3s ease;
}
.w-last-news__item:hover a{
    color: #04819e;
}
.w-last-news__item:hover::before {
    width: 100%;
}
.w-last-news__item:not(:last-child) {
    margin: 0px 0px 15px 0px;
}
.w-last-news__item a {
    display: block;
    color: #232323;
    font-weight: 600;
    text-decoration: none;
}
.w-last-news__item a:not(:last-child) {
    margin: 0px 0px 5px 0px;
}
@media (max-width: 480px) {
    .w-last-news__item > p {
        text-align-last: left !important;
    }
} 
/* -- НАСТРОЙКА ВИДЖЕТОВ - ТЕГИ (DONE) ------------------------------------------------------------------------------ */
.wp-block-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    margin: 0px 0px -10px 0px;
    padding: 0px 0px 5px 0px;
}
.wp-block-tag-cloud a {
    display: block;
    margin: 0px 0px 10px 0px;
    padding: 1px 5px;
    color: #323232;
    background-color: transparent;
    border: 2px solid #323232;
    border-radius: 8px;
    text-decoration: none;
}
.wp-block-tag-cloud a:not(:last-child) {
    margin: 0px 10px 10px 0px;
}
.wp-block-tag-cloud a:hover {
    color: #fefefe;
    background-color: #04819e;
    border-color: #04819e;
    transform: translateY(-3px);
    box-shadow: 0px 4px 4px #323232a8;
}
/* -- НАСТРОЙКА ИЗОБРАЖЕНИЙ ----------------------------------------------------------------------------------------- */
figure:not(.wp-block-table, .wp-block-gallery) {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.non-float > figure:not(.aligncenter) {
    float: none !important;
    margin: 0px !important;
}
.page figure img {
    width: 100%;
    overflow: hidden;
}
.wp-block-image:not(.is-style-rounded) img {
    border-radius: 10px;
}
figure {
    margin: 0px;
}
figure img:not(:last-child) {
    margin: 0px 0px 10px 0px;
}
figure.square-corners > img {
    border-radius: 0px !important;
}
figcaption {
    width: 100%;
    margin: 0px;
    color: #646464;
    font-weight: 400;
    font-size: 18px;
}
figure.absolute-right {
    height: 100%;
    width: calc(100% + 120px);
    min-width: 450px;
}
figure.absolute-right img {
    height: 100%;
    object-fit: cover;
    object-position: left;
    border-radius: 10px 0px 0px 10px !important;
}
@media (min-width: 1480px) {
    figure.absolute-right {
        width: 100%;
    }
    figure.absolute-right img {
        border-radius: 10px !important;
    }
}
@media (max-width: 1260px) {
    figure.absolute-right {
        min-width: 300px;
    }
}
@media (max-width: 1024px) {
    .page .wp-block-image > figure {
        width: 100% !important;
    }
    figure.absolute-right {
        width: 100%;
    }
    figure.absolute-right img {
        border-radius: 10px !important;
    }
}
@media (max-width: 480px) {
    figure.absolute-right {
        min-width: unset;
    }
}
/* -- НАСТРОЙКА ГАЛЕРЕИ --------------------------------------------------------------------------------------------- */
.wp-block-gallery {
    flex-direction: row;
}
.wp-block-gallery > figure {
    min-width: 300px;
}
.wp-block-gallery:not(:last-child) {
    margin: 0px 0px 20px 0px;
}
@media (max-width: 480px) {
    .wp-block-gallery > figure {
        min-width: 100%;
    }
}
/* -- НАСТРОЙКА ПЛАГИНА SIMPLE GALLERY ------------------------------------------------------------------------------ */
.wp-block-pgcsimplygalleryblock-grid:not(:last-child) {
    margin: 0px 0px 20px 0px;
}
.wp-block-pgcsimplygalleryblock-grid img {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}
/* -- ВЫРАВНИВАНИЕ ТЕКСТА ------------------------------------------------------------------------------------------- */
.justify {
    text-align: justify !important;
}
.save-default-text-align {
    text-align: inherit !important;
}
/* -- НАСТРОЙКА ОТСТУПОВ -------------------------------------------------------------------------------------------- */
.s-spaces {
    margin: 0px 0px -10px 0px !important;
}
.s-spaces > * {
    margin: 0px 10px 10px 0px !important;
}
.small-margin:not(:last-child) {
    margin: 0px 0px 10px 0px !important;
}
/* -- НАСТРОЙКА ТАБЛИЦ (DONE) --------------------------------------------------------------------------------------- */
.wp-block-table {
    width: 100%;
}
.wp-block-table:not(:last-child) {
    margin: 0px 0px 20px 0px;
}
table td {
    padding: 10px;
    border: 2px solid #323232;
    color: #323232;
    font-size: 20px;
}
/* -- НАСТРОЙКА FEEDBACK -------------------------------------------------------------------------------------------- */
.feedback-form {

}
.feedback-label {
    display: block;
    color: #323223;
}
.feedback-label:not(:last-child) {
    margin: 0px 0px 5px 0px;
}
.input-field, .textarea-field {
    padding: 5px 20px;
    min-height: 44px;
    width: 100%;
    color: #646464;
    font-size: 20px;
    font-weight: 500;
    border: 3px solid #015367;
    border-radius: 10px;
    outline: none;
    transition: 0.3s ease;
}
.input-field:focus {
    color: #323223;
}
.input-field:not(:last-child) {
    margin: 0px 0px 20px 0px;
}
.textarea-field {
    resize: none;
    font-family: 'Inter';
}
.textarea-field:focus {
    color: #323232;
}
.textarea-field:not(:last-child) {
    margin: 0px 0px 20px 0px;
}
@media (max-width: 480px) {
    .feedback-label {
        text-align: center;
    }
    .feedback-form > .wp-block-buttons {
        align-items: center;
        justify-content: center;
    }
}
/* -- РЕЖИМ ДЛЯ СЛАБОВИДЯЩИХ - ПРАВИЛА ШАБЛОНОВ - ОБЩИХ ЭЛЕМЕНТОВ --------------------------------------------------- */
.blind-mode {
    font-size: 24px;
}
.blind-mode .input-field, .blind-mode .textarea-field {
    color: #131313 !important;
    border-color: #131313;
    font-size: 24px;
}
.blind-mode .wp-block-button__link {
    background-color: #131313 !important;
    border-color: #131313 !important;
}
.blind-mode .wp-block-button__link:hover {
    color: #131313 !important;
    background-color: #f9f9f9 !important;
    border-color: #131313 !important;
}
.blind-mode h2, .blind-mode h3, .blind-mode h4 {
    color: #131313 !important;
}
.blind-mode h4 {
    font-size: 24px;
    font-weight: 700;
}
.blind-mode p {
    color: #131313 !important;
    font-weight: 400;
}
.blind-mode a:hover {
    color: #131313;
}
.blind-mode .slider-bg::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #f9f9f9;
    opacity: 0.93;
    z-index: 1;
}
.blind-mode .page > * {
    background-color: #f9f9f9 !important;
}
.blind-mode .page > *::before {
    background-color: #f9f9f9 !important;
}
.blind-mode .arrow a {
    padding: 0px;
    font-weight: 600;
}
.blind-mode .arrow a:hover {
    color: #131313;
}
.blind-mode .arrow a::before {
    margin: 0px;
    width: 0px;
}
.blind-mode .w-last-news__item a {
    font-weight: 800;
}
.blind-mode .w-last-news__item:hover a {
    color: #131313;
}
.blind-mode .w-last-news__item::before {
    background-color: #131313;
}
.blind-mode .wp-block-tag-cloud a {
    color: #131313;
    font-size: 24px !important;
    border-color: #131313;
}
.blind-mode .wp-block-tag-cloud a:hover {
    color: #fefefe;
    background-color: #131313;
    box-shadow: none;
}
.blind-mode .wp-block-search label {
    color: #131313;
}
.blind-mode .wp-block-search input {
    border-color: #131313;
}
.blind-mode .wp-block-search button {
    border: #131313;
    background-color: #232323;
}
.blind-mode .custom-list > li {
    color: #131313;
    font-size: 24px;
    font-weight: 400;
}
.blind-mode .custom-list > li::before {
    background-color: #131313 !important;
    top: 11.25px !important;
}
