/*
Theme Name: dds_nisso-international.com
Author: Вера Соколова
Description: Информационная тема о работе с образом — причёски, макияж, цвет и свет, ретушь портретов и подготовка к съёмке. Адаптивная вёрстка, спокойная типографика, аккуратные карточки записей.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: nisso
*/

/* ---------- Переменные ---------- */
:root {
    --bg: #faf5f0;
    --surface: #ffffff;
    --surface-soft: #f3ece4;
    --ink: #2c2420;
    --muted: #6f6259;
    --accent: #a8546a;
    --accent-deep: #843f53;
    --gold: #c19a5b;
    --line: #e7ddd2;
    --footer-bg: #29212a;
    --footer-ink: #e9ddd6;
    --footer-muted: #b6a8a2;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(44, 36, 32, 0.08);
    --shell: min(92%, 1180px);
}

/* ---------- База ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    line-height: 1.25;
    color: var(--ink);
    margin: 0 0 0.6em;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--accent-deep); border-color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: #fff; }

/* ---------- Шапка ---------- */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 0;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}
.brand__logo { display: block; flex: 0 0 auto; line-height: 0; }
.brand__logo img { display: block; width: 56px; height: 56px; object-fit: contain; }
.brand__logo--mark svg { display: block; width: 56px; height: 56px; }
.brand__text { min-width: 0; }
.brand__name {
    display: block;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.12rem;
    color: var(--ink);
    line-height: 1.25;
}
.brand__name:hover { text-decoration: none; color: var(--accent-deep); }
.brand__desc {
    margin: 0.15rem 0 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--muted);
    max-width: 46ch;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.5rem 0.9rem;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 0.9rem;
    color: var(--ink);
    cursor: pointer;
}
.nav-toggle span {
    width: 18px; height: 2px; background: var(--ink);
    position: relative; display: inline-block;
}
.nav-toggle span::before,
.nav-toggle span::after {
    content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.site-nav .menu {
    list-style: none;
    display: flex;
    gap: 1.4rem;
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 0.98rem;
}
.site-nav .menu a {
    color: var(--ink);
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
}
.site-nav .menu a:hover { color: var(--accent-deep); border-bottom-color: var(--accent); text-decoration: none; }
.site-nav .menu .current-menu-item > a { color: var(--accent-deep); border-bottom-color: var(--accent); }

/* ---------- Основной блок ---------- */
.site-main { padding: 2.2rem 0 3rem; }

.breadcrumbs {
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.4rem;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent-deep); }
.breadcrumbs .sep { margin: 0 0.35rem; color: var(--line); }

/* ---------- Раскладки ---------- */
.layout-single { display: block; }
.layout-single .content-area {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 29fr);
    gap: 2.6rem;
    align-items: start;
}
.content-area { min-width: 0; }

/* ---------- Заголовок страницы ---------- */
.page-head { margin-bottom: 1.6rem; }
.page-head h1 { margin-bottom: 0.3rem; }
.page-head .page-head__sub { color: var(--muted); margin: 0; }

/* ---------- Одиночная запись / страница ---------- */
.entry {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 2.2rem;
    box-shadow: var(--shadow);
}
.entry__thumb { margin: 0 0 1.4rem; border-radius: 10px; overflow: hidden; }
.entry__thumb img { display: block; width: 100%; height: auto; }
.entry__meta {
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1rem;
}
.entry__content { min-width: 0; }
.entry__content img { border-radius: 8px; }
.entry__content h2 { margin-top: 1.6rem; }
.entry__content ul, .entry__content ol { padding-left: 1.3rem; }
.entry__content blockquote {
    margin: 1.4rem 0;
    padding: 1.1rem 1.4rem;
    background: var(--surface-soft);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    font-style: italic;
    color: var(--ink);
}

/* ---------- Карточки записей ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.6rem;
}
.card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    min-width: 0;
}
.card-thumb { display: block; overflow: hidden; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.card:hover .card-thumb img { transform: scale(1.04); }
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.2rem 1.3rem 1.4rem;
    min-width: 0;
}
.card-title { font-size: 1.15rem; margin: 0 0 0.5rem; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent-deep); text-decoration: none; }
.card-meta {
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.6rem;
}
.card-excerpt { color: var(--muted); font-size: 0.95rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    margin-top: auto;
    padding-top: 0.9rem;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ---------- Пагинация ---------- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 2.2rem;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.7rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    font-size: 0.92rem;
    text-decoration: none;
}
.pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent-deep); }
.pagination .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

/* ---------- Сайдбар / виджеты ---------- */
.sidebar { min-width: 0; }
.widget {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.3rem 1.4rem;
    margin-bottom: 1.5rem;
}
.widget:last-child { margin-bottom: 0; }
.widget-title {
    font-size: 1.05rem;
    margin: 0 0 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--surface-soft);
    color: var(--ink);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: none; }
.widget a { color: var(--accent-deep); }
.widget a:hover { color: var(--accent); }
.widget p { color: var(--muted); font-size: 0.95rem; }
.sidebar .widget .post-date { color: var(--muted); font-size: 0.8rem; }

/* ---------- Подвал ---------- */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-ink);
    margin-top: 3rem;
}
.site-footer__cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    padding: 2.6rem 0 1.8rem;
}
.footer-col { min-width: 0; }
.site-footer .widget {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
}
.site-footer .widget-title {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.16);
}
.site-footer .widget p,
.site-footer .widget li,
.site-footer .footer-col { color: var(--footer-ink); }
.site-footer .widget a { color: var(--footer-ink); }
.site-footer .widget a:hover { color: #fff; }
.site-footer .widget li { border-bottom-color: rgba(255, 255, 255, 0.1); }
.site-footer .widget .post-date { color: var(--footer-muted); }
.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.2rem 0;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 0.82rem;
    color: var(--footer-muted);
}
.site-footer__bottom p { margin: 0; }

/* ---------- Форма поиска ---------- */
.search-form {
    display: flex;
    gap: 0.5rem;
    min-width: 0;
}
.search-form .search-field {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 0.95rem;
    background: var(--surface);
    color: var(--ink);
}
.search-form .search-submit {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    cursor: pointer;
}
.search-form .search-submit:hover { background: var(--accent-deep); }

/* ---------- Комментарии ---------- */
.comments-area { margin-top: 2.4rem; }
.comments-title { margin-bottom: 1.2rem; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children { list-style: none; margin: 0 0 0 1.6rem; padding: 0; }
.comment-body {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.1rem 1.3rem;
    margin-bottom: 1rem;
}
.comment-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}
.comment-author { font-weight: 600; }
.comment-date { color: var(--muted); }
.comment-reply { font-size: 0.85rem; margin-top: 0.4rem; }
.comment-respond {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.4rem 1.5rem;
    margin-top: 1.5rem;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    margin-top: 0.3rem;
}
.comment-form textarea { min-height: 130px; }
.comment-form .form-submit input { cursor: pointer; }

/* ---------- Таблицы ---------- */
.entry__content table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; }
.entry__content table,
.entry__content th,
.entry__content td { border: 1px solid var(--line); }
.entry__content th,
.entry__content td { padding: 0.6rem 0.8rem; text-align: left; }
.entry__content th { background: var(--surface-soft); }

/* =========================================================
 *  ГЛАВНАЯ
 * ======================================================= */
.front-section { padding: 2.8rem 0; }
.front-section__head { margin-bottom: 1.6rem; }
.front-section__head h2 { margin-bottom: 0.35rem; }
.front-section__head p { color: var(--muted); margin: 0; max-width: 60ch; }

/* Hero */
.fp-hero {
    position: relative;
    overflow: hidden;
    min-height: 440px;
    display: flex;
    align-items: center;
    color: #fff;
}
.fp-hero__bg { position: absolute; inset: 0; z-index: 0; }
.fp-hero__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fp-hero::after {
    content: "";
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(100deg, rgba(41,33,42,0.72) 0%, rgba(41,33,42,0.35) 60%, rgba(41,33,42,0.15) 100%);
}
.fp-hero__content { position: relative; z-index: 2; padding: 3rem 0; }
.fp-hero__kicker {
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 0.8rem;
}
.fp-hero__title { color: #fff; font-size: 2.6rem; max-width: 18ch; margin: 0 0 0.8rem; }
.fp-hero__lead { color: rgba(255, 255, 255, 0.92); font-size: 1.1rem; max-width: 52ch; margin: 0 0 1.6rem; }

/* Сетка направлений */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4rem;
}
.topic-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem 1.5rem;
    box-shadow: var(--shadow);
    min-width: 0;
}
.topic-card__icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: var(--surface-soft);
    margin-bottom: 1rem;
}
.topic-card__icon svg { width: 28px; height: 28px; }
.topic-card h3 { margin-bottom: 0.4rem; }
.topic-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Последние записи (обёртка на светлом фоне) */
.front-latest { background: var(--surface-soft); }
.front-latest .btn-wrap { margin-top: 1.8rem; text-align: center; }

/* Галерея / мозаика */
.gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 180px;
    gap: 0.9rem;
}
.gallery-mosaic figure {
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}
.gallery-mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-mosaic .g-wide { grid-column: span 2; }
.gallery-mosaic .g-tall { grid-row: span 2; }

/* FAQ */
.faq-list { max-width: 820px; margin-left: auto; margin-right: auto; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 1.3rem;
    margin-bottom: 0.8rem;
}
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 1.05rem 0;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-weight: 600;
    color: var(--ink);
    position: relative;
    padding-right: 2rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    font-size: 1.3rem; color: var(--accent); font-weight: 400;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item__body { padding: 0 0 1.1rem; color: var(--muted); }
.faq-item__body p { margin: 0; }

/* CTA */
.fp-cta {
    background: linear-gradient(120deg, var(--accent-deep), var(--accent));
    color: #fff;
    border-radius: 16px;
    padding: 2.6rem 2.4rem;
    text-align: center;
}
.fp-cta h2 { color: #fff; }
.fp-cta p { color: rgba(255, 255, 255, 0.92); max-width: 56ch; margin: 0 auto 1.5rem; }

/* ---------- 404 ---------- */
.error-404 {
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    box-shadow: var(--shadow);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.error-404 .code { font-size: 4rem; color: var(--accent); margin: 0; font-family: "Helvetica Neue", Arial, sans-serif; }
.error-404 .search-form { max-width: 420px; margin: 1.5rem auto 1rem; }

/* ---------- Cookie-баннер ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    background: rgba(41, 33, 42, 0.97);
    color: #fff;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.2);
}
.cookie-banner__inner {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}
.cookie-banner__text { margin: 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.9); flex: 1; min-width: 240px; }
.cookie-banner__btn {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.6rem 1.6rem;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.cookie-banner__btn:hover { background: #fff; color: var(--accent-deep); }

/* =========================================================
 *  АДАПТИВ
 * ======================================================= */
@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: 1fr; }
    .fp-hero__title { font-size: 2.1rem; }
    .site-footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    body { font-size: 17px; }
    h1 { font-size: 1.75rem; }
    .fp-hero__title { font-size: 1.7rem; }

    .nav-toggle { display: inline-flex; }
    .site-nav {
        flex-basis: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }
    .site-nav.is-open { max-height: 420px; }
    .site-nav .menu { flex-direction: column; gap: 0; padding-top: 0.6rem; }
    .site-nav .menu li { border-bottom: 1px solid var(--line); }
    .site-nav .menu a { display: block; padding: 0.7rem 0; }

    .entry { padding: 1.4rem 1.3rem; }
    .gallery-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
    .gallery-mosaic .g-wide { grid-column: span 2; }
    .gallery-mosaic .g-tall { grid-row: span 1; }
    .site-footer__cols { grid-template-columns: 1fr; gap: 1.6rem; }
    .fp-cta { padding: 1.9rem 1.5rem; }
    .fp-hero__content { padding: 2.2rem 0; }
}
