/*
 * custom.css — рабочая упорядоченная версия
 * Последнее обновление: личный кабинет, вход, каталог проектов, HPO-страницы
 *
 * Структура:
 * 01. Палитра и базовые настройки
 * 02. Общие страницы HPO
 * 03. Кнопки, формы, таблицы
 * 04. Каталог проектов и фильтры
 * 05. Карточки проектов
 * 06. Страница одного проекта
 * 07. Лайтбокс галереи
 * 08. Страница входа / Личный кабинет
 * 09. Служебные правки
 * 10. Адаптив
 */

/* =========================================================
   01. ПАЛИТРА И БАЗОВЫЕ НАСТРОЙКИ
========================================================= */

:root {
    --hpo-bg: #f5f5f7;
    --hpo-surface: #ffffff;
    --hpo-border-subtle: #e0e0e5;
    --hpo-border-soft: #e5e7eb;
    --hpo-text-main: #1f1f24;
    --hpo-text-dark: #111827;
    --hpo-text-muted: #777784;
    --hpo-accent: #2c7be5;
    --hpo-accent-hover: #215fb2;
    --hpo-accent-soft: rgba(44, 123, 229, 0.08);
    --hpo-danger: #e53935;
    --hpo-radius-lg: 14px;
    --hpo-radius-xl: 22px;
    --hpo-shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.06);
}

body {
    background-color: var(--hpo-bg);
    color: var(--hpo-text-main);
}


/* =========================================================
   02. ОБЩИЕ СТРАНИЦЫ HPO
========================================================= */

.hpo-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.hpo-page-title,
.hpo-catalog-title {
    font-size: clamp(2rem, 2.4vw, 2.6rem);
    line-height: 1.2;
    font-weight: 600;
    margin: 0 0 2rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--hpo-border-subtle);
    color: var(--hpo-text-dark);
}

.hpo-card {
    background-color: var(--hpo-surface);
    border-radius: var(--hpo-radius-lg);
    box-shadow: var(--hpo-shadow-soft);
    padding: 1.75rem 1.75rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.03);
}

.hpo-section-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.hpo-muted {
    color: var(--hpo-text-muted);
    font-size: 0.9rem;
}

.hpo-page-wrapper p {
    margin-bottom: 0.9rem;
}

.hpo-page-wrapper .hpo-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    font-size: 0.9rem;
    color: var(--hpo-text-muted);
    text-decoration: none;
    margin-bottom: 1.25rem;
}

.hpo-page-wrapper .hpo-back-link:hover {
    color: var(--hpo-accent);
    text-decoration: underline;
}


/* =========================================================
   03. КНОПКИ, ФОРМЫ, ТАБЛИЦЫ
========================================================= */

.hpo-page-wrapper .button,
.hpo-page-wrapper a.button,
.hpo-page-wrapper button,
.hpo-page-wrapper input[type="submit"],
.hpo-page-wrapper .hpo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background-color: var(--hpo-accent);
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    line-height: 1.1;
    cursor: pointer;
    transition: all 0.18s ease-out;
    box-shadow: 0 10px 22px rgba(44, 123, 229, 0.25);
}

.hpo-page-wrapper .button:hover,
.hpo-page-wrapper a.button:hover,
.hpo-page-wrapper button:hover,
.hpo-page-wrapper input[type="submit"]:hover,
.hpo-page-wrapper .hpo-btn:hover {
    background-color: var(--hpo-accent-hover);
    box-shadow: 0 14px 30px rgba(44, 123, 229, 0.35);
    transform: translateY(-1px);
    text-decoration: none;
}

.hpo-page-wrapper .button:disabled,
.hpo-page-wrapper button:disabled,
.hpo-page-wrapper input[type="submit"]:disabled {
    opacity: 0.65;
    cursor: default;
    box-shadow: none;
}

.hpo-page-wrapper .hpo-table-scroll {
    width: 100%;
    overflow-x: auto;
}

.hpo-page-wrapper table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--hpo-surface);
    border-radius: var(--hpo-radius-lg);
    overflow: hidden;
    box-shadow: var(--hpo-shadow-soft);
    font-size: 0.95rem;
}

.hpo-page-wrapper table thead {
    background: linear-gradient(90deg, rgba(44, 123, 229, 0.9), rgba(44, 123, 229, 0.7));
    color: #ffffff;
}

.hpo-page-wrapper table th,
.hpo-page-wrapper table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--hpo-border-subtle);
    white-space: nowrap;
}

.hpo-page-wrapper table th {
    font-weight: 600;
    font-size: 0.9rem;
}

.hpo-page-wrapper table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.hpo-page-wrapper table tbody tr:last-child td {
    border-bottom: none;
}

.hpo-page-wrapper form {
    background-color: var(--hpo-surface);
    border-radius: var(--hpo-radius-lg);
    box-shadow: var(--hpo-shadow-soft);
    padding: 1.75rem 1.75rem 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.03);
}

.hpo-page-wrapper label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: var(--hpo-text-main);
}

.hpo-page-wrapper input[type="text"],
.hpo-page-wrapper input[type="email"],
.hpo-page-wrapper input[type="tel"],
.hpo-page-wrapper input[type="number"],
.hpo-page-wrapper textarea,
.hpo-page-wrapper select {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--hpo-border-subtle);
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    line-height: 1.4;
    background-color: #fbfbfd;
    transition: border-color 0.16s ease-out, box-shadow 0.16s ease-out, background-color 0.16s ease-out;
    margin-bottom: 0.9rem;
}

.hpo-page-wrapper textarea {
    min-height: 140px;
    resize: vertical;
}

.hpo-page-wrapper input[type="text"]:focus,
.hpo-page-wrapper input[type="email"]:focus,
.hpo-page-wrapper input[type="tel"]:focus,
.hpo-page-wrapper input[type="number"]:focus,
.hpo-page-wrapper textarea:focus,
.hpo-page-wrapper select:focus {
    outline: none;
    border-color: var(--hpo-accent);
    box-shadow: 0 0 0 1px var(--hpo-accent-soft);
    background-color: #ffffff;
}


/* =========================================================
   04. КАТАЛОГ ПРОЕКТОВ И ФИЛЬТРЫ
========================================================= */

.hpo-catalog-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 40px 0 60px;
}

.hpo-catalog-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
}

.hpo-catalog-sidebar {
    background: #f9fafb;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    font-size: 0.9rem;
}

.hpo-filter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hpo-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hpo-filter-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4b5563;
}

.hpo-filter-inline {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hpo-filter-inline input[type="number"] {
    max-width: 100px;
}

.hpo-filter-separator {
    color: #9ca3af;
}

.hpo-filter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.hpo-filter-submit {
    padding: 7px 14px;
    border-radius: 999px;
}

.hpo-filter-reset {
    font-size: 0.85rem;
    color: #6b7280;
    text-decoration: underline;
}

.hpo-filter-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hpo-filter-checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #374151;
}

.hpo-filter-checkbox-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
}

.hpo-catalog-results {
    min-height: 200px;
}

.hpo-catalog-empty {
    padding: 24px;
    border-radius: 16px;
    background: #f9fafb;
    text-align: center;
}


/* =========================================================
   05. КАРТОЧКИ ПРОЕКТОВ
========================================================= */

.hpo-page-wrapper .hpo-projects-grid .hpo-shop-grid,
.hpo-catalog-page .hpo-shop-grid {
    justify-content: flex-start;
    margin-top: 0.5rem;
}

.hpo-page-wrapper .hpo-projects-grid .hpo-shop-item,
.hpo-catalog-page .hpo-shop-item {
    width: calc(33.333% - 24px) !important;
    min-width: 280px !important;
    box-sizing: border-box;
    background-color: var(--hpo-surface) !important;
    border-radius: var(--hpo-radius-lg) !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    box-shadow: var(--hpo-shadow-soft);
    padding: 1.3rem 1.3rem 1.1rem !important;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 320px;
    position: relative;
}

.hpo-page-wrapper .hpo-projects-grid .hpo-shop-item img,
.hpo-catalog-page .hpo-shop-item img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.hpo-page-wrapper .hpo-projects-grid .hpo-shop-item h3,
.hpo-catalog-page .hpo-shop-item h3 {
    margin: 0 0 0.35rem 0 !important;
    font-size: 1.05rem !important;
    font-weight: 600;
}

.hpo-page-wrapper .hpo-projects-grid .hpo-shop-item p,
.hpo-catalog-page .hpo-shop-item p {
    margin: 0 0 0.9rem 0 !important;
}

.hpo-page-wrapper .hpo-projects-grid .hpo-shop-item > div:last-child,
.hpo-catalog-page .hpo-shop-item > div:last-child {
    margin-top: auto;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

.hpo-page-wrapper .hpo-projects-grid .hpo-shop-item > div:last-child > *,
.hpo-catalog-page .hpo-shop-item > div:last-child > * {
    flex: 1 1 0;
}

.hpo-page-wrapper .hpo-projects-grid .hpo-shop-item form,
.hpo-catalog-page .hpo-shop-item form {
    margin: 0 !important;
    display: block;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 !important;
}

.hpo-page-wrapper .hpo-projects-grid .hpo-shop-item form .button,
.hpo-page-wrapper .hpo-projects-grid .hpo-shop-item form .button-primary,
.hpo-page-wrapper .hpo-projects-grid .hpo-shop-item > div:last-child > a.button,
.hpo-catalog-page .hpo-shop-item form .button,
.hpo-catalog-page .hpo-shop-item form .button-primary,
.hpo-catalog-page .hpo-shop-item > div:last-child > a.button,
.hpo-catalog-page .hpo-shop-item .button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    width: 100%;
    min-width: 0 !important;
    text-align: center;
    padding: 8px 10px !important;
    border-radius: 999px;
    border: 1px solid var(--hpo-accent) !important;
    background-color: transparent !important;
    color: var(--hpo-accent) !important;
    box-shadow: none !important;
    text-decoration: none !important;
    font-size: 12px !important;
    line-height: 1.1;
}

.hpo-page-wrapper .hpo-projects-grid .hpo-shop-item form .button:hover,
.hpo-page-wrapper .hpo-projects-grid .hpo-shop-item form .button-primary:hover,
.hpo-page-wrapper .hpo-projects-grid .hpo-shop-item > div:last-child > a.button:hover,
.hpo-catalog-page .hpo-shop-item form .button:hover,
.hpo-catalog-page .hpo-shop-item form .button-primary:hover,
.hpo-catalog-page .hpo-shop-item > div:last-child > a.button:hover,
.hpo-catalog-page .hpo-shop-item .button:hover {
    background-color: var(--hpo-accent) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(44, 123, 229, 0.25) !important;
}


/* =========================================================
   06. СТРАНИЦА ОДНОГО ПРОЕКТА
========================================================= */

.hpo-single-project {
    padding: 40px 0;
}

.hpo-project-article {
    max-width: 1200px;
    margin: 0 auto;
}

.hpo-project-header,
.hpo-project-single__header {
    margin-bottom: 24px;
}

.hpo-project-title,
.hpo-project-single__title {
    font-size: clamp(2rem, 2.4vw, 2.6rem);
    line-height: 1.2;
    font-weight: 600;
    margin: 0;
}

.hpo-project-single__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1.75rem;
    align-items: flex-start;
}

.hpo-project-single__left,
.hpo-project-gallery-block {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hpo-project-single__right {
    display: flex;
    flex-direction: column;
}

.hpo-project-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.hpo-project-single__media,
.hpo-project-main-image {
    background: #f7f7fb;
    border-radius: 24px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

.hpo-project-single__thumbnail,
.hpo-project-main-image img.hpo-project-main-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
}

.hpo-project-single__placeholder-inner {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--hpo-text-muted);
}

.hpo-project-single__placeholder-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.hpo-project-single__placeholder-text {
    font-size: 0.95rem;
    line-height: 1.4;
}

.hpo-project-single__gallery,
.hpo-project-thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0.25rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.hpo-project-thumbs {
    list-style: none;
    margin: 0;
    padding: 4px 2px;
    gap: 12px;
}

.hpo-project-single__gallery-item,
.hpo-project-thumb-item {
    flex: 0 0 auto;
}

.hpo-project-single__gallery-link {
    display: block;
    cursor: zoom-in;
}

.hpo-project-single__gallery-thumb,
.hpo-project-thumb-img {
    display: block;
    width: 120px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
    transition: transform 0.16s ease-out, box-shadow 0.16s ease-out;
}

.hpo-project-thumb-img {
    width: 110px;
    height: 72px;
}

.hpo-project-single__gallery-link:hover .hpo-project-single__gallery-thumb,
.hpo-project-thumb-item:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
}

.hpo-project-single__meta-block {
    margin-bottom: 1.25rem;
}

.hpo-project-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.25rem;
    margin-bottom: 0.75rem;
}

.hpo-project-meta-item {
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    background-color: #f7f8fc;
}

.hpo-project-meta-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--hpo-text-muted);
    margin-bottom: 0.15rem;
}

.hpo-project-meta-value {
    font-size: 0.98rem;
    font-weight: 600;
}

.hpo-project-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.hpo-project-meta-tag {
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background-color: var(--hpo-accent-soft);
    color: var(--hpo-accent);
}

.hpo-project-single__description-text p:last-child {
    margin-bottom: 0;
}

.hpo-project-single__order-box {
    background-color: var(--hpo-surface);
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 18px 22px;
}

.hpo-project-single__order-inner {
    max-width: 100%;
}

.hpo-project-single__order-inner .wp-block-gallery,
.hpo-project-single__order-inner img {
    display: none !important;
}

.hpo-project-single__order-inner .hpo-project-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    text-align: left;
}

.hpo-project-single__order-inner .hpo-project-block h3 {
    display: none;
}

.hpo-project-single__order-inner .hpo-project-block > p {
    margin: 0;
    font-size: 1.1rem;
}

.hpo-project-single__order-inner .hpo-project-block > p strong {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 2px;
    font-weight: 600;
}

.hpo-project-single__order-inner .hpo-project-block form,
.hpo-project-single__order-inner .hpo-project-block a.button {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.hpo-project-single__order-inner .hpo-project-block .button,
.hpo-project-single__order-inner .button,
.hpo-project-single__order-inner .button-primary,
.hpo-project-single__order-inner a.button {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.95rem;
    padding: 10px 22px;
    border-radius: 999px;
    white-space: nowrap;
    border: 1px solid var(--hpo-accent) !important;
    background-color: transparent !important;
    color: var(--hpo-accent) !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.hpo-project-single__order-inner .hpo-project-block .button:hover,
.hpo-project-single__order-inner .button:hover,
.hpo-project-single__order-inner .button-primary:hover,
.hpo-project-single__order-inner a.button:hover {
    background-color: var(--hpo-accent) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(44, 123, 229, 0.25) !important;
}


/* =========================================================
   07. ЛАЙТБОКС ГАЛЕРЕИ
========================================================= */

.hpo-lightbox {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.78);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1.5rem;
}

.hpo-lightbox--open {
    display: flex;
}

.hpo-lightbox__inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hpo-lightbox__image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    background-color: #000;
}

.hpo-lightbox__close,
.hpo-lightbox__nav {
    position: absolute;
    border-radius: 999px;
    border: none;
    background-color: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.hpo-lightbox__close {
    top: -2.5rem;
    right: -0.25rem;
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.4rem;
}

.hpo-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.3rem;
}

.hpo-lightbox__nav--prev {
    left: -1rem;
}

.hpo-lightbox__nav--next {
    right: -1rem;
}


/* =========================================================
   08. СТРАНИЦА ВХОДА / ЛИЧНЫЙ КАБИНЕТ
========================================================= */

body.page-id-93 article.single-entry {
    margin-top: 35px !important;
}

body.page-id-93 .entry-content-wrap {
    padding: 30px 40px 40px !important;
}

body.page-id-93 .entry-content.single-content {
    display: flex !important;
    justify-content: center !important;
}

/* Форма входа */
body.page-id-93 .um-login {
    width: 100% !important;
    max-width: 760px !important;
    margin: 0 auto !important;
}

body.page-id-93 .um-login::before {
    content: "Вход" !important;
    display: block !important;
    width: 100% !important;
    max-width: 760px !important;
    margin: 0 0 26px !important;
    padding: 0 0 18px !important;
    border-bottom: 1px solid #e5e7eb !important;
    font-size: 42px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: -1px !important;
    color: #111827 !important;
    text-align: left !important;
}

body.page-id-93 .um-login::after {
    content: "Авторизуйтесь для покупки проектов и доступа к заказам.";
    display: block;
    text-align: center;
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.5;
    color: #64748b;
}

body.page-id-93 .um-login .um-form {
    max-width: 520px !important;
    margin: 0 auto !important;
    padding: 38px !important;
    border: 1px solid #dbe4f0 !important;
    border-radius: 28px !important;
    background: #ffffff !important;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08) !important;
}

body.page-id-93 .um-login .um-form-title {
    display: none !important;
}

body.page-id-93 .um-login input[type="text"],
body.page-id-93 .um-login input[type="password"] {
    height: 52px !important;
    border-radius: 12px !important;
    border: 1px solid #d6deea !important;
    background: #f8fafc !important;
    font-size: 16px !important;
    padding: 0 16px !important;
    box-shadow: none !important;
}

body.page-id-93 .um-login .um-field-label label {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #334155 !important;
}

body.page-id-93 .um-login .um-field-checkbox {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 18px 0 0 !important;
}

body.page-id-93 .um-login .um-field-checkbox-option {
    white-space: nowrap !important;
    font-size: 14px !important;
    color: #64748b !important;
}

body.page-id-93 .um-login .um-col-alt {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin-top: 18px !important;
}

body.page-id-93 .um-login .um-left,
body.page-id-93 .um-login .um-right {
    width: 50% !important;
    float: none !important;
    margin: 0 !important;
}

body.page-id-93 .um-login .um-button,
body.page-id-93 .um-login input.um-button,
body.page-id-93 .um-login a.um-button {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    border: 1.5px solid #2563eb !important;
    background: transparent !important;
    color: #2563eb !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: all 0.25s ease !important;
}

body.page-id-93 .um-login .um-button:hover,
body.page-id-93 .um-login input.um-button:hover,
body.page-id-93 .um-login a.um-button:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.20) !important;
    transform: translateY(-1px);
}

body.page-id-93 .um-login .um-col-alt-b,
body.page-id-93 .um-login .um-link-alt,
body.page-id-93 .project01-register-link {
    display: none !important;
}

/* Компактный личный кабинет */
body.page-id-93 .lk-modern {
    max-width: 760px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

body.page-id-93 .lk-modern-header {
    width: 100% !important;
    max-width: 760px !important;
    margin: 0 auto 26px !important;
}

body.page-id-93 .lk-modern-header h1 {
    width: 100% !important;
    display: block !important;
    text-align: left !important;
    font-size: 42px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: -1px !important;
    margin: 0 0 26px !important;
    padding: 0 0 18px !important;
    border-bottom: 1px solid #e5e7eb !important;
    color: #111827 !important;
}

body.page-id-93 .lk-modern-card {
    max-width: 480px !important;
    margin: 0 auto !important;
    padding: 28px 30px !important;
    display: grid !important;
    grid-template-columns: 120px 1fr !important;
    gap: 28px !important;
    border: 1px solid #dbe4f0 !important;
    border-radius: 28px !important;
    background: #ffffff !important;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08) !important;
}

body.page-id-93 .lk-modern-avatar {
    min-height: auto !important;
    border-right: 1px solid #e5e7eb !important;
    padding-right: 22px !important;
}

body.page-id-93 .lk-modern-avatar-circle {
    width: 86px !important;
    height: 86px !important;
    margin-left: 0 !important;
}

body.page-id-93 .lk-modern-avatar-circle svg {
    width: 36px !important;
    height: 36px !important;
}

body.page-id-93 .lk-modern-name {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 0 12px !important;
}

body.page-id-93 .lk-modern-divider {
    margin-bottom: 16px !important;
}

body.page-id-93 .lk-modern-links {
    gap: 12px !important;
}

body.page-id-93 .lk-modern-link {
    font-size: 14px !important;
    font-weight: 600 !important;
}

body.page-id-93 .lk-modern-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
}

body.page-id-93 .lk-modern-icon svg {
    width: 17px !important;
    height: 17px !important;
}


/* =========================================================
   09. СЛУЖЕБНЫЕ ПРАВКИ
========================================================= */

.um-login .um-col-alt-b {
    display: none !important;
}


/* =========================================================
   10. АДАПТИВ
========================================================= */

@media (min-width: 900px) {
    .hpo-project-layout {
        flex-direction: row;
        align-items: flex-start;
    }

    .hpo-project-gallery-block {
        flex: 0 0 60%;
    }

    .hpo-project-content {
        flex: 0 0 40%;
    }
}

@media (max-width: 1024px) {
    .hpo-project-single__layout,
    .hpo-catalog-layout {
        grid-template-columns: 1fr;
    }

    .hpo-catalog-page .hpo-shop-item,
    .hpo-page-wrapper .hpo-projects-grid .hpo-shop-item {
        width: calc(50% - 20px) !important;
    }
}

@media (max-width: 768px) {
    .hpo-page-wrapper {
        padding: 2rem 1rem;
    }

    .hpo-card,
    .hpo-page-wrapper form {
        padding: 1.25rem 1.25rem 1rem;
        margin-bottom: 1.25rem;
    }

    .hpo-page-wrapper table {
        font-size: 0.9rem;
        display: block;
        overflow-x: auto;
    }

    .hpo-page-wrapper table th,
    .hpo-page-wrapper table td {
        padding: 0.6rem 0.75rem;
    }

    body.page-id-93 .entry-content-wrap {
        padding: 28px 18px !important;
    }

    body.page-id-93 .um-login::before,
    body.page-id-93 .lk-modern-header h1 {
        font-size: 32px !important;
    }

    body.page-id-93 .um-login .um-form {
        padding: 28px 22px !important;
    }

    body.page-id-93 .um-login input[type="text"],
    body.page-id-93 .um-login input[type="password"] {
        height: 48px !important;
    }

    body.page-id-93 .um-login .um-button,
    body.page-id-93 .um-login a.um-button {
        height: 48px !important;
        font-size: 15px !important;
    }

    body.page-id-93 .lk-modern-card {
        grid-template-columns: 1fr !important;
        max-width: 520px !important;
        text-align: center;
    }

    body.page-id-93 .lk-modern-avatar {
        border-right: none !important;
        border-bottom: 1px solid #e5e7eb !important;
        padding-right: 0 !important;
        padding-bottom: 22px !important;
        justify-content: center !important;
    }

    .hpo-lightbox {
        padding: 0.75rem;
    }

    .hpo-lightbox__close {
        top: 0.5rem;
        right: 0.5rem;
        background-color: rgba(15, 23, 42, 0.95);
    }

    .hpo-lightbox__nav--prev {
        left: 0.5rem;
    }

    .hpo-lightbox__nav--next {
        right: 0.5rem;
    }
}

@media (max-width: 640px) {
    .hpo-project-meta-grid {
        grid-template-columns: 1fr;
    }

    .hpo-catalog-page .hpo-shop-item,
    .hpo-page-wrapper .hpo-projects-grid .hpo-shop-item {
        width: 100% !important;
        min-width: 0 !important;
    }

    body.page-id-93 .um-login .um-col-alt {
        flex-direction: column !important;
    }

    body.page-id-93 .um-login .um-left,
    body.page-id-93 .um-login .um-right {
        width: 100% !important;
    }
}
/* =========================================================
   МОИ ЗАКАЗЫ — ПЕРЕНОС СТОИМОСТИ ПО СТРОКАМ
========================================================= */

.hpo-orders-table td:nth-child(5),
.hpo-page-wrapper table td:nth-child(5) {
    white-space: normal !important;
    line-height: 1.5;
}

/* Перенос строки после "Изм:" */
.hpo-orders-table td:nth-child(5) br,
.hpo-page-wrapper table td:nth-child(5) br {
    display: block !important;
    content: "";
    margin-bottom: 4px;
}
/* =========================================================
   СПОКОЙНЫЙ ТЕКСТ АВТОРИЗАЦИИ
========================================================= */

.hpo-shop-item p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #7b8794 !important;
    font-weight: 400 !important;
}

/* Страница проекта */
.hpo-project-sidebar p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #7b8794 !important;
    font-weight: 400 !important;
}
/* =========================================================
   ТЕКСТ АВТОРИЗАЦИИ В КАРТОЧКЕ ПРОЕКТА
========================================================= */

.hpo-project-block p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #7b8794 !important;
    font-weight: 400 !important;
}
/* Страница входа — спокойный текст под формой */
body.page-id-93 .project01-auth-wrapper .um-login::after,
body.page-id-93 .um-login::after {
    content: "Авторизуйтесь для покупки проектов и доступа к заказам." !important;

    display: block !important;
    margin-top: 18px !important;

    font-size: 14px !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
    color: #7b8794 !important;

    text-align: center !important;
}
/* =========================================================
   ЛИЧНЫЙ КАБИНЕТ — МОИ ЗАКАЗЫ
   Исправление наложения статуса на сумму
========================================================= */

.page table td:nth-child(4),
.page table th:nth-child(4) {
    min-width: 210px !important;
    width: 210px !important;
    white-space: normal !important;
    line-height: 1.4 !important;
}

.page table td:nth-child(5),
.page table th:nth-child(5) {
    min-width: 120px !important;
    width: 120px !important;
    white-space: nowrap !important;
}

.page table td:nth-child(4) strong,
.page table td:nth-child(4) span {
    white-space: normal !important;
}
/* =========================================================
   ЛИЧНЫЙ КАБИНЕТ — МОИ ЗАКАЗЫ
========================================================= */

.page table {
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
}

.page table th,
.page table td {
    box-sizing: border-box !important;
    padding: 16px 8px !important;
    vertical-align: middle !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    text-align: center !important;
}

/* Ширина колонок */
.page table th:nth-child(1),
.page table td:nth-child(1) {
    width: 13% !important;
    white-space: nowrap !important;
}

.page table th:nth-child(2),
.page table td:nth-child(2) {
    width: 13% !important;
}

.page table th:nth-child(3),
.page table td:nth-child(3) {
    width: 13% !important;
}

.page table th:nth-child(4),
.page table td:nth-child(4) {
    width: 17% !important;
    color: #007a2f !important;
    font-weight: 700 !important;
}

.page table th:nth-child(5),
.page table td:nth-child(5) {
    width: 12% !important;
    white-space: nowrap !important;
}

.page table th:nth-child(6),
.page table td:nth-child(6) {
    width: 16% !important;
    white-space: nowrap !important;
}

.page table th:nth-child(7),
.page table td:nth-child(7) {
    width: 8% !important;
    white-space: nowrap !important;
}

.page table th:nth-child(8),
.page table td:nth-child(8) {
    width: 8% !important;
    white-space: nowrap !important;
}

/* Кнопка оплаты */
.page table td:nth-child(6) a,
.page table td:nth-child(6) button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 150px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
}

/* Кнопка скачать */
.page table td:nth-child(7) a,
.page table td:nth-child(7) button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
}

/* Подробнее */
.page table td:nth-child(8) a {
    font-size: 14px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

/* Строки */
.page table tbody tr:hover {
    background: #f8fbff !important;
}
/* =========================================================
   МОИ ЗАКАЗЫ — ПЕРЕНОСЫ СТРОК
========================================================= */

/* Дата */
.page table td:nth-child(1) {
    white-space: normal !important;
    line-height: 1.4 !important;
}

/* Проект */
.page table td:nth-child(2) {
    white-space: normal !important;
    line-height: 1.4 !important;
}

/* Статус */
.page table td:nth-child(4) {
    white-space: normal !important;
    line-height: 1.4 !important;
}
/* Сумма в две строки */
.page table td:nth-child(5) {
    line-height: 1.5 !important;
    white-space: normal !important;
}
/* =========================================================
   МОИ ЗАКАЗЫ — ТОНКАЯ НАСТРОЙКА ШИРИНЫ КОЛОНОК
========================================================= */

/* Дата */
.page table th:nth-child(1),
.page table td:nth-child(1) {
    width: 14% !important;
}

/* Проект */
.page table th:nth-child(2),
.page table td:nth-child(2) {
    width: 12% !important;
}

/* Тип заказа */
.page table th:nth-child(3),
.page table td:nth-child(3) {
    width: 15% !important;
}

/* Статус */
.page table th:nth-child(4),
.page table td:nth-child(4) {
    width: 15% !important;
}

/* Сумма */
.page table th:nth-child(5),
.page table td:nth-child(5) {
    width: 13% !important;
}

/* Оплата */
.page table th:nth-child(6),
.page table td:nth-child(6) {
    width: 15% !important;
}

/* Файл */
.page table th:nth-child(7),
.page table td:nth-child(7) {
    width: 8% !important;
}

/* Подробнее */
.page table th:nth-child(8),
.page table td:nth-child(8) {
    width: 8% !important;
}
/* =========================================================
   СП 31-105-2002 — СТАТЬЯ БАЗЫ ЗНАНИЙ
   Единый чистый стиль без дублей
========================================================= */

/* ---------------------------------------------------------
   01. ОСНОВА СТАТЬИ
--------------------------------------------------------- */

.kb-sp-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 10px 0 70px;
    color: #172033;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.kb-sp-page * {
    box-sizing: border-box;
}

/* ---------------------------------------------------------
   02. ВЕРХНИЙ БЛОК
--------------------------------------------------------- */

.kb-sp-hero {
    margin: 0 0 46px !important;
    padding: 12px 0 10px !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.kb-sp-kicker {
    margin: 0 0 16px !important;
    color: #2563eb !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}

.kb-sp-hero h1 {
    margin: 0 0 18px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #0f1f3a !important;
    font-size: clamp(42px, 5vw, 64px) !important;
    line-height: 1.02 !important;
    font-weight: 700 !important;
    letter-spacing: -0.04em !important;
    text-shadow: none !important;
}

.kb-sp-lead {
    max-width: 900px !important;
    margin: 0 !important;
    color: #334155 !important;
    font-size: 20px !important;
    line-height: 1.75 !important;
    font-weight: 400 !important;
}

.kb-sp-tags {
    display: none !important;
}

/* ---------------------------------------------------------
   03. СЕКЦИИ И ТЕКСТ
--------------------------------------------------------- */

.kb-sp-section {
    margin: 0 0 64px;
}

.kb-sp-section h2 {
    margin: 0 0 28px !important;
    padding: 0 0 18px !important;
    border-bottom: 1px solid #dbe4f0 !important;
    background: transparent !important;
    color: #0f1f3a !important;
    font-size: clamp(30px, 3vw, 44px) !important;
    line-height: 1.16 !important;
    font-weight: 750 !important;
    letter-spacing: -0.03em;
    text-shadow: none !important;
}

.kb-sp-section h3 {
    margin: 0 0 12px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #0f1f3a !important;
    font-size: 22px !important;
    line-height: 1.3 !important;
    font-weight: 750 !important;
    text-shadow: none !important;
}

.kb-sp-section p,
.kb-sp-section li {
    color: #263b5e !important;
    font-size: 18px !important;
    line-height: 1.85 !important;
}

.kb-sp-section p {
    margin: 0 0 20px !important;
}

/* ---------------------------------------------------------
   04. ЗАМЕТКИ И ВЫВОДЫ
--------------------------------------------------------- */

.kb-sp-note,
.kb-sp-final {
    margin: 30px 0;
    padding: 26px 30px;
    border-radius: 24px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 18px;
    line-height: 1.8;
}

.kb-sp-note strong,
.kb-sp-final strong {
    font-weight: 800;
}

.kb-sp-final {
    font-size: 21px;
    font-weight: 800;
}

/* ---------------------------------------------------------
   05. КАРТОЧКИ
--------------------------------------------------------- */

.kb-sp-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 28px 0 0;
}

.kb-sp-card {
    padding: 26px;
    border: 1px solid #dbe4f0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.kb-sp-card p {
    margin: 0 !important;
    color: #475569 !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
}

/* ---------------------------------------------------------
   06. СПИСКИ
--------------------------------------------------------- */

.kb-sp-list {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.kb-sp-list li {
    position: relative;
    padding: 18px 22px 18px 54px;
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    background: #f8fafc;
}

.kb-sp-list li::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 29px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2563eb;
}

/* ---------------------------------------------------------
   07. ТАБЛИЦЫ
   Без лишних рамок, максимум места под текст
--------------------------------------------------------- */

.kb-sp-table-box {
    margin: 34px 0 48px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.kb-sp-table-title {
    margin: 0 0 8px !important;
    color: inherit !important;
    font-family: "Inter", system-ui, sans-serif !important;
    font-size: 28px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
}

.kb-sp-table-description {
    margin: 0 0 18px !important;
    color: inherit !important;
    opacity: 0.78 !important;
    font-family: "Inter", system-ui, sans-serif !important;
    font-size: 17px !important;
    line-height: 1.6 !important;
}

.kb-sp-table-scroll {
    width: 100% !important;
    overflow-x: auto !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.kb-sp-page .kb-sp-table-scroll table.kb-sp-original-table {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    table-layout: fixed !important;
    background: transparent !important;
    border: 1.5px solid currentColor !important;
    box-shadow: none !important;
}

.kb-sp-page .kb-sp-table-scroll table.kb-sp-original-table thead,
.kb-sp-page .kb-sp-table-scroll table.kb-sp-original-table tbody,
.kb-sp-page .kb-sp-table-scroll table.kb-sp-original-table tr {
    background: transparent !important;
}

.kb-sp-page .kb-sp-table-scroll table.kb-sp-original-table th,
.kb-sp-page .kb-sp-table-scroll table.kb-sp-original-table td {
    border: 1.5px solid currentColor !important;
    padding: 9px 10px !important;
    text-align: center !important;
    vertical-align: middle !important;
    white-space: normal !important;
    background: transparent !important;
    color: inherit !important;
    font-family: "Inter", system-ui, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    box-shadow: none !important;
}

.kb-sp-page .kb-sp-table-scroll table.kb-sp-original-table th {
    font-weight: 700 !important;
}

.kb-sp-page .kb-sp-table-scroll table.kb-sp-original-table sub {
    font-size: 70%;
    line-height: 0;
}

.kb-sp-page .kb-sp-original-table--compact th,
.kb-sp-page .kb-sp-original-table--compact td {
    font-size: 16px !important;
    padding: 10px 12px !important;
}

/* Примечания под таблицами */

.kb-sp-table-note {
    margin: 14px 0 0 !important;
    padding: 0 !important;
}

.kb-sp-table-note p {
    margin: 6px 0 0 !important;
    color: inherit !important;
    opacity: 0.85 !important;
    font-family: "Inter", system-ui, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.65 !important;
}

.kb-sp-table-note strong {
    color: inherit !important;
    font-weight: 800 !important;
}

/* ---------------------------------------------------------
   08. ТИПОВЫЕ ОШИБКИ
--------------------------------------------------------- */

.kb-sp-errors {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px !important;
    margin-top: 28px !important;
}

.kb-sp-errors > div {
    padding: 30px 32px !important;
    border-radius: 24px !important;
    border: 1px solid #dbe4f0 !important;
    background: #f8fafc !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05) !important;
    transition: all 0.2s ease !important;
}

.kb-sp-errors > div:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08) !important;
}

.kb-sp-errors h3 {
    margin: 0 0 18px !important;
    color: #0f172a !important;
    font-size: 24px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    text-shadow: none !important;
}

.kb-sp-errors p {
    margin: 0 !important;
    color: #475569 !important;
    font-size: 17px !important;
    line-height: 1.8 !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

/* ---------------------------------------------------------
   09. ПРАВОЕ МЕНЮ СТАТЬИ
--------------------------------------------------------- */

.single-wkb_article .wkb-sidebar,
.single-wkb_article .kb-sidebar,
.single-wkb_article aside,
.single-wkb_article .entry-sidebar {
    max-height: calc(100vh - 90px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 10px !important;
}

.single-wkb_article .wkb-sidebar::-webkit-scrollbar,
.single-wkb_article .kb-sidebar::-webkit-scrollbar,
.single-wkb_article aside::-webkit-scrollbar,
.single-wkb_article .entry-sidebar::-webkit-scrollbar {
    width: 6px;
}

.single-wkb_article .wkb-sidebar::-webkit-scrollbar-thumb,
.single-wkb_article .kb-sidebar::-webkit-scrollbar-thumb,
.single-wkb_article aside::-webkit-scrollbar-thumb,
.single-wkb_article .entry-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

/* ---------------------------------------------------------
   10. КНОПКА НАВЕРХ
--------------------------------------------------------- */

html {
    scroll-behavior: smooth;
}

.kb-scroll-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 9999;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;
    border: 1px solid #cfe0f7;

    background: #ffffff;
    color: #2563eb !important;

    font-size: 24px;
    font-weight: 800;
    line-height: 1;

    text-decoration: none !important;

    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);

    transition: all 0.2s ease;
}

.kb-scroll-top:hover {
    background: #2563eb;
    color: #ffffff !important;
    transform: translateY(-3px);
}

/* ---------------------------------------------------------
   11. ТЕМНАЯ ТЕМА
--------------------------------------------------------- */

body.wkb-dark .kb-sp-page,
body.dark .kb-sp-page,
body[data-theme="dark"] .kb-sp-page,
html[data-theme="dark"] .kb-sp-page {
    color: #f8fafc;
}

body.wkb-dark .kb-sp-hero h1,
body.dark .kb-sp-hero h1,
body[data-theme="dark"] .kb-sp-hero h1,
html[data-theme="dark"] .kb-sp-hero h1,
body.wkb-dark .kb-sp-section h2,
body.dark .kb-sp-section h2,
body[data-theme="dark"] .kb-sp-section h2,
html[data-theme="dark"] .kb-sp-section h2,
body.wkb-dark .kb-sp-section h3,
body.dark .kb-sp-section h3,
body[data-theme="dark"] .kb-sp-section h3,
html[data-theme="dark"] .kb-sp-section h3 {
    color: #f8fafc !important;
}

body.wkb-dark .kb-sp-lead,
body.dark .kb-sp-lead,
body[data-theme="dark"] .kb-sp-lead,
html[data-theme="dark"] .kb-sp-lead,
body.wkb-dark .kb-sp-section p,
body.dark .kb-sp-section p,
body[data-theme="dark"] .kb-sp-section p,
html[data-theme="dark"] .kb-sp-section p,
body.wkb-dark .kb-sp-section li,
body.dark .kb-sp-section li,
body[data-theme="dark"] .kb-sp-section li,
html[data-theme="dark"] .kb-sp-section li {
    color: #dbeafe !important;
}

body.wkb-dark .kb-sp-card,
body.dark .kb-sp-card,
body[data-theme="dark"] .kb-sp-card,
html[data-theme="dark"] .kb-sp-card {
    background: #172234;
    border-color: #334155;
}

body.wkb-dark .kb-sp-list li,
body.dark .kb-sp-list li,
body[data-theme="dark"] .kb-sp-list li,
html[data-theme="dark"] .kb-sp-list li {
    background: #111827;
    border-color: #334155;
}

body.wkb-dark .kb-sp-note,
body.dark .kb-sp-note,
body[data-theme="dark"] .kb-sp-note,
html[data-theme="dark"] .kb-sp-note,
body.wkb-dark .kb-sp-final,
body.dark .kb-sp-final,
body[data-theme="dark"] .kb-sp-final,
html[data-theme="dark"] .kb-sp-final {
    background: #10213f;
    border-color: #1d4ed8;
    color: #dbeafe;
}

body.wkb-dark .kb-sp-errors > div,
body.dark .kb-sp-errors > div,
body[data-theme="dark"] .kb-sp-errors > div,
html[data-theme="dark"] .kb-sp-errors > div {
    background: rgba(15, 23, 42, 0.55) !important;
    border-color: rgba(59, 130, 246, 0.18) !important;
    box-shadow:
        0 10px 30px rgba(0,0,0,0.18),
        inset 0 1px 0 rgba(255,255,255,0.04) !important;
}

body.wkb-dark .kb-sp-errors > div:hover,
body.dark .kb-sp-errors > div:hover,
body[data-theme="dark"] .kb-sp-errors > div:hover,
html[data-theme="dark"] .kb-sp-errors > div:hover {
    background: rgba(15, 23, 42, 0.72) !important;
    border-color: rgba(96, 165, 250, 0.35) !important;
}

body.wkb-dark .kb-sp-errors h3,
body.dark .kb-sp-errors h3,
body[data-theme="dark"] .kb-sp-errors h3,
html[data-theme="dark"] .kb-sp-errors h3 {
    color: #f8fafc !important;
}

body.wkb-dark .kb-sp-errors p,
body.dark .kb-sp-errors p,
body[data-theme="dark"] .kb-sp-errors p,
html[data-theme="dark"] .kb-sp-errors p {
    color: #cbd5e1 !important;
}

/* Таблицы в темной теме остаются читаемыми */
body.wkb-dark .kb-sp-page .kb-sp-table-scroll table.kb-sp-original-table,
body.dark .kb-sp-page .kb-sp-table-scroll table.kb-sp-original-table,
body[data-theme="dark"] .kb-sp-page .kb-sp-table-scroll table.kb-sp-original-table,
html[data-theme="dark"] .kb-sp-page .kb-sp-table-scroll table.kb-sp-original-table {
    background: transparent !important;
}

body.wkb-dark .kb-sp-page .kb-sp-table-scroll table.kb-sp-original-table th,
body.wkb-dark .kb-sp-page .kb-sp-table-scroll table.kb-sp-original-table td,
body.dark .kb-sp-page .kb-sp-table-scroll table.kb-sp-original-table th,
body.dark .kb-sp-page .kb-sp-table-scroll table.kb-sp-original-table td,
body[data-theme="dark"] .kb-sp-page .kb-sp-table-scroll table.kb-sp-original-table th,
body[data-theme="dark"] .kb-sp-page .kb-sp-table-scroll table.kb-sp-original-table td,
html[data-theme="dark"] .kb-sp-page .kb-sp-table-scroll table.kb-sp-original-table th,
html[data-theme="dark"] .kb-sp-page .kb-sp-table-scroll table.kb-sp-original-table td {
    background: transparent !important;
    color: #f8fafc !important;
    border-color: rgba(248, 250, 252, 0.75) !important;
    opacity: 1 !important;
}

body.wkb-dark .kb-scroll-top,
body.dark .kb-scroll-top,
body[data-theme="dark"] .kb-scroll-top,
html[data-theme="dark"] .kb-scroll-top {
    background: #172234;
    border-color: #334155;
    color: #60a5fa !important;
}

body.wkb-dark .kb-scroll-top:hover,
body.dark .kb-scroll-top:hover,
body[data-theme="dark"] .kb-scroll-top:hover,
html[data-theme="dark"] .kb-scroll-top:hover {
    background: #2563eb;
    color: #ffffff !important;
}

/* ---------------------------------------------------------
   12. АДАПТИВ
--------------------------------------------------------- */

@media (max-width: 900px) {
    .kb-sp-cards,
    .kb-sp-errors {
        grid-template-columns: 1fr !important;
    }

    .kb-sp-errors > div {
        padding: 24px !important;
    }

    .kb-sp-errors h3 {
        font-size: 21px !important;
    }

    .kb-sp-errors p {
        font-size: 16px !important;
    }
}

@media (max-width: 768px) {
    .kb-sp-hero {
        margin-bottom: 34px !important;
    }

    .kb-sp-hero h1 {
        font-size: 42px !important;
    }

    .kb-sp-lead {
        font-size: 18px !important;
        line-height: 1.65 !important;
    }

    .kb-sp-table-title {
        font-size: 24px !important;
    }

    .kb-sp-page .kb-sp-table-scroll table.kb-sp-original-table th,
    .kb-sp-page .kb-sp-table-scroll table.kb-sp-original-table td {
        font-size: 13px !important;
        padding: 7px 6px !important;
        line-height: 1.25 !important;
    }

    .kb-sp-table-note p {
        font-size: 14px !important;
    }
}

@media (max-width: 640px) {
    .kb-sp-hero h1 {
        font-size: 36px !important;
    }

    .kb-sp-section h2 {
        font-size: 28px !important;
    }

    .kb-sp-section p,
    .kb-sp-section li {
        font-size: 16px !important;
    }

    .kb-scroll-top {
        right: 18px;
        bottom: 18px;
        width: 42px;
        height: 42px;
        font-size: 22px;
    }
}
.kb-sp-card-title,
.kb-sp-error-title {
    margin: 0 0 18px !important;
    color: #0f172a !important;
    font-size: 24px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    text-shadow: none !important;
}

body.wkb-dark .kb-sp-card-title,
body.dark .kb-sp-card-title,
body[data-theme="dark"] .kb-sp-card-title,
html[data-theme="dark"] .kb-sp-card-title,
body.wkb-dark .kb-sp-error-title,
body.dark .kb-sp-error-title,
body[data-theme="dark"] .kb-sp-error-title,
html[data-theme="dark"] .kb-sp-error-title {
    color: #f8fafc !important;
}
/* =========================================================
   СП 31-105-2002 — УМЕНЬШЕНИЕ ТИПОГРАФИКИ
   Вставить в самый низ custom.css
========================================================= */

.kb-sp-hero h1 {
    font-size: clamp(36px, 4vw, 52px) !important;
    line-height: 1.08 !important;
    font-weight: 700 !important;
}

.kb-sp-section h2 {
    font-size: clamp(28px, 2.6vw, 36px) !important;
    line-height: 1.22 !important;
    font-weight: 750 !important;
}

.kb-sp-section h3,
.kb-sp-card-title,
.kb-sp-error-title {
    font-size: 21px !important;
    line-height: 1.35 !important;
    font-weight: 750 !important;
}

.kb-sp-lead {
    font-size: 18px !important;
    line-height: 1.7 !important;
}

.kb-sp-section p,
.kb-sp-section li {
    font-size: 17px !important;
    line-height: 1.8 !important;
}

.kb-sp-table-title {
    font-size: 24px !important;
}

@media (max-width: 768px) {
    .kb-sp-hero h1 {
        font-size: 34px !important;
    }

    .kb-sp-section h2 {
        font-size: 26px !important;
    }

    .kb-sp-section p,
    .kb-sp-section li {
        font-size: 16px !important;
    }
}
/* =========================================================
   О КОМПАНИИ — ЛЕВЫЙ СПИСОК КАК ТЕКСТ В ПРАВОМ СТОЛБЦЕ
========================================================= */

body .about-company .about-bottom-grid > .about-section:first-child ul {
    margin: 0 !important;
    padding-left: 24px !important;
}

body .about-company .about-bottom-grid > .about-section:first-child ul li {
    font-family: inherit !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1.85 !important;
    color: #263b5e !important;
    letter-spacing: 0 !important;

    margin: 0 0 18px !important;
    padding: 0 !important;
}

body .about-company .about-bottom-grid > .about-section:first-child ul li::marker {
    color: #263b5e !important;
    font-size: 0.7em !important;
}
/* Уменьшаем расстояние между АР и КР */

.about-company .about-section hr {
    margin: 28px 0 !important;
    opacity: 0.08 !important;
}
/* =========================================================
   ЧТО ВХОДИТ В ПРОЕКТ — СМЕСТИТЬ КАРТИНКИ НИЖЕ
========================================================= */

/* Опускаем колонку с изображениями */

.about-company .about-images{
    padding-top: 90px !important;
}

/* Делаем одинаковый красивый зазор */

.about-company .about-image{
    margin-bottom: 120px !important;
}

.about-company .about-image:last-child{
    margin-bottom: 0 !important;
}
/* =========================================================
   ФИНАЛЬНЫЙ БЛОК — АККУРАТНЫЙ ВАРИАНТ
========================================================= */

.about-company .about-end{
    padding: 42px 60px !important;
}

.about-company .about-end p{

    max-width: 820px !important;

    margin: 0 auto !important;

    text-align: center !important;

    font-size: 20px !important;

    line-height: 1.8 !important;

    font-weight: 500 !important;

    color: #08224a !important;

    white-space: normal !important;
}
/* =========================================================
   ПОРЯДОК ОФОРМЛЕНИЯ — ФИНАЛЬНЫЙ СТИЛЬ
   Страница: /poryadok-oformleniya/
   Отступы приведены к страницам "Что входит в проект" и "Почему выбирают нас"
========================================================= */

/*
   Важно:
   Не задаём для .order-page собственный max-width и внутренние padding.
   Внутренние отступы уже задаёт общий контейнер страницы WordPress/Kadence.
   Так левая граница блока совпадает с эталонными страницами.
*/

.order-page{
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;

    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.order-page .about-container{
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Подпись сверху как "СОСТАВ ПРОЕКТА" */

.order-page-subtitle{
    display: block !important;

    margin: 0 0 44px !important;
    padding: 0 !important;

    text-align: left !important;

    font-size: 11px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
    letter-spacing: .34em !important;
    text-transform: uppercase !important;

    color: #7a8fb0 !important;
}

.order-hero .about-subtitle{
    display: none !important;
}

/* Общая сетка.
   Картинки стоят строго одна под другой.
   Текстовые блоки стоят строго одна под другой. */

.order-page .order-hero,
.order-page .order-content-grid{
    display: grid !important;

    grid-template-columns: 400px minmax(0, 560px) !important;
    column-gap: 64px !important;

    align-items: start !important;
    justify-content: start !important;

    margin: 0 0 96px !important;
}

/* Изображения */

.order-page .about-image,
.order-page .order-hero .about-image,
.order-page .order-content-grid .about-image{
    width: 400px !important;
    max-width: 400px !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;

    justify-self: start !important;
}

/* В верхнем ряду картинка начинается ниже подписи,
   чтобы подпись была слева, как на странице "Что входит в проект". */

.order-page .order-hero .about-image{
    padding-top: 0 !important;
}

.order-page .about-image img,
.order-page .order-hero .about-image img,
.order-page .order-content-grid .about-image img{
    display: block !important;

    width: 400px !important;
    height: 250px !important;
    max-width: 400px !important;

    object-fit: cover !important;

    border: none !important;
    border-radius: 18px !important;

    box-shadow: 0 22px 48px rgba(8, 34, 74, .12) !important;
}

/* Текстовые колонки */

.order-page .order-hero-text,
.order-page .about-section{
    width: 560px !important;
    max-width: 560px !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    justify-self: start !important;
    text-align: left !important;
}

/* Главный заголовок */

.order-page h1{
    max-width: 560px !important;

    margin: 0 0 30px !important;
    padding: 0 !important;

    font-size: 42px !important;
    line-height: 1.14 !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;

    color: #172033 !important;

    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

/* Верхний текст */

.order-page .about-head-text{
    max-width: 560px !important;

    margin: 0 0 18px !important;
    padding: 0 !important;

    font-size: 16px !important;
    line-height: 1.8 !important;
    font-weight: 400 !important;

    color: #263b5e !important;
}

/* Заголовки разделов */

.order-page .about-section h2{
    max-width: 560px !important;

    margin: 0 0 18px !important;
    padding: 0 !important;

    font-size: 28px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;

    color: #08224a !important;
}

/* Текст под заголовком раздела */

.order-page .about-section > p{
    max-width: 560px !important;

    margin: 0 0 28px !important;
    padding: 0 !important;

    font-size: 16px !important;
    line-height: 1.8 !important;
    font-weight: 400 !important;

    color: #263b5e !important;
}

/* Шаги */

.order-page .order-steps{
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;

    margin: 0 !important;
    padding: 0 !important;
}

.order-page .order-step{
    display: grid !important;

    grid-template-columns: 48px minmax(0, 1fr) !important;
    gap: 18px !important;

    align-items: start !important;

    margin: 0 !important;
    padding: 0 !important;
}

.order-page .order-step span{
    width: 48px !important;
    height: 48px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 12px !important;
    background: #08224a !important;
    color: #ffffff !important;

    font-size: 15px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
}

.order-page .order-step h3{
    margin: 0 0 7px !important;
    padding: 0 !important;

    font-size: 18px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;

    color: #08224a !important;
}

.order-page .order-step p{
    max-width: 490px !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: 16px !important;
    line-height: 1.75 !important;
    font-weight: 400 !important;

    color: #263b5e !important;
}

/* Финальный блок */

.order-page .about-end{
    margin: 4px 0 0 !important;
    padding: 42px 60px !important;

    text-align: center !important;

    border: 1px solid #e5eaf1 !important;
    border-radius: 22px !important;
    background: #ffffff !important;

    box-shadow: 0 14px 40px rgba(8, 34, 74, .05) !important;
}

.order-page .about-end h2{
    margin: 0 0 24px !important;
    padding: 0 !important;

    font-size: 28px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;

    color: #08224a !important;
}

.order-page .about-end p{
    max-width: 820px !important;

    margin: 0 auto !important;
    padding: 0 !important;

    text-align: center !important;

    font-size: 20px !important;
    line-height: 1.8 !important;
    font-weight: 500 !important;

    color: #08224a !important;
    white-space: normal !important;
}

/* Адаптив */

@media (max-width: 980px){

    .order-page .order-hero,
    .order-page .order-content-grid{
        grid-template-columns: 1fr !important;
        gap: 34px !important;
        margin-bottom: 64px !important;
    }

    .order-page .about-image,
    .order-page .order-hero .about-image,
    .order-page .order-content-grid .about-image,
    .order-page .order-hero-text,
    .order-page .about-section{
        width: 100% !important;
        max-width: 100% !important;
    }

    .order-page .about-image img,
    .order-page .order-hero .about-image img,
    .order-page .order-content-grid .about-image img{
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 10 !important;
    }

    .order-page h1,
    .order-page .about-head-text,
    .order-page .about-section h2,
    .order-page .about-section > p,
    .order-page .order-step p{
        max-width: none !important;
    }

    .order-page h1{
        font-size: 38px !important;
    }

    .order-page .about-end{
        padding: 34px !important;
    }
}

@media (max-width: 640px){

    .order-page h1{
        font-size: 32px !important;
    }

    .order-page .about-section h2{
        font-size: 26px !important;
    }

    .order-page .order-step{
        grid-template-columns: 44px minmax(0, 1fr) !important;
        gap: 16px !important;
    }

    .order-page .order-step span{
        width: 44px !important;
        height: 44px !important;
        font-size: 14px !important;
    }

    .order-page .order-step h3{
        font-size: 18px !important;
    }

    .order-page .about-end p{
        font-size: 18px !important;
    }
}
/* =========================================================
   ПОРЯДОК ОФОРМЛЕНИЯ — ОТСТУПЫ КАК "ЧТО ВХОДИТ В ПРОЕКТ"
========================================================= */

.order-page{
    padding-left: 26px !important;
    padding-right: 26px !important;
}

.order-page .about-container{
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
}

.order-page .order-hero,
.order-page .order-content-grid{
    margin-left: 0 !important;
}

@media (max-width:980px){

    .order-page{
        padding-left: 28px !important;
        padding-right: 28px !important;
    }

}
/* =========================================================
   ПОРЯДОК ОФОРМЛЕНИЯ — ПОДПИСЬ КАК У "СОСТАВ ПРОЕКТА"
========================================================= */

.order-page-subtitle{

margin-top:0 !important;

margin-bottom:34px !important;

padding:0 !important;

font-family:
Inter,
system-ui,
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
sans-serif !important;

font-size:12px !important;

font-weight:500 !important;

line-height:1 !important;

letter-spacing:.30em !important;

text-transform:uppercase !important;

color:#8da0bf !important;

}

/* выровнять весь верхний блок */

.order-page .about-container{

padding-top:10px !important;

}