/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */
 /* Стили для виджета чата */
#chat-widget {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
.chat-hidden {
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
}
#chat-bubble {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
/* Анимация для индикатора печати */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.animate-pulse {
  animation: pulse 1.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ==========================================================================
   КАСТОМНЫЕ СТИЛИ ДЛЯ ПОРТФОЛИО (Blocksy Child Theme)
   ========================================================================== */

/* --- ЦВЕТОВАЯ ПАЛИТРА И ГЛОБАЛЬНЫЕ НАСТРОЙКИ --- */
:root {
    --c-primary: #3b82f6;
    --c-primary-hover: #2563eb;
    --c-heading: #1f2937;
    --c-text: #4b5563;
    --c-text-light: #6b7280;
    --c-bg-light: #f9fafb;
    --c-border: #e5e7eb;
}

body { 
    margin: 0; 
    padding: 0; 
    overflow-x: hidden; 
}

/* --- 1. HERO БАННЕР (Главный экран) --- */
.hero-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    left: 0;
    height: 85vh; 
    min-height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background-color: #111;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://cherstvenkov.ru/wp-content/uploads/2024/09/photo_51_2024-09-02_14-45-22.jpg');
    background-size: cover;
    background-position: center 20%; 
    background-repeat: no-repeat;
    z-index: 1;
    animation: scaleBg 15s infinite alternate; 
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
}
.hero-content {
    position: relative; z-index: 3; text-align: center; padding: 0 20px; max-width: 1000px;
}
.hero-subtitle {
    display: inline-block; font-size: 16px; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 20px; font-weight: 600;
    color: #fff; background: rgba(255, 255, 255, 0.15); padding: 10px 20px; border-radius: 30px; backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.2);
}
.hero-title {
    font-size: 56px; font-weight: 800; margin: 0 0 30px 0; line-height: 1.1; color: #fff; text-shadow: 0 5px 15px rgba(0,0,0,0.5); 
}
.hero-btn {
    display: inline-block; padding: 22px 55px; font-size: 18px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-hover));
    border-radius: 50px; text-decoration: none; transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); text-transform: uppercase; letter-spacing: 1px; border: none;
}
.hero-btn:hover {
    transform: translateY(-3px); box-shadow: 0 20px 50px rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, var(--c-primary-hover), #1d4ed8);
    color: #fff !important; 
}

/* Анимации (Общие) */
.fade-in-up { opacity: 0; transform: translateY(30px); animation: fadeInUp 1s ease forwards; }
.delay-1 { animation-delay: 0.2s; } 
.delay-2 { animation-delay: 0.5s; } 
.delay-3 { animation-delay: 0.8s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes scaleBg { from { transform: scale(1); } to { transform: scale(1.05); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* --- 2. ОБЩИЕ БЛОКИ (Обо мне, Прайс, FAQ) --- */
.custom-about-section, .pricing-section {
    width: 100%;
    padding: 80px 20px;
    box-sizing: border-box;
    background-color: #fff;
}
.custom-about-container, .pricing-grid, .faq-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}
.custom-about-container { max-width: 900px; }
.faq-wrapper { max-width: 800px; padding: 0 15px; margin: 60px auto; }

/* ЗАГОЛОВКИ */
.about-title, .pricing-title, .faq-main-title, .gallery-title {
    color: var(--c-heading);
    margin-bottom: 30px;
    line-height: 1.2;
}
.about-title { font-size: 2.5em; font-weight: 800; }
.pricing-title { font-size: 36px; font-weight: 800; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; text-align: center; }
.faq-main-title { font-size: 32px; font-weight: 800; text-align: center; margin-bottom: 10px; }
.gallery-title { font-size: 2.5rem; font-weight: 300; text-transform: uppercase; letter-spacing: 2px; text-align: center; margin-top: 60px; }
.gallery-title::after { content: ''; display: block; width: 60px; height: 2px; background: #d4a373; margin: 15px auto 0; }

/* ПОДЗАГОЛОВКИ */
.about-subtitle { font-size: 14px; font-weight: 700; color: var(--c-primary); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; display: block; }
.pricing-subtitle, .faq-subtitle { color: var(--c-text-light); text-align: center; }
.pricing-subtitle { font-size: 18px; margin-bottom: 50px; }
.faq-subtitle { font-size: 16px; margin-bottom: 40px; }
.pricing-header.secondary-header { margin-top: 80px; }

/* --- 3. СЕКЦИЯ "ОБО МНЕ" --- */
.about-header-group { margin-bottom: 30px; }
.about-text { font-size: 1.05em; color: var(--c-text); line-height: 1.8; border-left: 4px solid var(--c-primary); padding-left: 25px; }
.about-text p { margin-bottom: 20px; }
.about-text p:last-child { margin-bottom: 0; }
.features-title { font-size: 1.4em; font-weight: 700; color: var(--c-heading); text-align: center; margin: 60px 0 40px; width: 100%; display: inline-block; }
.features-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.features-list li { display: flex; align-items: center; font-weight: 600; color: #374151; background: var(--c-bg-light); padding: 15px 20px; border-radius: 10px; transition: all 0.3s ease; border: 1px solid transparent; }
.features-list li:hover { background: #fff; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1); border-color: #dbeafe; transform: translateY(-2px); color: var(--c-primary-hover); }
.features-list li i { font-size: 1.2em; color: var(--c-primary); margin-right: 15px; width: 30px; text-align: center; transition: transform 0.3s ease; }
.features-list li:hover i { transform: scale(1.2); }

/* --- 4. ГАЛЕРЕЯ --- */
.wedding-gallery-section { max-width: 1200px; width: 100%; box-sizing: border-box; margin: 0 auto; padding: 20px; overflow-x: hidden; }
.gallery-grid { column-count: 3; column-gap: 20px; }
.gallery-item { break-inside: avoid; margin-bottom: 20px; position: relative; overflow: hidden; border-radius: 8px; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.gallery-item img { width: 100%; height: auto; display: block; border-radius: 8px; transition: transform 0.5s ease; }
.gallery-item:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-carousel-wrapper { position: relative; width: 100%; }
.gallery-arrow { display: none; position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.9); color: #333; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; z-index: 10; font-size: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.15); align-items: center; justify-content: center; transition: transform 0.2s; }
.gallery-arrow:active { transform: translateY(-50%) scale(0.9); }
.gallery-arrow.prev { left: 5px; }
.gallery-arrow.next { right: 5px; }

/* --- 5. LIGHTBOX --- */
.lightbox { display: none; position: fixed; z-index: 99999; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.95); justify-content: center; align-items: center; }
.lightbox img { max-width: 90%; max-height: 85%; border-radius: 4px; box-shadow: 0 0 20px rgba(0,0,0,0.5); object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; cursor: pointer; z-index: 100001; }
.lightbox-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.1); color: #fff; border: none; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; z-index: 100000; font-size: 24px; display: flex; align-items: center; justify-content: center; transition: background 0.3s ease; }
.lightbox-arrow:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox-arrow.prev { left: 20px; }
.lightbox-arrow.next { right: 20px; }

/* --- 6. ЦЕНЫ (PRICING) --- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; align-items: start; }
.price-item { background: #fff; border: 1px solid var(--c-border); border-radius: 20px; padding: 30px 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; display: flex; flex-direction: column; height: 100%; }
@media (hover: hover) { .price-item:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15); border-color: #dbeafe; } }
.plan-name { font-size: 18px; font-weight: 700; color: var(--c-text-light); text-transform: uppercase; margin-bottom: 15px; letter-spacing: 1px; }
.plan-price { font-size: 32px; font-weight: 800; color: var(--c-heading); margin-bottom: 5px; }
.plan-price span { font-size: 18px; font-weight: 500; color: #9ca3af; }
.plan-divider { height: 1px; background: #f3f4f6; margin: 20px 0; width: 100%; }
.plan-features { list-style: none; padding: 0; margin: 0 0 30px 0; flex-grow: 1; }
.plan-features li { font-size: 15px; color: var(--c-text); margin-bottom: 12px; display: flex; align-items: start; line-height: 1.5; }
.plan-features li i { color: var(--c-primary); margin-right: 12px; margin-top: 4px; font-size: 14px; min-width: 16px; }
.price-item.popular { border: 2px solid var(--c-primary); box-shadow: 0 15px 40px rgba(59, 130, 246, 0.15); z-index: 1; transform: scale(1.05); }
.popular-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--c-primary); color: #fff; padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 4px 10px rgba(59, 130, 246, 0.4); white-space: nowrap; }
.price-item.popular .plan-name { color: var(--c-primary); }
.plan-btn { display: block; width: 100%; padding: 16px 0; text-align: center; background: var(--c-bg-light); color: var(--c-heading); border-radius: 50px; text-decoration: none; font-weight: 600; transition: all 0.2s; }
.plan-btn:hover { background: var(--c-border); color: #000; }
.price-item.popular .plan-btn { background: linear-gradient(135deg, var(--c-primary), var(--c-primary-hover)); color: #fff; box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3); }
.price-item.popular .plan-btn:hover { box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4); transform: translateY(-2px); }

/* --- 7. FAQ (АККОРДЕОН) --- */
.faq-item { margin-bottom: 15px; border: 1px solid var(--c-border); border-radius: 12px; overflow: hidden; background: #fff; transition: all 0.3s ease; }
.faq-item:hover { border-color: var(--c-primary); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1); }
.faq-item[open] { border-color: #bfdbfe; background: #eff6ff; }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 20px; font-weight: 600; font-size: 18px; color: #374151; cursor: pointer; list-style: none; outline: none; }
.faq-question::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 24px; height: 24px; flex-shrink: 0; margin-left: 15px; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background-color: var(--c-primary); top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 2px; transition: transform 0.3s ease; }
.faq-icon::before { width: 2px; height: 16px; }
.faq-icon::after { width: 16px; height: 2px; }
details[open] .faq-icon::before { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
details[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(180deg); }
.faq-answer { padding: 0 20px 20px 20px; color: var(--c-text); line-height: 1.6; font-size: 16px; animation: fadeIn 0.4s ease; }
.faq-answer p { margin-bottom: 15px; }
.faq-answer p:last-child { margin-bottom: 0; }

/* =========================================
   8. МЕДИАЗАПРОСЫ (АДАПТИВНОСТЬ)
   ========================================= */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
    .gallery-grid { column-count: auto; display: flex; gap: 15px; overflow-x: auto; width: 100%; scroll-snap-type: x mandatory; padding-bottom: 20px; scrollbar-width: none; -ms-overflow-style: none; }
    .gallery-grid::-webkit-scrollbar { display: none; }
    .gallery-item { flex: 0 0 45%; margin-bottom: 0; scroll-snap-align: center; height: 400px; }
    .gallery-item img { width: 100%; height: 100%; object-fit: cover; }
    .gallery-arrow { display: flex; }
    .price-item.popular { transform: none; margin-top: 0; }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    .hero-wrapper { height: 85vh; min-height: auto; }
    .hero-title { font-size: 32px; line-height: 1.2; padding: 0 10px; }
    .hero-subtitle { font-size: 11px; letter-spacing: 1.5px; padding: 8px 15px; }
    .hero-btn { padding: 18px 40px; font-size: 15px; width: 100%; max-width: 280px; }
    .hero-bg { background-position: 65% center; } 
    
    .custom-about-section, .pricing-section { padding: 50px 15px; }
    .about-title { font-size: 2em; }
    .about-text { padding-left: 15px; border-left-width: 3px; }
    .features-list, .pricing-grid { grid-template-columns: 1fr; gap: 15px; }
    .pricing-title { font-size: 28px; }
    .price-item { padding: 25px 20px; }
    .price-item.popular { margin-top: 15px; }
}

/* Мелкие смартфоны (до 600px) */
@media (max-width: 600px) {
    .gallery-title { font-size: 1.3rem; letter-spacing: 0; line-height: 1.4; margin-top: 40px; padding: 0 10px; }
    .gallery-item { flex: 0 0 95%; height: 450px; }
    .lightbox-arrow { width: 40px; height: 40px; font-size: 18px; }
    .lightbox-arrow.prev { left: 10px; }
    .lightbox-arrow.next { right: 10px; }
    .faq-question { font-size: 16px; padding: 15px; }
    .faq-main-title { font-size: 26px; }
}
