/* AIKRAN.BY — custom styles */

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.industrial-card {
  box-shadow: 0 4px 0 rgba(26, 43, 75, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.industrial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(26, 43, 75, 0.14);
}

.crane-texture {
  background-image:
    linear-gradient(rgba(26, 43, 75, 0.92), rgba(26, 43, 75, 0.92)),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      rgba(255, 255, 255, 0.02) 8px,
      rgba(255, 255, 255, 0.02) 16px
    );
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(3, 22, 53, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
}

.mobile-menu a:hover {
  color: #ffddb8;
}

.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.burger-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger-btn.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-btn.is-active span:nth-child(2) {
  opacity: 0;
}

.burger-btn.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 767px) {
  .burger-btn {
    display: flex;
  }

  .header-phone {
    display: none;
  }

  header .nav-desktop {
    display: none;
  }
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 22, 53, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #fff;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: 0 8px 0 rgba(26, 43, 75, 0.15);
  transform: translateY(12px);
  transition: transform 0.25s ease;
}

.modal-overlay.is-open .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 2px solid #c5c6cf;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #031635;
}

.modal-close:hover {
  border-color: #031635;
}

.modal h3,
.modal .modal-heading {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #031635;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  padding-right: 2.5rem;
}

.modal .modal-subtitle {
  color: #75777f;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.modal label {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #75777f;
  margin-bottom: 0.5rem;
}

.modal input,
.modal textarea,
.modal select {
  width: 100%;
  border: 2px solid #c5c6cf;
  padding: 0.75rem 1rem;
  font-family: Inter, sans-serif;
  font-size: 16px;
  margin-bottom: 1rem;
  outline: none;
  background: #fff;
}

.modal input:focus,
.modal textarea:focus,
.modal select:focus {
  border-color: #031635;
}

.modal button[type="submit"] {
  width: 100%;
  background: #fea619;
  color: #684000;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1.25rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal button[type="submit"]:hover {
  background: #ffddb8;
}

.modal button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: wait;
}

.form-message {
  display: none;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  border: 2px solid;
}

.form-message.is-success {
  display: block;
  background: #e8f5e9;
  border-color: #2e7d32;
  color: #1b5e20;
}

.form-message.is-error {
  display: block;
  background: #ffdad6;
  border-color: #ba1a1a;
  color: #93000a;
}

body.modal-open {
  overflow: hidden;
}

/* Gallery images */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Star rating in review modal */
.star-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.star-rating button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #c5c6cf;
}

.star-rating button.is-active,
.star-rating button.is-hover {
  color: #fea619;
}

.star-rating .material-symbols-outlined {
  font-size: 2rem;
  font-variation-settings: "FILL" 1;
}

/* Trust strip — на всю ширину контейнера, как у блоков ниже */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  gap: 1rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  min-width: 0;
}

.trust-item .material-symbols-outlined {
  color: #fea619;
  font-size: 1.75rem;
  flex-shrink: 0;
}

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

@media (max-width: 480px) {
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-item {
    justify-content: flex-start;
    text-align: left;
  }
}

/* Reviews carousel */
.reviews-carousel {
  position: relative;
}

.reviews-viewport {
  overflow: hidden;
  width: 100%;
}

.reviews-track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s ease;
  will-change: transform;
}

.reviews-track .review-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: auto;
  margin: 0;
}

.reviews-track .review-card p.review-text {
  flex: 1;
}

.reviews-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.reviews-btn {
  width: 48px;
  height: 48px;
  border: 2px solid #031635;
  background: #fff;
  color: #031635;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.reviews-btn:hover {
  background: #031635;
  color: #fff;
}

.reviews-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.reviews-btn:disabled:hover {
  background: #fff;
  color: #031635;
}

.reviews-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.reviews-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: #c5c6cf;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.reviews-dots button.is-active {
  background: #fea619;
  transform: scale(1.25);
}

@media (max-width: 1023px) {
  .reviews-track .review-card {
    flex: 0 0 calc((100% - 24px) / 2);
  }
}

@media (max-width: 639px) {
  .reviews-track {
    gap: 16px;
  }

  .reviews-track .review-card {
    flex: 0 0 100%;
  }
}


/* Mobile refinements */
@media (max-width: 767px) {
  .modal {
    padding: 1.5rem;
  }

  section.py-24 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .fleet-card-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .about-offset-badge {
    display: none !important;
  }

  footer {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .hero-ctas a {
    width: 100%;
  }
}
