/* body {
    background-color: #f4f8fc;
    color: #333;
    margin: 0;
    min-width: 400px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    font-size: 1.2rem !important;
}

header {
    background-color: #5075BF;
    color: white;
    top: 0;
    width: 100%;
    z-index: 2;
}


.my-custom-navbar .my-custom-text .nav-link {
  color: white;
  font-weight: 500;
}


.contact-link {
    color: white;
    text-decoration: none;
}

.contact-link:hover {
    color: #f0f0f0;
}

.advantage-description {
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.advantage-description.show {
    display: block;
    opacity: 1;
}


.card {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    border-radius: 10px;
}

.form-control {
    border: none;
    border-bottom: 2px solid #007bff;
    border-radius: 0;
    box-shadow: none;
}

.form-control:focus {
    box-shadow: none;
    outline: none;
}

.underline {
    width: 100%;
    margin-bottom: 1rem;
}


.project-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  margin-bottom: 20px;
}

.project-card {
  padding: 20px;
}

.project-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; 
    text-overflow: ellipsis;
    line-height: 1.4em;
    max-height: calc(1.4em * 2);
    min-height: calc(1.4em * 2); 
}


.card-flip {
    perspective: 1000px;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    height: 400px;
    position: relative;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-flip:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    box-sizing: border-box;
    border-radius: 10px;
    background-color: #fff;
}

.flip-card-front img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px 10px 0 0;
}

.flip-card-front h5 {
    margin-top: 10px;
    font-size: 18px;
    color: #333;
}

.flip-card-back {
    background-color: #f8f9fa;
    transform: rotateY(180deg);
    color: #333;
    padding: 20px;
}

.flip-card-back p {
    font-size: 14px;
    color: #555;
}

.card-flip.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.certificate-card { 
    height: 500px; 
}



footer {
  background-color: #5075BF;
  color: white;
  padding: 0;
  margin: 0;
  margin-top: auto;
}

.footer-content {
  min-height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  height: 30px;
  margin: 0; 
  display: block;
}

.footer-link:hover {
  opacity: 0.7;
}


.footer-links {
    margin-top: 56px;
}

.footer-list li {
  margin-bottom: 1rem;
}

.email-link {
    color: #fff;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.email-link:hover {
    opacity: 1;
    color: #fff; 
}

.email-link:hover:after {
    transform: scale(1); 
}


.copyright {
    color: white;
    font-weight: 500;
    line-height: 1.43;
    text-align: end;
    margin-bottom: 0;
}


.centered-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.expertise-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

.expertise-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.expertise-scroll-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.expertise-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.expertise-card {
    min-width: 150px;
    max-width: 150px;
    flex-shrink: 0;
    text-align: center;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
}

.expertise-icon-wrapper {
    margin-bottom: 1rem;
}
.expertise-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
}


.chat-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.chat-button:hover {
    background-color: #0056b3;
}

.chat-form {
    display: none;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid #ddd;
    z-index: 1001;
}


.custom-img {
  height: 300px;
  width: 300px;
  max-width: 100%; 
  object-fit: fill;
  display: block;
  margin-right: auto;
}


.project-item-wrapper {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    padding-bottom: 10px;
}

.project-item-wrapper:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.project-card-link {
    text-decoration: none;
    color: inherit;
}

.project-card {
    overflow: hidden;
    position: relative;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.project-card img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-description {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    background-color: rgba(80, 117, 191, 0.9);
    color: white;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: 4px 4px 0 0;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: start;
    text-align: left;
    pointer-events: auto;
    user-select: text;
    -webkit-user-select: text;
    padding: 0;
}

.project-card:hover img {
    transform: scale(1.05);
    filter: brightness(0.8);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-description {
    bottom: 0;
    opacity: 1;
    transform: translateY(0);
}

.project-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
    line-height: 1.4em;
    max-height: calc(1.4em * 2);
    min-height: calc(1.4em * 2);
    margin: 0 auto;
    padding: 0 1rem 0.5rem 1rem;
}
.project-description p {
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.2;
    max-width: 100%;
    word-break: break-word;
}


.user-select-text {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}


.service-content ul, .service-content ol {
    margin-left: 20px;
    margin-top: 10px;
}

.service-content p {
    margin-bottom: 10px;
}

.service-content h3, .service-content h4 {
    margin-top: 20px;
}



.nav-link {
    color: white !important;
    font-size: 1.2rem !important;;
}

.nav-link:hover {
    color: #ddd !important;
}




.content-80 {
  width: 56%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; 
  min-height: 60px;
  position: relative;
  padding-top: 12px;
  padding-bottom: 12px;
}

  .main-nav {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
  }

  .nav-menu {
    width: 100%;
  }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 15px;
  row-gap: 10px; 
  padding: 0;
  margin: 0;
  list-style: none;
  align-content: flex-start; 
}

.nav-list li {
  flex-shrink: 0;
}

.nav-list a {
  color: #333;
  font-size: 0.95rem;
  padding: 5px 10px;
  text-decoration: none;
  white-space: nowrap;
  display: block;
}

  .nav-list a:hover {
    color: #00d1b2;
  }

  
  .nav-logo img {
    height: 30px;
  }

  
  .nav-toggler {
  display: none;
  border: none;
  background: none;
  padding: 5px;
  cursor: pointer;
  margin-right: 15px; 
}

  .toggler-icon {
    display: block;
    width: 25px;
    height: 2px;
    background: #333;
    position: relative;
  }

  .toggler-icon::before,
  .toggler-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    left: 0;
  }

  .toggler-icon::before {
    top: -6px;
  }

  .toggler-icon::after {
    bottom: -6px;
  }

  .nav-list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 15px;
  row-gap: 1px;
  padding: 0;
  margin: 0;
  list-style: none;
  align-content: space-between;
}

@media (max-width: 1200px) {
  .nav-list {
    column-gap: 12px;
    row-gap: 1px;
  }
}

@media (max-width: 992px) {
  .nav-list {
    column-gap: 10px;
    row-gap: 1px;
  }
  .nav-list a {
    padding: 5px 8px;
  }
}

@media (max-width: 768px) {
  .nav-list {
    column-gap: 8px;
    row-gap: 1px;
  }
  .nav-list a {
    padding: 5px 6px;
  }
}

@media (max-width: 650px) {
  .nav-list {
    column-gap: 6px;
    row-gap: 1px;
  }
  .nav-list a {
    padding: 5px 5px;
  }
}

@media (max-width: 426px) {
  .nav-toggler {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #5075BF;
    border-radius: 8px;
    position: absolute;
    top: 50%;
    z-index: 10;
  }

  .nav-menu {
    position: absolute;
    top: 100%; 
    left: 1px;
    right: 15px;
    background: #5075BF;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 30px;
    width: 100%;
    margin-top: 15px;
  }

  .nav-menu.active {
    max-height: 500px;
    padding: 30px;
  }

  .nav-list {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .nav-list a {
    color: white;
    text-align: left;
  }
  .toggler-icon {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    position: relative;
    transition: all 0.3s ease;
  }

  .toggler-icon::before,
  .toggler-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    left: 0;
    transition: all 0.3s ease;
  }

  .toggler-icon::before {
    top: -6px;
  }

  .toggler-icon::after {
    bottom: -6px;
  }

  .nav-toggler.active .toggler-icon {
    background: transparent;
  }
  .nav-toggler.active .toggler-icon::before {
    top: 0;
    transform: rotate(45deg);
  }
  .nav-toggler.active .toggler-icon::after {
    bottom: 0;
    transform: rotate(-45deg);
  }

  .nav-logo img {
    margin-top: 4px;
  }
}

@media (max-width: 400px) {
  .nav-menu {
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
  }
}

#about,
#services-section,
#expertise-title,
#product-section,
#product-detail,
#project-detail,
#projects,
#network-infrastructure,
#certificates-modul,
#contacts {
    width: 55%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

#header {
  position: sticky;
  top: 0;
  background: #5075BF;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


main {
  padding-top: 20px;
}

#about,
#services-section,
#expertise-title,
#product-section,
#product-detail,
#project-detail,
#projects,
#network-infrastructure,
#certificates-modul,
#contacts  {
  scroll-margin-top: var(--header-offset, 80px);
}

@media (max-width: 768px) {
  main {
    padding-top: 30px;
  }
  #about {
    scroll-margin-top: 100px;
  }
}


#about,
#product-detail {
  margin-top: 30px !important;
}

table {
    width: auto !important;
    max-width: 80% !important;
    table-layout: auto;
    border-collapse: collapse;
    margin-bottom: 1rem;
    margin-left: 1rem;
    min-width: 400px
}

table p,
table span,
table td,
table th {
    font-size: 1.2rem !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

td, th {
    padding: 16px 20px !important;
    vertical-align: top;
    word-wrap: break-word;
}

th {
    background-color: #f5f5f5 !important;
    font-weight: bold !important;
    font-size: 1.3rem !important;
}

h2, h3, h4, .anchor-target {
          scroll-margin-top: 80px;
          } */


*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #222;
  background-color: #f4f8fc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  background-color: #5075bf;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1;
  min-width: 768px;
}

.footer {
  background-color: #5075bf;
  color: white;
  margin-top: auto;
  min-width: 768px;
}



.header .container,
.footer .container {
  max-width: 1176px; 
  min-width: 768px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 80px;
}

.header .logo img {
  margin-left: 40px;
}

.logo img {
  display: block;
  height: 50px;
  width: auto;
}

.header nav ul {
  display: flex;
  gap: 10px 20px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.header nav ul li {
  cursor: pointer;
  margin-bottom: 0;
}

.header nav ul li:hover {
  opacity: 0.7;
}

nav ul li a {
  color: white;
}

nav ul li a:hover {
  text-decoration: none;
}

main,
article {
  max-width: 1176px;
  min-width: 768px;
  margin: 0 auto;
  padding: 0 80px 20px 80px;
}

.title--big {
  font-size: 1.5em;
  font-weight: 600;
  margin: 1em 0 0.5em 0;
  line-height: 1.3;
}

.title--small {
  font-size: 1.3em;
  font-weight: 500;
  margin: 0 0 0.5em 0;
  line-height: 1.3;
}

p {
  margin-bottom: 1em;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul,
ol {
  padding-left: 2em;
  margin-bottom: 2em;
}

li {
  margin-bottom: 0.5em;
}

ol li ul {
  list-style-type: disc;
  margin-top: 0.5em;
}

table {
  width: 90%;
  margin: 0 0 2em 2em;
  border-collapse: collapse;
}

td {
  border: 1px solid #ccc;
  padding: 10px 14px;
  vertical-align: top;
}

p,
td:last-child,
li {
  text-align: justify;
  hyphens: auto;
}

.footer p {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0;
}

.chat-btn {
  position: fixed;
  right: max(80px, calc((100% - 1176px) / 2 + 80px));
  background: #5075bf;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.chat-btn:hover {
  opacity: 0.9;
}

.chat-form {
  position: fixed;
  right: max(80px, calc((100% - 1176px) / 2 + 80px));
  width: 350px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  padding: 15px;
  display: none;
  z-index: 1;
}

.form-group {
  margin-bottom: 12px;
}

.form-control {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: #5075bf;
  box-shadow: 0 0 4px rgba(80, 117, 191, 0.4);
}

textarea.form-control {
  resize: none;
  min-height: 80px;
}

.char-counter {
  font-size: 0.8rem;
  color: #666;
  text-align: right;
  margin-top: 4px;
}

.btn-submit {
  width: 100%;
  padding: 10px;
  background: #5075bf;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn-submit:hover {
  background: #3f5fa0;
}

#about,
#custom-development,
#expertise,
#products,
#product-detail,
#project-detail,
#projects,
#network-infrastructure,
#certificates-modul,
#contacts,
#docTypes,
#systemControl,
#security,
#systemDataBase  {
  scroll-margin-top: var(--header-offset, 120px);
}

.content-80 {
  width: 56%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.certs-list__item {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.cert__preview {
  flex-shrink: 0;
}

.cert__image {
  max-width: 180px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: zoom-in;
  display: block;
}

.cert__description {
  flex-grow: 1;
}

.cert__title {
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.cert__field {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  color: #555;
}

.cert__text {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #333;
}

.certs-list__item:last-child {
  margin-bottom: 20px;
}

main a:visited,
article a:visited {
  color: #00e;
}
