

/* Body ------------------------------------- */
body {
  background: #ffffff;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  position: relative;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

.post-masonry img {
  width: 100%;
  display: block;
}

/* Typography ------------------------------------- */
h1, h2, h3, h4, h5 {
  font-weight: bold;
}

h1 {
  font-size: 62px;
  line-height: 72px;
}

h2 {
  color: #323232;
  font-size: 26px;
  line-height: 42px;
  letter-spacing: 1px;
  padding-bottom: 12px;
}

h3 {
  color: #ffa400;
  font-size: 16px;
  letter-spacing: 2px; /* фикс лишнего значения */
}

h5 {
  color: #ffa400;
  line-height: 28px;
  letter-spacing: 2px;
}

p {
  font-size: 16px;
  letter-spacing: 0.9px;
  line-height: 32px;
}

/* All Section styles ------------------------------------- */
#testimonial, #blog, #counter, #contact {
  padding-top: 120px;
  padding-bottom: 120px;
}

#about h3 {
  padding-bottom: 12px;
}

/* Параллакс-секции: корректная отрисовка на мобилках */
.parallax-section {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* На десктопе можно фиксированный параллакс */
@media (min-width: 992px) {
  .parallax-section {
    background-attachment: fixed !important;
  }
}

/* На мобильных убираем fixed (исправляет “кусок окна”) */
@media (max-width: 991px) {
  .parallax-section {
    background-attachment: scroll !important;
  }
}

/* navigation styles ========================================== */
.navbar-default {
  background: #fff;
  border: none;
  box-shadow: 0px 2px 8px 0px rgba(50, 50, 50, 0.04);
  margin: 0 !important;
}
.navbar-default .navbar-brand {
  font-size: 20px;
  font-weight: bold;
  margin: 0;
}
.navbar-default li {
  margin: 15px 20px;
}
.navbar-default .navbar-nav li a {
  color: #303030;
  font-size: 12px;
  font-weight: bold;
  padding: 0px;
}
.navbar-default .navbar-nav li a:hover {
  color: #ffa400;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  color: #303030;
  background-color: transparent;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  color: #ffa400;
  background-color: transparent;
}
.navbar-default .navbar-toggle {
  border: none;
  padding-top: 12px;
}
.navbar-default .navbar-toggle .icon-bar {
  background: #ffa400;
  border-color: transparent;
}
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus { 
  background-color: transparent;
}

/* home section styles ========================================== */
#home {
  /* важное: не используем repeat-y + фикс на мобилках */
  background: url('../images/home-bg.jpg') center center no-repeat;
  background-size: cover;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  min-height: 100vh; /* было height:100vh — оставим min-height для гибкости */
  text-align: center;
  position: relative;
}

/* Опционально лёгкое затемнение, чтобы текст читался на любом фоне */
/*
#home::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,.25);
}
#home > .container { position: relative; z-index: 1; }
*/

#home h1, #home h3 { color: #ffffff; }
#home .btn-danger {
  background: #ffa400 !important;
  margin-right: 20px;
}
#home .btn-danger:hover {
  background: #ffc400 !important;
}
#home .btn {
  background: #000000;
  border-color: transparent;
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  padding: 14px 52px;
  margin-top: 40px;
  transition: all 0.4s ease-in-out;
}
#home .btn:hover {
  background: #ffa400;
}

/* testimonial section styles ========================================== */
#testimonial .item {
  text-align: center;
  display: block;
  width: 100%;
  padding-bottom: 62px;
}
#testimonial .item img {
  display: inline-block;
}

/* about section styles ========================================== */
#about .container {
  width: 100%;
  padding: 0px;
  margin: 0px;
}
#about .col-md-6 {
  padding: 0;
}
#about .about-des {
  padding: 65px;
}
#about .about-des h3 {
  font-size: 26px;
}
#about .about-des h4 {
  font-size: 20px;
}
#about .about-des p {
  font-size: 16px;
  line-height: 32px;
}

/* blog section styles ========================================== */
#blog h2, #blog h4 {
  text-align: center;
}
#blog h2 {
  padding-bottom: 12px;
  font-size: 32px;
}
#blog h4 {
  padding-bottom: 32px;
  letter-spacing: 0.9px;
}
#blog p {
  padding-top: 10px;
  font-size: 14px;
  line-height: 28px;
}
#blog .blog-wrapper {
  background: #ffffff;
  border: 1px solid #f0f0f0;
  padding: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
}
#blog .blog-wrapper h3 a {
  color: #000000;
}

/* Counter section styles ========================================== */
#counter {
  background: url('../images/counter-bg.jpg') center center no-repeat;
  background-size: cover;
  text-align: center;
  padding-top: 160px;
  padding-bottom: 160px;
}
#counter .counter-number {
  color: #ffa400;
  font-size: 32px;
}
#counter .counter-text {
  color: #ffffff;
  letter-spacing: 2px;
}

/* contact section styles ========================================== */
#contact {
  background: url('../images/contact-bg.jpg') center center no-repeat;
  background-size: cover;
}
#contact .form-control {
  background: transparent;
  border-color: #ffffff;
  color: #ffffff;
  border-radius: 0px;
  box-shadow: none;
  margin-bottom: 22px;
  transition: all 0.4s ease-in-out;
  padding: 10px;
  height: auto;
}
#contact input[type="submit"] {
  background: #000000;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  letter-spacing: 1px;
  height: 50px;
  margin-top: 10px;
}
#contact input[type="submit"]:hover {
  background: #ffa400;
}
.form-control::-moz-placeholder { color: #ffffff; opacity: 1; }
.form-control:-ms-input-placeholder { color: #ffffff; }
.form-control::-webkit-input-placeholder { color: #ffffff; }
#contact .contact-detail {
  background: rgba(250,250,250,0.75);
  padding: 34px 10px 34px 60px;
}
#contact .contact-detail h2 {
  padding-bottom: 28px;
}
#contact .contact-detail div {
  padding-bottom: 10px;
}

/* footer section styles ========================================== */
footer {
  padding-top: 80px;
  padding-bottom: 50px;
}
footer p {
  padding-right: 40px;
  padding-bottom: 20px;
  font-size: 14px;
}
footer a {
  color: #606060;
}
footer a:hover {
  color: #ffa400;
  text-decoration: none;
}
.link-list a {
  color: #606060;
  display: block;
  padding-top: 4px;
  padding-bottom: 4px;
}
.social-icon {
  padding: 0;
  margin: 0;
}
.social-icon li {
  list-style: none;
  display: inline-block;
}
.social-icon li a {
  background: #3c3c3c;
  border-radius: 100%;
  color: #ffffff;
  font-size: 18px;
  line-height: 32px;
  width: 32px;
  height: 32px;
  text-align: center;
  text-decoration: none;
  transition: all 0.4s ease-in-out;
  margin-right: 2px;
}
.social-icon li a:hover {
  background: #ffa400;
}

/* Уточнения для About на больших планшетах */
@media (max-width: 1280px) {
  #about .about-des {
    padding: 40px;
  }
  #about .about-des h3 {
    font-size: 20px;
  }
  #about .about-des h4 {
    font-size: 16px;
  }
  #about .about-des p {
    font-size: 13px;
    line-height: 24px;
  }
}

/* mobile responsive section styles ========================================== */
@media (max-width: 768px) {
  h1 {
    font-size: 42px;
    line-height: 52px;
  }
  #counter .counter-item {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

@media (max-width: 650px) {
  h1 {
    font-size: 36px;
    line-height: 44px;
  }
}

@media (max-width: 450px) {
  h1 {
    font-size: 28px;
    line-height: 38px;
  }
  #home h5 {
    font-size: 11px;
  }
  #home .btn {
    display: inline-block;
    padding: 14px 32px;
  }
}

@media (max-width: 375px) {
  h1 {
    font-size: 24px;
    line-height: 34px;
  }
  #home h5 {
    font-size: 9px;
  }
}

/* --- Новый подход к главной секции --- */

.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 16px;
  color: #fff;
}

.hero-content h1 {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-content h3 {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Фиксация шапки + адаптация */
.mobile-header {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 1000;
}

/* Иконки с отступами */
.main-navigation li a i {
  font-size: 18px;
  margin: 0 6px;
  color: #333;
  transition: color 0.3s;
}

.main-navigation li a i:hover {
  color: #007BFF;
}

/* Чтоб не скрывалась контентом */
body {
  padding-top: 60px;
}

/* Для мобильной версии */
@media (max-width: 768px) {
  .main-navigation li a i {
    font-size: 20px;
  }
}

.header-icons a {
  color: #303030;
  font-size: 18px;
  padding: 4px;
  transition: color 0.3s;
}

.header-icons a:hover {
  color: #ffa400;
}

.navbar-toggle {
  margin-left: 12px;
}

form .form-control {
  margin-bottom: 20px;
  border-radius: 4px;
  box-shadow: none;
}

form .btn {
  padding: 12px 24px;
  font-weight: bold;
  transition: background 0.3s ease;
}

form .btn:hover {
  background: #ffa400;
  color: #fff;
}

form .form-control {
  margin-bottom: 20px;
  border-radius: 4px;
  box-shadow: none;
}

form .btn {
  padding: 12px 24px;
  font-weight: bold;
  transition: background 0.3s ease;
}

form .btn:hover {
  background: #ffa400;
  color: #fff;
}

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


/* Скрываем пустой блок сообщений */
#resultMessage {
  display: none;
  margin-top: 16px;
  padding: 12px;
  border-radius: 6px;
  font-weight: 600;
}
#resultMessage.success {
  display: block;
  background-color: #dff0d8;
  color: #2e7d32;
}
#resultMessage.error {
  display: block;
  background-color: #f2dede;
  color: #b71c1c;
}

/* Хонипот: невидимо для людей, "видимо" для ботов */
.hp-wrapper {
  position: absolute !important;
  left: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

#resultMessage {
  margin-top: 16px;
  padding: 12px;
  font-weight: 600;
  border-radius: 6px;
  display: none;
}
#resultMessage.success {
  display: block;
  background: #dff0d8;
  color: #2e7d32;
}
#resultMessage.error {
  display: block;
  background: #f2dede;
  color: #b71c1c;
}

#contact .contact-card {
  background: #0f172a;             /* тёмная «карточка» */
  color: #e5e7eb;
  border: 1px solid #1f2937;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

#contact .contact-title {
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

#contact .contact-item + .contact-item {
  margin-top: 16px;
}

#contact .contact-subtitle {
  margin: 0 0 6px;
  color: #93c5fd;
  font-weight: 600;
}

#contact .contact-text {
  margin: 0;
}

#contact .contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#contact .contact-list li {
  margin: 6px 0;
}

#contact .contact-list a {
  color: #60a5fa;
  text-decoration: none;
}

#contact .contact-list a:hover {
  text-decoration: underline;
}

#contact .contact-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

@media (max-width: 576px) {
  #contact .contact-actions {
    flex-direction: column;
  }
}

#services { padding-top: 80px; }
