/* Featured Stories + дата публикации в одну строку */
.dr-news-category-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
}

.dr-news-category-row .news-category {
  margin: 0;
}

.dr-news-category-row .date-format {
  margin: 0;
  flex-shrink: 0;
  text-align: right;
}

/* Секция регистрации — в духе USWDS / Treasury (Source Sans, сдержанные синие акценты) */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

#dr-registry-form {
  scroll-margin-top: 5rem;
}

.dr-reg {
  --dr-reg-blue: #005ea2;
  --dr-reg-blue-dark: #1a4480;
  --dr-reg-border: #dfe1e2;
  --dr-reg-bg: #f7f9fa;
  --dr-reg-text: #1b1b1b;
  --dr-reg-muted: #565c65;
  margin: 1.5rem 0 2rem;
  padding: 0;
  font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;
  color: var(--dr-reg-text);
}

.dr-reg__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem 2.5rem;
  align-items: start;
  max-width: 75rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 1.75rem;
  background: var(--dr-reg-bg);
  border: 1px solid var(--dr-reg-border);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
  .dr-reg__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 2rem 1.5rem 2.25rem;
    gap: 2rem 3rem;
  }
}

.dr-reg__form-col {
  min-width: 0;
}

.dr-reg__info-col {
  min-width: 0;
  padding-top: 0.25rem;
}

.dr-reg__form-title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--dr-reg-blue-dark);
  border-bottom: 3px solid var(--dr-reg-blue);
  padding-bottom: 0.5rem;
}

.dr-reg__field {
  margin-bottom: 1rem;
}

.dr-reg__field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.dr-reg__field input {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--dr-reg-text);
  background-color: #fff;
  border: 1px solid var(--dr-reg-border);
  border-radius: 3px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dr-reg__field input::placeholder {
  color: #71767a;
  opacity: 1;
}

/* Иконки слева — на обёртке (::before), чтобы не пропадали при :focus и autofill */
.dr-reg__input-shell {
  position: relative;
  display: block;
  width: 100%;
}

.dr-reg__input-shell::before {
  content: '';
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.125rem;
  height: 1.125rem;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
  z-index: 2;
}

.dr-reg__field--first-name .dr-reg__input-shell::before,
.dr-reg__field--last-name .dr-reg__input-shell::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23005ea2' stroke-width='1.65' viewBox='0 0 24 24'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.dr-reg__field--email .dr-reg__input-shell::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23005ea2' stroke-width='1.65' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpath d='m22 6-10 7L2 6'/%3E%3C/svg%3E");
}

.dr-reg__field--first-name .dr-reg__input-shell input,
.dr-reg__field--last-name .dr-reg__input-shell input,
.dr-reg__field--email .dr-reg__input-shell input {
  padding-left: 2.5rem;
  position: relative;
  z-index: 1;
  background-image: none;
}

.dr-reg__field input:hover {
  border-color: #71767a;
}

.dr-reg__field input:focus {
  outline: 0.25rem solid #2491ff;
  outline-offset: 0;
  border-color: var(--dr-reg-blue);
}

.dr-reg__submit {
  margin-top: 1.25rem;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  background-color: var(--dr-reg-blue);
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  width: 100%;
  max-width: 16rem;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.dr-reg__submit:hover {
  background-color: var(--dr-reg-blue-dark);
  box-shadow: 0 4px 14px rgba(0, 94, 162, 0.35);
  transform: translateY(-1px);
}

.dr-reg__submit:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 94, 162, 0.25);
}

.dr-reg__submit:focus {
  outline: 0.25rem solid #2491ff;
  outline-offset: 0.25rem;
}

.dr-reg__form-footnote {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--dr-reg-border);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--dr-reg-muted);
}

.dr-reg__form-footnote em {
  font-style: italic;
}

.dr-reg__status {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--dr-reg-blue-dark);
}

.dr-reg__lead {
  margin: 0 0 1.1rem;
  font-size: 1rem;
  line-height: 1.55;
}

.dr-reg__list {
  margin: 0 0 1.1rem;
  padding-left: 0;
  list-style: none;
  font-size: 0.98rem;
  line-height: 1.55;
}

.dr-reg__list-item {
  position: relative;
  margin-bottom: 0.75rem;
  padding-left: 1.65rem;
}

.dr-reg__list-item:last-child {
  margin-bottom: 0;
}

.dr-reg__list-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1rem;
  height: 1rem;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex-shrink: 0;
}

.dr-reg__list-item--license::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23005ea2' stroke-width='1.85' viewBox='0 0 24 24'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3C/svg%3E");
}

.dr-reg__list-item--security::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23005ea2' stroke-width='1.85' viewBox='0 0 24 24'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
}

.dr-reg__list-item--transparency::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23005ea2' stroke-width='1.85' viewBox='0 0 24 24'%3E%3Ccircle cx='6' cy='6' r='3'/%3E%3Ccircle cx='18' cy='18' r='3'/%3E%3Cpath d='M8.59 13.51l6.89 6.89M15.41 10.49l-6.89-6.89'/%3E%3C/svg%3E");
}

.dr-reg__list-item--guarantee::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23005ea2' stroke-width='1.85' viewBox='0 0 24 24'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E");
}

.dr-reg__list-label {
  font-weight: 700;
}

.dr-reg__info-footnote {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--dr-reg-muted);
}

.dr-reg__info-footnote em {
  font-style: italic;
}

/* Validation icons — on input-shell for name/email, on field for phone */
.dr-reg__field.feedback-form__field-group .dr-reg__input-shell {
  position: relative;
}

.dr-reg__field.feedback-form__field-group .dr-reg__input-shell::after {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.125rem;
  font-weight: 700;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 3;
}

.dr-reg__field.feedback-form__field-group.field-valid .dr-reg__input-shell::after {
  content: '\2713';
  color: var(--dr-reg-blue);
  opacity: 1;
}

.dr-reg__field.feedback-form__field-group.field-invalid .dr-reg__input-shell::after {
  content: '\2717';
  color: #d63e04;
  opacity: 1;
}

/* Phone field has no input-shell — use ::after on field itself */
.dr-reg__field--phone.feedback-form__field-group {
  position: relative;
}

.dr-reg__field--phone.feedback-form__field-group::after {
  position: absolute;
  right: 12px;
  top: auto;
  bottom: 12px;
  transform: none;
  font-size: 1.125rem;
  font-weight: 700;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 3;
}

.dr-reg__field--phone.feedback-form__field-group.field-valid::after {
  content: '\2713';
  color: var(--dr-reg-blue);
  opacity: 1;
}

.dr-reg__field--phone.feedback-form__field-group.field-invalid::after {
  content: '\2717';
  color: #d63e04;
  opacity: 1;
}

/* intlTelInput full width */
.dr-reg__field .iti {
  display: block;
  width: 100%;
}

.dr-reg__field .iti input[type="tel"] {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--dr-reg-text);
  background-color: #fff;
  border: 1px solid var(--dr-reg-border);
  border-radius: 3px;
}

.dr-reg__field .iti input[type="tel"]::placeholder {
  color: #71767a;
}

.dr-reg__field .iti ~ label {
  display: none;
}

/* Баннер-изображение над цитатой */
.dr-image-cta {
  margin: 0 0 0.25rem;
  max-width: 75rem;
  margin-left: auto;
  margin-right: auto;
}

.dr-image-cta__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.dr-image-cta a:focus {
  outline: 0.25rem solid #2491ff;
  outline-offset: 0.25rem;
}

/* Цитата — типографика как у абзацев статьи (.field--name-field-news-body p) */
.dr-quote {
  margin: 1.25rem auto 2rem;
  padding: 0;
  max-width: 75rem;
  font: inherit;
}

/*
  Тема Treasury задаёт для blockquote padding с нулём слева и фон quote.png — это перебивало padding у .dr-quote__block.
  У blockquote убираем внутренние отступы (!important), отступ от синей линии задаём у .dr-quote__body.
*/
figure.dr-quote blockquote.dr-quote__block {
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--dr-reg-border, #dfe1e2);
  border-left: 5px solid var(--dr-reg-blue, #005ea2);
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #fff 0%, var(--dr-reg-bg, #f7f9fa) 100%) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  font-weight: 400 !important;
  font-size: inherit !important;
  text-transform: none !important;
  color: inherit !important;
}

.dr-quote__body {
  padding: 0.75rem 0.75rem 0.75rem 1.25rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .dr-quote__body {
    padding: 0.85rem 1rem 0.85rem 1.35rem;
  }
}

.dr-quote__text {
  margin: 3px 0 10px;
  font: inherit;
  font-style: normal;
  line-height: inherit;
  color: inherit;
}

.dr-quote__text strong {
  font-style: normal;
  font-weight: 700;
}

.dr-quote__cite {
  display: block;
  margin: 0.5rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid var(--dr-reg-border, #dfe1e2);
  font: inherit;
  font-style: normal;
  line-height: inherit;
  color: inherit;
}
