/*
Theme Name: SoftFreeDownload_271
Theme URI: https://softfree-download.ru
Author: Новиков Андрей
Author URI: https://softfree-download.ru
Description: Тема для сайта о бесплатных и платных программах для Windows 10. Технологичный дизайн, удобная навигация, адаптивная верстка.
Version: 1.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: softfreedownload271
*/

/* === ПЕРЕМЕННЫЕ === */
:root {
    --bg-main: #F8F9FC;
    --bg-card: #FFFFFF;
    --accent-blue: #0A58CA;
    --accent-blue-dark: #084298;
    --accent-amber: #FF8C00;
    --accent-green: #198754;
    --text-heading: #212529;
    --text-body: #495057;
    --border-light: #E9ECEF;
    --shadow-card: 0 2px 12px rgba(10, 88, 202, 0.07);
    --shadow-card-hover: 0 8px 24px rgba(10, 88, 202, 0.13);
    --radius-btn: 8px;
    --radius-pill: 40px;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition-base: 0.25s ease;
    --footer-bg: rgba(33, 37, 41, 0.92);
}

/* === СБРОС И БАЗОВЫЕ СТИЛИ === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-body);
    background: var(--bg-main);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    line-height: 1.3;
    margin-bottom: 0.6em;
    font-weight: 600;
}

h1 { font-size: 2em; }
h2 { font-size: 1.55em; }
h3 { font-size: 1.3em; }
h4 { font-size: 1.1em; }

p {
    margin-bottom: 1em;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--accent-blue-dark);
}

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

ul, ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

/* === ТАБЛИЦЫ === */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
    background: var(--bg-card);
}

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

th, td {
    padding: 10px 14px;
    text-align: left;
}

th {
    background: var(--accent-blue);
    color: #fff;
    font-weight: 600;
}

tr:nth-child(even) {
    background: #F0F4FA;
}

td .tbl-check {
    color: var(--accent-green);
    font-weight: bold;
}

td .tbl-cross {
    color: #999;
}

/* === КНОПКИ === */
.btn-primary {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all var(--transition-base);
    text-align: center;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-blue-dark), #062f6e);
    box-shadow: 0 4px 16px rgba(10, 88, 202, 0.3);
    color: #fff;
}

.btn-outline {
    display: inline-block;
    padding: 10px 24px;
    background: transparent;
    color: var(--accent-blue);
    border: 2px solid var(--accent-blue);
    border-radius: var(--radius-btn);
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all var(--transition-base);
    text-align: center;
}

.btn-outline:hover {
    background: rgba(10, 88, 202, 0.1);
    color: var(--accent-blue);
}

.btn-compare {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--accent-green);
    color: #fff;
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all var(--transition-base);
}

.btn-compare:hover {
    background: #157347;
    box-shadow: 0 4px 14px rgba(25, 135, 84, 0.3);
    color: #fff;
}

.btn-pill {
    display: inline-block;
    padding: 7px 20px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border-light);
    background: transparent;
    color: var(--text-body);
    cursor: pointer;
    font-size: 0.88em;
    transition: all var(--transition-base);
}

.btn-pill:hover,
.btn-pill.active {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
}

/* === КОНТЕЙНЕР === */
.wrap-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === ШАПКА === */
.head-site {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    position: relative;
    z-index: 100;
}

.head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 16px;
    flex-wrap: wrap;
}

.head-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.head-brand img,
.head-brand svg {
    height: 40px;
    width: auto;
}

.head-brand .brand-name {
    font-size: 1.15em;
    font-weight: 700;
    color: var(--text-heading);
}

/* === НАВИГАЦИЯ === */
.nav-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-header ul {
    display: flex;
    list-style: none;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.nav-header li a {
    display: block;
    padding: 8px 16px;
    color: var(--text-body);
    font-weight: 500;
    border-radius: var(--radius-btn);
    transition: all var(--transition-base);
    font-size: 0.95em;
}

.nav-header li a:hover,
.nav-header li.current-menu-item a {
    color: var(--accent-blue);
    background: rgba(10, 88, 202, 0.06);
}

/* === ПОИСК В ШАПКЕ === */
.head-search-wrap {
    position: relative;
    flex-shrink: 0;
}

.head-search-wrap input[type="search"] {
    padding: 9px 16px 9px 38px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-pill);
    width: 240px;
    font-size: 0.9em;
    outline: none;
    transition: all var(--transition-base);
    background: var(--bg-main);
    font-family: var(--font-main);
    color: var(--text-heading);
}

.head-search-wrap input[type="search"]:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(10, 88, 202, 0.1);
    width: 300px;
}

.head-search-wrap .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.search-hints {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-radius: var(--radius-btn);
    box-shadow: var(--shadow-card-hover);
    border: 1px solid var(--border-light);
    display: none;
    z-index: 200;
    overflow: hidden;
}

.search-hints.visible {
    display: block;
}

.search-hints a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-body);
    font-size: 0.9em;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-base);
}

.search-hints a:last-child {
    border-bottom: none;
}

.search-hints a:hover {
    background: rgba(10, 88, 202, 0.04);
    color: var(--accent-blue);
}

.search-hints .hint-icon {
    width: 18px;
    height: 18px;
    color: var(--accent-blue);
    flex-shrink: 0;
}

/* === МОБИЛЬНОЕ МЕНЮ === */
.burger-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-heading);
}

.burger-toggle svg {
    width: 26px;
    height: 26px;
}

/* === ХЛЕБНЫЕ КРОШКИ === */
.crumbs-line {
    padding: 14px 0;
    font-size: 0.88em;
    color: #888;
}

.crumbs-line a {
    color: var(--accent-blue);
}

.crumbs-line .crumb-sep {
    margin: 0 6px;
    color: #bbb;
}

.crumbs-line .crumb-home-icon {
    vertical-align: middle;
    margin-right: 2px;
}

/* === ГЛАВНАЯ СТРАНИЦА === */
.front-hero {
    background: linear-gradient(135deg, #0A58CA 0%, #084298 60%, #062f6e 100%);
    color: #fff;
    padding: 50px 0 45px;
    margin-bottom: 36px;
}

.front-hero h1 {
    color: #fff;
    font-size: 2em;
    margin-bottom: 14px;
}

.front-hero p {
    font-size: 1.1em;
    opacity: 0.92;
    max-width: 680px;
    margin-bottom: 24px;
}

.front-hero .hero-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.front-hero .hero-cats .btn-pill {
    border-color: rgba(255,255,255,0.35);
    color: rgba(255,255,255,0.9);
}

.front-hero .hero-cats .btn-pill:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.6);
    color: #fff;
}

/* === БЛОК: Для новичков vs Продвинутых === */
.level-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 36px;
    box-shadow: var(--shadow-card);
}

.level-side {
    padding: 28px 24px;
}

.level-side.side-beginner {
    background: linear-gradient(135deg, #E8F0FE, #D4E4FC);
    color: var(--text-heading);
}

.level-side.side-advanced {
    background: linear-gradient(135deg, #1A3A6E, #0A2550);
    color: #fff;
}

.level-side.side-advanced h3 {
    color: #fff;
}

.level-side h3 {
    font-size: 1.15em;
    margin-bottom: 14px;
}

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

.level-side ul li {
    padding: 5px 0;
    font-size: 0.93em;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.level-side ul li::before {
    content: '→';
    color: var(--accent-blue);
    flex-shrink: 0;
}

.level-side.side-advanced ul li::before {
    color: #7DB4FF;
}

/* === БЛОК: Информационные секции главной === */
.info-blocks-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.info-block-item {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.info-block-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

.info-block-item .ib-icon {
    width: 44px;
    height: 44px;
    background: rgba(10, 88, 202, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--accent-blue);
}

.info-block-item h3 {
    font-size: 1.05em;
    margin-bottom: 8px;
}

.info-block-item p {
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 0;
}

/* === КАРТОЧКИ ЗАПИСЕЙ === */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
    margin-bottom: 30px;
}

.entry-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    display: flex;
    flex-direction: column;
    position: relative;
}

.entry-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.entry-card .card-thumb {
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: var(--border-light);
}

.entry-card .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.entry-card:hover .card-thumb img {
    transform: scale(1.04);
}

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

.entry-card .card-body h3 {
    font-size: 1.05em;
    margin-bottom: 8px;
}

.entry-card .card-body h3 a {
    color: var(--text-heading);
}

.entry-card .card-body h3 a:hover {
    color: var(--accent-blue);
}

.entry-card .card-excerpt {
    font-size: 0.9em;
    color: var(--text-body);
    flex: 1;
    margin-bottom: 14px;
    line-height: 1.6;
}

.entry-card .card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82em;
    color: #999;
    margin-top: auto;
}

.entry-card .card-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.78em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entry-card .card-tag.tag-free {
    background: var(--accent-green);
    color: #fff;
}

.entry-card .card-tag.tag-premium {
    background: var(--accent-amber);
    color: #fff;
}

/* === КОНТЕНТ С САЙДБАРОМ === */
.layout-with-sidebar {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.layout-with-sidebar .main-col {
    flex: 0 0 67%;
    max-width: 67%;
    min-width: 0;
}

.layout-with-sidebar .sidebar-col {
    flex: 0 0 27%;
    max-width: 27%;
    min-width: 0;
    position: sticky;
    top: 24px;
}

.layout-no-sidebar .main-col {
    max-width: 85%;
    margin: 0 auto;
}

/* === САЙДБАР === */
.sidebar-col .widget-item {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 22px;
    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
}

.sidebar-col .widget-item h4,
.sidebar-col .widget-item .widget-title {
    font-size: 1em;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-blue);
    color: var(--text-heading);
}

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

.sidebar-col .widget-item ul li {
    padding: 7px 0;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-col .widget-item ul li:last-child {
    border-bottom: none;
}

.sidebar-col .widget-item ul li a {
    color: var(--text-body);
    font-size: 0.92em;
}

.sidebar-col .widget-item ul li a:hover {
    color: var(--accent-blue);
}

/* === КОНТЕНТ ЗАПИСИ / СТРАНИЦЫ === */
.article-full {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-card);
    margin-bottom: 30px;
}

.article-full .entry-title {
    font-size: 1.7em;
    margin-bottom: 12px;
}

.article-full .entry-meta {
    font-size: 0.85em;
    color: #999;
    margin-bottom: 22px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.article-full .entry-body {
    line-height: 1.75;
}

.article-full .entry-body h2 {
    margin-top: 1.5em;
}

.article-full .entry-body h3 {
    margin-top: 1.3em;
}

.article-full .entry-body img {
    border-radius: 8px;
    margin: 1em 0;
}

.article-full .entry-cats {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    font-size: 0.88em;
    color: #888;
}

/* === ПАГИНАЦИЯ === */
.paging-block {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 24px 0;
    flex-wrap: wrap;
}

.paging-block a,
.paging-block span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-btn);
    font-size: 0.92em;
    font-weight: 500;
    transition: all var(--transition-base);
    text-decoration: none;
}

.paging-block a {
    background: var(--bg-card);
    color: var(--text-body);
    border: 1px solid var(--border-light);
}

.paging-block a:hover {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
}

.paging-block span.current {
    background: var(--accent-blue);
    color: #fff;
    border: 1px solid var(--accent-blue);
}

.paging-block .dots {
    color: #999;
    border: none;
    background: none;
}

/* === ФОРМА ПОИСКА === */
.search-form-block {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto 20px;
}

.search-form-block input[type="search"] {
    flex: 1;
    padding: 10px 16px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-btn);
    font-size: 0.95em;
    font-family: var(--font-main);
    outline: none;
    transition: border-color var(--transition-base);
}

.search-form-block input[type="search"]:focus {
    border-color: var(--accent-blue);
}

.search-form-block button {
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-base);
}

.search-form-block button:hover {
    background: linear-gradient(135deg, var(--accent-blue-dark), #062f6e);
}

/* === 404 === */
.block-404 {
    text-align: center;
    padding: 60px 20px;
}

.block-404 h1 {
    font-size: 4em;
    color: var(--accent-blue);
    margin-bottom: 12px;
}

.block-404 p {
    font-size: 1.1em;
    margin-bottom: 24px;
}

/* === КОММЕНТАРИИ === */
.comments-area {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow-card);
    margin-top: 24px;
}

.comments-area h3 {
    margin-bottom: 18px;
}

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

.comment-list .comment {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.comment-list .comment:last-child {
    border-bottom: none;
}

.comment-list .comment-author {
    font-weight: 600;
    color: var(--text-heading);
}

.comment-list .comment-date {
    font-size: 0.82em;
    color: #999;
}

.comment-respond label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-heading);
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-btn);
    margin-bottom: 14px;
    font-family: var(--font-main);
    font-size: 0.95em;
    outline: none;
    transition: border-color var(--transition-base);
}

.comment-respond input:focus,
.comment-respond textarea:focus {
    border-color: var(--accent-blue);
}

.comment-respond .submit {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-dark));
    color: #fff;
    border: none;
    padding: 11px 28px;
    border-radius: var(--radius-btn);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95em;
    transition: all var(--transition-base);
}

.comment-respond .submit:hover {
    background: linear-gradient(135deg, var(--accent-blue-dark), #062f6e);
}

/* === ПОДВАЛ === */
.foot-site {
    background: var(--footer-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: rgba(255,255,255,0.82);
    padding: 40px 0 0;
    margin-top: 50px;
}

.foot-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 30px;
}

.foot-widgets .widget-item h4,
.foot-widgets .widget-item .widget-title {
    color: #fff;
    font-size: 1em;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.foot-widgets .widget-item p {
    font-size: 0.9em;
    color: rgba(255,255,255,0.72);
    line-height: 1.6;
}

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

.foot-widgets .widget-item ul li {
    padding: 5px 0;
}

.foot-widgets .widget-item ul li a {
    color: rgba(255,255,255,0.72);
    font-size: 0.9em;
    transition: color var(--transition-base);
}

.foot-widgets .widget-item ul li a:hover {
    color: #fff;
}

.foot-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 18px 0;
    text-align: center;
    font-size: 0.85em;
    color: rgba(255,255,255,0.55);
}

/* === КУКИ-БАННЕР === */
.cookie-notice-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(33, 37, 41, 0.96);
    backdrop-filter: blur(10px);
    color: rgba(255,255,255,0.9);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 9999;
    font-size: 0.9em;
}

.cookie-notice-bar p {
    margin: 0;
}

.cookie-notice-bar .cookie-accept-btn {
    padding: 8px 24px;
    background: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em;
    flex-shrink: 0;
    transition: background var(--transition-base);
}

.cookie-notice-bar .cookie-accept-btn:hover {
    background: var(--accent-blue-dark);
}

.cookie-notice-bar.hidden {
    display: none;
}

/* === ПЕРЕКЛЮЧАТЕЛЬ РЕЖИМА === */
.mode-toggle-wrap {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 900;
}

.mode-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-size: 0.82em;
    font-weight: 600;
    color: var(--text-heading);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
    font-family: var(--font-main);
}

.mode-toggle-btn:hover {
    box-shadow: var(--shadow-card-hover);
}

/* Режим мастера — показывать продвинутые элементы */
body.mode-master .for-beginner {
    display: none;
}

body:not(.mode-master) .for-master {
    display: none;
}

/* === СЕКЦИЯ ЗАГОЛОВКА СПИСКА === */
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.section-heading h2 {
    margin-bottom: 0;
}

/* === RESPONSIVE === */
@media (max-width: 960px) {
    .layout-with-sidebar {
        flex-direction: column;
    }
    .layout-with-sidebar .main-col,
    .layout-with-sidebar .sidebar-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .sidebar-col {
        position: static !important;
    }
    .foot-widgets {
        grid-template-columns: 1fr;
    }
    .level-switcher {
        grid-template-columns: 1fr;
    }
    .info-blocks-row {
        grid-template-columns: 1fr;
    }
    .head-inner {
        flex-wrap: wrap;
    }
    .head-search-wrap {
        order: 3;
        width: 100%;
    }
    .head-search-wrap input[type="search"] {
        width: 100%;
    }
    .head-search-wrap input[type="search"]:focus {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .burger-toggle {
        display: block;
    }
    .nav-header ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-light);
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        padding: 10px;
        z-index: 150;
    }
    .nav-header ul.nav-open {
        display: flex;
    }
    .nav-header li a {
        padding: 12px 16px;
    }
    .posts-grid {
        grid-template-columns: 1fr;
    }
    .front-hero h1 {
        font-size: 1.5em;
    }
    .article-full {
        padding: 20px;
    }
    .cookie-notice-bar {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .mode-toggle-wrap {
        bottom: 70px;
        right: 12px;
    }
    .layout-no-sidebar .main-col {
        max-width: 100%;
    }
    h1 { font-size: 1.5em; }
    h2 { font-size: 1.3em; }
}

/* === WordPress-специфичные классы === */
.alignleft {
    float: left;
    margin-right: 1em;
    margin-bottom: 1em;
}
.alignright {
    float: right;
    margin-left: 1em;
    margin-bottom: 1em;
}
.aligncenter {
    display: block;
    margin: 1em auto;
}
.wp-caption {
    max-width: 100%;
}
.wp-caption-text {
    font-size: 0.85em;
    color: #888;
    text-align: center;
    padding: 6px 0;
}
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
