/*
Theme Name: Asmart Theme
Theme URI: https://asmart.example/theme
Author: Asmart
Author URI: https://asmart.example
Description: Тема Asmart. Самодостаточный runtime: компоненты, post types, страницы, ACF и SEO продолжают работать даже без плагина asmart-plugin.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.2
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: asmart-theme

Structure:
  Fonts | Layout shell | Utilities | Forms & buttons | Responsive
  Component overrides live in assets/dist/css/custom.css
*/
@font-face {
    font-family: 'TT Norms Pro';
    src: url('fonts/TTNormsPro-Regular.woff2') format('woff2'),
         url('fonts/TTNormsPro-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TT Norms Pro';
    src: url('fonts/TTNormsPro-Medium.woff2') format('woff2'),
         url('fonts/TTNormsPro-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TT Norms Pro';
    src: url('fonts/TTNormsPro-Bold.woff2') format('woff2'),
         url('fonts/TTNormsPro-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-family: "TT Norms Pro", sans-serif;
    --color-font: #000;
    --color-error: #dd5d22;
    --asmart-max-width: 1312px;
    --asmart-gap: 24px;
    --asmart-accent: #A2DD22;
}

* {
    box-sizing: border-box;
    outline: none;
}

html, body {
    height: 100%;
}

html {
    font-size: 16px;
}

::-webkit-scrollbar {
    width: 1px;
    height: 3px;
    background-color: #000;
}

::-webkit-scrollbar-thumb {
    background-color: #000;
    width: 3px;
    border-radius: 0;
}

body {
    display: -webkit-flex;
    display: -webkit-box;
    display: -moz-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    margin: 0;
    font-family: var(--font-family);
    font-size: 1rem;
    letter-spacing: 0.02em;
    line-height: 1.05;
    color: var(--color-font);
}

.asmart-site-main {
    flex: 1 0 auto;
    padding-top: var(--site-header-height, 3.75rem);
}

.swiper, .swiper-button-lock, .swiper .slider-btn, .swiper + .slider-btn {
    visibility: hidden;
    opacity: 0;
    transition: opacity 1s ease;
    -webkit-transition: opacity 1s ease;
}

.swiper.swiper-initialized, .swiper.swiper-initialized .slider-btn, .swiper.swiper-initialized + .slider-btn {
    visibility: visible;
    opacity: 1;
}

.asmart-container {
    margin: 0 auto;
    margin-inline: auto;
}

.asmart-block-container {
    --asmart-block-content-width: 1280px;
    --asmart-block-pad-x: 5rem;
    box-sizing: border-box;
    width: 100%;
    max-width: calc(var(--asmart-block-content-width) + (2 * var(--asmart-block-pad-x)));
    margin-inline: auto;
    padding-inline: var(--asmart-block-pad-x);
}

.asmart-site-header,
.asmart-site-footer {
    background: #000;
}

.asmart-site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: var(--site-header-z, 1000);
    padding: var(--site-header-pad-y, 0.75rem) var(--site-header-pad-x, 3.75rem);
}

.site-header-container {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--site-header-container-width, 1320px);
    margin-inline: auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
}

b,
h1,
h2,
h3,
h4,
h5,
h6,
strong {
    font-weight: 700;
}

img {
    max-width: 100%;
}

a {
    color: var(--asmart-accent);
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.overflow {
    overflow: hidden;
}

.w100 {
    width: 100%;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.inline-flex {
    display: inline-flex;
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -ms-inline-flexbox;
}

.flex {
    display: -webkit-flex;
    display: -webkit-box;
    display: -moz-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
}

.aic {
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.ais {
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
}

.aie {
    -webkit-box-align: end;
    -webkit-align-items: flex-end;
    -ms-flex-align: end;
    align-items: flex-end;
}

.f-wrap {
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.f-col {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

.jcc {
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.jce {
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
    -ms-flex-pack: end;
    justify-content: flex-end;
}

.jcsb {
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.transition {
    -webkit-transition: all .5s;
    -o-transition: all .5;
    transition: all .5s;
}

@keyframes animate {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

@keyframes showBlock {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.b-show-faster {
    animation: showBlock 0.3s linear forwards;
}

.block-hover:hover {
    -moz-transform: translateY(-1px);
    -webkit-transform: translateY(-1px);
    -o-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    transform: translateY(-1px);
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.bg-main {
    background: var(--asmart-accent);
}

.bg-white {
    background: #fff;
}

.bg-gray {
    background: #F1F1F1;
}

.bg-black {
    background: #000000;
}

.text-center {
    text-align: center;
}

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

.text-white {
    color: #fff;
}

.text-green {
    color: var(--asmart-accent)
}

.text-bold {
    font-weight: 700;
}

.text-medium {
    font-weight: 500;
}

.text-12 {
    font-size: 0.75rem;
}

.text-20 {
    font-size: 1.25rem;
}

.text-24 {
    font-size: 1.5rem;
}

.text-xl {
    font-size: 2rem;
}

.text-xxl {
    font-size: 3.75rem;
}

.text-xxxl {
    font-size: 5.5rem;
}

.mb-8 {
    margin-bottom: 0.5rem;
}

.mb-32 {
    margin-bottom: 2rem;
}

.mb-64 {
    margin-bottom: 4rem;
}

.mb-80 {
    margin-bottom: 5rem;
}

.mb-120 {
    margin-bottom: 7.5rem;
}

.mt-120 {
    margin-top: 7.5rem;
}

.pt-60 {
    padding-top: 3.75rem;
}

.pt-80 {
    padding-top: 5rem;
}

.pt-100 {
    padding-top: 6.25rem;
}

.pt-120 {
    padding-top: 7.5rem;
}

.pt-130 {
    padding-top: 10rem;
}

.pt-140 {
    padding-top: 8.75rem;
}

.pb-60 {
    padding-bottom: 3.75rem;
}

.pb-80 {
    padding-bottom: 5rem;
}

.pb-100 {
    padding-bottom: 6.25rem;
}

.pb-120 {
    padding-bottom: 7.5rem;
}

.pb-130 {
    padding-bottom: 10rem;
}

.pb-140 {
    padding-bottom: 8rem;
}

.pb-160 {
    padding-bottom: 10rem;
}

.pb-220 {
    padding-bottom: 13.75rem;
}

.line-100 {
    line-height: 1
}

.line-120 {
    line-height: 1.2;
}

.uppercase {
    text-transform: uppercase;
}

.section-top h2 {
    font-size: 34px;
    text-align: center;
}

.section-top-50 {
    max-width: 50%;
}

.page-title {
    max-width: 22.5rem;
}

.page-title h1 {
    line-height: 1.13;
}

.page-desc {
    line-height: 1.2;
}

.page-subdesc {
    font-size: 1.5rem;
    margin-top: 2rem;
    max-width: 90%;
}

@media (min-width: 1600px) {
    .section-top-50 {
        max-width: 55%;
    }
}

.section-top-40 {
    max-width: 40%;
}

.slider-btn {
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translate(0, -50%);
    cursor: pointer;
}

.slider-btn.slider-btn-prev {
    left: 2.5rem;
}

.slider-btn.slider-btn-next {
    right: 2.5rem;
}

.swiper-pagination-banner {
    position: relative;
    top: auto !important;
    bottom: 2.5rem !important;
    height: 2px !important;
    max-width: calc(100% - 5rem);
    left: 50% !important;
    transform: translate(-50%, 0);
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--asmart-accent);
    border-radius: 0;
    padding: 0;
}

.swiper-pagination-banner .swiper-pagination-bullet {
    position: relative;
    width: 0 !important;
    height: 8px !important;
    flex: 1;
    background: transparent !important;
    opacity: 1 !important;
    border-radius: 0;
    margin: 0 !important;
    /*transition: all 0.3s ease;*/
}

/* Линия поверх (активная часть) */
.swiper-pagination-banner .swiper-pagination-bullet::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--asmart-accent);
    border-radius: 0;
    /*transition: width 0.6s ease;*/
}


.swiper-pagination-banner .swiper-pagination-bullet-active {
    width: 0 !important;
    background: transparent !important;
}


.swiper-pagination-banner .swiper-pagination-bullet-active::after {
    width: 100%;
}

input, textarea {
    width: 100%;
    font-family: var(--font-family);
    box-sizing: border-box;
}

input.form-input, textarea.form-textarea {
    font-size: 1rem;
    letter-spacing: 0;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-font);
}

.wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 1.5rem;
}

input.input-green, textarea.input-green {
    border: 1px solid var(--asmart-accent);
    background: transparent;
    /*color: var(--asmart-accent);*/
    color: #fff;
}

input.form-input::placeholder, textarea.form-textarea::placeholder {
    color: var(--color-font);
}

input.input-green::placeholder, textarea.input-green::placeholder {
    color: var(--asmart-accent);
}

.btn {
    height: 3.75rem;
}

.btn-bg {
    background: linear-gradient(90deg, #77BC1F 0%, #D3FF00 100%);
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1;
    letter-spacing: 0.05em;
    color: var(--color-font);
    padding: 0 3rem;
}

.btn-border {
    border: 2px solid var(--color-font);
    color: var(--color-font);
    height: 3.75rem;
    padding: 0 3.5rem;
    font-weight: 500;
    max-width: fit-content;
    -webkit-transition: all .5s;
    -o-transition: all .5;
    transition: all .5s;
}

.btn-border:hover {
    border: 2px solid transparent;
    background: var(--asmart-accent);
}

form .btn-icon {
    margin-top: 1.25rem;
}

.btn-border.btn-hover-bg {
    padding: 0 2rem 0 2.5rem;
}

.btn-border.btn-hover-bg:hover {
    border: 2px solid #fff;
    background: linear-gradient(90deg, #77BC1F 0%, #D3FF00 100%);
}

.btn-border.border-green {
    border: 3px solid var(--asmart-accent);
    color: var(--asmart-accent);
}

.btn-border.border-green:hover {
    color: var(--color-font);
}

.btn-lg {
    max-width: 100%;
}

.btn-type-1 {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

form input[type="submit"] {
    position: relative;
    display: -webkit-flex;
    display: -webkit-box;
    display: -moz-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    border: 2px solid var(--asmart-accent);
    background: var(--asmart-accent);
    color: var(--color-font);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0;
    height: 3.75rem;
    text-align: left;
    padding: 0 1rem;
    cursor: pointer;
}

.wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
}

.input-policy {
    display: none;
    width: 0;
    height: 0;
    opacity: 0;
    visibility: hidden;
}

.wpcf7-acceptance {
    display: block;
    padding-bottom: 4px;
    margin-top: -4px;
}

.wpcf7-acceptance .wpcf7-list-item-label {
    display: -webkit-flex;
    display: -webkit-box;
    display: -moz-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    position: relative;
    padding-left: 2.5rem;
    color: var(--color-font);
    font-size: 0.75rem;
    letter-spacing: 1px;
    line-height: 1;
    cursor: pointer;
}

.wpcf7-acceptance .wpcf7-list-item-label a {
    text-decoration: underline;
    text-underline-offset: 3px;
    color: #000;
    font-weight: 500;
}

.form-green .wpcf7-acceptance .wpcf7-list-item-label,
.form-banner .wpcf7-acceptance .wpcf7-list-item-label {
    color: #fff;
}

.form-green .wpcf7-acceptance .wpcf7-list-item-label a,
.form-banner .wpcf7-acceptance .wpcf7-list-item-label a {
    font-weight: 400;
    color: var(--asmart-accent);
}

.wpcf7-acceptance .wpcf7-list-item-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.375rem;
    height: 1.375rem;
    border: 1px solid var(--color-font);
    background: transparent;
    border-radius: 0;
    transition: all 0.2s;
}

.form-green .wpcf7-acceptance .wpcf7-list-item-label::before,
.form-banner .wpcf7-acceptance .wpcf7-list-item-label::before {
    border: 1px solid var(--asmart-accent);
}

.input-policy:checked + .wpcf7-list-item-label::before {
    background: url('images/check.svg') no-repeat 50% 50%;
}

.input-policy.input-green:checked + .wpcf7-list-item-label::before {
    background: url('images/check-green.svg') no-repeat 50% 50%;
}

.btn-icon span {
    width: 1.125rem;
    height: 1.25rem;
    background: url('images/arrow.svg') no-repeat 50% 50%;
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translate(-50%, -50%);
}

.btn-icon .wpcf7-spinner {
    display: none;
}

.wpcf7-not-valid-tip {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    color: var(--color-error) !important;
}

.wpcf7 form.invalid .wpcf7-response-output {
    display: none !important;
}

.form-input:focus::placeholder, .form-textarea:focus::placeholder {
    opacity: 0;
    transition: opacity 0.2s ease;
}

form.wpcf7-acceptance-as-validation.sent .wpcf7-response-output {
    display: none;
}

.form-success {
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    top: 2.5rem;
    left: 2.5rem;
}

.success-title {
    bottom: 2rem;
    left: 2.5rem;
    color: #ffff;
    max-width: 35%;
    line-height: 1;
    letter-spacing: 0;
}

.title-line {
    padding-left: 0.85rem;
}

.title-line-large {
    padding-left: 2rem;
}

.title-line.title-line-form {
    padding-left: 1rem;
}

.title-line:before {
    content: '';
    display: block;
    position: absolute;
    height: 100%;
    width: 3.62px;
    left: 0;
    background: var(--asmart-accent);
}

.title-line-large:before {
    width: 0.5rem;
}

.wp-theme-asmart-theme.fancybox-active.compensate-for-scrollbar {
    margin-right: 0;
}

.page-desc-mobile {
    display: none;
}

@media (max-width: 1439px) {
    .btn-bg {
        font-size: 1.25rem;
    }

    .text-xxxl {
        font-size: 4rem;
    }

    .text-xxl {
        font-size: 3rem;
    }

    .text-xl {
        font-size: 1.75rem;
    }

    .pb-120 {
        padding-bottom: 5.5rem;
    }

    .pt-120 {
        padding-top: 5.5rem;
    }

    .pb-140 {
        padding-bottom: 6.25rem;
    }

    .pt-100 {
        padding-top: 5rem;
    }
}

@media (max-width: 1199px) {
    .text-xxl {
        font-size: 2.5rem;
    }

    .block-company-item .item-title {
        max-width: 100%;
    }

    .text-20 {
        font-size: 1.125rem;
    }

    .pt-140 {
        padding-top: 5.75rem;
    }
}

@media (max-width: 1100px) {
    .page-header-top {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .page-desc, .page-subdesc {
        display: none;
    }

    .page-desc-mobile {
        display: block;
        margin-top: 2rem;
    }

    .page-title {
        max-width: 60%;
    }

    .title-line-large:before {
        width: 3px;
    }

    .title-line-large {
        padding-left: 0.875rem;
    }

    .pt-80 {
        padding-top: 3.75rem;
    }

    .pb-80 {
        padding-bottom: 3.75rem;
    }
}

@media (max-width: 991px) {
    .btn-bg {
        font-size: 1rem;
    }

    .btn-icon span {
        display: none;
    }

    form input[type="submit"] {
        text-align: center;
        background: linear-gradient(90deg, #77BC1F 0%, #D3FF00 100%);
        height: 2.5rem;
    }

    input.form-input, textarea.form-textarea, .auth__input.form-input {
        font-size: 0.75rem;
        padding: 0.625rem 1rem;
    }

    .auth__check.wpcf7-acceptance .wpcf7-list-item-label {
        font-size: 0.75rem;
    }

    .section-top-50 {
        max-width: 100%;
    }

    .text-xxl {
        font-size: 2rem;
    }

    .pb-130 {
        padding-bottom: 5rem;
    }

    .pt-130 {
        padding-top: 5rem;
    }

    .btn, .banner-block .btn, .btn-border, .btn-type-1 {
        height: 2.5rem;
        font-size: 1rem;
    }

    .btn-border.border-green {
        border: 2px solid var(--asmart-accent);
    }
}

@media (max-width: 767.98px) {
    .text-xxxl {
        font-size: 2.5rem;
    }

    .text-xxl, .text-xl {
        font-size: 1.125rem;
    }

    .text-24 {
        font-size: 0.75rem;
    }

    .pt-120 {
        padding-top: 5rem;
    }

    .pb-120 {
        padding-bottom: 4rem;
    }

    .pt-140 {
        padding-top: 5rem;
    }

    .pb-140 {
        padding-bottom:3.75rem;
    }

    .pb-160 {
        padding-bottom: 5rem;
    }

    .pb-220 {
        padding-bottom: 5rem;
    }

    .mb-80 {
        margin-bottom: 2rem;
    }

    .mb-32 {
        margin-bottom: 0.75rem;
    }

    .section-top h2 {
        font-size: 1.25rem;
        text-align: center;
    }

    .title-line-large:before {
        width: 3px;
    }

    .title-line-large {
        padding-left: 0.875rem;
    }

    .text-xxxl {
        font-size: 1.75rem;
    }

    .main-banner .text-xxxl {
        font-size: 2.5rem;
    }

    .btn-border {
        border: 1px solid #000;
    }

    form input[type="submit"] {
        border: 2px solid transparent;
        background-image: linear-gradient(90deg, #77BC1F 0%, #D3FF00 100%),
        linear-gradient(90deg, #77BC1F 0%, #D3FF00 100%);
        background-origin: padding-box, border-box;
        background-clip: padding-box, border-box;
        background-color: transparent;
    }

    .hero-component .banner-block .banner-text {
        max-width: 100%;
        font-weight: 400;
        font-size: 1rem;
    }

    .page-header-video .video-bg {
        display: none;
    }

    .page-header-video {
        background: url(images/bg_page.jpg);
        background-size: cover;
        background-repeat: no-repeat;
    }

    .page-title {
        max-width: 100%;
    }

    .page-title h1 {
        font-size: 1.75rem;
    }

    .wpcf7-acceptance .wpcf7-list-item-label {
        padding-left: 2rem;
    }

    .wpcf7-acceptance .wpcf7-list-item-label::before {
        width: 1.125rem;
        height: 1.125rem;
    }

    :root {
        --site-header-height: 50px;
        --asmart-block-pad-x: 1rem;
    }

    .asmart-block-container {
        --asmart-block-pad-x: 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .wpcf7-form-control-wrap {
        margin-bottom: 1rem;
    }

    form .btn-icon {
        margin-top: 1.875rem;
    }
}

@media (max-width: 500.98px) {
    .pt-120 {
        padding-top: 3.75rem;
    }

    .mb-120 {
        margin-bottom: 2.5rem;
    }

    .swiper-pagination-banner {
        height: 1px !important;
    }

    .swiper-pagination-banner .swiper-pagination-bullet {
        height: 2px !important;
    }


    .fancybox-container.b-fancybox-callback .fancybox-slide--html {
        padding: 0;
    }

    .text-20 {
        font-size: 1rem;
    }

    .mt-120 {
        margin-top: 2.75rem;
    }
}

@media (max-width: 400.98px) {
    .text-xl {
        font-size: 1rem;
    }

    .text-20, .text-24 {
        font-size: 0.75rem;
    }

    .mb-32 {
        margin-bottom: 0.5rem;
    }

    .wpcf7-acceptance .wpcf7-list-item-label {
        padding-left: 2rem;
    }

    .wpcf7-acceptance .wpcf7-list-item-label::before {
        top: 0.75rem;
        width: 1.125rem;
        height: 1.125rem;
    }
}