/*
Theme Name: Семейный Альбом
Theme URI: https://pavlovesky.com
Author: DT-=M@xc0M=-
Author URI: https://pavlovesky.com
Description: Тёплая современная тема для семейного сайта: крупная типографика, адаптивная сетка, аккуратные карточки и мягкая «бумажная» палитра.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 7.1
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: family-album
Tags: family, blog, warm, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   1. Переменные и базовые стили
   ========================================================================== */
:root {
  --bg: #f6efe4;
  --bg-alt: #fdf8f1;
  --surface: #ffffff;
  --surface-warm: #fffaf3;
  --ink: #3b2f26;
  --ink-soft: #5d4f43;
  --muted: #8b7a68;
  --line: #e8dccb;
  --line-strong: #d8c7b0;
  --accent: #c2703d;
  --accent-dark: #9c5330;
  --accent-soft: #ecc9a9;
  --gold: #d8a441;
  --green: #7d8a5c;
  --shadow-sm: 0 2px 6px rgba(74, 54, 36, 0.06);
  --shadow: 0 10px 30px rgba(74, 54, 36, 0.10);
  --shadow-lg: 0 22px 50px rgba(74, 54, 36, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1140px;
  --font-head: "Playfair Display", "PT Serif", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", "PT Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-ui: "Nunito Sans", "PT Sans", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(216, 164, 65, 0.08), transparent 44%),
    radial-gradient(circle at 88% 0%, rgba(194, 112, 61, 0.08), transparent 40%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-attachment: fixed, fixed, fixed;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0 0 1.5em; }

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover, a:focus { color: var(--accent); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.6em;
  letter-spacing: 0.2px;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); }
h4 { font-size: 1.25rem; }

p, ul, ol, dl { margin: 0 0 1.2em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.35em; }

blockquote {
  margin: 1.6em 0;
  padding: 1em 1.4em;
  border-left: 4px solid var(--accent);
  background: var(--surface-warm);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--ink-soft);
}

hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

code, pre, kbd {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
}
pre {
  background: #2f261e;
  color: #f4ead9;
  padding: 1.1em 1.3em;
  border-radius: var(--radius-sm);
  overflow: auto;
}
code { background: rgba(194, 112, 61, 0.12); padding: 0.15em 0.4em; border-radius: 5px; }
pre code { background: none; padding: 0; color: inherit; }

table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; }
th, td { padding: 0.6em 0.9em; text-align: left; }
th { font-family: var(--font-ui); font-weight: 700; color: var(--ink-soft); }
table:has(thead) thead th { border-bottom: 2px solid var(--line-strong); }
table:has(thead) tbody td { border-bottom: 1px solid var(--line); }

::selection { background: var(--accent-soft); color: var(--ink); }

/* ==========================================================================
   2. Каркас
   ========================================================================== */
.fa-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.fa-site { display: flex; flex-direction: column; min-height: 100vh; }
.fa-main { flex: 1 0 auto; }
.fa-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  padding: 56px 0 80px;
}
.fa-layout.has-sidebar { grid-template-columns: minmax(0, 1fr) 320px; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap;
}

/* ==========================================================================
   3. Шапка сайта
   ========================================================================== */
.fa-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 244, 235, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.fa-header.is-scrolled { box-shadow: var(--shadow-sm); background: rgba(250, 244, 235, 0.96); }

.fa-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.fa-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.fa-brand-mark {
  width: 52px; height: 52px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent) 0%, var(--gold) 100%);
  color: #fff; font-family: var(--font-head); font-size: 26px; font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), var(--shadow-sm);
}
.fa-brand-text { min-width: 0; }
.fa-site-title {
  display: block;
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: 0.3px;
}
.fa-site-title:hover { color: var(--accent-dark); }
.fa-site-tagline {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.fa-brand img { max-height: 58px; width: auto; }
.fa-brand-link { min-width: 0; text-decoration: none; color: inherit; }
.fa-brand-logo { display: flex; align-items: center; }
.fa-brand-logo .custom-logo-link { display: flex; align-items: center; }
.fa-brand-logo .custom-logo { height: 58px; width: auto; max-height: 58px; display: block; }

/* Навигация */
.fa-nav { display: flex; align-items: center; }
.fa-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.fa-nav li { position: relative; margin: 0; }
.fa-nav a {
  display: inline-block;
  position: relative;
  padding: 10px 15px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-radius: 8px;
}
.fa-nav a::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.fa-nav a:hover, .fa-nav a:focus { color: var(--accent-dark); }
.fa-nav a:hover::after { transform: scaleX(1); }
.fa-nav .current-menu-item > a,
.fa-nav .current_page_item > a,
.fa-nav .current-menu-ancestor > a,
.fa-nav .current_page_ancestor > a { color: var(--accent-dark); }
.fa-nav .current-menu-item > a::after,
.fa-nav .current_page_item > a::after { transform: scaleX(1); }

.fa-nav ul ul {
  position: absolute; top: 100%; left: 0;
  display: block;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.2s ease;
}
.fa-nav li:hover > ul,
.fa-nav li:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(4px); }
.fa-nav ul ul a { display: block; text-transform: none; letter-spacing: 0.2px; font-weight: 600; font-size: 0.92rem; }
.fa-nav ul ul a::after { display: none; }

.fa-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 12px;
  cursor: pointer;
  padding: 0 12px;
}
.fa-nav-toggle .fa-bar {
  display: block; height: 2px; width: 100%;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.fa-nav-toggle[aria-expanded="true"] .fa-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fa-nav-toggle[aria-expanded="true"] .fa-bar:nth-child(2) { opacity: 0; }
.fa-nav-toggle[aria-expanded="true"] .fa-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   4. Hero
   ========================================================================== */
.fa-hero {
  position: relative;
  color: #fdf6ec;
  background:
    linear-gradient(120deg, rgba(59, 39, 24, 0.82) 0%, rgba(92, 57, 34, 0.62) 55%, rgba(59, 39, 24, 0.80) 100%),
    url("images/deti.jpg") center 35% / cover no-repeat,
    #4a3423;
  overflow: hidden;
}
.fa-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(216, 164, 65, 0.28), transparent 60%);
  pointer-events: none;
}
.fa-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(64px, 12vw, 150px) 24px clamp(60px, 10vw, 130px);
  max-width: 820px;
  margin: 0 auto;
}
.fa-hero-eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 20px;
}
.fa-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  line-height: 1.08;
  margin: 0 0 22px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.fa-hero p {
  font-size: clamp(1rem, 2vw, 1.22rem);
  color: #f0e3d2;
  max-width: 660px;
  margin: 0 auto 32px;
}
.fa-hero-accent {
  display: block;
  width: 74px; height: 3px;
  margin: 0 auto 26px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  border-radius: 3px;
}
.fa-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ==========================================================================
   5. Кнопки
   ========================================================================== */
.fa-btn, .button, button, input[type="submit"], input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}
.fa-btn:hover, .button:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(156, 83, 48, 0.30);
}
.fa-btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: #fdf6ec;
}
.fa-btn-ghost:hover { background: rgba(255,255,255,0.14); color: #fff; box-shadow: none; }

/* ==========================================================================
   6. Статьи
   ========================================================================== */
.fa-content { min-width: 0; }

.fa-article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(26px, 4vw, 52px);
}
.fa-article + .fa-article { margin-top: 34px; }
.fa-article-header { margin-bottom: 26px; }

.fa-eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.fa-article-title { margin: 0 0 14px; }
.fa-article-title a { color: inherit; }
.fa-article-title a:hover { color: var(--accent-dark); }

.fa-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-family: var(--font-ui);
  font-size: 0.84rem;
  color: var(--muted);
}
.fa-meta svg { width: 15px; height: 15px; vertical-align: -2px; }
.fa-meta a { color: var(--muted); }
.fa-meta a:hover { color: var(--accent); }

.fa-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  border-radius: 3px;
  margin: 0 0 26px;
}

.fa-entry > *:first-child { margin-top: 0; }
.fa-entry > *:last-child { margin-bottom: 0; }
.fa-entry img { border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.fa-entry img.aligncenter { margin-left: auto; margin-right: auto; }
.fa-entry a img:hover { opacity: 0.92; }

/* Обнуляем винтажные инлайн-стили контента (Comic Sans и т.п.) */
.fa-entry :where(span, div, p, li, td, th, h1, h2, h3, h4, h5, h6, strong, em) {
  font-family: inherit !important;
}
.fa-entry :where(img[style*="width"], img[width]) { height: auto !important; max-width: 100% !important; }

.fa-thumb {
  margin: 0 0 26px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.fa-thumb img { width: 100%; height: auto; transition: transform 0.5s ease; }
.fa-article:hover .fa-thumb img { transform: scale(1.03); }

.fa-entry .alignleft { float: left; margin: 0 1.6em 1.2em 0; }
.fa-entry .alignright { float: right; margin: 0 0 1.2em 1.6em; }
.fa-entry .aligncenter { margin-left: auto !important; margin-right: auto !important; }
.fa-entry .wp-caption { max-width: 100%; }
.fa-entry .wp-caption-text, .fa-entry figcaption {
  font-family: var(--font-ui); font-size: 0.84rem; color: var(--muted);
  text-align: center; margin-top: 8px;
}
.fa-entry .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.fa-entry .gallery-item { margin: 0 !important; }
.fa-entry .gallery img { border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }

/* «Литературный» текст: лид, буквица, подпись */
.fa-entry .lead {
  font-size: 1.16rem;
  line-height: 1.75;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 1.4em;
}
.fa-entry .lead::first-letter {
  float: left;
  font-family: var(--font-head);
  font-style: normal;
  font-size: 3.6em;
  line-height: 0.78;
  padding: 6px 14px 0 0;
  color: var(--accent);
}
.fa-entry .lead::after { content: ""; display: table; clear: both; }
.fa-entry .fa-signature {
  margin-top: 2em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--accent-dark);
}
.fa-entry h3 {
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}
.fa-entry h3 + ul { margin-top: 0; }

/* ==========================================================================
   7. Сетка альбома (архивы/поиск)
   ========================================================================== */.fa-archive-head { text-align: center; margin-bottom: 44px; }
.fa-archive-head h1 { margin-bottom: 10px; }
.fa-archive-head p { color: var(--muted); max-width: 640px; margin: 0 auto; }

.fa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}
.fa-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.fa-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.fa-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.fa-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #efe4d5, #e3d3bf); }
.fa-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.fa-card:hover .fa-card-media img { transform: scale(1.06); }
.fa-card-media .fa-card-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-head); font-size: 3rem; color: rgba(156, 83, 48, 0.35);
}
.fa-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.fa-card-date {
  font-family: var(--font-ui); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.fa-card-title { font-size: 1.28rem; margin: 0 0 10px; }
.fa-card-title a { color: var(--ink); }
.fa-card-title a:hover { color: var(--accent-dark); }
.fa-card-excerpt { color: var(--ink-soft); font-size: 0.96rem; margin: 0 0 18px; }
.fa-card-more {
  margin-top: auto; font-family: var(--font-ui); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: var(--accent-dark);
}
.fa-card-more::after { content: " →"; }

/* ==========================================================================
   8. Пагинация
   ========================================================================== */
.fa-pagination { margin-top: 50px; }
.fa-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.fa-pagination .page-numbers {
  display: inline-grid; place-items: center;
  min-width: 44px; height: 44px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--surface); color: var(--ink-soft);
  font-family: var(--font-ui); font-weight: 700;
}
.fa-pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent-dark); }
.fa-pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.fa-pagination .page-numbers.dots { border: none; background: none; }

/* Хлебные крошки */
.fa-breadcrumbs {
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-family: var(--font-ui);
  font-size: 0.84rem;
  color: var(--muted);
}
.fa-breadcrumbs span { color: var(--muted); }
.fa-breadcrumbs a { color: var(--ink-soft); }
.fa-breadcrumbs a:hover { color: var(--accent); }

/* ==========================================================================
   9. Сайдбар
   ========================================================================== */
.fa-sidebar { min-width: 0; }
.fa-widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 26px;
}
.fa-widget-title {
  font-family: var(--font-ui); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft);
  margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.fa-widget ul { list-style: none; margin: 0; padding: 0; }
.fa-widget li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem; }
.fa-widget li:last-child { border-bottom: none; }
.fa-widget a { color: var(--ink-soft); }
.fa-widget a:hover { color: var(--accent-dark); }
.fa-widget select, .fa-widget input[type="text"], .fa-widget input[type="search"] { width: 100%; }

/* ==========================================================================
   10. Формы
   ========================================================================== */
input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="tel"], input[type="number"], textarea, select {
  width: 100%;
  padding: 12px 15px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(194, 112, 61, 0.14);
}
.fa-search-form { display: flex; gap: 10px; }
.fa-search-form .fa-btn { flex: 0 0 auto; }

/* ==========================================================================
   11. Комментарии
   ========================================================================== */
.fa-comments { margin-top: 48px; }
.fa-comments-title { font-size: 1.5rem; }
.comment-list { list-style: none; margin: 0 0 40px; padding: 0; }
.comment-list .comment-body {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px;
}
.comment-list .children { list-style: none; margin: 18px 0 0 40px; padding: 0; }
.comment-author { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-family: var(--font-ui); font-size: 0.8rem; color: var(--muted); margin-bottom: 12px; }
.comment-list .reply a { font-family: var(--font-ui); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* ==========================================================================
   12. Футер
   ========================================================================== */
.fa-footer {
  flex-shrink: 0;
  background: linear-gradient(180deg, #3a2c21 0%, #2c2018 100%);
  color: #e7d8c4;
  margin-top: auto;
  position: relative;
}
.fa-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--accent), var(--green));
}
.fa-footer-strip { height: 150px; overflow: hidden; position: relative; }
.fa-footer-strip img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  opacity: 0.55; filter: sepia(0.4) contrast(0.95);
}
.fa-footer-strip::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(44,32,24,0.35), rgba(44,32,24,0.95));
}
.fa-footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding: 58px 0 40px;
}
.fa-footer h1, .fa-footer h2, .fa-footer h3, .fa-footer h4 { color: #fff; }
.fa-footer-title { font-family: var(--font-head); font-size: 1.6rem; margin-bottom: 14px; }
.fa-footer p, .fa-footer li { color: #cbbaa5; font-size: 0.94rem; }
.fa-footer a { color: #e7d8c4; }
.fa-footer a:hover { color: var(--gold); }
.fa-footer .fa-widget { background: none; border: none; box-shadow: none; padding: 0; margin: 0; }
.fa-footer .fa-widget-title { color: #fff; border-color: rgba(255,255,255,0.14); }
.fa-footer .fa-widget li { border-color: rgba(255,255,255,0.10); }
.fa-footer .fa-widget a { color: #cbbaa5; }
.fa-footer .fa-widget a:hover { color: var(--gold); }
.fa-footer-nav ul { list-style: none; margin: 0; padding: 0; }
.fa-footer-nav li { padding: 6px 0; }
.fa-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 22px 0;
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  align-items: center; justify-content: space-between;
  font-family: var(--font-ui); font-size: 0.84rem; color: #a99781;
}
.fa-footer-bottom a { color: #cbbaa5; }
.fa-to-top {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold) !important; font-weight: 700;
}
.fa-to-top svg { width: 15px; height: 15px; }

/* ==========================================================================
   13. 404 и поиск
   ========================================================================== */
.fa-empty { text-align: center; padding: 40px 0; }
.fa-empty .fa-empty-num {
  font-family: var(--font-head); font-size: clamp(4rem, 14vw, 8rem);
  line-height: 1; color: var(--accent-soft); margin: 0;
}

/* ==========================================================================
   14. Elementor / блоки
   ========================================================================== */
.fa-content .elementor { margin: 0; }
.fa-content .elementor-section.elementor-section-boxed > .elementor-container { max-width: var(--container); }
.fa-builder-page .fa-article { padding: 0; border: none; box-shadow: none; background: none; }
.fa-builder-page .fa-article + .fa-article { margin-top: 0; }
.wp-block-image img { border-radius: var(--radius-sm); }

/* ==========================================================================
   15. Адаптив
   ========================================================================== */
@media (max-width: 980px) {
  .fa-layout.has-sidebar { grid-template-columns: minmax(0, 1fr); }
  .fa-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .fa-nav-toggle { display: flex; }
  .fa-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: block;
    background: var(--surface-warm);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 10px 16px 18px;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .fa-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .fa-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .fa-nav a { display: block; padding: 13px 10px; border-radius: 10px; }
  .fa-nav a::after { left: 10px; right: auto; width: 28px; bottom: 6px; }
  .fa-nav li { border-bottom: 1px solid var(--line); }
  .fa-nav li:last-child { border-bottom: none; }
  .fa-nav ul ul {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding: 0 0 6px 14px; background: none;
    display: block;
  }
  .fa-header-inner { min-height: 68px; }
}

@media (max-width: 640px) {
  .fa-layout { padding: 32px 0 60px; gap: 32px; }
  .fa-grid { grid-template-columns: 1fr; }
  .fa-footer-inner { grid-template-columns: 1fr; gap: 30px; padding: 44px 0 30px; }
  .fa-footer-bottom { flex-direction: column; text-align: center; }
  .fa-brand-mark { width: 44px; height: 44px; font-size: 22px; }
  .fa-brand-logo .custom-logo { height: 46px; max-height: 46px; }
  .fa-site-title { font-size: 1.25rem; }
  .fa-search-form { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
