* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #0d0d0d; /* Дълбок черен фон като логото */
    color: #e0e0e0;
    line-height: 1.6;
}

/* Навигация */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 8%;
    background-color: #050505;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #d4af37; /* Златна линия долу */
}

/* Навигация с лого */
/* Навигация с лого и текст */
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px; /* Разстояние между иконката и текста */
    text-decoration: none;
}

.site-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
}

.logo-text span {
    color: #d4af37; /* Златист цвят за "МЕБЕЛИ" */
}

.logo-link:hover .site-logo {
    transform: scale(1.05);
}

.navbar nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

.navbar nav ul li {
    margin-left: 25px;
}

.navbar nav ul li a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.3s;
}

.navbar nav ul li a:hover {
    color: #d4af37;
}

.btn-nav {
    background: linear-gradient(135deg, #d4af37, #aa820a);
    color: #000000 !important;
    font-weight: 700 !important;
    padding: 8px 18px;
    border-radius: 4px;
}

.btn-nav:hover {
    background: linear-gradient(135deg, #f3cf55, #d4af37);
}

/* Секции */
.section {
    padding: 70px 8%;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    color: #ffffff;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: #888888;
    margin-bottom: 40px;
}

.gold-line {
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, #d4af37, #f3cf55);
    margin: 15px 0 25px 0;
}

.gold-line.center {
    margin: 15px auto 30px auto;
}

/* За нас */
.about-section {
    background-color: #0d0d0d;
}

.about-content h2 {
    font-size: 2.2rem;
    color: #ffffff;
}

.about-content p {
    font-size: 1.05rem;
    color: #cccccc;
    margin-bottom: 15px;
}

/* Услуги */
.services-section {
    background-color: #141414;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.service-card {
    background-color: #0a0a0a;
    padding: 30px;
    border-radius: 6px;
    border-top: 3px solid #d4af37;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card .icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.service-card h3 {
    color: #ffffff;
    margin-bottom: 10px;
}

.service-card p {
    color: #aaaaaa;
    font-size: 0.9rem;
}

/* Портфолио */
.portfolio-section {
    background-color: #0d0d0d;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.gallery-item {
    background-color: #141414;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #222222;
}

.img-placeholder {
    height: 200px;
    background-color: #1f1f1f;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    font-weight: 600;
}

.gallery-info {
    padding: 20px;
}

.gallery-info h3 {
    color: #ffffff;
    font-size: 1.1rem;
}

.gallery-info p {
    color: #d4af37;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Контакти */
.contact-section {
    background-color: #141414;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info h3 {
    color: #ffffff;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 12px;
    color: #cccccc;
}

.highlight-text {
    color: #d4af37;
    font-weight: 600;
    margin-top: 15px;
}

/* Фикс за контактната форма */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column; /* Поставя текста над текстовото поле */
    align-items: flex-start;
    gap: 5px;
    width: 100%;
}

.form-group label {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 15px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4af37; /* Златист акцент при клик */
}

/* Съобщение за успешно изпращане */
#form-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    display: none;
}
#form-status.success {
    display: block;
    background-color: #28a745;
    color: white;
}
#form-status.error {
    display: block;
    background-color: #dc3545;
    color: white;
}

.btn-submit {
    background: linear-gradient(135deg, #d4af37, #aa820a);
    color: #000000;
    border: none;
    padding: 12px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #f3cf55, #d4af37);
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #050505;
    color: #666666;
    font-size: 0.85rem;
    border-top: 1px solid #1a1a1a;
}
/* ==========================================
   АДАПТИВЕН ДИЗАЙН ЗА ТЕЛЕФОНИ И ТАБЛЕТИ
   ========================================== */

@media (max-width: 768px) {

    /* Скриване на секцията и на бутона в менюто само за мобилни */
    .services-section,
    .nav-services {
        display: none !important;
    }

    /* Навигация за мобилни */
    .navbar {
        flex-direction: column;
        padding: 15px 5%;
        gap: 15px;
    }

    .navbar nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .navbar nav ul li {
        margin-left: 0;
    }

    /* Намаляване на шрифтовете и отстоянието */
    .section {
        padding: 40px 5%;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .about-content h2 {
        font-size: 1.7rem;
    }

    /* Мобилни карти - по 1 на ред */
    .gallery-grid, 
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .site-logo {
        height: 40px;
    }
}
.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}
/* Before & After Section */
.before-after-section {
    text-align: center;
    padding: 50px 20px;
}

.ba-container {
    position: relative;
    max-width: 900px;
    height: 500px; /* Можеш да го регулираш спрямо вашите снимки */
    margin: 30px auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    user-select: none;
    cursor: ew-resize;
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Обвивка за снимката "Преди" */
.img-before-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; /* Започва от средата */
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

/* Важно: Снимката Преди трябва да пази пълната ширина на контейнера */
.img-before-wrapper .img-before {
    width: 900px; /* Трябва да съвпада с max-width на .ba-container */
    max-width: none;
}

/* Дръжка на слайдъра */
.ba-handle {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 40px;
    margin-left: -20px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.handle-line {
    width: 3px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.handle-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* Баджове ПРЕДИ / СЛЕД */
/* Преливаща златиста секция Преди & След */
section.before-after-section, 
section#portfolio {
    position: relative;
    padding: 90px 20px !important;
    text-align: center;
    color: #111111 !important;
    
    /* Плавни преходи от черно към златисто и пак към черно */
    background: linear-gradient(
        180deg, 
        #0d0d0d 0%, 
        #d4af37 20%, 
        #c59b27 80%, 
        #0d0d0d 100%
    ) !important;
}

/* Оправяме цвета на текста вътре */
section.before-after-section h2, 
section#portfolio h2 {
    color: #000000 !important;
    font-weight: 800;
}

section.before-after-section .section-subtitle, 
section#portfolio .section-subtitle {
    color: #222222 !important;
    font-weight: 600;
}
/* Адаптивност за мобилни телефони */
@media (max-width: 768px) {
    .ba-container {
        height: 350px;
    }
}
/* Мрежа за Before & After слайдърите */
.ba-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 колонки на компютър */
    gap: 30px; /* Разстояние между двата слайдъра */
    max-width: 1200px;
    margin: 0 auto;
}

/* Коригираме марджина и височината на контейнерите за решетка */
.ba-grid .ba-container {
    width: 100%;
    max-width: 100%;
    height: 400px; /* Малко по-ниска височина, за да изглеждат добре един до друг */
    margin: 0;
}

/* На мобилни устройства преминават един под друг */
@media (max-width: 992px) {
    .ba-grid {
        grid-template-columns: 1fr; /* 1 колонка за телефони и таблети */
        gap: 40px;
    }
    
    .ba-grid .ba-container {
        height: 320px;
    }
}
/* Инфо текст под слайдърите */
.ba-card {
    display: flex;
    flex-direction: column;
}

.ba-info {
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
    color: #111111;
    background: rgba(0, 0, 0, 0.08);
    padding: 8px 15px;
    border-radius: 20px;
    align-self: center;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.ba-info strong {
    color: #000000;
}
/* Stats / Counter Section */
/* Stats / Counter Section */
.stats-section {
    background-color: #0d0d0d;
    padding: 60px 20px;
    border-bottom: 1px solid #222222;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 колонки */
    gap: 25px;
    max-width: 700px; /* Малко по-тесен контейнер, за да стоят перфектно двете */
    margin: 0 auto;
    text-align: center;
}

.stat-card {
    background: #141414;
    padding: 30px 20px;
    border-radius: 12px;
    border: 1px solid #262626;
    transition: all 0.5s ease; /* Плавна преходна анимация */
}

/* Hover ефект за мишка на компютър */
@media (min-width: 993px) {
    .stat-card:hover {
        transform: translateY(-6px);
        border-color: #d4af37;
        box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15);
    }
}

/* Изпъкващ ефект (Active status) - за мобилни и автоматично редуване */
.stat-card.active {
    transform: translateY(-6px);
    border-color: #d4af37;
    background: #1a1813;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.stat-number {
    display: block;
    font-size: 44px;
    font-weight: 800;
    color: #d4af37;
    line-height: 1;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.stat-label {
    font-size: 15px;
    color: #cccccc;
    font-weight: 500;
}

/* Адаптивност за мобилни */
@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr; /* 1 под друга на малки телефони */
        gap: 20px;
    }
}