/* ==========================================================================
   MOBILE 2026 — Пълна визуална модернизация (само мобилно ≤991px)
   Комплекс Биляна · kompleksbilyana.com
   ВАЖНО: Десктопът остава непокътнат. Всичко визуално е заключено
   в @media (max-width: 991px). :root само добавя нови променливи (безопасно).
   Зарежда се СЛЕД style.css и mobile-optimization.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens (безопасни — само нови променливи)
   -------------------------------------------------------------------------- */
:root {
  --bilyana-gold: #c5a47e;
  --bilyana-gold-dark: #b18a5c;
  --bilyana-gold-soft: rgba(197, 164, 126, 0.12);
  --bilyana-ink: #2a2622;
  --bilyana-ink-soft: #6b6660;
  --bilyana-line: #ece7e1;
  --bilyana-surface: #ffffff;
  --bilyana-surface-2: #faf8f5;

  --primary-color: #c5a47e; /* използва се от mobile-optimization.css focus outline */

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-pill: 999px;

  --sh-sm: 0 2px 10px rgba(42, 38, 34, 0.06);
  --sh-md: 0 10px 30px rgba(42, 38, 34, 0.10);
  --sh-lg: 0 18px 46px rgba(42, 38, 34, 0.16);

  --sticky-h: 66px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   1a. ПОПРАВКА НА СКРОЛА (дублирана тук нарочно, за да важи ДОРИ ако старият
   mobile-optimization.css е още на сървъра). body не трябва да е втори scroll
   контейнер — иначе на iOS страницата подскача обратно в началото.
   -------------------------------------------------------------------------- */
html {
  overflow-x: hidden;
}
body {
  overflow-x: visible !important;
  -webkit-overflow-scrolling: auto !important;
}

/* --------------------------------------------------------------------------
   1b. Лек мобилен хиро (заменя Revolution slider ≤991px)
   По подразбиране скрит — показва се само на мобилно.
   -------------------------------------------------------------------------- */
.m-hero { display: none; }

/* ==========================================================================
   МОБИЛНО — всичко под 991px
   ========================================================================== */
@media (max-width: 991px) {

  /* Котви (напр. #contacts от долната лента) да не се пъхат под
     фиксирания хедър — оставя място колкото е височината на лентата */
  section[id],
  #top, #about, #contacts, #footer {
    scroll-margin-top: 86px;
  }

  /* Скрий тежкия Revolution slider и стрелките му */
  .rev_slider_wrapper { display: none !important; }
  .main > .arrow-left,
  .main > .arrow-right { display: none !important; }

  /* Телефонът в хедъра е излишен на мобилно (има го в лентата + менюто) */
  .header-phone { display: none !important; }

  /* Колабирай "голата" слайдер-секция на inner страници (напр. svatbi):
     там истинският хиро е .main-inner отдолу. На началната .main съдържа
     .m-hero, който сам ѝ дава височина — затова :not(.main-inner). */
  .main:not(.main-inner) {
    min-height: 0;
  }
  /* Ако секцията няма .m-hero (inner страница), премахни фоновото изображение,
     за да не остане празна цветна ивица */
  .main:not(.main-inner):not(:has(.m-hero)) {
    background-image: none !important;
  }

  /* Лек статичен хиро */
  .m-hero {
    display: block;
    position: relative;
    height: 100vh;      /* fallback за стари браузъри */
    height: 100svh;     /* пълен екран според модела телефон */
    min-height: 520px;
    overflow: hidden;
    background: #1b1b1b;
  }
  /* !important побеждава img[width][height]{height:auto} от mobile-optimization.css */
  .m-hero .m-hero-bg {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center 38%;
  }
  /* Скрим за контраст + дълбочина */
  .m-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 32%),
      linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.28) 42%, rgba(0, 0, 0, 0) 68%);
  }
  .m-hero-inner {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 0 24px calc(128px + env(safe-area-inset-bottom, 0px));
    text-align: center;
  }
  /* Тънка златна линия над надписа (елегантен акцент в стила на сайта) */
  .m-hero-inner::before {
    content: "";
    display: block;
    width: 46px;
    height: 2px;
    margin: 0 auto 18px;
    background: var(--bilyana-gold);
  }
  .m-hero-eyebrow {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 12px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--bilyana-gold);
    margin-bottom: 14px;
  }
  .m-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 8vw, 42px);
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 12px;
    text-shadow: 0 3px 22px rgba(0, 0, 0, 0.5);
  }
  .m-hero-sub {
    font-family: 'montserratlight', sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
    max-width: 34ch;
    margin: 0 auto 22px;
  }
  .m-hero-cta {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .m-hero-cta .btn {
    min-width: 148px;
  }
  .m-hero-btn-ghost {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.65) !important;
    color: #fff !important;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: none !important;
  }
  .m-hero-btn-ghost:active {
    background: rgba(255, 255, 255, 0.2) !important;
  }
  /* Анимиран scroll индикатор — долу-център, над закачената лента.
     Инжектира се от mobile-enhance.js в .m-hero (index) или .main-inner (inner). */
  .m-hero-scroll {
    position: absolute;
    left: 50%;
    bottom: calc(44px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 3;
    width: 27px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    display: block;
    opacity: 0.9;
    transition: opacity 0.35s var(--ease);
    pointer-events: none;
  }
  .m-hero-scroll::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 8px;
    width: 3px;
    height: 9px;
    border-radius: 2px;
    background: #fff;
    transform: translateX(-50%);
    animation: mHeroScroll 1.7s var(--ease) infinite;
  }
  /* Скрий индикатора щом потребителят започне да скролва */
  body.m-scrolled .m-hero-scroll {
    opacity: 0;
  }
  @keyframes mHeroScroll {
    0% { opacity: 0; transform: translate(-50%, 0); }
    40% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, 13px); }
  }

  /* ------------------------------------------------------------------------
     2. Типография и ритъм
     ------------------------------------------------------------------------ */
  body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    /* място за закачената долна лента */
    padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px));
  }

  /* По-удобни отстъпи между секциите (десктоп е 7.1em) */
  .section {
    margin-top: 3.6em;
    margin-bottom: 3.6em;
  }
  .section-content {
    margin-top: 2.4em;
  }

  /* Гигантските бледи watermark заглавия правят хоризонтален overflow на
     телефон — крием ги, изгледът става по-чист и модерен */
  .fade-title-left,
  .fade-title-right {
    display: none !important;
  }

  .section-title {
    letter-spacing: 0.12em;
    line-height: 1.22;
  }

  /* ------------------------------------------------------------------------
     3. Хедър — чист модерен top bar (крием dated елементи)
     ------------------------------------------------------------------------ */

  /* Голямото бяло квадратно "brand-panel" каре и вертикалната лента със
     социални икони изглеждат остарели и ядат пространство над хирото */
  .brand-panel,
  .vertical-panel,
  .vertical-panel-content {
    display: none !important;
  }

  /* Логото в лентата да е винаги видимо (по подразбиране се крие) */
  .navbar-mobile .brand {
    display: inline-block !important;
    margin-left: 0;
    font-size: 1.75em;
    letter-spacing: 0.04em;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
  }
  .navbar-mobile.affix .brand {
    color: var(--bilyana-ink);
    text-shadow: none;
  }

  /* Чист, дишащ top bar */
  .navbar-mobile {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  }
  .navbar-mobile.affix {
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    backdrop-filter: saturate(140%) blur(12px);
    box-shadow: 0 6px 24px rgba(42, 38, 34, 0.10);
  }

  /* Хамбургер — по-изчистен, кръгъл tap-таргет */
  .navbar-toggle {
    float: none;
    margin: 0;
    width: 46px;
    height: 46px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: var(--r-pill);
    background: rgba(0, 0, 0, 0.18);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: background 0.25s var(--ease);
  }
  .navbar-mobile.affix .navbar-toggle {
    background: var(--bilyana-gold-soft);
  }
  .navbar-toggle .icon-bar {
    width: 22px !important;
    height: 2px !important;
    margin: 0 !important;
    border-radius: 2px;
    background: #fff !important;
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
  }
  .navbar-mobile.affix .navbar-toggle .icon-bar {
    background: var(--bilyana-gold) !important;
  }
  /* X анимация когато менюто е отворено */
  .navbar-toggle:not(.collapsed) .icon-bar:nth-child(2) {
    transform: translateY(8px) rotate(45deg);
  }
  .navbar-toggle:not(.collapsed) .icon-bar:nth-child(3) {
    opacity: 0;
  }
  .navbar-toggle:not(.collapsed) .icon-bar:nth-child(4) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* ------------------------------------------------------------------------
     4. Мобилно меню — модерен пълноекранен overlay
     ------------------------------------------------------------------------ */
  .navbar-collapse.navbar-collapse {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-height: none;
    height: 100dvh;
    padding: 78px 26px calc(90px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(160deg, #ffffff 0%, var(--bilyana-surface-2) 100%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1030;
  }
  /* Бутонът за затваряне (X) винаги над overlay-я */
  .navbar-mobile .navbar-toggle {
    position: relative;
    z-index: 1040;
  }
  /* Bootstrap управлява .in; при затворено я държим извън потока */
  .navbar-collapse:not(.in) {
    display: none;
  }

  .navbar-nav-mobile {
    padding-top: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .navbar-nav-mobile li {
    border: 0 !important;
    border-bottom: 1px solid var(--bilyana-line) !important;
  }
  .navbar-nav-mobile li:last-child {
    border-bottom: 0 !important;
  }
  .navbar-nav-mobile li a {
    font-size: 1.3em;
    letter-spacing: 0.18em;
    padding: 9px 6px !important;
    color: var(--bilyana-ink) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
  }
  .navbar-nav-mobile li a::after {
    content: "\203A"; /* › */
    color: var(--bilyana-gold);
    font-size: 1.2em;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .navbar-nav-mobile li a:hover,
  .navbar-nav-mobile li a:active {
    color: var(--bilyana-gold) !important;
    padding-left: 14px !important;
  }
  .navbar-nav-mobile li a:hover::after {
    opacity: 1;
    transform: translateX(0);
  }
  /* Активната страница — изчистен златен акцент вместо плътен фон */
  .navbar-nav-mobile > .active > a,
  .navbar-nav-mobile > .active > a:hover {
    background: transparent !important;
    color: var(--bilyana-gold) !important;
  }
  .navbar-nav-mobile > .active > a::after {
    opacity: 1;
    transform: translateX(0);
  }

  /* Контакти вътре в менюто (инжектират се от mobile-enhance.js) */
  .m-menu-contact {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--bilyana-line);
    text-align: center;
  }
  /* Телефонът — акцентен и добре видим */
  .m-menu-contact > a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 19px;
    letter-spacing: 0.04em;
    color: var(--bilyana-gold) !important;
    padding: 8px 4px;
  }
  .m-menu-contact > a svg {
    width: 19px;
    height: 19px;
  }
  .m-menu-contact .m-menu-social {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 12px;
  }
  .m-menu-contact .m-menu-social a {
    width: 46px;
    height: 46px;
    border-radius: var(--r-pill);
    border: 1px solid var(--bilyana-line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bilyana-gold) !important;
    font-size: 1.2em;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
  }
  .m-menu-contact .m-menu-social a:hover {
    background: var(--bilyana-gold);
    color: #fff !important;
  }

  /* ------------------------------------------------------------------------
     5a. Inner страници — пълноекранен хиро в стила на началната
     (пълен екран, центриран, златна линия, градиент, scroll бутонче)
     ------------------------------------------------------------------------ */
  .main-inner {
    min-height: 100vh;   /* fallback */
    min-height: 100svh;  /* пълен екран според модела */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 96px 0 128px !important;
  }
  .main-inner > .container {
    width: 100%;
  }
  /* Градиентен скрим — тъмно горе (за хедъра) и долу (за текста) */
  .main-inner::after {
    background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.10) 26%,
      rgba(0, 0, 0, 0.10) 46%,
      rgba(0, 0, 0, 0.78) 100%) !important;
    opacity: 1 !important;
  }
  /* Центрирано съдържание + златна линия (както на index) */
  /* Подредба като на index хирото: линия → breadcrumb(eyebrow) → ЗАГЛАВИЕ → подзаглавие → бутони */
  .main-header {
    text-align: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .main-header::before {
    content: "";
    order: 0;
    display: block;
    width: 46px;
    height: 2px;
    margin: 0 0 16px;
    background: var(--bilyana-gold);
  }
  .main-header .breadcrumb-nav {
    order: 1;
    margin: 0 0 14px !important;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }
  .main-header h1 {
    order: 2;
    margin-right: 0 !important;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.5);
  }
  .main-header .project-title-info {
    order: 3;
  }
  .main-header .m-hero-cta-inner {
    order: 4;
    margin-top: 26px;
  }

  /* ------------------------------------------------------------------------
     5. Хиро (Revolution slider) — по-чисто и с по-добър контраст
     ------------------------------------------------------------------------ */
  .rev_slider_wrapper {
    max-height: 78vh;
  }
  /* Заглавието на слайда — по-четимо върху снимка */
  .slide-title {
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.5);
  }

  /* ------------------------------------------------------------------------
     6. Карти — "капацитет" / услуги
     ------------------------------------------------------------------------ */
  #about .col-about-spec {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    text-align: center;
    margin-top: 8px;
  }
  #about .col-about-spec .col-about-title {
    grid-column: 1 / -1;
    text-align: left;
  }
  #about .col-about-spec .service-item {
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    padding: 22px 12px;
    background: var(--bilyana-surface-2);
    border: 1px solid var(--bilyana-line);
    border-radius: var(--r-md);
    box-shadow: var(--sh-sm);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
                opacity 0.6s var(--ease);
  }
  #about .col-about-spec .service-item:active {
    box-shadow: var(--sh-md);
  }
  /* Картата "паркинг" — само акцентен фон, но симетрична (2×3 мрежа) */
  #about .col-about-spec .service-item-parking {
    background: var(--bilyana-gold-soft);
    border-color: rgba(197, 164, 126, 0.4);
  }

  /* Reveal анимация при скрол (включва се от mobile-enhance.js чрез
     body.m-anim-ready; без JS кутийките са видими нормално) */
  @media (prefers-reduced-motion: no-preference) {
    body.m-anim-ready #about .col-about-spec .service-item {
      opacity: 0;
      transform: translateY(22px) scale(0.98);
    }
    body.m-anim-ready #about .col-about-spec .service-item.m-inview {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
    /* Лек стъпаловиден ефект ляво→дясно, ред по ред */
    #about .col-about-spec .service-item:nth-child(2) { transition-delay: 0.00s; }
    #about .col-about-spec .service-item:nth-child(3) { transition-delay: 0.08s; }
    #about .col-about-spec .service-item:nth-child(4) { transition-delay: 0.00s; }
    #about .col-about-spec .service-item:nth-child(5) { transition-delay: 0.08s; }
    #about .col-about-spec .service-item:nth-child(6) { transition-delay: 0.00s; }
    #about .col-about-spec .service-item:nth-child(7) { transition-delay: 0.08s; }
  }
  #about .col-about-spec .service-item-icon {
    color: var(--bilyana-gold);
    font-size: 2em;
  }
  #about .col-about-spec .service-item h4 {
    margin-top: 0.6em;
    font-size: 1.15em;
    color: var(--bilyana-ink);
  }

  /* Текстовата колонка "за нас" — карта за по-добра четимост */
  #about .col-about-info {
    background: var(--bilyana-surface);
    border: 1px solid var(--bilyana-line);
    border-radius: var(--r-md);
    padding: 20px 18px;
    box-shadow: var(--sh-sm);
    font-size: 1.08em !important;
    line-height: 1.7 !important;
  }

  /* Снимките в "за нас" — заоблени модерни ъгли */
  #about .col-about-img img {
    border-radius: var(--r-md);
    box-shadow: var(--sh-sm);
  }

  /* ------------------------------------------------------------------------
     7. Вътрешни линкове → модерни "chip" бутони
     ------------------------------------------------------------------------ */
  .internal-links-nav.internal-links-nav-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .internal-links-nav a {
    width: 100%;
    max-width: 380px;
    text-align: center;
    padding: 15px 20px !important;
    border: 1px solid var(--bilyana-line);
    border-radius: var(--r-pill);
    background: var(--bilyana-surface);
    color: var(--bilyana-ink) !important;
    font-size: 1.02em;
    box-shadow: var(--sh-sm);
    transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  }
  .internal-links-nav a:hover,
  .internal-links-nav a:active {
    border-color: var(--bilyana-gold);
    color: var(--bilyana-gold) !important;
    transform: translateY(-1px);
  }

  /* ------------------------------------------------------------------------
     8. Галерия / проекти
     ------------------------------------------------------------------------ */
  .project img,
  .projects-carousel img {
    border-radius: var(--r-md);
  }
  .project figure {
    border-radius: var(--r-md);
    overflow: hidden;
  }

  /* ------------------------------------------------------------------------
     9. Бутони — модерни, с натиск и меко сияние
     ------------------------------------------------------------------------ */
  .btn {
    border-radius: var(--r-pill);
    box-shadow: 0 8px 22px rgba(197, 164, 126, 0.34);
    transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
  }
  .btn:active {
    transform: scale(0.97);
    box-shadow: 0 4px 14px rgba(197, 164, 126, 0.3);
  }

  /* ------------------------------------------------------------------------
     10. Форма за контакт — модерна карта
     ------------------------------------------------------------------------ */
  .contacts .col-address {
    background: var(--bilyana-surface-2);
    border: 1px solid var(--bilyana-line);
    border-radius: var(--r-md);
    padding: 20px 18px;
    margin-bottom: 18px;
    line-height: 2;
    box-shadow: var(--sh-sm);
  }
  .contacts .col-address a {
    color: var(--bilyana-gold);
    font-weight: 600;
  }
  .form-control {
    border-radius: var(--r-sm) !important;
    border: 1px solid var(--bilyana-line);
    background: var(--bilyana-surface);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  }
  .form-control:focus {
    border-color: var(--bilyana-gold);
    box-shadow: 0 0 0 3px var(--bilyana-gold-soft);
    outline: none;
  }

  /* ------------------------------------------------------------------------
     11. Футър — центриран, дишащ
     ------------------------------------------------------------------------ */
  .footer {
    text-align: center;
  }
  .footer .row-base > [class*="col-"] {
    margin: 6px 0;
  }
  .footer-amenity {
    margin-top: 10px;
  }

  /* ------------------------------------------------------------------------
     12. Вътрешни (inner) страници — по-добър хиро контраст
     ------------------------------------------------------------------------ */
  .main-header h1 {
    letter-spacing: 0.06em;
  }
}

/* Малки телефони */
@media (max-width: 480px) {
  #about .col-about-spec {
    gap: 10px;
  }
  .navbar-nav-mobile li a {
    font-size: 1.2em;
    padding: 17px 6px !important;
  }
  .navbar-mobile .brand {
    font-size: 1.55em;
  }
}

/* ==========================================================================
   13. Закачена долна лента с действия (Call + Запитване)
   Инжектира се от mobile-enhance.js. Само мобилно.
   ========================================================================== */
.m-actionbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  display: none; /* показва се само ≤991px */
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-top: 1px solid var(--bilyana-line);
  box-shadow: 0 -8px 28px rgba(42, 38, 34, 0.10);
  transform: translateY(0);
  transition: transform 0.35s var(--ease);
}
.m-actionbar.is-hidden {
  transform: translateY(120%);
}
.m-actionbar a {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border-radius: var(--r-pill);
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}
.m-actionbar a:active {
  transform: scale(0.97);
}
.m-actionbar .m-call {
  background: linear-gradient(135deg, var(--bilyana-gold) 0%, var(--bilyana-gold-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(197, 164, 126, 0.4);
}
.m-actionbar .m-quote {
  background: var(--bilyana-surface);
  color: var(--bilyana-ink);
  border: 1.5px solid var(--bilyana-gold);
}
.m-actionbar svg {
  width: 18px;
  height: 18px;
  flex: none;
}

@media (max-width: 991px) {
  .m-actionbar {
    display: flex;
  }
}

/* Скрий закачената лента, когато мобилното меню е отворено */
body.m-menu-open .m-actionbar {
  transform: translateY(120%);
}
body.m-menu-open {
  overflow: hidden;
}

/* Scroll индикатор — само на достатъчно високи екрани */
@media (max-width: 991px) and (min-height: 640px) {
  .m-hero-scroll { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .m-actionbar,
  .navbar-toggle .icon-bar,
  .btn {
    transition: none !important;
  }
  .m-hero-scroll::before { animation: none !important; }
}

/* ==========================================================================
   14. ТИПОГРАФИЯ 2026 — Montserrat система с йерархия на теглата
   (само мобилно · по-едри и по-четими букви)
   ExtraBold 800 · Bold 700 · SemiBold 600 · Medium 500 · Regular 400 · Light 300
   ========================================================================== */

/* Общо увеличаване на мащаба (root) — прави всичко пропорционално по-едро */
@media (max-width: 767px) {
  html { font-size: 85%; }   /* от 75% */
}
@media (min-width: 768px) and (max-width: 991px) {
  html { font-size: 90%; }   /* от 85% */
}

@media (max-width: 991px) {

  body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    line-height: 1.7;
  }

  /* Гарантирай Montserrat на ВСИЧКИ заглавия — нищо да не остане на стария Oswald */
  h1, h2, h3, h4, h5, h6,
  .h1, .h2, .h3, .h4,
  .project-details-title,
  .project-title,
  .experience-info {
    font-family: 'Montserrat', sans-serif !important;
  }
  /* Подзаглавия в съдържанието (блог/събития) · Bold 700 */
  .project-details-title {
    font-weight: 700 !important;
    font-size: 19px !important;
    letter-spacing: 0.02em !important;
    line-height: 1.35 !important;
  }

  /* --- Основен текст (четимост) --- */
  .content p,
  .section p,
  .col-about-info,
  .col-about-info p {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 1.78 !important;
    color: #5d574f;
  }

  /* Поправка за контраста на текстовете и бутоните в блог картите */
  .project-details-descr,
  .project-details-descr p {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 1.78 !important;
    color: inherit;
  }

  .project-details-item:nth-child(odd) .project-details-info {
    color: #333; /* Тъмен текст върху светъл/пясъчен фон */
  }
  .project-details-item:nth-child(odd) .project-details-info a.text-primary {
    color: #111 !important; /* Тъмен бутон върху светъл фон */
    font-weight: 700;
  }
  
  .project-details-item:nth-child(even) .project-details-info {
    color: #fff; /* Бял текст върху тъмен фон */
  }
  .project-details-item:nth-child(even) .project-details-info a.text-primary {
    color: var(--primary-color, #c5a47e) !important; /* Светъл/златист бутон върху тъмен фон */
    font-weight: 700;
  }

  /* --- Заглавия на секции · ExtraBold 800 --- */
  .section-title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    font-size: 26px !important;
    letter-spacing: 0.02em !important;
    line-height: 1.25 !important;
    text-transform: uppercase;
  }
  #about .section-title {
    font-size: 22px !important;
    letter-spacing: 0.02em !important;
  }
  .section-title .text-primary { font-weight: 800 !important; }

  /* --- Подзаглавия / заглавия на карти · Bold 700 --- */
  h2.col-about-title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    letter-spacing: 0.01em !important;
    line-height: 1.3 !important;
  }
  /* FAQ въпроси · SemiBold 600 */
  h3.col-about-title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    line-height: 1.35 !important;
  }

  /* --- Навигация в менюто · SemiBold 600 --- */
  .navbar-nav-mobile li a {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    font-size: 17px !important;
    letter-spacing: 0.12em !important;
  }

  /* --- Бутони · Bold 700 --- */
  .btn {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    letter-spacing: 0.1em !important;
  }
  .m-actionbar a { font-family: 'Montserrat', sans-serif; font-weight: 700; }

  /* --- Вътрешни chip линкове · SemiBold 600 --- */
  .internal-links-nav a {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    letter-spacing: 0.02em !important;
  }

  /* --- Капацитет карти (числа) · Bold 700 --- */
  #about .col-about-spec .service-item h4 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    letter-spacing: 0.05em !important;
    line-height: 1.35 !important;
  }

  /* --- Хиро · ExtraBold заглавие + Light подзаглавие --- */
  .m-hero-title { font-weight: 800 !important; }
  .m-hero-sub {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 300 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
  }
  .m-hero-eyebrow {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    font-size: 12px !important;
  }

  /* --- Inner hero H1 · ExtraBold 800 --- */
  .main-header h1 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    line-height: 1.15 !important;
    text-transform: uppercase !important;
  }
  .main-header .project-title-info {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 15px;
    letter-spacing: 0.04em;
    margin-top: 12px;
  }

  /* --- Breadcrumb · Medium 500 --- */
  .breadcrumb-nav {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 500 !important;
    font-size: 12.5px !important;
    letter-spacing: 0.06em !important;
  }

  /* --- Контакти адрес --- */
  .contacts .col-address {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 15.5px !important;
  }
  .contacts .col-address a { font-weight: 700; }

  /* --- Форма --- */
  .form-control {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
  }
  .form-field-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 0.04em;
  }

  /* --- Футър · Medium 500, лого ExtraBold --- */
  .footer {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 13px;
  }
  .footer .brand { font-weight: 800; }
  .footer-legal-links a { font-weight: 500; }
}

/* ==========================================================================
   15. КАРУСЕЛИ (Галерия / Събития) — реорганизация за мобилно
   Без ротиран вертикален текст, без "PREV/NEXT", четимо заглавие върху градиент
   ========================================================================== */
@media (max-width: 991px) {

  /* Въздух отляво/отдясно — рамкира снимката вместо edge-to-edge */
  .projects .section-content {
    padding-left: 16px;
    padding-right: 16px;
    overflow: hidden;
  }
  .projects-carousel .project figure,
  .projects-carousel .project img {
    border-radius: var(--r-md);
  }

  /* Градиент за четимост (вместо плоско затъмняване) */
  .projects-carousel .project figure::after {
    background: linear-gradient(180deg,
      rgba(0, 0, 0, 0) 40%,
      rgba(0, 0, 0, 0.35) 64%,
      rgba(0, 0, 0, 0.82) 100%) !important;
    opacity: 1 !important;
  }
  .projects-carousel .project figcaption {
    margin: 0 !important;
  }

  /* Заглавие долу-ляво · Bold 700 */
  .projects-carousel .project-title {
    position: absolute !important;
    top: auto !important;
    left: 22px;
    right: 22px;
    bottom: 22px;
    margin: 0 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 19px !important;
    line-height: 1.25 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase;
  }

  /* Ротираната вертикална категория създаваше кашата — крием я */
  .projects-carousel .project-category {
    display: none !important;
  }

  /* Owl навигация → дискретни кръгли бутони без текст, отстрани */
  .projects .owl-prev,
  .projects .owl-next {
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background-color: rgba(0, 0, 0, 0.42) !important;
    background-size: 14px 11px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    font-size: 0 !important;
    opacity: 1 !important;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 5;
  }
  .projects .owl-prev { left: 14px !important; right: auto !important; }
  .projects .owl-next { right: 14px !important; left: auto !important; }
}

/* ==========================================================================
   16. КОНТАКТИ — "Бърз контакт" карти (елегантни, само мобилно)
   Заменя сивите квадратчета зад иконите с чисти карти + златни кръгли икони.
   Десктопът остава непокътнат.
   ========================================================================== */
@media (max-width: 991px) {

  .contact-details .section-content { margin-top: 1.8em; }

  .contact-details .col-base {
    margin-bottom: 16px;
  }

  .contact-details .service-item {
    text-align: center;
    background: var(--bilyana-surface);
    border: 1px solid var(--bilyana-line);
    border-radius: var(--r-lg);
    padding: 32px 22px 28px;
    box-shadow: var(--sh-sm);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  }
  .contact-details .service-item:active {
    transform: translateY(-2px);
    box-shadow: var(--sh-md);
  }

  /* Скрий стария icon + сивия квадрат зад него */
  .contact-details .service-item picture,
  .contact-details .service-item img {
    display: none !important;
  }

  /* Златна кръгла икона (FontAwesome) */
  .contact-details .service-item::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--bilyana-gold-soft);
    color: var(--bilyana-gold);
    font-family: 'FontAwesome';
    font-size: 27px;
    line-height: 1;
  }
  .contact-details .row-base > .col-base:nth-child(1) .service-item::before { content: "\f095"; } /* телефон */
  .contact-details .row-base > .col-base:nth-child(2) .service-item::before { content: "\f0e0"; } /* имейл */
  .contact-details .row-base > .col-base:nth-child(4) .service-item::before { content: "\f041"; } /* адрес/пин */

  /* Заглавие на картата */
  .contact-details .service-item h4 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase;
    color: var(--bilyana-ink) !important;
    margin: 0 0 12px !important;
  }

  /* Основен ред (линк) — акцент */
  .contact-details .service-item p a {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.01em;
    color: var(--bilyana-gold);
    margin-bottom: 8px;
    word-break: break-word;
  }

  /* Описание — фино */
  .contact-details .service-item p {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 400 !important;
    font-size: 14.5px !important;
    line-height: 1.65 !important;
    color: var(--bilyana-ink-soft) !important;
    margin: 0 !important;
  }
}

/* ==========================================================================
   17. ДОПЪЛНИТЕЛНИ ПОПРАВКИ (мобилно)
   ========================================================================== */
@media (max-width: 991px) {

  /* --- Соц. икони в менюто (inline SVG) --- */
  .m-menu-contact .m-menu-social a svg {
    width: 20px;
    height: 20px;
  }

  /* --- Снимки в "за нас" да НЕ са залепени (голи <img> + <br>) --- */
  #about .col-about-img img {
    display: block;
    width: 100%;
    max-width: 440px;
    margin: 0 auto 16px !important;
    border-radius: var(--r-md);
    box-shadow: var(--sh-sm);
  }
  #about .col-about-img img:last-of-type {
    margin-bottom: 0 !important;
  }
  #about .col-about-img br {
    display: none;
  }

  /* --- "Пространства и капацитет" → елегантни центрирани карти --- */
  .services .col-service {
    margin-bottom: 16px;
  }
  .services .service-item {
    text-align: center;
    height: 100%;
    background: var(--bilyana-surface);
    border: 1px solid var(--bilyana-line);
    border-radius: var(--r-lg);
    padding: 32px 22px 28px;
    box-shadow: var(--sh-sm);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  }
  .services .service-item:active {
    transform: translateY(-2px);
    box-shadow: var(--sh-md);
  }
  /* Иконата в меко златно кръгче (без сивия квадрат) */
  .services .service-item picture {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--bilyana-gold-soft);
  }
  .services .service-item img {
    background: transparent !important;
    width: auto !important;
    height: 42px !important;
    max-width: 58px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .services .service-item h4 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase;
    color: var(--bilyana-ink) !important;
    margin: 0 0 12px !important;
  }
  .services .service-item p {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 400 !important;
    font-size: 15px !important;
    line-height: 1.65 !important;
    color: var(--bilyana-ink-soft) !important;
    margin: 0 !important;
  }
}

/* ==========================================================================
   18. Хиро breadcrumb + форми (дата/час) — мобилни поправки
   ========================================================================== */
@media (max-width: 991px) {

  /* Скрий "НАЧАЛО / КОНТАКТИ" от хирото на inner страниците
     (breadcrumb schema остава в <head> за SEO) */
  .main-header .breadcrumb-nav {
    display: none !important;
  }

  /* Дата/час полета — коректно подравняване и височина на iOS
     (по подразбиране iOS центрира стойността и разтяга полето) */
  input[type="date"].form-control,
  input[type="time"].form-control {
    -webkit-appearance: none;
    appearance: none;
    text-align: left;
    min-height: 48px;
    line-height: 1.3;
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  /* iOS: стойността вътре в date/time полето */
  input[type="date"].form-control::-webkit-date-and-time-value,
  input[type="time"].form-control::-webkit-date-and-time-value {
    text-align: left;
    margin: 0;
  }
  /* Иконата (календарче/часовник) вдясно */
  input[type="date"].form-control::-webkit-calendar-picker-indicator,
  input[type="time"].form-control::-webkit-calendar-picker-indicator {
    margin-left: auto;
    opacity: 0.5;
  }

  /* Етикетите Дата/Час — фини и подравнени */
  .form-field-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bilyana-ink-soft);
    margin-bottom: 5px;
  }
}

/* ==========================================================================
   19. Thankyou страница + feedback при изпращане
   ========================================================================== */

/* Спинър в бутона при изпращане (работи на всички ширини) */
.btn .btn-spinner,
.btn-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -0.15em;
  margin-right: 0.55em;
  animation: btnspin 0.6s linear infinite;
}
.btn.sending {
  opacity: 0.9;
  cursor: progress;
}
@keyframes btnspin { to { transform: rotate(360deg); } }

@media (max-width: 991px) {

  /* Заглавието "Вашето запитване е изпратено успешно!" — нормална Montserrat
     разредка (базовият h2 имаше letter-spacing: 0.32em → огромни разстояния) */
  .entry-title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    font-size: 24px !important;
    letter-spacing: 0.02em !important;
    line-height: 1.25 !important;
    text-transform: uppercase;
  }

  /* Thankyou хирото — компактно, за да се вижда веднага съобщението
     (не пълен екран, иначе не е ясно къде си) */
  .thankyou-page .main-inner {
    min-height: 42vh !important;
    height: auto !important;
    padding: 92px 0 40px !important;
  }
  .thankyou-page .m-hero-scroll {
    display: none !important;
  }

  /* ------------------------------------------------------------------------
     11. Поправка на видео секцията за мобилни устройства (<=991px)
     ------------------------------------------------------------------------ */
  .video-section {
    padding: 40px 0 !important;
  }

  /* Removed old .video-row and .video-col styles, as they are no longer used by the new premium-videos-grid */
  .premium-video-card {
    max-width: 320px;
    margin: 0 auto;
    border-radius: 16px;
  }
}
