:root {
  --bg: #f4f9ff;
  --white: #ffffff;
  --text: #14233b;
  --muted: #66758a;
  --line: #dce9f7;
  --blue: #2176ff;
  --blue-soft: #eaf3ff;
  --green: #19b86a;
  --green-soft: #e9fbf2;
  --red: #e6495f;
  --shadow: 0 18px 45px rgba(28, 72, 120, 0.10);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
}

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

button,
input {
  font: inherit;
}

.topbar {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 900;
}

.logo span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  background: var(--blue);
  border-radius: 14px;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

nav a {
  padding: 11px 14px;
  border-radius: 999px;
  color: #31506f;
  font-weight: 800;
}

nav a:hover,
nav a:last-child {
  color: var(--blue);
  background: var(--white);
  box-shadow: var(--shadow);
}

main {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
}

.hero {
  padding: 44px 0 24px;
}

.hero-text {
  max-width: 760px;
}

.pill {
  display: inline-flex;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 14px;
  font-weight: 900;
}

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

h1 {
  margin: 16px 0 14px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -2px;
}

h2 {
  margin-bottom: 5px;
  font-size: 30px;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero p {
  font-size: 20px;
}

.main-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: stretch;
  margin: 18px 0 26px;
}

.card,
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-card,
.info-card {
  padding: 26px;
}

.card-title {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
}

.icon.blue {
  background: var(--blue);
}

.icon.green {
  background: var(--green);
}

form {
  display: grid;
  gap: 15px;
}

label {
  display: grid;
  gap: 8px;
  color: #273d5b;
  font-weight: 900;
}

label span {
  font-size: 15px;
}

input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  color: var(--text);
  background: #f9fcff;
  border: 1px solid #cddff1;
  border-radius: 14px;
  outline: none;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(33, 118, 255, 0.12);
}

.hidden-device {
  display: none;
}

.submit-btn,
.admin-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 18px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
  cursor: pointer;
}

.submit-btn:hover,
.admin-button:hover {
  filter: brightness(0.96);
}

.submit-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.form-result {
  min-height: 26px;
  color: var(--muted);
  font-weight: 900;
}

.form-result.success {
  color: var(--green);
}

.form-result.error {
  color: var(--red);
}

.simple-list {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.simple-list li {
  padding: 14px 15px;
  border-radius: 14px;
  color: #0d6940;
  background: var(--green-soft);
  font-weight: 800;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0 42px;
}

.step {
  padding: 22px;
}

.step span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 13px;
  font-weight: 900;
}

footer {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 40px;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  nav {
    width: 100%;
  }

  nav a {
    background: var(--white);
  }

  .main-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 20px;
  }
}
