.rewards-page {
  min-width: 320px;
  background: var(--ng-page,#fff);
  color: var(--ng-text,#242424);
  font-family: var(--locale-font, 'NatGard Lato'), Lato, Arial, Helvetica, sans-serif;
}

.rewards-main {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 0 0 56px;
}

.rewards-layout {
  display: grid;
  grid-template-columns: minmax(0, 68.9%) minmax(0, 31.1%);
  align-items: start;
  gap: 0;
  min-width: 0;
}

.rewards-signed-out { display: none; }

.rewards-content__intro {
  min-height: 70px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.rewards-content__intro > img, .rewards-signed-out > img { width: 205px; height: auto; display: block; }
.rewards-sign-in-state { margin: 8px 0 0; color: var(--ng-primary-hover,#2c7500); font-size: 16px; font-weight: 700; line-height: 22px; white-space: nowrap; }

.rewards-content { padding: 32px; }
.rewards-content > h1 { margin: 20px 0 16px; color: var(--ng-text-body,#333); font-size: 20px; font-weight: 700; line-height: 1.42857; }

.earn-item { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; margin: 0 0 32px; }
.earn-badge { width: 88px; height: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px solid var(--ng-primary,#3c7900); border-radius: 6px; background: var(--ng-surface,#fff); color: var(--ng-primary-hover,#2c7500); text-align: center; }
.earn-badge span { color: var(--ng-muted,#666); font-size: 12px; font-weight: 700; line-height: 16px; letter-spacing: normal; }
.earn-badge strong { font-size: 24px; font-weight: 700; line-height: 28px; }
.earn-badge--anniversary { background: var(--ng-surface,#fff); border-color: var(--ng-primary,#4b8d00); color: var(--ng-text,#333); }
.earn-badge--anniversary strong { font-size: 22px; line-height: 36px; }
.earn-badge--share { border-color: var(--ng-primary,#4b8d00); background: var(--ng-surface,#fff); }
.earn-badge--share strong { margin-top: 4px; color: var(--ng-text,#333); }
.rewards-content, .rewards-sidebar, .earn-item, .earn-item__body, .earn-item__heading, .share-help { min-width: 0; }
.earn-item__body { max-width: 712px; }
.earn-item h2 { margin: 0; color: var(--ng-text-body,#333); font-size: 18px; font-weight: 700; line-height: 24px; }
.earn-item--anniversary h2 { color: var(--ng-text-black,#000); }
.earn-item__heading { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.earn-countdown { display: inline-flex; align-items: center; gap: 4px; margin: 0; color: #fff; font-size: 12px; font-weight: 700; line-height: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.earn-countdown span { min-width: 0; height: 25px; display: inline-flex; align-items: center; justify-content: center; padding: 4px 6px; border-radius: 4px; background: #4c4c4c; }
.earn-countdown i { color: #4c4c4c; font-style: normal; }
.rewards-text-link, .share-help a, .rewards-faq header > a, .rewards-about a { color: var(--ng-link,#126cc5); text-decoration: none; }
.rewards-text-link { display: inline-block; margin-left: auto; font-size: 16px; font-weight: 400; line-height: 24px; white-space: nowrap; }
.earn-progress-copy { margin: 0 0 4px; color: var(--ng-text-black,#000); font-size: 14px; line-height: 20px; }
.earn-progress-row { display: flex; align-items: baseline; gap: 0; margin-top: 0; }
.earn-progress-row > strong { display: flex; align-items: baseline; margin-right: 16px; color: var(--ng-text-body,#333); font-size: 18px; font-weight: 400; line-height: 24px; white-space: nowrap; }
.earn-progress-row > strong b { font-weight: 700; }
.earn-progress-row i { margin: 0 2px; padding: 0; color: var(--ng-text-body,#333); font-style: normal; font-weight: 400; }
.earn-progress-row > strong span { margin: 0 4px 0 0; font-weight: 400; }
.earn-progress { height: 8px; flex: 1; overflow: hidden; border-radius: 999px; background: var(--ng-surface,#e8e8e8); }
.earn-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--ng-primary,#458500); }

.earn-item--share { margin-top: 4px; margin-bottom: 32px; }
.earn-item--share .earn-item__body { display: flex; flex-direction: column; }
.share-lede { margin: 14px 0; color: var(--ng-text-body,#333); font-size: 14px; font-weight: 400; line-height: 24px; }
.share-lede strong { color: var(--ng-text-black,#000); font-weight: 700; }
.earn-item--share .earn-item__body > p:not(.share-lede) { max-width: 712px; margin: 14px 0; color: var(--ng-text,#3a3a3a); font-size: 14px; font-weight: 400; line-height: 24px; }
.share-help { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 4px; padding: 16px; border-radius: 4px; background: var(--ng-surface-field,#f7f7f7); }
.share-help section + section { padding-top: 39px; border-top: 1px solid var(--ng-border-soft,#e0e0e0); }
.share-help h3 { margin: 0 0 4px; color: var(--ng-text-body,#333); font-size: 16px; font-weight: 700; line-height: 24px; }
.share-help p { margin: 0; color: var(--ng-text-body,#333); font-size: 16px; font-weight: 400; line-height: 24px; }
.share-help__icon { width: 16px; height: auto; display: inline; margin: 0; vertical-align: middle; }
.share-help__code { color: var(--ng-primary-hover,#2c7500); font-weight: 400; }

.rewards-faq { max-width: 816px; padding: 16px 0; border-top: 0; }
.rewards-faq header { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 0 0 15px; }
.rewards-faq h2 { margin: 0; color: var(--ng-text-body,#333); font-size: 20px; font-weight: 700; line-height: 26px; }
.rewards-faq header > a { display: flex; align-items: center; padding: 0; font-size: 16px; font-weight: 700; line-height: 24px; }
.rewards-faq header > a svg { display: block; width: 16px; height: 16px; flex: 0 1 auto; }
.rewards-faq__list { border-top: 1px solid var(--ng-border,#dfdfdf); }
.rewards-faq details { border-bottom: 1px solid var(--ng-border,#dfdfdf); }
.rewards-faq summary { position: relative; min-height: 56px; display: block; padding: 16px 32px 16px 0; color: var(--ng-text-body,#333); font-size: 16px; font-weight: 400; line-height: 24px; cursor: pointer; list-style: none; }
.rewards-faq summary::-webkit-details-marker { display: none; }
.rewards-faq summary span { position: absolute; top: 50%; right: 10px; width: 14px; height: 14px; color: transparent; font-size: 0; line-height: 0; transform: translateY(-50%); }
.rewards-faq summary span::before, .rewards-faq summary span::after { position: absolute; content: ''; background: var(--ng-surface,#666); transition: transform 150ms ease; }
.rewards-faq summary span::before { top: 6px; left: 0; width: 14px; height: 2px; }
.rewards-faq summary span::after { top: 0; left: 6px; width: 2px; height: 14px; }
.rewards-faq details[open] summary span::after { transform: scaleY(0); }
.rewards-faq details > div { max-width: 700px; padding: 0 16px 16px; color: var(--ng-muted,#666); font-family: inherit; font-size: 16px; font-weight: 400; line-height: 24px; }
.rewards-faq details p { margin: 16px 0; }

.rewards-sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 32px; }
.rewards-summary, .rewards-transactions { border: 1px solid var(--ng-border,#ddd); border-radius: 12px; background: var(--ng-surface-white,#fff); }
.rewards-summary, .rewards-transactions, .rewards-about { min-width: 0; width: 100%; }
.rewards-summary { min-height: 90px; position: relative; padding: 16px; }
.rewards-summary h2, .rewards-transactions h2, .rewards-about h2 { margin: 0; color: var(--ng-text-body,#333); font-size: 18px; font-weight: 700; line-height: 24px; }
.rewards-summary p { margin: 8px 0 0; color: var(--ng-text-body,#333); font-size: 16px; font-weight: 700; line-height: 24px; }
.rewards-summary strong { position: absolute; right: 16px; bottom: 16px; color: var(--ng-primary-hover,#2c7500); font-size: 18px; font-weight: 700; line-height: 24px; }
.rewards-transactions { min-height: 310px; padding: 16px; }
.rewards-transactions > p { margin: 0 0 12px; color: var(--ng-text-body,#333); font-family: inherit; font-size: 14px; line-height: 20px; }
.transaction-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 0; scrollbar-width: none; }
.transaction-tabs::-webkit-scrollbar { display: none; }
.transaction-tabs button { min-width: 50px; height: 32px; flex: none; padding: 0 8px; border: 1px solid var(--ng-border,#d3d3d3); border-radius: 9999px; background: var(--ng-surface-white,#fff); color: var(--ng-muted,#494949); font-family: inherit; font-size: 16px; font-weight: 700; line-height: 24px; cursor: pointer; }
.transaction-tabs button[aria-selected="true"] { border-color: var(--ng-primary-hover,#2c7500); background: var(--ng-primary-soft,#e5f8e6); color: var(--ng-on-primary-soft,#FFFFFF); }
.transactions-empty { min-height: 160px; margin-top: 28px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 0; color: var(--ng-muted,#666); text-align: center; }
.transactions-empty__icon { width: 104px; height: 104px; display: grid; place-items: center; border-radius: 50%; background: var(--ng-surface,#f7f8f7); }
.transactions-empty svg { width: 46px; height: 60px; }
.transactions-empty p { width: 100%; max-width: none; margin: 16px 0 0; font-family: inherit; font-size: 14px; font-weight: 400; line-height: 20px; }
.rewards-about { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; padding: 0; text-align: center; }
.rewards-about h2 { width: 100%; margin: 0; color: var(--ng-text-body,#333); font-size: 14px; font-weight: 400; line-height: 20px; }
.rewards-about a { font-size: 14px; font-weight: 400; line-height: 20px; }

.rewards-signed-out { width: min(516px, 100%); margin: 37px auto 96px; padding: 40px 32px; border: 1px solid var(--ng-border,#ddd); border-radius: 12px; text-align: center; }
.rewards-signed-out > img { margin: 0 auto 24px; }
.rewards-signed-out h1 { margin: 0; color: var(--ng-text,#292929); font-size: 24px; font-weight: 700; line-height: 31px; }
.rewards-signed-out p { margin: 10px 0 24px; color: var(--ng-muted,#5a5a5a); font-size: 16px; line-height: 23px; }
.rewards-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 28px; border-radius: 6px; background: var(--ng-primary,#458500); color: var(--ng-on-primary,#FFFFFF); font-size: 16px; font-weight: 700; line-height: 22px; }

.rewards-page.rewards-page--signed-out .rewards-layout { display: none; }
.rewards-page.rewards-page--signed-out .rewards-signed-out { display: block; }

@media (max-width: 900px) {
  .rewards-main { width: min(704px, calc(100% - 48px)); padding-top: 28px; }
  .rewards-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .rewards-content, .rewards-sidebar { padding: 0; }
  .rewards-sidebar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .rewards-about { grid-column: 1 / -1; }
  .rewards-content__intro { min-height: 52px; }
  .rewards-content > h1 { margin-top: 14px; }
}

@media (max-width: 620px) {
  .rewards-main { width: min(calc(100% - 32px), 480px); padding: 22px 0 36px; }
  .rewards-content__intro { min-height: 46px; align-items: center; }
  .rewards-content__intro > img { width: 168px; }
  .rewards-sign-in-state { margin: 0; font-size: 13px; line-height: 18px; }
  .rewards-content > h1 { margin: 18px 0 16px; font-size: 18px; line-height: 24px; }
  .earn-item { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; margin-bottom: 20px; }
  .earn-badge { width: 64px; height: 64px; }
  .earn-badge span { font-size: 10px; line-height: 13px; }
  .earn-badge strong, .earn-badge--anniversary strong { font-size: 17px; line-height: 21px; }
  .earn-item h2 { font-size: 17px; line-height: 22px; }
  .earn-item__heading { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 0; }
  .earn-countdown { font-size: 11px; line-height: 17px; }
  .earn-countdown span { min-width: 25px; height: 21px; padding: 2px 5px; }
  .rewards-text-link { width: 100%; margin-left: 0; font-size: 15px; line-height: 21px; }
  .earn-progress-copy { margin-top: 10px; font-size: 13px; line-height: 18px; }
  .earn-progress-row { gap: 10px; margin-top: 2px; }
  .earn-progress-row > strong { font-size: 13px; line-height: 18px; }
  .earn-item--share { margin-top: 0; margin-bottom: 32px; }
  .share-lede { margin: 7px 0 18px; font-size: 15px; line-height: 21px; }
  .earn-item--share .earn-item__body > p:not(.share-lede) { font-size: 15px; line-height: 21px; }
  .share-help { grid-template-columns: 1fr; gap: 16px; margin-top: 15px; padding: 15px 16px; }
  .rewards-faq header { margin-top: 17px; }
  .rewards-faq h2 { font-size: 18px; line-height: 24px; }
  .rewards-faq summary { min-height: 50px; font-size: 15px; line-height: 21px; }
  .rewards-sidebar { width: 100%; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .rewards-summary, .rewards-transactions { border-radius: 10px; }
  .rewards-transactions { min-height: 273px; }
  .rewards-signed-out { margin: 20px auto 48px; padding: 28px 20px; }
  .rewards-signed-out > img { width: 168px; }
}

@media (max-width: 390px) {
  .rewards-sign-in-state { gap: 4px; font-size: 12px; }
  .rewards-content__intro > img { width: 156px; }
  .transaction-tabs { margin-right: -4px; }
}

/* NatGard bonus rules (14.11.2026): our terms instead of the old reference texts. */
.rewards-content > h1#rewards-title { font-size: 28px; line-height: 36px; margin: 16px 0 12px; }
.rewards-lede { max-width: 760px; margin: 0 0 20px; font-size: 18px; line-height: 28px; color: var(--ng-text-body,#333); }
.rewards-lede strong { color: var(--ng-primary-hover,#2c7500); }
.rewards-paused { max-width: 760px; margin: 0 0 20px; padding: 12px 16px; border-radius: 8px; background: #fff6e5; font-size: 15px; line-height: 22px; }
.rewards-steps { counter-reset: rewards-step; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 816px; margin: 0 0 32px; padding: 0; }
.rewards-steps li { counter-increment: rewards-step; position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 20px 64px; border: 1px solid var(--ng-border,#ddd); border-radius: 12px; background: var(--ng-surface-white,#fff); min-width: 0; }
.rewards-steps li::before { content: counter(rewards-step); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--ng-primary,#458500); color: var(--ng-on-primary,#fff); font-weight: 700; font-size: 16px; }
.rewards-steps strong { font-size: 17px; line-height: 24px; color: var(--ng-text-body,#333); }
.rewards-steps span { font-size: 15px; line-height: 22px; color: var(--ng-muted,#5a5a5a); }
.rewards-guest, .rewards-account { border: 1px solid var(--ng-border,#ddd); border-radius: 12px; background: var(--ng-surface-white,#fff); padding: 20px; min-width: 0; }
.rewards-guest h2 { margin: 0 0 8px; font-size: 20px; line-height: 28px; font-weight: 700; color: var(--ng-text,#292929); }
.rewards-guest p { margin: 0 0 16px; font-size: 15px; line-height: 22px; color: var(--ng-muted,#5a5a5a); }
.rewards-guest__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rewards-button--secondary { background: var(--ng-surface-white,#fff); color: var(--ng-primary,#458500); border: 1px solid var(--ng-primary,#458500); }
.rewards-account h2 { font-size: 20px; line-height: 28px; margin-bottom: 12px; }
.rewards-account .ng-rewards-summary { grid-template-columns: minmax(0, 1fr); }
.rewards-account .ng-rewards-list li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label amount" "date date"; row-gap: 2px; }
.rewards-account .ng-rewards-label { grid-area: label; } .rewards-account .ng-rewards-amount { grid-area: amount; } .rewards-account .ng-rewards-date { grid-area: date; font-size: 13px; }
.rewards-account .ng-rewards-history { margin-bottom: 12px; }
@media (max-width: 900px) {
  .rewards-sidebar { order: -1; }
  .rewards-guest, .rewards-account { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .rewards-content > h1#rewards-title { font-size: 22px; line-height: 30px; }
  .rewards-lede { font-size: 16px; line-height: 24px; }
  .rewards-steps { grid-template-columns: minmax(0, 1fr); }
  .rewards-steps li { padding: 16px 16px 16px 58px; }
  .rewards-steps li::before { left: 14px; top: 16px; }
  .rewards-guest__actions .rewards-button { flex: 1 1 auto; }
}

/* NatGard bonuses brand (14.11.2026): wordmark + the word instead of the old image. */
.rewards-brand{display:inline-flex;align-items:center;gap:10px}.rewards-brand img{display:block;width:120px;height:auto}.rewards-brand i{width:1px;height:30px;background:var(--ng-surface,#7a8981)}.rewards-brand b{color:var(--ng-muted,#56685f);font:700 22px/28px 'Arial Narrow','NatGard Noto Sans',Arial,sans-serif;letter-spacing:.3px}

/* "Делитесь и получайте" (shown only while it is on in the admin). */
.rewards-invite { max-width: 816px; margin: 0 0 32px; padding: 22px 24px; border: 1px solid #eedfb6; border-radius: 14px; background: #fffaeb; scroll-margin-top: 120px; }
.rewards-invite h2 { margin: 0 0 8px; font-size: 22px; line-height: 28px; }
.rewards-invite__lede { margin: 0 0 12px; font-size: 16px; line-height: 24px; }
.rewards-invite__steps { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 6px; font-size: 15px; line-height: 22px; }
.rewards-invite__note { margin: 0; font-size: 14px; line-height: 20px; color: var(--ng-muted, #646464); }
@media (max-width: 767px) { .rewards-invite { padding: 18px 16px; } }

/* The mark of the bonuses, the same as in the "Sign in" menu and in the questions (owner, 20.11.2026). */
.rewards-mark{display:block;width:min(208px,70%);height:auto}
/* The sign "Natgard | Бонусы" is the visible heading of the page (owner, 30.11.2026): the h1 with the same words
   stays in the markup for search engines and screen readers, out of sight. */
.rewards-content > h1#rewards-title { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
