:root {
    --primary-color: #f6b52a;
    --text-dark: #222222;
    --text-light: #777777;
    --bg-light: #fdfdfd;
    --bg-gray: #f9f9f9;
    /* Дефинираме новите шрифтове */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

#about,
#services,
#partners,
#howwework,
#contacts {
    scroll-margin-top: 50px;
}

/* Прилагаме Montserrat към всички заглавия и важни елементи */
h1,
h2,
h3,
.logo,
.trust-number,
.timeline-number,
.btn,
nav a {
    font-family: var(--font-heading);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.subtitle {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

h1 {
    font-weight: 700;
    letter-spacing: -1px;
}

h2 {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h3 {
    font-weight: 700;
}

p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 15px;
}

.btn {
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 28px;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #e0a322;
}

/* Header */
header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: #fff;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    background: #fff url('/assets/images/logo.png') center top;
    background-repeat: no-repeat;
    width: 100px;
    height: 45px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
}

nav a:hover {
    color: var(--primary-color);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 100;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 60px;
    gap: 50px;
}

.hero-image {
    flex: 1;
    min-height: 500px;
    background: #eee url('/assets/images/img001.jpg') -80px/cover;
    border-radius: 20px;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 54px;
    margin-bottom: 30px;
    line-height: 1.1;
}

/* CTA Banner */
.cta-banner {
    background-color: var(--primary-color);
    padding: 40px 0;
    color: #fff;
}

.cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-text h2 {
    font-size: 28px;
    margin-bottom: 5px;
    color: #fff;
}

.cta-text p {
    color: #fff;
    margin: 0;
}

/* About */
.about {
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 80px;
    gap: 60px;
}

.about-image {
    flex: 1;
    height: 400px;
    background: url('/assets/images/img002.jpg') center/cover;
    position: relative;
}

.corner-borders::before,
.corner-borders::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 4px solid var(--primary-color);
}

.corner-borders::before {
    top: -20px;
    left: -20px;
    border-bottom: none;
    border-right: none;
}

.corner-borders::after {
    bottom: -20px;
    right: -20px;
    border-top: none;
    border-left: none;
}

.about-content {
    flex: 1;
}

/* Services List */
.services-list-section {
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 80px;
    gap: 60px;
}

.services-content {
    flex: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.1rem;
}

.service-item span {
    color: var(--primary-color);
    font-weight: bold;
    border: 1px solid var(--primary-color);
    padding: 2px 6px;
    font-size: 12px;
}

.services-image {
    flex: 1;
    height: 400px;
    background: url('/assets/images/img003.jpg') center/cover;
    position: relative;
}

/* Finished Works */
.portfolio {
    text-align: center;
    padding: 80px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.portfolio h2 {
    margin-bottom: 10px;
}

.portfolio-placeholder {
    margin-top: 40px;
    height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
}

/* Trust Section */
.trust-section {
    background-color: var(--bg-gray);
    padding: 100px 0;
}

.trust-container {
    display: flex;
    gap: 60px;
}

.trust-content {
    flex: 1;
}

.trust-grid {
    flex: 1.5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.trust-card {
    background: #fff;
    padding: 40px 30px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.trust-number {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
}

.trust-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

/* Process Timeline */
.process {
    padding: 100px 0;
    text-align: center;
    background: #fff;
}

.timeline {
    max-width: 600px;
    margin: 60px auto 0;
    position: relative;
    text-align: left;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    border-left: 2px dashed #ddd;
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
    width: 50%;
    padding-right: 40px;
}

.timeline-item:nth-child(even) {
    margin-left: auto;
    padding-right: 0;
    padding-left: 40px;
}

.timeline-number {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 5px;
    display: block;
}

.timeline-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.timeline-item p {
    font-size: 14px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: -6px;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

.timeline-item:nth-child(even)::after {
    right: auto;
    left: -6px;
}

/* Reviews */
.reviews {
    background-color: var(--bg-gray);
    padding: 80px 0;
    text-align: center;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.review-card {
    background: #fff;
    padding: 40px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.stars {
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.reviewer {
    font-weight: 700;
    margin-top: 20px;
    font-size: 15px;
    color: var(--text-dark);
}


/* Contacts */
.contacts {
    background-color: var(--bg-gray);
    padding: 80px 0;
    text-align: center;
}

.contacts-item p {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.contacts-item p span {
    margin-right: 10px;
}

.contacts-item svg {
    width: 20px;
}

.contacts-item a {
    text-decoration: none;
    color: var(--text-light);
}

.contacts-item a:hover {
    color: var(--primary-color);
}


/* Responsive */
@media (max-width: 900px) {

    .hero,
    .about,
    .services-list-section,
    .trust-container {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 36px;
        margin-bottom: 20px;
        line-height: 1.2;
        font-weight: 700;
        letter-spacing: -0.5px;
    }

    .cta-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .trust-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        padding-left: 30px;
        padding-right: 0;
    }

    .timeline-item::after,
    .timeline-item:nth-child(even)::after {
        left: -5px;
    }

    /* Скриваме контактите на мобилно */
    .header-contact {
        display: none;
    }

    /* Показваме хамбургера */
    .hamburger {
        display: flex;
    }

    /* Стилизираме мобилното меню */
    nav ul {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
        transform: translateY(-150%);
        transition: transform 0.4s ease-in-out;
        z-index: 99;
        display: flex;
    }

    nav ul.active {
        transform: translateY(0);
    }

    /* Анимация на бутона X */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .header-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .process {
        padding-bottom: 10px;
    }

    /* IMAGES */

    .hero-image {
        min-height: 250px;
        background: #eee url('/assets/images/img001.jpg') center/cover;
        width: 100%;
    }

    .about-image {
        min-height: 400px;
        width: calc(100% - 40px);
    }

    .services-image {
        min-height: 400px;
        width: calc(100% - 40px);
    }

}


/* /////////////////////////////// */
/* /////////////////////////////// */
/* /////////////////////////////// */
/* /////////////////////////////// */
/* Стилизиране на секция Партньори */
.partners {
    padding-top: 80px;
    padding-bottom: 80px;
    text-align: center;
}

.partners p {
    max-width: 600px;
    margin: 0 auto 50px;
}

/* Wrapper за стрелките */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 40px;
    /* Място за стрелките */
}

/* Стилове за бутоните (стрелките) */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #eee;
    color: var(--text-dark);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* Карусел контейнер */
.partners-carousel {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    /* Плавно превъртане */
    -webkit-overflow-scrolling: touch;
    padding: 20px 0;
}

.partners-carousel::-webkit-scrollbar {
    display: none;
}

.partners-carousel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.partners-track {
    display: flex;
    gap: 30px;
    width: max-content;
}

.partner-item {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    /* Подравняване в началото за по-точен JS скрол */
    border: 1px solid #f0f0f0;
    padding: 30px;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.partner-item:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.partner-item img {
    max-width: 100%;
    height: auto;
    max-height: 70px;
    margin-bottom: 20px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-item h3 {
    font-size: 14px;
    margin: 0;
    font-weight: 600;
    font-family: var(--font-main);
}

.partner-item h3 a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.partner-item h3 a:hover {
    color: var(--primary-color);
}

/* Адаптивност за мобилни */
@media (max-width: 900px) {
    .carousel-wrapper {
        padding: 0 10px;
    }

    /* На мобилно скриваме стрелките, тъй като плъзгането с пръст е по-удобно */
    .carousel-btn {
        display: none;
    }

    .partner-item {
        flex: 0 0 160px;
        padding: 20px;
    }

    .partners-track {
        gap: 20px;
    }
}