/* ============================================
   ROOT VARIABLES - ГЛОБАЛЬНЫЕ ЦВЕТА
   ============================================ */
:root {
    --bg-deep: #121F30;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --gold: #C5A55E;
    --gold-dark: #A88848;
    --emerald: #086739;
    --text-primary: #F6F1E7;
    --text-secondary: rgba(246, 241, 231, 0.65);
    --text-muted: rgba(246, 241, 231, 0.4);
    --border-light: rgba(255, 255, 255, 0.06);
    --border-gold: rgba(197, 165, 94, 0.25);
    --transition: all 0.25s ease;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.5;
    scroll-behavior: smooth;
}

/* ============================================
   ФОНОВЫЙ ОРНАМЕНТ С ЗАТУХАНИЕМ К ЦЕНТРУ
   ============================================ */

body {
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;  /* Помещаем орнамент под всё содержимое */
    background-image: url('../images/ornament-bg.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    opacity: 1;
}

/* Не задаём z-index для всех элементов, чтобы не мешать хедеру */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 500;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: 36px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 48px;
}

.section-title span {
    color: var(--gold);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--bg-deep);
}

.btn-primary:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-gold);
    color: var(--gold);
}

.btn-outline:hover {
    background: rgba(197, 165, 94, 0.1);
    border-color: var(--gold);
}

/* Cards */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-gold);
    transform: translateY(-4px);
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Responsive */
@media (max-width: 1100px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .section-title { font-size: 28px; margin-bottom: 32px; }
}








/* ============================================
   HEADER - ОБНОВЛЁННЫЕ СТИЛИ (БЕЗ ПОДМЕНЮ)
   ============================================ */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    width: calc(100% - 40px);
    height: 80px;
    background: rgba(18, 31, 48, 0.92);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 0 28px;
    border: 1px solid rgba(197, 165, 94, 0.2);
}

/* Логотип */
.site-header .logo img {
    height: 45px;
}

/* Навигация */
.site-header .nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header .nav-menu a {
    color: rgba(246, 241, 231, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.2s;
    position: relative;
    white-space: nowrap;
}

.site-header .nav-menu a:hover,
.site-header .nav-menu a.active {
    color: #C5A55E;
}

.site-header .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #C5A55E;
    transition: width 0.25s;
}

.site-header .nav-menu a:hover::after,
.site-header .nav-menu a.active::after {
    width: 100%;
}

/* Таймер до следующей молитвы */
.prayer-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(197, 165, 94, 0.12);
    padding: 6px 16px 6px 12px;
    border-radius: 40px;
    border: 1px solid rgba(197, 165, 94, 0.25);
    transition: all 0.2s;
    text-decoration: none;
    cursor: pointer;
}

.prayer-timer:hover {
    background: rgba(197, 165, 94, 0.2);
    border-color: rgba(197, 165, 94, 0.4);
    transform: translateY(-1px);
}

.prayer-timer:active {
    transform: translateY(0);
}

.prayer-timer-icon {
    width: 32px;
    height: 32px;
    background: rgba(197, 165, 94, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prayer-timer-icon i {
    font-size: 16px;
    color: #C5A55E;
}

.prayer-timer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.prayer-timer-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(246, 241, 231, 0.5);
    text-transform: uppercase;
}

.prayer-timer-value {
    font-size: 18px;
    font-weight: 600;
    font-family: monospace;
    color: #C5A55E;
    letter-spacing: 1px;
}

/* Бургер-меню */
.site-header .burger {
    display: none;
    cursor: pointer;
}

/* ============================================
   АДАПТИВНОСТЬ ХЕДЕРА
   ============================================ */

@media (max-width: 1300px) {
    .site-header .nav-menu {
        gap: 14px;
    }
    
    .site-header .nav-menu a {
        font-size: 13px;
    }
}

@media (max-width: 1100px) {
    .site-header .nav-menu {
        gap: 10px;
    }
    
    .site-header .nav-menu a {
        font-size: 12px;
    }
}

@media (max-width: 992px) {
    body {
        padding-top: 100px;
    }
    
    .site-header {
        height: 70px;
        top: 15px;
        padding: 0 20px;
    }
    
    .site-header .logo img {
        height: 38px;
    }
    
    .site-header .prayer-timer {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 85px;
    }
    
    .site-header {
        height: 60px;
        top: 12px;
        padding: 0 20px;
    }
    
    .site-header .logo img {
        height: 34px;
    }
    
    .site-header .nav-menu {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        background: rgba(18, 31, 48, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 12px;
        border-top: 1px solid rgba(197, 165, 94, 0.2);
        z-index: 999;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }
    
    .site-header .nav-menu.active {
        display: flex;
    }
    
    .site-header .nav-menu a {
        text-align: center;
        padding: 12px;
        font-size: 15px;
        white-space: normal;
    }
    
    .site-header .nav-menu a::after {
        display: none;
    }
    
    .site-header .burger {
        display: block;
    }
}

@media (max-width: 480px) {
    .site-header {
        width: calc(100% - 20px);
        padding: 0 16px;
    }
    
    .site-header .nav-menu {
        top: 68px;
        padding: 20px;
    }
}

/* ============================================
   FOOTER - ЕДИНЫЙ СТИЛЬ
   ============================================ */
.footer {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-light);
    margin-top: 60px;
}

.footer .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--gold);
    margin-bottom: 20px;
}

.footer-col p, .footer-col a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    line-height: 2;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--gold);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 16px;
}

.social-links a {
    font-size: 18px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    font-size: 12px;
    color: var(--text-muted);
}

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer .container {
        padding: 0 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}























/* ============================================
   CONTACTS SECTION
   ============================================ */
.contacts-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.contacts-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.contact-card:hover {
    border-color: var(--border-gold);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(197, 165, 94, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 22px;
    color: var(--gold);
}

.contact-details h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 6px;
}

.contact-details p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.contact-details a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-details a:hover {
    color: var(--gold);
}

.contacts-map {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-light);
    min-height: 400px;
}

.map-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* Responsive */
@media (max-width: 1100px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .contacts-info {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contacts-map {
        min-height: 350px;
    }
}

@media (max-width: 600px) {
    .contacts-info {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        padding: 16px;
    }
    
    .contacts-map {
        min-height: 300px;
    }
}