:root {
  --green-dark: #00552f;
  --green: #0b6a3c;
  --green-soft: #e7f1e5;
  --gold: #b99843;
  --ink: #1f2824;
  --muted: #596962;
  --line: rgba(0, 85, 47, .18);
  --white: rgba(255, 255, 255, .92);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: #eef6ed;
}

.screen {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 72fr) minmax(320px, 28fr);
  grid-template-rows: 1fr 74px;
  gap: 0 20px;
  width: 100vw;
  height: 100vh;
  padding: clamp(24px, 3vw, 48px) clamp(26px, 2.4vw, 40px) 0;
  background:
    radial-gradient(circle at 55% 15%, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0) 34%),
    linear-gradient(105deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.95) 55%, rgba(255,255,255,.58) 100%),
    url("/assets/readme-banner.png") center / cover no-repeat;
}

.screen::before,
.screen::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.screen::before {
  inset: 0 auto auto 0;
  width: 340px;
  height: 180px;
  border-top: 26px solid rgba(10, 101, 59, .75);
  border-radius: 0 0 340px 0;
}

.screen::after {
  right: 0;
  bottom: 62px;
  width: 480px;
  height: 180px;
  border-radius: 100% 0 0 0;
  background: linear-gradient(140deg, rgba(0, 85, 47, 0), rgba(0, 85, 47, .9));
}

.left,
.right,
.footer {
  position: relative;
  z-index: 1;
}

.brand {
  display: grid;
  grid-template-columns: clamp(150px, 13vw, 230px) minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  min-height: 222px;
}

.logo {
  width: clamp(148px, 12.6vw, 216px);
  height: clamp(148px, 12.6vw, 216px);
  border-radius: 50%;
  object-fit: cover;
}

.brand h1 {
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(42px, 4.25vw, 82px);
  line-height: .92;
  font-weight: 900;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.subtitle {
  margin: 10px 0 0;
  color: var(--green-dark);
  font-size: clamp(22px, 1.75vw, 34px);
  letter-spacing: .03em;
}

.divider {
  display: flex;
  align-items: center;
  gap: 22px;
  width: 560px;
  max-width: 78%;
  margin: 22px 0 18px;
  color: var(--gold);
  font-size: 30px;
}

.divider span {
  height: 1px;
  flex: 1;
  background: rgba(0, 85, 47, .55);
}

.tagline {
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(18px, 1.45vw, 24px);
}

.table-wrap {
  margin-top: 10px;
}

.schedule-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  table-layout: fixed;
}

.schedule-table thead th {
  height: 48px;
  background: linear-gradient(180deg, #0a743f, #00552f);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.schedule-table thead th:first-child {
  border-radius: 8px 0 0 8px;
}

.schedule-table thead th:last-child {
  border-radius: 0 8px 8px 0;
}

.schedule-table tbody tr {
  height: 72px;
  filter: drop-shadow(0 6px 12px rgba(0, 70, 38, .08));
}

.schedule-table tbody td {
  border-right: 1px solid var(--line);
  background: var(--white);
  padding: 9px 8px;
  text-align: center;
  font-size: 14px;
  vertical-align: middle;
}

.schedule-table th:nth-child(1),
.schedule-table td:nth-child(1) {
  width: 29%;
}

.schedule-table th:nth-child(2),
.schedule-table td:nth-child(2) {
  width: 8%;
}

.schedule-table th:nth-child(n+3):nth-child(-n+7),
.schedule-table td:nth-child(n+3):nth-child(-n+7) {
  width: 10.5%;
}

.schedule-table tbody td:first-child {
  border-radius: 8px 0 0 8px;
  text-align: left;
}

.schedule-table tbody td:last-child {
  border-right: 0;
  border-radius: 0 8px 8px 0;
}

.specialist {
  display: flex;
  align-items: center;
  gap: 14px;
}

.doctor-icon {
  display: grid;
  flex: 0 0 auto;
  width: clamp(42px, 3vw, 50px);
  height: clamp(42px, 3vw, 50px);
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #6fbd76, #08703c);
  color: #fff;
  font-size: clamp(25px, 1.8vw, 30px);
  box-shadow: 0 5px 10px rgba(0, 85, 47, .24);
}

.specialist strong {
  display: block;
  color: #18221e;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.2;
}

.specialist span {
  display: block;
  margin-top: 4px;
  color: #343d3a;
  font-size: clamp(14px, 1vw, 16px);
}

.cabinet {
  color: var(--green-dark);
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 800;
}

.time-cell {
  display: inline-block;
  min-width: min(86px, 100%);
  border-radius: 8px;
  padding: 10px 5px;
  background: rgba(224, 238, 220, .72);
  color: #1e2a25;
  font-size: clamp(12px, .88vw, 14px);
  font-weight: 700;
}

.empty-cell {
  color: #596962;
  font-size: 18px;
}

.loading {
  height: 320px;
  color: var(--muted);
  font-size: 24px !important;
  text-align: center !important;
}

.info-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 46px;
  margin: 10px 6px 0;
  border-radius: 10px;
  background: rgba(192, 213, 181, .72);
  color: #145633;
  font-size: clamp(17px, 1.2vw, 20px);
}

.info-dot {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--green-dark);
  font-weight: 800;
  font-style: italic;
}

.info-strip strong {
  color: var(--green-dark);
  font-size: clamp(22px, 1.7vw, 28px);
}

.right {
  display: grid;
  align-content: start;
  gap: 22px;
}

.time-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 1px auto;
  align-items: center;
  gap: 20px;
  min-height: 130px;
  border: 1px solid rgba(185, 154, 67, .72);
  border-radius: 18px;
  padding: clamp(18px, 1.5vw, 24px);
  background: linear-gradient(140deg, #0f7a43, #00492d);
  box-shadow: 0 12px 28px rgba(0, 85, 47, .22);
  color: #fff;
}

.calendar-icon {
  font-size: clamp(32px, 2.4vw, 42px);
}

.time-card strong,
.time-card span {
  display: block;
  text-transform: uppercase;
}

.time-card strong {
  font-size: clamp(18px, 1.35vw, 22px);
}

.time-card span {
  margin-top: 8px;
  font-size: clamp(17px, 1.25vw, 21px);
  font-weight: 800;
}

.time-separator {
  height: 66px;
  background: rgba(255, 255, 255, .32);
}

.clock-time {
  font-size: clamp(42px, 3.4vw, 58px);
  font-weight: 900;
}

.notice-card {
  min-height: 660px;
  border-radius: 18px;
  padding: clamp(20px, 1.55vw, 24px) clamp(22px, 1.75vw, 28px);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 14px 32px rgba(0, 75, 42, .12);
  overflow: hidden;
}

.notice-card h2 {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 20px;
  border-bottom: 1px solid rgba(0, 85, 47, .16);
  padding-bottom: 20px;
  color: var(--green-dark);
  font-size: 24px;
  text-transform: uppercase;
}

.notice {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  border-bottom: 1px dashed rgba(0, 85, 47, .25);
  padding: 20px 0 24px;
}

.notice-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(180deg, #16834b, #0a6338);
  color: #fff;
  font-size: 32px;
  box-shadow: 0 8px 14px rgba(0, 85, 47, .22);
}

.notice h3 {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 18px;
}

.notice p {
  margin: 0;
  color: #3b443f;
  font-size: 16px;
  line-height: 1.45;
}

.city-photo {
  height: 270px;
  margin: 34px -28px -24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0)),
    url("/assets/readme-banner.png") 70% 62% / 820px auto no-repeat;
}

.footer {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1.15fr .9fr auto;
  align-items: center;
  min-height: 74px;
  margin: 0 calc(clamp(26px, 2.4vw, 40px) * -1);
  padding: 0 clamp(34px, 3.2vw, 54px);
  background: #005b38;
  color: #fff;
  box-shadow: 0 -8px 22px rgba(0, 70, 38, .18);
}

.footer > div {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 34px;
  border-right: 1px solid rgba(255, 255, 255, .28);
  padding-right: 30px;
  font-size: clamp(16px, 1.2vw, 20px);
}

.footer > div:last-child,
.footer .page-status {
  border-right: 0;
}

.footer-icon {
  display: inline-grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: #fff;
  font-size: 32px;
}

.page-status {
  justify-content: flex-end;
  color: #f4d47d;
  font-size: 18px !important;
  font-weight: 800;
}

@media (max-width: 1400px) {
  .screen {
    grid-template-columns: minmax(0, 1fr) 350px;
    padding: 28px 28px 0;
  }

  .brand {
    grid-template-columns: 160px minmax(0, 1fr);
    min-height: 170px;
  }

  .logo {
    width: 150px;
    height: 150px;
  }

  .brand h1 {
    font-size: 50px;
  }

  .subtitle {
    font-size: 24px;
  }

  .tagline {
    font-size: 19px;
  }

  .schedule-table tbody tr {
    height: 64px;
  }

  .notice-card {
    min-height: 560px;
  }

  .clock-time {
    font-size: 44px;
  }
}

@media (max-width: 1200px) {
  .screen {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) 58px;
    gap: 0;
    padding: 16px 22px 0;
  }

  .screen::after {
    display: none;
  }

  .left {
    min-width: 0;
    grid-row: 1;
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .brand {
    grid-template-columns: 142px minmax(0, 1fr);
    min-height: 150px;
    gap: 18px;
    padding-right: 275px;
  }

  .logo {
    width: 132px;
    height: 132px;
  }

  .brand h1 {
    font-size: 38px;
    line-height: .95;
    white-space: normal;
  }

  .subtitle {
    margin-top: 6px;
    font-size: 19px;
  }

  .divider {
    width: 360px;
    margin: 12px 0 10px;
    font-size: 22px;
  }

  .tagline {
    font-size: 16px;
  }

  .right {
    position: absolute;
    top: 16px;
    right: 22px;
    width: 255px;
    z-index: 3;
  }

  .time-card {
    grid-template-columns: 28px minmax(0, 1fr) 1px auto;
    gap: 10px;
    min-height: 82px;
    border-radius: 12px;
    padding: 12px 14px;
  }

  .calendar-icon {
    font-size: 24px;
  }

  .time-card strong,
  .time-card span {
    font-size: 12px;
  }

  .time-card span {
    margin-top: 4px;
  }

  .time-separator {
    height: 44px;
  }

  .clock-time {
    font-size: 32px;
  }

  .notice-card {
    display: none;
  }

  .table-wrap {
    margin-top: 8px;
    min-height: 0;
    flex: 0 1 auto;
  }

  .schedule-table {
    border-spacing: 0 7px;
  }

  .schedule-table thead th {
    height: 38px;
    font-size: 12px;
  }

  .schedule-table tbody tr {
    height: 62px;
  }

  .schedule-table tbody td {
    padding: 6px 5px;
  }

  .schedule-table th:nth-child(1),
  .schedule-table td:nth-child(1) {
    width: 25%;
  }

  .schedule-table th:nth-child(2),
  .schedule-table td:nth-child(2) {
    width: 8%;
  }

  .schedule-table th:nth-child(n+3):nth-child(-n+7),
  .schedule-table td:nth-child(n+3):nth-child(-n+7) {
    width: 13.4%;
  }

  .specialist {
    gap: 8px;
  }

  .doctor-icon {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .specialist strong,
  .specialist span {
    font-size: 12px;
  }

  .cabinet {
    font-size: 14px;
  }

  .time-cell {
    min-width: 0;
    border-radius: 6px;
    padding: 7px 4px;
    font-size: 11px;
    line-height: 1.1;
  }

  .note {
    font-size: 11px;
  }

  .info-strip {
    flex: 0 0 auto;
    height: 38px;
    margin: 6px 4px 0;
    font-size: 15px;
  }

  .info-strip strong {
    font-size: 20px;
  }

  .footer {
    grid-row: 2;
    grid-column: 1;
    grid-template-columns: 1fr 1fr 1fr auto;
    min-height: 58px;
    height: 58px;
    margin: 0 -22px;
    padding: 0 28px;
  }

  .footer > div {
    gap: 10px;
    padding-right: 14px;
    font-size: 13px;
  }

  .footer-icon {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
}

@media (min-width: 1201px) and (max-width: 1400px) {
  .screen {
    grid-template-columns: minmax(0, 1fr) 330px;
    grid-template-rows: minmax(0, 1fr) 50px;
    gap: 0 14px;
    padding: 14px 24px 0;
  }

  .screen::before {
    width: 260px;
    height: 120px;
    border-top-width: 18px;
  }

  .screen::after {
    bottom: 50px;
    width: 310px;
    height: 120px;
  }

  .left {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
  }

  .brand {
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: 155px;
    gap: 18px;
  }

  .logo {
    width: 138px;
    height: 138px;
  }

  .brand h1 {
    max-width: none;
    font-size: 42px;
    line-height: .92;
    white-space: normal;
  }

  .subtitle {
    margin-top: 6px;
    font-size: 22px;
  }

  .divider {
    width: 410px;
    margin: 12px 0 10px;
    font-size: 22px;
  }

  .tagline {
    font-size: 16px;
  }

  .table-wrap {
    min-height: 0;
    margin-top: 6px;
    flex: 0 1 auto;
  }

  .schedule-table {
    border-spacing: 0 6px;
  }

  .schedule-table thead th {
    height: 36px;
    font-size: 12px;
  }

  .schedule-table tbody tr {
    height: 48px;
  }

  .schedule-table tbody td {
    padding: 5px 5px;
    font-size: 12px;
  }

  .schedule-table th:nth-child(1),
  .schedule-table td:nth-child(1) {
    width: 230px;
  }

  .schedule-table th:nth-child(2),
  .schedule-table td:nth-child(2) {
    width: 70px;
  }

.schedule-table th:nth-child(n+3):nth-child(-n+7),
.schedule-table td:nth-child(n+3):nth-child(-n+7) {
    width: 74px;
  }

  .specialist {
    gap: 8px;
  }

  .doctor-icon {
    width: 34px;
    height: 34px;
    font-size: 21px;
  }

  .specialist strong,
  .specialist span {
    font-size: 12px;
    line-height: 1.12;
  }

  .specialist span {
    margin-top: 3px;
  }

  .cabinet {
    font-size: 14px;
  }

  .time-cell {
    min-width: 0;
    border-radius: 6px;
    padding: 6px 4px;
    font-size: 10px;
    line-height: 1.1;
  }

  .empty-cell {
    font-size: 14px;
  }

  .info-strip {
    flex: 0 0 auto;
    height: 34px;
    margin: 4px 4px 0;
    gap: 12px;
    font-size: 14px;
  }

  .info-dot {
    width: 20px;
    height: 20px;
  }

  .info-strip strong {
    font-size: 20px;
  }

  .right {
    gap: 12px;
  }

  .time-card {
    grid-template-columns: 32px minmax(0, 1fr) 1px auto;
    min-height: 88px;
    gap: 10px;
    border-radius: 13px;
    padding: 14px;
  }

  .calendar-icon {
    font-size: 27px;
  }

  .time-card strong,
  .time-card span {
    font-size: 13px;
  }

  .time-card span {
    margin-top: 4px;
  }

  .time-separator {
    height: 48px;
  }

  .clock-time {
    font-size: 36px;
  }

  .notice-card {
    min-height: 394px;
    border-radius: 13px;
    padding: 16px 18px;
  }

  .notice-card h2 {
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    font-size: 20px;
  }

  .notice {
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 13px 0 15px;
  }

  .notice-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 25px;
  }

  .notice h3 {
    margin-bottom: 5px;
    font-size: 15px;
  }

  .notice p {
    font-size: 13px;
    line-height: 1.35;
  }

  .city-photo {
    height: 128px;
    margin: 18px -18px -16px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0)),
      url("/assets/readme-banner.png") 75% 65% / 470px auto no-repeat;
  }

  .footer {
    grid-template-columns: 1fr 1.1fr .9fr auto;
    min-height: 50px;
    height: 50px;
    margin: 0 -24px;
    padding: 0 34px;
  }

  .footer > div {
    gap: 10px;
    min-height: 28px;
    padding-right: 16px;
    font-size: 13px;
  }

  .footer-icon {
    width: 34px;
    height: 34px;
    font-size: 22px;
  }
}

@media (max-width: 1499px) {
  .screen {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) 58px;
    gap: 0;
    padding: 16px 22px 0;
  }

  .screen::after {
    display: none;
  }

  .left {
    grid-row: 1;
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
  }

  .brand {
    grid-template-columns: 142px minmax(0, 1fr);
    min-height: 150px;
    gap: 18px;
    padding-right: 275px;
  }

  .logo {
    width: 132px;
    height: 132px;
  }

  .brand h1 {
    font-size: 38px;
    line-height: .95;
    white-space: normal;
  }

  .subtitle {
    margin-top: 6px;
    font-size: 19px;
  }

  .divider {
    width: 360px;
    margin: 12px 0 10px;
    font-size: 22px;
  }

  .tagline {
    font-size: 16px;
  }

  .right {
    position: absolute;
    top: 16px;
    right: 22px;
    width: 255px;
    z-index: 3;
  }

  .time-card {
    grid-template-columns: 28px minmax(0, 1fr) 1px auto;
    gap: 10px;
    min-height: 82px;
    border-radius: 12px;
    padding: 12px 14px;
  }

  .calendar-icon {
    font-size: 24px;
  }

  .time-card strong,
  .time-card span {
    font-size: 12px;
  }

  .time-card span {
    margin-top: 4px;
  }

  .time-separator {
    height: 44px;
  }

  .clock-time {
    font-size: 32px;
  }

  .notice-card {
    display: none;
  }

  .table-wrap {
    min-height: 0;
    margin-top: 8px;
    flex: 0 1 auto;
  }

  .schedule-table {
    border-spacing: 0 7px;
  }

  .schedule-table thead th {
    height: 38px;
    font-size: 12px;
  }

  .schedule-table tbody tr {
    height: 62px;
  }

  .schedule-table tbody td {
    padding: 6px 5px;
  }

  .schedule-table th:nth-child(1),
  .schedule-table td:nth-child(1) {
    width: 25%;
  }

  .schedule-table th:nth-child(2),
  .schedule-table td:nth-child(2) {
    width: 8%;
  }

  .schedule-table th:nth-child(n+3):nth-child(-n+7),
  .schedule-table td:nth-child(n+3):nth-child(-n+7) {
    width: 10.8%;
  }

  .specialist {
    gap: 8px;
  }

  .doctor-icon {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .specialist strong,
  .specialist span {
    font-size: 12px;
  }

  .cabinet {
    font-size: 14px;
  }

  .time-cell {
    min-width: 0;
    border-radius: 6px;
    padding: 7px 4px;
    font-size: 11px;
    line-height: 1.1;
  }

  .info-strip {
    flex: 0 0 auto;
    height: 38px;
    margin: 6px 4px 0;
    font-size: 15px;
  }

  .info-strip strong {
    font-size: 20px;
  }

  .footer {
    grid-row: 2;
    grid-column: 1;
    grid-template-columns: 1fr 1fr 1fr auto;
    min-height: 58px;
    height: 58px;
    margin: 0 -22px;
    padding: 0 28px;
  }

  .footer > div {
    gap: 10px;
    padding-right: 14px;
    font-size: 13px;
  }

  .footer-icon {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
}
