:root {
  --ref-bg-950: #09090b;
  --ref-bg-900: #18181b;
  --ref-bg-800: #27272a;
  --ref-bg-red: rgba(238, 57, 60, 0.45);
  --ref-border-red: rgba(238, 57, 60, 0.5);
  --ref-text-100: #f4f4f5;
  --ref-text-300: #d4d4d8;
  --ref-text-400: #a1a1aa;
  --ref-green-400: #4ade80;
  --ref-green-500: #22c55e;
  --ref-border: rgba(63, 63, 70, 0.9);
  --ref-border-green: rgba(74, 222, 128, 0.45);
  --ref-grid-max: 1520px;
  --ref-grid-vw: 96vw;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ref-text-300);
  background: var(--ref-bg-950);
}

::selection {
  background: rgba(34, 197, 94, 0.28);
  color: #bbf7d0;
}

/* Стили скроллбара в стиле референса */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #09090b;
}

::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

.content,
.content-shell {
  max-width: none;
  border: none;
  box-shadow: none;
  clip-path: none;
  padding: 0;
  background: transparent;
}

.section {
  padding: 86px 0;
}

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  animation: none !important;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Верхняя плашка как в примере */
.top-bar {
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: none;
}

.top-bar span,
.top-bar i,
.top-bar-link {
  color: var(--ref-text-400);
}

.top-bar-link:hover,
.topbar-phone:hover {
  color: var(--ref-green-400);
}

.top-bar .social-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  margin-right: 8px;
  border: 1px solid var(--ref-border);
  background: rgba(24, 24, 27, 0.72);
}

.top-bar .social-icon:hover {
  border-color: var(--ref-border-green);
  background: rgba(34, 197, 94, 0.12);
}

/* .topbar-social {
    display: flex;
    justify-content: center;
} */

/* Навигация */
.navbar {
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(34, 197, 94, 0.2);
  padding-top: 14px;
  padding-bottom: 14px;
  transition: all 0.3s ease;
  position: sticky;
  top: 0;
  z-index: 1050;
}

.navbar.scrolled {
  background: rgba(9, 9, 11, 0.84);
  border-bottom-color: rgba(74, 222, 128, 0.32);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.navbar-brand {
  color: var(--ref-text-100) !important;
  letter-spacing: 0.06em;
  font-family: "Fira Code", monospace;
  text-shadow: none;
}

.slogan {
  margin: 0;
  font-family: "Fira Code", monospace;
  color: var(--ref-text-400);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-link {
  color: var(--ref-text-400) !important;
  font-family: "Fira Code", monospace;
  font-size: 0.98rem;
  font-weight: 100 !important;
}

.nav-link:hover {
  color: var(--ref-green-400) !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  width: 0;
  background: var(--ref-green-500);
  height: 1px;
  bottom: -4px;
  transition: width 0.12s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.navbar-toggler-icon::before {
  background: var(--ref-green-500) !important;
}

.navbar-toggler-icon::after,
.navbar-toggler-icon span {
  background: var(--ref-green-500) !important;
}

.navbar-toggler {
  border-color: rgba(63, 63, 70, 0.9);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.18rem rgba(34, 197, 94, 0.25);
}

.navbar-collapse {
  background: transparent;
}

/* Hero */
.hero-section {
  min-height: 74vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 50px 0 88px;

}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 100%;
  margin-inline: auto;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(34, 197, 94, 0.32);
  background: rgba(24, 24, 27, 0.8);
  border-radius: 2px;
  padding: 7px 12px;
  margin-bottom: 18px;
  color: #86efac;
  font-size: 0.76rem;
  font-family: "Fira Code", monospace;
  letter-spacing: 0.06em;
}

.hero-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  /*background: var(--ref-green-500);*/
  background-color: red;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.55);
}

.hero-title {
  margin-bottom: 22px;
  line-height: 1.1;
  font-size: clamp(2rem, 5vw, 4.3rem);
  font-weight: 700;
  font-family: "Fira Code", monospace;
  color: var(--ref-text-100);
  background: none;
  -webkit-text-fill-color: initial;
  text-shadow: none;
  animation: none;
}

.hero-subtitle {
  max-width: 760px;
  margin-bottom: 36px;
  color: var(--ref-text-400);
  line-height: 1.65;
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Кнопки */
.btn-primary-custom,
.btn.btn-primary,
.details-link,
.portfolio-overlay .btn {
  border-radius: 3px !important;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(34, 197, 94, 0.1);
  color: var(--ref-green-400);
  text-transform: uppercase;
  font-family: "Fira Code", monospace;
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  box-shadow: none;
  text-shadow: none !important;
}

.btn-primary-custom {
  padding: 14px 20px;
}

.btn-primary-custom:hover,
.btn.btn-primary:hover,
.details-link:hover,
.portfolio-overlay .btn:hover {
  border-color: var(--ref-green-500);
  background: var(--ref-green-500);
  color: #0b120d !important;
  box-shadow: 0 0 22px rgba(34, 197, 94, 0.3);
}

.btn-outline-custom {
  border-radius: 3px;
  border: 1px solid var(--ref-border);
  background: transparent;
  color: var(--ref-text-300);
  font-family: "Fira Code", monospace;
  font-size: 0.83rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 20px;
  text-shadow: none !important;
}

.btn-outline-custom:hover {
  border-color: var(--ref-green-500);
  color: var(--ref-green-400) !important;
  background: rgba(34, 197, 94, 0.06);
}

/* Заголовки секций */
.section-title {
  margin-bottom: 48px;
  color: var(--ref-text-100);
  font-family: "Fira Code", monospace;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  font-size: 30px !important;
}

.section-title::after {
  display: none !important;
}

.section-title-marker,
.section-title .section-title-icon {
  color: var(--ref-green-500) !important;
  font-size: 35px !important;
  line-height: 1;
}

#access-keys .section-title-marker i {
  font-size: 30px !important;
}

.section-subtitle {
  color: var(--ref-text-400);
}

.gradient-text {
  background: none;
  -webkit-text-fill-color: initial;
  color: inherit;
  text-shadow: none;
}

/* Секция стека и карточки */
.stack-subtitle {
  margin: -28px auto 30px;
  text-align: center;
  color: var(--ref-text-400);
}

.section-matrix-keys .container {
  overflow: hidden;
}

.stack-carousel {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 6px 2px 14px;
}

.key-card {
  min-width: 210px;
  min-height: 160px;
  flex: 0 0 210px;
  border-radius: 10px;
  border: 1px solid var(--ref-border);
  background: rgba(24, 24, 27, 0.62);
  backdrop-filter: blur(7px);
  transition: all 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.key-card:hover {
  transform: translateY(-6px);
  border-color: var(--ref-border-green);
  background: rgba(24, 24, 27, 0.84);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), 0 0 24px rgba(34, 197, 94, 0.12);
}

.key-icon {
  margin-bottom: 14px;
  font-size: 2rem;
  color: #71717a !important;
  transition: color 0.3s ease;
  text-shadow: none;
}

.key-card:hover .key-icon {
  color: var(--ref-green-400) !important;
}

.key-card h3 {
  margin: 0;
  color: var(--ref-text-300) !important;
  font-size: 1rem;
  font-family: "Fira Code", monospace;
}

/* Блоки услуг, процесса, FAQ, формы */
.card-custom,
.process-step,
.faq__item,
.contact-form,
.portfolio-item,
.modal-dialog {
  border-radius: 12px;
  border: 1px solid var(--ref-border);
  background: rgba(24, 24, 27, 0.62);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.card-custom:hover {
  border-color: var(--ref-border-green);
  transform: translateY(-8px);
}

.card-icon {
  color: var(--ref-green-400);
}

.price-chip {
  border-radius: 4px;
  border: 1px solid rgba(74, 222, 128, 0.32);
  background: rgba(34, 197, 94, 0.1);
  color: #bbf7d0;
  box-shadow: none;
  font-family: "Fira Code", monospace;
}

.price-chip-description,
.card-custom p {
  color: var(--ref-text-400);
}

#services h3,
#process h3,
.faq__question {
  color: var(--ref-text-100);
}

#process .step-number {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 1px solid var(--ref-border);
  color: var(--ref-text-400);
  background: rgba(24, 24, 27, 0.8) !important;
  text-shadow: none;
  font-family: "Fira Code", monospace;
}

.process-step:hover .step-number {
  border-color: var(--ref-border-green);
  color: var(--ref-green-400);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.2);
}

/* Портфолио */
.portfolio-item {
  overflow: hidden;
}

.portfolio-img {
  transition: transform 0.7s ease, filter 0.7s ease, opacity 0.7s ease;
  filter: grayscale(0);
  opacity: 1;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.06);
  filter: grayscale(0);
  opacity: 1;
}

.portfolio-overlay {
  top: auto;
  bottom: 0;
  height: auto;
  min-height: 46%;
  background: linear-gradient(to top, rgba(9, 9, 11, 0.94), rgba(9, 9, 11, 0.38));
}

.portfolio-title,
.portfolio-description {
  color: var(--ref-text-100) !important;
}

/* FAQ */
.faq__item {
  margin-bottom: 12px;
  overflow: hidden;
}

.faq__item.active {
  background: rgba(24, 24, 27, 0.9);
  border-color: var(--ref-border-green);
}

.faq__question {
  padding-top: 18px;
  padding-bottom: 18px;
}

.faq__question:hover {
  color: var(--ref-green-400);
}

.faq__answer {
  color: var(--ref-text-400);
}

/* Форма */
.contact-form {
  background: rgba(9, 9, 11, 0.72) !important;
}

.alert.alert-info {
  border-radius: 8px;
  border: 1px solid rgba(74, 222, 128, 0.2);
  background: rgba(34, 197, 94, 0.08);
  color: #bbf7d0;
}

.form-label {
  color: var(--ref-text-400);
  font-family: "Fira Code", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-control,
.form-select,
textarea.form-control {
  border-radius: 6px;
  border: 1px solid var(--ref-border) !important;
  background: rgba(24, 24, 27, 0.78) !important;
  color: var(--ref-text-300) !important;
}

.form-control::placeholder {
  color: #71717a;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(74, 222, 128, 0.55) !important;
  box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 0.16);
}

/* Модалки */
.modal-overlay {
  background: rgba(9, 9, 11, 0.72);
}

.modal-dialog {
  color: var(--ref-text-300);
}

.modal-close {
  border-radius: 8px;
  border: 1px solid var(--ref-border);
  background: rgba(24, 24, 27, 0.86);
  color: var(--ref-text-300);
}

.modal-close:hover {
  border-color: var(--ref-border-red);
  background: var(--ref-bg-red);
  color: #bbf7d0;
}

/* Футер */
footer {
  border-top: 1px solid rgba(63, 63, 70, 0.5);
  background: #09090b;
}

.footer-logo {
  color: var(--ref-text-100);
  font-family: "Fira Code", monospace;
}

.footer-title {
  color: var(--ref-text-100);
  font-family: "Fira Code", monospace;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.footer-title::after {
  width: 42px;
  height: 2px;
  background: var(--ref-green-500);
}

.footer-link,
.footer-contact-item {
  color: var(--ref-text-400);
}

.footer-link:hover {
  color: var(--ref-green-400);
  padding-left: 0;
}

footer .social-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--ref-border);
  background: rgba(24, 24, 27, 0.75);
}

footer .social-icon:hover {
  border-color: var(--ref-border-green);
  background: rgba(34, 197, 94, 0.16);
  color: var(--ref-green-400);
}

.copyright {
  border-top-color: rgba(63, 63, 70, 0.5);
}

.copyright p {
  color: #71717a;
}

/* Кнопка вверх */
#back-to-top {
  width: 48px;
  height: 48px;
  border-radius: 8px !important;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(34, 197, 94, 0.16);
  color: #bbf7d0;
}

#back-to-top i {
  color: var(--ref-green-500);
}

#back-to-top:hover {
  background: rgba(34, 197, 94, 0.34);
}

/* Адаптив */
@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 14px;
    border-radius: 10px;
    border: 1px solid var(--ref-border);
    background: rgba(9, 9, 11, 0.92);
    padding: 14px;
  }

  .navbar .btn-primary-custom {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 10px 0 66px;
  }

  .hero-title {
    font-size: 30px !important;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 66px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .stack-subtitle {
    margin-top: -20px;
    margin-bottom: 24px;
    font-size: 0.9rem;
  }

  .top-bar .d-flex.align-items-center {
    justify-content: center;
  }

  .top-bar .d-inline-flex {
    justify-content: center;
  }

  #contact .g-recaptcha {
    transform: scale(0.88);
    transform-origin: center top;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  #contact button[type="submit"] {
    font-size: 15px !important;
  }

  .contact-social-image-wrap {
    max-width: 100%;
  }
}

/* ===== Refinement: closer to reference ===== */
body,
body * {
  font-family: "Fira Code", "Inter", "Roboto", monospace;
}

.topbar-phone {
  font-weight: 400 !important;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.navbar-brand-icon {
  font-size: 18px;
  color: var(--ref-green-500);
  transition: color 0.25s ease, transform 0.25s ease;
}

.navbar-brand:hover {
  color: var(--ref-green-400) !important;
  text-shadow: 0 0 18px rgba(74, 222, 128, 0.35);
}

.navbar-brand:hover .navbar-brand-icon {
  color: var(--ref-green-400);
  transform: translateY(-1px);
}

.hero-content {
  margin-inline: 0;
}

.hero-kicker-dot {
  animation: statusPulse 1.7s ease-in-out infinite;
}

@keyframes statusPulse {
  0% {
    opacity: 0.35;
    transform: scale(0.82);
    box-shadow: 0 0 3px rgba(34, 197, 94, 0.35);
  }
  50% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.72);
  }
  100% {
    opacity: 0.35;
    transform: scale(0.82);
    box-shadow: 0 0 3px rgba(34, 197, 94, 0.35);
  }
}

#services .section-title,
#portfolio .section-title,
#faq .section-title,
#contact .section-title {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title-marker {
  color: var(--ref-green-500);
  font-weight: 700;
}

#services .card-custom {
  min-height: 100%;
  padding: 2rem 2.3rem !important;
  border-radius: 16px;
  border-color: rgba(63, 63, 70, 0.9);
  background: rgba(24, 24, 27, 0.52);
  display: flex;
  flex-direction: column;
  align-items: flex-start !important;
  text-align: left !important;
  gap: 8px;
}

#services .card-custom h3 {
  font-size: 1.45rem;
  margin-bottom: 8px;
}

#services .card-custom p {
  line-height: 1.7;
}

#services .card-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  border: 1px solid rgba(63, 63, 70, 0.9);
  background: rgba(9, 9, 11, 0.62);
  margin-bottom: 14px;
}

#portfolio .portfolio-item {
  border-radius: 14px;
  border: 1px solid rgba(63, 63, 70, 0.9);
  background: rgba(24, 24, 27, 0.55);
}

#portfolio .portfolio-overlay .btn {
  padding: 0;
  margin-top: 8px;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ref-green-400);
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.95rem;
}

#portfolio .portfolio-overlay .btn:hover {
  color: #86efac !important;
  text-decoration: underline;
}

#faq .section-title-icon {
  display: none;
}

.faq__question {
  position: relative;
  padding-left: 46px;
}

.faq__question::before {
  content: ">>";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ref-green-500);
  opacity: 0.62;
  font-weight: 700;
}

.faq__item.active .faq__question::before,
.faq__item:hover .faq__question::before {
  opacity: 1;
}

.faq__icon {
  color: #71717a;
}

.faq__item.active .faq__icon {
  color: var(--ref-green-400);
}

.contact-shell {
  border: 1px solid rgba(63, 63, 70, 0.72);
  border-radius: 18px;
  background: rgba(24, 24, 27, 0.42);
  backdrop-filter: blur(10px);
  padding: 26px;
  margin: 0;
}

.contact-intro-title {
  color: var(--ref-text-100);
  font-size: 1.9rem;
  line-height: 1.28;
  margin-bottom: 14px;
}

.contact-intro-subtitle {
  color: var(--ref-text-400);
  margin-bottom: 30px;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-link-item {
  min-height: 58px;
  border: 1px solid rgba(63, 63, 70, 0.9);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--ref-text-300);
  text-decoration: none;
  background: rgba(9, 9, 11, 0.6);
}

.contact-link-item:hover {
  border-color: var(--ref-border-green);
  color: var(--ref-green-400);
  background: rgba(34, 197, 94, 0.08);
}

#contact-social .social-icon {
  border-radius: 10px;
}

.contact-social-image-wrap {
  width: 385px;
  max-width: 385px;
}

.contact-social-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(63, 63, 70, 0.9);
  object-fit: cover;
}

@media (max-width: 1200.98px) {
  .contact-social-image-wrap {
    width: 100%;
    max-width: 385px;
    display: block;
  }

  .contact-social-image {
    width: 85%;
  }
}

@media (max-width: 991.98px) {
  .contact-social-image-wrap {
    display: none;
  }
}

footer .container {
  padding-top: 8px;
}

.footer-grid {
  align-items: flex-start;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
}

.footer-logo-icon {
  font-size: 1.25rem;
  color: var(--ref-green-500);
}

.footer-about-text {
  color: var(--ref-text-400);
  max-width: 420px;
  line-height: 1.75;
}

.footer-socials {
  gap: 10px;
}

.footer-title {
  font-size: 0.95rem;
}

.footer-link {
  font-size: 0.9rem;
}

@media (max-width: 991.98px) {
  #services .section-title,
  #portfolio .section-title,
  #faq .section-title,
  #contact .section-title {
    justify-content: center;
    text-align: center;
  }

  .contact-shell {
    padding: 18px;
  }
}

/* ===== Screenshot Match: services/process/faq ===== */
#services .section-title,
#process .section-title,
#faq .section-title {
  margin-bottom: 26px;
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  line-height: 1.1;
}

#services .section-title::after,
#process .section-title::after,
#faq .section-title::after {
  display: none;
}

#process .section-title-marker {
  color: #facc15;
}

#faq .section-title-marker,
#services .section-title-marker {
  color: var(--ref-green-500);
}

/* Услуги_интерфейсы */
#services .card-custom {
  border-radius: 14px;
  border: 1px solid rgba(63, 63, 70, 0.75);
  background: linear-gradient(180deg, rgba(16, 18, 24, 0.84), rgba(9, 10, 14, 0.82));
  padding: 2.75rem 2.6rem !important;
  min-height: 320px;
}

#services .card-icon {
  display: none;
}

#services .card-custom h3 {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 1.6vw, 1.75rem);
  color: #f4f4f5;
  letter-spacing: 0.01em;
}

/* #services .card-custom h3::before {
  content: "[ ";
  color: var(--ref-green-500);
}

#services .card-custom h3::after {
  content: " ]";
  color: var(--ref-green-500);
} */

#services .card-custom p {
  font-size: 1.03rem;
  color: #a1a1aa;
  line-height: 1.55;
  max-width: 94%;
}

#services .price-chip {
  margin-top: auto;
  border-radius: 0;
  border: 1px solid rgba(34, 197, 94, 0.34);
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 18px;
}

#services .details-link {
  margin-top: 8px;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #4ade80;
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
}

/* Карточки услуг: ширина и поведение как в референсе */
#services .container {
  max-width: min(1520px, 96vw);
}

#services .row {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

#services .row > [class*="col-"] {
  width: auto;
  max-width: none;
  flex: initial;
  padding: 0;
}

#services .card-custom {
  box-shadow: none !important;
}

#services .card-custom:hover {
  box-shadow: none !important;
  border-color: rgba(74, 222, 128, 0.5) !important;
  background: linear-gradient(180deg, rgba(20, 28, 24, 0.92), rgba(10, 14, 16, 0.9)) !important;
}

/* Кнопка "Подробнее" как hero-кнопка "Обсудить задачу" */
#services .details-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 3px;
  border: 1px solid var(--ref-border) !important;
  background: transparent !important;
  color: var(--ref-text-300);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-shadow: none !important;
}

#services .details-link:hover {
  border-color: var(--ref-green-500) !important;
  color: var(--ref-green-400) !important;
  background: rgba(34, 197, 94, 0.06) !important;
  transform: none;
}

/* Кнопки в модальном окне услуг: стиль как "Подробнее" */
#service-modal .modal-actions .btn,
#service-modal .modal-body .btn.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px !important;
  border-radius: 3px !important;
  border: 1px solid var(--ref-border) !important;
  background: transparent !important;
  color: var(--ref-text-300) !important;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  box-shadow: none !important;
  text-shadow: none !important;
}

#service-modal .modal-actions .btn:hover,
#service-modal .modal-body .btn.btn-primary:hover {
  border-color: var(--ref-green-500) !important;
  color: var(--ref-green-400) !important;
  background: rgba(34, 197, 94, 0.06) !important;
}

/* Алгоритм_работы */
#process {
  background: transparent !important;
}

#process .row {
  position: relative;
  margin-top: 24px;
  isolation: isolate;
}

#process .row::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 44px;
  height: 1px;
  background: transparent;
  z-index: 0;
  pointer-events: none;
}

#process .row::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 44px;
  width: auto;
  height: 1px;
  background: rgba(34, 197, 94, 0.9);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.45);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  z-index: 0;
  pointer-events: none;
}

#process .row:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

#process .process-step {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  border-radius: 0;
  text-align: center;
  padding: 0 14px;
  position: relative;
  z-index: 1;
}

#process .step-number {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  border: 1px solid rgba(63, 63, 70, 0.9);
  background: #18181b !important;
  color: #71717a;
  font-size: 1.95rem;
  font-weight: 500;
  margin-bottom: 22px;
  transition: border-color 0.35s ease, color 0.35s ease, box-shadow 0.45s ease,
    transform 0.35s ease;
  position: relative;
  z-index: 2;
}

#process .process-step:hover .step-number,
#process .row:hover .process-step .step-number {
  border-color: rgba(74, 222, 128, 0.45);
  color: #4ade80;
  box-shadow: 0 0 22px rgba(34, 197, 94, 0.22);
  transform: translateY(-2px);
}

#process .row:hover .process-step:nth-child(1) .step-number {
  transition-delay: 0.05s;
}

#process .row:hover .process-step:nth-child(2) .step-number {
  transition-delay: 0.12s;
}

#process .row:hover .process-step:nth-child(3) .step-number {
  transition-delay: 0.19s;
}

#process .row:hover .process-step:nth-child(4) .step-number {
  transition-delay: 0.26s;
}

#process .process-step h3 {
  font-size: clamp(1.15rem, 1.25vw, 1.35rem);
  margin-bottom: 10px;
}

#process .process-step p {
  color: #a1a1aa;
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 90%;
  margin: 0 auto;
}

/* Частотные_запросы */
#faq .faq__items {
  max-width: 900px;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
}

#faq .faq__item {
  border-radius: 12px;
  border: 1px solid rgba(63, 63, 70, 0.78);
  background: rgba(16, 18, 24, 0.8);
  margin-bottom: 12px;
}

#faq .faq__question {
  font-size: clamp(1.05rem, 1.2vw, 1.55rem);
  font-weight: 500;
  color: #f4f4f5;
  padding: 16px 22px 16px 56px;
}

#faq .faq__question::before {
  content: ">>";
  left: 24px;
  color: var(--ref-green-500);
  opacity: 0.78;
  font-size: 1rem;
  font-weight: 100;
}

#faq .faq__answer {
  color: #a1a1aa;
  font-size: 0.9rem;
  line-height: 1.45;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
}

#faq .faq__item.active .faq__answer {
  margin: 0 16px 14px 16px;
  padding: 9px 0 0 12px;
  border-left: 2px solid rgba(34, 197, 94, 0.5);
  opacity: 1;
  max-height: 1200px !important;
}

#faq .faq__icon {
  color: #71717a;
  font-size: 1.05rem;
}

#faq .bi-check-circle::before {
  color: var(--ref-green-500) !important;
}

#faq .faq__item.active .faq__question {
  color: #4ade80;
}

#faq .faq__item.active .faq__icon {
  color: #4ade80;
}

@media (max-width: 991.98px) {
  #services .card-custom {
    min-height: auto;
    padding: 2rem 1.6rem !important;
  }

  #services .card-custom h3 {
    align-self: center;
    font-size: 1.4rem;
  }

  #process .row::before,
  #process .row::after {
    display: none;
  }

  #process .process-step {
    margin-bottom: 32px;
  }

  #faq .faq__question {
    font-size: 1rem;
    padding: 14px 14px 14px 48px;
  }

  #services .container {
    max-width: 100%;
  }

  #services .row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ===== Final Micro Audit: typography + shared grid ===== */
#services .container,
#portfolio .container,
#faq .container {
  max-width: min(var(--ref-grid-max), var(--ref-grid-vw));
}

#portfolio .row {
  --bs-gutter-x: 24px;
  --bs-gutter-y: 24px;
}

#portfolio .portfolio-title {
  font-size: 1.2rem;
  font-weight: 600;
}

#portfolio .portfolio-description {
  font-size: 0.9rem;
  line-height: 1.45;
}

#portfolio .portfolio-overlay {
  padding: 18px;
}

#faq .section-subtitle {
  font-size: 0.88rem;
  line-height: 1.45;
}

#faq .faq__question {
  font-size: 1rem;
  line-height: 1.35;
}

#faq .faq__answer {
  font-size: 0.88rem;
  line-height: 1.42;
}

#services .card-custom p {
  font-size: 0.98rem;
  line-height: 1.52;
}

#services .price-chip {
  font-size: 0.88rem;
}

.contact-intro-title {
  font-size: clamp(1.45rem, 1.9vw, 1.75rem);
}

.contact-intro-subtitle {
  font-size: 0.94rem;
  line-height: 1.6;
}

@media (max-width: 991.98px) {
  #portfolio .container,
  #faq .container {
    max-width: 100%;
  }

  #portfolio .row {
    --bs-gutter-x: 16px;
    --bs-gutter-y: 16px;
  }

  .section-title {
    justify-content: center;
    text-align: center;
  }
}
