@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --accent: #2971f5;
  --accent-dark: #1b5ad0;
  --text: #000;
  --muted: #4a4a4a;
  --grey: #ebebeb;
  --dark: #292929;
  --error: #d0261b;
  --ok: #1f8a4c;
  --radius-pill: 30px;
  --gutter: 20px;
  --section-pad: 135px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: #fff;
}

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

.container { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 800px; }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 40px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font: 700 16px/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease-in-out, color .2s ease-in-out, border-color .2s ease-in-out;
}
.btn:hover,
.btn:focus-visible { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:focus-visible { outline: 3px solid rgba(41, 113, 245, .4); outline-offset: 3px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--hero { border: 0; }
.btn--hero:hover,
.btn--hero:focus-visible { background: #fff; color: var(--accent); }

/* Обложка */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 80px var(--gutter);
  color: #fff;
  text-align: center;
  background:
    linear-gradient(rgba(0, 0, 0, .8), rgba(0, 0, 0, .8)),
    url("../img/hero.jpg") center / cover no-repeat #444;
}
@media (max-width: 900px) {
  .hero {
    background-image:
      linear-gradient(rgba(0, 0, 0, .8), rgba(0, 0, 0, .8)),
      url("../img/hero-900.jpg");
  }
}
.hero__inner { max-width: 960px; margin: 0 auto; }
.hero__brand {
  margin-bottom: 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .75;
}
.hero__title {
  font-size: 58px;
  font-weight: 700;
  line-height: 1.17;
}
.hero__lead {
  max-width: 760px;
  margin: 30px auto 60px;
  font-size: 20px;
  line-height: 1.5;
  opacity: .9;
}
.hero__arrow {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  color: #dbdbdb;
  animation: hero-arrow 1.7s ease-in-out infinite;
}
@keyframes hero-arrow {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}
@media (prefers-reduced-motion: reduce) { .hero__arrow { animation: none; } }

/* Секции */
.section { padding: var(--section-pad) 0; }
.section--grey { background: var(--grey); }
.section__title {
  max-width: 760px;
  margin: 0 auto 40px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.23;
  text-align: center;
}
.section__descr {
  max-width: 620px;
  margin: 0 auto 90px;
  font-size: 20px;
  line-height: 1.5;
  text-align: center;
  color: var(--muted);
}

.about__title { margin-bottom: 30px; font-size: 30px; font-weight: 300; line-height: 1.35; }
.about__text { font-size: 18px; line-height: 1.6; color: var(--muted); }

/* Карточки услуг */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px 80px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.card { padding-left: 24px; border-left: 3px solid var(--accent); }
.card__title { margin-bottom: 12px; font-size: 22px; font-weight: 700; line-height: 1.35; }
.card__text { font-size: 16px; line-height: 1.55; color: var(--muted); }

/* Форма заявки */
.lead-form { max-width: 960px; margin: 0 auto; }
.lead-form__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.field__label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 600; }
.field__input {
  width: 100%;
  height: 60px;
  padding: 0 20px;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
  font: 16px var(--font);
  appearance: none;
}
.field__input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.field__input[aria-invalid="true"] { border-color: var(--error); }
.lead-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lead-form__hint { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.lead-form__status { margin: 20px 0 0; padding: 14px 18px; font-weight: 600; }
.lead-form__status[data-kind="error"] { background: #fdecea; color: var(--error); }
.lead-form__status[data-kind="ok"] { background: #e7f6ed; color: var(--ok); }
.lead-form .btn { display: flex; width: 100%; max-width: 360px; margin: 30px auto 0; }
.lead-form__note { margin-top: 30px; font-size: 14px; text-align: center; color: var(--muted); }

/* Подвал */
.footer { padding: 100px 0; background: var(--dark); color: #fff; }
.footer__inner { max-width: 800px; }
.footer__title { margin-bottom: 30px; font-size: 32px; font-weight: 700; line-height: 1.25; }
.footer__lead { margin-bottom: 20px; font-size: 20px; line-height: 1.5; opacity: .9; }
.footer__text { font-size: 16px; line-height: 1.6; opacity: .7; }
.footer__copy { margin-top: 60px; font-size: 14px; opacity: .5; }

@media (max-width: 960px) {
  :root { --section-pad: 90px; }
  .section__title { margin-bottom: 20px; }
  .section__descr { margin-bottom: 45px; }
  .cards { gap: 40px; }
  .lead-form__row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --section-pad: 60px; --gutter: 16px; }
  .hero__title { font-size: 30px; }
  .hero__lead { margin: 20px auto 40px; font-size: 17px; }
  .section__title { font-size: 26px; }
  .section__descr { font-size: 17px; }
  .about__title { font-size: 22px; }
  .about__text { font-size: 16px; }
  .cards { grid-template-columns: 1fr; gap: 32px; }
  .card__title { font-size: 19px; }
  .footer { padding: 60px 0; }
  .footer__title { font-size: 24px; }
  .footer__lead { font-size: 17px; }
  .lead-form .btn { max-width: none; }
}
