/* ===== Hero Section (первый экран) ===== */
.rfix-hero {
  position: relative;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: 100vh;
  max-height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 2rem 0 1.5rem;
  overflow: hidden;
  box-sizing: border-box;
  isolation: isolate;
}

.rfix-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.rfix-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.rfix-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
  pointer-events: none;
}

/* Контент Hero в .container — отступы как у breadcrumbs, блок по центру по вертикали */
.rfix-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.rfix-hero__content {
  position: relative;
  z-index: 3;
  max-width: 640px;
  box-sizing: border-box;
}

.rfix-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.rfix-hero__subtitle {
  margin: 0 0 1.5rem;
  font-size: clamp(0.9375rem, 1.8vw, 1.125rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.98) !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Пульсация кнопки для привлечения внимания */
@keyframes rfix-cta-pulse {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.35);
  }
  50% {
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.5), 0 0 0 8px rgba(37, 211, 102, 0);
  }
}

@keyframes rfix-cta-shine {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.rfix-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff !important;
  text-decoration: none;
  background: #25d366;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transition: background 0.2s, transform 0.2s ease, box-shadow 0.2s;
  position: relative;
  z-index: 3;
  overflow: hidden;
  animation: rfix-cta-pulse 2s ease-in-out infinite;
}

.rfix-hero__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 45%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.15) 55%,
    transparent 100%
  );
  background-size: 200% 100%;
  background-position: -100% 0;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
  pointer-events: none;
}

.rfix-hero__cta:hover {
  background: #20bd5a;
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
  animation: none;
}

.rfix-hero__cta:hover::before {
  opacity: 1;
  animation: rfix-cta-shine 0.8s ease-out;
}

.rfix-hero__cta:active {
  transform: translateY(0) scale(1);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
}

@media (max-width: 768px) {
  .rfix-hero {
    height: 100vh;
    max-height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    padding: 1rem 0;
  }

  .rfix-hero__overlay {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0.7) 100%
    );
  }

  .rfix-hero__content {
    max-width: 100%;
  }

  .rfix-hero__cta {
    width: 100%;
    padding: 1rem 1.25rem;
  }
}

/* ===== Блок 2: Проблема и Решение (Почему это выгодно) ===== */
.rfix-why {
  padding: 3rem 0 4rem;
}

.rfix-why .container {
  max-width: 808px;
}

.rfix-why__title {
  margin: 0 0 1.5rem;
  font-family: "Kudryashev Headline", sans-serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  color: #8d3332;
}

.rfix-why__intro {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #4d4d4f;
}

.rfix-why__subtitle {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #373737;
}

.rfix-why__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rfix-why__item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding-left: 2rem;
  position: relative;
}

.rfix-why__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 1.25rem;
  height: 1.25rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2325d366'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  flex-shrink: 0;
}

.rfix-why__item-title {
  font-weight: 600;
  color: #373737;
  flex-shrink: 0;
}

.rfix-why__item-text {
  color: #4d4d4f;
  line-height: 1.55;
}

@media (max-width: 767px) {
  .rfix-why {
    padding: 2.5rem 0 3rem;
  }

  .rfix-why__item {
    flex-direction: column;
    gap: 0.25rem;
    padding-left: 2rem;
  }
}

/* ===== Блок 3: Какие услуги мы оказываем бизнесу? ===== */
.rfix-services {
  padding: 3rem 0 4rem;
  background: #f8f6f4;
}

.rfix-services__title {
  margin: 0 0 2rem;
  font-family: "Kudryashev Headline", sans-serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  color: #8d3332;
  text-align: center;
}

.rfix-services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
}

.rfix-services__card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s;
}

.rfix-services__card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.rfix-services__icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.rfix-services__card-title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #373737;
}

.rfix-services__card-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #4d4d4f;
}

@media (max-width: 767px) {
  .rfix-services {
    padding: 2.5rem 0 3rem;
  }

  .rfix-services__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ===== Блок 4: Для кого мы работаем? (сетка с иконками) ===== */
.rfix-for-who {
  padding: 3rem 0 4rem;
  background: #fff;
}

.rfix-for-who__title {
  margin: 0 0 2rem;
  font-family: "Kudryashev Headline", sans-serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  color: #8d3332;
  text-align: center;
}

.rfix-for-who__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.rfix-for-who__card {
  background: #f8f6f4;
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid #eae5e2;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.rfix-for-who__card:hover {
  border-color: #c0af95;
  box-shadow: 0 6px 20px rgba(141, 51, 50, 0.08);
  transform: translateY(-2px);
}

.rfix-for-who__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  font-size: 2rem;
  line-height: 1;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.rfix-for-who__card-title {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #373737;
  line-height: 1.3;
}

.rfix-for-who__card-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #4d4d4f;
}

@media (max-width: 1024px) {
  .rfix-for-who__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .rfix-for-who {
    padding: 2.5rem 0 3rem;
  }

  .rfix-for-who__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .rfix-for-who__card {
    text-align: left;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .rfix-for-who__icon {
    margin: 0;
    flex-shrink: 0;
  }
}

/* ===== Блок 5: Схема работы (в одну строку) ===== */
.rfix-how {
  padding: 3rem 0 4rem;
  background: #f8f6f4;
}

.rfix-how__title {
  margin: 0 0 2rem;
  font-family: "Kudryashev Headline", sans-serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  color: #8d3332;
}

.rfix-how__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
  counter-reset: rfix-step;
}

.rfix-how__item {
  counter-increment: rfix-step;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.75rem;
  position: relative;
  min-width: 0;
}

.rfix-how__item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  min-height: 2.5rem;
  background: linear-gradient(to bottom, transparent, #c0af95 20%, #c0af95 80%, transparent);
  opacity: 0.7;
}

.rfix-how__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.5rem;
  background: #8d3332;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 50%;
  flex-shrink: 0;
}

.rfix-how__num::before {
  content: counter(rfix-step);
}

.rfix-how__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.rfix-how__step {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #373737;
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.rfix-how__text {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #4d4d4f;
}

@media (max-width: 767px) {
  .rfix-how {
    padding: 2.5rem 0 3rem;
  }

  .rfix-how__list {
    flex-direction: column;
    gap: 0;
  }

  .rfix-how__item {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 0.75rem 0;
    gap: 1rem;
    border-bottom: 1px solid #eae5e2;
  }

  .rfix-how__item:last-child {
    border-bottom: none;
  }

  .rfix-how__item:not(:last-child)::after {
    display: none;
  }

  .rfix-how__num {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .rfix-how__content {
    align-items: flex-start;
  }

  .rfix-how__step {
    margin-bottom: 0.125rem;
    font-size: 1rem;
  }

  .rfix-how__text {
    font-size: 0.875rem;
  }
}

/* ===== Блок «Нам доверяют» ===== */
.rfix-trust {
  padding: 3rem 0 4rem;
}

.rfix-trust__title {
  margin: 0 0 2rem;
  font-family: "Kudryashev Headline", sans-serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  color: #8d3332;
  text-align: center;
}

.rfix-trust__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
}

.rfix-trust__card {
  background: #f8f6f4;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #eae5e2;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rfix-trust__card:hover {
  border-color: #c0af95;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.rfix-trust__icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.rfix-trust__card-title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #373737;
}

.rfix-trust__card-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #4d4d4f;
}

@media (max-width: 767px) {
  .rfix-trust {
    padding: 2.5rem 0 3rem;
  }

  .rfix-trust__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ===== Блок 6: Форма захвата (Lead Form) + изображение справа ===== */
.rfix-lead {
  padding: 3rem 0 4rem;
  background: #8d3332;
  color: #fff;
}

.rfix-lead__wrap {
  display: flex;
  align-items: stretch;
  gap: 2.5rem;
}

.rfix-lead__form-col {
  flex: 0 1 480px;
  min-width: 0;
}

.rfix-lead__img-col {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.rfix-lead__img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.rfix-lead__title {
  margin: 0 0 0.75rem;
  font-family: "Kudryashev Headline", sans-serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  color: #fff;
}

.rfix-lead__text {
  margin: 0 0 2rem;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
  max-width: 100%;
}

.rfix-lead__form {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rfix-lead__message {
  padding: 0.875rem 1rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  line-height: 1.4;
  transition: opacity 0.25s, margin 0.25s;
}

.rfix-lead__message_hidden {
  display: none;
}

.rfix-lead__message_success {
  background: rgba(37, 211, 102, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.rfix-lead__message_error {
  background: rgba(220, 53, 69, 0.25);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.rfix-lead__submit:disabled {
  opacity: 0.8;
  cursor: not-allowed;
  transform: none;
}

.rfix-lead__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rfix-lead__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.rfix-lead__input {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: border-color 0.2s, background 0.2s;
}

.rfix-lead__input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.rfix-lead__input:focus {
  outline: none;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.rfix-lead__submit {
  margin-top: 0.5rem;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: #8d3332;
  background: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.rfix-lead__submit:hover {
  background: #f6f2ee;
  transform: translateY(-1px);
}

.rfix-lead__submit:active {
  transform: translateY(0);
}

@media (max-width: 767px) {
  .rfix-lead {
    padding: 2.5rem 0 3rem;
  }

  .rfix-lead__wrap {
    flex-direction: column;
    gap: 1.5rem;
  }

  .rfix-lead__form-col {
    flex: none;
  }

  .rfix-lead__img-col {
    min-height: 220px;
  }

  .rfix-lead__img {
    min-height: 220px;
  }
}
