/*!
Theme Name: icnx2
Author:

Version: 6.4.1
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: icnx2
*/
@import "css/reset.css";
@import "css/supports.css";

@font-face {
    font-family: "Inter";
    src: url("/wp-content/themes/icnx2/fonts/Inter_28pt-Light.woff2") format("woff2"),
        url("/wp-content/themes/icnx2/fonts/Inter_28pt-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("/wp-content/themes/icnx2/fonts/Inter_28pt-Regular.woff2") format("woff2"),
        url("/wp-content/themes/icnx2/fonts/Inter_28pt-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("/wp-content/themes/icnx2/fonts/Inter_28pt-SemiBold.woff2") format("woff2"),
        url("/wp-content/themes/icnx2/fonts/Inter_28pt-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Geologica";
    src: url("/wp-content/themes/icnx2/fonts/Geologica-Bold.woff2") format("woff2"),
        url("/wp-content/themes/icnx2/fonts/Geologica-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: "Geologica";
    src: url("/wp-content/themes/icnx2/fonts/Geologica-SemiBold.woff2") format("woff2"),
        url("/wp-content/themes/icnx2/fonts/Geologica-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: "Geologica";
    src: url("/wp-content/themes/icnx2/fonts/Geologica-Medium.woff2") format("woff2"),
        url("/wp-content/themes/icnx2/fonts/Geologica-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: "Geologica";
    src: url("/wp-content/themes/icnx2/fonts/Geologica-Regular.woff2") format("woff2"),
        url("/wp-content/themes/icnx2/fonts/Geologica-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap
}


@font-face {
    font-family: "Geologica";
    src: url("/wp-content/themes/icnx2/fonts/Geologica-ExtraLight.woff2") format("woff2"),
        url("/wp-content/themes/icnx2/fonts/Geologica-ExtraLight.ttf") format("truetype");
    font-weight: 200;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: "Geologica";
    src: url("/wp-content/themes/icnx2/fonts/Geologica-Thin.woff2") format("woff2"),
        url("/wp-content/themes/icnx2/fonts/Geologica-Thin.ttf") format("truetype");
    font-weight: 100;
    font-style: normal;
    font-display: swap
}

:root :where(.is-layout-flex) {
    gap: 8px;
}

:root :where(.is-layout-constrained)>* {
    margin-block-start: initial;
    margin-block-end: initial;
}

:root {
    --100--vert: 100lvh;
    --wp--preset--spacing--column-1-top-margin: 0rem;
    --wp--preset--spacing--column-2-top-margin: 4.167vw;
    --wp--preset--spacing--column-3-top-margin: 8.333vw;
    --head--height: clamp(7rem, 6.2597rem + 3.1169cqw, 10rem);
}

body {
    font-weight: 300;
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: clamp(16px, 2.4vw + 0.4rem, 22px);
    color: rgb(34, 31, 32);
    container-type: inline-size;
}

strong,
.strong {
    font-weight: bold !important;
}

.border-0 {
    border: none !important;
}

/* SemiBold (600) — подзаголовки, названия разделов */
h1,
h2,
h3,
h4,
h5,
.has-small-heading-font-size,
.has-small-heading-crm-font-size,
.has-big-button-font-size {
    font-family: 'Geologica', sans-serif;
    font-weight: 600;
}

.has-large-text-font-size {
    font-family: 'Inter', "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.17;
    letter-spacing: -0.02em;
    font-weight: 300;
}

/* Bold (700) — hero-заголовки, крупные цифры */
.has-big-heading-font-size,
.has-second-heading-font-size,
.has-third-heading-font-size {
    font-family: 'Geologica', sans-serif;
    font-weight: 700;
}

/* Thin (100) — второстепенные цифры */
.has-number-thin-font-size,
.has-number-font-size {
    font-family: "Geologica", sans-serif;
    font-weight: 300;
}

.has-number-text-thin-font-size {
    font-family: 'Inter', "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 300;
}

.has-big-heading-font-size {
    line-height: .82;
    font-kerning: normal;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

.has-second-heading-font-size {
    line-height: 0.96;
    font-kerning: normal;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    overflow-wrap: normal;
    hyphens: none;
}

.has-third-heading-font-size {
    line-height: 0.96;
    font-kerning: normal;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

.has-small-heading-font-size {
    line-height: 0.94;
    letter-spacing: -0.03em;
}

.has-small-heading-crm-font-size {
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.has-big-button-font-size {
    font-weight: 500;
    line-height: 1.1;
}

.has-tab-bottom-link-font-size {
    font-family: 'Inter', "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.has-number-font-size {
    line-height: 0.9;
    letter-spacing: -0.02em;
}

.has-number-text-font-size {
    font-family: "Geologica", sans-serif;
    line-height: 0.9;
    letter-spacing: -0.035em;
    font-weight: 700;
}

.has-number-thin-font-size {
    line-height: 0.8;
    letter-spacing: -0.03em;
}

.has-number-text-thin-font-size {
    line-height: 1.27;
    letter-spacing: -0.01em;
}

.has-large-text-color-block-font-size {
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1;
    letter-spacing: -0.01em;
    font-weight: 600;
    text-transform: uppercase;
}

.has-case-cat-font-size {
    line-height: 1.2;
    letter-spacing: 0.04em;
    font-weight: 400;
}

.has-case-cat-project-font-size {
    line-height: 1.7;
    letter-spacing: -0.01em;
    font-weight: 300;
    overflow-wrap: anywhere;
}

.has-case-number-font-size {
    line-height: 1.3;
    font-weight: 400;
}

.has-case-result-font-size {
    font-family: "Geologica", sans-serif;
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 200;
}

.has-news-title-font-size {
    font-family: "Geologica", sans-serif;
    margin: 0px;
    line-height: 0.98;
    letter-spacing: -0.035em;
    font-weight: 600;
}



h2 {
    line-height: 1.2;
    font-size: var(--wp--preset--font-size--small-heading);
}

.p-left-screen-side {
    padding-left: var(--wp--preset--spacing--screen-side);
}

.p-left-block-side {
    padding-left: var(--wp--preset--spacing--block-side);
}

.p-top-block-side {
    padding-top: var(--wp--preset--spacing--block-side);
}

.p-bottom-block-side {
    padding-bottom: var(--wp--preset--spacing--block-side);
}

/*                  HEADER                   */

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 99999;
    width: auto;
    height: auto;
    padding: 12px 24px;
    background: #005aab;
    color: #fff;
    font-size: 16px;
    border-radius: 8px;
}

header.top-header {
    color: #fff;
    margin-top: var(--wp--preset--spacing--screen-side);
    padding: 0 var(--wp--preset--spacing--screen-side);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    height: clamp(46px, 3.2cqw, 60px);
    width: 100%;
}

.logo-buttons-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: clamp(46px, 3.2cqw, 60px);
}

.custom-logo {
    width: clamp(112px, 9.5cqw, 176px);
    height: auto;
    margin-top: -27px;
}


header.top-header .menu-container .buttons-container {
    height: clamp(46px, 3.2cqw, 60px);
    gap: clamp(8px, 0.72cqw, 13px);
    align-items: center;
    display: flex;
}

#lang-switcher-container {
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

#lang-switcher-container .btn {
    width: clamp(38px, 2.37cqw, 44px);
    height: clamp(38px, 2.37cqw, 44px);
    /*     border-radius: 999px; */
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

#primary-navigation {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 7000;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1;
    display: flex;
    gap: 4px;
}

#menu-top-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--wp--preset--color--gray-700);
    border-radius: var(--radius-xs);
    letter-spacing: -0.01em;
    height: 100%;
}

#menu-top-menu>li {
    white-space: nowrap;
    padding: 0px clamp(16px, 1.3cqw, 24px);
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: clamp(13px, 1.07cqw, 20px);
}

#menu-top-menu>li:hover {
    color: #000;
}

#primary-menu {
    position: relative;
    height: clamp(46px, 3.2cqw, 60px);
}

#primary-navigation .btn.btn-success.contact-form-popup {
    height: clamp(46px, 3.2cqw, 60px);
}

#primary-menu a {
    text-decoration: none;
}

:is(#primary-menu > ul > li:hover, #primary-menu > ul > li:focus-within) ul.sub-menu {
    display: flex;
}

#menu-top-menu>li>ul.sub-menu {
    z-index: 1;
    flex-direction: column;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-width: max-content;
    color: #ffffff;
    background-color: var(--wp--preset--color--gray-700);
    border-bottom-left-radius: var(--radius-xs);
    border-bottom-right-radius: var(--radius-xs);
    padding: clamp(14px, 1.05cqw, 20px) clamp(12px, 0.9cqw, 17px) clamp(16px, 1.25cqw, 24px) clamp(16px, 1.3cqw, 24px);
    backdrop-filter: blur(14px) saturate(1.1);
    gap: clamp(7px, 0.55cqw, 11px);
    align-content: start;
    min-height: clamp(96px, 7.4cqw, 138px);
}

#menu-top-menu>li>ul.sub-menu>li {
    display: flex;
    font-size: clamp(12px, 0.92cqw, 17px);
    line-height: 1.55;
    text-align: left;
    white-space: nowrap;
    transition: color 160ms;
}

#menu-top-menu>li>ul.sub-menu>li:hover {
    color: var(--wp--preset--color--black-200);
}

/*                      FOOTER                   */

footer#contacts {
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    position: relative;
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--black-500);
    height: var(--100--vert);
    display: grid;
    grid-template-rows: minmax(0px, 1fr) minmax(0px, 1fr);
}

.footer-first-block {
    background: var(--wp--preset--color--white);
    padding: var(--wp--preset--spacing--block-side) var(--wp--preset--spacing--screen-side);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: min(24px, 3cqw);
    min-height: 0px;
    overflow: hidden;
}

.contact-us-text {
    font-family: 'Geologica', sans-serif;
    font-size: min(17px, 3cqw);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-weight: 400;
    color: var(--wp--preset--color--black-300);
}

.footer-first-block-contacts {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: min(40px, 4cqw);
    flex-wrap: wrap;
}

.footer-first-block-contacts .contacts-grid {
    display: grid;
    gap: min(8px, 1.6cqw);
    justify-items: start;
    min-width: 0px;
    font-family: 'Geologica', sans-serif;
    color: var(--wp--preset--color--ultramarine-200);
}

.footer-first-block-contacts .contacts-grid p.email {
    font-size: min(96px, 11.5cqw);
    line-height: 0.98;
    letter-spacing: -0.035em;
    font-weight: 200;
}

.footer-first-block-contacts .contacts-grid p.tel {
    font-size: min(40px, 6.2cqw);
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-weight: 300;
    white-space: nowrap;
}

.footer-second-block {
    padding: var(--wp--preset--spacing--block-side) var(--wp--preset--spacing--screen-side);
    display: flex;
    flex-direction: column;
    gap: min(36px, 4cqw);
    min-height: 0px;
    overflow: hidden;
    background: var(--wp--preset--color--ultramarine-200);
    color: var(--wp--preset--color--white);
}

.footer-second-block-contacts {
    display: flex;
    flex-wrap: wrap-reverse;
    align-items: flex-start;
    justify-content: space-between;
    gap: min(40px, 5cqw);
    flex: 1 1 0%;
    min-height: 0px;
}

.footer-second-block-logo {
    display: grid;
    gap: min(12px, 2cqw);
    justify-items: start;
    align-content: end;
    min-width: 0px;
}

.footer-second-block-logo .footer-logo {
    width: min(200px, 46cqw);
    height: auto;
    display: block;
    margin: 0px min(28px, 4cqw) min(12px, 2cqw) 0px;
}

.footer-copyright {
    font-size: min(15px, 2.8cqw);
    font-weight: 300;
    color: var(--wp--preset--color--black-200);
}

.footer-contacts-link {
    display: grid;
    gap: min(8px, 1.6cqw);
    justify-items: start;
}

.footer-contacts-link .links {
    font-size: min(16px, 3cqw);
    font-weight: 400;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 8px;
}

.footer-contacts-link .links a::after {
    content: "";
    display: inline-block;
    width: .8em;
    height: .8em;
    background-image: var(--arrow-white);
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform .38s cubic-bezier(.4, 0, .2, 1);
    margin-left: .5em;
}

.footer-contacts-link .links a:hover::after {
    animation: arrowSwap 0.45s cubic-bezier(.4, 0, .2, 1) forwards;
}

.footer-address-block {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-end;
    gap: min(56px, 6cqw);
    min-width: 0px;
}

.footer-address {
    display: grid;
    gap: min(10px, 2cqw);
    justify-items: start;
}

.footer-address .address {
    font-family: "Geologica", sans-serif;
    font-size: min(24px, 4.2cqw);
    line-height: 1.3;
    letter-spacing: -0.02em;
    font-weight: 300;
}

.footer-address-time {
    font-size: min(16px, 3cqw);
    font-weight: 300;
    color: var(--wp--preset--color--black-200);
}

#menu-footer-menu {
    display: flex;
    align-items: center;
    gap: min(12px, 2cqw) min(34px, 3.4cqw);
    min-width: 0px;
    padding-bottom: min(18px, 2cqw);
    border-bottom: 1px solid rgb(228, 228, 228);
    flex-wrap: wrap;
}

#menu-footer-menu li {
    font-family: 'Geologica', sans-serif;
    font-size: min(19px, 3.4cqw);
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--wp--preset--color--white);
}

/* END FOOTER */

main>article {
    padding-top: var(--head--height) !important;
}

.main-first-block {
    min-height: calc(100vh-var(--head--height));
    display: flex;
    flex-direction: column;
    align-items: start;
}

/* .main-first-block>.wp-block-columns{
    flex-grow: 1 !important;
}
 */

.contact-form-popup {
    cursor: pointer;
}

.service-block {
    border-radius: var(--radius-sm);
    padding: calc(var(--spacing) * 6);
    align-content: space-between;
}

.vertical-center-flex {
    align-items: center;
    display: flex;
}

.add-arrow::after {
    content: "";
    display: inline-block;
    width: 0.9em;
    height: 0.9em;
    background-image: var(--arrow-black-bold);
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform .38s cubic-bezier(.4, 0, .2, 1);
}

.add-arrow-2lines::after {
    content: "";
    display: inline-block;
    width: .9em;
    height: .9em;
    background-image: var(--arrow-black);
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform .38s cubic-bezier(.4, 0, .2, 1);
    margin-bottom: 4px;
}

.add-arrow2::after {
    content: "";
    display: inline-block;
    width: .9em;
    height: .9em;
    background-image: var(--arrow-white-bold);
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform .38s cubic-bezier(.4, 0, .2, 1);
}

.add-arrow:hover::after,
.add-arrow2:hover::after,
.add-arrow-2lines:hover::after {
    animation: arrowSwap 0.45s cubic-bezier(.4, 0, .2, 1) forwards;
}

/*          BUTTONS       */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    position: relative;
    cursor: pointer;
    z-index: 1;
    height: clamp(38px, 2.37cqw, 44px);
    padding: 0px clamp(14px, 1.14cqw, 20px);
    /*     border-radius: 999px; */
    border-radius: var(--radius-sm);
    color: var(--wp--preset--color--white, #fff);
    background-color: var(--wp--preset--color--dark, #000);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: clamp(14px, 1.07cqw, 20px);
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
}

.btn::after {
    content: "";
    display: inline-block;
    width: 0.85em;
    height: 0.85em;
    background-image: var(--arrow-white);
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform .38s cubic-bezier(.4, 0, .2, 1);

}

.btn.btn-light {
    background-color: var(--wp--preset--color--white, #fff);
    color: var(--wp--preset--color--dark, #000);
}

.btn.btn-light::after {
    background-image: var(--arrow-black);
}

.btn.btn-primary {
    background-color: var(--wp--preset--color--blue-500);
    color: var(--wp--preset--color--white);
}

.btn.btn-success {
    background-color: var(--wp--preset--color--green-500);
    color: var(--wp--preset--color--white);
}

.btn.btn-search {
    background-color: var(--wp--preset--color--blue-500);
    color: var(--wp--preset--color--white);
}

.btn.btn-search::after {
    width: .95em;
    height: .95em;
    background-image: var(--search-icon);
}


.btn.btn-no-arrow::after {
    display: none;
}

.btn-big-bottom {
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    color: var(--wp--preset--color--white);
    font-size: var(--wp--preset--font-size--big-button);
    text-transform: none;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 0;
    padding: clamp(12px, 1.03cqw, 16px) clamp(16px, 1.61cqw, 30px) !important;
    /*     margin: auto auto 0 0 !important; */
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
    width: min(460px, 88%);
    min-height: clamp(60px, 4.34cqw, 81px);
    font-family: "Geologica", sans-serif;
    border-radius: 0px var(--radius-sm) var(--radius-sm) 0px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.btn-big-bottom::after {
    content: "";
    display: inline-block;
    width: 0.9em;
    height: 0.9em;
    background-image: var(--arrow-white-bold);
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform .38s cubic-bezier(.4, 0, .2, 1);
}

.btn:hover::after,
.btn-big-bottom:hover::after {
    animation: arrowSwap 0.45s cubic-bezier(.4, 0, .2, 1) forwards;
}

.btn-big-bottom.btn-strong {
    position: absolute;
    left: 0;
    bottom: 2rem;
}

.btn-big-bottom:active,
.wp-block-button__link:active {
    transform: translateY(1px);
}

.no-more-posts {
    background: transparent !important;
    color: var(--wp--preset--color--black-500);
    font-size: clamp(15px, 1.3cqw, 25px);
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.01em;
    align-items: center;
    gap: .5em;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    font-style: normal !important;
}

.load-more-button {
    background: transparent !important;
    color: var(--wp--preset--color--black-500);
    font-size: clamp(15px, 1.3cqw, 25px);
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.01em;
    align-items: center;
    gap: .5em;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-style: normal !important;
}

.load-more-button.secondary::after {
    content: "";
    display: inline-block;
    width: 0.9em;
    height: 0.9em;
    background-image: var(--arrow-black-bold);
    animation: 2.2s ease-in-out infinite ctaArrowBlink;
    transform: rotate(90deg);
}

.no-more-posts::after {
    content: "";
    display: inline-block;
    width: 0.9em;
    height: 0.9em;
    background-image: var(--arrow-black-bold);
    animation: 2.2s ease-in-out infinite ctaArrowBlink;
}

.accordion-close-trigger .wp-block-button__link {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round'%3E%3Cpath d='M6 6 18 18'%3E%3C/path%3E%3Cpath d='M18 6 6 18'%3E%3C/path%3E%3C/svg%3E");
    width: 1em;
    height: 1em;
    color: transparent;
    background-color: transparent;
    display: inline-block;
    background-repeat: no-repeat;
    padding: 0;
}

@keyframes ctaArrowBlink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .35
    }
}

@keyframes arrowSwap {
    0% {
        transform: translate(0, 0);
    }

    49% {
        transform: translate(120%, -120%);
        /* Улетает наружу */
        opacity: 1;
    }

    50% {
        transform: translate(-120%, 120%);
        /* Мгновенно переносится в противоположный угол */
        opacity: 0;
        /* Прячем во время переноса */
    }

    100% {
        transform: translate(0, 0);
        /* Возвращается в центр */
        opacity: 1;
    }
}

/* END BUTTONS */


.search-form input:focus-visible {
    outline: none;
}

.slide-with-footer-button {
    display: flex;
    flex-direction: column;
    align-content: space-between;
    position: relative;
}

.slide-with-footer-button .wp-block-buttons {
    margin: auto 0 0 0 !important;
    position: relative;
}

.slide-with-footer-button .wp-block-buttons .wp-block-button a {
    color: var(--wp--preset--color--white);
    letter-spacing: -0.01em;
    text-transform: none;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.6em;
    font-weight: 400;
    text-decoration: none;
    border: none;
    padding-left: 1.3em;
    width: 100%;
    border-radius: 0;
}

.has-secondary-background-color {
    background-color: var(--wp--preset--color--green-500);
}

.has-white-color {
    color: var(--wp--preset--color--white);
}

.is-layout-constrained> :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: var(--wp--style--global--content-size);
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.has-background .wp-block-custom-visible-counter-block.visible-counter-block {
    padding: 0;
}

.wp-block-custom-visible-counter-block.visible-counter-block {
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 0;
}

.wp-block-custom-visible-counter-block.visible-counter-block .counter-value,
.wp-block-custom-visible-counter-block.visible-counter-block .counter-suffix {
    font-weight: inherit !important;
    line-height: 1;
}

.visible-counter-block.small-suffix {
    align-items: baseline;
}

.visible-counter-block.small-suffix .counter-suffix {
    font-size: 0.42em;
    letter-spacing: -0.02em;
    margin-left: 0;
}

.counter-column .wp-block-group {
    padding: var(--wp--preset--spacing--screen-side);
    line-height: 1;
    font-weight: 600;
    min-height: 15vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.number-blocks {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start !important;
    height: 68rem;
    gap: 1rem;
}

.number-blocks>div,
.number-blocks>a{
    border-radius: var(--radius-sm);
    overflow: hidden;
    padding: var(--wp--preset--spacing--color-card);
    gap: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 28rem;
    width: 32.7%;
}

.number-blocks.number-blocks-img>div,
.number-blocks.number-blocks-img>a{
    align-items: center;
    justify-content: center;
    transition: transform 0.9s;
}

.number-blocks.number-blocks-img>div p.has-large-text-color-block-font-size:after {
    content: "";
    display: inline-block;
    width: 0.72em;
    height: 0.72em;
    margin-left: 0.4em;
    background-image: var(--arrow-white-semibold);
}

.number-blocks.number-blocks-img>div p.has-large-text-color-block-font-size.black:after {
    background-image: var(--arrow-black-semibold);
}

.number-blocks.number-blocks-img>div:hover figure,
.number-blocks.number-blocks-img>div:hover p {
    transform: scale(1.08);
}

.number-blocks.number-blocks-img img {
    width: clamp(64px, 6.45cqw, 120px);
    height: auto;
    transition: transform 0.2s;
}

.number-blocks.thin .has-number-font-size,
.number-blocks.thin .wp-block-custom-visible-counter-block.visible-counter-block .counter-value {
    font-size: var(--wp--preset--font-size--number-thin) !important;
    color: var(--wp--preset--color--black-500);
    line-height: 0.8;
    letter-spacing: -0.03em;
    font-weight: 300;
}

.number-blocks>div:nth-child(1) {
    margin-top: var(--wp--preset--spacing--column-1-top-margin);
}

.number-blocks>div:nth-child(3) {
    margin-top: var(--wp--preset--spacing--column-2-top-margin);
}

.number-blocks>div:nth-child(5) {
    margin-top: var(--wp--preset--spacing--column-3-top-margin);
}

.site-main:has(>#post-2275) {
    background-color: var(--wp--preset--color--blue-200) !important;
}

.block-partners {
    background-repeat: no-repeat;
    background-position: 100% 100%;
    background-size: contain !important;
}

/* COLOR BLOCK LINK */
.about-color-block-link {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: min(60px, 6cqw);
    min-width: 0px;
    border-radius: var(--radius-sm);
    min-height: 520px;
}

.about-color-block-link .tab-content-bottom-link p {
    padding: clamp(18px, 1.7cqw, 32px);
}

/* TABS */

.red-tab {
    flex-flow: wrap;
    align-content: space-between;
    align-items: start;
    display: flex;
    overflow: hidden;
    justify-content: flex-start !important;
    gap: 4px !important;
    margin-bottom: 4px !important;
    width: 100%;
}

.wp-block-custom-query-tabs-block .tabs-buttons .tab-button,
.red-tab div.wp-block-button .wp-block-button__link {
    border: 0px;
    cursor: pointer;
    text-align: left;
    flex: 0 0 auto;
    border-radius: var(--radius-sm);
    min-height: clamp(44px, 3.2cqw, 62px);
    font-family: "Geologica", sans-serif;
    color: var(--wp--preset--color--white);
    font-size: clamp(10px, 6.3435px + 0.6071cqw, 18px);
    line-height: 1.05;
    letter-spacing: -0.01em;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(35, 31, 32, 0.16);
    padding: clamp(8px, 0.86cqw, 16px) clamp(10px, 1.29cqw, 24px) !important;
    align-content: center;
    text-align: left;
    height: 100%;
}


.cases-tabs-block .red-tab div.wp-block-button .wp-block-button__link {
    background: rgb(138, 139, 138);
}

.red-tab div:hover button,
.red-tab div.active button,
.red-tab div.wp-block-button .wp-block-button__link:hover,
.red-tab div.wp-block-button.active .wp-block-button__link {
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--black-500);
}

.red-tab div.wp-block-button.white .wp-block-button__link:hover,
.red-tab div.wp-block-button.white.active .wp-block-button__link {
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--black-500);
}

.red-tab div.wp-block-button.blue .wp-block-button__link:hover,
.red-tab div.wp-block-button.blue.active .wp-block-button__link {
    background: rgb(75, 118, 186);
    color: var(--wp--preset--color--white);
}

.red-tab div.wp-block-button.green .wp-block-button__link:hover,
.red-tab div.wp-block-button.green.active .wp-block-button__link {
    background: rgb(108, 192, 113);
    color: var(--wp--preset--color--white);
}

.red-tab div.wp-block-button.brown .wp-block-button__link:hover,
.red-tab div.wp-block-button.brown.active .wp-block-button__link {
    background: rgb(247, 234, 223);
    color: var(--wp--preset--color--black-500);
}

.red-tab div.wp-block-button.purple .wp-block-button__link:hover,
.red-tab div.wp-block-button.purple.active .wp-block-button__link {
    background: rgb(74, 70, 103);
    color: var(--wp--preset--color--white);
}

.red-tab div.wp-block-button.yellow .wp-block-button__link:hover,
.red-tab div.wp-block-button.yellow.active .wp-block-button__link {
    background: rgb(252, 210, 45);
    color: var(--wp--preset--color--black-500);
}

.red-tab div.wp-block-button.black .wp-block-button__link:hover,
.red-tab div.wp-block-button.black.active .wp-block-button__link {
    background: var(--wp--preset--color--black-500);
    color: var(--wp--preset--color--white);
}

.red-tab div.wp-block-button.gray .wp-block-button__link:hover,
.red-tab div.wp-block-button.gray.active .wp-block-button__link {
    background: var(--wp--preset--color--black-100);
    color: var(--wp--preset--color--black-500);
}


.red-tab div.active .wp-block-button__link,
.red-tab div .wp-block-button__link:hover {
    color: var(--wp--preset--color--black-500);
    transition: all .3s ease;
}

.wp-block-custom-query-tabs-block .tabs-buttons .tab-button:hover,
.wp-block-custom-query-tabs-block .tabs-buttons .tab-button.active {
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--black-500);
    transition: all .3s ease;
}

.wp-block-custom-query-tabs-block .tabs-buttons {
    gap: 4px !important;
    margin-bottom: 4px !important;
}

.tab-content {
    flex: 1 1 auto;
    flex-direction: column;
    border-radius: var(--radius-sm);
    padding: clamp(24px, 2.8cqw, 54px) clamp(24px, 2.8cqw, 54px) 0px;
    display: none !important;
    margin: 0;
    scroll-margin-top: calc(var(--wp--preset--spacing--block-side)*3);
}

.tab-content.active {
    display: flex !important;
    margin: 0;
}

.tab-content>div {
    width: 100%;
}

.tab-content-bottom-link {
    flex: 0 0 auto;
    margin-top: auto;
    border-top: 2px solid var(--wp--preset--color--black-500);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.01em;
    font-family: "Geologica", sans-serif;
    font-size: min(22px, 3.7cqw);
    transition: transform .38s cubic-bezier(.4, 0, .2, 1);
}

.tab-content-bottom-link.white {
    border-color: var(--wp--preset--color--white);
}

.tab-content-bottom-link p {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.2cqw, 22px);
    text-align: right;
    min-height: clamp(60px, 4.3cqw, 80px);
    margin: 0 !important;
    padding: clamp(18px, 1.7cqw, 32px) 0;
    width: 100%;
    justify-content: end;
    cursor: pointer;
}

.tab-content .wp-block-query-no-results {
    min-height: clamp(200px, 17.2cqw, 320px);
    padding: clamp(20px, 2.38cqw, 46px);
    display: flex;
    align-items: center;
    background: var(--wp--preset--color--white);
    border-radius: var(--radius-sm);
}

.tab-content .wp-block-query-no-results p {
    margin: 0px;
    max-width: 44cqw;
    font-size: clamp(16px, 1.35cqw, 25px);
    line-height: 1.17;
    letter-spacing: -0.02em;
    font-weight: 300;
}

.news-tabs-block .tab-content li.wp-block-post {
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
}

.frontpage-news .wp-block-custom-query-tabs-block .tabs-content {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.frontpage-news div:has(> .tab-content-bottom-link) {
    border-bottom-left-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
}

.frontpage-news {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
}

.wp-block-custom-query-tabs-block {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
}

.wp-block-custom-query-tabs-block .tabs-content {
    border-radius: var(--radius-sm);
    height: auto;
    padding: clamp(24px, 2.8cqw, 54px) clamp(24px, 2.8cqw, 54px) 0px;
    background-color: var(--wp--preset--color--white);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow-y: initial;
}

.news-img-column {
    display: flex;
    align-items: stretch;
    gap: 13px;
    min-width: 0px;
    min-height: 0px;
}

.news-img-column img {
    width: auto;
    max-width: 60%;
}

.news-title-column {
    font-weight: 400;
}


.wp-block-buttons.red-tab,
.tabs-block .wp-block-buttons.red-tab,
.wp-block-custom-query-tabs-block .tabs-buttons {
    display: flex;
    flex-wrap: wrap;
    /* Разрешает перенос на новую строку */
    gap: 12px;
    /* Расстояние между кнопками */
    width: 100%;
}

.wp-block-buttons.red-tab a,
.tabs-block .wp-block-buttons.red-tab div,
.wp-block-custom-query-tabs-block .tabs-buttons .tab-button {
    flex: 1 1 auto;
    /* Кнопки растут по ширине (1) и сжимаются по контенту (auto) */
    min-width: max-content;
    /* Текст внутри кнопки никогда не будет переноситься на новую строку */

    text-align: center;
}

.wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title {
    text-decoration: none;
}

/*  			FORM            */
#popup-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent black */
    justify-content: center;
    align-items: center;
    display: none;
    z-index: 11111111;
    flex-direction: column;
    font-size: clamp(0.875rem, 0.84rem + 0.13vw, 1rem);
}

.popup-window {
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    width: 50vw;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    background: white;
    color: black;
    margin: 0 auto;
    text-align: right;
}

.popup-window a {
    color: var(--wp--preset--color--blue-500);
    text-decoration: underline;
}


.popup-window .close-btn {
    text-decoration: none;
    cursor: pointer;
    font-size: var(--wp--preset--font-size--base);
}

form.frm-fluent-form .ff-btn.ff-btn-submit {
    background: var(--wp--preset--color--green-500) !important;
}

.fluentform_wrapper_4 {
    text-align: left;
}

.fluentform_wrapper_4.ff-default .ff-el-form-control {
    font-weight: 200;
    padding: 7px 15px;
}

.fluentform_wrapper_4.ff-default .ff-el-group {
    margin-bottom: .5rem;
}

.fluentform.ff-default.fluentform_wrapper_5.ffs_default_wrap {
    margin-top: var(--wp--preset--spacing--block-side);
}

.fluent_form_5 fieldset {
    margin: 0 var(--wp--preset--spacing--screen-side);
    font-weight: 500 !important;
    font-size: var(--wp--preset--font-size--big-button) !important;
}

.fluent_form_5 .ff-el-group {
    display: flex;
    margin-bottom: 10px;
}

.fluent_form_5 .ff-el-group .ff-el-input--label {
    flex-basis: 25%;
    text-align: right !important;
    padding: 0 var(--wp--preset--spacing--screen-side);
}

.fluent_form_5 .ff-el-group .ff-el-input--label label {
    font-weight: 200 !important;
    font-size: var(--wp--preset--font-size--big-button) !important;
}

.fluent_form_5 .ff-t-container .ff-el-group .ff-el-input--content {
    flex-basis: 50%;
    margin-left: 0;
}

.fluent_form_5 .ff-el-group .ff-el-input--content input,
.fluent_form_5 .ff-el-group .ff-el-input--content textarea,
.fluent_form_5 .ff-el-group .ff-el-input--content select {
    background-color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 200 !important;
    font-size: var(--wp--preset--font-size--big-button) !important;
    border: none;
}

.fluent_form_5 .ff_submit_btn_wrapper {
    display: block;
    font-weight: 500;
}

.fluent_form_5 .ff_submit_btn_wrapper .ff_btn_style {
    padding: var(--wp--preset--spacing--screen-side);
}

.fluent_form_5.frm-fluent-form .ff-btn.ff-btn-submit {
    background: transparent !important;
    display: flex;
    align-items: center;
    gap: 1em;
    justify-content: end;
    text-align: right;
    width: 100%;
}

.fluent_form_5 .ff-el-group.checkbox-margin.ff-el-input--content {
    margin-left: 25%;
    font-weight: 200 !important;
    font-size: var(--wp--preset--font-size--big-button) !important;
    width: 50%;
    line-height: 1;
}

#fluentform_5_success {
    border: 0;
    box-shadow: none;
    margin-top: var(--wp--preset--spacing--screen-side);
    padding: var(--wp--preset--spacing--screen-side);
    position: relative;
    text-align: center;
}

/*  PARTNER SLIDER */
.partners-slider {
    margin-left: var(--wp--preset--spacing--screen-side) !important;
    margin-right: var(--wp--preset--spacing--screen-side) !important;
}

.wp-block-post-slider-for-query-loop-post-slider.psql-slider-block,
.wp-block-post-slider-for-query-loop-post-slider.psql-slider-block .psql-slider-container,
.wp-block-post-slider-for-query-loop-post-slider.psql-slider-block .psql-slider-container .psql-slider-track,
.wp-block-post-slider-for-query-loop-post-slider.psql-slider-block .psql-slider-container .psql-slider-track>li {
    min-height: auto;
}

.wp-block-post-slider-for-query-loop-post-slider.psql-slider-block .psql-slider-container .psql-slider-track>li {
    align-items: start;
}

.circular-img img {
    width: 150px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    background: white;
}


.partner-name .wp-block-custom-meta-fields-display.is-style-inline .meta-field-item {
    margin: 0;
    padding: 0;
}

.partner-name .circular-img img {
    border: 2px solid var(--wp--preset--color--blue-300);
}

.partner-name .wp-block-custom-meta-fields-display.is-style-inline {
    margin: 0;
}

.psql-slider-container .psql-post-excerpt.wp-block-post-excerpt {
    font-weight: 200;
}

.psql-slider-container .meta-field-value {
    color: var(--wp--preset--color--black-500);
    font-size: var(--wp--preset--font-size--base);
}

.wp-block-custom-meta-fields-display.strong .meta-field-value {
    font-weight: bold;
}

.wp-block-post-slider-for-query-loop-post-slider.psql-slider-block .psql-slider-pagination {
    backdrop-filter: none;
    background: transparent;
    box-shadow: none;
	z-index: 1;
}

.wp-block-post-slider-for-query-loop-post-slider.psql-slider-block .psql-slider-pagination .psql-slider-dot {
    background: var(--wp--preset--color--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    height: 15px;
    padding: 0;
    position: relative;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    width: 15px;
}

.wp-block-post-slider-for-query-loop-post-slider.psql-slider-block .psql-slider-pagination .psql-slider-dot.active {
    background: var(--wp--preset--color--black-500);
    box-shadow: none;
    transform: none;
}

.wp-block-post-slider-for-query-loop-post-slider.psql-slider-block .psql-slider-pagination .psql-slider-dot:hover {
    background: var(--wp--preset--color--white);
    transform: scale(1.2);
}

/****************** IMAGES ***************************/

.img-column {
    position: relative;
    /* 	overflow:hidden; */
    display: flex;
    align-items: end;
}

.img-column img {
    will-change: transform;
    z-index: 2;
}

/* Класс добавляется JS-ом уже после того, как высота зафиксирована */
.img-column img.icnx-pfx-ready {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
}

.left-text-with-img {
    justify-content: space-between;
    position: relative;
    width: 100%;
}

.left-text-with-img.ml .tab-content-bottom-link {
    margin-top: clamp(18px, 1.7cqw, 32px);
    justify-content: flex-start;
}

.left-text-with-img .text-column {
    display: flex;
    flex-direction: column;
}

.img-column figure {
    display: flex;
    justify-content: end;
}

.right-text-with-img {
    justify-content: start;
    position: relative;
    width: 100%;
}

.right-text-with-img .text-column {
    position: relative;
    width: 50vw;
    display: flex;
    flex-direction: column;
}

.text-column.nps {
    padding-right: 0 !important;
}


.img-column.arpu img {
    margin-top: -13rem;
    z-index: -1;
}

.text-column.cac {
    width: 47.5vw;
}

.img-column.cac img {
    margin-top: -5rem;
    z-index: 2;
}

.text-column.ltv {
    width: 47.5vw;
}

.img-column.ltv img {
    margin-top: -1rem;
    z-index: 2;
}

.img-column.nps img {
    margin-top: -3rem;
    z-index: 2;
}

.img-column.romi img {
    z-index: 2;
}

.text-column.news-romi {
    width: 47vw;
}

.img-plfrm .wp-block-column {
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-plfrm .wp-block-column:hover {
    z-index: 3 !important;
    transform: translateY(-10px) scale(1.05) !important;
}

.img-column.news-romi img {
    margin-top: -5.3rem;
    z-index: 2;
}

.img-column.atv-roi img {
    margin-top: -7.8rem;
    z-index: 2;
}

/*  CASES PAGE  */
.blue-square:before {
    content: "";
    display: inline-block;
    width: clamp(8px, 0.6cqw, 11px);
    height: clamp(8px, 0.6cqw, 11px);
    border-radius: 2px;
    background: rgb(75, 118, 186);
    margin-right: 8px;
}

.green-square:before {
    content: "";
    display: inline-block;
    width: clamp(8px, 0.6cqw, 11px);
    height: clamp(8px, 0.6cqw, 11px);
    border-radius: 2px;
    background: rgb(108, 192, 113);
    margin-right: 8px;
}

.brown-square:before {
    content: "";
    display: inline-block;
    width: clamp(8px, 0.6cqw, 11px);
    height: clamp(8px, 0.6cqw, 11px);
    border-radius: 2px;
    background: rgb(247, 234, 223);
    margin-right: 8px;
}

.purple-square:before {
    content: "";
    display: inline-block;
    width: clamp(8px, 0.6cqw, 11px);
    height: clamp(8px, 0.6cqw, 11px);
    border-radius: 2px;
    background: rgb(74, 70, 103);
    margin-right: 8px;
}

.yellow-square:before {
    content: "";
    display: inline-block;
    width: clamp(8px, 0.6cqw, 11px);
    height: clamp(8px, 0.6cqw, 11px);
    border-radius: 2px;
    background: rgb(252, 210, 45);
    margin-right: 8px;
}

.case-number-row {
    display: grid;
    grid-template-columns: auto minmax(0px, 1fr);
    gap: clamp(12px, 1.2cqw, 22px);
    margin-bottom: clamp(10px, 0.9cqw, 17px);
    margin-top: 0;
    align-items: baseline;
}

.wp-block-accordion.case-accordion .wp-block-accordion-heading__toggle {
    justify-content: end;
    gap: clamp(12px, 1.2cqw, 22px);
    font-size: clamp(16px, 1.18cqw, 22px);
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.01em;
}


.wp-block-accordion.case-accordion .wp-block-accordion-heading__toggle .wp-block-accordion-heading__toggle-icon {
    color: transparent;
    line-height: 0;
    font-size: clamp(16px, 1.18cqw, 22px);
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.01em;
    width: auto;
}

.wp-block-accordion.case-accordion .wp-block-accordion-heading__toggle .wp-block-accordion-heading__toggle-icon::after {
    font-size: 16px;
    content: "";
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    background-image: var(--arrow-black-bold);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}

.wp-block-accordion.case-accordion .wp-block-accordion-heading__toggle .wp-block-accordion-heading__toggle-title {
    order: -1;
    text-align: right;
}

.has-case-cat-font-size~.wp-block-group {
    align-items: baseline;
}

.has-case-cat-font-size~.wp-block-group>p:first-child {
    min-width: 72px;
}

/*  NEWS PAGE  */

.news-header-row {
    display: grid;
    grid-template-columns: minmax(0px, 1fr) clamp(200px, 20cqw, 384px);
    gap: clamp(20px, 2.2cqw, 42px);
    align-items: start;
    padding: 0px 0px clamp(16px, 1.5cqw, 28px);
    border-bottom: 1px solid rgb(228, 228, 228);
}

.news-header-row figure {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
}

.news-header-row img {
    display: block;
    height: 275px;
    border-radius: var(--radius-sm);
}

.news-tabs-block .tab-content-bottom-link {
    justify-content: flex-start;
}

/*  ABOUT PAGE */
.about-color-block {
    padding: min(40px, 4.2cqw) min(40px, 4.2cqw) min(40px, 9cqw);
    display: flex;
    flex-direction: column;
    gap: min(60px, 6cqw);
    min-width: 0px;
    border-radius: var(--radius-sm);
}

.about-color-block2 {
    padding: min(40px, 4.2cqw) min(40px, 4.2cqw) min(40px, 9cqw);
    display: flex;
    flex-direction: column;
    gap: min(20px, 4cqw);
    min-width: 0px;
    border-radius: var(--radius-sm);
}

/** SEARCH PAGE  **/

.page-search .page-header,
.page-search .page-content {
    padding: var(--wp--preset--spacing--screen-side);
}

.page-search .page-content {
    background-color: var(--wp--preset--color--black-100) !important;
    padding: calc(var(--wp--preset--spacing--screen-side)*2);
}

.page-search .page-content article {
    margin-bottom: var(--wp--preset--spacing--screen-side);
}


/*             CRM PAGE          */
.crm-descr-column>.wp-block-columns>div:nth-child(1) {
    font-family: "Geologica", sans-serif;
    line-height: 1.35;
    letter-spacing: -0.02em;
    font-weight: 400;
    opacity: 0.5;
}

.about-color-block.text-column.cac {
    padding-left: var(--wp--preset--spacing--screen-side);
}

/* IMAGE SCROLLER */

.scroller-left,
.scroller-right {
    overflow: hidden;
    width: 100%;
    /* отступ между логотипами — меняйте здесь */
    --scroller-gap: clamp(40px, 5vw, 80px);
}

.scroller-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: max-content;
    /* gap не используем: отступ у каждого figure, включая последний,
       поэтому ширина набора считается точно */
    will-change: transform;
    animation-name: scrollerMove;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-duration: var(--scroller-duration, 30s);
}

.scroller-right .scroller-track {
    animation-direction: reverse;
}

@keyframes scrollerMove {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(var(--scroller-shift, -50%), 0, 0); }
}

.scroller-left figure,
.scroller-right figure {
    margin: 0 var(--scroller-gap) 0 0;
    flex: 0 0 auto;
    width: auto;
}

.scroller-left figure img,
.scroller-right figure img {
    display: block;
    max-width: none;
    object-fit: contain;
    height: clamp(56px, 4.8cqw, 92px) !important;
    width: auto !important;
}

@media (prefers-reduced-motion: reduce) {
    .scroller-track {
        animation: none !important;
    }
}

.ind-card {
    cursor: pointer;
    overflow: hidden;
    position: relative;
    border-radius: 6px;
    transform-style: preserve-3d;
    transition: opacity .25s ease-out;
}

/* картинка и текст должны быть выше псевдоэлементов-эффектов */
.ind-card>.wp-block-image,
.ind-card>p {
    position: relative;
    z-index: 2;
    transition: transform .2s ease;
}

.ind-card img {
    transition: transform .2s ease;
}

/* мягкий блик, следующий за курсором */
.ind-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease-out;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.22), transparent 62%);
}

/* для светлых фонов (жёлтый, бежевый и т.п.) блик поярче — добавьте класс ind-card--light */
.ind-card--light::before {
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.5), transparent 62%);
}

.ind-card:hover::before {
    opacity: 1;
}

/* диагональная световая полоса-скан */
.ind-card::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 55%;
    z-index: 1;
    pointer-events: none;
    transform: translateX(-140%) skewX(-12deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
    transition: transform .7s ease-out;
}

.ind-card:hover::after {
    transform: translateX(280%) skewX(-12deg);
}

/* увеличение картинки и подписи при наведении */
.ind-card:hover img,
.ind-card:hover p {
    transform: scale(1.08);
}

#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--wp--preset--color--blue-500);
    color: white;
    cursor: pointer;
    padding: 0 .5rem;
    border-radius: var(--radius-sm);
    font-size: 2rem;
    transition: opacity 0.3s, background-color 0.3s;
    opacity: .4;
}

#scrollToTopBtn:hover {
    opacity: 1;
}

/*
HDPI
*/
@media only screen and (min-resolution: 1.24dppx) {
    :root {
        --wp--preset--font-size--big-heading: clamp(47px, 9.2468px + 9.9351cqw, 200px);
        --wp--preset--font-size--second-heading: clamp(41px, 16.5714px + 6.4286cqw, 140px);
        --wp--preset--spacing--block-side: clamp(24px, 17.0416px + 2.2374cqw, 60px);
        --wp--preset--font-size--third-heading: clamp(41px, 20.026px + 5.5195cqw, 126px);
    }

    .img-column.arpu {
        flex-basis: 47vw !important;
    }

    .img-column.arpu img {
        margin-top: -15rem;
    }

    .img-column.atv-roi img {
        margin-top: -6rem;
    }

    .img-column.news img {
        margin-top: -2rem;
    }

    .img-column.irr img {
        margin-top: -4rem;
    }

    .img-column.cr img {
        margin-top: -5rem;
    }

    .img-column.cr,
    .img-column.cpa,
    .img-column.romi,
    .img-column.ltv,
    .img-column.atv {
        flex-basis: 47vw !important;
    }

}

@media screen and (min-width: 2305px) {
    .number-blocks {
        align-content: start;
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        /* 3 equal width columns */
        grid-template-rows: repeat(2, auto);
    }

    .number-blocks>div {
        width: 100%;
    }

    .number-blocks>div:nth-child(5),
    .number-blocks>div:nth-child(3) {
        margin-top: 0;
    }

    .btn-big-bottom.btn-strong,
    .btn-big-bottom.btn-scale {
        position: relative;
        left: auto;
        bottom: auto;
    }
}

@media screen and (max-width: 1200px) {
    .img-column.atv-roi img {
        margin-top: 0;
    }
}

@media screen and (max-width: 900px) {
    .has-large-text-font-size {
        font-weight: 400;
        line-height: 1.2;
    }

    .left-text-with-img .img-column.romi {
        flex-basis: 60vw !important;
    }

    .top-header .md\:hidden {
        display: block !important;
    }

    .top-header .xs-hide {
        display: none !important;
    }

    header.top-header .menu-container {
        justify-content: space-between;
        align-items: center;
        gap: var(--wp--preset--spacing--screen-side);
    }

    header.top-header .logo-container {
        margin-top: 0;
        display: flex;
        align-items: center;
    }

    .custom-logo {
        margin-top: 0;
    }


    #primary-navigation {
        display: none;
    }

    #primary-mobile-navigation {
        position: fixed;
        padding-top: calc(var(--wp--preset--spacing--screen-side) + 4px);
        top: 0;
        left: 0;
        right: 0;
        z-index: 10;
        background: var(--wp--preset--color--blue-200);
        width: 100%;
        display: flex;
        flex-direction: column;
        margin: 0;
        font-weight: 600;
    }

    #primary-mobile-navigation .primary-mobile-menu-toggle {
        align-self: flex-end;
        line-height: 1.5;
        font-family: 'Inter', sans-serif;
        font-weight: 400;
        position: initial;
        cursor: pointer;
        z-index: 1;
        height: clamp(38px, 2.37cqw, 44px);
        padding: 0px clamp(14px, 1.14cqw, 20px);
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: clamp(14px, 1.07cqw, 20px);
        letter-spacing: -0.01em;
        white-space: nowrap;
        overflow: hidden;
        margin-right: calc(var(--wp--preset--spacing--screen-side));
    }

    #primary-mobile-navigation .primary-mobile-menu-toggle span {
        display: none;
    }

    #primary-mobile-navigation .primary-mobile-menu-toggle::after {
        content: '';
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round'%3E%3Cpath d='M6 6 18 18'%3E%3C/path%3E%3Cpath d='M18 6 6 18'%3E%3C/path%3E%3C/svg%3E");
        width: 1em;
        height: 1em;
        display: inline-block;
    }

    #menu-top-menu-mobile {
        color: #000;
        list-style-type: none;
        padding-left: var(--wp--preset--spacing--screen-side);
    }

    #menu-top-menu-mobile>li {
        margin-bottom: 10px;
        font-size: 19px;
        line-height: 1;
        letter-spacing: -0.02em;
        font-weight: 600;
    }

    #menu-top-menu-mobile>li:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    #menu-top-menu-mobile>li>ul {
        padding: 7px var(--wp--preset--spacing--screen-side);
    }

    #menu-top-menu-mobile>li>ul>li {
        padding: 7px var(--wp--preset--spacing--screen-side);
        font-size: 19px;
        line-height: 1;
        letter-spacing: -0.02em;
        font-weight: 300;
    }

    .mobile-menu-buttons-row {
        display: flex;
        gap: 8px;
        margin: var(--wp--preset--spacing--screen-side);
    }
}


/* mobile */
@media (min-width: 768px) and (max-width: 781px) {
    .wp-block-columns:not(.is-not-stacked-on-mobile):not(.left-text-with-img):not(.right-text-with-img) {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
}

@media screen and (max-width: 768px) {
    :root {}

    .xs-hide {
        display: none !important;
    }

    .main-first-block {
        /* 		min-height: 100vh; */
        align-items: stretch;
    }

    .main-first-block {
        --wp--preset--spacing--between-head-and-text-in-block: 60px;
    }

    .main-first-block:has(.img-column.arpu) {
        --wp--preset--spacing--between-head-and-text-in-block: 30px;
    }

    .wp-block-columns.column-reverse {
        flex-direction: column-reverse !important;
    }

    /* Переключаем контейнер в колонку */
    .wp-block-columns:not(.is-not-stacked-on-mobile) {
        flex-direction: column;
    }

    /* Сбрасываем горизонтальные отступы и заставляем каждую колонку занимать 100% ширины */
    .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column {
        flex-basis: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    h2 {
        margin-top: 0 !important;
    }

    .right-text-with-img .text-column {
        position: initial;
        width: auto;
        margin-left: var(--wp--preset--spacing--screen-side);
    }

    .left-text-with-img .text-column {
        position: initial;
        width: 100%;
    }

    .left-text-with-img {
        flex-direction: column-reverse;
    }

    .btn-big-bottom {
        position: absolute;
        bottom: 0;
        left: var(--wp--preset--spacing--screen-side);
        width: min(55%, 230px);
        min-height: auto;
        border-radius: var(--radius-sm);
    }

    .buttons-container>button,
    .buttons-container>a {
        display: none;
    }

    .primary-mobile-menu-toggle {
        position: fixed;
        top: calc(var(--wp--preset--spacing--screen-side) + 4px);
        right: calc(var(--wp--preset--spacing--screen-side));
        transition: opacity 0.2s, right 0.2s padding 0.2s;
        opacity: 1;
        padding: 0px 32px;
    }

    .primary-mobile-menu-toggle.opacity {
        opacity: 0.55;
    }

    .footer-menu-row {
        display: none;
    }

    .footer-content-row {
        flex-direction: column;
        padding: 0;
        height: 100%;
    }

    .footer-content-row .relative {
        position: initial;
    }

    .footer-contacts-row {
        position: initial;
        margin-left: 3.13cqw;
        transform: translateY(0);
        margin-top: var(--wp--preset--spacing--block-side);
    }

    .footer-copyright-block {
        width: auto;
        left: 0;
    }

    .footer-content-row .addr {
        flex-grow: 7;
        background-position: center top;
        background-image: url(./img/footer-house.webp);
        background-size: 70%;
    }

    .footer-logo {
        bottom: 23%;
        left: 0;
        width: 58.58cqw;
        margin-left: 3.13cqw;
    }

    /*  PARTNER SLIDER */
    .partners-slider {
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 0 !important;
    }

    .wp-block-post-slider-for-query-loop-post-slider.psql-slider-block .psql-slider-container .psql-slider-track>li {
        margin-bottom: 40px !important;
    }

    .partner-name .circular-img img {
        max-width: 100px;
        width: 100px;

    }

    .main-first-block>div:has(.wp-block-columns) {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

    .main-first-block .wp-block-columns {
        flex-grow: 1;
    }

    .img-column.cac {
        margin: 0;
    }

    .img-column.ltv img,
    .img-column.cac img,
    .img-column.atv img,
    .img-column.irr img,
    .img-column.arpu img,
    .img-column.romi img,
	.img-column.cr img,
	.img-column.news img,
    .img-column.cpa img {
        margin: 0;
        margin-bottom: var(--wp--preset--spacing--block-side);
    }

    .img-column.atv-roi,
    .img-column.crm {
        display: none;
    }

    .img-column.irr,
    .img-column.ltv,
    .img-column.cr,
    .img-column.news,
    .img-column.arpu,
    .img-column.atv,
    .img-column.cpa,
    .img-column.romi {
        align-content: end;
        overflow: hidden;
    }

    .about-color-block-link {
        min-height: auto;
    }

    .about-color-block.text-column.nps {
        padding-right: var(--wp--preset--spacing--screen-side) !important;
    }

    .wp-block-column.text-column.irr,
    .wp-block-column.text-column.ltv,
    .wp-block-column.text-column.cr,
    .wp-block-column.text-column.news,
    .wp-block-column.text-column.cpa,
    .wp-block-column.text-column.romi {
        justify-content: start;
        gap: var(--wp--preset--spacing--screen-side);
    }

    .text-column.cpa .btn-big-bottom,
    .text-column.romi .btn-big-bottom {
        position: initial;
        margin: 0 !important;
        margin-left: var(--wp--preset--spacing--screen-side) !important;
        margin-top: 30px !important;
    }

    .text-column.cac,
    .text-column.nps {
        padding-right: var(--wp--preset--spacing--screen-side) !important;
    }

    .text-column.crr {
        padding-left: var(--wp--preset--spacing--screen-side) !important;
    }

    .red-tab {
        flex-flow: nowrap;
    }

    .wp-block-custom-query-tabs-block .tabs-buttons .tab-button,
    .red-tab div.wp-block-button {
        flex: 1 1 0px;
    }

    .tab-content {
        scroll-margin-top: calc(var(--wp--preset--spacing--block-side)*4);
    }

    .tab-content-bottom-link {
        margin-top: 28px !important;
    }

    .news-tabs-block .wp-block-buttons.red-tab,
    .tabs-block.roi .wp-block-buttons.red-tab {
        display: grid;
        gap: 4px;
        align-items: stretch;
        grid-template-columns: repeat(3, minmax(0px, 1fr));
        grid-auto-flow: dense;
    }

    .news-tabs-block .wp-block-buttons.red-tab .active,
    .tabs-block.roi .wp-block-buttons.red-tab .active {
        grid-column: span 2;
    }

    .cases-tabs-block {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .otr-tabs-block .wp-block-buttons.red-tab div.wp-block-button .wp-block-button__link {
        padding-left: 25px !important;
        padding-right: 25px !important;
    }

    .otr-tabs-block .wp-block-buttons.red-tab,
    .cases-tabs-block .wp-block-buttons.red-tab {
        gap: 4px;
        flex: 1 1 auto;
    }

    .otr-tabs-block .wp-block-buttons.red-tab .active,
    .cases-tabs-block .wp-block-buttons.red-tab .active {
        flex: 6 1 auto;
    }

    .tab-content-bottom-link {
        justify-content: start;
    }

    .tab-content-bottom-link p {
        text-align: left;
    }

    .tab-content-bottom-link p.has-text-align-right {
        text-align: left;
    }

    .section-scale .btn-big-bottom {
        position: initial;
        margin-left: var(--wp--preset--spacing--screen-side) !important;
        margin-top: var(--wp--preset--spacing--screen-side) !important;
    }

    .news-img-column img {
        height: auto;
        width: 100%;
        aspect-ratio: 1 / 1;
        flex: 0 0 auto;
        min-width: 0px;
        object-fit: cover;
        display: block;
        max-width: 170px;
    }

    .news-title-column {
        font-weight: 400;
    }

    .news-counter-column {
        display: none;
    }

    .news-header-row {
        display: flex;
        flex-direction: column;
    }

    .news-tabs-block {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .has-case-cat-font-size~.wp-block-group>p:first-child {
        min-width: 64px;
    }


    #big-business {
        background-image: none !important;
        background-color: var(--wp--preset--color--ultramarine-200);
    }

    #big-business .tab-content-bottom-link {
        margin-top: auto !important;
    }

    #medium-business {
        background-image: none !important;
        background-color: var(--wp--preset--color--white);
    }

    #medium-business .tab-content-bottom-link {
        margin-top: auto !important;
    }

    #small-business {
        background-image: none !important;
        background-color: var(--wp--preset--color--green-400);
    }

    #small-business .tab-content-bottom-link {
        margin-top: auto !important;
    }

    .number-blocks,
    .number-blocks-img {
        display: grid !important;
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(100px, auto);
        align-items: start;
        height: auto;
    }

    .number-blocks>div,
	.number-blocks>a {
        padding: 14px;
        min-height: min-content;
        aspect-ratio: 1 / 1;
        gap: 10px;
        height: auto;
        width: 100%;
    }

    .number-blocks-img>a {
        border-radius: 6px;
        min-height: 0px;
        aspect-ratio: 1 / 1;
        padding: 14px;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }

    .number-blocks>div:nth-child(1),
    .number-blocks>div:nth-child(5),
    .number-blocks>div:nth-child(3),
    .number-blocks>div:nth-child(4) {
        margin-top: 0;
    }

    .number-blocks-img img {
        width: 52px !important;
        margin: 0 auto;
    }

    .number-blocks-img p {
        font-size: 13px;
        line-height: 1;
        letter-spacing: -0.01em;
        font-weight: 600;
        text-transform: uppercase;
        color: rgb(255, 255, 255);
        display: flex;
        align-items: center;
        gap: 0.4em;
        transition: transform 0.2s;
        margin: 0 !important;
    }

    .wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .wp-block-post-slider-for-query-loop-post-slider.psql-slider-block .psql-slider-navigation-top {
        position: relative;
    }

    .wp-block-post-slider-for-query-loop-post-slider.psql-slider-block .psql-slider-wrapper {
        width: 100%;
        margin: 0 auto;
    }

    .wp-block-custom-query-tabs-block .tab-pane {
        height: auto;
    }

    .popup-window {
        padding: 1rem;
        border-radius: var(--radius-sm);
        width: 90vw;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        position: fixed;
        background: white;
        color: black;
        margin: 0 auto;
    }

    .popup-window .close-btn {
        text-decoration: none;
        cursor: pointer;
    }

    .fluentform_wrapper_5 .ff-t-container.ff-column-container.ff_columns_total_1 {
        margin-left: var(--wp--preset--spacing--screen-side) !important;
        margin-right: var(--wp--preset--spacing--screen-side) !important;
    }

    .fluent_form_5 .ff-el-group {
        display: flex;
        flex-direction: column;
    }

    .fluent_form_5 .ff-el-group .ff-el-input--label {
        flex-basis: 100%;
        text-align: left !important;
        padding: 0;
    }

    .fluent_form_5 .ff-el-group.checkbox-margin.ff-el-input--content {
        margin-left: 0;
        font-weight: 200 !important;
        font-size: var(--wp--preset--font-size--big-button) !important;
        width: 100%;
    }

    /* мобильная версия без ховера: эффект включается, когда карточка попадает в кадр */
    .ind-card.in-view::before {
        opacity: 1;
    }

    .ind-card.in-view::after {
        transform: translateX(280%) skewX(-12deg);
    }

    .ind-card.in-view img,
    .ind-card.in-view p {
        transform: scale(1.08);
    }

    .footer-contacts-link {
        display: grid;
        gap: min(12px, 2.4cqw);
        justify-items: start;
    }

    .footer-contacts-link .links {
        font-size: 16px;
        font-weight: 400;
        display: flex;
        flex-direction: column;
        align-items: start;
        gap: 8px;
    }


    #nav_menu-2 {
        display: none;
    }
}

.block-changer {
    position: relative;
}

.block-changer h1,
.block-changer h2 {
    margin: 0;
    /* сохраняем остальные inline-стили как есть */
}

/* маска строки — обрезает всё, что уезжает за пределы по горизонтали */
.bc-mask {
    position: relative;
    display: block;
    overflow-x: clip;
    overflow-y: visible;
    height: 0.82em;
}

.bc-line {
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
    will-change: transform;
}



/* === Фикс для iPad Mini и планшетов 768–1024px === */
@media screen and (min-width: 768px) and (max-width: 1361px) {
    :root {
        --wp--preset--font-size--base: clamp(15px, 3.2cqw, 18px);
    }

    body {
        font-size: clamp(15px, 3.2cqw, 18px);
    }

    .img-column.cr,
    .img-column.cpa,
    .img-column.romi,
    .img-column.ltv,
    .img-column.atv {
        flex-basis: 50vw !important;
    }

    .main-first-block>.wp-block-columns>.wp-block-column.img-column {
        /* 		flex-grow: 1 !important; */
    }

    /* Квадратные цветные карточки, 3 колонки */
    .number-blocks,
    .number-blocks-img {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
        gap: 10px;
        height: auto !important;
        align-items: start;
    }

    .number-blocks>div {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        padding: 14px;
        gap: 10px;
    }

    .number-blocks-img>div {
        aspect-ratio: 1 / 1;
        min-height: 0;
        padding: 14px;
    }

    /* Убираем "лесенку" колонок — она нужна только для десктопного вида */
    .number-blocks>div:nth-child(1),
    .number-blocks>div:nth-child(3),
    .number-blocks>div:nth-child(5) {
        margin-top: 0 !important;
    }

    /* Футер: высота по контенту вместо жёсткой 100vh на 2 строки */
    footer#contacts {
        /*         height: auto !important; */
        display: block;
    }

    .footer-first-block,
    .footer-second-block {
        overflow: visible !important;
        min-height: 50lvh;
    }

    .footer-first-block-contacts {
        flex-wrap: wrap;
    }

    .footer-first-block-contacts .contacts-grid p.email {
        font-size: clamp(36px, 8cqw, 64px);
    }

    .footer-first-block-contacts .contacts-grid p.tel {
        font-size: clamp(22px, 4.5cqw, 32px);
    }

    .footer-second-block-contacts {
        flex-wrap: wrap;
    }
}