/* ================================
   Base
================================ */
:root { --accent: #0ea5e9; --ink: #ffffff; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--ink);

  /* модерен светъл градиент */
  background: linear-gradient(135deg, #f9fafc 0%, #e6f4ff 40%, #f0faff 100%);
  background-attachment: fixed;
}
@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(135deg, #f9fafc 0%, #e6f4ff 40%, #f0faff 100%) !important;
    color: var(--ink) !important;
  }
}

/* ================================
   Navbar
================================ */
.navbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
  background: rgba(3, 3, 3, 0.46);
  backdrop-filter: blur(9px);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-sizing: border-box;
  z-index: 10;
}

.navbar-left { display: flex; align-items: center; gap: 40px; }
.logo { width: 98px; height: 63px; }

.messages {
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; align-items: center;
  font-size: 14px; font-weight: 200;
}
.messages img { width: 60px; height: 53px; }

.navbar-center { display: flex; font-size: 21px; font-weight: 500; }
.navbar-center a {
  padding: 0 20px; color: #fff; text-decoration: none;
  display: flex; align-items: center; position: relative;
  transition: color .3s ease;
}
.navbar-center a:not(:first-child){ border-left: 2px solid rgba(255,255,255,.5); }
.navbar-center a::after{
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background-color: #43A4C7; transition: width .3s ease;
}
.navbar-center a:hover{ color: #43A4C7; }
.navbar-center a:hover::after{ width: 100%; }
.navbar-center a.active{ color: #43A4C7; }

.navbar-right { color: #fff; text-align: center; }
.navbar-right h1 { font-size: 23px; font-weight: 700; margin: 0; }
.navbar-right hr { border: none; height: 2px; background: #ffffffa8; margin: 4px 0; }
.navbar-right span { font-size: 16px; font-weight: 700; opacity: .55; }

/* ================================
   About Section
================================ */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 120px 10% 60px; /* top padding заради абсолютния navbar */
  align-items: start; /* снимката горе */
}

.about-text h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  background: linear-gradient(90deg, #0e3c62, #0ea5e9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 1.2rem; /* без огромни проценти */
}

.about-text p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  margin: 1rem 0 0;
}

.about-image { align-self: start; }
.about-image img { width: 100%; border-radius: 12px; margin-top: 10%;}

/* Акцентно h2 (ползвай в отделната секция или където ти трябва) */
/* Центриран heading, ширина = съдържанието */
.h2-accent {
  position: relative;
  display: block;
  width: fit-content;          /* не е full-width */
  margin: 0 auto 1rem;         /* центриране */
  text-align: center;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  color: rgb(2, 42, 92);
  padding-left: 18px;    
  margin-top: 2%;      /* място за вертикалната лента */
}


/* Ако все пак използваш .h2-and-stats – запази го подреден */
.h2-and-stats {
  display: grid;
  grid-template-columns: 2fr 1fr; /* stats | h2 */
  gap: 40px;
  align-items: center;
  margin-top: 3rem;
}
.about-section .h2-and-stats .h2-accent { justify-self: end; text-align: right; }

/* ================================
   Stats Layout: 3 на ред
   всяка 4-та -> пълна ширина под тях
================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;

  /* по-тесен контейнер, центриран */
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 10px;
}

/* всеки 4-ти елемент (4, 8, 12, ...) да заема цял ред */
.stats .stat-box:nth-child(4n) {
  grid-column: 1 / -1;
}

/* ================================
   Stat Box – Card with Media
================================ */
.stat-box {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden; /* за да се изреже снимката по радиуса */
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);

  /* входна анимация */
  opacity: 0;
  transform: translateY(22px);
  transition: transform .45s ease, opacity .45s ease, box-shadow .25s ease;
}

.stat-box.show { opacity: 1; transform: translateY(0); }
.stat-box:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.10); }

/* ================================
   Large Media (image/video)
   - добави клас .stat-media към <img>
================================ */
.stat-media,
.stat-box > img.stat-media { /* за съвместимост */
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;     /* консистентна височина */
  object-fit: cover;
  transform: scale(1);
  transition: transform .6s ease;
}

/* лек zoom на снимката при hover */
.stat-box:hover .stat-media { transform: scale(1.04); }

/* по-голямо media за широките карти (4-та, 8-ма, ...) */
.stats .stat-box:nth-child(4n) .stat-media {
  aspect-ratio: 21 / 9;
}

/* ================================
   Card Content
================================ */
.stat-content {
  padding: 16px 18px 18px;
  text-align: left;          /* по-добра четимост */
}

/* Заглавие – отчетливо, със стегнат спейсинг */
.stat-box h2 {
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
    font-weight: 800;
    color: var(--ink, #0e3c62);
    line-height: 1.25;
    margin: 0 0 8px;
    letter-spacing: -0.2px;
    text-align: center;
}

/* Текст – четим, не прекалено дълги редове */
.stat-box p {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
  max-width: 58ch;
  text-align: center;
}

/* spacing, ако имаш бутон под текста */
.stat-actions {
  margin-top: 14px;
}

/* ================================
   CTA Variation (по избор)
   - ако искаш CTA картата да е със снимка, махни градиента
================================ */
.stat-box.full-width {
  /* оставяме layout-а да го управлява :nth-child(4n);
     тук е само визуален вариант, ако искаш CTA без снимка */
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  border: none;
}
.stat-box.full-width .stat-content { padding: 20px; text-align: center; }
.stat-box.full-width h2 { color: #fff; margin-bottom: 10px; }
.stat-box.full-width p  { color: #eaf6ff; margin: 0 auto; }

/* ================================
   Buttons
================================ */
.signup-btn {
  display: inline-block;
  padding: 12px 20px;
  font-weight: 700;
  color: #0e3c62;
  background: #fff;
  border-radius: 10px;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.signup-btn:hover { background: #e0f2fe; color: #075985; transform: translateY(-1px); }

/* ================================
   Footer
================================ */
.footer {
  background: #0e3c62;           /* тъмен фон */
  color: #fff;
  padding: 40px 20px;
  margin-top: 60px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr; /* Left | Nav | Contacts | Social */
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Лого и авторско право */
.footer-logo {
  width: 80px;
  margin-bottom: 12px;
}
.footer-left p {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.8;
}

/* Заглавия в колоните */
.footer-center h3,
.footer-contact h3,
.footer-right h3 {
  font-size: 16px;
  margin-bottom: 12px;
  font-weight: 700;
}

/* Навигация */
.footer-center ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-center li {
  margin-bottom: 6px;
}
.footer-center a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-center a:hover {
  color: var(--accent);
}

/* Контакти */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-list li {
  margin-bottom: 6px;
}
.contact-list a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  word-break: break-word; /* предотвратява преливане на имейла */
}
.contact-list a:hover {
  color: var(--accent);
}

/* Социални връзки */
.social-links {
  display: flex;
  gap: 14px;
}
.social-links img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

.social-links img:hover {
  transform: scale(1.15);
  filter: brightness(0) invert(0.7);
}

/* Адаптивност */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}




.stat-icon { display: none; } /* скрий старите малки икони, ползвай .stat-media */
@media (max-width: 1100px) {
  .stats { max-width: 960px; }
}

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 4-тата карта остава full-width и ще заеме двете колони */
  .stat-box h2 { font-size: clamp(1.1rem, 2.2vw, 1.25rem); }
}

@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .stat-box h2 { font-size: 1.15rem; }
  .stat-content { padding: 14px 14px 16px; }
}
@media (max-width: 450px) {
  /* Navbar */
  .navbar {
    padding: 8px 14px;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    box-sizing: border-box; /* да не излиза извън ширината */
    width: 100%;
  }

  .navbar-left {
    gap: 10px;
  }

  .logo {
    width: 72px;
    height: 46px;
  }
  /* Скриваме централното меню */
  .navbar-center {
    display: none;
  }
      .navbar-right h1 {
        font-size: 16px;
        font-weight: 700;
        margin: 0;
    }
    .navbar-right {
    text-align: center;
    color: #fff;
  }

  /* Фон за по-лек тон */
  body, .hero {
    background-color: #d4f4ff;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* предотвратява хоризонтално скролиране */
  }

.mobile-hero {
    display: block;
    width: 100%;
    overflow: hidden;
    height: 250px; /* задаваме желаната височина */
    margin-top: -3%;
}

.mobile-hero img {
        width: 100%;
        height: 80%;
        object-fit: cover;
        object-position: center -11%;
        display: block;
        border-radius: 20px;
}


  /* Mobile navbar (овален стил) */
  .mobile-navbar {
        display: flex;
        justify-content: center;
        background: #0F2947;
        padding: 14px 10px;
        border-radius: 30px;
        width: fit-content;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        margin-left: 16%;
        margin-top: 30%;
    }

.mobile-navbar ul {
    display: flex;
    gap: 12px;
    flex-wrap: wrap; /* ако бутоните не се събират, отиват на следващ ред */
    padding: 0;
    margin: 0;
    list-style: none;
}


  .mobile-navbar ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    padding: 6px 12px;
    transition: background 0.3s, color 0.3s;
    border-radius: 20px;  /* овал за отделните линкове */
  }

  .mobile-navbar ul li a:hover {
    background: #43A4C7;
    color: #fff;
  }
  .mobile-navbar ul li a.active {
    background: #43A4C7;  /* акцентен цвят */
    color: #fff;
}

  /* About Section */
.about-section {
        grid-template-columns: 1fr;
        padding: 34px 16px 40px;
        gap: 20px;
    }
  .about-text h1 { font-size: 1.7rem; text-align: center; }
  .about-text p { font-size: 14px; line-height: 1.4; text-align: center; }
  .about-image img { margin-top: 0; border-radius: 8px; }

  /* Stats */
  .stats {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    padding: 0 12px 20px;   /* долу 20px въздух */
    scroll-snap-type: x mandatory;
    margin-bottom: 40px;   /* въздух под цялата секция */
  }

  .stat-box {
    flex: 0 0 85%;          /* малко по-компактни от преди */
    max-width: 280px;
    scroll-snap-align: start;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }

  .stat-media {
    aspect-ratio: 4/3;      /* по-високи снимки, по-добро запълване */
  }

  .stat-content {
    padding: 12px 14px;
    text-align: center;
  }

  .stat-box h2 {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .stat-box p {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .stat-actions {
    margin-top: 10px;
  }

  .signup-btn {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 8px;
  }
  .stat-box.full-width .stat-content {
    padding: 25%;
    text-align: center;
    
}

  /* махаме стария grid rule */
  .stats .stat-box:nth-child(4n) { grid-column: auto; }

.h2-accent {
    position: relative;
    display: block;
    width: fit-content;
    margin: 0 auto 1rem;
    text-align: center;
    /* font-size: clamp(1.2rem, 2.5vw, 2rem); */
    font-weight: 800;
    line-height: 1.2;
    color: rgb(2, 42, 92);
    /* padding-left: 18px; */
    padding: 0 28px 4px 28px;
    margin-top: 2%;
    text-align: center;
    font-size: 17px;
}}
/* ================================
   Footer
================================ */
.footer {
  background: #0e3c62;
  color: #fff;
  padding: 40px 20px;
  margin-top: 60px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr; /* desktop: 4 колони */
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  width: 80px;
  margin-bottom: 12px;
}

.footer-left p {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.8;
}

.footer-center h3,
.footer-contact h3,
.footer-right h3 {
  font-size: 16px;
  margin-bottom: 12px;
  font-weight: 700;
}

/* Навигация */
.footer-center ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-center li { margin-bottom: 6px; }
.footer-center a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-center a:hover { color: var(--accent); }

/* Контакти */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-list li { margin-bottom: 6px; }
.contact-list a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  word-break: break-word;
}
.contact-list a:hover { color: var(--accent); }

/* Социални връзки */
.social-links {
  display: flex;
  gap: 14px;
}
.social-links img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}
.social-links img:hover {
  transform: scale(1.15);
}

/* ================================
   Mobile view
================================ */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr; /* една колона */
    text-align: center;
    gap: 30px;
  }

  .footer-logo {
    margin: 0 auto 12px;
  }

  .footer-center ul li,
  .contact-list li {
    margin-bottom: 10px;
  }

  .social-links {
    justify-content: center;
  }

  .footer-center h3,
  .footer-contact h3,
  .footer-right h3 {
    margin-bottom: 8px;
  }
  .footer-center a {
    color: #ffffff73;
    text-decoration: none;
    transition: color 0.3s 
ease;
}
}



