/*
Theme Name: dds_alexanderkiselev.ru
Author: Надежда Егорова
Description: Информационная тема о свадебной фотографии: свет, тайминг, живые кадры. Материалы о подготовке пары, расписании дня, выборе локации и естественной обработке.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: akf
*/

:root {
    --ink: #2b2622;
    --ink-soft: #6b6259;
    --paper: #faf6f1;
    --paper-2: #f2ebe2;
    --card: #ffffff;
    --rose: #b98a80;
    --rose-deep: #9c6b62;
    --line: #e4dacd;
    --gold: #c9a86a;
    --dark: #29231f;
    --dark-2: #342c27;
    --shadow: 0 8px 30px rgba(60, 45, 38, 0.08);
    --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Georgia", "Times New Roman", serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.7;
    font-size: 17px;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: "Georgia", "Playfair Display", serif;
    line-height: 1.25;
    color: var(--ink);
    font-weight: 600;
    letter-spacing: 0.01em;
}

h1 { font-size: 2.2rem; margin: 0 0 0.6em; }
h2 { font-size: 1.7rem; margin: 0 0 0.7em; }
h3 { font-size: 1.25rem; margin: 0 0 0.5em; }

p { margin: 0 0 1.1em; }

a { color: var(--rose-deep); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ink); }

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

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

/* ---------- Header ---------- */
.site-header {
    background: var(--card);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 1.4rem 0;
    flex-wrap: wrap;
    min-width: 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}
.brand-logo, .brand-svg { flex: 0 0 auto; display: block; }
.brand-svg { width: 52px; height: 52px; }
.brand-text { min-width: 0; }
.brand-title {
    font-family: "Georgia", serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
    display: block;
}
.brand-title a { color: inherit; }
.brand-desc {
    font-size: 0.82rem;
    color: var(--ink-soft);
    margin-top: 0.25rem;
    line-height: 1.4;
}
.main-nav { margin-left: auto; min-width: 0; }
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.5rem 0.7rem;
    cursor: pointer;
    font-size: 1rem;
    color: var(--ink);
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.4rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.main-nav a {
    color: var(--ink);
    font-size: 0.95rem;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: var(--rose-deep);
    border-bottom-color: var(--rose);
}

/* ---------- Layout ---------- */
.site-main { padding: 2.6rem 0 3rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 3%;
    align-items: start;
}
.layout-single .content-area,
.narrow { width: 85%; margin-inline: auto; }
.content-area { min-width: 0; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin: 0 0 1.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--line);
}
.breadcrumbs a { color: var(--rose-deep); }
.breadcrumbs .sep { margin: 0 0.4rem; color: var(--line); }

/* ---------- Cards ---------- */
.card-list { display: grid; gap: 1.6rem; }
.card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.card-thumb-wrap {
    flex: 0 0 auto;
    overflow: hidden;
    display: block;
}
.card-thumb-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.card:hover .card-thumb-wrap img { transform: scale(1.04); }
.card-body {
    flex: 1;
    padding: 1.3rem 1.4rem 1.5rem;
    min-width: 0;
}
.card-title { font-size: 1.25rem; margin: 0 0 0.5rem; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--rose-deep); }
.card-meta {
    font-size: 0.78rem;
    color: var(--ink-soft);
    margin-bottom: 0.7rem;
    letter-spacing: 0.02em;
}
.card-excerpt { color: var(--ink-soft); font-size: 0.95rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    display: inline-block;
    margin-top: 0.7rem;
    font-size: 0.9rem;
    color: var(--rose-deep);
    border-bottom: 1px solid var(--rose);
    padding-bottom: 2px;
}

/* ---------- Sidebar ---------- */
.sidebar { min-width: 0; }
.widget {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.6rem;
    color: var(--ink);
}
.widget-title {
    font-size: 1.05rem;
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin-bottom: 0.7rem; padding-bottom: 0.7rem; border-bottom: 1px dashed var(--line); }
.widget li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.widget a { color: var(--rose-deep); }
.widget a:hover { color: var(--ink); }
.widget .post-date { display: block; font-size: 0.75rem; color: var(--ink-soft); margin-top: 0.2rem; }

/* ---------- Single / Page content ---------- */
.entry-header { margin-bottom: 1.4rem; }
.entry-meta { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 0.4rem; }
.featured-media { margin: 0 0 1.6rem; border-radius: var(--radius); overflow: hidden; }
.featured-media img { width: 100%; display: block; }
.entry-content { font-size: 1.02rem; }
.entry-content img { border-radius: 8px; display: block; margin: 1.4rem 0; }
.entry-content h2 { margin-top: 1.8rem; }
.entry-content blockquote {
    margin: 1.6rem 0;
    padding: 1.2rem 1.4rem;
    background: var(--paper-2);
    border-left: 4px solid var(--rose);
    border-radius: 8px;
    font-style: italic;
    color: var(--ink);
}
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li { margin-bottom: 0.4rem; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
    border: 1px solid var(--line);
}
th, td { border: 1px solid var(--line); padding: 0.7rem 0.9rem; text-align: left; }
th { background: var(--paper-2); }

/* ---------- Front page ---------- */
.front-section { padding: 3rem 0; }
.front-section + .front-section { border-top: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2rem; }
.section-head p { color: var(--ink-soft); }
.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rose-deep);
    margin-bottom: 0.6rem;
}

/* slider hero */
.hero-slider {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 0.5rem;
    background: var(--dark);
}
.slides { position: relative; }
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
}
.slide.is-active { position: relative; opacity: 1; }
.slide img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    display: block;
}
.slide-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 2rem 2.2rem;
    background: linear-gradient(to top, rgba(30,24,20,0.78), rgba(30,24,20,0));
    color: #fff;
}
.slide-caption h2 { color: #fff; margin: 0 0 0.3rem; font-size: 1.6rem; }
.slide-caption p { color: rgba(255,255,255,0.88); margin: 0; font-size: 0.98rem; }
.slider-dots {
    position: absolute;
    bottom: 1rem; right: 1.4rem;
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}
.slider-dots button {
    width: 11px; height: 11px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 0;
}
.slider-dots button.is-active { background: #fff; }
.slider-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(30,24,20,0.4);
    color: #fff;
    border: none;
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 3;
}
.slider-arrow:hover { background: rgba(30,24,20,0.7); }
.slider-arrow.prev { left: 1rem; }
.slider-arrow.next { right: 1rem; }

/* text + illustration */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.4rem;
    align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img, .split-media svg {
    width: 100%;
    border-radius: var(--radius);
    display: block;
    box-shadow: var(--shadow);
}
.split-text h2 { text-align: left; }

/* steps */
.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
    counter-reset: step;
}
.step {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem 1.4rem;
    position: relative;
    min-width: 0;
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--rose);
    color: #fff;
    font-family: Georgia, serif;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}
.step h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.gallery-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-grid img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.gallery-grid figure:hover img { transform: scale(1.05); }

/* latest posts on front */
.front-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }

/* CTA */
.fs-cta {
    background: var(--dark);
    color: #fff;
    padding: 2.8rem 2.4rem;
    border-radius: var(--radius);
    text-align: center;
}
.fs-cta h2 { color: #fff; }
.fs-cta p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 1.4rem; }
.btn {
    display: inline-block;
    padding: 0.85rem 1.8rem;
    background: var(--rose);
    color: #fff;
    border-radius: 40px;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}
.btn:hover { background: var(--rose-deep); color: #fff; }

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2.4rem;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    color: var(--ink);
    font-size: 0.92rem;
}
.pagination a.page-numbers:hover { border-color: var(--rose); color: var(--rose-deep); }
.pagination .page-numbers.current {
    background: var(--rose);
    border-color: var(--rose);
    color: #fff;
}
.pagination .page-numbers.dots { border: none; background: none; }

/* ---------- Search form ---------- */
.search-form { display: flex; gap: 0.5rem; }
.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
}
.search-form button {
    padding: 0.65rem 1.2rem;
    background: var(--rose);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
}
.search-form button:hover { background: var(--rose-deep); }

/* ---------- Comments ---------- */
.comments-area { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list li { margin-bottom: 1.4rem; }
.comment-body {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem 1.3rem;
}
.comment-meta { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 0.4rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
}
.comment-form input[type="submit"] {
    padding: 0.75rem 1.6rem;
    background: var(--rose);
    color: #fff;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.95rem;
}

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: 2rem 0; }
.error-404 .big { font-size: 5rem; color: var(--rose); font-family: Georgia, serif; margin: 0; }
.error-404 .search-form { max-width: 420px; margin: 1.6rem auto 0; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--dark);
    color: #d9cfc4;
    padding: 3rem 0 1.4rem;
    margin-top: 2rem;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}
.footer-cols .widget {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: #d9cfc4;
}
.footer-cols .widget-title {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.15);
}
.footer-cols .widget a { color: #e6b9ae; }
.footer-cols .widget a:hover { color: #fff; }
.footer-cols .widget li {
    border-bottom-color: rgba(255,255,255,0.1);
    color: #d9cfc4;
}
.footer-cols .widget .post-date { color: #a99e92; }
.footer-cols p { color: #d9cfc4; }
.site-copyright {
    text-align: center;
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 0.82rem;
    color: #a99e92;
}

/* ---------- Cookie banner ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    max-width: 960px;
    margin: 0 auto;
    background: var(--dark-2);
    color: #eee;
    border-radius: var(--radius);
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 999;
    flex-wrap: wrap;
}
.cookie-banner p { margin: 0; font-size: 0.9rem; flex: 1; min-width: 220px; color: #eee; }
.cookie-banner a { color: #e6b9ae; }
.cookie-banner button {
    padding: 0.6rem 1.4rem;
    background: var(--rose);
    color: #fff;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
}
.cookie-banner button:hover { background: var(--rose-deep); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: 1fr; }
    .sidebar { margin-top: 2rem; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .front-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.5rem; }
}

@media (max-width: 600px) {
    .nav-toggle { display: block; }
    .main-nav { margin-left: auto; }
    .main-nav ul {
        display: none;
        position: absolute;
        left: 0; right: 0;
        top: 100%;
        flex-direction: column;
        background: var(--card);
        border-top: 1px solid var(--line);
        padding: 1rem 5%;
        gap: 0.9rem;
        z-index: 50;
    }
    .site-header { position: relative; }
    .main-nav.open ul { display: flex; }
    .layout-single .content-area, .narrow { width: 100%; }
    .split { grid-template-columns: 1fr; }
    .split.reverse .split-media { order: 0; }
    .steps, .front-posts, .gallery-grid { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr; gap: 1.8rem; }
    .slide img { height: 300px; }
    .slide-caption { padding: 1.3rem 1.4rem; }
    .slide-caption h2 { font-size: 1.25rem; }
    .fs-cta { padding: 2rem 1.4rem; }
    .front-section { padding: 2.2rem 0; }
}
