/*
Theme Name: dds_mrshkaf.ru
Author: Роман Громов
Description: Информационная тема о мебели на заказ и интерьерных решениях. Японский минимализм и лесная палитра.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: mshkaf
*/

:root {
    --paper: #F4F5F0;
    --moss: #EBEEE7;
    --pine: #2F3E35;
    --resin: #1E2B23;
    --ink: #2A332A;
    --copper: #B87333;
    --rust: #A0522D;
    --sage: #6B7B6B;
    --muted: #868D81;
    --line: #C2C9B6;
    --serif: Georgia, "Times New Roman", "PT Serif", serif;
    --sans: "Segoe UI", Tahoma, "Helvetica Neue", Arial, sans-serif;
    --rhythm: 120px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--paper);
    background-image:
        repeating-linear-gradient(90deg, rgba(42, 51, 42, 0.02) 0 1px, rgba(42, 51, 42, 0) 1px 9px),
        repeating-linear-gradient(90deg, rgba(184, 115, 51, 0.02) 0 1px, rgba(184, 115, 51, 0) 1px 37px);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.75;
    letter-spacing: 0.015em;
    -webkit-text-size-adjust: 100%;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.4;
    color: var(--ink);
    letter-spacing: 0.005em;
    margin: 0 0 0.7em;
}

h1 { font-size: 3.75rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.15em; }

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

.entry-content a,
.widget a,
.crumbs a,
.card-title a {
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: border-color 0.2s ease;
}

.entry-content a:hover,
.widget a:hover,
.crumbs a:hover,
.card-title a:hover {
    border-bottom-color: var(--copper);
}

:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }

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

.btn {
    display: inline-block;
    padding: 0.75em 1.7em;
    font-family: var(--sans);
    font-size: 0.92rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--copper);
    border: 2px solid var(--copper);
    border-radius: 0 2px 2px 2px;
    background: transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
    z-index: 0;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--copper);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s ease;
    z-index: -1;
}

.btn:hover { color: var(--paper); }
.btn:hover::before { transform: scaleX(1); }

.btn-light { color: var(--paper); border-color: var(--copper); }
.btn-light:hover { color: var(--resin); }

/* ---------- Шапка ---------- */

.site-header {
    background: var(--pine);
    color: #E7EBE3;
    border-bottom: 1px solid rgba(184, 115, 51, 0.35);
}

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

.brand { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.brand-logo { max-height: 62px; width: auto; }
.brand-mark { flex: 0 0 auto; }

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

.brand-title {
    font-family: var(--serif);
    font-size: 1.22rem;
    line-height: 1.35;
    margin: 0;
    color: #F1F3EC;
}

.brand-title a { color: inherit; }

.brand-desc {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #A9B4A6;
    max-width: 52ch;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    background: transparent;
    border: 2px solid var(--copper);
    color: #E7EBE3;
    padding: 0.5em 1em;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.site-nav { margin-left: auto; }

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

.nav-list a {
    color: #DDE3D9;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-bottom: 4px;
    border-bottom: 1px dashed transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-list a:hover,
.nav-list .current-menu-item > a {
    color: var(--copper);
    border-bottom-color: var(--copper);
}

.nav-list ul { display: none; }

/* ---------- Каркас страницы ---------- */

.site-main { padding: 3.2rem 0 var(--rhythm); }
.front-main { padding: 0; }

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

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

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

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

.sidebar {
    min-width: 0;
    background: transparent;
    border-left: 1px solid var(--line);
    padding-left: 1.8rem;
}

/* ---------- Хлебные крошки ---------- */

.crumbs {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 2.4rem;
    padding: 0.2rem 0;
}

.crumbs a { color: var(--sage); }
.crumbs .sep { color: var(--line); margin: 0 0.35em; }

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

.section-title {
    position: relative;
    margin: 0 0 2.6rem 0;
    padding-left: 3.5rem;
    padding-top: 1.4rem;
    font-size: 2.1rem;
}

.section-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 3.5rem;
    width: 46%;
    height: 1px;
    background: var(--copper);
}

.section-eyebrow {
    display: block;
    font-family: var(--sans);
    font-size: 0.74rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.entry-content h2,
.widget-title,
.checklist-item h3 {
    position: relative;
}

.entry-content h2 { padding-left: 1.5rem; }

.entry-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 10px;
    height: 10px;
    background: var(--copper);
    transform: translateY(-2px);
}

/* ---------- Главная ---------- */

.front-hero {
    position: relative;
    margin-bottom: var(--rhythm);
    min-height: 560px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--resin);
}

.front-hero img.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.front-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(30, 43, 35, 0.92) 0%, rgba(30, 43, 35, 0.72) 45%, rgba(30, 43, 35, 0.15) 100%);
}

.hero-frame {
    position: absolute;
    inset: 26px;
    border: 1px solid rgba(184, 115, 51, 0.55);
    pointer-events: none;
    z-index: 3;
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding: 0 0 8% 7%;
    width: min(92%, 720px);
}

.hero-inner h1 {
    color: #F4F5F0;
    font-size: 3.75rem;
    margin-bottom: 1.1rem;
}

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

.hero-kicker {
    display: block;
    font-size: 0.74rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--copper);
    margin-bottom: 1.4rem;
}

.front-section { padding: 0 0 var(--rhythm); }
.front-section.alt-bg { background: var(--moss); padding: var(--rhythm) 0; }

.front-narrow { width: 85%; margin-left: auto; margin-right: auto; }

/* Таймлайн */

.timeline { position: relative; padding: 1rem 0 0; }

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 2px dashed rgba(184, 115, 51, 0.55);
}

.tl-step {
    position: relative;
    width: 46%;
    padding: 1.9rem 2rem;
    margin-bottom: 3.2rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 0 0 6px 0;
}

.tl-step:nth-child(odd) { margin-right: auto; }
.tl-step:nth-child(even) { margin-left: auto; }

.tl-step .tl-kanji {
    position: absolute;
    right: 0.6rem;
    bottom: -0.4rem;
    font-family: var(--serif);
    font-size: 6rem;
    line-height: 1;
    color: var(--ink);
    opacity: 0.1;
    pointer-events: none;
}

.tl-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.7rem; }
.tl-head svg { flex: 0 0 auto; }

.tl-num {
    font-family: var(--serif);
    font-size: 2.1rem;
    color: var(--copper);
    line-height: 1;
}

.tl-step h3 { margin: 0 0 0.5rem; font-size: 1.28rem; }
.tl-step p { margin: 0; font-size: 0.95rem; color: #46503F; }

/* Текст + иллюстрация */

.duo {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 70px;
    align-items: start;
}

.duo-art img { width: 100%; border: 1px solid var(--line); border-radius: 0 0 6px 0; }

.duo-text { padding-top: 22%; }
.duo-text h2 { font-size: 2rem; margin-bottom: 1rem; }
.duo-text p { font-size: 0.98rem; }

.cut-plate {
    background: var(--moss);
    padding: 1.5rem 1.6rem;
    margin-top: 1.6rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.cut-plate p { margin: 0; font-size: 0.92rem; color: #46503F; }

/* Чек-лист */

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

.checklist-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    background: var(--moss);
    border-left: 4px solid var(--copper);
    padding: 1.4rem 1.6rem;
    margin-bottom: 1rem;
    border-radius: 0 0 6px 0;
}

.checklist-item svg { flex: 0 0 auto; margin-top: 0.35rem; }
.checklist-item h3 { margin: 0 0 0.25rem; font-size: 1.16rem; }
.checklist-item p { margin: 0; font-size: 0.94rem; color: #46503F; }
.checklist-item .ci-body { min-width: 0; }

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

.front-latest { padding-bottom: var(--rhythm); }
.front-latest .cards { margin-bottom: 2.4rem; }

.front-decor {
    position: fixed;
    right: 2%;
    bottom: 4%;
    width: 260px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

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

.cards { display: grid; gap: 2.2rem; }

.card {
    display: flex;
    flex-direction: column;
    position: relative;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 0 0 6px 0;
    transition: transform 0.25s ease;
    min-width: 0;
}

.card::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 0;
    width: 70%;
    height: 3px;
    background: var(--copper);
    transition: background 0.25s ease;
}

.card::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 34px;
    height: 1px;
    background: var(--paper);
}

.card:hover { transform: translateY(4px); }
.card:hover::before { background: var(--rust); }

.card-row { display: flex; gap: 0; min-width: 0; }

.card-thumb-wrap {
    flex: 0 0 250px;
    position: relative;
    overflow: hidden;
    margin: 1.4rem -46px 1.4rem 1.4rem;
    z-index: 2;
}

.card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}

.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 0 6px 0;
}

.card-body {
    flex: 1;
    min-width: 0;
    padding: 1.8rem 1.8rem 1.8rem 4.6rem;
}

.card.no-thumb .card-body { padding-left: 1.8rem; }

.card-title { font-size: 1.4rem; margin: 0 0 0.6rem; }
.card-title a { color: var(--ink); }

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

.card-excerpt { font-size: 0.95rem; color: #46503F; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

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

/* ---------- Записи и страницы ---------- */

.entry-header { margin-bottom: 2.2rem; }
.entry-title { font-size: 2.7rem; margin-bottom: 0.6rem; }

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

.entry-thumb { margin-bottom: 2.2rem; }
.entry-thumb img { width: 100%; border-radius: 0 0 6px 0; }

.entry-content { font-size: 1.02rem; }
.entry-content h2 { margin-top: 2.2rem; }
.entry-content h3 { margin-top: 1.8rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li { margin-bottom: 0.5em; }

.entry-content blockquote {
    margin: 2rem 0;
    padding: 1.6rem 1.8rem;
    background: var(--moss);
    border-left: 4px solid var(--copper);
    font-family: var(--serif);
    font-size: 1.15rem;
    border-radius: 0 0 6px 0;
}

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

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

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8rem 0;
    font-size: 0.94rem;
}

.entry-content th,
.entry-content td {
    border: 1px solid var(--line);
    padding: 0.7em 0.9em;
    text-align: left;
}

.entry-content th { background: var(--moss); font-family: var(--serif); font-weight: 400; }

.entry-tags { margin-top: 2.2rem; font-size: 0.85rem; color: var(--muted); }
.entry-tags a { color: var(--sage); }

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2.6rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
}

.post-nav a { color: var(--sage); }

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

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

.pager .page-numbers {
    display: inline-block;
    padding: 0.55em 1em;
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.9rem;
    line-height: 1.2;
    border-radius: 0 0 4px 0;
    transition: border-color 0.2s ease, color 0.2s ease;
}

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

.pager .page-numbers.current {
    background: var(--copper);
    border-color: var(--copper);
    color: var(--paper);
}

.pager .page-numbers.dots { border: none; padding-left: 0.3em; padding-right: 0.3em; }

/* ---------- Виджеты ---------- */

.widget { margin-bottom: 2.6rem; }

.widget-title {
    font-size: 1.12rem;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 1rem;
}

.widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 10px;
    height: 10px;
    background: var(--copper);
    transform: translateY(-2px);
}

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

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--line);
    font-size: 0.94rem;
}

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

.sidebar .widget { color: var(--ink); }
.sidebar .widget a { color: var(--ink); }
.sidebar .widget a:hover { color: var(--copper); }
.sidebar .widget .post-date { display: block; font-size: 0.76rem; color: var(--muted); }

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

.site-footer {
    background: var(--resin);
    color: #C7CFC2;
    padding: 4.2rem 0 2rem;
}

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

.site-footer .widget { color: #C7CFC2; margin-bottom: 1.6rem; }
.site-footer .widget-title { color: #F1F3EC; }
.site-footer .widget a { color: #D6DDD1; border-bottom: 1px dashed transparent; }
.site-footer .widget a:hover { color: var(--copper); border-bottom-color: var(--copper); }
.site-footer .widget li { border-bottom-color: rgba(194, 201, 182, 0.18); }
.site-footer .widget .post-date { display: block; font-size: 0.76rem; color: #9AA595; }
.site-footer p { color: #C7CFC2; }

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(194, 201, 182, 0.2);
    font-size: 0.82rem;
    color: #9AA595;
}

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

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

.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0.7em 0.9em;
    border: 1px solid var(--line);
    background: #FBFCF8;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 0.94rem;
    border-radius: 0;
}

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

.search-form button {
    padding: 0.7em 1.2em;
    border: 2px solid var(--copper);
    background: transparent;
    color: var(--copper);
    font-family: var(--sans);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px);
    transition: background 0.25s ease, color 0.25s ease;
}

.search-form button:hover { background: var(--copper); color: var(--paper); }

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

.comments-area { margin-top: 3.4rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.comments-title { font-size: 1.6rem; margin-bottom: 1.6rem; }
.comment-list { list-style: none; margin: 0 0 2.4rem; padding: 0; }
.comment-list .children { list-style: none; margin-left: 1.8rem; padding: 0; }

.comment-body {
    padding: 1.3rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: 0 0 6px 0;
    margin-bottom: 1rem;
    background: rgba(235, 238, 231, 0.5);
}

.comment-head { display: flex; gap: 1rem; align-items: baseline; margin-bottom: 0.6rem; }
.comment-author { font-family: var(--serif); font-size: 1.05rem; }
.comment-date { font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.comment-actions { font-size: 0.84rem; }
.comment-actions a { color: var(--sage); }

.comment-form label { display: block; font-size: 0.84rem; letter-spacing: 0.06em; margin-bottom: 0.3rem; color: var(--sage); }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.7em 0.9em;
    border: 1px solid var(--line);
    background: #FBFCF8;
    font-family: var(--sans);
    font-size: 0.95rem;
    color: var(--ink);
    border-radius: 0;
}

.comment-form textarea { min-height: 150px; }

.comment-form .submit {
    padding: 0.75em 1.7em;
    border: 2px solid var(--copper);
    background: transparent;
    color: var(--copper);
    font-size: 0.9rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    cursor: pointer;
    clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
    transition: background 0.25s ease, color 0.25s ease;
}

.comment-form .submit:hover { background: var(--copper); color: var(--paper); }

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

.error-box { width: 85%; margin: 0 auto; text-align: left; }
.error-code { font-family: var(--serif); font-size: 6rem; color: var(--copper); line-height: 1; margin: 0 0 1rem; }
.error-box .search-form { max-width: 480px; margin: 1.8rem 0; }

/* ---------- Cookie-баннер ---------- */

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: var(--resin);
    color: #D6DDD1;
    padding: 1.1rem 0;
    border-top: 2px solid var(--copper);
}

.cookie-inner {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    flex-wrap: wrap;
}

.cookie-inner p { margin: 0; font-size: 0.88rem; flex: 1; min-width: 240px; }
.cookie-inner a { color: var(--copper); }

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

@media (max-width: 960px) {
    :root { --rhythm: 80px; }
    h1, .hero-inner h1 { font-size: 2.6rem; }
    .entry-title { font-size: 2.1rem; }

    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
    .sidebar { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 2rem; }

    .duo { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .duo-text { padding-top: 0; }

    .timeline::before { left: 12px; }
    .tl-step { width: 100%; margin-left: 42px; padding: 1.5rem 1.4rem; }
    .tl-step:nth-child(odd), .tl-step:nth-child(even) { margin-right: 0; margin-left: 42px; }

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

    .front-decor { display: none; }

    .layout-single .content-area,
    .front-narrow,
    .error-box { width: 100%; }
}

@media (max-width: 780px) {
    .nav-toggle { display: block; }
    .site-nav { flex-basis: 100%; margin-left: 0; }
    .site-nav[hidden] { display: none !important; }
    .nav-list { flex-direction: column; gap: 0.9rem; padding-top: 1rem; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1, .hero-inner h1 { font-size: 2.1rem; }
    h2, .section-title { font-size: 1.6rem; }

    .section-title { padding-left: 1.4rem; }
    .section-title::before { left: 1.4rem; width: 60%; }

    .front-hero { min-height: 440px; }
    .hero-inner { padding: 0 1.4rem 2.6rem; width: 100%; }
    .hero-frame { inset: 14px; }

    .card-row { flex-direction: column; }

    .card-thumb-wrap {
        flex: none;
        width: auto;
        position: static;
        margin: 1.2rem 1.2rem 0;
    }

    .card-thumb-wrap a { position: static; }

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

    .card-body,
    .card.no-thumb .card-body { padding: 1.4rem 1.2rem; }

    .checklist-item { flex-direction: column; gap: 0.7rem; padding: 1.2rem 1.2rem; }
    .cut-plate { padding: 1.2rem 1.2rem; }
    .cookie-inner { gap: 1rem; }
    .tl-step .tl-kanji { font-size: 4rem; }
    .error-code { font-size: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}
