html {
  font-size: calc(100% + 1pt);
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  color: #222;
}

.top-container {
  width: 100%;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-left: 40px;
  padding-right: 40px;
  box-sizing: border-box;
  background: #ffffff;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-container h1 {
  margin: 0;
  font-size: 1.5rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #2d7b99;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.main-nav ul {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  color: #2d7b99;
  text-decoration: none;
  font-weight: bold;
}

.main-nav a:hover {
  text-decoration: underline;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 14px;
  margin-left: 14px;
  border-left: 1px solid #ddd;
}

.lang-switcher a {
  display: flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.lang-switcher a:hover {
  opacity: 0.85;
}

.lang-switcher a.active {
  opacity: 1;
}

.lang-switcher svg {
  display: block;
  width: 22px;
  height: 14px;
  border-radius: 2px;
  border: 1px solid #ddd;
}

.lang-switcher a.active svg {
  border-color: #2d7b99;
  box-shadow: 0 0 0 1px #2d7b99;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border-bottom: 1px solid #ddd;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav li {
    border-top: 1px solid #eee;
  }

  .main-nav a {
    display: block;
    padding: 14px 40px;
  }

  .lang-switcher {
    padding: 14px 40px;
    margin-left: 0;
    border-left: none;
  }

  .lang-switcher a {
    padding: 0;
  }

  .top-container {
    position: relative;
  }
}

.mid-container {
  width: 100%;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-left: 40px;
  height: 260px;
  box-sizing: border-box;
  background: #2d7b99 url("img/background1.jpg") no-repeat center center;
  background-size: 100% 100%;
  border-bottom: 1px solid #ddd;
  color: #ffffff;
}

.mid-container h1 {
  margin: 0;
  font-size: 1.5rem;
  color: #ffffff;
}

.central-section {
  width: 100%;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-left: 40px;
  box-sizing: border-box;
  background: #ffffff;
  color: #333333;
}

.central-section h2,
.central-section p {
  margin: 0;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
  padding-right: 40px;
}

.advantage-box {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 16px;
  background: #f9fbfc;
  box-sizing: border-box;
}

.advantage-box h4 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  color: #2d7b99;
}

.box-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.box-title svg {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
}

.box-title h4 {
  margin: 0;
}

.advantage-box p {
  margin: 0;
}

.advantage-box p:not(:last-child) {
  margin-bottom: 10px;
}

.content-boxes {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
  padding-right: 40px;
}

@media (max-width: 600px) {
  .content-boxes {
    padding-right: 16px;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
  padding-right: 40px;
}

.service-box {
  display: flex;
  flex-direction: column;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 16px;
  background: #f9fbfc;
  box-sizing: border-box;
}

.service-box h4 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  color: #2d7b99;
}

.service-box p {
  margin: 0 0 12px 0;
  flex-grow: 1;
}

.service-box a {
  align-self: flex-start;
  color: #2d7b99;
  font-weight: bold;
  text-decoration: none;
}

.service-box a:hover {
  text-decoration: underline;
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
    padding-right: 16px;
  }
}

@media (max-width: 992px) {
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .advantages-grid {
    grid-template-columns: 1fr;
    padding-right: 16px;
  }
}

.cta-section {
  margin-top: 24px;
  padding: 24px 40px 24px 0;
}

.cta-button {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: bold;
  color: #ffffff;
  background: #2d7b99;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.cta-button:hover {
  background: #24647c;
}

@media (max-width: 600px) {
  .cta-section {
    padding-right: 16px;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
  margin-top: 16px;
  padding: 24px;
  background: #f9fbfc;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #222;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #2d7b99;
  box-shadow: 0 0 0 3px rgba(45, 123, 153, 0.15);
}

.contact-form button {
  align-self: flex-start;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: bold;
  color: #ffffff;
  background: #2d7b99;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-form button:hover {
  background: #24647c;
}

.footer-section {
  width: 100%;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-left: 40px;
  box-sizing: border-box;
  background: #1f4f7a;
  color: #ffffff;
}

.footer-section h2,
.footer-section p {
  margin: 0;
}

