/*
Theme Name: dds_deti-morya-film.ru
Author: Марина Лагутина
Description: Познавательная тема об океане, морских животных и экологии для детей и родителей. Морская холодная палитра, скандинавский минимализм, волновые разделители и «пузырьковые» маркеры.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dmfilm
*/

/* ---------- Переменные ---------- */
:root {
    --foam: #F4FAFD;
    --mist: #E3F1F8;
    --head: #0B3C5D;
    --deep: #082C42;
    --side: #EAF4FA;
    --ink: #12303F;
    --coral: #FF8A5C;
    --coral-dark: #E5734A;
    --teal: #2EC4B6;
    --muted: #5C7A8A;
    --line: #C9E0EC;
    --radius: 16px;
    --font-head: "Nunito", "Quicksand", "Segoe UI", Arial, sans-serif;
    --font-text: "Inter", "Source Sans Pro", "Segoe UI", Arial, sans-serif;
}

/* ---------- Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-text);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--foam);
    background-image: radial-gradient(circle, rgba(201, 224, 236, 0.2) 1px, transparent 1.5px);
    background-size: 24px 24px;
    position: relative;
}

body::after {
    content: "";
    position: fixed;
    right: -140px;
    bottom: -90px;
    width: 680px;
    height: 340px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100'%3E%3Cpath d='M10 60C10 35 45 22 90 22c40 0 68 16 78 30l18-18c6 10 4 22-6 28 10 4 14 14 10 22-10-4-18-10-22-16-18 18-48 24-80 24C40 92 10 82 10 60z' fill='%230B3C5D'/%3E%3C/svg%3E") no-repeat center / contain;
    opacity: 0.05;
    pointer-events: none;
    z-index: -1;
}

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

p { margin: 0 0 1em; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.25;
    margin: 1.4em 0 0.6em;
    font-weight: 800;
}
h1 { font-size: 3.2rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }

a {
    color: var(--coral);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .2s, text-decoration-thickness .2s;
}
a:hover, a:focus-visible {
    color: var(--teal);
    text-decoration-thickness: 3px;
}

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

.entry-content ul, .widget ul.bubble-list { list-style: none; padding-left: 1.6em; }
.entry-content ul li { position: relative; margin-bottom: .4em; }
.entry-content ul li::before {
    content: "";
    position: absolute;
    left: -1.3em;
    top: .6em;
    width: .6em;
    height: .6em;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--coral), var(--teal));
}

table { border-collapse: collapse; width: 100%; margin: 1.2em 0; border: 1px solid var(--line); }
th, td { border: 1px solid var(--line); padding: .6em .8em; text-align: left; }
th { background: var(--mist); font-family: var(--font-head); }

blockquote {
    margin: 1.4em 0;
    padding: 1.2rem 1.5rem;
    border-left: 4px solid var(--coral);
    background: var(--mist);
    border-radius: 0 12px 12px 0;
}

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

/* ---------- Контейнер ---------- */
.shell { width: min(92%, 1180px); margin-left: auto; margin-right: auto; }

/* ---------- Кнопки ---------- */
.btn, .comment-form .submit {
    display: inline-block;
    padding: .8rem 1.6rem;
    border: 0;
    border-radius: 12px;
    background: var(--coral);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover, .btn:focus-visible, .comment-form .submit:hover {
    background: var(--coral-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(229, 115, 74, 0.3);
    text-decoration: none;
}

/* ---------- Полоса сверху и шапка ---------- */
.tide-bar { height: 4px; background: linear-gradient(90deg, #0B3C5D, #2EC4B6); }

.masthead { background: var(--head); color: #fff; }
.masthead-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 1.1rem 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
    text-decoration: none;
    flex: 1 1 520px;
    min-width: 0;
}
.brand:hover { color: #fff; text-decoration: none; }
.brand-mark { flex: 0 0 auto; display: block; }
.brand-logo { display: block; width: 56px; height: 56px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.brand-desc {
    font-size: .8rem;
    line-height: 1.45;
    color: #B8D6E6;
    margin-top: .25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.main-nav { flex: 0 0 auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; }
.nav-list li { position: relative; }
.nav-list a {
    display: block;
    padding: .4rem 0;
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.nav-list a:hover, .nav-list .current-menu-item > a {
    color: #fff;
    border-bottom-color: var(--coral);
}
.nav-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: .5rem 1rem;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 200px;
    background: var(--head);
    border-radius: 0 0 12px 12px;
    display: none;
    z-index: 20;
}
.nav-list li:hover > .sub-menu, .nav-list li:focus-within > .sub-menu { display: block; }

.nav-toggle {
    display: none;
    align-items: center;
    gap: .6rem;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 12px;
    padding: .5rem .9rem;
    font-family: var(--font-head);
    font-weight: 700;
    cursor: pointer;
}
.nav-toggle-lines, .nav-toggle-lines::before, .nav-toggle-lines::after {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    position: relative;
}
.nav-toggle-lines::before, .nav-toggle-lines::after { content: ""; position: absolute; left: 0; }
.nav-toggle-lines::before { top: -6px; }
.nav-toggle-lines::after { top: 6px; }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
    font-size: .9rem;
    color: var(--muted);
    padding: 1.4rem 0 .4rem;
}
.breadcrumbs a { color: var(--coral); }
.breadcrumbs .sep { margin: 0 .35rem; color: var(--teal); }

/* ---------- Раскладки ---------- */
.page-wrap { padding-bottom: 4rem; }

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

.layout-with-sidebar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
}
.layout-with-sidebar .content-area { width: 67%; min-width: 0; }
.layout-with-sidebar .sidebar { width: 27%; min-width: 0; }

/* ---------- Заголовки секций ---------- */
.sec-title {
    position: relative;
    font-size: 2.1rem;
    text-align: left;
    padding-left: 1.4rem;
    padding-bottom: .9rem;
    margin: 0 0 1.4rem;
}
.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .5em;
    width: .72rem;
    height: .72rem;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .45);
}
.sec-title::after {
    content: "";
    position: absolute;
    left: 1.4rem;
    bottom: 0;
    width: 96px;
    height: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8' viewBox='0 0 24 8'%3E%3Cpath d='M0 4Q6 0 12 4T24 4' fill='none' stroke='%232EC4B6' stroke-width='2'/%3E%3C/svg%3E") repeat-x left center / 24px 8px;
}
.sec-lead { color: var(--muted); max-width: 640px; margin: -.4rem 0 2rem; }

.page-head { margin: 1rem 0 2rem; }
.page-title { font-size: 2.6rem; }
.archive-desc { color: var(--muted); }

/* ---------- Главная ---------- */
.fp-wrap { width: 85%; margin-left: auto; margin-right: auto; min-width: 0; }

.fp-section { padding: 4.5rem 0; background: var(--foam); }
.fp-section--alt { background: var(--mist); }

.fp-hero {
    position: relative;
    overflow: hidden;
    min-height: 540px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0B3C5D, #2EC4B6);
    color: #fff;
}
.fp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 60, 93, .88) 0%, rgba(11, 60, 93, .55) 55%, rgba(46, 196, 182, .45) 100%);
    z-index: 1;
}
.fp-hero > .shell { position: relative; z-index: 2; }
.fp-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fp-hero-bubble {
    position: absolute;
    right: 4%;
    bottom: 8%;
    width: 180px;
    height: 180px;
    z-index: 2;
    pointer-events: none;
}
.fp-hero-content { padding: 4rem 0; max-width: 760px; margin-left: 7.5%; }
.fp-hero-kicker {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #0B3C5D;
    background: rgba(244, 250, 253, .9);
    padding: .3rem .8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.fp-hero-title { color: #fff; font-size: 3.2rem; margin: 0 0 1rem; }
.fp-hero-sub { font-size: 1.2rem; color: #E3F1F8; max-width: 620px; margin-bottom: 2rem; }

.animal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}
.animal-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem 1.5rem 1.6rem;
    box-shadow: 0 4px 12px rgba(11, 60, 93, 0.08);
    overflow: hidden;
    min-width: 0;
    transition: transform .25s, box-shadow .25s;
}
.animal-card::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 3px;
    background: var(--teal);
    transition: background .25s;
}
.animal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(11, 60, 93, 0.14);
}
.animal-card:hover::before { background: var(--coral); }
.animal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--coral), var(--teal));
    margin-bottom: 1.2rem;
}
.animal-icon img { display: block; width: 44px; height: 44px; }
.animal-card h3 { margin: 0 0 .5rem; font-size: 1.25rem; }
.animal-card p { margin: 0; color: var(--ink); font-size: .98rem; }

.fp-more { margin-top: 2.2rem; }

.wave-divider {
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='20' viewBox='0 0 80 20'%3E%3Cpath d='M0 10Q20 0 40 10T80 10' fill='none' stroke='%232EC4B6' stroke-width='2'/%3E%3C/svg%3E") repeat-x center / 80px 20px;
    opacity: .3;
    margin: 1.2rem 0;
}

.fp-quote-section { border-top: 1px solid var(--line); }
.fp-quote {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 3.5rem 3.5rem 3rem 3.8rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #0B3C5D 0%, #2EC4B6 100%);
    color: #fff;
}
.fp-quote::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M0 12Q30 2 60 12T120 12M0 32Q30 22 60 32T120 32' fill='none' stroke='%23ffffff' stroke-width='1.5'/%3E%3C/svg%3E") repeat;
    opacity: .1;
    pointer-events: none;
}
.fp-quote::after {
    content: "";
    position: absolute;
    left: 2rem;
    top: 2.5rem;
    bottom: 2.5rem;
    width: 4px;
    border-radius: 4px;
    background: var(--coral);
}
.fp-quote-wave {
    position: absolute;
    right: -20px;
    bottom: -10px;
    width: 320px;
    height: 128px;
    opacity: .12;
    pointer-events: none;
}
.fp-quote blockquote {
    position: relative;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    border-radius: 0;
}
.fp-quote blockquote p {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.35;
    color: #fff;
    margin: 0 0 1.2rem;
    max-width: 860px;
}
.fp-quote figcaption {
    position: relative;
    font-size: .95rem;
    color: #D4F2EF;
}

.fp-cta {
    background-color: var(--mist);
    background-image: radial-gradient(circle, rgba(46, 196, 182, 0.16) 2px, transparent 2.5px);
    background-size: 28px 28px;
}
.fp-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.8rem 2.6rem;
    background: rgba(244, 250, 253, .7);
    border-radius: var(--radius);
}
.fp-cta-text { flex: 1 1 auto; min-width: 0; }
.fp-cta-text p { max-width: 620px; margin-bottom: 1.6rem; }
.fp-cta-art { flex: 0 0 220px; }
.fp-cta-art img { display: block; width: 220px; height: 220px; opacity: .4; }

/* ---------- Карточки записей ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem;
}
.card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.layout-single .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(11, 60, 93, 0.08);
    overflow: hidden;
    min-width: 0;
    transition: transform .25s, box-shadow .25s;
}
.card::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 3px;
    background: var(--teal);
    z-index: 2;
    transition: background .25s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(11, 60, 93, 0.14);
}
.card:hover::before { background: var(--coral); }
.card-thumb { border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.card-thumb a { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.4rem 1.4rem 1.5rem;
    min-width: 0;
}
.card-title { font-size: 1.25rem; margin: .5rem 0 .4rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--coral); text-decoration: none; }
.card-meta { font-size: .85rem; color: var(--muted); margin-bottom: .6rem; }
.card-excerpt { font-size: .96rem; color: var(--ink); margin-bottom: 1rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    margin-top: auto;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .95rem;
}

.cat-chip {
    display: inline-block;
    padding: .2rem .65rem;
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.5;
}
.cat-chip:hover { text-decoration: none; filter: brightness(.95); }
.cat-chip.tone-0 { background: rgba(46, 196, 182, .16); color: #0F7A70; }
.cat-chip.tone-1 { background: rgba(255, 138, 92, .18); color: #B5461C; }
.cat-chip.tone-2 { background: rgba(11, 60, 93, .12); color: #0B3C5D; }
.cat-chip.tone-3 { background: #D6EBF6; color: #245A7A; }

.tag-chip {
    display: inline-block;
    padding: .2rem .65rem;
    margin: 0 .4rem .4rem 0;
    border-radius: 8px;
    background: var(--mist);
    color: #245A7A;
    font-size: .85rem;
    text-decoration: none;
}
.tag-chip:hover { background: var(--teal); color: #fff; text-decoration: none; }

.empty-note, .empty-box {
    padding: 1.6rem 1.8rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(11, 60, 93, 0.08);
}

/* ---------- Запись и страница ---------- */
.entry {
    background: #fff;
    border-radius: var(--radius);
    padding: 2.4rem 2.6rem;
    box-shadow: 0 4px 12px rgba(11, 60, 93, 0.08);
    margin-top: 1rem;
    min-width: 0;
}
.entry-head { margin-bottom: 1.4rem; }
.entry-cats { display: flex; flex-wrap: wrap; gap: .4rem; }
.entry-title { font-size: 3.2rem; margin: .6rem 0 .6rem; overflow-wrap: anywhere; }
.entry-meta { font-size: .9rem; color: var(--muted); display: flex; gap: 1rem; flex-wrap: wrap; }
.entry-thumb { margin: 0 0 1.6rem; border-radius: 12px; overflow: hidden; }
.entry-thumb img { display: block; width: 100%; height: auto; }
.entry-content { overflow-wrap: break-word; }
.entry-content img { border-radius: 12px; display: block; }
.entry-content h2 { font-size: 1.8rem; }
.entry-content h3 { font-size: 1.4rem; }
.entry-content pre { overflow-x: auto; background: var(--mist); padding: 1rem; border-radius: 12px; }
.entry-tags { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.page-links { margin-top: 1rem; }

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.8rem 0;
}
.post-nav > div { min-width: 0; max-width: 48%; }
.post-nav a { font-family: var(--font-head); font-weight: 700; }
.post-nav-next { text-align: right; margin-left: auto; }

/* ---------- Пагинация ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    margin: 2.6rem 0 0;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 .85rem;
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-head);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(11, 60, 93, 0.08);
    transition: background .2s, color .2s, transform .2s;
}
.pager a.page-numbers:hover { background: var(--teal); color: #fff; transform: translateY(-2px); text-decoration: none; }
.pager .page-numbers.current { background: var(--coral); color: #fff; }
.pager .page-numbers.dots { background: none; box-shadow: none; min-width: auto; padding: 0 .3rem; }

/* ---------- Сайдбар и виджеты ---------- */
.sidebar {
    background: var(--side);
    border-radius: var(--radius);
    padding: 1.8rem 1.6rem;
    margin-top: 1rem;
    color: var(--ink);
}
.sidebar .widget { margin-bottom: 2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.widget-title {
    position: relative;
    font-size: 1.2rem;
    margin: 0 0 1rem;
    padding-left: 1.1rem;
}
.widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .45em;
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--coral), var(--teal));
}
.sidebar .widget-title { color: var(--ink); }
.sidebar .widget, .sidebar .widget p { color: var(--ink); }
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: #0B3C5D; text-decoration: none; font-weight: 600; }
.sidebar .widget a:hover { color: var(--coral); text-decoration: underline; }
.sidebar .post-date, .sidebar .widget .post-date { display: block; font-size: .8rem; color: var(--muted); margin-top: .15rem; }

/* ---------- Поиск ---------- */
.search-form { display: flex; gap: .5rem; margin: 1rem 0; max-width: 520px; }
.search-field {
    flex: 1;
    min-width: 0;
    padding: .75rem 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    font: inherit;
    color: var(--ink);
    background: #fff;
}
.search-field:focus { outline: 2px solid var(--teal); outline-offset: 1px; }

/* ---------- 404 ---------- */
.lost-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 3rem 2.6rem;
    box-shadow: 0 4px 12px rgba(11, 60, 93, 0.08);
    margin-top: 1rem;
}
.lost-code {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 5rem;
    line-height: 1;
    margin: 0;
    background: linear-gradient(135deg, #0B3C5D, #2EC4B6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Комментарии ---------- */
.replies {
    margin-top: 2rem;
    background: #fff;
    border-radius: var(--radius);
    padding: 2.2rem 2.4rem;
    box-shadow: 0 4px 12px rgba(11, 60, 93, 0.08);
}
.reply-list, .reply-list .children { list-style: none; margin: 0; padding: 0; }
.reply-list .children { padding-left: 2rem; }
.reply-box { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.reply-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.reply-head img { border-radius: 50%; display: block; }
.reply-who { display: flex; flex-direction: column; }
.reply-author { font-family: var(--font-head); font-weight: 700; }
.reply-date { font-size: .8rem; color: var(--muted); }
.reply-wait { color: var(--muted); font-style: italic; }
.reply-actions a { font-size: .9rem; font-weight: 600; }
.comment-respond { margin-top: 1.6rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-weight: 600; margin-bottom: .3rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .7rem .9rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    font: inherit;
    color: var(--ink);
    background: var(--foam);
}
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }

/* ---------- Подвал ---------- */
.deep-footer {
    background: var(--deep);
    color: #C7DCE7;
    padding: 3.6rem 0 1.6rem;
    position: relative;
}
.deep-footer::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 3px;
    background: linear-gradient(90deg, #0B3C5D, #2EC4B6);
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}
.deep-footer .widget { margin-bottom: 1.4rem; color: #C7DCE7; }
.deep-footer .widget p, .deep-footer .textwidget { color: #C7DCE7; font-size: .95rem; }
.deep-footer .widget-title { color: #FFFFFF; }
.deep-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.deep-footer .widget li { padding: .3rem 0; }
.deep-footer .widget a { color: #FFB08F; text-decoration: none; }
.deep-footer .widget a:hover { color: var(--teal); text-decoration: underline; }
.deep-footer .post-date { color: #8FB0C2; font-size: .8rem; display: block; }
.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(201, 224, 236, .18);
    font-size: .85rem;
    color: #8FB0C2;
}
.footer-bottom p { margin: 0; }

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

.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.1rem 1.4rem;
    background: var(--head);
    color: #E3F1F8;
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(8, 44, 66, .35);
    border-top: 3px solid var(--teal);
}
.cookie-text { margin: 0; font-size: .92rem; color: #E3F1F8; min-width: 0; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    h1, .entry-title, .fp-hero-title { font-size: 2.4rem; }
    .page-title { font-size: 2.1rem; }
    .sec-title { font-size: 1.75rem; }

    .nav-toggle { display: inline-flex; }
    .main-nav { flex: 1 1 100%; display: none; }
    .main-nav.is-open { display: block; }
    .nav-list { flex-direction: column; gap: 0; padding: .4rem 0 .6rem; }
    .nav-list a { padding: .6rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
    .nav-list .sub-menu { position: static; display: block; background: transparent; padding: 0 0 0 1rem; }

    .layout-with-sidebar { display: block; }
    .layout-with-sidebar .content-area, .layout-with-sidebar .sidebar { width: 100%; }
    .layout-with-sidebar .sidebar { margin-top: 2.4rem; }
    .layout-single .content-area { width: 100%; }

    .fp-wrap { width: 100%; }
    .fp-hero-content { margin-left: 0; }
    .animal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card-grid--three, .layout-single .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fp-quote blockquote p { font-size: 1.6rem; }
    .fp-cta-art { flex-basis: 160px; }
    .fp-cta-art img { width: 160px; height: 160px; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    h1, .entry-title, .fp-hero-title { font-size: 1.9rem; }
    .sec-title { font-size: 1.5rem; }
    .brand-desc { display: none; }
    .brand-logo { width: 46px; height: 46px; }

    .fp-section { padding: 3rem 0; }
    .fp-hero { min-height: 460px; }
    .fp-hero-content { padding: 3rem 0; }
    .fp-hero-bubble { width: 110px; height: 110px; }
    .animal-grid, .card-grid, .card-grid--three, .layout-single .card-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-cols { grid-template-columns: minmax(0, 1fr); }

    .fp-quote { padding: 2.2rem 1.6rem 2rem 2.4rem; }
    .fp-quote::after { left: 1.1rem; top: 2rem; bottom: 2rem; }
    .fp-quote blockquote p { font-size: 1.3rem; }
    .fp-cta-inner { flex-direction: column; align-items: flex-start; padding: 1.8rem 1.4rem; }
    .fp-cta-art { flex-basis: auto; align-self: flex-end; }
    .fp-cta-art img { width: 120px; height: 120px; }

    .entry, .lost-box, .replies { padding: 1.6rem 1.3rem; }
    .sidebar { padding: 1.4rem 1.2rem; }
    .empty-note, .empty-box { padding: 1.2rem 1.2rem; }
    .search-form { flex-direction: column; }
    .cookie-banner { flex-direction: column; align-items: flex-start; padding: 1rem 1.2rem; }
    .post-nav { flex-direction: column; }
    .post-nav > div { max-width: 100%; }
    .post-nav-next { text-align: left; margin-left: 0; }
}
