/* Страница «Налоговый вычет»: локальные стили поверх оформления сайта. */
.tax-page {
  --tax-radius: 16px;
  --tax-border: 1px solid var(--accentColor-2D);
  --tax-shadow: 0 8px 24px rgba(53, 64, 77, 0.04);
  --tax-tint: color-mix(in srgb, var(--primaryColor) 7%, var(--accentColor));
  padding-bottom: 64px;
}

.tax-hero {
  padding-bottom: 28px;
}

.tax-hero__panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 28px 24px;
  background: var(--accentColor);
  background: var(--tax-tint);
  border-radius: var(--tax-radius);
}

.tax-hero__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 700px;
}

.tax-hero__eyebrow,
.tax-form-wrap__eyebrow {
  color: var(--textColor);
  color: color-mix(in srgb, var(--primaryColor) 60%, var(--textColor));
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.tax-hero__title {
  margin: 0;
}

.tax-hero__lead,
.tax-card__text,
.tax-form-wrap__text {
  margin: 0;
  color: var(--greyColor-1L);
  line-height: 1.6;
}

.tax-hero__art {
  display: none;
  flex: 0 0 112px;
  align-items: center;
  justify-content: center;
  height: 136px;
  background: var(--accentColor);
  border: var(--tax-border);
  border-radius: 12px;
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--primaryColor) 12%, transparent);
  transform: rotate(6deg);
}

.tax-ways {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.tax-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 24px;
  background: var(--accentColor);
  border: var(--tax-border);
  border-radius: var(--tax-radius);
  box-shadow: var(--tax-shadow);
}

.tax-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 2px;
  background: var(--accentColor-1D);
  background: var(--tax-tint);
  border-radius: 12px;
}

.tax-card__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.tax-card__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.tax-card__email {
  max-width: 100%;
  color: var(--primaryColor);
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.tax-card__copy {
  min-height: 32px;
  padding: 4px 0;
  color: var(--greyColor-1L);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.tax-card__copy[hidden] {
  display: none;
}

.tax-card__copy:hover {
  color: var(--primaryColor);
}

.tax-card__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 4px 18px;
  list-style: disc;
}

.tax-card__list li {
  color: var(--textColor);
  font-size: var(--font-text);
  line-height: 1.45;
}

.tax-card__list li::marker {
  color: var(--primaryColor);
}

.tax-card__clinics {
  display: grid;
  gap: 20px;
  margin-top: auto;
  margin-bottom: auto;
}

.tax-card__clinics li {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 14px;
  border-left: 2px solid var(--primaryColor-1L);
}

.tax-card__clinics strong {
  color: var(--textColor);
  font-size: var(--font-text);
  font-weight: 600;
  line-height: 1.5;
}

.tax-card__clinics span {
  line-height: 1.5;
}

.tax-card__clinics .tax-card__muted {
  color: var(--greyColor-2L);
  font-size: 13px;
}

.tax-card__actions {
  margin-top: auto;
  padding-top: 8px;
}

.tax-page .tax-card__btn,
.tax-page .tax-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  line-height: 1.4;
  white-space: normal;
}

.tax-card > .tax-card__btn {
  align-self: flex-start;
  margin-top: auto;
}

.tax-form-section {
  padding-top: 36px;
  scroll-margin-top: 100px;
}

.tax-form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding: 28px 24px;
  background: var(--accentColor);
  border: var(--tax-border);
  border-radius: var(--tax-radius);
  box-shadow: var(--tax-shadow);
}

.tax-form-wrap__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.tax-form-wrap__title {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.tax-form-wrap__note {
  margin-top: 8px;
  color: var(--greyColor-1L);
  font-size: 13px;
  line-height: 1.5;
}

.tax-form-wrap__body,
.tax-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.tax-form__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.tax-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.tax-field__label {
  color: var(--textColor);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.tax-field__req {
  color: var(--primaryColor);
  font-size: inherit;
}

.tax-field input,
.tax-field textarea {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 13px 16px;
  color: var(--textColor);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  background: var(--accentColor-1D);
  border: var(--tax-border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.tax-field input::placeholder,
.tax-field textarea::placeholder {
  color: var(--greyColor-1L);
  opacity: 1;
}

.tax-field textarea {
  min-height: 100px;
  resize: vertical;
}

.tax-field input {
  height: 50px;
}

.tax-field .tax-date-input {
  padding-right: 44px;
  background-image: url("../images/icon-ui/calendar-gray.5b434d77f31b.svg");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px;
}

.tax-datepicker {
  font-family: Inter, Arial, sans-serif;
  color: var(--textColor);
  background: var(--accentColor);
  border: 1px solid var(--accentColor-2D);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(53, 64, 77, 0.12);
}

.tax-datepicker .datepicker--day-name,
.tax-datepicker .datepicker--cell.-current- {
  color: var(--primaryColor);
}

.tax-datepicker .datepicker--cell.-selected-,
.tax-datepicker .datepicker--cell.-selected-.-focus- {
  color: var(--textColorDarkBlue);
  background: var(--primaryColor-1L);
}

.tax-datepicker .datepicker--cell.-focus- {
  background: var(--accentColor-1D);
}

.tax-field input:focus,
.tax-field textarea:focus {
  border-color: var(--primaryColor);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primaryColor) 15%, transparent);
}

.tax-field_error input,
.tax-field_error textarea {
  border-color: var(--redColor);
}

.tax-field__error {
  color: var(--redColor);
  font-size: 13px;
  line-height: 1.5;
}

.tax-form__submit {
  align-self: flex-start;
}

.tax-page a:focus-visible,
.tax-page button:focus-visible,
.tax-page .consent-checkbox__input:focus-visible {
  outline: 2px solid var(--textColor);
  outline-offset: 4px;
}

.tax-alert {
  padding: 16px 20px;
  font-size: var(--font-text);
  line-height: 1.5;
  border-radius: 8px;
}

.tax-alert_success {
  color: #1f6b3a;
  background: #e7f6ec;
}

.tax-alert_success strong {
  color: inherit;
}

.tax-alert_error {
  color: var(--redColor);
  background: color-mix(in srgb, var(--redColor) 8%, var(--accentColor));
}

.tax-docs {
  padding-top: 36px;
}

@media screen and (min-width: 768px) {
  .tax-hero__panel {
    padding: 36px;
  }

  .tax-hero__art {
    display: flex;
  }

  .tax-ways,
  .tax-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .tax-card:last-child,
  .tax-field_wide {
    grid-column: 1 / -1;
  }

  .tax-card:last-child .tax-card__clinics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tax-form-wrap {
    padding: 36px;
  }
}

@media screen and (min-width: 1024px) {
  .tax-hero {
    padding-bottom: 32px;
  }

  .tax-hero__panel {
    padding: 40px 48px;
  }

  .tax-hero__title {
    font-size: 40px;
  }

  .tax-hero__lead {
    font-size: 16px;
  }

  .tax-ways {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tax-card:last-child {
    grid-column: auto;
  }

  .tax-card:last-child .tax-card__clinics {
    grid-template-columns: minmax(0, 1fr);
  }

  .tax-form-section {
    padding-top: 40px;
  }

  .tax-form-wrap {
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    gap: 48px;
    padding: 40px;
  }

  .tax-form-wrap__head {
    gap: 16px;
  }
}

@media screen and (max-width: 767px) {
  .tax-hero__panel,
  .tax-card,
  .tax-form-wrap {
    padding: 24px 20px;
  }

  .tax-page .tax-card__btn,
  .tax-page .tax-form__submit {
    width: 100%;
    align-self: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tax-page *,
  .tax-page *::before,
  .tax-page *::after {
    transition: none;
    scroll-behavior: auto;
  }
}
