@media (max-width: 900px) {
  /* Хедърът става по-стегнат */
  .bar { padding: 12px 14px; }

  /* Мобилен layout: първи ред (лого + бургер), втори ред (меню) */
  .container {
    flex-wrap: wrap;
    gap: 10px;
  }

  /* Лого: по-компактно */
  .brand {
    margin-right: auto; /* да остане вляво */
    gap: 8px;
    font-size: 14px;
    font-weight: 900;
  }
  .logo-img {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  /* Бургер вдясно */
  .burger {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255,255,255,.65);
    border: 1px solid rgba(2,6,23,.10);
    backdrop-filter: blur(12px);
    cursor: pointer;
    padding: 0;
  }

  /* Правим “истински” 3 чертички */
  .burger span{
    width: 15px;
    height: 2px;
    margin: 5px 0;
    background: #0b1020;
    border-radius: 55px;
    display: block;
    opacity: .95;
  }

  /* Социалните скриваме (както е) */
  .socials { display: none; }

  /* NAV: скрито по default */
  .nav {
    display: none;
    width: 100%;
    margin: 0;              /* важно: махаме desktop навика */
    padding: 10px;
    border-radius: 18px;

    /* dropdown panel стил */
    background: rgba(255,255,255,.70);
    border: 1px solid rgba(2, 6, 23, .10);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(2, 6, 23, .10);

    /* подредба */
    flex-direction: column;
    gap: 8px;

    /* анимация (без JS) */
    transform: translateY(-6px);
    opacity: 0;
    transition: .18s ease;
  }

  /* Когато е отворено */
  .nav[data-open="true"] {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }
  
/* показват се когато менюто е отворено */
  .nav[data-open="true"] ~ .socials {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 10px;
  }

    /* малко по-компактни на мобилно */
  .social-link{
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  /* Линковете: full width, удобни за натискане */
  .nav a {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    text-align: left;
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(2,6,23,.06);
  }

  .nav a:hover {
    background: rgba(255,255,255,.85);
    border-color: rgba(59,130,246,.18);
  }

  /* CTA да изглежда като бутон */
  .nav a.cta {
    margin-top: 4px;
    background: var(--grad);
    border: none;
    text-align: center;
    font-weight: 950;
  }

  .hero{
    position: relative;
    display: block;         /* махаме flex триковете */
  }

  /* Заглавие - по-малко */
  .hero h1{
    font-size: 32px !important;
    line-height: 1.15 !important;
    margin: 0 0 10px !important;
  }

  /* Картинката се "вмъква" под заглавието */
  .hero-right{
    position: absolute;
    left: 0;
    right: 0;

    /* ТОЧНО ПОД заглавието */
    top: 30px;              /* ако трябва: 80-110 */
    display: flex;
    justify-content: center;

    z-index: 1;
    pointer-events: none;
  }

  .hero-right img{
    width: min(320px, 100%);
    height: auto;
    display: block;
  }

  /* Текстовият блок (първият div) получава място за картинката */
  .hero > div:first-child{
    padding-top: 220px;     /* височина за картинката */
    position: relative;
    z-index: 2;
  }

  .hero > div:first-child p{
    font-size: 16px;
    line-height: 1.65;
  }

  /* Бутоните – отгоре */
  .hero > div:first-child > div{
    position: relative;
    z-index: 3;
  }

  .hero a{
    padding: 13px 22px !important;
    font-size: 15px;
  }
  .for-who-grid { grid-template-columns: 1fr; text-align: left; }
  .for-who-image {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
  }
  .for-who-image img { max-width: 340px; }

    /* CONTACT: grid -> 1 колона на мобилно */
  #contact > div[style*="display:grid"]{
    grid-template-columns: 1fr !important;
  }

  /* Всички полета да не излизат */
  #contact input,
  #contact textarea{
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Ако има странно “раздуване” от padding в самата карта */
  #contact.card{
    padding: 26px !important;
  }


  h1.page-title{
    font-size: 30px !important;
    line-height: 1.15 !important;
  }

  h1.page-title span{
    display:block;
    margin-top: 6px;
    word-break: normal;
  }

}

