/*!
Theme Name: Restrada
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: restrada
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Restrada is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/* -------- Common START --------  */

:root {
    --white: #fff;
    --black: #0e1e1e;
    --gray: #99a5ac;
    --gray-border: #d2dadf;
    --green: #409957;
    --green-dark: #074d22;
    --green-deep-dark: #0e1e1e;
    --green-bg-input: #53a367;
    --red: #dd0f0f;
    --red-20: #dd0f0f33;
    --blue-dark: #0e1e1e;
    --transition: all 0.3s ease;
}

@font-face {
    font-family: "Onest";
    src: url("./assets/fonts/Onest-Light.woff2") format("woff2"),
        url("./assets/fonts/Onest-Light.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Onest";
    src: url("./assets/fonts/Onest-Medium.woff2") format("woff2"),
        url("./assets/fonts/Onest-Medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Onest";
}
body {
    overflow-x: hidden;
}
a {
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--green);
}

ul {
    list-style-type: none;
}

.site-main li {
    position: relative;
    margin-left: 22px;
}

.site-main ul li::before {
    content: url("/wp-content/uploads/2024/11/list-li-icon.svg");
    position: absolute;
    left: -22px;
}

li + li {
    margin-top: 14px;
}

.container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}

.hidden {
    display: none;
}

/* Блокировка скролла для всего документа */
.no-scroll {
    overflow: hidden; /* Блокировка прокрутки */
    height: 100%; /* Для предотвращения смещения */
    position: fixed; /* Блокировка скролла на iOS */
    width: 100%; /* Предотвращает горизонтальный скроллинг */
}

/* Padding container */

@media only screen and (max-width: 1348px) {
    .e-parent.e-con,
    .container {
        padding-left: 34px;
        padding-right: 34px;
    }
}

@media only screen and (max-width: 767px) {
    .e-parent.e-con,
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* -------- Common END --------  */

/* -------- Fonts START --------  */

h1,
.h1,
h1.elementor-heading-title.elementor-size-default {
    font-size: 54px;
    font-weight: 500;
    line-height: 64.8px;
    letter-spacing: -1px;
}

h2,
.h2,
h2.elementor-heading-title.elementor-size-default {
    font-size: 48px;
    font-weight: 500;
    line-height: 57.6px;
    letter-spacing: -1px;
}

h3,
.h3 {
    font-size: 32px;
    font-weight: 500;
    line-height: 38.4px;
    letter-spacing: -1px;
}

h4,
.h4,
h4.elementor-heading-title.elementor-size-default {
    font-size: 28px;
    font-weight: 500;
    line-height: 33.6px;
    letter-spacing: -0.01em;
}

h5,
.h5,
h5.elementor-heading-title.elementor-size-default {
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: -0.01em;
}

.body-1,
.body-1 .elementor-icon-box-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 21.6px;
    letter-spacing: -0.01em;
}

.body-2,
.body-2 .elementor-icon-box-title,
.body-2 p {
    font-size: 16px;
    font-weight: 500;
    line-height: 19.2px;
    letter-spacing: -0.01em;
}

.body-2-light,
.body-2-light p,
.body-2 li {
    font-size: 16px;
    font-weight: 300;
    line-height: 19.2px;
    letter-spacing: -0.01em;
}

.body-3,
.btn {
    font-size: 14px;
    font-weight: 500;
    line-height: 16.8px;
    letter-spacing: -0.01em;
}

.body-3-light,
.body-3-light p {
    font-size: 14px;
    font-weight: 300;
    line-height: 16.8px;
    letter-spacing: -0.01em;
}

.f-w-500 {
    font-weight: 500;
}

@media only screen and (max-width: 767px) {
    h1,
    .h1,
    h1.elementor-heading-title.elementor-size-default {
        font-size: 36px;
        font-weight: 500;
        line-height: 43.2px;
        letter-spacing: -1px;
    }

    h2,
    .h2,
    h2.elementor-heading-title.elementor-size-default {
        font-size: 30px;
        line-height: 36px;
    }

    h3,
    .h3 {
        font-size: 24px;
        line-height: 28.8px;
    }

    h4,
    .h4,
    h4.elementor-heading-title.elementor-size-default {
        font-size: 20px;
        line-height: 24px;
    }

    h5,
    .h5,
    h5.elementor-heading-title.elementor-size-default {
        font-size: 18px;
        line-height: 21.6px;
    }

    .body-1,
    .body-1 .elementor-icon-box-title {
        font-size: 16px;
        line-height: 19.2px;
    }

    .body-2,
    .body-2 .elementor-icon-box-title,
    .body-2 p {
        font-size: 14px;
        line-height: 16.8px;
    }

    .body-2-light,
    .body-2-light p,
    .body-2 li {
        font-size: 14px;
        line-height: 16.8px;
    }

    .body-3-light,
    .body-3-light p {
        font-size: 12px;
        line-height: 14.4px;
    }
}

/* -------- Fonts END --------  */

/* -------- Colors START --------  */

.white-color {
    color: var(--white);
}

.black-color {
    color: var(--black);
}

.gray-color {
    color: var(--gray);
}

.green {
    color: var(--green);
}

.green-dark {
    color: var(--green-dark);
}

/* -------- Colors END --------  */

/* -------- Buttons START --------  */

.btn {
    position: relative;
    padding: 12px 0px;
    min-width: 207px;
    max-width: 207px;
    border-radius: 30px;
    background-color: var(--green-dark);
    color: var(--white);
    text-align: center;
    transition: var(--transition);
}

.btn.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn.btn-transparent {
    background-color: transparent;
    border: 1px solid var(--green);
}

.btn:disabled {
    color: var(--gray);
    background-color: var(--gray-border);
}

.form-button.btn-form-icon:has(.btn:disabled)::before {
    content: url(/wp-content/uploads/2024/11/enter-disabled-icon.svg);
}

.btn:not(:disabled):hover,
.btn:not(:disabled):active {
    background-color: #398e4f;
    color: var(--white);
}

/* -------- Buttons END --------  */

/* -------- Header START --------  */

header {
    position: absolute;
    top: 0px;
    width: 100%;
}

.site-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.header-container {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.header-logo {
    max-width: 218px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--white);
}

.header-logo img {
    width: 206px;
}

.header-contacts {
    display: flex;
    gap: 70px;
}

.header-contacts-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.header-contacts a {
    color: var(--white);
}

.header-contacts a:hover {
    color: var(--green);
}

.header-contacts p {
    color: var(--gray);
}

.header-contacts-email {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.header-buttons-wrap {
    display: flex;
    align-items: center;
}

.header-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.header-border {
    width: 100%;
    height: 1px;
    display: block;
    background-color: #ffffff33;
    z-index: 1;
}

.header-menu-container,
.footer-menu-container {
    display: flex;
    justify-content: center;
    z-index: 1;
}

.header-menu-container {
	gap: 60px;
}

.header-logo,
.header-contacts,
.header-buttons-container {
    z-index: 1;
}

.header-menu-icon {
    position: relative;
    z-index: 6;
}

.header-menu,
.footer-menu {
    display: flex;
    align-items: center;
    gap: 60px;
}

.header-menu .menu-item a,
.footer-menu .menu-item a,
.header-mob-menu a {
    color: var(--white);
    font-size: 18px;
    font-weight: 500;
    line-height: 21.6px;
    letter-spacing: -0.01em;
    transition: var(--transition);
}

.header-menu .menu-item a:hover,
.footer-menu .menu-item a:hover,
.header-mob-menu a:hover {
    color: var(--green);
}

.header-menu li + li,
.footer-menu-container li + li {
    margin: 0px;
}

.calculate-btn,
.header-menu-icon,
.header-mob-menu-wrapper {
    display: none;
}

.header-menu-icon path {
    transition: var(--transition);
}

/* Header translate */

#gt_float_wrapper {
	width: 86px;
	height: 24px;
}

.gt_float_switcher .gt-selected {
	background-color: transparent !important;
}

.gt_float_switcher img {
	max-height: 26px !important;
    max-width: 26px !important;
    margin: 0px !important;
}

.gt_float_switcher .gt-selected .gt-current-lang,
.gt_float_switcher .gt_options a {
	padding: 0px !important;
}

.gt_float_switcher .gt-selected .gt-current-lang {
	display: flex;
	align-items: center;
	gap: 6px;
}

.gt_float_switcher {
	background: transparent !important;	
	box-shadow: none !important;
}
.gt_float_switcher .gt-selected .gt-current-lang span.gt-lang-code,
.gt_float_switcher .gt_options a {
	color: var(--white) !important;
}

.gt_float_switcher {
	display: flex !important;
	flex-direction: column-reverse;
	gap: 6px;
}

.gt_float_switcher .gt_options.gt-open {
	position: absolute;
    top: 102%;
	display: flex !important;
	flex-direction: column;
	gap: 6px;
}

.gt_float_switcher .gt-selected .gt-current-lang span.gt-lang-code {
	top: 0px !important;
	font-size: 18px;
}

.gt_float_switcher .gt-selected .gt-current-lang span.gt_float_switcher-arrow {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 285 285'><path d='M282 76.5l-14.2-14.3a9 9 0 0 0-13.1 0L142.5 174.4 30.3 62.2a9 9 0 0 0-13.2 0L3 76.5a9 9 0 0 0 0 13.1l133 133a9 9 0 0 0 13.1 0l133-133a9 9 0 0 0 0-13z' style='fill:white'/></svg>") !important;
}

.translate-mob {
	display: none;
}

@media only screen and (max-width: 1024px) {
    .header-container {
        padding-top: 20px;
    }

    .header-contacts,
    .header-menu-container {
        display: none;
    }

    .header-buttons-container {
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    .calculate-btn-desk {
        display: none;
    }

    .calculate-btn,
    .header-menu-icon,
	.translate-mob{
        display: block;
    }
	
	.header-mob-wrapper {
		display: flex;
		align-items: center;
		gap: 10px;
	}

    .header-buttons-wrap {
        gap: 34px;
    }

    .header-mob-menu-wrapper {
        padding-bottom: 80px;
    }

    .header-mob-menu-wrapper.active {
        position: absolute;
        background: var(--black);
        width: 100vw;
        height: 100vh;
        z-index: 5;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        overflow-y: auto;
    }

    .header-mob-menu {
        padding-top: 154px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .header-mob-menu a {
        font-size: 28px;
        text-align: center;
    }

    .header-mob-bottom {
        padding-top: 40px;
        display: flex;
        gap: 40px;
        border-top: 1px solid #d2dadf4d;
    }

    .header-mob-bottom-btns {
        display: none;
    }
	
	.gt_float_switcher .gt_options.gt-open {
		top: 68%;
	}
}

@media only screen and (max-width: 767px) {
	.header-buttons-wrap {
		gap: 20px;
	}
}

@media only screen and (max-width: 660px) {
    .header-container {
        padding-top: 14px;
		gap: 20px;
    }

    .header-buttons-container {
        display: none;
    }

    .header-buttons-wrap {
        height: max-content;
    }

    .header-container {
        align-items: center;
    }

    .site-header {
        gap: 14px;
    }

    .header-menu-icon svg {
        width: 32px;
        height: 32px;
    }

    .header-mob-menu a {
        font-size: 20px;
    }

    .header-mob-bottom-btns {
        margin: 0px 0px 30px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .calculate-btn-desk {
        display: block;
    }

    .header-mob-menu {
        padding-top: 60px;
        align-items: flex-start;
        gap: 16px;
    }

    .header-mob-menu-wrapper.active {
        gap: 40px;
    }

    .header-mob-bottom {
        flex-direction: column;
        gap: 16px;
    }

    .header-mob-bottom-btns .btn.btn-icon,
    .header-mob-bottom-btns .btn.btn-transparent {
        min-width: 100%;
    }
}

@media only screen and (max-width: 360px) {
	.header-menu-icon svg {
		width: 24px;
		height: 24px;
	}
}

/* -------- Header END --------  */

/* -------- Рассчитайте стоимость доставки грузов START --------  */

.calculate-form-img {
    height: 100%;
}

@media only screen and (max-width: 1200px) {
    .calculate-form {
        width: 100% !important;
    }

    .calculate-form .elementor-widget-container {
        padding: 40px !important;
    }

    .calculate-form-img {
        display: none;
    }

    .calculate-form::before {
        content: url(/wp-content/uploads/2024/11/calculate-delivery-form-icon.svg);
        position: absolute;
        right: 4px;
        bottom: -5px;
    }
}

@media only screen and (max-width: 767px) {
    .calculate-form .elementor-widget-container {
        padding: 20px !important;
    }
}

/*---------- Рассчитайте стоимость доставки грузов END ----------*/

/*---------- Hero banner START ----------*/

@media only screen and (min-width: 1025px) {
    .hero-medal-icon {
        position: inherit !important;
    }
}

/*---------- Hero banner END ----------*/

/*---------- FORM START ----------*/

.form-title {
    margin: 0px 0px 30px;
}

.form-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.form-field {
    position: relative;
    width: 100%;
    height: 100%;
}

.form-field.w50 {
    width: calc(50% - 6px);
}

.form-field > label {
    position: absolute;
    top: 50%;
    left: 15px;
    color: var(--white);
    transition: var(--transition);
    transition-duration: 0.4s;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
    font-size: 14px;
    font-weight: 300;
    line-height: 16.8px;
    letter-spacing: -0.01em;
}

.form-field--textarea > label {
    top: 17px;
    transform: translateY(0%);
}

.form-field--search > label {
    top: 0;
    left: 0 !important;
    color: var(--white);
    transform: none;
    opacity: 0.6;
}

.form-field .wpcf7-form-control-wrap {
    display: flex;
}

.form-field input,
.form-field textarea,
.form-field .form-field-file-field {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    width: 100%;
    min-height: 46px;
    padding: 0 15px;
    font-size: 14px;
    font-weight: 300;
    line-height: 16.8px;
    letter-spacing: 0.01em;
    color: var(--white);
    border: 1px solid var(--green);
    border-radius: 31px;
    background: var(--green-bg-input);
    transition: var(--transition);
    cursor: pointer;
}

.form-field input::-webkit-input-placeholder {
    transition: var(--transition);
}

.form-field input:-moz-placeholder {
    transition: var(--transition);
}

.form-field textarea {
    height: 110px;
    padding-block: 22px;
    resize: none;
    overflow-x: hidden;
    border-radius: 10px;
}

.form-field input:-webkit-autofill {
    -webkit-box-shadow: inset 0 0 0 50px var(--white) !important;
    -webkit-text-fill-color: var(--blue-dark) !important;
    color: var(--blue-dark) !important;
}

.form-field input.wpcf7-not-valid,
.form-field textarea.wpcf7-not-valid {
    color: var(--red) !important;
}

.form-field input.wpcf7-not-valid::-webkit-input-placeholder {
    color: var(--red) !important;
}

.form-field input.wpcf7-not-valid:-moz-placeholder {
    color: var(--red) !important;
}

.form-field > label:has(+ span input.wpcf7-not-valid),
.form-field > label:has(+ span textarea.wpcf7-not-valid) {
    color: var(--red) !important;
}

.form-field--privacy .wpcf7-list-item {
    margin: 0;
}

.form-field--privacy .wpcf7-list-item > label {
    position: relative;
    display: flex;
    font-size: 14px;
    font-weight: 300;
    line-height: 16.8px;
    letter-spacing: -0.01em;
    cursor: pointer;
    color: var(--white);
}

.form-field--privacy .wpcf7-list-item > label::before {
    content: "";
    display: inline-flex;
    flex-grow: 0;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-right: 0.75em;
    background-color: transparent;
    border: 1px solid var(--green-dark);
    border-radius: 2px;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    transition: var(--transition);
}

.form-field--privacy .wpcf7-list-item > label:hover::before {
    background-color: var(--green-dark);
}

.form-field--privacy
    .wpcf7-list-item
    > label:has(input[type="checkbox"]:checked)::before {
    background-color: var(--green-dark);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3e%3cpath d='M17.2559 4.41107C17.5814 4.73651 17.5814 5.26414 17.2559 5.58958L8.08926 14.7562C7.76382 15.0817 7.23618 15.0817 6.91074 14.7562L2.74408 10.5896C2.41864 10.2641 2.41864 9.73651 2.74408 9.41107C3.06951 9.08563 3.59715 9.08563 3.92259 9.41107L7.5 12.9885L16.0774 4.41107C16.4028 4.08563 16.9305 4.08563 17.2559 4.41107Z' /%3e%3c/svg%3e");
}

.form-field--privacy input {
    display: none;
}

.form-field--search input {
    min-height: auto !important;
    padding: 2px 30px 16px 0 !important;
    color: var(--white);
    border-bottom: 1px solid var(--white);
    border-radius: 0;
    background-color: transparent;
}

.form-field--search .search-icon {
    position: absolute;
    top: 0;
    right: 0;
    color: var(--white);
    transition: var(--transition);
    cursor: pointer;
    z-index: 5;
}

.form-field--search .search-icon:hover {
    transform: scale(1.1);
}

.form-field .wpcf7-not-valid-tip {
    display: none;
}

.form-buttons {
    display: flex;
}

.form-buttons.w50 {
    width: calc(50% - 12px);
}

.form-fields + .form-buttons {
    margin-top: 20px;
}

.form-fields + .form-buttons.with-acceptance {
    align-items: center;
    gap: 20px;
}

.form-button {
    position: relative;
    display: flex;
    width: 100%;
    color: var(--white);
    border: none;
    overflow: hidden;
    z-index: 1;
}

.form-button.btn-form-icon::before {
    content: url(/wp-content/uploads/2024/11/enter-icon.svg);
    position: absolute;
    z-index: 1;
    right: 150px;
    top: 50%;
    transform: translateY(-50%);
}

.btn-form-icon .btn {
    font-weight: 500;
}

.form-button.form-button-end {
    display: block;
    width: fit-content;
    min-width: 207px;
    margin-left: auto;
}

.form-button.form-button-center {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

.form-button input[type="submit"] {
    appearance: none;
    border: none;
    cursor: pointer;
}

.form-buttons.w50 .form-button input[type="submit"],
.form-button--wide input[type="submit"] {
    width: 100%;
    min-width: 100%;
}

.form-button--search {
    display: none;
}

.form-buttons .wpcf7-spinner,
.form .wpcf7-response-output {
    display: none;
}

.form-buttons .wpcf7-spinner {
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

/* Form - Hover and focus effects */

.form-field input:hover,
.form-field textarea:hover,
.form-field input:focus,
.form-field textarea:focus,
.form-field .form-field-file-field:focus {
    border: 1px solid var(--white);
}

.form-field input:hover::-webkit-input-placeholder,
.form-field input::-webkit-input-placeholder {
    color: var(--white);
}

.form-field input:hover:-moz-placeholder,
.form-field input:-moz-placeholder {
    color: var(--white);
}

.form-field--search input:hover,
.form-field--search input:focus {
    color: var(--white);
}

.form-field--search > label:has(+ span input:hover),
.form-field--search > label:has(+ span input:focus) {
    color: var(--white);
    opacity: 1;
}

.form-field--search.filled label {
    opacity: 0 !important;
}

.form-field.filled > label {
    left: 40%;
    opacity: 0;
}

.wpcf7 form.sent .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output {
    color: var(--white);
    font-weight: 300;
}

/* Form white background */

.form-white .wpcf7 form.sent .wpcf7-response-output,
.form-white .wpcf7 form.invalid .wpcf7-response-output {
    color: var(--black);
}

.form-white .form-field input,
.form-white .form-field textarea,
.form-white .form-field-file-field {
    color: var(--black);
    border: 1px solid var(--green-dark);
    background-color: var(--white);
}

.form-white .form-field > label {
    color: var(--gray);
}

.form-white .form-field--privacy .wpcf7-list-item > label {
    color: var(--gray);
}

.form-white .form-field > label:has(+ span input:hover),
.form-white .form-field > label:has(+ span input:focus),
.form-white .form-field input:hover,
.form-white .form-field input:focus,
.form-white .form-field > label:has(+ span textarea:hover),
.form-white .form-field > label:has(+ span textarea:focus),
.form-white .form-field textarea:hover,
.form-white .form-field textarea:focus,
.form-white .form-field.filled label,
.form-white .form-field .form-field-file-field:hover .custom-file__btn span {
    color: var(--green);
}

.form-white .form-field input:hover,
.form-white .form-field-file-field:hover {
    border: 1px solid var(--green);
}

.form-white .form-field input:hover::-webkit-input-placeholder,
.form-white .form-field input::-webkit-input-placeholder {
    color: var(--green);
}

.form-white .form-field input:hover:-moz-placeholder,
.form-white .form-field input:-moz-placeholder {
    color: var(--green);
}

.form-white .form-field--search input:hover,
.form-white .form-field--search input:focus {
    color: var(--green);
}

.form-white .form-field--search > label:has(+ span input:hover),
.form-white .form-field--search > label:has(+ span input:focus) {
    color: var(--green);
    opacity: 1;
}

@media (max-width: 1024px) {
    .form-field.filled > label {
        display: none;
    }

    .form-buttons {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .form {
        margin-top: 8px;
    }

    .form-fields {
        gap: 16px;
    }

    .form-field > label {
        left: 16px;
    }

    .form-field--textarea > label {
        top: 16px;
    }

    .form-field input,
    .form-field textarea {
        min-height: 40px;
        padding: 0px 16px;
    }

    .form-field textarea {
        padding-block: 16px;
    }

    .form-fields + .form-buttons {
        margin-top: 14px;
    }

    .form-fields + .form-buttons.with-acceptance {
        flex-direction: column;
        gap: 20px;
    }

    .form-button.form-button-end {
        margin-left: inherit;
    }
}

@media (max-width: 767px) {
    .form-field.w50,
    .form-buttons.w50,
    .form-button {
        width: 100%;
    }
}

/*---------- FORM END ----------*/

/* -------- Form truck START --------  */

.form-truck {
    position: relative;
    width: 440px;
    height: 500px;
}

.form-truck img {
    position: absolute;
    width: 440px;
    height: 500px;
    right: -40px;
    object-fit: contain;
}

@media only screen and (max-width: 1348px) {
    .contact-us-form {
        padding: 0px !important;
    }

    .form-truck img {
        right: -34px;
    }
}

@media only screen and (max-width: 1024px) {
    .contact-us-form-img {
        position: relative;
        height: 460px;
        width: 100vw;
    }

    .contact-us-form-img img {
        width: 100vw;
        position: absolute;
        left: 34px;
    }
}

@media only screen and (max-width: 767px) {
    .contact-us-form-img img {
        left: 20px;
    }

    .contact-us-form-img {
        height: 330px;
    }

    .contact-us-form-img.contact-us-form-img-mob {
        display: none;
    }
}

@media only screen and (max-width: 600px) {
    .contact-us-form-img.contact-us-form-img-tablet {
        height: 300px;
    }
}

@media only screen and (max-width: 500px) {
    .contact-us-form-img.contact-us-form-img-mob {
        display: block;
    }

    .contact-us-form-img.contact-us-form-img-tablet {
        display: none;
    }
}

@media only screen and (max-width: 375px) {
    .contact-us-form-img.contact-us-form-img-mob {
        height: 250px;
    }
}

/*---------- Form truck end ----------*/

/*---------- Map START ----------*/

.map-container img {
	max-height: 600px;
	object-fit: contain;
}

@media only screen and (max-width: 1348px) {
    .map-container {
        padding: 0px !important;
    }
}

/*---------- Map END ----------*/

/*---------- FAQ START ----------*/

.faq-list.elementor-widget-n-accordion .e-n-accordion-item-title {
    padding: 22px 0px 14px;
    border: 0px;
    border-top: 1px solid var(--gray-border);
}

.faq-list.elementor-widget-n-accordion
    .e-n-accordion-item-title
    .e-n-accordion-item-title-text {
    color: var(--green-dark);
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: -0.01em;
    transition: var(--transition);
}

.faq-list.elementor-widget-n-accordion
    .e-n-accordion-item:hover
    .e-n-accordion-item-title
    .e-n-accordion-item-title-text {
    color: var(--green);
}

.faq-list.elementor-widget-n-accordion .e-n-accordion-item-title + div {
    margin: 0px 0px 22px;
    padding: 0px;
    border: 0;
}

.faq-list.elementor-widget-n-accordion .e-n-accordion-item-title + div p {
    color: var(--black);
    font-size: 16px;
    font-weight: 300;
    line-height: 19.2px;
    letter-spacing: -0.01em;
}

.form-button.form-short-text input[type="submit"] {
    padding: 12px 56px 12px 79px;
}

.form-button.form-short-text::before {
    right: 135px;
}

.sticky-form {
    position: sticky !important;
    top: 30px;
}

/* -------- FAQ END --------  */

/*---------- FOOTER START ----------*/

.site-footer {
    position: relative;
    z-index: 0;
    margin-top: 120px;
    padding: 30px 0px;
    background-color: var(--blue-dark);
    overflow: hidden;
}

.site-footer:before {
    content: url(/wp-content/uploads/2024/11/footer-restrada-icon.svg);
    position: absolute;
    right: 0;
    bottom: -10px;
    z-index: -1;
}

.footer-top {
    max-width: 1000px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-info {
    margin-top: 44px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer-column {
    max-width: 370px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.footer-column-title {
    color: var(--white);
}

.footer-column-data-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.footer-column-data {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-column-data .body-2 {
    color: var(--white);
}

.footer-column-data a.body-2:hover {
    color: var(--green);
}

.footer-column-data .body-3-light {
    color: var(--gray);
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-top: 1px solid #d2dadf4d;
}

.footer-bottom a,
.footer-bottom p {
    color: var(--gray);
}

.footer-bottom a:hover {
    color: green;
}

@media only screen and (max-width: 1024px) {
    .site-footer {
        margin-top: 80px;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .footer-menu-container {
        align-self: center;
    }

    .footer-info {
        flex-wrap: wrap;
        gap: 40px;
    }

    .footer-bottom {
        flex-wrap: wrap;
        justify-content: center;
    }

    .site-footer:before {
        right: -90px;
    }
}

@media only screen and (max-width: 767px) {
    .site-footer {
        margin-top: 60px;
    }

    .footer-top {
        flex-direction: row;
        gap: 20px;
        flex-wrap: wrap;
    }

    .header-logo {
        max-width: 158px;
    }

    .header-logo img {
        width: 158px;
    }

    .footer-menu {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .footer-menu .menu-item a {
        font-size: 14px;
        line-height: 16.8px;
    }

    .footer-info {
        gap: 30px;
    }

    .footer-column-data-list {
        gap: 16px;
    }
}

@media only screen and (max-width: 600px) {
    .site-footer:before {
        content: url(/wp-content/uploads/2024/11/footer-restrada-mob-icon.svg);
        right: 0;
    }
}

@media only screen and (max-width: 480px) {
    .footer-bottom {
        justify-content: flex-start;
        gap: 10px;
    }
}

/*---------- FOOTER END ----------*/

/*---------- VACANCY START ----------*/

.vacancy-form {
    display: flex;
    gap: 68px;
}

.vacancy-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.open-vacancies {
    min-width: 586px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.vacancy-item {
    max-width: 283px;
    width: 100%;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid var(--green);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.vacancy-item p {
    color: var(--black);
    transition: var(--transition);
}

.vacancy-item.active {
    cursor: not-allowed;
}

.vacancy-item.active,
.vacancy-item:hover {
    background-color: var(--green);
}

.vacancy-item.active p,
.vacancy-item:hover p {
    color: var(--white);
}

.form-button.vacancy-btn input[type="submit"] {
    padding: 12px 30px 12px 50px;
}

.form-button.vacancy-btn::before {
    right: 160px;
}

.form-field .form-field-file-field span {
    display: none;
}

.wpcf7 .form-field input[type="file"] {
    width: 100%;
    visibility: hidden;
}

.form-field .form-field-file-field .custom-file__btn {
    width: 100%;
    display: flex;
    cursor: pointer;
}

.form-field .form-field-file-field .custom-file__btn span {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray);
    transition: var(--transition);
}

@media only screen and (max-width: 1200px) {
    .vacancy-form {
        gap: 54px;
    }
}

@media only screen and (max-width: 1024px) {
    .vacancy-form {
        flex-direction: column;
        gap: 40px;
    }

    .vacancy-container {
        gap: 30px;
    }

    .open-vacancies {
        min-width: 100%;
        flex-wrap: nowrap;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .vacancy-item {
        max-width: 100%;
        height: 130px;
    }
}

@media only screen and (max-width: 1024px) {
    .open-vacancies {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/*---------- VACANCY END ----------*/

/*---------- SLIDERS START ----------*/

.swiper-slide {
    height: auto !important;
}

.arrows-content__wrap {
    display: flex;
    align-items: center;
    gap: 11px;
}

.prev-arrow-swiper,
.next-arrow-swiper {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0;
    border-radius: 100px;
    background-color: var(--green);
    cursor: pointer;
    transition: var(--transition);
    transition: var(--transition);
}

.swiper-button-disabled {
    background: #4099574d;
    cursor: not-allowed;
}

.prev-arrow-swiper:not(.swiper-button-disabled):hover,
.next-arrow-swiper:not(.swiper-button-disabled):hover,
.prev-arrow-swiper:not(.swiper-button-disabled):active,
.next-arrow-swiper:not(.swiper-button-disabled):active {
    background-color: var(--green-dark);
}

@media only screen and (max-width: 767px) {
    .prev-arrow-swiper,
    .next-arrow-swiper {
        width: 36px;
        height: 36px;
    }
}

/* Custom pagination */

.custom-pagination.swiper-pagination-bullets.swiper-pagination-horizontal {
    position: relative;
    bottom: 0px;
    top: 0px;
    width: 100vw;
    margin-left: calc((100% - 100vw) / 2);
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--green-dark);
}

.custom-pagination.swiper-horizontal
    > .swiper-pagination-bullets
    .swiper-pagination-bullet,
.custom-pagination.swiper-pagination-horizontal.swiper-pagination-bullets
    .swiper-pagination-bullet {
    width: 53px;
    height: 0px;
    margin: 0px;
    display: flex;
    align-items: center;
    opacity: 1;
}

.custom-pagination.swiper-pagination-horizontal.swiper-pagination-bullets
    .swiper-pagination-bullet
    circle {
    transition: var(--transition);
}

.custom-pagination.swiper-pagination-horizontal.swiper-pagination-bullets
    .swiper-pagination-bullet:hover
    circle,
.custom-pagination.swiper-pagination-horizontal.swiper-pagination-bullets
    .swiper-pagination-bullet-active
    circle {
    fill: var(--green);
}

.custom-pagination.swiper-pagination-horizontal.swiper-pagination-bullets
    .swiper-pagination-bullet {
    right: calc(90% - 100vw);
    position: relative;
}

.custom-pagination.swiper-pagination-horizontal.swiper-pagination-bullets
    .swiper-pagination-bullet:last-child {
    right: 231px;
}

@media only screen and (max-width: 1200px) {
    .custom-pagination.swiper-pagination-horizontal.swiper-pagination-bullets
        .swiper-pagination-bullet {
        right: calc(95% - 100vw);
    }
}

@media only screen and (max-width: 1024px) {
    .custom-pagination.swiper-pagination-bullets.swiper-pagination-horizontal {
        width: 100%;
        margin-left: inherit;
    }

    .custom-pagination.swiper-pagination-horizontal.swiper-pagination-bullets
        .swiper-pagination-bullet:first-child {
        right: auto;
        left: 100px;
    }

    .custom-pagination.swiper-pagination-horizontal.swiper-pagination-bullets
        .swiper-pagination-bullet:last-child {
        right: 102px;
    }
}

@media only screen and (max-width: 767px) {
    .custom-pagination.swiper-horizontal
        > .swiper-pagination-bullets
        .swiper-pagination-bullet,
    .custom-pagination.swiper-pagination-horizontal.swiper-pagination-bullets
        .swiper-pagination-bullet {
        width: 30px;
    }

    .swiper-pagination-bullet.custom-bullet svg {
        width: 30px;
        height: 30px;
    }
}

@media only screen and (max-width: 600px) {
    .custom-pagination.swiper-pagination-horizontal.swiper-pagination-bullets
        .swiper-pagination-bullet:first-child {
        left: 50px;
    }

    .custom-pagination.swiper-pagination-horizontal.swiper-pagination-bullets
        .swiper-pagination-bullet:last-child {
        right: 50px;
    }
}

@media only screen and (max-width: 480px) {
    .custom-pagination.swiper-pagination-horizontal.swiper-pagination-bullets
        .swiper-pagination-bullet:last-child {
        right: 0px;
    }

    .custom-pagination.swiper-pagination-horizontal.swiper-pagination-bullets
        .swiper-pagination-bullet:first-child {
        left: 30px;
    }
}

/* -------- SLIDERS END --------  */

/* -------- Video examples START --------  */

.video-header {
    margin: 16px 0px 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.swiper-video {
    margin: 42px 0px 0px;
}

.video-container {
    position: relative;
    width: 100%;
    height: 450px;
}

.video-container .video-container-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.video-container:before {
    content: "";
    position: absolute;
    background-color: #00010180;
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 8px;
}

.video-container:has(.video-container-image):before {
	display: none;
}

.video-container.active:before {
	display: none;
}

.custom-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0;
    width: 67px;
    height: 66px;
}

.custom-play-button svg path:first-child {
    transition: var(--transition);
}

.custom-play-button:hover svg path:first-child,
.custom-play-button:active svg path:first-child {
    fill: var(--green-dark);
}

.custom-play-button svg {
    pointer-events: none;
}

.sleep-video {
    display: block;
    outline: none;
    border-radius: 8px;
    object-fit: cover;
}

video.is-playing + .custom-play-button {
    display: none;
}

.sleep-video.hide-controls::-webkit-media-controls {
    display: none !important;
}

.sleep-video.hide-controls::-webkit-media-controls-panel {
    display: none !important;
}

.sleep-video.hide-controls {
    pointer-events: none;
}

.video-title {
    margin: 22px 0px 0px;
}

.video-excerpt {
    margin: 4px 0px 0px;
}

@media only screen and (max-width: 1024px) {
    .video-section {
        margin-right: calc(50% - 50vw);
    }

    .video-container {
        width: 100%;
    }

    .video-header .arrows-content__wrap {
        margin-right: 34px;
    }
}

@media only screen and (max-width: 767px) {
    .video-header {
        flex-wrap: wrap;
        align-items: flex-end;
    }

    .video-section-title {
        max-width: 234px;
        width: 100%;
    }

    .video-header .arrows-content__wrap {
        margin-right: 20px;
    }
}

/* -------- Video examples END --------  */

/* -------- Advantages START --------  */

.advantanges-card {
    display: flex;
    gap: 60px;
}

.advantanges-title {
    max-width: 530px;
    width: 100%;
}

.advantanges-excerpt {
    max-width: 654px;
    width: 100%;
    margin: 12px 0px 0px;
}

.advantanges-content-title {
    margin: 30px 0px 0px;
}

.advantanges-content {
    margin: 20px 0px 0px;
}

.advantanges-card .advantanges-card-img,
.advatanges-section-excerpt {
    max-width: 512px;
    width: 100%;
}

.advantanges-card .advantanges-card-img img {
    height: 500px;
    border-radius: 8px;
}

.advantages-slider-contoller {
    margin: 30px 0px 0px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.pagination-line {
    position: absolute;
    /* max-width: 1149px; */
    width: 100%;
    height: 1px;
    background-color: var(--green-dark);
    z-index: -1;
}

.pagination-text {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 540px;
    width: 440px;
    text-align: center;
}

.pagination-text span {
    color: var(--green-dark);
    transition: var(--transition);
}

.swiper-pagination-bullet:hover .pagination-text span,
.swiper-pagination-bullet-active .pagination-text span {
    color: var(--green);
}

@media only screen and (max-width: 1200px) {
    .pagination-text {
        width: 340px;
    }
}

@media only screen and (max-width: 1024px) {
    .advantanges-card {
        flex-direction: column;
        gap: 40px;
        justify-content: space-between;
    }

    .advantanges-card .advantanges-card-img,
    .advatanges-section-excerpt {
        max-width: 100%;
    }

    .advantanges-card .advantanges-card-img img {
        width: 100%;
        object-fit: cover;
    }

    .pagination-text {
        width: 252px;
    }
}

@media only screen and (max-width: 767px) {
    .pagination-text {
        top: 20px;
    }
}

@media only screen and (max-width: 600px) {
    .pagination-text {
        width: 125px;
    }
}

/* -------- Advantages END --------  */

/* -------- Services START --------  */

.services-card {
    position: relative;
    z-index: 1; /* Изначально карточки находятся на одном уровне */
    margin-bottom: 20px; /* Пространство между карточками */
    transition: transform 0.3s ease-out, z-index 0s ease-out; /* Плавное изменение */
    background-color: var(--white);
}

.services-card.overlap {
    transform: translateY(-10px); /* Поднимание карточки */
    z-index: 2; /* Повышаем карточку в слое */
}

.services-list {
    display: flex;
    flex-direction: column;
}

.service-section {
    position: relative;
}

.service-content {
    display: flex;
    gap: 40px;
}

.service-card {
    padding: 40px 0px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: space-between;
}

.service-divider-card {
    height: 1px;
    width: 100vw;
    margin-left: calc((100% - 100vw) / 2);
    background-color: var(--gray-border);
}

.services-list .services-card img {
    margin-left: calc(50% - 50vw);
    width: 519px;
    min-height: 794px;
    border-radius: 8px;
}

.service-excerpt {
    margin: 12px 0px 0px;
}

.service-steps-title {
    margin: 30px 0px 0px;
}

.service-steps {
    margin: 24px 0px 0px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.service-step {
    display: flex;
    gap: 12px;
}

.step-data {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.step-title {
    margin: 7px 0px 0px;
}

.service-step:not(:first-child) {
    padding: 22px 0px 0px;
    border-top: 1px solid var(--gray-border);
}

.service-step-number {
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-border);
    border-radius: 100px;
}

.services-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 19px;
}

.services-form-box {
    max-width: 500px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.services-green-box {
    padding: 22px 18px 22px 22px;
    max-width: 315px;
    width: 100%;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    background-color: var(--green);
    border-radius: 10px;
}

.service-card .service-img-mob,
.service-card .service-form-btn-mob {
    display: none;
}

@media only screen and (max-width: 1440px) {
    .services-list .services-card img {
        width: 289px;
        object-fit: cover;
    }

    .service-steps-title {
        margin: 14px 0px 0px;
    }

    .service-steps {
        margin: 14px 0px 0px;
        gap: 14px;
    }

    .service-card {
        padding: 20px 0px;
        justify-content: center;
    }

    .services-card:last-child .service-card {
        padding: 20px 0px 0px;
    }

    .service-content {
        gap: 16px;
    }
}

@media only screen and (max-width: 1024px) {
    .services-green-box {
        max-width: 200px;
    }
}

@media only screen and (max-width: 767px) {
    .service-content {
        flex-direction: column;
    }

    .services-list .services-card img {
        min-height: 282px;
        height: 282px;
        width: 100%;
        margin-left: inherit;
    }

    .services-card:last-child .service-card {
        padding: 0px;
    }

    .service-steps-title {
        margin: 20px 0px 0px;
    }

    .service-steps {
        margin: 16px 0px 0px;
        gap: 16px;
    }

    .service-card {
        gap: 20px;
    }

    .service-step:not(:first-child) {
        padding: 16px 0px 0px;
    }
    .service-step:last-child {
        padding: 16px 0px 16px;
        border-bottom: 1px solid var(--gray-border);
    }

    .service-card .service-img,
    .service-card .service-form-btn {
        display: none;
    }

    .service-img-mob {
        margin: 20px 0px 0px;
        display: block;
    }

    .service-card .service-form-btn-mob {
        display: block;
    }

    .service-card .service-form-btn-mob .btn.btn-icon {
        min-width: 100%;
    }

    .services-green-box {
        max-width: 100%;
    }
}

@media only screen and (max-width: 480px) {
    .services-bottom {
        flex-direction: column;
    }
}
