.App {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--nz-text);
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.App hr {
  display: none;
}

.App .block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: var(--nz-radius-card);
  background: var(--nz-surface);
  padding: 18px;
}

.App .block h2,
.App .block h6 {
  margin: 0;
  color: var(--nz-text);
  letter-spacing: 0;
  text-wrap: balance;
}

.App .block h2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.App .block h6 {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--nz-muted);
}

.App .blockWrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.App .blockPreview,
.App .blockInputs {
  display: flex;
  min-width: 0;
  max-width: none;
  flex-direction: column;
  gap: 10px;
  border-radius: var(--nz-radius-bubble);
  background: var(--nz-news-surface);
  padding: 14px;
}

.App .blockPreview {
  width: auto;
  overflow: hidden;
}

.App .blockInputs input,
.App .blockInputs textarea,
.App .blockInputs label {
  width: 100%;
  font-size: 12px;
}

.App .blockInputs label {
  margin: 0;
  color: var(--nz-muted);
  font-weight: 700;
  line-height: 1.25;
}

.App .blockInputs input,
.App .blockInputs textarea {
  min-height: 44px;
  box-sizing: border-box;
  border: 0;
  border-radius: var(--nz-radius-content);
  background: var(--nz-surface);
  color: var(--nz-text);
  font: inherit;
  line-height: 1.45;
  outline: 1px solid var(--nz-border);
  outline-offset: -1px;
  padding: 12px 13px;
  transition-property: outline-color, background-color;
  transition-duration: 160ms;
  transition-timing-function: ease-out;
}

.App .blockInputs textarea {
  min-height: 92px;
  resize: vertical;
}

.App .blockInputs input:focus,
.App .blockInputs textarea:focus {
  background: var(--nz-surface);
  outline-color: var(--nz-accent);
}

.App .blockInputs input[type='checkbox'] {
  min-height: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--nz-accent);
  outline: 0;
}

.App .blockInputs input[type='checkbox'] + label {
  display: inline-flex;
  width: auto;
  min-height: 40px;
  align-items: center;
  margin-top: -28px;
  padding-left: 28px;
  color: var(--nz-text);
}

.App .blockInputs small {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: var(--nz-radius-pill);
  background: var(--nz-accent-soft);
  color: var(--nz-accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 0 10px;
}

.App .button {
  min-height: 40px;
  border: 0;
  border-radius: var(--nz-radius-action);
  background: var(--nz-accent);
  color: var(--nz-color-white);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 0 16px;
  transition-property: transform, opacity, background-color;
  transition-duration: 180ms;
  transition-timing-function: ease-out;
}

.App .button:hover,
.App .button:focus-visible {
  opacity: 0.9;
}

.App .button:focus-visible {
  outline: 2px solid var(--nz-accent);
  outline-offset: 3px;
}

.App .button:active {
  transform: scale(0.96);
}

@media (min-width: 960px) {
  .App .blockWrapper {
    grid-template-columns: minmax(320px, 1fr) minmax(220px, 0.55fr) minmax(220px, 0.55fr);
  }
}

.articleFigure,
.articleQuote,
.directQuote,
.articleCard--inline,
.navBetweenArticles {
  box-sizing: border-box;
  font-family: 'Montserrat', system-ui, sans-serif;
  letter-spacing: 0;
}

.articleFigure {
  display: flex;
  width: 100%;
  max-width: none;
  flex-direction: column;
  gap: 8px;
  float: none;
  clear: both;
  margin: 24px 0;
  color: var(--nz-muted);
}

.articleFigure--left,
.articleFigure--right,
.articleFigure--bigWidth {
  width: 100%;
  max-width: none;
  float: none;
  margin-right: 0;
  margin-left: 0;
}

.articleFigure--fullWidth {
  width: calc(100% + 50px);
  max-width: none;
  margin-right: -25px;
  margin-left: -25px;
}

.articleFigure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--nz-radius-content);
  object-fit: cover;
}

.articleFigure figcaption {
  margin: 0;
  color: var(--nz-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 15px;
  text-wrap: pretty;
}

.articleFigure--fullWidth figcaption {
  padding: 0 25px;
}

.articleFigure--fullWidth img {
  border-radius: 0;
}

.articleFigure--spoiler img {
  filter: blur(18px) saturate(0.75);
}

.articleQuote {
  display: flex;
  width: 100%;
  max-width: none;
  flex-direction: column;
  gap: 10px;
  float: none;
  clear: both;
  margin: 24px 0;
  border-radius: var(--nz-radius-bubble);
  background: var(--nz-news-surface);
  padding: 18px;
  color: var(--nz-reading-text);
}

.articleQuote--left,
.articleQuote--right {
  float: none;
  margin-right: 0;
  margin-left: 0;
}

.articleQuote h5,
.articleQuote h6,
.directQuote h5,
.directQuote h6 {
  margin: 0;
  color: var(--nz-text);
  letter-spacing: 0;
  text-transform: none;
}

.articleQuote h5,
.directQuote h5 {
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  text-wrap: balance;
}

.articleQuote h6,
.directQuote h6 {
  color: var(--nz-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 15px;
}

.articleQuote__text,
.directQuote__text {
  color: var(--nz-reading-text);
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  text-wrap: pretty;
}

.directQuote {
  display: flex;
  width: 100%;
  max-width: none;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
  border-radius: var(--nz-radius-card);
  background: var(--nz-news-surface);
  padding: 20px;
  color: var(--nz-reading-text);
}

.directQuote--quotes {
  position: relative;
}

.directQuote--photo {
  --article-block-direct-quote-padding: 20px;
  gap: 16px;
  padding: var(--article-block-direct-quote-padding);
}

.directQuote--quotes::before {
  content: '“';
  position: absolute;
  top: 6px;
  right: 16px;
  color: var(--nz-accent);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.18;
}

.directQuote__authorInfo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.directQuote--photo .directQuote__authorInfo h6 {
  color: var(--nz-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
}

.directQuote__photo {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: calc(var(--nz-radius-card) - var(--article-block-direct-quote-padding));
  object-fit: cover;
}

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

.directQuote__content h5:empty,
.directQuote__content h5:has(> br:only-child) {
  display: none;
}

.articleCard--inline {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  aspect-ratio: 1;
  min-height: 0;
  margin: 24px 0;
  overflow: hidden;
  border-radius: var(--nz-radius-bubble);
  background: var(--nz-news-media);
  color: var(--nz-article-text);
}

.articleCard--inline::before,
.articleCard--inline::after {
  content: '';
  pointer-events: none;
  grid-column: 1;
  grid-row: 1 / -1;
  z-index: 1;
}

.articleCard--inline::before {
  background: linear-gradient(0deg, var(--nz-article-shade), var(--nz-article-shade));
}

.articleCard--inline::after {
  background: linear-gradient(180deg, var(--nz-article-gradient-start) 40.43%, var(--nz-article-gradient-end) 67.51%);
}

.articleCard--inline.articleCard--invisible {
  display: none;
}

.articleCard__uptitle {
  z-index: 2;
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  width: fit-content;
  max-width: calc(100% - 40px);
  margin: 0 20px 10px;
  border-radius: var(--nz-radius-pill);
  background: var(--nz-accent);
  color: var(--nz-color-white);
  font-size: 10px;
  font-weight: 500;
  line-height: 10px;
  padding: 6px 12px;
}

.articleCard--inline article {
  display: contents;
}

.articleCard__image {
  grid-column: 1;
  grid-row: 1 / -1;
  overflow: hidden;
  border-radius: inherit;
  background: var(--nz-news-media);
  height: 100%;
  min-height: 0;
}

.articleCard__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.articleCard__content {
  z-index: 2;
  grid-column: 1;
  grid-row: 3;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: end;
  gap: 8px;
  padding: 0 20px 20px;
}

.articleCard__title {
  margin: 0;
  color: var(--nz-article-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  text-wrap: balance;
}

.articleCard__title a,
.articleCard__titleLink {
  color: inherit;
  text-decoration: none;
}

.articleCard__annotation,
.articleCard__annotation p {
  margin: 0;
  color: var(--nz-article-meta);
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  text-wrap: pretty;
}

.navBetweenArticles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.navBetweenArticles .articleCard--inline {
  margin: 0;
}

.navBetweenArticles .articleCard--inline article {
  display: block;
}

.navBetweenArticles .articleCard--inline {
  display: block;
  min-height: auto;
  aspect-ratio: auto;
  background: var(--nz-news-surface);
  color: var(--nz-text);
  padding: 18px;
}

.navBetweenArticles .articleCard__content {
  display: flex;
  gap: 8px;
  padding: 0;
}

.navBetweenArticles .articleCard__title {
  color: var(--nz-text);
  font-size: 15px;
  line-height: 20px;
}

.navBetweenArticles .articleCard__annotation,
.navBetweenArticles .articleCard__annotation p {
  display: block;
  color: var(--nz-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 17px;
}

.navBetweenArticles .articleCard--inline::before,
.navBetweenArticles .articleCard--inline::after {
  content: none;
}
