﻿﻿/*
Theme Name: YUMZ Classic Blocks
Theme URL: https://isaitolog.ru/
Author: Alexander Grozov
Description: Classic WordPress theme assembled from project block sections. Template developed by Alexander Grozov (https://isaitolog.ru/).
Version: 1.3.5
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: https://isaitolog.ru/
*/
:root {
    color-scheme: light;
}

body {
    margin: 0;
    font-family: "Inter", "Roboto", sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

.ymz-block {
    --c-primary: #ffb800;
    --c-primary-hover: #e5a600;
    --c-background-light: #f8f9fa;
    --c-background-alt: #18181b;
    --c-surface-light: #eeeeee;
    --c-surface-alt: #1e1e1e;
    --c-text-light: #333333;
    --c-text-alt: #e4e4e7;
    --c-text-main-light: #111111;
    --c-text-main-alt: #ffffff;
    --c-text-muted-light: #6c757d;
    --c-text-muted-alt: #a1a1aa;
    --c-text-sec-light: #555555;
    --c-text-sec-alt: #a0a0a0;
    --c-subtext-light: #333333;
    --c-subtext-alt: #a3a3a3;
    --c-border-light: #e5e5e0;
    --c-border-alt: #333333;
    --c-card-light: #ffffff;
    --c-card-alt: #262626;
    --c-card-bg: #050505;
    --c-card-border: #222222;
    --c-text-secondary: #9ca3af;
}

.ymz-block-header {
    --c-background-light: #f8f9fa;
    --c-background-alt: #18181b;
    --c-text-light: #333333;
    --c-text-alt: #e4e4e7;
    --c-text-muted-light: #6c757d;
    --c-text-muted-alt: #a1a1aa;
    --c-border-light: #e5e5e5;
    --c-border-alt: #27272a;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--c-background-light);
}

.admin-bar .ymz-block-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .ymz-block-header {
        top: 46px;
    }
}

.ymz-block-hero {
    --c-primary: #ffb800;
    --c-background-light: #f8f9fa;
    --c-background-alt: #121212;
    --c-surface-light: #eeeeee;
    --c-surface-alt: #1e1e1e;
    --c-text-main-light: #000000;
    --c-text-main-alt: #ffffff;
    --c-text-muted-light: #555555;
    --c-text-muted-alt: #a0a0a0;
    background-color: var(--c-background-light);	
}

/* Hero card subtitles: 50% width on mobile, default width on desktop. */
.ymz-block-hero main .bg-surface-light > p {
    width: 50%;
    max-width: 50%;
}

@media (min-width: 1024px) {
    .ymz-block-hero main .bg-surface-light > p {
        width: auto;
        max-width: none;
    }

    .ymz-block-hero main .grid > .bg-surface-light:first-child > p {
        max-width: 200px;
    }
}

.ymz-block-about {
    --c-primary: #ffc107;
    --c-background-light: #f3f4f6;
    --c-background-alt: #050505;
    --c-surface-alt: rgba(0, 0, 0, 0.85);
}

.ymz-block-product {
    --c-primary: #fdb913;
    --c-primary-hover: #e5a70f;
    --c-background-light: #f7f7f7;
    --c-background-alt: #1a1a1a;
    --c-card-light: #ffffff;
    --c-card-alt: #262626;
    --c-text-light: #111111;
    --c-text-alt: #e5e5e5;
    --c-subtext-light: #333333;
    --c-subtext-alt: #a3a3a3;
    --c-border-light: #e5e5e5;
    --c-border-alt: #404040;
}

.ymz-block-form {
    --c-primary: #ffb800;
    --c-primary-hover: #e5a600;
    --c-background-light: #f9f9f9;
    --c-background-alt: #1a1a1a;
    --c-card-light: #ffffff;
    --c-card-alt: #2d2d2d;
    --c-text-main-light: #111111;
    --c-text-main-alt: #ffffff;
    --c-text-sec-light: #555555;
    --c-text-sec-alt: #a0a0a0;
    --c-border-light: #dddddd;
    --c-border-alt: #404040;
}

.ymz-block-partners {
    --c-primary: #1d4ed8;
    --c-background-light: #000000;
    --c-background-alt: #050505;
    --c-card-light: #ffffff;
    --c-card-alt: #1a1a1a;
    --c-text-main-light: #ffffff;
    background-color: #000000;
    color: #ffffff;
}

.ymz-block-partners .text-slate-900 {
    color: #ffffff !important;
}

.ymz-block-partners .text-slate-700 {
    color: #d1d5db !important;
}

.ymz-block-partners h2 {
    color: #ffffff !important;
}

.ymz-block-partners p {
    color: #d1d5db !important;
}

.ymz-block-certificates {
    --c-primary: #1a1a1a;
    --c-background-light: #f8f8f7;
    --c-background-alt: #121212;
    --c-card-light: #ffffff;
    --c-card-alt: #1e1e1e;
    --c-border-light: #e5e5e0;
    --c-border-alt: #333333;
    --c-text-main-light: #111111;
    --c-text-main-alt: #e5e5e5;
    --c-text-sec-light: #444444;
    --c-text-sec-alt: #a0a0a0;
}

.ymz-block-footer {
    --c-primary: #ffffff;
    --c-background-light: #000000;
    --c-background-alt: #000000;
    --c-card-bg: #050505;
    --c-card-border: #222222;
    --c-text-secondary: #9ca3af;
    background-color: #000000;
    color: #ffffff;
}

.single .ymz-block-footer > footer > div:first-child {
    display: none !important;
}

.single .ymz-block-footer > footer {
    padding-top: 2rem;
}

.bg-primary {
    background-color: var(--c-primary) !important;
}

.bg-primary\/80 {
    background-color: color-mix(in srgb, var(--c-primary) 80%, transparent) !important;
}

.bg-background-light {
    background-color: var(--c-background-light) !important;
}

.bg-background-alt {
    background-color: var(--c-background-alt) !important;
}

.bg-surface-light {
    background-color: var(--c-surface-light) !important;
}

.bg-surface-alt {
    background-color: var(--c-surface-alt) !important;
}

.bg-card-light {
    background-color: var(--c-card-light) !important;
}

.bg-card-alt {
    background-color: var(--c-card-alt) !important;
}

.bg-card-bg {
    background-color: var(--c-card-bg) !important;
}

.bg-border-light {
    background-color: var(--c-border-light) !important;
}

.bg-border-alt {
    background-color: var(--c-border-alt) !important;
}

.text-primary {
    color: var(--c-primary) !important;
}

.text-text-light {
    color: var(--c-text-light) !important;
}

.text-text-alt {
    color: var(--c-text-alt) !important;
}

.text-text-main-light {
    color: var(--c-text-main-light) !important;
}

.text-text-main-alt {
    color: var(--c-text-main-alt) !important;
}

.text-text-muted-light {
    color: var(--c-text-muted-light) !important;
}

.text-text-muted-alt {
    color: var(--c-text-muted-alt) !important;
}

.text-text-sec-light {
    color: var(--c-text-sec-light) !important;
}

.text-text-sec-alt {
    color: var(--c-text-sec-alt) !important;
}

.text-subtext-light {
    color: var(--c-subtext-light) !important;
}

.text-subtext-alt {
    color: var(--c-subtext-alt) !important;
}

.text-text-secondary {
    color: var(--c-text-secondary) !important;
}

.border-border-light {
    border-color: var(--c-border-light) !important;
}

.border-border-alt {
    border-color: var(--c-border-alt) !important;
}

.border-card-border {
    border-color: var(--c-card-border) !important;
}

.from-background-light {
    --tw-gradient-from: var(--c-background-light) var(--tw-gradient-from-position);
    --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-background-light {
    --tw-gradient-to: var(--c-background-light) var(--tw-gradient-to-position);
}

.hover\:bg-primary:hover {
    background-color: var(--c-primary) !important;
}

.hover\:bg-primary-hover:hover {
    background-color: var(--c-primary-hover) !important;
}

.hover\:text-primary:hover {
    color: var(--c-primary) !important;
}
.focus\:ring-primary:focus {
    --tw-ring-color: var(--c-primary) !important;
}

.ring-primary\/20 {
    --tw-ring-color: color-mix(in srgb, var(--c-primary) 20%, transparent) !important;
}

.fill-background-alt {
    fill: var(--c-background-alt) !important;
}
.font-display {
    font-family: "Oswald", "Roboto Condensed", sans-serif !important;
}

.font-body {
    font-family: "Roboto", "Manrope", "Inter", sans-serif !important;
}

.font-sans {
    font-family: "Inter", "Roboto", "Manrope", sans-serif !important;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
a[role="button"],
.ymz-fluent-form-wrap .ff-btn-submit,
.ymz-cf7-form-wrap .wpcf7-form input[type="submit"] {
    font-weight: 500 !important;
}

@media (max-width: 767px) {
    button,
    input[type="button"],
    input[type="submit"],
    input[type="reset"],
    a[role="button"],
    .ymz-fluent-form-wrap .ff-btn-submit,
    .ymz-cf7-form-wrap .wpcf7-form input[type="submit"] {
        font-size: 13px !important;
        line-height: 1.3;
    }
}

.shadow-soft {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

.shadow-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
}

.bg-factory-bg {
    background-image: url("https://images.unsplash.com/photo-1565153907400-7e01a9ab25f3?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80");
}

.bg-blueprint {
    background-image: url("https://images.unsplash.com/photo-1581094794329-c8112a89af12?q=80&w=2532&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
}

.text-justified-custom {
    text-align: justify;
    text-align-last: center;
}

@media (max-width: 1024px) {
    .text-justified-custom {
        text-align: center;
        text-align-last: center;
    }
}

.yumz-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .yumz-grid {
        grid-template-columns: 280px 300px 1fr;
        grid-template-rows: auto auto auto;
        align-items: center;
        gap: 2rem;
    }

    .grid-separator {
        grid-column: 1 / -1;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
}

.badge-circle {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-text-curved {
    animation: spin 20s linear infinite;
    transform-origin: center;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.blueprint-overlay {
    mask-image: linear-gradient(to right, transparent, black);
    -webkit-mask-image: linear-gradient(to right, transparent, black);
}

.blueprint-filter {
    filter: grayscale(100%) invert(100%) opacity(0.15);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.ymz-product-slider-viewport {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    touch-action: pan-y;
}

.ymz-product-slider {
    width: 100%;
    max-width: 100%;
}

.ymz-product-slider-track {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    min-width: 100%;
}

.ymz-product-slide {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.ymz-block-product,
.ymz-block-product [id^="catalog-section"] {
    max-width: 100%;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .ymz-product-slide {
        width: calc((100% - 1.5rem) / 2);
    }
}

@media (min-width: 1024px) {
    .ymz-product-slide {
        width: calc((100% - 4.5rem) / 4);
    }
}

[data-product-slider-prev="true"][disabled],
[data-product-slider-next="true"][disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

.smooth-scroll {
    scroll-behavior: smooth;
}

.ymz-popover {
    position: absolute;
    z-index: 9999;
    max-width: 320px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
    font-size: 14px;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.ymz-popover.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ymz-cf7-form-wrap .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ymz-cf7-form-wrap .wpcf7-form p {
    margin: 0;
}

.ymz-cf7-form-wrap .wpcf7-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--c-text-main-light);
}

.ymz-cf7-form-wrap .wpcf7-form input[type="text"],
.ymz-cf7-form-wrap .wpcf7-form input[type="email"],
.ymz-cf7-form-wrap .wpcf7-form input[type="tel"],
.ymz-cf7-form-wrap .wpcf7-form textarea,
.ymz-cf7-form-wrap .wpcf7-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--c-border-light);
    border-radius: 0.25rem;
    background: #f9fafb;
    color: var(--c-text-main-light);
    box-sizing: border-box;
}

.ymz-cf7-form-wrap .wpcf7-form input[type="submit"] {
    width: 100%;
    border: 0;
    border-radius: 0.25rem;
    background: var(--c-primary);
    color: #000;
    font-weight: 700;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ymz-cf7-form-wrap .wpcf7-form input[type="submit"]:hover {
    background: var(--c-primary-hover);
}

.ymz-cf7-form-wrap .wpcf7-list-item {
    margin: 0 0 0.5rem 0;
}

.ymz-fluent-form-wrap .ff-el-group {
    margin-bottom: 1rem;
}

.ymz-fluent-form-wrap .ff-el-input--label label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--c-text-main-light);
}

.ymz-fluent-form-wrap .ff-el-form-control,
.ymz-fluent-form-wrap input[type="text"],
.ymz-fluent-form-wrap input[type="email"],
.ymz-fluent-form-wrap input[type="tel"],
.ymz-fluent-form-wrap textarea,
.ymz-fluent-form-wrap select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--c-border-light);
    border-radius: 0.25rem;
    background: #f9fafb;
    color: var(--c-text-main-light);
    box-sizing: border-box;
}

.ymz-fluent-form-wrap .ff-el-form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid var(--c-border-light);
    border-radius: 0.25rem;
    background: #f9fafb;
    margin: 0 0 0.5rem;
}

.ymz-fluent-form-wrap .ff-btn-submit,
.ymz-fluent-form-wrap button[type="submit"] {
    width: 100%;
    border: 0;
    border-radius: 0.25rem;
    background: var(--c-primary);
    color: #000;
    font-weight: 700;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ymz-fluent-form-wrap .ff-btn-submit:hover,
.ymz-fluent-form-wrap button[type="submit"]:hover {
    background: var(--c-primary-hover);
}

/* Keep popups inside the viewport and keep close controls reachable on mobile. */
#yumz-policy-modal,
#yumz-callback-modal {
    z-index: 2100 !important;
    isolation: isolate;
}

#yumz-policy-modal .ymz-policy-dialog,
#yumz-callback-modal .ymz-callback-dialog,
#yumz-callback-modal > div {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    width: min(100%, calc(100vw - 2rem));
    max-height: min(90vh, calc(100dvh - 2rem));
    overscroll-behavior: contain;
}

#yumz-policy-modal:not(.ymz-policy-modal--specs) .ymz-policy-dialog {
    max-width: min(620px, calc(100vw - 2rem)) !important;
}

#yumz-policy-modal.ymz-policy-modal--specs .ymz-policy-dialog {
    max-width: min(1200px, calc(100vw - 2rem)) !important;
}

#yumz-callback-modal .ymz-callback-dialog,
#yumz-callback-modal > div {
    width: min(100%, 560px);
}

.ymz-modal-header,
.ymz-modal-footer {
    flex: 0 0 auto;
}

.ymz-modal-footer {
    display: none !important;
}

.ymz-modal-header {
    position: relative;
    z-index: 5;
}

.ymz-modal-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.ymz-modal-footer {
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
}

.ymz-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 6;
    flex-shrink: 0;
    width: 56px;
    min-width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 0;
    border-radius: 9999px;
}

.ymz-modal-close .material-icons,
.ymz-modal-close .material-icons-outlined,
.ymz-modal-close .material-symbols-outlined {
    font-size: 30px !important;
    line-height: 1;
}

@media (max-width: 767px) {
    #yumz-policy-modal .ymz-policy-dialog,
    #yumz-callback-modal .ymz-callback-dialog,
    #yumz-callback-modal > div {
        width: calc(100vw - 1rem);
        max-height: calc(100dvh - 1rem);
    }

    #yumz-policy-modal:not(.ymz-policy-modal--specs) .ymz-policy-dialog {
        max-width: calc(100vw - 1rem) !important;
    }

    #yumz-policy-modal.ymz-policy-modal--specs .ymz-policy-dialog {
        max-width: calc(100vw - 1rem) !important;
    }

    .ymz-modal-close {
        width: 60px;
        min-width: 60px;
        height: 60px;
        min-height: 60px;
    }

    .ymz-modal-close .material-icons,
    .ymz-modal-close .material-icons-outlined,
    .ymz-modal-close .material-symbols-outlined {
        font-size: 34px !important;
    }
}

.ymz-policy-content {
    white-space: pre-line;
}


