/* Mortgage Page Styles */

/* Main container styles - similar to projects page */
.projects-page.element {
  align-items: center;
}

/* Фон страницы как на странице контактов */
.element {
  background-color: #f5f5f5;
}

/* Breadcrumbs */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.breadcrumb-link {
  font-family: "Inter", Helvetica;
  font-weight: 400;
  color: #6c757d;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: #007bff;
}

.breadcrumb-separator {
  font-family: "Inter", Helvetica;
  font-weight: 400;
  color: #6c757d;
  font-size: 14px;
}

.breadcrumb-current {
  font-family: "Inter", Helvetica;
  font-weight: 400;
  color: #212529;
  font-size: 14px;
}

/* Hero Section */
.mortgage-hero {
  padding: 40px 0 20px !important;
  background: linear-gradient(180deg, rgba(248, 249, 250, 0.02) 0%, rgba(248, 249, 250, 0) 100%);
  width: 100%;
}

.hero-content {
  max-width: 1342px;
  width: 100%;
  padding: 0 15px;
  margin: 0 auto;
  position: relative;
}

.mortgage-title {
  font-family: var(--head-01-font-family);
  font-size: 36px;
  font-weight: 700;
  color: var(--dark-9);
  line-height: 1.2;
  margin-bottom: 24px;
  max-width: 66.66%;
}

.mortgage-description {
  font-family: "Inter", Helvetica;
  font-size: 18px;
  font-weight: 400;
  color: var(--dark-9);
  line-height: 1.6;
  max-width: 66.66%;
}

/* Advantages Section */
.advantages-section {
  padding: 40px 0;
  background-color: #ffffff;
  width: 100%;
}

.advantages-content {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  max-width: 1342px;
  width: 100%;
  padding: 0 15px;
  margin: 0 auto;
}

.advantages-text {
  flex: 1;
}

.advantages-image {
  flex: 0 0 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-title {
  font-family: var(--head-01-font-family);
  font-size: 32px;
  font-weight: 700;
  color: var(--dark-9);
  margin-bottom: 32px;
}

.section-subtitle {
  font-family: "Inter";
  font-size: 22px;
  font-weight: 400;
  color: var(--dark-9);
  margin-bottom: 32px;
}

.advantages-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}

.advantage-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.advantage-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: block;
}

.advantage-text {
  font-family: "Inter";
  font-size: 16px;
  font-weight: 400;
  color: var(--dark-9);
  line-height: 1.5;
}

.section-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

/* Partners Section */
.partners-section {
  padding: 40px 0;
  background-color: #f5f5f5;
  width: 100%;
}

.partners-content {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  max-width: 1342px;
  width: 100%;
  padding: 40px 15px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 40px;
}

.partners-text {
  flex: 1;
}

.partners-image {
  flex: 0 0 500px;
}

.partners-description {
  font-family: "Inter", Helvetica;
  font-size: 16px;
  font-weight: 400;
  color: #6c757d;
  margin-bottom: 32px;
  line-height: 1.6;
}

.banks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bank-item {
  padding: 16px;
  /*background-color: #ffffff;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}

.bank-logo {
  max-width: 100%;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* FAQ Section - стили как на главной странице */
.faq-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 15px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  background-color: #ffffff;
  max-width: 1342px;
  margin: 0 auto;
}

.faq-section .table-cell {
  display: flex;
  align-items: flex-start;
  font-family: "Unbounded", Helvetica;
  font-weight: 600;
  gap: 10px;
  padding: 8px 0px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  font-size: 28px;
}

.element .text-wrapper-20 {
    position: relative;
    display: flex;
    align-items: center;
    align-self: stretch;
    font-family: var(--text-m-14-font-family);
    font-weight: var(--text-m-14-font-weight);
    color: #868e96;
    font-size: var(--text-m-14-font-size);
    letter-spacing: var(--text-m-14-letter-spacing);
    line-height: var(--text-m-14-line-height);
    font-style: var(--text-m-14-font-style);
}

.faq-section .div-2 {
  display: flex;
  align-items: stretch;
  gap: 16px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.faq-section .div-12 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  position: relative;
  flex: 1;
  flex-grow: 1;
}

.faq-section .faq-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  background-color: #ffffff;
  border-radius: 24px;
  box-shadow: 0px 6px 8px #00000005;
}

.faq-section .row-top {
  align-items: center;
  gap: 24px;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  position: relative;
}

.faq-section .title {
  position: relative;
  flex: 1;
  margin-top: -1.00px;
  font-family: var(--head-03-font-family);
  font-weight: var(--head-03-font-weight);
  color: var(--dark-9);
  font-size: var(--head-03-font-size);
  letter-spacing: var(--head-03-letter-spacing);
  line-height: var(--head-03-line-height);
  font-style: var(--head-03-font-style);
  margin-bottom: 8px;
}

.faq-section .img-8 {
  position: relative;
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

/* Arrow rotation when FAQ is open */
.faq-section details[open] .img-8 {
  transform: rotate(180deg);
}

/* Remove default summary marker */
.faq-section summary {
  list-style: none;
  cursor: pointer;
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

/* CTA Section */
.cta-section {
  padding: 40px 0;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.cta-background {
  position: relative;
  height: 400px;
  max-width: 1342px;
  width: 100%;
  margin: 0 auto;
  border-radius: 36px;
  overflow: hidden;
}

.cta-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-content {
  text-align: center;
  max-width: 800px;
  width: 100%;
  padding: 0 15px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--head-01-font-family);
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 auto 32px auto;
  max-width: 600px;
  text-align: center;
}

.cta-btn {
  background-color: #ffc107;
  color: var(--dark-9);
  font-weight: 600;
  padding: 16px 32px;
  font-size: 16px;
}

.cta-btn:hover {
  background-color: #e0a800;
  transform: translateY(-2px);
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 40px;
  text-decoration: none;
  font-family: "Unbounded";
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: #ffc107;
  color: var(--dark-9);
}

.btn-primary:hover {
  background-color: #e0a800;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .advantages-content,
  .partners-content {
    flex-direction: column;
    gap: 40px;
  }

  .advantages-image,
  .partners-image {
    flex: none;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .faq-section .div-2 {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .mortgage-title {
    font-size: 32px;
  }

  .section-title {
    font-size: 28px;
  }

  .cta-title {
    font-size: 28px;
  }

  .banks-grid {
    grid-template-columns: 1fr;
  }

  .advantages-section,
  .partners-section,
  .faq-section {
    padding: 60px 0;
  }
}

@media (max-width: 860px) {
  /* 1. Заголовок "Поможем оформить ипотеку под выгодный процент" - 22px и на всю ширину */
  .mortgage-title {
    font-size: 22px !important;
    line-height: 1.3 !important;
    max-width: 100% !important;
  }
  
  /* 2. Описание - 14px и на всю ширину */
  .mortgage-description {
    font-size: 14px !important;
    line-height: 1.5 !important;
    max-width: 100% !important;
  }
  
  /* 3. Изображение после описания в мобильной версии */
  .advantages-section {
    padding: 24px 0 !important;
  }
  
  .advantages-content {
    flex-direction: column !important;
    gap: 24px !important;
  }
  
  .advantages-image {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .advantages-text {
    order: 2 !important;
  }
  
  /* 4. Преимущества - заголовок 18px, подзаголовок 14px */
  .section-title {
    font-size: 18px !important;
    line-height: 1.3 !important;
    margin-bottom: 16px !important;
  }
  
  .section-subtitle {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 24px !important;
  }
  
  /* Текст преимуществ */
  .advantage-text {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
  
  /* 5. Кнопка по центру */
  .btn-primary {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    margin: 0 auto !important;
  }
  
  /* 6. Иконки банков в 2 столбца */
  .banks-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  
  .bank-item {
    padding: 12px !important;
    min-height: 50px !important;
  }
  
  .bank-logo {
    max-height: 35px !important;
  }
  
  /* Скрыть изображение перед блоком партнеров в мобильной версии */
  .partners-image {
    display: none !important;
  }
  
  .partners-content {
    flex-direction: column !important;
    gap: 24px !important;
  }
  
  /* FAQ Section - мобильная версия как на главной странице */
  .faq-section {
    padding: 24px 16px !important;
  }

  .faq-section .faq-box {
    padding: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .faq-section .faq-box .div-5 {
    width: 100% !important;
    padding-right: 40px !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  .faq-section .faq-box .text-wrapper-33 {
    font-size: 16px !important;
    line-height: 1.4 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    font-weight: 600 !important;
  }

  .faq-section .faq-box .title {
    font-size: 16px !important;
    line-height: 1.4 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    font-weight: 600 !important;
  }

  .faq-section .table-cell {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }

  .faq-section .div-2 {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .faq-section .div-12 {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* CTA Section - мобильная версия */
  .cta-section {
    padding: 24px 16px !important;
    background-color: #ffffff !important;
  }
  
  .cta-background {
    height: auto !important;
    background: transparent !important;
    border-radius: 0 !important;
  }
  
  .cta-bg-image {
    display: none !important;
  }
  
  .cta-overlay {
    position: static !important;
    background: transparent !important;
  }
  
  .cta-content {
    text-align: center !important;
    padding: 24px 16px !important;
    background-color: #ffffff !important;
    border-radius: 16px !important;
  }
  
  .cta-title {
    font-size: 22px !important;
    line-height: 1.3 !important;
    color: #101113 !important;
    margin-bottom: 24px !important;
    max-width: 100% !important;
  }
  
  .cta-btn {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    padding: 16px 24px !important;
  }
}

@media (max-width: 480px) {
  .mortgage-hero {
    padding: 40px 0;
  }

  .mortgage-title {
    font-size: 22px !important;
  }

  .section-title {
    font-size: 18px !important;
  }

  .cta-title {
    font-size: 24px;
  }

  .advantages-section,
  .partners-section,
  .faq-section {
    padding: 40px 0;
  }

}

