@font-face {
    font-family: 'Geologica';
    src: url('./fonts/geologica-regular.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Geologica';
    src: url('./fonts/geologica-medium.woff2') format('woff2');
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Geologica';
    src: url('./fonts/geologica-semibold.woff2') format('woff2');
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Geologica';
    src: url('./fonts/geologica-bold.woff2') format('woff2');
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

body.domiko-brand-preview {
    --domiko-blue: #0771e7;
    --domiko-violet: #5747ff;
    --domiko-sky: #49b9fd;
    --domiko-lilac: #8478ff;
    --domiko-deep: #251f70;
    --domiko-ink: #17162b;
    --domiko-surface: #f2f7fb;
    --domiko-focus: 0 0 0 4px rgba(73, 185, 253, 0.32);
    background: var(--domiko-surface);
    color: var(--domiko-ink);
    font-family: 'Geologica', Tahoma, Verdana, sans-serif;
    font-kerning: normal;
    text-rendering: optimizeLegibility;
    max-width: 100vw;
    overflow-x: hidden;
}

body.domiko-brand-preview :where(button, input, select, textarea) {
    font: inherit;
}

body.domiko-brand-preview :where(h1, h2, h3, h4, h5, h6, .h1, .h2-title) {
    color: var(--domiko-ink);
    font-family: 'Geologica', Tahoma, Verdana, sans-serif;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

body.domiko-brand-preview :where(p, li) {
    text-wrap: pretty;
}

body.domiko-brand-preview ::selection {
    background: var(--domiko-lilac);
    color: #fff;
}

body.domiko-brand-preview :where(a, button, input, select, textarea):focus-visible {
    border-radius: 8px;
    outline: 2px solid var(--domiko-deep);
    outline-offset: 3px;
    box-shadow: var(--domiko-focus);
}

body.domiko-brand-preview :where(.btn_blue, .btn-blue, .btn_red) {
    border: 1px solid var(--domiko-blue);
    border-radius: 12px;
    background: var(--domiko-blue);
    color: #fff;
    font-weight: 600;
    transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

body.domiko-brand-preview :where(.btn_blue, .btn-blue, .btn_red):hover {
    border-color: var(--domiko-deep);
    background: var(--domiko-deep);
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 31, 112, 0.18);
    transform: translateY(-1px);
}

body.domiko-brand-preview :where(.btn_blue, .btn-blue, .btn_red):active {
    box-shadow: none;
    transform: translateY(1px);
}

body.domiko-brand-preview header.header {
    border-bottom: 1px solid rgba(37, 31, 112, 0.08);
}

body.domiko-brand-preview header.header .logo img {
    display: block;
    width: 200px;
    height: auto;
}

body.domiko-brand-preview .menu a {
    color: var(--domiko-ink);
    transition: color 180ms ease;
}

body.domiko-brand-preview .menu a:hover,
body.domiko-brand-preview .menu .current-menu-item > a,
body.domiko-brand-preview .menu .current-menu-ancestor > a {
    color: var(--domiko-blue);
}

body.domiko-brand-preview.home .cap .cap-left {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(37, 31, 112, 0.08);
}

body.domiko-brand-preview.home .cap .cap-left::after {
    display: none;
}

body.domiko-brand-preview.home .cap .h1 {
    max-width: 11ch;
    font-weight: 700;
    line-height: 1.06;
}

body.domiko-brand-preview.home .cap .btn_blue {
    border-color: var(--domiko-blue);
    background: var(--domiko-blue);
    box-shadow: 0 10px 22px rgba(7, 113, 231, 0.16);
}

body.domiko-brand-preview.home .cap .btn_blue:hover {
    border-color: var(--domiko-deep);
    background: var(--domiko-deep);
}

body.domiko-brand-preview.home .cap .text {
    max-width: 62ch;
    color: #48465d;
}

body.domiko-brand-preview.home .cap .select2-selection,
body.domiko-brand-preview.home .cap select {
    border-color: rgba(37, 31, 112, 0.16);
    box-shadow: none;
}

body.domiko-brand-preview.home .cap-item,
body.domiko-brand-preview.home .why .item,
body.domiko-brand-preview.home .slider-3-item .item {
    box-shadow: 0 18px 45px rgba(37, 31, 112, 0.055);
}

body.domiko-brand-preview.home .cap-item_type-3 {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #fff;
}

body.domiko-brand-preview.home .cap-item_type-3::after {
    position: absolute;
    z-index: -1;
    right: -78px;
    bottom: -86px;
    width: 310px;
    height: 263px;
    background: url('./pattern.svg') center / contain no-repeat;
    content: '';
    opacity: 0.035;
    pointer-events: none;
}

body.domiko-brand-preview.home .home-description .right img {
    object-position: center top;
}

@media (min-width: 992px) {
    body.domiko-brand-preview header.header .container {
        flex-wrap: nowrap;
        column-gap: 28px;
    }

    body.domiko-brand-preview header.header .logo {
        flex: 0 0 auto;
    }

    body.domiko-brand-preview header.header .menu-header {
        display: flex;
        flex: 1 1 auto;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        min-width: 0;
    }

    body.domiko-brand-preview header.header #menu-main {
        display: flex;
        flex: 1 1 auto;
        flex-wrap: nowrap;
        align-items: center;
        gap: clamp(14px, 1.8vw, 30px);
        min-width: 0;
    }

    body.domiko-brand-preview header.header #menu-main > li {
        flex: 0 0 auto;
        margin: 0;
    }

    body.domiko-brand-preview header.header #menu-main > li > a {
        white-space: nowrap;
    }

    body.domiko-brand-preview header.header .menu_login {
        flex: 0 0 auto;
        margin-left: 0;
    }

    body.domiko-brand-preview header.header .menu_login a {
        white-space: nowrap;
    }

    body.domiko-brand-preview header.header .container > .btn_blue {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        width: auto;
        max-width: none;
        white-space: nowrap;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    body.domiko-brand-preview header.header .logo img {
        width: 146px;
    }

    body.domiko-brand-preview header.header #menu-main {
        gap: 8px;
    }

    body.domiko-brand-preview header.header #menu-main > li > a {
        font-size: 12.5px;
    }

    body.domiko-brand-preview header.header .container {
        column-gap: 14px;
    }

    body.domiko-brand-preview header.header .menu-header {
        gap: 10px;
    }

    body.domiko-brand-preview header.header .menu_login a {
        min-width: 108px;
        padding-right: 14px;
        padding-left: 14px;
    }

    body.domiko-brand-preview header.header .container > .btn_blue {
        min-width: 120px;
        padding-right: 12px;
        padding-left: 12px;
        font-size: 14px;
        line-height: 1.2;
    }
}

body.domiko-brand-preview footer {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(37, 31, 112, 0.08);
    background-color: #fff;
}

body.domiko-brand-preview footer::after {
    position: absolute;
    right: -72px;
    bottom: -86px;
    width: 330px;
    height: 280px;
    background: url('./pattern-inverse.svg') center / contain no-repeat;
    content: '';
    opacity: 0.025;
    pointer-events: none;
}

body.domiko-brand-preview footer > * {
    position: relative;
    z-index: 1;
}

/* Internal templates stay preview-only until the rollout is approved. */
body.domiko-brand-preview:not(.home) .top_h1_text {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(28px, 4vw, 54px) 0 clamp(30px, 4.4vw, 58px);
    background: #fff;
}

body.domiko-brand-preview:not(.home) .top_h1_text::after {
    position: absolute;
    z-index: -1;
    right: max(-110px, calc((100vw - 1280px) / 2 - 110px));
    bottom: -112px;
    width: 360px;
    height: 305px;
    background: url('./pattern.svg') center / contain no-repeat;
    content: '';
    opacity: 0.026;
    pointer-events: none;
}

body.domiko-brand-preview:not(.home) .top_h1_text .breadcrumbs {
    margin-bottom: 28px;
    color: #625f74;
    font-size: 14px;
}

body.domiko-brand-preview:not(.home) .top_h1_text h1 {
    max-width: 18ch;
    margin: 0;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.04;
}

body.domiko-brand-preview:not(.home) main.page_in {
    max-width: 100%;
    overflow-x: clip;
    background: var(--domiko-surface);
}

body.domiko-brand-preview:not(.home) main.page_in > .container {
    min-width: 0;
    max-width: 100%;
    padding-top: clamp(24px, 3.4vw, 44px);
    padding-bottom: clamp(56px, 7vw, 96px);
}

body.domiko-brand-preview:not(.home) .content-withe {
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 22px 54px rgba(37, 31, 112, 0.065);
}

body.domiko-brand-preview:not(.home) .content-withe :where(h2, h3) {
    margin-top: 1.65em;
    margin-bottom: 0.62em;
    line-height: 1.12;
}

body.domiko-brand-preview:not(.home) .content-withe :where(p, li) {
    color: #3f3d52;
    line-height: 1.62;
}

body.domiko-brand-preview:not(.home) .content-withe a:not(.btn_blue):not(.btn-blue):not(.cf-btn-primary) {
    color: var(--domiko-blue);
    text-decoration-color: rgba(7, 113, 231, 0.38);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

body.domiko-brand-preview:not(.home) .cf-form-container :where(input[type='text'], input[type='tel'], input[type='email'], input[type='number'], input[type='date'], select, textarea) {
    border-color: rgba(37, 31, 112, 0.12);
    background: #f6f7fa;
    color: var(--domiko-ink);
}

body.domiko-brand-preview:not(.home) .cf-form-container :where(input[type='text'], input[type='tel'], input[type='email'], input[type='number'], input[type='date'], select, textarea):focus {
    border-color: var(--domiko-blue);
    background: #fff;
    box-shadow: var(--domiko-focus);
    outline: 0;
}

body.domiko-brand-preview:not(.home) .cf-step-indicator.active {
    color: var(--domiko-blue);
}

body.domiko-brand-preview:not(.home) :where(.cf-form-container, .cf-step-content, .cf-form-footer, .cf-captcha-wrapper) {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}

body.domiko-brand-preview:not(.home) .cf-captcha-wrapper iframe {
    max-width: 100%;
}

body.domiko-brand-preview:not(.home) .cf-btn-primary {
    min-height: 48px;
    border: 1px solid var(--domiko-blue);
    border-radius: 12px;
    background: var(--domiko-blue);
    color: #fff;
    box-shadow: 0 10px 22px rgba(7, 113, 231, 0.16);
    font-weight: 600;
    transition: background-color 220ms ease, border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

body.domiko-brand-preview:not(.home) .cf-btn-primary:hover {
    border-color: var(--domiko-deep);
    background: var(--domiko-deep);
    box-shadow: 0 12px 26px rgba(37, 31, 112, 0.18);
    transform: translateY(-1px);
}

body.domiko-brand-preview:not(.home) .cf-btn-primary:active {
    box-shadow: none;
    transform: translateY(1px);
}

/* Listing templates: visual layer only; filters, sorting and AJAX stay untouched. */
body.domiko-brand-preview.page-template-newlisting .cap-item_type-1 {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 24px;
    background: var(--domiko-blue);
    box-shadow: 0 22px 48px rgba(7, 113, 231, 0.16);
}

body.domiko-brand-preview.page-template-newlisting .cap-item_type-1::after {
    position: absolute;
    z-index: -1;
    right: -82px;
    bottom: -94px;
    width: 310px;
    height: 263px;
    background: url('./pattern-inverse.svg') center / contain no-repeat;
    content: '';
    opacity: 0.1;
    pointer-events: none;
}

body.domiko-brand-preview.page-template-newlisting .cap-item_type-1 :where(.title, .text, a) {
    color: #fff;
}

body.domiko-brand-preview.page-template-newlisting .cap-item_type-1 .btn_blue,
body.domiko-brand-preview.page-template-newlisting .cap-item_type-1 .btn-blue,
body.domiko-brand-preview.page-template-newlisting .cap-item_type-1 .phone {
    border-color: #fff;
    background: #fff;
    color: var(--domiko-ink);
}

body.domiko-brand-preview.page-template-newlisting .cap-item_type-1 .btn_blue:hover,
body.domiko-brand-preview.page-template-newlisting .cap-item_type-1 .btn-blue:hover,
body.domiko-brand-preview.page-template-newlisting .cap-item_type-1 .phone:hover {
    border-color: var(--domiko-deep);
    background: var(--domiko-deep);
    color: #fff;
}

body.domiko-brand-preview.page-template-newlisting .filter_wrapper {
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(37, 31, 112, 0.055);
}

body.domiko-brand-preview.page-template-newlisting .titlefilternew,
body.domiko-brand-preview.page-template-newlisting .title-newfilter {
    color: var(--domiko-ink);
}

body.domiko-brand-preview.page-template-newlisting :where(.search-in-filter input, .input_text, .select2-selection) {
    border-color: rgba(37, 31, 112, 0.14);
    background: #fff;
    color: var(--domiko-ink);
}

body.domiko-brand-preview.page-template-newlisting .card-item-ver-3 {
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(37, 31, 112, 0.06);
}

body.domiko-brand-preview.page-template-newlisting .title-ver-3 {
    color: var(--domiko-ink);
    letter-spacing: -0.015em;
    text-transform: none;
}

body.domiko-brand-preview.page-template-newlisting .title-ver-3 a {
    color: var(--domiko-ink);
}

body.domiko-brand-preview.page-template-newlisting .description-ver-3 :where(p, li) {
    color: #454257;
}

body.domiko-brand-preview.page-template-newlisting .rating .mark:not(.nomark) {
    color: var(--domiko-blue);
}

/* Articles: keep the existing taxonomy and cards, improve hierarchy and contrast. */
body.domiko-brand-preview.blog .categories-all {
    scrollbar-color: rgba(37, 31, 112, 0.24) transparent;
}

body.domiko-brand-preview.blog .categories-all a {
    color: #5b586b;
    transition: color 200ms ease, border-color 200ms ease;
}

body.domiko-brand-preview.blog .categories-all a:hover,
body.domiko-brand-preview.blog .categories-all a.active {
    border-color: var(--domiko-blue);
    color: var(--domiko-ink);
}

body.domiko-brand-preview.blog .top-items__articles {
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(37, 31, 112, 0.06);
}

body.domiko-brand-preview.blog .top-items__articles .btn-o {
    border-color: var(--domiko-blue);
    color: var(--domiko-blue);
    transition: background-color 200ms ease, color 200ms ease, transform 200ms ease;
}

body.domiko-brand-preview.blog .top-items__articles .btn-o:hover {
    background: var(--domiko-blue);
    color: #fff;
    transform: translateY(-1px);
}

body.domiko-brand-preview.blog .top-items__articles .btn-o:active {
    transform: translateY(1px);
}

@media (max-width: 991px) {
    body.domiko-brand-preview header.header .container {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        flex-wrap: nowrap;
        gap: 16px;
    }

    body.domiko-brand-preview header.header .logo {
        flex: 1 1 auto;
        min-width: 0;
    }

    body.domiko-brand-preview header.header .menu-header {
        position: absolute;
        z-index: 490;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        width: 100%;
        margin: 0;
        background: #fff;
        box-shadow: 0 18px 35px rgba(37, 31, 112, 0.1);
    }

    body.domiko-brand-preview header.header .menu-header ul {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px 30px;
    }

    body.domiko-brand-preview header.header .menu-header .menu_login {
        display: block;
        padding-top: 0;
    }

    body.domiko-brand-preview header.header .mob-menu {
        display: block;
        flex: 0 0 32px;
        margin-left: 0;
    }

    body.domiko-brand-preview header.header > .container > .btn_blue {
        display: none;
    }
}

@media (max-width: 767px) {
    body.domiko-brand-preview.single-messia_object header.header {
        position: relative;
        display: block !important;
    }

    body.domiko-brand-preview header.header .logo img {
        width: 162px;
    }

    body.domiko-brand-preview.home .cap-item_type-3::after {
        right: -110px;
        bottom: -105px;
        opacity: 0.028;
    }

    body.domiko-brand-preview:not(.home) .top_h1_text {
        padding: 24px 0 32px;
    }

    body.domiko-brand-preview:not(.home) .top_h1_text::after {
        right: -145px;
        bottom: -130px;
        opacity: 0.022;
    }

    body.domiko-brand-preview:not(.home) .top_h1_text .breadcrumbs {
        margin-bottom: 18px;
    }

    body.domiko-brand-preview:not(.home) .top_h1_text h1 {
        max-width: 14ch;
        font-size: clamp(32px, 10vw, 44px);
    }

    body.domiko-brand-preview:not(.home) main.page_in > .container {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        padding-right: 12px;
        padding-left: 12px;
        padding-top: 18px;
        padding-bottom: 56px;
    }

    body.domiko-brand-preview:not(.home) .content-withe {
        width: 100%;
        max-width: 100%;
        padding: 22px 16px;
        border-radius: 16px;
    }

    body.domiko-brand-preview:not(.home) .content-withe :where(p, li, a) {
        overflow-wrap: anywhere;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.domiko-brand-preview *,
    body.domiko-brand-preview *::before,
    body.domiko-brand-preview *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
