.bar__link { font-size: 13px; color: var(--text3); padding: 6px 8px; border-radius: 6px; transition: color .2s; }
.bar__link:hover { color: var(--text); }
.bar__link--on { color: var(--accent2); }

.cpage { padding-top: 56px; padding-bottom: 90px; overflow-x: clip; }
.cpage__head { position: relative; isolation: isolate; }
.cpage__head::before {
  content: ""; position: absolute; inset: -56px -28px -20px; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--dot) 0.8px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 20% 0%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 20% 0%, #000 0%, transparent 65%);
}
.cpage__head h1 { margin-top: 14px; font-size: clamp(54px, 9vw, 110px); line-height: .95; letter-spacing: -0.045em; }
.cpage__head .lead { margin-top: 18px; }
.cpage__head .hero__kicker { justify-content: flex-start; }

.cpage__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; margin-top: 44px; }

.cform { border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.cform__panel, .cform__done { display: grid; gap: 20px; padding: 30px; }
.cform__panel[hidden], .cform__done[hidden] { display: none; }
.cform__head { display: flex; align-items: center; gap: 12px; }
.cform__title { font-size: 24px; }

.topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; border: 0; }
.topics legend { margin-bottom: 10px; }
.topic { position: relative; cursor: pointer; }
.topic input { position: absolute; opacity: 0; pointer-events: none; }
.topic > span { display: grid; gap: 2px; height: 100%; padding: 12px 14px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, background-color .2s; }
.topic b { font-family: var(--font-head); font-size: 14.5px; }
.topic small { font-size: 12.5px; color: color-mix(in srgb, var(--text3) 78%, var(--text2)); }
.topic:hover > span { box-shadow: inset 0 0 0 1px var(--accent); }
.topic input:checked + span { background: color-mix(in srgb, var(--accent) 16%, transparent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.topic input:checked + span b { color: var(--accent2); }
.topic input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row[hidden], .field[hidden] { display: none; }
.field { display: grid; gap: 7px; }
.field__label { font-family: var(--font-mono); font-size: 12px; color: var(--text2); }
.field__label em { font-style: normal; color: var(--text3); margin-left: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  padding: 12px 14px; border-radius: 10px; border: 0; background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text3) 50%), linear-gradient(135deg, var(--text3) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: var(--text3); }
.field input:hover, .field select:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px var(--accent2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.field__error { display: none; font-size: 12.5px; color: #f87171; }
.field.is-invalid input, .field.is-invalid textarea { box-shadow: inset 0 0 0 1.5px #f87171; }
.field.is-invalid .field__error { display: block; }

.cform__foot { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; padding-top: 4px; }
.cform__foot p { font-size: 12px; color: var(--text3); }

.cform__done { justify-items: start; padding: 48px 30px; }
.cform__done:focus { outline: none; }
.cform__check { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--green) 35%, transparent); }
.cform__done h2 { font-size: 28px; }
.cform__done p { color: var(--text2); }

.cside { display: grid; gap: 14px; position: sticky; top: 92px; }
.ccard { position: relative; padding: 18px 20px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.ccard__label { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text3); text-transform: uppercase; letter-spacing: .06em; }
.ccard__label .led { width: 7px; height: 7px; flex: none; }
.ccard__mail { display: block; margin-top: 8px; padding-right: 60px; font-family: var(--font-head); font-weight: 700; font-size: 19px; overflow-wrap: anywhere; color: var(--text); }
.ccard__mail:hover { color: var(--accent2); }
.ccard__copy { position: absolute; top: 14px; right: 14px; font-size: 11px; padding: 4px 10px; border-radius: 6px; color: var(--accent2); background: color-mix(in srgb, var(--accent) 14%, transparent); transition: background-color .2s; }
.ccard__copy:hover { background: color-mix(in srgb, var(--accent) 26%, transparent); }

.clinks { margin-top: 8px; }
.clinks li + li { border-top: 1px solid var(--line2); }
.clinks a, .clinks__static { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; font-size: 14.5px; font-weight: 500; }
.clinks small { font-size: 11.5px; color: color-mix(in srgb, var(--text3) 78%, var(--text2)); }
.clinks__name { display: inline-flex; align-items: center; gap: 10px; }
.clinks__name .ico { color: var(--text3); transition: color .2s; }
.clinks a:hover .ico { color: var(--accent2); }
.clinks a:hover, .clinks a:hover small { color: var(--accent2); }

.cinclude { display: grid; gap: 10px; margin-top: 10px; }
.cinclude dt { font-family: var(--font-head); font-weight: 600; font-size: 14px; }
.cinclude dd { font-size: 13.5px; color: var(--text2); }
.cinclude div.is-on dt { color: var(--accent2); }

.ccard--status { background: color-mix(in srgb, var(--green) 8%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 30%, transparent); }
.ccard--status .ccard__label { color: var(--green); text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.ccard--status p:last-child { margin-top: 6px; font-size: 13.5px; color: var(--text2); }

@media (max-width: 980px) {
  .cpage__grid { grid-template-columns: minmax(0, 1fr); }
  .cside { position: static; grid-template-columns: 1fr 1fr; }
  .topics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .cpage { padding-top: 32px; }
  .cpage__head h1 { font-size: 56px; }
  .cform__panel, .cform__done { padding: 20px; }
  .field-row, .cside { grid-template-columns: minmax(0, 1fr); }
  .topic > span { padding: 10px 12px; }
}
