:root {
  --page: #f6f6f6;
  --ink: #20242a;
  --muted: #6d7580;
  --nav: #2f363d;
  --teal: #20a7b8;
  --teal-dark: #178d9d;
  --line: #d9dee5;
  --red: #e31732;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

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

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

.topbar {
  min-height: 70px;
  padding: 0 58px;
  background: var(--nav);
  color: white;
  display: flex;
  align-items: center;
  gap: 56px;
}

.brand {
  font-size: 24px;
  font-weight: 500;
  white-space: nowrap;
}

.brand span {
  color: #ffd24b;
}

.navlinks {
  display: flex;
  gap: 28px;
  align-items: center;
  color: #c5c7ca;
  font-size: 19px;
}

.navlinks a:first-child {
  color: #fff;
  font-weight: 700;
}

.hero-card {
  width: min(1388px, calc(100% - 74px));
  margin: 60px auto;
  padding: 80px 58px;
  display: grid;
  grid-template-columns: 290px 1fr 290px;
  align-items: center;
  gap: 42px;
  background:
    radial-gradient(#e3e7eb 1px, transparent 1px) 0 0 / 5px 5px,
    #fff;
  border-radius: 4px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
}

.stat-box {
  min-height: 149px;
  padding: 22px;
  border-radius: 4px;
  background: var(--teal);
  color: white;
  display: grid;
  place-items: center;
  text-align: center;
}

.stat-box span {
  font-size: 25px;
  font-weight: 700;
}

.stat-box strong {
  font-size: 50px;
  line-height: 1;
}

.server-title {
  text-align: center;
}

.server-title h1 {
  margin: 0 0 18px;
  font-size: 76px;
  line-height: 0.95;
  font-weight: 800;
}

.server-title p {
  margin: 0;
  font-size: 29px;
}

.server-title button {
  border: 1px solid #cfd5dc;
  background: white;
  color: var(--red);
  border-radius: 5px;
  padding: 5px 8px;
  cursor: pointer;
}

.content-card,
.split-section,
footer {
  width: min(1042px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.content-card {
  margin-top: 0;
  padding: 60px;
  background: white;
  border-radius: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.09);
}

.tabs {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.tab {
  padding: 14px 20px;
  color: #006cff;
  font-size: 20px;
}

.tab.active {
  color: #2f3943;
  border: 1px solid var(--line);
  border-bottom-color: white;
  border-radius: 5px 5px 0 0;
  margin-bottom: -1px;
}

.apply-form {
  display: grid;
  gap: 22px;
}

.form-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.form-head h2,
.info-card h2,
.manual-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.form-head p,
.info-card p,
.manual-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.progress-pill {
  min-width: 74px;
  padding: 10px 13px;
  border-radius: 5px;
  background: var(--teal);
  color: white;
  text-align: center;
  font-weight: 800;
}

label {
  display: grid;
  gap: 10px;
  color: #08090a;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd3dc;
  border-radius: 4px;
  background: white;
  color: #3f4a55;
  padding: 11px 15px;
  outline: none;
  font-size: 20px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(32, 167, 184, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: #748395;
}

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

input[type="range"] {
  padding: 0;
  accent-color: var(--teal);
}

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

.submit-button,
.result-box button {
  justify-self: start;
  border: 0;
  border-radius: 4px;
  background: var(--teal);
  color: white;
  padding: 13px 22px;
  font-weight: 800;
  cursor: pointer;
}

.submit-button:hover,
.result-box button:hover {
  background: var(--teal-dark);
}

.result-box {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid #cbd3dc;
  background: #f8fafc;
}

.result-box textarea {
  min-height: 220px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
}

.hidden {
  display: none;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 34px;
}

.info-card {
  padding: 34px;
  background: white;
  border-radius: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.info-card ul {
  margin: 20px 0 0;
  padding-left: 22px;
  color: #313942;
  line-height: 1.7;
}

.info-card li::marker {
  color: var(--teal);
}

.manual-card {
  margin-top: 34px;
}

.manual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.manual-grid div {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px;
  background: #fbfcfd;
}

.manual-grid h3 {
  margin: 0 0 8px;
}

footer {
  margin-top: 34px;
  margin-bottom: 44px;
  padding: 22px 0;
  color: var(--muted);
  display: flex;
  gap: 24px;
  align-items: center;
}

footer strong {
  color: var(--ink);
}

@media (max-width: 980px) {
  .topbar {
    padding: 18px 22px;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .navlinks {
    flex-wrap: wrap;
    gap: 14px 22px;
    font-size: 17px;
  }

  .hero-card {
    grid-template-columns: 1fr;
    padding: 36px 24px;
  }

  .server-title {
    order: -1;
  }

  .server-title h1 {
    font-size: 58px;
  }

  .split-section,
  .form-grid,
  .manual-grid {
    grid-template-columns: 1fr;
  }

  .content-card {
    padding: 30px;
  }
}

@media (max-width: 560px) {
  .hero-card {
    width: min(100% - 24px, 1388px);
    margin: 24px auto;
  }

  .content-card,
  .split-section,
  footer {
    width: min(100% - 24px, 1042px);
  }

  .tabs {
    overflow-x: auto;
  }

  .form-head,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
