/********** Template CSS **********/
:root {
  --primary: #1E90FF;
  --light: #d4e8ff;
  --dark: #39659e;
  --primary-bg: #EAF6FA;
  --accent: #1E90FF;
  --dark-blue: #0B2545;
  --turquoise-blue: #4BA3C3;
  --almost-white: #F5F9FC;
  --gray-blue: #8DA7BE;
  --text-color: #333333;
}

.fw-medium {
  font-weight: 500 !important;
}

.fw-semi-bold {
  font-weight: 600 !important;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 45px;
  bottom: 45px;
  z-index: 99;
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/*** Button ***/
.btn {
  font-weight: 500;
  text-transform: uppercase;
  transition: 0.5s;
}

.btn.btn-primary,
.btn.btn-secondary {
  color: #ffffff;
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
  border-radius: 2px;
}

/*** Navbar ***/
.navbar-dark .navbar-nav .nav-link {
  margin-right: 30px;
  padding: 25px 0;
  color: #ffffff;
  font-size: 15px;
  text-transform: uppercase;
  outline: none;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--primary);
}

@media (max-width: 991.98px) {
  .navbar-dark .navbar-nav .nav-link {
    margin-right: 0;
    padding: 10px 0;
  }
}

/*** Header ***/
.carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.image_main {
  height: 800px;
  object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
  width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
}

@media (max-width: 768px) {
  #header-carousel .carousel-item {
    position: relative;
    min-height: 450px;
  }

  #header-carousel .carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.page-header {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.page-header-inner {
  background: rgba(15, 23, 43, 0.7);
}

.breadcrumb-item+.breadcrumb-item::before {
  color: var(--light);
}

.booking {
  position: relative;
  margin-top: -100px !important;
  z-index: 1;
}
/* Google Fonts - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

@media (max-width: 700px) {
  .cookie-wrapper {
    width: 100%;
  }
}

.cookie-wrapper {
  position: fixed;
  bottom: 0px;
  right: 0;
  width: 40%;
  background: #fff;
  padding: 15px 25px 22px;
  transition: right 0.3s ease;
  box-shadow: 0 5px 10px rgb(0, 0, 0);
  z-index: 999;

  @media (max-width: 600px) {
    width: 100%;
  }
}

.cookie-wrapper .show {
  right: 20px;
}

.hidden {
  display: none;
}

header i {
  color: #1E90FF;
  font-size: 32px;
  text-align: center;
}

header h2 {
  color: #1E90FF;
  font-weight: 500;
  text-align: center;
}

.data {
  text-align: center;
}

.data p a {
  color: #1E90FF;
  text-decoration: none;
  text-align: center !important;
}

.data p a:hover {
  text-decoration: underline;
}

.buttons {
  padding: 20px 0px;
  text-align: center;
}

.buttons .cookie-button {
  border: 2px solid #1E90FF;
  color: #fff;
  padding: 8px 0;
  background: #1E90FF;
  cursor: pointer;
  width: calc(100% / 2 - 10px);
  transition: all 0.5s ease;
  max-width: 150px;
  border-radius: 0;
}

.buttons #acceptBtn:hover {
  background-color: transparent;
  color: #1E90FF;
}

#declineBtn {
  background-color: #fff;
  color: #1E90FF;
}

#declineBtn:hover {
  background-color: #1E90FF;
  color: #fff;
}

/* Footer Style */
.topics {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.topic_item {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
}

.topic_item .card-text {
  color: #e5e5e5;
}

.topic__img {
  max-width: 181px;
  min-height: 181px;
  object-fit: cover;
}

.topic__name {
  font-size: 18px;
  color: #fff;
}

.topic__descr {
  max-width: 287px;
}

.topic__right {
  height: 911px;
}

@media (max-width: 1020px) {
  .topic__right {
    width: 100%;
    object-fit: cover;
  }
}


/* Footer Styles */
.footer {
  background-color: var(--dark-blue);
  color: white;
  position: relative;
  overflow: hidden;
  padding-bottom: 30px;
}

.footer-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%23F5F9FC"/></svg>');
  background-size: cover;
}

.footer-logo {
  font-family: 'Oswald', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: inline-block;
  position: relative;
  transition: all 0.3s ease;
}

.footer-logo:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

.footer-logo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.footer-logo:hover::after {
  width: 100%;
}

.footer-hr {
  width: 50px;
  height: 3px;
  background-color: var(--accent);
  opacity: 1;
  margin-bottom: 20px;
  border: none;
  transition: all 0.3s ease;
}

.btn-link {
  color: white;
  text-decoration: none;
  padding: 5px 0;
  margin-bottom: 5px;
  display: inline-block;
  position: relative;
  transition: all 0.3s ease;
  text-align: left;
}

.btn-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.btn-link:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.btn-link:hover::after {
  width: 100%;
}

.footer p {
  opacity: 0.9;
  line-height: 1.7;
}

.footer i {
  color: var(--accent);
  transition: all 0.3s ease;
}

.footer p:hover i {
  transform: scale(1.2);
}

.footer-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></svg>');
  background-size: 20px 20px;
  opacity: 0.2;
  z-index: 1;
}

.footer-content {
  position: relative;
  z-index: 2;
}

.footer-social {
  display: flex;
  margin-top: 20px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--accent);
  transform: translateY(-3px);
  color: white;
}

.copyright {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-shape {
  position: absolute;
  z-index: 0;
  opacity: 0.03;
}

.shape-1 {
  bottom: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background-color: var(--accent);
  border-radius: 50%;
}

.shape-2 {
  top: 50%;
  left: -50px;
  width: 150px;
  height: 150px;
  background-color: white;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

@media (max-width: 992px) {
  .footer-logo {
      font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .footer-logo {
      margin-bottom: 15px;
  }
  .btn-link {
      font-size: 0.9rem;
  }
  .footer-hr {
      margin-left: auto;
      margin-right: auto;
  }
}
/* new styles  */

/* Загальні стилі */
body {
  color: var(--text-color);
  background-color: var(--almost-white);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--dark-blue);
  font-weight: 600;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--dark);
}

.btn {
  border-radius: 30px;
  padding: 0.75rem 1.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--dark);
  border-color: var(--dark);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--primary);
  margin-top: 15px;
}

.section-title.text-center::after {
  margin-left: auto;
  margin-right: auto;
}

.card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Стилі для блоку 1: Hero Section */
.hero-section {
  padding: 8rem 0;
  background-color: var(--primary-bg);
  position: relative;
  overflow: hidden;
}

.hero-section::before, 
.hero-section::after {
  content: '';
  position: absolute;
  background-color: var(--light);
  opacity: 0.4;
  border-radius: 50%;
  z-index: 0;
}

.hero-section::before {
  width: 300px;
  height: 300px;
  top: -100px;
  left: -100px;
}

.hero-section::after {
  width: 400px;
  height: 400px;
  bottom: -200px;
  right: -150px;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--dark-blue);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--gray-blue);
  margin-bottom: 2rem;
}

.hero-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.hero-image img {
  border-radius: 12px;
  transition: transform 0.5s ease;
}

.hero-image:hover img {
  transform: scale(1.02);
}
.card-body {
  padding: 10px;
}
/* Стилі для блоку Переваги розумного дому */
.advantage-card {
  padding: 2rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  height: 100%;
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.advantage-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

/* Стилі для блоку Статистика */
.stat-item {
  position: relative;
  padding: 2rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background-color: var(--primary-bg);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  color: var(--text-color);
  font-size: 1.1rem;
}

/* Стилі для блоку Критерії вибору */
.criteria-item {
  border-left: 3px solid var(--primary);
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.criteria-title {
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 0.5rem;
}
/* Стилі для блоку Про проект */
.mission-card {
  background-color: var(--almost-white);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.mission-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mission-content {
  padding: 2.5rem;
}

/* Стилі для блоку Наші особливості */
.feature-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.feature-item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-icon {
  color: var(--primary);
  margin-right: 1rem;
  flex-shrink: 0;
}

/* Стилі для блоку Чому наші гаджети */
.benefit-section {
  background: linear-gradient(to right, var(--primary-bg), var(--almost-white));
  border-radius: 15px;
}

.benefit-paragraph {
  margin-bottom: 1.5rem;
}

.benefit-list {
  list-style: none;
  padding-left: 0;
  margin-top: 2rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.benefit-check {
  color: var(--primary);
  margin-right: 1rem;
  flex-shrink: 0;
}
/* Стилі для блоку Категорії пристроїв */
.category-card {
  padding: 2rem;
  border-radius: 10px;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.category-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Стилі для блоку Топ-гаджети */
.gadget-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.gadget-img {
  height: 100%;
  object-fit: cover;
}

.gadget-content {
  padding: 2rem;
}

.gadget-features {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.gadget-feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.gadget-feature-icon {
  color: var(--primary);
  margin-right: 0.75rem;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.gadget-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
}

/* Стилі для блоку Основні протоколи */
.protocol-item {
  margin-bottom: 1.5rem;
}

.protocol-title {
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.protocol-title-icon {
  margin-right: 0.75rem;
  color: var(--primary);
}

/* Стилі для блоку Майбутнє розумного дому */
.future-card {
  border-radius: 12px;
  background-color: white;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.future-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
/* Стилі для блоку Контактна інформація */
.contact-info-section {
  background-color: var(--primary-bg);
}

.contact-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-details {
  padding: 2.5rem;
}

.contact-map {
  height: 100%;
  min-height: 300px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0 0 12px 12px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-icon {
  color: var(--primary);
  margin-right: 1rem;
  flex-shrink: 0;
}

.contact-text {
  flex-grow: 1;
}

.hours-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hours-item:last-child {
  border-bottom: none;
}

/* Стилі для блоку Форма заявки */
.form-section {
  background-color: white;
}

.form-card {
  background-color: white;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-control {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(30, 144, 255, 0.25);
  border-color: var(--primary);
}

.form-text {
  font-size: 0.875rem;
  color: #6c757d;
}

.was-validated .form-control:invalid {
  border-color: #dc3545;
}

.was-validated .form-control:valid {
  border-color: #198754;
}

.invalid-feedback {
  display: none;
  color: #dc3545;
  font-size: 0.875rem;
}

.was-validated .form-control:invalid ~ .invalid-feedback {
  display: block;
}
