/*
Theme Name: dds_haslizalizz.com
Author: Кристина Макарова
Description: Тема для информационного сайта о международной логистике и перевозках. Морская стилистика с журнальной сеткой.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: oceanlog
*/

:root {
    --bg: #F0F5FA;
    --bg-alt: #E6EEF7;
    --side: #EAF1F8;
    --deep: #13243B;
    --ink: #1A2A3A;
    --sea: #0077B6;
    --foam: #00B4D8;
    --muted: #5A6C7D;
    --line: #D3E0ED;
    --shell: min(92%, 1180px);
    --font-head: "Helvetica Neue", "Arial Narrow", Arial, "Segoe UI", sans-serif;
    --font-text: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 6px 6px, #D3E0ED 1px, transparent 1.2px),
        radial-gradient(circle at 18px 18px, #D3E0ED 1px, transparent 1.2px);
    background-size: 24px 24px, 24px 24px;
    color: var(--ink);
    font-family: var(--font-text);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: 0.012em;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    width: 460px;
    height: 460px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.05;
    background-repeat: no-repeat;
    background-position: top right;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%2300B4D8'/%3E%3Cstop offset='1' stop-color='%230077B6'/%3E%3C/linearGradient%3E%3Cg fill='url(%23g)'%3E%3Cpath d='M200 20 L226 174 L380 200 L226 226 L200 380 L174 226 L20 200 L174 174 Z'/%3E%3Cpath d='M200 78 a122 122 0 1 0 0.1 0 z m0 26 a96 96 0 1 1 -0.1 0 z'/%3E%3C/g%3E%3C/svg%3E");
}

.shell {
    width: var(--shell);
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

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

a {
    color: var(--sea);
    text-decoration: none;
    background-image: linear-gradient(var(--foam), var(--foam));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 1px;
    transition: background-size .28s ease, color .2s ease;
}

a:hover, a:focus {
    color: var(--foam);
    background-size: 100% 1px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.005em;
    margin: 0 0 .7em;
}

h1 { font-size: 3.8rem; letter-spacing: 0.01em; font-weight: 300; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.15em; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--deep);
    color: #fff;
    padding: .6rem 1rem;
    z-index: 99;
}
.skip-link:focus { left: 0; }

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

.btn,
.entry-content .wp-block-button__link,
input[type="submit"],
button[type="submit"] {
    display: inline-block;
    border: 0;
    border-radius: 0;
    background: var(--sea);
    color: #fff;
    font-family: var(--font-head);
    font-size: .93rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .85rem 1.6rem;
    cursor: pointer;
    background-image: none;
    transition: background-color .2s ease, padding .25s ease, color .2s ease;
}

.btn:hover,
.btn:focus,
input[type="submit"]:hover,
button[type="submit"]:hover {
    background: var(--foam);
    color: var(--deep);
    padding-left: 2.05rem;
    padding-right: 1.15rem;
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--sea);
    color: var(--sea);
}

.btn-ghost:hover, .btn-ghost:focus {
    background: var(--foam);
    border-color: var(--foam);
    color: var(--deep);
}

.btn-light {
    background: #fff;
    color: var(--deep);
}

/* ---------- Шапка ---------- */

.accent-bar {
    height: 4px;
    width: 100%;
    background: var(--foam);
}

.site-header {
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 5;
}

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

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

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

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ink);
    letter-spacing: .01em;
}

.brand-desc {
    display: block;
    font-size: .8rem;
    line-height: 1.45;
    color: var(--muted);
    margin-top: .3rem;
    max-width: 44ch;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--sea);
    color: var(--sea);
    padding: .55rem .9rem;
    font-family: var(--font-head);
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
}

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

.main-nav a {
    font-family: var(--font-head);
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--ink);
}

.main-nav .current-menu-item > a { color: var(--sea); }

/* ---------- Общая раскладка ---------- */

.site-main { padding: 2.8rem 0 4rem; position: relative; z-index: 1; }

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

.layout-with-side {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 3.2rem;
    align-items: start;
}

@media (max-width: 960px) {
    .layout-with-side { grid-template-columns: minmax(0, 1fr); }
    .layout-solo { width: 100%; }
}

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

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

.trail {
    font-size: .84rem;
    color: var(--muted);
    letter-spacing: .02em;
    margin-bottom: 1.6rem;
}

.trail a { color: var(--muted); }
.trail a:hover { color: var(--foam); }
.trail-sep { color: var(--foam); margin: 0 .35rem; }

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

.sec-title {
    position: relative;
    padding-left: 4.5rem;
    font-size: 1.85rem;
    margin-bottom: 1.8rem;
}

.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .72em;
    width: 2.8rem;
    height: 4px;
    background: var(--sea);
}

.sec-lead {
    color: var(--muted);
    max-width: 68ch;
    margin-bottom: 2rem;
}

/* ---------- Разделитель «эхолот» ---------- */

.wave-sep {
    width: 132px;
    height: 16px;
    margin: 3.4rem auto;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 16'%3E%3Cpolyline points='0,12 16,12 26,4 36,12 52,12 62,4 72,12 88,12 98,4 108,12 132,12' fill='none' stroke='%235A6C7D' stroke-width='1.4'/%3E%3C/svg%3E");
}

/* ---------- Главная: секции ---------- */

.front-wrap {
    width: min(85%, 1240px);
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

@media (max-width: 960px) {
    .front-wrap { width: 92%; }
}

.front-section { padding: 3.4rem 0; }
.front-section.is-alt {
    background: var(--bg-alt);
    padding: 3.4rem 2.4rem;
}

/* Блок 1 — Hero */

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 5rem 3rem;
    background-color: var(--deep);
    background-image: linear-gradient(120deg, rgba(19, 36, 59, .88) 0%, rgba(0, 119, 182, .72) 55%, rgba(0, 180, 216, .55) 100%);
    margin-top: 1rem;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(120deg, rgba(19, 36, 59, .9) 0%, rgba(0, 119, 182, .74) 58%, rgba(0, 180, 216, .5) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 46rem;
}

.hero-kicker {
    font-family: var(--font-head);
    font-size: .82rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #9FE0F2;
    margin-bottom: 1.4rem;
}

.hero h1 {
    color: #fff;
    font-size: 3.8rem;
    font-weight: 300;
    letter-spacing: .015em;
    margin-bottom: 1rem;
}

.hero-sub {
    font-size: 1.22rem;
    color: rgba(255, 255, 255, .88);
    margin-bottom: 1rem;
}

.hero-text {
    color: rgba(255, 255, 255, .72);
    max-width: 42rem;
}

.hero-contact {
    margin-top: 2.4rem;
    display: inline-block;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .3);
    padding: 1.1rem 1.6rem;
}

.hero-contact-label {
    display: block;
    font-size: .76rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #9FE0F2;
    margin-bottom: .3rem;
}

.hero-contact a {
    color: #fff;
    font-family: var(--font-head);
    font-size: 1.15rem;
    letter-spacing: .03em;
}

.hero-contact a:hover { color: var(--foam); }

/* Блок 2 — Таймлайн */

.tl { margin-top: .5rem; }

.tl-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1.35fr);
    align-items: stretch;
}

.tl-stage {
    text-align: right;
    padding: 0 0 2.6rem;
    min-width: 0;
}

.tl-num {
    display: block;
    font-size: .78rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .3rem;
}

.tl-name {
    font-family: var(--font-head);
    font-size: 1.28rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.25;
}

.tl-axis {
    position: relative;
}

.tl-axis::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--muted);
    transform: translateX(-50%);
}

.tl-row:first-child .tl-axis::before { top: .55rem; }
.tl-row:last-child .tl-axis::before { bottom: auto; height: .6rem; }

.tl-dot {
    position: absolute;
    left: 50%;
    top: .4rem;
    width: 13px;
    height: 13px;
    background: var(--foam);
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px var(--bg);
}

.tl-desc {
    padding: 0 0 2.6rem 0;
    color: var(--muted);
    min-width: 0;
}

.is-alt .tl-dot { box-shadow: 0 0 0 4px var(--bg-alt); }

@media (max-width: 600px) {
    .tl-row { grid-template-columns: 26px minmax(0, 1fr); }
    .tl-stage { grid-column: 2; text-align: left; padding-bottom: .5rem; }
    .tl-axis { grid-column: 1; grid-row: 1 / span 2; }
    .tl-desc { grid-column: 2; }
}

/* Блок 3 — Цитата */

.pull {
    position: relative;
    padding: 3.6rem 2.6rem 3.6rem 6.5rem;
    background: var(--bg-alt);
}

.pull::before {
    content: "\201C";
    position: absolute;
    left: 1.4rem;
    top: 1.2rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 9rem;
    line-height: 1;
    color: var(--sea);
}

.pull blockquote {
    margin: 0;
    font-family: var(--font-head);
    font-size: 2.05rem;
    line-height: 1.34;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.005em;
}

.pull cite {
    display: block;
    margin-top: 1.4rem;
    font-style: normal;
    font-size: .85rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Блок 4 — Статистика */

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
    padding: 1.2rem 1.4rem;
    text-align: center;
    border-left: 1px dashed var(--line);
    min-width: 0;
}

.stat:first-child { border-left: 0; }

.stat-num {
    display: block;
    font-family: var(--font-head);
    font-size: 3.1rem;
    font-weight: 300;
    line-height: 1;
    color: var(--sea);
    letter-spacing: .01em;
}

.stat-label {
    display: block;
    margin-top: .9rem;
    font-size: .86rem;
    line-height: 1.5;
    color: var(--ink);
}

@media (max-width: 600px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.6rem; }
    .stat:nth-child(odd) { border-left: 0; }
}

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

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

@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: minmax(0, 1fr); } }

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

.card {
    display: flex;
    flex-direction: column;
    background: var(--side);
    border-radius: 0;
    overflow: hidden;
    min-width: 0;
    box-shadow: 0 0 0 1px rgba(0, 119, 182, .05), 0 8px 26px rgba(26, 42, 58, .07);
    transition: background-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.card:hover {
    background: #FBFDFF;
    box-shadow: 0 0 0 1px rgba(0, 180, 216, .18), 0 14px 34px rgba(26, 42, 58, .1);
    transform: translateY(-3px);
}

.card-thumb-wrap {
    position: static;
    min-width: 0;
}

.card-thumb {
    display: block;
    background-image: none;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 20px));
}

.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.6rem 1.7rem;
    min-width: 0;
}

.card-title {
    font-size: 1.22rem;
    margin: 0 0 .55rem;
    position: relative;
}

.card-title a {
    color: var(--ink);
    background-image: none;
}

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

.card-title::after {
    content: "";
    display: block;
    width: 3.2rem;
    height: 2px;
    margin-top: .7rem;
    background: var(--foam);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.card:hover .card-title::after { transform: scaleX(1); }

.post-meta {
    font-size: .8rem;
    color: var(--muted);
    letter-spacing: .04em;
    margin-bottom: .8rem;
}

.post-meta a { color: var(--muted); }
.meta-sep { color: var(--foam); margin: 0 .3rem; }

.card-excerpt {
    color: var(--muted);
    font-size: .95rem;
    margin-bottom: 1.2rem;
}

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

.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-family: var(--font-head);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--sea);
}

/* Горизонтальная карточка в ленте */

.card-list .card { flex-direction: row; }

.card-list .card-thumb-wrap {
    flex: 0 0 300px;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.card-list .card-thumb {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    clip-path: none;
}

.card-list .card-thumb img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    display: block;
}

@media (max-width: 600px) {
    .card-list .card { flex-direction: column; }
    .card-list .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .card-list .card-thumb { position: static; }
    .card-list .card-thumb img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* ---------- Записи и страницы ---------- */

.entry-header { margin-bottom: 1.8rem; }
.entry-title { font-size: 2.6rem; }

.entry-thumb {
    margin: 0 0 2rem;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 26px));
}

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

.entry-content { font-size: 1.02rem; }

.entry-content h2 {
    font-size: 1.75rem;
    margin-top: 2.2rem;
    position: relative;
    padding-left: 4.5rem;
}

.entry-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .72em;
    width: 2.8rem;
    height: 4px;
    background: var(--sea);
}

.entry-content h3 { margin-top: 1.9rem; }

.entry-content ul, .entry-content ol { padding-left: 0; margin: 0 0 1.4em; }
.entry-content ul { list-style: none; }
.entry-content ol { padding-left: 1.4em; }

.entry-content ul li {
    position: relative;
    padding-left: 1.9rem;
    margin-bottom: .6rem;
}

.entry-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 11px;
    height: 11px;
    background: var(--sea);
    clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
}

.entry-content ol li { margin-bottom: .6rem; }

.entry-content blockquote {
    margin: 2rem 0;
    padding: 1.8rem 2rem;
    background: linear-gradient(135deg, var(--sea), var(--deep));
    color: #fff;
    font-size: 1.12rem;
}

.entry-content blockquote p { margin-bottom: 0; }
.entry-content blockquote a { color: #9FE0F2; }

.entry-content img { display: block; height: auto; }

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8rem 0;
    border: 1px solid var(--muted);
    font-size: .95rem;
}

.entry-content th, .entry-content td {
    border: 1px solid var(--muted);
    padding: .7rem .9rem;
    text-align: left;
}

.entry-content th { background: var(--bg-alt); font-family: var(--font-head); }

.entry-content code {
    background: var(--bg-alt);
    padding: .1em .35em;
    font-size: .92em;
}

.entry-content pre {
    background: var(--deep);
    color: #E4F1F8;
    padding: 1.2rem;
    overflow-x: auto;
}

.entry-tags {
    margin-top: 2.2rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    font-size: .88rem;
    color: var(--muted);
}

.post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
    margin-top: 2.4rem;
}

.post-nav-item {
    background: var(--side);
    padding: 1.2rem 1.4rem;
    min-width: 0;
}

.post-nav-item span {
    display: block;
    font-size: .76rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .4rem;
}

.post-nav-item a { color: var(--ink); font-family: var(--font-head); font-weight: 600; }
.post-nav-item a:hover { color: var(--sea); }

@media (max-width: 600px) { .post-nav { grid-template-columns: minmax(0, 1fr); } }

.page-intro {
    font-size: .84rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .6rem;
}

/* ---------- Сайдбар ---------- */

.sidebar {
    background: var(--side);
    padding: 1.8rem 1.6rem;
    min-width: 0;
    color: var(--ink);
}

.sidebar .widget + .widget { margin-top: 2rem; }

.sidebar .widget-title {
    font-size: 1.1rem;
    color: var(--ink);
    position: relative;
    padding-left: 2.4rem;
    margin-bottom: 1rem;
}

.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .68em;
    width: 1.6rem;
    height: 3px;
    background: var(--sea);
}

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

.sidebar li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: .7rem;
    line-height: 1.5;
    color: var(--ink);
}

.sidebar li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .58em;
    width: 9px;
    height: 9px;
    background: var(--foam);
    clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
}

.sidebar a { color: var(--ink); }
.sidebar a:hover { color: var(--sea); }
.sidebar .post-date { display: block; font-size: .78rem; color: var(--muted); }
.sidebar p { color: var(--ink); }

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 2.6rem;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 44px;
    text-align: center;
    padding: .6rem .85rem;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: .9rem;
    background-image: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.pager a.page-numbers:hover {
    background: var(--foam);
    border-color: var(--foam);
    color: var(--deep);
}

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

.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

/* ---------- Поиск ---------- */

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

.search-form .search-label {
    flex: 1;
    min-width: 0;
    display: block;
}

.search-form .search-label span {
    position: absolute;
    left: -9999px;
}

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

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


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

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

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

.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .children { list-style: none; padding-left: 1.6rem; }

.comment-item { margin-bottom: 1.2rem; }

.comment-inner {
    background: var(--side);
    padding: 1.3rem 1.5rem;
}

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

.comment-author { font-family: var(--font-head); font-weight: 700; }
.comment-date { font-size: .8rem; color: var(--muted); }
.comment-text p { margin-bottom: .6em; }
.comment-hold { font-size: .85rem; color: var(--muted); }

.comment-actions a {
    font-size: .8rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-family: var(--font-head);
}

.comment-form label {
    display: block;
    font-size: .85rem;
    color: var(--muted);
    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 var(--line);
    border-radius: 0;
    background: #fff;
    padding: .7rem .9rem;
    font-family: var(--font-text);
    font-size: .95rem;
    color: var(--ink);
}

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

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

.site-footer {
    background: var(--deep);
    color: #C6D6E4;
    padding: 3.4rem 0 1.6rem;
    position: relative;
    z-index: 1;
}

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

@media (max-width: 960px) { .footer-cols { grid-template-columns: minmax(0, 1fr); } }

.site-footer .widget-title {
    color: #fff;
    font-size: 1.05rem;
    position: relative;
    padding-left: 2.4rem;
    margin-bottom: 1rem;
}

.site-footer .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .68em;
    width: 1.6rem;
    height: 3px;
    background: var(--foam);
}

.site-footer p, .site-footer li { color: #C6D6E4; }
.site-footer a { color: #E4F1F8; }
.site-footer a:hover { color: var(--foam); }

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

.site-footer li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: .6rem;
    line-height: 1.5;
}

.site-footer li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .58em;
    width: 9px;
    height: 9px;
    background: var(--foam);
    clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
}

.footer-bottom {
    margin-top: 2.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, .14);
    font-size: .84rem;
    color: #8EA6BC;
}

/* ---------- 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;
    background: var(--deep);
    color: #E4F1F8;
    padding: 1.1rem 1.6rem;
    border-top: 4px solid var(--foam);
    font-size: .9rem;
}

.cookie-banner p { margin: 0; max-width: 70ch; }
.cookie-banner a { color: var(--foam); }

/* ---------- 404 ---------- */

.notfound { text-align: center; padding: 2rem 1.6rem 3rem; }
.notfound .code {
    font-family: var(--font-head);
    font-size: 6rem;
    font-weight: 300;
    color: var(--sea);
    line-height: 1;
}
.notfound .search-form { max-width: 460px; margin: 1.8rem auto; }

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

@media (max-width: 960px) {
    h1 { font-size: 2.6rem; }
    .hero h1 { font-size: 2.6rem; }
    .entry-title { font-size: 2rem; }
    .pull blockquote { font-size: 1.6rem; }

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

    .main-nav {
        flex-basis: 100%;
        display: none;
    }

    .main-nav.is-open { display: block; }

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

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1, .hero h1 { font-size: 2.1rem; }
    h2 { font-size: 1.6rem; }
    .sec-title { font-size: 1.5rem; padding-left: 3.4rem; }
    .sec-title::before { width: 2rem; }
    .entry-content h2 { padding-left: 3.4rem; font-size: 1.45rem; }
    .entry-content h2::before { width: 2rem; }

    .hero { padding: 3rem 1.4rem; }
    .hero-contact { padding: .9rem 1.1rem; }

    .front-section { padding: 2.4rem 0; }
    .front-section.is-alt { padding: 2.4rem 1.4rem; }

    .pull { padding: 4.6rem 1.4rem 2.4rem; }
    .pull::before { font-size: 6rem; left: 1rem; top: .6rem; }
    .pull blockquote { font-size: 1.35rem; }

    .stat-num { font-size: 2.4rem; }

    .sidebar { padding: 1.4rem 1.2rem; }
    .cookie-banner { padding: 1rem 1.2rem; }
    .notfound .code { font-size: 4rem; }
}
