/*
Theme Name: dds_letsgo-style.ru
Author: Елена Воронцова
Description: Информационная тема для проекта Let’s Go Style — о школьной форме, студенческом мерче и культуре дресс-кода.
Version: 1.1
Text Domain: lgstyle
*/

/* ===== Базовые переменные и сброс ===== */
:root {
    --bg: #f6f3ec;
    --paper: #ffffff;
    --ink: #1d2438;
    --muted: #5d6577;
    --navy: #232e4a;
    --navy-deep: #1a2238;
    --accent: #c0892c;
    --accent-soft: #f0e2c6;
    --teal: #356b66;
    --line: #e2ddd0;
    --line-strong: #cdc6b4;
    --maxw: 1180px;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(29, 36, 56, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--navy);
    line-height: 1.25;
    margin: 0 0 0.5em;
    font-weight: 700;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

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

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

/* ===== Контейнер ===== */
.shell {
    width: min(92%, var(--maxw));
    margin-inline: auto;
}

/* ===== Шапка ===== */
.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.site-header .shell {
    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, .brand svg.brand-logo {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    display: block;
}
.brand-text { min-width: 0; }
.brand-name {
    font-family: Georgia, serif;
    font-weight: 700;
    color: var(--navy);
    font-size: 1.15rem;
    line-height: 1.2;
    display: block;
}
.brand-desc {
    color: var(--muted);
    font-size: 0.82rem;
    display: block;
    margin-top: 2px;
    max-width: 520px;
}

/* ===== Навигация ===== */
.main-nav { min-width: 0; }
.nav-toggle {
    display: none;
    background: var(--navy);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.95rem;
    cursor: pointer;
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.main-nav a {
    display: block;
    color: var(--navy);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.96rem;
    font-weight: 500;
}
.main-nav a:hover {
    background: var(--accent-soft);
    color: var(--navy-deep);
    text-decoration: none;
}
.main-nav .current-menu-item > a {
    background: var(--navy);
    color: #fff;
}

/* ===== Макет ===== */
.site-main { padding: 34px 0 50px; }

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

/* ===== Хлебные крошки ===== */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 22px;
}
.breadcrumbs a { color: var(--teal); }
.breadcrumbs .sep { margin: 0 6px; color: var(--line-strong); }

/* ===== Карточки записей ===== */
.card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 26px;
}
.card-thumb-wrap {
    display: block;
    overflow: hidden;
    background: var(--accent-soft);
}
.card-thumb-wrap img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.card-thumb-wrap:hover img { transform: scale(1.04); }
.card-body {
    flex: 1;
    padding: 22px 24px 26px;
    min-width: 0;
}
.card-title { margin: 0 0 8px; font-size: 1.3rem; }
.card-title a { color: var(--navy); }
.card-meta {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.read-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    color: var(--accent);
}

/* ===== Сетка последних записей ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}
.posts-grid .card { margin-bottom: 0; }

/* ===== Контент записи / страницы ===== */
.entry {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 36px;
    box-shadow: var(--shadow);
}
.entry-title { margin-bottom: 10px; }
.entry-meta {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 22px;
}
.entry-content img { border-radius: 10px; display: block; }
.entry-thumb { border-radius: 10px; margin-bottom: 22px; display: block; width: 100%; }
.entry-content h2 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }

/* Таблицы */
.entry-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.2em 0;
}
.entry-content table, .entry-content th, .entry-content td {
    border: 1px solid var(--line-strong);
}
.entry-content th, .entry-content td { padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--accent-soft); }

/* ===== Сайдбар ===== */
.sidebar { min-width: 0; }
.widget {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}
.widget-title {
    font-size: 1.1rem;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    color: var(--navy);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--ink); }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--teal); }
.widget a:hover { color: var(--accent); }

/* ===== Главная ===== */
.home-section { padding: 46px 0; }
.home-section + .home-section { border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 30px; }
.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 8px;
}

/* Блок текст + иллюстрация */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}
.split.reverse .split-media { order: -1; }
.split-media img, .split-media svg {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

/* Галерея */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.gallery-grid figure {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--paper);
}
.gallery-grid img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}
.gallery-grid figcaption {
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--muted);
}

/* Шаги */
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    counter-reset: step;
}
.step {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
    position: relative;
    box-shadow: var(--shadow);
    min-width: 0;
}
.step::before {
    counter-increment: step;
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-family: Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 14px;
}

/* FAQ */
.faq-list { max-width: 820px; }
.faq-item {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.faq-item summary {
    cursor: pointer;
    padding: 18px 22px;
    font-weight: 600;
    color: var(--navy);
    font-family: Georgia, serif;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--muted); }

/* CTA внутри секций */
.section-cta {
    display: inline-block;
    margin-top: 18px;
    background: var(--navy);
    color: #fff;
    padding: 12px 26px;
    border-radius: 10px;
    font-weight: 600;
}
.section-cta:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* ===== Пагинация ===== */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 36px;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--paper);
    color: var(--navy);
    font-weight: 600;
}
.pagination a.page-numbers:hover {
    background: var(--accent-soft);
    text-decoration: none;
}
.pagination .page-numbers.current {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}
.pagination .page-numbers.dots {
    border: 0;
    background: none;
}

/* ===== Форма поиска ===== */
.search-form {
    display: flex;
    gap: 8px;
}
.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    font-size: 0.95rem;
    background: var(--paper);
    color: var(--ink);
}
.search-form button {
    background: var(--navy);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 0 20px;
    font-weight: 600;
    cursor: pointer;
}
.search-form button:hover { background: var(--accent); }

/* ===== Комментарии ===== */
.comments-area {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-top: 28px;
    box-shadow: var(--shadow);
}
.comment-list { list-style: none; padding: 0; margin: 0 0 24px; }
.comment-list li { border-bottom: 1px solid var(--line); padding: 16px 0; }
.comment-author { font-weight: 600; color: var(--navy); }
.comment-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    margin-top: 4px;
    font-family: inherit;
    background: var(--paper);
    color: var(--ink);
}
.comment-form label { display: block; margin-bottom: 12px; font-size: 0.9rem; }
.comment-form input[type="submit"] {
    background: var(--navy);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 12px 28px;
    font-weight: 600;
    cursor: pointer;
}

/* ===== 404 ===== */
.error-404 {
    text-align: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 50px 30px;
    box-shadow: var(--shadow);
}
.error-404 .big { font-size: 4rem; color: var(--accent); font-family: Georgia, serif; }

/* ===== Подвал ===== */
.site-footer {
    background: var(--navy-deep);
    color: #cdd3e0;
    padding: 48px 0 0;
    margin-top: 40px;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
}
.footer-col { min-width: 0; }
.footer-col .widget {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    color: #cdd3e0;
}
.footer-col .widget-title {
    color: #fff;
    border-bottom-color: var(--accent);
}
.footer-col .widget li { border-bottom-color: rgba(255, 255, 255, 0.12); color: #cdd3e0; }
.footer-col .widget a { color: #e7c98c; }
.footer-col .widget a:hover { color: #fff; }
.footer-col .widget .post-date,
.footer-col .widget .rss-date { color: #99a1b5; }
.site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 40px;
    padding: 22px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #99a1b5;
}

/* ===== Cookie-баннер ===== */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: var(--navy-deep);
    color: #e8ebf2;
    padding: 16px 0;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
}
.cookie-banner .shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-banner p { margin: 0; font-size: 0.9rem; min-width: 0; flex: 1; }
.cookie-banner a { color: #e7c98c; }
.cookie-accept {
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 11px 26px;
    font-weight: 600;
    cursor: pointer;
    flex: 0 0 auto;
}
.cookie-accept:hover { background: #d49a3a; }

/* ===== Адаптив ===== */
@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: 1fr; gap: 36px; }
    .layout-single .content-area { width: 100%; }
    .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps { grid-template-columns: 1fr; }
    .split { grid-template-columns: 1fr; gap: 28px; }
    .split.reverse .split-media { order: 0; }
    .footer-cols { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.45rem; }
    .nav-toggle { display: block; }
    .main-nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 12px;
    }
    .main-nav.open ul { display: flex; }
    .main-nav { width: 100%; }
    .site-header .shell { flex-direction: column; align-items: flex-start; }
    .posts-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .entry { padding: 24px 20px; }
}
