/*
Theme Name: dds_epimov-design.ru
Theme URI: https://epimov-design.ru/
Author: Андрей Епимов
Description: «Северный код» — холодная минималистичная тема для онлайн-школы веб-разработки на Tilda: сетка макета, моноширинные акценты, тонкие линии и один синий акцент.
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: sevkod
*/

/* ---------- Служебные правила для [hidden] ---------- */
.sk-cookie[hidden] { display: none !important; }

/* ---------- Токены ---------- */
:root {
    --sk-bg: #F4F7FA;
    --sk-bg-alt: #E8EEF4;
    --sk-side: #EDF2F7;
    --sk-white: #FFFFFF;
    --sk-ink: #1B2A3A;
    --sk-blue: #2F6FED;
    --sk-blue-dark: #1E5AD6;
    --sk-teal: #00B8A9;
    --sk-muted: #6B7F94;
    --sk-line: #D6E0EA;
    --sk-font: 'Manrope', 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --sk-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', 'DejaVu Sans Mono', monospace;
    --sk-radius: 10px;
    --sk-btn-radius: 8px;
    --sk-shadow: 0 2px 8px rgba(27, 42, 58, 0.06);
    --sk-shadow-hover: 0 10px 24px rgba(27, 42, 58, 0.10);
    --sk-ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--sk-font);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--sk-ink);
    background-color: var(--sk-bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke='%232F6FED' stroke-opacity='0.06' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M170 40c-50 0-62 22-62 58v52c0 30-14 46-48 46 34 0 48 16 48 46v52c0 36 12 58 62 58'/%3E%3Cpath d='M250 40c50 0 62 22 62 58v52c0 30 14 46 48 46-34 0-48 16-48 46v52c0 36-12 58-62 58'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(rgba(47, 111, 237, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47, 111, 237, 0.04) 1px, transparent 1px);
    background-repeat: no-repeat, repeat, repeat;
    background-position: right -60px top 60px, 0 0, 0 0;
    background-size: 420px 420px, 24px 24px, 24px 24px;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sk-font);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--sk-ink);
    margin: 1.6em 0 0.6em;
    overflow-wrap: break-word;
    hyphens: auto;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.12rem; }

p { margin: 0 0 1.1em; }

a { color: var(--sk-blue); text-decoration: none; transition: color .2s var(--sk-ease); }
a:hover { color: var(--sk-blue-dark); }

:focus-visible { outline: 2px solid var(--sk-blue); outline-offset: 3px; }

ul, ol { padding-left: 1.3em; margin: 0 0 1.1em; }

hr { border: 0; border-top: 1px solid var(--sk-line); margin: 2.5rem 0; }

table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; border: 1px solid var(--sk-line); background: var(--sk-white); font-size: .95rem; }
th, td { border: 1px solid var(--sk-line); padding: .65em .85em; text-align: left; vertical-align: top; }
th { background: var(--sk-bg-alt); font-weight: 600; }

code, kbd, pre { font-family: var(--sk-mono); font-size: .9em; }
:not(pre) > code { background: rgba(47, 111, 237, .08); color: var(--sk-blue-dark); padding: .1em .35em; }
pre { background: var(--sk-ink); color: #E8EEF4; padding: 1.2rem 1.4rem; border-radius: var(--sk-radius); overflow-x: auto; line-height: 1.55; }

blockquote { margin: 1.6em 0; padding: 1rem 1.4rem; border-left: 3px solid var(--sk-teal); background: var(--sk-white); border-radius: 0 var(--sk-radius) var(--sk-radius) 0; }
blockquote p:last-child { margin-bottom: 0; }

.sk-sr, .screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.sk-skip {
    position: absolute; left: 1rem; top: -100px; z-index: 1000;
    background: var(--sk-ink); color: #fff; padding: .6rem 1rem; border-radius: var(--sk-btn-radius);
}
.sk-skip:focus { top: 1rem; color: #fff; }

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

/* ---------- Полоса сверху ---------- */
.sk-topline { height: 3px; background: linear-gradient(90deg, var(--sk-blue) 0 70%, var(--sk-teal) 70% 100%); }

/* ---------- Кнопки ---------- */
.sk-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .78rem 1.45rem; border-radius: var(--sk-btn-radius);
    font-family: var(--sk-font); font-size: .98rem; font-weight: 600; line-height: 1.25;
    text-align: center; cursor: pointer; white-space: normal;
    border: 1.5px solid var(--sk-blue);
    transition: background-color .25s var(--sk-ease), color .25s var(--sk-ease), transform .25s var(--sk-ease), box-shadow .25s var(--sk-ease), border-color .25s var(--sk-ease);
}
.sk-btn--fill { background: var(--sk-blue); color: #fff; }
.sk-btn--fill:hover { background: var(--sk-blue-dark); border-color: var(--sk-blue-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(47, 111, 237, .28); }
.sk-btn--line { background: transparent; color: var(--sk-blue); }
.sk-btn--line:hover { background: var(--sk-blue); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(47, 111, 237, .22); }
.sk-btn--lg { padding: .95rem 1.8rem; font-size: 1.04rem; }

/* ---------- Моноширинные метки и теги ---------- */
.sk-sec-label {
    display: block; font-family: var(--sk-mono); font-size: .78rem; font-weight: 500;
    letter-spacing: .06em; text-transform: uppercase; color: var(--sk-muted); margin-bottom: .9rem;
}
.sk-sec-label--light { color: rgba(244, 247, 250, .6); }

.sk-tag {
    display: inline-block; font-family: var(--sk-mono); font-size: .74rem; line-height: 1.4;
    padding: .18rem .55rem; border-radius: 0;
    background: rgba(47, 111, 237, 0.08); color: var(--sk-blue);
    transition: background-color .2s var(--sk-ease);
}
.sk-tag:hover { background: rgba(47, 111, 237, 0.16); color: var(--sk-blue-dark); }

.sk-date { font-family: var(--sk-mono); font-size: .78rem; color: var(--sk-muted); letter-spacing: .02em; }

/* ---------- Заголовок секции с вертикальной линией ---------- */
.sk-sec-head { margin-bottom: 2.6rem; min-width: 0; }
.sk-sec-title {
    position: relative; margin: 0; padding-left: 1.2rem;
    font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -0.025em; max-width: 26ch;
}
.sk-sec-title::before {
    content: ""; position: absolute; left: 0; top: .08em;
    width: 4px; height: 2.4em; max-height: 100%; min-height: 1.15em;
    background: var(--sk-blue); border-radius: 2px;
}
.sk-sec-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.sk-sec-head--row > div { min-width: 0; }

/* ---------- Шапка ---------- */
.sk-header { background: var(--sk-white); border-bottom: 1px solid var(--sk-line); position: relative; z-index: 20; }
.sk-header__row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.1rem 0; }

.sk-brand { display: flex; align-items: center; gap: .95rem; color: var(--sk-ink); min-width: 0; flex: 1 1 auto; max-width: 720px; }
.sk-brand:hover { color: var(--sk-ink); }
.sk-brand__mark { flex: 0 0 auto; display: block; }
.sk-brand__logo { display: block; max-height: 52px; width: auto; }
.sk-brand__svg { display: block; width: 48px; height: 48px; }
.sk-brand__text { display: flex; flex-direction: column; min-width: 0; }
.sk-brand__name {
    font-weight: 700; font-size: .98rem; line-height: 1.3; letter-spacing: -0.01em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sk-brand__desc {
    font-family: var(--sk-mono); font-size: .72rem; line-height: 1.45; color: var(--sk-muted); margin-top: .25rem;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}

.sk-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem 1.6rem; flex-wrap: wrap; }
.sk-nav__list li { position: relative; }
.sk-nav__list a {
    display: inline-block; padding: .35rem 0; color: var(--sk-ink); font-weight: 500; font-size: .98rem;
    background-image: linear-gradient(var(--sk-blue), var(--sk-blue));
    background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1.5px;
    transition: background-size .3s var(--sk-ease), color .2s var(--sk-ease);
}
.sk-nav__list a:hover, .sk-nav__list .current-menu-item > a { color: var(--sk-blue); background-size: 100% 1.5px; }
.sk-nav__list .sub-menu { list-style: none; margin: 0; padding: .6rem 1rem; position: absolute; top: 100%; left: -1rem; min-width: 220px; background: var(--sk-white); border: 1px solid var(--sk-line); border-radius: var(--sk-radius); box-shadow: var(--sk-shadow-hover); display: none; }
.sk-nav__list li:hover > .sub-menu, .sk-nav__list li:focus-within > .sub-menu { display: block; }

.sk-burger { display: none; flex: 0 0 auto; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--sk-line); border-radius: var(--sk-btn-radius); background: var(--sk-white); cursor: pointer; flex-direction: column; justify-content: space-between; }
.sk-burger__bar { display: block; height: 2px; background: var(--sk-ink); border-radius: 2px; transition: transform .25s var(--sk-ease), opacity .2s; }
.sk-burger.is-active .sk-burger__bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.sk-burger.is-active .sk-burger__bar:nth-child(2) { opacity: 0; }
.sk-burger.is-active .sk-burger__bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Главная: общие секции ---------- */
.sk-front { padding: 96px 0; position: relative; }
.sk-front--alt { background: var(--sk-bg-alt); }
.sk-front__inner { width: 85%; margin-left: auto; margin-right: auto; min-width: 0; }

.sk-dark {
    background-color: var(--sk-ink);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 24px 24px, 24px 24px;
    color: var(--sk-bg);
}

.sk-rule { width: 70%; margin: 4rem auto 0; border: 0; border-top: 1px solid var(--sk-line); }

/* ---------- Hero ---------- */
.sk-hero { position: relative; overflow: hidden; background: var(--sk-ink); color: #fff; min-height: 600px; display: flex; align-items: center; }
.sk-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sk-hero__veil { position: absolute; inset: 0; background: rgba(27, 42, 58, 0.8); }
.sk-hero__inner { position: relative; z-index: 2; padding: 120px 0 130px; }
.sk-hero__content { width: 85%; margin-left: auto; margin-right: auto; }
.sk-hero__title { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.2rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; margin: 0 0 1.4rem; max-width: 18ch; }
.sk-hero__lead { color: rgba(244, 247, 250, .72); font-size: 1.12rem; line-height: 1.7; max-width: 58ch; margin: 0 0 2.2rem; }
.sk-hero__domain {
    position: absolute; right: 4%; bottom: 1.6rem; z-index: 2;
    font-family: var(--sk-mono); font-size: .8rem; letter-spacing: .08em; color: rgba(0, 184, 169, .85);
}
.sk-hero__domain::before { content: "// "; color: rgba(244, 247, 250, .4); }

/* ---------- Шаги ---------- */
.sk-steps__list { list-style: none; margin: 0; padding: 0; max-width: 880px; }
.sk-step { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1.5rem; padding: 2.2rem 0; border-top: 1px dashed var(--sk-line); border-top-color: #BCCADA; }
.sk-step:first-child { border-top: 0; padding-top: .4rem; }
.sk-step__num { font-family: var(--sk-mono); font-size: 2.8rem; font-weight: 500; line-height: 1; color: var(--sk-blue); letter-spacing: -0.03em; }
.sk-step__body { min-width: 0; }
.sk-step__title { margin: 0 0 .5rem; font-size: 1.3rem; }
.sk-step__body p { margin: 0; color: #3A4C60; max-width: 62ch; }

/* ---------- Сетка карточек ---------- */
.sk-grid { display: grid; gap: 1.8rem; }
.sk-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sk-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.sk-card {
    display: flex; flex-direction: column; min-width: 0;
    background: var(--sk-white); border: 1px solid var(--sk-line); border-radius: var(--sk-radius);
    box-shadow: var(--sk-shadow); overflow: hidden;
    transition: border-color .3s var(--sk-ease), box-shadow .3s var(--sk-ease), transform .3s var(--sk-ease);
}
.sk-card:hover { border-color: var(--sk-blue); box-shadow: var(--sk-shadow-hover); transform: translateY(-3px); }
.sk-card__thumb { display: block; overflow: hidden; background: var(--sk-bg-alt); border-bottom: 1px solid var(--sk-line); }
.sk-card__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s var(--sk-ease); }
.sk-card:hover .sk-card__thumb img { transform: scale(1.03); }
.sk-card__body { flex: 1; display: flex; flex-direction: column; padding: 1.3rem 1.4rem 1.5rem; min-width: 0; }
.sk-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-bottom: .8rem; }
.sk-card__title { margin: 0 0 .7rem; font-size: 1.18rem; line-height: 1.3; letter-spacing: -0.015em; }
.sk-card__title a { color: var(--sk-ink); }
.sk-card__title a:hover { color: var(--sk-blue); }
.sk-card__excerpt { color: #4A5D72; font-size: .96rem; line-height: 1.65; flex: 1; }
.sk-card__excerpt p { margin: 0 0 0.5em; background: none; }
.sk-card__excerpt a { color: var(--sk-blue); }
.sk-card__more {
    align-self: flex-start; margin-top: 1rem; font-weight: 600; font-size: .93rem; color: var(--sk-blue);
    background-image: linear-gradient(var(--sk-blue), var(--sk-blue)); background-repeat: no-repeat;
    background-position: 0 100%; background-size: 0 1.5px; padding-bottom: 2px;
    transition: background-size .3s var(--sk-ease);
}
.sk-card__more:hover { background-size: 100% 1.5px; }

.sk-empty { padding: 1.6rem 1.8rem; background: var(--sk-white); border: 1px dashed var(--sk-line); border-radius: var(--sk-radius); color: var(--sk-muted); }
.sk-empty p { margin: 0 0 1rem; }
.sk-empty p:last-child { margin-bottom: 0; }

/* ---------- Цитата ---------- */
.sk-quote { padding: 110px 0; }
.sk-quote__fig { margin: 0; padding: .4rem 0 .4rem 2rem; border-left: 3px solid var(--sk-teal); max-width: 900px; }
.sk-quote__text { margin: 0; padding: 0; border: 0; background: none; border-radius: 0; }
.sk-quote__text p { margin: 0; font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 300; line-height: 1.15; letter-spacing: -0.03em; color: var(--sk-bg); }
.sk-quote__cite { margin-top: 1.8rem; font-family: var(--sk-mono); font-size: .86rem; color: #8FA2B6; }
.sk-quote__cite::before { content: "— "; color: var(--sk-teal); }

/* ---------- Карта тем ---------- */
.sk-topics__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.sk-topic {
    display: flex; flex-direction: column; gap: .55rem; min-width: 0;
    padding: 1.8rem 1.7rem 1.9rem; background: var(--sk-white); color: var(--sk-ink);
    border: 1px solid var(--sk-line); border-radius: var(--sk-radius); box-shadow: var(--sk-shadow);
    transition: border-color .3s var(--sk-ease), transform .3s var(--sk-ease), box-shadow .3s var(--sk-ease);
}
.sk-topic:hover { border-color: var(--sk-blue); transform: translateY(-3px); box-shadow: var(--sk-shadow-hover); color: var(--sk-ink); }
.sk-topic__icon { display: block; width: 40px; height: 40px; color: var(--sk-blue); margin-bottom: .6rem; transition: color .3s var(--sk-ease); }
.sk-topic:hover .sk-topic__icon { color: var(--sk-teal); }
.sk-topic__name { font-weight: 600; font-size: 1.18rem; letter-spacing: -0.015em; }
.sk-topic__note { font-size: .93rem; line-height: 1.55; color: var(--sk-muted); }

/* ---------- Внутренние страницы ---------- */
.sk-page { padding: 2.2rem 0 5.5rem; }

.sk-crumbs { font-family: var(--sk-mono); font-size: .8rem; color: var(--sk-muted); margin-bottom: 2.4rem; line-height: 1.6; }
.sk-crumbs a {
    color: var(--sk-blue);
    background-image: linear-gradient(var(--sk-blue), var(--sk-blue)); background-repeat: no-repeat;
    background-position: 0 100%; background-size: 0 1px; transition: background-size .3s var(--sk-ease);
}
.sk-crumbs a:hover { background-size: 100% 1px; }
.sk-crumbs__sep { margin: 0 .35rem; color: #9CAEC0; }

.sk-layout { display: block; }
.sk-layout--wide .sk-content { width: 85%; margin-left: auto; margin-right: auto; }
.sk-layout--side { display: flex; justify-content: space-between; align-items: flex-start; gap: 0; }
.sk-layout--side .sk-content { flex: 0 0 67%; max-width: 67%; min-width: 0; }
.sk-layout--side .sk-side { flex: 0 0 27%; max-width: 27%; min-width: 0; }
.sk-content { min-width: 0; }

.sk-page__head { margin-bottom: 2.4rem; }
.sk-page__title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.sk-page__sub { margin-top: 1rem; color: var(--sk-muted); font-family: var(--sk-mono); font-size: .86rem; }

/* ---------- Запись / страница ---------- */
.sk-entry { min-width: 0; }
.sk-entry__head { margin-bottom: 2rem; }
.sk-entry__meta { display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; margin-bottom: 1rem; }
.sk-entry__title { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); max-width: 22ch; letter-spacing: -0.03em; }
.sk-entry__cover { margin: 0 0 2.2rem; border-radius: var(--sk-radius); overflow: hidden; border: 1px solid var(--sk-line); }
.sk-entry__cover img { display: block; width: 100%; height: auto; }

.sk-entry__content { font-size: 1.08rem; line-height: 1.8; max-width: 74ch; }
.sk-entry__content > *:first-child { margin-top: 0; }
.sk-entry__content h2 { position: relative; padding-left: 1rem; }
.sk-entry__content h2::before { content: ""; position: absolute; left: 0; top: .12em; width: 3px; height: 1.05em; background: var(--sk-teal); }
.sk-entry__content a { color: var(--sk-blue); text-decoration: underline; text-decoration-color: var(--sk-line); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color .2s var(--sk-ease), color .2s; }
.sk-entry__content a:hover { text-decoration-color: var(--sk-blue); }
.sk-entry__content img { border-radius: 6px; }
.sk-entry__content figure { margin: 2em 0; }
.sk-entry__content figcaption { font-family: var(--sk-mono); font-size: .8rem; color: var(--sk-muted); margin-top: .6rem; }
.sk-entry__content ul li::marker { color: var(--sk-teal); }
.sk-entry__content ol li::marker { color: var(--sk-blue); font-family: var(--sk-mono); }
.sk-entry__content .wp-block-table, .sk-entry__content .wp-block-code { overflow-x: auto; }

.sk-entry__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.4rem; }

.sk-postnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-top: 3rem; padding-top: 2.4rem; border-top: 1px solid var(--sk-line); }
.sk-postnav__link { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.3rem; background: var(--sk-white); border: 1px solid var(--sk-line); border-radius: var(--sk-radius); color: var(--sk-ink); transition: border-color .25s var(--sk-ease); min-width: 0; }
.sk-postnav__link:hover { border-color: var(--sk-blue); color: var(--sk-ink); }
.sk-postnav__link--next { grid-column: 2; text-align: right; }
.sk-postnav__dir { font-family: var(--sk-mono); font-size: .76rem; color: var(--sk-muted); }
.sk-postnav__title { font-weight: 600; line-height: 1.35; }

/* ---------- Сайдбар ---------- */
.sk-side { background: var(--sk-side); border: 1px solid var(--sk-line); border-radius: var(--sk-radius); padding: 1.6rem 1.5rem; color: var(--sk-ink); }
.sk-side .sk-widget { margin-bottom: 2rem; }
.sk-side .sk-widget:last-child { margin-bottom: 0; }
.sk-side .sk-widget__title { position: relative; margin: 0 0 1rem; padding-left: .8rem; font-size: 1.02rem; color: var(--sk-ink); }
.sk-side .sk-widget__title::before { content: ""; position: absolute; left: 0; top: .15em; width: 3px; height: 1.05em; background: var(--sk-blue); }
.sk-side ul { list-style: none; padding: 0; margin: 0; }
.sk-side li { padding: .6rem 0; border-top: 1px solid var(--sk-line); font-size: .95rem; line-height: 1.45; color: var(--sk-ink); }
.sk-side li:first-child { border-top: 0; padding-top: 0; }
.sk-side a { color: var(--sk-ink); }
.sk-side a:hover { color: var(--sk-blue); }
.sk-side .post-date { display: block; font-family: var(--sk-mono); font-size: .74rem; color: var(--sk-muted); margin-top: .2rem; }
.sk-side p, .sk-side .textwidget { color: #3A4C60; font-size: .95rem; }

/* ---------- Пагинация ---------- */
.sk-pager { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: 3rem; }
.sk-pager .page-numbers {
    display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .8rem;
    font-family: var(--sk-mono); font-size: .88rem; color: var(--sk-ink);
    background: var(--sk-white); border: 1px solid var(--sk-line); border-radius: var(--sk-btn-radius);
    transition: border-color .2s var(--sk-ease), color .2s var(--sk-ease), background-color .2s var(--sk-ease);
}
.sk-pager a.page-numbers:hover { border-color: var(--sk-blue); color: var(--sk-blue); }
.sk-pager .page-numbers.current { background: var(--sk-blue); border-color: var(--sk-blue); color: #fff; }
.sk-pager .page-numbers.dots { background: none; border-color: transparent; min-width: auto; padding: 0 .3rem; }
.sk-pager--inner { margin-top: 2rem; }

/* ---------- Поиск ---------- */
.sk-search { display: flex; gap: .6rem; flex-wrap: wrap; max-width: 560px; }
.sk-search__field {
    flex: 1 1 220px; min-width: 0; padding: .78rem 1rem; font: inherit; font-size: .98rem; color: var(--sk-ink);
    background: var(--sk-white); border: 1px solid var(--sk-line); border-radius: var(--sk-btn-radius);
}
.sk-search__field:focus { outline: none; border-color: var(--sk-blue); box-shadow: 0 0 0 3px rgba(47, 111, 237, .15); }

/* ---------- 404 ---------- */
.sk-404 { padding: 2rem 0; }
.sk-404__code { display: block; font-family: var(--sk-mono); font-size: clamp(3rem, 9vw, 6rem); line-height: 1; color: var(--sk-blue); margin-bottom: 1.4rem; letter-spacing: -0.04em; }
.sk-404__text { color: #3A4C60; max-width: 60ch; margin: 1.4rem 0 1.8rem; }
.sk-404__home { margin-top: 2rem; }

/* ---------- Комментарии ---------- */
.sk-comments { margin-top: 3.5rem; padding-top: 2.6rem; border-top: 1px solid var(--sk-line); }
.sk-comments__title { margin: 0 0 1.6rem; font-size: 1.5rem; }
.sk-comments__list, .sk-comments__list .children { list-style: none; margin: 0; padding: 0; }
.sk-comments__list .children { padding-left: 2rem; border-left: 1px dashed var(--sk-line); margin-left: 1rem; }
.sk-comment__body { padding: 1.2rem 1.4rem; margin-bottom: 1rem; background: var(--sk-white); border: 1px solid var(--sk-line); border-radius: var(--sk-radius); }
.sk-comment__head { display: flex; align-items: center; gap: .8rem; margin-bottom: .7rem; }
.sk-comment__ava { display: block; border-radius: 50%; }
.sk-comment__who { display: flex; flex-direction: column; min-width: 0; }
.sk-comment__author { font-weight: 600; }
.sk-comment__date { font-family: var(--sk-mono); font-size: .74rem; color: var(--sk-muted); }
.sk-comment__moder { font-family: var(--sk-mono); font-size: .8rem; color: var(--sk-teal); }
.sk-comment__text p:last-child { margin-bottom: .4rem; }
.sk-comment__reply a { font-family: var(--sk-mono); font-size: .8rem; }
.sk-comments__nav { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0 2rem; font-family: var(--sk-mono); font-size: .85rem; }

.comment-respond { margin-top: 2rem; padding: 1.8rem 1.8rem 2rem; background: var(--sk-white); border: 1px solid var(--sk-line); border-radius: var(--sk-radius); }
.comment-reply-title { margin: 0 0 1rem; font-size: 1.3rem; }
.comment-reply-title small { margin-left: .8rem; font-family: var(--sk-mono); font-size: .78rem; font-weight: 400; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: .35rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: .72rem .9rem; font: inherit; font-size: .98rem; color: var(--sk-ink);
    background: var(--sk-bg); border: 1px solid var(--sk-line); border-radius: var(--sk-btn-radius);
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--sk-blue); box-shadow: 0 0 0 3px rgba(47, 111, 237, .15); }
.comment-form-cookies-consent { display: flex; gap: .6rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; font-size: .86rem; color: var(--sk-muted); }
.comment-notes, .logged-in-as, .must-log-in { font-size: .88rem; color: var(--sk-muted); }
.sk-req { color: var(--sk-blue); }

/* ---------- Подвал ---------- */
.sk-footer { background: var(--sk-ink); color: #C9D5E2; padding: 4.5rem 0 0; position: relative; }
.sk-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--sk-blue) 0 70%, var(--sk-teal) 70% 100%); }
.sk-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; padding-bottom: 3.5rem; }
.sk-footer__col { min-width: 0; }
.sk-footer .sk-widget { margin-bottom: 1.6rem; color: #C9D5E2; }
.sk-footer .sk-widget__title { margin: 0 0 1.1rem; font-family: var(--sk-mono); font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--sk-teal); }
.sk-footer p, .sk-footer .textwidget { color: #C9D5E2; font-size: .95rem; line-height: 1.7; }
.sk-footer ul { list-style: none; margin: 0; padding: 0; }
.sk-footer li { padding: .3rem 0; color: #C9D5E2; }
.sk-footer a { color: #F4F7FA; }
.sk-footer a:hover { color: var(--sk-teal); }
.sk-footer .post-date { color: #8FA2B6; font-family: var(--sk-mono); font-size: .74rem; }
.sk-footer__bottom { border-top: 1px solid rgba(214, 224, 234, .14); padding: 1.6rem 0 1.8rem; }
.sk-copy { margin: 0; font-family: var(--sk-mono); font-size: .78rem; color: #8FA2B6; }

/* ---------- Cookie-баннер ---------- */
.sk-cookie {
    position: fixed; left: 1.2rem; right: 1.2rem; bottom: 1.2rem; z-index: 999;
    display: flex; align-items: center; justify-content: space-between; gap: 1.4rem;
    max-width: 920px; margin-inline: auto; padding: 1.1rem 1.4rem 1.1rem 1.6rem;
    background: var(--sk-white); color: var(--sk-ink);
    border: 1px solid var(--sk-line); border-left: 3px solid var(--sk-blue); border-radius: var(--sk-radius);
    box-shadow: 0 16px 40px rgba(27, 42, 58, .16);
}
.sk-cookie__text { margin: 0; font-size: .92rem; line-height: 1.55; min-width: 0; }
.sk-cookie__btn { flex: 0 0 auto; }

/* ---------- WordPress ---------- */
.alignleft { float: left; margin: .3em 1.6em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.6em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-family: var(--sk-mono); font-size: .8rem; color: var(--sk-muted); }
.sticky .sk-card__title a::before { content: "★ "; color: var(--sk-teal); }
.bypostauthor > .sk-comment__body { border-left: 3px solid var(--sk-teal); }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .sk-header__row { flex-wrap: wrap; gap: 1rem; }
    .sk-burger { display: flex; }
    .sk-nav { display: none; width: 100%; order: 3; }
    .sk-nav.is-open { display: block; }
    .sk-nav__list { flex-direction: column; gap: 0; border-top: 1px solid var(--sk-line); padding-top: .4rem; }
    .sk-nav__list a { display: block; padding: .7rem 0; }
    .sk-nav__list .sub-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 1rem; }

    .sk-front { padding: 80px 0; }
    .sk-front__inner, .sk-hero__content { width: 100%; }
    .sk-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sk-topics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .sk-layout--side { display: block; }
    .sk-layout--side .sk-content, .sk-layout--side .sk-side { max-width: none; }
    .sk-layout--side .sk-side { margin-top: 3rem; }
    .sk-layout--wide .sk-content { width: 100%; }

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

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .sk-brand__svg { width: 40px; height: 40px; }
    .sk-brand__desc { display: none; }
    .sk-brand__name { font-size: .88rem; }

    .sk-front { padding: 64px 0; }
    .sk-hero { min-height: 520px; }
    .sk-hero__inner { padding: 84px 0 96px; }
    .sk-hero__lead { font-size: 1rem; }
    .sk-hero__domain { right: 4%; bottom: 1.1rem; font-size: .72rem; }

    .sk-sec-head { margin-bottom: 2rem; }
    .sk-step { grid-template-columns: minmax(0, 1fr); gap: .6rem; padding: 1.6rem 0; }
    .sk-step__num { font-size: 2.1rem; }

    .sk-grid--3, .sk-grid--2, .sk-topics__grid { grid-template-columns: minmax(0, 1fr); }
    .sk-topic { padding: 1.5rem 1.4rem 1.6rem; }

    .sk-quote { padding: 72px 0; }
    .sk-quote__fig { padding-left: 1.2rem; }

    .sk-postnav { grid-template-columns: minmax(0, 1fr); }
    .sk-postnav__link--next { grid-column: auto; }

    .sk-side { padding: 1.4rem 1.2rem; }
    .comment-respond { padding: 1.4rem 1.2rem 1.6rem; }
    .sk-comment__body { padding: 1rem 1.1rem; }
    .sk-comments__list .children { padding-left: 1rem; margin-left: .4rem; }

    .sk-footer__cols { grid-template-columns: minmax(0, 1fr); }
    .sk-cookie { flex-direction: column; align-items: stretch; left: .8rem; right: .8rem; bottom: .8rem; padding: 1rem 1.1rem 1.1rem 1.2rem; }
    .sk-empty { padding: 1.3rem 1.2rem; }
    .alignleft, .alignright { float: none; margin: 1em 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
