/* ========== ПОДКЛЮЧЕНИЕ ШРИФТА SAGEWOLD ========== */
@font-face {
    font-family: 'Sagewold';
    src: url('fonts/Sagewold.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ========== ОБЩИЕ СТИЛИ ========== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #000000 !important;
    color: #fff;
}
body {
    display: flex;
    flex-direction: column;
}

.full-screen-bg {
	flex: 1;
    min-height: 100vh;
    width: 100%;
    background-color: #000000;
    
}

.content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    width: 100%;
    background-image: url('/images/brmain.jpg');
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
	position: relative;
}
}

/* ========== ЛОГОТИП И ЗАГОЛОВОК - ИСПРАВЛЕНЫ ОТСТУПЫ ========== */
.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin-top: 0rem;  /* Небольшой отступ сверху */
    margin-bottom: 0rem;  /* Отступ снизу до следующего блока */
}

.logo-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
}

.transparent-logo {
    opacity: 1;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Основной текст на логотипе */
.logo-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-46%, -45%);
    width: 100%;
    text-align: center;
    color: #f0e6d2;
    font-size: 8rem;
    font-weight: normal;
    white-space: nowrap;
    letter-spacing: 4px;
    font-family: 'Sagewold';
    text-transform: uppercase;
    background: radial-gradient(ellipse at top, #f5e7ce, #d4b28c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}
/* ===== КНОПКИ ===== */
/* Кнопка "На главную" */
        .home-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(212, 175, 55, 0.15);
            border: 1px solid rgba(212, 175, 55, 0.3);
            border-radius: 20px;
            padding: 0.5rem 1.5rem;
            color: #d4af37;
            text-decoration: none;
            transition: all 0.3s;
            font-weight: 500;
        }
        
        .home-btn:hover {
            background: rgba(212, 175, 55, 0.3);
            border-color: #d4af37;
            color: #e5c158;
        }
        
/* ===== HERO BUTTONS (ПОД ЛОГОТИПОМ) ===== */

.logo-wrapper {
    position: relative;
}

/* контейнер кнопок */
.hero-buttons {
    position: absolute;
    left: 50%;
    bottom: -35px; /* регулируй 30–50px под макет */
    transform: translateX(-50%);
    
    display: flex;
    gap: 14px;
    z-index: 5;
}

/* базовая кнопка */
.btn-main {
    display: inline-block;

    padding: 10px 40px;
    min-width: 220px;

    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;

    border-radius: 2px;
    text-decoration: none;

    transition: all 0.3s ease;
}

/* красная */
.btn-primary {
    background: linear-gradient(180deg, #a10f0f, #4a0000);
    color: #fff;

    border: 1px solid rgba(255,0,0,0.5);
    box-shadow: 0 0 12px rgba(255,0,0,0.35);
}

/* тёмная */
.btn-secondary {
    background: rgba(0,0,0,0.65);
    color: #ddd;

    border: 1px solid rgba(255,255,255,0.2);
}

/* hover */
.btn-main:hover {
    transform: translateY(-2px);
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(255,0,0,0.6);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}
/* Контейнер для дополнительного текста - теперь внутри логотипа */
.logo-extra-text {
    margin-top: 0.5rem;  /* Совсем небольшой отступ от логотипа */
    text-align: center;
    width: 100%;
}

.logo-subtext {
    text-align: center;
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    letter-spacing: 2px;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    position: relative;
    display: inline-block;
    padding: 0 2rem;
    margin-bottom: 0.2rem;  /* Минимальный отступ между строками */
}

.logo-subtext::before,
.logo-subtext::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: linear-gradient(to right, transparent, #d4af37, transparent);
}
.logo-subtext::before { left: -20px; }
.logo-subtext::after { right: -20px; }
.logo-subtext span { color: #d4af37; font-weight: 400; }

.logo-subtext-small {
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    letter-spacing: 1px;
    font-style: italic;
    width: 100%;
    margin-top: 0.2rem;  /* Минимальный отступ */
}
.scroll-mobile {
    scroll-snap-type: x mandatory;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    }
.scroll-mobile .col-md-4 {
    scroll-snap-align: start;
    }
    
/* Адаптив */
@media (max-width: 1200px) { .logo-text { font-size: 7rem; } .logo-subtext { font-size: 1rem; } .content-container { padding:0 25px;} }
@media (max-width: 768px) { .scroll-mobile { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; display: block; width: 100%;} .scroll-mobile .row { flex-wrap: nowrap; margin-left: 0; margin-right: 0;} .scroll-mobile .col-md-4 {flex: 0 0 calc(100% - 32px); width:90%; max-width: 300px;} .scroll-mobile::-webkit-scrollbar {display: none; } .logo-text { font-size: 7rem; letter-spacing: 2px; } .logo-subtext { font-size: 0.9rem; } .logo-subtext-small { font-size: 0.8rem; } .content-container { padding:0 16px;} }
@media (max-width: 480px) { .scroll-mobile { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; display: block; width: 100%;} .scroll-mobile .row { flex-wrap: nowrap; margin-left: 0; margin-right: 0;} .scroll-mobile .col-md-4 {flex: 0 0 calc(100% - 20px); width:100%; max-width: 300px;} .scroll-mobile::-webkit-scrollbar {display: none; }.logo-text { font-size: 5rem; } .logo-subtext { font-size: 0.8rem; } .logo-subtext-small { font-size: 0.7rem; } .content-container { padding:0 10px;} }

/* ========== КАРТА (ОСТАЛОСЬ БЕЗ ИЗМЕНЕНИЙ) ========== */
.feature-card {
    width: 100%;
    margin: 1rem auto;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 25px -8px rgba(255,255,255,0.1), 0 8px 15px rgba(0,0,0,0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(2px);
    cursor: pointer;
    margin-bottom: 1rem;  /* Отступ снизу до следующего блока */
}
.feature-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 30px -6px rgba(255,255,255,0.15), 0 10px 20px rgba(0,0,0,0.8);
}
.feature-row { display: flex; flex-wrap: wrap; background: transparent; border-radius: 20px; }
.feature-image-col {
    flex: 0 0 33.333%;
    background-size: cover; background-position: top left; background-repeat: no-repeat;
    position: relative; border-radius: 20px 0 0 20px; overflow: hidden;
}
.feature-image-col::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.1) 70%, rgba(0,0,0,1) 110%);
    pointer-events: none;
}
.feature-text-col {
    flex: 0 0 66.667%; padding: 2rem; background: transparent; color: white;
    display: flex; flex-direction: column; justify-content: center;
    text-shadow: 1px 1px 2px black; border-radius: 0 20px 20px 0;
}
.feature-text-col h3 { font-size: 2.2rem; margin-bottom: 0.5rem; font-weight: bold; color: white; }
.feature-text-col p { font-size: 1.1rem; opacity: 0.95; line-height: 1.6; color: white; }
@media (max-width: 768px) {
    .feature-row { flex-direction: column; }
    .feature-image-col, .feature-text-col { flex: 0 0 100%; }
    .feature-image-col { border-radius: 20px 20px 0 0; min-height: 200px; }
    .feature-image-col::after { background: linear-gradient(to bottom, rgba(0,0,0,0.1) 70%, rgba(0,0,0,0.8) 100%); }
    .feature-text-col { border-radius: 0 0 20px 20px; padding: 1.5rem; }
    .feature-text-col h3 { font-size: 1.8rem; }
    .feature-text-col p { font-size: 1rem; }
}

/* ========== КАРТОЧКИ  ========== */
.cards-grid { width: 100%; margin: 3rem auto; }
.custom-card { height:100%;
    background: transparent; border: none; border-radius: 15px; overflow: hidden;
    box-shadow: 0 15px 25px -8px rgba(255,255,255,0.1), 0 8px 15px rgba(0,0,0,0.7);
    transition: all 0.3s ease; cursor: pointer; position: relative; height: 100%; color: white;
}
.custom-card:hover { transform: translateY(-10px); box-shadow: 0 20px 30px -6px rgba(255,255,255,0.15), 0 10px 20px rgba(0,0,0,0.8); }
.card-image-wrapper { position: relative; width: 100%; padding-top: 56.25%; background-size: cover; background-position: top center; background-repeat: no-repeat; }
.card-image-wrapper::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); z-index: 1; transition: background 0.3s; }
.custom-card:hover .card-image-wrapper::before { background: rgba(0,0,0,0.2); }
.card-text-bottom { padding: 1.5rem; background: rgba(0,0,0,0.6); text-align: center; }
.card-text-bottom h4 { font-size: 1.5rem; font-weight: bold; margin-bottom: 0.5rem; color: white; }
.card-text-bottom p { font-size: 1rem; opacity: 0.8; margin-bottom: 0; color: white; }
@media (max-width: 768px) { .card-text-bottom h4 { font-size: 1.5rem; } }

/* ========== ССЫЛКИ, ЗАГОЛОВКИ, ОТСТУПЫ ========== */
.card-link { text-decoration: none; color: inherit; display: block; height: 100%; }
.card-link:hover { color: inherit; }
.section-header { text-align: center; margin: 3rem 0 2rem; position: relative; }
.section-header .title-decoration { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.section-header .title-decoration .line { height: 2px; width: 30rem; background: linear-gradient(to right, transparent, #d4af37, transparent); }
.section-header .subtitle { color: #d4af37; font-size: 1.5rem; font-weight: bold; letter-spacing: 4px; text-transform: uppercase; }
.subtitle-link {
    text-decoration: none;
    color: inherit !important;
    transition: all 0.2s ease;
}

.subtitle-link:hover {
    color: #d4af37;
    text-shadow:
        0 0 4px rgba(212,175,55,0.7),
        0 0 12px rgba(212,175,55,0.5);
}

@media (max-width: 768px) {
    .section-header .subtitle { font-size: 1.5rem; }
    .section-header .title-decoration .line { width: 6rem; }
}
.top-section { padding-top: 0; padding-bottom: 0; }
.bottom-section { padding-bottom: 2rem; }

/* ========== СТИЛИ ДЛЯ СТРАНИЦ СТАТЕЙ ========== */
.article-container { max-width: 100%; margin: 0 auto; padding: 2rem 20px; width: 100%; }
.article-back-button { display: inline-block; margin-bottom: 2rem; margin-top: 2rem; font-size: 1.5rem; font-weight: bold; text-decoration: none; text-transform: uppercase; color: white; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); position: relative; transition: color 0.3s; }
.article-back-button:hover { color: #d4af37; text-shadow: 0 0 4px rgba(212,175,55,0.7),0 0 12px rgba(212,175,55,0.5);}
.article-back-button i { margin-right: 0.5rem; }
.article-header { margin-bottom: 2rem; position: relative; }
.article-title { font-size: 3rem; font-weight: bold; color: white; margin-bottom: 0.5rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); position: relative; display: inline-block; }
.article-title::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 80px; height: 2px; background: linear-gradient(to right, #d4af37, transparent); }
.article-meta { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-top: 1rem; }
.article-featured-image { width: 100%; height: 350px; background-size: cover; background-position: top center; border-radius: 15px; margin-bottom: 2rem; box-shadow: 0 15px 25px -8px rgba(0,0,0,0.7); position: relative; overflow: hidden; }
.article-featured-image::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.5) 100%); pointer-events: none; }
.article-content { background: rgba(0,0,0,0.6); backdrop-filter: blur(3px); border-radius: 15px; padding: 2rem; box-shadow: 0 10px 20px -5px rgba(0,0,0,0.7); color: white; line-height: 1.7; font-size: 1.1rem; }
.article-content h2 { font-size: 2rem; margin: 2rem 0 1rem; color: #d4af37; border-bottom: 1px solid rgba(212, 175, 55, 0.3); padding-bottom: 0.5rem; }
.article-content h3 { font-size: 1.5rem; margin: 1.5rem 0 1rem; color: rgba(255,255,255,0.9); }
.article-content p { margin-bottom: 1.2rem; opacity: 0.95; }
.article-content ul, .article-content ol { margin-bottom: 1.5rem; padding-left: 1.8rem; }
.article-content li { margin-bottom: 0.5rem; }
.article-content blockquote { border-left: 3px solid #d4af37; padding-left: 1.2rem; margin: 1.5rem 0; font-style: italic; color: rgba(255,255,255,0.8); background: rgba(0,0,0,0.3); border-radius: 0 10px 10px 0; padding: 1rem; }
.article-content img { max-width: 100%; border-radius: 10px; margin: 1rem 0; opacity: 0.9; }
.article-footer { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.article-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.article-tag { padding: 0.2rem 0.8rem; background: rgba(212, 175, 55, 0.15); border: 1px solid rgba(212, 175, 55, 0.2); border-radius: 20px; color: #d4af37; font-size: 0.85rem; }
@media (max-width: 768px) {
    .article-title { font-size: 2rem; }
    .article-featured-image { height: 250px; }
    .article-content { padding: 1rem; }
    .article-content h2 { font-size: 1.6rem; }
}

.top-contacts {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    z-index: 10;
}

.contact-left {
    position: absolute;
    left: 20px;
}

.contact-right {
    position: absolute;
    right: 20px;
}

/* стиль текста */
.top-contacts a {
    text-decoration: none;
	text-transform: uppercase;
	font-weight: bold; 
    color: rgba(255,255,255,0.85);
    font-size: 1.3rem;
    letter-spacing: 1px;
    transition: all 0.25s ease;
}

/* hover в твоём стиле */
.top-contacts a:hover {
    color: #d4af37;
    text-shadow: 0 0 6px rgba(212,175,55,0.5);
}
@media (max-width: 768px) {
    .top-contacts a {
        font-size: 0.8rem;
    }

    .contact-left {
        left: 10px;
    }

    .contact-right {
        right: 10px;
    }
}