/* Empty CSS file for future styling */ 

/* --- Сброс и базовые стили --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Основные стили для bitnefill.com в стиле modern magazine/news portal */

body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fdfdfd;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #81C784;
}

ul, ol {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Заголовки --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

/* --- Кнопки --- */
.btn {
    display: inline-block;
    background-color: #4CAF50;
    color: #fff;
    padding: 10px 20px;
    border-radius: 3px;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #81C784;
    color: #fff;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* --- Шапка и навигация --- */
header {
    background-color: #f3f3f3;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.logo h1 {
    font-size: 2.2rem;
    margin-bottom: 0;
    color: #4CAF50;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* === МОБИЛЬНОЕ МЕНЮ === */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    display: block;
    padding: 10px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 0;
    background-color: #4CAF50;
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

/* --- Hero Banner (Новый) --- */
.hero-banner {
    position: relative;
    height: 600px;
    background: url('../images/imag_1.jpg') no-repeat center center;
    background-size: cover;
    background-position: center 40%;
    margin-bottom: 40px;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(45deg, rgba(51, 51, 51, 0.54) 0%, rgba(51, 51, 51, 0.42) 100%);
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-banner .hero-content {
    max-width: 800px;
    margin: 0 auto;
    color: #fdfdfd;
    padding: 0 20px;
}

.hero-banner h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #fdfdfd;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-banner p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* --- Герой-секция --- */
.hero {
    background-color: #f3f3f3;
    color: #333;
    padding: 80px 0;
    margin-bottom: 40px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    color: #333;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* --- Заголовки страниц --- */
.page-header {
    background-color: #f3f3f3;
    color: #333;
    padding: 40px 0;
    margin-bottom: 40px;
}

.page-header h1 {
    color: #333;
    margin-bottom: 10px;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 0.9rem;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
}

/* --- Структура страницы --- */
.page-content {
    padding: 40px 0;
    background-color: #fdfdfd;
}

.main-content {
    width: 70%;
    padding-right: 30px;
}

.sidebar {
    width: 30%;
    background-color: transparent;
    padding: 0;
}

.sidebar .widget {
    background-color: #f3f3f3;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
}

/* --- Боковая панель --- */
.sidebar {
    width: 100%;
    display: flex !important;
    flex-direction: row !important;
    gap: 20px;
    margin-top: 40px;
    align-items: stretch;
}

.sidebar .widget {
    width: calc(50% - 10px) !important;
    margin: 0 !important;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0;
}

/* --- Секции --- */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #4CAF50;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* --- Сетка и карточки --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: #f3f3f3;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-img {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-bottom: 10px;
    color: #333;
}

.card-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- Popular Tags (Новый) --- */
.popular-tags {
    text-align: center;
    margin-bottom: 40px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.tag-item {
    background-color: #f3f3f3;
    color: #333;
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background-color: #4CAF50;
    color: #fff;
    transform: translateY(-2px);
}

.tag-sm { font-size: 0.9rem; }
.tag-md { font-size: 1.1rem; }
.tag-lg { font-size: 1.3rem; }
.tag-xl { font-size: 1.5rem; }

/* --- User Reviews (Новый) --- */
.user-reviews {
    background-color: #f3f3f3;
    padding: 60px 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: #fdfdfd;
    padding: 30px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-content {
    margin-bottom: 20px;
}

.quote-icon {
    font-size: 3rem;
    color: #4CAF50;
    position: absolute;
    top: 15px;
    right: 20px;
    opacity: 0.3;
}

.review-content p {
    font-style: italic;
    line-height: 1.6;
    color: #333;
    margin-bottom: 0;
}

.reviewer {
    display: flex;
    align-items: center;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-info h4 {
    margin-bottom: 5px;
    color: #333;
}

.review-date {
    color: #666;
    font-size: 0.9rem;
}

/* --- Subscribe Section (Новый) --- */
.subscribe-section {
    background-color: #4CAF50;
    color: #fff;
    padding: 60px 0;
}

.subscribe-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subscribe-content {
    margin-bottom: 30px;
}

.subscribe-content h2 {
    margin-bottom: 15px;
    color: #fff;
}

.subscribe-content p {
    font-size: 1.1rem;
    color: #fff;
}

.subscribe-form {
    display: flex;
    width: 100%;
    max-width: 400px;
}

.subscribe-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 3px 0 0 3px;
    font-size: 1rem;
}

.subscribe-form .btn {
    border-radius: 0 3px 3px 0;
    background-color: #333;
}

.subscribe-form .btn:hover {
    background-color: #555;
}

/* --- Блог и статьи --- */
.blog-post {
    background-color: #fff;
    border-radius: 5px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.blog-post .featured-image {
    margin: -30px -30px 30px -30px; width: calc(100% + 60px);
    overflow: hidden;
    text-align: center;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    
}

/* Специальные стили для digital_gifting_vs_physical.html */
body[data-page="digital-gifting"] .blog-post .featured-image {
    margin: -30px -30px 30px -30px;
    width: calc(100% + 60px);
    position: relative;
    text-align: center;
}

body[data-page="digital-gifting"] .blog-post .featured-image img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 auto !important;
    max-width: none !important;
}

.blog-post .featured-image img,
article .featured-image img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
    object-fit: cover !important; width: 100% !important; max-width: none !important;
    border: none !important;
    outline: none !important;
}

.article-content {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-tags {
    margin: 20px 0;
}

.tag {
    display: inline-block;
    background-color: #f3f3f3;
    color: #333;
    padding: 5px 12px;
    margin: 0 5px 5px 0;
    border-radius: 15px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #4CAF50;
    color: #fff;
}

.article-share {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f3f3f3;
}

.related-posts {
    margin-top: 40px;
    padding: 30px;
    background-color: #f3f3f3;
}

.related-posts h3 {
    margin-bottom: 20px;
    color: #333;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-grid .card-img {
    height: 150px;
    background-color: #f3f3f3;
    border-radius: 5px;
    overflow: hidden;
}

.related-grid .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-grid .card-content {
    padding: 15px 0;
}

.related-grid .card-content h3 {
    font-size: 1.1rem;
    color: #333;
}

/* --- Виджеты --- */
.widget {
    background-color: #f3f3f3;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.widget:hover {
    border-color: #4CAF50;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.1);
}

.widget h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.widget h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: #4CAF50;
    bottom: 0;
    left: 0;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(51, 51, 51, 0.1);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li i, 
.widget ul li .icon {
    color: #4CAF50;
    margin-right: 8px;
    width: 16px;
}

.widget ul li a {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.widget ul li a:hover {
    color: #4CAF50;
}

/* --- О нас и контакты --- */
.about-section, .contact-info {
    background-color: #fdfdfd;
    padding: 60px 0;
    color: #333;
}

.contact-details {
    background-color: #f3f3f3;
    padding: 40px;
    border-radius: 10px;
}

.contact-details h3 {
    margin-bottom: 20px;
    color: #333;
}

/* --- Футер --- */
footer {
    background-color: #333;
    color: #fdfdfd;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo h3 {
    color: #4CAF50;
    margin-bottom: 15px;
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 15px;
    color: #4CAF50;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #fdfdfd;
}

.footer-links a:hover {
    color: #81C784;
}

.footer-contact address {
    font-style: normal;
    line-height: 1.6;
    color: #fdfdfd;
}

.footer-contact a {
    color: #4CAF50;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #ccc;
}

/* --- Адаптивность --- */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .page-content {
        flex-direction: column;
    }
    
    .main-content {
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .sidebar {
        flex-direction: column;  /* На мобильных в столбец */
        max-width: 100%;
        width: 100%;
        gap: 20px;
    }
    
    .sidebar .widget {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .main-nav a {
        font-size: 1rem;
    }
    
    .hero-banner {
        height: 500px;
    }
    
    .hero-banner h1 {
        font-size: 2.8rem;
    }
    
    .subscribe-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    .sidebar {
        flex-direction: row;  /* На планшетах можно оставить в строку */
    }
}

@media (max-width: 768px) {
    /* === МОБИЛЬНОЕ МЕНЮ === */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    .main-nav li {
        margin: 0 0 15px 0;
        width: 100%;
    }
    
    .main-nav a {
        font-size: 1.1rem;
        padding: 15px 0;
        border-bottom: 1px solid #eee;
        display: block;
        width: 100%;
    }
    
    .main-nav a::after {
        bottom: 0;
        height: 1px;
    }
    
    /* Overlay для мобильного меню */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* === ОСТАЛЬНЫЕ МОБИЛЬНЫЕ СТИЛИ === */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    header .container {
        flex-direction: row; /* Оставляем в строку для мобильного меню */
    }
    
    .logo {
        margin-bottom: 0; /* Убираем отступ */
    }
    
    .blog-post .featured-image {
        
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo, .footer-links, .footer-contact {
        margin-bottom: 30px;
    }
    
    .widget h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .section-title, .widget h3 {
        text-align: center;
    }
    
    .hero-banner {
        height: 400px;
    }
    
    .hero-banner h1 {
        font-size: 2.2rem;
    }
    
    .hero-banner p {
        font-size: 1.2rem;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .card-img {
        height: 180px;
    }
    
    .blog-post {
        padding: 20px;
    }
    
    .blog-post .featured-image {
        margin: -20px -20px 20px -20px; width: calc(100% + 40px);
        
    }
    
    .article-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .page-header {
        padding: 30px 0;
    }
    
    .contact-details {
        grid-template-columns: 1fr;
    }
    
    .hero-banner {
        height: 350px;
    }
    
    .hero-banner h1 {
        font-size: 1.8rem;
    }
    
    .hero-banner p {
        font-size: 1rem;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .subscribe-form input {
        border-radius: 3px;
        margin-bottom: 10px;
    }
    
    .subscribe-form .btn {
        border-radius: 3px;
        width: 100%;
    }
    
    /* Мобильное меню для очень маленьких экранов */
    .main-nav {
        width: 100%;
        right: -100%;
        padding: 70px 20px 20px;
    }
    
    .mobile-menu-toggle {
        width: 25px;
        height: 25px;
    }
}

/* --- Дополнительные классы для виджетов и компонентов --- */
.content-placeholder {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
    color: #6c757d;
    border: 1px dashed #ced4da;
    text-align: center;
    margin: 20px 0;
}

.form-placeholder, .map-placeholder {
    background-color: #f8f9fa;
    border-radius: 5px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    border: 1px dashed #ced4da;
    margin: 20px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
    justify-items: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Для больших экранов - принудительно 3 колонки */
@media (min-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Для планшетов - 2 колонки */
@media (min-width: 577px) and (max-width: 991px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }
}

/* Для контейнеров блога */
.blog-grid .grid-container {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Стили для featured-articles и crypto-articles */
.featured-articles, .crypto-articles {
    padding: 40px 0;
}

.crypto-articles {
    background-color: #f4f6f9;
}

/* Стили для ссылок с подчеркиванием */
.underline-link {
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.underline-link:hover {
    border-color: #e74c3c;
}

/* Анимации появления */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.5s ease-out forwards;
}

.about-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 0;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* --- Виджеты --- */
.widget.popular-articles, .widget.resources {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Принудительное применение стилей */
@media screen and (min-width: 993px) {
    .sidebar {
        display: flex !important;
        flex-direction: row !important;
    }
    
    .sidebar .widget {
        width: calc(50% - 10px) !important;
    }
}

/* Специальные стили для главной страницы */
body .page-content .sidebar {
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

body .page-content {
    margin-bottom: 40px;
}

/* --- Секция О чём этот блог --- */
.intro-section {
    background-color: #fff;
    padding: 60px 0;
    margin-bottom: 30px;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.intro-content p {
    margin-bottom: 20px;
}

.intro-content p:last-child {
    margin-bottom: 0;
}

/* --- Для мобильных устройств --- */
@media (max-width: 768px) {
    .intro-section {
        padding: 40px 0;
    }
    
    .intro-content {
        font-size: 1rem;
        line-height: 1.7;
    }
}

/* Стили для формы обратной связи */
.contact-form-container {
    background-color: #fdfdfd;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.message-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #f3f3f3;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: #fdfdfd;
    color: #333;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background-color: #4CAF50;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background-color: #81C784;
}

/* Стили для карты */
.map-container {
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
    border-radius: 10px;
}

/* Медиа-запросы для адаптивности формы и карты */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 20px;
    }
    
    .btn-submit {
        padding: 12px 20px;
    }
    
    .map-container iframe {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .message-form {
        grid-gap: 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
    }
    
    .map-container iframe {
        
    }
}

/* --- Социальные иконки --- */
.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.share-buttons .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.share-buttons .social-icon:hover {
    transform: translateY(-2px);
}

.share-buttons .social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.share-buttons .facebook {
    background-color: #3b5998;
}

.share-buttons .twitter {
    background-color: #1da1f2;
}

.share-buttons .telegram {
    background-color: #0088cc;
}

.share-buttons .whatsapp {
    background-color: #25d366;
}

/* --- Стили для изображений (убранные из inline) --- */
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Специальный стиль для Holiday Gift Cards изображения */
.card-img.holiday-cards img {
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* === LAZY LOADING === */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* Placeholder для lazy loading изображений */
.img-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* === УЛУЧШЕННАЯ АДАПТИВНОСТЬ ИЗОБРАЖЕНИЙ === */
.responsive-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

/* Адаптивные изображения для разных экранов */
@media (max-width: 480px) {
    .card-img {
        height: 160px;
    }
    
    .hero-banner {
        background-attachment: scroll; /* Убираем fixed на мобильных для производительности */
    }
    
    .review-card {
        padding: 20px;
    }
    
    .reviewer-avatar {
        width: 50px;
        height: 50px;
    }
}

/* Адаптивные контейнеры */
@media (max-width: 320px) {
    .container {
        padding: 0 8px;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .card-content {
        padding: 10px;
    }
    
    .mobile-menu-toggle {
        width: 22px;
        height: 22px;
    }
}

/* === УЛУЧШЕНИЯ ПРОИЗВОДИТЕЛЬНОСТИ === */
/* Оптимизация анимаций */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-banner {
        background-attachment: scroll;
    }
}

/* Оптимизация для retina дисплеев */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img img,
    .article-image img,
    .featured-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* === ДОПОЛНИТЕЛЬНЫЕ КЛАССЫ ДЛЯ АДАПТИВНОСТИ === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }

.hide-mobile { display: block; }
.show-mobile { display: none; }

@media (max-width: 768px) {
    .hide-mobile { display: none; }
    .show-mobile { display: block; }
    
    .show-mobile.d-flex { display: flex; }
    .show-mobile.d-inline-block { display: inline-block; }
}

/* === УЛУЧШЕНИЯ ДОСТУПНОСТИ === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Улучшенный фокус для клавиатурной навигации */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}

/* Высокий контраст для лучшей читаемости */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid #fff;
    }
}

/* Ландшафтная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-banner {
        
    }
    
    .hero-banner h1 {
        font-size: 1.8rem;
    }
    
    .hero-banner p {
        font-size: 1rem;
    }
    
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Планшеты в портретной ориентации */
@media (min-width: 769px) and (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .card-img {
        height: 220px;
    }
    
    .hero-banner h1 {
        font-size: 2.8rem;
    }
    
    .container {
        padding: 0 20px;
    }
}

/* Высокое разрешение (Retina и выше) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img img,
    .article-image img,
    .featured-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Темная тема для устройств с поддержкой */
@media (prefers-color-scheme: dark) {
    /* Можно добавить темные стили в будущем */
}

/* Анимации только если пользователь не отключил их */
@media (prefers-reduced-motion: no-preference) {
    .card, .btn, .tag-item {
        transition: all 0.3s ease;
    }
    
    .card-img img {
        transition: transform 0.3s ease;
    }
}

/* Отключение анимаций для пользователей с ограниченными возможностями */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ КОМПОНЕНТОВ === */

/* Стили из about.html - команда и контент */
.about-content {
    display: block;
    width: 100%;
}

.about-content p, .mission-content p, .mission-content li {
    text-align: justify;
}

.about-image {
    margin-bottom: 20px;
    width: 100%;
}

.about-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.mission-content {
    width: 100%;
}

.team-member {
    text-align: center;
    background-color: #f3f3f3;
    padding: 20px;
    border-radius: 10px;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 4px solid #4CAF50;
}

.team-member h3 {
    margin-bottom: 5px;
    color: #333;
}

.team-member .role {
    color: #666;
    font-style: italic;
    margin-bottom: 10px;
}

/* Pros and Cons блок */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
    background-color: #f3f3f3;
    padding: 30px;
    border-radius: 10px;
}

.pros, .cons {
    background-color: #fdfdfd;
    padding: 20px;
    border-radius: 8px;
}

.pros {
    border-left: 4px solid #4CAF50;
}

.cons {
    border-left: 4px solid #e74c3c;
}

.pros h3 {
    color: #4CAF50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.cons h3 {
    color: #e74c3c;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.pros ul, .cons ul {
    list-style: none;
    padding: 0;
}

.pros li::before {
    content: '✓';
    color: #4CAF50;
    font-weight: bold;
    margin-right: 10px;
}

.cons li::before {
    content: '✗';
    color: #e74c3c;
    font-weight: bold;
    margin-right: 10px;
}

.pros li, .cons li {
    margin-bottom: 8px;
    color: #333;
    line-height: 1.4;
}

/* Table of Contents */
.table-of-contents {
    background-color: #f3f3f3;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #4CAF50;
}

.table-of-contents h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
}

.table-of-contents li {
    margin-bottom: 8px;
}

.table-of-contents a {
    color: #333;
    text-decoration: none;
    padding: 5px 0;
    display: block;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.table-of-contents a:hover {
    color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
    padding-left: 10px;
}

/* Summary Box */
.summary-box {
    background-color: #f3f3f3;
    border: 2px solid #4CAF50;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    position: relative;
}

.summary-box h3 {
    color: #4CAF50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.summary-box h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.summary-box p {
    color: #333;
    line-height: 1.6;
}

.summary-box ul {
    margin: 15px 0;
    padding-left: 0;
}

.summary-box li {
    margin-bottom: 8px;
    color: #333;
    list-style: none;
    position: relative;
    padding-left: 20px;
}

.summary-box li::before {
    content: '•';
    color: #4CAF50;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

/* FAQ Section */
.faq-section {
    background-color: #fdfdfd;
}

.faq-item {
    background-color: #f3f3f3;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.faq-item h3 {
    background-color: #4CAF50;
    color: #fff;
    padding: 15px 20px;
    margin: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-item h3:hover {
    background-color: #81C784;
}

.faq-item p {
    padding: 20px;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* Google Maps iframe стили */
.map-iframe {
    border: 0;
}

/* === ДОПОЛНИТЕЛЬНЫЕ MEDIA QUERIES === */

/* Мобильные стили для новых компонентов */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-member img {
        width: 180px;
        height: 180px;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .summary-box {
        padding: 20px;
    }
    
    .summary-box h3 {
        font-size: 1.4rem;
    }
    
    .summary-box h4 {
        font-size: 1.2rem;
    }
    
    .table-of-contents {
        padding: 20px;
    }
    
    .faq-item h3 {
        padding: 15px;
        font-size: 1.1rem;
    }
    
    .faq-item p {
        padding: 15px;
    }
    
    /* Адаптивные изображения в статьях */
    .article-image img, 
    .featured-image img,
    .about-image img {
        width: 100%;
        height: auto;
        max-width: 100%;
        object-fit: cover;
    }
    
    /* Улучшенная адаптация карточек */
    .card {
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        touch-action: manipulation;
    }
    
    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }
    
    .card-img {
        overflow: hidden;
        position: relative;
    }
    
    .card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }
    
    .card:hover .card-img img {
        transform: scale(1.05);
    }
    
    /* Мобильные кнопки - больше размер для удобства нажатия */
    .btn {
        padding: 14px 20px;
        font-size: 1rem;
        border-radius: 6px;
        text-align: center;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
    }
    
    /* Улучшенная навигация */
    .main-nav a {
        padding: 12px 16px;
        font-size: 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Социальные кнопки */
    .share-buttons .social-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .card-content h3 a {
        display: block;
        padding: 5px 0;
    }
    
    /* Более четкие заголовки на мобильных */
    h1, h2, h3 {
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .pros-cons {
        padding: 15px;
    }
    
    .summary-box {
        padding: 15px;
    }
    
    .team-member img {
        width: 150px;
        height: 150px;
    }
    
    .table-of-contents {
        padding: 15px;
    }
    
    .pros, .cons {
        padding: 15px;
    }
}

/* Очень маленькие экраны (320px-360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .grid-container {
        gap: 10px;
    }
    
    .card-content {
        padding: 12px;
    }
    
    .card-content h3 {
        font-size: 1rem;
        line-height: 1.2;
        margin-bottom: 8px;
    }
    
    .card-content p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .hero-banner h1 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-banner p {
        font-size: 1rem;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    .summary-box, .table-of-contents, .pros-cons {
        padding: 12px;
        margin: 20px 0;
    }
    
    .article-image {
        margin: 20px 0;
    }
} 