/*
Theme Name: dds_tyforkner.com
Author: Федотова Злата
Description: Тема для сайта о недвижимости, сделках и советах риелтора.
Version: 1.1
Text Domain: tyforkner
*/

/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.65;
    color: #2C2C2C;
    background-color: #FDFBF7;
    background-image:
        radial-gradient(circle at 20% 35%, rgba(74,93,78,0.025) 0, transparent 1px),
        radial-gradient(circle at 80% 65%, rgba(198,122,58,0.03) 0, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(74,93,78,0.02) 0, transparent 1px);
    background-size: 5px 5px, 7px 7px, 3px 3px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a {
    color: #C67A3A;
    text-decoration: none;
    transition: color .2s ease;
}
a:hover { color: #4A5D4E; text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
    font-family: "Playfair Display", "Georgia", serif;
    color: #2C2C2C;
    line-height: 1.25;
    margin: 1.4em 0 .6em;
    font-weight: 700;
}
h1 { font-size: 2.1rem; }
h2 { font-size: 1.65rem; color: #4A5D4E; }
h3 { font-size: 1.3rem; color: #4A5D4E; }
h4 { font-size: 1.12rem; }

p { margin: 0 0 1em; }

ul, ol { padding-left: 1.4em; }

blockquote {
    margin: 1.5em 0;
    padding: 1em 1.4em;
    border-left: 3px solid #4A5D4E;
    background: #F9F2E7;
    color: #2C2C2C;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

code, pre {
    font-family: "Menlo", "Consolas", monospace;
    background: #F9F2E7;
    border-radius: 4px;
}
code { padding: .1em .35em; font-size: .92em; }
pre { padding: 1em; overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    border: 1px solid #4A5D4E;
}
th, td {
    padding: .55em .8em;
    border: 1px solid #4A5D4E;
    text-align: left;
}
th { background: #F9F2E7; color: #2C2C2C; }

hr {
    border: none;
    border-top: 1px dashed #4A5D4E;
    margin: 2em 0;
}

::selection { background: #C67A3A; color: #FDFBF7; }

/* ===== Layout shell ===== */
.shell {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.site-main {
    flex: 1;
    padding: 36px 0 60px;
}

/* ===== Header ===== */
.realtor-strip {
    background: #FDFBF7;
    border-bottom: 1px solid rgba(74,93,78,0.15);
    box-shadow: 0 1px 0 rgba(74,93,78,0.05);
}

.strip-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 18px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.brand-logo {
    width: 56px;
    height: 56px;
    display: block;
    border-radius: 6px;
    object-fit: contain;
}

.brand-svg {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.brand-text { min-width: 0; }
.brand-name {
    margin: 0;
    font-family: "Playfair Display", "Georgia", serif;
    font-size: 1.25rem;
    line-height: 1.2;
    color: #2C2C2C;
}
.brand-name a { color: inherit; text-decoration: none; }
.brand-tagline {
    margin: 4px 0 0;
    font-size: .85rem;
    color: #4A5D4E;
    font-style: italic;
}

.strip-contact {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #4A5D4E;
    font-size: .95rem;
}

.strip-contact .icon {
    width: 22px;
    height: 22px;
    stroke: #4A5D4E;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke .2s ease;
}
.strip-contact a:hover .icon { stroke: #C67A3A; }

.primary-nav {
    background: #4A5D4E;
}

.primary-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.primary-nav li a {
    display: block;
    color: #FDFBF7;
    padding: 14px 18px;
    font-size: .96rem;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}
.primary-nav li a:hover,
.primary-nav .current-menu-item > a {
    background: rgba(198,122,58,0.85);
    color: #FDFBF7;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid #FDFBF7;
    color: #FDFBF7;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: .92rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 8px;
    font-family: inherit;
    font-size: .98rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all .25s ease;
    line-height: 1.2;
}

.btn-primary {
    background: linear-gradient(135deg, #C67A3A 0%, #B25F2C 100%);
    color: #FDFBF7;
    border: 2px solid transparent;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #B25F2C 0%, #9A4F22 100%);
    border-color: #4A5D4E;
    color: #FDFBF7;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: #4A5D4E;
    border: 2px solid #4A5D4E;
}
.btn-ghost:hover {
    background: rgba(74,93,78,0.1);
    color: #4A5D4E;
    text-decoration: none;
}

/* ===== Hero / front page intro ===== */
.front-hero {
    margin: 10px 0 40px;
    padding: 40px 36px;
    background: linear-gradient(135deg, #F9F2E7 0%, #FDFBF7 100%);
    border-radius: 12px;
    border-left: 4px solid #C67A3A;
    position: relative;
    overflow: hidden;
}
.front-hero::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(74,93,78,0.06) 0%, transparent 70%);
    border-radius: 50%;
}
.front-hero h1 { margin-top: 0; max-width: 720px; }
.front-hero .lead {
    font-size: 1.1rem;
    max-width: 720px;
    color: #4A5D4E;
}
.front-hero .hero-actions {
    margin-top: 22px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ===== Front page topic blocks ===== */
.topic-block {
    margin: 36px 0;
    padding: 32px;
    background: #FDFBF7;
    border: 1px solid rgba(74,93,78,0.12);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(44,44,44,0.04);
}
.topic-block h2 {
    margin-top: 0;
    color: #4A5D4E;
}
.topic-block h2::before {
    content: "";
    display: inline-block;
    width: 26px;
    height: 3px;
    background: #C67A3A;
    vertical-align: middle;
    margin-right: 12px;
    border-radius: 2px;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 22px;
}

.topic-tile {
    padding: 20px;
    background: #F9F2E7;
    border-radius: 8px;
    border-bottom: 3px solid #C67A3A;
}
.topic-tile h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: #2C2C2C;
}
.topic-tile p { margin: 0; font-size: .95rem; color: #4A5D4E; }

/* Steps (numbered list inside topic block) */
.steps {
    margin-top: 22px;
    counter-reset: step;
    list-style: none;
    padding: 0;
}
.steps li {
    position: relative;
    padding: 14px 14px 14px 60px;
    margin-bottom: 12px;
    background: #F9F2E7;
    border-radius: 8px;
}
.steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    background: #C67A3A;
    color: #FDFBF7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: "Georgia", serif;
}

/* ===== Calculator ===== */
.calc {
    margin: 36px 0;
    padding: 32px;
    background: #FDFBF7;
    border: 1px solid rgba(74,93,78,0.12);
    border-radius: 12px;
}
.calc h2 { margin-top: 0; color: #4A5D4E; }
.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 22px;
}
.calc-field { display: flex; flex-direction: column; gap: 8px; }
.calc-field label { font-size: .92rem; color: #4A5D4E; font-weight: 600; }
.calc-field input[type="number"] {
    padding: 10px 12px;
    border: 1px solid rgba(74,93,78,0.3);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background: #FDFBF7;
    color: #2C2C2C;
}
.calc-field input[type="range"] { accent-color: #C67A3A; }
.calc-output {
    grid-column: 1 / -1;
    margin-top: 12px;
    padding: 22px;
    background: #4A5D4E;
    color: #FDFBF7;
    border-radius: 8px;
    text-align: center;
}
.calc-output .label {
    display: block;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    opacity: .85;
    margin-bottom: 6px;
}
.calc-output .value {
    font-size: 2rem;
    font-weight: 700;
    font-family: "Playfair Display", "Georgia", serif;
}

/* ===== Latest posts on front page ===== */
.latest-section {
    margin: 36px 0;
}
.latest-section .section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}
.latest-section h2 { margin: 0; color: #4A5D4E; }

/* ===== Cards (post cards) ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
}

.card {
    display: flex;
    flex-direction: column;
    background: #FDFBF7;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(74,93,78,0.12);
    box-shadow: 6px 6px 14px rgba(44,44,44,0.07), 0 1px 0 rgba(255,255,255,0.6) inset;
    transform: rotate(-0.15deg);
    transition: transform .25s ease, box-shadow .25s ease;
}
.card:nth-child(even) { transform: rotate(0.2deg); }
.card:hover {
    transform: translateY(-4px) rotate(0deg);
    box-shadow: 10px 12px 22px rgba(44,44,44,0.12);
}

.card-thumb-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #F9F2E7;
    aspect-ratio: 16 / 10;
}
.card-thumb-wrap a {
    display: block;
    position: absolute;
    inset: 0;
}
.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.card:hover .card-thumb-wrap img { transform: scale(1.04); }

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 22px 22px;
}

.card-title {
    margin: 0 0 10px;
    font-size: 1.18rem;
    line-height: 1.3;
}
.card-title a { color: #2C2C2C; text-decoration: none; }
.card-title a:hover { color: #C67A3A; }

.card-meta {
    margin: 0 0 12px;
    font-size: .82rem;
    color: #4A5D4E;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.card-meta .sep { opacity: .4; }

.card-excerpt {
    color: #2C2C2C;
    font-size: .95rem;
    margin-bottom: 16px;
    flex: 1;
}
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt p:last-child { margin-bottom: 0; }

.card-foot { margin-top: auto; }

/* ===== Single content layout ===== */
.layout {
    display: grid;
    gap: 36px;
    grid-template-columns: 1fr;
}
.layout.has-sidebar { grid-template-columns: 1fr; }
@media (min-width: 960px) {
    .layout.has-sidebar {
        grid-template-columns: 67% 27%;
        gap: 6%;
    }
}
.content-wide { width: 85%; margin: 0 auto; }
@media (max-width: 720px) { .content-wide { width: 100%; } }

.entry {
    background: #FDFBF7;
    padding: 32px 36px;
    border-radius: 10px;
    border: 1px solid rgba(74,93,78,0.1);
    box-shadow: 0 4px 14px rgba(44,44,44,0.04);
}
.entry-title { margin-top: 0; }
.entry-meta {
    margin: -4px 0 18px;
    color: #4A5D4E;
    font-size: .9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(74,93,78,0.15);
}
.entry-thumb {
    margin: 0 -36px 24px;
    overflow: hidden;
}
.entry-thumb img { width: 100%; display: block; }

.entry-content p { margin: 0 0 1.1em; }
.entry-content img {
    border-radius: 6px;
    margin: 12px 0;
}
.entry-content a { color: #C67A3A; text-decoration: underline; }
.entry-content a:hover { color: #4A5D4E; }

.entry-tags {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px dashed rgba(74,93,78,0.3);
    font-size: .9rem;
}
.entry-tags a {
    display: inline-block;
    padding: 4px 10px;
    background: #F9F2E7;
    border-radius: 4px;
    margin: 2px 4px 2px 0;
    color: #4A5D4E;
    text-decoration: none;
}
.entry-tags a:hover { background: #C67A3A; color: #FDFBF7; }

/* ===== Sidebar ===== */
.sidebar { font-size: .96rem; }
.widget {
    margin-bottom: 28px;
    padding: 22px;
    background: #FDFBF7;
    border-radius: 10px;
    border: 1px solid rgba(74,93,78,0.12);
}
.widget-title {
    margin: 0 0 14px;
    font-size: 1.05rem;
    color: #4A5D4E;
    padding-bottom: 8px;
    border-bottom: 2px solid #C67A3A;
    display: inline-block;
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li {
    padding: 7px 0;
    border-bottom: 1px dashed rgba(74,93,78,0.2);
}
.widget li:last-child { border-bottom: none; }
.widget li a { color: #2C2C2C; text-decoration: none; }
.widget li a:hover { color: #C67A3A; }

/* ===== Breadcrumbs ===== */
.crumbs {
    font-size: .88rem;
    color: #4A5D4E;
    margin: 0 0 22px;
    padding: 8px 0;
}
.crumbs a { color: #C67A3A; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { margin: 0 6px; opacity: .5; }
.crumbs .now { color: #2C2C2C; }

/* ===== Pagination ===== */
.pager {
    margin: 36px 0 0;
    text-align: center;
}
.pager .nav-links { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pager .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    background: #FDFBF7;
    border: 1px solid rgba(74,93,78,0.25);
    border-radius: 6px;
    color: #4A5D4E;
    text-decoration: none;
    font-size: .95rem;
    transition: all .2s ease;
}
.pager .page-numbers:hover {
    background: #F9F2E7;
    border-color: #C67A3A;
    color: #C67A3A;
}
.pager .page-numbers.current {
    background: #C67A3A;
    color: #FDFBF7;
    border-color: #C67A3A;
}
.pager .dots:hover { background: transparent; cursor: default; }

/* ===== Search form ===== */
.searchform {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.searchform input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(74,93,78,0.3);
    border-radius: 6px;
    background: #FDFBF7;
    color: #2C2C2C;
    font-family: inherit;
    font-size: 1rem;
}
.searchform input[type="search"]:focus {
    outline: none;
    border-color: #C67A3A;
}
.searchform button {
    padding: 10px 18px;
    background: linear-gradient(135deg, #C67A3A 0%, #B25F2C 100%);
    color: #FDFBF7;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: .95rem;
}
.searchform button:hover { background: linear-gradient(135deg, #B25F2C 0%, #9A4F22 100%); }

/* ===== Comments ===== */
.comments-area {
    margin-top: 36px;
    padding: 28px;
    background: #FDFBF7;
    border-radius: 10px;
    border: 1px solid rgba(74,93,78,0.12);
}
.comments-area h2, .comments-area h3 { margin-top: 0; color: #4A5D4E; }
.comment-list { list-style: none; padding: 0; margin: 0 0 28px; }
.comment-list .children { list-style: none; padding-left: 24px; border-left: 2px solid rgba(74,93,78,0.2); margin-left: 8px; }
.comment-body {
    padding: 16px;
    background: #F9F2E7;
    border-radius: 8px;
    margin-bottom: 14px;
}
.comment-author { font-weight: 700; color: #4A5D4E; }
.comment-meta { font-size: .82rem; color: #4A5D4E; opacity: .8; margin-bottom: 8px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    margin-top: 4px;
    border: 1px solid rgba(74,93,78,0.3);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background: #FDFBF7;
    color: #2C2C2C;
}
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form label {
    display: block;
    margin-top: 12px;
    font-size: .9rem;
    color: #4A5D4E;
    font-weight: 600;
}
.comment-form-cookies-consent label { display: inline; margin-left: 6px; font-weight: normal; }
.comment-form .form-submit { margin-top: 16px; }
.comment-form .submit {
    padding: 11px 24px;
    background: linear-gradient(135deg, #C67A3A 0%, #B25F2C 100%);
    color: #FDFBF7;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}
.comment-form .submit:hover { background: linear-gradient(135deg, #B25F2C 0%, #9A4F22 100%); }

/* ===== 404 ===== */
.page-404 {
    text-align: center;
    padding: 60px 20px;
}
.page-404 h1 {
    font-size: 5rem;
    margin: 0;
    color: #C67A3A;
    line-height: 1;
}
.page-404 .searchform { max-width: 460px; margin: 24px auto; }

/* ===== Footer ===== */
.site-foot {
    background: #4A5D4E;
    color: #F9F2E7;
    padding: 44px 0 20px;
    margin-top: auto;
}
.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-bottom: 28px;
}
.foot-col .widget {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 0;
}
.foot-col .widget-title {
    color: #FDFBF7;
    border-bottom-color: #C67A3A;
}
.foot-col .widget li { border-bottom-color: rgba(253,251,247,0.15); }
.foot-col .widget li a { color: #F9F2E7; }
.foot-col .widget li a:hover { color: #C67A3A; }
.foot-col p, .foot-col { color: #F9F2E7; }
.copyright {
    border-top: 1px solid rgba(253,251,247,0.15);
    padding-top: 18px;
    text-align: center;
    font-size: .88rem;
    color: rgba(253,251,247,0.75);
}

/* ===== Back to top ===== */
.to-top[hidden] { display: none !important; }
.to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C67A3A 0%, #B25F2C 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(44,44,44,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: transform .25s ease, opacity .25s ease;
    opacity: 0;
    transform: translateY(20px);
}
.to-top.visible {
    opacity: 1;
    transform: translateY(0);
}
.to-top:hover { background: linear-gradient(135deg, #B25F2C 0%, #9A4F22 100%); }
.to-top svg {
    width: 22px;
    height: 22px;
    stroke: #FDFBF7;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ===== Cookie banner ===== */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 200;
    background: #2C2C2C;
    color: #FDFBF7;
    padding: 18px 22px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    border-left: 4px solid #C67A3A;
}
.cookie-banner p { margin: 0; flex: 1; min-width: 220px; font-size: .92rem; line-height: 1.5; }
.cookie-banner button {
    padding: 9px 22px;
    background: linear-gradient(135deg, #C67A3A 0%, #B25F2C 100%);
    color: #FDFBF7;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: .95rem;
    flex-shrink: 0;
}
.cookie-banner button:hover { background: linear-gradient(135deg, #B25F2C 0%, #9A4F22 100%); }

/* ===== Tips timeline (advice section) ===== */
.tips {
    margin: 36px 0;
}
.tips-list {
    list-style: none;
    padding: 0;
    margin: 22px 0 0;
}
.tip-item {
    display: flex;
    gap: 22px;
    padding: 18px 0;
    border-bottom: 1px dashed rgba(74,93,78,0.25);
}
.tip-item:last-child { border-bottom: none; }
.tip-date {
    flex: 0 0 70px;
    background: #4A5D4E;
    color: #FDFBF7;
    border-radius: 6px;
    text-align: center;
    padding: 8px 4px;
    align-self: flex-start;
    box-shadow: 0 3px 0 rgba(74,93,78,0.4);
    position: relative;
}
.tip-date::before, .tip-date::after {
    content: "";
    position: absolute;
    top: -4px;
    width: 6px;
    height: 6px;
    background: #FDFBF7;
    border-radius: 50%;
    border: 1px solid rgba(74,93,78,0.5);
}
.tip-date::before { left: 14px; }
.tip-date::after { right: 14px; }
.tip-day { display: block; font-size: 1.6rem; font-weight: 700; line-height: 1; font-family: "Playfair Display", "Georgia", serif; }
.tip-month { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; opacity: .9; }
.tip-body { flex: 1; }
.tip-body h3 { margin: 0 0 6px; font-size: 1.1rem; }
.tip-body p { margin: 0; color: #4A5D4E; font-size: .95rem; }

/* ===== No-results / empty ===== */
.empty {
    text-align: center;
    padding: 50px 20px;
    color: #4A5D4E;
}
.empty h2 { color: #4A5D4E; }

/* ===== Adaptive ===== */
@media (max-width: 960px) {
    .foot-cols { grid-template-columns: 1fr 1fr; }
    .calc-grid { grid-template-columns: 1fr; }
    h1 { font-size: 1.8rem; }
}

@media (max-width: 720px) {
    .layout.has-sidebar { grid-template-columns: 1fr; }
    .entry { padding: 24px 20px; }
    .entry-thumb { margin: 0 -20px 18px; }
    .front-hero { padding: 28px 22px; }
    .topic-block { padding: 22px; }
}

@media (max-width: 600px) {
    .strip-inner { flex-wrap: wrap; }
    .strip-contact { flex-basis: 100%; justify-content: flex-start; }

    .menu-toggle { display: inline-block; }
    .primary-nav-inner { flex-wrap: wrap; padding: 10px 0; }
    .primary-nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 8px;
    }
    .primary-nav.is-open ul { display: flex; }
    .primary-nav li { width: 100%; }
    .primary-nav li a { padding: 12px 14px; border-bottom: 1px solid rgba(253,251,247,0.1); }

    .foot-cols { grid-template-columns: 1fr; gap: 24px; }
    .card-grid { grid-template-columns: 1fr; }
    .tip-item { flex-direction: row; gap: 14px; }
    .tip-date { flex: 0 0 60px; }

    .cookie-banner { padding: 14px 16px; left: 8px; right: 8px; bottom: 8px; }
    .cookie-banner button { width: 100%; }

    .page-404 h1 { font-size: 3.5rem; }
}
