:root {
    --primary: #1e293b;
    --primary-light: #334155;
    --accent: #ea580c;
    --accent-hover: #c2410c;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --bg-hero: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    --border-color: #e2e8f0;
    --radius: 12px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --transition: all 0.3s ease;
}

/* Глобална защита от хоризонтален скрол и фиксиране на шрифта */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    word-wrap: break-word;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header & Nav */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent);
}

.btn-header {
    background-color: var(--accent);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-header:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: var(--bg-hero);
    color: var(--text-dark);
    padding: 60px 0 80px;
    border-bottom: 1px solid var(--border-color);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-title span {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.25);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--text-dark);
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: center;
}

.btn-secondary:hover {
    border-color: var(--text-muted);
    background-color: var(--bg-light);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 5px;
    line-height: 1.3;
}

.stat-text {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
}

/* Sections */
.section {
    padding: 70px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.section-tag {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.08);
}

.service-icon {
    width: 55px;
    height: 55px;
    background-color: #ffedd5;
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-list {
    list-style: none;
    border-top: 1px dashed var(--border-color);
    padding-top: 15px;
    margin-top: auto;
}

.service-list li {
    font-size: 0.9rem;
    color: var(--primary-light);
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.service-list li::before {
    content: "✓";
    color: var(--accent);
    font-weight: bold;
    flex-shrink: 0;
}

/* Gallery */
.gallery-section {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
    cursor: pointer;
    background-color: #f1f5f9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.7) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    color: #ffffff;
    font-weight: 600;
}

.gallery-empty {
    text-align: center;
    padding: 40px 15px;
    background-color: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    grid-column: 1 / -1;
}

.gallery-empty-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.gallery-empty h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.gallery-empty p {
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    background-color: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.info-icon {
    width: 48px;
    height: 48px;
    background-color: #ffedd5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.info-details label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.info-details a, .info-details span {
    color: var(--text-dark);
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
}

.contact-form {
    background-color: #ffffff;
    padding: 30px;
    border-radius: var(--radius);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    background-color: var(--bg-light);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background-color: #ffffff;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.alert-success {
    background-color: #dcfce7;
    color: #15803d;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
}

footer {
    background-color: var(--primary);
    color: #94a3b8;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Мобилна оптимизация */
@media (max-width: 992px) {
    .hero-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .nav-menu {
        display: none;
    }

    .hero-title {
        font-size: 2.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 40px 0 50px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 20px 15px;
    }

    .nav-wrapper {
        height: 70px;
    }
}

/* Lightbox Модал и Стрелки */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.92);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    user-select: none;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 85%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 2010;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--accent);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: none;
    font-size: 2rem;
    padding: 12px 18px;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 2010;
    line-height: 1;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--accent);
    color: #ffffff;
}

@media (max-width: 576px) {
    .lightbox-prev { left: 10px; padding: 8px 12px; font-size: 1.4rem; }
    .lightbox-next { right: 10px; padding: 8px 12px; font-size: 1.4rem; }
    .lightbox-img { max-width: 95%; }
}