/* Основен шрифт за цялата страница */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    color: #333333;
    background-color: #fcfbf9;
}

/* Мека закръглена заглавна шрифтова линия */
h1, h2, h3, .logo a {
    font-family: 'Comfortaa', cursive, sans-serif;
    font-weight: 700;
}

/* Навигация */
/* Обновете или добавете тези свойства към вашия клас .navbar в css/style.css */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000; /* Гарантира, че лентата стои най-отгоре като слой над останалите елементи */
    
    /* Запазете вашите съществуващи стилове: */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f7f3eb;
    padding: 15px 50px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.navbar a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
}

.navbar a.portal-btn {
    background-color: #6b46c1;
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    transition: background-color 0.2s ease;
}

.navbar a.portal-btn:hover {
    background-color: #553c9a;
}

/* Hero Секция */
.hero {
    text-align: center;
    padding: 80px 20px;
    background-color: #f7f3eb;
}

.hero h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-top: 0;
}

.hero p {
    color: #4a5568;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* Бутон с иконка и сянка */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #319795;
    color: #ffffff;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(49, 151, 149, 0.4);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #2b8280;
    box-shadow: 0 6px 20px rgba(49, 151, 149, 0.6);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.2rem;
}

/* Карти с услуги */
.services-overview {
    padding: 50px 20px;
    text-align: center;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    width: 280px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.card h3 {
    color: #319795;
    margin-top: 0;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #2d3748;
    color: white;
}
/* Бутони вътре в картичките с услуги */
.open-modal-btn {
    margin-top: 15px;
    background-color: transparent;
    color: #319795; /* Дълбоко океанско синьо */
    border: 2px solid #319795;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.open-modal-btn:hover {
    background-color: #319795;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(49, 151, 149, 0.2);
}
/* Модален прозорец (Pop-up) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    max-width: 550px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    text-align: left;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #718096;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #2d3748;
}

.modal-content h2 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.modal-subtitle {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 350px;
    overflow-y: auto;
}

.modal-item {
    background-color: #fcfbf9;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #319795;
}

.modal-item h3 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 1.05rem;
}

.modal-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.4;
}

.modal-footer {
    margin-top: 25px;
    text-align: center;
}

.superdoc-confirm-btn {
    display: inline-block;
    background-color: #319795;
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(49, 151, 149, 0.3);
    transition: background-color 0.2s ease;
}

.superdoc-confirm-btn:hover {
    background-color: #2b8280;
}
/* =========================================
   1. БУТОН ЗА SUPERDOC (СЯНКА И КОНТРАСТЕН ЕФЕКТ)
   ========================================= */

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #319795; /* Дълбоко океанско синьо */
    color: #ffffff !important;
    padding: 16px 32px;
    border: none;
    border-radius: 50px; /* Изящен заоблен бутон */
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    
    /* Сянка по подразбиране */
    box-shadow: 0 8px 20px rgba(49, 151, 149, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Ефект при посочване (Hover) - изпъква с топла акцентна сянка */
.cta-button:hover {
    background-color: #2b8280;
    transform: translateY(-3px) scale(1.02);
    /* Видима контрастна сянка при посочване */
    box-shadow: 0 12px 28px rgba(49, 151, 149, 0.45), 0 0 15px rgba(107, 70, 193, 0.3);
}

/* Ефект при натискане (Active/Click) - ярка реакция с контрастен цвят */
.cta-button:active {
    transform: translateY(1px) scale(0.98);
    background-color: #236866;
    /* Ярко златисто/оранжево сияние при клик за ясна реакция */
    box-shadow: 0 2px 10px rgba(237, 137, 54, 0.8), 0 0 20px rgba(237, 137, 54, 0.6);
}

.btn-icon {
    font-size: 1.3rem;
}


/* =========================================
   2. КАРТИЧКИ С УСЛУГИ НА НАЧАЛНАТА СТРАНИЦА
   ========================================= */

.card {
    background: #ffffff;
    padding: 28px;
    border-radius: 12px;
    width: 280px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

/* При посочване с мишката картичките "се повдигат" с контрастно сияние */
.card:hover {
    transform: translateY(-6px);
    border-color: #319795;
    box-shadow: 0 12px 24px rgba(49, 151, 149, 0.18);
}


/* =========================================
   3. МОДАЛЕН ПРОЗОРЕЦ (POP-UP)
   ========================================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 80, 0.6); /* Полупрозрачен тъмен фон */
    backdrop-filter: blur(4px); /* Леко размиване на фона зад него */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #ffffff;
    padding: 35px;
    border-radius: 16px;
    max-width: 550px;
    width: 90%;
    position: relative;
    /* Ярка контрастна сянка, отделяща го напълно от страницата */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), 0 0 30px rgba(107, 70, 193, 0.2);
    transform: scale(0.85);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}
/* =========================================
   ГАЛЕРИЯ С ЦЯЛА ШИРИНА (FULL WIDTH SLIDER)
   ========================================= */

.gallery-section {
    padding: 50px 0 0 0; /* Без странични отстъпи */
    text-align: center;
    background-color: #ffffff;
    width: 100%;
}

.gallery-section h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 5px;
    padding: 0 20px;
}

.gallery-subtitle {
    color: #718096;
    margin-bottom: 30px;
    font-size: 1rem;
    padding: 0 20px;
}

/* Контейнер с цяла ширина на екрана */
.carousel-container {
    position: relative;
    width: 100%; /* Заема 100% от ширината на страницата */
    max-width: 100%; /* Премахваме ограничението */
    margin: 0;
    border-radius: 0; /* Премахваме ъглите, за да пасне идеално по краищата */
    overflow: hidden;
    background-color: #2c3e50;
}

/* Слайдове */
.carousel-slide {
    display: none;
    position: relative;
    width: 100%;
}

.carousel-slide.active {
    display: block;
}

/* Снимката покрива целия екран по ширина */
.carousel-slide img {
    width: 100%;
    height: 60vh; /* Заема 60% от височината на екрана */
    min-height: 400px;
    max-height: 650px;
    object-fit: cover; /* Изрязва и центрира снимката без разтягане */
    display: block;
}

/* Текст върху снимката (Caption) */
.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: #ffffff;
    padding: 30px 20px 20px 20px;
    font-size: 1.2rem;
    font-weight: 500;
    box-sizing: border-box;
    text-align: center;
}

/* Анимация при смяна */
.fade {
    animation: fadeEffect 0.8s ease-in-out;
}

@keyframes fadeEffect {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

/* Бутони / Стрелки за контрол */
.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    color: #2c3e50;
    border: none;
    font-size: 24px;
    padding: 16px 22px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    user-select: none;
    z-index: 10;
}

.prev-btn { left: 25px; }
.next-btn { right: 25px; }

.prev-btn:hover, .next-btn:hover {
    background-color: #319795;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Точки за индикация */
.dots-container {
    position: absolute;
    bottom: 15px;
    right: 30px;
    z-index: 10;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: #319795;
    transform: scale(1.3);
}
/* =========================================
   ПОСЛЕДНИ СТАТИИ ОТ БЛОГА
   ========================================= */

.latest-blog-section {
    padding: 70px 20px;
    background-color: #f3edd7; /* Пастелно кремаво за мек контраст */
    text-align: center;
}

.latest-blog-section h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #4a5568;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.blog-cards-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

/* Карта на статията */
.blog-card {
    background-color: #ffffff;
    width: 320px;
    border-radius: 12px;
    overflow: hidden; /* Гарантира, че снимката следва извивките на картата */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(49, 151, 149, 0.15); /* Лек акцент с океанско синьо */
}

/* Снимка към статията */
.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Съдържание на картата */
.blog-content {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Категория / Таг */
.blog-meta {
    font-size: 0.85rem;
    color: #6b46c1; /* Успокояващо лилаво */
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
}

.blog-title {
    color: #2c3e50;
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-excerpt {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;
    flex-grow: 1; /* Избутва бутона най-отдолу, ако текстът е кратък */
}

/* Връзка "Прочети повече" */
.read-more-btn {
    color: #319795; /* Дълбоко океанско синьо */
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    align-self: flex-start;
}

.read-more-btn:hover {
    color: #2b8280;
    text-decoration: underline;
}

/* Бутон за всички статии */
.view-all-blog {
    margin-top: 50px;
}

.secondary-btn {
    display: inline-block;
    background-color: transparent;
    color: #319795;
    padding: 12px 28px;
    border: 2px solid #319795;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background-color: #319795;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(49, 151, 149, 0.3);
}
/* =========================================
   СТИЛОВЕ ЗА ВАЖНАТА ИНФОРМАЦИЯ В ПРОЗОРЕЦА
   ========================================= */

/* Общ текст / Анотация */
.modal-description {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Акцентна кутия за условията */
.important-info-box {
    background-color: #fffaf0; /* Много мек топъл нюанс */
    border-left: 5px solid #ed8936; /* Топъл оранжев акцент за внимание */
    padding: 18px 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.important-info-box h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #dd6b20; /* Тъмно оранжево за заглавието */
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.important-info-box ul {
    margin: 0;
    padding-left: 20px;
    color: #2d3748;
}

.important-info-box li {
    margin-bottom: 10px;
    line-height: 1.4;
    font-size: 0.95rem;
}

.important-info-box li:last-child {
    margin-bottom: 0; /* Премахва излишното разстояние след последната точка */
}
/* =========================================
   СТИЛОВЕ ЗА СТРАНИЦАТА "ЗА МЕН"
   ========================================= */

.about-section {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 20px;
    display: block; 
}

/* Clearfix: предотвратява счупване на дизайна от плаващата снимка */
.about-section::after {
    content: "";
    display: table;
    clear: both;
}

/* Снимката (заоблена, плаваща вляво) */
.profile-blob {
    float: left; 
    width: 280px; 
    height: 280px;
    object-fit: cover;
    object-position: top; /* Фокусира лицето */
    margin-right: 40px; 
    margin-bottom: 20px; 
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;[cite: 1]
    filter: brightness(0.8);[cite: 1]
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);[cite: 1]
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);[cite: 1]
}

.profile-blob.clicked {
    filter: brightness(1.1) contrast(1.05);
    transform: scale(1.08); 
    border-radius: 40px; 
    box-shadow: 0 0 30px rgba(49, 151, 149, 0.5), 0 15px 35px rgba(107, 70, 193, 0.2);
}

/* Основен текст - двустранно подравнен */
.about-text {
    color: #4a5568;
    line-height: 1.8;
    font-size: 1.05rem;
    text-align: justify; /* Тук прилагаме вашето изискване за двустранно подравняване */
}

.about-text h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 25px;
    text-align: left; /* Заглавията остават вляво */
}

.about-text h3 {
    color: #319795; 
    margin-top: 35px;
    margin-bottom: 12px;
    font-size: 1.35rem;
    text-align: left;
}

.about-text p {
    margin-bottom: 18px;
}

/* =========================================
   ИНФОГРАФИКА "КАК РАБОТЯ"
   ========================================= */

/* =========================================
   ИНФОГРАФИКА "КАК РАБОТЯ"
   ========================================= */

.infographic-section {
    clear: both; 
    margin-top: 50px;
}

.timeline {
    position: relative;
    max-width: 100%;
    padding-left: 35px; 
}

/* Вертикалната линия */
.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 5px;
    bottom: 0;
    width: 3px;
    background: #e2e8f0; 
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Контейнер за иконката върху линията */
.timeline-icon {
    position: absolute;
    left: -43px; 
    top: 10px;
    width: 32px;
    height: 32px;
    background-color: #fcfbf9; 
    border: 2px solid #319795; 
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #319795; 
    box-shadow: 0 0 0 5px #fcfbf9; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.timeline-icon svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.4s ease;
}

/* =========================================
   НОВИТЕ ЦВЕТНИ БЛОКОВЕ С ТЕКСТ
   ========================================= */
.timeline-content {
    background: #ffffff;
    padding: 20px 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0; /* Лека сива рамка */
    border-left: 4px solid #319795; /* Постоянен акцент в океанско синьо отляво */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: left;
}

.timeline-content h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 1.15rem;
}

.timeline-content p {
    margin: 0;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Ефекти при посочване (Hover) на целия блок */
.timeline-item:hover .timeline-content {
    transform: translateX(8px);
    border-color: #e9d8fd; /* Рамката става нежно лилава */
    border-left-color: #6b46c1; /* Страничният акцент става наситено лилав */
    box-shadow: 0 12px 25px rgba(107, 70, 193, 0.15); /* Сянката става цветна */
}

/* Иконката светва в лилаво при посочване */
.timeline-item:hover .timeline-icon {
    background-color: #6b46c1;
    border-color: #6b46c1;
    color: #ffffff; 
    box-shadow: 0 0 0 6px rgba(107, 70, 193, 0.25);
    transform: scale(1.2);
}

/* Корекция на мобилната версия */
@media (max-width: 768px) {
    .timeline-icon {
        left: -39px;
    }
}
/* =========================================
   РАЗГЪВАЩ СЕ АКОРДЕОН ЗА ПРИНЦИПИТЕ
   ========================================= */

.timeline-content {
    cursor: pointer; /* Показва на потребителя, че блокът е кликаем */
    /* Вашите съществуващи стилове се запазват */
}

/* Скритият панел по подразбиране */
.timeline-accordion {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease, margin-top 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Снимката в разгънатия панел */
.timeline-accordion img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Текстът на примера */
.accordion-text h5 {
    color: #6b46c1; /* Успокояващото лилаво */
    margin: 0 0 6px 0;
    font-size: 1.05rem;
}

.accordion-text p {
    font-size: 0.95rem;
    color: #4a5568;
    font-style: italic; /* Прави примера да изглежда като цитат/история */
    line-height: 1.6;
    margin: 0;
}

/* Малкият текст "Кликнете за пример ▼" */
.expand-hint {
    text-align: right;
    font-size: 0.8rem;
    color: #319795; /* Океанско синьо */
    margin-top: 10px;
    font-weight: 600;
    transition: opacity 0.3s;
}

.expand-hint span {
    display: inline-block;
    transition: transform 0.4s ease;
}

/* =========================================
   АКТИВНО (РАЗГЪНАТО) СЪСТОЯНИЕ
   ========================================= */

.timeline-content.expanded .timeline-accordion {
    max-height: 500px; /* Достатъчно място за разгъване на съдържанието */
    opacity: 1;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed #e2e8f0; /* Лека разделителна линия */
}

/* Завърта стрелката нагоре, когато е отворено */
.timeline-content.expanded .expand-hint span {
    transform: rotate(180deg);
}

/* Променя текста на индикатора, когато е отворено */
.timeline-content.expanded .expand-hint {
    color: #a0aec0;
}
/* =========================================
   СТИЛОВЕ ЗА СТРАНИЦАТА "УСЛУГИ"
   ========================================= */

.services-hero {
    text-align: center;
    padding: 60px 20px;
    background-color: #f7f3eb; /* Същият топъл пастелен фон като на началната страница */
}

.services-hero h1 {
    color: #f7f3eb;
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.services-hero p {
    color: #4a5568;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.services-detailed-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* Редове за всяка услуга */
.service-row {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(49, 151, 149, 0.12);
}

.service-row.reverse {
    flex-direction: row-reverse; /* Редуване на ляво/дясно за раздвижен дизайн */
}

.service-text {
    padding: 40px;
    flex: 1;
}

.service-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #319795;
    background-color: #e6fffa;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.service-text h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.service-text p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.service-features li {
    color: #2d3748;
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Странични акцентни кутии с цени */
.service-box-accent {
    width: 280px;
    background: linear-gradient(135deg, #319795, #2b8280);
    color: #ffffff;
    padding: 50px 30px;
    text-align: center;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-box-accent.sop-bg {
    background: linear-gradient(135deg, #6b46c1, #553c9a);
}

.service-box-accent.family-bg {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
}

.price-title {
    display: block;
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-value {
    font-family: 'Comfortaa', cursive, sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
}

.service-btn {
    padding: 12px 24px;
    font-size: 0.95rem;
}

/* Адаптивност за мобилни устройства */
@media (max-width: 768px) {
    .service-row, .service-row.reverse {
        flex-direction: column;
    }
    .service-box-accent {
        width: 100%;
        padding: 25px;
    }
    .service-text {
        padding: 25px;
    }
}
/* =========================================
   СТИЛОВЕ ЗА СТРАНИЦАТА "УСЛУГИ"
   ========================================= */

.services-hero {
    text-align: center;
    padding: 60px 20px;
    background-color: #f3edd7; /* Топъл пастелен фон */
}

.services-hero h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.services-hero p {
    color: #4a5568;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.services-detailed-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* Редове за всяка услуга */
.service-row {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(49, 151, 149, 0.12);
}

.service-row.reverse {
    flex-direction: row-reverse; /* Редуване на ляво/дясно за раздвижен дизайн */
}

.service-text {
    padding: 40px;
    flex: 1;
}

.service-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #319795;
    background-color: #e6fffa;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.service-text h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.service-text p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.service-features li {
    color: #2d3748;
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Странични акцентни кутии с цени */
.service-box-accent {
    width: 280px;
    background: linear-gradient(135deg, #319795, #2b8280);
    color: #ffffff;
    padding: 50px 30px;
    text-align: center;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-box-accent.sop-bg {
    background: linear-gradient(135deg, #6b46c1, #553c9a);
}

.service-box-accent.family-bg {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
}

.price-title {
    display: block;
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-value {
    font-family: 'Comfortaa', cursive, sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
}

.service-btn {
    padding: 12px 24px;
    font-size: 0.95rem;
}

/* Адаптивност за мобилни устройства */
@media (max-width: 768px) {
    .service-row, .service-row.reverse {
        flex-direction: column;
    }
    .service-box-accent {
        width: 100%;
        padding: 25px;
    }
    .service-text {
        padding: 25px;
    }
}
/* =========================================
   СТИЛОВЕ ЗА ПОДПРОГРАМИТЕ В СТРАНИЦАТА "УСЛУГИ"
   ========================================= */

.sub-programs-container {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sub-programs-container h4 {
    color: #2c3e50;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

/* Всяка подпрограма (картичка-акордеон) */
.sub-program-card {
    background-color: #fcfbf9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sub-program-card:hover {
    border-color: #319795;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(49, 151, 149, 0.08);
}

.sub-program-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

.sub-program-header > span:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

/* Стрелката остава видима и не се свива при пренасяне на заглавието. */
.sub-program-header .arrow {
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e8f4f1;
    color: #247c79;
    font-size: 0.8rem;
    line-height: 1;
    opacity: 1;
    visibility: visible;
    transition: transform 0.3s ease;
}

/* Скрит текст (анотация) по подразбиране */
.sub-program-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out, margin-top 0.3s ease;
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.6;
}

/* Когато подпрограмата е разгъната (expanded) */
.sub-program-card.expanded {
    border-color: #319795;
    background-color: #ffffff;
    box-shadow: 0 6px 15px rgba(49, 151, 149, 0.1);
}

.sub-program-card.expanded .sub-program-content {
    max-height: 300px; /* Достатъчно място за анотацията */
    opacity: 1;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

.sub-program-card.expanded .arrow {
    transform: rotate(180deg); /* Завърта стрелката нагоре */
}
/* =========================================
   СТИЛОВЕ ЗА СТРАНИЦАТА "БЛОГ"
   ========================================= */

/* Заглавна секция на блога (използва същия клас като при услугите) */
.services-hero {
    text-align: center;
    padding: 60px 20px;
    background-color: #f3edd7;
}

.services-hero h1 {
    color: #2c3e50;
    font-size: 2.3rem;
    margin-bottom: 10px;
}

.services-hero p {
    color: #4a5568;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Филтри / Категории пилюки */
.blog-categories {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.category-pill {
    border: 0;
    margin: 0 5px;
    font-family: inherit;
    background-color: #e2e8f0;
    color: #4a5568;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-pill:hover,
.category-pill.active {
    background-color: #319795;
    color: white;
    box-shadow: 0 4px 12px rgba(49, 151, 149, 0.25);
}

/* Контейнер за картите в блога */
.blog-cards-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

/* Индивидуална карта на статия */
.blog-card {
    background-color: #ffffff;
    width: 330px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    border: 1px solid #edf2f7;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(49, 151, 149, 0.15);
}

/* Снимка към статията */
.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Съдържание на картата */
.blog-content {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Мета данни / Категория над заглавието */
.blog-meta {
    font-size: 0.85rem;
    color: #6b46c1;
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
}

/* Заглавие на статията */
.blog-title {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Заглавията в картите са по-компактни от общото заглавие на секцията. */
.latest-blog-section .blog-title {
    font-size: 1.05rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    hyphens: auto;
}

/* Кратък откъс (excerpt) */
.blog-excerpt {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Линк "Прочети повече" */
.read-more-btn {
    color: #319795;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    align-self: flex-start;
}

.read-more-btn:hover {
    color: #2b8280;
    text-decoration: underline;
}
/* =========================================
   ДВУСТРАННО ПОДРАВНЯВАНЕ НА ТЕКСТА (JUSTIFY)
   ========================================= */

/* Подравнява двустранно целия текст вътре в статиите */
.article-body p, 
.blog-excerpt,
.blog-content p {
    text-align: justify !important;
    text-justify: inter-word;
}
/* Добавя отстъп на първия ред само за основния текст в статиите */
.article-body p {
    text-indent: 30px;
}
/* =========================================
   БУТОН ЗА ВРЪЩАНЕ НАГОРЕ (BACK TO TOP)
   ========================================= */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: #319795; /* Океанско синьо */
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(49, 151, 149, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
}

/* Появяване на бутона, когато се скролне надолу */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Ефект при задържане на мишката (Hover) */
.back-to-top:hover {
    background-color: #2b8280;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(49, 151, 149, 0.6);
}

/* Ефект при кликване (Active) */
.back-to-top:active {
    transform: translateY(1px) scale(0.95);
}

/* Подредба за телефони и тесни екрани */
@media (max-width: 768px) {
    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    img,
    video,
    iframe {
        max-width: 100%;
    }

    .navbar {
        display: block;
        width: 100%;
        padding: 10px 14px;
    }

    .navbar .logo {
        width: 100%;
        margin-bottom: 8px;
        text-align: center;
    }

    .navbar nav {
        width: 100%;
    }

    .navbar ul {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px 4px;
        width: 100%;
    }

    .navbar li {
        min-width: 0;
    }

    .navbar a {
        display: flex;
        min-height: 38px;
        align-items: center;
        justify-content: center;
        padding: 6px 4px;
        text-align: center;
        font-size: 0.82rem;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .navbar a.portal-btn {
        padding: 6px 4px;
        border-radius: 12px;
        font-size: 0.75rem;
    }

    .hero {
        padding: 48px 18px;
    }

    .hero h1,
    .services-hero h1,
    .contact-hero h1 {
        font-size: clamp(1.65rem, 6vw, 2rem);
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .hero p,
    .services-hero p,
    .contact-hero p {
        font-size: 1rem;
        line-height: 1.65;
    }

    .cta-button {
        max-width: 100%;
        padding: 12px 16px;
        line-height: 1.35;
    }

    .gallery-section {
        padding-top: 34px;
    }

    .gallery-section h2 {
        font-size: clamp(1.35rem, 5vw, 1.7rem);
        line-height: 1.3;
    }

    .gallery-subtitle {
        margin-bottom: 20px;
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .carousel-slide img {
        height: 46svh;
        min-height: 270px;
        max-height: 430px;
    }

    .caption {
        padding: 26px 56px 16px;
        font-size: 0.95rem;
        line-height: 1.45;
    }

    .prev-btn,
    .next-btn {
        width: 42px;
        height: 42px;
        padding: 0;
        font-size: 18px;
    }

    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }

    .services-overview {
        padding: 42px 16px;
    }

    .services-overview > h2,
    .latest-blog-section > h2 {
        font-size: clamp(1.5rem, 5.5vw, 1.9rem);
        line-height: 1.3;
    }

    .cards-container {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        width: 100%;
    }

    .card {
        width: 100%;
        max-width: 430px;
        margin: 0;
        padding: 22px 18px;
    }

    .latest-blog-section {
        padding: 48px 16px;
    }

    .section-subtitle {
        margin-bottom: 26px;
        font-size: 1rem;
        line-height: 1.6;
    }

    .blog-cards-container {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        width: 100%;
    }

    .blog-card {
        width: 100%;
        max-width: 430px;
        margin: 0 auto;
    }

    .blog-card:hover,
    .service-row:hover,
    .contact-card:hover {
        transform: none;
    }

    .blog-content {
        padding: 20px 18px;
    }

    .services-hero,
    .contact-hero {
        padding: 42px 18px;
    }

    .services-detailed-section {
        width: 100%;
        margin: 34px auto;
        padding: 0 14px;
        gap: 22px;
    }

    .service-row,
    .service-row.reverse {
        width: 100%;
        flex-direction: column;
    }

    .service-text {
        width: 100%;
        padding: 22px 18px;
    }

    .service-text h2 {
        font-size: 1.5rem;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .service-box-accent {
        width: 100%;
        min-height: 120px;
        padding: 22px 16px;
    }

    .sub-program-card {
        padding: 13px 14px;
    }

    .sub-program-header {
        gap: 10px;
        font-size: 0.9rem;
    }

    .sub-program-content {
        overflow-wrap: anywhere;
    }

    .contact-section {
        padding: 34px 16px 48px;
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .contact-card {
        min-width: 0;
        padding: 22px 18px;
    }

    .contact-value {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .contact-note {
        gap: 14px;
        padding: 20px 18px;
    }

    .about-section {
        margin: 42px auto;
        padding: 0 16px;
    }

    .profile-blob {
        float: none;
        display: block;
        width: min(100%, 260px);
        height: auto;
        aspect-ratio: 1;
        margin: 0 auto 24px;
    }

    .about-text {
        font-size: 1rem;
        text-align: left;
        overflow-wrap: anywhere;
    }

    .about-text h2 {
        font-size: 1.9rem;
        white-space: nowrap;
        word-break: normal;
        overflow-wrap: normal;
    }

    .about-text h3 {
        font-size: 1.2rem;
    }

    .timeline {
        padding-left: 28px;
    }

    .timeline-icon {
        left: -36px;
    }

    .timeline-content {
        padding: 16px;
    }

    .timeline-item:hover .timeline-content {
        transform: none;
    }

    .article-body {
        overflow-wrap: anywhere;
    }

    .article-body img[style*="float"] {
        float: none !important;
        display: block;
        width: 100% !important;
        max-width: 100%;
        height: auto !important;
        margin: 18px auto 24px !important;
    }

    .article-body h1 {
        font-size: clamp(1.55rem, 6vw, 2rem) !important;
        line-height: 1.35 !important;
        overflow-wrap: anywhere;
    }

    .article-body p {
        text-align: left !important;
        text-indent: 1em !important;
        overflow-wrap: anywhere;
    }

    footer {
        padding: 18px 14px;
        font-size: 0.85rem;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    .back-to-top {
        right: max(14px, env(safe-area-inset-right));
        bottom: max(14px, env(safe-area-inset-bottom));
        width: 50px;
        height: 50px;
        z-index: 10000;
        -webkit-appearance: none;
        appearance: none;
        touch-action: manipulation;
    }
}

@media (max-width: 380px) {
    .navbar ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .navbar a {
        font-size: 0.85rem;
    }

    .caption {
        padding-right: 48px;
        padding-left: 48px;
    }
}
