.cover {
  background: #13233a;
  color: #fff;
  position: relative;
  overflow: hidden;
  border-bottom: 5px solid #c9a15a;
}
.skyline {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: 155px;
  pointer-events: none;
}
.cover-in {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  align-items: center;
  gap: 7%;
  padding: 52px 0;
}
.cover h1 {
  font-size: clamp(46px, 5.7vw, 80px);
  letter-spacing: -0.04em;
}
.cover em {
  color: #e2bd7a;
}
.phone {
  width: 322px;
  max-width: 100%;
  margin: auto;
  padding: 10px;
  background: #0a1322;
  border: 1px solid #445a75;
  border-radius: 33px;
  box-shadow: 0 14px 32px #07132266;
}
.screen {
  border-radius: 23px;
  overflow: hidden;
  color: #17263a;
  background: #fff;
}
.phone-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #102138;
  color: #f6e9cc;
  font-size: 14px;
  font-weight: bold;
}
.phone-brand img {
  width: 23px;
}
.cover-lesson {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  background: #e8e1cd;
  text-decoration: none;
}
.cover-lesson span {
  font-size: 11px;
  padding: 2px 7px;
  border: 1px solid #958459;
  border-radius: 4px;
}
.cover-lesson strong {
  font:
    700 23px/1.15 "Playfair Display",
    Georgia,
    serif;
}
.cover-lesson small,
.phone-row small {
  font-size: 11px;
}
.phone-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 13px;
  border-top: 1px solid #eee8db;
  text-decoration: none;
}
.phone-row i {
  color: #715727;
}
.phone-row b,
.phone-row small {
  display: block;
  line-height: 1.3;
}
.phone-row b {
  font-size: 12px;
}
.phone-row small {
  color: #536072;
}
.tour-open {
  background: transparent;
  color: #ecd5a7;
  border: 1px solid #647288;
}
.tour-open:hover {
  background: #283c56;
}
.tour-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
dialog {
  border: 0;
  border-radius: 16px;
  padding: 26px;
  max-width: min(480px, 91%);
  color: #14283e;
}
dialog::backdrop {
  background: #071526b8;
}
dialog button {
  padding: 8px 13px;
}
dialog small {
  display: block;
  margin-top: 16px;
}
dialog button:disabled {
  opacity: 0.5;
  cursor: default;
}
@media (max-width: 680px) {
  .cover-in {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 35px 0;
  }
  .cover-in > div:last-child {
    grid-row: 1;
  }
  .phone {
    width: 100%;
    max-width: 360px;
  }
  .phone-row {
    display: none;
  }
  .screen {
    display: grid;
    grid-template-columns: 95px 1fr;
  }
  .phone-brand {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  .cover-lesson {
    gap: 5px;
  }
  .cover .actions {
    gap: 9px;
  }
  .cover .actions a,
  .tour-open {
    font-size: 14px;
    padding: 10px 12px;
  }
  .cover h1 {
    font-size: 48px;
  }
}

.cover-photo {
  display: block;
  width: calc(100% + 32px);
  max-width: none;
  height: 130px;
  object-fit: cover;
  margin: -16px -16px 2px;
}
@media (max-width: 680px) {
  .screen {
    display: block;
  }
  .phone-brand {
    flex-direction: row;
    padding: 6px;
  }
  .cover-lesson {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    padding: 0 10px 0 0;
    gap: 2px 10px;
  }
  .cover-photo {
    grid-row: 1 / span 3;
    width: 100%;
    height: 100%;
    min-height: 103px;
    margin: 0;
  }
  .cover-lesson span {
    margin-top: 8px;
    justify-self: start;
  }
  .cover-lesson strong {
    font-size: 17px;
  }
  .cover-lesson small {
    margin-bottom: 8px;
  }
}
