/* FIX: Убираем белую полосу под футером */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f0f0f0;
    color: #333;
}

:root {
    --primary-color: #a2894b;
    --secondary-color: #b8a677;
    --background-color: #fafafa;
    --text-color: #333;
    --border-color: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Основной контейнер для всего контента - РАСТЯГИВАЕТСЯ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    flex: 1 0 auto;
}

/* Шапка на всю ширину */
header .container {
    max-width: 100%; /* Шапка на всю ширину */
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: #1a1a1a;
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    flex-shrink: 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.logo-img {
    width: 100px;
    height: 100px;
    background-color: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-weight: bold;
    font-size: 12px;
    overflow: hidden;
    border: none;
}

.logo-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 30px;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1.2;
}

.brand-slogan {
    font-size: 20px;
    color: #fff;
    margin-top: 4px;
    line-height: 1.2;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-grow: 1;
}

.phone-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.phone-link:hover {
    color: #25D366;
}

.whatsapp-icon {
    color: #25D366;
    font-size: 25px;
}

.callback-btn {
    background-color: #a2894b;
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 14px;
}

.transfer-btn {
    background-color: var(--primary-color);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.callback-btn:hover, .transfer-btn:hover {
    background-color: var(--secondary-color);
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
}

.lang-toggle {
    background: none;
    border: 1px solid #444;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.lang-toggle:hover {
    background-color: #333;
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
    min-width: 120px;
    z-index: 1000;
}

.lang-menu.show {
    display: block;
}

.lang-option {
    display: block;
    width: 100%;
    padding: 10px 15px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    color: #333;
    transition: background-color 0.3s ease;
}

.lang-option:hover {
    background-color: #f5f5f5;
}

.lang-option.active {
    background-color: var(--primary-color);
    color: #000;
}

/* Navigation */
nav {
    padding: 15px 0;
    border-top: 1px solid #333;
    margin-top: 15px;
    width: 100%;
    position: relative;
}

.nav-links {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1515562141207-7a88fb7ce338?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    width: 100%;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

/* Sections */
.section {
    padding: 50px 0;
    background-color: white;
    scroll-margin-top: 80px;
}

.section-alt {
    background-color: #e9e9e9;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 28px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

/* Content Blocks - Unified Styles for All Sections */
.content-block {
    display: flex;
    align-items: center;
    gap: 40px;
}

.content-block.reverse {
    flex-direction: row-reverse;
}

/* Unified Content Text Styles */
.content-text {
    flex: 1;
}

.content-text h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.content-text p {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 18px;
}

/* Unified Content Image Styles */
.content-image {
    flex: 1;
    background-color: #e0e0e0;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    font-size: 16px;
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Transfer Section Specific Styles - ТЕКСТ ПО КРАЯМ, КНОПКА ПО ЦЕНТРУ */
#transfer .content-text {
    flex: 1;
    text-align: justify;
}

.transfer-text {
    flex: 1;
}

.transfer-text h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.transfer-text p {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 18px;
    text-align: justify;
}

.content-image-transfer {
    flex: 1;
    background-color: #e0e0e0;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    font-size: 16px;
}

/* Large Transfer Button */
.transfer-btn-large {
    background-color: var(--primary-color);
    color: #000;
    border: none;
    padding: 18px 35px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: block;
    margin: 30px auto 0;
    transition: all 0.3s ease;
    min-width: 250px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transfer-btn-large:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Gallery Section - Fixed Styles */
.jewelry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.jewelry-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--background-color);
}

.jewelry-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.jewelry-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 15px 10px 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.jewelry-item:hover .image-overlay {
    transform: translateY(0);
}

.image-overlay span {
    display: block;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
}

.empty-gallery {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-color);
    opacity: 0.7;
}

.empty-gallery p {
    font-size: 16px;
    margin: 5px 0;
}

/* FIXED: Footer - прижимается к низу */
footer {
    background-color: var(--primary-color);
    color: #000;
    padding: 30px 0;
    text-align: center;
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
}

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

.copyright {
    font-size: 14px;
    opacity: 0.8;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Logo Link */
.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Стили для формы обратной связи */
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 100px;
    font-family: Arial, sans-serif;
}

/* Стили для галереи */
.gallery-controls {
    text-align: center;
    margin-bottom: 20px;
}

.filter-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    padding: 8px 16px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: #000;
}

/* Стили для модального окна с изображением */
.modal-image {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-image-content {
    position: relative;
    margin: auto;
    display: block;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    top: 50%;
    transform: translateY(-50%);
}

.modal-image-caption {
    text-align: center;
    color: white;
    padding: 10px;
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.7);
}

.close-image-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close-image-modal:hover {
    color: var(--primary-color);
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Стили для уведомлений */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    z-index: 10002;
    display: none;
}

.notification.success {
    background-color: #4CAF50;
}

.notification.error {
    background-color: #f44336;
}

/* Дополнительные стили для улучшения UX */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* Стили для лоадера */
.loader {
    display: none;
    text-align: center;
    padding: 20px;
}

.loader-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.submit-btn {
    background-color: var(--primary-color);
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
}

.alert {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    display: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* СТИЛИ МОДАЛЬНОГО ОКНА ТРАНСФЕРА (оставляем в template.css) */
#transfer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: none;
}

#transfer-modal > div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
}

#transfer-success {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: none;
}

#transfer-success > div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

#emergency-transfer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: none;
}

.emergency-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
}

/* ПРОСТЫЕ СТИЛИ ДЛЯ КНОПКИ ТРАНСФЕРА - КНОПКА ПО ЦЕНТРУ, ТЕКСТ ПО КРАЯМ */
.transfer-simple-btn {
    display: block;
    padding: 15px 30px;
    background-color: #a2894b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin: 20px auto 0;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    width: auto;
    min-width: 200px;
}

.transfer-simple-btn:hover {
    background-color: #8a7540;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.transfer-simple-btn:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.transfer-simple-btn i {
    margin-right: 10px;
    font-size: 20px;
}

/* ВАЖНОЕ ДОПОЛНЕНИЕ: Текст в блоке трансфера по краям, кнопка по центру */
#transfer .content-text {
    text-align: justify;
}

#transfer .content-text .transfer-simple-btn {
    display: block;
    margin: 20px auto;
    text-align: center;
}

/* ============================================== */
/* ФИКСАЦИЯ HEADER И ВЕРХНЕГО МЕНЮ */
/* ============================================== */

/* Для десктопов и лэптопов (ширина больше 768px) */
@media (min-width: 769px) {
    header {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        animation: slideDown 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    /* Добавляем плавный отступ для body, чтобы контент не прятался под header */
    body {
        padding-top: 160px; /* Высота header (приблизительно) */
        transition: padding-top 0.3s ease;
    }
    
    /* Уменьшенный header при скролле (опционально) */
    header.scrolled {
        padding: 10px 0 !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    
    header.scrolled .brand-name {
        font-size: 26px !important;
        transition: font-size 0.3s ease;
    }
    
    header.scrolled .brand-slogan {
        font-size: 16px !important;
        transition: font-size 0.3s ease;
    }
    
    header.scrolled .logo-img {
        width: 70px !important;
        height: 70px !important;
        transition: width 0.3s ease, height 0.3s ease;
    }
    
    header.scrolled nav {
        margin-top: 10px !important;
        padding: 10px 0 !important;
        transition: margin-top 0.3s ease, padding 0.3s ease;
    }
    
    /* Анимация появления фиксированного header */
    @keyframes slideDown {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}

/* Для мобильных устройств (ширина до 768px) - УБИРАЕМ ФИКСАЦИЮ */
@media (max-width: 768px) {
    header {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100%;
        z-index: 1000;
        box-shadow: none !important;
    }
    
    body {
        padding-top: 0 !important;
    }
    
    /* Отключаем анимации для мобильных */
    header.scrolled {
        padding: 15px 0 !important;
        box-shadow: none !important;
    }
    
    header.scrolled .brand-name,
    header.scrolled .brand-slogan,
    header.scrolled .logo-img,
    header.scrolled nav {
        font-size: inherit !important;
        width: inherit !important;
        height: inherit !important;
        margin-top: inherit !important;
        padding: inherit !important;
    }
}

/* Корректировка для очень маленьких экранов */
@media (max-width: 480px) {
    header {
        padding: 10px 0 !important;
    }
}

/* Улучшенная адаптивность */
@media (max-width: 1200px) {
    .header-content {
        gap: 20px;
    }
    
    .brand-name {
        font-size: 26px;
    }
    
    .brand-slogan {
        font-size: 16px;
    }
}

@media (max-width: 992px) {
    .header-content {
        justify-content: space-around;
    }
    
    .brand-name {
        font-size: 24px;
    }
    
    .brand-slogan {
        font-size: 14px;
    }
    
    .logo-img {
        width: 80px;
        height: 80px;
    }
}

/* ============================================== */
/* ИСПРАВЛЕНИЯ ДЛЯ МОБИЛЬНЫХ - ПРАВИЛЬНЫЙ ПОРЯДОК: ЗАГОЛОВОК → КАРТИНКА → ТЕКСТ */
/* ============================================== */

@media (max-width: 768px) {
    header .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .logo-section {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }
    
    /* ИСПРАВЛЕНИЕ 1: Увеличиваем логотип в 2 раза */
    .logo-img {
        width: 140px !important; /* Было 70px - увеличение в 2 раза */
        height: 140px !important; /* Было 70px - увеличение в 2 раза */
    }
    
    .header-contacts {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .phone-link {
        font-size: 18px;
    }
    
    .brand-name {
        font-size: 28px;
        text-align: center;
    }
    
    .brand-slogan {
        font-size: 14px;
        text-align: center;
    }
    
    .callback-btn {
        padding: 16px 32px;
        font-size: 16px;
        width: 100%;
        max-width: 300px;
    }
    
    .transfer-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    /* СКРЫВАЕМ ДЕСКТОПНОЕ МЕНЮ НА МОБИЛЬНЫХ */
    nav {
        display: none;
    }
    
    .hero {
        padding: 60px 0;
        background-attachment: scroll;
    }
    
    .hero h1 {
        font-size: 36px;
        word-break: break-word; /* ИСПРАВЛЕНИЕ: текст масштабируется */
        overflow-wrap: break-word; /* ИСПРАВЛЕНИЕ: текст масштабируется */
        hyphens: auto; /* ИСПРАВЛЕНИЕ: текст масштабируется */
        padding: 0 15px; /* ИСПРАВЛЕНИЕ: текст масштабируется */
    }
    
    .hero p {
        font-size: 18px;
        word-break: break-word; /* ИСПРАВЛЕНИЕ: текст масштабируется */
        overflow-wrap: break-word; /* ИСПРАВЛЕНИЕ: текст масштабируется */
        hyphens: auto; /* ИСПРАВЛЕНИЕ: текст масштабируется */
        padding: 0 15px; /* ИСПРАВЛЕНИЕ: текст масштабируется */
    }
    
    /* ИСПРАВЛЕНИЕ 2: ПРАВИЛЬНЫЙ ПОРЯДОК С CSS GRID И ORDER */
    .content-block, 
    .content-block.reverse,
    .transfer-content {
        display: grid !important;
        grid-template-areas: 
            "header"
            "image"
            "text";
        grid-template-columns: 1fr;
        gap: 20px !important;
    }
    
    /* 1. ЗАГОЛОВОК идет первым (grid-area: header) */
    .content-text h3 {
        grid-area: header !important;
        text-align: center !important;
        margin-bottom: 0 !important;
        display: block !important;
        width: 100% !important;
    }
    
    /* 2. КАРТИНКА идет второй (grid-area: image) - ВАЖНО: делаем видимой! */
    .content-image,
    .content-image-transfer {
        grid-area: image !important;
        display: flex !important;
        width: 100% !important;
        height: 250px !important;
        margin: 0 !important;
    }
    
    .content-image img,
    .content-image-transfer img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    /* 3. ТЕКСТ идет третьим (grid-area: text) - ТЕКСТ ПО КРАЯМ, КНОПКА ПО ЦЕНТРУ */
    .content-text,
    .transfer-text {
        grid-area: text !important;
        display: block !important;
        width: 100% !important;
        text-align: justify !important;
    }
    
    /* Кнопка трансфера по центру в мобильной версии */
    .transfer-simple-btn {
        display: block !important;
        margin: 20px auto !important;
        text-align: center !important;
    }
    
    /* Скрываем параграфы внутри .content-text, так как они будут переставлены */
    .content-text p {
        display: block !important;
        width: 100% !important;
        text-align: justify !important;
    }
    
    /* Для transfer секции - заголовок h2 */
    .transfer-text h2 {
        grid-area: header !important;
        text-align: center !important;
        margin-bottom: 0 !important;
        display: block !important;
        width: 100% !important;
    }
    
    /* Для transfer секции - текст p */
    .transfer-text p {
        display: block !important;
        width: 100% !important;
        grid-area: text !important;
        text-align: justify !important;
    }
    
    .jewelry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-text p {
        font-size: 16px;
        text-align: justify;
    }
    
    .transfer-text p {
        font-size: 16px;
        text-align: justify;
    }
}

@media (max-width: 480px) {
    header .container {
        padding: 0 10px;
    }
    
    .brand-name {
        font-size: 24px;
    }
    
    .brand-slogan {
        font-size: 12px;
    }
    
    /* ИСПРАВЛЕНИЕ 1: Увеличиваем логотип в 2 раза */
    .logo-img {
        width: 120px !important; /* Было 60px - увеличение в 2 раза */
        height: 120px !important; /* Было 60px - увеличение в 2 раза */
    }
    
    .phone-link {
        font-size: 16px;
    }
    
    .whatsapp-icon {
        font-size: 20px;
    }
    
    .callback-btn {
        padding: 14px 28px;
        font-size: 14px;
        width: 100%;
        max-width: 280px;
    }
    
    .transfer-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .lang-toggle {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .nav-links a {
        font-size: 14px;
        gap: 8px;
    }
    
    .hero h1 {
        font-size: 28px;
        word-break: break-word; /* ИСПРАВЛЕНИЕ: текст масштабируется */
        overflow-wrap: break-word; /* ИСПРАВЛЕНИЕ: текст масштабируется */
        hyphens: auto; /* ИСПРАВЛЕНИЕ: текст масштабируется */
        padding: 0 10px; /* ИСПРАВЛЕНИЕ: текст масштабируется */
    }
    
    .hero p {
        font-size: 16px;
        word-break: break-word; /* ИСПРАВЛЕНИЕ: текст масштабируется */
        overflow-wrap: break-word; /* ИСПРАВЛЕНИЕ: текст масштабируется */
        hyphens: auto; /* ИСПРАВЛЕНИЕ: текст масштабируется */
        padding: 0 10px; /* ИСПРАВЛЕНИЕ: текст масштабируется */
    }
    
    .jewelry-grid {
        grid-template-columns: 1fr;
    }
    
    /* ИСПРАВЛЕНИЕ 2: Картинки */
    .content-image,
    .content-image-transfer {
        height: 200px !important;
    }
    
    .content-text p {
        font-size: 15px;
        text-align: justify;
    }
    
    .transfer-text p {
        font-size: 15px;
        text-align: justify;
    }
}