:root {
  --ink: #f7efe4;
  --muted: #b8afa2;
  --paper: #0c0b09;
  --panel: rgba(18, 16, 13, 0.78);
  --panel-strong: rgba(24, 20, 16, 0.92);
  --line: rgba(236, 188, 122, 0.18);
  --line-soft: rgba(255, 255, 255, 0.09);
  --copper: #c9843d;
  --forge-gold: #f2c27b;
  --warm: #ffe1ac;
  --steel: #8d98a4;
  --green: #79b69a;
  --danger: #e08a60;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --radius: 8px;
  --ease: cubic-bezier(0.2, 0.75, 0.16, 1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
  background: #050504;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 10%, rgba(201, 132, 61, 0.16), transparent 34rem),
    radial-gradient(circle at 15% 82%, rgba(141, 152, 164, 0.16), transparent 32rem),
    var(--paper);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  line-height: 1.45;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  position: relative;
  width: min(1600px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  border: 1px solid rgba(236, 188, 122, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18rem),
    #080807;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.7), 0 36px 120px rgba(0, 0, 0, 0.72);
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(220px, auto) 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 92px;
  padding: 18px 84px;
  border-bottom: 1px solid rgba(236, 188, 122, 0.18);
  background: rgba(7, 7, 6, 0.84);
  backdrop-filter: blur(22px);
}

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

.brand-mark {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(242, 194, 123, 0.8);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(242, 194, 123, 0.22), transparent 62%),
    rgba(16, 12, 8, 0.9);
  box-shadow: 0 0 28px rgba(242, 194, 123, 0.22);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(242, 194, 123, 0.7);
  border-radius: 4px;
}

.brand-mark::before {
  transform: rotate(28deg);
}

.brand-mark::after {
  transform: rotate(64deg);
}

.brand-mark span {
  inset: 15px;
  border-radius: 50%;
  background: rgba(242, 194, 123, 0.24);
}

.brand-copy strong {
  display: block;
  color: #fff7e9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.brand-copy small {
  display: block;
  margin-top: 4px;
  color: rgba(247, 239, 228, 0.68);
  font-size: 12px;
}

.top-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 30px;
  color: rgba(247, 239, 228, 0.74);
  font-size: 14px;
  white-space: nowrap;
  scrollbar-width: none;
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.top-nav a,
.section-head.inline a {
  transition: color 160ms var(--ease);
}

.top-nav a:hover,
.section-head.inline a:hover {
  color: var(--forge-gold);
}

.head-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ghost-action,
.head-action,
.primary-action,
.secondary-action,
.wide-action,
.helper-form button,
.status-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border-radius: var(--radius);
  font-weight: 760;
  transition:
    transform 180ms var(--ease),
    border-color 180ms var(--ease),
    background 180ms var(--ease),
    color 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

.ghost-action {
  min-width: 104px;
  border: 1px solid rgba(247, 239, 228, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: #fff7e9;
}

.head-action,
.primary-action,
.helper-form button {
  border: 1px solid rgba(255, 222, 166, 0.64);
  background: linear-gradient(180deg, #ffd997, #d89448);
  color: #120d08;
  box-shadow: 0 14px 38px rgba(201, 132, 61, 0.28);
}

.head-action {
  min-width: 152px;
}

.primary-action {
  min-height: 50px;
  padding: 0 26px;
}

.secondary-action,
.wide-action,
.status-card a {
  border: 1px solid rgba(236, 188, 122, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #fff7e9;
}

.secondary-action {
  min-height: 50px;
  padding: 0 22px;
}

.wide-action,
.status-card a {
  width: 100%;
}

.ghost-action:hover,
.head-action:hover,
.primary-action:hover,
.secondary-action:hover,
.wide-action:hover,
.helper-form button:hover,
.status-card a:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 222, 166, 0.72);
  box-shadow: 0 18px 46px rgba(201, 132, 61, 0.24);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(242, 194, 123, 0.38);
  outline-offset: 3px;
}

.premium-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(440px, 0.74fr);
  align-items: center;
  gap: 32px;
  min-height: min(760px, calc(100svh - 144px));
  padding: 64px 84px 38px;
  overflow: hidden;
}

.hero-backdrop,
.hero-backdrop::after,
.hero-idle-canvas {
  position: absolute;
  inset: 0;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
  filter: saturate(1.02) contrast(1.03);
}

.hero-backdrop::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 8, 7, 0.96) 0%, rgba(8, 8, 7, 0.78) 30%, rgba(8, 8, 7, 0.34) 66%, rgba(8, 8, 7, 0.74) 100%),
    linear-gradient(180deg, rgba(8, 8, 7, 0.14) 0%, rgba(8, 8, 7, 0.3) 62%, #080807 100%);
}

.hero-idle-canvas {
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.82;
  pointer-events: none;
}

.hero-copy,
.forge-stage {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 670px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  margin: 0 0 22px;
  padding: 0 14px;
  border: 1px solid rgba(242, 194, 123, 0.22);
  border-radius: 999px;
  background: rgba(7, 7, 6, 0.54);
  color: var(--forge-gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.premium-hero h1 {
  margin: 0;
  max-width: 660px;
  color: #fff7e9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 58px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}

.premium-hero h1 span {
  color: var(--copper);
}

.lead {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(247, 239, 228, 0.74);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 710px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(236, 188, 122, 0.18);
}

.hero-proof span {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  min-width: 0;
}

.hero-proof i {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(242, 194, 123, 0.4);
  border-radius: 50%;
  color: var(--forge-gold);
  font-style: normal;
}

.hero-proof strong {
  color: var(--forge-gold);
  font-size: 13px;
}

.hero-proof em {
  color: rgba(247, 239, 228, 0.64);
  font-size: 12px;
  font-style: normal;
}

.forge-stage {
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.orbital-core {
  position: absolute;
  left: 28%;
  top: 17%;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(242, 194, 123, 0.22);
  border-radius: 50%;
  box-shadow:
    inset 0 0 38px rgba(242, 194, 123, 0.18),
    0 0 48px rgba(242, 194, 123, 0.18);
  animation: coreGlow 5s var(--ease) infinite;
}

.orbital-core span {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(242, 194, 123, 0.3);
  border-radius: 50%;
  animation-name: orbitLine;
  animation-duration: 5s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.orbital-core span:nth-child(2) {
  transform: rotateX(64deg);
  animation-delay: -1.2s;
}

.orbital-core span:nth-child(3) {
  transform: rotateY(62deg);
  animation-delay: -2.4s;
}

.status-card,
.workflow-strip,
.catalog-panel,
.examples-panel,
.helper-card,
.trust-panel,
.zamysel-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow);
}

.status-card {
  width: min(280px, 100%);
  margin-right: 4px;
  padding: 22px;
  backdrop-filter: blur(18px);
}

.status-card p,
.status-card .status-note,
.section-head p,
.zamysel-form label,
.helper-form label {
  margin: 0;
  color: rgba(247, 239, 228, 0.62);
  font-size: 13px;
}

#workflow,
#catalog,
#examples,
#helper,
#helper-dialog,
#trust,
#zamysel {
  scroll-margin-top: 116px;
}

.status-card h2,
.section-head h2,
.helper-card h2,
.trust-panel h2 {
  margin: 4px 0 0;
  color: #fff7e9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0;
}

.status-card dl {
  display: grid;
  gap: 10px;
  margin: 18px 0 12px;
}

.status-card dl div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(236, 188, 122, 0.12);
}

.status-card dt {
  color: rgba(247, 239, 228, 0.6);
  font-size: 12px;
}

.status-card dd {
  margin: 0;
  color: var(--forge-gold);
  font-weight: 800;
}

.status-card .status-note {
  margin-bottom: 18px;
  color: rgba(247, 239, 228, 0.7);
}

.vitrine-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.88fr);
  gap: 14px;
  padding: 0 84px 18px;
  margin-top: -12px;
}

.workflow-strip,
.examples-panel {
  grid-column: 1;
}

.catalog-panel,
.helper-card,
.trust-panel {
  grid-column: 2;
}

.workflow-strip,
.catalog-panel,
.examples-panel,
.helper-card,
.trust-panel {
  padding: 24px;
}

.section-head {
  margin-bottom: 18px;
}

.section-head.inline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.section-head.inline a {
  color: rgba(247, 239, 228, 0.62);
  font-size: 13px;
}

.workflow-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.workflow-cards article,
.examples-grid article {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(236, 188, 122, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.workflow-cards article {
  min-height: 160px;
  padding: 18px;
}

.workflow-cards article::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -16px;
  color: var(--forge-gold);
  font-size: 25px;
  transform: translateY(-50%);
}

.workflow-cards article:last-child::after {
  display: none;
}

.workflow-cards span {
  color: rgba(242, 194, 123, 0.62);
  font-size: 12px;
}

.workflow-cards i {
  display: block;
  margin: 8px 0 26px;
  color: var(--forge-gold);
  font-size: 27px;
  font-style: normal;
}

.workflow-cards h3,
.examples-grid h3 {
  margin: 0;
  color: #fff7e9;
  font-size: 15px;
  line-height: 1.2;
}

.workflow-cards p,
.examples-grid p,
.examples-grid em,
.catalog-panel p,
.helper-card p,
.trust-panel p {
  margin: 7px 0 0;
  color: rgba(247, 239, 228, 0.62);
  font-size: 13px;
}

.examples-grid p strong {
  color: var(--forge-gold);
  font-weight: 760;
}

.examples-grid em {
  display: block;
  padding: 0 12px;
  font-style: normal;
}

.catalog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 18px;
}

.catalog-tags a {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(236, 188, 122, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(247, 239, 228, 0.78);
  font-size: 12px;
  transition:
    border-color 180ms var(--ease),
    color 180ms var(--ease);
}

.catalog-tags a:hover {
  border-color: rgba(242, 194, 123, 0.48);
  color: var(--forge-gold);
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.examples-grid article {
  overflow: hidden;
  padding: 0 0 14px;
}

.example-thumb {
  position: relative;
  min-height: 112px;
  margin-bottom: 12px;
  background:
    linear-gradient(135deg, rgba(242, 194, 123, 0.22), transparent 42%),
    linear-gradient(180deg, #171a20, #0d0d0c);
}

.example-thumb::before,
.example-thumb::after {
  content: "";
  position: absolute;
  border-radius: 2px;
  background: rgba(242, 194, 123, 0.26);
}

.example-thumb::before {
  left: 12px;
  right: 12px;
  top: 14px;
  height: 8px;
}

.example-thumb::after {
  left: 12px;
  right: 28px;
  bottom: 16px;
  height: 42px;
  border: 1px solid rgba(141, 152, 164, 0.22);
  background:
    linear-gradient(90deg, rgba(121, 182, 154, 0.28), transparent),
    rgba(255, 255, 255, 0.04);
}

.thumb-startup {
  background:
    radial-gradient(circle at 70% 30%, rgba(242, 194, 123, 0.22), transparent 30%),
    linear-gradient(180deg, #181511, #0b0b0a);
}

.thumb-bot {
  background:
    radial-gradient(circle at 82% 50%, rgba(201, 132, 61, 0.28), transparent 34%),
    linear-gradient(135deg, #11131b, #090908);
}

.thumb-sales {
  background:
    linear-gradient(90deg, rgba(121, 182, 154, 0.2), transparent),
    linear-gradient(180deg, #161a16, #0b0b0a);
}

.thumb-mobile {
  background:
    radial-gradient(circle at 75% 50%, rgba(242, 194, 123, 0.2), transparent 32%),
    linear-gradient(160deg, #101625, #0b0b0a);
}

.examples-grid h3,
.examples-grid p {
  padding: 0 12px;
}

.helper-card {
  display: grid;
  gap: 14px;
}

.helper-intro {
  margin: 14px 0;
  color: rgba(247, 239, 228, 0.7);
  font-size: 14px;
}

.helper-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.helper-progress li {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(236, 188, 122, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(247, 239, 228, 0.56);
}

.helper-progress strong {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(247, 239, 228, 0.82);
  font-size: 12px;
}

.helper-progress span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 760;
}

.helper-progress li.is-current {
  border-color: rgba(242, 194, 123, 0.48);
  background: rgba(242, 194, 123, 0.11);
  color: var(--forge-gold);
}

.helper-progress li.is-current strong {
  background: rgba(242, 194, 123, 0.22);
  color: #fff7e9;
}

.helper-reply {
  min-height: 48px;
}

.helper-form {
  display: grid;
  gap: 12px;
}

.helper-step {
  display: grid;
  gap: 8px;
}

.helper-panel[hidden] {
  display: none !important;
}

.helper-step > span,
.result-actions > span {
  color: var(--forge-gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.helper-step h3 {
  margin: 0;
  color: #fff7e9;
  font-size: 16px;
  line-height: 1.2;
}

.helper-step p {
  margin: 0;
  color: rgba(247, 239, 228, 0.66);
  font-size: 13px;
}

.helper-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.helper-options button,
.result-actions a {
  min-height: 34px;
  border: 1px solid rgba(236, 188, 122, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(247, 239, 228, 0.78);
  font-size: 12px;
  font-weight: 720;
  transition:
    border-color 180ms var(--ease),
    background 180ms var(--ease),
    color 180ms var(--ease);
}

.helper-options button {
  padding: 0 12px;
}

.helper-options button:hover,
.helper-options button.is-selected,
.result-actions a:hover {
  border-color: rgba(242, 194, 123, 0.56);
  background: rgba(242, 194, 123, 0.12);
  color: var(--forge-gold);
}

.helper-preview {
  padding: 14px;
  border: 1px solid rgba(236, 188, 122, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.helper-addons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.helper-addon {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 96px;
  padding: 12px;
  border: 1px solid rgba(236, 188, 122, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(247, 239, 228, 0.74);
}

.helper-addon input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--forge-gold);
}

.helper-addon span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.helper-addon strong {
  color: #fff7e9;
  font-size: 13px;
  line-height: 1.18;
}

.helper-addon em {
  color: rgba(247, 239, 228, 0.58);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.helper-addon b {
  grid-column: 2;
  width: fit-content;
  padding: 3px 7px;
  border: 1px solid rgba(121, 182, 154, 0.28);
  border-radius: 999px;
  color: var(--green);
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
}

.helper-summary {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.helper-summary li {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(8, 8, 7, 0.36);
}

.helper-summary span {
  color: var(--forge-gold);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.helper-summary strong {
  color: rgba(247, 239, 228, 0.86);
  font-size: 13px;
  line-height: 1.35;
}

.helper-form input,
.zamysel-form textarea {
  width: 100%;
  border: 1px solid rgba(236, 188, 122, 0.16);
  border-radius: var(--radius);
  background: rgba(8, 8, 7, 0.72);
  color: #fff7e9;
  outline: none;
}

.helper-form input {
  height: 46px;
  padding: 0 12px;
}

.helper-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  padding: 0;
}

.helper-form input::placeholder,
.zamysel-form textarea::placeholder {
  color: rgba(247, 239, 228, 0.38);
}

.helper-form button {
  width: fit-content;
  min-height: 44px;
  padding: 0 18px;
}

.helper-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.helper-sheet .helper-form {
  gap: 10px;
}

.helper-sheet .helper-step {
  gap: 6px;
}

.helper-sheet .helper-preview {
  min-height: 0;
  padding: 12px;
}

.helper-sheet .helper-actions {
  position: sticky;
  bottom: 0;
  margin-top: 0;
  padding: 12px 0 2px;
  background:
    linear-gradient(180deg, rgba(15, 13, 10, 0), rgba(15, 13, 10, 0.98) 28%),
    rgba(15, 13, 10, 0.98);
}

.helper-actions .secondary-action {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(236, 188, 122, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #fff7e9;
  box-shadow: none;
}

.helper-step-status {
  min-height: 18px;
  color: rgba(247, 239, 228, 0.58);
  font-size: 12px;
}

.helper-step-status[data-tone="error"] {
  color: var(--danger);
}

.helper-form button:disabled {
  cursor: wait;
  transform: none;
  opacity: 0.72;
}

.trust-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.trust-panel ul {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-panel li {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(242, 194, 123, 0.36);
  border-radius: 50%;
  color: var(--forge-gold);
}

.zamysel-section {
  margin: 14px 84px 56px;
  padding: 28px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.4fr) auto;
  gap: 22px;
  align-items: start;
  margin: 0 84px 42px;
  padding: 24px 0 0;
  border-top: 1px solid rgba(236, 188, 122, 0.16);
  color: rgba(247, 239, 228, 0.62);
}

.site-footer-brand {
  display: grid;
  gap: 5px;
}

.site-footer-brand strong {
  color: #fff7e9;
  font-size: 16px;
  text-transform: uppercase;
}

.site-footer-brand span,
.site-footer p {
  margin: 0;
  font-size: 12px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.site-footer a {
  color: rgba(247, 239, 228, 0.72);
  font-size: 12px;
  text-decoration: underline;
  text-decoration-color: rgba(236, 188, 122, 0.28);
  text-underline-offset: 4px;
}

.site-footer a:hover {
  color: var(--forge-gold);
}

.zamysel-section .section-head h2 {
  max-width: 680px;
}

.zamysel-form {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

.zamysel-form textarea {
  min-height: 160px;
  padding: 14px;
  resize: vertical;
}

.form-help-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(236, 188, 122, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(247, 239, 228, 0.64);
  font-size: 13px;
}

.form-help-row .secondary-action {
  min-height: 40px;
  padding: 0 16px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

#zamysel-status {
  color: rgba(247, 239, 228, 0.64);
  font-size: 13px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.result-grid article {
  min-height: 118px;
  padding: 16px;
  border: 1px solid rgba(236, 188, 122, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.result-grid span {
  color: var(--forge-gold);
  font-size: 12px;
  font-weight: 760;
}

.result-grid strong {
  display: block;
  margin-top: 8px;
  color: rgba(247, 239, 228, 0.82);
  font-size: 14px;
  font-weight: 560;
}

.result-actions {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  min-height: 0;
  padding: 16px;
  border: 1px solid rgba(236, 188, 122, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.result-actions div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.result-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
}

body.cabinet-open,
body.helper-open {
  overflow: hidden;
}

.public-cabinet[hidden],
.helper-dialog[hidden] {
  display: none;
}

.public-cabinet,
.helper-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
}

.helper-dialog {
  z-index: 86;
}

.cabinet-scrim,
.helper-scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 4, 0.72);
  backdrop-filter: blur(10px);
}

.cabinet-sheet,
.helper-sheet {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: min(780px, calc(100svh - 56px));
  overflow: auto;
  padding: 26px;
  border: 1px solid rgba(236, 188, 122, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 44%),
    rgba(15, 13, 10, 0.96);
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.72);
}

.helper-sheet {
  width: min(680px, 100%);
  display: grid;
  gap: 0;
}

.cabinet-head,
.helper-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(236, 188, 122, 0.14);
}

.cabinet-head p,
.helper-head p {
  margin: 0;
  color: var(--forge-gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.cabinet-head h2,
.helper-head h2 {
  margin: 5px 0 0;
  color: #fff7e9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.14;
}

.cabinet-close,
.helper-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(247, 239, 228, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: #fff7e9;
  font-size: 24px;
}

.cabinet-status {
  min-height: 24px;
  margin: 16px 0;
  color: rgba(247, 239, 228, 0.72);
}

.cabinet-status[data-tone="ok"] {
  color: var(--green);
}

.cabinet-status[data-tone="error"] {
  color: var(--danger);
}

.cabinet-form {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

.cabinet-form label {
  color: rgba(247, 239, 228, 0.68);
  font-size: 13px;
}

.cabinet-form input[type="email"],
.cabinet-form input[type="text"] {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(236, 188, 122, 0.16);
  border-radius: var(--radius);
  background: rgba(8, 8, 7, 0.72);
  color: #fff7e9;
  padding: 0 12px;
  outline: none;
}

.cabinet-check {
  display: flex;
  align-items: start;
  gap: 10px;
  color: rgba(247, 239, 228, 0.66);
}

.cabinet-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--forge-gold);
}

.cabinet-form .primary-action {
  width: fit-content;
}

.cabinet-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.cabinet-summary article,
.cabinet-lists section {
  min-width: 0;
  border: 1px solid rgba(236, 188, 122, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  padding: 16px;
}

.cabinet-summary span {
  display: block;
  color: rgba(247, 239, 228, 0.62);
  font-size: 12px;
}

.cabinet-summary strong {
  display: block;
  margin-top: 8px;
  color: var(--forge-gold);
  font-size: 26px;
}

.cabinet-summary em {
  display: block;
  margin-top: 3px;
  color: rgba(247, 239, 228, 0.58);
  font-size: 12px;
  font-style: normal;
}

.cabinet-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cabinet-lists h3 {
  margin: 0 0 10px;
  color: #fff7e9;
  font-size: 15px;
}

.cabinet-lists ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(247, 239, 228, 0.66);
  font-size: 13px;
}

.cabinet-lists li {
  padding-left: 14px;
  border-left: 2px solid rgba(242, 194, 123, 0.3);
}

.cabinet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.cabinet-actions .secondary-action {
  min-height: 50px;
  padding: 0 18px;
}

@keyframes coreGlow {
  0%,
  100% {
    opacity: 0.62;
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    opacity: 0.9;
    transform: translate3d(0, -6px, 0) scale(1.03);
  }
}

@keyframes orbitLine {
  from {
    rotate: 0deg;
  }
  to {
    rotate: 360deg;
  }
}

@media (max-width: 1180px) {
  .site-head,
  .premium-hero,
  .vitrine-grid,
  .zamysel-section {
    padding-left: 38px;
    padding-right: 38px;
  }

  .site-head {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    gap: 18px;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 2px;
  }

  .premium-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }

  .forge-stage {
    min-height: 310px;
    justify-content: start;
  }

  .status-card {
    margin-left: auto;
  }

  .vitrine-grid {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .workflow-strip,
  .examples-panel,
  .catalog-panel,
  .helper-card,
  .trust-panel {
    grid-column: 1;
  }

  .workflow-cards,
  .examples-grid,
  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-cards article::after {
    display: none;
  }

  .zamysel-section {
    margin-left: 38px;
    margin-right: 38px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    margin-left: 38px;
    margin-right: 38px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    border: 0;
  }

  .site-head {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: auto;
    padding: 16px 18px;
  }

  .brand-copy strong {
    font-size: 22px;
  }

  .head-actions {
    width: 100%;
  }

  .ghost-action,
  .head-action {
    flex: 1;
    min-width: 0;
  }

  .top-nav {
    display: none;
  }

  .premium-hero {
    padding: 46px 18px 24px;
  }

  .hero-backdrop img {
    object-position: 58% 48%;
  }

  .hero-backdrop::after {
    background:
      linear-gradient(180deg, rgba(8, 8, 7, 0.88), rgba(8, 8, 7, 0.62) 42%, #080807 92%),
      linear-gradient(90deg, rgba(8, 8, 7, 0.92), rgba(8, 8, 7, 0.38));
  }

  .premium-hero h1 {
    font-size: 43px;
    line-height: 1.08;
  }

  .lead {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .forge-stage {
    min-height: 260px;
  }

  .orbital-core {
    left: 12%;
    top: 18%;
    width: 132px;
    height: 132px;
  }

  .status-card {
    width: min(280px, 82vw);
    padding: 18px;
  }

  .vitrine-grid,
  .zamysel-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .workflow-strip,
  .catalog-panel,
  .examples-panel,
  .helper-card,
  .trust-panel,
  .zamysel-section {
    padding: 18px;
  }

  .workflow-cards,
  .examples-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .examples-grid {
    grid-auto-rows: auto;
  }

  .example-thumb {
    min-height: 132px;
  }

  .trust-panel,
  .form-row {
    align-items: stretch;
    flex-direction: column;
  }

  .public-cabinet,
  .helper-dialog {
    padding: 12px;
    place-items: end center;
  }

  .cabinet-sheet,
  .helper-sheet {
    max-height: calc(100svh - 24px);
    padding: 18px;
  }

  .cabinet-head h2,
  .helper-head h2 {
    font-size: 24px;
  }

  .helper-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .helper-addons {
    grid-template-columns: 1fr;
  }

  .cabinet-summary,
  .cabinet-lists {
    grid-template-columns: 1fr;
  }

  .cabinet-form .primary-action,
  .cabinet-actions .primary-action,
  .cabinet-actions .secondary-action {
    width: 100%;
  }

  .trust-panel ul {
    justify-content: flex-start;
  }

  .helper-form button {
    width: 100%;
  }

  .helper-step-status {
    width: 100%;
  }

  .zamysel-section {
    margin: 14px 18px 36px;
  }

  .site-footer {
    margin: 0 18px 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .hero-idle-canvas {
    display: none;
  }
}
