/* =====================================================================
   pages.css - страниците извън магазина и блога: За мен, Контакти,
   страница от редактора (stranica.html - изцяло базовият слой), 404.
   Правилата са 1:1 от makets/final/assets/maket.css (4.10, 4.11 и .card от
   4.6); inline стиловете на макета са пренесени като класове най-долу.
   ===================================================================== */

/* ---------- .card (картата на формата - maket.css, 4.6) ---------- */
.card { padding: 24px; border: 1px solid var(--c-border); border-radius: var(--r-card); background: #fff; }
.card > h2, .card > h3 { font-size: 20px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.card > h2 b, .card > h3 b { display: inline-block; min-width: 28px; line-height: 28px; text-align: center; border-radius: 50%; background: var(--c-accent-soft); color: var(--c-primary); font-size: 14px; }
@media (max-width: 767px) { .card { padding: 18px 16px; } }

.kontakti > *, .zamen > * { min-width: 0; }

/* ---------- 4.10 За мен ---------- */
.zamen { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-block) 56px; align-items: start; }
.zamen__img { width: 100%; border-radius: var(--r-card); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.zamen__body { display: grid; gap: 16px; }
.quote { margin: 8px 0 0; padding: 22px 24px; border-radius: var(--r-card); background: var(--c-accent-soft); font-size: var(--t-lead); line-height: 1.5; font-weight: 600; }
.quote footer { margin-top: 12px; display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
.quote footer img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.quote footer strong { display: block; font-weight: 700; }
@media (max-width: 1023px) { .zamen { grid-template-columns: 1fr; } }

/* ---------- 4.10 Контакти ---------- */
.kontakti { display: grid; grid-template-columns: 5fr 7fr; gap: var(--sp-block) 48px; align-items: start; }
@media (max-width: 1023px) { .kontakti { grid-template-columns: 1fr; } }
.kontakti__info { display: grid; gap: 18px; }
.cblocks { list-style: none; display: grid; gap: 12px; margin-top: 6px; }
.cblock { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-img); background: var(--c-surface); }
.cblock .icon-circle { grid-row: span 2; background: #fff; }
.cblock small { font-size: 13px; color: var(--c-muted); }
.cblock a, .cblock b { font-weight: 700; text-decoration: none; }
.map { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-card); background: var(--c-surface); } /* разрешено: iframe в колоната (REPORT 24) */
@media (max-width: 767px) { .map { aspect-ratio: 4 / 3; } }

/* ---------- 4.11 404 ---------- */
.e404 { display: grid; justify-items: center; gap: 16px; text-align: center; }
.e404 img { width: 160px; height: 110px; object-fit: cover; object-position: 50% 0; } /* декоративно: горната част на логото = лисицата */
.e404__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- inline стиловете на макета като класове ---------- */
.zamen__body h3 { margin-top: 8px; }
.kontakti__info > .label { margin-top: 6px; }
.kontakti__info .social a { background: var(--c-dark); }
.kontakti__info .social a:hover { background: var(--c-accent); }
.card > .notice { margin-bottom: 18px; }
.kontakti-karta { padding-top: 0; }
/* .notice и .field__error са display:flex в базата - без това [hidden] не скрива. */
.notice[hidden], .field__error[hidden] { display: none; }
