/*
Theme Name: dds_pepismartdog.com
Author: Ксения Тихонова
Description: Информационная тема о животных и домашних питомцах. Дизайн-концепция Lavender Tech: минимализм, холодная лавандовая палитра, аккуратная типографика.
Version: 1.1
Text Domain: pepismart
*/

/* ============ Переменные ============ */

:root {
    --bg: #F5F0FF;
    --bg-alt: #EBE3F5;
    --head-bg: #FFFFFF;
    --foot-bg: #1A1428;
    --ink: #221F2B;
    --accent: #8460C8;
    --accent-dark: #6A4CAE;
    --accent-soft: #B38DF7;
    --muted: #8A85A0;
    --shadow: #c0b6d9;
    --radius: 12px;
    --shell: 1180px;
}

/* ============ Сброс и база ============ */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(60deg, rgba(132, 96, 200, .05) 0 1px, transparent 1px 15px),
        repeating-linear-gradient(-60deg, rgba(132, 96, 200, .05) 0 1px, transparent 1px 15px),
        repeating-linear-gradient(0deg, rgba(132, 96, 200, .04) 0 1px, transparent 1px 26px);
    background-attachment: fixed;
    color: var(--ink);
    font-family: "Inter", "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover, a:focus { color: var(--accent-soft); text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: "Inter", "Manrope", "Segoe UI", Arial, sans-serif;
    font-weight: 500;
    line-height: 1.22;
    color: var(--ink);
    margin: 0 0 .7em;
    letter-spacing: -.01em;
}

h1 { font-size: 3.5rem; font-weight: 500; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.16rem; }

p { margin: 0 0 1.15em; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: .4em; }

blockquote {
    margin: 1.6rem 0;
    padding: 1.3rem 1.6rem;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: #2c2739;
}
blockquote p:last-child { margin-bottom: 0; }

code, pre {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: .92em;
    background: var(--bg-alt);
    border-radius: 6px;
}
code { padding: .1em .35em; }
pre { padding: 1rem 1.2rem; overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5rem;
    background: #fff;
    border: 1px solid #d8cdef;
}
th, td {
    border: 1px solid #d8cdef;
    padding: .7rem .9rem;
    text-align: left;
}
th { background: var(--bg-alt); font-weight: 600; }

hr { border: 0; border-top: 1px solid #ddd2f2; margin: 2.2rem 0; }

/* ============ Умная точка у заголовков ============ */

.entry-content h2::before,
.entry-content h3::before,
.section-head h2::before,
.block-title::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: .55rem;
    background: var(--accent-soft);
    border-radius: 2px;
    transform: translateY(-.42em) rotate(45deg);
}

/* ============ Контейнер ============ */

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

/* ============ Шапка ============ */

.site-header {
    background: var(--head-bg);
    border-bottom: 1px solid rgba(179, 141, 247, .28);
    position: relative;
    overflow: hidden;
}

.site-header::after {
    content: "";
    position: absolute;
    top: -140px;
    right: -90px;
    width: 340px;
    height: 340px;
    background: var(--accent-soft);
    opacity: .05;
    border-radius: 58% 42% 47% 53% / 52% 46% 54% 48%;
    pointer-events: none;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    padding: 1.4rem 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

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

.brand-logo { width: 54px; height: 54px; flex: 0 0 auto; }

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

.brand-name {
    display: block;
    font-size: 1.06rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
}
.brand-name:hover { color: var(--accent); }

.brand-desc {
    display: block;
    font-size: .8rem;
    color: var(--muted);
    line-height: 1.4;
    margin-top: .2rem;
    max-width: 460px;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    border-radius: 8px;
    padding: .5rem .85rem;
    font: inherit;
    font-size: .92rem;
    cursor: pointer;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav li { margin: 0; }
.main-nav a {
    font-size: .97rem;
    color: var(--ink);
    padding: .2rem 0;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: var(--accent);
    border-bottom-color: var(--accent-soft);
}

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

.btn {
    display: inline-block;
    border-radius: 8px;
    padding: .72rem 1.5rem;
    font-size: .97rem;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color .22s ease, color .22s ease, box-shadow .22s ease;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--accent-dark);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
}
.btn-ghost:hover, .btn-ghost:focus {
    background: var(--bg);
    color: var(--accent);
    box-shadow: 0 4px 14px rgba(192, 182, 217, .5);
}

/* ============ Основная раскладка ============ */

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

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

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

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

.sidebar {
    min-width: 0;
    background: var(--bg);
    box-shadow: inset 0 0 0 1px rgba(179, 141, 247, .22), inset 0 2px 14px rgba(192, 182, 217, .35);
    border-radius: var(--radius);
    padding: 1.4rem 1.3rem;
}

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

.breadcrumbs {
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.breadcrumbs a { color: var(--accent); }
.breadcrumbs a:hover { color: var(--accent-soft); }
.breadcrumbs .sep { margin: 0 .4rem; color: var(--accent-soft); }

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

.section-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.8rem;
}
.section-head::before {
    content: "";
    flex: 0 0 auto;
    width: 56px;
    height: 2px;
    background: linear-gradient(90deg, rgba(179, 141, 247, .15), var(--accent-soft));
}
.section-head h2 {
    margin: 0;
    font-weight: 400;
    font-size: 2rem;
    min-width: 0;
}

.page-title {
    font-size: 2.4rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
}

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

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.7rem;
    margin-bottom: 2.4rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FBF9FF;
    border: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(192, 182, 217, .42);
    transition: box-shadow .25s ease, transform .25s ease, background-color .25s ease;
}
.card:hover {
    background: #FFFFFF;
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(192, 182, 217, .72);
}

.card-thumb-wrap {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
}
.card-thumb-wrap a { display: block; }
.card-thumb-wrap img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
}

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

.card-title {
    font-size: 1.18rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 .55rem;
}
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); }

.card-excerpt {
    font-size: .95rem;
    color: #3b3548;
    margin-bottom: 1rem;
}
.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

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

/* Мета и стикеры рубрик */

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
    font-size: .8rem;
    color: var(--muted);
    margin-bottom: .7rem;
}

.cat-tags { display: inline-flex; flex-wrap: wrap; gap: .4rem; }

.cat-tag {
    display: inline-block;
    font-size: .74rem;
    line-height: 1.2;
    color: var(--accent);
    padding: .22rem .5rem;
    border: 1px dashed var(--accent-soft);
    border-radius: 4px;
    background: transparent;
}
.cat-tag:hover { color: var(--accent-dark); border-color: var(--accent); }

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

.front-wrap { padding: 0 0 3rem; }

.front-section {
    padding: 3.4rem 2.2rem;
    border-radius: 16px;
    margin-bottom: 2.6rem;
}
.front-section.alt {
    background: var(--bg-alt);
}
.front-section.gradient {
    background:
        repeating-linear-gradient(60deg, rgba(132, 96, 200, .06) 0 1px, transparent 1px 14px),
        linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.zigzag {
    display: block;
    width: 100%;
    height: 22px;
    margin: 0 0 2.6rem;
    opacity: .55;
}

/* Hero */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 2.6rem;
    align-items: center;
    padding: 3.6rem 2.4rem;
    border-radius: 16px;
    background:
        repeating-linear-gradient(60deg, rgba(132, 96, 200, .05) 0 1px, transparent 1px 16px),
        var(--bg);
    margin-bottom: 2.6rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    left: -120px;
    bottom: -150px;
    width: 380px;
    height: 380px;
    background: var(--accent-soft);
    opacity: .05;
    border-radius: 46% 54% 62% 38% / 48% 42% 58% 52%;
    pointer-events: none;
}
.hero-text { min-width: 0; position: relative; z-index: 2; }
.hero-text h1 { margin-bottom: 1rem; }
.hero-lead {
    font-size: 1.1rem;
    color: #3b3548;
    max-width: 34em;
    margin-bottom: 1.7rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-art { min-width: 0; position: relative; z-index: 2; }
.hero-art img { width: 100%; border-radius: var(--radius); }

/* Сетка иконок */

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1.8rem;
}
.icon-card {
    min-width: 0;
    text-align: left;
    background: rgba(255, 255, 255, .55);
    border-radius: var(--radius);
    padding: 1.5rem 1.4rem;
    box-shadow: 0 6px 20px rgba(192, 182, 217, .32);
    transition: box-shadow .25s ease, transform .25s ease;
}
.icon-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(192, 182, 217, .6); }
.icon-circle {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.icon-circle svg { width: 40px; height: 40px; display: block; }
.icon-card h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.icon-card p { font-size: .94rem; color: #3b3548; margin: 0; }

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

.timeline {
    position: relative;
    padding: .6rem 0;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    margin-left: -1px;
    background: linear-gradient(180deg, rgba(179, 141, 247, .2), var(--accent-soft), rgba(179, 141, 247, .2));
}
.tl-item {
    position: relative;
    width: 46%;
    min-width: 0;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, .72);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    box-shadow: 0 6px 20px rgba(192, 182, 217, .38);
}
.tl-item.left { margin-right: auto; }
.tl-item.right { margin-left: auto; }
.tl-num {
    display: block;
    font-size: 2.1rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
    margin-bottom: .5rem;
    letter-spacing: -.02em;
}
.tl-item h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.tl-item p { font-size: .94rem; margin: 0; color: #3b3548; }
.tl-item::after {
    content: "";
    position: absolute;
    top: 1.9rem;
    width: 13px;
    height: 13px;
    background: var(--accent-soft);
    border: 3px solid var(--bg-alt);
    border-radius: 50%;
}
.tl-item.left::after { right: calc(-8.7% - 6.5px); }
.tl-item.right::after { left: calc(-8.7% - 6.5px); }

/* Цитата */

.quote-block {
    display: flex;
    gap: 1.6rem;
    align-items: flex-start;
    padding: 3.2rem 2.4rem;
    border-radius: 16px;
}
.quote-bar {
    flex: 0 0 4px;
    align-self: stretch;
    background: var(--accent);
    border-radius: 2px;
}
.quote-body { min-width: 0; }
.quote-body p {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 400;
    color: var(--ink);
    margin: 0 0 1rem;
    letter-spacing: -.02em;
}
.quote-author {
    font-size: .95rem;
    color: var(--muted);
    margin: 0;
}

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

.latest-block { margin-bottom: 2.6rem; }
.latest-more { text-align: center; margin-top: .6rem; }

/* ============ Запись и страница ============ */

.entry-header { margin-bottom: 1.4rem; }
.entry-title { font-size: 2.5rem; margin-bottom: .7rem; }

.entry-thumb {
    margin: 0 0 1.7rem;
    border-radius: var(--radius);
    overflow: hidden;
}
.entry-thumb img { width: 100%; display: block; }

.entry-content { font-size: 1.03rem; }
.entry-content h2 { margin-top: 2rem; font-size: 1.75rem; }
.entry-content h3 { margin-top: 1.6rem; font-size: 1.32rem; }
.entry-content img { border-radius: var(--radius); margin: 1.2rem 0; }
.entry-content ul li::marker { color: var(--accent-soft); }
.entry-content ol li::marker { color: var(--accent); }

.entry-foot {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(179, 141, 247, .3);
}
.tag-list { font-size: .88rem; color: var(--muted); }

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    margin: 2rem 0 .5rem;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 .8rem;
    border: 1px solid rgba(132, 96, 200, .35);
    border-radius: 8px;
    color: var(--accent);
    background: rgba(255, 255, 255, .6);
    font-size: .95rem;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.pager .page-numbers:hover {
    background: var(--bg-alt);
    color: var(--accent-dark);
    border-color: var(--accent);
}
.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pager .page-numbers.dots {
    border: 0;
    background: transparent;
    color: var(--muted);
    min-width: auto;
    padding: 0 .2rem;
}

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

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

.widget-title {
    font-size: 1.06rem;
    font-weight: 600;
    margin-bottom: .9rem;
    padding-left: .75rem;
    border-left: 3px solid var(--accent-soft);
}

.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li {
    margin-bottom: .6rem;
    padding-bottom: .6rem;
    border-bottom: 1px dashed rgba(179, 141, 247, .35);
    line-height: 1.5;
}
.widget li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }

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

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

.site-footer {
    background: var(--foot-bg);
    color: #D9D2EA;
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}
.site-footer::before {
    content: "";
    position: absolute;
    left: -110px;
    top: -130px;
    width: 340px;
    height: 340px;
    background: var(--accent-soft);
    opacity: .05;
    border-radius: 54% 46% 38% 62% / 43% 57% 43% 57%;
    pointer-events: none;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 2.2rem;
    padding: 3rem 0 2.2rem;
    position: relative;
    z-index: 2;
}
.footer-col { min-width: 0; }

.site-footer .widget-title {
    color: #F2EDFC;
    border-left-color: var(--accent-soft);
}
.site-footer .widget,
.site-footer .widget p,
.site-footer .widget li { color: #C9C1DE; font-size: .93rem; }
.site-footer .widget a { color: #DCCFFA; }
.site-footer .widget a:hover { color: var(--accent-soft); }
.site-footer .widget li { border-bottom-color: rgba(179, 141, 247, .22); }
.site-footer .widget .post-date { display: block; font-size: .78rem; color: #9C93B5; }

.footer-bottom {
    border-top: 1px solid rgba(179, 141, 247, .2);
    padding: 1.1rem 0 1.4rem;
    font-size: .86rem;
    color: #9C93B5;
    position: relative;
    z-index: 2;
}

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

.search-form {
    display: flex;
    gap: .5rem;
    align-items: stretch;
}
.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(132, 96, 200, .35);
    border-radius: 8px;
    padding: .62rem .85rem;
    font: inherit;
    font-size: .95rem;
    color: var(--ink);
    background: #fff;
}
.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);
}
.search-form button {
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-size: .93rem;
    padding: .62rem 1.1rem;
    cursor: pointer;
    transition: background-color .2s ease;
}
.search-form button:hover { background: var(--accent-dark); }

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

.archive-desc { color: #3b3548; margin-bottom: 1.4rem; }

.page-links { margin: 1.4rem 0; font-size: .92rem; }

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

.comments-area {
    margin-top: 2.6rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(179, 141, 247, .3);
}
.comments-title, .comment-reply-title { font-size: 1.4rem; margin-bottom: 1.2rem; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .children { list-style: none; margin: 1rem 0 0; padding-left: 1.4rem; }
.comment-item { margin-bottom: 1.2rem; }
.comment-body {
    background: rgba(255, 255, 255, .65);
    border-radius: var(--radius);
    padding: 1.1rem 1.3rem;
    box-shadow: 0 4px 16px rgba(192, 182, 217, .34);
}
.comment-head {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    align-items: baseline;
    margin-bottom: .5rem;
}
.comment-author { font-weight: 600; }
.comment-date { font-size: .8rem; color: var(--muted); }
.comment-actions { font-size: .88rem; }
.comment-hold { font-size: .85rem; color: var(--muted); }

.comment-form label { display: block; font-size: .88rem; margin-bottom: .3rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    border: 1px solid rgba(132, 96, 200, .35);
    border-radius: 8px;
    padding: .6rem .8rem;
    font: inherit;
    font-size: .95rem;
    background: #fff;
    color: var(--ink);
}
.comment-form textarea { min-height: 140px; }
.comment-form p { margin-bottom: 1rem; }
.comment-form .submit {
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    padding: .7rem 1.5rem;
    cursor: pointer;
    transition: background-color .2s ease;
}
.comment-form .submit:hover { background: var(--accent-dark); }

/* ============ 404 и поиск ============ */

.notfound { padding: 1rem 0 2rem; }
.notfound .search-form { max-width: 480px; margin: 1.4rem 0; }
.no-results { padding: 1rem 0 2rem; }

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.6rem;
    background: #221F2B;
    color: #E4DDF3;
    box-shadow: 0 -6px 24px rgba(26, 20, 40, .28);
}
.cookie-banner p { margin: 0; font-size: .9rem; min-width: 0; }
.cookie-banner a { color: var(--accent-soft); }
.cookie-banner button {
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-size: .92rem;
    padding: .6rem 1.4rem;
    cursor: pointer;
    transition: background-color .2s ease;
}
.cookie-banner button:hover { background: var(--accent-dark); }

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

@media (max-width: 960px) {
    h1 { font-size: 2.6rem; }
    .hero { grid-template-columns: 1fr; padding: 2.6rem 1.8rem; }
    .layout-with-sidebar { grid-template-columns: 1fr; gap: 2.4rem; }
    .layout-single { width: 100%; }
    .quote-body p { font-size: 2.2rem; }
    .front-section { padding: 2.6rem 1.8rem; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.6rem; }
    .entry-title { font-size: 1.8rem; }
    .page-title { font-size: 1.75rem; }

    .nav-toggle { display: inline-block; }
    .main-nav { width: 100%; }
    .main-nav[hidden] { display: none !important; }
    .main-nav ul { flex-direction: column; align-items: flex-start; gap: .3rem; width: 100%; }
    .main-nav li { width: 100%; }
    .main-nav a { display: block; padding: .5rem 0; width: 100%; }

    .header-inner { padding: 1rem 0; }
    .brand-desc { display: none; }

    .front-section { padding: 2rem 1.3rem; }
    .hero { padding: 2rem 1.3rem; }
    .quote-block { padding: 2rem 1.3rem; gap: 1.1rem; }
    .quote-body p { font-size: 1.6rem; }

    .timeline::before { left: 8px; }
    .tl-item { width: 100%; margin-left: 0; margin-right: 0; padding-left: 2.2rem; }
    .tl-item.left::after,
    .tl-item.right::after { left: 2px; right: auto; top: 1.6rem; }

    .cards { grid-template-columns: 1fr; }
    .sidebar { padding: 1.2rem 1.1rem; }
    .cookie-banner { padding: .9rem 1.1rem; }
}

@media (min-width: 601px) {
    .main-nav { display: block !important; }
}
