* {
  box-sizing: border-box
}
body {
  margin: 0;
  background: #f6faf8;
  color: #294a4a;
  font: 17px 'Sofia Sans',sans-serif
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 40px;
  gap: 24px
}
.logo {
  font: 400 28px Geologica
}
.logo span {
  display: block;
  font: 16px 'Sofia Sans';
  margin-top: 8px
}
h1 {
  font: 400 33px/1.15 Geologica;
  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 {
  font-size: 16px;
  margin: 0 0 14px
}
article {
  height: 708px;
  background: white;
  border: 1px solid #b4cdca;
  border-radius: 30px;
  padding: 21px 24px;
  display: flex;
  flex-direction: column;
  scroll-margin: 20px
}
.status {
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px
}
h2 {
  font: 400 30px/1.16 Geologica;
  margin: 4px 0 22px
}
h3 {
  font: 400 27px Geologica;
  margin: 17px 0 0
}
p {
  line-height: 1.45
}
button {
  font: 600 17px 'Sofia Sans';
  background: #294a4a;
  color: white;
  border: 0;
  border-radius: 12px;
  min-height: 48px;
  padding: 13px;
  cursor: pointer
}
button:focus-visible,input:focus-visible {
  outline: 3px solid #294a4a;
  outline-offset: 3px
}
article>button:last-of-type {
  margin-top: auto
}
.calendar-leaf {
  border-top: 9px solid #294a4a;
  border-bottom: 1px solid #b4cdca;
  background: #eef6f3;
  text-align: center;
  padding: 15px;
  margin: 8px 15px 12px
}
.calendar-leaf strong {
  display: block;
  font: 400 100px/1.15 Geologica
}
.calendar-leaf p {
  margin: 0 0 8px
}
.hint {
  font-size: 14px;
  color: #516c69
}
.specialties {
  display: grid
}
.specialties button {
  text-align: left;
  border-radius: 0;
  background: white;
  color: #294a4a;
  border-bottom: 1px solid #b4cdca;
  padding: 18px 12px
}
.specialties span {
  font-size: 25px
}
.specialties small {
  display: block;
  font-size: 14px;
  margin-top: 6px;
  font-weight: 400
}
.specialties button[aria-pressed=true] {
  background: #e9f3ef;
  border-left: 3px solid #294a4a
}
.no-visits {
  padding: 20px 0
}
.no-visits b {
  font-size: 17px
}
.no-visits p {
  font-size: 14px;
  margin-bottom: 0
}
.date-row {
  display: flex;
  gap: 20px;
  align-items: center;
  border-block: 1px solid #b4cdca;
  padding: 16px 0;
  margin: 18px 0
}
.date-row strong {
  font: 400 83px/1 Geologica
}
.date-row div {
  line-height: 1.6
}
.date-row span {
  font-size: 14px
}
.slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}
.slots button {
  background: #eef6f3;
  color: #294a4a
}
.slots button[aria-pressed=true] {
  background: #294a4a;
  color: white
}
.location {
  border-left: 3px solid #b4cdca;
  padding-left: 16px;
  margin-top: 28px
}
.location b {
  display: block;
  font-weight: 400;
  margin-top: 8px
}
form {
  display: grid;
  gap: 20px
}
label {
  display: block
}
input:not([type=checkbox]) {
  display: block;
  width: 100%;
  font: 17px 'Sofia Sans';
  color: #294a4a;
  border: 1px solid #89aaa6;
  border-radius: 8px;
  padding: 13px 10px;
  margin-top: 8px
}
.consent {
  display: flex;
  gap: 10px;
  line-height: 1.4;
  font-size: 16px
}
.consent input {
  width: 23px;
  height: 23px;
  flex-shrink: 0
}
.result {
  background: #e9f3ef
}
.appointment {
  border-block: 1px solid #b4cdca;
  padding: 20px 0;
  display: grid;
  gap: 8px
}
.appointment strong {
  font: 400 60px/1.1 Geologica
}
.memo {
  border-top: 1px solid #b4cdca;
  padding-top: 22px;
  margin-top: 15px
}
.memo ul {
  padding-left: 20px;
  line-height: 1.5
}
.memo li {
  margin-bottom: 10px
}
.secondary {
  background: white;
  color: #294a4a
}
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: 27px
  }
  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 .appointment {
  padding: 12px 0
}
.result .appointment strong {
  font-size: 52px
}
.result h2 {
  margin-bottom: 14px
}
.result h3 {
  margin-top: 12px
}
.result .memo {
  margin-top: 10px;
  padding-top: 14px
}
.result .memo ul {
  margin: 10px 0
}
.result .memo li {
  margin-bottom: 8px
}
.result>p {
  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:first-child{grid-column:span 2}main>section:first-child>p{text-align:center}}@media(min-width:1001px){main article{border-radius:24px;box-shadow:0 18px 50px #294a4a20}}

@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:26px}
.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:26px}
.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-story.is-visible img{animation:clinic-light 1.2s ease both}@keyframes clinic-light{from{opacity:.3}to{opacity:1}}
@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}}
