/* Belovode · типографика, кнопки, формы (секции 3–6)
   Часть brand.css — подключается в inc/assets.php.
   Источник истины: исторический разрез по секциям 1–26. */

/* ---------------------------------------------------------------------
   3. ТИПОГРАФИКА
   --------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6,
.entry-title, .site-title, .ast-site-title,
.wp-block-heading {
    font-family: var(--bel-font-heading);
    font-weight: 600;
    color: var(--bel-ink);
    letter-spacing: -0.01em;
    line-height: 1.18;
}
h1, .entry-title {
    font-size: clamp(2.2rem, 4.2vw + 0.5rem, 3.6rem);
    font-weight: 700;
    margin: 0 0 0.5em;
}
h2 { font-size: clamp(1.6rem, 2.6vw + 0.3rem, 2.3rem); margin: 2.2em 0 0.6em; }
h3 { font-size: 1.4rem; margin: 1.8em 0 0.5em; }

p { margin: 0 0 1em; max-width: 72ch; }
.entry-content p { font-size: 1.05rem; }

/* «Лид» — курсив Literata под заголовком */
.lede, .has-lede, .is-style-lede {
    font-family: var(--bel-font-heading);
    font-style: italic;
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 1.55;
    color: var(--bel-ink-soft);
    max-width: 60ch;
}

/* Ссылки */
a {
    color: var(--bel-moss);
    text-decoration-color: rgba(107, 122, 79, 0.4);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 150ms ease, text-decoration-color 150ms ease;
}
a:hover, a:focus-visible {
    color: var(--bel-ochre);
    text-decoration-color: currentColor;
}

/* Выключка главной — свой Hero, системный title не нужен */
.page-home .entry-header,
.page-home .ast-single-post-order .entry-title,
.page-home .ast-article-single > .entry-header,
.page-home header.entry-header {
    display: none !important;
}

/* Прячем дублирующую featured-картинку Astra над hero-cover */
.page-home .ast-single-post-featured-section,
.has-hero .ast-single-post-featured-section {
    display: none !important;
}

/* Страницы с лидирующим Hero (cover/image): заголовок под картинкой, по центру */
.has-hero .ast-article-single,
.has-hero article.post,
.has-hero article.page {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.has-hero .ast-article-single > .entry-header,
.has-hero article > header.entry-header {
    order: 2;
    text-align: center;
    padding: 0 1em;
    margin: -1em auto 1.5em;
    max-width: var(--bel-content-width);
    min-width: 0;
}
.has-hero .ast-article-single > .entry-content,
.has-hero article > .entry-content {
    order: 1;
    min-width: 0;
    max-width: 100%;
}
.has-hero .entry-title {
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    margin: 0;
    line-height: 1.15;
}
.has-hero .entry-header::before {
    content: '';
    display: block;
    width: 42px; height: 2px;
    background: var(--bel-ochre);
    margin: 0 auto 0.7em;
}

/* Дропкап — крупная буквица в первом абзаце */
.entry-content p.has-dropcap::first-letter {
    font-family: var(--bel-font-display);
    font-weight: 700;
    font-size: 3.4em;
    line-height: 1;
    float: left;
    margin: 0.06em 0.14em -0.08em 0;
    color: var(--bel-burgundy);
    -webkit-initial-letter: 3;
    initial-letter: 3;
}
.page-home .entry-content p.has-dropcap::first-letter {
    display: inline; float: none; font-size: inherit; color: inherit;
    margin: 0; padding: 0; initial-letter: unset; -webkit-initial-letter: unset;
}

/* ---------------------------------------------------------------------
   4. ДЕКОРАТИВНАЯ ОТБИВКА У ЗАГОЛОВКОВ (охра-штрих)
   --------------------------------------------------------------------- */
.entry-content h2::before,
.wp-block-heading.has-large-font-size::before {
    content: '';
    display: block;
    width: 42px; height: 2px;
    background: var(--bel-ochre);
    margin-bottom: 0.55em;
}

/* ---------------------------------------------------------------------
   5. КНОПКИ
   --------------------------------------------------------------------- */
.wp-block-button__link,
.ast-button,
button[type="submit"],
input[type="submit"],
.wp-block-search__button {
    background: var(--bel-burgundy) !important;
    color: var(--bel-bg) !important;
    border: none !important;
    padding: 0.95em 2em !important;
    border-radius: var(--bel-radius);
    font-family: var(--bel-font-body);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none !important;
    box-shadow: 0 3px 0 var(--bel-burgundy-dark), 0 6px 16px rgba(122, 36, 48, 0.22) !important;
    cursor: pointer;
    transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
    display: inline-block;
}
.wp-block-button__link:hover,
.ast-button:hover,
button[type="submit"]:hover {
    background: var(--bel-burgundy-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 0 var(--bel-burgundy-dark), 0 10px 22px rgba(122, 36, 48, 0.28) !important;
}
.wp-block-button__link:active,
.ast-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 var(--bel-burgundy-dark), 0 2px 6px rgba(122, 36, 48, 0.2) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent !important;
    color: var(--bel-burgundy) !important;
    border: 1.5px solid var(--bel-burgundy) !important;
    box-shadow: none !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--bel-burgundy) !important;
    color: var(--bel-bg) !important;
}

/* ---------------------------------------------------------------------
   6. ФОРМЫ
   --------------------------------------------------------------------- */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select,
input[type="text"], input[type="email"], input[type="tel"],
textarea, select {
    background: var(--bel-bg);
    border: 1px solid var(--bel-oak-faded);
    border-bottom: 2px solid var(--bel-oak);
    border-radius: var(--bel-radius) var(--bel-radius) 0 0;
    padding: 0.75em 1em;
    font-family: var(--bel-font-body);
    font-size: 1rem;
    color: var(--bel-ink);
    transition: border-color 150ms ease, box-shadow 150ms ease;
    width: 100%;
}
.wpcf7-form input:focus, .wpcf7-form textarea:focus,
input:focus, textarea:focus {
    outline: none;
    border-bottom-color: var(--bel-ochre);
    box-shadow: 0 2px 0 var(--bel-ochre);
}

.wpcf7-form label {
    font-family: var(--bel-font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bel-oak);
    margin-bottom: 6px;
    display: block;
}

