/*
 Theme Name:   Kadence Child
 Theme URI:    https://example.com/kadence-child/
 Description:  Kadence Child Theme
 Author:       Your Name
 Author URI:   https://example.com
 Template:     kadence
 Version:      1.0.2
 Tags:         customizable, modern, responsive-layout, gutenberg, header builder, footer builder
 Text Domain:  kadencechild
*/

/* Theme customization starts here
-------------------------------------------------------------- */

.custom-categories-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
}

.custom-categories-grid {
    display: flex;
    gap: 0;
    height: 600px;
    position: relative;
}

.custom-category-item {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: flex 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: cover;
    background-position: center;
    text-decoration: none;
    color: inherit;
    display: block;
}

.custom-category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
    opacity: 0.6;
    transition: opacity 1.2s ease;
    z-index: 1;
}

.custom-category-item:hover::before {
    opacity: 0.3;
}

.custom-category-item:hover {
    flex: 2.5;
}

.custom-category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px;
    z-index: 2;
    color: white;
    transition: all 1.2s ease;
    pointer-events: none;
}

.custom-category-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 60px!important;
    text-align: center;
    transition: all 1.2s ease;
    opacity: 0.9;
	color:#fff;
}

.custom-category-item:hover .custom-category-title {
    font-size: 24px;
    margin-bottom: 30px;
    opacity: 1;
}

.custom-view-product-btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid rgba(255,255,255,0.8);
    color: white;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    pointer-events: none;
}

.custom-category-item:hover .custom-view-product-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.wp-block-kadence-testimonials {
	width:100%
}
/* Планшетная версия - 2 колонки */
@media (max-width: 1024px) {
    .custom-categories-grid {
        flex-wrap: wrap;
        height: auto;
    }

    .custom-category-item {
        width: 50%;
        height: 400px;
        flex: 0 0 50%;
    }

    .custom-category-item:hover {
        flex: 0 0 50%;
    }
}

/* Мобильная версия - 1 колонка, блоки друг под другом */
@media (max-width: 640px) {
    .custom-categories-grid {
        flex-direction: column;
        height: auto;
    }

    .custom-category-item {
        width: 100%;
        height: 350px;
        flex: 0 0 auto;
    }

    .custom-category-item:hover {
        flex: 0 0 auto;
    }

    .custom-section-title {
        font-size: 24px;
    }

    .custom-category-title {
        font-size: 18px;
    }
}

/* Телефон в шапке после «Контакты» */
.main-navigation .header-phone-item,
#mobile-drawer .header-phone-item {
    list-style: none;
}

.header-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}

.header-phone-link:hover {
    opacity: 0.85;
}

.header-phone-icon {
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
}

.header-phone-icon svg {
    display: block;
}

@media (max-width: 1024px) {
    .header-phone-text {
        font-size: 0.95em;
    }
}

/* Шорткод [skif_site_info]: телефон, адрес, карта сайта (сетка в ряду Kadence) */
.skif-site-info-kadence-row {
    width: 100%;
}

.skif-site-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem 1.5rem;
    align-items: start;
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .skif-site-info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem 2rem;
    }
}

.skif-site-info-cell {
    margin: 0;
}

.skif-site-info-tel {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    white-space: nowrap;
}

.skif-site-info-tel:hover {
    text-decoration: underline;
}

.skif-site-info-map-link {
    text-decoration: underline;
    color: inherit;
}

.skif-site-info-map-link:hover {
    opacity: 0.85;
}

/* Логотип: без подложки (jpg остаётся непрозрачным — убираем фон у обёрток) */
.site-header .site-branding a.brand,
.site-header .site-branding a.brand img.custom-logo,
#masthead .custom-logo.skif-logo,
.footer-site-logo-wrap.skif-logo-transparent {
    background: transparent !important;
    box-shadow: none !important;
}

.footer-site-logo-wrap {
    margin: 0 0 1rem;
    line-height: 0;
    display: inline-block;
    max-width: 100%;
}

.footer-site-logo-wrap img.footer-site-logo,
img.custom-logo.skif-logo {
    background: transparent !important;
    height: auto;
    max-height: 72px;
    width: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 767px) {
    .footer-site-logo-wrap img.footer-site-logo {
        max-height: 56px;
    }
}

/* [skif_workflow_steps] — этапы работы с заказчиком (цвета палитры Kadence) */
.skif-workflow {
    margin: 2rem 0 2.5rem;
    padding: 1.75rem 1.5rem 2rem;
    border-radius: 8px;
    background: var(--global-palette8, rgba(0, 0, 0, 0.03));
    border: 1px solid var(--global-palette7, rgba(0, 0, 0, 0.08));
    color: var(--global-palette4, #1a1a1a);
}

.skif-workflow-title {
    margin: 0 0 1.25rem;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--global-palette3, #1e1e1e);
    line-height: 1.3;
}

.skif-workflow-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.skif-workflow-step {
    position: relative;
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 1rem 1.25rem;
    padding: 1.15rem 0 1.15rem 0;
    margin: 0;
    border-bottom: 1px solid var(--global-palette7, rgba(0, 0, 0, 0.08));
}

.skif-workflow-step:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.skif-workflow-step::before {
    content: "";
    position: absolute;
    left: 1.5rem;
    top: 3.25rem;
    bottom: -0.25rem;
    width: 2px;
    background: linear-gradient(
        to bottom,
        var(--global-palette1, #0045a0),
        var(--global-palette7, rgba(0, 0, 0, 0.08))
    );
    opacity: 0.85;
    pointer-events: none;
}

.skif-workflow-step:last-child::before {
    display: none;
}

.skif-workflow-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1;
    color: #fff;
    background: var(--global-palette1, #0045a0);
    box-shadow: 0 2px 8px rgba(0, 69, 160, 0.25);
    z-index: 1;
}

.skif-workflow-body {
    min-width: 0;
}

.skif-workflow-step-title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--global-palette3, #1e1e1e);
    line-height: 1.35;
}

.skif-workflow-step-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--global-palette4, #333);
}

@media (max-width: 600px) {
    .skif-workflow {
        padding: 1.25rem 1rem 1.5rem;
    }

    .skif-workflow-step {
        grid-template-columns: 2.75rem 1fr;
        gap: 0.75rem 1rem;
    }

    .skif-workflow-num {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1rem;
    }

    .skif-workflow-step::before {
        left: 1.375rem;
    }
}

/* [skif_partition_simferopol] — стеклянные перегородки (колонка Kadence) */
.kt-inside-inner-col .skif-partition-landing {
    max-width: 100%;
}

.skif-partition-landing {
    color: var(--global-palette4, #333);
    font-size: 1rem;
    line-height: 1.65;
}

.skif-pl-hero {
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--global-palette1, #0045a0);
}

.skif-pl-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--global-palette3, #1e1e1e);
}

.skif-pl-lead {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--global-palette1, #0045a0);
    line-height: 1.4;
}

.skif-pl-intro {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--global-palette4, #333);
}

.skif-pl-section {
    margin: 1.75rem 0;
}

.skif-pl-section--why {
    padding: 1.25rem 1.25rem 1.35rem;
    border-radius: 8px;
    background: var(--global-palette8, rgba(0, 0, 0, 0.03));
    border: 1px solid var(--global-palette7, rgba(0, 0, 0, 0.08));
}

.skif-pl-section--price {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--global-palette7, rgba(0, 0, 0, 0.1));
}

.skif-pl-h3 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--global-palette3, #1e1e1e);
    line-height: 1.3;
}

.skif-pl-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.skif-pl-list li {
    position: relative;
    margin: 0 0 0.85rem;
    padding-left: 1.35rem;
    line-height: 1.65;
}

.skif-pl-list li:last-child {
    margin-bottom: 0;
}

.skif-pl-list--solutions li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--global-palette1, #0045a0);
}

.skif-pl-list--checks li {
    padding-left: 0;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--global-palette7, rgba(0, 0, 0, 0.06));
}

.skif-pl-list--checks li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.skif-pl-label {
    display: inline-block;
    min-width: 6.5rem;
    font-weight: 700;
    color: var(--global-palette1, #0045a0);
}

.skif-pl-text {
    margin: 0 0 1rem;
}

.skif-pl-cta {
    margin: 0;
    padding: 1rem 1.15rem;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--global-palette3, #1e1e1e);
    background: linear-gradient(
        135deg,
        rgba(0, 69, 160, 0.08) 0%,
        var(--global-palette8, rgba(0, 0, 0, 0.03)) 100%
    );
    border-left: 4px solid var(--global-palette1, #0045a0);
    border-radius: 0 8px 8px 0;
}

@media (max-width: 600px) {
    .skif-pl-label {
        display: block;
        min-width: 0;
        margin-bottom: 0.2rem;
    }
}
