/*
Theme Name: dds_isinstafree.com
Author: Дарья Романова
Description: Тема для информационного сайта о социальных сетях и просмотре историй.
Version: 1.1
Text Domain: isfree
*/

/* ==========  БАЗА  ========== */

:root {
    --bg: #F4F2F7;
    --bg-alt: #EBE6F2;
    --top: #2B283A;
    --bottom: #1E1C2A;
    --ink: #1A1828;
    --accent: #9B7FD4;
    --accent-2: #B8A2D9;
    --accent-dark: #7D5FB8;
    --muted: #8A7E9E;
    --line: #DFD9E6;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cg fill='none' stroke='%23DFD9E6' stroke-opacity='0.15' stroke-width='1'%3E%3Cpath d='M28 0 L56 16 L56 48 L28 64 L0 48 L0 16 Z'/%3E%3Cpath d='M28 48 L56 64 L56 96 L28 112 L0 96 L0 64 Z'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='620' height='520' viewBox='0 0 620 520'%3E%3Cdefs%3E%3CradialGradient id='b' cx='50%25' cy='50%25' r='50%25'%3E%3Cstop offset='0%25' stop-color='%23B8A2D9' stop-opacity='0.10'/%3E%3Cstop offset='100%25' stop-color='%23B8A2D9' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M330 40c110 0 240 60 250 170s-90 250-220 270S60 430 60 300 220 40 330 40z' fill='url(%23b)'/%3E%3C/svg%3E");
    background-repeat: repeat, no-repeat;
    background-position: 0 0, right -60px bottom -80px;
    background-attachment: scroll, fixed;
    color: var(--ink);
    font-family: "Segoe UI", Roboto, "Open Sans", "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size .28s ease, color .2s ease;
}

a:hover {
    color: var(--accent-dark);
    background-size: 100% 1px;
}

h1, h2, h3, h4, h5 {
    font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    line-height: 1.18;
    letter-spacing: -0.015em;
    margin: 0 0 .7em;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.15rem;
}

p {
    margin: 0 0 1.1em;
}

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

blockquote {
    margin: 1.6rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    color: #3A3350;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: .95rem;
}

table, th, td {
    border: 1px solid var(--line);
}

th, td {
    padding: .6rem .8rem;
    text-align: left;
}

th {
    background: var(--bg-alt);
    font-weight: 700;
}

code, pre {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: .92em;
}

pre {
    background: var(--bg-alt);
    padding: 1rem;
    border-radius: 10px;
    overflow-x: auto;
}

.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* ==========  КНОПКИ  ========== */

.btn {
    display: inline-block;
    padding: .78rem 1.6rem;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: .98rem;
    border: 2px solid var(--accent);
    cursor: pointer;
    background-image: none;
    transition: background-color .22s ease, transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: inset 0 -3px 0 rgba(26, 24, 40, .22);
}

.btn-ghost {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-ghost:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

/* ==========  ЗАГОЛОВКИ СЕКЦИЙ  ========== */

.sec-title {
    position: relative;
    margin-left: -.35rem;
    padding-bottom: .55rem;
    display: block;
}

.sec-title::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: .6rem;
    vertical-align: .18em;
}

.sec-title::after {
    content: "";
    display: block;
    margin-top: .55rem;
    height: 2px;
    width: 46%;
    background-image: radial-gradient(circle, var(--accent) 1.2px, transparent 1.3px);
    background-size: 8px 2px;
    background-repeat: repeat-x;
    opacity: .75;
}

.entry-content h2 {
    position: relative;
    margin-left: -.35rem;
}

.entry-content h2::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: .55rem;
    vertical-align: .2em;
}

/* ==========  ШАПКА  ========== */

.site-top {
    background: var(--top);
    color: #EDE9F5;
    position: relative;
    border-bottom: 1px solid rgba(184, 162, 217, .18);
}

.top-inner {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: 1.15rem 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
    flex: 1 1 auto;
}

.brand-logo {
    display: block;
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
}

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

.brand-name {
    display: block;
    font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.3;
    color: #F6F3FB;
    background-image: none;
}

.brand-name:hover {
    color: var(--accent-2);
}

.brand-desc {
    display: block;
    margin-top: .2rem;
    font-size: .78rem;
    color: #A79BC0;
    line-height: 1.45;
    max-width: 46ch;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 2px solid rgba(184, 162, 217, .5);
    color: #EDE9F5;
    border-radius: 8px;
    padding: .5rem .8rem;
    font-size: .9rem;
    cursor: pointer;
}

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

.main-nav a {
    color: #E4DEF0;
    font-size: .96rem;
    font-weight: 600;
    background-image: linear-gradient(var(--accent-2), var(--accent-2));
}

.main-nav a:hover {
    color: #fff;
}

.main-nav .current-menu-item > a {
    color: var(--accent-2);
}

/* ==========  ОБЩИЕ СЕКЦИИ СТРАНИЦ  ========== */

.site-main {
    padding: 2.4rem 0 3.4rem;
}

.breadcrumbs {
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
    line-height: 1.9;
}

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

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

.breadcrumbs .sep {
    margin: 0 .45rem;
    color: var(--accent-2);
}

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

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

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

/* ==========  САЙДБАР  ========== */

.sidebar {
    min-width: 0;
    background: rgba(255, 255, 255, .55);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 12px;
    padding: 1.6rem 1.5rem;
    box-shadow: 0 8px 20px rgba(43, 40, 58, .06);
    color: var(--ink);
}

.sidebar .widget + .widget {
    margin-top: 1.8rem;
}

.sidebar .widget-title {
    font-size: 1.1rem;
    margin: 0 0 .9rem;
    color: var(--ink);
    padding-bottom: .5rem;
    border-bottom: 1px dashed var(--accent-2);
}

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

.sidebar li {
    padding: .45rem 0 .45rem 1.05rem;
    position: relative;
    font-size: .95rem;
    color: var(--ink);
}

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

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

.sidebar a:hover {
    color: var(--accent-dark);
}

.sidebar .post-date {
    display: block;
    font-size: .8rem;
    color: var(--muted);
}

.sidebar p {
    color: #3A3350;
    font-size: .94rem;
}

/* ==========  КАРТОЧКИ ЗАПИСЕЙ  ========== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

.card-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(43, 40, 58, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(155, 127, 212, .28);
}

.card-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    background-image: none;
}

.card-thumb::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 42%;
    background: linear-gradient(to top, rgba(155, 127, 212, .45), rgba(155, 127, 212, 0));
    pointer-events: none;
}

.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

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

.card-title {
    font-size: 1.2rem;
    margin: 0 0 .55rem;
}

.card-title a {
    color: var(--ink);
    background-image: linear-gradient(var(--accent), var(--accent));
}

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

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

.card-excerpt {
    color: #3A3350;
    font-size: .95rem;
    margin-bottom: 1.1rem;
}

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

.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-weight: 600;
    font-size: .92rem;
}

/* ==========  ГЛАВНАЯ  ========== */

.front-flow {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.front-section {
    padding: 3.2rem 2.2rem;
    border-radius: 14px;
    margin-bottom: 2.6rem;
}

.front-section.alt {
    background-color: var(--bg-alt);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cg fill='none' stroke='%23DFD9E6' stroke-opacity='0.25' stroke-width='1'%3E%3Cpath d='M28 0 L56 16 L56 48 L28 64 L0 48 L0 16 Z'/%3E%3Cpath d='M28 48 L56 64 L56 96 L28 112 L0 96 L0 64 Z'/%3E%3C/g%3E%3C/svg%3E");
}

.front-section + .front-section {
    border-top: 2px dotted transparent;
}

.air-break {
    height: 0;
    border-top: 2px dotted var(--accent-2);
    opacity: .5;
    margin: 0 auto 2.6rem;
    width: 60%;
}

/* Блок 1 — hero */

.fs-hero {
    background: linear-gradient(128deg, #2B283A 0%, #3A3050 45%, #4B3B6B 100%);
    color: #F4F1FA;
    text-align: center;
    padding: 4.6rem 2.4rem;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    margin-bottom: 2.6rem;
}

.fs-hero::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    top: -180px;
    right: -160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 162, 217, .32), rgba(184, 162, 217, 0) 68%);
    filter: blur(18px);
    pointer-events: none;
}

.fs-hero > * {
    position: relative;
}

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

.fs-hero .hero-sub {
    color: #D8CFEA;
    font-size: 1.12rem;
    max-width: 62ch;
    margin: 0 auto 1.9rem;
}

/* Блок 2 — таймлайн */

.timeline {
    position: relative;
    padding-left: 2.6rem;
    margin-top: 2rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 6px;
    top: .6rem;
    bottom: .6rem;
    width: 4px;
    border-radius: 2px;
    background: var(--accent);
}

.tl-step {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 1.4rem 1.6rem;
    box-shadow: 0 8px 20px rgba(43, 40, 58, .08);
    min-width: 0;
}

.tl-step + .tl-step {
    margin-top: 1.4rem;
}

.tl-step::before {
    content: "";
    position: absolute;
    left: -2.6rem;
    top: 1.6rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(155, 127, 212, .22);
}

.tl-head {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: .5rem;
}

.tl-head h3 {
    margin: 0;
    font-size: 1.18rem;
    min-width: 0;
}

.tl-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    color: var(--accent);
}

.tl-step p {
    margin: 0;
    color: #3A3350;
    font-size: .96rem;
}

/* Блок 3 — статистика */

.stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 2rem;
}

.stat-cell {
    padding: .6rem 1.1rem;
    text-align: center;
    min-width: 0;
}

.stat-cell + .stat-cell {
    border-left: 1px solid var(--line);
}

.stat-num {
    display: block;
    font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif;
    font-size: 2.7rem;
    font-weight: 700;
    color: var(--top);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.stat-label {
    display: block;
    margin-top: .35rem;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.5;
}

/* Блок 4 — карта тем */

.topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.topic-tile {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 1.6rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, .5);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .75);
    box-shadow: 0 8px 20px rgba(43, 40, 58, .07);
    color: var(--ink);
    background-image: none;
    min-width: 0;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.topic-tile:hover {
    color: var(--ink);
    transform: translateY(-3px);
    border-color: var(--accent-2);
    box-shadow: 0 14px 30px rgba(155, 127, 212, .25);
}

.topic-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    color: var(--accent);
}

.topic-tile h3 {
    margin: 0 0 .3rem;
    font-size: 1.12rem;
}

.topic-tile p {
    margin: 0;
    font-size: .92rem;
    color: var(--muted);
}

.topic-body {
    min-width: 0;
}

/* Последние записи на главной */

.fs-latest {
    padding: 3.2rem 2.2rem;
    margin-bottom: 2.6rem;
}

.latest-foot {
    margin-top: 2rem;
    text-align: center;
}

/* ==========  ЗАПИСЬ И СТРАНИЦА  ========== */

.entry-header {
    margin-bottom: 1.4rem;
}

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

.entry-meta {
    font-size: .85rem;
    color: var(--muted);
}

.entry-thumb {
    margin: 0 0 1.6rem;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.entry-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

.entry-thumb::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 36%;
    background: linear-gradient(to top, rgba(155, 127, 212, .42), rgba(155, 127, 212, 0));
    pointer-events: none;
}

.entry-content img {
    border-radius: 12px;
}

.page-heading {
    margin-bottom: 1.8rem;
}

.archive-desc {
    color: var(--muted);
    margin-top: -.6rem;
}

.no-posts {
    background: #fff;
    border-radius: 12px;
    padding: 1.8rem 1.8rem;
    box-shadow: 0 8px 20px rgba(43, 40, 58, .08);
}

/* ==========  ПАГИНАЦИЯ  ========== */

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

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: .5rem .8rem;
    border-radius: 8px;
    border: 1px solid var(--accent-2);
    color: var(--accent-dark);
    font-weight: 600;
    font-size: .95rem;
    background-image: none;
    background-color: rgba(255, 255, 255, .7);
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.pager a.page-numbers:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
}

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

.pager .page-numbers.dots {
    border-color: transparent;
    background-color: transparent;
    color: var(--muted);
}

/* ==========  ФОРМА ПОИСКА  ========== */

.search-form {
    display: flex;
    gap: .6rem;
    max-width: 460px;
}

.search-form input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: .7rem .9rem;
    border: 1px solid var(--accent-2);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-size: .95rem;
    font-family: inherit;
}

.search-form input[type="search"]:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.search-form button {
    padding: .7rem 1.2rem;
    border: 2px solid var(--accent);
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background-color .2s ease, transform .2s ease;
}

.search-form button:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
}

/* ==========  КОММЕНТАРИИ  ========== */

.comments-area {
    margin-top: 2.8rem;
    background: #fff;
    border-radius: 12px;
    padding: 1.8rem 1.9rem;
    box-shadow: 0 8px 20px rgba(43, 40, 58, .08);
}

.comments-title {
    font-size: 1.5rem;
}

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

.comment-list ul.children {
    list-style: none;
    margin: 1rem 0 0;
    padding-left: 1.6rem;
    border-left: 2px dotted var(--accent-2);
}

.comment-body {
    padding: 1.1rem 1.2rem;
    background: var(--bg-alt);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.comment-author-name {
    font-weight: 700;
}

.comment-date {
    font-size: .82rem;
    color: var(--muted);
    margin-left: .5rem;
}

.comment-text p:last-child {
    margin-bottom: 0;
}

.comment-reply-link {
    font-size: .88rem;
    font-weight: 600;
}

.comment-form label {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: .3rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .7rem .9rem;
    border: 1px solid var(--accent-2);
    border-radius: 8px;
    font-family: inherit;
    font-size: .95rem;
    background: #fff;
    color: var(--ink);
}

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

.comment-form .submit {
    padding: .78rem 1.6rem;
    border-radius: 8px;
    background: var(--accent);
    border: 2px solid var(--accent);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background-color .2s ease, transform .2s ease;
}

.comment-form .submit:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
}

/* ==========  404  ========== */

.err-block {
    text-align: center;
    padding: 2.4rem 2rem 3rem;
}

.err-code {
    font-size: 5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: .6rem;
    font-family: Inter, Manrope, Arial, sans-serif;
}

.err-block .search-form {
    margin: 1.6rem auto;
}

/* ==========  ПОДВАЛ  ========== */

.site-bottom {
    background: var(--bottom);
    color: #C9C1DC;
    padding: 3rem 0 1.6rem;
    margin-top: 3rem;
}

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

.foot-col {
    min-width: 0;
}

.site-bottom .widget-title {
    color: #F1EDF8;
    font-size: 1.05rem;
    margin: 0 0 .9rem;
    padding-bottom: .5rem;
    border-bottom: 1px dashed rgba(184, 162, 217, .45);
}

.site-bottom p {
    color: #C9C1DC;
    font-size: .93rem;
}

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

.site-bottom li {
    padding: .4rem 0 .4rem 1.05rem;
    position: relative;
    font-size: .93rem;
    color: #C9C1DC;
}

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

.site-bottom a {
    color: #DCD4EC;
    background-image: linear-gradient(var(--accent-2), var(--accent-2));
}

.site-bottom a:hover {
    color: #fff;
}

.site-bottom .post-date {
    display: block;
    font-size: .8rem;
    color: #9A90B2;
}

.copyright {
    margin-top: 2.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(184, 162, 217, .2);
    font-size: .85rem;
    color: #9A90B2;
}

/* ==========  COOKIE-БАННЕР  ========== */

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1rem 1.6rem;
    background: rgba(30, 28, 42, .96);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #E3DDF0;
    border-top: 2px solid var(--accent);
}

.cookie-banner p {
    margin: 0;
    font-size: .9rem;
    min-width: 0;
    flex: 1 1 320px;
}

.cookie-banner a {
    color: var(--accent-2);
}

/* ==========  АДАПТИВ  ========== */

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

    h2 {
        font-size: 1.7rem;
    }

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

    .layout-single,
    .front-flow {
        width: 100%;
    }

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

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

    .stat-cell:nth-child(3) {
        border-left: none;
    }

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

    .main-nav {
        flex: 1 1 100%;
    }

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

    .main-nav ul {
        flex-direction: column;
        gap: .2rem;
        padding-top: .8rem;
    }

    .main-nav li {
        border-top: 1px solid rgba(184, 162, 217, .18);
        padding: .55rem 0;
    }
}

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

    h1 {
        font-size: 2.1rem;
    }

    h2 {
        font-size: 1.45rem;
    }

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

    .fs-hero {
        padding: 2.8rem 1.4rem;
    }

    .front-section,
    .fs-latest {
        padding: 2.2rem 1.4rem;
    }

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

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

    .stat-cell + .stat-cell {
        border-left: none;
        border-top: 1px solid var(--line);
        padding-top: 1rem;
    }

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

    .timeline {
        padding-left: 1.8rem;
    }

    .tl-step::before {
        left: -1.8rem;
        width: 13px;
        height: 13px;
    }

    .sidebar {
        padding: 1.3rem 1.2rem;
    }

    .comments-area {
        padding: 1.3rem 1.2rem;
    }

    .cookie-banner {
        padding: .9rem 1.1rem;
    }

    .sec-title::after {
        width: 70%;
    }
}
