/*
Theme Name: dds_wtfirkin.com
Theme URI: https://wtfirkin.com/
Author: Игорь Фиркин
Author URI: https://wtfirkin.com/
Description: Тема для информационного портала об аренде помещений под бары, пабы и кафе. Холодная индустриальная стилистика, строгая сетка, янтарный акцент.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: firkin
*/

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

:root {
    --bg: #E8ECF1;
    --bg-alt: #DDE3EA;
    --head-bg: #1B2A3A;
    --foot-bg: #14202D;
    --aside-bg: #F2F5F8;
    --ink: #1B2A3A;
    --amber: #E8A33D;
    --amber-dark: #C98A2E;
    --steel: #4A7C9B;
    --muted: #6B7C8C;
    --line: #C5CFD9;
    --grid-line: #D0D8E0;
    --font-head: "Space Grotesk", "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Inter", "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 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(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    background-size: 24px 24px;
}

body::after {
    content: "";
    position: fixed;
    right: -20px;
    bottom: -10px;
    width: 340px;
    height: 340px;
    opacity: 0.08;
    pointer-events: none;
    z-index: -1;
    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' fill='none' stroke='%234A7C9B' stroke-width='2'%3E%3Cpath d='M20 150h160M28 150v-18h144v18'/%3E%3Cpath d='M60 40h60l-8 34c-1 5-6 9-11 9h-22c-5 0-10-4-11-9z'/%3E%3Cpath d='M90 83v32M74 115h32'/%3E%3Cpath d='M140 46h26v52h-26zM140 62h26'/%3E%3Cpath d='M34 60h22v72H34z'/%3E%3C/svg%3E");
}

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

a {
    color: var(--steel);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .18s ease, text-decoration-color .18s ease;
}

a:hover {
    color: var(--ink);
    text-decoration-color: var(--amber);
    text-decoration-thickness: 2px;
}

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

h1 {
    font-size: 3.2rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-left: 18px;
}

h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .16em;
    width: 4px;
    height: 0.8em;
    background: var(--amber);
}

h3 {
    font-size: 1.35rem;
}

p {
    margin: 0 0 1.1em;
}

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

li {
    margin-bottom: .45em;
}

blockquote {
    margin: 1.6rem 0;
    padding: 1.2rem 1.5rem;
    border-left: 4px solid var(--amber);
    background: #F2F5F8;
    color: var(--ink);
}

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

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

pre {
    overflow-x: auto;
    padding: 1rem;
    background: #F2F5F8;
    border: 1px solid var(--line);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.4rem;
    border: 1px solid var(--line);
}

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

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

/* ==========================================================
   2. Контейнер и раскладки
   ========================================================== */

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

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

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

.home .site-main {
    padding-top: 0;
}

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

.layout-single {
    display: block;
}

.layout-single .content-area {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

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

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

.site-header {
    background: var(--head-bg);
    border-bottom: 4px solid var(--amber);
    color: #fff;
    padding: 1.1rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
    max-width: 640px;
}

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

.brand img.brand-logo {
    width: auto;
    height: 52px;
    max-width: 200px;
    object-fit: contain;
}

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.brand-name:hover {
    color: var(--amber);
    text-decoration: none;
}

.brand-desc {
    display: block;
    margin-top: .3rem;
    font-size: .78rem;
    line-height: 1.45;
    color: #A9B7C5;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: .5rem;
    background: transparent;
    border: 2px solid var(--steel);
    border-radius: 2px;
    color: #fff;
    font-family: var(--font-head);
    font-size: .85rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .5rem .8rem;
    cursor: pointer;
}

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

.nav-main li {
    margin: 0;
}

.nav-main a {
    color: #E4EAF0;
    font-family: var(--font-head);
    font-size: .95rem;
    letter-spacing: .02em;
    text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
}

.nav-main a:hover,
.nav-main .current-menu-item > a {
    color: #fff;
    border-bottom-color: var(--amber);
}

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

.breadcrumbs {
    font-size: .85rem;
    color: var(--muted);
    margin: 0 0 1.6rem;
    padding: .55rem 0;
    border-bottom: 1px solid var(--line);
}

.breadcrumbs a {
    color: var(--steel);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--amber);
}

.breadcrumbs .sep {
    color: var(--amber);
    margin: 0 .35rem;
}

/* ==========================================================
   5. Кнопки
   ========================================================== */

.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .95rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    padding: .72rem 1.5rem;
    border: 2px solid var(--amber);
    background: var(--amber);
    color: var(--ink);
    cursor: pointer;
    transition: background .18s ease, transform .18s ease, border-color .18s ease, color .18s ease;
}

.btn:hover {
    background: var(--amber-dark);
    border-color: var(--amber-dark);
    color: var(--ink);
    text-decoration: none;
    transform: translateY(-2px);
}

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

.btn-ghost:hover {
    background: transparent;
    border-color: var(--amber);
    color: var(--ink);
}

.btn-sm {
    font-size: .82rem;
    padding: .5rem 1rem;
}

/* ==========================================================
   6. Секции главной
   ========================================================== */

.section-title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding-left: 0;
    margin-bottom: 1.6rem;
    font-size: 2rem;
}

.section-title::before {
    content: "";
    position: static;
    display: block;
    flex: 0 0 40px;
    width: 40px;
    height: 2px;
    background: var(--amber);
}

.front-section {
    padding: 3.4rem 0;
}

.front-section.is-alt {
    background: var(--bg-alt);
}

/* --- Hero --- */

.hero-unit {
    position: relative;
    isolation: isolate;
    color: #fff;
    background-color: var(--head-bg);
    padding: 5rem 0 5.2rem;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-media::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(16, 27, 40, .80), rgba(16, 27, 40, .88));
}

.hero-inner {
    position: relative;
    max-width: 780px;
}

.hero-kicker {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .8rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--amber);
    border: 1px solid rgba(232, 163, 61, .5);
    padding: .3rem .8rem;
    margin-bottom: 1.4rem;
}

.hero-unit h1 {
    color: #fff;
    margin-bottom: 1rem;
}

.hero-lead {
    font-size: 1.12rem;
    color: #CBD5DF;
    max-width: 640px;
    margin-bottom: 1.9rem;
}

/* --- Статистика --- */

.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    background: #F2F5F8;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2rem 2.2rem;
}

.stat-cell {
    min-width: 0;
    padding: .4rem 1.2rem;
    border-left: 1px solid var(--line);
    text-align: center;
}

.stat-cell:first-child {
    border-left: none;
}

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

.stat-label {
    display: block;
    margin-top: .6rem;
    font-size: .88rem;
    line-height: 1.45;
    color: var(--muted);
}

/* --- Сетка форматов --- */

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

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

.venue-card:hover {
    border-color: var(--amber);
    transform: translateY(-4px);
}

.venue-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 1.1rem;
    color: var(--steel);
}

.venue-card h3 {
    margin-bottom: .6rem;
}

.venue-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: .96rem;
}

/* --- Цитата --- */

.thesis-block {
    background: var(--head-bg);
    border-left: 6px solid var(--amber);
    border-radius: 4px;
    padding: 3rem 2.6rem;
    color: #fff;
}

.thesis-block p {
    font-family: var(--font-head);
    font-size: 1.85rem;
    line-height: 1.35;
    color: #fff;
    margin: 0;
    letter-spacing: -0.01em;
}

.thesis-author {
    display: block;
    margin-top: 1.3rem;
    font-family: var(--font-body);
    font-size: .92rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--amber);
}

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

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

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

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #F2F5F8;
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(27, 42, 58, .06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(27, 42, 58, .12);
    border-color: var(--amber);
}

.card-thumb-wrap {
    display: block;
    overflow: hidden;
    background: var(--bg-alt);
}

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

.card-thumb-blank {
    display: block;
    aspect-ratio: 16 / 9;
    background-color: var(--bg-alt);
    background-image: repeating-linear-gradient(45deg, rgba(74, 124, 155, .10) 0 6px, transparent 6px 14px);
}

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

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

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

.card-title a:hover {
    color: var(--steel);
    text-decoration: underline;
    text-decoration-color: var(--amber);
}

.card-divider {
    height: 0;
    border: 0;
    border-top: 1px dashed var(--line);
    margin: 0 0 .7rem;
}

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

.entry-meta a {
    color: var(--steel);
    text-decoration: none;
}

.entry-meta a:hover {
    text-decoration: underline;
    text-decoration-color: var(--amber);
}

.meta-sep {
    color: var(--amber);
    margin: 0 .25rem;
}

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

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

.card-more {
    margin-top: auto;
    align-self: flex-start;
}

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

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

.entry-header h1 {
    font-size: 2.6rem;
    margin-bottom: .6rem;
}

.entry-thumb {
    margin: 0 0 1.8rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
}

.entry-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    font-size: 1.02rem;
}

.entry-content h2 {
    margin-top: 2rem;
}

.entry-content h3 {
    margin-top: 1.6rem;
}

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

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin: 2.4rem 0 0;
    padding-top: 1.4rem;
    border-top: 1px dashed var(--line);
    font-size: .92rem;
}

.archive-head {
    margin-bottom: 2rem;
}

.archive-head h1 {
    font-size: 2.4rem;
    margin-bottom: .4rem;
}

.archive-head p {
    color: var(--muted);
    margin: 0;
}

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

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

.sidebar .widget {
    margin-bottom: 1.8rem;
    color: var(--ink);
}

.sidebar .widget:last-child {
    margin-bottom: 0;
}

.sidebar .widget-title {
    font-size: 1.1rem;
    color: var(--ink);
    margin-bottom: .9rem;
    padding-left: 14px;
    position: relative;
}

.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .2em;
    width: 4px;
    height: .8em;
    background: var(--amber);
}

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

.sidebar li {
    padding: .45rem 0;
    border-bottom: 1px dashed var(--line);
    font-size: .95rem;
    color: var(--ink);
}

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

.sidebar a {
    color: var(--steel);
    text-decoration: none;
}

.sidebar a:hover {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--amber);
}

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

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

.site-footer {
    background: var(--foot-bg);
    color: #C4D0DC;
    padding: 3rem 0 1.6rem;
    border-top: 4px solid var(--amber);
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 2.2rem;
}

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

.site-footer .widget {
    color: #C4D0DC;
    font-size: .94rem;
}

.site-footer .widget-title {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: .9rem;
    padding-left: 14px;
    position: relative;
}

.site-footer .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .2em;
    width: 4px;
    height: .8em;
    background: var(--amber);
}

.site-footer p {
    color: #C4D0DC;
}

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

.site-footer li {
    padding: .35rem 0;
    border-bottom: 1px dashed rgba(196, 208, 220, .18);
}

.site-footer li:last-child {
    border-bottom: none;
}

.site-footer a {
    color: #E4EAF0;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--amber);
    text-decoration: underline;
    text-decoration-color: var(--amber);
}

.site-copy {
    border-top: 1px solid rgba(196, 208, 220, .2);
    padding-top: 1.2rem;
    font-size: .85rem;
    color: #8FA1B2;
}

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

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

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: .5rem .85rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #F2F5F8;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: .95rem;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.pager a.page-numbers:hover {
    border-color: var(--amber);
    transform: translateY(-2px);
}

.pager .page-numbers.current {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--ink);
    font-weight: 700;
}

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

/* ==========================================================
   12. Формы поиска и комментарии
   ========================================================== */

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

.search-form {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.search-form label {
    flex: 1;
    min-width: 0;
}

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

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

.search-form button {
    flex: 0 0 auto;
}

.comments-area {
    margin-top: 2.6rem;
    padding-top: 1.6rem;
    border-top: 1px dashed var(--line);
}

.comments-area h2,
.comments-area h3 {
    font-size: 1.5rem;
}

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

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

.comment-body {
    background: #F2F5F8;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.1rem 1.3rem;
    margin-bottom: 1rem;
}

.comment-meta {
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: .5rem;
}

.comment-form label {
    display: block;
    font-size: .88rem;
    margin-bottom: .3rem;
    color: var(--muted);
}

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

.comment-form .submit {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .95rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    border-radius: 2px;
    padding: .72rem 1.5rem;
    border: 2px solid var(--amber);
    background: var(--amber);
    color: var(--ink);
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

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

/* ==========================================================
   13. 404
   ========================================================== */

.error-box {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    background: #F2F5F8;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 3rem 2.2rem;
}

.error-code {
    display: block;
    font-family: var(--font-head);
    font-size: 5rem;
    line-height: 1;
    color: var(--amber);
    margin-bottom: 1rem;
}

.error-box .search-form {
    max-width: 480px;
    margin: 1.6rem auto;
}

/* ==========================================================
   14. 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;
    background: var(--head-bg);
    border-top: 4px solid var(--amber);
    color: #D6DFE8;
    padding: 1rem 1.6rem;
    font-size: .9rem;
}

.cookie-banner p {
    margin: 0;
    max-width: 780px;
    color: #D6DFE8;
}

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

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

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

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

    .layout-single .content-area {
        width: 100%;
    }

    .home .shell {
        width: 92%;
    }

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

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

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

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

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

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

    h1 {
        font-size: 2rem;
    }

    h2,
    .section-title {
        font-size: 1.55rem;
    }

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

    .nav-main {
        display: none;
        width: 100%;
    }

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

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

    .nav-main li {
        border-bottom: 1px dashed rgba(196, 208, 220, .2);
    }

    .nav-main a {
        display: block;
        padding: .6rem 0;
        border-bottom: none;
    }

    .header-inner {
        gap: .9rem;
    }

    .hero-unit {
        padding: 3.2rem 0 3.4rem;
    }

    .front-section {
        padding: 2.4rem 0;
    }

    .stat-strip {
        grid-template-columns: minmax(0, 1fr);
        padding: 1.6rem 1.4rem;
    }

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

    .stat-cell:first-child {
        border-top: none;
        padding-top: 0;
    }

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

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

    .thesis-block {
        padding: 1.8rem 1.4rem;
    }

    .thesis-block p {
        font-size: 1.3rem;
    }

    .accent-plate {
        padding: 1.8rem 1.4rem;
    }

    .venue-card {
        padding: 1.5rem 1.3rem;
    }

    .error-box {
        width: 100%;
        padding: 2rem 1.3rem;
    }

    .sidebar {
        padding: 1.3rem 1.2rem;
    }

    .cookie-banner {
        padding: 1rem 1.2rem;
    }

    body::after {
        width: 180px;
        height: 180px;
    }
}
