/*
Theme Name: dds_jomga.ru
Author: Алина Камалова
Description: Тема городского гида по образовательному и семейному досугу: афиша кружков, секций, лекций, мастер-классов и выставок.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: afchelny
*/

:root {
    --bg: #F8F5FF;
    --bg-alt: #EFEAF5;
    --ink: #1E1A2E;
    --accent: #8B6FE8;
    --accent-deep: #6C4FC7;
    --accent-soft: #E2A9FF;
    --muted: #9A8FB0;
    --line: #D9D0E8;
    --footer-bg: #2A2342;
    --card-bg: #FFFFFF;
    --radius: 16px;
    --dots: radial-gradient(circle, rgba(139,111,232,.15) 1px, transparent 1px);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image: var(--dots);
    background-size: 40px 40px;
    background-attachment: fixed;
    color: var(--ink);
    font-family: "Source Sans Pro", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}

body::after {
    content: "";
    position: fixed;
    right: -60px;
    bottom: -80px;
    width: 460px;
    height: 460px;
    z-index: -1;
    pointer-events: none;
    opacity: .05;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%238B6FE8'/%3E%3Cstop offset='1' stop-color='%23E2A9FF'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M198 92c-34-28-78-42-124-38-16 1-28 15-27 31l9 168c1 16 15 28 31 27 40-3 79 9 108 33 2 2 5 3 8 3s6-1 8-3c29-24 68-36 108-33 16 1 30-11 31-27l9-168c1-16-11-30-27-31-46-4-90 10-124 38-3 2-7 2-10 0z'/%3E%3C/svg%3E");
}

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

h1, h2, h3, h4, h5 {
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    line-height: 1.18;
    letter-spacing: .04em;
    margin: 0 0 1rem;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: .05em;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.35rem;
}

p {
    margin: 0 0 1.1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent);
    transition: color .2s ease, border-bottom-color .2s ease, border-bottom-style .2s ease;
}

a:hover,
a:focus {
    color: var(--accent-deep);
    border-bottom-style: solid;
    border-bottom-color: var(--accent-deep);
}

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

/* ------- Заголовки секций: линия слева, текст со сдвигом ------- */

.sec-title {
    display: flex;
    align-items: center;
    font-size: 2rem;
    margin-bottom: 1.6rem;
}

.sec-title::before {
    content: "";
    flex: 0 0 auto;
    width: 56px;
    height: 2px;
    background: var(--accent);
    margin-right: 1rem;
}

.sec-sub {
    color: var(--muted);
    max-width: 62ch;
    margin-top: -.6rem;
}

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

.btn {
    display: inline-block;
    min-width: 170px;
    text-align: center;
    padding: .72rem 1.9rem;
    border-radius: 50px;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: .05em;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.btn:hover,
.btn:focus {
    transform: translateY(2px);
    background: var(--accent);
    color: #FFFFFF;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(139, 111, 232, .55);
}

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

.btn-fill:hover,
.btn-fill:focus {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    box-shadow: 0 0 15px rgba(139, 111, 232, .6);
}

.btn-light {
    border-color: #FFFFFF;
    color: #FFFFFF;
}

.btn-light:hover,
.btn-light:focus {
    background: #FFFFFF;
    color: var(--accent-deep);
    border-color: #FFFFFF;
    box-shadow: 0 0 15px rgba(255, 255, 255, .45);
}

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

.site-head {
    background: rgba(255, 255, 255, .6);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border-bottom: 1px solid var(--line);
}

.head-inner {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 1.3rem 0;
    flex-wrap: wrap;
}

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

.brand:hover {
    border: 0;
}

.brand-logo {
    max-height: 62px;
    width: auto;
    display: block;
}

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

.brand-name {
    display: block;
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: .06em;
    color: var(--ink);
    line-height: 1.35;
    max-height: 2.7em;
    overflow: hidden;
}

.brand-tagline {
    display: block;
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.45;
    max-height: 2.9em;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    padding: .55rem 1.1rem;
    border: 2px solid var(--accent);
    border-radius: 50px;
    background: transparent;
    color: var(--accent);
    font: inherit;
    font-size: .9rem;
    cursor: pointer;
}

.head-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.head-nav a {
    color: var(--ink);
    border-bottom: 1px dotted transparent;
    letter-spacing: .05em;
    font-weight: 600;
}

.head-nav a:hover,
.head-nav .current-menu-item > a {
    color: var(--accent);
    border-bottom-color: var(--accent);
    border-bottom-style: solid;
}

/* ------- Каркас страниц ------- */

.page-body {
    padding: 3rem 0 4.5rem;
}

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

.layout-single {
    display: block;
}

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

.layout-with-sidebar .content-area {
    min-width: 0;
}

.crumbs {
    font-size: .88rem;
    color: var(--muted);
    margin-bottom: 1.7rem;
    letter-spacing: .03em;
}

.crumbs a {
    color: var(--muted);
    border-bottom: 1px dotted var(--line);
}

.crumbs a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
    border-bottom-style: solid;
}

.crumbs-sep {
    color: var(--line);
    margin: 0 .25rem;
}

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

.sidebar {
    min-width: 0;
}

.sidebar .widget {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 6px 22px rgba(42, 35, 66, .06);
    padding: 1.5rem 1.5rem 1.3rem;
    margin-bottom: 1.6rem;
    color: var(--ink);
}

.sidebar .widget-title {
    font-size: 1.1rem;
    letter-spacing: .07em;
    color: var(--ink);
    margin-bottom: 1rem;
}

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

.sidebar .widget li {
    padding: .55rem 0 .55rem 1.1rem;
    position: relative;
    border-bottom: 1px solid var(--bg-alt);
    color: var(--ink);
}

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

.sidebar .widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.15rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-soft);
}

.sidebar .widget a {
    color: var(--ink);
    border-bottom: 1px dotted var(--line);
}

.sidebar .widget a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
    border-bottom-style: solid;
}

.sidebar .widget .post-date {
    display: block;
    font-size: .8rem;
    color: var(--muted);
}

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

.card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.6rem;
    transition: background .25s ease, border-color .25s ease;
}

.card:hover {
    background: var(--bg-alt);
    border-color: var(--accent-soft);
}

.card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    background: var(--bg-alt);
}

.card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 0;
}

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

.card-thumb-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(160deg, rgba(139, 111, 232, .18), rgba(226, 169, 255, .12));
    box-shadow: inset 0 0 22px 8px rgba(248, 245, 255, .55);
}

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

.card-title {
    font-size: 1.3rem;
    margin: 0 0 .6rem;
    position: relative;
}

.card-title a {
    color: var(--ink);
    border-bottom: 0;
}

.card:hover .card-title::before {
    content: "";
    position: absolute;
    left: -.95rem;
    top: .55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-soft);
}

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

.card-meta {
    font-size: .82rem;
    color: var(--muted);
    letter-spacing: .04em;
    margin-bottom: .8rem;
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}

.card-meta a {
    color: var(--muted);
    border-bottom: 1px dotted var(--line);
}

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

.card-excerpt {
    flex: 1;
    min-width: 0;
    color: #3E3752;
}

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

.card-more {
    margin-top: 1rem;
    align-self: flex-start;
}

/* Сетка карточек — миниатюра сверху */

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

.cards-grid .card {
    margin-bottom: 0;
}

.cards-grid .card-thumb-wrap {
    flex: none;
    width: 100%;
    position: static;
}

.cards-grid .card-thumb-wrap a {
    position: static;
}

.cards-grid .card-thumb-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
}

/* Список — миниатюра сбоку */

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

@media (max-width: 600px) {
    .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }

    .card-thumb-wrap a {
        position: static;
    }

    .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .cards-list .card {
        flex-direction: column;
    }
}

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 2.4rem 0 0;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 44px;
    text-align: center;
    padding: .5rem 1rem;
    border: 1px solid var(--line);
    border-radius: 50px;
    color: var(--ink);
    background: #FFFFFF;
    font-weight: 600;
    letter-spacing: .04em;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.pager .page-numbers:hover {
    transform: translateY(2px);
    background: var(--accent);
    color: #FFFFFF;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(139, 111, 232, .5);
}

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

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

.pager .page-numbers.dots:hover {
    transform: none;
    box-shadow: none;
    background: none;
    color: var(--muted);
}

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

.front-section {
    padding: 80px 0 0;
}

.front-section:last-of-type {
    padding-bottom: 80px;
}

.section-alt {
    background: var(--bg-alt);
    padding: 80px 0;
}

.dots-divider {
    display: block;
    text-align: center;
    margin: 40px 0;
    color: var(--line);
    letter-spacing: .8em;
    font-size: 1.6rem;
    line-height: 1;
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 26px 26px;
    background-color: #2A2342;
    background-image: linear-gradient(120deg, rgba(42, 35, 66, .88), rgba(108, 79, 199, .62));
}

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

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

.hero-inner {
    position: relative;
    z-index: 1;
    padding: 5.5rem 0 4.6rem;
}

.hero-body {
    display: flex;
    gap: 1.8rem;
    align-items: stretch;
    max-width: 780px;
}

.hero-rule {
    flex: 0 0 4px;
    background: var(--accent-soft);
    border-radius: 4px;
}

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

.hero h1 {
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.hero-lead {
    color: #E6DFF5;
    font-size: 1.12rem;
    max-width: 58ch;
}

.hero-search {
    margin-top: 1.8rem;
    max-width: 520px;
}

.hero-search .search-form {
    display: flex;
    gap: .6rem;
    background: rgba(255, 255, 255, .88);
    border-radius: 50px;
    padding: .35rem .35rem .35rem 1.3rem;
    border: 1px solid rgba(255, 255, 255, .5);
}

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

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

.search-field {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 50px;
    padding: .65rem 1.2rem;
    font: inherit;
    font-size: .95rem;
    color: var(--ink);
    background: #FFFFFF;
}

.hero-search .search-field {
    border: 0;
    background: transparent;
    padding: .55rem 0;
}

.search-field:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.search-submit {
    border: 0;
    border-radius: 50px;
    background: var(--accent);
    color: #FFFFFF;
    font: inherit;
    font-weight: 700;
    letter-spacing: .04em;
    padding: .6rem 1.6rem;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.search-submit:hover {
    transform: translateY(2px);
    background: var(--accent-deep);
    box-shadow: 0 0 15px rgba(139, 111, 232, .55);
}

/* Сетка афиши */

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

.bill-card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: background .25s ease, border-color .25s ease;
    min-width: 0;
}

.bill-card:hover {
    background: var(--bg-alt);
    border-color: var(--accent-soft);
}

.bill-cover {
    position: relative;
}

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

.bill-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(160deg, rgba(139, 111, 232, .2), rgba(226, 169, 255, .12));
    box-shadow: inset 0 0 22px 8px rgba(248, 245, 255, .5);
}

.date-sticker {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: #FFFFFF;
    color: var(--ink);
    padding: .5rem .85rem .8rem;
    text-align: center;
    line-height: 1.1;
    box-shadow: 0 6px 14px rgba(42, 35, 66, .22);
    clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 74% 88%, 60% 100%, 46% 88%, 32% 100%, 18% 88%, 4% 100%, 0 88%);
}

.date-sticker b {
    display: block;
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 1.05rem;
    letter-spacing: .06em;
    color: var(--accent-deep);
}

.date-sticker span {
    display: block;
    font-size: .68rem;
    letter-spacing: .12em;
    color: var(--muted);
    text-transform: uppercase;
}

.bill-body {
    flex: 1;
    min-width: 0;
    padding: 1.4rem 1.6rem 1.6rem;
}

.bill-body h3 {
    position: relative;
    margin-bottom: .5rem;
}

.bill-card:hover .bill-body h3::before {
    content: "";
    position: absolute;
    left: -.9rem;
    top: .55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-soft);
}

.bill-tag {
    display: inline-block;
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-deep);
    background: rgba(226, 169, 255, .28);
    border-radius: 50px;
    padding: .25rem .8rem;
    margin-bottom: .9rem;
}

.bill-body p {
    margin: 0;
    color: #3E3752;
    font-size: .96rem;
}

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

.road {
    position: relative;
    margin-top: 2.4rem;
    padding: .5rem 0;
}

.road::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background-image: linear-gradient(var(--accent-soft) 45%, transparent 0);
    background-size: 2px 12px;
    background-repeat: repeat-y;
}

.road-step {
    position: relative;
    width: 46%;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem 1.6rem;
    margin-bottom: 2rem;
    min-width: 0;
}

.road-step:nth-child(odd) {
    margin-right: auto;
}

.road-step:nth-child(even) {
    margin-left: auto;
}

.road-step h3 {
    margin-bottom: .4rem;
}

.road-step p {
    margin: 0;
    color: #3E3752;
    font-size: .96rem;
}

.road-num {
    display: inline-block;
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-size: .78rem;
    letter-spacing: .16em;
    color: var(--accent);
    margin-bottom: .5rem;
}

.road-step::after {
    content: "";
    position: absolute;
    top: 1.9rem;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg);
}

.road-step:nth-child(odd)::after {
    right: -8.9%;
}

.road-step:nth-child(even)::after {
    left: -8.9%;
}

/* Цитата */

.quote-plate {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 3.2rem 2.6rem;
    background-color: var(--accent);
    background-image: radial-gradient(circle, rgba(255, 255, 255, .28) 2px, transparent 2px), linear-gradient(135deg, #8B6FE8, #6C4FC7);
    background-size: 40px 40px, auto;
    color: #FFFFFF;
    display: flex;
    gap: 1.6rem;
    align-items: flex-start;
}

.quote-dash {
    flex: 0 0 auto;
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 5.6rem;
    line-height: .6;
    color: rgba(255, 255, 255, .75);
}

.quote-body {
    min-width: 0;
    margin-left: auto;
    max-width: 74%;
}

.quote-body p {
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 1.85rem;
    line-height: 1.35;
    letter-spacing: .03em;
    margin: 0 0 1rem;
}

.quote-author {
    font-size: .88rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .8);
}

.front-latest .cards-grid {
    margin-top: 2rem;
}

.front-actions {
    margin-top: 2rem;
}

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

.entry-head {
    margin-bottom: 1.6rem;
}

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

.entry-meta {
    font-size: .86rem;
    color: var(--muted);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.entry-meta a {
    color: var(--muted);
    border-bottom: 1px dotted var(--line);
}

.entry-thumb {
    margin: 0 0 1.8rem;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.entry-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

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

.entry-content h2 {
    margin-top: 2.2rem;
}

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

.entry-content img {
    display: block;
    border-radius: 12px;
}

.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 3px solid var(--accent);
    border-radius: 12px;
}

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

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

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

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

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

th {
    background: var(--bg-alt);
}

.entry-tags {
    margin-top: 1.8rem;
    font-size: .88rem;
    color: var(--muted);
}

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

.comments-area {
    margin-top: 3rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.9rem 1.9rem 1.6rem;
}

.comments-area h2 {
    font-size: 1.4rem;
}

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

.comment-list ol {
    list-style: none;
    padding-left: 1.5rem;
}

.comment-item {
    border-bottom: 1px solid var(--bg-alt);
    padding: 1rem 0;
}

.comment-head {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    margin-bottom: .3rem;
}

.comment-author {
    font-weight: 700;
    letter-spacing: .04em;
}

.comment-date,
.comment-hold {
    font-size: .82rem;
    color: var(--muted);
}

.comment-reply a {
    font-size: .85rem;
}

.comment-form label {
    display: block;
    font-size: .88rem;
    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: 12px;
    padding: .7rem 1rem;
    font: inherit;
    font-size: .95rem;
    background: #FFFFFF;
    color: var(--ink);
    margin-bottom: 1rem;
}

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

.comment-form .submit {
    border: 2px solid var(--accent);
    background: var(--accent);
    color: #FFFFFF;
    border-radius: 50px;
    padding: .7rem 1.9rem;
    font: inherit;
    font-weight: 700;
    letter-spacing: .05em;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.comment-form .submit:hover {
    transform: translateY(2px);
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    box-shadow: 0 0 15px rgba(139, 111, 232, .55);
}

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

.nf-plate {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.6rem 2.2rem;
    text-align: center;
}

.nf-plate .search-form {
    max-width: 460px;
    margin: 1.4rem auto;
}

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

.site-foot {
    background: var(--footer-bg);
    color: #DCD4EC;
    margin-top: 3rem;
    padding: 3.4rem 0 1.8rem;
}

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

.site-foot .widget {
    color: #DCD4EC;
    min-width: 0;
}

.site-foot .widget-title {
    color: #FFFFFF;
    font-size: 1.05rem;
    letter-spacing: .08em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.site-foot .widget-title::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--accent-soft);
    margin-right: .8rem;
    flex: 0 0 auto;
}

.site-foot .widget p {
    color: #CDC4E0;
    font-size: .95rem;
}

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

.site-foot .widget li {
    padding: .38rem 0;
}

.site-foot .widget a {
    color: #E3DBF3;
    border-bottom: 1px dotted rgba(226, 169, 255, .5);
}

.site-foot .widget a:hover {
    color: var(--accent-soft);
    border-bottom-color: var(--accent-soft);
    border-bottom-style: solid;
}

.site-foot .widget .post-date {
    display: block;
    color: #A99FC0;
    font-size: .8rem;
}

.foot-note {
    margin-top: 2.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(217, 208, 232, .18);
    font-size: .85rem;
    color: #A99FC0;
    line-height: 1.6;
}

/* ------- 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;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    background: rgba(42, 35, 66, .96);
    color: #E6DFF5;
    padding: 1rem 1.6rem;
    font-size: .9rem;
}

.cookie-banner p {
    margin: 0;
    max-width: 70ch;
}

.cookie-banner a {
    color: var(--accent-soft);
    border-bottom-color: var(--accent-soft);
}

.cookie-accept {
    border: 2px solid var(--accent-soft);
    background: transparent;
    color: var(--accent-soft);
    border-radius: 50px;
    padding: .5rem 1.6rem;
    font: inherit;
    font-weight: 700;
    letter-spacing: .05em;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.cookie-accept:hover {
    transform: translateY(2px);
    background: var(--accent-soft);
    color: var(--footer-bg);
    box-shadow: 0 0 15px rgba(226, 169, 255, .5);
}

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

@media (max-width: 960px) {
    h1 {
        font-size: 2.6rem;
    }

    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.4rem;
    }

    .layout-single .content-area {
        width: 100%;
    }

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

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

    .nav-toggle {
        display: block;
    }

    .head-nav {
        flex-basis: 100%;
        order: 3;
    }

    .head-nav[hidden] {
        display: none !important;
    }

    .head-nav ul {
        flex-direction: column;
        gap: .7rem;
        padding-top: .8rem;
    }

    .road::before {
        left: 7px;
        transform: none;
    }

    .road-step {
        width: 100%;
        margin-left: 34px;
    }

    .road-step:nth-child(odd),
    .road-step:nth-child(even) {
        margin-left: 34px;
        margin-right: 0;
    }

    .road-step:nth-child(odd)::after,
    .road-step:nth-child(even)::after {
        left: -40px;
        right: auto;
    }

    .quote-body {
        max-width: 100%;
    }
}

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

    h1 {
        font-size: 2.1rem;
    }

    .sec-title,
    h2 {
        font-size: 1.55rem;
    }

    .front-section {
        padding: 48px 0 0;
    }

    .front-section:last-of-type {
        padding-bottom: 48px;
    }

    .section-alt {
        padding: 48px 0;
    }

    .hero-inner {
        padding: 3.4rem 0 3rem;
    }

    .hero-search .search-form {
        border-radius: 18px;
        padding: .8rem;
        flex-wrap: wrap;
    }

    .hero-search .search-field {
        padding: .5rem .6rem;
    }

    .cards-grid,
    .bill-grid,
    .foot-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .quote-plate {
        padding: 2rem 1.4rem;
        flex-direction: column;
        gap: .4rem;
    }

    .quote-dash {
        font-size: 3.4rem;
    }

    .quote-body p {
        font-size: 1.35rem;
    }

    .card-body,
    .bill-body {
        padding: 1.2rem 1.2rem 1.3rem;
    }

    .comments-area,
    .nf-plate {
        padding: 1.4rem 1.2rem;
    }

    .sidebar .widget {
        padding: 1.2rem 1.2rem 1rem;
    }

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

    .cookie-banner {
        padding: 1rem 1.1rem;
        text-align: left;
    }
}
