/* =========================================================
   Сайт „#Хаштаг Финанси“ (Bootstrap 5.3)
   Цветовете и шрифтовете са същите като в админа (admin/css/admin.css).
   Съдържание:
     1. Променливи и общи
     2. Бутони
     3. Горна лента и меню
     4. Горна част (hero)
     5. Секции и заглавия
     6. Новини
     7. Полезни връзки
     8. За проекта
     9. Футър
    10. Адаптивност
   ========================================================= */

/* ---------- 1. Променливи и общи ---------- */
:root {
  --navy: #0b1f5c;
  --navy-2: #0f2f8a;
  --brand: #1a47b8;
  --brand-2: #2a63e6;
  --brand-soft: #e7eefc;
  --brand-soft-2: #f2f6fe;
  --sun: #ffc61a;
  --sun-2: #ff9f0a;
  --sun-soft: #fff4d1;
  --paper: #fff3b8;
  --ink: #0f1d45;
  --muted: #5d6990;
  --line: #e3e8f4;
  --bg: #f5f8fe;
  --radius: 20px;
  --font-head: 'Rubik', 'Nunito', system-ui, sans-serif;

  --bs-body-font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --bs-body-color: var(--ink);
  --bs-link-color-rgb: 26, 71, 184;
  --bs-link-hover-color-rgb: 11, 31, 92;
}

body.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--bs-body-font-family);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body.site-body > main {
  flex: 1 0 auto;
}

a {
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
}

::selection {
  background: var(--sun);
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
}

/* ---------- 2. Бутони ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 800;
  padding: 12px 26px;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}

.btn-lg {
  font-size: 17px;
  padding: 15px 30px;
}

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

.btn-sun {
  color: var(--navy);
  border: 0;
  background: linear-gradient(180deg, #ffd640 0%, var(--sun) 45%, #ffae0b 100%);
  box-shadow: 0 8px 20px rgba(255, 159, 10, .35), inset 0 -3px 0 rgba(160, 80, 0, .2);
}

.btn-sun:hover,
.btn-sun:focus {
  color: var(--navy);
  box-shadow: 0 12px 26px rgba(255, 159, 10, .42), inset 0 -3px 0 rgba(160, 80, 0, .2);
}

.btn-white {
  color: var(--brand);
  background: #fff;
  border: 0;
  box-shadow: 0 8px 20px rgba(6, 16, 48, .25);
}

.btn-white:hover,
.btn-white:focus {
  color: var(--navy);
  background: #fff;
}

.btn-outline-navy {
  color: var(--navy);
  border: 2px solid var(--navy);
  background: #fff;
  padding: 10px 22px;
  font-size: 14.5px;
}

.btn-outline-navy:hover,
.btn-outline-navy:focus {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

/* ---------- 3. Горна лента и меню ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #012a74;
  transition: box-shadow .2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(6, 16, 48, .3);
}

.site-header .navbar {
  min-height: 80px;
  padding: 0;
}

/* логото „излиза“ от лентата, както в дизайна */
.site-logo {
  position: relative;
  z-index: 2;
  margin: 6px 0 -34px;
  padding: 0;
}

.site-logo img {
  display: block;
  width: 240px;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .28));
  transition: width .2s ease, transform .2s ease;
}

.site-logo:hover img {
  transform: rotate(-2deg) scale(1.03);
}

.site-header.is-scrolled .site-logo {
  margin-bottom: -10px;
}

.site-header.is-scrolled .site-logo img {
  width: 170px;
}

.site-nav {
  gap: 8px;
  align-items: center;
}

.site-nav .nav-link {
  color: #fff;
  font-weight: 700;
  font-size: 17.5px;
  padding: 10px 22px !important;
  border-radius: 999px;
  transition: background-color .15s ease, color .15s ease;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
  color: var(--sun);
  background: rgba(255, 255, 255, .08);
}

.site-nav .nav-link.active {
  color: var(--navy);
  background: linear-gradient(180deg, #ffd640 0%, var(--sun) 50%, #ffae0b 100%);
  box-shadow: 0 6px 16px rgba(255, 159, 10, .35);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 18px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
}

.lang-switch a {
  display: inline-block;
  line-height: 1;
  padding: 7px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .7);
  font-size: 12.5px;
  font-weight: 800;
}

.lang-switch a:hover {
  color: #fff;
}

.lang-switch a.active {
  background: #fff;
  color: var(--navy);
}

.navbar-toggler {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--sun);
  color: var(--navy);
  font-size: 20px;
  box-shadow: none !important;
}

.site-offcanvas {
  color: #fff;
}

/* ---------- 4. Горна част (hero) ---------- */
.hero {
  /* височината на картинката; илюстрацията остава в дясната половина */
  --hero-img-h: clamp(380px, 31vw, 620px);
  position: relative;
  overflow: hidden;
  min-height: calc(var(--hero-img-h) + 40px);
  padding: 64px 0 calc(var(--hero-img-h) * .42);
  color: #fff;
  background:
    /* плавен преход над горния ръб на картинката */
    linear-gradient(180deg, #012a74 calc(100% - var(--hero-img-h) + 10px), rgba(1, 42, 116, 0) calc(100% - var(--hero-img-h) + 150px)),
    var(--hero-bg, url(/img/header-wide.webp)) right bottom / auto var(--hero-img-h) no-repeat,
    #012a74;
}

.hero-copy {
  position: relative;
}

.hero h1 {
  position: relative;
  color: #fff;
  font-size: clamp(32px, 3.5vw, 50px);
  font-weight: 900;
  font-style: italic;
  line-height: 1.12;
  margin-bottom: 22px;
  text-shadow: 0 4px 0 rgba(6, 16, 48, .25);
}

.swoosh {
  position: relative;
  display: inline-block;
}

/* жълтата черта под „за всеки ученик!“ */
.swoosh::after {
  content: "";
  position: absolute;
  left: 52%;
  right: -6%;
  bottom: -10px;
  height: 9px;
  border-radius: 50% 50% 40% 60% / 100% 100% 30% 30%;
  background: var(--sun);
  transform: rotate(-3deg);
}

/* жълтите „искри“ */
.hero-spark,
.title-spark {
  position: absolute;
  width: 34px;
  height: 34px;
  background:
    linear-gradient(var(--sun), var(--sun)) 0 60% / 16px 6px no-repeat,
    linear-gradient(var(--sun), var(--sun)) 10px 6px / 6px 16px no-repeat;
  border-radius: 3px;
}

.hero-spark {
  left: -46px;
  top: -6px;
  transform: rotate(-30deg) scale(1.4);
}

.title-spark {
  position: relative;
  display: inline-block;
  top: -14px;
  margin-left: 8px;
  transform: rotate(20deg) scale(.9);
  vertical-align: middle;
}

.hero .lead {
  max-width: 520px;
  font-size: 19px;
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* жълтата вълна отдолу */
.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 120px;
}

.hero-wave .w-bg {
  fill: var(--bg);
}

/* ---------- 5. Секции и заглавия ---------- */
.section {
  padding: 34px 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.section-title {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 900;
  font-style: italic;
  margin: 0;
}

.section-title > i {
  color: var(--navy);
  margin-right: 14px;
  transform: rotate(-12deg);
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--brand);
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}

.link-more:hover {
  color: var(--navy);
}

.link-more i {
  transition: transform .15s ease;
}

.link-more:hover i {
  transform: translateX(4px);
}

.empty-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 2px dashed var(--line);
  color: var(--muted);
  font-weight: 700;
}

.empty-box i {
  font-size: 26px;
  color: var(--brand);
}

/* ---------- 6. Новини ---------- */
.news-card {
  display: flex;
  gap: 18px;
  height: 100%;
  padding: 12px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 2px 4px rgba(11, 31, 92, .04), 0 14px 34px rgba(11, 31, 92, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(11, 31, 92, .05), 0 22px 44px rgba(11, 31, 92, .13);
}

.news-img {
  flex: 0 0 44%;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: var(--brand-soft);
  min-height: 160px;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.news-card:hover .news-img img {
  transform: scale(1.05);
}

.news-img.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
  color: var(--sun);
  background: radial-gradient(circle at 30% 30%, #3a74f5, var(--navy-2));
}

.news-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 8px 6px 4px 0;
}

.news-body h3 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 10px;
}

.news-body h3 a {
  color: var(--navy);
}

.news-body h3 a:hover {
  color: var(--brand);
}

.news-body p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0 0 12px;
}

.news-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.news-foot time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.news-foot time i {
  color: var(--brand);
}

.news-go {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sun);
  color: var(--navy);
  box-shadow: 0 6px 14px rgba(255, 159, 10, .35);
  transition: transform .15s ease;
}

.news-card:hover .news-go {
  transform: translateX(3px);
}

/* ---------- 7. Полезни връзки ---------- */
.links-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 22px;
  border-radius: 24px;
  background: #e8eefc;
}

.links-intro {
  flex: 0 0 300px;
  padding-right: 24px;
  border-right: 2px solid #c9d6f5;
}

.links-intro h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 4px;
}

.links-intro h2 i {
  color: var(--navy);
  transform: rotate(-20deg);
}

.links-intro p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}

.links-list {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.link-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.25;
  box-shadow: 0 4px 12px rgba(11, 31, 92, .06);
  transition: transform .15s ease, box-shadow .15s ease;
}

.link-chip i {
  flex: none;
  font-size: 26px;
  color: var(--navy-2);
}

.link-chip:hover {
  color: var(--brand);
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(11, 31, 92, .12);
}

.link-chip:hover i {
  color: var(--sun-2);
}

/* ---------- 8. За проекта ---------- */
/* децата „стъпват“ върху футъра и излизат над секцията */
.section-about {
  position: relative;
  padding: 220px 0 0;
  overflow: hidden;
}

/* голямо светло петно зад текста */
.section-about::before {
  content: "";
  position: absolute;
  right: -10%;
  top: 30px;
  width: 60%;
  height: 120%;
  border-radius: 48% 52% 0 0 / 60% 55% 0 0;
  background: radial-gradient(circle at 40% 30%, #fff 0, var(--brand-soft-2) 60%, transparent 70%);
  z-index: 0;
}

.section-about .container {
  position: relative;
  z-index: 1;
}

.about-kids {
  position: relative;
  margin: 0 -4% -6px -18%; /* излиза наляво извън контейнера */
}

.about-kids img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 -6px 24px rgba(11, 31, 92, .12));
}

.about-copy {
  position: relative;
  padding-bottom: 80px;
}

@media (min-width: 992px) {
  .about-copy {
    padding-left: 4%;
  }
}

.section-about .section-title {
  margin-bottom: 14px;
}

.about-text {
  font-size: 17px;
  font-weight: 600;
  color: #2c3a5e;
  max-width: 520px;
  margin-bottom: 26px;
}

/* жълтата бележка с отметки – завъртяна, над текста вдясно */
.check-note {
  position: absolute;
  z-index: 2;
  right: 4%;
  bottom: 86%;
  list-style: none;
  width: fit-content;
  margin: 0;
  padding: 22px 26px 22px 22px;
  border-radius: 6px 22px 6px 22px;
  background: linear-gradient(180deg, #fff8d9, var(--sun-soft));
  transform: rotate(-4deg);
  box-shadow: 0 14px 30px rgba(255, 159, 10, .18);
}

.check-note li {
  position: relative;
  padding: 5px 0 5px 32px;
  font-weight: 700;
  color: var(--navy);
}

.check-note li::before {
  content: "\f00c";
  position: absolute;
  left: 0;
  top: 4px;
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 18px;
  color: var(--navy);
}

/* ---------- 9. Футър ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  background: var(--navy-2);
  color: #fff;
  padding: 26px 0 18px;
}

/* вълна в горния край на футъра (покрива долния ръб на снимката с децата) */
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 34px;
  background: var(--navy-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 34' preserveAspectRatio='none'%3E%3Cpath d='M0 34V18C180 4 360 0 560 10s380 22 560 14 260-16 320-20v32z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 34' preserveAspectRatio='none'%3E%3Cpath d='M0 34V18C180 4 360 0 560 10s380 22 560 14 260-16 320-20v32z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.footer-row {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-logo img {
  display: block;
  width: 170px;
  height: auto;
}

.footer-nav {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 36px;
  list-style: none;
  margin: 0;
  padding: 0 32px;
  border-left: 2px solid rgba(255, 255, 255, .2);
  border-right: 2px solid rgba(255, 255, 255, .2);
  min-height: 60px;
  align-items: center;
}

.footer-nav a,
.footer-mail {
  color: #fff;
  font-weight: 700;
}

.footer-nav a:hover,
.footer-mail:hover {
  color: var(--sun);
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-mail i {
  font-size: 22px;
}

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  color: #fff;
  font-size: 26px;
  transition: color .15s ease, transform .15s ease;
}

.footer-social a:hover {
  color: var(--sun);
  transform: translateY(-2px);
}

.footer-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.footer-copy a {
  color: rgba(255, 255, 255, .8);
  font-weight: 700;
}

.footer-copy a:hover {
  color: var(--sun);
}

/* ---------- 10. Адаптивност ---------- */
@media (max-width: 1199.98px) {
  .site-nav .nav-link {
    font-size: 16px;
    padding: 9px 14px !important;
  }

  .links-strip {
    flex-wrap: wrap;
  }

  .links-intro {
    flex: 1 1 100%;
    padding: 0 0 14px;
    border-right: 0;
    border-bottom: 2px solid #c9d6f5;
  }

  .news-card {
    flex-direction: column;
  }

  .news-img {
    flex-basis: auto;
    aspect-ratio: 16 / 9;
  }

  .footer-row {
    flex-wrap: wrap;
  }

  .footer-nav {
    order: 3;
    flex: 1 1 100%;
    padding: 14px 0 0;
    border: 0;
    border-top: 2px solid rgba(255, 255, 255, .15);
  }

  .footer-contact {
    margin-left: auto;
  }
}

@media (max-width: 991.98px) {
  .site-offcanvas {
    background: linear-gradient(180deg, var(--navy-2), var(--navy));
  }

  .site-header .navbar {
    min-height: 70px;
  }

  .site-logo {
    margin: 6px 0 -18px;
  }

  .site-logo img,
  .site-header.is-scrolled .site-logo img {
    width: 160px;
  }

  .site-offcanvas .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

  .site-nav {
    align-items: stretch;
    gap: 6px;
  }

  .site-nav .nav-link {
    font-size: 18px;
    padding: 12px 18px !important;
  }

  .lang-switch {
    align-self: flex-start;
    margin: 22px 0 0;
  }

  .hero-spark {
    display: none;
  }

  .links-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    --hero-img-h: 300px;
    padding: 48px 0 calc(var(--hero-img-h) - 30px);
    background-position: 0 0, 82% bottom, 0 0;
  }

  .about-copy {
    padding-bottom: 20px;
  }

  .section-about {
    padding-top: 40px;
  }

  .check-note {
    position: static;
    margin: 0 auto 18px 18px;
  }

  .about-kids {
    margin: 0 -24px -6px;
  }

}

@media (max-width: 575.98px) {
  .hero .lead {
    font-size: 17px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .links-list {
    grid-template-columns: 1fr;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .footer-contact {
    margin-left: 0;
    flex-wrap: wrap;
    gap: 16px;
  }
}

/* ---------- 11. Бисквитки ---------- */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1080;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--brand-soft);
  box-shadow: 0 24px 60px rgba(6, 16, 48, .28);
  animation: cookie-in .35s ease both;
}

.cookie-banner[hidden] {
  display: none;
}

@keyframes cookie-in {
  from { opacity: 0; transform: translateY(20px); }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner { animation: none; }
}

.cookie-icon {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--navy);
  background: linear-gradient(135deg, #ffd640, var(--sun-2));
}

.cookie-copy h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 4px;
}

.cookie-copy p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.cookie-copy a {
  font-weight: 800;
  text-decoration: underline;
}

.cookie-actions {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* „Приемам“ и „Отказвам“ – еднакво видими (изискване на ЕС) */
.btn-cookie {
  min-width: 150px;
  padding: 11px 20px;
  white-space: nowrap;
  font-size: 15px;
  color: #fff;
  background: var(--navy-2);
  border: 2px solid var(--navy-2);
}

.btn-cookie:hover,
.btn-cookie:focus {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.btn-cookie-link {
  padding: 11px 10px;
  font-size: 15px;
  color: var(--brand);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-cookie-link:hover {
  color: var(--navy);
  transform: none;
}

/* прозорец „Настройки“ */
.cookie-modal .modal-content {
  border: 0;
  border-radius: 22px;
  overflow: hidden;
}

.cookie-modal .modal-header {
  background: var(--navy-2);
  color: #fff;
  border: 0;
  padding: 18px 24px;
}

.cookie-modal .modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.cookie-modal .modal-title i {
  color: var(--sun);
}

.cookie-modal .modal-header .btn-close {
  filter: invert(1) grayscale(1) brightness(2);
}

.cookie-modal .modal-body {
  padding: 22px 24px 8px;
}

.cookie-intro {
  color: var(--muted);
  font-size: 14.5px;
}

.cookie-cat {
  padding: 16px 18px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: var(--brand-soft-2);
  border: 1px solid var(--line);
}

.cookie-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.cookie-cat-head label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
}

.cookie-cat p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.cookie-cat .form-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding-left: 2.6em;
}

.cookie-cat .form-check-input {
  width: 2.6em;
  height: 1.4em;
  cursor: pointer;
}

.cookie-cat .form-check-input:checked {
  background-color: var(--brand);
  border-color: var(--brand);
}

.cookie-cat .form-check-input:disabled {
  opacity: .6;
}

.cookie-always {
  font-size: 12px;
  font-weight: 800;
  color: var(--brand);
}

.cookie-more a {
  font-weight: 800;
}

.cookie-modal .modal-footer {
  gap: 8px;
  border: 0;
  padding: 8px 24px 22px;
}

.cookie-modal .modal-footer .btn-cookie {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 14px;
  font-size: 14.5px;
}

@media (min-width: 576px) {
  .cookie-modal .modal-dialog {
    max-width: 580px;
  }
}

/* бутонът във футъра */
.footer-cookies {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .8);
  font-weight: 700;
  font-size: 13px;
}

.footer-cookies:hover {
  color: var(--sun);
}

/* място, за да не скрива банерът долната част */
body.has-cookie-banner .site-footer {
  padding-bottom: 150px;
}

@media (max-width: 991.98px) {
  .cookie-banner {
    flex-wrap: wrap;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 18px;
  }

  .cookie-icon {
    display: none;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn-cookie {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 12px;
    font-size: 14.5px;
  }

  .cookie-copy p {
    font-size: 13px;
  }

  .cookie-actions .btn-cookie-link {
    width: 100%;
    padding: 4px;
  }

  .cookie-modal .modal-footer {
    flex-direction: column;
  }

  .cookie-modal .modal-footer .btn-cookie {
    width: 100%;
  }

  body.has-cookie-banner .site-footer {
    padding-bottom: 260px;
  }
}

/* ---------- 12. Вътрешни страници ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 56px 0 120px;
  background:
    radial-gradient(520px 380px at 80% 30%, rgba(58, 116, 245, .45), transparent 70%),
    linear-gradient(160deg, #012a74 0%, var(--navy-2) 55%, var(--brand) 100%);
}

.page-hero h1 {
  position: relative;
  color: #fff;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 900;
  font-style: italic;
  line-height: 1.05;
  margin: 0 0 18px;
  text-shadow: 0 4px 0 rgba(6, 16, 48, .25);
}

.page-hero h1 .hero-spark {
  left: -54px;
  top: 4px;
}

.page-hero .lead {
  max-width: 560px;
  font-size: 18.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
  margin: 0;
}

.lead-swoosh {
  display: block;
  width: 200px;
  height: 8px;
  margin: 22px 0 0 34%;
  border-radius: 50% 50% 40% 60% / 100% 100% 30% 30%;
  background: var(--sun);
  transform: rotate(-3deg);
}

.page-hero .hero-wave .w-sun {
  fill: var(--sun);
}

.page-hero-simple {
  padding: 46px 0 130px;
}

.page-crumbs {
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, .5);
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 700;
}

.page-crumbs a {
  color: rgba(255, 255, 255, .75);
}

.page-crumbs a:hover {
  color: var(--sun);
}

.page-crumbs .active {
  color: var(--sun);
}

/* За проекта – децата вдясно, стъпват върху вълната */
.project-hero {
  padding: 40px 0 0;
}

.project-hero .page-hero-copy {
  padding-bottom: 150px;
}

.project-hero-img {
  position: relative;
  z-index: 1;
  margin: 0 -10% 0 0;
}

.project-hero-img img {
  display: block;
  width: 100%;
  height: auto;
  /* петното зад децата е отрязано отляво – плавно го стопяваме */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%);
  mask-image: linear-gradient(90deg, transparent 0, #000 12%);
  filter: drop-shadow(0 10px 30px rgba(6, 16, 48, .35));
}

.project-hero .hero-wave {
  z-index: 2;
}

/* съдържание */
.project-body {
  position: relative;
  padding: 30px 0 170px;
  overflow: hidden;
}

.project-body .container {
  position: relative;
  z-index: 1;
}

.project-row + .project-row {
  margin-top: 26px;
}

.block-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 900;
  font-style: italic;
  margin: 0 0 18px;
}

.block-title .title-spark {
  top: -10px;
  margin-left: 0;
}

.block-icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-style: normal;
  color: var(--navy);
  background: linear-gradient(135deg, #ffd640, var(--sun-2));
  box-shadow: 0 6px 14px rgba(255, 159, 10, .3);
}

.soft-card {
  border-radius: 22px;
  padding: 24px 28px;
  box-shadow: 0 2px 4px rgba(11, 31, 92, .03), 0 12px 30px rgba(11, 31, 92, .06);
}

.soft-card.tone-blue {
  background: linear-gradient(160deg, #eef3ff, #e3ebfd);
}

.soft-card.tone-sun {
  background: linear-gradient(160deg, #fff8dc, #fff1c4);
}

.soft-card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: #22305a;
}

.soft-card strong {
  color: var(--navy);
  font-weight: 800;
}

.with-divider {
  position: relative;
}

@media (min-width: 992px) {
  .with-divider::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--line);
  }

  .with-divider {
    padding-left: 40px !important;
  }
}

.do-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.do-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 20px;
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.35;
  color: var(--navy);
  transition: transform .2s ease;
}

.do-card:hover {
  transform: translateY(-4px) rotate(-1deg);
}

.do-card > i {
  flex: none;
  font-size: 38px;
  color: var(--navy-2);
}

.do-card.tone-sun > i {
  color: #f2a900;
  -webkit-text-stroke: 1.5px var(--navy);
}

.goal-list {
  list-style: none;
  margin: 0;
}

.goal-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 8px 0;
  font-size: 16px;
  color: #22305a;
}

.goal-check {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sun);
  color: var(--navy);
  border: 2px solid var(--navy);
  font-size: 14px;
  margin-top: 1px;
}

.project-mid-img img {
  display: inline-block;
  width: 100%;
  max-width: 440px;
  height: auto;
  transform: rotate(-3deg);
  filter: drop-shadow(0 18px 30px rgba(11, 31, 92, .22));
  transition: transform .3s ease;
}

.project-mid-img img:hover {
  transform: rotate(0) scale(1.03);
}

.project-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 46px;
}

.project-cta .btn {
  font-size: 19px;
  padding: 17px 36px;
}

.cta-spark {
  width: 34px;
  height: 34px;
  background:
    linear-gradient(var(--sun), var(--sun)) 0 60% / 16px 6px no-repeat,
    linear-gradient(var(--sun), var(--sun)) 10px 6px / 6px 16px no-repeat;
  border-radius: 3px;
}

.cta-spark-l {
  transform: rotate(-120deg) scale(1.2);
}

.cta-spark-r {
  transform: rotate(30deg) scale(1.2);
}

/* жълтата вълна над футъра */
.bottom-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 140px;
  fill: var(--sun);
}

/* обикновена страница */
.page-content {
  padding: 10px 0 80px;
}

.content-card {
  max-width: 900px;
  margin: -60px auto 0;
  position: relative;
  z-index: 3;
  padding: 44px 50px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(11, 31, 92, .04), 0 18px 44px rgba(11, 31, 92, .08);
}

.rich-text {
  font-size: 17px;
  line-height: 1.7;
  color: #22305a;
}

.rich-text h2,
.rich-text h3,
.rich-text h4 {
  margin: 1.6em 0 .6em;
  font-weight: 800;
}

.rich-text h2 { font-size: 26px; }
.rich-text h3 { font-size: 21px; }

.rich-text > :first-child {
  margin-top: 0;
}

.rich-text a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rich-text img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.rich-text ul li::marker {
  color: var(--sun-2);
}

.rich-text table {
  width: 100%;
  margin: 1em 0;
  border-collapse: collapse;
}

.rich-text td,
.rich-text th {
  padding: 8px 12px;
  border: 1px solid var(--line);
}

@media (max-width: 1199.98px) {
  .do-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .page-hero h1 .hero-spark {
    display: none;
  }

  .project-hero .page-hero-copy {
    padding-bottom: 20px;
  }

  .project-hero-img {
    margin: 0 -24px;
  }

  .do-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-body {
    padding-bottom: 130px;
  }

  .content-card {
    padding: 28px 22px;
    margin-top: -50px;
  }
}

@media (max-width: 767.98px) {
  .page-hero .hero-wave {
    height: 56px;
  }

  .project-hero-img {
    margin: 0 -24px 0 -40px;
  }

  .page-hero-simple {
    padding-bottom: 100px;
  }

  .do-grid {
    grid-template-columns: 1fr;
  }

  .project-cta .btn {
    font-size: 16px;
    padding: 15px 22px;
  }

  .cta-spark {
    display: none;
  }
}

/* ---------- 13. Контакти ---------- */
.contacts-hero {
  padding-bottom: calc(var(--hero-img-h) * .36);
}

.contacts-hero h1 {
  font-size: clamp(40px, 5vw, 68px);
}

/* жълтата черта вдясно от „Контакти“ */
.swoosh-right::after {
  left: auto;
  right: -130px;
  bottom: 18px;
  width: 110px;
  height: 9px;
}

.contacts-body {
  position: relative;
  padding: 10px 0 190px;
  overflow: hidden;
}

.contacts-body .container {
  position: relative;
  z-index: 1;
}

.contact-card .block-title {
  font-size: clamp(22px, 2vw, 27px);
}

.block-icon.is-square {
  border-radius: 14px;
  transform: rotate(-6deg);
}

.contact-card {
  position: relative;
  margin-top: 0;
  padding: 30px 32px 34px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(11, 31, 92, .04), 0 22px 50px rgba(11, 31, 92, .1);
  scroll-margin-top: 110px;
}

.contact-form .field {
  margin-bottom: 14px;
}

.field-box {
  display: flex;
  align-items: center;
  border: 2px solid #c9d6f5;
  border-radius: 16px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field-box > i {
  flex: none;
  width: 54px;
  text-align: center;
  font-size: 19px;
  color: var(--navy);
  border-right: 2px solid #e3e9f8;
  padding: 4px 0;
}

.field-box.is-area {
  align-items: flex-start;
}

.field-box.is-area > i {
  padding-top: 16px;
  border-right: 0;
}

.field-box input,
.field-box textarea {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  padding: 13px 16px;
  font-size: 16px;
  color: var(--ink);
}

.field-box textarea {
  resize: vertical;
  min-height: 130px;
  padding-top: 15px;
}

.field-box input::placeholder,
.field-box textarea::placeholder {
  color: #6b78a0;
}

.field-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(26, 71, 184, .12);
}

.field-box.is-invalid {
  border-color: #d93a2b;
}

.field-error {
  margin: 6px 4px 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #c0392b;
}

.consent-check {
  padding-left: 2em;
  margin: 6px 0 22px !important;
  font-size: 14px;
  color: var(--muted);
}

.consent-check .form-check-input {
  width: 1.2em;
  height: 1.2em;
  margin-left: -2em;
  border: 2px solid #9fb1de;
}

.consent-check .form-check-input:checked {
  background-color: var(--brand);
  border-color: var(--brand);
}

.consent-check .form-check-input.is-invalid {
  border-color: #d93a2b;
}

.consent-check a {
  font-weight: 700;
  text-decoration: underline;
}

/* капан за ботове – скрит за хората */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fdecea;
  color: #8f1e18;
  font-weight: 700;
  font-size: 14.5px;
}

.form-success {
  display: flex;
  gap: 16px;
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(160deg, #e9f8ef, #dcf3e5);
  color: #145a32;
  outline: 0;
}

.form-success > i {
  font-size: 34px;
  color: #1e8a4c;
}

.form-success strong {
  display: block;
  font-family: var(--font-head);
  font-size: 20px;
  margin-bottom: 4px;
}

.form-success p {
  margin: 0 0 10px;
}

.form-success a {
  font-weight: 800;
  color: #145a32;
  text-decoration: underline;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  padding: 22px 24px;
  color: var(--navy);
  transition: transform .15s ease;
}

a.info-card:hover {
  color: var(--brand);
  transform: translateY(-3px);
}

.info-card > i {
  flex: none;
  font-size: 34px;
  color: var(--navy);
}

.info-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 17px;
  margin-bottom: 2px;
}

.info-card span {
  font-weight: 700;
  word-break: break-word;
}

.info-social {
  display: flex !important;
  gap: 18px;
  margin-top: 8px;
}

.info-social a {
  font-size: 30px;
  color: var(--navy);
  transition: color .15s ease, transform .15s ease;
}

.info-social a:hover {
  color: var(--sun-2);
  transform: translateY(-2px);
}

/* „Имаш идея?“ – жълта бележка с мегафон */
.idea-card {
  position: relative;
  padding: 26px 26px 120px;
  border-radius: 26px 26px 26px 8px;
  background: linear-gradient(160deg, #fff8dc, #ffefbd);
  transform: rotate(-3deg);
  box-shadow: 0 14px 30px rgba(255, 159, 10, .18);
}

.idea-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  font-weight: 900;
  font-style: italic;
  margin: 0 0 10px;
}

.idea-card h3 i {
  font-size: 30px;
  color: #e9a400;
  -webkit-text-stroke: 1px var(--navy);
}

.idea-card p {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--navy);
}

.idea-horn {
  position: absolute;
  right: 18px;
  bottom: 14px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-2), var(--navy-2));
  box-shadow: 0 12px 24px rgba(11, 31, 92, .3);
  transform: rotate(-16deg);
}

@media (max-width: 991.98px) {
  .contacts-hero {
    padding-bottom: calc(var(--hero-img-h) - 30px);
  }

  .swoosh-right::after {
    display: none;
  }

  .contact-card {
    margin-top: 0;
    padding: 24px 20px;
  }

  .contacts-body {
    padding-bottom: 150px;
  }
}
