* {
  box-sizing: border-box
}
body {
  margin: 0;
  background: #fff7f1;
  color: #542744;
  font: 16px Commissioner,sans-serif
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding: 30px 40px
}
.logo {
  font: 29px 'Russo One'
}
.logo p {
  font: 16px Commissioner;
  margin: 8px 0
}
h1 {
  font: 30px/1.25 'Russo One';
  margin: 0
}
header p {
  line-height: 1.5
}
main {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 22px;
  padding: 0 40px
}
.phase {
  margin: 0 0 14px
}
article {
  height: 708px;
  border: 1px solid #d6b5c5;
  border-radius: 25px;
  background: white;
  padding: 21px 24px;
  display: flex;
  flex-direction: column;
  scroll-margin: 20px
}
.status {
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px
}
h2 {
  font: 30px/1.2 'Russo One';
  margin: 0 0 25px
}
p {
  line-height: 1.5
}
button {
  font: 600 16px Commissioner;
  background: #a32f65;
  color: white;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 13px;
  cursor: pointer
}
button:focus-visible,input:focus-visible,select:focus-visible {
  outline: 3px solid #542744;
  outline-offset: 3px
}
article>button:last-of-type {
  margin-top: auto
}
.route-art {
  height: 252px;
  position: relative;
  padding-top: 10px
}
.route-art svg {
  width: 100%;
  height: 225px
}
.from {
  position: absolute;
  top: 10px;
  left: 60px
}
.to {
  position: absolute;
  bottom: 0;
  left: 30px
}
form {
  display: flex;
  flex-direction: column;
  gap: 23px
}
label {
  line-height: 1.4
}
input:not([type=checkbox]),select {
  display: block;
  width: 100%;
  background: white;
  border: 1px solid #c39bb1;
  border-radius: 6px;
  padding: 13px 10px;
  margin-top: 8px;
  font: 16px Commissioner;
  color: #542744
}
.point {
  padding-left: 25px;
  position: relative
}
.point:before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 11px;
  height: 11px;
  background: #542744;
  border-radius: 50%
}
.destination:before {
  background: #a32f65;
  border-radius: 0
}
.connection {
  width: 1px;
  height: 25px;
  background: #c39bb1;
  margin: -20px 0 -20px 5px
}
.hint {
  font-size: 14px;
  color: #79586e
}
.vehicles {
  display: grid;
  gap: 12px;
  margin-top: 25px
}
.vehicles button {
  text-align: left;
  background: #fff7f1;
  color: #542744;
  border: 1px solid #e6cfda;
  padding: 15px
}
.vehicles button[aria-pressed=true] {
  border: 2px solid #a32f65
}
.vehicles b {
  display: block;
  font-size: 22px
}
.vehicles span,.vehicles small {
  display: block;
  font-size: 14px;
  margin-top: 8px
}
.vehicles small {
  font-size: 18px;
  font-weight: 700
}
.helpers {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 24px;
  flex-wrap: wrap
}
.helpers input {
  width: 23px;
  height: 23px
}
.helpers b {
  font-size: 14px
}
.price strong {
  display: block;
  font: 45px 'Russo One'
}
.price span {
  display: block;
  margin-top: 6px
}
.promo {
  border-top: 1px solid #d6b5c5;
  margin-top: 20px;
  padding-top: 22px
}
.promo button {
  margin-top: 12px;
  width: 100%
}
#promo-state {
  font-size: 14px;
  min-height: 66px
}
.secondary {
  background: #f0d9e6;
  color: #542744
}
.result {
  background: #f8e9f1
}
.journey {
  padding-left: 20px;
  border-left: 2px solid #a32f65;
  margin: 15px 0
}
.journey p {
  margin: 0;
  padding: 12px 0
}
.facts p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #d6b5c5;
  padding-bottom: 14px
}
small {
  font-size: 14px;
  margin-top: 14px
}
footer {
  padding: 24px 40px;
  font-size: 14px
}
@media(max-width:1000px) {
  header {
    padding: 25px 20px;
    flex-wrap: wrap;
    align-items: flex-start
  }
  h1 {
    font-size: 25px
  }
  main {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    gap: 28px
  }
  article,.phase {
    max-width: 430px;
    margin-left: auto;
    margin-right: auto
  }
  article {
    width: 100%
  }
  footer {
    padding: 24px 20px
  }
}
.result .facts p {
  padding-bottom: 10px;
  margin: 12px 0
}
.result .journey {
  margin: 10px 0
}
.result h2 {
  margin-bottom: 18px
}

@media (min-width: 1001px) and (max-width: 1800px) {
  main {
    grid-template-columns: repeat(2, minmax(0, 430px));
    justify-content: center;
  }
}

/* Task 12: complete screens. */
@media(min-width:1001px){header{height:130px;padding:20px 40px;gap:24px}header h1{font-size:30px}header p{font-size:14px}main.flow,body>main{display:grid;grid-template-columns:repeat(3,340px);justify-content:center;align-items:start;gap:48px 42px;padding:0 40px 40px}main>section{min-width:0}main article{width:340px;height:708px;margin:0 auto}main>section>p:first-child{height:24px;margin:0 0 12px}}
@media(min-width:1001px){main>section:first-child{grid-column:span 2}main>section:first-child>p{text-align:center}}@media(min-width:1001px){main article{border-radius:12px;border-top:8px solid #a32f65}}

@media(min-width:1001px){body{padding-bottom:160px}}

/* Задание 15: самостоятельные визуальные материалы. */
.visual-hero{margin:0 0 18px;position:relative;overflow:hidden;flex:0 0 225px;min-height:0;border-radius:8px 32px 8px 32px}
.visual-hero img{display:block;width:100%;height:225px;object-fit:cover}
.visual-story{margin:24px auto 0;max-width:340px;overflow:hidden;border-radius:8px 32px 8px 32px}
.visual-story img{display:block;width:100%;height:190px;object-fit:cover}
.visual-story figcaption{font-size:14px;line-height:1.4;padding:12px 0}
.visual-reference{max-width:340px;margin:20px auto;overflow:hidden}.visual-reference>svg{width:100%;height:190px}.visual-reference>div{margin:0}
.visual-disclosure{font-size:14px;line-height:1.5}
.visual-hero img{width:110%;max-width:none;animation:cargo-pan 16s ease-in-out infinite alternate}@keyframes cargo-pan{to{transform:translateX(-8%)}}
@media(max-width:1000px){.visual-story,.visual-reference{max-width:430px}.visual-hero{flex-basis:225px}}
@media(prefers-reduced-motion:reduce){.visual-hero img,.visual-story img,.visual-hero:after{animation:none!important;transition:none!important;transform:none!important;clip-path:none!important;opacity:1!important}}
