/*
Theme Name: dds_civilengineering-softstudies.com
Author: Дмитрий Крылов
Description: Тема для информационного сайта о гражданском строительстве. Холодный индустриальный минимализм с элементами технической документации.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: cengin
*/

:root {
    --bg:          #F0F4F8;
    --bg-alt:      #E9EDF2;
    --bg-white:    #FFFFFF;
    --ink:         #1E293B;
    --ink-soft:    #6B7A8F;
    --top:         #1A2639;
    --bottom:      #0D1624;
    --accent:      #FF6B35;
    --accent-dark: #E2551F;
    --teal:        #2A9D8F;
    --line:        #D1D9E6;
    --font-head:   'Inter', 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-body:   'Roboto', 'Noto Sans', 'Helvetica Neue', system-ui, -apple-system, sans-serif;
}

/* --- сброс и база --------------------------------------------------- */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(26, 38, 57, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 38, 57, .035) 1px, transparent 1px);
    background-size: 20px 20px;
    background-attachment: fixed;
}

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

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

.entry a,
.card-excerpt a,
.widget a {
    border-top: 1px solid transparent;
    transition: border-color .18s ease, color .18s ease;
}

.entry a:hover,
.card-excerpt a:hover,
.widget a:hover { border-top-color: currentColor; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.01em;
    color: var(--top);
    margin: 0 0 .7em;
}

p { margin: 0 0 1.1em; }

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

.home .shell { width: min(85%, 1180px); }

.site-main {
    position: relative;
    display: block;
    min-height: 40vh;
}

.site-main::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 320px;
    height: 320px;
    pointer-events: none;
    opacity: .04;
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%231A2639' stroke-width='6'%3E%3Cpath d='M100 20 L40 180 M100 20 L160 180 M62 136 L138 136'/%3E%3Ccircle cx='100' cy='20' r='10'/%3E%3Cpath d='M20 190 H180'/%3E%3C/g%3E%3C/svg%3E");
}

/* --- кнопки --------------------------------------------------------- */

.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .02em;
    padding: .78em 1.6em;
    border-radius: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
}

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

.btn-solid:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-1px);
}

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

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

/* --- шапка ---------------------------------------------------------- */

.site-top {
    background: var(--top);
    border-bottom: 2px solid var(--accent);
}

.site-top-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    padding: 1.3rem 0;
}

.brand { min-width: 0; flex: 1 1 320px; }

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

.brand-mark, .brand-logo { flex: 0 0 auto; width: 48px; height: auto; }
.brand-logo { max-height: 56px; width: auto; }

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.25;
    color: #fff;
}

.brand-desc {
    display: block;
    font-size: .78rem;
    line-height: 1.4;
    color: #93A2B5;
    margin-top: .25rem;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: .5rem;
    background: transparent;
    border: 1px solid #3A4B63;
    border-radius: 2px;
    color: #fff;
    font-family: var(--font-head);
    font-size: .9rem;
    padding: .55rem 1rem;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 5px 0 var(--accent), 0 -5px 0 var(--accent);
}

.primary-nav { flex: 0 1 auto; min-width: 0; }

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

.nav-list a {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .95rem;
    font-weight: 500;
    color: #DCE4EE;
    padding: .25rem 0;
    border-top: 2px solid transparent;
    transition: color .18s ease, border-color .18s ease;
}

.nav-list a:hover,
.nav-list .current-menu-item > a {
    color: #fff;
    border-top-color: var(--accent);
}

.nav-list .sub-menu {
    list-style: none;
    margin: .4rem 0 0;
    padding: 0 0 0 .8rem;
    display: block;
}

/* --- секции главной ------------------------------------------------- */

.strip {
    padding: 5rem 0;
    background: var(--bg);
}

.strip-alt {
    background: var(--bg-white);
    border-top: 2px solid var(--accent);
}

.strip-alt + .strip .shell,
.strip + .strip-alt .shell { position: relative; }

.strip-alt + .strip .shell::before,
.strip + .strip-alt .shell::before {
    content: "";
    display: block;
    border-top: 1px dashed var(--line);
    margin: -2.4rem 0 2.4rem;
}

.sec-title {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 2rem;
    margin-bottom: .9rem;
}

.sec-title::before {
    content: "□";
    color: var(--accent);
    font-size: .8em;
    line-height: 1;
    flex: 0 0 auto;
}

.sec-title::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--accent);
    opacity: .55;
}

.sec-lead {
    max-width: 68ch;
    color: var(--ink-soft);
    margin-bottom: 2.6rem;
}

.sec-more { margin: 2.6rem 0 0; }

.empty-note { color: var(--ink-soft); }

/* --- hero ----------------------------------------------------------- */

.hero {
    background-color: var(--top);
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 20px 20px;
    padding: 5.5rem 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 3rem;
    align-items: center;
}

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

.hero-tag {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .82rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 1.2rem;
}

.hero-title {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: .55em;
}

.hero-lead {
    color: #C3CEDC;
    font-size: 1.05rem;
    max-width: 56ch;
    margin-bottom: 2rem;
}

.hero-art { min-width: 0; }
.hero-art svg { width: 100%; height: auto; display: block; }

/* --- таймлайн ------------------------------------------------------- */

.tline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.tline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-left: 2px dashed var(--teal);
}

.tline-item {
    position: relative;
    width: 50%;
    padding-right: 3rem;
    margin-bottom: 2.2rem;
    min-width: 0;
}

.tline-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 3rem;
}

.tline-dot {
    position: absolute;
    top: 1.9rem;
    right: -7px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border: 2px solid var(--bg-white);
}

.tline-item:nth-child(even) .tline-dot {
    right: auto;
    left: -7px;
}

.tline-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.6rem 1.7rem;
    min-width: 0;
}

.tline-ico {
    display: inline-block;
    color: var(--teal);
    margin-bottom: .6rem;
}

.tline-name {
    font-size: 1.15rem;
    margin-bottom: .5rem;
}

.tline-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* --- плитки направлений --------------------------------------------- */

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

.tile {
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2rem 1.8rem;
    background: transparent;
    min-width: 0;
    transition: background-color .2s ease, border-color .2s ease;
}

.tile:hover {
    background: var(--bg-alt);
    border-color: var(--top);
}

.tile-ico { display: inline-block; color: var(--accent); margin-bottom: .9rem; }

.tile-name { font-size: 1.2rem; margin-bottom: .5rem; }

.tile p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* --- цитата --------------------------------------------------------- */

.quote-plate {
    position: relative;
    margin: 0;
    padding: 3.2rem 3rem 3.4rem;
    background-image: linear-gradient(135deg, rgba(26, 38, 57, .97), rgba(13, 22, 36, .97));
    color: #fff;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
}

.quote-text {
    margin: 0;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.9rem;
    line-height: 1.35;
    color: #fff;
    max-width: 30ch;
}

.quote-sign {
    margin-top: 1.8rem;
    text-align: right;
    color: var(--accent);
    font-family: var(--font-head);
    font-size: .95rem;
    letter-spacing: .05em;
}

/* --- карточки записей ------------------------------------------------ */

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

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: 4px;
    transition: border-color .2s ease;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity .2s ease;
}

.card:hover { border-color: var(--top); }
.card:hover::before { opacity: 1; }

.card-thumb { display: block; }

.card-thumb img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05) brightness(.98);
    transition: filter .25s ease;
}

.card:hover .card-thumb img { filter: none; }

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

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    font-size: .8rem;
    color: var(--ink-soft);
    font-family: var(--font-head);
    letter-spacing: .04em;
    margin-bottom: .7rem;
}

.post-meta a { color: var(--teal); }
.meta-cat::before { content: "□ "; color: var(--accent); }

.card-title {
    font-size: 1.18rem;
    margin-bottom: .6rem;
}

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

.card-excerpt {
    color: var(--ink-soft);
    font-size: .95rem;
    margin-bottom: 1.2rem;
}

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

.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .9rem;
    color: var(--accent);
    border-top: 1px solid transparent;
}

.card-more:hover { border-top-color: var(--accent); }

/* --- раскладка внутренних страниц ------------------------------------ */

.page-wrap { padding: 2.6rem 0 5rem; }

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

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

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

.page-h1 {
    font-size: 2.4rem;
    margin-bottom: .6em;
}

.crumbs {
    font-size: .85rem;
    color: var(--ink-soft);
    margin-bottom: 1.8rem;
    font-family: var(--font-head);
}

.crumbs a { color: var(--teal); }
.crumbs a:hover { color: var(--accent); }
.crumbs-sep { color: var(--line); margin: 0 .2rem; }

.arch-desc { color: var(--ink-soft); margin-bottom: 2rem; }

/* --- контент записи -------------------------------------------------- */

.single-thumb { margin-bottom: 2rem; }
.single-thumb img { border-radius: 4px; }

.entry { margin-top: 1.6rem; }

.entry h2, .entry h3, .entry h4 {
    margin-top: 2.2em;
}

.entry h2::before,
.entry h3::before {
    content: "□ ";
    color: var(--accent);
    font-size: .8em;
}

.entry h2 { font-size: 1.7rem; }
.entry h3 { font-size: 1.32rem; }

.entry ul, .entry ol { padding-left: 1.3rem; margin: 0 0 1.3em; }
.entry li { margin-bottom: .5em; }

.entry ul { list-style: none; padding-left: 1.5rem; }
.entry ul li { position: relative; }
.entry ul li::before {
    content: "";
    position: absolute;
    left: -1.2rem;
    top: .62em;
    width: 7px;
    height: 7px;
    background: var(--teal);
}

.entry blockquote {
    position: relative;
    margin: 2rem 0;
    padding: 1.8rem 2rem;
    background: var(--bg-alt);
    border-left: 3px solid var(--accent);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}

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

.entry img { border-radius: 4px; margin: 1.4rem 0; }

.entry table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8rem 0;
    font-size: .95rem;
    border: 1px solid var(--line);
}

.entry th, .entry td {
    border: 1px solid var(--line);
    padding: .7rem .9rem;
    text-align: left;
}

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

.entry pre {
    background: var(--top);
    color: #E2E8F0;
    padding: 1.2rem 1.4rem;
    border-radius: 4px;
    overflow-x: auto;
}

.entry code { font-family: 'Menlo', 'Consolas', monospace; font-size: .9em; }

.post-tags { margin-top: 2rem; font-size: .9rem; }
.post-tags a {
    display: inline-block;
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: .2rem .7rem;
    margin: 0 .4rem .4rem 0;
    color: var(--ink-soft);
}
.post-tags a:hover { border-color: var(--accent); color: var(--accent); }

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

.post-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.2rem;
    margin-top: 2.6rem;
    padding: 1.4rem 1.6rem;
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: 4px;
    font-family: var(--font-head);
    font-size: .95rem;
}

.post-nav a { min-width: 0; }

/* --- сайдбар и виджеты ----------------------------------------------- */

.sidebar {
    min-width: 0;
    background: var(--bg-white);
    border-top: 2px solid var(--accent);
    border-left: 1px solid var(--line);
    padding: 1.6rem 1.5rem;
}

.sidebar .widget { margin-bottom: 2rem; color: var(--ink); }
.sidebar .widget:last-child { margin-bottom: 0; }

.sidebar .widget-title {
    font-size: 1.05rem;
    color: var(--top);
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--line);
}

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

.sidebar .widget li {
    padding: .55rem 0 .55rem 1.1rem;
    position: relative;
    border-bottom: 1px dashed var(--line);
    font-size: .95rem;
}

.sidebar .widget li::before {
    content: "□";
    position: absolute;
    left: 0;
    top: .5rem;
    color: var(--accent);
    font-size: .75rem;
}

.sidebar .widget a { color: var(--ink); }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar .widget .post-date { display: block; font-size: .78rem; color: var(--ink-soft); }

/* --- подвал ----------------------------------------------------------- */

.site-bottom {
    background: var(--bottom);
    color: #B9C4D2;
    padding: 3.4rem 0 2rem;
    border-top: 2px solid var(--accent);
}

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

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

.site-bottom .widget { color: #B9C4D2; font-size: .93rem; }

.site-bottom .widget-title {
    color: #fff;
    font-size: 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid #23324A;
    margin-bottom: 1rem;
}

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

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

.site-bottom .widget li {
    padding: .35rem 0 .35rem 1.1rem;
    position: relative;
}

.site-bottom .widget li::before {
    content: "□";
    position: absolute;
    left: 0;
    top: .35rem;
    color: var(--teal);
    font-size: .7rem;
}

.site-bottom .widget a { color: #DCE4EE; }
.site-bottom .widget a:hover { color: var(--accent); }

.foot-mark {
    margin-top: 2.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid #23324A;
    font-size: .85rem;
    color: #7F8FA3;
    font-family: var(--font-head);
}

/* --- пагинация -------------------------------------------------------- */

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

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 .8rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--bg-white);
    color: var(--ink);
    font-family: var(--font-head);
    font-size: .92rem;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

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

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

.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

/* --- форма поиска ------------------------------------------------------ */

.searchform { margin: 1.6rem 0; }

.searchform-row {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.searchform-input {
    flex: 1 1 200px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--bg-white);
    padding: .72rem .9rem;
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--ink);
}

.searchform-input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }

.sidebar .searchform { margin: 0; }

/* --- комментарии -------------------------------------------------------- */

.comments {
    margin-top: 3.2rem;
    padding-top: 2.2rem;
    border-top: 1px solid var(--line);
}

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

.comment-list, .comment-list .children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .children { padding-left: 1.6rem; margin-top: 1rem; }

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

.comment-inner {
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.3rem 1.5rem;
}

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

.comment-author { font-family: var(--font-head); font-weight: 600; color: var(--top); }
.comment-date { font-size: .82rem; color: var(--ink-soft); }
.comment-hold { font-size: .88rem; color: var(--teal); }
.comment-text p:last-child { margin-bottom: 0; }
.comment-actions { margin-top: .7rem; font-size: .9rem; }

.comment-respond {
    margin-top: 2.2rem;
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.8rem 1.9rem;
}

.comment-reply-title { font-size: 1.25rem; }

.comment-form label {
    display: block;
    font-family: var(--font-head);
    font-size: .88rem;
    margin-bottom: .35rem;
    color: var(--top);
}

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

.comment-form textarea { resize: vertical; }
.comment-form p { margin-bottom: 1rem; }
.comment-form .form-submit { margin-bottom: 0; }

.comments-closed { color: var(--ink-soft); }

/* --- 404 ---------------------------------------------------------------- */

.err-code {
    font-family: var(--font-head);
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 1rem;
}

/* --- cookie ------------------------------------------------------------- */

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

.cookie-note {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--top);
    border-top: 2px solid var(--accent);
}

.cookie-note-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.1rem 0;
}

.cookie-note-text {
    margin: 0;
    color: #C3CEDC;
    font-size: .9rem;
    min-width: 0;
    flex: 1 1 320px;
}

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

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

    .home .shell,
    .shell { width: min(92%, 1180px); }

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

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

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

    .nav-list {
        flex-direction: column;
        gap: .2rem;
        padding-top: .8rem;
        border-top: 1px solid #2A3A52;
    }

    .nav-list a { padding: .5rem 0; }

    .hero { padding: 3.6rem 0; }
    .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
    .hero-title { font-size: 2.4rem; }

    .strip { padding: 3.4rem 0; }

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

    .sidebar { border-left: none; }

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

    .page-h1 { font-size: 1.9rem; }
    .sec-title { font-size: 1.6rem; }
    .quote-text { font-size: 1.5rem; }
}

@media (max-width: 600px) {
    .strip { padding: 2.6rem 0; }

    .hero { padding: 2.8rem 0; }
    .hero-title { font-size: 2rem; }

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

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

    .tline::before { left: 6px; transform: none; }
    .tline-item,
    .tline-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding-left: 2rem;
        padding-right: 0;
    }
    .tline-dot,
    .tline-item:nth-child(even) .tline-dot { left: 0; right: auto; }

    .quote-plate { padding: 2rem 1.5rem 2.4rem; }
    .quote-text { font-size: 1.25rem; max-width: none; }
    .quote-sign { text-align: left; }

    .tile { padding: 1.5rem 1.3rem; }
    .tline-card { padding: 1.3rem 1.3rem; }
    .post-nav { padding: 1.2rem 1.2rem; }
    .comment-respond { padding: 1.4rem 1.2rem; }
    .comment-inner { padding: 1.1rem 1.2rem; }
    .sidebar { padding: 1.3rem 1.2rem; }
    .cookie-note-inner { padding: 1rem 0; }
    .entry blockquote { padding: 1.4rem 1.4rem; }
    .page-h1 { font-size: 1.6rem; }
    .err-code { font-size: 3.2rem; }
    .site-main::after { width: 180px; height: 180px; }
}
