* {
  box-sizing: border-box
}
body {
  margin: 0;
  background: #f2f8fa;
  color: #154d61;
  font: 16px 'IBM Plex Sans',sans-serif
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding: 30px 40px
}
.logo {
  font: 600 31px 'PT Sans Narrow'
}
.logo span {
  display: block;
  font: 16px 'IBM Plex Sans';
  margin-top: 8px
}
h1 {
  font: 700 34px/1.15 'PT Sans Narrow';
  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;
  background: white;
  border: 1px solid #9ebcc7;
  border-radius: 12px;
  padding: 21px 24px;
  display: flex;
  flex-direction: column;
  scroll-margin: 20px
}
.status {
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 27px
}
h2 {
  font: 700 38px/1.06 'PT Sans Narrow';
  margin: 0 0 26px
}
p {
  line-height: 1.45
}
.warehouse {
  font-size: 14px;
  margin: 0 0 20px
}
button {
  font: 500 16px 'IBM Plex Sans';
  padding: 13px;
  min-height: 48px;
  border: 0;
  border-radius: 4px;
  background: #154d61;
  color: white;
  cursor: pointer
}
button:focus-visible,input:focus-visible,select:focus-visible {
  outline: 3px solid #154d61;
  outline-offset: 3px
}
article>button:last-of-type {
  margin-top: auto
}
.rack {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border: 6px solid #55717c;
  gap: 6px;
  background: #55717c;
  margin: 15px 0 24px
}
.rack span {
  display: grid;
  place-items: center;
  min-height: 65px;
  background: #e6f3f5;
  font: 700 22px 'PT Sans Narrow'
}
.rack .filled {
  background: #154d61;
  color: white
}
.scanner {
  height: 180px;
  position: relative;
  border: 1px solid #9ebcc7;
  padding: 30px;
  margin: 6px 0 12px;
  text-align: center
}
.scanner span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: #154d61;
  top: 80px
}
.barcode {
  height: 74px;
  width: 160px;
  max-width: 100%;
  margin: auto;
  background: repeating-linear-gradient(90deg,#154d61 0 2px,white 2px 5px,#154d61 5px 9px,white 9px 13px,#154d61 13px 14px,white 14px 20px)
}
.scanner b {
  display: block;
  font: 700 30px 'PT Sans Narrow';
  margin-top: 15px
}
.hint {
  font-size: 14px;
  color: #55717c
}
.secondary {
  background: #d5edf1;
  color: #154d61
}
form {
  margin-top: 22px
}
label {
  display: block
}
input,select {
  display: block;
  width: 100%;
  font: 18px 'IBM Plex Sans';
  color: #154d61;
  border: 1px solid #9ebcc7;
  background: white;
  padding: 12px 10px;
  border-radius: 3px;
  margin-top: 8px
}
form button {
  width: 100%
}
#cell-error,#reason-error {
  font-size: 14px;
  color: #805036;
  min-height: 42px
}
.sku {
  border: 1px solid #9ebcc7;
  padding: 20px 15px;
  font: 700 37px 'PT Sans Narrow';
  margin: 4px 0 25px
}
.sku span {
  display: block;
  font: 14px 'IBM Plex Sans';
  margin-top: 10px
}
.expected {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #9ebcc7;
  padding-bottom: 20px;
  margin-bottom: 24px
}
#actual {
  font: 700 45px 'PT Sans Narrow';
  text-align: center;
  padding: 13px
}
.difference {
  padding-block: 15px 25px
}
.difference strong {
  display: block;
  font: 700 92px/1 'PT Sans Narrow'
}
.difference span {
  display: block;
  margin-top: 10px
}
table {
  border-collapse: collapse;
  width: 100%;
  margin: 10px 0 24px
}
caption {
  text-align: left;
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 20px
}
th,td {
  border-bottom: 1px solid #9ebcc7;
  padding: 20px 0;
  font-weight: 400;
  text-align: left
}
td {
  font: 700 27px 'PT Sans Narrow';
  text-align: right
}
.resolution {
  border-left: 4px solid #154d61;
  padding: 7px 0 7px 16px
}
.resolution p {
  margin: 10px 0
}
.result {
  background: #e8f4f6
}
small {
  font-size: 14px;
  margin-top: 14px
}
footer {
  font-size: 14px;
  padding: 24px 40px
}
@media(max-width:1000px) {
  header {
    padding: 25px 20px;
    flex-wrap: wrap;
    align-items: flex-start
  }
  h1 {
    font-size: 29px
  }
  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 th,.result td {
  padding: 12px 0
}
.result caption {
  margin-bottom: 14px
}
.result h2 {
  margin-bottom: 18px
}
.result .resolution p {
  margin: 8px 0
}
.result .hint {
  margin: 10px 0
}

@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:nth-child(4){grid-column:2}}@media(min-width:1001px){main article{border-radius:3px;border:3px solid #154d61}}

@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:2px;border-bottom:3px solid #154d61}
.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:2px;border-bottom:3px solid #154d61}
.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:after{content:"";position:absolute;inset:0;border-top:2px solid #9df1ff;transform:translateY(0);animation:shelf-scan 8s linear infinite}@keyframes shelf-scan{to{transform:translateY(100%)}}
@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}}
