:root {
    --brand-dark: rgb(45, 0, 0);
    --brand-gold: #ffc107;

    --nav-h: 76px;

    --hero-duration: 30s;
    --shadow-soft: 0 16px 48px rgba(0, 0, 0, 0.10);

    --radius-lg: 18px;
    --radius-md: 14px;

    --container-max: 1140px;

    --text: #222;
    --muted: #5b5b5b;
    --bg: #ffffff;
    --bg-soft: #f8f9fa;

    --focus: rgba(255, 193, 7, .35);
}

body {
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding-top: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    line-height: 1.65;
    background: var(--bg);
}

img {
    max-width: 100%;
    height: auto;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.accordion-button:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

header[id],
section[id] {
    scroll-margin-top: calc(var(--nav-h) + 10px);
}

/* ---------------- NAV ---------------- */
.navbar {
    min-height: var(--nav-h);
    padding: 10px 0;
    background-color: var(--brand-dark) !important;
    backdrop-filter: blur(10px);
    width: 100%;
    z-index: 1000;
}

.navbar-brand img {
    max-height: 46px;
    width: auto;
}

.nav-link {
    font-size: .92rem;
    letter-spacing: 1px;
    transition: color .2s ease;
}

.nav-link:hover {
    color: var(--brand-gold) !important;
}

/* ---------------- HERO WRAPPER (100vh Logic) ---------------- */
.hero-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    /* Заковава общата височина на един екран */
    width: 100%;
    overflow: hidden;
    background: var(--brand-dark);
}

.hero {
    position: relative;
    width: 100%;
    flex-grow: 1;
    background: #000;
    overflow: hidden;
    isolation: isolate;
    min-height: 0;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    animation: kenBurns var(--hero-duration) infinite linear;
    will-change: opacity, transform;
}

.slide:nth-child(1) {
    background-image: url("../img/hero/hero-01.webp");
    animation-delay: 0s;
}

.slide:nth-child(2) {
    background-image: url("../img/hero/hero-02.webp");
    animation-delay: 5s;
}

.slide:nth-child(3) {
    background-image: url("../img/hero/hero-03.webp");
    animation-delay: 10s;
}

.slide:nth-child(4) {
    background-image: url("../img/hero/hero-04.webp");
    animation-delay: 15s;
}

.slide:nth-child(5) {
    background-image: url("../img/hero/hero-05.webp");
    animation-delay: 20s;
}

.slide:nth-child(6) {
    background-image: url("../img/hero/hero-06.webp");
    animation-delay: 25s;
}

@keyframes kenBurns {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    5% {
        opacity: 1;
    }

    16.6% {
        opacity: 1;
    }

    21.6% {
        opacity: 0;
        transform: scale(1.1);
    }

    100% {
        opacity: 0;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.2);
}

/* ---------------- HERO CONTENT (Bottom Section) ---------------- */
.hero-content {
    position: relative;
    z-index: 10;
    background: var(--brand-dark);
    color: #fff;
}

.hero-title {
    color: #fff;
    font-weight: 850;
    letter-spacing: -0.02em;
    font-size: clamp(1.4rem, 2.5vw, 2.4rem);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero-text {
    color: rgba(255, 255, 255, .88);
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    max-width: 60ch;
    margin: 0 auto 1rem;
}


/* ---------------- SECTIONS ---------------- */
.section-padding {
    padding: clamp(44px, 5vw, 70px) 0;
}

.section-title {
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 14px;
    line-height: 1.15;
}

.section-subtitle {
    color: var(--muted);
    max-width: 820px;
    margin: 0 auto 34px;
}

.divider {
    width: 72px;
    height: 4px;
    border-radius: 999px;
    background: var(--brand-gold);
    margin: 10px auto 0;
}

.card-soft {
    border: 0;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    height: 100%;
}

.icon-box {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 193, 7, .18);
    color: var(--brand-dark);
    font-size: 1.35rem;
    margin-bottom: 14px;
}

/* ---------------- IMAGE PLACEHOLDERS ---------------- */
.ph {
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #eee, #f7f7f7);
    border: 1px dashed rgba(0, 0, 0, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: .95rem;
    text-align: center;
    padding: 14px;
    overflow: hidden;
}

.ph-sm {
    height: 150px;
}

.ph-md {
    height: 220px;
}

.ph-lg {
    height: 320px;
}

.ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------------- FAQ & FOOTER ---------------- */
.accordion-button:focus {
    box-shadow: none;
}

footer a {
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
}

footer a:hover {
    color: #fff;
}


/* ---------------- MOBILE ---------------- */
@media (max-width: 992px) {
    .hero-content .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-h: 68px;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-wrapper {
        height: 93vh;
    }

}

/* ---------------- ANIMATIONS ---------------- */
@media (prefers-reduced-motion: reduce) {
    .slide {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.animate-on-scroll {
    opacity: 0;
    visibility: hidden;
}

.animate__animated {
    opacity: 1 !important;
    visibility: visible !important;
}