:root {
  --black: #05080a;
  --steel: #10181d;
  --steel-2: #162229;
  --line: #293941;
  --text: #f3f7f8;
  --muted: #9dadb5;
  --blue: #00a9ce;
  --gold: #f0b928;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--black);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-text-size-adjust: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app {
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background: #0b1114;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(5, 8, 10, 0.96);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: grid;
  gap: 2px;
}

.logo strong {
  font-size: 21px;
  letter-spacing: 0.4px;
}

.logo span {
  color: var(--muted);
  font-size: 11px;
}

.language-switch {
  display: flex;
  gap: 6px;
}

.lang-btn {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 9px;
  color: var(--text);
  background: var(--steel-2);
  font-weight: 900;
}

.lang-btn.active {
  color: #101010;
  background: var(--gold);
  border-color: var(--gold);
}

.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 8, 10, 0.05) 0%, rgba(5, 8, 10, 0.2) 42%, rgba(5, 8, 10, 0.94) 88%),
    url("hero-engine-v4.png") center / cover;
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--gold);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.label {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

.hero h1 {
  margin-bottom: 10px;
  font-size: 32px;
  line-height: 1.05;
}

.hero p:not(.label) {
  margin-bottom: 0;
  color: #dce8eb;
  font-size: 15px;
  line-height: 1.42;
}

.hero-tags {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.hero-tags span {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  padding: 8px 10px;
  background: rgba(16, 24, 29, 0.78);
  font-size: 12px;
  font-weight: 900;
}

.quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 14px 0;
}

.quick div {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 11px;
  background: var(--steel);
}

.quick strong {
  color: var(--gold);
  font-size: 14px;
}

.quick span {
  color: var(--muted);
  font-size: 12px;
}

.panel,
.dark-card,
.steps {
  margin: 14px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  background: #f5f7f7;
  color: #10181d;
}

.panel-head h2 {
  margin-bottom: 6px;
  font-size: 25px;
}

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 5px;
  color: #415057;
  font-size: 12px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd5d8;
  border-radius: 4px;
  padding: 12px;
  color: #10181d;
  background: #fff;
  font-size: 16px;
  outline: none;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 169, 206, 0.14);
}

.submit {
  min-height: 52px;
  border: 0;
  border-radius: 4px;
  color: #101010;
  background: var(--gold);
  font-size: 16px;
  font-weight: 900;
}

.dark-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(16, 24, 29, 0.94), rgba(16, 24, 29, 0.98)),
    url("hero-engine-v4.png") center / cover;
}

.dark-card h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.dark-card p {
  margin-bottom: 0;
  color: #c8d5d9;
  font-size: 14px;
  line-height: 1.5;
}

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

.steps div {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px;
  background: var(--steel);
}

.steps b {
  color: var(--gold);
  font-size: 18px;
}

.steps span {
  color: #d5e0e3;
  font-size: 14px;
}

footer {
  padding: 20px 16px 26px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.hidden {
  display: none;
}

@media (max-width: 360px) {
  .hero {
    min-height: 455px;
  }

  .hero h1 {
    font-size: 29px;
  }

  form {
    grid-template-columns: 1fr;
  }
}
