:root {
  --ink: #111827;
  --muted: #647184;
  --line: #dbe4ef;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --blue: #2563eb;
  --blue-dark: #183ea8;
  --green: #0f9f7a;
  --rose: #ff5f7a;
  --yellow: #ffd166;
  --violet: #7c5cff;
  --shadow: 0 24px 70px rgba(20, 32, 56, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(37, 99, 235, 0.10), rgba(15, 159, 122, 0.09) 46%, rgba(255, 95, 122, 0.08)),
    var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

a {
  color: var(--blue);
  font-weight: 750;
  text-decoration: none;
}

a:hover {
  color: var(--green);
}

img {
  max-width: 100%;
}

.site-page {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(219, 228, 239, 0.84);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  width: min(1160px, calc(100% - 32px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  flex: 0 0 auto;
}

.brand:hover {
  color: var(--ink);
}

.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
  font-size: 18px;
  font-weight: 900;
}

.brand-text {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.main-nav,
.member-nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav a,
.member-nav a,
.language-switcher a,
.footer-links a {
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--ink);
  font-size: 14px;
}

.main-nav a:hover,
.member-nav a:hover,
.language-switcher a:hover,
.footer-links a:hover,
.main-nav .selected,
.member-nav .activeclass,
.account-tabs .activeclass {
  background: #eef5ff;
  color: var(--blue-dark);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-left: 8px;
}

.language-switcher img {
  width: 18px;
  height: auto;
  vertical-align: middle;
}

.member-bar {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 10px;
  display: flex;
  justify-content: flex-end;
}

.member-bar:empty {
  display: none;
}

.site-main {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 58px;
}

.hero {
  display: none;
}

.is-logged-in .site-main {
  width: min(1320px, calc(100% - 32px));
  padding-top: 32px;
}

.is-home.is-guest .hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  align-items: center;
  gap: 56px;
  min-height: 520px;
  padding: 34px 0 42px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--ink);
  font-size: 62px;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero__text {
  max-width: 620px;
  margin: 22px 0 0;
  color: #4b5b70;
  font-size: 20px;
}

.hero__actions,
.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.trust-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.trust-row span {
  border: 1px solid rgba(219, 228, 239, 0.9);
  border-radius: 8px;
  padding: 8px 11px;
  color: #415168;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.button,
input[type="submit"].button,
input[type="reset"].button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 13px 18px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
  cursor: pointer;
  font: 850 15px/1 Inter, ui-sans-serif, system-ui, Arial, Helvetica, sans-serif;
  text-decoration: none;
}

.button:hover,
input[type="submit"].button:hover {
  color: #fff;
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.button--secondary {
  background: var(--green);
  box-shadow: 0 14px 28px rgba(15, 159, 122, 0.18);
}

.button--ghost {
  color: var(--blue-dark);
  background: rgba(238, 245, 255, 0.92);
  box-shadow: none;
}

.button--ghost:hover {
  color: #fff;
}

.hero__visual {
  position: relative;
  min-height: 440px;
}

.app-card {
  position: relative;
  margin-left: auto;
  width: min(100%, 470px);
  border: 1px solid rgba(219, 228, 239, 0.92);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84)),
    var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--rose), var(--yellow), var(--green), var(--violet));
}

.app-card__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 4px 18px;
}

.app-card__top span,
.reminder-item span,
.floating-note span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.app-card__top strong {
  display: block;
  margin-top: 3px;
  font-size: 34px;
  line-height: 1;
}

.app-card__top em {
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--green);
  background: rgba(15, 159, 122, 0.10);
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}

.reminder-item {
  position: relative;
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px 16px 44px;
  background: #fff;
}

.reminder-item + .reminder-item {
  margin-top: 12px;
}

.reminder-item::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
}

.reminder-item--hot::before {
  background: var(--rose);
  box-shadow: 0 0 0 5px rgba(255, 95, 122, 0.14);
}

.reminder-item strong {
  color: var(--ink);
  font-size: 19px;
}

.reminder-item em {
  color: #526073;
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
}

.floating-note {
  position: absolute;
  right: -14px;
  bottom: 28px;
  width: 170px;
  border: 1px solid rgba(219, 228, 239, 0.92);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 38px rgba(20, 32, 56, 0.16);
  backdrop-filter: blur(14px);
}

.floating-note strong {
  display: block;
  margin-top: 5px;
  color: var(--blue-dark);
  font-size: 34px;
}

.content-shell {
  margin-top: 8px;
}

.seo-section {
  display: grid;
  gap: 24px;
  margin-top: 24px;
  border: 1px solid rgba(219, 228, 239, 0.94);
  border-radius: 8px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px rgba(20, 32, 56, 0.08);
}

.seo-section h2,
.seo-section h3 {
  margin: 0 0 10px;
}

.seo-section p {
  margin: 0;
  color: var(--muted);
}

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

.seo-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 24px;
}

.panel {
  border: 1px solid rgba(219, 228, 239, 0.94);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 18px 48px rgba(20, 32, 56, 0.10);
  padding: 30px;
  backdrop-filter: blur(14px);
}

.panel h1,
.panel h2,
.panel h3,
.panel h4,
.content-shell h1,
.content-shell h2,
.content-shell h3,
.content-shell h4 {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

.panel h2,
.content-shell h1 {
  font-size: 30px;
  line-height: 1.14;
}

.panel p {
  margin: 0 0 16px;
  color: var(--muted);
}

.form-error,
font[color="red"],
.error {
  color: #b42336 !important;
  font-weight: 850;
}

.modern-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.modern-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 850;
}

.modern-form label small {
  color: var(--muted);
  font-weight: 500;
}

input,
select,
textarea {
  max-width: 100%;
  border: 1px solid #cbd8e4;
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  font: 16px/1.3 Inter, ui-sans-serif, system-ui, Arial, Helvetica, sans-serif;
}

textarea {
  width: 100%;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 4px solid rgba(37, 99, 235, 0.15);
  border-color: var(--blue);
}

.check-row {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
}

.check-row input {
  width: 18px;
  height: 18px;
}

.field-grid,
.date-row {
  display: grid;
  gap: 12px;
}

.field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.drag-security {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #f8fbff;
}

.security-title {
  display: block;
  color: var(--ink);
  font-weight: 850;
}

.drag-security small {
  color: var(--muted);
  font-weight: 500;
}

.security-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 14px;
  align-items: center;
}

.security-image {
  position: relative;
  min-height: 132px;
  border: 1px solid #cbd8e4;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.20), rgba(15, 159, 122, 0.18)),
    linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%),
    linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%);
  background-position: 0 0, 0 0, 18px 18px;
  background-size: auto, 36px 36px, 36px 36px;
}

.security-image > span {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.security-image > span:nth-child(1) {
  width: 120px;
  height: 120px;
  left: 24px;
  top: 20px;
}

.security-image > span:nth-child(2) {
  width: 86px;
  height: 86px;
  right: 42px;
  top: 18px;
}

.security-image > span:nth-child(3) {
  width: 180px;
  height: 30px;
  left: 110px;
  bottom: 22px;
}

.security-drop {
  position: absolute;
  right: 26px;
  bottom: 24px;
  width: 86px;
  height: 66px;
  border: 2px dashed rgba(17, 24, 39, 0.38);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #516072;
  background: rgba(255, 255, 255, 0.70);
  font-size: 13px;
  font-weight: 900;
}

.security-drop.is-solved {
  border-color: var(--green);
  color: var(--green);
  background: rgba(15, 159, 122, 0.12);
}

.security-piece {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 66px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--piece-color), var(--piece-accent));
  box-shadow: 0 14px 28px rgba(20, 32, 56, 0.16);
  cursor: grab;
  font-size: 22px;
  font-weight: 950;
  touch-action: none;
}

.security-piece:active {
  cursor: grabbing;
}

.security-piece.is-solved {
  cursor: default;
  opacity: 0.72;
}

.bot-field {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.benefit-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
  font-weight: 800;
}

.benefit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.form-page,
.account-page {
  max-width: 800px;
  margin: 0 auto;
}

.reminders-page {
  max-width: none;
  padding: 34px;
}

.account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.account-tabs a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
}

.account-content {
  overflow-x: auto;
}

.reminder-list {
  display: grid;
  gap: 16px;
}

.reminder-list__meta {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.reminder-table {
  min-width: 940px;
  border-collapse: separate;
  border-spacing: 0 7px;
}

.reminder-table th {
  padding: 12px 14px;
  color: #516072;
  background: #eef5ff;
  font-size: 13px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
}

.reminder-table th:first-child {
  border-radius: 8px 0 0 8px;
}

.reminder-table th:last-child {
  border-radius: 0 8px 8px 0;
}

.reminder-table td {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px;
  background: #fff;
  vertical-align: middle;
}

.reminder-table .reminder-row:nth-child(odd) td {
  background: #f8fbff;
}

.reminder-table .reminder-row:hover td {
  background: #eaf6ff;
}

.reminder-table td:first-child {
  border-left: 1px solid var(--line);
  border-radius: 8px 0 0 8px;
  font-weight: 850;
}

.reminder-table td:last-child {
  border-right: 1px solid var(--line);
  border-radius: 0 8px 8px 0;
}

.reminder-table td:nth-child(4),
.reminder-table td:nth-child(5),
.reminder-table td:nth-child(6),
.reminder-table th:nth-child(4),
.reminder-table th:nth-child(5),
.reminder-table th:nth-child(6) {
  text-align: center;
}

.reminder-table td:nth-child(6) a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  margin: 2px;
  border-radius: 8px;
  padding: 6px 10px;
  background: #eef5ff;
}

.reminder-table td:nth-child(6) a:hover {
  color: #fff;
  background: var(--blue);
}

.BODY,
.BODY2,
.BODY3,
td,
tr,
th {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, Arial, Helvetica, sans-serif;
  font-size: 15px;
}

table {
  max-width: 100%;
}

.content-shell table table {
  border-collapse: collapse;
}

.content-shell td {
  padding: 8px;
}

.content-shell > table,
.account-content > table {
  width: 100%;
}

.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 38px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  flex-wrap: wrap;
}

.site-footer strong,
.site-footer span {
  display: block;
}

@media (max-width: 920px) {
  .site-header__inner {
    min-height: 0;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
  }

  .main-nav a,
  .member-nav a,
  .language-switcher a {
    padding: 8px 10px;
  }

  .member-bar {
    justify-content: flex-start;
  }

  .hero,
  .is-home.is-guest .hero,
  .home-grid,
  .seo-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .is-home.is-guest .hero {
    min-height: 0;
    gap: 26px;
    padding: 24px 0 30px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero__visual {
    width: 100%;
    min-height: 0;
  }

  .app-card {
    margin-left: 0;
    width: 100%;
  }

  .floating-note {
    right: 14px;
    bottom: -26px;
    width: 150px;
  }
}

@media (max-width: 560px) {
  .site-main {
    width: min(100% - 22px, 1160px);
    padding-top: 22px;
  }

  .brand-icon {
    width: 40px;
    height: 40px;
  }

  .brand-text {
    font-size: 20px;
  }

  .hero,
  .is-home.is-guest .hero {
    padding-top: 18px;
    gap: 18px;
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.05;
  }

  .hero__text {
    font-size: 17px;
    margin-top: 16px;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
  }

  .hero__actions .button {
    width: 100%;
    justify-content: center;
  }

  .trust-row {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 16px;
  }

  .trust-row span {
    text-align: center;
  }

  .panel {
    padding: 20px;
  }

  .field-grid,
  .date-row {
    grid-template-columns: 1fr;
  }

  .security-stage {
    grid-template-columns: 1fr;
  }

  .security-piece {
    justify-self: start;
  }

  .hero__visual {
    min-height: 0;
    padding-bottom: 0;
  }

  .app-card__top {
    display: grid;
  }

  .app-card__top strong {
    font-size: 29px;
  }

  .app-card {
    padding: 14px;
  }

  .reminder-item {
    padding: 14px 14px 14px 40px;
  }

  .floating-note {
    position: static;
    width: 100%;
    margin-top: 10px;
  }
}
