/*
Theme Name: Dag Studio Theme
Theme URI: https://dagstudio.ru
Author: Dag Studio
Description: Тема для веб-студии с дагестанским характером.
Version: 1.1
*/
/* =========================================
   1. БАЗОВЫЕ НАСТРОЙКИ И ШРИФТЫ
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;700&display=swap');

:root { --primary-color: #b85c38; /* Терракотовый */ --primary-dark: #8a4225; --stone-bg: #1a1512; /* Темный камень */ --paper-light: #f2ede8; /* Светлая бумага */ --text-main: #29221f; --text-light: #665c57; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; line-height: 1.6; color: var(--text-main); background-color: var(--paper-light); background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E"); display: flex; flex-direction: column; min-height: 100vh; }
h1, h2, h3, h4, h5, h6 { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
/* =========================================
   2. ШАПКА (HEADER)
   ========================================= */
header { background: rgba(26, 21, 18, 0.98); padding: 15px 0; position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(184, 92, 56, 0.3); }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 45px; width: auto; }
.nav ul { display: flex; gap: 30px; margin: 0; }
.nav a { color: #DCDCDC; font-size: 14px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }
.nav a:hover, .nav .current-menu-item a { color: var(--primary-color); }
.header-btn { border: 2px solid var(--primary-color); padding: 8px 25px; color: white; font-size: 14px; font-family: 'Oswald', sans-serif; text-transform: uppercase; background: rgba(184, 92, 56, 0.1); white-space: nowrap; }
.header-btn:hover { background: var(--primary-color); color: white; }
/* =========================================
   3. ГЛАВНЫЙ ЭКРАН (HERO)
   ========================================= */
.hero { background-color: var(--stone-bg); color: white; padding: 100px 0; position: relative; overflow: hidden; min-height: 700px; display: flex; align-items: center; }
.pattern-carpet-dark { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; background-image: linear-gradient(to bottom, rgba(26, 21, 18, 0.9) 20%, rgba(26, 21, 18, 1) 100%), url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath fill='%23b85c38' fill-opacity='0.15' d='M60 0l60 60-60 60L0 60z'/%3E%3Cpath fill='%23b85c38' fill-opacity='0.2' d='M60 30l30 30-30 30-30-30z'/%3E%3Cpath stroke='%23b85c38' stroke-opacity='0.1' stroke-width='2' d='M0 0l120 120M120 0L0 120'/%3E%3C/g%3E%3C/svg%3E"); background-size: auto, 160px 160px; background-repeat: no-repeat, repeat; }
.hero-inner { display: flex; justify-content: space-between; align-items: center; gap: 50px; position: relative; z-index: 2; width: 100%; }
.hero-text { flex: 1; min-width: 300px; }
.hero-logo-large img { width: 180px; height: auto; margin-bottom: 35px; border-radius: 4px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.hero-tags { display: flex; gap: 10px; margin-bottom: 30px; }
.tag { background: rgba(184, 92, 56, 0.2); border: 1px solid var(--primary-color); padding: 6px 14px; font-size: 12px; font-weight: 600; color: var(--primary-color); text-transform: uppercase; letter-spacing: 1px; }
.hero h1 { font-size: 52px; line-height: 1.1; margin-bottom: 25px; text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.5); }
.hero h1 span { color: var(--primary-color); }
.hero p { font-size: 18px; color: #E0D6D1; margin-bottom: 40px; max-width: 540px; border-left: 4px solid var(--primary-color); padding-left: 25px; background: rgba(0, 0, 0, 0.2); padding: 20px 25px; }
.hero-form-card { background: var(--paper-light); padding: 40px; width: 420px; max-width: 100%; border: 3px solid var(--primary-color); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6); color: var(--text-main); }
.hero-form-card h3 { margin-bottom: 10px; font-size: 24px; }
.hero-form-card p { color: var(--text-light); margin-bottom: 25px; font-size: 14px; }
.form-group { margin-bottom: 15px; }
.form-group input { width: 100%; padding: 15px; background: #FFF; border: 2px solid #E0D6D1; font-size: 16px; color: var(--text-main); outline: none; transition: 0.3s; }
.form-group input:focus { border-color: var(--primary-color); }
.btn-submit { width: 100%; padding: 18px; background: var(--primary-color); color: white; border: none; font-weight: 700; text-transform: uppercase; cursor: pointer; font-size: 16px; transition: 0.3s; letter-spacing: 1px; font-family: 'Oswald', sans-serif; }
.btn-submit:hover { background: var(--primary-dark); color: white; }
/* =========================================
   4. ЗАГОЛОВКИ ВНУТРЕННИХ СТРАНИЦ
   ========================================= */
.page-hero { background-color: var(--stone-bg); color: white; padding: 100px 0 80px; position: relative; text-align: center; }
.hero-bg-layer { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: 48px; margin-bottom: 15px; text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5); }
.page-hero h1 span { color: var(--primary-color); }
.page-hero p { font-size: 18px; color: #E0D6D1; max-width: 600px; margin: 0 auto; opacity: 0.8; }
/* =========================================
   5. СЕТКИ И КАРТОЧКИ (ОБЩИЕ СТИЛИ)
   ========================================= */
.services, .pricing-section, .portfolio-section, .about-section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 42px; margin-bottom: 20px; color: var(--text-main); }
.header-divider { margin: 0 auto 25px auto; width: 200px; height: 20px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath fill='%23b85c38' d='M50 0L60 10 50 20 40 10Z'/%3E%3Cpath fill='%23b85c38' opacity='0.5' d='M20 5L30 10 20 15 10 10Z M80 5L90 10 80 15 70 10Z'/%3E%3Cpath stroke='%23b85c38' stroke-width='2' d='M0 10H40 M60 10H100'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; }
.section-header p { color: var(--text-light); max-width: 650px; margin: 0 auto; font-size: 18px; }
/* СЕТКИ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 40px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 40px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 60px; text-align: center; }
/* КАРТОЧКИ (Белая подложка) */
.service-card, .price-card, .project-card, .stat-item { background: #FFF; padding: 0; /* Внутренние отступы задаются отдельно */ border: 2px solid #E8E0DA; transition: 0.3s; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.service-card { padding: 50px 40px; }
.stat-item { padding: 40px 30px; }
/* УЗОРНЫЙ УГОЛОК */
.service-card::before, .price-card::before { content: ''; position: absolute; top: 0; right: 0; width: 60px; height: 60px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath fill='%23b85c38' d='M0 0h60v60H0z' opacity='0.1'/%3E%3Cpath fill='%23b85c38' d='M60 0L30 0 60 30z M60 60L60 30 30 60z'/%3E%3C/svg%3E"); background-size: cover; opacity: 0.8; }
.service-card:hover, .price-card:hover, .project-card:hover, .stat-item:hover { border-color: var(--primary-color); transform: translateY(-7px); box-shadow: 0 20px 40px rgba(184, 92, 56, 0.15); z-index: 2; }
/* =========================================
   6. СТИЛИ ВНУТРИ КАРТОЧЕК
   ========================================= */
/* Услуги */
.icon-box { font-size: 36px; color: var(--primary-color); margin-bottom: 25px; font-family: 'Oswald', sans-serif; border-bottom: 3px solid var(--primary-color); display: inline-block; }
.service-card h4 { font-size: 22px; margin-bottom: 15px; color: var(--text-main); }
.service-card p { font-size: 15px; color: var(--text-light); }
/* Цены */
.card-header { padding: 40px 30px 20px; border-bottom: 1px dashed #DDD; }
.card-header h3 { font-size: 22px; color: var(--text-main); margin-bottom: 10px; min-height: 50px; }
.price-tag { font-size: 32px; font-weight: 700; color: var(--primary-color); font-family: 'Oswald', sans-serif; }
.card-body { padding: 30px; flex-grow: 1; }
.features-list li { margin-bottom: 12px; font-size: 14px; color: var(--text-light); display: flex; gap: 10px; }
.features-list li::before { content: '✓'; color: var(--primary-color); font-weight: bold; }
.card-footer { padding: 0 30px 40px; }
.btn-order { display: block; width: 100%; padding: 15px; text-align: center; background: transparent; border: 2px solid var(--primary-color); color: var(--text-main); font-family: 'Oswald', sans-serif; font-weight: 600; text-transform: uppercase; transition: 0.3s; }
.btn-order:hover { background: var(--primary-color); color: white; }
/* Портфолио */
.project-image-placeholder { height: 240px; background: #2B211E; display: flex; align-items: center; justify-content: center; color: #554A46; font-family: 'Oswald', sans-serif; font-size: 30px; text-transform: uppercase; position: relative; overflow: hidden; padding: 20px; text-align: center; }
.project-image-placeholder img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; opacity: 0.6; transition: 0.3s; }
.project-card:hover .project-image-placeholder img { opacity: 1; transform: scale(1.05); }
.project-info { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.project-category { font-size: 12px; text-transform: uppercase; color: var(--primary-color); font-weight: 600; margin-bottom: 10px; }
.project-info h3 { margin-bottom: 15px; font-size: 22px; line-height: 1.3; }
.project-link { margin-top: auto; font-weight: 600; display: flex; align-items: center; gap: 5px; }
/* О нас (Статистика и Текст) */
.about-content { max-width: 800px; margin: 0 auto; font-size: 18px; }
.about-content p { margin-bottom: 25px; }
.quote-box { background: #FFF; border-left: 5px solid var(--primary-color); padding: 30px; margin: 40px 0; font-style: italic; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); }
.stat-number { font-family: 'Oswald', sans-serif; font-size: 48px; font-weight: 700; color: var(--primary-color); margin-bottom: 10px; }
.stat-label { font-size: 14px; text-transform: uppercase; color: var(--text-light); letter-spacing: 1px; }
/* =========================================
   7. ПОДВАЛ, CTA И КНОПКИ
   ========================================= */
.cta-section { background: var(--stone-bg); color: white; padding: 80px 0; text-align: center; border-top: 1px solid var(--primary-color); }
.cta-section p { max-width: 600px; margin: 0 auto 30px; color: #CCC; }
footer { background: var(--stone-bg); color: #888; padding: 40px 0; margin-top: auto; border-top: 1px solid rgba(184, 92, 56, 0.3); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-logo { font-family: 'Oswald', sans-serif; font-size: 26px; color: white; margin-bottom: 5px; display: block; }
.footer-logo span { color: var(--primary-color); }
.floating-buttons { position: fixed; bottom: 20px; left: 20px; display: flex; flex-direction: column; gap: 15px; z-index: 9999; }
.btn-float { display: flex; align-items: center; gap: 10px; padding: 14px 24px; color: white; font-weight: 600; font-size: 14px; border: 2px solid rgba(255, 255, 255, 0.2); box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.3); transition: 0.2s; }
.btn-whatsapp { background-color: #25D366; }
.btn-max { background-color: #2AABEE; }
.btn-float:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.4); }
.icon-svg { width: 22px; height: 22px; fill: currentColor; }
/* =========================================
   8. АДАПТИВНОСТЬ (МОБИЛЬНЫЕ)
   ========================================= */
@media (max-width: 900px) {
    .nav { display: none; }
    /* Скрыть меню */
    .hero-inner { flex-direction: column; text-align: center; }
    .hero-form-card { width: 100%; margin-top: 40px; }
    .pricing-grid, .portfolio-grid, .services-grid, .stats-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; text-align: center; gap: 20px; }
    .floating-buttons { bottom: 20px; left: 20px; }
    .btn-float span { display: none; }
    .btn-float { padding: 12px; }
}
/* --- ИСПРАВЛЕНИЕ ДЛЯ ФОРМЫ CONTACT FORM 7 --- */
/* Отменяем стили параграфов внутри карточки формы */
.hero-form-card p { border-left: none !important; /* Убираем коричневую полосу */ background: transparent !important; /* Убираем серый фон */ padding: 0 !important; /* Убираем лишние отступы */ margin-bottom: 10px !important; /* Небольшой отступ снизу */ color: var(--text-main) !important; /* Возвращаем темный цвет текста */ }
/* Убедимся, что поля ввода выглядят правильно */
.hero-form-card input { margin-top: 0 !important; }
/* Исправляем цвет текста подсказок в форме, если он слишком светлый */
.hero-form-card ::placeholder { color: #888; opacity: 1; }
/* Стиль для поля с названием товара */
input.product-input { background-color: #F9F9F9 !important; /* Чуть серый фон */ color: #333 !important; font-weight: 600 !important; border-color: var(--primary-color) !important; /* Рыжая рамка */ }
/* --- СТИЛИ МОДАЛЬНОГО ОКНА --- */
/* Фон (затемнение) */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); /* Темный фон */ z-index: 99999; /* Поверх всего */ display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: 0.3s; padding: 20px; }
/* Состояние "Открыто" */
.modal-overlay.active { opacity: 1; visibility: visible; }
/* Само окно (использует стили формы, но с доработками) */
.modal-window { position: relative; max-width: 450px; width: 100%; background: #FFF; transform: translateY(20px); transition: 0.3s; }
.modal-overlay.active .modal-window { transform: translateY(0); }
/* Крестик закрытия */
.modal-close { position: absolute; top: 15px; right: 20px; font-size: 30px; color: #888; cursor: pointer; line-height: 1; transition: 0.2s; }
.modal-close:hover { color: var(--primary-color); }
/* =========================================
   8. АДАПТИВНОСТЬ И МОБИЛЬНОЕ МЕНЮ
   ========================================= */
/* БУРГЕР (Только кнопка открытия) */
.burger { display: none; /* На ПК скрыт */ width: 35px; height: 24px; flex-direction: column; justify-content: space-between; cursor: pointer; /* Фиксируем в углу */ position: fixed; top: 25px; right: 20px; z-index: 9999; }
.burger span { display: block; width: 100%; height: 3px; background-color: #DCDCDC; /* Серый цвет */ border-radius: 3px; transition: 0.3s; }
/* Когда меню открыто - просто красим полоски в рыжий (без крестика) */
.burger.active span { background-color: var(--primary-color); }
/* ОБОЛОЧКА МОБИЛЬНОГО МЕНЮ */
.mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: rgba(26, 21, 18, 0.95); /* Полупрозрачный темный фон */ z-index: 5000; padding-top: 100px; padding-bottom: 40px; transform: translateX(100%); /* Скрыто */ transition: transform 0.3s ease-in-out; overflow-y: auto; /* Важно: Делаем курсор "указателем", чтобы было понятно, что можно закрыть */ cursor: pointer; }
/* Контент меню (чтобы клик по нему НЕ закрывал меню) */
.mobile-menu-content { cursor: default; /* Возвращаем обычный курсор на тексте */ display: flex; flex-direction: column; align-items: center; width: 100%; min-height: 50%; /* Чтобы было место для клика внизу */ }
.mobile-menu-overlay.active { transform: translateX(0); /* Показать */ }
/* ССЫЛКИ */
.mobile-nav { margin-bottom: 40px; position: relative; z-index: 10; }
.mobile-nav ul { flex-direction: column; gap: 30px; text-align: center; padding: 0; margin: 0; }
.mobile-nav a { font-size: 24px; font-family: 'Oswald', sans-serif; color: #FFF; text-transform: uppercase; display: block; padding: 10px; }
/* КНОПКА */
.mobile-btn-wrapper { margin-bottom: 30px; position: relative; z-index: 10; }
.mobile-btn-contact { display: inline-block; padding: 15px 40px; text-align: center; min-width: 200px; }
/* ЛОГОТИП ВНИЗУ */
.mobile-menu-logo { margin-top: auto; padding-bottom: 50px; }
.mobile-menu-logo img { width: 100px; height: auto; opacity: 0.6; }
/* --- МОБИЛЬНЫЕ ПРАВИЛА --- */
@media (max-width: 900px) {
    .burger { display: flex; }
    .desktop-nav, .desktop-btn { display: none; }
    .hero-inner, .footer-inner { flex-direction: column; text-align: center; }
    .hero-text, .hero-form-card { width: 100%; }
    .hero-form-card { margin-top: 40px; }
    .pricing-grid, .portfolio-grid, .services-grid, .stats-grid { grid-template-columns: 1fr; }
    .floating-buttons { bottom: 20px; left: 20px; }
    .btn-float span { display: none; }
    .btn-float { padding: 12px; }
}
/* --- КНОПКИ ПОДЕЛИТЬСЯ --- */
.share-box { margin-top: 40px; padding-top: 20px; border-top: 1px solid #E8E0DA; }
.share-box span { font-family: 'Oswald', sans-serif; font-size: 18px; color: var(--text-main); display: block; margin-bottom: 15px; }
.share-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn { padding: 10px 20px; border-radius: 4px; color: white !important; text-decoration: none; font-weight: 600; font-size: 14px; transition: 0.3s; display: inline-flex; align-items: center; }
.share-btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); }
/* Цвета брендов */
.sb-whatsapp { background-color: #25D366; }
.sb-telegram { background-color: #229ED9; }
.sb-vk { background-color: #0077FF; }
/* --- СТИЛИ ДЛЯ КАРТИНОК В КАТАЛОГЕ --- */
/* Контейнер плейсхолдера (теперь он умеет центрировать) */
.project-image-placeholder { position: relative; overflow: hidden; display: flex !important; /* Включаем Flexbox */ align-items: center; /* Центр по вертикали */ justify-content: center; /* Центр по горизонтали */ z-index: 1; }
/* Фоновая картинка (если есть) */
.thumb-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; z-index: -2; /* Самый нижний слой */ transition: transform 0.5s ease; }
/* Затемняющий слой (если есть картинка) */
.thumb-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(26, 21, 18, 0.810); /* Темный цвет с прозрачностью 60% */ z-index: -1; /* Между картинкой и текстом */ transition: background 0.3s ease; }
/* Текст метки (DOC, PSD) поверх картинки */
.badge-text-on-image { position: relative; z-index: 2; /* На самом верху */ color: #FFFFFF !important; /* Белый текст для контраста */ text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Тень для читаемости */ }
/* Эффект при наведении на карточку */
.project-card:hover .thumb-bg { transform: scale(1.1); /* Картинка плавно увеличивается */ }
.project-card:hover .thumb-overlay { background: rgba(26, 21, 18, 0.4); /* Затемнение становится чуть светлее */ }



/* --- КНОПКА ВХОДА В АДМИНКУ --- */
.admin-entry-btn
{
	position: fixed;
	top: 10px;
	right: 10px;
	width: 30px;
	height: 30px;
	background: rgba(0, 0, 0, 0.2);
	/* Полупрозрачный фон */
	border-radius: 50%;
	/* Круглая */
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	/* Поверх всего, даже бургера */
	transition: 0.3s;
	backdrop-filter: blur(5px);
	border: 1px solid rgba(255, 255, 255, 0.1);
}


.admin-entry-btn svg {
    width: 16px;
    height: 16px;
    fill: #fff;
    opacity: 0.7;
    transition: 0.3s;
}

/* При наведении */
.admin-entry-btn:hover {
    background: var(--primary-color); /* Ваш рыжий цвет */
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.admin-entry-btn:hover svg {
    opacity: 1;
}

/* На мобильных чуть сдвигаем, чтобы не мешала бургеру */
@media (max-width: 900px) {
    .admin-entry-btn {
        top: 15px;
        right: 60px; /* Левее бургера */
        width: 35px;
        height: 35px;
        background: rgba(26, 21, 18, 0.8); /* Темнее на мобильных */
    }
}

/* КНОПКА ВХОДА */
.admin-entry-btn {
    transition: 0.3s;
}
.admin-entry-btn:hover {
    background: var(--primary-color) !important;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}


/* --- ИСПРАВЛЕНИЯ ДЛЯ МОБИЛЬНОГО ВИДА --- */
@media (max-width: 600px) {
    
    /* 1. Делаем заголовок аккуратным и читаемым */
    .hero h1 {
        font-size: 30px !important; /* Уменьшаем размер (было слишком крупно) */
        line-height: 1.2 !important; /* Расстояние между строками */
        padding: 0 15px; /* Отступы от краев экрана */
        word-wrap: break-word; /* Чтобы длинные слова не ломали верстку */
    }

    /* 2. Текст описания */
    .hero p {
        font-size: 16px !important;
        line-height: 1.5 !important;
        padding: 0 20px; /* Больше воздуха по бокам */
        margin-bottom: 30px !important;
        background: transparent !important; /* Убираем затемнение, если мешает */
        border: none !important;
    }

    /* 3. Поднимаем теги (Махачкала, Качество) чуть выше */
    .hero-tags {
        margin-bottom: 20px !important;
        flex-wrap: wrap; /* Если не влезают - перенос на след. строку */
        justify-content: center;
    }
    
    .tag {
        font-size: 10px !important;
        padding: 4px 10px !important;
    }

    /* 4. Скрываем назойливый значок reCAPTCHA на телефоне */
    /* (Он перекрывает контент, Google разрешает его скрывать) */
    .grecaptcha-badge { 
        display: none !important; 
    }
    
    /* 5. Кнопка входа в админку (сдвигаем, чтобы не налипала на меню) */
    .admin-entry-btn {
        top: 20px !important;
        right: 70px !important; /* Левее от бургера */
    }
}

/* --- ФИКСАЦИЯ КНОПКИ АДМИНКИ НА МОБИЛЬНОМ --- */
@media (max-width: 900px) {
    .admin-entry-btn {
        /* Жесткая позиция поверх всего */
        position: fixed !important; 
        
        /* Ставим на одной линии с бургером (он на 25px сверху) */
        top: 20px !important; 
        
        /* Отодвигаем левее бургера (бургер занимает место справа) */
        right: 65px !important; 
        
        z-index: 99999 !important;
        
        /* Размеры */
        width: 35px !important;
        height: 35px !important;
        
        /* Фон, чтобы было видно на любом цвете */
        background: rgba(26, 21, 18, 0.6) !important;
        border: 1px solid rgba(255,255,255,0.2) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* --- СТИЛИ ДЛЯ БЛОГА --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки */
    gap: 30px;
    margin-bottom: 60px;
}

.blog-card {
    background: #fff;
    border: 1px solid #e8e0da;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.blog-thumb {
    height: 220px;
    background: #2b211e;
    overflow: hidden;
    position: relative;
    display: block;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.blog-card:hover .blog-thumb img { transform: scale(1.1); }

.empty-thumb {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-family: 'Oswald', sans-serif; font-size: 24px; opacity: 0.5;
}

.blog-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }

.blog-meta { font-size: 12px; color: #999; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.blog-meta a { color: var(--primary-color); }

.blog-card h3 { font-size: 20px; margin-bottom: 15px; line-height: 1.3; }
.blog-card h3 a { color: var(--text-main); text-decoration: none; }

.blog-excerpt { font-size: 14px; color: var(--text-light); margin-bottom: 20px; flex-grow: 1; }

.read-more-link {
    margin-top: auto;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--text-main);
    letter-spacing: 1px;
}

/* Мобильная версия */
@media (max-width: 900px) {
    .blog-grid { grid-template-columns: 1fr; }
}

/* =========================================
   ОФОРМЛЕНИЕ ОДИНОЧНОЙ СТАТЬИ (SINGLE)
   ========================================= */

/* Узкий контейнер (чтобы глаза не уставали бегать по ширине) */
.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Мета-данные в шапке */
.single-meta-header {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.7);
}
.single-meta-header a { color: var(--primary-color); border-bottom: 1px solid transparent; }
.single-meta-header a:hover { border-bottom-color: var(--primary-color); }
.meta-sep { margin: 0 10px; color: #555; }

.single-content-section {
    padding: 80px 0;
    background-color: #fff;
}

/* --- ТИПОГРАФИКА СТАТЬИ --- */
.entry-content {
    font-size: 18px; /* Крупный шрифт */
    line-height: 1.8; /* Воздух между строками */
    color: #333;
}

/* Абзацы */
.entry-content p {
    margin-bottom: 30px;
}

/* Заголовки внутри статьи */
.entry-content h2, .entry-content h3, .entry-content h4 {
    font-family: 'Oswald', sans-serif;
    color: var(--text-main);
    margin-top: 50px;
    margin-bottom: 25px;
    line-height: 1.3;
}
.entry-content h2 { font-size: 32px; border-bottom: 2px solid #e8e0da; padding-bottom: 10px; }
.entry-content h3 { font-size: 26px; color: var(--primary-color); }

/* Списки */
.entry-content ul, .entry-content ol {
    margin-bottom: 30px;
    padding-left: 20px;
}
.entry-content li {
    margin-bottom: 10px;
    padding-left: 10px;
}
.entry-content ul li { list-style: disc; }
.entry-content ol li { list-style: decimal; }

/* Цитаты */
.entry-content blockquote {
    margin: 40px 0;
    padding: 30px;
    background: #f9f9f9;
    border-left: 5px solid var(--primary-color);
    font-style: italic;
    font-size: 20px;
    color: #555;
}

/* Картинки в тексте */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 40px 0;
}

/* Ссылки в тексте */
.entry-content a {
    color: var(--primary-color);
    text-decoration: underline;
}
.entry-content a:hover { text-decoration: none; }

/* --- НИЖНЯЯ ЧАСТЬ --- */
.single-divider {
    height: 1px;
    background: #e8e0da;
    margin: 50px 0;
}

/* Навигация (Соседние посты) */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    gap: 30px;
}

.nav-box {
    width: 50%;
}
.nav-box span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.nav-box a {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    transition: 0.3s;
    text-decoration: none; /* Убираем подчеркивание */
}
.nav-box a:hover {
    color: var(--primary-color);
}
.nav-next { text-align: right; }

/* Адаптив */
@media (max-width: 768px) {
    .post-navigation { flex-direction: column; }
    .nav-box { width: 100%; text-align: left; }
    .entry-content { font-size: 16px; }
}


/* =========================================
   ЛАЙТБОКС ТОВАРА (PRODUCT MODAL)
   ========================================= */

.product-modal-overlay {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 21, 18, 0.9); /* Темный фон */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.product-modal-window {
    background: #fff;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s;
}

/* Левая часть (Картинка) */
.pm-image-col {
    width: 40%;
    background: #f4f4f4;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.pm-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pm-placeholder {
    font-size: 80px;
    font-weight: bold;
    color: rgba(184, 92, 56, 0.2);
    text-transform: uppercase;
}

/* Правая часть (Контент) */
.pm-content-col {
    width: 60%;
    padding: 40px;
    overflow-y: auto; /* Скролл, если текста много */
    display: flex;
    flex-direction: column;
}

.pm-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #333;
    line-height: 1;
    z-index: 10;
    transition: 0.3s;
}
.pm-close:hover { color: #b85c38; }

/* Элементы внутри */
.pm-badge {
    display: inline-block;
    background: #b85c38;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 15px;
    border-radius: 2px;
}
.pm-title {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #1a1512;
}
.pm-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    flex-grow: 1;
}
.pm-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pm-price {
    font-size: 28px;
    font-weight: bold;
    color: #1a1512;
}

/* Адаптив для телефона */
@media (max-width: 768px) {
    .product-modal-window { flex-direction: column; height: auto; max-height: 95vh; }
    .pm-image-col { width: 100%; height: 200px; }
    .pm-content-col { width: 100%; padding: 25px; }
    .pm-title { font-size: 24px; }
}

@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}
/* Эффект наведения на карточку товара */
.js-product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.js-product-card:hover {
    transform: translateY(-5px); /* Чуть всплывает вверх */
    box-shadow: 0 15px 30px rgba(0,0,0,0.15); /* Тень становится глубже */
    border-color: #b85c38; /* Рамка становится рыжей */
}
/* =========================================
   КОМПАКТНЫЙ И КРАСИВЫЙ КАТАЛОГ
   ========================================= */

/* 1. Сетка: Делаем ячейки уже (минимум 280px), чтобы их влезало больше */
.portfolio-grid.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Было 350px или 50% */
    gap: 25px; /* Аккуратный зазор */
    margin-bottom: 60px;
}

/* 2. Карточка товара */
.js-product-card {
    background: #fff;
    border: 1px solid #eee; /* Тонкая рамка */
    border-radius: 8px; /* Скругленные углы */
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Эффект при наведении (Всплытие + Тень) */
.js-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08); /* Мягкая тень */
    border-color: #b85c38;
}

/* 3. Блок картинки */
.project-image-placeholder {
    height: 180px !important; /* Чуть меньше по высоте */
    border-bottom: 1px solid #f0f0f0;
}

/* 4. Заголовок товара */
.product-title {
    font-size: 18px !important; /* Чуть меньше */
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1512;
}

/* 5. Описание (Excerpt) */
.product-short-desc {
    font-size: 13px !important;
    line-height: 1.5;
    color: #777;
    margin-bottom: 15px;
}

/* 6. Цена и Низ */
.card-footer-row {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-tag-compact {
    font-size: 18px;
    font-weight: 700;
    color: #1a1512;
    background: #f4f4f4;
    padding: 4px 10px;
    border-radius: 4px;
}

.arrow-icon {
    width: 30px;
    height: 30px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b85c38;
    transition: 0.3s;
}
.js-product-card:hover .arrow-icon {
    background: #b85c38;
    border-color: #b85c38;
    color: #fff;
}