/*
Theme Name: dds_miamiskinboutiqueandspa.com
Author: Марина Белова
Description: Информационный онлайн-журнал о спа-процедурах, уходе за кожей и бьюти-индустрии. Экспертные статьи, обзоры и рекомендации.
Version: 1.1
Text Domain: msbs
*/

/* ============================ ОСНОВА ============================ */
:root {
    --bg:        #faf5f1;
    --surface:   #ffffff;
    --ink:       #33272f;
    --ink-soft:  #6a5862;
    --line:      #ecddd6;
    --accent:    #a85d7a;
    --accent-dk: #7c3f5b;
    --rose:      #f3e3e6;
    --sage:      #8fa394;
    --cream:     #f4ece4;
    --plum-deep: #2b1f29;
    --shell:     min(92%, 1180px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    color: var(--plum-deep);
    line-height: 1.2;
    font-weight: 600;
    margin: 0 0 0.5em;
    letter-spacing: 0.2px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1.1em; }

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

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

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

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0.7em 1.6em;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background 0.2s ease;
}
.btn:hover { background: var(--accent-dk); color: #fff; text-decoration: none; }

/* ============================ ШАПКА ============================ */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-logo { display: block; height: 52px; width: auto; }
.brand-text { min-width: 0; }
.brand-name {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--plum-deep);
    line-height: 1.15;
    display: block;
    max-width: 38ch;
}
.brand-desc {
    font-size: 0.8rem;
    color: var(--ink-soft);
    display: block;
    max-width: 46ch;
    margin-top: 2px;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--ink);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.main-nav a {
    display: block;
    padding: 0.5em 0.9em;
    color: var(--ink);
    border-radius: 8px;
    font-weight: 500;
}
.main-nav a:hover { background: var(--rose); color: var(--accent-dk); text-decoration: none; }
.main-nav .current-menu-item > a { color: var(--accent-dk); background: var(--rose); }

/* ============================ ОБЩИЙ КАРКАС ============================ */
.site-main { padding: 36px 0 56px; }

.crumbs {
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin-bottom: 22px;
}
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--accent); }
.crumbs-sep { margin: 0 6px; color: var(--sage); }

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

@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: 1fr; }
    .layout-single .content-area,
    .front-shell { width: 100%; }
}

/* ============================ САЙДБАР ============================ */
.sidebar {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
    min-width: 0;
}
.sidebar .widget { margin-bottom: 26px; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--plum-deep);
}
.sidebar, .sidebar p, .sidebar li { color: var(--ink); }
.sidebar a { color: var(--accent-dk); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.sidebar li:last-child { border-bottom: none; }
.sidebar .post-date { display: block; font-size: 0.78rem; color: var(--ink-soft); }

/* ============================ КАРТОЧКИ ЗАПИСЕЙ ============================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 26px;
}
.card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(124,63,91,0.12); }
.card-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.card-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--rose), var(--cream));
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 22px 24px;
    min-width: 0;
}
.card-meta { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 8px; }
.card-title { font-size: 1.3rem; margin-bottom: 10px; }
.card-title a { color: var(--plum-deep); }
.card-title a:hover { color: var(--accent); text-decoration: none; }
.card-excerpt { color: var(--ink-soft); font-size: 0.95rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    margin-top: auto;
    padding-top: 14px;
    font-weight: 600;
    color: var(--accent);
}

/* ============================ ГЛАВНАЯ ============================ */
.home-section { padding: 52px 0; }
.home-section + .home-section { border-top: 1px solid var(--line); }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 34px; }
.section-head p { color: var(--ink-soft); }
.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

/* hero / текст+иллюстрация */
.hero {
    background: linear-gradient(120deg, var(--plum-deep), var(--accent-dk));
    color: #fff;
    padding: 70px 0;
}
.hero .shell { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,0.9fr); gap: 46px; align-items: center; }
.hero h1 { color: #fff; font-size: 3rem; }
.hero p { color: rgba(255,255,255,0.86); font-size: 1.1rem; }
.hero-media img { border-radius: 18px; display: block; width: 100%; box-shadow: 0 24px 60px rgba(0,0,0,0.28); }

.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 46px; align-items: center; }
.split.reverse .split-media { order: -1; }
.split-media img { border-radius: 18px; display: block; width: 100%; }
.split-text h2 { margin-bottom: 0.4em; }
.split-text p { color: var(--ink-soft); }

/* сетка преимуществ/рубрик */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.feature {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    min-width: 0;
}
.feature-icon { width: 56px; height: 56px; margin: 0 auto 16px; }
.feature h3 { font-size: 1.25rem; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 0.94rem; margin: 0; }

/* пошаговый блок */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; counter-reset: step; }
.step {
    position: relative;
    background: var(--cream);
    border-radius: 16px;
    padding: 30px 26px 26px;
    min-width: 0;
}
.step::before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 0.93rem; margin: 0; }

/* галерея */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.gallery-grid figure { margin: 0; border-radius: 14px; overflow: hidden; }
.gallery-grid img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* факты */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; text-align: center; }
.fact { min-width: 0; }
.fact-num { font-family: "Cormorant Garamond", Georgia, serif; font-size: 2.8rem; font-weight: 700; color: var(--accent); display: block; line-height: 1; }
.fact-label { color: var(--ink-soft); font-size: 0.92rem; margin-top: 8px; display: block; }

/* CTA */
.cta {
    background: var(--rose);
    border-radius: 22px;
    padding: 48px 40px;
    text-align: center;
}
.cta h2 { margin-bottom: 0.4em; }
.cta p { color: var(--ink-soft); max-width: 56ch; margin: 0 auto 24px; }

/* блок последних записей на главной */
.latest-head { text-align: center; margin-bottom: 32px; }

@media (max-width: 960px) {
    .hero .shell, .split { grid-template-columns: 1fr; }
    .split.reverse .split-media { order: 0; }
    .hero h1 { font-size: 2.3rem; }
}

/* ============================ ЗАПИСЬ / СТРАНИЦА ============================ */
.entry {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 36px;
    min-width: 0;
}
.entry-title { font-size: 2.2rem; }
.entry-meta { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 20px; }
.entry-thumb { border-radius: 14px; overflow: hidden; margin-bottom: 26px; }
.entry-thumb img { display: block; width: 100%; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content img { border-radius: 12px; }
.entry-content h2, .entry-content h3 { margin-top: 1.2em; }
.entry-content blockquote {
    margin: 1.5em 0;
    padding: 16px 24px;
    border-left: 4px solid var(--accent);
    background: var(--cream);
    border-radius: 0 12px 12px 0;
    font-style: italic;
}
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.entry-content th { background: var(--cream); }

/* ============================ КОММЕНТАРИИ ============================ */
.comments { margin-top: 36px; }
.comments-title { font-size: 1.6rem; margin-bottom: 20px; }
.comment-list { list-style: none; margin: 0 0 30px; padding: 0; }
.comment-list .children { list-style: none; margin: 16px 0 0 28px; padding: 0; }
.comment-inner {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 16px;
}
.comment-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.comment-author { font-weight: 600; color: var(--plum-deep); }
.comment-date { font-size: 0.8rem; color: var(--ink-soft); }
.comment-await { font-size: 0.82rem; color: var(--accent); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
    background: var(--surface);
    color: var(--ink);
}
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-size: 0.88rem; margin-bottom: 5px; color: var(--ink-soft); }
.comment-form .submit, .comment-form input[type="submit"] {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.7em 1.8em;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

/* ============================ ПАГИНАЦИЯ ============================ */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 40px;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    font-weight: 600;
}
.pager a.page-numbers:hover { background: var(--rose); color: var(--accent-dk); text-decoration: none; }
.pager .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }
.pager .page-numbers.dots { border: none; background: none; }

/* ============================ ФОРМА ПОИСКА ============================ */
.search-form { display: flex; gap: 8px; }
.search-form .search-field {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
    background: var(--surface);
    color: var(--ink);
}
.search-form .search-submit {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

/* ============================ 404 ============================ */
.notfound { text-align: center; padding: 30px 0; }
.notfound h1 { font-size: 5rem; color: var(--accent); }
.notfound .search-form { max-width: 420px; margin: 24px auto; }

/* ============================ ПОДВАЛ ============================ */
.site-footer {
    background: var(--plum-deep);
    color: #e9dde4;
    padding: 52px 0 0;
    margin-top: 40px;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 36px;
    padding-bottom: 40px;
}
.footer-cols .widget { min-width: 0; }
.footer-cols, .footer-cols p, .footer-cols li { color: #d9cdd4; }
.footer-cols .widget-title { color: #fff; font-size: 1.2rem; margin-bottom: 14px; }
.footer-cols a { color: #f0d9e3; }
.footer-cols a:hover { color: #fff; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { padding: 6px 0; }
.footer-cols .post-date { display: block; font-size: 0.78rem; color: #b9a9b3; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #bdaeb6;
}

/* ============================ COOKIE-БАННЕР ============================ */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 999;
    background: var(--plum-deep);
    color: #f0e6ec;
    border-radius: 14px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    max-width: 760px;
    margin-inline: auto;
}
.cookie-banner p { margin: 0; font-size: 0.9rem; color: #e3d6dd; }
.cookie-banner a { color: #f3c9da; }
.cookie-accept {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.6em 1.6em;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.cookie-accept:hover { background: var(--accent-dk); }

/* ============================ FAQ / details ============================ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 0 22px;
}
.faq-item summary {
    cursor: pointer;
    padding: 18px 0;
    font-weight: 600;
    color: var(--plum-deep);
    list-style: none;
    font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { color: var(--accent-dk); }
.faq-item .faq-body { padding-bottom: 18px; color: var(--ink-soft); }

/* ============================ АДАПТИВ НАВИГАЦИИ ============================ */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .main-nav { width: 100%; display: none; }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 2px; }
    .main-nav a { padding: 0.7em 0.5em; }
    h1 { font-size: 2rem; }
    .entry { padding: 24px; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .hero { padding: 48px 0; }
    .cta { padding: 36px 22px; }
}
