/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

.logo {
  height: 3rem;
  width: auto;
}

.nav {
  display: none;
}

.nav-link {
  color: #003366;
  text-decoration: none;
  font-weight: 500;
  margin-left: 2rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #00aeef;
}

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

/* Мобильное меню */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 15px;
  cursor: pointer;
  position: relative;
  z-index: 1000;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #000;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Стили для активного состояния бургера */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Адаптивные стили */
@media (max-width: 768px) {
  .mobile-menu-toggle {
      display: block;
  }

  .nav {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: rgba(255, 255, 255, 0.95);
      padding: 80px 20px 20px;
      z-index: 999;
  }

  .nav.active {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
  }

  .nav-link {
      font-size: 24px;
      margin: 15px 0;
      text-align: center;
  }

  /* Фиксируем шапку на мобильных */
  .header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      background: #fff;
      z-index: 1000;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  /* Отступ для контента под фиксированной шапкой */
  section.hero {
    padding-top: 120px;
    min-height: 800px;
}
/* Обновляем отступ для якорных секций на мобильных */
section[id] {
  scroll-margin-top: 70px; /* Должно совпадать с высотой мобильной шапки */
}
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /*background: linear-gradient(to right, rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.7));*/
  background: linear-gradient(to right, rgb(0 34 68 / 90%), rgb(0 19 39 / 70%));
  z-index: 10;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 20;
  text-align: center;
  padding: 0 1rem;
  max-width: 64rem;
  margin: 0 auto;
}

.hero-title {
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .hero-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  background-color: #00aeef;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: white;
}

.feature-icon svg {
  scale: 0.6;
  width: 100%;
  height: 100%;
}

.hero-features a {
  font-size: 1.25rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
}

.hero-btn, a.hero-btn {
  background-color: #00aeef;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 500;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: "Roboto", sans-serif;
  text-decoration: none;
}

.hero-btn:hover, a.hero-btn:hover {
  background-color: rgba(0, 174, 239, 0.9);
}

/* About Section */
.about {
  padding: 4rem 0;
  background-color: #f9fafb;
}

.about-content {
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #003366;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.about-text {
  font-size: 1.125rem;
  color: #374151;
  line-height: 1.8;
}

.about-text p {
  margin-bottom: 1.5rem;
}

/* Products Section */
.products {
  padding: 4rem 0;
}

.products .section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 96rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-card {
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  background: white;
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.card-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #003366;
}

.card-content {
  padding: 1.5rem;
}

.product-image {
  margin-bottom: 1rem;
}

.product-image img {
  width: 100%;
  height: 28rem;
  object-fit: cover;
  border-radius: 0.5rem;
  margin: 0;
}

.product-features {
  font-size: 0.875rem;
  color: #374151;
  margin-bottom: 1rem;
  list-style: none;
}

.product-features li {
  margin-bottom: 0.5rem;
}

.product-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-outline, a.btn-outline {
  color: #00aeef;
  border: 1px solid #00aeef;
  background: transparent;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-outline:hover, a.btn-outline:hover {
  background-color: #00aeef;
  color: white;
}

/* Battery Section */
.batteries {
  padding: 4rem 0;
  background-color: #f9fafb;
}

.batteries .section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.batteries-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 96rem;
  margin: 0 auto;
}
.metrology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* Если элемент один, растягиваем его на всю ширину */
.metrology-grid:has(:only-child) {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .batteries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.battery-card {
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  background: white;
}

.card-header-center {
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.card-header-center .card-title {
  font-size: 1.125rem;
}

.battery-image {
  margin-bottom: 1rem;
}

.battery-image img {
  width: 100%;
  height: 17rem;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.battery-description {
  font-size: 0.875rem;
  color: #374151;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.btn-outline-full {
  color: #00aeef;
  border: 1px solid #00aeef;
  background: transparent;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-outline-full:hover {
  background-color: #00aeef;
  color: white;
}

/* Metrology Section */
.metrology {
  padding: 4rem 0;
}

.metrology .section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.metrology-card {
  max-width: 96rem;
  margin: 0 auto;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  background: white;
}

.metrology-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #003366;
  font-family: "Montserrat", sans-serif;
}

.metrology-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .metrology-images {
    grid-template-columns: repeat(2, 1fr);
  }
}

.metrology-images img {
  width: 100%;
  height: 16rem;
  object-fit: contain;
  border-radius: 0.5rem;
}

.metrology-content {
  color: #374151;
}

.metrology-content p {
  margin-bottom: 1rem;
}

.advantages-title {
  font-weight: 700;
  color: #003366;
  margin-bottom: 0.5rem;
}

.advantages-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.advantages-list li {
  margin-bottom: 0.25rem;
}

.metrology-button {
  text-align: center;
}

.btn-primary {
  background-color: #00aeef;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: "Roboto", sans-serif;
}

.btn-primary:hover {
  background-color: rgba(0, 174, 239, 0.9);
}

/* Partners Section */
.partners {
  padding: 4rem 0;
  background-color: #f9fafb;
}

.partners-header {
  text-align: center;
  margin-bottom: 3rem;
}

.partners-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  font-family: "Roboto", sans-serif;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: center;
  justify-items: center;
}

@media (min-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .partners-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.partner-logo {
  width: 8rem;
  height: 5rem;
  background-color: #e5e7eb;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo img {
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.partner-logo:hover img {
  opacity: 1;
}

/* Contact Form Section */
.contact-form {
  padding: 4rem 0;
}

.form-wrapper {
  max-width: 32rem;
  margin: 0 auto;
}

.form-wrapper .section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.form-card {
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 2rem;
  background: white;
}

.contact-form-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

section.page {
  padding: 4rem 0;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label,#form-card-cf7 label {
  color: #003366;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

span.wpcf7-form-control.wpcf7-checkbox.wpcf7-validates-as-required.hidden {
  display: none;
}

.checkbox-container input {
  margin-right: 10px;
}

.checkbox-container a {
  color: #003366;
}

.form-input {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #00aeef;
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.1);
}

.form-textarea {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
  min-height: 7.5rem;
  resize: vertical;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-textarea:focus {
  outline: none;
  border-color: #00aeef;
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.1);
}

.form-submit,#form-card-cf7 input[type="submit"] {
  width: 100%;
  background-color: #00aeef;
  color: white;
  border: none;
  padding: 0.75rem;
  font-size: 1.125rem;
  font-weight: 500;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: "Roboto", sans-serif;
}

.form-submit:hover,#form-card-cf7 input[type="submit"]:hover {
  background-color: rgba(0, 174, 239, 0.9);
}

/* Contacts Section */
.contacts {
  padding: 4rem 0;
  background-color: #003366;
  color: white;
}

.section-title-white {
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .section-title-white {
    font-size: 2.5rem;
  }
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .contacts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-item {
  text-align: center;
}

.contact-icon {
  width: 4rem;
  height: 4rem;
  background-color: #00aeef;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
}

.contact-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-info {
  font-family: "Roboto", sans-serif;
  margin-bottom: 0.25rem;
}

.contact-info a {
  color: white;
  text-decoration: none;
}

/* Footer */
.footer {
  background-color: #111827;
  color: white;
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-logo-img {
  height: 2rem;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-text {
  text-align: center;
}

@media (min-width: 768px) {
  .footer-text {
    text-align: right;
  }
}

.footer-text p {
  font-family: "Roboto", sans-serif;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
}


/* Стилизация формы Contact Form 7 */
#form-card-cf7 {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  width: 100%;
}

#form-card-cf7 .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Стили для полей ввода */
#form-card-cf7 input[type="text"],
#form-card-cf7 input[type="email"],
#form-card-cf7 input[type="tel"],
#form-card-cf7 textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 0.3s ease;
}

/* Фокус на полях ввода */
#form-card-cf7 input:focus,
#form-card-cf7 textarea:focus {
  border-color: #007BFF;
  outline: none;
}

/* Стили для текстового поля */
#form-card-cf7 textarea {
  max-height: 120px;
  resize: vertical;
}


/* Убираем стандартные стили CF7 */
#form-card-cf7 .wpcf7-not-valid-tip {
  color: #dc3545;
  font-size: 14px;
  margin-top: 4px;
}

#form-card-cf7 .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid transparent;
}


/* Адаптивность */
@media (max-width: 768px) {
  #form-card-cf7 {
      padding: 15px 15px;
  }
  
  #form-card-cf7 input[type="submit"] {
      width: 100%;
  }

  .hero-content .hero-btn {
    margin-bottom: 20px;
}

}

@media (max-width: 360px) {
.section-title {
  font-size: 1.5rem;
}
}

/* Убираем стандартные отступы CF7 */
#form-card-cf7 .wpcf7-form p {
  margin: 0;
}

/* Стили для сообщений об ошибках */
#form-card-cf7 .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 12px;
  border-radius: 8px;
}

#form-card-cf7 .wpcf7-validation-errors {
  background: #fff3cd;
  border-color: #ffeeba;
  color: #856404;
}

#form-card-cf7 .wpcf7-mail-sent-ok {
  background: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.wpcf7-spinner {
  display: none;
}