/*
Theme Name: dds_journalofcosmeticscience.com
Author: Диана Захарова
Description: Тема для информационного сайта о недвижимости и практических материалах.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: plumdom
*/

/* =========================================================
   1. Переменные и база
   ========================================================= */

:root {
    --bg: #F8F6FA;
    --bg-alt: #F0ECF8;
    --head: #2D1B4E;
    --foot: #1A0F2E;
    --ink: #1E1428;
    --accent: #A855F7;
    --accent-soft: #D8B4FE;
    --muted: #7C6A8C;
    --font-head: "Trebuchet MS", "Segoe UI", "Franklin Gothic Medium", Arial, sans-serif;
    --font-text: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    font-family: var(--font-text);
    font-size: 17px;
    line-height: 1.7;
    letter-spacing: 0.012em;
    background-color: var(--bg);
    background-image: radial-gradient(rgba(216, 180, 254, 0.2) 1.4px, transparent 1.4px);
    background-size: 24px 24px;
    background-position: 0 0;
}

.page-glow {
    position: fixed;
    right: -120px;
    bottom: -140px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: var(--accent);
    filter: blur(100px);
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
}

.site-top,
.site-main,
.site-bottom,
.cookie-banner {
    position: relative;
    z-index: 1;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 0 0 0.6em;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.1rem;
}

h3 {
    font-size: 1.4rem;
}

p {
    margin: 0 0 1.1em;
}

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

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

/* Раскладки */

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

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

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

/* Заголовки секций с ромбом */

.sec-title {
    position: relative;
    text-align: left;
    padding-left: 2.2rem;
    margin-bottom: 1.4rem;
}

.sec-title::before {
    content: "◆";
    position: absolute;
    left: 0;
    top: 0.06em;
    font-size: 0.62em;
    color: var(--accent);
    line-height: 1.5;
}

.sec-title::after {
    content: "";
    position: absolute;
    left: 0.36rem;
    top: 1.9em;
    bottom: -0.2em;
    width: 2px;
    background: var(--accent-soft);
}

/* Разделитель из квадратов */

.dots-rule {
    height: 6px;
    margin: 3rem auto;
    width: 190px;
    background-image: repeating-linear-gradient(to right, var(--accent-soft) 0 6px, transparent 6px 16px);
    opacity: 0.75;
}

/* =========================================================
   2. Кнопки и ссылки
   ========================================================= */

.btn {
    display: inline-block;
    padding: 0.72rem 1.5rem;
    border: 2px solid var(--accent);
    border-radius: 4px;
    background: transparent;
    color: var(--accent);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.96rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.35);
}

.btn-light {
    border-color: var(--accent-soft);
    color: var(--accent-soft);
    background: rgba(216, 180, 254, 0.08);
}

.btn-light:hover,
.btn-light:focus {
    background: var(--accent-soft);
    color: var(--head);
}

.link-line {
    position: relative;
    color: var(--ink);
}

.link-line::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    background: var(--accent);
    opacity: 0;
    transform: translateY(6px);
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.link-line:hover::after,
.link-line:focus::after {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   3. Шапка
   ========================================================= */

.site-top {
    background: var(--head);
    background-image: radial-gradient(rgba(216, 180, 254, 0.14) 1.4px, transparent 1.4px);
    background-size: 24px 24px;
    color: #fff;
    border-bottom: 3px solid var(--accent);
}

.site-top-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.3rem 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: #fff;
    min-width: 0;
    max-width: 640px;
}

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

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

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.02rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.brand-desc {
    display: block;
    margin-top: 0.28rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--accent-soft);
}

.nav-toggle {
    display: none;
    padding: 0.5rem 0.9rem;
    border: 2px solid var(--accent-soft);
    border-radius: 4px;
    background: transparent;
    color: #fff;
    font-family: var(--font-head);
    font-size: 0.9rem;
    cursor: pointer;
}

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

.site-nav a {
    position: relative;
    display: inline-block;
    padding: 0.3rem 0;
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.98rem;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--accent);
    opacity: 0;
    transform: translateY(6px);
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.site-nav a:hover::after,
.site-nav a:focus::after,
.site-nav .current-menu-item > a::after {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   4. Хлебные крошки
   ========================================================= */

.breadcrumbs {
    margin-bottom: 1.6rem;
    font-size: 0.85rem;
    color: var(--muted);
}

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

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

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

/* =========================================================
   5. Карточки записей
   ========================================================= */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
    gap: 1.8rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--accent-soft);
    border-radius: 0;
    box-shadow: 8px 8px 0 rgba(168, 85, 247, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 12px 12px 0 rgba(168, 85, 247, 0.28);
}

.card-thumb {
    display: block;
    overflow: hidden;
}

.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2.35 / 1;
    object-fit: cover;
}

.card-body {
    flex: 1;
    min-width: 0;
    padding: 1.2rem 1.3rem 1.4rem;
}

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

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

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

.card-meta {
    display: block;
    margin-bottom: 0.7rem;
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

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

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

.card-more {
    margin-top: 1rem;
}

.card-more .btn {
    padding: 0.5rem 1.1rem;
    font-size: 0.86rem;
}

/* =========================================================
   6. Пагинация
   ========================================================= */

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

.pager .page-numbers {
    display: inline-block;
    min-width: 44px;
    padding: 0.5rem 0.8rem;
    border: 2px solid var(--accent-soft);
    border-radius: 4px;
    color: var(--ink);
    font-family: var(--font-head);
    font-weight: 700;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

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

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

/* =========================================================
   7. Записи и страницы
   ========================================================= */

.entry-head {
    margin-bottom: 1.6rem;
}

.entry-title {
    font-size: 2.6rem;
    margin-bottom: 0.5rem;
}

.entry-meta {
    font-size: 0.84rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
}

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

.entry-cover img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2.35 / 1;
    object-fit: cover;
}

.entry-body h2,
.entry-body h3 {
    margin-top: 1.8rem;
}

.entry-body ul,
.entry-body ol {
    padding-left: 1.3rem;
    margin: 0 0 1.2em;
}

.entry-body li {
    margin-bottom: 0.45em;
}

.entry-body ol {
    list-style: none;
    counter-reset: bigstep;
    padding-left: 3.4rem;
}

.entry-body ol > li {
    position: relative;
    counter-increment: bigstep;
    min-height: 2.2rem;
}

.entry-body ol > li::before {
    content: counter(bigstep);
    position: absolute;
    left: -3.4rem;
    top: -0.6rem;
    width: 3rem;
    font-family: var(--font-head);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.16;
    text-align: right;
    line-height: 1;
}

.entry-body blockquote {
    margin: 1.6rem 0;
    padding: 1rem 1.4rem 1rem 1.5rem;
    border-left: 4px solid var(--accent);
    background: var(--bg-alt);
    color: #33253f;
    font-size: 1.06rem;
}

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

.entry-body img {
    display: block;
    height: auto;
}

.entry-body a {
    position: relative;
    color: var(--ink);
    border-bottom: 1px solid var(--accent-soft);
}

.entry-body a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.entry-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.4em;
    border: 1px solid var(--accent-soft);
}

.entry-body th,
.entry-body td {
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--accent-soft);
    text-align: left;
}

.entry-body th {
    background: var(--bg-alt);
    font-family: var(--font-head);
}

.entry-tags {
    margin-top: 2rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.entry-tags a {
    color: var(--accent);
}

/* =========================================================
   8. Сайдбар и виджеты
   ========================================================= */

.sidebar {
    min-width: 0;
}

.sidebar .widget {
    margin-bottom: 1.6rem;
    padding: 1.3rem 1.4rem;
    background: var(--bg-alt);
    border: 1px solid var(--accent-soft);
    color: var(--ink);
}

.sidebar .widget-title {
    margin: 0 0 0.9rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--accent);
    font-size: 1.08rem;
    color: var(--ink);
}

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

.sidebar .widget li {
    padding: 0.45rem 0;
    border-bottom: 1px dotted var(--accent-soft);
    font-size: 0.94rem;
}

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

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

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

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

/* =========================================================
   9. Подвал
   ========================================================= */

.site-bottom {
    margin-top: 2rem;
    background: var(--foot);
    color: #E6DDF2;
    border-top: 3px solid var(--accent);
}

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

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

.site-bottom .widget-title {
    margin: 0 0 0.9rem;
    font-size: 1.05rem;
    color: #fff;
}

.site-bottom .widget-title::before {
    content: "◆ ";
    color: var(--accent);
    font-size: 0.7em;
}

.site-bottom .widget {
    color: #E6DDF2;
    font-size: 0.93rem;
}

.site-bottom .widget p {
    color: #E6DDF2;
}

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

.site-bottom .widget li {
    padding: 0.32rem 0;
}

.site-bottom .widget a {
    color: var(--accent-soft);
}

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

.site-bottom .widget .post-date {
    display: block;
    font-size: 0.78rem;
    color: #A493BC;
}

.foot-bottom {
    padding: 1.1rem 0 1.6rem;
    border-top: 1px solid rgba(216, 180, 254, 0.24);
    font-size: 0.85rem;
    color: #B3A3C6;
}

/* =========================================================
   10. Cookie-баннер
   ========================================================= */

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.6rem;
    background: var(--head);
    border-top: 2px solid var(--accent);
    color: #EFE6FA;
    font-size: 0.9rem;
}

.cookie-banner p {
    margin: 0;
    min-width: 0;
}

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

/* =========================================================
   11. Главная страница
   ========================================================= */

.front-stack > * + * {
    margin-top: 2.6rem;
}

/* Блок 1 — hero */

.fs-hero {
    position: relative;
    overflow: hidden;
    padding: 3.4rem 2.4rem;
    background-color: var(--head);
    background-image: radial-gradient(rgba(216, 180, 254, 0.18) 1.4px, transparent 1.4px);
    background-size: 26px 26px;
    color: #fff;
}

.fs-hero::before {
    content: "";
    position: absolute;
    right: -90px;
    top: -110px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.28);
}

.fs-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.fs-hero h1 {
    color: #fff;
    margin-bottom: 0.7rem;
    font-size: 3.5rem;
}

.fs-hero-sub {
    color: var(--accent-soft);
    font-size: 1.05rem;
    margin-bottom: 1.6rem;
}

.fs-hero-art {
    position: absolute;
    right: 2rem;
    bottom: 1.4rem;
    width: 210px;
    opacity: 0.9;
}

.fs-hero-art img {
    display: block;
    width: 100%;
    height: auto;
}

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

.fs-timeline {
    padding: 0.4rem 0;
}

.tl {
    position: relative;
    margin-top: 2rem;
}

.tl::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    margin-left: -1px;
    background: linear-gradient(180deg, var(--accent-soft), var(--accent), var(--accent-soft));
}

.tl-item {
    position: relative;
    width: calc(50% - 2.6rem);
    min-width: 0;
    margin-bottom: 1.8rem;
    padding: 1.3rem 1.4rem;
    background: #fff;
    border: 1px solid var(--accent-soft);
    box-shadow: 6px 6px 0 rgba(168, 85, 247, 0.12);
}

.tl-item:nth-child(even) {
    margin-left: auto;
}

.tl-item::after {
    content: "";
    position: absolute;
    top: 1.7rem;
    width: 13px;
    height: 13px;
    background: var(--accent);
    border: 3px solid var(--bg);
    border-radius: 50%;
}

.tl-item:nth-child(odd)::after {
    right: -3.15rem;
}

.tl-item:nth-child(even)::after {
    left: -3.15rem;
}

.tl-num {
    position: absolute;
    top: -0.6rem;
    right: 0.7rem;
    font-family: var(--font-head);
    font-size: 3.4rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.13;
    line-height: 1;
}

.tl-icon {
    display: block;
    width: 40px;
    height: 40px;
    margin-bottom: 0.7rem;
}

.tl-item h3 {
    font-size: 1.12rem;
    margin-bottom: 0.4rem;
}

.tl-item p {
    margin: 0;
    font-size: 0.93rem;
    color: #40334d;
}

/* Блок «последние записи» */

.fs-latest {
    padding: 0.4rem 0;
}

.fs-latest-more {
    margin-top: 1.8rem;
}

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

.fs-stats {
    padding: 2.6rem 2.2rem;
    background-color: var(--bg-alt);
    background-image: radial-gradient(rgba(168, 85, 247, 0.16) 1.6px, transparent 1.6px);
    background-size: 20px 20px;
    border: 1px solid var(--accent-soft);
}

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

.stat-cell {
    min-width: 0;
}

.stat-num {
    display: block;
    font-family: var(--font-head);
    font-size: 3.1rem;
    font-weight: 800;
    line-height: 1;
    color: var(--ink);
    letter-spacing: -0.03em;
}

.stat-label {
    display: block;
    margin-top: 0.55rem;
    font-size: 0.85rem;
    color: var(--muted);
}

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

.fs-topics {
    padding: 0.4rem 0;
}

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

.topic-tile {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    padding: 1.2rem 1.3rem;
    border-radius: 8px;
    color: var(--ink);
    font-family: var(--font-head);
    font-weight: 700;
    box-shadow: inset 4px 4px 9px rgba(45, 27, 78, 0.13), inset -4px -4px 9px rgba(255, 255, 255, 0.85);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.topic-tile img {
    display: block;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
}

.topic-tile span {
    min-width: 0;
}

.topic-tile:hover {
    transform: translateY(-2px);
    box-shadow: inset 2px 2px 6px rgba(45, 27, 78, 0.1), inset -2px -2px 6px rgba(255, 255, 255, 0.9), 0 8px 18px rgba(168, 85, 247, 0.2);
}

.tile-1 { background: #EFE7FA; }
.tile-2 { background: #E8DEF8; }
.tile-3 { background: #F2ECFB; }
.tile-4 { background: #E4D8F6; }
.tile-5 { background: #EDE4FA; }
.tile-6 { background: #E9E0F7; }

/* =========================================================
   12. Поиск, 404, комментарии
   ========================================================= */

.search-form {
    display: flex;
    gap: 0.5rem;
    min-width: 0;
}

.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.8rem;
    border: 2px solid var(--accent-soft);
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-text);
    font-size: 0.95rem;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);
}

.sidebar .search-form {
    margin-top: 0.2rem;
}

.notfound {
    padding: 2rem 2.2rem;
    background: var(--bg-alt);
    border: 1px solid var(--accent-soft);
}

.notfound h1 {
    font-size: 3rem;
}

.notfound .search-form {
    max-width: 460px;
    margin: 1.4rem 0;
}

.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--accent-soft);
}

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

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

.comment-list ul.children {
    margin: 1rem 0 0 1.4rem;
    padding: 0;
    list-style: none;
}

.comment-item {
    margin-bottom: 1.1rem;
}

.comment-inner {
    padding: 1.1rem 1.3rem;
    background: #fff;
    border: 1px solid var(--accent-soft);
    border-left: 4px solid var(--accent);
}

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

.comment-author {
    font-family: var(--font-head);
    font-weight: 700;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--muted);
}

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

.comment-actions {
    margin-top: 0.5rem;
    font-size: 0.88rem;
}

.comment-hold {
    font-size: 0.86rem;
    color: var(--muted);
}

.comment-respond {
    padding: 1.4rem 1.5rem;
    background: var(--bg-alt);
    border: 1px solid var(--accent-soft);
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 2px solid var(--accent-soft);
    border-radius: 4px;
    background: #fff;
    font-family: var(--font-text);
    font-size: 0.95rem;
    color: var(--ink);
}

.comment-respond textarea {
    min-height: 140px;
}

.comment-respond .submit {
    display: inline-block;
    padding: 0.72rem 1.5rem;
    border: 2px solid var(--accent);
    border-radius: 4px;
    background: transparent;
    color: var(--accent);
    font-family: var(--font-head);
    font-weight: 700;
    cursor: pointer;
}

.comment-respond .submit:hover {
    background: var(--accent);
    color: #fff;
}

.page-links {
    margin: 1.4rem 0;
    font-family: var(--font-head);
}

.nothing-found {
    padding: 1.6rem 1.8rem;
    background: var(--bg-alt);
    border: 1px solid var(--accent-soft);
}

/* =========================================================
   13. Адаптив
   ========================================================= */

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

    .fs-hero h1 {
        font-size: 2.6rem;
    }

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

    .layout-single {
        width: 100%;
    }

    .layout-with-sidebar {
        display: block;
    }

    .layout-with-sidebar .sidebar {
        margin-top: 2.4rem;
    }

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

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

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

    .fs-hero-art {
        position: static;
        width: 180px;
        margin-top: 1.6rem;
    }
}

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

    h1 {
        font-size: 2.1rem;
    }

    h2 {
        font-size: 1.65rem;
    }

    .fs-hero h1 {
        font-size: 2.1rem;
    }

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

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

    .site-nav {
        display: none;
        flex: 1 0 100%;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 0.2rem;
        padding-bottom: 0.6rem;
    }

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

    .fs-stats {
        padding: 1.8rem 1.4rem;
    }

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

    .stat-num {
        font-size: 2.4rem;
    }

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

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

    .tl::before {
        left: 8px;
    }

    .tl-item {
        width: 100%;
        margin-left: 0;
        padding-left: 2.4rem;
    }

    .tl-item:nth-child(odd)::after,
    .tl-item:nth-child(even)::after {
        left: 2px;
        right: auto;
    }

    .tl-num {
        font-size: 2.6rem;
    }

    .entry-body ol {
        padding-left: 2.6rem;
    }

    .entry-body ol > li::before {
        left: -2.6rem;
        width: 2.2rem;
        font-size: 2rem;
    }

    .notfound,
    .comment-respond,
    .nothing-found {
        padding: 1.4rem 1.2rem;
    }

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