@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@200;700&display=swap");

@font-face {
  font-family: "Berlin Regular";
  src: url("../fonts/BerlinTypeWeb-Regular.woff");
}

@font-face {
  font-family: "Berlin Bold";
  src: url("../fonts/BerlinTypeWeb-Bold.woff");
}

html {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

a, a:hover {
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

body {
  font-family: "Berlin Regular", sans-serif;
  font-size: 16px;
}

a {
  color: #fff;
}
a:hover {
  color: #fff;
}

.row-wrapper {
  flex-flow: column;
}

.tac {
  text-align: center;
}

.aic {
  align-items: center;
}

.tac {
  text-align: center;
}

.jcc {
  justify-content: center;
}

.jcsb {
  justify-content: space-between;
}

.blue {
  background-color: rgba(26, 85, 149, 0.1);
}

.bn {
  border: none !important;
}

.bt {
  border-top: 1px solid rgb(163, 187, 213);
}

.bb {
  border-bottom: 1px solid rgb(163, 187, 213);
}

.grad {
  background: linear-gradient(180deg, rgb(243, 249, 255) 80%, rgba(26, 85, 149, 0.1) 80%);
}

.vertical-line {
  height: 200px;
  width: 130px;
  border-bottom: 1px dashed rgb(20, 64, 112);
  transform: rotate(90deg);
  margin: 80px auto;
  background-color: transparent;
  display: block;
}

.section-text {
  margin: auto;
  width: 820px;
  display: block;
  color: rgb(26, 85, 149);
  padding: 30px 50px;
}
.section-text.bb {
  margin-bottom: 5rem;
}
.section-text.bt {
  margin-top: 5rem;
}

.reverse {
  flex-direction: row-reverse;
}

.col-pic {
  width: 100%;
}

section {
  padding: 50px 0;
  height: auto;
}
section .section-title {
  font-family: "Roboto Mono";
  font-size: 2.5rem;
  font-weight: 600;
  color: rgb(228, 148, 24);
  padding-bottom: 22px;
  border-radius: 8px;
  border-bottom: 1px solid rgb(228, 148, 24);
  display: inline-block;
  width: auto;
  margin: auto;
  margin-bottom: 30px;
  text-transform: uppercase;
}
section .section-title span {
  color: rgb(26, 85, 149);
}
section .section-title.bn {
  width: 100%;
  text-align: center;
}
section .subtitle {
  display: block;
  text-align: center;
  padding: 0 20%;
  margin-bottom: 60px;
}

.topline {
  background-color: rgb(228, 148, 24);
  flex-flow: row wrap;
  justify-content: space-between;
  height: 50px;
  color: #fff;
}
.topline .email {
  text-transform: uppercase;
  margin-left: 10px;
  font-size: 1rem;
  margin-right: 40px;
}
.topline .lang-item {
  margin-right: 10px;
}
.topline .container {
  justify-content: space-between;
  line-height: 50px;
}

.lang-switcher {
  list-style: none;
  margin-left: 10px;
}

.lang-switcher li {
  margin-right: 10px;
}

.nav-line {
  justify-content: space-between;
  padding: 10px 0;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
}
.nav-line a {
  color: #fff;
}
.nav-line a:hover {
  color: #fff;
  text-decoration: underline;
}

.navbar-brand img {
  width: 330px;
}

#primary-menu {
  display: flex;
}

#primary-menu li {
  padding: 0 5px;
}

h1 {
  font-size: 3rem;
  font-family: 'Roboto Mono', serif;
  text-transform: uppercase;
  font-weight: bold;
}

h3 {
  color: rgb(26, 85, 149);
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 2.5rem;
}
h3 span {
  color: rgb(228, 148, 24);
}

.slider-wrapper {
  height: 100%;
}

.first {
  position: relative;
  background-size: 100%;
  margin-bottom: 0;
  top: -6.4rem;
  z-index: 0;
  background-repeat: no-repeat;
}

.internal {
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.home-slider {
  height: 45.625rem;
}
.home-slider .container {
  flex-flow: column;
  align-items: flex-start;
  justify-content: center;
  color: #fff;
}
.home-slider .container h1 {
  font-size: 2.375rem;
}
.home-slider .container p {
  font-size: 1.25rem;
  margin-bottom: 4rem;
  margin-top: 1.625rem;
  line-height: 1.75rem;
}


.btn {
  font-size: 1.25rem;
  height: 4.375rem;
  background-color: rgb(20, 64, 112);
  border-radius: 8px;
  color: #fff;
  line-height: 4.375rem;
  padding: 0;
  cursor: pointer;
  border: 0;
  transition: 1.3s;
  max-width: 283px;
}
.btn .btn-text {
  width: 100%;
}
.btn .arrow-btn {
  background-color: rgb(228, 148, 24);
  min-width: 70px;
  height: 70px;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  transition: 0.7s;
}
.btn .arrow-btn img {
  transition: 0.6s;
}
.btn:hover {
  background-color: rgb(228, 148, 24);
  color: #fff;
}
.btn:hover .arrow-btn {
  background-color: rgb(171, 111, 18);
}
.btn:hover .arrow-btn img {
  transform: rotate(45deg);
}

.home-slider .btn-text {
  margin: 0 30px;
}

.main.home {
  z-index: 2;
  position: relative;
  margin-top: -280px;
}

.main.internal-page {
  margin-top: -135px;
}

.numbers-list {
  gap: 30px;
  justify-content: center;
  flex-basis: 25%;
  padding-left: 60px;
  padding-right: 60px;
}

.numbers-item {
  background-color: rgb(163, 187, 213);
  flex-flow: column;
  border-radius: 10px;
  padding: 30px 50px;
  cursor: pointer;
  transition: 0.6s;
  color: rgb(26, 85, 149);
  min-width: 250px;
}
.numbers-item svg {
  fill: rgb(26, 85, 149);
}
.numbers-item:hover {
  background-color: rgb(228, 148, 24);
  color: #fff;
}

.numbers-item:hover svg {
  fill: #fff;
}

.numbers-number {
  font-size: 3rem;
  font-weight: bold;
}

.numbers-description {
  font-size: 0.9rem;
}

.activity-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}
.activity-icon img {
  margin: auto;
  padding: 1rem;
  border-bottom: 1px solid rgb(228, 148, 24);
  border-radius: 0.5rem;
}

.activity-title {
  font-size: 1.5rem;
  text-align: center;
  font-weight: bold;
  color: rgb(26, 85, 149);
  margin-top: 1.25rem;
  margin-bottom: 2rem;
}
.activity-description {text-align: center;}

.card-wrapper {
  width: 100%;
  background-size: 100%;
  border-radius: 0.5rem;
  background-repeat: no-repeat;
  height: 378px;
  padding: 0;
  align-items: start;
  justify-content: end;
  padding: 24px 15px;
  flex-flow: column;
  transition: 0.9s;
  position: relative;
}
.card-wrapper .card-title {
  width: 100%;
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1.75rem;
  z-index: 5;
}
.card-wrapper .card-link {
  z-index: 5;
}
.card-wrapper::after {
  content: "";
  opacity: 0.7;
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgb(26, 65, 149);
  background: linear-gradient(45deg, rgb(26, 65, 149) 35%, rgb(228, 148, 24) 100%);
  z-index: 4;
  margin: -24px -15px;
  border-radius: 8px;
  transition: 0.9s;
}
.card-wrapper:hover::after {
  display: block;
}

.nav-tabs,
.nav-tabs .nav-link {
  border: none;
}

.techs .nav-tabs {
  flex-flow: column;
}
.techs .nav-link {
  width: 100%;
  line-height: 4rem;
  padding: 10px 0;
  text-align: left;
  padding-left: 54px;
  font-weight: bold;
  color: rgb(26, 85, 149);
}
.techs .nav-link svg {
  fill: rgb(26, 85, 149);
}
.techs .nav-link.active {
  background-color: rgb(228, 148, 24);
  color: #fff;
  padding-top: 22px;
  padding-bottom: 22px;
  border-radius: 8px;
}
.techs .nav-link.active svg {
  fill: #fff;
}
.techs .tech-icon {
  width: 4rem;
  height: 4rem;
  margin-right: 2.5rem;
}
.techs img {
  border-radius: 8px;
}

.internal-page .techs .tab-content {
  width: 100%;
}
.internal-page .techs .nav-link {
  padding-left: 24px;
  padding-top: 10px;
  padding-bottom: 10px;
  margin: 5px;
}
.internal-page .techs .nav-link:hover {
  background-color: rgb(163, 187, 213);
  border-radius: 0.5rem;
}
.internal-page .techs .tech-icon {
  margin-right: 1.5rem;
}
.internal-page .techs .tech-card {
  flex-basis: 48%;
  flex-flow: column;
  font-size: 14px;
}
.internal-page .techs .tech-card .tech-pic {
  width: 100%;
  position: relative;
}
.internal-page .techs .tech-card .tech-pic::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  background: rgb(26, 65, 149);
  background: linear-gradient(45deg, rgb(26, 65, 149) 35%, rgb(228, 148, 24) 100%);
  z-index: 4;
  opacity: 0;
}
.internal-page .techs .tech-card .tech-pic::after {
  content: "";
  width: 100px;
  height: 100px;
  z-index: 5;
  position: absolute;
  left: calc(50% - 50px);
  top: calc(50% - 50px);
  background-image: url("../img/icons/plus.svg");
  background-repeat: no-repeat;
  opacity: 0;
}
.internal-page .techs .tech-card:hover {
  cursor: pointer;
  border-radius: 8;
  transition: 0.8s;
}
.internal-page .techs .tech-card:hover .tech-pic::before {
  opacity: 0.7;
  border-radius: 0.5rem;
}
.internal-page .techs .tech-card:hover .tech-pic::after {
  opacity: 0.7;
}
.internal-page .techs .tech-card .tech-specs {
  color: rgb(26, 85, 149);
  padding: 1.5rem 0.5rem;
}
.internal-page .techs .tech-card .tech-specs span {
  font-weight: bold;
}
.internal-page .techs .tab-pane {
  justify-content: start;
  width: 100%;
  display: flex;
  gap: 30px;
  padding: 5px 15px;
  flex-flow: row wrap;
}

.cta-block {
  background-image: url("../img/production/cta-bg.jpg");
  padding-top: 6.5rem;
  padding-bottom: 4.5rem;
}

.cta-wrapper {
  background-color: rgba(255, 255, 255, 0.7);
  flex-flow: column;
  border-radius: 0.5rem;
  align-items: center;
  justify-content: center;
  padding-bottom: 3.5rem;
  position: relative;
  padding-top: 4rem;
  width: 90%;
  margin: auto;
}

.cta-icon {
  width: 140px;
  height: 140px;
  position: absolute;
  top: -3.5rem;
}

.cta-text {
  color: rgb(228, 148, 24);
  font-size: 2rem;
  margin-bottom: 10px;
}

.cta-phone {
  font-size: 3.75rem;
  font-weight: bold;
  color: rgb(26, 85, 149);
}
.cta-phone:hover {
  color: rgb(20, 64, 112);
  cursor: pointer;
}


.factory-slider {
  overflow: hidden;
  margin-top: 40px;
}

.factory-slider .factory-thumbnail {
  width: 420px;
}

.factory-slider .factory-thumbnail img {
  width: 100%;
}
.factory-slider .swiper-wrapper {
  display: flex;
  justify-content: center;
}

.factory-slider .swiper-slide {
  flex-basis: 50%;
  width: 100%;
  display: flex;
  background-color: #fff;
  padding: 20px;
  min-width: 960px;
  border-radius: 16px;
}

.factory-slider .factory-details {
  padding-left: 30px;
}

.factory-slider .factory-details h4 {
  color: rgb(26,65,149);
  font-weight: bold;
  font-family: 'Roboto Mono', serif;
  margin-bottom: 30px;
}
.factory-slider .factory-details li {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
}

.factory-slider .factory-details li span:last-child {
  margin-left: 40px;
}
.partners-list {
  overflow:hidden;
}

.partners-list .swiper-wrapper {
      width: 100%;
      height: 100%;
      margin-left: auto;
      margin-right: auto;
      display: flex;
    }

.partners-list .swiper-slide {
      text-align: center;
      background: #fff;
      /* Center slide text vertically */
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 10px;
      border-radius: .5rem;
    }

.partners-list .swiper-slide img {
  width: 180px;
  height: 80px;
}

.about-img-cascade {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  grid-column-gap: 20px;
  grid-row-gap: 0px;
  padding: 0 120px;
  margin: auto;
}
.about-img-cascade img {
  border-radius: 0.5rem;
  max-width: 348px;
  height: auto;
  margin: 10px 0;
}

.type-wrapper {
  margin: 6rem 0;
}
.type-wrapper .pic-wrapper {
  padding-top: 4rem;
  padding-bottom: 4rem;
  position: relative;
}
.type-wrapper .pic-wrapper::before {
  content: "";
  position: absolute;
  border-right: 1px dashed rgb(228, 148, 24);
  border-top-right-radius: 8px;
  border-top: 1px dashed rgb(228, 148, 24);
  left: -20%;
  top: 20px;
  z-index: 11;
  height: 110px;
  width: 390px;
}
.type-wrapper .pic-wrapper::after {
  content: "";
  position: absolute;
  border: 2px solid rgb(228, 148, 24);
  left: 250px;
  top: 110px;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background-color: #000;
  z-index: 12;
}
.type-wrapper .pic-wrapper.left::before {
  border-left: 1px dashed rgb(228, 148, 24);
  border-right: 0;
  content: "";
  position: absolute;
  border-radius: 8px;
  left: 40%;
  top: 20px;
  z-index: 11;
  height: 110px;
  width: 390px;
  background-color: none;
}
.type-wrapper .pic-wrapper.left::after {
  left: 249px !important;
}
.type-wrapper .text {
  color: rgb(26, 85, 149);
  margin-bottom: 30px;
  padding-right: 20%;
}

.first-col {
  grid-area: 2/1/4/2;
}

.second-col {
  grid-area: 1/2/5/3;
}

.third-col {
  grid-area: 2/3/4/4;
}

.services {
  padding: 50px 0;
}
.services .row {
  padding-top: 50px;
  padding-bottom: 70px;
}

.service-picture {
  position: relative;
}
.service-picture::before {
  content: "";
  position: absolute;
  width: 121px;
  height: 123px;
  top: -60px;
  left: -60px;
  background-image: url("../img/services/pic-element.png");
  background-repeat: no-repeat;
  z-index: 999;
}

.service-description {
  flex-flow: column;
  padding-left: 80px;
  padding-right: 80px;
}

.service-number {
  color: #DEDEE2;
  font-size: 4.5rem;
  font-weight: bold;
}

.service-text {
  color: rgb(26, 85, 149);
  line-height: 1.5rem;
}

.service-list li {
  list-style: none;
  padding-left: 30px;
  position: relative;
  margin: 9px 0;
  text-transform: lowercase;
  font-weight: bold;
}
.service-list li::before {
  content: "";
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  background-image: url(../img/icons/list-marker.svg);
  background-repeat: no-repeat;
  left: 0px;
}

.projects-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  grid-column-gap: 20px;
  grid-row-gap: 20px;
}
.projects-list .project-card-meta {
  padding: 24px 30px;
  z-index: 2;
}
.projects-list .project-item {
  flex-flow: column nowrap;
  align-items: start;
  justify-content: end;
  background-repeat: no-repeat;
  cursor: pointer;
  position: relative;
  padding: 0;
  border-radius: 0.5rem;
}
.projects-list .project-item::before {
  border-radius: 0.5rem;
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  background: rgb(26, 65, 149);
  background: linear-gradient(45deg, rgb(26, 65, 149) 35%, rgb(228, 148, 24) 100%);
  z-index: 1;
  opacity: 0;
}
.projects-list .project-item::after {
  content: "";
  position: absolute;
  background-image: url(../img/icons/arrow-angle.svg);
  background-repeat: no-repeat;
  right: 30px;
  top: 30px;
  z-index: 1;
  opacity: 0;
  width: 30px;
  height: 30px;
}
.projects-list .project-item:hover {
  background-size: 120%;
}
.projects-list .project-item:hover::before {
  opacity: 0.7;
}
.projects-list .project-item:hover::after {
  opacity: 1;
}
.projects-list .project-item a {
  display: block;
}
.projects-list .project-item .project-title {
  font-size: 1.5rem;
  font-weight: bold;
}
.projects-list .project-item .project-details {
  font-size: 0.9rem;
}
.projects-list .project-item:nth-child(1) {
  grid-area: 1/1/3/3;
  height: 848px;
}
.projects-list .project-item:nth-child(1) .project-title {
  font-size: 3rem;
}
.projects-list .project-item:nth-child(2) {
  grid-area: 1/3/2/4;
}
.projects-list .project-item:nth-child(3) {
  grid-area: 2/3/3/4;
}
.projects-list .project-item:nth-child(4) {
  grid-area: 3/1/4/2;
}
.projects-list .project-item:nth-child(5) {
  grid-area: 4/1/5/2;
}
.projects-list .project-item:nth-child(6) {
  grid-area: 3/2/5/4;
}
.projects-list .project-item:nth-child(6) .project-title {
  font-size: 3rem;
}

.main-slide {
  width: 100%;
  height: auto;
}

.slider-thumbs {
  width: 100%;
  justify-content: space-between;
  padding-top: 24px;
}

.slider-thumb {
  width: 190px;
}

.project-description {
  padding: 30px;
  color: rgb(26, 85, 149);
  font-weight: bold;
  text-transform: uppercase;
}

.project-description_item {
  margin-bottom: 20px;
}
.project-description_item .item-title {
  font-size: 2.25rem;
}
.project-description_item small {
  text-transform: none;
  font-size: 0.9rem;
  display: block;
  text-align: left;
  font-weight: normal;
}

.lab-table {
  width: 80%;
  margin: auto;
  text-align: center;
}

.table {
  color: rgb(26, 85, 149);
}
.table th {
  border: 1px solid rgb(26, 85, 149);
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  margin-bottom: 5px;
}
.table .table > :not(:first-child) {
  border: 0;
}
.table .table-divider {
  background-color: rgb(26, 85, 149);
  color: #fff;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 20px;
  letter-spacing: 3px;
}
.table .table-divider:hover {
  color: #fff;
}
.table td {
  border: 1px solid #DEDEE2;
}
.table td:first-child {
  border-left: none;
}
.table td:last-child {
  border-right: none;
}

.laboratory-gallery {
  padding: 30px;
}

.lab-slider {
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.lab-slider .swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lab-slider .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lab-slider .swiper-slide {
  width: 60%;
}

.lab-slider .swiper-slide:nth-child(2n) {
  width: 40%;
}

.lab-slider .swiper-slide:nth-child(3n) {
  width: 20%;
}

.contact-page .footer-contact-list {
  flex: 1 1 auto;
  margin-bottom: 40px;
}

.contact-page .footer-contact-item {
  color: rgb(20, 64, 112);
}

.contact-page .contacts-pic {
  width: 100%;
}

.contact-page input {
  height: 70px;
}
footer {
  padding-top: 66px;
  padding-bottom: 20px;
  height: 39.875rem;
  background-color: rgb(26, 85, 149);
  background-image: url("../img/footer-bg.png");
  background-repeat: no-repeat;
  background-position: right 5% bottom 45%;
  background-size: 35%;
}

.footer-nav {
  align-items: center;
  justify-content: space-between;
}
.footer-nav a {
  color: #fff;
}
.footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-slogan p {
  border-top: 1px solid rgb(0, 163, 255);
  border-bottom: 1px solid rgb(0, 163, 255);
  border-radius: 0.5rem;
  color: #fff;
  margin: 5rem auto;
  padding: 29px 25px;
  max-width: 920px;
  font-size: 2.25rem;
  font-family: "Roboto Mono", monospace;
  letter-spacing: -4;
}
.footer-slogan p span {
  font-weight: 900;
  font-family: "Berlin", sans-serif;
}

.footer-contact-list {
  justify-content: space-between;
  color: #fff;
  padding: 0;
  gap: 30px;
}
.footer-contact-list li {
  flex-basis: 25%;
  border: 1px solid rgb(72, 119, 170);
  padding: 15px 18px;
  align-items: center;
  display: flex;
  border-radius: 0.5rem;
}
.footer-contact-list span {
  display: inline-block;
}
.footer-contact-list .footer-icon {
  margin: 5px;
}

.copyrights {
  margin-top: 40px;
  color: #fff;
}

.pagination {
  justify-content: center;
}
.pagination .pagination_list {
  display: flex;
  flex-flow: row nowrap;
  width: auto;
  margin-top: 60px;
}
.pagination .pagination_list .pagintaion_link {
  color: rgb(228, 148, 24);
  text-align: center;
  line-height: 2.25;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-block;
  margin: 0 5px;
  border-radius: 8px;
}
.pagination .pagination_list .pagintaion_link:hover, .pagination .pagination_list .pagintaion_link:active,
.pagination .pagination_list .pagintaion_link .active {
  background-color: rgb(228, 148, 24);
  color: #fff;
}
/* Hermes full-fix 2026-08-23 */
html, body { max-width: 100%; overflow-x: hidden; }
.hermes-footer-policy-links a { color:#fff; text-decoration: underline; }
.hermes-contact-form button.btn { border:0; cursor:pointer; }
.hermes-contact-status { margin-bottom: 18px; }
.entry-content table { width:100%; border-collapse: collapse; margin: 18px 0; }
.entry-content th,.entry-content td { border:1px solid #d7e1ec; padding:10px; vertical-align:top; }
@media (max-width: 767px) {
  .numbers-list { flex-wrap: wrap; gap: 16px; justify-content: center; }
  .numbers-item { flex: 0 1 calc(50% - 16px); min-width: 150px; }
  .factory-slider { width:100%; overflow:hidden; }
  .factory-slider .swiper-wrapper { justify-content:flex-start; align-items:stretch; }
  .factory-slider .swiper-slide { min-width:0 !important; width:100% !important; max-width:100%; flex-basis:100%; flex-direction:column; padding:15px; box-sizing:border-box; }
  .factory-slider .factory-thumbnail { width:100%; max-width:100%; }
  .factory-slider .factory-details { padding-left:0; padding-top:18px; width:100%; }
  .factory-slider .factory-details li { gap:12px; align-items:flex-start; }
  .factory-slider .factory-details li span:last-child { margin-left:0; text-align:right; }
  .contact-page .w-50 { width:100% !important; }
}
/* Hermes mobile overflow final fix 2026-08-23 */
@media (max-width: 767px) {
  .header .container, .footer .container, .contact-page .container { overflow-x: hidden; }
  .header .nav-line, .footer-nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; overflow: visible; }
  .header .navbar-brand, .footer-nav .navbar-brand { max-width: calc(100% - 70px); }
  .header .navbar-brand img, .footer-nav .navbar-brand img { max-width: 180px; height: auto; }
  .header .navbar.navbar-expand-lg, .footer-nav .navbar.navbar-expand-lg { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 56px; min-width: 56px; max-width: 56px; padding: 0; z-index: 20; }
  .header .navbar-toggler, .footer-nav .navbar-toggler { width: 56px; margin: 0; }
  .header .navbar-collapse, .footer-nav .navbar-collapse { position: absolute; top: 44px; right: 0; width: calc(100vw - 24px); max-width: 366px; background: #1a5595; padding: 12px; border-radius: 10px; z-index: 30; }
  .contact-page .footer-contact-list, .footer .footer-contact-list { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; }
  .contact-page .footer-contact-list li, .footer .footer-contact-list li { width: 100%; flex-basis: auto; box-sizing: border-box; }
  .contact-page .footer-contact-list .footer-contact-text, .footer .footer-contact-list .footer-contact-text { overflow-wrap: anywhere; }
}

/* Hermes legal-page mobile overflow fix 2026-08-23 */
@media (max-width: 767px) {
  .entry-title, .page-title { font-size: clamp(28px, 9vw, 44px) !important; line-height: 1.12; overflow-wrap: anywhere; word-break: normal; }
  .site-main, .site-main article, .entry-header, .entry-content { max-width: 100%; overflow-x: hidden; box-sizing: border-box; }
  .entry-content { padding-left: 12px; padding-right: 12px; overflow-wrap: anywhere; }
  .entry-content table { width: 100% !important; max-width: 100% !important; table-layout: fixed; font-size: 12px; }
  .entry-content th, .entry-content td { padding: 7px 5px; word-break: break-word; overflow-wrap: anywhere; }
}

/* Hermes Dromas mobile UX/performance fix 2026-08-27
   Fixes: invisible burger icon, collapsed menu layout, narrow numbers cards. */
@media (max-width: 767px) {
  .topline { display: none; }
  .header .nav-line { padding: 12px 0; min-height: 76px; }
  .header .navbar-brand img { max-width: min(235px, calc(100vw - 118px)); width: 235px; }
  .header .navbar.navbar-expand-lg { top: 50%; right: 0; transform: translateY(-50%); }
  .header .navbar-toggler {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 44px;
    border: 2px solid #ffffff;
    border-radius: 10px;
    background: rgba(20, 64, 112, 0.92);
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
    padding: 0;
  }
  .header .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
  .header .navbar-toggler-icon {
    width: 28px;
    height: 22px;
    display: block;
    background-image: none !important;
    position: relative;
    border-top: 3px solid #fff;
    border-bottom: 3px solid #fff;
  }
  .header .navbar-toggler-icon::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 7px;
    border-top: 3px solid #fff;
  }
  .header .navbar-collapse {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    width: min(92vw, 360px) !important;
    max-width: calc(100vw - 24px) !important;
    background: rgba(20,64,112,.98) !important;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
    padding: 14px !important;
    z-index: 9999 !important;
    box-shadow: 0 16px 36px rgba(0,0,0,.28);
  }
  .header .navbar-collapse.show,
  .header .navbar-collapse.collapsing { display: block !important; }
  .header #primary-menu,
  .header #primary-menu.menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px;
    width: 100%;
  }
  .header #primary-menu li { padding: 0 !important; width: 100%; }
  .header #primary-menu a {
    display: block;
    padding: 11px 12px;
    border-radius: 8px;
    color: #fff !important;
    line-height: 1.25;
    background: rgba(255,255,255,.06);
  }
  .header #primary-menu a:hover,
  .header #primary-menu a:focus { background: rgba(228,148,24,.9); text-decoration: none; }

  .first { top: -4.8rem; background-size: cover !important; background-position: center top; }
  .home-slider { min-height: 620px; height: auto; }
  .home-slider .container { padding-top: 132px; padding-bottom: 210px; }
  .home-slider .container h1 { font-size: clamp(1.75rem, 8vw, 2.35rem); line-height: 1.14; }
  .home-slider .container p { font-size: 1rem; line-height: 1.45; margin-bottom: 2rem; }
  .main.home { margin-top: -250px; }

  .numbers { padding-top: 34px; padding-bottom: 34px; }
  .numbers-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px !important;
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
    justify-content: stretch !important;
    align-items: stretch;
  }
  .numbers-item {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: none !important;
    padding: 22px 12px !important;
    min-height: 190px;
    justify-content: center;
    overflow-wrap: anywhere;
  }
  .numbers-item svg { max-width: 58px; height: auto; }
  .numbers-number { font-size: clamp(2rem, 10vw, 2.65rem); line-height: 1.05; }
  .numbers-description { font-size: .88rem; line-height: 1.25; }
}
@media (max-width: 374px) {
  .numbers-list { grid-template-columns: 1fr; }
  .numbers-item { min-height: 150px; }
}

