/* ============================================================
   Спасо-Преображенский храм с. Добрынское — hramfavor.ru
   Дизайн-макет. Палитра снята с афиши «Белый цветок»:
   кремово-бежевый фон, тёмно-зелёный, золото.
   ============================================================ */

/* ---------- Шрифты ---------- */
@font-face {
    font-family: 'Forum';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/forum-cyr.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Forum';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/forum-lat.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Lora';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/lora-400-cyr.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Lora';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/lora-400-lat.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Lora';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../fonts/lora-700-cyr.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Lora';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../fonts/lora-700-lat.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* ---------- Переменные ---------- */
:root {
    --ivory:        #FBF7EF;   /* основной фон, кремовый */
    --ivory-2:      #FEFCF7;   /* бежевая заливка секций */
    --ivory-3:      #EFE6D5;   /* бордюры бежевые */
    --green:        #1D4A3B;   /* тёмно-зелёный (купола, заголовки) */
    --green-2:      #2C6350;   /* зелёный светлее, ховеры */
    --green-pale:   #E7EFE9;   /* очень светлая зелёная подложка */
    --gold:         #B98F3C;   /* золото основное */
    --gold-2:       #D9BA76;   /* золото светлое, линии */
    --gold-3:       #F0E2C2;   /* золото очень светлое, фоны */
    --ink:          #322D25;   /* основной текст */
    --ink-soft:     #6B6255;   /* второстепенный текст */
    --white:        #FFFFFF;

    --font-display: 'Forum', 'Times New Roman', serif;
    --font-text:    'Lora', 'Times New Roman', Georgia, serif;

    --wrap: 1180px;
    --radius: 2px;
}

/* ---------- База ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--ivory);
    background-image:
        radial-gradient(circle at 12% 8%, rgba(217,186,118,.10), transparent 45%),
        radial-gradient(circle at 88% 22%, rgba(29,74,59,.06), transparent 40%);
    color: var(--ink);
    font-family: var(--font-text);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--green);
    line-height: 1.2;
    margin: 0 0 .5em;
    letter-spacing: .01em;
}
h1 { font-size: 44px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }

p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.text-center { text-align: center; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 17px;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 13px 32px;
    border: 1px solid var(--green);
    border-radius: var(--radius);
    background: var(--green);
    color: var(--ivory);
    cursor: pointer;
    transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--green-2); border-color: var(--green-2); color: var(--white); }

.btn--gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn--gold:hover { background: #a97f30; border-color: #a97f30; color: #fff; }

.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { background: rgba(29,74,59,.07); color: var(--green); }

.btn--light { background: transparent; border-color: rgba(255,255,255,.75); color: #fff; }
.btn--light:hover { background: rgba(255,255,255,.16); color: #fff; }

/* ---------- Орнаментальный разделитель ---------- */
.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--gold-2);
    margin: 0 0 26px;
}
.ornament::before,
.ornament::after {
    content: '';
    height: 1px;
    width: 90px;
    background: linear-gradient(to right, transparent, var(--gold-2));
}
.ornament::after { background: linear-gradient(to left, transparent, var(--gold-2)); }
.ornament span { font-size: 13px; letter-spacing: .3em; }

/* ---------- Верхняя строка ---------- */
.topbar {
    background: var(--green);
    color: rgba(255,255,255,.82);
    font-size: 13px;
    letter-spacing: .02em;
}
.topbar .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 38px;
}
.topbar a { color: rgba(255,255,255,.82); }
.topbar a:hover { color: var(--gold-2); }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__right { display: flex; gap: 24px; align-items: center; }

/* ---------- Шапка ---------- */
.header {
    background: rgba(251,247,239,.96);
    border-bottom: 1px solid var(--ivory-3);
    position: sticky;
    top: 0;
    z-index: 500;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 96px;
}
.logo { display: flex; align-items: center; gap: 14px; }
.logo__mark { flex: 0 0 auto; color: var(--green); transition: color .25s; }
.logo:hover .logo__mark { color: var(--gold); }
.logo__text { font-family: var(--font-display); line-height: 1.15; }
.logo__title { display: block; font-size: 23px; color: var(--green); }
.logo__sub {
    display: block;
    font-family: var(--font-text);
    font-size: 11.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-top: 3px;
}

/* меню — всегда КАПСОМ (стандарт) */
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
    font-family: var(--font-display);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink);
    padding: 6px 0;
    border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a.is-active { color: var(--green); border-bottom-color: var(--gold-2); }

.header__cta { display: flex; align-items: center; gap: 14px; }
.header__cta .btn { padding: 11px 24px; font-size: 15px; }

.burger {
    display: none;
    width: 44px; height: 44px;
    border: 1px solid var(--ivory-3);
    background: transparent;
    border-radius: var(--radius);
    cursor: pointer;
    padding: 0;
    position: relative;
}
.burger span, .burger::before, .burger::after {
    content: '';
    position: absolute;
    left: 11px; right: 11px;
    height: 1.5px;
    background: var(--green);
    transition: .25s;
}
.burger span { top: 21px; }
.burger::before { top: 14px; }
.burger::after  { top: 28px; }

/* мобильное меню */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 900;
    background: var(--ivory);
    padding: 84px 24px 40px;
    overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
    display: block;
    font-family: var(--font-display);
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 14px 0;
    border-bottom: 1px solid var(--ivory-3);
    color: var(--ink);
}
.mobile-nav__close {
    position: absolute;
    top: 22px; right: 22px;
    width: 40px; height: 40px;
    border: 1px solid var(--ivory-3);
    background: transparent;
    font-size: 22px;
    color: var(--green);
    cursor: pointer;
    line-height: 1;
}

/* ---------- Hero (светлый, по мотивам афиши) ---------- */
.hero {
    position: relative;
    padding: 34px 0 24px;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(255,255,255,.9), transparent 55%),
        radial-gradient(ellipse at 78% 78%, rgba(231,239,233,.75), transparent 60%),
        linear-gradient(160deg, #FDFBF6 0%, #F6EFE2 55%, #F1E8D8 100%);
    overflow: hidden;
}

/* двойная золотая рамка с уголками — как на афише */
.gold-frame {
    position: relative;
    padding: 56px 60px 54px;
}
.gold-frame::before,
.gold-frame::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(185,143,60,.55);
    pointer-events: none;
}
.gold-frame::before { inset: 0; }
.gold-frame::after  { inset: 8px; border-color: rgba(185,143,60,.28); }

.hero__inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: 46px; align-items: center; }

.hero__cross { color: var(--gold); margin-bottom: 18px; }

.hero__kicker {
    font-family: var(--font-text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--green-2);
    margin-bottom: 18px;
}
.hero h1 {
    font-size: 41px;
    line-height: 1.16;
    margin-bottom: 20px;
    color: var(--green);
}
.hero h1 em { font-style: normal; color: var(--gold); display: block; }

.hero__lead { font-size: 17.5px; color: var(--ink-soft); max-width: 520px; margin-bottom: 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* фото/видео, растворяющееся в кремовый фон */
.hero__photo { position: relative; }
.hero__photo img,
.hero__photo video {
    width: 100%;
    height: 430px;
    object-fit: cover;
    object-position: center 55%;
    filter: saturate(.92) contrast(1.02) sepia(.06) brightness(1.02);
    -webkit-mask-image: radial-gradient(ellipse 68% 70% at 52% 50%, #000 46%, rgba(0,0,0,.4) 72%, transparent 90%);
    mask-image: radial-gradient(ellipse 68% 70% at 52% 50%, #000 46%, rgba(0,0,0,.4) 72%, transparent 90%);
}
.hero__badge {
    position: absolute;
    left: 50%; bottom: 6px;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    white-space: nowrap;
}

/* ---------- Секции ---------- */
.section { padding: 86px 0; }
.section--beige { background: var(--ivory-2); }
.section--green { background: var(--green); color: rgba(255,255,255,.9); }
.section--green h2, .section--green h3 { color: #fff; }

.section__head { text-align: center; max-width: 780px; margin: 0 auto 52px; }
.section__head p { color: var(--ink-soft); }
.section--green .section__head p { color: rgba(255,255,255,.78); }

/* ---------- Призыв к восстановлению ---------- */
.restore { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.restore__img { position: relative; }
.restore__img img { border: 1px solid var(--gold-2); }
.restore__img::after {
    content: '';
    position: absolute;
    inset: 14px -14px -14px 14px;
    border: 1px solid var(--gold-2);
    z-index: -1;
}
.restore blockquote {
    margin: 0 0 24px;
    padding-left: 22px;
    border-left: 2px solid var(--gold-2);
    font-family: var(--font-display);
    font-size: 21px;
    line-height: 1.55;
    color: var(--green);
}

/* ---------- Карточки-цифры ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 60px; }
.fact {
    background: var(--white);
    border: 1px solid var(--ivory-3);
    padding: 26px 20px;
    text-align: center;
}
.fact__num { font-family: var(--font-display); font-size: 34px; color: var(--gold); line-height: 1; }
.fact__label { font-size: 14px; color: var(--ink-soft); margin-top: 10px; }

/* ---------- Расписание: лист А4 + календарь дня ---------- */
.schedule-row { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }

.schedule-sheet { margin: 0; }
.schedule-sheet__link {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1.414;      /* А4, вертикальная */
    background: var(--white);
    border: 1px solid var(--gold-2);
    box-shadow: 0 2px 22px rgba(50,45,37,.06);
    overflow: hidden;
}
.schedule-sheet__link img { width: 100%; height: 100%; object-fit: cover; }
.schedule-sheet__placeholder {
    position: absolute; inset: 12px;
    border: 1px dashed rgba(185,143,60,.5);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; text-align: center; padding: 24px;
    color: var(--gold);
}
.schedule-sheet__placeholder b { font-family: var(--font-display); font-size: 22px; color: var(--green); font-weight: 400; }
.schedule-sheet__placeholder em { font-style: normal; font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }
.schedule-sheet__placeholder code { font-size: 12.5px; background: var(--ivory-2); padding: 1px 5px; }
.schedule-sheet figcaption { font-size: 13.5px; color: var(--ink-soft); text-align: center; margin-top: 12px; }

.daycal { background: var(--white); border: 1px solid var(--ivory-3); padding: 28px 28px 26px; }
.daycal__title {
    font-family: var(--font-display);
    font-size: 15px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--gold); text-align: center;
    padding-bottom: 14px; margin-bottom: 18px;
    border-bottom: 1px solid var(--ivory-3);
}
.daycal__frame-wrap { min-height: 260px; }
.daycal__frame { width: 100%; border: 0; min-height: 260px; display: block; }
.daycal__stub { color: var(--ink-soft); font-size: 14px; text-align: center; padding: 40px 0; }
.daycal__note { font-size: 14px; color: var(--ink-soft); margin: 20px 0 18px; padding-top: 18px; border-top: 1px solid var(--ivory-3); }

/* ---------- Карточки расписания (внутренняя страница) ---------- */
.schedule { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sched-card {
    background: var(--white);
    border: 1px solid var(--ivory-3);
    padding: 28px 26px;
    position: relative;
}
.sched-card--accent { background: var(--green-pale); border-color: rgba(29,74,59,.18); }
.sched-card__date {
    font-family: var(--font-display);
    font-size: 15px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}
.sched-card h3 { font-size: 21px; margin-bottom: 14px; }
.sched-card ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.sched-card li { display: flex; gap: 12px; padding: 5px 0; color: var(--ink-soft); }
.sched-card li b { color: var(--ink); font-weight: 400; font-family: var(--font-display); min-width: 62px; }

/* ---------- Новости ---------- */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { background: var(--white); border: 1px solid var(--ivory-3); display: flex; flex-direction: column; }
.news-card__img { aspect-ratio: 3 / 2; overflow: hidden; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.news-card:hover .news-card__img img { transform: scale(1.04); }
.news-card__body { padding: 24px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.news-card__date { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.news-card h3 { font-size: 20px; margin-bottom: 10px; }
.news-card p { font-size: 15px; color: var(--ink-soft); margin-bottom: 18px; }
.news-card__more { margin-top: auto; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }

/* ---------- Пожертвование ---------- */
.donate { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.donate-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(217,186,118,.5);
    padding: 34px 34px 30px;
}
.donate-card h3 { font-size: 22px; margin-bottom: 18px; }
.req { font-size: 14.5px; line-height: 1.9; }
.req dt { color: rgba(255,255,255,.6); float: left; clear: left; width: 152px; }
.req dd { margin: 0 0 0 152px; color: #fff; }

/* ---------- Плитка «Полезное» ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile {
    display: block;
    background: var(--white);
    border: 1px solid var(--ivory-3);
    padding: 28px 24px;
    text-align: center;
    transition: border-color .25s, transform .25s;
}
.tile:hover { border-color: var(--gold-2); transform: translateY(-3px); }
.tile__icon { color: var(--gold); margin: 0 auto 14px; }
.tile h3 { font-size: 18px; margin-bottom: 6px; }
.tile p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ---------- Настоятель ---------- */
.rector { display: grid; grid-template-columns: .72fr 1.28fr; gap: 60px; align-items: center; }
/* фото настоятеля показываем целиком, без обрезки по высоте */
.rector__photo { position: relative; }
.rector__photo img {
    width: 100%;
    height: auto;
    border: 1px solid var(--gold-2);
    background: var(--white);
}
.rector__photo::after {
    content: '';
    position: absolute;
    inset: 16px -16px -16px 16px;
    border: 1px solid var(--gold-2);
    z-index: -1;
}
.rector__name {
    font-family: var(--font-display);
    font-size: 25px;
    color: var(--gold);
    margin-bottom: 14px;
}
.rector__contacts { font-size: 15px; margin-bottom: 24px; }
.rector__contacts a { color: var(--green); }

/* ---------- Карусель на мобильном ---------- */
.swipe-hint { display: none; }

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-list { list-style: none; margin: 0 0 28px; padding: 0; }
.contact-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--ivory-3); }
.contact-list__label { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); min-width: 118px; }
.map-frame { border: 1px solid var(--ivory-3); background: var(--ivory-2); min-height: 340px; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 14px; }

/* ---------- Подвал ---------- */
.footer { background: var(--green); color: rgba(255,255,255,.72); font-size: 14.5px; padding: 62px 0 26px; }
.footer h4 {
    color: #fff;
    font-size: 13px;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-family: var(--font-text);
    font-weight: 700;
    margin-bottom: 18px;
}
.footer a { color: rgba(255,255,255,.72); }
.footer a:hover { color: var(--gold-2); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__menu { list-style: none; margin: 0; padding: 0; }
.footer__menu li { margin-bottom: 9px; }
/* меню в подвале — тоже капсом */
.footer__menu a { text-transform: uppercase; letter-spacing: .05em; font-size: 13.5px; font-family: var(--font-display); }
/* ссылки на документы — обычным регистром, читаемо */
.footer__menu--docs a { text-transform: none; letter-spacing: 0; font-family: var(--font-text); font-size: 14px; }
.footer__brand { font-family: var(--font-display); font-size: 19px; color: #fff; line-height: 1.3; margin-bottom: 12px; }
.footer__note { font-size: 13.5px; }
.footer__addr { font-size: 14px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 44px; padding-top: 22px; font-size: 13px; }
.footer-consent { color: rgba(255,255,255,.55); font-size: 12.5px; line-height: 1.6; margin-bottom: 14px; }
.footer-consent a { text-decoration: underline; }
.footer__copy { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: rgba(255,255,255,.55); }
.footer__copy a.made { color: #2f6250; }  /* фон #1D4A3B + ~10% lightness */

/* ---------- Cookie ---------- */
.cookie-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center; gap: 16px;
    padding: 10px 16px;
    background: rgba(20, 20, 20, .72);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    color: #fff; font-size: 13px; line-height: 1.4;
}
.cookie-bar a { color: #fff; text-decoration: underline; }
.cookie-bar button {
    flex: 0 0 auto; padding: 6px 18px; cursor: pointer;
    border: 1px solid rgba(255,255,255,.5); border-radius: 2px;
    background: transparent; color: #fff; font-size: 13px;
}
.cookie-bar button:hover { background: rgba(255,255,255,.15); }
.cookie-bar.is-hidden { display: none; }

/* ---------- Внутренние страницы ---------- */
.page-hero {
    position: relative;
    padding: 74px 0 66px;
    background: var(--ivory-2);
    border-bottom: 1px solid var(--ivory-3);
    text-align: center;
}
.breadcrumbs { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs span { color: var(--gold); }

.article { max-width: 800px; margin: 0 auto; padding: 70px 0 86px; }
.article__lead { font-size: 19px; color: var(--green); font-family: var(--font-display); line-height: 1.6; margin-bottom: 30px; }
.article h2 { font-size: 30px; margin-top: 42px; }
.article figure { margin: 34px 0; }
.article figcaption { font-size: 13.5px; color: var(--ink-soft); margin-top: 10px; text-align: center; }
.article img { border: 1px solid var(--ivory-3); }

/* мини-опрос (стандарт, п.8) */
.kie-poll { background: var(--ivory-2); border-left: 2px solid var(--gold-2); padding: 22px 24px; margin: 34px 0; }
.kie-poll__q { font-family: var(--font-display); font-size: 19px; color: var(--green); margin-bottom: 14px; }
.kie-poll__opts { display: flex; flex-wrap: wrap; gap: 10px; }
.kie-poll__opt {
    font-family: var(--font-text); font-size: 14.5px;
    padding: 8px 18px; cursor: pointer;
    background: var(--white); border: 1px solid var(--ivory-3); border-radius: var(--radius);
    color: var(--ink); transition: .2s;
}
.kie-poll__opt:hover:not(:disabled) { border-color: var(--gold-2); color: var(--green); }
.kie-poll__opt.is-chosen { background: var(--green); border-color: var(--green); color: #fff; }
.kie-poll__opt:disabled { cursor: default; opacity: .85; }
.kie-poll__thanks { display: none; font-size: 14px; color: var(--ink-soft); margin-top: 12px; }
.kie-poll.is-answered .kie-poll__thanks { display: block; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
    .nav { display: none; }
    .burger { display: block; }
    .facts, .tiles { grid-template-columns: repeat(2, 1fr); }
    .schedule, .news { grid-template-columns: 1fr 1fr; }
    .schedule-row { gap: 30px; }
}
@media (max-width: 860px) {
    h1 { font-size: 34px; }
    h2 { font-size: 29px; }
    .rector { grid-template-columns: 1fr; gap: 30px; }
    .rector__photo { max-width: 380px; }
    .rector__photo::after { display: none; }

    /* Новости и «Полезно знать» — карусель со свайпом */
    .swipe-row {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* вылет за поля контейнера, чтобы карточки уходили под край экрана */
        margin: 0 -16px;
        padding: 4px 16px 8px;
    }
    .swipe-row::-webkit-scrollbar { display: none; }
    .swipe-row > * {
        flex: 0 0 79%;
        scroll-snap-align: center;
    }
    .swipe-hint {
        display: block;
        text-align: center;
        margin-top: 14px;
        font-size: 12.5px;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--gold);
    }
    .hero { padding: 22px 0 18px; }
    .hero__inner { grid-template-columns: 1fr; gap: 30px; }
    .hero h1 { font-size: 34px; }
    .hero__lead { max-width: none; }
    .hero__photo img, .hero__photo video { height: 300px; }
    .gold-frame { padding: 34px 24px 32px; }
    .restore, .donate, .contacts, .schedule-row { grid-template-columns: 1fr; gap: 34px; }
    .schedule-sheet__link { max-width: 420px; margin: 0 auto; }
    .restore__img::after { display: none; }
    .section { padding: 60px 0; }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .topbar__item--adr { display: none; }
}
@media (max-width: 620px) {
    .schedule, .news, .facts, .tiles, .footer__grid { grid-template-columns: 1fr; }
    .header .wrap { min-height: 76px; }
    .logo { gap: 10px; }
    .logo__mark { width: 34px; height: 34px; }
    .logo__title { font-size: 16px; }
    .logo__sub { font-size: 9.5px; letter-spacing: .1em; }
    .header__cta .btn { display: none; }
    .hero h1 { font-size: 28px; }
    .hero__kicker { font-size: 11px; letter-spacing: .16em; }
    .hero__actions .btn { width: 100%; text-align: center; }
    .gold-frame { padding: 26px 16px 24px; }
    .wrap { padding: 0 16px; }
    .req dt { float: none; width: auto; }
    .req dd { margin-left: 0; margin-bottom: 8px; }
}
@media (max-width: 575px) {
    .cookie-bar { font-size: 12px; gap: 10px; padding: 8px 12px; text-align: left; }
}

/* ---------- Кегль на десктопе: +20% (правка Максима 13.08.2026).
   Мобильные размеры не трогаем — там кегль уже комфортный. ---------- */
@media (min-width: 861px) {
    body { font-size: 19.2px; }
    h1 { font-size: 52.8px; }
    h2 { font-size: 43.2px; }
    h3 { font-size: 28.8px; }
    .btn { font-size: 20.4px; }
    .ornament span { font-size: 15.6px; }
    .topbar { font-size: 15.6px; }
    .logo__title { font-size: 27.6px; }
    .logo__sub { font-size: 13.8px; }
    .nav a { font-size: 18px; }
    .header__cta .btn { font-size: 18px; }
    .mobile-nav a { font-size: 24px; }
    .mobile-nav__close { font-size: 26.4px; }
    .hero__kicker { font-size: 14.4px; }
    .hero h1 { font-size: 49.2px; }
    .hero__lead { font-size: 21px; }
    .hero__badge { font-size: 15.6px; }
    .restore blockquote { font-size: 25.2px; }
    .fact__num { font-size: 40.8px; }
    .fact__label { font-size: 16.8px; }
    .schedule-sheet__placeholder b { font-size: 26.4px; }
    .schedule-sheet__placeholder em { font-size: 16.2px; }
    .schedule-sheet__placeholder code { font-size: 15px; }
    .schedule-sheet figcaption { font-size: 16.2px; }
    .daycal__title { font-size: 18px; }
    .daycal__stub { font-size: 16.8px; }
    .daycal__note { font-size: 16.8px; }
    .sched-card__date { font-size: 18px; }
    .sched-card h3 { font-size: 25.2px; }
    .sched-card ul { font-size: 18px; }
    .news-card__date { font-size: 15px; }
    .news-card h3 { font-size: 24px; }
    .news-card p { font-size: 18px; }
    .news-card__more { font-size: 16.8px; }
    .donate-card h3 { font-size: 26.4px; }
    .req { font-size: 17.4px; }
    .tile h3 { font-size: 21.6px; }
    .tile p { font-size: 16.8px; }
    .rector__name { font-size: 30px; }
    .rector__contacts { font-size: 18px; }
    .contact-list__label { font-size: 15.6px; }
    .map-frame { font-size: 16.8px; }
    .footer { font-size: 17.4px; }
    .footer h4 { font-size: 15.6px; }
    .footer__menu a { font-size: 16.2px; }
    .footer__menu--docs a { font-size: 16.8px; }
    .footer__brand { font-size: 22.8px; }
    .footer__note { font-size: 16.2px; }
    .footer__addr { font-size: 16.8px; }
    .footer__bottom { font-size: 15.6px; }
    .footer-consent { font-size: 15px; }
    .cookie-bar { font-size: 15.6px; }
    .cookie-bar button { font-size: 15.6px; }
    .breadcrumbs { font-size: 15.6px; }
    .article__lead { font-size: 22.8px; }
    .article h2 { font-size: 36px; }
    .article figcaption { font-size: 16.2px; }
    .kie-poll__q { font-size: 22.8px; }
    .kie-poll__opt { font-size: 17.4px; }
    .kie-poll__thanks { font-size: 16.8px; }
}

/* ---------- Шапка на десктопе: меню вторым ярусом.
   После увеличения кегля на 20% лого и меню в одну строку не помещаются. ---------- */
@media (min-width: 861px) {
    .header .wrap { flex-wrap: wrap; min-height: 0; padding-top: 14px; padding-bottom: 0; row-gap: 0; }
    .logo { flex: 1 1 auto; }
    .header__cta { flex: 0 0 auto; }
    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 34px;
        margin-top: 14px;
        padding: 10px 0 6px;
        border-top: 1px solid var(--ivory-3);
    }
    .nav a { white-space: nowrap; padding: 4px 0; }
    .logo__title { white-space: nowrap; }
}

/* Точная подгонка первого экрана под увеличенный кегль */
@media (min-width: 861px) {
    .hero h1 { font-size: 44px; }
    .hero__inner { grid-template-columns: 1.14fr .86fr; }
    .btn { font-size: 18px; padding: 13px 28px; }
    .hero__kicker { font-size: 13px; }
}

/* ============================================================
   Страница «Подать записки»
   ============================================================ */
.zapiski { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; padding: 20px 0 10px; }
.zapiski__about h3 { margin-top: 32px; }
.zapiski__note {
    margin-top: 34px;
    padding: 22px 26px;
    background: var(--ivory-2);
    border-left: 2px solid var(--gold-2);
}
.zapiski__note b {
    display: block;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 19px;
    color: var(--green);
    margin-bottom: 8px;
}
.zapiski__note p { margin: 0; font-size: 15px; color: var(--ink-soft); }

.zapiski-form {
    background: var(--white);
    border: 1px solid var(--gold-2);
    padding: 36px 34px 32px;
    box-shadow: 0 2px 24px rgba(50,45,37,.05);
}
.zapiski-form__title {
    font-family: var(--font-display);
    font-size: 15px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
    text-align: center;
    padding-bottom: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--ivory-3);
}
.field { margin-bottom: 20px; }
.field label {
    display: block;
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 7px;
}
.field input[type="text"],
.field select,
.field textarea {
    width: 100%;
    font-family: var(--font-text);
    font-size: 16px;
    color: var(--ink);
    background: var(--ivory);
    border: 1px solid var(--ivory-3);
    border-radius: var(--radius);
    padding: 11px 14px;
    transition: border-color .2s;
}
.field textarea { resize: vertical; line-height: 1.6; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--gold-2); }
.field--half { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; margin: 6px 0 24px; cursor: pointer; }
.consent input { margin-top: 3px; flex: 0 0 auto; width: 16px; height: 16px; accent-color: var(--green); }
.consent a { color: var(--green); text-decoration: underline; }

.zapiski-form__submit { width: 100%; }
.zapiski-form__hint { font-size: 13.5px; color: var(--ink-soft); margin: 18px 0 0; text-align: center; line-height: 1.6; }

@media (max-width: 860px) {
    .zapiski { grid-template-columns: 1fr; gap: 36px; }
    .zapiski-form { padding: 28px 20px 26px; }
    .field--half { grid-template-columns: 1fr; gap: 20px; }
}
@media (min-width: 861px) {
    .zapiski__note b { font-size: 22.8px; }
    .zapiski__note p { font-size: 18px; }
    .zapiski-form__title { font-size: 18px; }
    .field label { font-size: 15.6px; }
    .field input[type="text"], .field select, .field textarea { font-size: 19.2px; }
    .consent { font-size: 16.2px; }
    .zapiski-form__hint { font-size: 16.2px; }
}

/* Кнопки формы записок: пожертвовать + отправить */
.zapiski-form__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.zapiski-form__actions .btn { width: 100%; text-align: center; padding-left: 12px; padding-right: 12px; }
@media (max-width: 480px) {
    .zapiski-form__actions { grid-template-columns: 1fr; }
}

/* ============================================================
   Правки 16.08.2026: пагинация, плитки в два столбца,
   компактные контакты
   ============================================================ */

/* ---------- Пагинация (pdoPage) ---------- */
.pagination { margin: 46px 0 0; }
.pagination ul.pagination,
ul.pagination {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}
.pagination .page-item { margin: 0; }
.pagination .page-link {
    display: block;
    min-width: 44px;
    padding: 9px 14px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 1.2;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--ivory-3);
    border-radius: var(--radius);
    transition: border-color .2s, color .2s, background .2s;
}
a.page-link:hover { border-color: var(--gold-2); color: var(--green); }
.pagination .page-item.active .page-link {
    background: var(--green);
    border-color: var(--green);
    color: var(--ivory);
}
.pagination .page-item.disabled .page-link {
    color: #b3aa9b;
    background: transparent;
    border-color: transparent;
}

/* ---------- Лента новостей на странице раздела ---------- */
@media (min-width: 861px) {
    .article:has(.news) { max-width: 1120px; }
    .news,
    .article .news { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
}

/* ---------- «Полезно знать»: два столбца ---------- */
@media (min-width: 861px) {
    .article .tiles,
    .tiles--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
.tiles .tile { text-align: left; padding: 30px 28px; }
.tiles .tile h3 { margin-bottom: 8px; }

/* ---------- Контакты: компактнее на десктопе ---------- */
@media (min-width: 861px) {
    .contacts { grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
    .contact-list li { padding: 9px 0; }
    .contact-list__label { min-width: 132px; font-size: 14px; }
    .map-frame { min-height: 0; }
    .map-frame iframe { height: 330px; }
    .section--beige .contacts + * { margin-top: 0; }
}

/* карточка контактов внутри статьи (страница «Контакты») */
.article .map-frame { margin-top: 18px; }
@media (min-width: 861px) {
    .article:has(.contacts) { max-width: 1120px; }
    .article .contacts { margin-top: 30px; }
    .article .contacts .contact-list__label { min-width: 152px; }
    .article .map-frame { margin-top: 0; height: 100%; }
    .article .map-frame iframe { height: 100%; min-height: 420px; }
}

/* ---------- Лайтбокс ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 34px 18px; background: rgba(23, 20, 16, .92); }
.lightbox.is-open { display: flex; }
.lightbox__body { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox__body img { max-width: min(1100px, 92vw); max-height: 84vh; width: auto; height: auto; border: 1px solid rgba(233, 220, 195, .35); background: var(--ivory); }
.lightbox__body figcaption { margin-top: 14px; color: #e9dcc3; font-size: 14px; }
.lightbox__close, .lightbox__nav { position: absolute; border: 0; background: transparent; color: #e9dcc3; cursor: pointer; line-height: 1; transition: color .2s; }
.lightbox__close:hover, .lightbox__nav:hover { color: #fff; }
.lightbox__close { top: 14px; right: 20px; font-size: 40px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 56px; padding: 10px 16px; }
.lightbox__nav--prev { left: 6px; }
.lightbox__nav--next { right: 6px; }
.lightbox.is-single .lightbox__nav { display: none; }

/* ---------- Галерея новости ---------- */
.gallery { margin: 40px 0 0; }
.gallery__title { font-family: var(--font-display); font-size: 20px; color: var(--green); margin-bottom: 16px; }
.gallery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gallery__item { display: block; aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid var(--ivory-3); background: var(--ivory-2); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.05); }
@media (max-width: 640px) {
    .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .lightbox__nav { font-size: 40px; }
}

/* ---------- Шапка внутренней страницы: вдвое ниже ---------- */
.page-hero { padding: 20px 0 18px; }
.page-hero .ornament { margin-bottom: 8px; }
.page-hero .ornament::before, .page-hero .ornament::after { width: 66px; }
.page-hero .breadcrumbs { margin-bottom: 6px; }
.page-hero h1 { font-size: 33px; }
@media (max-width: 640px) {
    .page-hero { padding: 18px 0 16px; }
    .page-hero h1 { font-size: 26px; }
}

/* ---------- Записки: рекомендуемое пожертвование ---------- */
.zapiski__prices { margin-top: 26px; }
.zapiski__prices h3 { margin-bottom: 10px; }
.price-list { list-style: none; margin: 0 0 14px; padding: 0; }
.price-list li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--ivory-3); }
.price-list li span:first-child { flex: 1; }
.price-list__sum { font-family: var(--font-display); color: var(--green); white-space: nowrap; }
.price-note { font-size: 14px; color: var(--ink-soft); }

/* ---------- Блок под онлайн-оплату (временный) ---------- */
.paysoon { background: var(--ivory-2); border-top: 1px solid var(--ivory-3); padding: 54px 0; }
.paysoon__box { max-width: 720px; margin: 0 auto; text-align: center; background: var(--white); border: 1px solid var(--ivory-3); border-radius: var(--radius); padding: 38px 30px; }
.paysoon__box h2 { font-size: 26px; margin-bottom: 12px; }
.paysoon__box p { color: var(--ink-soft); margin: 0 auto; max-width: 520px; }
.paysoon__slot { margin-top: 22px; min-height: 96px; border: 1px dashed var(--gold-2); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 14px; }

/* одна кнопка в форме записки */
.zapiski-form__actions { grid-template-columns: 1fr; }

/* ---------- Правки 18.08.2026 (вечер): подвал, hero, фоны ---------- */
/* подвал: зелёный, с золотыми полосами */
.footer {
    background: var(--green);
    color: rgba(255,255,255,.72);
    border-top: 2px solid var(--gold-2);
    box-shadow: inset 0 4px 0 rgba(217,186,118,.28);
}
.footer h4 { color: #fff; }
.footer a { color: rgba(255,255,255,.72); }
.footer a:hover { color: var(--gold-2); }
.footer__brand { color: #fff; }
.footer__note, .footer__addr { color: rgba(255,255,255,.72); }
.footer__bottom {
    border-top: 1px solid rgba(217,186,118,.6);
    position: relative;
}
.footer__bottom::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: -4px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(217,186,118,.45), transparent);
}
.footer-consent { color: rgba(255,255,255,.55); }
.footer__copy { color: rgba(255,255,255,.55); }
.footer__copy a.made { color: #2f6250; }

/* hero: широкое видео 16:9 вместо квадратного кропа */
.hero__photo video, .hero__photo img {
    height: auto;
    aspect-ratio: 16 / 9;
    object-position: center 50%;
}
@media (max-width: 860px) {
    .hero__inner { display: flex; flex-direction: column; }
    .hero__photo { order: -1; margin-bottom: 4px; }
    .hero__photo video, .hero__photo img { height: auto; aspect-ratio: 16 / 9; }
    .hero { padding: 14px 0 18px; }
    .gold-frame { padding: 18px 16px 26px; }
}

/* блок онлайн-оплаты внутри страницы */
.paysoon__box--inline { margin-top: 40px; }

/* бейдж 1808 под видео, чтобы не налезал на кадр */
.hero__photo { display: flex; flex-direction: column; align-items: stretch; }
.hero__badge { position: static; transform: none; margin-top: 10px; text-align: center; }

/* золотой вензель над столбцами подвала */
.footer__ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 0 40px;
    color: var(--gold-2);
}
.footer__ornament-line {
    height: 1px;
    width: min(220px, 26vw);
    background: linear-gradient(to right, transparent, rgba(217,186,118,.7));
}
.footer__ornament-line:last-child { background: linear-gradient(to left, transparent, rgba(217,186,118,.7)); }
.footer__ornament-mark { font-size: 15px; letter-spacing: .3em; line-height: 1; }

/* клик по всей карточке новости */
.news-card { position: relative; }
.news-card__link { position: absolute; inset: 0; z-index: 2; }
.news-card:hover { border-color: var(--gold-2); }
.news-card:hover .news-card__more { color: var(--gold); }
.news-card__more { display: inline-block; margin-top: auto; }

/* ---------- Видео: на мобильном переезжает в слот над рамкой ---------- */
.hero-video-slot:empty { display: none; }
.hero-video-slot .hero__photo { margin: 0; }
.hero-video-slot .hero__video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 0;
    -webkit-mask-image: none;
    mask-image: none;
}
.hero-video-slot .hero__badge {
    display: block;
    margin: 10px 0 2px;
    text-align: center;
}

/* подсказку «листайте пальцем» убираем совсем */
.swipe-hint { display: none !important; }

/* кнопки на странице «Контакты» */
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 640px) {
    .contact-actions { flex-direction: column; }
    .contact-actions .btn { text-align: center; }
}
