/* ==========================================================================
   0) GLOBAL
   ========================================================================== */

body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 15px;
}

.entry-content h2 {
    margin-top: 18px;
}

.wp-block-list {
    margin-left: 1em;
}


/* ==========================================================================
   1) Footer
   ========================================================================== */

.site-footer {
    border-top: 1px solid rgba(0,0,0,0.08);
}

.site-info {
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.85;
    padding: 14px 18px;
    text-align: center;
}

.site-info a {
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.25);
    border-bottom: none;
    opacity: 0.9;
}

.site-info a:hover {
    border-bottom-color: rgba(0,0,0,0.5);
    opacity: 1;
}


/* ==========================================================================
   2) Homepage layout / spacing
   ========================================================================== */

/* Vertical rhythm between sections */
.nd-hero,
.nd-entrypoints,
.nd-steps,
.nd-links {
    margin: 0 0 28px;
    border-top-color: rgba(0,0,0,0.045);
}

/* Optional: subtle separators to make sections feel “structured” */
.nd-entrypoints,
.nd-steps,
.nd-links {
    padding-top: 18px;
    border-top: 1px solid rgba(0,0,0,0.06);
}


/* ==========================================================================
   3) Hero block
   ========================================================================== */

.nd-hero {
    padding-top: 10px;
}

.nd-hero-cta {
    margin-bottom: 12px;
}

/* Two buttons in hero: grid on mobile */
.nd-hero-cta .wp-block-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 420px){
    .nd-hero-cta .wp-block-buttons {
        grid-template-columns: 1fr;
    }
}

/* Hero CTA buttons: less “pill”, more premium */
.nd-hero-cta .wp-block-button__link {
    border-radius: 16px;
    padding: 12px 16px;
    min-height: 48px;
    font-weight: 600;
    box-shadow: none;
}

/* If Gutenberg outline style is used */
.nd-hero-cta .wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    border-width: 1px;
    opacity: 0.95;
}

/* Guarantee: second hero button becomes “secondary/outline”
   (fix for “Outline есть, но не сработало”) */
/* Force secondary button style */
.nd-btn-secondary.wp-block-button .wp-block-button__link,
.wp-block-button.nd-btn-secondary .wp-block-button__link {
    background: transparent !important;
    border: 1px solid rgba(0,0,0,0.16) !important;
    box-shadow: none !important;
    color: inherit !important;
}

.wp-block-button.nd-btn-secondary .wp-block-button__link:hover {
    border-color: rgba(0,0,0,0.28) !important;
}


/* ==========================================================================
   4) “Chips” (links under hero)
   ========================================================================== */

.nd-chips {
    margin-top: 12px;
    font-weight: 500;
}

/* Turn links into chips (instead of underlined links) */
.nd-chips a {
    color: inherit;
    background: rgba(0,0,0,0.02);
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.14);
    text-decoration: none;
    margin: 0 10px 10px 0;
    font-weight: 600;
    opacity: 0.9;
}

.nd-chips a:hover {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.30);
    opacity: 1;
}


/* ==========================================================================
   5) Entrypoints (3 buttons)
   ========================================================================== */

.nd-entrypoints-cta .wp-block-button__link {
    border-radius: 16px;
    padding: 12px 16px;
    min-height: 48px;
    font-weight: 600;
    box-shadow: none;
}


/* ==========================================================================
   6) Steps list
   ========================================================================== */

.nd-steps ul,
.nd-steps ol {
    margin-left: 1.1em;
}

.nd-steps li {
    margin: 10px 0;
}

.nd-steps a {
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.25);
}

.nd-steps a:hover {
    border-bottom-color: rgba(0,0,0,0.55);
}


/* ==========================================================================
   7) Useful links (temporary instead of Query Loop)
   ========================================================================== */

.nd-links a {
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.25);
}

.nd-links a:hover {
    border-bottom-color: rgba(0,0,0,0.55);
}

/* ==========================================================================
   8) Breadcrumbs
   ========================================================================== */

.nd-breadcrumbs{
    font-size: 14px;
    opacity: 0.85;
    margin: 6px 0 18px;
}
.nd-breadcrumbs a{
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.18);
}
.nd-breadcrumbs a:hover{
    border-bottom-color: rgba(0,0,0,0.35);
}
.nd-bc-sep{
    margin: 0 8px;
    opacity: 0.6;
}
.nd-bc-current{
    opacity: 0.9;
}


/* ==========================================================================
   Step hero v2 (cleaner, more compact)
   ========================================================================== */

/* Meta */
.nd-step-meta{
    margin: 0 0 10px;
    font-size: 13px;
    opacity: 0.7;
    font-weight: 600;
}

/* Progress bar: bigger and readable */
.nd-progress-wrap { margin: 8px 0 14px; }

.nd-progress-meta{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0.75;
}

.nd-progress{
    height: 12px;
    width: 100%;
    border-radius: 999px;
    background: rgba(0,0,0,0.08);
    overflow: hidden;
    margin: 0 0 25px;
}

.nd-progress__bar{
    height: 100%;
    background: rgba(0,0,0,0.25);
    border-radius: 999px;
}


/* Make step hero compact for MVP */
.nd-step-hero{
    margin: 12px 0 18px;
}


/* ===== Spoilers (details/summary) ===== */
.wp-block-details summary {
    color: green;
}

details.nd-spoiler{
    padding: 12px 0;
}

details.nd-spoiler > summary{
    list-style: none;
    cursor: pointer;
    font-size: 20px;         /* как заголовок секции на мобиле */
    line-height: 1.15;
    padding: 6px 34px 6px 0; /* место под стрелку справа */
    position: relative;
    color: inherit;
}

details.nd-spoiler[open] > summary {
    margin-bottom: 20px;
}

details.nd-spoiler > summary::-webkit-details-marker{ display: none; }

/* Стрелка справа (вместо системного треугольника) */
details.nd-spoiler > summary::after{
    content: "▾";
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.55;
    font-size: 22px;
}

details.nd-spoiler[open] > summary::after{
    transform: translateY(-50%) rotate(180deg);
}

details.nd-spoiler .wp-block-heading:first-child{
    margin-top: 10px;
}


