/*
Theme Name: bfc
Version: 1
Description:
Author: onKONON
Author URI: 
Theme URI: 

All files, unless otherwise stated, are released under the GNU General Public
License version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html)

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned
with others.
*/

/*
 * afgan
*/

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
            line-height: 1.6;
            color: #3a2c1f;
            background-color: #f5f1e8;
            background-image: 
                linear-gradient(rgba(245, 241, 232, 0.95), rgba(245, 241, 232, 0.95)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M30,70 Q50,30 70,70" stroke="%2390816d" stroke-width="0.5" opacity="0.1" fill="none"/><path d="M20,60 Q50,20 80,60" stroke="%237a6b57" stroke-width="0.4" opacity="0.08" fill="none"/></svg>');
            background-size: cover;
            background-attachment: fixed;
            scroll-behavior: smooth;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* Hero секция */
        .hero {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: #3a2c1f;
            padding: 2rem;
            position: relative;
            overflow: hidden;
            background: url('https://bfc.rcbs-bar.by/wp-content/uploads/2025/12/afganistan-2.jpg');
			background-position: center;
			background-repeat: no-repeat;
			background-size: inherit;
			background-attachment: fixed;
        }
        
        .hero-content {
            position: relative;
            //z-index: 2;
            max-width: 800px;
            padding: 2rem;
            background: rgba(255, 253, 248, 0.85);
            border-radius: 15px;
            border: 1px solid rgba(139, 115, 85, 0.2);
            box-shadow: 0 10px 30px rgba(139, 115, 85, 0.1);
        }
        
        .hero-title {
            font-size: 3.2rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            line-height: 1.2;
            color: #5d4037;
            text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
        }
        
        .hero-subtitle {
            font-size: 1.3rem;
            font-weight: 400;
            margin-bottom: 2rem;
            color: #6d5c4b;
            font-style: italic;
        }
        
        /* Секции */
        .section {
            padding: 5rem 0;
            background: rgba(255, 253, 248, 0.95);
            margin: 0;
            position: relative;
            min-height: 100vh;
            /*display: flex;
            flex-direction: column;*/
            justify-content: center;
            border-top: 1px solid rgba(139, 115, 85, 0.1);
            border-bottom: 1px solid rgba(139, 115, 85, 0.1);
        }
        
        .section:nth-child(even) {
            background: rgba(245, 241, 232, 0.95);
        }
        
        .section:nth-child(odd)::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #a1887f, #8d6e63);
        }
        
        .section-title {
            font-size: 2.2rem;
            color: #5d4037;
            margin-bottom: 2rem;
            text-align: center;
            font-weight: 700;
            position: relative;
            padding-bottom: 1rem;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 3px;
            background: linear-gradient(90deg, #a1887f, #8d6e63);
            border-radius: 2px;
        }
        
        /* Карточки */
        .cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }
        
        .card {
            background: rgba(255, 253, 248, 0.9);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(139, 115, 85, 0.1);
            transition: all 0.3s ease;
            border: 1px solid rgba(139, 115, 85, 0.15);
            backdrop-filter: blur(5px);
        }
        
        .card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 30px rgba(139, 115, 85, 0.2);
            border-color: #8d6e63;
        }
        
        .card-img {
            height: 200px;
            background: linear-gradient(45deg, #8d6e63, #a1887f);
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgba(255, 253, 248, 0.95);
            font-size: 3rem;
            position: relative;
            overflow: hidden;
        }
        
        .card-img::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
            animation: shine 3s infinite linear;
        }
        
        @keyframes shine {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .card-content {
            padding: 1.5rem;
        }
        
        .card-title {
            font-size: 1.3rem;
            color: #5d4037;
            margin-bottom: 1rem;
            font-weight: 600;
        }
        
        .card p {
            color: #6d5c4b;
            line-height: 1.6;
        }
        
        /* Блок с кнопками (вместо галереи) */
        .buttons-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 1.5rem;
            margin-top: 2rem;
        }
        
        .theme-button {
            position: relative;
            height: 120px;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid rgba(139, 115, 85, 0.3);
            box-shadow: 0 5px 15px rgba(139, 115, 85, 0.15);
            cursor: pointer;
            transition: all 0.4s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            text-decoration: none;
        }
        
        .theme-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-size: cover;
            background-position: center;
            transition: transform 0.6s ease;
            //z-index: 1;
        }
        
        .theme-button::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to bottom, rgba(58, 44, 31, 0.7), rgba(93, 64, 55, 0.8));
            //z-index: 2;
        }
        
        /* Фоновые изображения для кнопок */
        .button-1::before { background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url(''); }
        .button-2::before { background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://bfc.rcbs-bar.by/wp-content/uploads/2026/02/papinypisma2-e1589012362284.jpg'); }
        .button-3::before { background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url(''); }
        .button-4::before { background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url(''); }
        .button-5::before { background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1544022616-d5dc7c41e3c1?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80'); }
        .button-6::before { background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://bfc.rcbs-bar.by/wp-content/uploads/2026/02/i-1.jpg'); }
        .button-7::before { background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1541963463532-d68292c34b19?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80'); }
        .button-8::before { background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://bfc.rcbs-bar.by/wp-content/uploads/2026/02/1679819839_papik-pro-p-afganistan-peizazhi-22.jpg'); }
        .button-9::before { background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1511379938547-c1f69419868d?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80'); }
        
        .theme-button:hover {
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 15px 30px rgba(139, 115, 85, 0.3);
            border-color: #a1887f;
        }
        
        .theme-button:hover::before {
            transform: scale(1.1);
        }
        
        .theme-button:hover .button-text {
            transform: translateY(-3px);
            text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
        }
        
        .button-text {
            position: relative;
            z-index: 3;
            color: #fff;
            font-size: 1.1rem;
            font-weight: 600;
            padding: 0 15px;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
            transition: all 0.3s ease;
        }
        
        /* Стрелки для навигации между секциями */
        .section-nav {
            position: absolute;
            bottom: 60px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 10;
            text-align: center;
        }
        
        .nav-arrow {
            display: inline-block;
            width: 50px;
            height: 50px;
            background: rgba(141, 110, 99, 0.55);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #5d4037;
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            border: 1px solid rgba(141, 110, 99, 0.5);
        }
        
        .nav-arrow:hover {
            background: rgba(141, 110, 99, 0.75);
            color: #3a2c1f;
            transform: translateY(3px);
            border-color: #8d6e63;
        }
        
        /* Кнопка "Наверх" */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 60px;
            height: 60px;
            background: rgba(141, 110, 99, 0.85);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fffdf8;
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid rgba(255, 253, 248, 0.3);
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
            backdrop-filter: blur(5px);
            box-shadow: 0 5px 20px rgba(139, 115, 85, 0.3);
        }
        
        .back-to-top.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        
        .back-to-top:hover {
            background: rgba(93, 64, 55, 0.95);
            transform: translateY(-5px);
            border-color: rgba(255, 253, 248, 0.5);
            box-shadow: 0 8px 25px rgba(139, 115, 85, 0.4);
        }
        
        /* Счетчики */
        .counters {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
            margin: 3rem 0;
        }
        
        .counter-item {
            text-align: center;
            padding: 2rem;
            background: rgba(255, 253, 248, 0.9);
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(139, 115, 85, 0.08);
            border: 1px solid rgba(139, 115, 85, 0.1);
            backdrop-filter: blur(5px);
        }
        
        .counter-number {
            font-size: 2.8rem;
            font-weight: 800;
            color: #8d6e63;
            margin-bottom: 0.5rem;
            line-height: 1;
        }
        
        .counter-label {
            color: #6d5c4b;
            font-size: 0.95rem;
            font-weight: 500;
        }
        
        /* Подвал */
        .footer {
            background: #3a2c1f;
            color: #d7ccc8;
            padding: 4rem 0 2rem;
            margin-top: 0;
            border-top: 3px solid #8d6e63;
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 3rem;
            margin-bottom: 2rem;
        }
        
        .footer-title {
            font-size: 1.2rem;
            margin-bottom: 1.5rem;
            color: #d7ccc8;
            font-weight: 600;
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 0.8rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .footer-links a {
            color: #a1887f;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        .footer-links a:hover {
            color: #d7ccc8;
            text-decoration: underline;
        }
        
        .footer-links i {
            color: #8d6e63;
            width: 20px;
        }
        
        .copyright {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid rgba(215, 204, 200, 0.2);
            color: #a1887f;
            font-size: 0.9rem;
        }
        
        /* Анимации */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .animate {
            animation: fadeIn 0.8s ease forwards;
        }
        
        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
            40% { transform: translateY(-8px) translateX(-50%); }
            60% { transform: translateY(-4px) translateX(-50%); }
        }
        
        .bounce {
            animation: bounce 2s infinite;
        }
        
        /* Текстовый контент */
        .about-content p {
            font-size: 1.15rem;
            line-height: 1.8;
            margin-bottom: 1.5rem;
            color: #5d4037;
            text-align: center;
        }
        
        /* Иконки */
        .icon {
            font-size: 2rem;
            margin-bottom: 1rem;
            color: #8d6e63;
        }
        
        /* Адаптивность */
        @media (max-width: 768px) {
            .hero-title {
                font-size: 2.4rem;
            }
            
            .hero-subtitle {
                font-size: 1.1rem;
            }
            
            .hero-content {
                padding: 1.5rem;
            }
            
            .section {
                padding: 3rem 0;
            }
            
            .section-title {
                font-size: 1.8rem;
            }
            
            .cards-grid, .buttons-grid {
                grid-template-columns: 1fr;
            }
            
            .theme-button {
                height: 100px;
            }
            
            .button-text {
                font-size: 1rem;
            }
            
            .nav-arrow {
                width: 45px;
                height: 45px;
                font-size: 1.3rem;
            }
            
            .back-to-top {
                width: 50px;
                height: 50px;
                bottom: 20px;
                right: 20px;
                font-size: 1.3rem;
            }
            
            .counters {
                grid-template-columns: repeat(2, 1fr);
                gap: 1rem;
            }
            
            .counter-item {
                padding: 1.5rem;
            }
            
            .counter-number {
                font-size: 2.2rem;
            }
        }
        
        @media (max-width: 480px) {
            .hero-title {
                font-size: 2rem;
            }
            
            .counters {
                grid-template-columns: 1fr;
            }
        }
        
        /* Эффект старинной бумаги */
        body::before {
            content: "";
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            //background-image: 
                //radial-gradient(circle at 10% 20%, rgba(210, 180, 140, 0.05) 0%, transparent 20%),
                //radial-gradient(circle at 90% 80%, rgba(139, 115, 85, 0.05) 0%, transparent 20%);
            pointer-events: none;
            z-index: -1;
        }