/* Страница Выплата закята */

.zakat-page {
  width: 100%;
  min-height: 100vh;
  padding-top: var(--header-offset) !important;
}

.zakat-page .footer-container {
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
  padding-inline: clamp(24px, calc(100px - (1500px - 100vw) * 76px / 416px), 100px);
}

.zakat-hero-section {
  position: relative;
  width: 100%;
  padding-top: 32px;
  margin-bottom: 160px;
}

.zakat-hero-container {
  max-width: 1500px;
  padding-inline: clamp(24px, calc(100px - (1500px - 100vw) * 76px / 416px), 100px);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.zakat-title {
  font-family: 'SF Pro', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 64px;
  line-height: 100%;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #108669;
  margin: 0 0 64px;
  text-shadow: 0px 16px 25px 0px #10866929;
}

.zakat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
  border-radius: 32px;
  padding: 24px;
  background: #FFFFFF;
  box-shadow: 0px 0px 24px 1px #2F2F2F0A,
    0px 1px 1px -0.5px #2F2F2F0A,
    0px 3px 3px -1.5px #2F2F2F0A,
    0px 6px 6px -3px #2F2F2F0A,
    0px 12px 12px -6px #2F2F2F0A,
    0px 24px 24px -12px #2F2F2F0A,
    0px 0px 0px 1px #2F2F2F0A;
  overflow: hidden;
}

.zakat-card-star {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

.zakat-subtitle {
  position: relative;
  z-index: 1;
  font-family: 'SF Pro', system-ui, -apple-system, sans-serif;
  font-weight: 590;
  font-size: 32px;
  line-height: 100%;
  letter-spacing: -0.01em;
  color: #2B2B2B;
  margin: 0;
}

.zakat-rows {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .zakat-rows {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .zakat-rows {
    grid-template-columns: 1fr;
  }
}

.zakat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  grid-template-rows: auto auto;
  align-items: start;
  column-gap: 12px;
  row-gap: 12px;
  border-radius: 16px;
  padding: 16px 24px;
  background: #FAFAFA;
  border: 1px solid #EEEEEE;
  min-height: 56px;
  box-sizing: border-box;
  cursor: default;
  font: inherit;
  text-align: left;
  width: 100%;
}

.zakat-row:hover {
  border-color: #108669;
  background: #F5F5F5;
}

.zakat-row-label {
  grid-column: 1;
  grid-row: 1;
  font-family: 'SF Pro', system-ui, -apple-system, sans-serif;
  font-weight: 510;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: -0.01em;
  color: #BABABA;
}

.zakat-row-icon {
  grid-column: 2;
  grid-row: 1 / -1;
  width: 32px;
  height: 32px;
  object-fit: contain;
  align-self: center;
  justify-self: center;
}

.zakat-row-field {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
}

.zakat-row-amount-wrap {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  max-width: 100%;
  min-width: 0;
}

.zakat-row-measure {
  position: absolute;
  left: -9999px;
  top: 0;
  visibility: hidden;
  white-space: pre;
  pointer-events: none;
  font-family: 'SF Pro', system-ui, -apple-system, sans-serif;
  font-weight: 510;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: -0.01em;
  padding: 0;
  margin: 0;
  border: 0;
}

.zakat-row-input {
  flex: 0 0 auto;
  max-width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font-family: 'SF Pro', system-ui, -apple-system, sans-serif;
  font-weight: 510;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: -0.01em;
  color: #2B2B2B;
  text-align: left;
  outline: none;
  cursor: text;
  box-sizing: content-box;
}

.zakat-row-input::placeholder {
  color: #2B2B2B;
  opacity: 1;
}

.zakat-row-currency {
  flex-shrink: 0;
  margin-left: 0;
  letter-spacing: -0.04em;
  font-family: 'SF Pro', system-ui, -apple-system, sans-serif;
  font-weight: 510;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: -0.01em;
  color: #2B2B2B;
  user-select: none;
}

.zakat-results {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 44px;
}

@media (max-width: 768px) {
  .zakat-results {
    flex-direction: column;
    align-items: flex-start;
  }
}

.zakat-result {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zakat-result-text {
  font-family: 'SF Pro', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: -0.01em;
  color: #2B2B2B;
  margin: 0;
}

.zakat-result-sum {
  font-family: 'SF Pro', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 100%;
  letter-spacing: -0.01em;
  color: #108669;
  margin: 0;
}

.zakat-result-sum--main {
  font-weight: 590;
}

.zakat-result-sum-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 100%;
  min-height: 0;
}

.zakat-result-sum-input {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  outline: none;
  min-width: 1ch;
  min-height: 0;
  line-height: 100%;
  height: 1em;
  box-sizing: border-box;
  vertical-align: middle;
  -webkit-appearance: none;
  appearance: none;
  font-family: 'SF Pro', system-ui, -apple-system, sans-serif;
  font-size: 40px;
  letter-spacing: -0.01em;
  color: #108669;
}

.zakat-result-sum-input::placeholder {
  color: #108669;
  opacity: 0.7;
}

.zakat-result-sum-suffix {
  font-family: 'SF Pro', system-ui, -apple-system, sans-serif;
  font-weight: 590;
  font-size: 40px;
  line-height: 100%;
  letter-spacing: -0.01em;
  color: #108669;
  flex-shrink: 0;
}

.zakat-result-line {
  width: 226px;
  border-bottom: 2px solid #108669;
}

.zakat-result-formula {
  font-family: 'SF Pro', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 100%;
  letter-spacing: -0.01em;
  color: #BABABA;
  margin: 0;
}

.zakat-agreement {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.zakat-agreement-checkbox {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid #2B2B2B;
  background: transparent;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zakat-agreement--active .zakat-agreement-checkbox {
  border-color: #108669;
  background: #FFFFFF;
}

.zakat-agreement-text {
  font-family: 'SF Pro', system-ui, -apple-system, sans-serif;
  font-weight: 510;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: -0.01em;
  color: #2B2B2B;
}

.zakat-agreement-link {
  text-decoration: underline;
  text-decoration-color: #2B2B2B;
}

.zakat-submit {
  position: relative;
  z-index: 1;
  border-radius: 36px;
  padding: 16px 32px;
  background: #108669;
  border: none;
  cursor: pointer;
  font-family: 'SF Pro', system-ui, -apple-system, sans-serif;
  font-weight: 590;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  width: 100%;
  box-sizing: border-box;
}

.zakat-submit:hover:not(:disabled) {
  opacity: 0.9;
}

.zakat-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Информативный блок под карточкой */
.zakat-info-section {
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 64px;
  margin-bottom: 160px;
  box-sizing: border-box;
}

.zakat-info-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.zakat-info-button {
  border-radius: 36px;
  border: 1px solid #EFEFEF;
  padding: 16px 32px;
  background: transparent;
  font-family: 'SF Pro', system-ui, -apple-system, sans-serif;
  font-weight: 510;
  font-size: 16px;
  color: #2B2B2B;
  cursor: pointer;
  box-sizing: border-box;
}

.zakat-info-button:hover {
  border-color: #108669;
  color: #108669;
}

.zakat-info-button--active {
  background: #108669;
  border: 1px solid #108669;
  color: #FFFFFF;
}

.zakat-info-button--active:hover {
  color: #FFFFFF;
  border-color: #108669;
}

.zakat-info-text-block {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: 32px;
  padding: 24px;
  background: #FFFFFF;
  box-shadow: 0px 0px 24px 1px #2F2F2F0A,
    0px 1px 1px -0.5px #2F2F2F0A,
    0px 3px 3px -1.5px #2F2F2F0A,
    0px 6px 6px -3px #2F2F2F0A,
    0px 12px 12px -6px #2F2F2F0A,
    0px 24px 24px -12px #2F2F2F0A,
    0px 0px 0px 1px #2F2F2F0A;
}

.zakat-info-text {
  font-family: 'SF Pro', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: -0.01em;
  color: #2B2B2B;
  margin: 0;
}

/* Текст в блоке как на странице «Защита персональных данных» (подзаголовки, маркеры) */
.zakat-info-text-block .zakat-info-subtitle {
  font-family: 'SF Pro', system-ui, -apple-system, sans-serif;
  font-weight: 510;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: -0.01em;
  color: #2B2B2B;
  margin: 0;
}

/* Подзаголовок 20px, Medium (510) — для блока «Кто получает закят?» */
.zakat-info-text-block .zakat-info-heading {
  font-family: 'SF Pro', system-ui, -apple-system, sans-serif;
  font-weight: 510;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: -0.01em;
  color: #2B2B2B;
  margin: 0;
}

.zakat-info-text-block .zakat-info-text--with-bullets {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.zakat-info-text-block .zakat-info-text--with-bullets span {
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.zakat-info-text-block .zakat-info-text--with-bullets span::before {
  content: '•';
  display: inline-block;
  margin-right: 8px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 0.1em;
}

.zakat-info-text-block .zakat-info-text--with-bullet {
  display: flex;
  align-items: flex-start;
}

.zakat-info-text-block .zakat-info-text--with-bullet::before {
  content: '•';
  display: inline-block;
  margin-right: 8px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 0.1em;
}

/* Группа абзацев без отступа между строками */
.zakat-info-text-block .zakat-info-text-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* FAQ Section */
.zakat-page .faq-section {
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 160px;
  box-sizing: border-box;
  padding-inline: 0;
}

.zakat-page .faq-container {
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.zakat-page .faq-title {
  font-family: 'SF Pro', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 100%;
  letter-spacing: -0.01em;
  color: #2B2B2B;
  margin: 0;
}

.zakat-page .faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.zakat-page .faq-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 16px;
  padding: 8px;
  background: #FFFFFF;
  box-shadow: 0px 0px 24px 1px #2F2F2F0A,
    0px 1px 1px -0.5px #2F2F2F0A,
    0px 3px 3px -1.5px #2F2F2F0A,
    0px 6px 6px -3px #2F2F2F0A,
    0px 12px 12px -6px #2F2F2F0A,
    0px 24px 24px -12px #2F2F2F0A,
    0px 0px 0px 1px #2F2F2F0A;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.zakat-page .faq-item--open {
  border: 1px solid #108669;
  box-shadow: 0px 5px 15px 0px #10866959,
    0px 0px 24px 1px #2F2F2F0A,
    0px 1px 1px -0.5px #2F2F2F0A,
    0px 3px 3px -1.5px #2F2F2F0A,
    0px 6px 6px -3px #2F2F2F0A,
    0px 12px 12px -6px #2F2F2F0A,
    0px 24px 24px -12px #2F2F2F0A;
}

.zakat-page .faq-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.zakat-page .faq-item-question {
  font-family: 'SF Pro', system-ui, -apple-system, sans-serif;
  font-weight: 510;
  font-size: 24px;
  line-height: 100%;
  letter-spacing: -0.01em;
  color: #2B2B2B;
  margin-inline: 16px;
  margin-top: 20px;
  margin-bottom: 20px;
  flex: 1;
}

.zakat-page .faq-item-arrow {
  width: 15.5px;
  height: 7.5px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  margin-right: 16px;
}

.zakat-page .faq-item-arrow--rotated {
  transform: rotate(180deg);
}

.zakat-page .faq-item-answer-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.zakat-page .faq-item-answer-wrapper--open {
  max-height: 1000px;
}

.zakat-page .faq-item-answer {
  margin-top: 8px;
  gap: 10px;
  border-radius: 16px;
  padding: 24px 16px;
  background: #EFEFEF;
}

.zakat-page .faq-item-answer-text {
  font-family: 'SF Pro', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 110%;
  letter-spacing: -0.01em;
  color: #2B2B2B;
  margin: 0;
}

@media (max-width: 768px) {
  .zakat-card-star {
    display: none;
  }

  .zakat-title {
    font-size: 32px;
    margin-bottom: 32px;
  }

  .zakat-subtitle {
    font-size: 28px;
  }

  .zakat-card {
    padding: 24px;
    gap: 24px;
  }

  .zakat-results {
    gap: 16px;
  }

  .zakat-rows {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .zakat-result-text {
    font-size: 16px;
  }

  .zakat-result-sum {
    font-size: 32px;
  }

  .zakat-result-sum-input {
    font-size: 32px;
  }

  .zakat-result-sum-suffix {
    font-size: 32px;
  }

  .zakat-agreement-checkbox {
    width: 20px;
    height: 20px;
  }

  .zakat-agreement-text {
    font-size: 14px;
  }

  .zakat-submit {
    font-size: 16px;
  }

  .zakat-info-section {
    margin-top: 32px;
    margin-bottom: 64px;
  }

  .zakat-info-button,
  .zakat-info-button--active {
    padding: 12px 24px;
    font-size: 14px;
  }
}

@media (max-width: 1023px) {
  .zakat-info-buttons {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .zakat-info-buttons::-webkit-scrollbar {
    display: none;
  }

  .zakat-info-button {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* Вкладки закята обёрнуты в отдельные блоки, поэтому отступы между
   абзацами (gap у .zakat-info-text-block) до них не доходили. */
.zakat-info-text-block > [data-zakat-panel] {
  display: flex;
  flex-direction: column;
  gap: inherit;
}
