/*
Theme Name: dds_isakmorand.com
Author: Исак Моранд
Description: Тема Spatial Glass для сайта студии цифровых технологий в недвижимости: 3D-туры, VR-просмотры, сервисы для застройщиков.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: imorand
*/

:root {
    --bg: #F0F4F8;
    --bg-alt: #E2E8F0;
    --head: #1E293B;
    --foot: #0F172A;
    --ink: #1E293B;
    --muted: #64748B;
    --accent: #06B6D4;
    --accent-lit: #22D3EE;
    --accent2: #8B5CF6;
    --line: rgba(148, 163, 184, 0.35);
    --glass: rgba(255, 255, 255, 0.7);
    --glass-edge: rgba(255, 255, 255, 0.6);
    --shadow: 0 10px 20px rgba(30, 41, 59, 0.08);
    --shadow-hi: 0 16px 34px rgba(6, 182, 212, 0.15);
    --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
    --display: "Inter", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-top: 4px;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
    overflow-x: hidden;
}

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

/* Верхняя градиентная полоса */
.topline {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    z-index: 90;
}

/* Декоративный силуэт VR-очков в правом верхнем углу */
.viewmark {
    position: absolute;
    top: 96px;
    right: 3%;
    width: 220px;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.viewmark svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Контейнер ширины */
.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

/* Типографика */
h1, h2, h3, h4 {
    font-family: var(--display);
    color: var(--ink);
    line-height: 1.22;
    letter-spacing: -0.015em;
    margin: 0 0 0.7em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.35rem;
    font-weight: 600;
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Приём: вертикальная пунктирная линия-маркер слева у H2 и H3 */
.entry-body h2,
.entry-body h3,
.panel h3,
.note-body h3 {
    position: relative;
    padding-left: 18px;
}

.entry-body h2::before,
.entry-body h3::before,
.panel h3::before,
.note-body h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.22em;
    width: 2px;
    height: 0.5em;
    background-image: linear-gradient(var(--accent) 50%, transparent 50%);
    background-size: 2px 6px;
}

p {
    margin: 0 0 1.1em;
}

a {
    color: var(--accent);
    text-decoration: none;
    position: relative;
}

.entry-body a,
.panel a,
.trail a,
.site-note a {
    background-image: linear-gradient(90deg, var(--accent2), var(--accent2));
    background-repeat: no-repeat;
    background-size: 0 1px;
    background-position: 0 100%;
    transition: background-size 0.28s ease, color 0.2s ease;
}

.entry-body a:hover,
.panel a:hover,
.trail a:hover,
.site-note a:hover {
    background-size: 100% 1px;
    color: var(--accent2);
}

blockquote {
    margin: 1.6rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--glass);
    border-left: 3px solid var(--accent);
    border-radius: 12px;
}

blockquote p:last-child {
    margin-bottom: 0;
}

code, pre {
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
    font-size: 0.92em;
}

pre {
    padding: 1rem 1.2rem;
    overflow-x: auto;
    background: #0F172A;
    color: #E2E8F0;
    border-radius: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
    background: rgba(255, 255, 255, 0.7);
}

table, th, td {
    border: 1px solid #94A3B8;
}

th, td {
    padding: 0.6rem 0.8rem;
    text-align: left;
}

th {
    background: var(--bg-alt);
    font-family: var(--display);
    font-weight: 600;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 0.78rem 1.5rem;
    border-radius: 12px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1.2;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-fill {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 14px rgba(6, 182, 212, 0.22);
}

.btn-fill:hover {
    background: var(--accent-lit);
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(6, 182, 212, 0.3);
    color: #fff;
}

.btn-line {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-line:hover {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-lit);
    border-color: var(--accent-lit);
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(30, 41, 59, 0.1);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.3);
    color: #fff;
}

.btn-grad {
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    color: #fff;
}

.btn-grad:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(139, 92, 246, 0.35);
    color: #fff;
}

/* Заголовки секций */
.sec-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    padding-bottom: 14px;
    margin-bottom: 1.6rem;
    text-align: left;
}

.sec-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 74px;
    height: 2px;
    background: var(--accent);
}

.sec-icon {
    width: 26px;
    height: 26px;
    flex: none;
    color: var(--accent);
    opacity: 0.45;
}

/* Шапка */
.masthead {
    background: rgba(30, 41, 59, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #E2E8F0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 5;
}

.masthead-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    padding: 1.3rem 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    display: block;
    width: auto;
    max-height: 56px;
}

.brand svg.brand-mark {
    width: 46px;
    height: 46px;
    flex: none;
}

.brand-text {
    min-width: 0;
}

.brand-name {
    display: block;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.05rem;
    color: #F8FAFC;
    line-height: 1.35;
    max-width: 520px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand-tagline {
    display: block;
    font-size: 0.82rem;
    color: #94A3B8;
    line-height: 1.5;
    max-width: 520px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.07);
    color: #E2E8F0;
    font-family: var(--display);
    font-size: 0.92rem;
    cursor: pointer;
}

.site-nav ul {
    display: flex;
    gap: 1.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.site-nav a {
    color: #CBD5E1;
    font-family: var(--display);
    font-size: 0.97rem;
    font-weight: 500;
    padding: 0.3rem 0;
    display: inline-block;
    background-image: linear-gradient(90deg, var(--accent), var(--accent2));
    background-repeat: no-repeat;
    background-size: 0 2px;
    background-position: 0 100%;
    transition: background-size 0.28s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
    color: #fff;
    background-size: 100% 2px;
}

/* Основная область */
.page-body {
    position: relative;
    padding: 2.4rem 0 4rem;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
    align-items: start;
}

.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.content-area {
    min-width: 0;
}

/* Хлебные крошки */
.trail {
    font-size: 0.87rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
    word-break: break-word;
}

.trail a {
    color: var(--muted);
}

.trail-sep {
    color: #94A3B8;
    margin: 0 0.25rem;
}

/* Сайдбар */
.sidebar {
    min-width: 0;
}

.sidebar .panel {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-edge);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 1.5rem 1.4rem;
    margin-bottom: 1.6rem;
    color: var(--ink);
}

.sidebar .panel-title {
    font-size: 1.1rem;
    margin: 0 0 1rem;
    padding-bottom: 12px;
    position: relative;
    color: var(--ink);
}

.sidebar .panel-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 52px;
    height: 2px;
    background: var(--accent);
}

.sidebar .panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar .panel li {
    padding: 0.5rem 0 0.5rem 16px;
    position: relative;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.45);
}

.sidebar .panel li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05em;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--accent);
}

.sidebar .panel li:last-child {
    border-bottom: none;
}

.sidebar .panel a {
    color: var(--ink);
    font-size: 0.97rem;
}

.sidebar .panel a:hover {
    color: var(--accent2);
}

.sidebar .panel .post-date,
.sidebar .panel .rss-date {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
}

/* Карточки записей */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-edge);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 2;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hi);
}

.card:hover::before {
    opacity: 1;
}

.card-thumb {
    display: block;
    overflow: hidden;
    background: var(--bg-alt);
}

.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-thumb img {
    transform: scale(1.06) translateY(-6px);
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.3rem 1.4rem 1.5rem;
    min-width: 0;
}

.card-title {
    font-size: 1.18rem;
    margin: 0.7rem 0 0.5rem;
}

.card-title a {
    color: var(--ink);
}

.card-title a:hover {
    color: var(--accent);
}

.card-meta {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 0.3rem;
}

.card-excerpt {
    color: #475569;
    font-size: 0.95rem;
}

.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

.card-foot {
    margin-top: auto;
    padding-top: 1rem;
}

.card-more {
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--accent);
}

.card-more:hover {
    color: var(--accent2);
}

/* Плашки рубрик */
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    display: inline-block;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-family: var(--display);
    font-weight: 500;
    border: 1px solid transparent;
}

.tone-cyan {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.45);
    color: #0E7490;
}

.tone-lavender {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.45);
    color: #6D28D9;
}

.tone-steel {
    background: rgba(100, 116, 139, 0.14);
    border-color: rgba(100, 116, 139, 0.45);
    color: #475569;
}

.tone-indigo {
    background: rgba(79, 70, 229, 0.12);
    border-color: rgba(79, 70, 229, 0.4);
    color: #4338CA;
}

.tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Пагинация */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2.6rem 0 0;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--glass-edge);
    background: var(--glass);
    box-shadow: var(--shadow);
    color: var(--ink);
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.pager a.page-numbers:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hi);
    color: var(--accent);
}

.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.pager .page-numbers.dots {
    border: none;
    box-shadow: none;
    background: none;
}

/* Записи и страницы */
.entry {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-edge);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 2.2rem 2.2rem 2.4rem;
}

.entry-title {
    font-size: 2.4rem;
    margin-bottom: 0.6rem;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 1.6rem;
}

.entry-cover {
    margin: 0 0 1.8rem;
}

.entry-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
}

.entry-body img {
    border-radius: 12px;
    display: block;
}

.entry-body ul,
.entry-body ol {
    padding-left: 1.3rem;
}

.entry-body li {
    margin-bottom: 0.4rem;
}

.entry-foot {
    margin-top: 2rem;
    padding-top: 1.4rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.5);
}

.post-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1.6rem;
    font-family: var(--display);
    font-size: 0.93rem;
}

.list-head {
    margin-bottom: 1.8rem;
}

/* Комментарии */
.comments {
    margin-top: 2rem;
    background: var(--glass);
    border: 1px solid var(--glass-edge);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 2rem 2.2rem 2.2rem;
}

.comments-title {
    font-size: 1.4rem;
    padding-bottom: 12px;
    position: relative;
    margin-bottom: 1.6rem;
}

.comments-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 2px;
    background: var(--accent);
}

.comment-list {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}

.comment-list .children {
    list-style: none;
    margin: 1rem 0 0;
    padding-left: 1.4rem;
    border-left: 2px dashed rgba(148, 163, 184, 0.5);
}

.note {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--glass-edge);
    border-radius: 14px;
    padding: 1.2rem 1.3rem;
    margin-bottom: 1rem;
}

.note-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.note-author {
    font-family: var(--display);
    font-weight: 600;
}

.note-date {
    color: var(--muted);
    font-size: 0.82rem;
}

.note-hold {
    color: var(--muted);
    font-size: 0.88rem;
}

.note-reply {
    font-family: var(--display);
    font-size: 0.9rem;
}

.comment-respond {
    margin-top: 1.4rem;
}

.comment-form label {
    display: block;
    font-family: var(--display);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-box input[type="search"] {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid rgba(100, 116, 139, 0.4);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    font-family: var(--sans);
    font-size: 0.97rem;
    color: var(--ink);
}

.comment-form input:focus,
.comment-form textarea:focus,
.search-box input:focus {
    outline: 2px solid rgba(6, 182, 212, 0.45);
    outline-offset: 1px;
}

.comment-form p {
    margin-bottom: 0.9rem;
}

.comment-form .submit,
.search-box button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.97rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.comment-form .submit:hover,
.search-box button:hover {
    background: var(--accent-lit);
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(6, 182, 212, 0.28);
}

/* Форма поиска */
.search-box {
    display: flex;
    gap: 0.6rem;
    align-items: stretch;
    flex-wrap: wrap;
}

.search-box label {
    flex: 1 1 220px;
    min-width: 0;
}

.search-box .screen-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------------- Главная ---------------- */

.front {
    position: relative;
}

.front-section {
    position: relative;
    padding: 80px 0;
}

.front-section.tinted {
    background-color: var(--bg-alt);
    background-image:
        radial-gradient(circle at 12% 18%, rgba(6, 182, 212, 0.12), transparent 42%),
        radial-gradient(circle at 88% 82%, rgba(139, 92, 246, 0.12), transparent 45%),
        linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
    background-size: auto, auto, 24px 24px, 24px 24px;
}

.front-section.plain {
    background-image:
        radial-gradient(circle at 92% 14%, rgba(6, 182, 212, 0.1), transparent 40%),
        radial-gradient(circle at 6% 88%, rgba(139, 92, 246, 0.1), transparent 42%);
}

/* Пунктирный разделитель, прерывающийся на 20% ширины */
.dot-split {
    height: 1px;
    background-image: radial-gradient(circle, #94A3B8 1px, transparent 1px);
    background-size: 10px 1px;
    background-repeat: repeat-x;
    width: 80%;
    margin: 0 auto;
    opacity: 0.8;
}

/* Диагональные линии перспективы */
.grid-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(45deg, rgba(100, 116, 139, 0.09) 0 1px, transparent 1px 34px);
    opacity: 0.85;
}

.ring-decor {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 1px solid rgba(6, 182, 212, 0.18);
    box-shadow: 0 0 0 28px rgba(6, 182, 212, 0.05), 0 0 0 56px rgba(139, 92, 246, 0.04);
    pointer-events: none;
}

.ring-a {
    right: -120px;
    top: 40px;
}

.ring-b {
    left: -140px;
    bottom: -60px;
}

/* Блок 1 — hero */
.hero {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    color: #F8FAFC;
    padding: 108px 0 112px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(120deg, rgba(30, 41, 59, 0.94) 10%, rgba(30, 41, 59, 0.72) 48%, rgba(6, 182, 212, 0.62) 100%);
}

.hero-in {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero-kicker {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    font-family: var(--display);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.hero h1 {
    color: #fff;
    margin-bottom: 1rem;
}

.hero-sub {
    font-size: 1.12rem;
    color: #CBD5E1;
    max-width: 620px;
    margin-bottom: 1.9rem;
}

/* Блок 2 — статистика */
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.stat {
    position: relative;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-edge);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 1.8rem 1.6rem;
    margin: 0 0.55rem;
    min-width: 0;
    text-align: left;
}

.stat + .stat::before {
    content: "";
    position: absolute;
    left: -0.6rem;
    top: 18%;
    bottom: 18%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(6, 182, 212, 0.55), transparent);
}

.stat-num {
    font-family: var(--display);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.1;
}

.stat-label {
    color: var(--muted);
    font-size: 0.92rem;
}

/* Блок 3 — сетка карточек услуг */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

.svc {
    position: relative;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-edge);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 1.9rem 1.7rem;
    min-width: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.svc:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hi);
    border-color: rgba(6, 182, 212, 0.55);
}

.svc-icon {
    width: 42px;
    height: 42px;
    color: var(--accent);
    margin-bottom: 1rem;
}

.svc h3 {
    margin-bottom: 0.5rem;
}

.svc p {
    color: #475569;
    font-size: 0.97rem;
    margin-bottom: 0;
}

/* Последние записи на главной */
.latest-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.latest-head .sec-title {
    margin-bottom: 1.2rem;
}

/* Блок 4 — CTA */
.cta {
    position: relative;
    overflow: hidden;
    background: #1E293B;
    border-radius: 18px;
    padding: 3rem 2.6rem;
    color: #E2E8F0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.8rem;
}

.cta-mesh {
    position: absolute;
    right: -40px;
    bottom: -60px;
    width: 360px;
    opacity: 0.22;
    pointer-events: none;
}

.cta-text {
    position: relative;
    z-index: 1;
    max-width: 620px;
    min-width: 0;
}

.cta h2 {
    color: #fff;
    margin-bottom: 0.6rem;
}

.cta p {
    color: #94A3B8;
    margin-bottom: 0;
}

.cta-act {
    position: relative;
    z-index: 1;
}

/* Подвал */
.site-foot {
    background: var(--foot);
    color: #CBD5E1;
    position: relative;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
    padding: 3.4rem 0 2.6rem;
}

.site-foot .panel {
    min-width: 0;
    color: #CBD5E1;
}

.site-foot .panel-title {
    color: #F8FAFC;
    font-size: 1.05rem;
    padding-bottom: 12px;
    position: relative;
    margin-bottom: 1rem;
}

.site-foot .panel-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.site-foot .panel p {
    color: #94A3B8;
    font-size: 0.94rem;
}

.site-foot .panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-foot .panel li {
    padding: 0.35rem 0 0.35rem 16px;
    position: relative;
}

.site-foot .panel li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.95em;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--accent);
}

.site-foot .panel a {
    color: #CBD5E1;
    font-size: 0.95rem;
}

.site-foot .panel a:hover {
    color: var(--accent-lit);
}

.site-foot .panel .post-date {
    display: block;
    color: #7C8CA3;
    font-size: 0.82rem;
}

.foot-line {
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    padding: 1.2rem 0 1.6rem;
    font-size: 0.87rem;
    color: #7C8CA3;
}

/* Cookie-баннер */
.cookie-note[hidden] {
    display: none !important;
}

.cookie-note {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.4rem;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(6, 182, 212, 0.4);
    color: #CBD5E1;
    font-size: 0.9rem;
}

.cookie-note p {
    margin: 0;
    max-width: 780px;
}

.cookie-note a {
    color: var(--accent-lit);
}

/* 404 */
.notfound-code {
    font-family: var(--display);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.6rem;
}

/* Служебное */
.wp-caption,
.gallery-caption {
    max-width: 100%;
}

.alignleft {
    float: left;
    margin: 0 1.4rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1.4rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ---------------- Адаптив ---------------- */

@media (max-width: 960px) {
    h1 {
        font-size: 2.5rem;
    }

    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.2rem;
    }

    .layout-single {
        width: 100%;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem 0;
    }

    .stat + .stat::before {
        display: none;
    }

    .svc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .foot-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.8rem;
    }

    .viewmark {
        width: 150px;
        top: 80px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav[hidden] {
        display: none !important;
    }

    .site-nav {
        flex-basis: 100%;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 0.2rem;
        padding-top: 0.8rem;
        border-top: 1px solid rgba(148, 163, 184, 0.2);
        margin-top: 0.6rem;
    }

    .site-nav a {
        padding: 0.5rem 0;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .hero {
        padding: 72px 0 76px;
    }

    .entry-title {
        font-size: 1.8rem;
    }

    .front-section {
        padding: 56px 0;
    }

    .stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .stat {
        margin: 0;
    }

    .svc-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .foot-cols {
        grid-template-columns: minmax(0, 1fr);
    }

    .entry,
    .comments {
        padding: 1.5rem 1.3rem 1.7rem;
    }

    .cta {
        padding: 2rem 1.5rem;
    }

    .cta-mesh {
        width: 240px;
        right: -60px;
    }

    .viewmark {
        display: none;
    }

    .card-body {
        padding: 1.1rem 1.1rem 1.3rem;
    }
}
