/* Add your custom styles here */


/* Adds a bit of spacing to "Responsive Grid Row" blocks. */
.crx-grid {
  padding-top: 40px;
  padding-bottom: 40px;
}
.crx-grid .crx-grid {
  padding-top: 0;
  padding-bottom: 0;
}

/* Hero: sizing, layout, typed */

.section-intro.hero-block-fix {
  padding-top: 60px;
  padding-bottom: 0;
}

.section-intro1 .img-mod-1 {
  position: absolute;
  right: 0;
  top: 40px;
  transform: none;
  height: 100%;
  width: auto;
  max-height: 100%;
}

.section-intro h1 {
  line-height: 1.2;
  min-height: 3.6em; /* increase area ~1.5x for two lines */
}

.section-intro h1 #heroTyped {
  display: inline;
}

.section-intro h1 .typed-cursor {
  display: inline;
  vertical-align: baseline;
  line-height: inherit;
}

/* Language Switcher */
.language-switcher {
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 1000;
}

.language-switcher .dropdown-menu {
  min-width: 120px;
}

/* Contact Form */
.contact-form-block {
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-form-block h3 {
  color: #333;
  margin-bottom: 1.5rem;
}

.contact-form .form-label {
  font-weight: 600;
  color: #495057;
}

.contact-form .btn-primary {
  padding: 0.75rem 2rem;
  font-weight: 600;
}

/* Service Page */
.service-description,
.service-price-info {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.service-description h2,
.service-price-info h2 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .language-switcher {
    position: static;
    margin: 10px 0;
  }
  
  .contact-form-block {
    padding: 1rem;
  }
}

/* Anchor offset for sticky header */
a[id] {
  scroll-margin-top: 100px;
}

/* Extend preloader char animation count beyond 7 */
.preloader-text span:nth-child(8) {
  filter: blur(0px);
  animation: phantom 1s 1.4s infinite linear alternate;
}
.preloader-text span:nth-child(9) {
  filter: blur(0px);
  animation: phantom 1s 1.6s infinite linear alternate;
}
.preloader-text span:nth-child(10) {
  filter: blur(0px);
  animation: phantom 1s 1.8s infinite linear alternate;
}

/*
 * Кастомные стили для Hero-блока на мобильных устройствах
 */
 @media (max-width: 991.98px) {
  .hero-image-col {
    /* 1. Поднимаем блок с картинкой наверх */
    margin-top: -200px; /* <-- Можете подобрать значение, которое вам нравится (например, -150px или -250px) */

    /* 2. Устанавливаем z-index, чтобы картинка была ПОД текстом */
    z-index: 0;
  }

  .hero-image-col img {
    /* 3. Делаем картинку полупрозрачной */
    opacity: 0.4; /* <-- Можете поиграть со значением от 0.1 до 1 */
  }
}