:root {
  /* Цвета */
  --bs-white: #FFFFFF;
  --bs-light: #FAFAFA;
  --bs-dark: #333333;
  --bs-gray: #616161;
  --bs-primary: #FFE082;
  --bs-primary-dark: #FFD54F;
  --bs-border-color: #EEEEEE;
}

/* Общие стили */
body {
  background-color: var(--bs-white);
  color: var(--bs-dark);
  font-family: 'Inter', sans-serif;
  padding-top: 65px; /* Для фиксированной шапки */
}

/* Шапка */
#navbar {
  position: fixed;
  top: 0px;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 1rem 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#navbar.scrolled {
  top: 0;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--bs-border-color);
}

.top-bar {
  background-color: rgba(237, 237, 237, 0.65) !important;
  border-bottom: 1px solid var(--bs-border-color) !important;
  transition: all 0.3s ease;
}

/* Кнопки */
.btn-primary {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: var(--bs-dark);
}
.btn-primary:hover {
  background-color: var(--bs-primary-dark);
  border-color: var(--bs-primary-dark);
}

/* Эффекты при наведении */
.hover-primary:hover {
  color: var(--bs-primary-dark) !important;
}

.nav-link {
  position: relative;
  padding: 0.5rem 1rem !important;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  width: 0;
  height: 2px;
  background: var(--bs-primary);
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: calc(100% - 2rem);
}

.bi-vk::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url('/assets/images/icons/vk.png');
  background-repeat: no-repeat;
  margin-right: 4px;
}

/* Иконки соцсетей */
.bi-whatsapp:hover { color: #25D366 !important; }
.bi-telegram:hover { color: #0088CC !important; }
.bi-instagram:hover { color: #E1306C !important; }

/* Hero Section */
.hero-section {
  background-color: var(--bs-light);
  padding-top: 2rem;
  padding-bottom: 4rem;
  color: white;
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(13, 27, 62, 0.8) 0%, rgba(13, 27, 62, 0.5) 100%);
}

/* Text Effects */
.text-shadow {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.text-shadow-sm {
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* Glassmorphism Effect */
.bg-white-10 {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

.backdrop-blur {
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.min-vh-80 {
  min-height: 80vh;
}

/* Заголовок */
.display-3 {
  font-size: calc(0.7rem + 3.5vw);
  line-height: 1.2;
}

/* Изображение */
.hero-image-wrapper {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Декоративные формы */
.hero-shape-1 {
  position: absolute;
  top: 10%;
  right: 5%;
  width: 300px;
  height: 300px;
  background-color: var(--bs-primary-light);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  opacity: 0.3;
  z-index: 0;
}

.hero-shape-2 {
  position: absolute;
  bottom: 5%;
  left: 5%;
  width: 200px;
  height: 200px;
  background-color: var(--bs-primary);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  opacity: 0.1;
  z-index: 0;
}

/* Анимация кнопки */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Текст */
.text-gray {
  color: var(--bs-gray);
}

/* Бейджи доверия */
.trust-badges .badge-item {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(5px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--bs-border-color);
}

/* Services Section */
.services-section {
  position: relative;
  overflow: hidden;
}

.service-card {
  transition: all 0.3s ease;
  border-radius: 12px;
  background-color: var(--bs-white);
  border: 1px solid var(--bs-border-color);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
  border-color: var(--bs-primary-light);
}

.service-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background-color: var(--bs-primary) !important;
  color: var(--bs-white) !important;
}

.bg-primary-light {
  background-color: var(--bs-primary-light);
}

.shadow-sm-hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

/* Process Section */
.process-section {
  position: relative;
}

.process-card {
  background-color: var(--bs-white);
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid var(--bs-border-color);
}

.process-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border-color: var(--bs-primary-light);
}

.process-step {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.process-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.process-card:hover .process-icon {
  background-color: var(--bs-primary) !important;
  color: var(--bs-white) !important;
}

/* Testimonials Section */
.testimonial-card {
  background-color: var(--bs-white);
  border-radius: 12px;
  border: 1px solid var(--bs-border-color);
  transition: all 0.3s ease;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--bs-primary-light);
}

.text-warning {
  color: #FFC107 !important;
}

/* Карусель (если нужно добавить слайдер) */
.testimonial-carousel .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--bs-primary-light);
  border: none;
}

.testimonial-carousel .carousel-indicators .active {
  background-color: var(--bs-primary);
}

/* FAQ Section */
.faq-section {
  position: relative;
}

.accordion-button {
  font-weight: 500;
  border-radius: 12px !important;
}

.accordion-button:not(.collapsed) {
  background-color: var(--bs-white);
  color: var(--bs-dark);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--bs-primary-light);
}

.accordion-body {
  border-radius: 0 0 12px 12px;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFD54F'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFD54F'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Contacts Section */
.contact-card,
.contact-form-card {
  border: 1px solid var(--bs-border-color);
  transition: all 0.3s ease;
}

.contact-card:hover,
.contact-form-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--bs-primary) !important;
  color: var(--bs-white) !important;
  transform: translateY(-3px);
}

.map-container {
  position: relative;
  height: 540px;
  background-color: var(--bs-light);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Форма */
.form-control,
.form-select {
  border: 1px solid var(--bs-border-color);
  padding: 0.5rem 1rem;
}

.form-control:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.25rem rgba(255, 224, 130, 0.25);
}

/* Footer */
.footer {
  position: relative;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.7) !important;
}

.hover-primary:hover {
  color: var(--bs-primary) !important;
}

/* Декоративный элемент */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--bs-primary), var(--bs-primary-dark));
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  transition: all 0.3s ease;
}

.back-to-top.show {
  opacity: 1;
}

/* Calculator Styles */
.calculator-card {
  border: 1px solid var(--bs-border-color);
  transition: all 0.3s ease;
}

.calculator-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.form-select, .form-control {
  border: 1px solid var(--bs-border-color);
  padding: 0.75rem 1rem;
  border-radius: 8px !important;
}

.form-select:focus, .form-control:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.25rem rgba(255, 224, 130, 0.25);
}

/* Custom Switch */
.form-check-input {
  width: 3em !important;
  height: 1.5em !important;
  margin-right: 0.5em;
}

.form-check-input:checked {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 224, 130, 0.25);
}

/* Result Block */
#calculationResult {
  transition: all 0.5s ease;
}

/* Modal Styles */
.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
  padding: 1.5rem 1.5rem 0;
}

.modal-title {
  font-weight: 600;
  color: var(--bs-dark);
}

.modal-body {
  padding: 0 1.5rem 1.5rem;
}

/* Toast Styles */
.toast {
  border-radius: 8px;
}

/* Pricing Table */
.pricing-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 800px;
}

.pricing-table thead th {
  font-weight: 600;
  padding: 1rem;
  vertical-align: middle;
}

.pricing-table tbody td {
  padding: 1.25rem 1rem;
  vertical-align: middle;
  background-color: var(--bs-white);
  border-bottom: 1px solid var(--bs-border-color);
}

.pricing-table tbody tr:first-child td:first-child {
  border-top-left-radius: 12px;
}

.pricing-table tbody tr:first-child td:last-child {
  border-top-right-radius: 12px;
}

.pricing-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.pricing-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

.pricing-table tbody tr:hover td {
  background-color: var(--bs-primary-light);
  cursor: default;
}
.telegram-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 90px;
  right: 20px;
  background: #0088cc;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.telegram-float:hover {
  background: #0077b5;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 136, 204, 0.4);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.7);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(0, 136, 204, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 136, 204, 0);
  }
}
.telegram-float.with-text {
  width: auto;
  padding: 0 20px;
  border-radius: 15px;
}

.telegram-float.with-text span {
  display: none;
  margin-left: 10px;
  font-size: 16px;
}

.telegram-float.with-text:hover {
  width: auto;
  padding: 0 20px;
}

.telegram-float.with-text:hover span {
  display: inline;
}