* {
    box-sizing: border-box;
  }
  
  body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #ffffff;
  }
  
  .test {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    font-weight: bold;
  }
  
  /* =========================
     FOOTER
  ========================= */
  
  .keit-footer {
    position: relative;
    overflow: hidden;
    background: #f3f3f0;
    padding: 90px 24px 290px;
  }
  
  /* GREEN SHAPE - запазено */
  .keit-footer::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 350px;
    background: #0b6b3a;
    clip-path: polygon(
      0 80%,
      100% 40%,
      100% 100%,
      0 100%
    );
    z-index: 1;
  }
  
  /* ORANGE TRIANGLE - запазено */
  .keit-footer::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 360px;
    height: 350px;
    background: #f28c28;
    clip-path: polygon(
      0 80%,
      0 40%,
      100% 70%
    );
    z-index: 2;
  }
  
  .keit-footer-content {
    position: relative;
    z-index: 3;
    max-width: 1280px;
    margin: 0 auto;
    color: #111;
  }
  .keit-footer-content {
    transform: translateY(80px);
  }
  
  /* TOP */
  
  .footer-top {
    display: grid;
    grid-template-columns: 1.25fr 2.75fr;
    gap: 64px;
    align-items: start;
  }
  
  .footer-brand img {
    width: 350px;
    height: auto;
    display: block;
    margin-bottom: 0px;
  }
  
  .footer-brand h2 {
    margin: 0 0 12px;
    font-size: 25px;
    line-height: 1.15;
  }
  
  .footer-brand p {
    margin: 0 0 18px;
    max-width: 380px;
    font-size: 14.5px;
    line-height: 1.65;
    color: #444;
  }
  
  .footer-brand-meta {
    display: grid;
    gap: 7px;
    font-size: 13.5px;
    color: #333;
  }
  
  .footer-brand-meta strong {
    color: #111;
  }
  
  /* SITEMAP */
  
  .footer-sitemap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
  
  .footer-col h3 {
    margin: 0 0 16px;
    font-size: 13px;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: #111;
  }
  
  .footer-link {
    display: block;
    margin-bottom: 14px;
    text-decoration: none;
    color: #222;
  }
  
  .footer-link strong {
    display: block;
    font-size: 15px;
    line-height: 1.25;
    margin-bottom: 3px;
  }
  
  .footer-link span {
    display: block;
    font-size: 12.8px;
    line-height: 1.42;
    color: #555;
  }
  
  .footer-link:hover strong,
  .solution-item a:hover {
    color: #f28c28;
  }
  
  /* SOLUTIONS */
  
  .footer-solutions {
    margin-top: 20px;
    padding-top: 34px;
    border-top: 1px solid rgba(0,0,0,.11);
  }
  
  .footer-section-title {
    margin: 0 0 24px;
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
  }
  
  .footer-solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
  }
  
  .solution-group h4 {
    margin: 0 0 16px;
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #333;
  }
  
  .solution-item {
    margin-bottom: 17px;
  }
  
  .solution-item a {
    display: block;
    margin-bottom: 4px;
    font-size: 15.5px;
    font-weight: 800;
    color: #111;
    text-decoration: none;
  }
  
  .solution-item p {
    margin: 0;
    font-size: 13px;
    line-height: 1.48;
    color: #4d4d4d;
  }
  
  /* LEGAL */
  
  .footer-legal {
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid rgba(0,0,0,.11);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 26px;
    align-items: center;
  }
  
  .footer-legal p {
    margin: 0;
    font-size: 12.8px;
    line-height: 1.5;
    color: #555;
    max-width: 720px;
  }
  
  .footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-end;
  }
  
  .footer-legal-links a,
  .footer-legal-links button {
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    font-size: 13px;
    color: #222;
    text-decoration: none;
    cursor: pointer;
  }
  
  .footer-legal-links a:hover,
  .footer-legal-links button:hover {
    color: #f28c28;
  }
  
  .footer-bottom {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    font-size: 13px;
    color: #666;
  }
  
  /* MOBILE */
  
  @media (max-width: 1000px) {
    .footer-top {
      grid-template-columns: 1fr;
      gap: 42px;
    }
  
    .footer-sitemap {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .footer-solutions-grid {
      grid-template-columns: 1fr;
    }
  
    .footer-legal {
      grid-template-columns: 1fr;
    }
  
    .footer-legal-links {
      justify-content: flex-start;
    }
  }
  
  @media (max-width: 600px) {
    .keit-footer {
      padding: 70px 20px 265px;
    }
  
    .keit-footer-content {
      transform: translateY(100px);
    }
  
    .footer-sitemap {
      grid-template-columns: 1fr;
      gap: 24px;
    }
  
    .footer-brand img {
      width: 180px;
    }
  
    .footer-bottom {
      flex-direction: column;
    }
  
    .keit-footer::before {
      width: 270px;
    }
  }
  
  /* =========================
     FOOTER PURE BLACK TEXT
  ========================= */
  
  .keit-footer,
  .keit-footer * {
    color: #000 !important;
  }
  
  .keit-footer a,
  .keit-footer button {
    color: #000 !important;
  }
  
  .footer-link:hover strong,
  .solution-item a:hover,
  .footer-legal-links a:hover,
  .footer-legal-links button:hover {
    color: #f28c28 !important;
  }
  
  /* 🔥 НАМАЛЯВА РАЗСТОЯНИЕТО ДОЛУ */
  
  .footer-legal {
    margin-top: 20px !important;
    padding-top: 14px !important;
  }
  
  .footer-bottom {
    margin-top: 10px !important;
  }
  /* =========================
     TIGHT LEGAL SPACING
  ========================= */
  
  .footer-legal {
    margin-top: 70px !important;
    padding-top: 12px !important;
  }
  
  .footer-legal p {
    margin-bottom: 0px !important;
  }
  
  .footer-bottom {
    margin-top: 0px !important;
  }
  /* =========================
   ALIGN FOOTER LEGAL TEXTS
========================= */

/* =========================
   KEIT MOBILE FOOTER VERSION
   paste at VERY END of footer.css
========================= */

.keit-mobile-footer {
  display: none;
}

@media (max-width: 767px) {

  /* hide full desktop footer on mobile */
  .keit-footer {
    display: none !important;
  }

  .keit-mobile-footer {
    display: block !important;
    position: relative;
    overflow: hidden;
    padding: 56px 20px 150px;
    background: #f3f3f0;
    color: #000;
  }

  .keit-mobile-footer::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 190px;
    background: #0b6b3a;
    clip-path: polygon(
      0 78%,
      100% 48%,
      100% 100%,
      0 100%
    );
    z-index: 1;
  }

  .keit-mobile-footer::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 190px;
    height: 180px;
    background: #f28c28;
    clip-path: polygon(
      0 82%,
      0 44%,
      100% 72%
    );
    z-index: 2;
  }

  .kmf-inner {
    position: relative;
    z-index: 3;
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
  }

  .kmf-logo {
    display: inline-flex;
    justify-content: center;
    margin-bottom: 24px;
  }

  .kmf-logo img {
    width: 190px;
    height: auto;
    display: block;
  }

  .kmf-main-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
    margin-bottom: 22px;
  }

  .kmf-main-links a {
    color: #000 !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
  }

  .kmf-solutions {
    margin: 0 auto 22px;
    padding: 14px 0;
    border-top: 1px solid rgba(0,0,0,.12);
    border-bottom: 1px solid rgba(0,0,0,.12);
  }

  .kmf-solutions summary {
    list-style: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #000;
  }

  .kmf-solutions summary::-webkit-details-marker {
    display: none;
  }

  .kmf-solutions summary::after {
    content: "+";
    margin-left: 8px;
    font-size: 16px;
    color: #f28c28;
  }

  .kmf-solutions[open] summary::after {
    content: "−";
  }

  .kmf-solutions-list {
    display: grid;
    gap: 10px;
    padding-top: 16px;
  }

  .kmf-solutions-list a {
    color: #000 !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
  }

  .kmf-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
    margin-bottom: 14px;
  }

  .kmf-legal-links a,
  .kmf-legal-links button {
    border: 0;
    background: transparent;
    padding: 0;
    color: #000 !important;
    font: inherit;
    font-size: 12.5px;
    text-decoration: none;
    cursor: pointer;
  }

  .kmf-copy {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #000 !important;
  }
}/* =========================
   MOBILE FOOTER SHAPES FIX
   orange connects cleanly to green
   paste at VERY END of footer.css
========================= */

@media (max-width: 767px) {

  .keit-mobile-footer {
    padding-bottom: 165px !important;
  }

  .keit-mobile-footer::after {
    height: 185px !important;
    background: #0b6b3a !important;
    clip-path: polygon(
      0 72%,
      100% 38%,
      100% 100%,
      0 100%
    ) !important;
    z-index: 1 !important;
  }

  .keit-mobile-footer::before {
    width: 330px !important;
    height: 214px !important;
    background: #f28c28 !important;

    clip-path: polygon(
      0 42%,
      44% 65%,
      0 78%
    ) !important;

    z-index: 2 !important;
  }
}
/* =========================
   FOOTER SMOOTH WHITE TO GREY TRANSITION
   paste at VERY END of footer.css
========================= */

.keit-footer,
.keit-mobile-footer {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #fafafa 18%,
    #f6f6f3 45%,
    #f3f3f0 100%
  ) !important;
}

/* desktop: повече място за плавния преход */
.keit-footer {
  padding-top: 130px !important;
  margin-top: -1px !important;
}

/* mobile */
@media (max-width: 767px) {
  .keit-mobile-footer {
    background: linear-gradient(
      180deg,
      #ffffff 0%,
      #fafafa 22%,
      #f6f6f3 52%,
      #f3f3f0 100%
    ) !important;

    padding-top: 78px !important;
    margin-top: -1px !important;
  }
}

/* =========================
   SAME STYLE LINE ABOVE FOOTER
========================= */

.keit-footer {
  border-top: 1px solid rgba(0,0,0,.11) !important;
}
@media (max-width: 767px) {
  .keit-mobile-footer {
    border-top: 1px solid rgba(0,0,0,.11) !important;
  }
}
.keit-footer::before {
  width: clamp(320px, 34vw, 560px) !important;
  height: 350px !important;
  clip-path: polygon(
    0 38%,
    0 80%,
    100% 66.5%
  ) !important;
}/* =========================
   FOOTER SVG SHAPE FIX
========================= */

.keit-footer::before,
.keit-footer::after,
.keit-mobile-footer::before,
.keit-mobile-footer::after {
  display: none !important;
}

.keit-footer {
  padding-bottom: 290px !important;

  background-image:
    url("../images/keit-footer-shape.svg"),
    linear-gradient(
      180deg,
      #ffffff 0%,
      #fafafa 18%,
      #f6f6f3 45%,
      #f3f3f0 100%
    ) !important;

  background-repeat: no-repeat, no-repeat !important;
  background-position: bottom center, top center !important;
  background-size: 100% 350px, 100% 100% !important;

  border-top: 1px solid rgba(0,0,0,.11) !important;
}

.keit-mobile-footer {
  padding-bottom: 165px !important;

  background-image:
    url("../images/keit-footer-shape.svg"),
    linear-gradient(
      180deg,
      #ffffff 0%,
      #fafafa 22%,
      #f6f6f3 52%,
      #f3f3f0 100%
    ) !important;

  background-repeat: no-repeat, no-repeat !important;
  background-position: bottom center, top center !important;
  background-size: 100% 190px, 100% 100% !important;

  border-top: 1px solid rgba(0,0,0,.11) !important;
}



/* Mobile footer – bold navigation links on all pages */
@media (max-width: 767px) {
  .keit-mobile-footer .kmf-main-links a {
    font-weight: 700 !important;
  }
}
