/********** Template CSS **********/
:root {
  --primary-bg: #e6f8e6;
  --accent-primary: #37d476;
  --accent-dark: #318c42;
  --accent-light: #e8f8e6;
  --text-primary: #2B2B2B;
  --text-secondary: #474a6c;
  --primary: var(--accent-primary);
  --light: #9291d0;
  --dark: #111a24;
  --border-radius: 16px;
  --box-shadow: 0 10px 25px rgba(55, 58, 212, 0.08);
  --transition: all 0.3s ease;
}

body {
  background-color: var(--primary-bg);
  color: var(--text-primary);
}

.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 {
  background-color: rgba(43, 43, 43, 0.85) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
}

.bg-dark {
  background-color: rgba(43, 43, 43, 0.85) !important;
}

.navbar-dark .navbar-nav .nav-link {
  margin-right: 30px;
  padding: 25px 0;
  color: #ffffff;
  font-size: 15px;
  text-transform: uppercase;
  outline: none;
  position: relative;
  transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 20px;
  left: 0;
  background-color: var(--accent-primary);
  transition: width 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
  width: 100%;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--accent-primary);
}

.navbar-brand {
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-brand .logo-text {
  color: #fff;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  padding: 5px 10px;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.navbar-brand:hover .logo-text {
  border-color: var(--accent-primary);
}

.navbar-brand div {
  position: relative;
  padding: 5px 10px;
}

.navbar-brand div::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid var(--primary);
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.navbar-brand:hover div::before {
  opacity: 1;
}

.logo-text {
  color: #fff;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  padding: 5px 10px;
}

.logo-text::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid var(--primary);
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.navbar-brand:hover .logo-text::after {
  opacity: 1;
}

@media (max-width: 991.98px) {
  .navbar-dark .navbar-nav .nav-link {
    margin-right: 0;
    padding: 10px 0;
  }
  
  .navbar-dark .navbar-nav .nav-link::after {
    bottom: 5px;
  }
}


/*** Page Header ***/
.page-header {
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url('../img/hero-section-bg-2.webp') center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}
/*** Contact Page ***/
.contact-item-box {
    background: #FFFFFF;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all .3s;
}

.contact-item-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.contact-item-box i {
    transition: all .3s;
}

.contact-item-box:hover i {
    transform: scale(1.2);
    color: var(--accent-dark) !important;
}

.contact-form {
    background-color: var(--primary-bg);
}

/* 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: var(--primary-bg);
  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: var(--accent-primary);
  font-size: 32px;
  text-align: center;
}
header h2 {
  color: var(--accent-primary);
  font-weight: 500;
  text-align: center;
}
.data {
  text-align: center;
}
.data p {
  color: var(--text-primary);
}
.data p a {
  color: var(--accent-dark);
  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 var(--accent-primary);
  color: #fff;
  padding: 8px 0;
  background: var(--accent-primary);
  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: var(--accent-primary);
}
.buttons #declineBtn {
  border: 2px solid #ccc;
  background: #ccc;
  color: #333;
}
.buttons #declineBtn:hover {
  background-color: #b3b3b3;
  border-color: #b3b3b3;
  color: #fff;
}
/* footer  */
/* Стилі для футера */
.footer-section {
  background-color: var(--text-primary);
  color: var(--primary-bg);
  padding: 80px 0 30px;
  position: relative;
}
.footer-logo {
  color: var(--primary-bg);
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 20px;
}
.footer-logo:hover {
  color: var(--accent-primary);
}
.footer-title {
  color: var(--accent-primary);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-light);
}

.footer-contact-item {
  color: var(--primary-bg);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.footer-contact-item:hover {
  color: var(--accent-light);
}

.footer-contact-icon {
  margin-right: 10px;
  color: var(--accent-primary);
}

.footer-link {
  color: var(--primary-bg);
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
  position: relative;
  transition: all 0.3s ease;
}

.footer-link::before {
  content: '\e5cc'; /* material icon for chevron_right */
  font-family: 'Material Icons';
  margin-right: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-link:hover {
  color: var(--accent-light);
  padding-left: 15px;
}

.footer-link:hover::before {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid var(--text-secondary);
  padding-top: 20px;
  margin-top: 40px;
  text-align: center;
  color: var(--text-secondary);
}

/* Адаптивні стилі */
@media (max-width: 991.98px) {
  .footer-section {
    padding: 60px 0 20px;
  }
  .footer-logo {
    font-size: 28px;
  }
  .footer-title {
    font-size: 16px;
  }
}
@media (max-width: 767.98px) {
  .footer-section {
    padding: 40px 0 20px;
  }
  .footer-logo {
    font-size: 24px;
  }
  .footer-title {
    margin-top: 30px;
  }
  .footer-contact-item,
  .footer-link {
    font-size: 14px;
  }
}
/* new styles  */
/* Загальні повторно використовувані класи */
.section-padding {
  padding: 6rem 0;
}

.section-title {
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.section-subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 400;
}

.btn-primary-custom {
  background-color: var(--accent-primary);
  color: white;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-primary-custom:hover {
  background-color: var(--accent-dark);
  box-shadow: var(--box-shadow);
  transform: translateY(-3px);
  color: white;
}

.text-accent {
  color: var(--accent-primary);
}

/* Стилі для головного екрану */
.hero-section {
  position: relative;
  min-height: 85vh;
  background-color: var(--primary-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-image {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1;
}

@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-padding {
    padding: 4rem 0;
  }
  
  .hero-content {
    padding: 0 1rem;
  }
}
/* Стилі для блоків "Що таке ремонт під ключ", "Етапи ремонту", "Популярні типи" та "Переваги" */
.section {
  padding: 5rem 0;
}

.section-light {
  background-color: var(--primary-bg);
}

.section-dark {
  background-color: var(--light);
  color: white;
}

.section-img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  max-width: 100%;
  height: auto;
}

.step-card {
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  background-color: white;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  
}

.step-card:hover {
  transform: translateY(-5px);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  color: white;
  font-weight: bold;
  margin-bottom: 1rem;
}

.gallery-img {
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.gallery-img:hover {
  transform: scale(1.03);
  box-shadow: var(--box-shadow);
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.benefit-icon {
  color: var(--accent-primary);
  margin-right: 1rem;
  font-size: 2rem;
}
/* Додаткові стилі для нових блоків */
.budget-card {
  border-radius: var(--border-radius);
  background-color: white;
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
  height: 100%;
}

.mission-banner {
  position: relative;
  padding: 4rem 0;
  background-color: var(--accent-dark);
  color: white;
  overflow: hidden;
}

.mission-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(49, 54, 140, 0.85);
  z-index: 1;
}

.mission-content {
  position: relative;
  z-index: 2;
}

.mission-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expertise-icon {
  font-size: 3rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.trust-banner {
  position: relative;
  padding: 5rem 0;
  color: var(--text-primary);
  overflow: hidden;
}

.trust-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

.trust-content {
  position: relative;
  z-index: 2;
}

.stat-item {
  text-align: center;
  margin-bottom: 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
}

@media (max-width: 767.98px) {
  .trust-img {
    width: 100%;
    clip-path: none;
    opacity: 0.2;
  }
}
/* Додаткові стилі для нових блоків */
.service-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  height: 100%;
  transition: var(--transition);
  background-color: white;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.service-content {
  padding: 1.5rem;
}

.advantage-card {
  background-color: var(--primary-bg);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  height: 100%;
  transition: var(--transition);
}

.advantage-card:hover {
  box-shadow: var(--box-shadow);
}

.news-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  height: 100%;
  transition: var(--transition);
  background-color: white;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-img {
  height: 180px;
  width: 100%;
  object-fit: cover;
}

.news-content {
  padding: 1.25rem;
}

.news-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: block;
}

.article-container {
  margin-bottom: 3rem;
}

.article-img {
  border-radius: var(--border-radius);
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: var(--box-shadow);
}

.article-content {
  padding: 0 1rem;
}

.article-title {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.article-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: block;
}

.read-more {
  color: var(--accent-primary);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}

.read-more:hover {
  color: var(--accent-dark);
}

.read-more .material-icons {
  font-size: 1.1rem;
  margin-left: 0.25rem;
}

@media (max-width: 767.98px) {
  .article-img-container {
    margin-bottom: 1.5rem;
  }
}

/* Стилі для блоку контактів та форми */
.contact-section {
  background-color: var(--primary-bg);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.contact-icon {
  color: var(--accent-primary);
  margin-right: 1rem;
  font-size: 1.5rem;
}

.contact-details {
  color: var(--text-secondary);
}

.contact-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.contact-link:hover {
  color: var(--accent-primary);
}

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  height: 100%;
  min-height: 300px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: none;
}

.form-section {
  background-color: white;
}

.form-container {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
}

.form-control {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 0.2rem rgba(55, 58, 212, 0.25);
}

.form-label {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.submit-btn {
  background-color: var(--accent-primary);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: var(--transition);
  width: 100%;
}

.submit-btn:hover {
  background-color: var(--accent-dark);
  transform: translateY(-3px);
}

.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: -1rem;
  margin-bottom: 1rem;
  display: none;
}