:root {
  --bg: #eef1f4;
  --paper: #ffffff;
  --paper-soft: #f7f8fa;
  --ink: #1c2733;
  --muted: #637180;
  --line: #d8dfe6;
  --accent: #184a7a;
  --accent-dark: #10385d;
  --accent-soft: #e7eef6;
  --shadow: 0 18px 40px rgba(20, 31, 44, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f5f7fa 0%, #e9edf1 100%);
  font: 16px/1.6 "Trebuchet MS", "Segoe UI", sans-serif;
}

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

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 32px;
}

.site-header,
.site-footer,
.hero,
.section,
.auth-wrap {
  width: 100%;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header {
  padding: 8px 0 22px;
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
}

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

.brand-text strong {
  font-size: 1.12rem;
}

.brand-text span,
.header-meta,
.site-footer p,
.section-note,
.service-card p,
.step p,
.detail-list,
.side-card p,
.form-status,
.form-line {
  color: var(--muted);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
}

.hero,
.section,
.auth-copy,
.auth-box {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero,
.section,
.auth-copy,
.auth-box {
  border-radius: 26px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 360px);
  gap: 22px;
  align-items: start;
  padding: 44px;
  background:
    linear-gradient(135deg, rgba(24, 74, 122, 0.05), transparent 40%),
    var(--paper);
}

.hero h1,
.section h2,
.auth-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.7rem);
  max-width: 11.5ch;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.02em;
}

.hero-title span {
  display: block;
}

.section h2,
.auth-copy h1 {
  font-size: clamp(2rem, 3.3vw, 3rem);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
}

.lead {
  max-width: 58ch;
  font-size: 1.05rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  border-color: var(--line);
  background: var(--paper-soft);
}

.button-wide {
  width: 100%;
}

.hero-side {
  display: grid;
  gap: 16px;
  align-content: start;
  grid-auto-rows: max-content;
}

.side-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper-soft);
}

.side-card-muted {
  background: var(--accent-soft);
}

.side-label {
  display: inline-block;
  margin-bottom: 12px;
  font-weight: 700;
}

.compact-list,
.detail-list {
  margin: 0;
  padding-left: 18px;
}

.section {
  margin-top: 22px;
  padding: 38px;
}

.section-head.narrow {
  max-width: 760px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.service-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper-soft);
}

.service-card h3,
.partner-col strong,
.step strong {
  margin: 0 0 8px;
  font-size: 1.04rem;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
}

.steps {
  display: grid;
  gap: 18px;
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.step:first-child {
  border-top: 0;
  padding-top: 0;
}

.step span {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.partner-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.partner-col {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper-soft);
}

.compact {
  margin-top: 12px;
}

.site-footer {
  margin-top: 22px;
  padding: 12px 2px 0;
}

.footer-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
}

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

.auth-wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: 22px;
  align-items: center;
  padding: 24px 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.auth-copy,
.auth-box {
  padding: 34px;
}

.auth-box {
  background: var(--paper);
}

.login-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 7px;
}

.form-row label {
  font-size: 0.92rem;
  font-weight: 700;
}

.form-row input {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.form-row input:focus {
  outline: 2px solid rgba(24, 74, 122, 0.14);
  border-color: var(--accent);
}

.form-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
}

@media (max-width: 960px) {
  .site-shell,
  .auth-wrap {
    width: min(100% - 24px, 1180px);
  }

  .hero,
  .section-split,
  .partner-box,
  .auth-wrap,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .site-header,
  .site-footer,
  .header-meta,
  .footer-links,
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .section,
  .auth-copy,
  .auth-box {
    padding: 24px;
  }
}
