/* =============================================
   Base – общие стили, сбросы, типографика
   ============================================= */

html {
    height: 100%;
}

body {
    position: static !important;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    font-size: 16px;
    max-width: 100%;
}

main {
    display: block;
}

.grid-container {
    width: 100%;
    max-width: 85.2rem;
}

*:last-child {
    margin-bottom: 0;
}

/* Типографика */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 400;
}
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
.h1 a, .h2 a, .h3 a, .h4 a, .h5 a, .h6 a {
    color: inherit;
}

p:empty {
    display: none;
}
p a {
    text-decoration: underline;
}

ul {
    font-size: inherit;
}
address {
    font-style: normal;
    margin-bottom: 1rem;
}

a {
    transition: all 0.2s ease-in-out;
}
a:hover,
a:focus {
    color: #0a2535;
}

/* Отключение outline для кнопок и ссылок (если нужно) */
.no-outline button,
.no-outline a,
.no-outline [tabindex] {
    outline: none;
}

/* Поля ввода */
input::placeholder,
textarea::placeholder {
    opacity: 1;
}
[type="color"],
[type="date"],
[type="datetime-local"],
[type="datetime"],
[type="email"],
[type="month"],
[type="number"],
[type="password"],
[type="search"],
[type="tel"],
[type="text"],
[type="time"],
[type="url"],
[type="week"],
textarea,
select,
.select-styled {
    height: 2.875rem;
    margin-bottom: 0;
}
textarea[rows] {
    height: 150px;
    max-width: 100%;
}
[type="number"] {
    -moz-appearance: textfield;
}
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}
[type="checkbox"],
[type="file"],
[type="radio"] {
    margin-bottom: 0;
}

button,
.button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
    border-width: 1px;
    transition: all 0.2s ease-in-out;
}

/* Хлебные крошки */
.gc-breadcrumbs {
    margin: 15px 0;
}
.gc-breadcrumbs a:link,
.gc-breadcrumbs a:visited {
    color: #ff7701;
}

/* Прелоадер */
@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}
.preloader {
    position: fixed;
    z-index: 100000000;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    visibility: visible;
    opacity: 1;
    background-color: #fff;
    color: #222;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.preloader__icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.preloader__icon::before {
    content: '\f1ce';
    display: block;
    font-family: "Font Awesome 5 Free";
    font-size: 40px;
    font-weight: 900;
    animation: spin 1s ease-in-out infinite;
}
.preloader--hidden {
    visibility: hidden;
    opacity: 0;
}

/* Вспомогательные классы */
.position-center {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}
.clearfix {
    zoom: 1;
}

/* Пагинация */
ul.pagination {
    margin: 0;
    padding: 0;
    list-style: none;
    margin: 15px 0;
    text-align: center;
}
ul.pagination li {
    display: inline-block;
    margin: 0 3px;
    padding: 0;
    line-height: 1.5;
}
ul.pagination li span,
ul.pagination li a {
    display: block;
    padding: 0 7px;
}
ul.pagination li span.current,
ul.pagination li a.current {
    display: block;
    background: #1a608b;
    color: #fff;
}

/* Поиск */
.search {
    position: relative;
}
.posts-list .search {
    margin-bottom: 40px;
}
.search__input {
    padding-right: 75px;
}
.search__submit {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    height: auto;
    padding: 10px 15px;
    cursor: pointer;
}
.search__submit::after {
    font-family: "Font Awesome 5 Free";
    font-size: 20px;
    font-weight: 900;
}

/* Фоновые классы */
#home-slider .slick-slide__inner,
.bg-cover {
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: cover;
}
.bg-contain {
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: contain;
}
.of-cover {
    object-position: 50% 50%;
    object-fit: cover;
    /* Исправлено: удалена ошибочная строка font-family */
}

/* Колонки */
@media print, screen and (min-width: 40.0625em) {
    .two-columns {
        columns: 2;
    }
    .three-columns {
        columns: 3;
    }
}

/* Ссылка на весь блок */
.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    pointer-events: auto;
    content: "";
    background-color: rgba(0, 0, 0, 0);
}

/* Jarallax */
.jarallax {
    position: relative;
}
.jarallax > .jarallax-img {
    position: relative;
    display: block;
    max-width: 100%;
    height: auto;
    z-index: -100;
    min-width: 100%;
}

/* Основной контент */
.main-content {
    padding-top: 50px;
    padding-bottom: 50px;
}

/* Комментарии */
#comments {
    padding-top: 30px;
}
.comment-list {
    margin: 0;
    padding: 0;
    list-style: none;
    margin-bottom: 20px;
}
.comment {
    position: relative;
    margin-top: 15px;
}
.comment .children {
    list-style: none;
}
.comment-meta {
    font-size: 14px;
}
.comment-metadata {
    margin-top: 5px;
    color: #666;
}
.comment-content {
    margin-top: 15px;
    padding-left: 15px;
    border-left: 1px solid #ddd;
    font-size: 14px;
}
.reply {
    position: absolute;
    top: 0;
    right: 0;
    text-align: right;
}
.comment-reply-link {
    display: block;
    padding: 0.33333rem 0.5rem;
    border-radius: 0;
    background: #777;
    color: #fefefe;
    font-size: 0.8rem;
    line-height: 1;
    white-space: nowrap;
}
.comment-reply-link:hover,
.comment-reply-link:focus {
    background-color: #1a608b;
    color: #fff;
    text-decoration: none;
}
.comment-form {
    display: flex;
    flex-flow: row wrap;
}
.comment-notes,
.comment-form-comment {
    flex: 1 0 100%;
}
.comment-form-comment {
    order: 1;
}
.comment-form-author,
.comment-form-email,
.comment-form-url {
    flex: 1 1 auto;
    flex-basis: calc(33.3333% - 20px);
}
@media screen and (max-width: 40.06125em) {
    .comment-form-author,
    .comment-form-email,
    .comment-form-url {
        flex-basis: 100%;
    }
}
@media print, screen and (min-width: 40.0625em) {
    .comment-form-author,
    .comment-form-email {
        margin-right: 30px;
    }
}
.comment-form-cookies-consent,
.comment-form .form-submit {
    order: 2;
}
.comment-form .form-submit {
    flex-basis: 100%;
}

/* Not found */
.not-found {
    padding-top: 100px;
    padding-bottom: 100px;
}
.not-found .label {
    background-color: #1a608b;
    text-decoration: none;
    cursor: pointer;
}
.not-found .label:hover {
    background-color: #144869;
    color: #fff;
}

/* Логотип */
.logo h1 {
    font-size: 0;
}
.logo a {
    display: inline-block;
}
.logo img {
    max-height: 150px;
}

/* Общие стили для Gravity Forms */
.gform_wrapper ul {
    list-style: none;
}
.gform_fields {
    margin: 0;
}
.gform_fields::after {
    content: '';
    display: table;
    clear: both;
}
.gfield {
    position: relative;
    margin-bottom: 20px;
    list-style: none;
}
.gform_hidden {
    display: none;
}
@media print, screen and (min-width: 40.0625em) {
    .gf_left_half,
    .gf_right_half {
        float: left;
        width: calc(50% - 15px);
    }
    .gf_left_half + .gfield:not(.gf_left_half):not(.gf_right_half),
    .gf_right_half + .gfield:not(.gf_left_half):not(.gf_right_half) {
        clear: both;
    }
    .gf_left_third,
    .gf_middle_third,
    .gf_right_third {
        float: left;
        width: calc(33.3333% - 10px);
    }
    .gf_left_third + .gfield:not(.gf_left_third):not(.gf_middle_third):not(.gf_right_third),
    .gf_middle_third + .gfield:not(.gf_left_third):not(.gf_middle_third):not(.gf_right_third),
    .gf_right_third + .gfield:not(.gf_left_third):not(.gf_middle_third):not(.gf_right_third) {
        clear: both;
    }
    .gf_left_half {
        margin-right: 15px;
    }
    .gf_right_half {
        margin-left: 15px;
    }
    .gf_right_half + .gfield {
        clear: both;
    }
    .gf_left_third {
        margin-right: 20px;
    }
    .gf_right_third {
        margin-left: 20px;
    }
    .gf_right_third + .gfield {
        clear: both;
    }
    .gf_middle_third {
        margin-right: 10px;
        margin-left: 10px;
    }
}
.ginput_complex span {
    display: block;
}
@media print, screen and (min-width: 40.0625em) {
    .ginput_complex {
        margin-right: -15px;
        margin-left: -15px;
    }
    .ginput_complex::after {
        content: '';
        display: table;
        clear: both;
    }
    .ginput_complex span {
        display: block;
        float: left;
        width: calc(50% - 30px);
        margin-right: 15px;
        margin-bottom: 20px;
        margin-left: 15px;
    }
    .ginput_complex span:nth-child(2n+1):nth-last-child(-n+2),
    .ginput_complex span:nth-child(2n+1):nth-last-child(-n+2) ~ * {
        margin-bottom: 0;
    }
}
.hidden_label .gfield_label {
    position: absolute !important;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
}
.ginput_container ul {
    margin-left: 0;
}
.gfield_contains_required .ginput_container_phone .validation_message {
    display: none;
}
.gfield_error input,
.gfield_error textarea,
.gfield_error select {
    border-color: #ec7a7a;
}
.gfield_description {
    margin-top: 10px;
}
.gform_confirmation_message {
    margin-bottom: 15px;
}
.gform_footer {
    position: relative;
    text-align: right;
}
.gform_ajax_spinner {
    position: absolute;
    top: 0;
    right: 10px;
    bottom: 0;
    margin: auto;
}
.validation_error {
    width: 100%;
    margin-bottom: 15px;
    padding: 5px;
    border: 1px solid #ec7a7a;
    background-color: #f7e4e1;
    color: #333;
    font-size: 14px;
    text-align: left;
}
.validation_message {
    position: absolute;
    z-index: 3;
    top: calc(100% + 7px);
    left: 15px;
    display: inline-block;
    margin: 0;
    padding: 3px 6px;
    border-radius: 2px;
    background-color: #f7e4e1;
    color: #333;
    font-size: 12px;
    font-style: normal;
    letter-spacing: normal;
    text-transform: none;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}
.validation_message::before {
    content: '!';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 5px;
    vertical-align: middle;
    border-radius: 2px;
    background-color: #efae4d;
    color: #fff;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
}
.validation_message::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 20px;
    width: 14px;
    height: 7px;
    border-width: 0 7px 7px 7px;
    border-style: solid;
    border-color: transparent transparent #f7e4e1 transparent;
}
.ginput_container_fileupload .validation_message:empty {
    display: none;
}
input.datepicker_with_icon {
    display: inline-block;
    width: calc(100% - 24px);
    margin-right: 5px;
    vertical-align: middle;
}
.ui-datepicker {
    position: absolute;
    z-index: 9999 !important;
    width: 216px;
    height: auto;
    margin: 5px auto 0;
    font-size: 11px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
}
.ui-datepicker a {
    text-decoration: none;
}
.ui-datepicker table {
    width: 100%;
    border-collapse: collapse;
}
.ui-datepicker thead {
    border-bottom: 1px solid #bbb;
    background: #f7f7f7;
    color: #8a8a8a;
}
.ui-datepicker thead th {
    padding: 3px;
    border: 1px solid #ddd;
    text-align: center;
}
.ui-datepicker tbody {
    border: none;
}
.ui-datepicker tbody td {
    width: 31px;
    padding: 0;
    border: 1px solid #bbb;
}
.ui-datepicker tbody td span,
.ui-datepicker tbody td a {
    display: block;
    height: 29px;
    color: #666;
    font-weight: 700;
    line-height: 30px;
    text-align: center;
}
.ui-datepicker tbody th {
    padding: 5px 0;
    color: #666;
    font-size: 6pt;
    text-transform: uppercase;
    text-align: center;
}
.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
    height: 30px;
    margin: 0 2.5% 0;
    padding: 5px 20px 5px 5px;
    font-size: 13px;
    line-height: 20px;
}
.ui-datepicker-header {
    position: relative;
    padding: 5px 0;
    border: none;
    background-color: #666;
    color: #fff;
    font-weight: 700;
}
.ui-datepicker-header::after {
    content: '';
    display: table;
    clear: both;
}
.ui-datepicker-prev,
.ui-datepicker-next {
    position: absolute;
    top: 50%;
    padding: 10px;
    color: #fff;
    font-size: 0;
    line-height: 1.4;
    transform: translateY(-50%);
}
.ui-datepicker-prev:hover,
.ui-datepicker-prev:focus,
.ui-datepicker-next:hover,
.ui-datepicker-next:focus {
    color: #fff;
}
.ui-datepicker-prev::before,
.ui-datepicker-next::before {
    content: '';
    font-family: "Font Awesome 5 Free";
    font-size: 12px;
    font-weight: 900;
}
.ui-datepicker-next {
    right: 0;
}
.ui-datepicker-next::before {
    content: '\f054';
}
.ui-datepicker-prev {
    left: 0;
}
.ui-datepicker-prev::before {
    content: '\f053';
}
.ui-datepicker-title {
    display: flex;
    justify-content: center;
    padding-right: 35px;
    padding-left: 35px;
}
.ui-datepicker-calendar {
    margin: 0 0 0 0 !important;
}
.ui-datepicker-calendar .ui-state-default {
    background: #ededed;
}
.ui-datepicker-calendar .ui-state-hover {
    background: #fff;
}
.ui-datepicker-calendar .ui-state-active {
    position: relative;
    width: 32px;
    height: 31px;
    margin: -1px;
    border: 1px solid #c19163;
    background: #fff2aa;
}
.ui-datepicker-unselectable .ui-state-default {
    background: #f4f4f4;
    color: #b4b3b3;
}
.ui-datepicker-unselectable.ui-state-disabled .ui-state-default {
    background-color: #d7d7d7;
    color: #b4b3b3;
}
.gform_validation_container,
.gform_wrapper .gform_validation_container,
body .gform_wrapper li.gform_validation_container,
body .gform_wrapper ul.gform_fields li.gfield.gform_validation_container {
    position: absolute !important;
    left: -9000px;
    display: none !important;
}
.css-clip,
.gform_wrapper .screen-reader-text,
.gform_wrapper label.hidden_sub_label {
    position: absolute;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    word-wrap: normal !important;
    clip-path: inset(50%);
}
.gform_wrapper .gf_invisible,
.gform_wrapper .gfield_visibility_hidden {
    position: absolute;
    left: -9999px;
    visibility: hidden;
}