/* Kubariki theme - редизайн по макету "Kubariki - Redesign v2" (Claude-экспорт). */

@font-face {
    font-family: 'Golos Text';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/golos-text-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'Golos Text';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/golos-text-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Golos Text';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/golos-text-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A640-A69F, U+A720-A7FF;
}
@font-face {
    font-family: 'Golos Text';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/golos-text-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --kub-bg: #4E4E4E;
    --kub-accent: #DC4C04;
    --kub-accent-dark: #A93B02;
    --kub-cta: #FA681E;
    --kub-tab: #D39A5A;
    --kub-cream: #F0E1C8;
    --kub-cream-light: #FAF3EB;
    --kub-cream-card: #FAF5EE;
    --kub-cream-hover: #F5EAD9;
    --kub-text: #65421B;
    --kub-text-dark: #2E1E0C;
    --kub-text-body: #4D3214;
    --kub-muted: #8A6B45;
    --kub-line: #EAD6B6;
    --kub-input: #D9C6A3;
    --kub-footer: #C9BBA6;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Golos Text', sans-serif;
    background: var(--kub-bg);
    color: var(--kub-text);
    font-size: 16px;
    line-height: 1.5;
}

a { color: var(--kub-accent); }
a:hover { color: var(--kub-accent-dark); }
img { max-width: 100%; height: auto; }
*:focus-visible { outline: 2px solid var(--kub-cta); outline-offset: 2px; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Шапка (десктоп): меню-закладки + CTA ---------- */

.site-header__inner {
    display: flex;
    align-items: stretch;
    gap: 24px;
    height: 84px;
}

.tabs-nav {
    display: flex;
    align-items: flex-end;
    margin-left: 312px;
    flex-shrink: 0;
}
.tabs-nav__list {
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.tabs-nav__list a {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 18px;
    border-radius: 12px 12px 0 0;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    text-decoration: none;
    white-space: nowrap;
    background: var(--kub-tab);
    color: #fff;
    transition: background 0.15s;
}
.tabs-nav__list a:hover {
    background: var(--kub-cta);
    color: #fff;
}
.tabs-nav__list .current-menu-item a,
.tabs-nav__list .current-menu-ancestor a {
    background: var(--kub-cta);
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12);
}

.header-cta {
    display: flex;
    align-items: center;
    align-self: center;
    margin-left: auto;
    height: 44px;
    background: var(--kub-cta);
    color: #fff;
    padding: 0 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}
.header-cta:hover { background: var(--kub-accent); color: #fff; }
.header-cta:active { background: var(--kub-accent-dark); }

/* ---------- Мобильная шапка (скрыта на десктопе) ---------- */

.m-header, .m-menu, .m-coils { display: none; }

/* ---------- «Лист» с сайдбаром и спиралью ---------- */

.sheet {
    position: relative;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    background: #fff;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.sidebar {
    background: var(--kub-cream);
    padding: 36px 40px 48px 28px;
}

.sidebar__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 600;
    color: var(--kub-text-dark);
    letter-spacing: 1.5px;
}
.sidebar__logo img { border-radius: 3px; }

.sidebar__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--kub-text-dark);
    font-weight: 600;
    font-size: 19px;
    white-space: nowrap;
    margin-bottom: 20px;
}
.sidebar__phone i { font-size: 20px; color: var(--kub-accent); }
.sidebar__phone:hover { color: var(--kub-accent); }

.sidebar__order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    background: var(--kub-accent);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.15s;
}
.sidebar__order i { font-size: 19px; }
.sidebar__order:hover { background: var(--kub-accent-dark); color: #fff; }

.sidebar__links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 18px 0 34px;
}
.sidebar__links a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    font-size: 14px;
    color: var(--kub-text);
    text-decoration: none;
}
.sidebar__links a i { font-size: 18px; color: var(--kub-accent); }
.sidebar__links a:hover { color: var(--kub-accent); }

.sidebar__services { margin: 0; }
.sidebar__services > summary { display: none; }
.sidebar__services-title {
    font-size: 19px;
    font-weight: 600;
    color: var(--kub-text-dark);
    margin: 0 0 12px;
}
.services-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.services-list a {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 8px 7px 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--kub-text-body);
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.15s;
}
.services-list a i { font-size: 12px; color: #C98A4A; margin-top: 4px; flex-shrink: 0; }
.services-list a:hover,
.services-list a.is-active { color: var(--kub-accent); }

/* Дерево «Услуги по категориям» */
.sidebar__services-subtitle {
    font-size: 15px;
    font-weight: 600;
    color: var(--kub-text-dark);
    margin: 16px 0 6px;
}
.services-tree {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.services-tree__row {
    display: flex;
    align-items: center;
    gap: 4px;
}
.services-tree__link {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    padding: 6px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--kub-text-body);
    text-decoration: none;
    transition: color 0.15s;
}
.services-tree__link:hover,
.services-tree__link.is-active { color: var(--kub-accent); }
.services-tree__toggle {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: none;
    background: none;
    color: #C98A4A;
    cursor: pointer;
    font-size: 14px;
    border-radius: 6px;
}
.services-tree__toggle:hover { color: var(--kub-accent); background: rgba(220, 76, 4, 0.08); }
.services-tree__toggle i { transition: transform 0.15s; }
.services-tree__cat.is-open > .services-tree__row .services-tree__toggle i { transform: rotate(180deg); }
.services-tree__sub {
    list-style: none;
    margin: 0 0 6px;
    padding: 0 0 0 14px;
    border-left: 1px solid var(--kub-line);
}
.services-tree__sub a {
    display: block;
    padding: 5px 0 5px 10px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--kub-text-body);
    text-decoration: none;
    transition: color 0.15s;
}
.services-tree__sub a:hover,
.services-tree__sub a.is-active { color: var(--kub-accent); }

.sidebar__bottom {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 32px;
}
.sidebar__bottom a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    font-size: 13px;
    color: var(--kub-text);
    text-decoration: none;
}
.sidebar__bottom a i { font-size: 16px; color: var(--kub-accent); }
.sidebar__bottom a:hover { color: var(--kub-accent); }
.sidebar__metrika {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #A9895F;
}
.sidebar__metrika i { font-size: 15px; }

/* Спираль блокнота между сайдбаром и контентом. */
.spiral {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(24px + 280px); /* padding контейнера + колонка сайдбара: линия ровно на границе */
    width: 0;
    border-left: 3px dashed #3A3A3A;
    z-index: 2;
    pointer-events: none;
}
.coil-group {
    position: absolute;
    left: -32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.coil {
    position: relative;
    width: 62px;
    height: 16px;
}
.coil::before,
.coil::after {
    content: '';
    position: absolute;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 45% 40%, #3A3A3A 0%, #0E0E0E 60%, #000 100%);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}
.coil::before { left: 0; }
.coil::after { right: 0; }
.coil span {
    position: absolute;
    left: 7px;
    right: 7px;
    top: 3px;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(90deg, #1A1A1A 0%, #8E8E8E 10%, #E9E9E9 24%, #FFFFFF 40%, #F4F4F4 58%, #CFCFCF 78%, #8E8E8E 90%, #1A1A1A 100%);
    box-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.8), inset 0 -2px 2px rgba(0, 0, 0, 0.28), 0 2px 2px rgba(101, 66, 27, 0.35);
}

/* ---------- Контент ---------- */

.sheet__content {
    padding: 40px 48px 64px 56px;
    min-width: 0;
}

.hero {
    width: 100%;
    aspect-ratio: 727 / 301;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.front-title,
.entry-title {
    font-size: 34px;
    font-weight: 600;
    color: var(--kub-accent);
    margin: 48px 0 20px;
    letter-spacing: -0.3px;
}
.page .entry-title { margin-top: 0; }

.front-text {
    max-width: 720px;
}
.entry-content, .front-text {
    font-size: 16px;
    line-height: 1.7;
}
.entry-content p, .front-text p { margin: 0 0 16px; }
.entry-content strong { color: var(--kub-text-body); }
.entry-content h2, .entry-content h3 {
    color: var(--kub-text-dark);
    font-weight: 600;
    margin: 32px 0 16px;
}
.entry-content h2 { font-size: 24px; }
.entry-content h3 { font-size: 20px; }
.entry-content ul, .entry-content ol { padding-left: 24px; margin: 0 0 16px; }
.entry-content img { border-radius: 8px; }

.breadcrumbs {
    font-size: 13px;
    color: var(--kub-muted);
    margin-bottom: 20px;
}
.breadcrumbs a { color: var(--kub-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--kub-accent); }
.breadcrumbs .sep { margin: 0 4px; color: #C9B18D; }

.child-list {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.child-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    min-height: 52px;
    border-radius: 10px;
    background: var(--kub-cream-card);
    border: 1px solid var(--kub-line);
    color: var(--kub-text-body);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.child-list a i { color: var(--kub-accent); font-size: 16px; }
.child-list a:hover { background: var(--kub-cream-hover); color: var(--kub-accent); }

/* ---------- Клиенты ---------- */

.clients { margin-top: 64px; }
.clients__title {
    font-size: 24px;
    font-weight: 600;
    color: var(--kub-text-dark);
    margin: 0 0 24px;
}
.clients__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}
.clients__item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
    padding: 0 12px;
    border-radius: 10px;
    background: var(--kub-cream-card);
    filter: grayscale(1);
    opacity: 0.6;
    transition: filter 0.2s, opacity 0.2s, background 0.2s;
}
.clients__item:hover {
    filter: none;
    opacity: 1;
    background: var(--kub-cream-hover);
}
.clients__item img {
    max-width: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* ---------- Форма заявки ---------- */

.order {
    margin-top: 64px;
    padding: 36px 40px 40px;
    border-radius: 14px;
    background: var(--kub-cream-light);
    border: 1px solid var(--kub-line);
}
.order__title {
    font-size: 24px;
    font-weight: 600;
    color: var(--kub-text-dark);
    margin: 0 0 6px;
}
.order__sub {
    font-size: 15px;
    color: var(--kub-muted);
    margin: 0 0 24px;
}
.order__alt {
    font-size: 13px;
    color: var(--kub-muted);
    margin: 16px 0 0;
}
.order__alt a { color: var(--kub-accent); font-weight: 600; text-decoration: none; }

.kubariki-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.kubariki-form .pf-row {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.kubariki-form .pf-row:nth-of-type(3),
.kubariki-form .pf-row:nth-of-type(4),
.kubariki-form .pf-consent,
.kubariki-form .pf-captcha-note,
.kubariki-form .pf-row:last-of-type,
.kubariki-form .pf-result {
    grid-column: 1 / -1;
}
.kubariki-form label {
    font-size: 13px;
    font-weight: 600;
    color: var(--kub-text);
}
.kubariki-form input[type="text"],
.kubariki-form input[type="tel"],
.kubariki-form input[type="email"],
.kubariki-form textarea {
    width: 100%;
    min-width: 0;
    height: 46px;
    box-sizing: border-box;
    padding: 0 14px;
    border: 1px solid var(--kub-input);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 400;
    font-family: inherit;
    color: var(--kub-text-body);
    background: #fff;
}
.kubariki-form textarea {
    height: auto;
    padding: 12px 14px;
    resize: vertical;
}
.kubariki-form input:focus,
.kubariki-form textarea:focus {
    outline: none;
    border-color: var(--kub-accent);
    box-shadow: 0 0 0 3px rgba(220, 76, 4, 0.15);
}
.pf-req { color: var(--kub-accent); }
.pf-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.pf-consent label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    font-size: 13px;
    color: var(--kub-muted);
}
.pf-consent input { flex: 0 0 auto; }
.pf-consent label > span { flex: 1; }
.pf-captcha-note { font-size: 12px; color: var(--kub-muted); margin: 0; }
.pf-submit {
    height: 48px;
    background: var(--kub-accent);
    color: #fff;
    border: none;
    padding: 0 28px;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s;
}
.pf-submit:hover { background: var(--kub-accent-dark); }
.pf-result { margin: 0; font-size: 14px; }
.pf-result.is-ok { color: #2F7D32; }
.pf-result.is-err { color: #B3261E; }

/* ---------- Футер ---------- */

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 28px;
    padding-bottom: 40px;
    font-size: 13px;
    color: var(--kub-footer);
}
.site-footer__contacts { display: flex; gap: 24px; }
.site-footer__contacts a {
    color: var(--kub-footer);
    text-decoration: none;
}
.site-footer__contacts a:hover { color: #fff; }

/* ---------- Мобильная версия ---------- */

@media (max-width: 1079px) {
    .site-header, .spiral, .sidebar__logo, .sidebar__phone,
    .sidebar__metrika, .sidebar__services-title { display: none; }

    .container { padding: 0; }

    /* Липкая шапка */
    .m-header {
        display: flex;
        align-items: center;
        gap: 6px;
        height: 56px;
        position: sticky;
        top: 0;
        z-index: 20;
        background: var(--kub-bg);
        padding: 0 12px 0 18px;
    }
    .m-header__logo {
        display: flex;
        align-items: center;
        gap: 6px;
        text-decoration: none;
        margin-right: auto;
    }
    .m-header__logo img { border-radius: 2px; }
    .m-header__logo span {
        font-size: 16px;
        font-weight: 600;
        color: #F3E6D0;
        letter-spacing: 1px;
        margin-left: 6px;
    }
    .m-header__phone {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 8px;
        background: var(--kub-cta);
        color: #fff;
        text-decoration: none;
    }
    .m-header__phone i { font-size: 22px; }
    .m-header__burger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        color: #F3E6D0;
        cursor: pointer;
    }
    .m-header__burger i { font-size: 26px; }

    .m-menu {
        display: block;
        background: var(--kub-bg);
        padding: 8px 18px 20px;
    }
    .m-menu[hidden] { display: none; }
    .m-menu__list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .m-menu__list a {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 0 16px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        text-decoration: none;
        background: var(--kub-tab);
        color: #fff;
    }
    .m-menu__list .current-menu-item a { background: var(--kub-cta); }
    .m-menu__phone {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 48px;
        margin-top: 8px;
        font-size: 19px;
        font-weight: 600;
        color: #fff;
        text-decoration: none;
    }
    .m-menu__phone i, .m-menu__email i { font-size: 22px; color: var(--kub-cta); }
    .m-menu__email {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 40px;
        font-size: 14px;
        color: #D8C7AE;
        text-decoration: none;
    }
    .m-menu__cta {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 50px;
        margin-top: 8px;
        background: var(--kub-cta);
        color: #fff;
        border-radius: 8px;
        font-weight: 600;
        font-size: 15px;
        text-decoration: none;
    }

    /* Кольца спирали между шапкой и кремовым блоком */
    .m-coils {
        display: flex;
        justify-content: space-around;
        align-items: flex-start;
        height: 22px;
        background: var(--kub-cream);
        padding: 0 10px;
        border-bottom: 3px dashed #3A3A3A;
        border-radius: 14px 14px 0 0;
    }
    .m-coil {
        position: relative;
        width: 13px;
        height: 40px;
        margin-top: -12px;
        z-index: 1;
    }
    .m-coil::before,
    .m-coil::after {
        content: '';
        position: absolute;
        left: 0;
        width: 13px;
        height: 13px;
        border-radius: 50%;
        background: radial-gradient(circle at 45% 40%, #3A3A3A 0%, #0E0E0E 60%, #000 100%);
    }
    .m-coil::before { top: 0; }
    .m-coil::after { bottom: 0; }
    .m-coil span {
        position: absolute;
        top: 6px;
        bottom: 6px;
        left: 2px;
        right: 2px;
        border-radius: 5px;
        background: linear-gradient(180deg, #1A1A1A 0%, #8E8E8E 10%, #E9E9E9 24%, #FFFFFF 40%, #F4F4F4 58%, #CFCFCF 78%, #8E8E8E 90%, #1A1A1A 100%);
        box-shadow: inset 2px 0 1px rgba(255, 255, 255, 0.8), inset -2px 0 2px rgba(0, 0, 0, 0.28);
    }

    /* «Лист» превращается в колонку */
    .sheet {
        display: block;
        border-radius: 0;
        box-shadow: none;
    }

    .sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 22px 18px 24px;
    }
    .sidebar__links, .sidebar__bottom { display: contents; }
    .sidebar__links a[href^="mailto"] { display: none; }
    .sidebar__order {
        grid-column: 1 / -1;
        height: 50px;
        order: 1;
    }
    .sidebar__links a,
    .sidebar__bottom a {
        order: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        height: 44px;
        min-height: 44px;
        border-radius: 8px;
        border: 1px solid #D9BD91;
        font-size: 13px;
        color: var(--kub-text);
        text-decoration: none;
        margin: 0;
    }
    .sidebar__links a i, .sidebar__bottom a i { font-size: 17px; }
    .sidebar__services {
        grid-column: 1 / -1;
        order: 3;
        margin-top: 4px;
        border-radius: 10px;
        background: var(--kub-cream-light);
        overflow: hidden;
    }
    .sidebar__services > summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 52px;
        padding: 0 16px;
        font-size: 16px;
        font-weight: 600;
        color: var(--kub-text-dark);
        cursor: pointer;
        list-style: none;
    }
    .sidebar__services > summary::-webkit-details-marker { display: none; }
    .sidebar__services > summary i { font-size: 18px; color: var(--kub-accent); transition: transform 0.15s; }
    .sidebar__services[open] > summary i { transform: rotate(180deg); }
    .services-list { padding: 0 8px 8px; }
    .services-list a {
        align-items: center;
        min-height: 44px;
        padding: 0 8px;
        border-top: 1px solid #EFE1C7;
        border-radius: 0;
    }
    .services-list a i { margin-top: 0; }

    /* Контент */
    .sheet__content { padding: 24px 18px 40px; }
    .hero { border-radius: 8px; }
    .front-title, .entry-title { font-size: 28px; margin: 28px 0 14px; }
    .entry-content, .front-text { font-size: 15px; line-height: 1.65; }
    .entry-content p, .front-text p { margin: 0 0 12px; }
    .entry-content h2 { font-size: 21px; }

    .clients { margin-top: 40px; }
    .clients__title { font-size: 21px; margin: 0 0 16px; }
    .clients__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .clients__item { height: 64px; padding: 0 14px; border-radius: 8px; }

    .order { margin-top: 40px; padding: 22px 18px; border-radius: 12px; }
    .order__title { font-size: 21px; margin: 0 0 14px; }
    .kubariki-form { grid-template-columns: 1fr; gap: 10px; }
    .kubariki-form input[type="text"],
    .kubariki-form input[type="tel"],
    .kubariki-form input[type="email"] {
        height: 48px;
        font-size: 16px;
    }
    .kubariki-form textarea { font-size: 16px; }
    .pf-submit { height: 50px; width: 100%; }

    .child-list { grid-template-columns: 1fr; }

    .site-footer__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 22px 18px 48px;
    }
    .site-footer__contacts { flex-direction: column; gap: 6px; }
    .site-footer__contacts a[href^="tel"] { color: #fff; font-size: 17px; font-weight: 600; }
}

/* ---------- Куки-уведомление ---------- */

.cookie-notice {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 50;
    display: flex;
    justify-content: center;
    pointer-events: none;
}
.cookie-notice[hidden] { display: none; }
.cookie-notice__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 720px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #3F3F3F;
    color: var(--kub-footer);
    font-size: 13px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
}
.cookie-notice__text { margin: 0; }
.cookie-notice__more { color: #fff; }
.cookie-notice__accept {
    flex-shrink: 0;
    height: 40px;
    padding: 0 18px;
    border: none;
    border-radius: 8px;
    background: var(--kub-cta);
    color: #fff;
    font-family: inherit;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}
.cookie-notice__accept:hover { background: var(--kub-accent); }

@media (max-width: 1079px) {
    .cookie-notice { left: 12px; right: 12px; bottom: 12px; }
    .cookie-notice__inner { flex-direction: column; align-items: stretch; gap: 10px; text-align: center; }
}

/* ---------- Попап «Оставить заявку» ---------- */

.order-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 16px;
}
.order-modal[hidden] { display: none; }
.order-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(46, 31, 18, 0.55);
}
.order-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: var(--kub-cream-light);
    border: 1px solid var(--kub-line);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 24px 60px rgba(46, 31, 18, 0.4);
}
.order-modal__title {
    margin: 0 40px 14px 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--kub-text-dark);
}
.order-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--kub-line);
    border-radius: 8px;
    background: #fff;
    color: var(--kub-text);
    cursor: pointer;
    font-size: 18px;
    transition: background 160ms ease, color 160ms ease;
}
.order-modal__close:hover { background: var(--kub-accent); color: #fff; }
.order-modal .ph-duotone.ph-x:before { opacity: 0; }

/* Компактная одноколоночная форма: целиком влезает в высоту экрана. */
.order-modal .kubariki-form { grid-template-columns: 1fr; gap: 10px; }
.order-modal .kubariki-form .pf-row { gap: 4px; }
.order-modal .kubariki-form input[type="text"],
.order-modal .kubariki-form input[type="tel"],
.order-modal .kubariki-form input[type="email"] { height: 44px; }
.order-modal .kubariki-form textarea { height: 72px; min-height: 72px; }
.order-modal .pf-submit { height: 46px; width: 100%; }

@media (max-width: 1079px) {
    .order-modal { padding: 12px; }
    .order-modal__dialog { max-height: calc(100vh - 24px); padding: 20px 16px; }
}
/* form-style-20261116:outline */
form[action*="admin-ajax"] :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=range]), select, textarea){border-radius:4px 12px 12px 4px;border-style:solid;border-width:1px 1px 1px 5px;transition:border-color .18s,box-shadow .18s,background .18s}
form[action*="admin-ajax"] textarea{border-radius:4px 12px 12px 4px;}
form[action*="admin-ajax"] :is(button[type=submit], input[type=submit], .pf-submit, .form-submit){border-radius:4px 12px 12px 4px;border-width:2px;border-style:solid;background:transparent;color:inherit;}
