/* Глобальные исправления контейнеров и сетки */
.container, .container-fluid {
  max-width: 100% !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.row {
  margin-left: -15px !important;
  margin-right: -15px !important;
}

[class*="col-"] {
  padding-left: 15px !important;
  padding-right: 15px !important;
}

/* Фикс для элементов с фиксированной шириной */
img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

/* Принудительное скрытие горизонтального скролла */
body {
  overflow-x: hidden;
  position: relative;
}

/*Блок наши услуги*/
/* ==================== */
/* СТИЛИ ДЛЯ РАЗДЕЛА УСЛУГ */
/* ==================== */
.services-section {
  background: var(--light-color);
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.05) 0%, transparent 70%);
  z-index: 0;
}

.services-section h2 {
  color: var(--dark-color);
  position: relative;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 15px;
}

.services-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-blue);
  border-radius: 2px;
}

.service-card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
  background: white;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(56, 189, 248, 0.02) 100%);
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.6);
}

.service-card:hover::before {
  opacity: 1;
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition);
}

.service-card:hover .icon-box {
  transform: rotate(15deg) scale(1.1);
}

.bg-primary-light {
  background-color: rgba(37, 99, 235, 0.1);
}
.bg-success-light {
  background-color: rgba(45, 212, 191, 0.1);
}
.bg-warning-light {
  background-color: rgba(245, 158, 11, 0.1);
}
.bg-info-light {
  background-color: rgba(56, 189, 248, 0.1);
}
.bg-purple-light {
  background-color: rgba(124, 58, 237, 0.1);
}

.text-primary { color: var(--primary-color); }
.text-success { color: var(--accent-teal); }
.text-warning { color: var(--accent-yellow); }
.text-info { color: var(--accent-blue); }
.text-purple { color: var(--secondary-color); }

.service-card h3 {
  color: var(--dark-color);
  transition: var(--transition);
}

.service-card:hover h3 {
  color: var(--primary-color);
}

.card-text {
  color: var(--dark-medium);
  line-height: 1.7;
}

.btn-link {
  color: var(--primary-color);
  position: relative;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}

.btn-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-blue);
  transition: width 0.3s ease;
}

.btn-link:hover {
  color: var(--primary-dark);
}

.btn-link:hover::after {
  width: 100%;
}

.btn-link i {
  transition: transform 0.3s ease;
}

.btn-link:hover i {
  transform: translateX(5px);
}


/* ==================== */
/* СТИЛИ БЛОКА "ПОЧЕМУ НАМ ДОВЕРЯЮТ" */
/* ==================== */
.trust-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--light-color) 0%, var(--light-gray) 100%);
  padding: 5rem 0;
}

.trust-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.trust-section::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.trust-section h2.display-4 {
  font-weight: 800;
  color: var(--dark-color);
  position: relative;
  padding-bottom: 15px;
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.trust-section h2.display-4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-blue);
  border-radius: 2px;
}

/* Улучшенные карточки доверия */
.trust-card {
  position: relative;
  border: none;
  border-radius: 18px;
  background: white;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  height: 100%;
  padding: 2.5rem;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
}

.trust-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--gradient-blue);
  transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.trust-card:hover::before {
  width: 10px;
}

.trust-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(56, 189, 248, 0.02) 100%);
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.trust-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.6);
}

.trust-card:hover::after {
  opacity: 1;
}

.trust-card h3.h4 {
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 12px;
  transition: var(--transition);
}

.trust-card:hover h3.h4 {
  color: var(--primary-color);
}

.trust-card h3.h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gradient-blue);
  transition: width 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  border-radius: 2px;
}

.trust-card:hover h3.h4::after {
  width: 80px;
}

.trust-card p {
  color: var(--dark-medium);
  line-height: 1.8;
  position: relative;
  font-size: 1.05rem;
}

/* Цветовые вариации для карточек */
.trust-card:nth-child(1)::before {
  background: var(--gradient-blue);
}
.trust-card:nth-child(2)::before {
  background: linear-gradient(to bottom, var(--accent-teal), #20c997);
}
.trust-card:nth-child(3)::before {
  background: linear-gradient(to bottom, var(--accent-yellow), #fd7e14);
}
.trust-card:nth-child(4)::before {
  background: linear-gradient(to bottom, var(--secondary-color), var(--accent-pink));
}


/* ==================== */
/* СТИЛИ БЛОКА РАСЧЕТА СТОИМОСТИ */
/* ==================== */
.calculation-section {
  background: linear-gradient(135deg, var(--light-color) 0%, #f0f6ff 100%);
}

.calculation-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
  z-index: 0;
}

.calculation-card {
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
}

.calculation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.calculation-steps .step-number {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  font-weight: 700;
}

.calculation-option {
  background: white;
  border: 1px solid var(--light-gray);
  transition: var(--transition);
}

.calculation-option:hover {
  background: rgba(37, 99, 235, 0.03);
  border-color: var(--primary-light);
  transform: translateX(5px);
}

.calculation-option:hover h4 {
  color: var(--primary-color);
}

.option-icon {
  transition: var(--transition);
}

.calculation-option:hover .option-icon {
  background: var(--primary-color) !important;
  color: white !important;
  transform: rotate(10deg);
}

.shadow-sm-hover {
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
  transition: var(--transition);
}

.shadow-sm-hover:hover {
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.bg-primary-light {
  background: rgba(37, 99, 235, 0.1);
}

.calculation-option {
  cursor: pointer;
  transition: all 0.3s ease;
}

.calculation-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Для кнопки телефона */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* Улучшенные стили для блока обратной связи */
#feedback-section {
    max-width: 640px;
    margin: 3rem auto;
    padding: 3rem;
    background-color: var(--light-color);
    border-radius: 20px;
	background: linear-gradient(135deg, var(--light-color) 0%, #f0f4f9 100%);
    box-shadow: var(--shadow-lg);
    font-family: 'Inter', system-ui, sans-serif;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#feedback-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--gradient-accent);
    z-index: 2;
}

#feedback-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(251, 251, 253, 0.8) 0%, rgba(247, 248, 252, 0.9) 100%);
    z-index: -1;
}

#feedback-section h2 {
    color: var(--dark-color);
    margin-bottom: 2.5rem;
    font-size: 2.25rem;
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
    background: linear-gradient(to right, var(--primary-color), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#feedback-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: var(--gradient);
    border-radius: 3px;
    opacity: 0.8;
}

#feedback-form .form-group {
    margin-bottom: 2rem;
    position: relative;
}

#feedback-form label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--dark-medium);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

#feedback-form input,
#feedback-form textarea {
    width: 100%;
    padding: 1.1rem 1.5rem;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    font-size: 1.05rem;
    transition: var(--transition);
    background-color: white;
    box-shadow: var(--shadow-sm);
    font-family: 'Roboto', sans-serif;
}

#feedback-form input::placeholder,
#feedback-form textarea::placeholder {
    color: var(--light-gray);
    opacity: 0.8;
}

#feedback-form input:focus,
#feedback-form textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
    background-color: white;
}

#feedback-form textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.6;
}

#feedback-submit {
    background: var(--gradient);
    color: var(--text-light);
    border: none;
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    letter-spacing: 1px;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    text-transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#feedback-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

#feedback-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
}

#feedback-submit:hover::before {
    opacity: 1;
}

#feedback-submit:active {
    transform: translateY(1px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
}

#feedback-submit i {
    margin-left: 10px;
    transition: var(--transition);
}

#feedback-submit:hover i {
    transform: translateX(5px);
}

/* Валидация с анимацией */
#feedback-form input:invalid,
#feedback-form textarea:invalid {
    border-color: var(--accent-pink);
    animation: shake 0.5s ease-in-out;
}

#feedback-form input:valid,
#feedback-form textarea:valid {
    border-color: var(--accent-teal);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* Анимация фокуса */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(56, 189, 248, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

#feedback-form input:focus,
#feedback-form textarea:focus {
    animation: pulse 1.5s infinite;
}



/* Дополнительные эффекты */
.form-group {
    position: relative;
}

.form-group:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--light-gray), transparent);
    opacity: 0.5;
}

/* Кастомные элементы формы */
.checkbox-group {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 500;
    color: var(--dark-medium);
}


/* Стили для блока "О компании" */
.about-section {
  position: relative;
  padding: 5rem 1rem;
  background: var(--gradient-dark);
  color: var(--text-light);
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover;
  opacity: 0.15;
  z-index: 0;
}

.about-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 1;
}

.about-header {
  text-align: center;
  margin-bottom: 3rem;
}

.about-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(to right, var(--accent-teal), var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.title-decoration {
  width: 80px;
  height: 4px;
  background: var(--gradient-accent);
  margin: 0 auto;
  border-radius: 2px;
}

.about-card {
  background: rgba(248, 250, 252, 0.95);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  color: var(--text-dark);
  backdrop-filter: blur(8px);
}

.about-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  color: var(--dark-medium);
  font-weight: 500;
  text-align: center;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  background: white;
}

.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-blue);
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  width: 30px;
  height: 30px;
  stroke: white;
  stroke-width: 2;
}

.feature-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dark-medium);
}

.about-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  background: var(--gradient);
  color: white;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition);
  margin: 0 auto;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  position: relative;
  overflow: hidden;
}

.about-button svg {
  width: 20px;
  height: 20px;
  margin-left: 10px;
  transition: var(--transition);
}

.about-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.about-button:hover svg {
  transform: translateX(5px);
}

.about-button:active {
  transform: translateY(1px);
}


@media (max-width: 767.98px) {
  .service-card {
    margin-bottom: 1.5rem;
  }
  .services-section .row > [class^="col-"] {
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
  }
}

@media (max-width: 575.98px) {
  #feedback-section {
    padding: 2rem 0;
  }
  #feedback-form {
    padding: 1.5rem !important;
  }
  .form-control {
    font-size: 0.9rem;
  }
}
.hero-section {
  height: calc(100 * var(--vh));
}



/* Адаптация для мобильных */
@media (max-width: 767.98px) {
  .container, .container-fluid {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  .row {
    margin-left: -12px !important;
    margin-right: -12px !important;
  }
  
  [class*="col-"] {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  .carousel-item img {
    min-height: 300px;
  }
  
  .navbar-brand {
    max-width: 70%;
  }
}