:root {
  color: #152b4b;
  background: #f5f8fd;
  font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --blue: #2957e7;
  --navy: #152e59;
  --muted: #546984;
  --line: #dce6f3;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }
button, select { font: inherit; }
button, summary, select { cursor: pointer; }
button:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible, .table-wrap:focus-visible {
  outline: 3px solid #5a81ff;
  outline-offset: 4px;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.container { width: min(1160px, calc(100% - 56px)); margin-inline: auto; }
.site-header { background: white; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { text-decoration: none; font-weight: 800; font-size: 26px; letter-spacing: -.055em; }
.brand span, .text-link { color: var(--blue); }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 24px; }
.site-nav a, .site-footer a { text-decoration: none; }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: .88rem; font-weight: 650; }
.site-nav a:hover, .site-footer a:hover { color: var(--blue); }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(24px, 5vw, 76px); padding: 68px 0 62px; }
.eyebrow, .workspace-label { color: #254cbd; font-size: .72rem; letter-spacing: .09em; font-weight: 750; text-transform: uppercase; }
h1 { max-width: 14ch; font-size: clamp(2.5rem, 5.3vw, 4.25rem); line-height: 1.04; letter-spacing: -.055em; margin: 14px 0 22px; }
h2 { font-size: clamp(1.7rem, 3.65vw, 2.55rem); line-height: 1.12; letter-spacing: -.035em; margin: 10px 0; }
h3 { font-size: 1.22rem; line-height: 1.25; }
.hero-lead, .section-heading > p:last-child, .support p { color: var(--muted); max-width: 57ch; }
.hero-lead { font-size: 1.05rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button, .primary, .secondary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; gap: 8px;
  padding: 8px 15px; border: 1px solid transparent; border-radius: 9px;
  font-weight: 700; font-size: .88rem; text-align: center; text-decoration: none; line-height: 1.25;
}
.primary { background: var(--blue); color: white; }
.primary:hover { background: #2047c7; }
.secondary { background: white; color: #254cbd; border-color: #cbd9f1; }
.secondary:hover { background: #edf3ff; }
.hero-preview { background: var(--navy); border-radius: 24px; padding: 20px; box-shadow: 0 15px 36px #152e591a; min-width: 0; }
.preview-caption { display: flex; align-items: center; gap: 9px; color: #e1ebfe; font-size: .78rem; margin: 0 0 13px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #8bacff; }
.preview-sheet { background: white; border-radius: 14px; padding: 18px; }
.preview-shop { display: flex; gap: 10px; align-items: center; margin-block-end: 16px; }
.shop-icon { display: grid; place-items: center; background: var(--blue); color: white; border-radius: 9px; width: 38px; height: 38px; font-size: .78rem; font-weight: 800; flex: none; }
small { display: block; color: var(--muted); font-size: .76rem; }
.preview-metrics, .metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.preview-metrics > div, .metrics > div { background: #f3f7ff; border: 1px solid #e1e9f9; border-radius: 10px; min-width: 0; padding: 10px; }
.metrics > div { padding: 14px; }
.preview-metrics span, .metrics span { display: block; color: var(--muted); font-size: .75rem; }
.preview-metrics strong, .metrics strong { display: block; font-size: clamp(.98rem, 2.5vw, 1.4rem); margin-top: 4px; }
.preview-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid #e8eef7; padding: 11px 0; font-size: .83rem; }
.preview-row:last-child { border: 0; padding-bottom: 0; }
.status { border-radius: 7px; padding: 5px 8px; flex-shrink: 0; font-size: .7rem; font-weight: 650; }
.status.new { background: #e8f0ff; color: #264f99; }
.status.working { background: #fff2d8; color: #794b09; }
.status.done { background: #e2f4eb; color: #226046; }
.section { padding: 38px 0; scroll-margin-top: 14px; }
.section-heading { margin-bottom: 22px; }
.workspace { border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 8px 28px #152e590a; }
.workspace-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 19px 24px; background: var(--navy); color: white; border-radius: 17px 17px 0 0; }
.workspace-label { color: #b9ceff; }
.workspace-top h3 { margin-top: 4px; }
.workspace-nav { display: flex; flex-wrap: wrap; gap: 4px 12px; border-bottom: 1px solid var(--line); padding: 7px 20px 0; }
.workspace-nav button { background: transparent; border: 0; border-bottom: 3px solid transparent; color: var(--muted); min-height: 44px; padding: 7px 10px; font-size: .85rem; font-weight: 700; }
.workspace-nav button[aria-current] { border-bottom-color: var(--blue); color: var(--blue); }
.workspace-nav button:hover { color: var(--blue); }
.workspace-content { padding: 22px 24px; }
.workspace-message { margin: 0 24px 16px; color: #274caa; font-size: .85rem; }
.workspace-message:empty { display: none; }
.hint { margin: 8px 0; color: var(--muted); font-size: .85rem; }
.view-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.view-toolbar:first-child { margin-top: 0; }
label { display: grid; gap: 4px; font-weight: 650; font-size: .82rem; }
select { min-height: 44px; max-width: 100%; color: #152b4b; background: white; padding: 7px 8px; border: 1px solid #c8d6ea; border-radius: 8px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; text-align: left; min-width: 570px; font-size: .88rem; }
th, td { padding: 10px 12px; border-bottom: 1px solid #e6edf6; }
th { background: #f2f6fc; font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
.composer { border: 1px solid var(--line); background: #f8faff; border-radius: 10px; margin-top: 14px; }
.composer summary { padding: 10px 13px; min-height: 44px; font-weight: 700; color: #254cbd; }
.composer summary span { float: right; }
.form-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 10px; padding: 12px; border-top: 1px solid var(--line); }
.composition-total { color: var(--navy); align-self: center; grid-column: span 3; font-weight: 700; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)); gap: 10px; }
.detail-card { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #f8faff; min-width: 0; }
.detail-card p { color: var(--muted); font-size: .8rem; margin-top: 5px; }
.chart > div { display: grid; grid-template-columns: 84px minmax(50px, 1fr) 26px; gap: 10px; align-items: center; margin: 8px 0; }
meter { width: 100%; height: 24px; }
meter::-webkit-meter-optimum-value { background: var(--blue); }
meter::-moz-meter-bar { background: var(--blue); }
.plans, .support { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan { display: flex; flex-direction: column; align-items: flex-start; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.plan.featured { border-color: var(--blue); }
.plan h3 { margin: 8px 0 4px; }
.price { font-size: 2.1rem; letter-spacing: -.035em; }
.price.pending { font-size: 1.25rem; padding-top: 10px; }
.plan ul { flex-grow: 1; font-size: .87rem; color: var(--muted); margin-block: 13px 17px; padding-left: 20px; }
.plan li + li { margin-top: 6px; }
.request-panel { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 26px; padding: 26px; border-radius: 17px; color: white; background: var(--navy); }
.request-panel .eyebrow { color: #b9ceff; }
.request-panel p:not(.eyebrow), .request-panel small { color: #e1ebfe; }
.request-panel small { margin-top: 9px; }
.support { gap: 36px; }
.support h3 { margin-bottom: 8px; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; }
.site-footer { background: white; border-top: 1px solid var(--line); }
.site-footer .container { padding: 15px 0; display: flex; align-items: center; flex-wrap: wrap; gap: 9px 20px; font-size: .84rem; color: var(--muted); }
.site-footer .brand { color: #152b4b; font-size: 21px; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding: 44px 0 24px; }
  h1 { max-width: 18ch; }
  .hero-preview { max-width: 620px; }
}
@media (max-width: 700px) {
  .table-wrap { overflow: visible; border: 0; }
  table, tbody { display: block; min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; }
  tbody td { display: block; border: 0; padding: 7px 10px; }
  tbody td:first-child { grid-column: 1 / -1; background: #f2f6fc; border-radius: 9px 9px 0 0; }
  tbody td:not(:first-child)::before { content: attr(data-label); display: block; color: var(--muted); font-size: .73rem; margin-bottom: 3px; }
}
@media (max-width: 540px) {
  .container { width: calc(100% - 30px); }
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding-top: 10px; }
  .site-nav { grid-row: 2; grid-column: span 2; justify-content: flex-start; gap: 16px; }
  .language { grid-area: 1 / 2; }
  .hero { padding-top: 35px; }
  .hero-preview { padding: 13px; }
  .preview-sheet { padding: 12px; }
  .preview-metrics > div, .metrics > div { padding: 7px; }
  .workspace-top, .workspace-content { padding: 14px 12px; }
  .workspace-nav { padding-inline: 6px; gap: 0 2px; }
  .workspace-nav button { padding-inline: 7px; }
  .workspace-message { margin-inline: 12px; }
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .composition-total { grid-column: auto; }
  .plans, .request-panel, .support { grid-template-columns: 1fr; gap: 14px; }
  .section { padding: 25px 0; }
}
