:root {
  color-scheme: light;
  --paper: #F6F7F4;
  --band: #ECEFF2;
  --ink: #16202E;
  --slate: #4F5967;
  --rule: #D8DCE1;
  --blue: #136DF4;
  --blue-press: #0F57C4;
  --marker: #FFE58A;
  --danger: #B42318;

  --font-head: "Young Serif", Georgia, serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: 20px;
  --measure: 640px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(30px, 8vw, 42px);
  line-height: 1.14;
}

h2 {
  font-size: clamp(26px, 6.4vw, 32px);
  line-height: 1.2;
}

p {
  margin: 0;
}

/* Header */

.site-head {
  padding: 18px 0;
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.site-head__place {
  color: var(--slate);
  font-size: 14px;
}

/* Hero */

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

.hero__face {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.hero__lede {
  margin-top: 16px;
  color: var(--slate);
  font-size: 18px;
}

.hero .button {
  margin-top: 28px;
}

/* Buttons */

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 14px 24px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.button:hover {
  background: var(--blue-press);
}

.button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.button--quiet {
  background: var(--ink);
}

.button--quiet:hover {
  background: #0B121C;
}

/* Sound familiar */

.problems {
  padding: 8px 0 56px;
}

.problems__list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.problem {
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}

.problem:last-child {
  border-bottom: 1px solid var(--rule);
}

.problem h3 {
  display: inline;
  padding: 0 3px;
  font-size: 20px;
  line-height: 1.5;
  background-image: linear-gradient(var(--marker), var(--marker));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 0.62em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.problem p {
  margin-top: 8px;
  color: var(--slate);
}

/* About */

.about {
  padding: 0 0 56px;
}

.about__photo {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  object-fit: cover;
}

.about__text {
  margin-top: 24px;
}

.about__text p {
  margin-top: 12px;
}

/* Next step */

.next {
  padding: 56px 0;
  background: var(--band);
}

.next p {
  margin-top: 14px;
}

.next .button {
  margin-top: 28px;
}

.next__aside {
  margin-top: 16px;
  color: var(--slate);
  font-size: 15px;
}

/* Report request */

.report {
  padding: 56px 0 64px;
}

.report h2 {
  font-size: 24px;
}

.report__intro {
  margin-top: 12px;
  color: var(--slate);
}

.report-form {
  margin-top: 24px;
}

.field + .field {
  margin-top: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #B9C0C9;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
}

.field input:focus-visible {
  border-color: var(--blue);
  outline-offset: 0;
}

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.report-form .button {
  margin-top: 24px;
}

.form-status {
  margin-top: 14px;
  font-size: 15px;
}

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

.form-done {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 4px solid var(--blue);
  background: #fff;
}

.no-js .report-form,
.js .report-fallback {
  display: none;
}

.report-fallback {
  margin-top: 16px;
}

/* Footer */

.site-foot {
  padding: 28px 0 40px;
  border-top: 1px solid var(--rule);
  color: var(--slate);
  font-size: 14px;
}

.site-foot a {
  color: inherit;
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }

  .hero {
    padding: 48px 0 72px;
  }

  .button {
    display: inline-flex;
    width: auto;
    min-width: 300px;
  }

  .report-form .button {
    min-width: 0;
  }

  .about .wrap {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: center;
  }

  .about__text {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
