/*
Theme Name: dds_tanning-advisor.com
Author: Оксана Жукова
Description: Информационная тема о загаре и уходе за кожей. Японский минимализм с морской эстетикой, холодная палитра, строгая типографика.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: skinsun
*/

/* ============================================================
   1. Переменные и база
   ============================================================ */

:root {
    --bg: #F9FCFB;
    --alt: #EDF3F0;
    --dark: #142A28;
    --text: #1A2D2A;
    --accent: #D97A5E;
    --sand: #C4A484;
    --muted: #6B7D78;
    --line: #D1DCD8;
    --aqua: #A3C6C4;
    --sidebar-line: #4A6B66;
    --hf: "Montserrat", "Century Gothic", "Trebuchet MS", "Segoe UI", sans-serif;
    --bf: Georgia, "Iowan Old Style", "Times New Roman", serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--bf);
    font-size: 17px;
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::after {
    content: "";
    position: fixed;
    right: -140px;
    bottom: -160px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(163, 198, 196, .55), rgba(163, 198, 196, 0) 68%);
    filter: blur(18px);
    z-index: 0;
    pointer-events: none;
}

.site-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

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

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

a:hover {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-style: wavy;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--hf);
    font-weight: 700;
    color: var(--text);
    letter-spacing: .1em;
    text-transform: uppercase;
    line-height: 1.22;
    margin: 0 0 1rem;
}

h1 {
    font-size: 2.4rem;
    letter-spacing: .06em;
}

h2 { font-size: 1.5rem; }
h3 { font-size: 1.18rem; }
h4 { font-size: 1rem; }

p {
    margin: 0 0 1.15em;
}

ul, ol {
    padding-left: 1.3rem;
}

/* ============================================================
   2. Кнопки и утилиты
   ============================================================ */

.btn {
    display: inline-block;
    padding: .8rem 1.7rem;
    font-family: var(--hf);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--dark);
    border-bottom-width: 3px;
    border-radius: 0;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}

.btn:hover {
    color: var(--text);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 0 -1px rgba(217, 122, 94, .85);
}

.btn-fill {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-fill:hover {
    color: #fff;
    box-shadow: 0 4px 0 -1px rgba(20, 42, 40, .35);
}

.sec-title {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin: 0 0 2.4rem;
    padding-left: 1.8rem;
    font-size: 1.32rem;
    letter-spacing: .18em;
}

.sec-title > span {
    min-width: 0;
}

.sec-title::after {
    content: "";
    flex: 0 0 20%;
    height: 11px;
    background-image:
        linear-gradient(var(--text), var(--text)),
        radial-gradient(circle at center, var(--accent) 46%, transparent 47%);
    background-size: calc(100% - 11px) 1px, 11px 11px;
    background-position: left center, right center;
    background-repeat: no-repeat;
}

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

/* ============================================================
   3. Шапка
   ============================================================ */

.site-header {
    background: var(--dark);
    color: #EAF2EF;
    border-bottom: 1px solid rgba(196, 164, 132, .35);
    position: static;
}

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

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

.brand-logo,
.brand-mark {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    display: block;
}

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

.brand-title {
    display: block;
    font-family: var(--hf);
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #F4F9F7;
    line-height: 1.35;
}

.brand-title:hover {
    color: var(--sand);
    text-decoration: none;
}

.brand-desc {
    display: block;
    margin-top: .35rem;
    font-size: .82rem;
    line-height: 1.5;
    color: rgba(234, 242, 239, .62);
    max-width: 46ch;
}

.nav-toggle {
    display: none;
    padding: .55rem 1rem;
    font-family: var(--hf);
    font-size: .7rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #F4F9F7;
    background: transparent;
    border: 1px solid rgba(244, 249, 247, .45);
    border-bottom-width: 3px;
    cursor: pointer;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 1.9rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: inline-block;
    position: relative;
    padding: .3rem 0;
    font-family: var(--hf);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(244, 249, 247, .85);
}

.main-nav a:hover {
    color: var(--sand);
    text-decoration: none;
}

.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    color: #fff;
}

.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 26px;
    height: 6px;
    background-image:
        linear-gradient(var(--accent), var(--accent)),
        linear-gradient(var(--accent), var(--accent));
    background-size: 11px 2px, 17px 2px;
    background-position: left top, left bottom;
    background-repeat: no-repeat;
}

/* ============================================================
   4. Основная область и раскладки
   ============================================================ */

.site-main {
    flex: 1 0 auto;
    padding: 0 0 5rem;
    background-image: radial-gradient(circle, rgba(209, 220, 216, .3) 1px, transparent 1px);
    background-size: 22px 22px;
}

.page-body {
    padding-top: 2.6rem;
}

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

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

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

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

.breadcrumbs {
    font-family: var(--hf);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.8rem;
}

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

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

.breadcrumbs .sep {
    color: var(--sand);
    margin: 0 .25rem;
}

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

.card-list {
    display: flex;
    flex-direction: column;
    gap: 1.9rem;
}

.card {
    --cardbg: var(--bg);
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--cardbg);
    border: 1px solid var(--line);
    border-left: 2px solid var(--line);
    border-radius: 0;
    padding: 1.6rem 1.8rem;
    transition: background-color .25s ease, border-color .25s ease;
}

.card::after {
    content: "";
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 46px;
    height: 46px;
    border-right: 1px solid var(--cardbg);
    border-bottom: 1px solid var(--cardbg);
    pointer-events: none;
}

.card:hover {
    --cardbg: var(--alt);
    border-left-color: var(--accent);
}

.card-row {
    display: flex;
    flex: 1;
    gap: 1.7rem;
    min-width: 0;
    align-items: flex-start;
}

.card-thumb {
    flex: 0 0 168px;
    width: 168px;
    height: 168px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--alt);
}

.card-thumb a {
    display: block;
}

.card-thumb img {
    display: block;
    width: 100%;
    height: 168px;
    object-fit: cover;
}

.card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.04rem;
    letter-spacing: .09em;
    margin: 0 0 .6rem;
}

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

.card-excerpt {
    color: #34443F;
}

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

.post-meta {
    font-family: var(--hf);
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .55rem;
}

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

.post-meta a:hover {
    color: var(--accent);
}

.dot-sep {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--sand);
    vertical-align: middle;
    margin: 0 .35rem;
}

.card-more {
    margin-top: auto;
    padding-top: .9rem;
}

.card-more a {
    font-family: var(--hf);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
}

/* ============================================================
   6. Главная страница
   ============================================================ */

.fs {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.fs::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 130px;
    height: 130px;
    background: repeating-linear-gradient(135deg, rgba(196, 164, 132, .45) 0 1px, transparent 1px 11px);
    pointer-events: none;
}

.fs-alt {
    background-color: var(--alt);
    background-image: linear-gradient(150deg, rgba(163, 198, 196, .35), rgba(237, 243, 240, 0) 60%);
}

.fs-inner {
    width: min(85%, 1180px);
    margin-inline: auto;
}

/* Блок 1 — hero */

.hero {
    padding: 96px 0 150px;
    background-image: linear-gradient(160deg, #FFFFFF 0%, var(--alt) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 160px;
    height: 160px;
    background: repeating-linear-gradient(135deg, rgba(196, 164, 132, .4) 0 1px, transparent 1px 12px);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: center;
}

.hero-copy {
    min-width: 0;
}

.hero h1 {
    font-size: 3.8rem;
    letter-spacing: .04em;
    margin: 0 0 1.6rem;
}

.hero-slogan {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #2C3E39;
    max-width: 54ch;
    margin-bottom: 2.2rem;
}

.hero-figure {
    min-width: 0;
    display: flex;
    justify-content: center;
}

.hero-circle {
    width: 260px;
    height: 260px;
    border: 2px dashed var(--sidebar-line);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.6rem;
}

.hero-num {
    font-family: var(--hf);
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
    letter-spacing: .02em;
}

.hero-num-label {
    margin-top: .8rem;
    font-family: var(--hf);
    font-size: .66rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Блок 2 — чек-лист */

.checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    max-width: 900px;
}

.check-item {
    position: relative;
    display: flex;
    gap: 1.4rem;
    align-items: flex-start;
    padding: 0 3.4rem 2.4rem 0;
    min-width: 0;
}

.check-item:last-child {
    padding-bottom: 0;
}

.check-item::after {
    content: "";
    position: absolute;
    right: 26px;
    top: 12px;
    bottom: -12px;
    width: 1px;
    background: var(--sidebar-line);
    opacity: .5;
}

.check-item:last-child::after {
    display: none;
}

.check-mark {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    margin-top: .35rem;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-mark svg {
    width: 14px;
    height: 14px;
    display: block;
}

.check-body {
    min-width: 0;
    font-size: 1.2rem;
    line-height: 1.6;
}

.check-body strong {
    display: block;
    font-family: var(--hf);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: .35rem;
}

/* Блок 3 — плюсы и минусы */

.pros-cons {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.6rem;
}

.pc-col {
    min-width: 0;
    background: rgba(255, 255, 255, .55);
    padding: 2.2rem 2rem;
}

.pc-pros {
    border-top: 3px solid var(--sidebar-line);
}

.pc-cons {
    border-top: 3px solid var(--accent);
}

.pc-col h3 {
    font-size: .92rem;
    letter-spacing: .2em;
    margin-bottom: 1.3rem;
}

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

.pc-col li {
    display: flex;
    gap: .75rem;
    margin-bottom: 1rem;
    min-width: 0;
}

.pc-col li span[aria-hidden] {
    flex: 0 0 auto;
}

/* Блок 4 — карта тем */

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

.topic-tile {
    position: relative;
    min-width: 0;
    display: block;
    background: transparent;
    border: 3px solid var(--dark);
    border-radius: 0;
    padding: 2.4rem 1.9rem 3.6rem;
    min-height: 190px;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.topic-tile h3 {
    margin: 0 0 .6rem;
    font-size: 1.05rem;
    letter-spacing: .14em;
    transition: color .25s ease;
}

.topic-tile p {
    margin: 0;
    font-size: .92rem;
    color: var(--muted);
    transition: color .25s ease;
}

.topic-arrow {
    position: absolute;
    right: 1.6rem;
    bottom: 1.4rem;
    font-family: var(--hf);
    font-size: 1.3rem;
    line-height: 1;
    color: var(--accent);
    transition: color .25s ease;
}

.topic-tile:hover {
    background: var(--accent);
    border-color: var(--accent);
    text-decoration: none;
}

.topic-tile:hover h3,
.topic-tile:hover p,
.topic-tile:hover .topic-arrow {
    color: #fff;
}

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

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

.latest-card {
    --cardbg: var(--bg);
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--cardbg);
    border: 1px solid var(--line);
    border-left: 2px solid var(--line);
    padding: 1.5rem 1.6rem;
    transition: background-color .25s ease, border-color .25s ease;
}

.latest-card::after {
    content: "";
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 42px;
    height: 42px;
    border-right: 1px solid var(--cardbg);
    border-bottom: 1px solid var(--cardbg);
    pointer-events: none;
}

.latest-card:hover {
    --cardbg: var(--alt);
    border-left-color: var(--accent);
}

.latest-thumb {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.1rem;
    background: var(--alt);
}

.latest-thumb img {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.latest-card .card-body {
    flex: 1;
}

.latest-more {
    margin-top: 2.6rem;
}

/* ============================================================
   7. Записи и страницы
   ============================================================ */

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2rem;
    letter-spacing: .05em;
    margin-bottom: .9rem;
}

.entry-thumb {
    margin-bottom: 2rem;
}

.entry-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.entry-content {
    counter-reset: skinsun-quote;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin: 2.2rem 0 1rem;
}

.entry-content img {
    height: auto;
}

.entry-content a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.entry-content a:hover {
    text-decoration-style: wavy;
    text-decoration-thickness: 2px;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 1.3em;
}

.entry-content li {
    margin-bottom: .5em;
}

.entry-content blockquote {
    position: relative;
    counter-increment: skinsun-quote;
    margin: 2.4rem 0 2.4rem 3.4rem;
    padding: 1.6rem 1.8rem;
    background: var(--alt);
    border-left: 2px solid var(--accent);
    font-style: italic;
}

.entry-content blockquote::before {
    content: counter(skinsun-quote, decimal-leading-zero);
    position: absolute;
    left: -3.4rem;
    top: .4rem;
    font-family: var(--hf);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    color: var(--sand);
}

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

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.6rem;
    border: 1px solid var(--sidebar-line);
}

.entry-content th,
.entry-content td {
    border: 1px solid var(--sidebar-line);
    padding: .65rem .8rem;
    text-align: left;
}

.entry-content th {
    background: var(--alt);
    font-family: var(--hf);
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.entry-footer {
    margin-top: 2.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-family: var(--hf);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

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

.archive-head {
    margin-bottom: 2.4rem;
}

.archive-title {
    font-size: 1.8rem;
    letter-spacing: .06em;
}

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

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

.pager .page-numbers {
    display: inline-block;
    padding: .55rem 1rem;
    font-family: var(--hf);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .12em;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--line);
    border-bottom-width: 3px;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.pager a.page-numbers:hover {
    background: var(--alt);
    border-color: var(--accent);
    color: var(--text);
    text-decoration: none;
}

.pager .page-numbers.current {
    background: var(--dark);
    border-color: var(--dark);
    color: #fff;
}

.pager .page-numbers.dots {
    border: none;
    padding-left: .3rem;
    padding-right: .3rem;
}

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

.widget {
    margin-bottom: 2.4rem;
}

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

.widget-title {
    font-size: .82rem;
    letter-spacing: .2em;
    margin-bottom: 1rem;
}

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

.widget li {
    margin-bottom: .8rem;
    padding-bottom: .8rem;
    border-bottom: 1px solid var(--line);
    line-height: 1.5;
}

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

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

.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li {
    color: #2C3E39;
}

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

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

.sidebar .widget .post-date {
    display: block;
    font-family: var(--hf);
    font-size: .66rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

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

.site-footer {
    background: var(--dark);
    border-top: 1px solid var(--sand);
    color: #D8E4E0;
    padding: 3.6rem 0 2rem;
    margin-top: auto;
}

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

.footer-col {
    min-width: 0;
}

.site-footer .widget-title {
    color: #F2F7F5;
}

.site-footer .widget,
.site-footer .widget p,
.site-footer .widget li,
.site-footer .widget div {
    color: #C7D6D1;
}

.site-footer .widget li {
    border-bottom-color: rgba(196, 164, 132, .25);
}

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

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

.site-footer .post-date {
    color: #9CB0AA;
}

.copyright {
    margin-top: 3rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(196, 164, 132, .3);
    font-family: var(--hf);
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #9CB0AA;
}

/* ============================================================
   11. 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: 1.2rem;
    padding: 1.1rem 1.6rem;
    background: var(--dark);
    border-top: 1px solid var(--sand);
    color: #D8E4E0;
}

.cookie-banner p {
    margin: 0;
    min-width: 0;
    font-size: .9rem;
    line-height: 1.55;
}

.cookie-banner .btn {
    border-color: var(--sand);
    color: #F4F9F7;
    flex: 0 0 auto;
}

.cookie-banner .btn:hover {
    color: #fff;
}

/* ============================================================
   12. Формы, поиск, комментарии
   ============================================================ */

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

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

.search-form label {
    flex: 1 1 200px;
    min-width: 0;
}

.search-form input[type="search"] {
    width: 100%;
    padding: .7rem .9rem;
    font-family: var(--bf);
    font-size: .95rem;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0;
}

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

.comments-area {
    margin-top: 3.2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.comments-title,
.comment-reply-title {
    font-size: 1rem;
    letter-spacing: .18em;
    margin-bottom: 1.4rem;
}

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

.comment-list .children {
    list-style: none;
    margin: 1.2rem 0 0;
    padding-left: 1.6rem;
    border-left: 1px solid var(--line);
}

.comment-item {
    margin-bottom: 1.4rem;
    padding: 1.3rem 1.5rem;
    background: var(--alt);
    border-left: 2px solid var(--sand);
}

.comment-head {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    align-items: baseline;
    margin-bottom: .6rem;
}

.comment-author {
    font-family: var(--hf);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.comment-date,
.comment-actions {
    font-family: var(--hf);
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.comment-text p:last-child {
    margin-bottom: 0;
}

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

.comment-form label {
    display: block;
    font-family: var(--hf);
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .35rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .7rem .9rem;
    font-family: var(--bf);
    font-size: .95rem;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0;
}

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

.comment-form input[type="submit"] {
    display: inline-block;
    padding: .8rem 1.7rem;
    font-family: var(--hf);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-bottom-width: 3px;
    border-radius: 0;
    cursor: pointer;
    transition: transform .2s ease;
}

.comment-form input[type="submit"]:hover {
    transform: translateY(-2px);
}

/* ============================================================
   13. 404
   ============================================================ */

.error-box {
    padding: 2.6rem 2.2rem;
    background: var(--alt);
    border-left: 3px solid var(--accent);
}

.error-code {
    font-family: var(--hf);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--sand);
    margin-bottom: 1rem;
}

.error-actions {
    margin-top: 1.8rem;
}

.no-results {
    padding: 2rem;
    background: var(--alt);
    border-left: 3px solid var(--sand);
}

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

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

    .sidebar {
        margin-top: 3rem;
        border-left: none;
        border-top: 1px solid var(--sidebar-line);
        padding-left: 0;
        padding-top: 1.8rem;
    }

    .layout-single {
        width: 100%;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.6rem;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .hero {
        padding: 64px 0 90px;
    }

    .fs {
        padding: 72px 0;
    }

    .fs-inner {
        width: min(92%, 1180px);
    }

    .topic-map,
    .latest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .nav-toggle {
        display: inline-block;
    }

    .main-nav {
        flex: 1 1 100%;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: .9rem;
        padding-top: 1.2rem;
    }

    .main-nav.is-closed ul {
        display: none;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    .hero h1 {
        font-size: 2.05rem;
    }

    .hero-circle {
        width: 200px;
        height: 200px;
    }

    .hero-num {
        font-size: 2.6rem;
    }

    .fs {
        padding: 56px 0;
    }

    .sec-title {
        padding-left: 0;
        gap: .9rem;
        font-size: 1.1rem;
    }

    .sec-title::after {
        flex-basis: 28%;
    }

    .card {
        padding: 1.3rem 1.2rem;
    }

    .card-row {
        flex-direction: column;
        gap: 1.1rem;
        align-items: flex-start;
    }

    .card-thumb {
        flex: none;
        width: 130px;
        height: 130px;
    }

    .card-thumb img {
        height: 130px;
    }

    .pros-cons {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.6rem;
    }

    .pc-col {
        padding: 1.6rem 1.3rem;
    }

    .topic-map,
    .latest-grid {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .check-item {
        padding-right: 2.4rem;
        padding-bottom: 1.8rem;
    }

    .check-item::after {
        right: 16px;
    }

    .check-body {
        font-size: 1.05rem;
    }

    .entry-title {
        font-size: 1.5rem;
    }

    .entry-content blockquote {
        margin-left: 0;
        padding: 1.4rem 1.3rem 1.4rem 1.4rem;
    }

    .entry-content blockquote::before {
        position: static;
        display: block;
        margin-bottom: .5rem;
        font-size: 2rem;
    }

    .error-box {
        padding: 1.9rem 1.4rem;
    }

    .cookie-banner {
        padding: 1rem 1.2rem;
    }

    .comment-item {
        padding: 1.1rem 1.1rem;
    }
}
