/*
Theme Name: dds_alexdoodko.com
Theme URI: https://alexdoodko.com
Author: Александр Дудко
Author URI: https://alexdoodko.com
Description: Персональная тема-портфолио эксперта по визуальной презентации недвижимости. Минималистичный каркас, тёплый латунный акцент, тихая «дышащая» геометрия.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: ddoodko
*/

/* ============================================================ *
 * 1. Переменные и сброс
 * ============================================================ */
:root {
    --bg: #f7f6f4;
    --ink: #2a2a2a;
    --muted: #8a8a8a;
    --brass: #b58d5a;
    --black: #121212;
    --line: #e4e1db;
    --line-dark: #2c2c2c;
    --shell: min(88%, 1180px);
    --space: clamp(3.5rem, 7vw, 7rem);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    color: var(--ink);
    font-family: "Helvetica Neue", "Segoe UI", "Inter", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    color: var(--brass);
}

h1, h2, h3, h4 {
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 0.6em;
    color: var(--ink);
}

h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p {
    margin: 0 0 1.1em;
}

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

/* ============================================================ *
 * 2. Контейнер ширины — один на весь сайт
 * ============================================================ */
.shell {
    width: var(--shell);
    margin-inline: auto;
}

.shell.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 2.25fr) minmax(0, 1fr);
    gap: clamp(2rem, 4.5vw, 4.5rem);
    align-items: start;
}

@media (max-width: 960px) {
    .shell.layout-with-sidebar {
        display: block;
    }
}

/* ============================================================ *
 * 3. Кастомный курсор
 * ============================================================ */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: var(--brass);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.2s ease, height 0.2s ease, margin 0.2s ease, background 0.2s ease;
}

.cursor-dot.is-active {
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
    background: rgba(181, 141, 90, 0.18);
}

body.cursor-enabled {
    cursor: none;
}

body.cursor-enabled a,
body.cursor-enabled button {
    cursor: none;
}

/* ============================================================ *
 * 4. Шапка
 * ============================================================ */
.site-header {
    padding: 2.1rem 0 1.6rem;
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

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

.brand-logo {
    display: block;
    height: 44px;
    width: auto;
}

.brand-mark {
    display: block;
    flex: 0 0 auto;
}

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

.brand-name {
    display: block;
    font-size: 14px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.3;
}

.brand-name a {
    color: inherit;
}

.brand-desc {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--muted);
    max-width: 34ch;
}

/* ---- Навигация ---- */
.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 0.4rem;
    font: inherit;
    color: var(--ink);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.74rem;
}

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

.main-nav a {
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
}

.main-nav a:hover {
    color: var(--brass);
}

.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    color: var(--brass);
    border-bottom-color: var(--brass);
}

/* ============================================================ *
 * 5. Кнопки
 * ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.72rem 1.5rem;
    border: 1px solid var(--brass);
    border-radius: 4px;
    background: transparent;
    color: var(--ink);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn .arrow {
    transition: transform 0.3s ease;
}

.btn:hover {
    border-color: transparent;
    background: rgba(181, 141, 90, 0.10);
    color: var(--black);
}

.btn:hover .arrow {
    transform: translateX(4px);
}

.btn-dark {
    border-color: rgba(255, 255, 255, 0.4);
    color: #f3f1ec;
}

.btn-dark:hover {
    background: rgba(181, 141, 90, 0.2);
    color: #fff;
}

/* ============================================================ *
 * 6. Основная сетка страницы
 * ============================================================ */
.site-main {
    padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3.5rem, 6vw, 6rem);
}

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

.entry-title {
    margin-bottom: 0.4rem;
}

.entry-meta {
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.6rem;
}

.entry-content {
    margin-top: 1.4rem;
}

.entry-content img {
    display: block;
    margin: 1.6rem 0;
    border-radius: 4px;
}

.entry-thumb {
    margin: 0 0 1.8rem;
}

.entry-thumb img {
    display: block;
    width: 100%;
    border-radius: 4px;
}

blockquote {
    margin: 1.6rem 0;
    padding: 0.4rem 0 0.4rem 1.4rem;
    border-left: 2px solid var(--brass);
    color: #444;
    font-style: italic;
}

/* ---- Таблицы ---- */
.entry-content table,
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    font-size: 0.92rem;
}

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

th, td {
    padding: 0.6rem 0.85rem;
    text-align: left;
}

th {
    background: #efece6;
    font-weight: 500;
}

/* ============================================================ *
 * 7. Хлебные крошки
 * ============================================================ */
.breadcrumbs {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 1.8rem;
}

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

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

.breadcrumbs .crumb-sep {
    margin: 0 0.45rem;
    color: var(--line);
}

.breadcrumbs span:last-child {
    color: var(--ink);
}

/* ============================================================ *
 * 8. Карточки записей
 * ============================================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: clamp(1.6rem, 3vw, 2.6rem);
    margin: 0 0 2.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
}

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

.card-thumb-wrap a {
    display: block;
}

.card-thumb,
.card-thumb-empty {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card-thumb-empty {
    background:
        linear-gradient(135deg, rgba(181, 141, 90, 0.16), rgba(42, 42, 42, 0.06)),
        #e9e6e0;
}

.card:hover .card-thumb,
.card:hover .card-thumb-empty {
    transform: scale(1.04);
}

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

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

.card-title {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

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

.card-excerpt {
    color: #4a4a4a;
    font-size: 0.94rem;
    margin-bottom: 1.1rem;
}

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

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

/* ============================================================ *
 * 9. Пагинация
 * ============================================================ */
.pagination {
    margin: 2.4rem 0 0;
}

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

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.6rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--ink);
}

.pagination a:hover {
    border-color: var(--brass);
    color: var(--brass);
}

.pagination .current {
    background: var(--brass);
    border-color: var(--brass);
    color: #fff;
}

/* ============================================================ *
 * 10. Главная страница
 * ============================================================ */
.section {
    padding: var(--space) 0;
}

.section + .section {
    border-top: 1px solid var(--line);
}

.section-dark {
    background: var(--black);
    color: #d8d5cf;
    border-top: 0;
}

.section-dark h2,
.section-dark h3 {
    color: #f4f2ed;
}

.section-head {
    max-width: 56ch;
    margin-bottom: 2.6rem;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.74rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 0.9rem;
}

.section-lead {
    color: var(--muted);
    font-size: 1.05rem;
}

.section-dark .section-lead {
    color: #9d9a93;
}

/* ---- Hero ---- */
.hero {
    padding: clamp(4rem, 9vw, 9rem) 0 var(--space);
}

.hero-title {
    max-width: 18ch;
}

.hero-text {
    max-width: 52ch;
    color: #54514b;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ---- Нелинейная сетка направлений (золотое сечение) ---- */
.craft-grid {
    display: grid;
    grid-template-columns: 1.618fr 1fr;
    grid-auto-rows: 1fr;
    gap: 1.6rem;
}

.craft-cell {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 230px;
    padding: 1.7rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
}

.craft-cell.is-feature {
    grid-row: span 2;
    background:
        linear-gradient(160deg, rgba(181, 141, 90, 0.14), rgba(18, 18, 18, 0.04)),
        #fff;
}

.craft-cell h3 {
    margin-bottom: 0.4rem;
}

.craft-cell p {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
}

/* ---- Шаги подхода ---- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.8rem;
}

.step-num {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--brass);
    margin-bottom: 0.6rem;
}

/* ---- Контакты (статичные) ---- */
.contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem 2.8rem;
    margin-top: 1.6rem;
}

.contact-row a {
    color: var(--ink);
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(181, 141, 90, 0.55);
    padding-bottom: 2px;
}

.contact-row a:hover {
    color: var(--brass);
}

.section-dark .contact-row a {
    color: #f4f2ed;
}

/* ============================================================ *
 * 11. Галерея-слайдер
 * ============================================================ */
.gallery {
    position: relative;
    margin-top: 2.4rem;
}

.gallery-viewport {
    overflow: hidden;
}

.gallery-track {
    display: flex;
    gap: 1.4rem;
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.gallery-slide {
    flex: 0 0 calc((100% - 2.8rem) / 3);
    min-width: 0;
}

.gallery-frame {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 4px;
    overflow: hidden;
    background:
        radial-gradient(120% 90% at 30% 20%, rgba(181, 141, 90, 0.22), transparent 60%),
        linear-gradient(180deg, #1d1d1d, #0c0c0c);
}

.gallery-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(12, 12, 12, 0.78));
    pointer-events: none;
}

.gallery-caption {
    position: absolute;
    left: 1.1rem;
    bottom: 1rem;
    right: 1.1rem;
    z-index: 2;
    color: #e9e6df;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    transition: opacity 0.4s ease;
}

.gallery-caption .loc {
    color: var(--brass);
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.3rem;
}

.gallery-frame:hover .gallery-caption {
    opacity: 0;
}

.gallery-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(20, 20, 20, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #f3f1ec;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.gallery-controls {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.6rem;
}

.gallery-nav:hover {
    box-shadow: 0 0 0 1px rgba(181, 141, 90, 0.6), 0 6px 18px rgba(0, 0, 0, 0.4);
}

.gallery-nav:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ============================================================ *
 * 12. Виджеты — контраст задаётся явно для каждой области
 * ============================================================ */
.widget {
    margin-bottom: 2.2rem;
}

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

.widget-title {
    font-size: 0.86rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

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

.widget li {
    padding: 0.4rem 0;
    font-size: 0.92rem;
}

/* --- Сайдбар: светлый фон, тёмный текст --- */
.sidebar {
    min-width: 0;
}

.sidebar .widget {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.4rem 1.5rem;
}

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

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

.sidebar .widget li {
    border-bottom: 1px solid var(--line);
}

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

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

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

/* --- Подвал: тёмный фон, светлый текст --- */
.site-footer .widget-title {
    color: #f1efe9;
}

.site-footer .widget,
.site-footer .widget p {
    color: #b6b3ac;
}

.site-footer .widget a {
    color: #d9d6cf;
}

.site-footer .widget a:hover {
    color: var(--brass);
}

.site-footer .widget li {
    border-bottom: 1px solid var(--line-dark);
}

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

.site-footer .post-date,
.site-footer .rss-date {
    display: block;
    color: #8a8780;
    font-size: 0.76rem;
}

/* ============================================================ *
 * 13. Подвал
 * ============================================================ */
.site-footer {
    background: var(--black);
    color: #b6b3ac;
    padding: clamp(3rem, 5vw, 4.5rem) 0 2rem;
}

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

.footer-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.6rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line-dark);
    font-size: 0.84rem;
    color: #8a8780;
}

.footer-line a {
    color: #d9d6cf;
}

.footer-line a:hover {
    color: var(--brass);
}

.footer-tagline {
    font-style: italic;
}

.footer-copy {
    margin-top: 1.4rem;
    font-size: 0.76rem;
    color: #6f6c66;
    line-height: 1.6;
}

/* ============================================================ *
 * 14. Cookie-баннер
 * ============================================================ */
.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.6rem;
    padding: 1rem 1.4rem;
    background: rgba(18, 18, 18, 0.96);
    color: #d8d5cf;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.86rem;
    max-width: 70ch;
}

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

.cookie-accept {
    flex: 0 0 auto;
}

/* ============================================================ *
 * 15. Комментарии
 * ============================================================ */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

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

.comment-list .children {
    list-style: none;
    margin: 0;
    padding-left: 1.6rem;
}

.comment-inner {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line);
}

.comment-head {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    margin-bottom: 0.4rem;
}

.comment-author {
    font-weight: 500;
}

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

.comment-await {
    font-size: 0.82rem;
    color: var(--brass);
}

.comment-reply a {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brass);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    font: inherit;
    background: #fff;
    color: var(--ink);
}

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

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

/* ============================================================ *
 * 16. Форма поиска
 * ============================================================ */
.search-form {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.search-form .search-field {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    font: inherit;
    background: #fff;
    color: var(--ink);
}

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

/* ============================================================ *
 * 17. Страница 404
 * ============================================================ */
.error-404 {
    text-align: center;
    padding: clamp(2rem, 6vw, 5rem) 0;
}

.error-404 .error-code {
    font-size: clamp(3.5rem, 12vw, 7rem);
    color: var(--brass);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.error-404 .search-form {
    max-width: 420px;
    margin: 1.8rem auto;
    justify-content: center;
}

/* ============================================================ *
 * 17b. Служебные классы
 * ============================================================ */
.archive-header,
.entry-header {
    margin-bottom: 1.8rem;
}

.archive-desc {
    color: var(--muted);
}

.entry-footer {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
}

.entry-terms {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0.3rem 0;
}

.entry-terms a {
    color: var(--brass);
}

.comments-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.comments-closed {
    color: var(--muted);
    font-size: 0.9rem;
}

.page-links {
    margin: 1.4rem 0;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
}

.page-links a,
.page-links > span {
    display: inline-block;
    min-width: 28px;
    padding: 2px 6px;
    margin: 0 2px;
    border: 1px solid var(--line);
    border-radius: 4px;
    text-align: center;
}

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

/* ============================================================ *
 * 18. «Медленное появление»
 * ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(18px);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal, .reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================================ *
 * 19. Адаптив
 * ============================================================ */
@media (max-width: 960px) {
    .gallery-slide {
        flex: 0 0 calc((100% - 1.4rem) / 2);
    }
    .craft-grid {
        grid-template-columns: 1fr;
    }
    .craft-cell.is-feature {
        grid-row: auto;
    }
    .footer-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }
    .nav-toggle {
        display: inline-block;
    }
    .header-inner {
        align-items: center;
    }
    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(78%, 320px);
        z-index: 950;
        padding: 5rem 1.8rem 2rem;
        background: rgba(247, 246, 244, 0.97);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        box-shadow: -16px 0 40px rgba(0, 0, 0, 0.12);
    }
    .main-nav.is-open {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 1.2rem;
        justify-content: flex-start;
    }
    .nav-toggle.is-open {
        position: fixed;
        top: 1.8rem;
        right: 1.4rem;
        z-index: 960;
    }
    .gallery-slide {
        flex: 0 0 100%;
    }
    .footer-cols {
        grid-template-columns: 1fr;
    }
    .footer-line {
        flex-direction: column;
        align-items: flex-start;
    }
    body.cursor-enabled {
        cursor: auto;
    }
    .cursor-dot {
        display: none;
    }
}
