:root {
  color-scheme: dark;
  --red: #ff2942;
  --ink: #0c0c0e;
  --muted: #bdb9bd;
  --line: #343035;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: #fff;
  font: 17px/1.6 system-ui, sans-serif;
}

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

button,
select,
textarea {
  font: inherit;
}

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
}

header {
  border-bottom: 1px solid var(--line);
  background: #09090a;
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 96px;
}

.brand {
  display: block;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: 120px;
  height: auto;
}

nav,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

nav a:hover {
  color: var(--red);
}

.hero {
  background:
    linear-gradient(90deg, #09090afc 5%, #09090aeb 38%, #09090a35 100%),
    url("images/hero.webp") center right/cover,
    #191316;
  border-bottom: 1px solid var(--line);
  padding: clamp(60px, 8vw, 105px) 0;
}

.kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

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

h1,
h2 {
  line-height: 1.04;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(46px, 7vw, 84px);
}

h2 {
  margin-bottom: 23px;
  font-size: clamp(38px, 6vw, 68px);
}

h3 {
  line-height: 1.2;
}

p {
  color: var(--muted);
}

.hero p {
  max-width: 490px;
  color: #e3dfe1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 19px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #151418;
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}

.primary {
  border-color: #d10e29;
  background: #d10e29;
}

.btn:hover {
  filter: brightness(1.2);
}

section {
  padding: 75px 0;
  border-bottom: 1px solid var(--line);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 2px solid #cf1830;
  background: #161518;
}

.card p {
  margin-bottom: 0;
}

.school {
  background: linear-gradient(115deg, #210e13, #101012 70%);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}

.steps li::before {
  content: "0" counter(step);
  color: var(--red);
  font-weight: 850;
}

details {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

summary {
  font-weight: 750;
  cursor: pointer;
}

details p {
  margin: 12px 0 0;
}

.contacts {
  background:
    radial-gradient(circle at 85% 20%, #4a111b 0, transparent 32%),
    #101012;
}

.contacts-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: end;
  margin-bottom: 34px;
}

.contacts-heading h2,
.contacts-heading p {
  margin-bottom: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
}

.contact-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid var(--line);
  background: #161518;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.contact-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
}

.contact-card strong {
  max-width: 720px;
  margin: 15px 0 8px;
  font-size: clamp(27px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.contact-card > span:not(.contact-label):not(.contact-action) {
  color: var(--muted);
}

.contact-label {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-action {
  margin-top: auto;
  padding-top: 30px;
  font-weight: 750;
}

.contact-phone {
  background: #261015;
}

.form {
  display: grid;
  gap: 10px;
}

select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #666;
  border-radius: 4px;
  background: #171619;
  color: #fff;
}

textarea {
  resize: vertical;
}

footer {
  padding: 25px 0;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner a:hover {
  color: #fff;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid #ff7888;
  outline-offset: 4px;
}

@media (max-width: 720px) {
  .grid,
  .split,
  .contacts-heading,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    background-position: 64% center;
  }

  header .wrap {
    flex-wrap: wrap;
    gap: 9px;
    padding-block: 10px;
  }

  .brand-logo {
    width: 106px;
  }

  nav {
    gap: 13px;
    font-size: 14px;
  }

  section {
    padding: 52px 0;
  }

  .contact-card {
    min-height: 225px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 4px;
  }
}
