@font-face {
  font-family: "Onest";
  src: url("/static/fonts/onest-cyrillic.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  src: url("/static/fonts/onest-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #0f1b2d;
  --muted: #5b6b80;
  --line: #e3e8ef;
  --accent: #0aa5c9;
  --accent-ink: #077f9c;
  --accent-soft: #e3f6fb;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-lg: 22px;
  --radius-sm: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Onest", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-ink);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  hyphens: auto;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
h1 {
  font-size: clamp(36px, 6.2vw, 68px);
}
h2 {
  font-size: clamp(28px, 3.6vw, 42px);
}
h3 {
  font-size: 21px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* header */
.site-header {
  padding: 22px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
}
.logo span {
  color: var(--accent);
}
.nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}
.menu {
  display: none;
}

@media (max-width: 760px) {
  .nav {
    display: none;
  }
  .menu {
    display: block;
    position: relative;
  }
  .menu summary {
    list-style: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
  }
  .menu summary::-webkit-details-marker {
    display: none;
  }
  .menu nav {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 10;
    display: grid;
    min-width: 200px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: 0 18px 40px -20px rgb(15 27 45 / 0.35);
  }
  .menu nav a {
    padding: 10px 12px;
    color: var(--ink);
    text-decoration: none;
    border-radius: 6px;
  }
  .menu nav a:hover {
    background: var(--bg);
  }
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.15s;
}
.btn:hover {
  background: var(--accent-ink);
  color: #fff;
}
.btn-ghost {
  background: none;
  color: var(--ink);
  padding-inline: 4px;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.btn-ghost:hover {
  background: none;
  color: var(--accent-ink);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 600;
}
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* hero */
.hero {
  overflow-x: clip;
  padding: clamp(28px, 6vw, 72px) 0 clamp(48px, 7vw, 96px);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  margin-top: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero .lead {
  margin: 20px 0 0;
  max-width: 34em;
  font-size: 19px;
  color: var(--muted);
}
.hero .actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  align-items: center;
}

/* fan of four mini sites */
.fan {
  position: relative;
  height: 470px;
}
.mini {
  position: absolute;
  width: 52%;
  aspect-ratio: 5 / 6;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 30px 60px -30px rgb(15 27 45 / 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-origin: 50% 110%;
}
.mini-bar {
  display: flex;
  gap: 5px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
}
.mini-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
}
.mini-shot {
  flex: 1 1 0;
  min-height: 0;
  height: 0;
  width: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.mini-label {
  background: var(--surface);
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}
.mini:nth-child(1) {
  left: 0;
  top: 132px;
  transform: rotate(-7deg);
}
.mini:nth-child(2) {
  left: 16%;
  top: 88px;
  transform: rotate(-2deg);
}
.mini:nth-child(3) {
  left: 32%;
  top: 44px;
  transform: rotate(3deg);
}
.mini:nth-child(4) {
  left: 48%;
  top: 0;
  transform: rotate(8deg);
}
.fan-note {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  line-height: 1.35;
}
.fan-note b {
  color: #7fd9ec;
}

@media (prefers-reduced-motion: no-preference) {
  .mini {
    animation: deal 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .mini:nth-child(2) {
    animation-delay: 0.08s;
  }
  .mini:nth-child(3) {
    animation-delay: 0.16s;
  }
  .mini:nth-child(4) {
    animation-delay: 0.24s;
  }
  @keyframes deal {
    from {
      transform: rotate(0deg) translateY(30px);
      opacity: 0;
    }
  }
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .fan {
    height: 400px;
    max-width: 460px;
    width: 100%;
  }
}
@media (max-width: 520px) {
  .fan {
    height: 330px;
  }
  .mini {
    width: 56%;
  }
  .mini:nth-child(2) {
    left: 10%;
  }
  .mini:nth-child(3) {
    left: 20%;
  }
  .mini:nth-child(4) {
    left: 30%;
  }
  .fan-note {
    display: none;
  }
  .mini-label {
    font-size: 11px;
    padding: 8px;
  }
}

/* sections */
.section {
  padding: clamp(56px, 8vw, 104px) 0;
}
.section-head {
  max-width: 40em;
  margin-bottom: 40px;
}
.section-head p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink);
}
.type {
  padding: 24px 24px 28px 0;
  color: inherit;
  text-decoration: none;
  display: grid;
  gap: 10px;
  align-content: start;
}
.type + .type {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.type p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.type span {
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 15px;
}
.type:hover h3 {
  color: var(--accent-ink);
}
@media (max-width: 900px) {
  .types {
    grid-template-columns: 1fr 1fr;
  }
  .type:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .type:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 520px) {
  .types {
    grid-template-columns: 1fr;
  }
  .type,
  .type + .type {
    padding: 20px 0;
    border-left: 0;
  }
  .type + .type {
    border-top: 1px solid var(--line);
  }
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: block;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--accent);
  margin-bottom: 12px;
}
.steps p {
  margin: 8px 0 0;
  color: var(--muted);
}
@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.create {
  background: var(--ink);
  color: #fff;
}
.create .section-head p {
  color: #b8c3d1;
}
#UMIchooseSite,
#UMIchooseSite * {
  font-family: inherit;
}
.create-panel {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 3vw, 32px);
  min-height: 240px;
}

.case-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .case-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .case-list {
    grid-template-columns: 1fr;
  }
}
.case-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: inherit;
  text-decoration: none;
}
.case-item:hover {
  border-color: var(--accent);
}
.case-item img,
.case-item .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}
.avatar {
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 22px;
}
.case-item b {
  display: block;
  line-height: 1.3;
}
.case-item small {
  color: var(--muted);
  font-size: 14px;
}

.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2 320px;
  column-gap: 48px;
}
.article-list li {
  break-inside: avoid;
  border-top: 1px solid var(--line);
}
.article-list a {
  display: block;
  padding: 14px 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.article-list a:hover {
  color: var(--accent-ink);
}
.more {
  margin-top: 28px;
}

/* inner pages */
.page-head {
  padding: clamp(24px, 5vw, 64px) 0 clamp(24px, 4vw, 40px);
}
.page-head .crumbs {
  font-size: 15px;
  margin-bottom: 18px;
  color: var(--muted);
}
.page-head .crumbs a {
  color: var(--muted);
}
.page-head h1 {
  max-width: 18em;
  font-size: clamp(32px, 5vw, 56px);
}
.page-head .lead {
  margin: 18px 0 0;
  max-width: 36em;
  font-size: 19px;
  color: var(--muted);
}

.prose {
  max-width: 68ch;
  overflow-wrap: break-word;
  padding-bottom: 24px;
}
.prose h1,
.prose h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  margin: 1.6em 0 0.5em;
}
.prose h3 {
  margin: 1.4em 0 0.4em;
}
.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1em;
}
.prose li {
  margin-bottom: 0.4em;
}
.prose img {
  display: block;
  margin: 1.5em 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.prose table {
  border-collapse: collapse;
  margin: 1em 0;
}
.prose td {
  border: 1px solid var(--line);
  padding: 8px 12px;
  vertical-align: top;
}

.cta-band {
  margin: 48px 0 clamp(56px, 8vw, 96px);
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.cta-band p {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 28em;
}

.case-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: center;
  max-width: 68ch;
  padding: 24px;
  margin-bottom: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.case-card img,
.case-card .avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  font-size: 40px;
}
.case-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
}
.case-card dt {
  color: var(--muted);
}
.case-card dd {
  margin: 0;
  font-weight: 600;
}
.case-card .person {
  grid-column: 1 / -1;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
@media (max-width: 520px) {
  .case-card {
    grid-template-columns: 1fr;
  }
  .case-card img,
  .case-card .avatar {
    width: 88px;
    height: 88px;
  }
}

.type-page #UMIchooseSite,
#UMIchooseSite * {
  font-family: inherit;
}
.create-panel {
  border: 1px solid var(--line);
  margin-bottom: clamp(56px, 8vw, 96px);
}

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 15px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
}
.site-footer a {
  color: var(--muted);
}
