/*
Theme Name: dds_alisanails.ru
Theme URI: https://alisanails.ru/
Author: Ефимова Яна Константиновна
Description: Тёмная «лаковая» тема для информационного сайта об идеях маникюра и нейл-дизайне: палитра настроений, анатомия формы, шкала длины, словарь техник.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nkch
*/

/* ---------- Шрифты ---------- */
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/jost-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/jost-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/jost-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/jost-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/nunito-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/nunito-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/nunito-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/nunito-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/nunito-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/nunito-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Переменные ---------- */
:root {
	--plum: #1C0F1E;
	--plum-deep: #190D1B;
	--plum-mid: #241227;
	--plum-hatch: #2E1230;
	--head-bg: #150A17;
	--foot-bg: #0F0711;
	--blob: #6B1E4B;
	--ink: #F6E9F2;
	--muted: #A98CA5;
	--lime: #B9FF4B;
	--fuchsia: #FF4D8D;
	--azure: #7BE0FF;
	--line: #4A2A4E;
	--panel: #2A152E;
	--side: #221026;
	--font-head: "Jost", "Arial Narrow", "Segoe UI", Arial, sans-serif;
	--font-body: "Nunito", "Segoe UI", Roboto, Arial, sans-serif;
	--cut: 22px;
	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* ---------- Скрытие по атрибуту hidden (до основных стилей) ---------- */
.cookie-banner[hidden] { display: none !important; }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	overflow-x: hidden;
	background-color: var(--plum);
	background-image: var(--grain);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.65;
	overflow-wrap: break-word;
}
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 500; line-height: 1.15; margin: 1.4em 0 .6em; color: var(--ink); hyphens: auto; overflow-wrap: break-word; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
::selection { background: var(--lime); color: #120814; }

.shell { width: min(85%, 1240px); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--lime); color: #120814; padding: .6rem 1rem; font-weight: 700; }
.skip-link:focus { left: 1rem; top: 1rem; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Кнопки */
.btn-lacquer,
.search-form button,
.comment-form .submit,
.cookie-accept {
	display: inline-flex; align-items: center; justify-content: center;
	padding: .75rem 1.6rem;
	background: var(--lime); color: #0E0610;
	border: 0; border-radius: 0;
	font-family: var(--font-head); font-weight: 500; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase;
	box-shadow: 4px 4px 0 -1px var(--plum), 4px 4px 0 0 var(--lime);
	cursor: pointer; transition: transform .15s, box-shadow .15s, background-color .15s, color .15s;
}
.btn-lacquer:hover,
.search-form button:hover,
.comment-form .submit:hover,
.cookie-accept:hover { transform: translate(2px, 2px); box-shadow: 0 0 0 0 var(--plum), 0 0 0 1px var(--lime); background: #CBFF75; }
.btn-ghost { display: inline-flex; padding: .7rem 1.4rem; border: 1px solid var(--lime); color: var(--lime); font-family: var(--font-head); letter-spacing: .08em; text-transform: uppercase; transition: background-color .15s, color .15s; }
.btn-ghost:hover { background: var(--lime); color: #0E0610; }

/* Ссылки в тексте — лаймовый штрих */
.entry-content a, .page-text a, .comment-content a, .footer-col .textwidget a {
	color: var(--ink);
	background-image: linear-gradient(transparent 82%, rgba(185, 255, 75, .85) 82%, rgba(185, 255, 75, .85) 92%, transparent 92%);
	background-size: 100% 100%; background-repeat: no-repeat;
	transition: color .15s;
}
.entry-content a:hover, .page-text a:hover, .comment-content a:hover, .footer-col .textwidget a:hover { color: var(--lime); }

/* ---------- Шапка ---------- */
.site-head {
	position: relative;
	background-color: var(--head-bg);
	border-bottom: 2px solid var(--lime);
	overflow: hidden;
}
.site-head::before {
	content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: max(52%, 560px);
	background: url("images/header-blobs.jpg") right top / 100% auto no-repeat;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%);
	mask-image: linear-gradient(90deg, transparent 0, #000 30%);
	pointer-events: none;
}
.site-head::after {
	content: ""; position: absolute; left: 0; bottom: 0; width: 110px; height: 52%;
	background: url("images/header-blob-left.jpg") right bottom / cover no-repeat;
	-webkit-mask-image: radial-gradient(ellipse 100% 90% at 0% 70%, #000 55%, transparent 80%);
	mask-image: radial-gradient(ellipse 100% 90% at 0% 70%, #000 55%, transparent 80%);
	pointer-events: none;
}
.head-inner { position: relative; z-index: 1; padding: 2.6rem 0 1rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: end; }
.brand { display: flex; gap: 1.2rem; align-items: center; min-width: 0; grid-column: 1 / -1; }
.brand-mark { flex: 0 0 auto; width: 76px; height: 76px; border-radius: 50%; background: #0D060F; display: grid; place-items: center; overflow: hidden; }
.brand-mark svg { width: 46px; height: 46px; display: block; }
.brand-logo { display: block; width: 76px; height: 76px; object-fit: contain; }
.brand-text { min-width: 0; }
.brand-name { display: block; margin: 0; font-family: var(--font-head); font-weight: 500; line-height: 1.02; color: var(--ink); }
.brand-name .bn-main { display: block; font-size: clamp(1.7rem, 3.6vw, 2.6rem); text-transform: uppercase; letter-spacing: .01em; }
.brand-name .bn-sub { display: block; font-family: var(--font-body); font-size: clamp(1rem, 1.8vw, 1.3rem); font-weight: 400; margin-top: .3rem; }
.brand-desc { margin: .9rem 0 0; max-width: 34rem; font-size: .82rem; line-height: 1.5; color: #D9C6D5; }
.nav-wrap { grid-column: 2; justify-self: end; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; }
.main-nav a { display: inline-block; padding: .25rem 0; font-size: .95rem; color: var(--ink); position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--lime); transition: right .2s; }
.main-nav a:hover::after, .main-nav .current-menu-item > a::after { right: 0; }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a, .main-nav a:hover { color: var(--lime); }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--lime); color: var(--lime); padding: .5rem .9rem; font-family: var(--font-head); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }

/* ---------- Заголовки секций ---------- */
.sec-title { display: inline-flex; align-items: baseline; gap: .9rem; margin: 0 0 .4rem; padding: 0 .3rem .2rem 0; border-bottom: 2px solid var(--lime); font-family: var(--font-head); font-weight: 400; font-size: clamp(2rem, 5.6vw, 4rem); line-height: 1; text-transform: uppercase; letter-spacing: .005em; }
.sec-title .num { font-size: .95rem; color: var(--lime); letter-spacing: .05em; transform: translateY(-.15rem); }
.sec-lead { margin: .9rem 0 0; color: var(--ink); font-size: 1rem; }

/* ---------- Секции главной ---------- */
.front-sec { padding: 3rem 0 3.4rem; position: relative; }
.sec-palette { background-color: var(--plum-mid); }
.sec-anatomy { background-color: var(--plum-deep); }
.sec-ideas { background-color: var(--plum); }

/* 01 Палитра настроений */
.mood-row { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.4rem; }
.mood-item { text-align: center; min-width: 0; }
.mood-item img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); }
.mood-item:hover img { transform: rotate(-6deg) scale(1.06); }
.mood-name { display: block; margin-top: .9rem; font-family: var(--font-head); font-size: clamp(.9rem, 1.4vw, 1.2rem); letter-spacing: .06em; text-transform: uppercase; }
.mood-hint { display: block; margin-top: .2rem; font-size: .78rem; color: var(--muted); letter-spacing: .04em; }

/* 02 Анатомия формы */
.anatomy-figure { margin: 2.4rem auto 0; width: min(100%, 640px); }
.anatomy-stage { position: relative; width: 34%; margin-inline: auto; }
.anatomy-stage img { display: block; width: 100%; height: auto; aspect-ratio: 536 / 612; }
.anatomy-label { position: absolute; transform: translateY(-50%); white-space: nowrap; font-size: .95rem; color: var(--ink); }
.anatomy-label.al-left { right: 100%; padding-right: .5rem; text-align: right; }
.anatomy-label.al-right { left: 100%; padding-left: .5rem; }
.anatomy-figure figcaption { margin-top: 1.6rem; text-align: center; font-size: 1rem; }
.anatomy-figure figcaption b { color: var(--lime); font-weight: 600; }

/* 03 Свежие идеи — карточки */
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; margin-top: 2.2rem; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card::after { content: ""; position: absolute; top: -4px; right: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(185, 255, 75, .12); }
.card-frame { flex: 1; display: flex; flex-direction: column; background: var(--line); padding: 1px; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); transition: background-color .2s; }
.card-in { flex: 1; display: flex; flex-direction: column; background: var(--panel); padding: .75rem; clip-path: polygon(0 0, calc(100% - var(--cut) + .4px) 0, 100% calc(var(--cut) - .4px), 100% 100%, 0 100%); }
.card:hover .card-frame { background: var(--lime); }
.card-thumb { display: block; overflow: hidden; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9.6; object-fit: cover; transition: transform .4s; }
.card:hover .card-thumb img { transform: scale(1.05); }
.card-body { flex: 1; display: flex; flex-direction: column; padding: .9rem .2rem .2rem; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; }
.card-title { margin: 0; font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.3; min-width: 0; }
.card-title a:hover { color: var(--lime); }
.card-date { flex: 0 0 auto; font-size: .78rem; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: .35rem; }
.card-date::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.card-excerpt { margin-top: .5rem; font-size: .86rem; line-height: 1.5; color: #E4D3E0; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more { margin-top: auto; padding-top: .8rem; }
.card-more .btn-lacquer { width: 100%; box-shadow: none; padding: .62rem 1rem; font-size: .88rem; }
.card-more .btn-lacquer:hover { transform: none; background: transparent; color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime); }
.sec-ideas .ideas-foot { margin-top: 2rem; text-align: right; }
.empty-note { padding: 1.4rem 1.6rem; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }

/* 04 + 05 — двойная строка */
.duo { position: relative; background: var(--plum); }
.duo::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 50%; background-color: var(--plum-hatch); background-image: repeating-linear-gradient(135deg, rgba(246, 233, 242, .035) 0 1px, transparent 1px 9px); }
.duo-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.duo-cell { min-width: 0; padding: 3rem 0 3.4rem; }
.duo-cell.cell-length { padding-right: 3rem; }
.duo-cell.cell-glossary { padding-left: 3rem; }
.duo .sec-title { font-size: clamp(1.8rem, 3.6vw, 3rem); }

/* 04 Шкала длины */
.ruler { position: relative; margin: 3.4rem .4rem 0; height: 92px; }
.ruler-track { position: absolute; left: 0; right: 0; top: 46px; height: 2px; background: var(--lime); }
.ruler-tick { position: absolute; top: 39px; width: 1px; height: 16px; background: var(--lime); transform: translateX(-.5px); }
.ruler-tick.is-end { top: 34px; height: 26px; width: 2px; }
.ruler-end { position: absolute; top: 66px; font-size: .85rem; color: var(--ink); white-space: nowrap; transform: translateX(-50%); }
.ruler-point { position: absolute; top: 47px; transform: translate(-50%, -50%); }
.ruler-dot { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(185, 255, 75, .4); transition: box-shadow .2s, transform .2s; }
.ruler-cap { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .9rem; }
.ruler-point.up .ruler-cap { bottom: 18px; }
.ruler-point.down .ruler-cap { top: 18px; }
.ruler-point:hover .ruler-dot, .ruler-point.is-on .ruler-dot { box-shadow: 0 0 0 6px rgba(185, 255, 75, .25); transform: scale(1.15); }
.length-tips { list-style: none; margin: 2.4rem 0 0; padding: 0; }
.length-tips li { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.55; padding-left: 0; transition: color .2s, padding-left .2s; }
.length-tips li b { font-weight: 400; }
.length-tips li.is-on { color: var(--lime); padding-left: .5rem; }
.length-note { margin: 1.4rem 0 0; font-size: .85rem; color: var(--muted); }

/* 05 Словарь техник */
.glossary { margin: 1.8rem 0 0; display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); }
.glossary dt, .glossary dd { margin: 0; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.glossary dt { padding-right: 1.4rem; border-right: 1px solid var(--line); font-family: var(--font-body); font-weight: 700; font-size: .92rem; letter-spacing: .04em; text-transform: uppercase; }
.glossary dd { padding-left: 1.4rem; font-size: .9rem; color: #E4D3E0; }
.glossary dt:hover, .glossary dt:hover + dd { color: var(--lime); }

/* ---------- Внутренние страницы ---------- */
.page-main { padding: 2.4rem 0 4rem; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin: 0 0 1.6rem; }
.breadcrumbs a { color: var(--ink); border-bottom: 1px solid rgba(185, 255, 75, .6); }
.breadcrumbs a:hover { color: var(--lime); }
.breadcrumbs .sep { color: var(--lime); margin: 0 .35rem; }
.breadcrumbs span:last-child { color: var(--muted); }

.layout-single { display: block; }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); justify-content: space-between; column-gap: 6%; align-items: start; }
.content-area { min-width: 0; }
.page-head { margin-bottom: 2rem; }
.page-head .sec-title { font-size: clamp(2rem, 4.8vw, 3.4rem); }
.page-head .archive-desc { margin-top: 1rem; color: var(--muted); }

.cards-grid.in-list { margin-top: 0; }
.layout-with-sidebar .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Запись и страница */
.entry { min-width: 0; }
.entry-title { margin: 0 0 .9rem; font-weight: 400; text-transform: uppercase; font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.05; }
.entry-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; margin-bottom: 1.6rem; padding-bottom: 1rem; border-bottom: 2px solid var(--lime); font-size: .85rem; color: var(--muted); }
.entry-meta .em-date::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: .45rem; border-radius: 50%; background: var(--lime); }
.entry-meta a { color: var(--azure); }
.entry-meta a:hover { color: var(--lime); }
.entry-cover { margin: 0 0 2rem; clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%); }
.entry-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.entry-content { font-size: 1.04rem; hyphens: auto; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { text-transform: uppercase; font-weight: 400; padding-bottom: .3rem; border-bottom: 1px solid var(--line); }
.entry-content h2::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: .6rem; border-radius: 50%; background: var(--fuchsia); vertical-align: middle; }
.entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 { font-family: var(--font-body); font-weight: 700; }
.entry-content h3 { color: var(--azure); }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry-content ul { list-style: none; padding-left: 1.4rem; }
.entry-content ul li { position: relative; margin-bottom: .4em; }
.entry-content ul li::before { content: ""; position: absolute; left: -1.2rem; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.entry-content ol li { margin-bottom: .4em; }
.entry-content ol li::marker { color: var(--lime); font-family: var(--font-head); }
.entry-content blockquote { margin: 1.8em 0; padding: 1.4rem 1.6rem 1.4rem 1.8rem; background: var(--panel); border-left: 4px solid var(--fuchsia); font-family: var(--font-body); font-weight: 600; font-size: 1.18rem; line-height: 1.45; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: .6rem; font-family: var(--font-body); font-size: .85rem; color: var(--muted); font-style: normal; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .95rem; border: 1px solid var(--line); }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.entry-content th { background: var(--panel); font-family: var(--font-head); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: var(--lime); }
.entry-content img { display: block; height: auto; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.entry-content pre, .entry-content code { font-family: Consolas, "Courier New", monospace; background: #120814; border: 1px solid var(--line); }
.entry-content code { padding: .1em .35em; font-size: .9em; }
.entry-content pre { padding: 1rem; overflow-x: auto; }
.entry-content pre code { border: 0; padding: 0; }
.entry-content hr { border: 0; height: 2px; background: linear-gradient(90deg, var(--lime), var(--fuchsia), var(--azure)); margin: 2rem 0; }
.alignleft { float: left; margin: .3rem 1.4rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.4rem; }
.aligncenter { margin-inline: auto; }
.wp-caption-text { font-size: .85rem; color: var(--muted); }
.entry-tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.entry-tags a { padding: .25rem .7rem; border: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.entry-tags a:hover { border-color: var(--lime); color: var(--lime); }
.page-links { margin-top: 1.4rem; }

.post-nav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; margin-top: 2.6rem; }
.post-nav a { display: block; padding: 1rem 1.2rem; background: var(--panel); border: 1px solid var(--line); min-width: 0; transition: border-color .15s; }
.post-nav a:hover { border-color: var(--lime); }
.post-nav small { display: block; color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.post-nav .pn-next { text-align: right; grid-column: 2; }

/* Пагинация */
.pager { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 2.6rem; }
.pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .8rem; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-family: var(--font-head); transition: border-color .15s, color .15s; }
.pager a.page-numbers:hover { border-color: var(--lime); color: var(--lime); }
.pager .page-numbers.current { background: var(--lime); border-color: var(--lime); color: #0E0610; }
.pager .page-numbers.dots { border: 0; background: none; min-width: 1.2rem; padding: 0; }

/* Сайдбар */
.sidebar { min-width: 0; background: var(--side); border: 1px solid var(--line); padding: 1.6rem 1.5rem; clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%); color: var(--ink); }
.sidebar .widget { margin-bottom: 2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title { margin: 0 0 1rem; padding-bottom: .4rem; border-bottom: 2px solid var(--lime); font-weight: 400; font-size: 1.3rem; text-transform: uppercase; color: var(--ink); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .55rem 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--ink); }
.sidebar a:hover { color: var(--lime); }
.sidebar .post-date { display: block; font-size: .78rem; color: var(--muted); }
.sidebar p, .sidebar .textwidget { color: #E4D3E0; }

/* Поиск */
.search-form { display: flex; align-items: stretch; gap: .5rem; max-width: 34rem; }
.search-form input[type="search"] { flex: 1; min-width: 0; padding: .7rem 1rem; background: #120814; border: 1px solid var(--line); border-radius: 0; color: var(--ink); font: inherit; }
.search-form input[type="search"]::placeholder { color: var(--muted); }
.search-form input[type="search"]:focus { border-color: var(--lime); outline: none; }
.search-form button { box-shadow: none; padding: .7rem 1.2rem; }
.search-form button:hover { transform: none; }

/* 404 */
.nf-wrap { text-align: left; padding: 1rem 0 2rem; }
.nf-code { font-family: var(--font-head); font-size: clamp(6rem, 22vw, 14rem); line-height: .9; color: transparent; -webkit-text-stroke: 2px var(--lime); letter-spacing: .02em; margin: 0; }
.nf-wrap .sec-title { margin-top: 1rem; }
.nf-wrap p { max-width: 36rem; color: #E4D3E0; margin: 1.2rem 0 1.6rem; }
.nf-wrap .nf-code { color: transparent; max-width: none; margin: 0; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.4rem; }

/* Комментарии */
.comments-area { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--lime); }
.comments-title, .comment-reply-title { font-weight: 400; text-transform: uppercase; font-size: 1.6rem; margin: 0 0 1.4rem; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .children { list-style: none; padding-left: 1.6rem; border-left: 1px dashed var(--line); }
.comment-body { background: var(--panel); border: 1px solid var(--line); padding: 1rem 1.2rem; margin-bottom: 1rem; }
.comment-meta-row { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: .5rem; }
.comment-meta-row .c-author { color: var(--lime); font-weight: 700; font-size: .95rem; }
.comment-meta-row img { border-radius: 50%; display: block; }
.comment-await { color: var(--fuchsia); font-size: .85rem; }
.comment-reply-link { font-size: .82rem; color: var(--azure); text-transform: uppercase; letter-spacing: .06em; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-size: .85rem; margin-bottom: .3rem; color: var(--muted); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: .7rem .9rem; background: #120814; border: 1px solid var(--line); border-radius: 0; color: var(--ink); font: inherit; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--lime); outline: none; }
.comment-form .comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { display: inline; margin: 0; }
.comment-notes, .logged-in-as { font-size: .85rem; color: var(--muted); }
.logged-in-as a { color: var(--azure); }
.comment-nav { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.comment-nav a { color: var(--azure); }

/* ---------- Подвал ---------- */
.site-foot { background: var(--foot-bg); color: var(--ink); padding: 3rem 0 1.6rem; border-top: 1px solid var(--line); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 3rem; }
.footer-col { min-width: 0; color: #E4D3E0; font-size: .92rem; }
.footer-col .widget { margin-bottom: 1.4rem; }
.footer-col .widget-title { margin: 0 0 .7rem; font-weight: 500; font-size: 1.2rem; text-transform: uppercase; color: var(--ink); }
.footer-col p, .footer-col .textwidget { color: #E4D3E0; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .35rem; }
.footer-col li a { color: #E4D3E0; border-bottom: 1px solid rgba(169, 140, 165, .55); transition: color .15s, border-color .15s; }
.footer-col li a:hover { color: var(--lime); border-color: var(--lime); }
.foot-copy { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid #24152A; text-align: center; font-size: .82rem; color: var(--muted); }

/* ---------- Cookie ---------- */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90; display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.6rem; max-width: 760px; margin-inline: auto; padding: 1rem 1.3rem; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--lime); color: var(--ink); box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
.cookie-banner p { margin: 0; font-size: .88rem; line-height: 1.5; color: #E4D3E0; }
.cookie-accept { flex: 0 0 auto; box-shadow: none; padding: .6rem 1.3rem; }
.cookie-accept:hover { transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
	.mood-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem 1.2rem; }
	.cards-grid, .layout-with-sidebar .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 2.6rem; }
	.duo::before { display: none; }
	.duo-grid { grid-template-columns: minmax(0, 1fr); }
	.duo-cell.cell-length, .duo-cell.cell-glossary { margin-inline: -8.8235%; padding-inline: 8.8235%; }
	.duo-cell.cell-length { background-color: var(--plum-hatch); background-image: repeating-linear-gradient(135deg, rgba(246, 233, 242, .035) 0 1px, transparent 1px 9px); }
	.anatomy-stage { width: 40%; }
}
@media (max-width: 760px) {
	.head-inner { grid-template-columns: minmax(0, 1fr) auto; padding-top: 1.6rem; }
	.nav-wrap { grid-column: 1 / -1; justify-self: stretch; }
	.nav-toggle { display: inline-block; }
	.main-nav { display: none; margin-top: .8rem; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
	.main-nav li { border-bottom: 1px solid var(--line); }
	.main-nav a { display: block; padding: .7rem 0; }
	.main-nav a::after { display: none; }
	.site-head::before { width: 100%; opacity: .55; }
	.site-head::after { display: none; }
}
@media (max-width: 600px) {
	.shell { width: 90%; }
	.duo-cell.cell-length, .duo-cell.cell-glossary { margin-inline: -5.5556%; padding-inline: 5.5556%; }
	.front-sec, .duo-cell { padding: 2.2rem 0 2.6rem; }
	.duo-cell.cell-length, .duo-cell.cell-glossary { padding-top: 2.2rem; padding-bottom: 2.6rem; }
	.brand-mark, .brand-logo { width: 58px; height: 58px; }
	.brand-mark svg { width: 34px; height: 34px; }
	.brand-desc { font-size: .8rem; }
	.mood-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cards-grid, .layout-with-sidebar .cards-grid { grid-template-columns: minmax(0, 1fr); }
	.anatomy-stage { width: 46%; }
	.anatomy-label { font-size: .74rem; white-space: normal; width: 6.4rem; }
	.anatomy-label.al-left { padding-right: .3rem; }
	.anatomy-label.al-right { padding-left: .3rem; }
	.ruler { margin-inline: 1rem; }
	.ruler-cap, .ruler-end { font-size: .78rem; }
	.glossary dt { padding-right: .8rem; font-size: .82rem; }
	.glossary dd { padding-left: .8rem; font-size: .84rem; }
	.foot-cols { grid-template-columns: minmax(0, 1fr); }
	.post-nav { grid-template-columns: minmax(0, 1fr); }
	.post-nav .pn-next { grid-column: 1; }
	.cookie-banner { flex-direction: column; align-items: stretch; padding: 1rem 1.1rem; }
	.sidebar { padding: 1.4rem 1.2rem; }
	.entry-content blockquote { padding: 1.1rem 1.1rem 1.1rem 1.3rem; }
	.alignleft, .alignright { float: none; margin: 1rem 0; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
}
