/* ===== Партнерская программа: Hero с фоновой картинкой ===== */
.ptn-hero {
  position: relative;
  min-height: 42vh;
  padding: 0 0 2rem;
  overflow: hidden;
}

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

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

.ptn-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.ptn-hero .container {
  position: relative;
  z-index: 2;
}

.ptn-hero__content {
    padding-top: 0;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin-top: 80px;
}

.ptn-hero__title {
  margin: 0 0 1rem;
  font-family: "Kudryashev Headline", sans-serif;
  font-weight: 400;
  font-size: clamp(1.375rem, 3.2vw, 2.15rem);
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.ptn-hero__subtitle {
  margin: 0;
  font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.ptn-hero__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #8d3332 !important;
  text-decoration: none;
  background: #fff;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.ptn-hero__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.15) 40%,
    transparent 70%
  );
}

.ptn-hero__cta:hover {
  background: #f6f2ee;
  color: #8d3332 !important;
  transform: translateY(-1px);
}

/* ===== Форма заявки на партнерство ===== */
.ptn-lead {
  padding: 3rem 0 2rem;
  background: #f8f6f4;
  scroll-margin-top: 160px; /* отступ при скролле по якорю, чтобы не уходило под фикс. шапку */
}

.ptn-lead .container {
  max-width: 520px;
}

.ptn-lead__title {
  margin: 0 0 0.75rem;
  font-family: "Kudryashev Headline", sans-serif;
  font-weight: 400;
  font-size: clamp(1.375rem, 3vw, 2rem);
  line-height: 1.2;
  color: #8d3332;
}

.ptn-lead__text {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.55;
  color: #4d4d4f;
}

.ptn-lead__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ptn-lead__message {
  padding: 0.875rem 1rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.ptn-lead__message_hidden {
  display: none;
}

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

.ptn-lead__message_error {
  background: rgba(220, 53, 69, 0.15);
  color: #721c24;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

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

.ptn-lead__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #373737;
}

.ptn-lead__input {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid #eae5e2;
  border-radius: 6px;
  background: #fff;
  color: #333;
  transition: border-color 0.2s;
}

.ptn-lead__input:focus {
  outline: none;
  border-color: #8d3332;
}

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

.ptn-lead__submit:hover {
  background: #650f24;
  transform: translateY(-1px);
}

.ptn-lead__submit:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

/* ===== Основные преимущества ===== */
.ptn-benefits {
  padding: 3rem 0 4rem;
  background: #f8f6f4;
}

.ptn-benefits__title {
  margin: 0 0 2rem;
  font-family: "Kudryashev Headline", sans-serif;
  font-weight: 400;
  font-size: clamp(1.375rem, 3vw, 2rem);
  line-height: 1.2;
  color: #8d3332;
  text-align: center;
}

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

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

.ptn-benefits__card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

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

.ptn-benefits__card-title {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #373737;
}

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

@media (max-width: 767px) {
  .ptn-benefits__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ===== Частые услуги для риелторов (список слева, картинка справа) ===== */
.ptn-services {
  padding: 3rem 0 4rem;
}

.ptn-services__wrap {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.ptn-services__content {
  flex: 1;
  min-width: 0;
}

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

.ptn-services__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ptn-services__img-col {
  flex: 0 0 380px;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.ptn-services__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.ptn-services__item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eae5e2;
}

.ptn-services__item:last-child {
  border-bottom: none;
}

.ptn-services__check {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2em;
  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;
}

.ptn-services__item-text {
  font-size: 1rem;
  line-height: 1.55;
  color: #4d4d4f;
}

.ptn-services__item-text strong {
  color: #373737;
}

/* ===== CTA: продолжение блока формы, единое целое с заявкой ===== */
.ptn-cta {
  padding: 0 0 4rem;
  background: #f8f6f4;
}

.ptn-cta__wrap {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 0 0;
  border-top: 1px solid rgba(141, 51, 50, 0.12);
  background: transparent;
}

.ptn-cta__content {
  flex: 1;
  min-width: 0;
}

.ptn-cta__text {
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: #373737;
}

.ptn-cta__text strong {
  color: #8d3332;
}

.ptn-cta__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none;
  background: #8d3332;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(141, 51, 50, 0.3);
  overflow: hidden;
}

.ptn-cta__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.08) 40%,
    transparent 70%
  );
}

.ptn-cta__btn:hover {
  background: #650f24;
  color: #fff !important;
  transform: translateY(-1px);
}

.ptn-cta__img-col {
  flex: 0 0 320px;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #eae5e2;
}

.ptn-cta__img {
  width: 100%;
  height: auto;
  min-height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 900px) {
  .ptn-cta__wrap {
    flex-direction: column;
    text-align: center;
    padding: 2rem 0 0;
  }

  .ptn-cta__img-col {
    flex: none;
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 900px) {
  .ptn-services__wrap {
    flex-direction: column;
    gap: 2rem;
  }

  .ptn-services__img-col {
    flex: none;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .ptn-hero {
    padding: 1.5rem 0 2rem;
  }

  .ptn-benefits,
  .ptn-services {
    padding: 2.5rem 0 3rem;
  }

  .ptn-cta {
    padding: 0 0 3rem;
  }

  .ptn-cta__wrap {
    padding: 1.5rem 0 0;
  }

  .ptn-cta__btn {
    width: 100%;
  }
}
