:root {
  --ink: #15161d;
  --muted: #667085;
  --line: #e5e7eb;
  --brand: #e7435b;
  --brand-dark: #c92f45;
  --navy: #100821;
  --bg: #f7f8fb;
  --panel: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: var(--brand);
  text-decoration: none;
}

.site-header {
  background: var(--navy);
  color: #fff;
}

.header-inner {
  width: min(1450px, calc(100% - 48px));
  margin: 0 auto;
}

.account-links {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  justify-content: flex-end;
  margin-left: auto;
  white-space: nowrap;
}

.account-links a {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.account-links a + a {
  margin-left: 18px;
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.26);
}

.brand-row {
  padding: 24px 0 26px;
}

.brand-row-inner {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.brand-group {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: #fff;
  min-height: 50px;
  background: transparent;
}

.brand img {
  display: block;
  width: auto;
  max-width: 180px;
  max-height: 62px;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(2, 18px);
  gap: 2px;
  width: 42px;
  height: 38px;
  margin-right: 8px;
}

.brand-mark::before,
.brand-mark span,
.brand-mark::after {
  content: "";
  display: block;
  width: 16px;
  height: 36px;
  border-radius: 10px 10px 4px 4px;
  background: #fff;
}

.brand-mark::before {
  position: absolute;
  left: 0;
  top: 2px;
  background: #e7435b;
}

.brand-mark span:nth-child(1) {
  margin-left: 8px;
}

.brand-mark span:nth-child(2) {
  margin-left: 4px;
  background: #e7435b;
}

.brand-mark::after {
  position: absolute;
  right: 0;
  top: 0;
}

.brand-word {
  color: #fff;
  font-size: 43px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.catalog-label {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 44px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.red-bar {
  height: 34px;
  background: var(--brand);
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 32px auto;
}

.hero {
  margin-bottom: 26px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.05;
}

.hero p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.65;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card, .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.card h2, .panel h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.button.secondary {
  background: #fff;
  color: var(--brand);
}

.button:hover, button:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

input, select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
}

label {
  display: block;
  margin: 12px 0;
  font-weight: 700;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th, td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.notice {
  margin-bottom: 18px;
  border-radius: 8px;
  padding: 12px 14px;
  background: #ecfdf3;
  color: #027a48;
}

.notice-error {
  background: #fef3f2;
  color: #b42318;
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 40px auto;
  color: var(--muted);
  font-size: 13px;
}

.reader-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.reader-top h1 {
  margin: 0 0 6px;
}

.pdf-frame {
  display: block;
  width: 100%;
  height: min(82vh, 920px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 640px) {
  .header-inner {
    width: min(100% - 28px, 1450px);
  }

  .brand-row {
    padding: 18px 0 20px;
  }

  .brand-row-inner {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .brand-group {
    gap: 10px;
    flex: 0 1 auto;
    min-width: 0;
  }

  .brand {
    min-height: 44px;
  }

  .brand img {
    max-width: 130px;
    max-height: 46px;
  }

  .brand-word {
    font-size: 38px;
  }

  .catalog-label {
    min-height: 28px;
    font-size: 14px;
  }

  .account-links a {
    font-size: 12px;
    white-space: nowrap;
  }

  .red-bar {
    height: 28px;
  }

  th, td {
    padding: 10px 8px;
    font-size: 14px;
  }

  .reader-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .pdf-frame {
    height: 76vh;
  }
}
