/* ==========================================================================
   Авраамиево-Городецкий монастырь - CSS Stylesheet
   Палитра на основе логотипа:
   --color-primary: #1B4B6C (Темно-синий)
   --color-accent: #2B7AA1 (Лазурно-синий)
   --color-gold: #C69C4E (Теплый золотистый)
   --color-bg-light: #FAF8F2 (Светлый песчано-кремовый)
   --color-bg-card: #FFFFFF (Белый)
   --color-text-dark: #1A2832 (Темно-серый/синий текст)
   --color-text-muted: #5A6B75 (Приглушенный текст)
   ========================================================================== */

:root {
    /* Цветовая палитра */
    --color-primary: #1B4B6C;
    --color-accent: #2B7AA1;
    --color-gold: #C69C4E;
    --color-bg-light: #FAF8F2;
    --color-bg-card: #FFFFFF;
    --color-text-dark: #1A2832;
    --color-text-muted: #5A6B75;

    /* Шрифтовые гарнитуры */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Типографическая шкала */
    --fs-xs: 0.75rem;    /* 12px */
    --fs-sm: 0.875rem;   /* 14px */
    --fs-base: 1.000rem; /* 16px */
    --fs-md: 1.125rem;   /* 18px */
    --fs-lg: 1.375rem;   /* 22px */
    --fs-xl: 2.250rem;   /* 36px */
    --fs-xxl: 3.500rem;  /* 56px */

    --transition: all 0.3s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   КОНТЕЙНЕРЫ И СЕТКА
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.screen {
    padding-top: 40px;
    padding-bottom: 40px;
    position: relative;
}

.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.align-center {
    align-items: center;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 32px;
}

/* ==========================================================================
   ШАПКА САЙТА И НАВИГАЦИЯ
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(250, 248, 242, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(27, 75, 108, 0.1);
    padding: 12px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-primary);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: var(--fs-md);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.logo-subtitle {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
}

.site-logo {
    height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-dark);
    font-size: var(--fs-base);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   ПРАВОСЛАВНЫЙ КАЛЕНДАРЬ (БЕГУЩАЯ СТРОКА)
   ========================================================================== */

.orthodox-calendar {
    position: relative;
    z-index: 900;
    margin-top: 76px;
    background-color: var(--color-bg-light);
    border-bottom: 1px solid rgba(27, 75, 108, 0.12);
    padding: 8px 0;
    font-size: var(--fs-sm);
}

.calendar-container {
    display: flex;
    align-items: center;
}

.calendar-custom {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.calendar-date {
    font-weight: 600;
    white-space: nowrap;
    color: var(--color-primary);
    padding-right: 16px;
    border-right: 2px solid var(--color-gold);
    flex-shrink: 0;
}

.calendar-date a {
    color: var(--color-primary);
    text-decoration: none;
}

.calendar-track-wrapper {
    overflow: hidden !important;
    white-space: nowrap !important;
    width: 100%;
    position: relative;
    -webkit-transform: translate3d(0, 0, 0);
}

.calendar-track-wrapper:hover .calendar-track {
    animation-play-state: paused;
}

.calendar-track {
    display: inline-block !important;
    white-space: nowrap !important;
    animation: ticker 35s linear infinite;
    -webkit-animation: ticker 35s linear infinite;
}

.calendar-item {
    display: inline-block !important;
    white-space: nowrap !important;
    margin-right: 8px;
    color: var(--color-text-dark);
}

.calendar-item a {
    color: var(--color-text-dark);
    text-decoration: none;
}

.calendar-item a:hover {
    color: var(--color-accent);
}

.calendar-separator {
    display: inline-block;
    margin: 0 10px;
    color: var(--color-gold);
    font-size: 0.75rem;
    opacity: 0.8;
}

/* ==========================================================================
   КНОПКИ
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 4px;
    font-size: var(--fs-base);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: var(--color-accent);
}

.btn-primary-sm {
    background-color: var(--color-primary);
    color: #FFFFFF;
    padding: 8px 18px;
    font-size: var(--fs-sm);
    border-radius: 4px;
}

.btn-primary-sm:hover {
    background-color: var(--color-accent);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: #FFFFFF;
}

.btn-light {
    background-color: #FFFFFF;
    color: var(--color-primary);
    font-weight: 600;
}

.btn-light:hover {
    background-color: var(--color-bg-light);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.6);
    color: #FFFFFF;
}

.btn-outline-light:hover {
    border-color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

.btn-lg {
    padding: 16px 36px;
    font-size: var(--fs-md);
}

/* ==========================================================================
   ТИПОГРАФИКА И СЕКЦИИ
   ========================================================================== */

.section-tag {
    display: inline-block;
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: 12px;
    font-weight: 600;
}

.tag-light {
    color: #D4E5F0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    color: var(--color-primary);
    line-height: 1.15;
    margin-bottom: 16px;
    font-weight: 600;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    color: var(--color-text-muted);
    font-style: italic;
}

.lead-text {
    font-size: var(--fs-lg);
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: 24px;
}

.text-block p {
    margin-bottom: 16px;
    color: var(--color-text-dark);
    font-size: var(--fs-base);
}

.highlight-text {
    font-size: var(--fs-md);
    font-weight: 500;
    color: var(--color-primary);
    border-left: 3px solid var(--color-accent);
    padding-left: 16px;
    margin-top: 20px;
}

/* ==========================================================================
   ЭКРАН 1: HERO
   ========================================================================== */

.hero-screen {
    min-height: auto;
    display: flex;
    align-items: center;
    color: #FFFFFF;
    padding-top: 40px;
    padding-bottom: 60px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(27, 75, 108, 0.75) 0%, rgba(15, 38, 54, 0.85) 100%);
}

.location-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    font-size: var(--fs-sm);
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: var(--fs-xxl);
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 500;
}

.hero-description {
    font-size: var(--fs-lg);
    line-height: 1.6;
    max-width: 680px;
    margin-bottom: 16px;
    font-weight: 300;
}

.hero-subtext {
    font-size: var(--fs-base);
    color: rgba(255, 255, 255, 0.85);
    max-width: 620px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap; /* Позволяет кнопкам аккуратно переноситься на мобильных экранах */
    align-items: center;
}

/* ==========================================================================
   ЭКРАН 2: ИСТОРИЯ
   ========================================================================== */

.history-screen {
    background-color: var(--color-bg-light);
}

.image-comparison-box {
    position: relative;
    padding-bottom: 80px; /* Запас места снизу для выступающей карточки */
}

.modern-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.archive-card {
    position: absolute;
    bottom: 0;
    right: 20px;
    width: 240px;
    background: #FFFFFF;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.06);
}

.archive-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
}

.archive-caption {
    display: block;
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 6px;
}

/* ==========================================================================
   ЭКРАН 3: СВЯТЫНИ
   ========================================================================== */

.shrines-screen {
    background-color: #FFFFFF;
}

.shrines-content-box {
    max-width: 800px;
    margin: 0 auto 48px auto;
    text-align: center;
}

.shrines-intro {
    font-size: var(--fs-md);
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 16px;
}

.shrines-subintro {
    font-size: var(--fs-base);
    color: var(--color-text-dark);
    margin-bottom: 16px;
}

.shrines-invitation {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    color: var(--color-accent);
    font-style: italic;
}

.photo-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.grid-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    height: 280px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: var(--transition);
}

.grid-item:hover {
    transform: translateY(-4px);
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(180deg, transparent 0%, rgba(27, 75, 108, 0.9) 100%);
    color: #FFFFFF;
    font-size: var(--fs-sm);
    font-weight: 500;
}

/* ==========================================================================
   ЭКРАН 4: ОЗЕРО
   ========================================================================== */

.lake-screen {
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: #FFFFFF;
}

.lake-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.lake-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lake-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 75, 108, 0.65);
}

.lake-title {
    font-family: var(--font-heading);
    font-size: var(--fs-xxl);
    margin-bottom: 24px;
    font-weight: 500;
}

.lake-text p {
    font-size: var(--fs-md);
    margin-bottom: 20px;
    max-width: 640px;
}

.lake-list {
    list-style: none;
    margin: 24px 0;
    padding-left: 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.4);
}

.lake-list li {
    font-size: var(--fs-md);
    margin-bottom: 10px;
}

.lake-footer-quote {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-style: italic;
    color: #E2EFF7;
    margin-top: 32px;
}

/* ==========================================================================
   ЭКРАН 5: СЮДА СТОИТ ПРИЕХАТЬ
   ========================================================================== */

.visit-screen {
    background-color: var(--color-bg-light);
}

.photo-frame {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(0,0,0,0.08);
}

.visit-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.visit-options {
    list-style: none;
    margin-bottom: 24px;
}

.visit-options li {
    font-size: var(--fs-md);
    font-weight: 500;
    color: var(--color-primary);
    padding: 8px 0;
    border-bottom: 1px solid rgba(27, 75, 108, 0.1);
}

.accent-paragraph {
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--color-primary);
}

/* ==========================================================================
   ЭКРАН 6: ВОЗРОЖДЕНИЕ И ПОМОЩЬ
   ========================================================================== */

.help-screen {
    background-color: #FFFFFF;
}

.monks-work-preview {
    margin-top: 32px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--color-bg-light);
    padding: 8px;
    max-width: 440px;
}

.monks-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.monks-work-preview .caption {
    display: block;
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    margin-top: 6px;
    text-align: center;
}

.donation-card {
    background-color: var(--color-bg-light);
    border: 1px solid rgba(27, 75, 108, 0.15);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.04);
}

.card-title {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    color: var(--color-primary);
    margin-bottom: 8px;
}

.card-desc {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.qr-box {
    background: #FFFFFF;
    padding: 24px;
    border-radius: 16px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.qr-code {
    width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.sbp-badge {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--color-accent);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-subtext {
    font-size: var(--fs-base);
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.share-box {
    border-top: 1px dashed rgba(27, 75, 108, 0.2);
    padding-top: 20px;
}

.share-text {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   ЭКРАН 7: ПРИЕЗЖАЙТЕ (ФИНАЛ)
   ========================================================================== */

.final-screen {
    background-color: var(--color-primary);
    color: #FFFFFF;
    padding: 120px 0;
}

.final-container {
    max-width: 700px;
}

.final-title {
    font-family: var(--font-heading);
    font-size: var(--fs-xxl);
    margin-bottom: 20px;
    font-weight: 500;
}

.final-address {
    font-size: var(--fs-md);
    margin-bottom: 36px;
    color: #E2EFF7;
    line-height: 1.6;
}

.final-features {
    list-style: none;
    margin-bottom: 36px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
}

.final-features li {
    font-size: var(--fs-base);
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 18px;
    border-radius: 20px;
}

.final-quote {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-style: italic;
    color: #D4E5F0;
    margin-bottom: 40px;
}

.final-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* ==========================================================================
   ФУТЕР
   ========================================================================== */

.footer {
    background-color: #0F2636;
    color: rgba(255, 255, 255, 0.6);
    padding: 24px 0;
    font-size: var(--fs-sm);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   ИСПРАВЛЕННЫЙ АНИМИРОВАННЫЙ ЛОГОТИП (С ИДЕАЛЬНО ФИКСИРОВАННЫМ ЦЕНТРОМ)
   ========================================================================== */

.logo-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
    
    /* Жесткая фиксация центра трансформации по обоим осям */
    transform-origin: 50% 50%;
    -webkit-transform-origin: 50% 50%;
    
    /* Непрерывная пульсация */
    animation: heartbeat 3.5s infinite ease-in-out;
    -webkit-animation: heartbeat 3.5s infinite ease-in-out;
}

/* Главное изображение логотипа внутри обертки */
.logo-wrapper img,
.final-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto;
    
    /* Избавляемся от вертикальных сдвигов базовых линий */
    vertical-align: middle;
    transform-origin: 50% 50%;
    -webkit-transform-origin: 50% 50%;
}

.header-logo-wrapper {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.final-logo-wrapper {
    width: 300px;
    height: 300px;
    max-width: 80vw;
    max-height: 80vw;
    margin: 0 auto 24px auto;
}

/* Псевдоэлемент блика, изолированный от геометрии */
.logo-wrapper::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 100%;
    height: 200%;
    background: linear-gradient(
        60deg,
        transparent 35%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 65%
    );
    transform: rotate(25deg);
    animation: slowShine 6s infinite ease-in-out;
    -webkit-animation: slowShine 6s infinite ease-in-out;
    pointer-events: none;
    border-radius: 50%;
}

/* ==========================================================================
   KEYFRAMES (АНИМАЦИИ)
   ========================================================================== */

@-webkit-keyframes ticker {
    0% {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    100% {
        -webkit-transform: translate3d(-50%, 0, 0);
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes ticker {
    0% {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    100% {
        -webkit-transform: translate3d(-50%, 0, 0);
        transform: translate3d(-50%, 0, 0);
    }
}

/* Симметричный Heartbeat строго относительно центра 50% 50% */
@-webkit-keyframes heartbeat {
    0% { -webkit-transform: scale(1); transform: scale(1); }
    7% { -webkit-transform: scale(1.04); transform: scale(1.04); }
    14% { -webkit-transform: scale(1); transform: scale(1); }
    21% { -webkit-transform: scale(1.025); transform: scale(1.025); }
    28% { -webkit-transform: scale(1); transform: scale(1); }
    100% { -webkit-transform: scale(1); transform: scale(1); }
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    7% { transform: scale(1.04); }
    14% { transform: scale(1); }
    21% { transform: scale(1.025); }
    28% { transform: scale(1); }
    100% { transform: scale(1); }
}

@-webkit-keyframes slowShine {
    0% { left: -150%; }
    35% { left: 150%; }
    100% { left: 150%; }
}

@keyframes slowShine {
    0% { left: -150%; }
    35% { left: 150%; }
    100% { left: 150%; }
}

/* ==========================================================================
   АДАПТИВНОСТЬ (RESPONSIVE)
   ========================================================================== */

@media (max-width: 992px) {
    .grid-2col {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .photo-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --fs-xl: 1.750rem;  /* 28px */
        --fs-xxl: 2.250rem; /* 36px */
        --fs-lg: 1.125rem;  /* 18px */
    }

    .nav {
        display: none;
    }

    .screen {
        padding: 60px 0;
    }

    .hero-screen {
        padding-top: 60px;
    }

    .hero-actions, .final-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .archive-card {
        position: static;
        width: 100%;
        margin-top: 12px;
    }

    .photo-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   ИСТОРИЧЕСКАЯ ПАМЯТЬ
   Подраздел внутри экрана «Святыни»
   ========================================================================== */

.historical-memory {
    max-width: 1080px;
    margin: 72px auto 0 auto;
    padding-top: 64px;
    border-top: 1px solid rgba(27, 75, 108, 0.12);
}

/* Заголовок подраздела */

.historical-memory-header {
    max-width: 760px;
    margin: 0 auto 44px auto;
    text-align: center;
}

.historical-memory-header .section-tag {
    margin-bottom: 10px;
}

.historical-memory-title {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    line-height: 1.15;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.historical-memory-intro {
    max-width: 680px;
    margin: 0 auto;
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--color-text-muted);
}


/* Две исторические карточки */

.historical-memory-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}


/* Карточка */

.historical-memory-card {
    position: relative;
    background: var(--color-bg-light);
    border: 1px solid rgba(27, 75, 108, 0.10);
    border-radius: 10px;
    padding: 36px 36px 32px 36px;
    transition: var(--transition);
    overflow: hidden;
}

.historical-memory-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(27, 75, 108, 0.08);
    border-color: rgba(27, 75, 108, 0.18);
}


/* Номер 01 / 02 */

.historical-memory-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1;
    font-weight: 500;
    color: var(--color-gold);
    opacity: 0.55;
    margin-bottom: 14px;
}


/* Заголовок карточки */

.historical-memory-card h4 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    line-height: 1.2;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 20px;
}


/* Основной текст */

.historical-memory-card p {
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--color-text-dark);
    margin-bottom: 16px;
}

.historical-memory-card p:last-child {
    margin-bottom: 0;
}


/* Выделенный исторический факт */

.historical-memory-highlight {
    position: relative;
    margin-top: 24px !important;
    padding: 18px 20px 18px 20px;
    background: rgba(255, 255, 255, 0.72);
    border-left: 3px solid var(--color-gold);
    color: var(--color-primary) !important;
    font-size: var(--fs-sm) !important;
    line-height: 1.65 !important;
}


/* Финальная фраза подраздела */

.historical-memory-quote {
    max-width: 760px;
    margin: 44px auto 0 auto;
    padding-top: 28px;
    border-top: 1px solid rgba(27, 75, 108, 0.10);

    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    line-height: 1.5;
    font-style: italic;
    text-align: center;
    color: var(--color-accent);
}


/* ==========================================================================
   АДАПТИВНОСТЬ: ИСТОРИЧЕСКАЯ ПАМЯТЬ
   ========================================================================== */

@media (max-width: 992px) {

    .historical-memory {
        margin-top: 60px;
        padding-top: 52px;
    }

    .historical-memory-grid {
        gap: 20px;
    }

    .historical-memory-card {
        padding: 30px 28px;
    }

    .historical-memory-number {
        font-size: 3rem;
    }

    .historical-memory-card h4 {
        font-size: 1.6rem;
    }
}


@media (max-width: 768px) {

    .historical-memory {
        margin-top: 52px;
        padding-top: 44px;
    }

    .historical-memory-header {
        margin-bottom: 32px;
        padding: 0 8px;
    }

    .historical-memory-title {
        font-size: var(--fs-xl);
    }

    .historical-memory-intro {
        font-size: var(--fs-sm);
        line-height: 1.65;
    }

    .historical-memory-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .historical-memory-card {
        padding: 28px 24px 26px 24px;
    }

    .historical-memory-number {
        font-size: 2.75rem;
        margin-bottom: 10px;
    }

    .historical-memory-card h4 {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }

    .historical-memory-card p {
        font-size: var(--fs-sm);
        line-height: 1.65;
    }

    .historical-memory-highlight {
        padding: 16px 16px 16px 18px;
        margin-top: 20px !important;
    }

    .historical-memory-quote {
        margin-top: 32px;
        padding: 24px 12px 0 12px;
        font-size: var(--fs-md);
    }
}


/* На устройствах без hover убираем лишнюю анимацию */

@media (hover: none) {

    .historical-memory-card:hover {
        transform: none;
        box-shadow: none;
        border-color: rgba(27, 75, 108, 0.10);
    }
}

/* МОДАЛЬНОЕ ОКНО ТРЕБ */
.treba-modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; top: 0; 
    width: 100%; height: 100%; 
    background-color: rgba(0,0,0,0.6); 
    backdrop-filter: blur(4px);
    overflow-y: auto;
}

.treba-modal-content {
    background-color: #FFFFFF;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.treba-close {
    position: absolute; right: 20px; top: 15px;
    font-size: 28px; cursor: pointer; color: var(--color-primary, #1B4B6C);
}

.treba-title {
    font-family: var(--font-heading, serif);
    font-size: 24px; color: var(--color-primary, #1B4B6C);
    margin-bottom: 5px; text-align: center;
}

.treba-subtitle {
    font-size: 14px; color: #666; text-align: center; margin-bottom: 20px;
}

.treba-group { margin-bottom: 18px; }
.treba-label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; }

.treba-tabs { display: flex; gap: 10px; }
.treba-tab-btn {
    flex: 1; text-align: center; padding: 10px; border: 1px solid #ccc;
    border-radius: 6px; cursor: pointer; font-size: 14px;
}
.treba-tab-btn input { display: none; }
.treba-tab-btn:has(input:checked) {
    background-color: #1B4B6C; color: #fff; border-color: #1B4B6C;
}

.treba-input, .treba-textarea {
    width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 6px;
    font-family: inherit; font-size: 14px; box-sizing: border-box;
}

.treba-hint { font-size: 12px; color: #888; display: block; margin-top: 4px; }

.treba-payment-box {
    background-color: #F4F7F9; padding: 15px; border-radius: 8px; margin-bottom: 20px;
}

.treba-calc-result {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 16px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #E0E0E0;
}

.treba-calc-result strong { font-size: 20px; color: #1B4B6C; }

.treba-pay-info { text-align: center; font-size: 13px; color: #444; }
.treba-phone { font-size: 18px; font-weight: bold; color: #2E7D32; margin: 4px 0; }
.treba-pay-note { font-size: 12px; color: #666; }

.treba-submit-btn {
    width: 100%; background-color: #2E7D32; color: #fff; border: none;
    padding: 14px; border-radius: 6px; font-size: 15px; font-weight: 600; cursor: pointer;
}
.treba-submit-btn:hover { background-color: #1B5E20; }

.treba-success-msg { text-align: center; padding: 20px 0; }
