/* Демо «Лендинг»: логистическая компания Cargoway */
:root {
  --blue: #1d5fd6;
  --blue-dark: #174db0;
  --ink: #0f1b2d;
  --muted: #5d6b80;
  --bg: #f4f7fe;
  --line: #e1e8f2;
  --white: #fff;
  --radius: 14px;
  --head-h: 76px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + var(--head-h) + 10px);
}

body {
  padding-top: var(--bar-h);
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

ul,
ol {
  list-style: none;
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
}

.wrap {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn--lg {
  height: 56px;
  padding: 0 26px;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(29, 95, 214, .25);
}

.btn--primary:hover {
  background: var(--blue-dark);
}

.btn--ghost {
  background: var(--white);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--blue);
}

.btn:active {
  transform: translateY(1px);
}

/* ---------- шапка ---------- */

.header {
  position: sticky;
  top: var(--bar-h);
  z-index: 50;
  background: rgba(244, 247, 254, .9);
  backdrop-filter: blur(10px);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--head-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 20px;
  font-weight: 700;
}

.logo svg {
  width: 40px;
  height: 40px;
}

.logo span {
  color: var(--ink);
}

.logo--light,
.logo--light span {
  color: var(--white);
}

.nav {
  display: flex;
  gap: 44px;
  margin: 0 auto;
  font-weight: 500;
}

.nav a {
  transition: color .2s ease;
}

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

.burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.burger[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- первый экран ---------- */

.hero {
  position: relative;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 480px;
  padding-top: 40px;
  padding-bottom: 40px;
}

/* как в макете, текст заходит на растворяющийся край фото */
.hero__text {
  max-width: 640px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -.02em;
}

.hero__text > p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.45;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 32px;
}

.hero__perks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  margin-top: 44px;
  font-size: 15px;
}

.hero__perks li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__perks svg {
  width: 30px;
  height: 30px;
  color: var(--blue);
}

/* фото прижато к правому краю экрана; слева оно растворяется в фоне страницы */
.hero__art {
  position: absolute;
  top: 0;
  right: 0;
  width: auto;
  max-width: 60%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%);
  mask-image: linear-gradient(to right, transparent, #000 14%);
}

/* ---------- секции ---------- */

.section {
  padding: 56px 0;
}

.section--tight {
  padding-top: 8px;
}

.title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-align: center;
}

.title--left {
  text-align: left;
}

.lead {
  max-width: 760px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 19px;
  text-align: center;
}

/* услуги */

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 32px;
}

.card {
  padding: 24px 32px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(15, 27, 45, .04);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 27, 45, .08);
}

.card svg {
  width: 44px;
  height: 44px;
  color: var(--blue);
}

.card h3 {
  margin-top: 14px;
  font-size: 20px;
  font-weight: 700;
}

.card p {
  max-width: 220px;
  margin-top: 8px;
  color: var(--muted);
}

/* преимущества */

.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.why__art {
  display: block;
  width: 100%;
  height: 190px;
  border-radius: 28px;
  object-fit: cover;
  object-position: left bottom;
}

.checks {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  font-size: 18px;
}

.checks li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.checks svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--blue);
}

.checks--light svg {
  color: #9fc2ff;
}

/* о компании */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 36px;
}

.stats div {
  padding: 26px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.stats b {
  display: block;
  color: var(--blue);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
}

.stats span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 22px;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 22px 20px 22px 68px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 22px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--blue);
  border-radius: 50%;
  color: var(--white);
  font-weight: 600;
}

.steps b,
.steps span {
  display: block;
}

.steps span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
}

/* заявка */

.section--blue {
  background: var(--ink);
  color: var(--white);
}

.request {
  display: grid;
  grid-template-columns: 1fr 520px;
  align-items: center;
  gap: 56px;
}

.request__text > p {
  margin-top: 14px;
  color: #b7c3d6;
  font-size: 19px;
}

.form {
  padding: 32px;
  background: var(--white);
  border-radius: 20px;
  color: var(--ink);
}

.form__fields {
  display: grid;
  gap: 16px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}

.form input,
.form select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form input:focus,
.form select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 95, 214, .15);
}

.form .is-error {
  border-color: #d93b3b;
}

.form__note {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.form__done {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 36px 0;
  text-align: center;
}

.form__done[hidden] {
  display: none;
}

.form__ok {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  background: #e5f6ec;
  border-radius: 50%;
  color: #1c9a55;
}

.form__ok svg {
  width: 32px;
  height: 32px;
}

.form__done h3 {
  font-size: 24px;
}

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

/* ---------- подвал ---------- */

.footer {
  padding: 40px 0;
  background: #0a1422;
  color: #b7c3d6;
  font-size: 15px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.footer b,
.footer span {
  display: block;
}

.footer b {
  margin-bottom: 8px;
  color: var(--white);
}

.footer span {
  margin-top: 4px;
}

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

/* ---------- планшет ---------- */

@media (max-width: 1100px) {
  .hero h1 {
    font-size: 44px;
  }

  .hero__inner {
    min-height: 0;
    padding-bottom: 0;
  }

  .hero__text {
    max-width: 640px;
  }

  .hero__art {
    position: static;
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    margin-top: 32px;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .services,
  .stats,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .request {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- телефон ---------- */

@media (max-width: 767px) {
  :root {
    --head-h: 64px;
  }

  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 16px;
  }

  .burger {
    display: flex;
    margin-left: auto;
  }

  .header__cta {
    display: none;
  }

  /* шапка с backdrop-filter сама служит опорой для меню, поэтому оно absolute */
  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    font-size: 18px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero__inner {
    padding-top: 24px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero__text > p {
    font-size: 17px;
  }

  .hero__actions {
    gap: 12px;
    margin-top: 24px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__perks {
    margin-top: 28px;
  }

  .hero__art {
    margin-top: 24px;
  }

  .section {
    padding: 40px 0;
  }

  .section--tight {
    padding-top: 0;
  }

  .title {
    font-size: 27px;
  }

  .lead {
    font-size: 17px;
  }

  .services,
  .stats,
  .steps {
    gap: 12px;
  }

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

  .card {
    padding: 20px;
  }

  .card p {
    max-width: none;
  }

  .stats b {
    font-size: 28px;
  }

  .why {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .why__art {
    height: 120px;
    border-radius: 18px;
  }

  .checks {
    font-size: 17px;
  }

  .form {
    padding: 20px;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
