:root {
  --background: #08090c;
  --background-soft: #0d0f14;
  --card: rgba(17, 19, 26, 0.94);
  --card-light: rgba(26, 28, 36, 0.94);
  --border: rgba(255, 255, 255, 0.1);
  --border-bright: rgba(255, 255, 255, 0.18);
  --text: #f7f7f8;
  --muted: #9297a3;
  --muted-dark: #6f7480;
  --red: #a71820;
  --red-light: #d52832;
  --red-dark: #67090f;
  --green: #32d583;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(139, 15, 23, 0.12),
      transparent 40%
    ),
    var(--background);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: relative;
  z-index: 20;
  width: min(1380px, calc(100% - 48px));
  min-height: 104px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.brand-text strong {
  margin-top: 3px;
  font-size: 15px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(18, 20, 25, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}

.main-nav a {
  padding: 12px 18px;
  border-radius: 999px;
  color: #a9adb5;
  font-size: 13px;
  font-weight: 700;
  transition:
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.main-nav a:hover {
  color: white;
}

.main-nav a.active {
  color: white;
  background:
    linear-gradient(
      135deg,
      var(--red-light),
      var(--red)
    );
  box-shadow:
    0 8px 25px rgba(177, 22, 31, 0.3);
}

.header-account {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-summary {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-summary img,
.account-avatar-placeholder {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.account-summary img {
  object-fit: cover;
}

.account-avatar-placeholder {
  display: grid;
  place-items: center;
  background: var(--red);
  font-weight: 800;
}

.account-summary div {
  display: flex;
  flex-direction: column;
}

.account-summary strong {
  max-width: 130px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-summary span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.login-button,
.logout-button {
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}

.login-button {
  padding: 12px 18px;
  background: white;
  color: #111217;
}

.logout-button {
  padding: 10px 14px;
  border: 1px solid rgba(255, 74, 84, 0.25);
  color: #ff777f;
  background: rgba(159, 21, 29, 0.12);
}

.home-page {
  position: relative;
  flex: 1;

  background:
    linear-gradient(
      180deg,
      rgba(8, 9, 12, 0.08) 0%,
      rgba(8, 9, 12, 0.35) 70%,
      rgba(8, 9, 12, 0.95) 100%
    ),
    url("/images/background.png");

  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
@media (max-width: 900px) {
  .hero-section {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 28px;
  }

  .hero-content {
    width: 100%;
    max-width: 680px;
  }

  .hero-card {
    width: min(100%, 420px);
  }
}
.hero-section {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 90px);
  margin: 0;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 70px;

  padding: 80px max(7vw, 90px);

  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.hero-overlay {
  display: none;
}
.hero-content {
    max-width: 760px;
}

.hero-content h1 {
  max-width: 900px;
  margin: 24px 0 24px;
  font-size: clamp(70px, 8vw, 120px);
  line-height: .92;
  letter-spacing: -.06em;
  font-weight: 800;
}
.hero-content > p {
  max-width: 700px;
  margin: 0;
  color: #c5c8cf;
  font-size: 24px;
  line-height: 1.7;
}
.hero-content {
    margin-left: -120px;
}

.hero-card {
  position: relative;
  z-index: 2;
  width: 360px;
  flex-shrink: 0;
}

.hero-label,
.page-label,
.section-heading > span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(218, 43, 53, 0.28);
  border-radius: 999px;
  background: rgba(137, 13, 21, 0.17);
  color: #fa6670;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 760px;
  margin: 24px 0 20px;
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-content h1 span {
  display: block;
  color: #b8bac1;
}

.hero-content > p {
  max-width: 600px;
  margin: 0;
  color: #acb0ba;
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 48px;
  gap: 18px;
}
.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 58px;
    padding: 0 30px;

    font-size: 16px;
    font-weight: 700;
    border-radius: 14px;
    white-space: nowrap;
}

.primary-button {
  color: white;
  background:
    linear-gradient(
      135deg,
      var(--red-light),
      var(--red)
    );
  box-shadow:
    0 16px 35px rgba(173, 19, 28, 0.25);
}

.secondary-button {
  border: 1px solid var(--border-bright);
  background: rgba(12, 14, 18, 0.68);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.hero-card {
  padding: 30px;
  border: 1px solid var(--border-bright);
  border-radius: 24px;
  background:
    linear-gradient(
      145deg,
      rgba(27, 17, 21, 0.9),
      rgba(10, 11, 15, 0.91)
    );
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-card-logo {
  width: 94px;
  height: 94px;
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 42, 52, 0.25);
  border-radius: 22px;
  background: rgba(124, 13, 20, 0.12);
}

.hero-card-logo img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.hero-card > span {
  color: #e15e66;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-card h2 {
  margin: 9px 0 10px;
  font-size: 28px;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.hero-card a {
  display: inline-flex;
  margin-top: 22px;
  color: #ff7078;
  font-size: 12px;
  font-weight: 800;
}

.account-section,
.features-section {
  width: min(1220px, calc(100% - 48px));
  margin: 110px auto 0;
}

.section-heading {
  max-width: 650px;
}

.section-heading h2 {
  margin: 15px 0 10px;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.account-card {
  margin-top: 32px;
  padding: 28px;
  display: grid;
  grid-template-columns:
    minmax(260px, 1fr)
    minmax(180px, 0.6fr)
    minmax(160px, 0.5fr);
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--card);
}

.account-profile,
.account-rank,
.account-status {
  min-height: 95px;
  padding: 18px;
  display: flex;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card-light);
}

.account-profile {
  align-items: center;
  gap: 15px;
}

.account-profile img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.account-profile div,
.account-rank,
.account-status {
  flex-direction: column;
  justify-content: center;
}

.account-profile span,
.account-rank span,
.account-status span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.account-profile small {
  margin-top: 4px;
  color: var(--muted);
}

.account-status strong {
  color: var(--green);
}

.features-section {
  margin-bottom: 120px;
}

.feature-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    linear-gradient(
      145deg,
      rgba(22, 24, 31, 0.96),
      rgba(13, 14, 19, 0.96)
    );
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(209, 39, 49, 0.38);
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(172, 17, 26, 0.15);
  color: #f55e67;
  font-size: 12px;
  font-weight: 800;
}

.feature-card h3 {
  margin: 28px 0 10px;
  font-size: 20px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.standard-page,
.legal-page,
.error-page {
  flex: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 60px auto 100px;
}

.page-card,
.legal-card,
.error-card {
  padding: 42px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.page-card > h1,
.legal-card > h1,
.error-card > h1 {
  margin: 18px 0 12px;
  font-size: 42px;
  letter-spacing: -0.04em;
}

.page-card > p,
.error-card > p {
  color: var(--muted);
  line-height: 1.65;
}

.status-box,
.empty-state {
  margin-top: 30px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card-light);
}

.status-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.status-box span,
.status-box small {
  color: var(--muted);
}

.records-list {
  margin-top: 30px;
  display: grid;
  gap: 12px;
}

.record-card {
  padding: 22px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--card-light);
}

.record-card span {
  color: #ea5c65;
  font-size: 11px;
  font-weight: 800;
}

.record-card h2 {
  margin: 8px 0;
  font-size: 18px;
}

.record-card p {
  margin: 0;
  color: var(--muted);
}

.record-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.record-status small {
  color: var(--muted);
}

.legal-card {
  max-width: 900px;
  margin: 0 auto;
}

.legal-updated {
  margin: 0 0 42px;
  color: var(--muted);
}

.legal-card section {
  padding: 27px 0;
  border-top: 1px solid var(--border);
}

.legal-card section h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.legal-card section p {
  margin: 0;
  color: #a8abb4;
  line-height: 1.8;
}

.legal-card section a {
  color: #f2666e;
}

.error-page {
  display: grid;
  place-items: center;
}

.error-card {
  width: min(620px, 100%);
  text-align: center;
}

.error-code {
  color: #ed5962;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.error-card .primary-button {
  margin-top: 22px;
}

.site-footer {
  width: 100%;
  min-height: 135px;
  margin-top: auto;
  padding: 34px max(6vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--border);
  background: rgba(8, 9, 12, 0.94);
backdrop-filter: blur(14px);
}

.footer-information p {
  margin: 0 0 8px;
  color: #8d929e;
  font-size: 13px;
}

.footer-information small {
  color: #626873;
  font-size: 11px;
}

.footer-information a {
  color: #e45c65;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  color: #8d929e;
  font-size: 13px;
  transition: color 160ms ease;
}

.footer-links a:hover {
  color: white;
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-self: center;
    margin-bottom: 20px;
  }

  .hero-section {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 420px;
  }
}

@media (max-width: 760px) {
  .site-header {
    width: calc(100% - 28px);
  }

  .brand-text,
  .account-summary {
    display: none;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .main-nav a {
    white-space: nowrap;
  }

  .hero-section {
    width: calc(100% - 20px);
    min-height: 630px;
    padding: 65px 25px;
    border-radius: 24px;
  }

  .hero-content h1 {
    font-size: 45px;
  }

  .account-card,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .standard-page,
  .legal-page,
  .error-page,
  .account-section,
  .features-section {
    width: calc(100% - 28px);
  }

  .page-card,
  .legal-card,
  .error-card {
    padding: 26px;
  }

  .site-footer {
    padding: 32px 22px;
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 17px;
  }
}