/* ==========================================================================
   Бессмертный полк — Белокалитвинский район
   Оформление повторяет существующий сайт: бумажный фон, PT Serif, оранжевый акцент
   ========================================================================== */

:root {
    --paper: #F0E5D1;        /* фон страницы — «пожелтевшая бумага», как в оригинале */
    --paper-soft: #F7F0E3;
    --ink: #2E2A26;
    --muted: #6B6259;
    --accent: #EC430F;       /* оранжево-красный акцент: ссылки, меню, подчёркивания */
    --accent-dark: #B93209;
    --rule: #D9CDB8;
    --dark: #171717;
    --serif: "PT Serif", Georgia, "Times New Roman", serif;
    --sans: "Open Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.65 var(--serif);
}

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

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.25; margin: 0 0 .6em; color: var(--ink); }
p { margin: 0 0 1em; }

.polk-wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* --- шапка --- */
.polk-topline { display: none; }

.polk-header { background: #fff; border-bottom: 1px solid var(--rule); }
.polk-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; padding: 14px 20px; min-height: 60px;
}
.polk-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.polk-brand:hover { text-decoration: none; }
.polk-brand img { height: 52px; width: auto; display: block; }
.polk-brand__district {
    font: 400 19px/1.2 var(--serif); color: var(--muted);
    border-left: 1px solid var(--rule); padding-left: 14px;
}
.polk-header__right { text-align: right; font: 400 13px/1.5 var(--sans); letter-spacing: .8px; text-transform: uppercase; }
.polk-header__right a { color: var(--muted); display: block; margin-bottom: 6px; }
.polk-header__right a:hover { color: var(--accent); text-decoration: none; }
.polk-header__right .polk-current { color: var(--muted); }
.polk-header__right .polk-current::after { content: " ▾"; }

/* --- поиск: строка с подчёркиванием, как в оригинале --- */
.polk-searchbar { background: var(--paper); border-bottom: 1px solid var(--rule); }
.polk-searchbar__inner { max-width: 1140px; margin: 0 auto; padding: 18px 20px; }
.polk-search {
    display: flex; align-items: center; gap: 10px; max-width: 620px; margin: 0 auto;
    border-bottom: 1px solid #BFB3A0; padding-bottom: 6px;
}
.polk-search input {
    flex: 1; border: 0; background: transparent; outline: none;
    font: italic 16px/1.4 var(--serif); color: var(--ink); padding: 6px 2px;
}
.polk-search input::placeholder { color: #9A9186; font-style: italic; }
.polk-search button {
    border: 0; background: transparent; cursor: pointer; color: var(--muted);
    font-size: 18px; line-height: 1; padding: 0 4px;
}
.polk-search button:hover { color: var(--accent); }

/* --- меню разделов --- */
.polk-nav { background: var(--paper); border-bottom: 1px solid var(--rule); }
.polk-nav__inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 4px 20px; }
.polk-nav a {
    color: var(--muted); padding: 11px 14px; display: inline-block;
    font: 400 13px/1 var(--sans); letter-spacing: 1.5px; text-transform: uppercase;
    border-bottom: 2px solid transparent; text-decoration: none;
}
.polk-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); text-decoration: none; }

/* --- первый экран --- */
.polk-hero {
    text-align: center; padding: 62px 20px 56px;
    background:
        radial-gradient(900px 320px at 50% 0, rgba(255,255,255,.5), transparent 70%),
        var(--paper);
    border-bottom: 1px solid var(--rule);
}
.polk-hero__inner { max-width: 880px; margin: 0 auto; }
.polk-hero h1 {
    font-size: 30px; letter-spacing: 3px; text-transform: uppercase;
    color: #6B6157; font-weight: 700; margin-bottom: 20px;
}
.polk-hero__sub { font-size: 15px; letter-spacing: 4px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

.polk-count { display: flex; align-items: center; gap: 22px; justify-content: center; margin: 6px 0 30px; }
.polk-count__num { font: 700 76px/1 var(--serif); color: var(--ink); letter-spacing: 2px; }
.polk-count__rule { flex: 1; max-width: 220px; height: 1px; background: var(--rule); }
.polk-count__cap { font: 400 13px/1.4 var(--sans); letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }

.polk-btn {
    display: inline-block; padding: 14px 34px; border: 1px solid #BFB3A0;
    color: var(--muted); background: transparent; text-decoration: none;
    font: 400 13px/1 var(--sans); letter-spacing: 2px; text-transform: uppercase;
    position: relative;
}
.polk-btn::after {
    content: ""; position: absolute; left: 50%; bottom: -1px; width: 46px; height: 2px;
    background: var(--accent); transform: translateX(-50%);
}
.polk-btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* --- блоки --- */
.polk-section { padding: 52px 0; }
.polk-section--soft { background: var(--paper-soft); }
.polk-section__head { text-align: center; margin-bottom: 34px; }
.polk-section__head h2 { font-size: 26px; letter-spacing: 2px; text-transform: uppercase; color: #6B6157; }
.polk-section__head p { color: var(--muted); max-width: 720px; margin: 8px auto 0; }


/* --- поиск в списке героев --- */
.polk-filter { display: flex; align-items: center; gap: 10px; max-width: 620px; margin: 22px 0 0; border-bottom: 1px solid #BFB3A0; padding-bottom: 6px; }
.polk-filter input {
    flex: 1; border: 0; background: transparent; outline: none; padding: 8px 2px;
    font: italic 16px/1.4 var(--serif); color: var(--ink);
}
.polk-filter input::placeholder { color: #9A9186; }
.polk-filter button { display: none; border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 15px; padding: 0 4px; }
.polk-filter button:hover { color: var(--accent); }
.polk-found { margin: 10px 0 0; font: 400 14px/1.4 var(--sans); color: var(--muted); }

/* --- сетка героев: как в оригинале — фото, под ним плашка с именем --- */
.polk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.polk-card { background: none; text-align: center; }
.polk-card__photo {
    width: 100%; aspect-ratio: 3 / 4; overflow: hidden; background: #E3D6BE;
    border: 0; padding: 0; margin: 0; transition: filter .15s;
}
.polk-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: sepia(.12) contrast(1.02); }
.polk-card:hover .polk-card__photo img { filter: sepia(0) contrast(1.05) brightness(1.02); }
.polk-card__name {
    background: #655D54; color: #fff; margin: 0; padding: 9px 14px;
    font: 400 19px/1.3 var(--serif); min-height: 46px;
    display: flex; align-items: center; justify-content: center;
}
.polk-card__name a { color: #fff; text-decoration: none; }
.polk-card:hover .polk-card__name { background: var(--accent); }
.polk-card__meta { font: italic 13.5px/1.4 var(--serif); color: var(--muted); margin: 10px 4px 0; }
.polk-card__link { display: block; text-decoration: none; }
.polk-card__link:hover { text-decoration: none; }
.polk-card__text {
    font: 400 14.5px/1.5 var(--serif); color: #55493F; margin: 11px 2px 0;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

/* --- страница героя --- */
.polk-back { margin: 0 0 20px; font: 400 13px var(--sans); text-transform: uppercase; letter-spacing: 1.2px; }
.polk-hero-card { display: grid; grid-template-columns: 340px 1fr; gap: 44px; align-items: start; }
.polk-hero-card__photo { background: #E3D6BE; }
.polk-hero-card__photo img { width: 100%; display: block; }
.polk-hero-card__body h1 { font-size: 30px; color: #3A332C; margin: 0 0 6px; text-transform: none; letter-spacing: 0; }
.polk-hero-card__meta { font: italic 15px/1.4 var(--serif); color: var(--muted); margin: 0 0 22px; }
.polk-hero-card__text { font-size: 17px; line-height: 1.72; }
.polk-hero-card__text p { margin: 0 0 1em; }
.polk-hero-card__text strong { font-weight: 700; }
@media (max-width: 900px) { .polk-hero-card { grid-template-columns: 1fr; gap: 24px; } }
/* имя героя — обычным регистром (как в оригинале), важнее общего правила контентных страниц */
.polk-content .polk-hero-card__body h1 { text-transform: none; letter-spacing: 0; font-size: 30px; }

/* --- о проекте --- */
.polk-about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.polk-about__media img { width: 100%; display: block; border: 1px solid var(--rule); padding: 6px; background: var(--paper-soft); }
.polk-quote {
    border-left: 2px solid var(--accent); padding-left: 16px; margin: 22px 0 0;
    font: italic 19px/1.5 var(--serif); color: #6B6157;
}

/* --- призыв --- */
.polk-cta { text-align: center; padding: 46px 20px; background: var(--paper-soft); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.polk-cta h2 { font-size: 24px; letter-spacing: 2px; text-transform: uppercase; color: #6B6157; }
.polk-cta p { color: var(--muted); margin-bottom: 22px; }

/* --- подвал --- */
.polk-footer { background: var(--dark); color: #C9C4BF; font-size: 15px; }
.polk-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr; gap: 30px; padding: 38px 20px 28px; }
.polk-footer h4 { color: #fff; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.polk-footer a { color: #A2A2A2; }
.polk-footer a:hover { color: #fff; }
.polk-footer p { margin: 0 0 8px; }
.polk-footer__note { color: #8A857F; font-size: 13px; }
.polk-footer__bottom { border-top: 1px solid rgba(255,255,255,.10); padding: 15px 0; font-size: 14px; color: #8A857F; }

/* --- контентные страницы --- */
.polk-content { padding: 44px 0 56px; }
.polk-content h1 { font-size: 28px; letter-spacing: 2px; text-transform: uppercase; color: #6B6157; }
.polk-content img { max-width: 100%; height: auto; }
.polk-content table { width: 100%; border-collapse: collapse; }
.polk-content td, .polk-content th { border: 1px solid var(--rule); padding: 8px 10px; }

@media (max-width: 1000px) {
    .polk-grid { grid-template-columns: repeat(2, 1fr); }
    .polk-about { grid-template-columns: 1fr; }
    .polk-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .polk-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .polk-hero h1 { font-size: 21px; letter-spacing: 2px; }
    .polk-count__num { font-size: 56px; }
    .polk-header__inner { flex-direction: column; align-items: flex-start; }
    .polk-header__right { text-align: left; }
    .polk-footer__inner { grid-template-columns: 1fr; }
}
