* {
  box-sizing: border-box
}
body {
  margin: 0;
  background: #edf9ff;
  color: #164779;
  font: 16px 'PT Sans',sans-serif
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 35px 42px 30px;
  gap: 28px
}
h1,h2,.wordmark {
  font-family: Manrope,sans-serif
}
h1 {
  font-size: 36px;
  line-height: 1.15;
  margin: 0
}
header p {
  line-height: 1.6
}
.wordmark {
  font-weight: 700;
  font-size: 27px
}
.wordmark span {
  display: block;
  font: 16px 'PT Sans';
  margin-top: 6px
}
.flow {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 22px;
  padding: 0 42px
}
.caption {
  font-size: 16px;
  margin: 0 0 14px
}
.phone {
  height: 708px;
  background: white;
  border: 1px solid #b9e5fc;
  border-radius: 32px;
  padding: 22px 25px;
  display: flex;
  flex-direction: column;
  position: relative;
  scroll-margin: 20px
}
.status {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 26px
}
.brand {
  font-weight: bold;
  margin: 0 0 18px
}
h2 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 18px
}
p {
  line-height: 1.4
}
.bottle {
  height: 225px;
  width: 100%;
  margin: 0 auto 4px
}
button {
  font: 700 16px 'PT Sans';
  border: 0;
  border-radius: 14px;
  background: #0867b2;
  color: white;
  min-height: 48px;
  padding: 12px 15px;
  cursor: pointer
}
button:focus-visible,input:focus-visible {
  outline: 3px solid #164779;
  outline-offset: 3px
}
.phone>button:last-of-type {
  margin-top: auto
}
small {
  font-size: 14px;
  text-align: center;
  margin-top: 14px
}
.volume {
  padding: 22px 0;
  border-block: 1px solid #b9e5fc
}
.volume b {
  font: 700 100px/1 Manrope
}
.volume span {
  display: block
}
.counter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0
}
.counter button {
  background: #edf9ff;
  color: #164779;
  width: 54px
}
.counter output {
  font: 700 40px Manrope
}
.summary {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #b9e5fc;
  padding-top: 22px
}
.empty {
  background: #edf9ff;
  border-radius: 16px;
  padding: 16px;
  margin: 5px 0 22px
}
.empty span {
  font-size: 38px
}
form {
  display: grid;
  gap: 16px
}
label {
  display: block
}
input:not([type=checkbox]) {
  display: block;
  width: 100%;
  padding: 14px 10px;
  border: 1px solid #8bb9d6;
  border-radius: 8px;
  font: 16px 'PT Sans';
  color: #164779;
  margin-top: 6px
}
.hint {
  font-size: 14px;
  color: #456a86
}
.slots {
  display: flex;
  gap: 7px;
  margin: 18px 0 30px
}
.slots button {
  flex: 1;
  background: #edf9ff;
  color: #164779;
  padding: 10px 5px
}
.slots button[aria-pressed=true] {
  background: #164779;
  color: white
}
.return {
  font-size: 18px;
  display: flex;
  gap: 10px;
  align-items: center
}
.return input {
  width: 22px;
  height: 22px
}
.receipt {
  margin: 24px 0
}
.receipt p {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid #b9e5fc
}
.final {
  background: #dff2fd
}
.check {
  width: 64px;
  height: 64px;
  border: 1px solid #164779;
  border-radius: 50%;
  font-size: 40px;
  text-align: center;
  margin: 10px 0 24px
}
.ticket {
  margin: 0
}
.arrival {
  display: grid;
  gap: 4px;
  padding: 25px 0;
  border-block: 1px solid #9fcde7;
  margin: 24px 0 10px
}
.arrival strong {
  font: 700 44px Manrope
}
.secondary {
  background: white;
  color: #164779
}
footer {
  padding: 25px 42px;
  font-size: 14px
}
@media(max-width:1000px) {
  header {
    padding: 25px 20px;
    align-items: flex-start;
    flex-wrap: wrap
  }
  h1 {
    font-size: 29px
  }
  .flow {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    gap: 28px
  }
  .phone {
    width: 100%;
    max-width: 430px;
    margin: auto
  }
  .caption {
    max-width: 430px;
    margin: 0 auto 10px
  }
  header p {
    margin: 0
  }
  footer {
    padding: 25px 20px
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto
  }
}

@media (min-width: 1001px) and (max-width: 1800px) {
  .flow {
    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{box-shadow:0 22px 50px #173a5520}}

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

/* Задание 15: самостоятельные визуальные материалы. */
.visual-hero img{object-position:68% center}
.visual-hero{margin:0 0 18px;position:relative;overflow:hidden;flex:0 0 225px;min-height:0;border-radius:24px 24px 8px 8px}
.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:24px 24px 8px 8px}
.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{animation:water-breathe 14s ease-in-out infinite alternate}@keyframes water-breathe{to{transform:scale(1.07)}}
@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}}
