/* ДИЗАЙН СИСТЕМА: КРАЛСКО СИНЬО, ЗЛАТНО И СЪВРЕМЕНЕН ЛУКС */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

html, body {
    background-color: #070b19;
    color: #ffffff;
    width: 100%;
    /* ПЪЛЕН ФИКС ПРОТИВ КЛАТУШКАНЕ И СТРАННО МЕСТЕНЕ НА ТЕЛЕФОН */
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

:root {
    --bg-deep: #070b19;
    --bg-card: #0f162e;
    --accent-gold: #d4af37;
    --accent-gold-hover: #f3cf65;
    --accent-blue: #1e40af;
    --accent-orange: #f97316;
    --accent-orange-dark: #c2410c;
    --border-color: rgba(212, 175, 55, 0.15);
    --text-light: #ffffff;
    --text-gray: #94a3b8;
}

/* СВЕТЕЩИ СФЕРИ НА ФОНА */
.glow-sphere-1 {
    position: absolute;
    top: 10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.25) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.glow-sphere-2 {
    position: absolute;
    top: 50%;
    right: -10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(212, 175, 55, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 2;
    pointer-events: none;
}

.wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
}

/* НАВИГАЦИЯ С БЪРЗИ БУТОНИ ЗА ТЕЛЕФОН */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(7, 11, 25, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: clamp(48px, 5vw, 68px);
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

/* БЪРЗИ БУТОНИ В НАВИГАЦИЯТА */
.quick-nav-btns {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.quick-btn {
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    transition: all 0.3s;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.quick-btn.primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b89228 100%);
    color: #000;
}

.quick-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--border-color);
}

.quick-btn:hover {
    transform: translateY(-1px);
}

/* ПРЕВКЛЮЧВАТЕЛ НА ЕЗИК */
.lang-switch {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 0.6rem 0.7rem;
    cursor: pointer;
    transition: all 0.25s;
}

.lang-btn.active {
    background: var(--accent-gold);
    color: #000;
}

.lang-btn:not(.active):hover {
    color: #fff;
}

/* HERO СЕКЦИЯ */
.hero {
    min-height: 100vh;
    max-width: 1300px;
    margin: 0 auto;
    padding: 8.5rem 1.5rem 4rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
}

.hero-text h1 {
    font-size: 4.2rem;
    font-weight: 950;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    word-wrap: break-word;
}

.hero-text h1 span {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--accent-gold);
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-gray);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

/* УИДЖЕТ ЗА ЗАЯВКИ */
.app-widget {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 28px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.app-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    border-radius: 28px 28px 0 0;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-gold));
}

.app-widget h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: var(--text-light);
    text-align: center;
}

/* ФОРМИ И СТЪПКИ */
.search-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 0.6rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 1.1rem 1.1rem 1.1rem 3rem;
    color: #fff;
    border-radius: 16px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
}

.search-input-wrapper input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.suggestions-list {
    position: absolute;
    top: 105%;
    left: 0;
    width: 100%;
    background: #0d1226;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    list-style: none;
    max-height: 20rem;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.suggestions-list li {
    padding: 1.1rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    font-size: 0.95rem;
}

.suggestions-list li:hover {
    background: rgba(30, 64, 175, 0.4);
    color: var(--accent-gold);
}

.upload-area {
    border: 2px dashed rgba(212, 175, 55, 0.3);
    padding: 2rem 1.2rem;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1.5rem;
    background: rgba(212, 175, 55, 0.02);
}

.upload-area:hover {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.05);
}

.upload-area p {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 0.5rem;
}

.upload-area h4 {
    color: var(--accent-gold);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
}

#file-input { display: none; }

.preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 1.5rem;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(7, 11, 25, 0.9);
    color: var(--accent-gold);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 1.1rem;
    color: #fff;
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
    margin-bottom: 1rem;
}

.submit-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b89228 100%);
    color: #000;
    padding: 1.1rem;
    border: none;
    border-radius: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.25);
}

/* СЕКЦИЯ: КАК РАБОТИ СИСТЕМАТА */
.how-it-works {
    padding: 5rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 4rem;
    letter-spacing: -1px;
    word-wrap: break-word;
}

.section-title span {
    color: var(--accent-gold);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-blue);
    color: var(--accent-gold);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-weight: 900;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-gold);
}

.step-card h4 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.step-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* СЕКЦИЯ: НАШИТЕ СПЕЦИАЛНОСТИ (РЕМЕДИРАНА С 4 КАРТИ) */
.services-section {
    padding: 5rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.4s;
    position: relative;
}

.service-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-8px);
}

.price-tag {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
    border: 1px solid var(--border-color);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    word-wrap: break-word;
}

.service-card ul {
    list-style: none;
}

.service-card ul li {
    color: var(--text-gray);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-card ul li::before {
    content: "✓";
    color: var(--accent-gold);
    font-weight: 900;
}

/* СЕКЦИЯ: ЗАЩО НАС? */
.why-us {
    padding: 5rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.why-card {
    padding: 3rem 2rem;
    background: linear-gradient(180deg, rgba(15, 22, 46, 0.6) 0%, rgba(7, 11, 25, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    text-align: center;
    transition: all 0.3s;
}

.why-card:hover {
    border-color: var(--accent-orange);
    transform: translateY(-6px);
}

.why-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.25rem auto;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.25);
}

.why-card h3 {
    color: var(--accent-gold);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    word-wrap: break-word;
}

.why-card p {
    color: var(--text-gray);
    font-size: 1rem;
}

/* СЕКЦИЯ: ОТЗИВИ ОТ КЛИЕНТИ */
.testimonials-section {
    padding: 5rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.3s;
}

.testimonial-card:hover {
    border-color: var(--accent-orange);
    transform: translateY(-6px);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(249, 115, 22, 0.25);
}

.testimonial-info h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-light);
}

.testimonial-info span {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.testimonial-stars {
    color: var(--accent-gold);
    font-size: 1rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.testimonial-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    font-style: italic;
}

/* ФУТЪР */
footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.95rem;
    background: #040712;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-logo {
    height: clamp(44px, 4.5vw, 60px);
    max-width: 180px;
}

footer span {
    color: var(--accent-gold);
    font-weight: 700;
}

/* УСПЕШНО ИЗПРАТЕНА ЗАЯВКА */
.form-success {
    display: none;
    text-align: center;
    padding: 1.5rem 0.5rem;
    animation: formSuccessIn 0.4s ease;
}

.form-success.visible {
    display: block;
}

@keyframes formSuccessIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b89228 100%);
    color: #000;
    font-size: 1.8rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.form-success h4 {
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.form-success p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
}

/* АДАПТИВНОСТ С КРИТИЧНИ КОРЕКЦИИ ПРОТИВ СКРОЛ */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 7rem;
        gap: 2.5rem;
        justify-items: center;
    }
    .hero-text h1 {
        font-size: 2.4rem;
        text-align: center;
    }
    .hero-text p {
        margin: 0 auto 2rem auto;
        text-align: center;
        font-size: 1rem;
    }
    .hero-text a {
        margin: 0 auto;
    }
    .app-widget {
        padding: 2rem 1.25rem;
        max-width: 100%;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .quick-btn {
        font-size: 0.7rem;
        padding: 0.5rem 0.8rem;
    }
}

@media (max-width: 640px) {
    .nav-container {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 0.75rem;
    }
    .quick-nav-btns {
        justify-content: center;
        width: 100%;
    }
}
