:root {
  --primary: #2196f3; /* Material Blue 500 */
  --primary-variant: #1976d2; /* Material Blue 700 */
  --secondary: #00bcd4; /* Material Cyan 500 */
  --background: #f0f2f5; /* Very light blue-grey for main background */
  --surface: #ffffff; /* White for cards, forms, etc. */
  --on-background: #212121; /* Dark grey for text on background */
  --on-surface: #424242; /* Slightly lighter dark grey for text on surface */
  --on-primary: #ffffff; /* White text on primary blue */
  --text-secondary: var(
    --on-surface
  ); /* Использование существующей переменной для текста */
  --divider-color: rgba(0, 0, 0, 0.12); /* Светлая линия для разделителей */
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: "Roboto", sans-serif;
  background-color: var(--background);
  color: var(--on-surface);
  max-width: 100%;
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--on-background);
}

/* Шапка сайта */
.top-bar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(33, 150, 243, 0.2);
  color: var(--on-surface);
  white-space: nowrap;
}

.top-bar span,
.top-bar i,
.top-bar-link {
  font-size: 1.1rem; /* Увеличиваем размер текста и иконок */
  text-decoration: none; /* Убираем подчеркивание */
  color: inherit; /* Наследуем цвет от родителя, чтобы он был var(--on-surface) */
  transition: color 0.3s ease; /* Добавляем плавный переход */
}

.top-bar-link:hover {
  color: var(--primary); /* Синий цвет при наведении */
}

.top-bar .social-icon {
  background: rgba(0, 0, 0, 0.05);
  color: var(--on-surface);
}

.top-bar .social-icon:hover {
  background: var(--primary);
  color: var(--on-primary);
}

.navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  padding: 15px 0;
  border-bottom: 1px solid rgba(33, 150, 243, 0.3);
}

.navbar-brand {
  font-weight: 800;
  font-size: 28px;
  color: var(--primary) !important;
  letter-spacing: 1px;
  font-family: "Montserrat", sans-serif;
}

.nav-link {
  color: var(--on-surface) !important;
  font-weight: 500;
  margin: 0 10px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary) !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Герой-секция */
.hero-section {
  padding: 120px 0 100px;
  background: 
    url("../assets/images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}



.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.2;
  background: linear-gradient(90deg, #bb86fc, #03dac6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textGlow 2s infinite alternate;
}

@keyframes textGlow {
  0% {
    text-shadow: 0 0 5px rgba(187, 134, 252, 0.3);
  }
  100% {
    text-shadow: 0 0 20px rgba(187, 134, 252, 0.6),
      0 0 30px rgba(3, 218, 198, 0.4);
  }
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 700px;
  color: var(--on-primary); /* Светлый текст на темном фоне */
}


.hero-image {
      position: relative;
      z-index: 3;
      border-radius: 10%;
      width: 400px;
      height: 400px;
}



/* Основные кнопки */
.btn-primary-custom {
  background: linear-gradient(
    90deg,
    #bb86fc,
    #03dac6
  ); /* Градиент как у hero-title */
  color: #ffffff; /* Белый текст */
  border: none;
  border-radius: 50px;
  padding: 15px 15px;
  font-weight: 100;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(187, 134, 252, 0.4);
}

.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(187, 134, 252, 0.6);
  color: #ffffff !important; /* Всегда белый текст при наведении */
}

.btn-outline-custom {
  background: transparent;
  color: #ffffff; /* Белый текст */
  border: 2px solid #bb86fc;
  border-radius: 50px;
  padding: 13px 30px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-outline-custom:hover {
  background: linear-gradient(
    90deg,
    #bb86fc,
    #03dac6
  ); /* Градиент как у hero-title */
  color: #ffffff !important; /* Всегда белый текст при наведении */
}

/* Секции */
.section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 60px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  margin: 15px auto 0;
  border-radius: 2px;
}

.section.bg-dark .section-title {
  color: #e0ffeb; /* White for titles on dark backgrounds */
}

#process.bg-dark .process-step p,
#process.bg-dark .process-step h3,
#process.bg-dark .process-step .step-number {
  color: var(
    --on-primary
  ); /* Белый текст для параграфов, заголовков и номеров шагов в темной секции процесса */
}

/* Карточки */
.card-custom {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(33, 150, 243, 0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  height: 100%;
  color: var(--on-surface);
}

.card-custom:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: rgba(33, 150, 243, 0.3);
}

.card-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Материальный чип с ценой */
.price-chip {
  display: inline-block;
  margin: 10px 0 5px;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--on-primary);
  background: linear-gradient(90deg, #bb86fc, #03dac6);
  box-shadow: 0 6px 14px rgba(3, 218, 198, 0.25), 0 2px 6px rgba(187, 134, 252, 0.25);
}

.price-chip-description {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--on-surface);
  opacity: 0.8;
  margin-top: 6px;
}

/* Ссылки Подробнее в карточках услуг */
.details-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-weight: 700;
  color: var(--primary-variant);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(33, 150, 243, 0.08);
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(25, 118, 210, 0.15);
}

.details-link:hover {
  background: linear-gradient(90deg, #bb86fc, #03dac6);
  color: var(--on-primary);
  transform: translateY(-2px);
}

/* Портфолио */
.portfolio-item {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  height: 300px;
  margin-bottom: 30px;
}

.portfolio-img {
  width: 100%;  
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-overlay {
  position: absolute;
  top: 172px;
  left: 0;
  width: 100%;
  height: 50%;
  background:rgba(18, 18, 18, 0.7); /* Revert to dark */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  opacity: 1;
  transition: opacity 0.4s ease;
  color: #ffffff; /* Ensure text is white */
}

/* .portfolio-item:hover .portfolio-overlay {
  opacity: 1;
} */

.portfolio-item:hover .portfolio-img {
  transform: scale(1.05);
}

/* Процесс работы */
.process-step {
  text-align: center;
  padding: 30px;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-variant));
  color: var(--on-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 25px;
  position: relative;
  z-index: 2;
}

/* Отзывы */
.testimonial-card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(33, 150, 243, 0.2);
  height: 100%;
  color: var(--on-surface);
}

.client-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 20px;
  border: 2px solid var(--primary);
}

/* FAQ */
.faq__items {
  max-width: 800px;
  margin: 50px auto 0;
}

.faq__item {
  border-bottom: 1px solid var(--divider-color);
}

.faq__question {
  padding: 20px;
  margin-bottom: 10px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  color: var(--on-surface);
}

.faq__question:hover {
  color: var(--primary);
}

.faq__icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  opacity: 0;
  padding: 0 20px;
  color: var(--on-surface);
}

.faq__item.active {
    background-color: white;
    border-radius: 10px;
    margin: 5px;
}

.faq__item.active .faq__icon {
  transform: rotate(180deg);
}

.faq__item.active .faq__answer {
  opacity: 1;
  padding-bottom: 20px; /* Добавляем отступ после открытия */
}

/* Блок с дисклеймером */
.disclaimer-block {
  background-color: var(--primary); /* Используем основной цвет для фона */
  color: var(--on-primary); /* Белый текст на основном цвете */
  font-weight: 500;
}

/* Форма */
.contact-form {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(33, 150, 243, 0.2);
}

#contact .social-icon {
  background: rgba(0, 0, 0, 0.05); /* Very light transparent black */
  color: var(--on-surface); /* Dark grey for text on surface */
}

#contact .social-icon:hover {
  background: var(--primary);
  color: var(--on-primary);
}

.form-control {
  background: rgba(
    0,
    0,
    0,
    0.05
  ) !important; /* Apply transparent background only to input type text/email etc. */
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: var(--on-surface) !important;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.form-select {
  background-color: rgba(
    0,
    0,
    0,
    0.05
  ) !important; /* Set background color explicitly */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23424242' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important; /* Add Bootstrap 5 arrow, using var(--on-surface) color for the arrow */
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 16px 12px !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: var(--on-surface) !important;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 0.25rem rgba(33, 150, 243, 0.25);
}

/* Подвал */
footer {
  background: #0a0a0a; /* Revert to dark */
  padding-top: 80px;
  padding-bottom: 30px;
  color: #ffffff; /* Ensure all general text in footer is white */
}

/* Модальное окно услуг */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  padding: 20px;
  /* Подложка принимает клики, чтобы закрывать модалку по фону */
  pointer-events: auto;
}

.modal-overlay.show {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.modal-dialog {
  background: var(--surface);
  color: var(--on-surface);
  border-radius: 20px;
  width: min(680px, 100%);
  box-shadow: 0 30px 60px rgba(0,0,0,0.3), 0 6px 18px rgba(0,0,0,0.2);
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  position: relative;
  overflow: visible;
  pointer-events: auto;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.show .modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: fixed;
  top: 12px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.06);
  color: var(--on-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  pointer-events: auto;
}

.modal-close:hover {
  background: #e53935; /* Материальный красный */
  color: #fff;
}

.modal-content { padding: 45px 45px 20px 20px; position: relative; z-index: 1; max-height: 85vh; overflow-y: auto; }
.modal-overlay i { pointer-events: none; }

.modal-close i { pointer-events: none; }
.modal-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.modal-subtitle { color: var(--text-secondary); margin-bottom: 16px; }
.modal-body { color: var(--on-surface); line-height: 1.6; }
.modal-actions { display: flex; justify-content: left; padding: 6px 0 14px; }


.footer-logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
  display: inline-block;
  text-decoration: none;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(
    255,
    255,
    255,
    0.05
  ); /* Light transparent white on dark background */
  color: #ffffff; /* White icon */
  border-radius: 50%;
  font-size: 1.2rem;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--primary);
  color: var(--on-primary);
  transform: translateY(-5px);
}

.footer-title {
  font-size: 1.3rem;
  margin-bottom: 25px;
  color: #ffffff; /* White title */
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.footer-link {
  display: block;
  color: #ffffff; /* White link */
  text-decoration: none;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

/* Горизонтальное выравнивание контактов в футере */
footer .footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 576px) {
  /* Удаляю flex-direction: row; и align-items: center; чтобы контакты всегда были вертикально */
}

footer .footer-contact-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}

footer .footer-contact-item .bi-geo-alt {
  margin-bottom: 0;
}
footer .footer-contact-item.address {
  margin-bottom: 12px;
}

.footer-link:hover {
  color: var(--primary);
  padding-left: 5px;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* Light border on dark background */
}
.copyright p {
  color: #ffffff;
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

/* Адаптивность */
@media (max-width: 992px) {
  .top-bar {
    white-space: normal;
  }

  .top-bar #topbar-email,
  .top-bar #topbar-phone {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 2.2rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .top-bar .col-md-6:first-child {
    flex: 0 0 72%;
    max-width: 72%;
  }

  .top-bar .col-md-6.text-md-end {
    flex: 0 0 28%;
    max-width: 28%;
    display: flex;
    justify-content: flex-end;
  }

  .top-bar .col-md-6:first-child .d-flex.align-items-center {
    width: 100%;
    justify-content: space-between !important;
    flex-wrap: nowrap;
    gap: 12px !important;
  }

  .top-bar #topbar-email,
  .top-bar #topbar-phone,
  .top-bar #topbar-email a,
  .top-bar #topbar-phone a {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }
}

@media (min-width: 768px) {
  .top-bar .col-md-6:first-child .d-flex.align-items-center {
    justify-content: flex-start !important;
  }

  .top-bar #topbar-email {
    margin-left: 0 !important;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.3rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2.8rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.7rem;
  }
  .top-bar .container .row {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
  }
  .top-bar .col-md-6 {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
  }
  .top-bar .d-flex.align-items-center {
    justify-content: center;
    margin-bottom: 8px;
  }
  .top-bar .d-inline-flex {
    justify-content: center;
    margin-bottom: 0;
  }
  .topbar-phone {
    font-size: 1.1rem;
    margin: 8px 0;
  }
}

/* Анимации */
.fade-in {
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}
.delay-3 {
  animation-delay: 0.6s;
}
.delay-4 {
  animation-delay: 0.8s;
}
.delay-5 {
  animation-delay: 1s;
}
.delay-6 {
  animation-delay: 1.2s;
}
.delay-7 {
  animation-delay: 1.4s;
}

/* Кнопка "Вверх" */
#back-to-top {
  position: fixed;
  bottom: 95px;
  right: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background-color: var(--primary);
  color: var(--on-primary);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

#back-to-top i {
  color: var(--on-primary); /* Белая иконка на синем фоне */
}

.navbar-toggler-icon {
  background-image: none !important;
  width: 1.5em;
  height: 1em;
  display: inline-block;
  position: relative;
}
.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon span {
  content: "";
  display: block;
  height: 3px;
  width: 100%;
  background: #1976d2; /* Синий, как фирменный */
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all 0.3s;
}
.navbar-toggler-icon::before {
  top: 0;
}
.navbar-toggler-icon span {
  top: 50%;
  transform: translateY(-50%);
}
.navbar-toggler-icon::after {
  bottom: 0;
}

.topbar-phone {
  font-size: 1.25rem;
  color: var(--primary-variant);
  font-weight: bolder !important;
  letter-spacing: 0.5px;
  margin: 0 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.topbar-phone:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Custom css */

.text-center {
  text-align: center;
}

.el-center {
  display: flex;
  justify-content: center;
}


.rub {
  font-size: 14px;
}

/* ===== MATRIX REDESIGN OVERRIDES ===== */
:root {
  --primary: #3cff8f;
  --primary-variant: #18c96c;
  --secondary: #56d6ff;
  --background: #020604;
  --surface: rgba(6, 16, 10, 0.75);
  --on-background: #d6ffe7;
  --on-surface: #c4ffd9;
  --on-primary: #001608;
  --text-secondary: #93b7a1;
  --divider-color: rgba(60, 255, 143, 0.22);
  --matrix-green: #2eff7e;
  --surface-glass: rgba(0, 0, 0, 0.81);
  --transition: all 0.25s ease;
}

html,
body {
  background: radial-gradient(circle at 20% 20%, #0f2a17 0%, #040806 35%, #020503 100%);
  color: var(--on-surface);
}

body {
  position: relative;
}

.top-bar,
.navbar,
.hero-section,
.section,
footer {
  position: relative;
  z-index: 2;
}

.top-bar {
  background: rgba(0, 0, 0, 0.78);
  border-bottom: 1px solid rgba(60, 255, 143, 0.2);
  color: var(--on-surface);
}

.top-bar-link:hover,
.topbar-phone:hover {
  color: #7cffb1;
}

.top-bar .social-icon {
  background: rgba(60, 255, 143, 0.08);
  border: 1px solid rgba(60, 255, 143, 0.2);
}

.navbar {
  background: rgba(0, 0, 0, 0.82);
  border-bottom: 1px solid rgba(60, 255, 143, 0.28);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.navbar-brand {
  color: #d9ffe9 !important;
  text-shadow: 0 0 16px rgba(60, 255, 143, 0.45);
}

.slogan {
  margin: 0;
  font-size: 0.86rem;
  letter-spacing: 0.2em;
  color: #87bf9f;
  text-transform: uppercase;
}

.nav-link {
  color: #b7ebca !important;
}

.nav-link:hover {
  color: #7cffb1 !important;
}

.nav-link::after {
  background: linear-gradient(90deg, #3cff8f, #56d6ff);
}

.hero-section {
  background: url("../assets/images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
}


.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 14px;
  border: 1px solid rgba(60, 255, 143, 0.3);
  background: rgba(60, 255, 143, 0.1);
  color: #9af7be;
  letter-spacing: 0.09em;
  font-size: 0.86rem;
  text-transform: uppercase;
}

.hero-title {
  background: linear-gradient(90deg, #d8ffe9, #77fcae 45%, #75dbff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 22px rgba(60, 255, 143, 0.35);
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #b0f0ff 40%, #c9b3ff 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(110, 231, 255, 0.4);
}

.section-title-icon {
  margin-right: 10px;
  font-size: 0.92em;
  vertical-align: middle;
}

@keyframes textGlow {
  0% {
    text-shadow: 0 0 8px rgba(60, 255, 143, 0.26);
  }
  100% {
    text-shadow: 0 0 22px rgba(60, 255, 143, 0.6), 0 0 28px rgba(86, 214, 255, 0.4);
  }
}

.btn-primary-custom {
  background: linear-gradient(135deg, #3cff8f 0%, #1fd17f 55%, #56d6ff 100%);
  color: #041108;
  font-weight: 700;
  border-radius: 0;
  box-shadow: 0 0 20px rgba(60, 255, 143, 0.35), 0 0 32px rgba(60, 255, 143, 0.22);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.35);
}

.btn-primary-custom:hover {
  color: #000 !important;
  box-shadow: 0 0 34px rgba(60, 255, 143, 0.65), 0 0 48px rgba(86, 214, 255, 0.35);
}

.btn.btn-primary,
.btn-primary-custom,
.details-link,
.portfolio-overlay .btn {
  box-shadow: 0 0 16px rgba(60, 255, 143, 0.38), 0 0 28px rgba(86, 214, 255, 0.2);
}

.btn.btn-primary:hover,
.btn-primary-custom:hover,
.details-link:hover,
.portfolio-overlay .btn:hover {
  box-shadow: 0 0 30px rgba(60, 255, 143, 0.72), 0 0 44px rgba(86, 214, 255, 0.38);
}

.section {
  padding: 90px 0;
}

.content,
.content-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  background: var(--surface-glass);
  border-left: 1px solid rgba(46, 255, 126, 0.1);
  border-right: 1px solid rgba(46, 255, 126, 0.1);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  clip-path: polygon(0% 0%, 100% 0%, 100% 98%, 98% 100%, 0% 100%);
}

.content .section,
.content-shell .section {
  background: transparent !important;
}

.section.bg-dark {
  background: linear-gradient(180deg, rgba(2, 9, 5, 0.88), rgba(0, 0, 0, 0.9));
}

#process,
#process h3,
#process p,
#process .step-number {
  color: #fff !important;
}

#process .step-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--matrix-green) !important;
  text-shadow: 0 0 20px #2eff7e;
  background: transparent !important;
  border: none;
  box-shadow: none;
}

.section-title {
  color: #e0ffeb;
  letter-spacing: 0.03em;
  text-shadow: 0 0 16px rgba(60, 255, 143, 0.25);
}

.section-title::after {
  width: 110px;
  height: 2px;
  background: linear-gradient(90deg, #3cff8f, #56d6ff);
  box-shadow: 0 0 16px rgba(60, 255, 143, 0.55);
}

.section-subtitle {
  color: var(--text-secondary);
}

.card-custom,
.contact-form,
.portfolio-item,
.process-step {
  background: rgba(4, 14, 9, 0.84);
  border: 1px solid rgba(60, 255, 143, 0.2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.card-custom {
  border-radius: 10px;
  backdrop-filter: blur(4px);
  clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 94% 100%, 0% 100%);
}

.card-custom:hover {
  border-color: rgba(60, 255, 143, 0.45);
  box-shadow: 0 14px 34px rgba(18, 109, 67, 0.26);
}

.card-icon {
  color: #5dff9d;
  text-shadow: 0 0 16px rgba(60, 255, 143, 0.35);
}

.price-chip {
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(60, 255, 143, 0.16), rgba(86, 214, 255, 0.18));
  border: 1px solid rgba(60, 255, 143, 0.42);
  color: #bfffd7;
  box-shadow: none;
}

.details-link {
  border-radius: 0;
  color: #b8ffd4;
  background: rgba(60, 255, 143, 0.09);
  border: 1px solid rgba(60, 255, 143, 0.25);
  box-shadow: 0 0 14px rgba(60, 255, 143, 0.24);
}

.details-link:hover {
  color: #001006;
  background: linear-gradient(135deg, #3cff8f, #56d6ff);
  box-shadow: 0 0 26px rgba(60, 255, 143, 0.55);
}

.portfolio-item {
  border-radius: 0;
  border: 1px solid rgba(60, 255, 143, 0.22);
  clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 94% 100%, 0% 100%);
}

.portfolio-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(2, 12, 7, 0.52));
}

.portfolio-title,
.portfolio-description {
  color: #d5ffea !important;
}

.process-step {
  border-radius: 0;
  clip-path: polygon(0% 0%, 100% 0%, 100% 88%, 92% 100%, 0% 100%);
  background: rgba(5, 18, 11, 0.92);
}

.process-step h3,
.process-step p {
  color: #ddffeb;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.75);
}

.step-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--matrix-green);
  text-shadow: 0 0 20px #2eff7e;
  border: none;
  background: transparent;
}

.faq__item {
  border: 1px solid rgba(60, 255, 143, 0.18);
  margin-bottom: 12px;
  border-radius: 0;
  clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 96% 100%, 0% 100%);
  background: rgba(4, 14, 9, 0.86);
}

.faq__item.active {
  background: rgba(7, 22, 14, 0.8);
  border-color: rgba(60, 255, 143, 0.46);
}

.faq__question,
.faq__answer {
  color: #ceffe1;
}

.faq__question:hover {
  color: #83ffb7;
}

.contact-form {
  border-radius: 0;
  clip-path: polygon(0% 0%, 100% 0%, 100% 92%, 95% 100%, 0% 100%);
  border: 1px solid rgba(60, 255, 143, 0.3);
  background: rgba(4, 14, 9, 0.9) !important;
}

.form-control,
.form-select {
  background: rgba(1, 8, 4, 0.94) !important;
  border: 1px solid rgba(60, 255, 143, 0.24) !important;
  color: #d8ffea !important;
  clip-path: polygon(2% 0%, 100% 0%, 98% 100%, 0% 100%);
}

.form-control::placeholder {
  color: #85a793;
}

.form-select option {
  background: #07140d;
  color: #dcffed;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(60, 255, 143, 0.6) !important;
  box-shadow: 0 0 0 0.22rem rgba(60, 255, 143, 0.2);
}

.modal-overlay {
  background: rgba(0, 0, 0, 0.72);
}

.modal-dialog {
  background: rgba(3, 12, 8, 0.95);
  border: 1px solid rgba(60, 255, 143, 0.34);
  color: #d9ffea;
}

.modal-close {
  background: rgba(60, 255, 143, 0.15);
  color: #bfffd6;
}

.modal-subtitle,
.modal-body {
  color: #c9f2d8;
}

footer {
  background: linear-gradient(180deg, #020603 0%, #000 100%);
  border-top: 1px solid rgba(60, 255, 143, 0.16);
}

.footer-logo {
  color: #d5ffe8;
  text-shadow: 0 0 18px rgba(60, 255, 143, 0.32);
}

.footer-title::after {
  background: linear-gradient(90deg, #3cff8f, #56d6ff);
}

.footer-link:hover {
  color: #79ffb1;
}

.social-icon {
  background: rgba(60, 255, 143, 0.08);
  border: 1px solid rgba(60, 255, 143, 0.24);
}

.social-icon:hover {
  background: linear-gradient(135deg, #3cff8f, #56d6ff);
  color: #001108;
}

#back-to-top {
  background: linear-gradient(135deg, #3cff8f, #56d6ff);
  color: #001408;
  border: none;
  border-radius: 0 !important;
  clip-path: none;
}

/* Убираем скосы у всех кнопок и ссылок-кнопок */
.btn,
.btn-primary-custom,
.details-link,
.portfolio-overlay .btn {
  clip-path: none !important;
}

/* Выравниваем кнопку "Пример сайта" в модальном окне под общий стиль кнопок */
.modal-body .btn.btn-primary,
.modal-actions .btn.btn-primary {
  background: linear-gradient(135deg, #3cff8f 0%, #1fd17f 55%, #56d6ff 100%);
  border: 1px solid rgba(60, 255, 143, 0.45);
  color: #00140a;
  border-radius: 0 !important;
  box-shadow: 0 0 20px rgba(60, 255, 143, 0.38), 0 0 30px rgba(86, 214, 255, 0.25);
}

.modal-body .btn.btn-primary:hover,
.modal-actions .btn.btn-primary:hover {
  color: #000;
  box-shadow: 0 0 32px rgba(60, 255, 143, 0.72), 0 0 46px rgba(86, 214, 255, 0.4);
}

/* Ключи доступа */
.section-matrix-keys {
  padding-top: 70px;
}

.stack-carousel {
  display: flex;
  gap: 20px;
  overflow: hidden;
  padding: 12px 6px 24px;
  width: max-content;
  will-change: transform;
  animation: stackAutoScroll var(--stack-scroll-duration, 42s) linear infinite;
}

.section-matrix-keys .container {
  overflow: hidden;
}

@keyframes stackAutoScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.key-card {
  height: auto;
  min-height: 156px;
  min-width: 210px;
  padding: 24px 16px;
  border: 1px solid rgba(60, 255, 143, 0.24);
  background: rgba(4, 14, 9, 0.9);
  border-radius: 0;
  clip-path: polygon(0% 0%, 100% 0%, 100% 88%, 92% 100%, 0% 100%);
  transition: var(--transition);
  scroll-snap-align: start;
  flex: 0 0 220px;
}

.portfolio-overlay .btn {
  border-radius: 0 !important;
  border: 1px solid rgba(60, 255, 143, 0.45);
  background: linear-gradient(135deg, rgba(60, 255, 143, 0.2), rgba(86, 214, 255, 0.26));
  color: #d7ffe8;
  box-shadow: 0 0 16px rgba(60, 255, 143, 0.35);
}

.portfolio-overlay .btn:hover {
  color: #00140a;
  background: linear-gradient(135deg, #3cff8f, #56d6ff);
  box-shadow: 0 0 30px rgba(60, 255, 143, 0.7);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}

.tag {
  padding: 4px 10px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  border: 1px solid rgba(60, 255, 143, 0.34);
  color: #beffd8;
  background: rgba(60, 255, 143, 0.08);
  clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
}

.key-card:hover {
  transform: translateY(-6px);
  border-color: rgba(60, 255, 143, 0.5);
  box-shadow: 0 0 26px rgba(60, 255, 143, 0.2);
}

.key-icon {
  display: inline-flex;
  margin-bottom: 12px;
  font-size: 2rem;
  color: #66ff9f;
  text-shadow: 0 0 16px rgba(60, 255, 143, 0.5);
}

.key-card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #d2ffe4;
}

@media (max-width: 768px) {
  #symbol-canvas {
    opacity: 0.2;
  }

  .hero-kicker {
    font-size: 0.76rem;
    letter-spacing: 0.05em;
  }

  .section {
    padding: 68px 0;
  }
}

/* ===== Глобальный откат скосов и мягкое свечение ===== */
/* Убираем скосы у всех ключевых элементов интерфейса */
.content,
.content-shell,
.card-custom,
.portfolio-item,
.process-step,
.faq__item,
.contact-form,
.form-control,
.form-select,
.key-card,
.tag,
.btn,
.btn-primary-custom,
.details-link,
.portfolio-overlay .btn {
  clip-path: none !important;
}

/* Возвращаем более мягкий уровень свечения, как в ранней версии */
.gradient-text {
  text-shadow: 0 0 12px rgba(110, 231, 255, 0.28);
}

.section-title {
  text-shadow: 0 0 10px rgba(60, 255, 143, 0.2);
}

.btn.btn-primary,
.btn-primary-custom,
.details-link,
.portfolio-overlay .btn,
.modal-body .btn.btn-primary,
.modal-actions .btn.btn-primary {
  box-shadow: 0 0 10px rgba(60, 255, 143, 0.22), 0 0 16px rgba(86, 214, 255, 0.14);
}

.btn.btn-primary:hover,
.btn-primary-custom:hover,
.details-link:hover,
.portfolio-overlay .btn:hover,
.modal-body .btn.btn-primary:hover,
.modal-actions .btn.btn-primary:hover {
  box-shadow: 0 0 16px rgba(60, 255, 143, 0.34), 0 0 24px rgba(86, 214, 255, 0.2);
}

.step-number,
#process .step-number {
  text-shadow: 0 0 12px #2eff7e;
}

/* ===== REFERENCE TRANSFER: HEADER + HERO + STACK ===== */
:root {
  --neo-bg-950: #09090b;
  --neo-bg-900: #121216;
  --neo-bg-glass: rgba(18, 18, 22, 0.74);
  --neo-border: rgba(74, 222, 128, 0.25);
  --neo-border-strong: rgba(74, 222, 128, 0.48);
  --neo-text-main: #e4e4e7;
  --neo-text-soft: #a1a1aa;
  --neo-green: #22c55e;
  --neo-green-soft: #4ade80;
}

body {
  font-family: "Inter", "Roboto", Arial, sans-serif;
  color: var(--neo-text-main);
  background: radial-gradient(circle at 50% 0%, #11131a 0%, #09090b 40%, #040507 100%);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.hero-kicker,
.hero-title,
.section-title {
  font-family: "Fira Code", "Fira Mono", "Roboto Mono", monospace;
}

.top-bar {
  background: rgba(9, 9, 11, 0.84);
  border-bottom: 1px solid rgba(74, 222, 128, 0.18);
  backdrop-filter: blur(10px);
}

.top-bar span,
.top-bar i,
.top-bar-link {
  color: var(--neo-text-soft);
}

.top-bar-link:hover,
.topbar-phone:hover {
  color: var(--neo-green-soft);
}

.top-bar .social-icon {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.22);
}

.navbar {
  background: rgba(9, 9, 11, 0.88);
  border-bottom: 1px solid rgba(74, 222, 128, 0.2);
  backdrop-filter: blur(12px);
}

.navbar-brand-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.navbar-brand {
  color: #f4f4f5 !important;
  text-shadow: 0 0 14px rgba(74, 222, 128, 0.22);
  line-height: 1;
}

.slogan {
  margin-top: 4px;
  color: #7fcea0;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.nav-link {
  color: var(--neo-text-soft) !important;
}

.nav-link:hover {
  color: var(--neo-green-soft) !important;
}

.hero-section {
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: 120px 0 90px;
  background: transparent;
}

.hero-content {
  max-width: 940px;
  margin-inline: auto;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--neo-border);
  border-radius: 2px;
  padding: 8px 12px;
  color: #86efac;
  background: rgba(34, 197, 94, 0.08);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.hero-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--neo-green);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.55);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  color: #f4f4f5;
  background: none;
  -webkit-text-fill-color: initial;
  text-shadow: 0 0 22px rgba(34, 197, 94, 0.12);
}

.hero-subtitle {
  max-width: 760px;
  color: var(--neo-text-soft);
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  line-height: 1.65;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary-custom {
  border-radius: 4px;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
  color: #05200d;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.btn-outline-custom {
  border-radius: 4px;
  border: 1px solid rgba(63, 63, 70, 1);
  color: #d4d4d8;
  background: transparent;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.btn-outline-custom:hover {
  border-color: var(--neo-border-strong);
  color: #86efac !important;
  background: rgba(34, 197, 94, 0.08);
}

.section-title {
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.stack-subtitle {
  text-align: center;
  color: var(--neo-text-soft);
  margin-top: -42px;
  margin-bottom: 34px;
  font-size: 0.95rem;
}

.section-matrix-keys .container {
  overflow: hidden;
}

.stack-carousel {
  gap: 18px;
  padding: 8px 0 20px;
}

.key-card {
  min-height: 170px;
  min-width: 210px;
  flex: 0 0 210px;
  border-radius: 10px;
  border: 1px solid rgba(63, 63, 70, 1);
  background: var(--neo-bg-glass);
  backdrop-filter: blur(8px);
  box-shadow: none;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.key-card:hover {
  transform: translateY(-6px);
  border-color: var(--neo-border-strong);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.3), 0 0 26px rgba(34, 197, 94, 0.16);
  background: rgba(24, 24, 27, 0.82);
}

.key-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  color: #71717a;
  text-shadow: none;
  transition: color 0.3s ease;
}

.key-card:hover .key-icon {
  color: var(--neo-green-soft);
}

.key-card h3 {
  font-family: "Fira Code", "Fira Mono", monospace;
  font-size: 1rem;
  color: #e4e4e7 !important;
}

.key-card .gradient-text,
.key-icon.gradient-text {
  background: none;
  -webkit-text-fill-color: initial;
  color: inherit !important;
  text-shadow: none;
}

@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 100px 0 74px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .stack-subtitle {
    margin-top: -26px;
    margin-bottom: 24px;
  }
}
